mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-19 05:46:04 +00:00
fixing jsonv-ts imports
This commit is contained in:
@@ -7,7 +7,7 @@ import type { ModuleHelper } from "./ModuleHelper";
|
||||
import { SchemaObject } from "core/object/SchemaObject";
|
||||
import type { DebugLogger } from "core/utils/DebugLogger";
|
||||
import type { Guard } from "auth/authorize/Guard";
|
||||
import type { McpServer } from "jsonv-ts/mcp";
|
||||
import type { McpServer } from "bknd/utils";
|
||||
|
||||
type PartialRec<T> = { [P in keyof T]?: PartialRec<T[P]> };
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { mark, stripMark, $console, s, objectEach, transformObject } from "bknd/utils";
|
||||
import { mark, stripMark, $console, s, objectEach, transformObject, McpServer } from "bknd/utils";
|
||||
import { Guard } from "auth/authorize/Guard";
|
||||
import { env } from "core/env";
|
||||
import { BkndError } from "core/errors";
|
||||
@@ -21,7 +21,6 @@ import { AppMedia } from "../media/AppMedia";
|
||||
import type { ServerEnv } from "./Controller";
|
||||
import { Module, type ModuleBuildContext } from "./Module";
|
||||
import { ModuleHelper } from "./ModuleHelper";
|
||||
import { McpServer, type Resource, type Tool } from "jsonv-ts/mcp";
|
||||
|
||||
export type { ModuleBuildContext };
|
||||
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
import * as s from "jsonv-ts";
|
||||
import { type Resource, Tool, type ToolAnnotation, type ToolHandlerCtx } from "jsonv-ts/mcp";
|
||||
import { excludePropertyTypes, rescursiveClean } from "./utils";
|
||||
import { autoFormatString, getPath } from "bknd/utils";
|
||||
import {
|
||||
type Resource,
|
||||
Tool,
|
||||
type ToolAnnotation,
|
||||
type ToolHandlerCtx,
|
||||
autoFormatString,
|
||||
getPath,
|
||||
s,
|
||||
} from "bknd/utils";
|
||||
import type { App } from "App";
|
||||
import type { ModuleBuildContext } from "modules";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import * as s from "jsonv-ts";
|
||||
import { isPlainObject, transformObject } from "bknd/utils";
|
||||
import { isPlainObject, transformObject, s } from "bknd/utils";
|
||||
|
||||
export function rescursiveClean(
|
||||
input: s.Schema,
|
||||
|
||||
@@ -13,10 +13,10 @@ import {
|
||||
s,
|
||||
describeRoute,
|
||||
InvalidSchemaError,
|
||||
openAPISpecs,
|
||||
} from "bknd/utils";
|
||||
import type { Context, Hono } from "hono";
|
||||
import { Controller } from "modules/Controller";
|
||||
import { openAPISpecs } from "jsonv-ts/hono";
|
||||
import { swaggerUI } from "@hono/swagger-ui";
|
||||
import {
|
||||
MODULE_NAMES,
|
||||
|
||||
Reference in New Issue
Block a user