fixing jsonv-ts imports

This commit is contained in:
dswbx
2025-08-02 16:47:24 +02:00
parent 104885ea5c
commit 5e5f0ef70f
10 changed files with 27 additions and 18 deletions

View File

@@ -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]> };

View File

@@ -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 };

View File

@@ -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";

View File

@@ -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,

View File

@@ -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,