mcp-use 2.0.0-beta.4 → 2.0.0-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -179
- package/dist/branding.d.ts +81 -0
- package/dist/chunk-GX6PGIEO.js +630 -0
- package/dist/chunk-JMDHTN6N.js +1 -0
- package/dist/chunk-OJF6B5EU.js +1 -0
- package/dist/chunk-PSKSL567.js +1 -0
- package/dist/chunk-WYBJYZJB.js +1 -0
- package/dist/chunk-Y26DNVWA.js +3 -0
- package/dist/chunk-YBGMCISI.js +2 -0
- package/dist/chunk-ZMU5USAZ.js +1 -0
- package/dist/completable.d.ts +9 -1
- package/dist/config.d.ts +134 -73
- package/dist/context.d.ts +147 -11
- package/dist/fetch-app.d.ts +26 -8
- package/dist/index.d.ts +39 -11
- package/dist/index.js +32 -1818
- package/dist/internal/resource-completion.js +1 -0
- package/dist/internal/usage.js +1 -0
- package/dist/landing-handler-TG6LVQBI.js +1 -0
- package/dist/landing-handler.d.ts +23 -0
- package/dist/landing.d.ts +66 -0
- package/dist/landing.js +1 -0
- package/dist/listen-address.d.ts +8 -0
- package/dist/logging.d.ts +0 -1
- package/dist/mcp-proxy-NETCUGUD.js +2 -0
- package/dist/mcp-proxy.d.ts +158 -0
- package/dist/middleware/cors.d.ts +10 -0
- package/dist/middleware/mcp-middleware.d.ts +183 -0
- package/dist/mount-mcp.d.ts +0 -5
- package/dist/next/config.d.ts +38 -0
- package/dist/next/handler.d.ts +16 -0
- package/dist/next/index.d.ts +4 -0
- package/dist/next/index.js +1 -0
- package/dist/node-bridge.d.ts +0 -1
- package/dist/node-bridge.js +1 -151
- package/dist/oauth/adapters.d.ts +0 -1
- package/dist/oauth/auth0.d.ts +0 -1
- package/dist/oauth/auth0.js +1 -61
- package/dist/oauth/better-auth.d.ts +28 -0
- package/dist/oauth/better-auth.js +1 -0
- package/dist/oauth/clerk.d.ts +0 -1
- package/dist/oauth/clerk.js +1 -70
- package/dist/oauth/guards.d.ts +0 -1
- package/dist/oauth/index.d.ts +0 -1
- package/dist/oauth/index.js +1 -27
- package/dist/oauth/internal.d.ts +0 -1
- package/dist/oauth/jwt.d.ts +0 -1
- package/dist/oauth/keycloak.d.ts +0 -1
- package/dist/oauth/keycloak.js +1 -94
- package/dist/oauth/provider.d.ts +0 -1
- package/dist/oauth/supabase.d.ts +0 -1
- package/dist/oauth/supabase.js +1 -101
- package/dist/oauth/workos.d.ts +0 -1
- package/dist/oauth/workos.js +1 -77
- package/dist/openapi/index.d.ts +0 -1
- package/dist/openapi/index.js +1 -7
- package/dist/openapi/types.d.ts +0 -1
- package/dist/prompts.d.ts +7 -4
- package/dist/public-route-DAQJGS6K.js +1 -0
- package/dist/react/components/error-boundary.d.ts +0 -1
- package/dist/react/components/image.d.ts +0 -1
- package/dist/react/components/model-context.d.ts +9 -15
- package/dist/react/components/theme-provider.d.ts +3 -1
- package/dist/react/components/view-controls.d.ts +0 -1
- package/dist/react/hooks/use-call-tool.d.ts +29 -12
- package/dist/react/hooks/use-display-mode.d.ts +0 -1
- package/dist/react/hooks/use-files.d.ts +24 -0
- package/dist/react/hooks/use-host-context.d.ts +5 -1
- package/dist/react/hooks/use-open-external.d.ts +0 -1
- package/dist/react/hooks/use-send-follow-up.d.ts +0 -1
- package/dist/react/hooks/use-send-size-changed.d.ts +0 -1
- package/dist/react/hooks/use-tool-context.d.ts +0 -1
- package/dist/react/hooks/use-view-state.d.ts +23 -0
- package/dist/react/hooks/use-view-theme.d.ts +0 -1
- package/dist/react/hooks/use-view-tool.d.ts +0 -1
- package/dist/react/index.d.ts +4 -2
- package/dist/react/index.js +346 -85
- package/dist/react/public-assets.d.ts +0 -1
- package/dist/react/runtime/bootstrap-view.d.ts +0 -1
- package/dist/react/runtime/model-context-store.d.ts +34 -69
- package/dist/react/runtime/view-config.d.ts +0 -1
- package/dist/react/runtime/view-runtime-context.d.ts +0 -1
- package/dist/react/runtime/view-runtime.d.ts +25 -3
- package/dist/react/types/file-types.d.ts +15 -0
- package/dist/react/types/host-types.d.ts +0 -1
- package/dist/react/types/register.d.ts +11 -4
- package/dist/react/types/result-types.d.ts +0 -1
- package/dist/resource-completion.d.ts +11 -0
- package/dist/resources.d.ts +72 -9
- package/dist/response-conversion.d.ts +25 -0
- package/dist/response-helpers.d.ts +223 -0
- package/dist/server.d.ts +166 -34
- package/dist/tools.d.ts +26 -15
- package/dist/usage.d.ts +11 -0
- package/dist/views/capabilities.d.ts +0 -1
- package/dist/views/constants.d.ts +1 -2
- package/dist/views/csp-env.d.ts +0 -1
- package/dist/views/document.d.ts +9 -11
- package/dist/views/index.d.ts +0 -1
- package/dist/views/origin.d.ts +0 -1
- package/dist/views/public-route.d.ts +10 -5
- package/dist/views/register.d.ts +1 -2
- package/dist/views/routes.d.ts +6 -3
- package/dist/views/types.d.ts +19 -15
- package/dist/views/wire.d.ts +14 -10
- package/package.json +34 -20
- package/dist/.tsbuildinfo +0 -1
- package/dist/bin/args.d.ts +0 -61
- package/dist/bin/args.d.ts.map +0 -1
- package/dist/bin/main.d.ts +0 -32
- package/dist/bin/main.d.ts.map +0 -1
- package/dist/bin/start.d.ts +0 -40
- package/dist/bin/start.d.ts.map +0 -1
- package/dist/bin.d.ts +0 -3
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js.map +0 -1
- package/dist/chunk-AATFAERC.js +0 -384
- package/dist/chunk-AATFAERC.js.map +0 -1
- package/dist/chunk-AQ2ZZM2P.js +0 -193
- package/dist/chunk-AQ2ZZM2P.js.map +0 -1
- package/dist/chunk-DPL7OEXC.js +0 -518
- package/dist/chunk-DPL7OEXC.js.map +0 -1
- package/dist/chunk-IG2BCCMU.js +0 -98
- package/dist/chunk-IG2BCCMU.js.map +0 -1
- package/dist/chunk-RQRT27Q3.js +0 -454
- package/dist/chunk-RQRT27Q3.js.map +0 -1
- package/dist/chunk-SFI2T6TE.js +0 -171
- package/dist/chunk-SFI2T6TE.js.map +0 -1
- package/dist/chunk-VV2P4ZFZ.js +0 -187
- package/dist/chunk-VV2P4ZFZ.js.map +0 -1
- package/dist/chunk-XUD22N3Y.js +0 -156
- package/dist/chunk-XUD22N3Y.js.map +0 -1
- package/dist/chunk-ZMIKQPSO.js +0 -151
- package/dist/chunk-ZMIKQPSO.js.map +0 -1
- package/dist/cli/build.d.ts +0 -61
- package/dist/cli/build.d.ts.map +0 -1
- package/dist/cli/dev-api.d.ts +0 -49
- package/dist/cli/dev-api.d.ts.map +0 -1
- package/dist/cli/dev.d.ts +0 -101
- package/dist/cli/dev.d.ts.map +0 -1
- package/dist/cli/entry.d.ts +0 -31
- package/dist/cli/entry.d.ts.map +0 -1
- package/dist/cli/index.d.ts +0 -17
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/port.d.ts +0 -30
- package/dist/cli/port.d.ts.map +0 -1
- package/dist/cli/tunnel.d.ts +0 -46
- package/dist/cli/tunnel.d.ts.map +0 -1
- package/dist/cli/views-bindings.d.ts +0 -30
- package/dist/cli/views-bindings.d.ts.map +0 -1
- package/dist/cli/views-plugin.d.ts +0 -47
- package/dist/cli/views-plugin.d.ts.map +0 -1
- package/dist/cli/views.d.ts +0 -75
- package/dist/cli/views.d.ts.map +0 -1
- package/dist/cli/vite-config.d.ts +0 -21
- package/dist/cli/vite-config.d.ts.map +0 -1
- package/dist/cli/workspace.d.ts +0 -107
- package/dist/cli/workspace.d.ts.map +0 -1
- package/dist/commands/build.d.ts +0 -8
- package/dist/commands/build.d.ts.map +0 -1
- package/dist/commands/build.js +0 -363
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/client.d.ts +0 -22
- package/dist/commands/client.d.ts.map +0 -1
- package/dist/commands/client.js +0 -14
- package/dist/commands/client.js.map +0 -1
- package/dist/commands/cloud-api.d.ts +0 -70
- package/dist/commands/cloud-api.d.ts.map +0 -1
- package/dist/commands/deploy.d.ts +0 -3
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -242
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/deployments.d.ts +0 -3
- package/dist/commands/deployments.d.ts.map +0 -1
- package/dist/commands/deployments.js +0 -213
- package/dist/commands/deployments.js.map +0 -1
- package/dist/commands/dev.d.ts +0 -8
- package/dist/commands/dev.d.ts.map +0 -1
- package/dist/commands/dev.js +0 -652
- package/dist/commands/dev.js.map +0 -1
- package/dist/commands/identity.d.ts +0 -3
- package/dist/commands/identity.d.ts.map +0 -1
- package/dist/commands/identity.js +0 -192
- package/dist/commands/identity.js.map +0 -1
- package/dist/commands/load-client.d.ts +0 -11
- package/dist/commands/load-client.d.ts.map +0 -1
- package/dist/commands/organizations.d.ts +0 -3
- package/dist/commands/organizations.d.ts.map +0 -1
- package/dist/commands/organizations.js +0 -97
- package/dist/commands/organizations.js.map +0 -1
- package/dist/commands/screenshot.d.ts +0 -3
- package/dist/commands/screenshot.d.ts.map +0 -1
- package/dist/commands/screenshot.js +0 -463
- package/dist/commands/screenshot.js.map +0 -1
- package/dist/commands/servers.d.ts +0 -3
- package/dist/commands/servers.d.ts.map +0 -1
- package/dist/commands/servers.js +0 -278
- package/dist/commands/servers.js.map +0 -1
- package/dist/commands/shared.d.ts +0 -44
- package/dist/commands/shared.d.ts.map +0 -1
- package/dist/commands/skills.d.ts +0 -3
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js +0 -84
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/start.d.ts +0 -8
- package/dist/commands/start.d.ts.map +0 -1
- package/dist/commands/start.js +0 -72
- package/dist/commands/start.js.map +0 -1
- package/dist/completable.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/context.d.ts.map +0 -1
- package/dist/fetch-app.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/inspector-shell.d.ts +0 -81
- package/dist/inspector-shell.d.ts.map +0 -1
- package/dist/logging.d.ts.map +0 -1
- package/dist/mount-mcp.d.ts.map +0 -1
- package/dist/node-bridge.d.ts.map +0 -1
- package/dist/node-bridge.js.map +0 -1
- package/dist/oauth/adapters.d.ts.map +0 -1
- package/dist/oauth/auth0.d.ts.map +0 -1
- package/dist/oauth/auth0.js.map +0 -1
- package/dist/oauth/clerk.d.ts.map +0 -1
- package/dist/oauth/clerk.js.map +0 -1
- package/dist/oauth/guards.d.ts.map +0 -1
- package/dist/oauth/index.d.ts.map +0 -1
- package/dist/oauth/index.js.map +0 -1
- package/dist/oauth/internal.d.ts.map +0 -1
- package/dist/oauth/jwt.d.ts.map +0 -1
- package/dist/oauth/keycloak.d.ts.map +0 -1
- package/dist/oauth/keycloak.js.map +0 -1
- package/dist/oauth/provider.d.ts.map +0 -1
- package/dist/oauth/supabase.d.ts.map +0 -1
- package/dist/oauth/supabase.js.map +0 -1
- package/dist/oauth/workos.d.ts.map +0 -1
- package/dist/oauth/workos.js.map +0 -1
- package/dist/openapi/index.d.ts.map +0 -1
- package/dist/openapi/index.js.map +0 -1
- package/dist/openapi/types.d.ts.map +0 -1
- package/dist/prompts.d.ts.map +0 -1
- package/dist/public-route-7IK5D7V7.js +0 -60
- package/dist/public-route-7IK5D7V7.js.map +0 -1
- package/dist/react/components/error-boundary.d.ts.map +0 -1
- package/dist/react/components/image.d.ts.map +0 -1
- package/dist/react/components/model-context.d.ts.map +0 -1
- package/dist/react/components/theme-provider.d.ts.map +0 -1
- package/dist/react/components/view-controls.d.ts.map +0 -1
- package/dist/react/hooks/use-call-tool.d.ts.map +0 -1
- package/dist/react/hooks/use-display-mode.d.ts.map +0 -1
- package/dist/react/hooks/use-host-context.d.ts.map +0 -1
- package/dist/react/hooks/use-open-external.d.ts.map +0 -1
- package/dist/react/hooks/use-send-follow-up.d.ts.map +0 -1
- package/dist/react/hooks/use-send-size-changed.d.ts.map +0 -1
- package/dist/react/hooks/use-tool-context.d.ts.map +0 -1
- package/dist/react/hooks/use-view-theme.d.ts.map +0 -1
- package/dist/react/hooks/use-view-tool.d.ts.map +0 -1
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js.map +0 -1
- package/dist/react/public-assets.d.ts.map +0 -1
- package/dist/react/runtime/bootstrap-view.d.ts.map +0 -1
- package/dist/react/runtime/model-context-store.d.ts.map +0 -1
- package/dist/react/runtime/view-config.d.ts.map +0 -1
- package/dist/react/runtime/view-runtime-context.d.ts.map +0 -1
- package/dist/react/runtime/view-runtime.d.ts.map +0 -1
- package/dist/react/types/host-types.d.ts.map +0 -1
- package/dist/react/types/register.d.ts.map +0 -1
- package/dist/react/types/result-types.d.ts.map +0 -1
- package/dist/resources.d.ts.map +0 -1
- package/dist/server.d.ts.map +0 -1
- package/dist/tools.d.ts.map +0 -1
- package/dist/views/capabilities.d.ts.map +0 -1
- package/dist/views/constants.d.ts.map +0 -1
- package/dist/views/csp-env.d.ts.map +0 -1
- package/dist/views/document.d.ts.map +0 -1
- package/dist/views/index.d.ts.map +0 -1
- package/dist/views/origin.d.ts.map +0 -1
- package/dist/views/public-route.d.ts.map +0 -1
- package/dist/views/register.d.ts.map +0 -1
- package/dist/views/routes.d.ts.map +0 -1
- package/dist/views/types.d.ts.map +0 -1
- package/dist/views/wire.d.ts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/LICENSE +0 -216
- package/node_modules/@modelcontextprotocol/client/README.md +0 -26
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs +0 -7069
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts +0 -1054
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts +0 -1054
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs +0 -7086
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts +0 -59
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs +0 -970
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs +0 -976
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts +0 -59
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Bnu9O96Y.cjs +0 -60
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs +0 -42
- package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts +0 -2675
- package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts +0 -2678
- package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +0 -5427
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +0 -3196
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +0 -3196
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +0 -5224
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs +0 -14
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs +0 -14
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +0 -21
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts +0 -13
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +0 -20
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs +0 -7331
- package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs +0 -6963
- package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +0 -181
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +0 -87
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +0 -87
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +0 -176
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts +0 -1099
- package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts +0 -1099
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.cjs +0 -5
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.mjs +0 -3
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.cjs +0 -3
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.mjs +0 -3
- package/node_modules/@modelcontextprotocol/client/package.json +0 -166
- package/node_modules/@modelcontextprotocol/core/LICENSE +0 -216
- package/node_modules/@modelcontextprotocol/core/README.md +0 -40
- package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts +0 -8198
- package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs +0 -2862
- package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts +0 -8198
- package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs +0 -1653
- package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -174
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +0 -2
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +0 -2
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -199
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +0 -87
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +0 -87
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/package.json +0 -85
- package/node_modules/jose/LICENSE.md +0 -21
- package/node_modules/jose/README.md +0 -153
- package/node_modules/jose/dist/types/index.d.ts +0 -55
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +0 -65
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +0 -83
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +0 -31
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +0 -74
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +0 -17
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -32
- package/node_modules/jose/dist/types/jwks/local.d.ts +0 -29
- package/node_modules/jose/dist/types/jwks/remote.d.ts +0 -237
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +0 -36
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +0 -42
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +0 -53
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +0 -33
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +0 -35
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +0 -91
- package/node_modules/jose/dist/types/jwt/sign.d.ts +0 -43
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +0 -43
- package/node_modules/jose/dist/types/jwt/verify.d.ts +0 -37
- package/node_modules/jose/dist/types/key/export.d.ts +0 -33
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +0 -47
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +0 -35
- package/node_modules/jose/dist/types/key/import.d.ts +0 -83
- package/node_modules/jose/dist/types/types.d.ts +0 -841
- package/node_modules/jose/dist/types/util/base64url.d.ts +0 -9
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +0 -18
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -17
- package/node_modules/jose/dist/types/util/errors.d.ts +0 -213
- package/node_modules/jose/dist/webapi/index.js +0 -32
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +0 -27
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +0 -27
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +0 -165
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +0 -169
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +0 -31
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +0 -187
- package/node_modules/jose/dist/webapi/jwk/embedded.js +0 -17
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +0 -68
- package/node_modules/jose/dist/webapi/jwks/local.js +0 -119
- package/node_modules/jose/dist/webapi/jwks/remote.js +0 -179
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +0 -18
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +0 -21
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +0 -92
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +0 -120
- package/node_modules/jose/dist/webapi/jws/general/sign.js +0 -73
- package/node_modules/jose/dist/webapi/jws/general/verify.js +0 -24
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +0 -23
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +0 -108
- package/node_modules/jose/dist/webapi/jwt/sign.js +0 -52
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +0 -63
- package/node_modules/jose/dist/webapi/jwt/verify.js +0 -15
- package/node_modules/jose/dist/webapi/key/export.js +0 -11
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +0 -97
- package/node_modules/jose/dist/webapi/key/generate_secret.js +0 -40
- package/node_modules/jose/dist/webapi/key/import.js +0 -57
- package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +0 -16
- package/node_modules/jose/dist/webapi/lib/aeskw.js +0 -25
- package/node_modules/jose/dist/webapi/lib/asn1.js +0 -243
- package/node_modules/jose/dist/webapi/lib/base64.js +0 -22
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +0 -43
- package/node_modules/jose/dist/webapi/lib/cek.js +0 -19
- package/node_modules/jose/dist/webapi/lib/check_cek_length.js +0 -7
- package/node_modules/jose/dist/webapi/lib/check_iv_length.js +0 -7
- package/node_modules/jose/dist/webapi/lib/check_key_length.js +0 -8
- package/node_modules/jose/dist/webapi/lib/check_key_type.js +0 -122
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -143
- package/node_modules/jose/dist/webapi/lib/decrypt.js +0 -106
- package/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +0 -127
- package/node_modules/jose/dist/webapi/lib/digest.js +0 -4
- package/node_modules/jose/dist/webapi/lib/ecdhes.js +0 -52
- package/node_modules/jose/dist/webapi/lib/encrypt.js +0 -74
- package/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +0 -92
- package/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +0 -12
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -27
- package/node_modules/jose/dist/webapi/lib/is_disjoint.js +0 -21
- package/node_modules/jose/dist/webapi/lib/is_jwk.js +0 -6
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
- package/node_modules/jose/dist/webapi/lib/is_object.js +0 -14
- package/node_modules/jose/dist/webapi/lib/iv.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -109
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +0 -238
- package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +0 -31
- package/node_modules/jose/dist/webapi/lib/normalize_key.js +0 -176
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +0 -39
- package/node_modules/jose/dist/webapi/lib/private_symbols.js +0 -1
- package/node_modules/jose/dist/webapi/lib/rsaes.js +0 -24
- package/node_modules/jose/dist/webapi/lib/sign.js +0 -9
- package/node_modules/jose/dist/webapi/lib/subtle_dsa.js +0 -31
- package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +0 -10
- package/node_modules/jose/dist/webapi/lib/validate_crit.js +0 -33
- package/node_modules/jose/dist/webapi/lib/verify.js +0 -14
- package/node_modules/jose/dist/webapi/util/base64url.js +0 -30
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +0 -32
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +0 -34
- package/node_modules/jose/dist/webapi/util/errors.js +0 -99
- package/node_modules/jose/package.json +0 -200
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -191
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -7
- package/node_modules/zod/mini/index.cjs +0 -32
- package/node_modules/zod/mini/index.d.cts +0 -3
- package/node_modules/zod/mini/index.d.ts +0 -3
- package/node_modules/zod/mini/index.js +0 -3
- package/node_modules/zod/mini/package.json +0 -7
- package/node_modules/zod/package.json +0 -135
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -3
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/node_modules/zod/src/v4/classic/external.ts +0 -52
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1823
- package/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -153
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -455
- package/node_modules/zod/src/v4/core/index.ts +0 -16
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/node_modules/zod/src/v4/core/regexes.ts +0 -190
- package/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
- package/node_modules/zod/src/v4/core/util.ts +0 -983
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/node_modules/zod/src/v4/locales/el.ts +0 -121
- package/node_modules/zod/src/v4/locales/en.ts +0 -123
- package/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/node_modules/zod/src/v4/locales/fr.ts +0 -132
- package/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/node_modules/zod/src/v4/locales/hr.ts +0 -131
- package/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/node_modules/zod/src/v4/locales/index.ts +0 -52
- package/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/node_modules/zod/src/v4/locales/ro.ts +0 -129
- package/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/node_modules/zod/src/v4/locales/uz.ts +0 -117
- package/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/zod/src/v4/mini/external.ts +0 -41
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
- package/node_modules/zod/src/v4-mini/index.ts +0 -3
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -7
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3777
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3695
- package/node_modules/zod/v4/classic/checks.cjs +0 -33
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/zod/v4/classic/compat.d.cts +0 -50
- package/node_modules/zod/v4/classic/compat.d.ts +0 -50
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -48
- package/node_modules/zod/v4/classic/external.cjs +0 -73
- package/node_modules/zod/v4/classic/external.d.cts +0 -16
- package/node_modules/zod/v4/classic/external.d.ts +0 -16
- package/node_modules/zod/v4/classic/external.js +0 -20
- package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/package.json +0 -7
- package/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/node_modules/zod/v4/classic/parse.d.cts +0 -31
- package/node_modules/zod/v4/classic/parse.d.ts +0 -31
- package/node_modules/zod/v4/classic/parse.js +0 -15
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
- package/node_modules/zod/v4/classic/schemas.js +0 -1395
- package/node_modules/zod/v4/core/api.cjs +0 -1227
- package/node_modules/zod/v4/core/api.d.cts +0 -325
- package/node_modules/zod/v4/core/api.d.ts +0 -325
- package/node_modules/zod/v4/core/api.js +0 -1087
- package/node_modules/zod/v4/core/checks.cjs +0 -601
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -575
- package/node_modules/zod/v4/core/core.cjs +0 -85
- package/node_modules/zod/v4/core/core.d.cts +0 -70
- package/node_modules/zod/v4/core/core.d.ts +0 -70
- package/node_modules/zod/v4/core/core.js +0 -78
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -216
- package/node_modules/zod/v4/core/errors.d.cts +0 -221
- package/node_modules/zod/v4/core/errors.d.ts +0 -221
- package/node_modules/zod/v4/core/errors.js +0 -185
- package/node_modules/zod/v4/core/index.cjs +0 -47
- package/node_modules/zod/v4/core/index.d.cts +0 -16
- package/node_modules/zod/v4/core/index.d.ts +0 -16
- package/node_modules/zod/v4/core/index.js +0 -16
- package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
- package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/package.json +0 -7
- package/node_modules/zod/v4/core/parse.cjs +0 -131
- package/node_modules/zod/v4/core/parse.d.cts +0 -49
- package/node_modules/zod/v4/core/parse.d.ts +0 -49
- package/node_modules/zod/v4/core/parse.js +0 -93
- package/node_modules/zod/v4/core/regexes.cjs +0 -172
- package/node_modules/zod/v4/core/regexes.d.cts +0 -85
- package/node_modules/zod/v4/core/regexes.d.ts +0 -85
- package/node_modules/zod/v4/core/regexes.js +0 -139
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -2270
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
- package/node_modules/zod/v4/core/schemas.js +0 -2239
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.js +0 -448
- package/node_modules/zod/v4/core/util.cjs +0 -734
- package/node_modules/zod/v4/core/util.d.cts +0 -200
- package/node_modules/zod/v4/core/util.d.ts +0 -200
- package/node_modules/zod/v4/core/util.js +0 -674
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -133
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -106
- package/node_modules/zod/v4/locales/az.cjs +0 -132
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -105
- package/node_modules/zod/v4/locales/be.cjs +0 -183
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -156
- package/node_modules/zod/v4/locales/bg.cjs +0 -147
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/zod/v4/locales/bg.js +0 -120
- package/node_modules/zod/v4/locales/ca.cjs +0 -134
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -107
- package/node_modules/zod/v4/locales/cs.cjs +0 -138
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -111
- package/node_modules/zod/v4/locales/da.cjs +0 -142
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -115
- package/node_modules/zod/v4/locales/de.cjs +0 -135
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -108
- package/node_modules/zod/v4/locales/el.cjs +0 -136
- package/node_modules/zod/v4/locales/el.d.cts +0 -5
- package/node_modules/zod/v4/locales/el.d.ts +0 -4
- package/node_modules/zod/v4/locales/el.js +0 -109
- package/node_modules/zod/v4/locales/en.cjs +0 -140
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/zod/v4/locales/en.js +0 -113
- package/node_modules/zod/v4/locales/eo.cjs +0 -136
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/zod/v4/locales/eo.js +0 -109
- package/node_modules/zod/v4/locales/es.cjs +0 -159
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -132
- package/node_modules/zod/v4/locales/fa.cjs +0 -141
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -114
- package/node_modules/zod/v4/locales/fi.cjs +0 -139
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -112
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -107
- package/node_modules/zod/v4/locales/fr.cjs +0 -152
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -125
- package/node_modules/zod/v4/locales/he.cjs +0 -241
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -214
- package/node_modules/zod/v4/locales/hr.cjs +0 -149
- package/node_modules/zod/v4/locales/hr.d.cts +0 -5
- package/node_modules/zod/v4/locales/hr.d.ts +0 -4
- package/node_modules/zod/v4/locales/hr.js +0 -122
- package/node_modules/zod/v4/locales/hu.cjs +0 -135
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -108
- package/node_modules/zod/v4/locales/hy.cjs +0 -174
- package/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/zod/v4/locales/hy.js +0 -147
- package/node_modules/zod/v4/locales/id.cjs +0 -133
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -106
- package/node_modules/zod/v4/locales/index.cjs +0 -111
- package/node_modules/zod/v4/locales/index.d.cts +0 -52
- package/node_modules/zod/v4/locales/index.d.ts +0 -52
- package/node_modules/zod/v4/locales/index.js +0 -52
- package/node_modules/zod/v4/locales/is.cjs +0 -136
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/zod/v4/locales/is.js +0 -109
- package/node_modules/zod/v4/locales/it.cjs +0 -135
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -108
- package/node_modules/zod/v4/locales/ja.cjs +0 -134
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -107
- package/node_modules/zod/v4/locales/ka.cjs +0 -139
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/zod/v4/locales/ka.js +0 -112
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -137
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -110
- package/node_modules/zod/v4/locales/ko.cjs +0 -138
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -111
- package/node_modules/zod/v4/locales/lt.cjs +0 -230
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/zod/v4/locales/lt.js +0 -203
- package/node_modules/zod/v4/locales/mk.cjs +0 -136
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -109
- package/node_modules/zod/v4/locales/ms.cjs +0 -134
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -107
- package/node_modules/zod/v4/locales/nl.cjs +0 -137
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -110
- package/node_modules/zod/v4/locales/no.cjs +0 -135
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -108
- package/node_modules/zod/v4/locales/ota.cjs +0 -136
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -109
- package/node_modules/zod/v4/locales/package.json +0 -7
- package/node_modules/zod/v4/locales/pl.cjs +0 -136
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -109
- package/node_modules/zod/v4/locales/ps.cjs +0 -141
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -114
- package/node_modules/zod/v4/locales/pt.cjs +0 -135
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -108
- package/node_modules/zod/v4/locales/ro.cjs +0 -146
- package/node_modules/zod/v4/locales/ro.d.cts +0 -5
- package/node_modules/zod/v4/locales/ro.d.ts +0 -4
- package/node_modules/zod/v4/locales/ro.js +0 -119
- package/node_modules/zod/v4/locales/ru.cjs +0 -183
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -156
- package/node_modules/zod/v4/locales/sl.cjs +0 -136
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -109
- package/node_modules/zod/v4/locales/sv.cjs +0 -137
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -110
- package/node_modules/zod/v4/locales/ta.cjs +0 -137
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -110
- package/node_modules/zod/v4/locales/th.cjs +0 -137
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -110
- package/node_modules/zod/v4/locales/tr.cjs +0 -132
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/zod/v4/locales/tr.js +0 -105
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -135
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -108
- package/node_modules/zod/v4/locales/ur.cjs +0 -137
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -110
- package/node_modules/zod/v4/locales/uz.cjs +0 -137
- package/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/zod/v4/locales/uz.js +0 -110
- package/node_modules/zod/v4/locales/vi.cjs +0 -135
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -108
- package/node_modules/zod/v4/locales/yo.cjs +0 -134
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -107
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -109
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -107
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/zod/v4/mini/external.cjs +0 -63
- package/node_modules/zod/v4/mini/external.d.cts +0 -13
- package/node_modules/zod/v4/mini/external.d.ts +0 -13
- package/node_modules/zod/v4/mini/external.js +0 -14
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/zod/v4/mini/package.json +0 -7
- package/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
- package/node_modules/zod/v4/mini/schemas.js +0 -961
- package/node_modules/zod/v4/package.json +0 -7
- package/node_modules/zod/v4-mini/index.cjs +0 -32
- package/node_modules/zod/v4-mini/index.d.cts +0 -3
- package/node_modules/zod/v4-mini/index.d.ts +0 -3
- package/node_modules/zod/v4-mini/index.js +0 -3
- package/node_modules/zod/v4-mini/package.json +0 -7
|
@@ -1,106 +1,71 @@
|
|
|
1
1
|
import type { App } from "@modelcontextprotocol/ext-apps";
|
|
2
2
|
import type { ContentBlock } from "@modelcontextprotocol/server";
|
|
3
|
+
/** Model-visible state owned by one mounted view runtime. */
|
|
4
|
+
export type ViewState = Record<string, unknown>;
|
|
5
|
+
/** Reserved field carrying the serialized {@link ModelContext} tree. */
|
|
6
|
+
export declare const UI_CONTEXT_KEY: "_uiContext";
|
|
3
7
|
interface ModelContextNode {
|
|
4
8
|
id: string;
|
|
5
9
|
parentId: string | null;
|
|
6
10
|
content: string;
|
|
7
11
|
}
|
|
8
|
-
/**
|
|
9
|
-
* Complete `ui/update-model-context` params built from the store — the wire
|
|
10
|
-
* shape of the MCP Apps spec's `content` blocks. Each push carries the full
|
|
11
|
-
* current state (the spec's overwrite semantics).
|
|
12
|
-
*
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
12
|
+
/** Complete model-visible snapshot sent on every update. */
|
|
15
13
|
export interface ModelContextParams {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
14
|
+
structuredContent: ViewState & {
|
|
15
|
+
[UI_CONTEXT_KEY]: string;
|
|
16
|
+
};
|
|
20
17
|
content: ContentBlock[];
|
|
21
18
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Narrow runtime surface the flush pump needs to connect and send.
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
19
|
+
/** Narrow runtime surface used by the shared state/context flush pump. */
|
|
27
20
|
export interface ModelContextStoreHost {
|
|
28
21
|
/** Connect once, or return the cached in-flight / settled connection promise. */
|
|
29
22
|
connect(): Promise<App>;
|
|
30
23
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Mark that the missing-`updateModelContext` warning has been emitted.
|
|
33
|
-
*
|
|
34
|
-
* @returns `true` if this call should emit the warning (first time only).
|
|
35
|
-
*
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
24
|
+
/** Mark that the missing-capability warning has been emitted. */
|
|
38
25
|
export declare function markModelContextUnsupportedWarned(): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* @internal Reset the missing-capability warn-once flag between tests.
|
|
41
|
-
*
|
|
42
|
-
* Prefer {@link _resetModelContextForTesting} from `model-context.tsx` when the
|
|
43
|
-
* active runtime's store must also be cleared; this seam only resets the
|
|
44
|
-
* document-level warn flag (dispose already drops the store).
|
|
45
|
-
*/
|
|
26
|
+
/** Reset the missing-capability warn-once flag between tests. */
|
|
46
27
|
export declare function _resetModelContextForTesting(): void;
|
|
47
|
-
/**
|
|
48
|
-
* @internal Reset the missing-capability warn-once flag between tests.
|
|
49
|
-
*/
|
|
28
|
+
/** Reset the missing-capability warn-once flag between tests. */
|
|
50
29
|
export declare function _resetModelContextUnsupportedWarnedForTesting(): void;
|
|
51
30
|
/**
|
|
52
|
-
* Per-runtime model-context
|
|
31
|
+
* Per-runtime view-state document, model-context tree, and async flush pump.
|
|
53
32
|
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
33
|
+
* `useViewState`, `ModelContext`, and the imperative `modelContext` API all
|
|
34
|
+
* mutate this single owner. Each delivery contains the complete merged
|
|
35
|
+
* snapshot because `ui/update-model-context` has overwrite semantics.
|
|
57
36
|
*
|
|
58
37
|
* @internal
|
|
59
38
|
*/
|
|
60
39
|
export declare class ModelContextStore {
|
|
61
40
|
#private;
|
|
62
|
-
/**
|
|
63
|
-
* @param host - Runtime bridge used to `connect` and send updates.
|
|
64
|
-
*/
|
|
41
|
+
/** Create a store backed by the owning view runtime's host connection. */
|
|
65
42
|
constructor(host: ModelContextStoreHost);
|
|
43
|
+
/** Stable external-store subscription used by `useViewState`. */
|
|
44
|
+
readonly subscribeViewState: (listener: () => void) => (() => void);
|
|
45
|
+
/** Current canonical view state, excluding the reserved UI-context field. */
|
|
46
|
+
readonly getViewStateSnapshot: () => ViewState | null;
|
|
66
47
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* @param node - Node identity, parent link, and text content.
|
|
48
|
+
* Initialize view state from a hook default when ChatGPT restored no state.
|
|
49
|
+
* The first hook default wins; later conflicting defaults warn in development.
|
|
70
50
|
*/
|
|
51
|
+
initializeViewState(defaultState: ViewState): void;
|
|
52
|
+
/** Resolve and apply a `useState`-style update synchronously. */
|
|
53
|
+
updateViewState(updater: (previous: ViewState | null) => ViewState): void;
|
|
54
|
+
/** Register or replace a model-context node and schedule a merged flush. */
|
|
71
55
|
setNode(node: ModelContextNode): void;
|
|
72
|
-
/**
|
|
73
|
-
* Remove a node by id and schedule a flush.
|
|
74
|
-
*
|
|
75
|
-
* @param id - Node id previously passed to {@link setNode}.
|
|
76
|
-
*/
|
|
56
|
+
/** Remove a model-context node and schedule a merged flush. */
|
|
77
57
|
removeNode(id: string): void;
|
|
78
|
-
/** Remove every node
|
|
58
|
+
/** Remove every model-context node. */
|
|
79
59
|
clear(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Invalidate the store: ignore late in-flight completions and reject further
|
|
82
|
-
* mutations. Does not send a final clear — the runtime is going away.
|
|
83
|
-
*/
|
|
60
|
+
/** Invalidate the store and ignore late in-flight completions. */
|
|
84
61
|
dispose(): void;
|
|
85
|
-
/**
|
|
86
|
-
* Serialize the registered tree into an indented markdown-like string.
|
|
87
|
-
*
|
|
88
|
-
* @returns Description text, or `""` when nothing is registered.
|
|
89
|
-
*/
|
|
62
|
+
/** Serialize registered context nodes into an indented markdown list. */
|
|
90
63
|
buildDescriptionString(): string;
|
|
91
|
-
/**
|
|
92
|
-
* Build the `ui/update-model-context` params from the current tree.
|
|
93
|
-
*
|
|
94
|
-
* @returns Empty `content` when nothing is registered; otherwise one text block.
|
|
95
|
-
*/
|
|
64
|
+
/** Build the complete merged payload sent through either host transport. */
|
|
96
65
|
buildModelContextParams(): ModelContextParams;
|
|
97
|
-
/**
|
|
98
|
-
* @internal Clear nodes and pump state between tests without disposing the
|
|
99
|
-
* owning runtime (warn-once flag is reset separately).
|
|
100
|
-
*/
|
|
66
|
+
/** Clear state between tests without disposing the owning runtime. */
|
|
101
67
|
resetForTesting(): void;
|
|
102
|
-
/**
|
|
68
|
+
/** Internal serialized tree for tests. */
|
|
103
69
|
getDescriptionForTesting(): string;
|
|
104
70
|
}
|
|
105
71
|
export {};
|
|
106
|
-
//# sourceMappingURL=model-context-store.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { App, type McpUiHostContext, type RegisteredAppTool } from "@modelcontextprotocol/ext-apps";
|
|
2
2
|
import type { CallToolResult, ContentBlock } from "@modelcontextprotocol/server";
|
|
3
3
|
import type { DisplayMode } from "../types/host-types.js";
|
|
4
|
+
import type { FileMetadata } from "../types/file-types.js";
|
|
4
5
|
import { type ToolContextError } from "../types/result-types.js";
|
|
5
6
|
import { ModelContextStore } from "./model-context-store.js";
|
|
6
7
|
import type { NormalizedViewConfig } from "./view-config.js";
|
|
@@ -64,6 +65,18 @@ export interface DisplaySnapshot {
|
|
|
64
65
|
*/
|
|
65
66
|
availableDisplayModes: readonly DisplayMode[];
|
|
66
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* ChatGPT file-extension channel snapshot.
|
|
70
|
+
*
|
|
71
|
+
* This channel deliberately represents only the optional file APIs used by
|
|
72
|
+
* `useFiles`; the runtime does not mirror other `window.openai` globals.
|
|
73
|
+
*
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
export interface FilesSnapshot {
|
|
77
|
+
/** Whether both upload and temporary-download-url helpers are available. */
|
|
78
|
+
isSupported: boolean;
|
|
79
|
+
}
|
|
67
80
|
/**
|
|
68
81
|
* Parameters for {@link McpAppRuntime.callServerTool}.
|
|
69
82
|
*
|
|
@@ -109,7 +122,7 @@ export type ViewToolCallback = Parameters<App["registerTool"]>[2];
|
|
|
109
122
|
/**
|
|
110
123
|
* Per-document MCP Apps runtime: owns one guest {@link App}, one cached
|
|
111
124
|
* connection attempt, tool-handler handoff, narrow external-store channels,
|
|
112
|
-
* one
|
|
125
|
+
* one shared view-state/model-context store, and disposal.
|
|
113
126
|
*
|
|
114
127
|
* Created by {@link createMcpAppRuntime} / {@link bootstrapView}. Hooks obtain
|
|
115
128
|
* the instance from {@link ViewRuntimeContext}.
|
|
@@ -120,7 +133,7 @@ export interface McpAppRuntime {
|
|
|
120
133
|
/** Normalized immutable view configuration fixed at construction. */
|
|
121
134
|
readonly config: NormalizedViewConfig;
|
|
122
135
|
/**
|
|
123
|
-
* Per-runtime model-context
|
|
136
|
+
* Per-runtime structured view state, model-context tree, and async flush pump.
|
|
124
137
|
*
|
|
125
138
|
* Constructed with this runtime and disposed with it. React components obtain
|
|
126
139
|
* it via {@link useViewRuntime}; the imperative `modelContext` API delegates
|
|
@@ -157,6 +170,10 @@ export interface McpAppRuntime {
|
|
|
157
170
|
* negotiated `availableDisplayModes` change).
|
|
158
171
|
*/
|
|
159
172
|
getDisplaySnapshot(): DisplaySnapshot;
|
|
173
|
+
/** Subscribe to ChatGPT file-extension availability changes. */
|
|
174
|
+
subscribeFiles(listener: Listener): () => void;
|
|
175
|
+
/** Current ChatGPT file-extension snapshot. */
|
|
176
|
+
getFilesSnapshot(): FilesSnapshot;
|
|
160
177
|
/** Runtime-owned guest {@link App}, or `null` after disposal. */
|
|
161
178
|
getApp(): App | null;
|
|
162
179
|
/** Call a server tool through the host. */
|
|
@@ -169,6 +186,12 @@ export interface McpAppRuntime {
|
|
|
169
186
|
requestDisplayMode(params: RequestDisplayModeParams): Promise<void>;
|
|
170
187
|
/** Notify the host of a size change. */
|
|
171
188
|
sendSizeChanged(params: SizeChangedParams): Promise<void>;
|
|
189
|
+
/** Upload a file through ChatGPT's optional file extension. */
|
|
190
|
+
uploadFile(file: File): Promise<FileMetadata>;
|
|
191
|
+
/** Request a temporary download URL through ChatGPT's file extension. */
|
|
192
|
+
getFileDownloadUrl(file: FileMetadata): Promise<{
|
|
193
|
+
downloadUrl: string;
|
|
194
|
+
}>;
|
|
172
195
|
/**
|
|
173
196
|
* Register a view tool, performing the empty-handler → registry handoff on
|
|
174
197
|
* the first call. Must remain synchronous relative to the handoff.
|
|
@@ -254,4 +277,3 @@ export declare function _getAppForTesting(): App | null;
|
|
|
254
277
|
/** @internal Active runtime instance (Phase 5 runtime tests). */
|
|
255
278
|
export declare function _getRuntimeForTesting(): McpAppRuntime | null;
|
|
256
279
|
export {};
|
|
257
|
-
//# sourceMappingURL=view-runtime.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Opaque file reference returned by {@link useFiles}. */
|
|
2
|
+
export type FileMetadata = {
|
|
3
|
+
fileId: string;
|
|
4
|
+
};
|
|
5
|
+
/** Value returned by {@link useFiles}. */
|
|
6
|
+
export interface UseFilesResult {
|
|
7
|
+
/** Whether the ChatGPT file upload and download extensions are available. */
|
|
8
|
+
isSupported: boolean;
|
|
9
|
+
/** Upload a file through ChatGPT. */
|
|
10
|
+
upload(file: File): Promise<FileMetadata>;
|
|
11
|
+
/** Request a temporary download URL for an uploaded file. */
|
|
12
|
+
getDownloadUrl(file: FileMetadata): Promise<{
|
|
13
|
+
downloadUrl: string;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ToolRef } from "../../tools.js";
|
|
2
|
-
/** Augmented by the project's `
|
|
2
|
+
/** Augmented by the project's `mcp-env.d.ts`; empty by default. */
|
|
3
3
|
export interface Register {
|
|
4
4
|
}
|
|
5
5
|
type RegisteredToolsModule = Register extends {
|
|
6
6
|
tools: infer M;
|
|
7
|
-
} ? M :
|
|
7
|
+
} ? M : undefined;
|
|
8
8
|
type ToolsFromModule<M> = {
|
|
9
9
|
[K in keyof M as M[K] extends ToolRef<infer N, any, any> ? N : never]: M[K] extends ToolRef<any, infer I, infer O> ? {
|
|
10
10
|
input: I;
|
|
@@ -14,8 +14,16 @@ type ToolsFromModule<M> = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Map of registered tool names to their inferred input/output types, derived
|
|
16
16
|
* from exported {@link ToolRef} values in the augmented {@link Register} module.
|
|
17
|
+
*
|
|
18
|
+
* Projects without an `mcp-env.d.ts` registration retain a loose string map so
|
|
19
|
+
* existing non-scaffolded applications keep compiling. Once the module is
|
|
20
|
+
* registered, only exported tool refs are accepted by typed React hooks; an
|
|
21
|
+
* empty registered module therefore exposes no tool names.
|
|
17
22
|
*/
|
|
18
|
-
export type RegisteredTools =
|
|
23
|
+
export type RegisteredTools = RegisteredToolsModule extends undefined ? Record<string, {
|
|
24
|
+
input: Record<string, unknown>;
|
|
25
|
+
output: unknown;
|
|
26
|
+
}> : ToolsFromModule<RegisteredToolsModule>;
|
|
19
27
|
/**
|
|
20
28
|
* Recursive partial for streamed JSON: every field optional at every depth.
|
|
21
29
|
*
|
|
@@ -26,4 +34,3 @@ export type DeepPartial<T> = T extends (infer E)[] ? DeepPartial<E>[] : T extend
|
|
|
26
34
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
35
|
} : T;
|
|
28
36
|
export {};
|
|
29
|
-
//# sourceMappingURL=register.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CompleteResourceTemplateCallback } from "@modelcontextprotocol/server";
|
|
2
|
+
import type { ResourceTemplateCompleter } from "./resources.js";
|
|
3
|
+
/**
|
|
4
|
+
* Convert public static and callback completions to the SDK callback map.
|
|
5
|
+
*
|
|
6
|
+
* @param completions - Public completion providers keyed by template variable.
|
|
7
|
+
* @returns The callback-only map required by the official SDK.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare function normalizeCompletions(completions: Readonly<Record<string, ResourceTemplateCompleter | undefined>>): Record<string, CompleteResourceTemplateCallback>;
|
package/dist/resources.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ReadResourceResult } from "@modelcontextprotocol/server";
|
|
1
|
+
import type { Annotations, CallToolResult, CompleteResourceTemplateCallback, MetaObject, ReadResourceResult } from "@modelcontextprotocol/server";
|
|
2
|
+
import type { Env } from "hono";
|
|
2
3
|
import type { RequestContext } from "./context.js";
|
|
3
4
|
/** Declares a static resource at a fixed URI. First argument to {@link MCPServer.resource}. */
|
|
4
5
|
export interface ResourceDefinition {
|
|
@@ -15,11 +16,24 @@ export interface ResourceDefinition {
|
|
|
15
16
|
* own `mimeType` on the wire — set it in the callback's result.
|
|
16
17
|
*/
|
|
17
18
|
mimeType?: string;
|
|
19
|
+
/** Standard MCP hints describing the resource's audience and presentation. */
|
|
20
|
+
annotations?: Annotations;
|
|
21
|
+
/**
|
|
22
|
+
* Extension metadata advertised on this resource's `resources/list`
|
|
23
|
+
* descriptor. Use vendor-namespaced keys for custom data.
|
|
24
|
+
*
|
|
25
|
+
* This value is not copied into `resources/read` content entries; content
|
|
26
|
+
* metadata must be returned by the callback on each entry's own `_meta`.
|
|
27
|
+
*/
|
|
28
|
+
_meta?: MetaObject;
|
|
18
29
|
}
|
|
19
30
|
/**
|
|
20
|
-
* Resource read callback.
|
|
31
|
+
* Resource read callback. Prefer the SDK's raw {@link ReadResourceResult};
|
|
21
32
|
* each `contents` entry addresses itself with the read `uri`.
|
|
22
33
|
*
|
|
34
|
+
* Deprecated response helpers that return a {@link CallToolResult} are still
|
|
35
|
+
* accepted and converted at registration time.
|
|
36
|
+
*
|
|
23
37
|
* @example
|
|
24
38
|
* ```ts
|
|
25
39
|
* async (uri) => ({
|
|
@@ -27,19 +41,64 @@ export interface ResourceDefinition {
|
|
|
27
41
|
* })
|
|
28
42
|
* ```
|
|
29
43
|
*/
|
|
30
|
-
export type ResourceCallback<TUser = never, HasOAuth extends boolean = false> = (uri: URL, ctx: RequestContext<TUser, HasOAuth>) => ReadResourceResult | Promise<ReadResourceResult>;
|
|
31
|
-
/**
|
|
32
|
-
|
|
44
|
+
export type ResourceCallback<TUser = never, HasOAuth extends boolean = false, TEnv extends Env = Env> = (uri: URL, ctx: RequestContext<TUser, HasOAuth, TEnv>) => ReadResourceResult | CallToolResult | Promise<ReadResourceResult | CallToolResult>;
|
|
45
|
+
/**
|
|
46
|
+
* A resource-template variable completer accepted by
|
|
47
|
+
* {@link MCPServer.resourceTemplate}.
|
|
48
|
+
*
|
|
49
|
+
* Static values are matched case-insensitively against the beginning of the
|
|
50
|
+
* current value. Callback completions use the official SDK callback shape and
|
|
51
|
+
* may inspect the other resolved string arguments in its optional context.
|
|
52
|
+
* The SDK limits wire results to 100 values and derives `total` and `hasMore`
|
|
53
|
+
* from the returned array.
|
|
54
|
+
*/
|
|
55
|
+
export type ResourceTemplateCompleter = readonly string[] | CompleteResourceTemplateCallback;
|
|
56
|
+
/**
|
|
57
|
+
* Per-variable completion map inferred from an RFC 6570 URI template.
|
|
58
|
+
*
|
|
59
|
+
* Literal templates accept only variables declared by the template. A
|
|
60
|
+
* widened `string` template accepts arbitrary string keys because its
|
|
61
|
+
* variables cannot be known at compile time.
|
|
62
|
+
*
|
|
63
|
+
* @typeParam TUriTemplate - URI template whose variables become map keys.
|
|
64
|
+
*/
|
|
65
|
+
export type ResourceTemplateCompletions<TUriTemplate extends string> = string extends TUriTemplate ? Partial<Record<string, ResourceTemplateCompleter>> : Partial<Record<ExtractTemplateVariables<TUriTemplate>, ResourceTemplateCompleter>>;
|
|
66
|
+
/**
|
|
67
|
+
* Declares a parameterized resource matched by URI template.
|
|
68
|
+
*
|
|
69
|
+
* @typeParam TUriTemplate - Literal URI template used to infer read variables
|
|
70
|
+
* and completion keys.
|
|
71
|
+
*/
|
|
72
|
+
export interface ResourceTemplateDefinition<TUriTemplate extends string = string> {
|
|
33
73
|
/** Template display name. */
|
|
34
74
|
name: string;
|
|
35
75
|
/** RFC 6570 URI template with variables, e.g. `"db://users/{id}"`. */
|
|
36
|
-
uriTemplate:
|
|
76
|
+
uriTemplate: TUriTemplate;
|
|
37
77
|
/** Human-readable title (falls back to `name`). */
|
|
38
78
|
title?: string;
|
|
39
79
|
/** Human-readable description. */
|
|
40
80
|
description?: string;
|
|
41
81
|
/** MIME type of the content. */
|
|
42
82
|
mimeType?: string;
|
|
83
|
+
/** Standard MCP hints describing resources produced by this template. */
|
|
84
|
+
annotations?: Annotations;
|
|
85
|
+
/**
|
|
86
|
+
* Extension metadata advertised on this template's
|
|
87
|
+
* `resources/templates/list` descriptor. Use vendor-namespaced keys for
|
|
88
|
+
* custom data.
|
|
89
|
+
*
|
|
90
|
+
* This value is not copied into `resources/read` content entries; content
|
|
91
|
+
* metadata must be returned by the callback on each entry's own `_meta`.
|
|
92
|
+
*/
|
|
93
|
+
_meta?: MetaObject;
|
|
94
|
+
/**
|
|
95
|
+
* Optional completion providers keyed by URI-template variable.
|
|
96
|
+
*
|
|
97
|
+
* Static arrays use case-insensitive prefix matching. Dynamic callbacks may
|
|
98
|
+
* be synchronous or asynchronous and receive the current value plus the
|
|
99
|
+
* official completion context containing already-resolved arguments.
|
|
100
|
+
*/
|
|
101
|
+
complete?: ResourceTemplateCompletions<TUriTemplate>;
|
|
43
102
|
}
|
|
44
103
|
/** Strip a leading RFC 6570 operator (`+`, `#`, `.`, `/`, `;`, `?`, `&`) from a template expression. */
|
|
45
104
|
type StripOperator<E extends string> = E extends `${"+" | "#" | "." | "/" | ";" | "?" | "&"}${infer Rest}` ? Rest : E;
|
|
@@ -60,7 +119,11 @@ export type InferTemplateParams<T> = T extends {
|
|
|
60
119
|
} ? string extends U ? Record<string, TemplateVariableValue> : {
|
|
61
120
|
[K in ExtractTemplateVariables<U>]: TemplateVariableValue;
|
|
62
121
|
} : Record<string, TemplateVariableValue>;
|
|
63
|
-
/**
|
|
64
|
-
|
|
122
|
+
/**
|
|
123
|
+
* Resource template read callback; receives the matched URI and variables.
|
|
124
|
+
*
|
|
125
|
+
* Prefer {@link ReadResourceResult}. Deprecated helper-shaped
|
|
126
|
+
* {@link CallToolResult} returns are still accepted and converted.
|
|
127
|
+
*/
|
|
128
|
+
export type ResourceTemplateCallback<TParams = Record<string, TemplateVariableValue>, TUser = never, HasOAuth extends boolean = false, TEnv extends Env = Env> = (uri: URL, params: TParams, ctx: RequestContext<TUser, HasOAuth, TEnv>) => ReadResourceResult | CallToolResult | Promise<ReadResourceResult | CallToolResult>;
|
|
65
129
|
export {};
|
|
66
|
-
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CallToolResult, GetPromptResult, ReadResourceResult } from "@modelcontextprotocol/server";
|
|
2
|
+
/**
|
|
3
|
+
* Convert a helper/`CallToolResult` (or pass through a raw resource result) to
|
|
4
|
+
* {@link ReadResourceResult}.
|
|
5
|
+
*
|
|
6
|
+
* Maps official {@link ContentBlock}s: `text` → text contents, `image`/`audio`
|
|
7
|
+
* `data` → `blob`, embedded `resource` → unwrap, `resource_link` skipped.
|
|
8
|
+
* Empty `content` with `structuredContent` becomes a JSON text entry.
|
|
9
|
+
*
|
|
10
|
+
* @param result - Tool-shaped or resource result from a resource callback.
|
|
11
|
+
* @param uri - URI of the resource being read (used for synthesized entries).
|
|
12
|
+
* @returns Official resource read envelope.
|
|
13
|
+
*/
|
|
14
|
+
export declare function toResourceResult(result: CallToolResult | ReadResourceResult, uri: string): ReadResourceResult;
|
|
15
|
+
/**
|
|
16
|
+
* Convert a helper/`CallToolResult` (or pass through a raw prompt result) to
|
|
17
|
+
* {@link GetPromptResult}.
|
|
18
|
+
*
|
|
19
|
+
* Each tool {@link ContentBlock} becomes a `user` {@link PromptMessage}
|
|
20
|
+
* (prompt messages already accept the same content-block union).
|
|
21
|
+
*
|
|
22
|
+
* @param result - Tool-shaped or prompt result from a prompt callback.
|
|
23
|
+
* @returns Official prompt get envelope.
|
|
24
|
+
*/
|
|
25
|
+
export declare function toPromptResult(result: CallToolResult | GetPromptResult): GetPromptResult;
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import type { CallToolResult } from "@modelcontextprotocol/server";
|
|
2
|
+
/**
|
|
3
|
+
* Typed {@link CallToolResult} that constrains `structuredContent` to `T`.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Prefer returning a raw {@link CallToolResult} from tool
|
|
6
|
+
* callbacks. Example: `{ content: [{ type: "text", text: JSON.stringify(data) }], structuredContent: data }`.
|
|
7
|
+
*
|
|
8
|
+
* @typeParam T - Structured payload type (typically an object).
|
|
9
|
+
*/
|
|
10
|
+
export interface TypedCallToolResult<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
content: CallToolResult["content"];
|
|
13
|
+
isError?: CallToolResult["isError"];
|
|
14
|
+
_meta?: CallToolResult["_meta"];
|
|
15
|
+
structuredContent?: T;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Content-only tool result (`structuredContent` pinned to `never`).
|
|
19
|
+
*
|
|
20
|
+
* @deprecated Prefer returning a raw {@link CallToolResult}:
|
|
21
|
+
* `{ content: [{ type: "text", text }] }`.
|
|
22
|
+
*/
|
|
23
|
+
export interface ToolContentResult {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
content: CallToolResult["content"];
|
|
26
|
+
isError?: CallToolResult["isError"];
|
|
27
|
+
_meta?: CallToolResult["_meta"];
|
|
28
|
+
structuredContent?: never;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a plain-text tool result.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated Prefer `{ content: [{ type: "text", text: content }] }`.
|
|
34
|
+
*
|
|
35
|
+
* @param content - Text to return.
|
|
36
|
+
* @returns Tool result with a single text content block.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* // Preferred:
|
|
41
|
+
* return { content: [{ type: "text", text: `Hello, ${name}!` }] };
|
|
42
|
+
* // Deprecated:
|
|
43
|
+
* return text(`Hello, ${name}!`);
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function text(content: string): ToolContentResult;
|
|
47
|
+
/**
|
|
48
|
+
* Create a Markdown text tool result.
|
|
49
|
+
*
|
|
50
|
+
* @deprecated Prefer `{ content: [{ type: "text", text: content }] }`.
|
|
51
|
+
*
|
|
52
|
+
* @param content - Markdown text.
|
|
53
|
+
* @returns Tool result with `text/markdown` MIME metadata.
|
|
54
|
+
*/
|
|
55
|
+
export declare function markdown(content: string): ToolContentResult;
|
|
56
|
+
/**
|
|
57
|
+
* Create an HTML text tool result.
|
|
58
|
+
*
|
|
59
|
+
* @deprecated Prefer `{ content: [{ type: "text", text: content }] }`.
|
|
60
|
+
*
|
|
61
|
+
* @param content - HTML text.
|
|
62
|
+
* @returns Tool result with `text/html` MIME metadata.
|
|
63
|
+
*/
|
|
64
|
+
export declare function html(content: string): ToolContentResult;
|
|
65
|
+
/**
|
|
66
|
+
* Create an XML text tool result.
|
|
67
|
+
*
|
|
68
|
+
* @deprecated Prefer `{ content: [{ type: "text", text: content }] }`.
|
|
69
|
+
*
|
|
70
|
+
* @param content - XML text.
|
|
71
|
+
* @returns Tool result with `text/xml` MIME metadata.
|
|
72
|
+
*/
|
|
73
|
+
export declare function xml(content: string): ToolContentResult;
|
|
74
|
+
/**
|
|
75
|
+
* Create a CSS text tool result.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated Prefer `{ content: [{ type: "text", text: content }] }`.
|
|
78
|
+
*
|
|
79
|
+
* @param content - CSS text.
|
|
80
|
+
* @returns Tool result with `text/css` MIME metadata.
|
|
81
|
+
*/
|
|
82
|
+
export declare function css(content: string): ToolContentResult;
|
|
83
|
+
/**
|
|
84
|
+
* Create a JavaScript text tool result.
|
|
85
|
+
*
|
|
86
|
+
* @deprecated Prefer `{ content: [{ type: "text", text: content }] }`.
|
|
87
|
+
*
|
|
88
|
+
* @param content - JavaScript source text.
|
|
89
|
+
* @returns Tool result with `text/javascript` MIME metadata.
|
|
90
|
+
*/
|
|
91
|
+
export declare function javascript(content: string): ToolContentResult;
|
|
92
|
+
/**
|
|
93
|
+
* Create an image content tool result.
|
|
94
|
+
*
|
|
95
|
+
* @deprecated Prefer
|
|
96
|
+
* `{ content: [{ type: "image", data, mimeType }] }`.
|
|
97
|
+
*
|
|
98
|
+
* @param data - Base64 image data (or data URL payload).
|
|
99
|
+
* @param mimeType - Image MIME type.
|
|
100
|
+
* @returns Tool result with an image content block.
|
|
101
|
+
*
|
|
102
|
+
* @defaultValue mimeType - `"image/png"`
|
|
103
|
+
*/
|
|
104
|
+
export declare function image(data: string, mimeType?: string): ToolContentResult;
|
|
105
|
+
/**
|
|
106
|
+
* Create an audio content tool result from base64 data.
|
|
107
|
+
*
|
|
108
|
+
* @deprecated Prefer
|
|
109
|
+
* `{ content: [{ type: "audio", data, mimeType }] }`.
|
|
110
|
+
*
|
|
111
|
+
* @param data - Base64-encoded audio.
|
|
112
|
+
* @param mimeType - Audio MIME type.
|
|
113
|
+
* @returns Tool result with an audio content block.
|
|
114
|
+
*
|
|
115
|
+
* @defaultValue mimeType - `"audio/wav"`
|
|
116
|
+
*/
|
|
117
|
+
export declare function audio(data: string, mimeType?: string): ToolContentResult;
|
|
118
|
+
/**
|
|
119
|
+
* Create a binary payload carried as base64 text.
|
|
120
|
+
*
|
|
121
|
+
* @deprecated Prefer a raw {@link CallToolResult} with an appropriate content
|
|
122
|
+
* block, or a resource `{ contents: [{ uri, mimeType, blob }] }`.
|
|
123
|
+
*
|
|
124
|
+
* @param base64Data - Base64-encoded bytes.
|
|
125
|
+
* @param mimeType - MIME type of the binary payload.
|
|
126
|
+
* @returns Tool result with base64 text and binary MIME metadata.
|
|
127
|
+
*/
|
|
128
|
+
export declare function binary(base64Data: string, mimeType: string): ToolContentResult;
|
|
129
|
+
/**
|
|
130
|
+
* Create an embedded-resource content block for a tool result.
|
|
131
|
+
*
|
|
132
|
+
* Supports `resource(uri, mimeType, text?)` or `resource(uri, callToolResult)`.
|
|
133
|
+
*
|
|
134
|
+
* @deprecated Prefer
|
|
135
|
+
* `{ content: [{ type: "resource", resource: { uri, mimeType, text } }] }`.
|
|
136
|
+
*
|
|
137
|
+
* @param uri - Resource URI.
|
|
138
|
+
* @param mimeTypeOrContent - MIME type string, or a helper/`CallToolResult` to extract from.
|
|
139
|
+
* @param text - Optional text body (3-arg form).
|
|
140
|
+
* @returns Tool result with an embedded resource content block.
|
|
141
|
+
*/
|
|
142
|
+
export declare function resource(uri: string, mimeTypeOrContent: string | CallToolResult | TypedCallToolResult, text?: string): ToolContentResult;
|
|
143
|
+
/**
|
|
144
|
+
* Create a failed tool result.
|
|
145
|
+
*
|
|
146
|
+
* @deprecated Prefer
|
|
147
|
+
* `{ isError: true, content: [{ type: "text", text: message }] }`.
|
|
148
|
+
*
|
|
149
|
+
* @param message - Error message shown to the model.
|
|
150
|
+
* @returns Tool result with `isError: true`.
|
|
151
|
+
*/
|
|
152
|
+
export declare function error(message: string): TypedCallToolResult<never>;
|
|
153
|
+
/**
|
|
154
|
+
* Create a structured JSON object tool result.
|
|
155
|
+
*
|
|
156
|
+
* @deprecated Prefer
|
|
157
|
+
* `{ content: [{ type: "text", text: JSON.stringify(data) }], structuredContent: data }`.
|
|
158
|
+
*
|
|
159
|
+
* @typeParam T - Object payload type.
|
|
160
|
+
* @param data - Object (or array — forwarded to {@link array}) to return.
|
|
161
|
+
* @returns Tool result with JSON text and `structuredContent`.
|
|
162
|
+
*/
|
|
163
|
+
export declare function object<T extends Record<string, unknown>>(data: T): TypedCallToolResult<T>;
|
|
164
|
+
/**
|
|
165
|
+
* Create a structured array tool result (2026 any-JSON root — no `{ data }` wrap).
|
|
166
|
+
*
|
|
167
|
+
* @deprecated Prefer
|
|
168
|
+
* `{ content: [{ type: "text", text: JSON.stringify(data) }], structuredContent: data }`
|
|
169
|
+
* or `{ content: [], structuredContent: data }` (SDK may auto-append JSON text for
|
|
170
|
+
* non-object roots).
|
|
171
|
+
*
|
|
172
|
+
* @typeParam T - Array payload type.
|
|
173
|
+
* @param data - Array to return as `structuredContent`.
|
|
174
|
+
* @returns Tool result with JSON text and the array as `structuredContent`.
|
|
175
|
+
*/
|
|
176
|
+
export declare function array<T extends unknown[]>(data: T): CallToolResult;
|
|
177
|
+
/**
|
|
178
|
+
* Runtime data for a view-bound tool result (legacy widget helper).
|
|
179
|
+
*
|
|
180
|
+
* @deprecated Prefer returning a plain {@link CallToolResult} from a tool
|
|
181
|
+
* registered with `view: { name }`. Put view props in `structuredContent` and
|
|
182
|
+
* model-facing text in `content`.
|
|
183
|
+
*
|
|
184
|
+
* @typeParam TProps - Props object placed in `structuredContent`.
|
|
185
|
+
*/
|
|
186
|
+
export interface WidgetResponseConfig<TProps extends Record<string, unknown> = Record<string, unknown>> {
|
|
187
|
+
/** View-facing data sent as `structuredContent`. */
|
|
188
|
+
props?: TProps;
|
|
189
|
+
/**
|
|
190
|
+
* Legacy alias for {@link WidgetResponseConfig.props}.
|
|
191
|
+
*
|
|
192
|
+
* @deprecated Use `props` instead.
|
|
193
|
+
*/
|
|
194
|
+
data?: TProps;
|
|
195
|
+
/** Model-facing helper/`CallToolResult` whose `content` is forwarded. */
|
|
196
|
+
output?: CallToolResult | TypedCallToolResult;
|
|
197
|
+
/** Extra result `_meta` for the view. */
|
|
198
|
+
metadata?: Record<string, unknown>;
|
|
199
|
+
/** Override text when `output` is omitted or should be replaced. */
|
|
200
|
+
message?: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Create a view/widget tool result (`props` → `structuredContent`).
|
|
204
|
+
*
|
|
205
|
+
* @deprecated Prefer a plain {@link CallToolResult} with `view:` on the tool
|
|
206
|
+
* definition:
|
|
207
|
+
* `{ content: [{ type: "text", text }], structuredContent: props }`.
|
|
208
|
+
*
|
|
209
|
+
* @typeParam TProps - Props object type.
|
|
210
|
+
* @param config - Runtime view data.
|
|
211
|
+
* @returns Tool result with props in `structuredContent`.
|
|
212
|
+
*/
|
|
213
|
+
export declare function widget<TProps extends Record<string, unknown> = Record<string, unknown>>(config: WidgetResponseConfig<TProps>): TypedCallToolResult<TProps>;
|
|
214
|
+
/**
|
|
215
|
+
* Merge several tool results into one (`content` concatenated; objects shallow-merged).
|
|
216
|
+
*
|
|
217
|
+
* @deprecated Prefer building a single raw {@link CallToolResult} with the
|
|
218
|
+
* desired `content` array.
|
|
219
|
+
*
|
|
220
|
+
* @param results - Results to merge.
|
|
221
|
+
* @returns Combined tool result.
|
|
222
|
+
*/
|
|
223
|
+
export declare function mix(...results: CallToolResult[]): CallToolResult;
|