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
package/dist/react/index.js
CHANGED
|
@@ -158,7 +158,7 @@ var ToolError = class extends Error {
|
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
// src/react/runtime/model-context-store.ts
|
|
161
|
-
var
|
|
161
|
+
var UI_CONTEXT_KEY = "_uiContext";
|
|
162
162
|
var warnedModelContextUnsupported = false;
|
|
163
163
|
function markModelContextUnsupportedWarned() {
|
|
164
164
|
if (warnedModelContextUnsupported) {
|
|
@@ -167,63 +167,119 @@ function markModelContextUnsupportedWarned() {
|
|
|
167
167
|
warnedModelContextUnsupported = true;
|
|
168
168
|
return true;
|
|
169
169
|
}
|
|
170
|
+
function getChatGptWidgetApi() {
|
|
171
|
+
if (typeof window === "undefined") return void 0;
|
|
172
|
+
const api = window.openai;
|
|
173
|
+
return typeof api?.setWidgetState === "function" ? api : void 0;
|
|
174
|
+
}
|
|
175
|
+
function filterUiContext(state) {
|
|
176
|
+
const { [UI_CONTEXT_KEY]: _, ...viewState } = state;
|
|
177
|
+
return viewState;
|
|
178
|
+
}
|
|
179
|
+
function assertValidViewState(state) {
|
|
180
|
+
if (state === null || Array.isArray(state) || typeof state !== "object") {
|
|
181
|
+
throw new TypeError("useViewState state must be a plain object");
|
|
182
|
+
}
|
|
183
|
+
if (Object.prototype.hasOwnProperty.call(state, UI_CONTEXT_KEY)) {
|
|
184
|
+
throw new TypeError(
|
|
185
|
+
`useViewState state cannot contain the reserved key "${UI_CONTEXT_KEY}"`
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
try {
|
|
189
|
+
const serialized = JSON.stringify(state);
|
|
190
|
+
if (serialized === void 0) {
|
|
191
|
+
throw new TypeError("serialization returned undefined");
|
|
192
|
+
}
|
|
193
|
+
return serialized;
|
|
194
|
+
} catch (error) {
|
|
195
|
+
const reason = error instanceof Error ? `: ${error.message}` : "";
|
|
196
|
+
throw new TypeError(
|
|
197
|
+
`useViewState state must be JSON-serializable${reason}`
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
170
201
|
var ModelContextStore = class {
|
|
171
202
|
#host;
|
|
172
203
|
#nodes = /* @__PURE__ */ new Map();
|
|
204
|
+
#viewStateListeners = /* @__PURE__ */ new Set();
|
|
173
205
|
#nextOrder = 0;
|
|
206
|
+
#viewState = null;
|
|
207
|
+
#firstDefaultSerialized = null;
|
|
174
208
|
#flushScheduled = false;
|
|
175
209
|
#disposed = false;
|
|
176
210
|
/** Bumped on {@link dispose} so late in-flight completions are ignored. */
|
|
177
211
|
#epoch = 0;
|
|
178
|
-
/**
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
#desiredSerialized = EMPTY_SERIALIZED;
|
|
183
|
-
/**
|
|
184
|
-
* Last successfully delivered payload. Starts empty so an empty push is
|
|
185
|
-
* sent only as a clear after non-empty context existed.
|
|
186
|
-
*/
|
|
187
|
-
#acknowledgedSerialized = EMPTY_SERIALIZED;
|
|
212
|
+
/** Latest complete payload, or null until state/context is first registered. */
|
|
213
|
+
#desiredSerialized = null;
|
|
214
|
+
/** Last successfully delivered payload. */
|
|
215
|
+
#acknowledgedSerialized = null;
|
|
188
216
|
#inFlight = null;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
*/
|
|
217
|
+
#removeOpenAiListener = null;
|
|
218
|
+
/** Create a store backed by the owning view runtime's host connection. */
|
|
192
219
|
constructor(host) {
|
|
193
220
|
this.#host = host;
|
|
221
|
+
this.#hydrateFromChatGpt();
|
|
194
222
|
}
|
|
223
|
+
/** Stable external-store subscription used by `useViewState`. */
|
|
224
|
+
subscribeViewState = (listener) => {
|
|
225
|
+
this.#viewStateListeners.add(listener);
|
|
226
|
+
return () => {
|
|
227
|
+
this.#viewStateListeners.delete(listener);
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
/** Current canonical view state, excluding the reserved UI-context field. */
|
|
231
|
+
getViewStateSnapshot = () => this.#viewState;
|
|
195
232
|
/**
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
* @param node - Node identity, parent link, and text content.
|
|
233
|
+
* Initialize view state from a hook default when ChatGPT restored no state.
|
|
234
|
+
* The first hook default wins; later conflicting defaults warn in development.
|
|
199
235
|
*/
|
|
236
|
+
initializeViewState(defaultState) {
|
|
237
|
+
if (this.#disposed) return;
|
|
238
|
+
const serializedDefault = assertValidViewState(defaultState);
|
|
239
|
+
if (this.#firstDefaultSerialized === null) {
|
|
240
|
+
this.#firstDefaultSerialized = serializedDefault;
|
|
241
|
+
} else if (this.#firstDefaultSerialized !== serializedDefault && (typeof process === "undefined" || true)) {
|
|
242
|
+
console.warn(
|
|
243
|
+
"[useViewState] Multiple components supplied conflicting defaults; the first initialized default wins."
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
if (this.#viewState === null) {
|
|
247
|
+
this.#viewState = defaultState;
|
|
248
|
+
this.#emitViewState();
|
|
249
|
+
this.#updateDesiredAndSchedule();
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
this.#updateDesiredAndSchedule();
|
|
253
|
+
}
|
|
254
|
+
/** Resolve and apply a `useState`-style update synchronously. */
|
|
255
|
+
updateViewState(updater) {
|
|
256
|
+
if (this.#disposed) return;
|
|
257
|
+
const nextState = updater(this.#viewState);
|
|
258
|
+
assertValidViewState(nextState);
|
|
259
|
+
this.#viewState = nextState;
|
|
260
|
+
this.#emitViewState();
|
|
261
|
+
this.#updateDesiredAndSchedule();
|
|
262
|
+
}
|
|
263
|
+
/** Register or replace a model-context node and schedule a merged flush. */
|
|
200
264
|
setNode(node) {
|
|
201
265
|
if (this.#disposed) return;
|
|
202
266
|
const order = this.#nodes.get(node.id)?.order ?? this.#nextOrder++;
|
|
203
267
|
this.#nodes.set(node.id, { ...node, order });
|
|
204
268
|
this.#updateDesiredAndSchedule();
|
|
205
269
|
}
|
|
206
|
-
/**
|
|
207
|
-
* Remove a node by id and schedule a flush.
|
|
208
|
-
*
|
|
209
|
-
* @param id - Node id previously passed to {@link setNode}.
|
|
210
|
-
*/
|
|
270
|
+
/** Remove a model-context node and schedule a merged flush. */
|
|
211
271
|
removeNode(id) {
|
|
212
272
|
if (this.#disposed) return;
|
|
213
273
|
if (!this.#nodes.delete(id)) return;
|
|
214
274
|
this.#updateDesiredAndSchedule();
|
|
215
275
|
}
|
|
216
|
-
/** Remove every node
|
|
276
|
+
/** Remove every model-context node. */
|
|
217
277
|
clear() {
|
|
218
|
-
if (this.#disposed) return;
|
|
219
|
-
if (this.#nodes.size === 0) return;
|
|
278
|
+
if (this.#disposed || this.#nodes.size === 0) return;
|
|
220
279
|
this.#nodes.clear();
|
|
221
280
|
this.#updateDesiredAndSchedule();
|
|
222
281
|
}
|
|
223
|
-
/**
|
|
224
|
-
* Invalidate the store: ignore late in-flight completions and reject further
|
|
225
|
-
* mutations. Does not send a final clear — the runtime is going away.
|
|
226
|
-
*/
|
|
282
|
+
/** Invalidate the store and ignore late in-flight completions. */
|
|
227
283
|
dispose() {
|
|
228
284
|
if (this.#disposed) return;
|
|
229
285
|
this.#disposed = true;
|
|
@@ -231,15 +287,16 @@ var ModelContextStore = class {
|
|
|
231
287
|
this.#flushScheduled = false;
|
|
232
288
|
this.#inFlight = null;
|
|
233
289
|
this.#nodes.clear();
|
|
290
|
+
this.#viewStateListeners.clear();
|
|
291
|
+
this.#removeOpenAiListener?.();
|
|
292
|
+
this.#removeOpenAiListener = null;
|
|
234
293
|
this.#nextOrder = 0;
|
|
235
|
-
this.#
|
|
236
|
-
this.#
|
|
294
|
+
this.#viewState = null;
|
|
295
|
+
this.#firstDefaultSerialized = null;
|
|
296
|
+
this.#desiredSerialized = null;
|
|
297
|
+
this.#acknowledgedSerialized = null;
|
|
237
298
|
}
|
|
238
|
-
/**
|
|
239
|
-
* Serialize the registered tree into an indented markdown-like string.
|
|
240
|
-
*
|
|
241
|
-
* @returns Description text, or `""` when nothing is registered.
|
|
242
|
-
*/
|
|
299
|
+
/** Serialize registered context nodes into an indented markdown list. */
|
|
243
300
|
buildDescriptionString() {
|
|
244
301
|
const byParent = /* @__PURE__ */ new Map();
|
|
245
302
|
for (const node of this.#nodes.values()) {
|
|
@@ -268,41 +325,76 @@ var ModelContextStore = class {
|
|
|
268
325
|
traverseTree(null, 0);
|
|
269
326
|
return lines.join("\n");
|
|
270
327
|
}
|
|
271
|
-
/**
|
|
272
|
-
* Build the `ui/update-model-context` params from the current tree.
|
|
273
|
-
*
|
|
274
|
-
* @returns Empty `content` when nothing is registered; otherwise one text block.
|
|
275
|
-
*/
|
|
328
|
+
/** Build the complete merged payload sent through either host transport. */
|
|
276
329
|
buildModelContextParams() {
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
281
|
-
return {
|
|
330
|
+
const structuredContent = {
|
|
331
|
+
...this.#viewState ?? {},
|
|
332
|
+
[UI_CONTEXT_KEY]: this.buildDescriptionString()
|
|
333
|
+
};
|
|
334
|
+
return {
|
|
335
|
+
structuredContent,
|
|
336
|
+
content: [{ type: "text", text: JSON.stringify(structuredContent) }]
|
|
337
|
+
};
|
|
282
338
|
}
|
|
283
|
-
/**
|
|
284
|
-
* @internal Clear nodes and pump state between tests without disposing the
|
|
285
|
-
* owning runtime (warn-once flag is reset separately).
|
|
286
|
-
*/
|
|
339
|
+
/** Clear state between tests without disposing the owning runtime. */
|
|
287
340
|
resetForTesting() {
|
|
288
341
|
this.#nodes.clear();
|
|
289
342
|
this.#nextOrder = 0;
|
|
343
|
+
this.#viewState = null;
|
|
344
|
+
this.#firstDefaultSerialized = null;
|
|
290
345
|
this.#flushScheduled = false;
|
|
291
346
|
this.#inFlight = null;
|
|
292
|
-
this.#desiredSerialized =
|
|
293
|
-
this.#acknowledgedSerialized =
|
|
347
|
+
this.#desiredSerialized = null;
|
|
348
|
+
this.#acknowledgedSerialized = null;
|
|
294
349
|
}
|
|
295
|
-
/**
|
|
350
|
+
/** Internal serialized tree for tests. */
|
|
296
351
|
getDescriptionForTesting() {
|
|
297
352
|
return this.buildDescriptionString();
|
|
298
353
|
}
|
|
354
|
+
#emitViewState() {
|
|
355
|
+
for (const listener of this.#viewStateListeners) {
|
|
356
|
+
listener();
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
#hydrateFromChatGpt() {
|
|
360
|
+
const api = getChatGptWidgetApi();
|
|
361
|
+
if (!api) return;
|
|
362
|
+
const applyWidgetState = (widgetState, scheduleMergedWrite) => {
|
|
363
|
+
const modelContent = widgetState?.modelContent;
|
|
364
|
+
if (modelContent === null || Array.isArray(modelContent) || typeof modelContent !== "object") {
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
const nextViewState = filterUiContext(modelContent);
|
|
368
|
+
try {
|
|
369
|
+
assertValidViewState(nextViewState);
|
|
370
|
+
} catch {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
this.#viewState = nextViewState;
|
|
374
|
+
this.#emitViewState();
|
|
375
|
+
if (scheduleMergedWrite) {
|
|
376
|
+
this.#updateDesiredAndSchedule();
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
applyWidgetState(api.widgetState, false);
|
|
380
|
+
const handleSetGlobals = (event) => {
|
|
381
|
+
if (this.#disposed) return;
|
|
382
|
+
const widgetState = event.detail?.globals?.widgetState;
|
|
383
|
+
if (widgetState !== void 0) {
|
|
384
|
+
applyWidgetState(widgetState, true);
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
window.addEventListener("openai:set_globals", handleSetGlobals);
|
|
388
|
+
this.#removeOpenAiListener = () => {
|
|
389
|
+
window.removeEventListener("openai:set_globals", handleSetGlobals);
|
|
390
|
+
};
|
|
391
|
+
}
|
|
299
392
|
#updateDesiredAndSchedule() {
|
|
300
393
|
this.#desiredSerialized = JSON.stringify(this.buildModelContextParams());
|
|
301
394
|
this.#schedulePump();
|
|
302
395
|
}
|
|
303
396
|
#schedulePump() {
|
|
304
|
-
if (this.#disposed) return;
|
|
305
|
-
if (this.#flushScheduled) return;
|
|
397
|
+
if (this.#disposed || this.#flushScheduled) return;
|
|
306
398
|
this.#flushScheduled = true;
|
|
307
399
|
queueMicrotask(() => {
|
|
308
400
|
this.#flushScheduled = false;
|
|
@@ -310,39 +402,47 @@ var ModelContextStore = class {
|
|
|
310
402
|
});
|
|
311
403
|
}
|
|
312
404
|
#pump() {
|
|
313
|
-
if (this.#disposed) return;
|
|
314
|
-
if (this.#
|
|
315
|
-
|
|
405
|
+
if (this.#disposed || this.#inFlight) return;
|
|
406
|
+
if (this.#desiredSerialized === null || this.#desiredSerialized === this.#acknowledgedSerialized) {
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
316
409
|
const params = this.buildModelContextParams();
|
|
317
410
|
const serialized = JSON.stringify(params);
|
|
318
411
|
this.#desiredSerialized = serialized;
|
|
319
412
|
if (serialized === this.#acknowledgedSerialized) return;
|
|
320
413
|
const sendEpoch = this.#epoch;
|
|
321
|
-
let sendSucceeded = false;
|
|
322
414
|
this.#inFlight = (async () => {
|
|
323
415
|
try {
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
416
|
+
const chatGptApi = getChatGptWidgetApi();
|
|
417
|
+
if (chatGptApi) {
|
|
418
|
+
await chatGptApi.setWidgetState({
|
|
419
|
+
privateContent: {},
|
|
420
|
+
...chatGptApi.widgetState,
|
|
421
|
+
modelContent: params.structuredContent
|
|
422
|
+
});
|
|
423
|
+
} else {
|
|
424
|
+
const app = await this.#host.connect();
|
|
425
|
+
if (this.#disposed || sendEpoch !== this.#epoch) return;
|
|
426
|
+
if (app.getHostCapabilities()?.updateModelContext === void 0) {
|
|
427
|
+
if (markModelContextUnsupportedWarned()) {
|
|
428
|
+
console.warn(
|
|
429
|
+
"[ModelContext] Host does not declare the updateModelContext capability; model-context updates are not sent."
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
return;
|
|
331
433
|
}
|
|
332
|
-
|
|
434
|
+
await app.updateModelContext(
|
|
435
|
+
params
|
|
436
|
+
);
|
|
333
437
|
}
|
|
334
|
-
await app.updateModelContext(
|
|
335
|
-
params
|
|
336
|
-
);
|
|
337
438
|
if (this.#disposed || sendEpoch !== this.#epoch) return;
|
|
338
439
|
this.#acknowledgedSerialized = serialized;
|
|
339
|
-
sendSucceeded = true;
|
|
340
440
|
} catch (error) {
|
|
341
441
|
if (this.#disposed || sendEpoch !== this.#epoch) return;
|
|
342
|
-
console.warn("[
|
|
442
|
+
console.warn("[mcp-use] Failed to update model context:", error);
|
|
343
443
|
} finally {
|
|
344
444
|
this.#inFlight = null;
|
|
345
|
-
if (!this.#disposed && sendEpoch === this.#epoch &&
|
|
445
|
+
if (!this.#disposed && sendEpoch === this.#epoch && this.#desiredSerialized !== serialized) {
|
|
346
446
|
this.#pump();
|
|
347
447
|
}
|
|
348
448
|
}
|
|
@@ -365,6 +465,19 @@ var defaultHostSnapshot = {
|
|
|
365
465
|
isConnected: false,
|
|
366
466
|
connectionError: void 0
|
|
367
467
|
};
|
|
468
|
+
var defaultFilesSnapshot = {
|
|
469
|
+
isSupported: false
|
|
470
|
+
};
|
|
471
|
+
function getChatGptFilesApi() {
|
|
472
|
+
if (typeof window === "undefined") return void 0;
|
|
473
|
+
return window.openai;
|
|
474
|
+
}
|
|
475
|
+
function resolveFilesSnapshot() {
|
|
476
|
+
const api = getChatGptFilesApi();
|
|
477
|
+
return {
|
|
478
|
+
isSupported: typeof api?.uploadFile === "function" && typeof api.getFileDownloadUrl === "function"
|
|
479
|
+
};
|
|
480
|
+
}
|
|
368
481
|
function resolveDisplayMode(hostContext) {
|
|
369
482
|
return hostContext?.displayMode === "fullscreen" || hostContext?.displayMode === "pip" ? hostContext.displayMode : "inline";
|
|
370
483
|
}
|
|
@@ -434,10 +547,12 @@ function createMcpAppRuntime(config, options) {
|
|
|
434
547
|
displayMode: "inline",
|
|
435
548
|
availableDisplayModes: ["inline"]
|
|
436
549
|
};
|
|
550
|
+
let filesSnapshot = resolveFilesSnapshot();
|
|
437
551
|
const toolChannel = createChannelStore();
|
|
438
552
|
const hostChannel = createChannelStore();
|
|
439
553
|
const themeChannel = createChannelStore();
|
|
440
554
|
const displayChannel = createChannelStore();
|
|
555
|
+
const filesChannel = createChannelStore();
|
|
441
556
|
function patchTool(patch) {
|
|
442
557
|
if (!toolSnapshotChanged(toolSnapshot, patch)) {
|
|
443
558
|
return;
|
|
@@ -613,6 +728,7 @@ function createMcpAppRuntime(config, options) {
|
|
|
613
728
|
hostChannel.clear();
|
|
614
729
|
themeChannel.clear();
|
|
615
730
|
displayChannel.clear();
|
|
731
|
+
filesChannel.clear();
|
|
616
732
|
toolSnapshot = { ...defaultToolSnapshot };
|
|
617
733
|
hostSnapshot = { ...defaultHostSnapshot };
|
|
618
734
|
themeSnapshot = "light";
|
|
@@ -620,6 +736,7 @@ function createMcpAppRuntime(config, options) {
|
|
|
620
736
|
displayMode: "inline",
|
|
621
737
|
availableDisplayModes: ["inline"]
|
|
622
738
|
};
|
|
739
|
+
filesSnapshot = { ...defaultFilesSnapshot };
|
|
623
740
|
if (activeRuntime === runtime) {
|
|
624
741
|
activeRuntime = null;
|
|
625
742
|
}
|
|
@@ -669,6 +786,30 @@ function createMcpAppRuntime(config, options) {
|
|
|
669
786
|
const app2 = await connect();
|
|
670
787
|
await app2.sendSizeChanged(params);
|
|
671
788
|
}
|
|
789
|
+
async function uploadFile(file) {
|
|
790
|
+
if (disposed) {
|
|
791
|
+
throw new Error("View runtime has been disposed");
|
|
792
|
+
}
|
|
793
|
+
const api = getChatGptFilesApi();
|
|
794
|
+
if (!filesSnapshot.isSupported || typeof api?.uploadFile !== "function") {
|
|
795
|
+
throw new Error(
|
|
796
|
+
"[useFiles] File upload is not supported in this host. Check `isSupported` before calling `upload`. File operations are only available in the ChatGPT Apps SDK environment."
|
|
797
|
+
);
|
|
798
|
+
}
|
|
799
|
+
return api.uploadFile(file);
|
|
800
|
+
}
|
|
801
|
+
async function getFileDownloadUrl(file) {
|
|
802
|
+
if (disposed) {
|
|
803
|
+
throw new Error("View runtime has been disposed");
|
|
804
|
+
}
|
|
805
|
+
const api = getChatGptFilesApi();
|
|
806
|
+
if (!filesSnapshot.isSupported || typeof api?.getFileDownloadUrl !== "function") {
|
|
807
|
+
throw new Error(
|
|
808
|
+
"[useFiles] File download is not supported in this host. Check `isSupported` before calling `getDownloadUrl`. File operations are only available in the ChatGPT Apps SDK environment."
|
|
809
|
+
);
|
|
810
|
+
}
|
|
811
|
+
return api.getFileDownloadUrl(file);
|
|
812
|
+
}
|
|
672
813
|
const runtime = {
|
|
673
814
|
config,
|
|
674
815
|
modelContextStore,
|
|
@@ -682,12 +823,16 @@ function createMcpAppRuntime(config, options) {
|
|
|
682
823
|
getThemeSnapshot: () => themeSnapshot,
|
|
683
824
|
subscribeDisplay: displayChannel.subscribe,
|
|
684
825
|
getDisplaySnapshot: () => displaySnapshot,
|
|
826
|
+
subscribeFiles: filesChannel.subscribe,
|
|
827
|
+
getFilesSnapshot: () => filesSnapshot,
|
|
685
828
|
getApp: () => disposed ? null : app,
|
|
686
829
|
callServerTool,
|
|
687
830
|
sendMessage,
|
|
688
831
|
openLink,
|
|
689
832
|
requestDisplayMode,
|
|
690
833
|
sendSizeChanged,
|
|
834
|
+
uploadFile,
|
|
835
|
+
getFileDownloadUrl,
|
|
691
836
|
registerViewTool
|
|
692
837
|
};
|
|
693
838
|
return runtime;
|
|
@@ -906,7 +1051,54 @@ import {
|
|
|
906
1051
|
} from "@modelcontextprotocol/ext-apps";
|
|
907
1052
|
import React2, { useLayoutEffect, useState } from "react";
|
|
908
1053
|
import { Fragment, jsx as jsx6 } from "react/jsx-runtime";
|
|
909
|
-
|
|
1054
|
+
function applyTransparentIframeCanvas() {
|
|
1055
|
+
document.documentElement.style.background = "transparent";
|
|
1056
|
+
document.body.style.background = "transparent";
|
|
1057
|
+
const root = document.getElementById("root");
|
|
1058
|
+
if (root) root.style.background = "transparent";
|
|
1059
|
+
}
|
|
1060
|
+
var FILL_HOST_WRAPPER_STYLE = {
|
|
1061
|
+
position: "relative",
|
|
1062
|
+
height: "100%",
|
|
1063
|
+
minHeight: "100%",
|
|
1064
|
+
display: "flex",
|
|
1065
|
+
flexDirection: "column"
|
|
1066
|
+
};
|
|
1067
|
+
function useFillHostDocument(fillHost) {
|
|
1068
|
+
useLayoutEffect(() => {
|
|
1069
|
+
if (!fillHost || typeof document === "undefined") return;
|
|
1070
|
+
const html = document.documentElement;
|
|
1071
|
+
const body = document.body;
|
|
1072
|
+
const root = document.getElementById("root");
|
|
1073
|
+
const prev = {
|
|
1074
|
+
htmlH: html.style.height,
|
|
1075
|
+
bodyH: body.style.height,
|
|
1076
|
+
htmlMin: html.style.minHeight,
|
|
1077
|
+
bodyMin: body.style.minHeight,
|
|
1078
|
+
rootH: root?.style.height ?? "",
|
|
1079
|
+
rootMin: root?.style.minHeight ?? ""
|
|
1080
|
+
};
|
|
1081
|
+
for (const el of [html, body]) {
|
|
1082
|
+
el.style.height = "100%";
|
|
1083
|
+
el.style.minHeight = "100%";
|
|
1084
|
+
}
|
|
1085
|
+
if (root) {
|
|
1086
|
+
root.style.height = "100%";
|
|
1087
|
+
root.style.minHeight = "100%";
|
|
1088
|
+
}
|
|
1089
|
+
return () => {
|
|
1090
|
+
html.style.height = prev.htmlH;
|
|
1091
|
+
body.style.height = prev.bodyH;
|
|
1092
|
+
html.style.minHeight = prev.htmlMin;
|
|
1093
|
+
body.style.minHeight = prev.bodyMin;
|
|
1094
|
+
if (root) {
|
|
1095
|
+
root.style.height = prev.rootH;
|
|
1096
|
+
root.style.minHeight = prev.rootMin;
|
|
1097
|
+
}
|
|
1098
|
+
};
|
|
1099
|
+
}, [fillHost]);
|
|
1100
|
+
}
|
|
1101
|
+
var ThemeProvider = ({ children, colorScheme = false }) => {
|
|
910
1102
|
const hostContext = useHostContextSubscription();
|
|
911
1103
|
const [systemPreference, setSystemPreference] = useState(
|
|
912
1104
|
() => {
|
|
@@ -925,9 +1117,12 @@ var ThemeProvider = ({ children, colorScheme = true }) => {
|
|
|
925
1117
|
}, []);
|
|
926
1118
|
const hostTheme = hostContext?.theme === "dark" || hostContext?.theme === "light" ? hostContext.theme : void 0;
|
|
927
1119
|
const effectiveTheme = hostTheme ?? systemPreference;
|
|
1120
|
+
const fillHost = hostContext?.displayMode === "fullscreen" || hostContext?.displayMode === "pip";
|
|
1121
|
+
useFillHostDocument(fillHost);
|
|
928
1122
|
useLayoutEffect(() => {
|
|
929
1123
|
if (typeof document === "undefined") return;
|
|
930
1124
|
applyDocumentTheme(effectiveTheme);
|
|
1125
|
+
applyTransparentIframeCanvas();
|
|
931
1126
|
if (colorScheme) {
|
|
932
1127
|
document.documentElement.style.colorScheme = effectiveTheme === "dark" ? "dark" : "light";
|
|
933
1128
|
} else {
|
|
@@ -944,6 +1139,9 @@ var ThemeProvider = ({ children, colorScheme = true }) => {
|
|
|
944
1139
|
applyHostFonts(fonts);
|
|
945
1140
|
}
|
|
946
1141
|
}, [hostContext]);
|
|
1142
|
+
if (fillHost) {
|
|
1143
|
+
return /* @__PURE__ */ jsx6("div", { style: FILL_HOST_WRAPPER_STYLE, children });
|
|
1144
|
+
}
|
|
947
1145
|
return /* @__PURE__ */ jsx6(Fragment, { children });
|
|
948
1146
|
};
|
|
949
1147
|
|
|
@@ -994,6 +1192,9 @@ function readMaxWidth(hostContext) {
|
|
|
994
1192
|
function resolveDisplayMode2(hostContext) {
|
|
995
1193
|
return hostContext?.displayMode === "fullscreen" || hostContext?.displayMode === "pip" ? hostContext.displayMode : "inline";
|
|
996
1194
|
}
|
|
1195
|
+
function resolvePlatform(hostContext) {
|
|
1196
|
+
return hostContext?.platform === "mobile" ? "mobile" : "web";
|
|
1197
|
+
}
|
|
997
1198
|
function useHostContext() {
|
|
998
1199
|
const runtime = useViewRuntime();
|
|
999
1200
|
const { hostContext, isConnected } = useSyncExternalStore3(
|
|
@@ -1006,6 +1207,7 @@ function useHostContext() {
|
|
|
1006
1207
|
locale: typeof hostContext?.locale === "string" ? hostContext.locale : "en-US",
|
|
1007
1208
|
timeZone: typeof hostContext?.timeZone === "string" ? hostContext.timeZone : typeof Intl !== "undefined" ? Intl.DateTimeFormat().resolvedOptions().timeZone : "UTC",
|
|
1008
1209
|
userAgent: typeof hostContext?.userAgent === "string" ? hostContext.userAgent : typeof navigator !== "undefined" ? navigator.userAgent : "",
|
|
1210
|
+
platform: resolvePlatform(hostContext),
|
|
1009
1211
|
displayMode: resolveDisplayMode2(hostContext),
|
|
1010
1212
|
safeArea: hostContext?.safeAreaInsets ?? DEFAULT_SAFE_AREA,
|
|
1011
1213
|
maxHeight: readMaxHeight(hostContext),
|
|
@@ -1216,6 +1418,12 @@ function ViewControls({
|
|
|
1216
1418
|
// src/react/hooks/use-call-tool.ts
|
|
1217
1419
|
import { useCallback, useRef as useRef2, useState as useState3 } from "react";
|
|
1218
1420
|
function useCallTool(nameOrRef) {
|
|
1421
|
+
return useToolCall(nameOrRef);
|
|
1422
|
+
}
|
|
1423
|
+
function useDynamicTool(name) {
|
|
1424
|
+
return useToolCall(name);
|
|
1425
|
+
}
|
|
1426
|
+
function useToolCall(nameOrRef) {
|
|
1219
1427
|
const toolName = typeof nameOrRef === "string" ? nameOrRef : nameOrRef.name;
|
|
1220
1428
|
const runtime = useViewRuntime();
|
|
1221
1429
|
const [data, setData] = useState3(
|
|
@@ -1257,6 +1465,24 @@ function useCallTool(nameOrRef) {
|
|
|
1257
1465
|
return { callTool, data, error, isPending };
|
|
1258
1466
|
}
|
|
1259
1467
|
|
|
1468
|
+
// src/react/hooks/use-files.ts
|
|
1469
|
+
import { useMemo, useSyncExternalStore as useSyncExternalStore5 } from "react";
|
|
1470
|
+
function useFiles() {
|
|
1471
|
+
const runtime = useViewRuntime();
|
|
1472
|
+
const { isSupported } = useSyncExternalStore5(
|
|
1473
|
+
runtime.subscribeFiles,
|
|
1474
|
+
runtime.getFilesSnapshot
|
|
1475
|
+
);
|
|
1476
|
+
return useMemo(
|
|
1477
|
+
() => ({
|
|
1478
|
+
isSupported,
|
|
1479
|
+
upload: runtime.uploadFile,
|
|
1480
|
+
getDownloadUrl: runtime.getFileDownloadUrl
|
|
1481
|
+
}),
|
|
1482
|
+
[runtime, isSupported]
|
|
1483
|
+
);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1260
1486
|
// src/react/hooks/use-open-external.ts
|
|
1261
1487
|
import { useCallback as useCallback2 } from "react";
|
|
1262
1488
|
function useOpenExternal() {
|
|
@@ -1291,14 +1517,47 @@ function useSendSizeChanged() {
|
|
|
1291
1517
|
}
|
|
1292
1518
|
|
|
1293
1519
|
// src/react/hooks/use-view-theme.ts
|
|
1294
|
-
import { useSyncExternalStore as
|
|
1520
|
+
import { useSyncExternalStore as useSyncExternalStore6 } from "react";
|
|
1295
1521
|
function useViewTheme() {
|
|
1296
1522
|
const runtime = useViewRuntime();
|
|
1297
|
-
return
|
|
1523
|
+
return useSyncExternalStore6(runtime.subscribeTheme, runtime.getThemeSnapshot);
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
// src/react/hooks/use-view-state.ts
|
|
1527
|
+
import {
|
|
1528
|
+
useCallback as useCallback4,
|
|
1529
|
+
useEffect as useEffect2,
|
|
1530
|
+
useRef as useRef3,
|
|
1531
|
+
useSyncExternalStore as useSyncExternalStore7
|
|
1532
|
+
} from "react";
|
|
1533
|
+
function useViewState(defaultState) {
|
|
1534
|
+
const runtime = useViewRuntime();
|
|
1535
|
+
const store = runtime.modelContextStore;
|
|
1536
|
+
const defaultRef = useRef3(null);
|
|
1537
|
+
if (defaultRef.current === null) {
|
|
1538
|
+
defaultRef.current = typeof defaultState === "function" ? defaultState() : defaultState;
|
|
1539
|
+
}
|
|
1540
|
+
const storedState = useSyncExternalStore7(
|
|
1541
|
+
store.subscribeViewState,
|
|
1542
|
+
store.getViewStateSnapshot
|
|
1543
|
+
);
|
|
1544
|
+
useEffect2(() => {
|
|
1545
|
+
store.initializeViewState(defaultRef.current);
|
|
1546
|
+
}, [store]);
|
|
1547
|
+
const setViewState = useCallback4(
|
|
1548
|
+
(action) => {
|
|
1549
|
+
store.updateViewState((previous) => {
|
|
1550
|
+
const current = previous ?? defaultRef.current;
|
|
1551
|
+
return typeof action === "function" ? action(current) : action;
|
|
1552
|
+
});
|
|
1553
|
+
},
|
|
1554
|
+
[store]
|
|
1555
|
+
);
|
|
1556
|
+
return [storedState ?? defaultRef.current, setViewState];
|
|
1298
1557
|
}
|
|
1299
1558
|
|
|
1300
1559
|
// src/react/hooks/use-view-tool.ts
|
|
1301
|
-
import { useEffect as
|
|
1560
|
+
import { useEffect as useEffect3, useRef as useRef4 } from "react";
|
|
1302
1561
|
|
|
1303
1562
|
// src/tools.ts
|
|
1304
1563
|
function resolveToolInputSchema(definition) {
|
|
@@ -1308,15 +1567,15 @@ function resolveToolInputSchema(definition) {
|
|
|
1308
1567
|
// src/react/hooks/use-view-tool.ts
|
|
1309
1568
|
function useViewTool(definition, handler) {
|
|
1310
1569
|
const runtime = useViewRuntime();
|
|
1311
|
-
const handlerRef =
|
|
1570
|
+
const handlerRef = useRef4(handler);
|
|
1312
1571
|
handlerRef.current = handler;
|
|
1313
|
-
const definitionRef =
|
|
1572
|
+
const definitionRef = useRef4(definition);
|
|
1314
1573
|
definitionRef.current = definition;
|
|
1315
|
-
const registeredRef =
|
|
1316
|
-
const registeredMetadataRef =
|
|
1574
|
+
const registeredRef = useRef4(null);
|
|
1575
|
+
const registeredMetadataRef = useRef4(null);
|
|
1317
1576
|
const { name, title, description, enabled = true } = definition;
|
|
1318
1577
|
const annotationsJson = definition.annotations === void 0 ? void 0 : JSON.stringify(definition.annotations);
|
|
1319
|
-
|
|
1578
|
+
useEffect3(() => {
|
|
1320
1579
|
const def = definitionRef.current;
|
|
1321
1580
|
const config = {};
|
|
1322
1581
|
if (def.title !== void 0) config.title = def.title;
|
|
@@ -1363,7 +1622,7 @@ function useViewTool(definition, handler) {
|
|
|
1363
1622
|
}
|
|
1364
1623
|
};
|
|
1365
1624
|
}, [runtime, name]);
|
|
1366
|
-
|
|
1625
|
+
useEffect3(() => {
|
|
1367
1626
|
const registered = registeredRef.current;
|
|
1368
1627
|
if (!registered) return;
|
|
1369
1628
|
const applied = registeredMetadataRef.current;
|
|
@@ -1383,7 +1642,7 @@ function useViewTool(definition, handler) {
|
|
|
1383
1642
|
annotationsJson: def.annotations === void 0 ? void 0 : JSON.stringify(def.annotations)
|
|
1384
1643
|
};
|
|
1385
1644
|
}, [title, description, annotationsJson]);
|
|
1386
|
-
|
|
1645
|
+
useEffect3(() => {
|
|
1387
1646
|
const registered = registeredRef.current;
|
|
1388
1647
|
if (!registered || registered.enabled === enabled) return;
|
|
1389
1648
|
if (enabled) {
|
|
@@ -1406,12 +1665,14 @@ export {
|
|
|
1406
1665
|
toolResultText,
|
|
1407
1666
|
useCallTool,
|
|
1408
1667
|
useDisplayMode,
|
|
1668
|
+
useDynamicTool,
|
|
1669
|
+
useFiles,
|
|
1409
1670
|
useHostContext,
|
|
1410
1671
|
useOpenExternal,
|
|
1411
1672
|
useSendFollowUp,
|
|
1412
1673
|
useSendSizeChanged,
|
|
1413
1674
|
useToolContext,
|
|
1675
|
+
useViewState,
|
|
1414
1676
|
useViewTheme,
|
|
1415
1677
|
useViewTool
|
|
1416
1678
|
};
|
|
1417
|
-
//# sourceMappingURL=index.js.map
|