optimized performance

This commit is contained in:
dswbx
2025-08-14 10:05:15 +02:00
parent 70f0240da5
commit 9ac5fa03c6
28 changed files with 134 additions and 66 deletions

View File

@@ -1,7 +1,7 @@
import { extension, guess, isMimeType } from "media/storage/mime-types-tiny";
import { randomString } from "core/utils/strings";
import { randomString } from "./strings";
import type { Context } from "hono";
import { invariant } from "core/utils/runtime";
import { invariant } from "./runtime";
import { $console } from "./console";
export function getContentName(request: Request): string | undefined;

View File

@@ -14,3 +14,4 @@ export * from "./test";
export * from "./runtime";
export * from "./numbers";
export * from "./schema";
export { DebugLogger } from "./DebugLogger";

View File

@@ -10,6 +10,7 @@ export {
mcpTool,
mcpResource,
getMcpServer,
stdioTransport,
type ToolAnnotation,
type ToolHandlerCtx,
} from "jsonv-ts/mcp";

View File

@@ -1,6 +1,6 @@
import { StringSchema, type IStringOptions } from "jsonv-ts";
import { s } from "bknd/utils";
export class SecretSchema<O extends IStringOptions> extends StringSchema<O> {}
export class SecretSchema<O extends s.IStringOptions> extends s.StringSchema<O> {}
export const secret = <O extends IStringOptions>(o?: O): SecretSchema<O> & O =>
export const secret = <O extends s.IStringOptions>(o?: O): SecretSchema<O> & O =>
new SecretSchema(o) as any;