veryfront 0.1.1185 → 0.1.1189
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/esm/_dnt.polyfills.d.ts +20 -20
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +25 -25
- package/esm/cli/app/shell.d.ts.map +1 -1
- package/esm/cli/app/shell.js +4 -3
- package/esm/cli/commands/dev/command.d.ts.map +1 -1
- package/esm/cli/commands/dev/command.js +4 -8
- package/esm/cli/commands/eval/command.d.ts +3 -1
- package/esm/cli/commands/eval/command.d.ts.map +1 -1
- package/esm/cli/commands/eval/command.js +2 -0
- package/esm/cli/commands/generate/handler.d.ts +1 -1
- package/esm/cli/commands/push/command.d.ts +17 -8
- package/esm/cli/commands/push/command.d.ts.map +1 -1
- package/esm/cli/commands/push/command.js +31 -0
- package/esm/cli/commands/push/index.d.ts +1 -1
- package/esm/cli/commands/push/index.d.ts.map +1 -1
- package/esm/cli/commands/push/index.js +1 -1
- package/esm/cli/commands/schedule/handler.d.ts.map +1 -1
- package/esm/cli/commands/schedule/handler.js +12 -2
- package/esm/cli/commands/schedules/handler.d.ts.map +1 -1
- package/esm/cli/commands/schedules/handler.js +6 -1
- package/esm/cli/commands/serve/command.d.ts.map +1 -1
- package/esm/cli/commands/serve/command.js +15 -1
- package/esm/cli/commands/serve/proxy-extension-composition.d.ts +14 -0
- package/esm/cli/commands/serve/proxy-extension-composition.d.ts.map +1 -0
- package/esm/cli/commands/serve/proxy-extension-composition.js +123 -0
- package/esm/cli/commands/serve/split-mode.d.ts.map +1 -1
- package/esm/cli/commands/serve/split-mode.js +0 -4
- package/esm/cli/commands/skills/validate.d.ts.map +1 -1
- package/esm/cli/commands/skills/validate.js +3 -3
- package/esm/cli/commands/task/command.d.ts.map +1 -1
- package/esm/cli/commands/task/command.js +1 -0
- package/esm/cli/commands/webhook/handler.d.ts.map +1 -1
- package/esm/cli/commands/webhook/handler.js +12 -2
- package/esm/cli/commands/webhooks/handler.d.ts.map +1 -1
- package/esm/cli/commands/webhooks/handler.js +6 -1
- package/esm/cli/mcp/jsonrpc.d.ts +12 -2
- package/esm/cli/mcp/jsonrpc.d.ts.map +1 -1
- package/esm/cli/mcp/jsonrpc.js +30 -2
- package/esm/cli/mcp/server.d.ts.map +1 -1
- package/esm/cli/mcp/server.js +37 -7
- package/esm/cli/mcp/standalone.d.ts.map +1 -1
- package/esm/cli/mcp/standalone.js +4 -2
- package/esm/cli/mcp/stdio.d.ts +3 -1
- package/esm/cli/mcp/stdio.d.ts.map +1 -1
- package/esm/cli/mcp/stdio.js +17 -2
- package/esm/cli/mcp/tools/scaffold-tools.d.ts +1 -1
- package/esm/cli/router.d.ts.map +1 -1
- package/esm/cli/router.js +6 -10
- package/esm/cli/shared/json-output.d.ts +4 -6
- package/esm/cli/shared/json-output.d.ts.map +1 -1
- package/esm/cli/shared/project-creation.d.ts.map +1 -1
- package/esm/cli/shared/project-creation.js +7 -4
- package/esm/cli/shared/server-startup.d.ts.map +1 -1
- package/esm/cli/shared/server-startup.js +9 -7
- package/esm/cli/templates/integration-loader-helpers.d.ts +10 -0
- package/esm/cli/templates/integration-loader-helpers.d.ts.map +1 -1
- package/esm/cli/templates/integration-loader-helpers.js +30 -0
- package/esm/cli/templates/integration-loader.d.ts.map +1 -1
- package/esm/cli/templates/integration-loader.js +2 -2
- package/esm/cli/templates/manifest.d.ts +2 -6
- package/esm/cli/templates/manifest.js +297 -301
- package/esm/deno.d.ts +34 -0
- package/esm/deno.js +50 -9
- package/esm/deps/jsr.io/@std/path/1.1.6/constants.d.ts +1 -1
- package/esm/extensions/ext-eval-report-mlflow/src/index.d.ts +9 -0
- package/esm/extensions/ext-eval-report-mlflow/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-eval-report-mlflow/src/index.js +31 -40
- package/esm/extensions/ext-llm-anthropic/src/anthropic-citations.d.ts +27 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-citations.d.ts.map +1 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-citations.js +138 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-mcp-request.d.ts +36 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-mcp-request.d.ts.map +1 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-mcp-request.js +357 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-native-content.d.ts +46 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-native-content.d.ts.map +1 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-native-content.js +595 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-provider.d.ts +31 -2
- package/esm/extensions/ext-llm-anthropic/src/anthropic-provider.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-provider.js +371 -117
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.d.ts +11 -57
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.js +616 -40
- package/esm/extensions/ext-llm-anthropic/src/anthropic-stream.d.ts +19 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-stream.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-stream.js +829 -100
- package/esm/extensions/ext-llm-anthropic/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/index.js +6 -1
- package/esm/extensions/ext-llm-google/src/google-content-parts.d.ts +45 -0
- package/esm/extensions/ext-llm-google/src/google-content-parts.d.ts.map +1 -0
- package/esm/extensions/ext-llm-google/src/google-content-parts.js +164 -0
- package/esm/extensions/ext-llm-google/src/google-grounding-metadata.d.ts +15 -0
- package/esm/extensions/ext-llm-google/src/google-grounding-metadata.d.ts.map +1 -0
- package/esm/extensions/ext-llm-google/src/google-grounding-metadata.js +87 -0
- package/esm/extensions/ext-llm-google/src/google-provider.d.ts +4 -3
- package/esm/extensions/ext-llm-google/src/google-provider.d.ts.map +1 -1
- package/esm/extensions/ext-llm-google/src/google-provider.js +407 -77
- package/esm/extensions/ext-llm-google/src/google-request-builder.d.ts +7 -55
- package/esm/extensions/ext-llm-google/src/google-request-builder.d.ts.map +1 -1
- package/esm/extensions/ext-llm-google/src/google-request-builder.js +403 -13
- package/esm/extensions/ext-llm-google/src/google-stream.d.ts +9 -1
- package/esm/extensions/ext-llm-google/src/google-stream.d.ts.map +1 -1
- package/esm/extensions/ext-llm-google/src/google-stream.js +590 -65
- package/esm/extensions/ext-llm-google/src/google-thought-signatures.d.ts +5 -0
- package/esm/extensions/ext-llm-google/src/google-thought-signatures.d.ts.map +1 -0
- package/esm/extensions/ext-llm-google/src/google-thought-signatures.js +296 -0
- package/esm/extensions/ext-llm-google/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-llm-google/src/index.js +9 -1
- package/esm/extensions/ext-llm-openai/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/index.js +6 -1
- package/esm/extensions/ext-llm-openai/src/openai-chat-request-builder.d.ts +5 -43
- package/esm/extensions/ext-llm-openai/src/openai-chat-request-builder.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-chat-request-builder.js +18 -4
- package/esm/extensions/ext-llm-openai/src/openai-chat-stream.d.ts +8 -1
- package/esm/extensions/ext-llm-openai/src/openai-chat-stream.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-chat-stream.js +286 -104
- package/esm/extensions/ext-llm-openai/src/openai-provider-options.d.ts +6 -0
- package/esm/extensions/ext-llm-openai/src/openai-provider-options.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-provider-options.js +14 -0
- package/esm/extensions/ext-llm-openai/src/openai-provider.d.ts +6 -5
- package/esm/extensions/ext-llm-openai/src/openai-provider.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-provider.js +579 -129
- package/esm/extensions/ext-llm-openai/src/openai-reasoning-models.d.ts +3 -6
- package/esm/extensions/ext-llm-openai/src/openai-reasoning-models.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-responses-request-builder.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-responses-request-builder.js +240 -19
- package/esm/extensions/ext-llm-openai/src/openai-responses-stream.d.ts +12 -1
- package/esm/extensions/ext-llm-openai/src/openai-responses-stream.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-responses-stream.js +1053 -113
- package/esm/extensions/ext-llm-openai/src/openai-sse-buffer.d.ts +8 -0
- package/esm/extensions/ext-llm-openai/src/openai-sse-buffer.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-sse-buffer.js +47 -0
- package/esm/extensions/ext-llm-openai/src/openai-stream-metadata.d.ts +6 -0
- package/esm/extensions/ext-llm-openai/src/openai-stream-metadata.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-stream-metadata.js +10 -0
- package/esm/extensions/ext-llm-openai/src/openai-tool-input.d.ts +10 -0
- package/esm/extensions/ext-llm-openai/src/openai-tool-input.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-tool-input.js +30 -0
- package/esm/extensions/ext-llm-openai/src/openai-web-search.d.ts +35 -0
- package/esm/extensions/ext-llm-openai/src/openai-web-search.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-web-search.js +369 -0
- package/esm/extensions/ext-schema-zod/src/adapter.d.ts +6 -4
- package/esm/extensions/ext-schema-zod/src/adapter.d.ts.map +1 -1
- package/esm/extensions/ext-schema-zod/src/adapter.js +541 -7
- package/esm/extensions/ext-schema-zod/src/json-schema.d.ts +5 -3
- package/esm/extensions/ext-schema-zod/src/json-schema.d.ts.map +1 -1
- package/esm/extensions/ext-schema-zod/src/json-schema.js +398 -20
- package/esm/src/agent/ag-ui/detached-start.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/detached-start.js +10 -4
- package/esm/src/agent/ag-ui/handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/handler.js +7 -5
- package/esm/src/agent/ag-ui/host-support.d.ts +1 -0
- package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/run-control.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/run-control.js +9 -4
- package/esm/src/agent/ag-ui/runtime-handler.d.ts +3 -0
- package/esm/src/agent/ag-ui/runtime-handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-handler.js +10 -5
- package/esm/src/agent/conversation/durable-contracts.d.ts +8 -2
- package/esm/src/agent/conversation/durable-contracts.d.ts.map +1 -1
- package/esm/src/agent/conversation/durable.d.ts +33 -5
- package/esm/src/agent/conversation/durable.d.ts.map +1 -1
- package/esm/src/agent/conversation/durable.js +134 -21
- package/esm/src/agent/conversation/model-call-context-run-event.d.ts +41 -0
- package/esm/src/agent/conversation/model-call-context-run-event.d.ts.map +1 -0
- package/esm/src/agent/conversation/model-call-context-run-event.js +74 -0
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts +6 -3
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/conversation/root-run-lifecycle.js +12 -6
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts +8 -1
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-chunk-mirror.js +4 -2
- package/esm/src/agent/conversation/run-event-limits.d.ts +9 -0
- package/esm/src/agent/conversation/run-event-limits.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-event-limits.js +8 -0
- package/esm/src/agent/conversation/run-event-normalization.d.ts +1 -2
- package/esm/src/agent/conversation/run-event-normalization.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-event-normalization.js +7 -1
- package/esm/src/agent/conversation/run-mirror.d.ts +10 -2
- package/esm/src/agent/conversation/run-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-mirror.js +43 -16
- package/esm/src/agent/factory.js +4 -4
- package/esm/src/agent/hosted/agent-project-steering.d.ts +2 -0
- package/esm/src/agent/hosted/agent-project-steering.d.ts.map +1 -1
- package/esm/src/agent/hosted/agent-project-steering.js +3 -0
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts +4 -0
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.js +27 -3
- package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-preparation.js +11 -5
- package/esm/src/agent/hosted/chat-request-parser.d.ts +6 -3
- package/esm/src/agent/hosted/chat-request-parser.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-request-parser.js +8 -2
- package/esm/src/agent/hosted/chat-request.d.ts +2 -0
- package/esm/src/agent/hosted/chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts +6 -0
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.js +7 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.js +16 -11
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts +15 -3
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.js +71 -29
- package/esm/src/agent/hosted/child-fork-run-context.d.ts +10 -3
- package/esm/src/agent/hosted/child-fork-run-context.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-run-context.js +6 -6
- package/esm/src/agent/hosted/child-run-event-writer-token.d.ts +59 -0
- package/esm/src/agent/hosted/child-run-event-writer-token.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-run-event-writer-token.js +284 -0
- package/esm/src/agent/hosted/child-steering-tools.d.ts +2 -1
- package/esm/src/agent/hosted/child-steering-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-steering-tools.js +9 -6
- package/esm/src/agent/hosted/child-tool-input.d.ts +2 -2
- package/esm/src/agent/hosted/cloud-agent-chat-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-chat-execution.js +12 -9
- package/esm/src/agent/hosted/cloud-agent-child-tools.js +2 -2
- package/esm/src/agent/hosted/cloud-agent-config.d.ts +2 -0
- package/esm/src/agent/hosted/cloud-agent-config.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-config.js +11 -0
- package/esm/src/agent/hosted/cloud-agent-paths.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-paths.js +2 -6
- package/esm/src/agent/hosted/default-chat-runtime.d.ts +1 -0
- package/esm/src/agent/hosted/default-chat-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-chat-runtime.js +13 -5
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts +10 -3
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-invoke-agent-tool.js +179 -161
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts +3 -1
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-chat-run-start.js +2 -1
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts +13 -2
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-child-fork-execution.js +143 -31
- package/esm/src/agent/hosted/model-call-context-run-event-recorder.d.ts +35 -0
- package/esm/src/agent/hosted/model-call-context-run-event-recorder.d.ts.map +1 -0
- package/esm/src/agent/hosted/model-call-context-run-event-recorder.js +266 -0
- package/esm/src/agent/hosted/project-reference-resolver.d.ts +3 -0
- package/esm/src/agent/hosted/project-reference-resolver.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-reference-resolver.js +15 -1
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts +2 -1
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-remote-tool-source.js +9 -6
- package/esm/src/agent/hosted/project-steering-adapter.d.ts +2 -0
- package/esm/src/agent/hosted/project-steering-adapter.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-steering-adapter.js +22 -10
- package/esm/src/agent/hosted/runtime-request-config.d.ts +1 -1
- package/esm/src/agent/hosted/runtime-request-config.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-request-config.js +3 -2
- package/esm/src/agent/index.d.ts +2 -0
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +1 -0
- package/esm/src/agent/project/agent-runtime.d.ts +2 -0
- package/esm/src/agent/project/agent-runtime.d.ts.map +1 -1
- package/esm/src/agent/project/agent-runtime.js +18 -5
- package/esm/src/agent/project/context.d.ts +70 -2
- package/esm/src/agent/project/context.d.ts.map +1 -1
- package/esm/src/agent/project/context.js +191 -28
- package/esm/src/agent/project/live-studio-mcp-tools.d.ts.map +1 -1
- package/esm/src/agent/project/live-studio-mcp-tools.js +61 -29
- package/esm/src/agent/project/steering-mutation.d.ts.map +1 -1
- package/esm/src/agent/project/steering-mutation.js +26 -4
- package/esm/src/agent/react/use-chat/streaming/handler.js +6 -1
- package/esm/src/agent/react/use-chat/streaming/parts-builder.js +3 -3
- package/esm/src/agent/react/use-chat/use-chat.d.ts +20 -0
- package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +38 -5
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts +1 -0
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-invocation-contract.js +3 -0
- package/esm/src/agent/runtime/agent-runtime-step.d.ts +3 -1
- package/esm/src/agent/runtime/agent-runtime-step.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-runtime-step.js +22 -11
- package/esm/src/agent/runtime/builtin-skill-files.d.ts +8 -1
- package/esm/src/agent/runtime/builtin-skill-files.d.ts.map +1 -1
- package/esm/src/agent/runtime/builtin-skill-files.js +406 -43
- package/esm/src/agent/runtime/data-property-descriptor.d.ts +19 -0
- package/esm/src/agent/runtime/data-property-descriptor.d.ts.map +1 -0
- package/esm/src/agent/runtime/data-property-descriptor.js +90 -0
- package/esm/src/agent/runtime/error-utils.d.ts +1 -2
- package/esm/src/agent/runtime/error-utils.d.ts.map +1 -1
- package/esm/src/agent/runtime/error-utils.js +1 -11
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +103 -58
- package/esm/src/agent/runtime/input-utils.d.ts +1 -1
- package/esm/src/agent/runtime/input-utils.d.ts.map +1 -1
- package/esm/src/agent/runtime/input-utils.js +22 -3
- package/esm/src/agent/runtime/load-skill-tool.d.ts +15 -6
- package/esm/src/agent/runtime/load-skill-tool.d.ts.map +1 -1
- package/esm/src/agent/runtime/load-skill-tool.js +1073 -143
- package/esm/src/agent/runtime/mcp-server-tool-sources.d.ts.map +1 -1
- package/esm/src/agent/runtime/mcp-server-tool-sources.js +0 -1
- package/esm/src/agent/runtime/message-file-url-refresh.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-file-url-refresh.js +2 -1
- package/esm/src/agent/runtime/model-tool-converter.d.ts.map +1 -1
- package/esm/src/agent/runtime/model-tool-converter.js +10 -4
- package/esm/src/agent/runtime/project-files-client.d.ts +59 -0
- package/esm/src/agent/runtime/project-files-client.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-files-client.js +1206 -11
- package/esm/src/agent/runtime/project-skill-catalog.d.ts +6 -0
- package/esm/src/agent/runtime/project-skill-catalog.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-skill-catalog.js +582 -97
- package/esm/src/agent/runtime/project-skill-loader.d.ts +16 -5
- package/esm/src/agent/runtime/project-skill-loader.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-skill-loader.js +276 -35
- package/esm/src/agent/runtime/provider-native-tool-inventory.d.ts +1 -0
- package/esm/src/agent/runtime/provider-native-tool-inventory.d.ts.map +1 -1
- package/esm/src/agent/runtime/provider-native-tool-inventory.js +5 -2
- package/esm/src/agent/runtime/provider-native-tools.d.ts +1 -0
- package/esm/src/agent/runtime/provider-native-tools.d.ts.map +1 -1
- package/esm/src/agent/runtime/provider-native-tools.js +57 -0
- package/esm/src/agent/runtime/resume-session.d.ts.map +1 -1
- package/esm/src/agent/runtime/resume-session.js +2 -4
- package/esm/src/agent/runtime/runtime-message-origin.d.ts +12 -0
- package/esm/src/agent/runtime/runtime-message-origin.d.ts.map +1 -0
- package/esm/src/agent/runtime/runtime-message-origin.js +43 -0
- package/esm/src/agent/runtime/runtime-tool-config.d.ts.map +1 -1
- package/esm/src/agent/runtime/runtime-tool-config.js +2 -2
- package/esm/src/agent/runtime/skill-delegation-overrides.d.ts +0 -1
- package/esm/src/agent/runtime/skill-delegation-overrides.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-delegation-overrides.js +29 -12
- package/esm/src/agent/runtime/skill-metadata.d.ts +75 -19
- package/esm/src/agent/runtime/skill-metadata.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-metadata.js +652 -113
- package/esm/src/agent/runtime/skill-policy-enforcement.d.ts +16 -5
- package/esm/src/agent/runtime/skill-policy-enforcement.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-policy-enforcement.js +228 -92
- package/esm/src/agent/runtime/skill-prompt.d.ts +19 -5
- package/esm/src/agent/runtime/skill-prompt.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-prompt.js +467 -68
- package/esm/src/agent/runtime/tool-execution-identity.d.ts +32 -0
- package/esm/src/agent/runtime/tool-execution-identity.d.ts.map +1 -0
- package/esm/src/agent/runtime/tool-execution-identity.js +166 -0
- package/esm/src/agent/runtime/tool-exposure.d.ts +9 -2
- package/esm/src/agent/runtime/tool-exposure.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-exposure.js +274 -85
- package/esm/src/agent/runtime/tool-helpers.js +3 -3
- package/esm/src/agent/schemas/agent.schema.d.ts +16 -4
- package/esm/src/agent/schemas/agent.schema.d.ts.map +1 -1
- package/esm/src/agent/schemas/agent.schema.js +3 -1
- package/esm/src/agent/service/mcp-server-config.d.ts +0 -1
- package/esm/src/agent/service/mcp-server-config.d.ts.map +1 -1
- package/esm/src/agent/service/mcp-server-config.js +0 -2
- package/esm/src/agent/service/node-sentry.d.ts +8 -1
- package/esm/src/agent/service/node-sentry.d.ts.map +1 -1
- package/esm/src/agent/service/node-sentry.js +34 -5
- package/esm/src/agent/service/request-preparation-context.d.ts +7 -0
- package/esm/src/agent/service/request-preparation-context.d.ts.map +1 -0
- package/esm/src/agent/service/request-preparation-context.js +14 -0
- package/esm/src/agent/service/routes.d.ts +3 -1
- package/esm/src/agent/service/routes.d.ts.map +1 -1
- package/esm/src/agent/service/routes.js +13 -7
- package/esm/src/agent/types.d.ts +7 -1
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/build/asset-pipeline/css-optimizer/types/index.d.ts +18 -22
- package/esm/src/build/asset-pipeline/css-optimizer/types/index.d.ts.map +1 -1
- package/esm/src/build/production-build/local-release-assets.d.ts.map +1 -1
- package/esm/src/build/production-build/local-release-assets.js +11 -3
- package/esm/src/build/production-build/static-generation.d.ts.map +1 -1
- package/esm/src/build/production-build/static-generation.js +7 -9
- package/esm/src/build/production-build/templates.d.ts.map +1 -1
- package/esm/src/build/production-build/templates.js +2 -2
- package/esm/src/cache/backend.d.ts +4 -1
- package/esm/src/cache/backend.d.ts.map +1 -1
- package/esm/src/cache/backend.js +4 -0
- package/esm/src/cache/backends/api.d.ts +8 -0
- package/esm/src/cache/backends/api.d.ts.map +1 -1
- package/esm/src/cache/backends/api.js +88 -15
- package/esm/src/cache/backends/disk.d.ts +21 -3
- package/esm/src/cache/backends/disk.d.ts.map +1 -1
- package/esm/src/cache/backends/disk.js +474 -119
- package/esm/src/cache/backends/distributed-keyspace.d.ts +60 -0
- package/esm/src/cache/backends/distributed-keyspace.d.ts.map +1 -0
- package/esm/src/cache/backends/distributed-keyspace.js +250 -0
- package/esm/src/cache/backends/factory.d.ts.map +1 -1
- package/esm/src/cache/backends/factory.js +1 -2
- package/esm/src/cache/backends/index.d.ts +4 -0
- package/esm/src/cache/backends/index.d.ts.map +1 -1
- package/esm/src/cache/backends/index.js +3 -0
- package/esm/src/cache/backends/memory.d.ts +1 -0
- package/esm/src/cache/backends/memory.d.ts.map +1 -1
- package/esm/src/cache/backends/memory.js +9 -0
- package/esm/src/cache/backends/ttl.d.ts +25 -0
- package/esm/src/cache/backends/ttl.d.ts.map +1 -0
- package/esm/src/cache/backends/ttl.js +51 -0
- package/esm/src/cache/batch-policy.d.ts +8 -0
- package/esm/src/cache/batch-policy.d.ts.map +1 -0
- package/esm/src/cache/batch-policy.js +12 -0
- package/esm/src/cache/bounded-read.d.ts +18 -0
- package/esm/src/cache/bounded-read.d.ts.map +1 -0
- package/esm/src/cache/bounded-read.js +97 -0
- package/esm/src/cache/cache-key-builder.d.ts +18 -0
- package/esm/src/cache/cache-key-builder.d.ts.map +1 -1
- package/esm/src/cache/cache-key-builder.js +70 -4
- package/esm/src/cache/capabilities.d.ts +30 -0
- package/esm/src/cache/capabilities.d.ts.map +1 -0
- package/esm/src/cache/capabilities.js +138 -0
- package/esm/src/cache/keys/api-policy.d.ts +13 -0
- package/esm/src/cache/keys/api-policy.d.ts.map +1 -0
- package/esm/src/cache/keys/api-policy.js +23 -0
- package/esm/src/cache/keys/project-css.d.ts +38 -0
- package/esm/src/cache/keys/project-css.d.ts.map +1 -0
- package/esm/src/cache/keys/project-css.js +116 -0
- package/esm/src/cache/keys/segment-codec.d.ts +33 -0
- package/esm/src/cache/keys/segment-codec.d.ts.map +1 -0
- package/esm/src/cache/keys/segment-codec.js +204 -0
- package/esm/src/cache/types.d.ts +49 -2
- package/esm/src/cache/types.d.ts.map +1 -1
- package/esm/src/cache/types.js +2 -1
- package/esm/src/channels/control-plane.d.ts +22 -1
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/channels/control-plane.js +219 -14
- package/esm/src/channels/invoke.d.ts +2 -2
- package/esm/src/chat/ag-ui-helpers.js +1 -1
- package/esm/src/chat/ag-ui.d.ts +4 -0
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.js +39 -5
- package/esm/src/chat/chat-ui-message-helpers.d.ts.map +1 -1
- package/esm/src/chat/chat-ui-message-helpers.js +86 -24
- package/esm/src/chat/conversation.d.ts.map +1 -1
- package/esm/src/chat/conversation.js +25 -21
- package/esm/src/chat/final-step-fallback.d.ts.map +1 -1
- package/esm/src/chat/final-step-fallback.js +14 -5
- package/esm/src/chat/hosted-ui-chunk-mapping.d.ts.map +1 -1
- package/esm/src/chat/hosted-ui-chunk-mapping.js +11 -7
- package/esm/src/chat/index.d.ts +5 -4
- package/esm/src/chat/index.d.ts.map +1 -1
- package/esm/src/chat/index.js +7 -5
- package/esm/src/chat/json-value.d.ts +29 -0
- package/esm/src/chat/json-value.d.ts.map +1 -0
- package/esm/src/chat/json-value.js +214 -0
- package/esm/src/chat/knowledge-source-document.d.ts.map +1 -1
- package/esm/src/chat/knowledge-source-document.js +40 -2
- package/esm/src/chat/message-prep.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +155 -67
- package/esm/src/chat/protocol.d.ts +6 -0
- package/esm/src/chat/protocol.d.ts.map +1 -1
- package/esm/src/chat/provider-errors.d.ts.map +1 -1
- package/esm/src/chat/provider-errors.js +75 -9
- package/esm/src/chat/types.d.ts +4 -0
- package/esm/src/chat/types.d.ts.map +1 -1
- package/esm/src/chat/types.js +20 -19
- package/esm/src/chat/upload-handler.d.ts +13 -3
- package/esm/src/chat/upload-handler.d.ts.map +1 -1
- package/esm/src/chat/upload-handler.js +312 -81
- package/esm/src/config/config-files.d.ts +13 -0
- package/esm/src/config/config-files.d.ts.map +1 -1
- package/esm/src/config/config-files.js +28 -2
- package/esm/src/config/config-shim.d.ts +25 -0
- package/esm/src/config/config-shim.d.ts.map +1 -0
- package/esm/src/config/config-shim.js +61 -0
- package/esm/src/config/declarative-evaluator-worker-protocol.d.ts +70 -0
- package/esm/src/config/declarative-evaluator-worker-protocol.d.ts.map +1 -0
- package/esm/src/config/declarative-evaluator-worker-protocol.js +638 -0
- package/esm/src/config/declarative-evaluator-worker-runner.d.ts +86 -0
- package/esm/src/config/declarative-evaluator-worker-runner.d.ts.map +1 -0
- package/esm/src/config/declarative-evaluator-worker-runner.js +599 -0
- package/esm/src/config/declarative-evaluator.d.ts +156 -0
- package/esm/src/config/declarative-evaluator.d.ts.map +1 -0
- package/esm/src/config/declarative-evaluator.js +2100 -0
- package/esm/src/config/defaults.d.ts +31 -24
- package/esm/src/config/defaults.d.ts.map +1 -1
- package/esm/src/config/defaults.js +25 -18
- package/esm/src/config/define-config-core.d.ts +9 -0
- package/esm/src/config/define-config-core.d.ts.map +1 -0
- package/esm/src/config/define-config-core.js +11 -0
- package/esm/src/config/define-config.d.ts +3 -8
- package/esm/src/config/define-config.d.ts.map +1 -1
- package/esm/src/config/define-config.js +3 -48
- package/esm/src/config/env.d.ts +0 -1
- package/esm/src/config/env.d.ts.map +1 -1
- package/esm/src/config/env.js +1 -4
- package/esm/src/config/environment-config.d.ts +6 -0
- package/esm/src/config/environment-config.d.ts.map +1 -1
- package/esm/src/config/environment-config.js +94 -82
- package/esm/src/config/index.d.ts +3 -2
- package/esm/src/config/index.d.ts.map +1 -1
- package/esm/src/config/index.js +3 -2
- package/esm/src/config/loader.d.ts +116 -1
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +1340 -160
- package/esm/src/config/network-defaults.d.ts +6 -11
- package/esm/src/config/network-defaults.d.ts.map +1 -1
- package/esm/src/config/network-defaults.js +8 -13
- package/esm/src/config/runtime-config.d.ts +19 -6
- package/esm/src/config/runtime-config.d.ts.map +1 -1
- package/esm/src/config/runtime-config.js +89 -14
- package/esm/src/config/schemas/config.schema.d.ts +99 -20
- package/esm/src/config/schemas/config.schema.d.ts.map +1 -1
- package/esm/src/config/schemas/config.schema.js +428 -220
- package/esm/src/config/schemas/index.d.ts +9 -3
- package/esm/src/config/schemas/index.d.ts.map +1 -1
- package/esm/src/config/schemas/index.js +6 -1
- package/esm/src/config/snapshot.d.ts +61 -0
- package/esm/src/config/snapshot.d.ts.map +1 -0
- package/esm/src/config/snapshot.js +317 -0
- package/esm/src/data/data-fetcher.d.ts +8 -0
- package/esm/src/data/data-fetcher.d.ts.map +1 -1
- package/esm/src/data/data-fetcher.js +8 -1
- package/esm/src/data/helpers.d.ts +2 -0
- package/esm/src/data/helpers.d.ts.map +1 -1
- package/esm/src/data/helpers.js +50 -0
- package/esm/src/data/server-data-fetcher.d.ts +19 -0
- package/esm/src/data/server-data-fetcher.d.ts.map +1 -1
- package/esm/src/data/server-data-fetcher.js +100 -39
- package/esm/src/discovery/agent-scoped-capabilities.js +2 -2
- package/esm/src/discovery/discovery-engine.d.ts.map +1 -1
- package/esm/src/discovery/discovery-engine.js +5 -0
- package/esm/src/discovery/handlers/skill-handler.js +2 -2
- package/esm/src/discovery/module-import.d.ts +2 -0
- package/esm/src/discovery/module-import.d.ts.map +1 -1
- package/esm/src/discovery/module-import.js +1 -0
- package/esm/src/discovery/project-discovery-config.d.ts +2 -0
- package/esm/src/discovery/project-discovery-config.d.ts.map +1 -1
- package/esm/src/discovery/project-discovery-config.js +1 -0
- package/esm/src/discovery/registry-replacement.d.ts +34 -0
- package/esm/src/discovery/registry-replacement.d.ts.map +1 -0
- package/esm/src/discovery/registry-replacement.js +39 -0
- package/esm/src/discovery/transpiler.d.ts.map +1 -1
- package/esm/src/discovery/transpiler.js +4 -0
- package/esm/src/discovery/types.d.ts +4 -0
- package/esm/src/discovery/types.d.ts.map +1 -1
- package/esm/src/embedding/resolve.d.ts.map +1 -1
- package/esm/src/embedding/resolve.js +4 -0
- package/esm/src/embedding/upload-handler.d.ts +5 -5
- package/esm/src/embedding/upload-handler.d.ts.map +1 -1
- package/esm/src/embedding/upload-handler.js +10 -14
- package/esm/src/embedding/veryfront-cloud/provider.js +1 -1
- package/esm/src/embedding/veryfront-cloud/rag-store.js +1 -1
- package/esm/src/errors/catalog/build-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/build-errors.js +2 -2
- package/esm/src/errors/catalog/config-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/config-errors.js +15 -12
- package/esm/src/errors/catalog/deployment-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/deployment-errors.js +2 -2
- package/esm/src/errors/catalog/dev-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/dev-errors.js +7 -2
- package/esm/src/errors/catalog/factory.d.ts +1 -1
- package/esm/src/errors/catalog/factory.d.ts.map +1 -1
- package/esm/src/errors/catalog/factory.js +12 -2
- package/esm/src/errors/catalog/general-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/general-errors.js +2 -2
- package/esm/src/errors/catalog/index.d.ts +1 -0
- package/esm/src/errors/catalog/index.d.ts.map +1 -1
- package/esm/src/errors/catalog/index.js +15 -15
- package/esm/src/errors/catalog/module-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/module-errors.js +3 -22
- package/esm/src/errors/catalog/route-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/route-errors.js +2 -2
- package/esm/src/errors/catalog/rsc-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/rsc-errors.js +13 -7
- package/esm/src/errors/catalog/runtime-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/runtime-errors.js +3 -3
- package/esm/src/errors/catalog/server-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/server-errors.js +15 -8
- package/esm/src/errors/catalog/types.d.ts +10 -10
- package/esm/src/errors/catalog/types.d.ts.map +1 -1
- package/esm/src/errors/diagnostic-policy.d.ts +35 -0
- package/esm/src/errors/diagnostic-policy.d.ts.map +1 -0
- package/esm/src/errors/diagnostic-policy.js +100 -0
- package/esm/src/errors/error-context.d.ts.map +1 -1
- package/esm/src/errors/error-context.js +74 -29
- package/esm/src/errors/error-handlers.d.ts +8 -2
- package/esm/src/errors/error-handlers.d.ts.map +1 -1
- package/esm/src/errors/error-handlers.js +90 -17
- package/esm/src/errors/error-registry/boundary.d.ts +2 -0
- package/esm/src/errors/error-registry/boundary.d.ts.map +1 -1
- package/esm/src/errors/error-registry/boundary.js +8 -0
- package/esm/src/errors/error-registry/config.d.ts.map +1 -1
- package/esm/src/errors/error-registry/config.js +3 -3
- package/esm/src/errors/error-registry/deploy.js +1 -1
- package/esm/src/errors/error-registry/general.d.ts +1 -0
- package/esm/src/errors/error-registry/general.d.ts.map +1 -1
- package/esm/src/errors/error-registry/general.js +1 -0
- package/esm/src/errors/error-registry/module.d.ts +1 -0
- package/esm/src/errors/error-registry/module.d.ts.map +1 -1
- package/esm/src/errors/error-registry/module.js +1 -0
- package/esm/src/errors/error-registry/server.d.ts +2 -0
- package/esm/src/errors/error-registry/server.d.ts.map +1 -1
- package/esm/src/errors/error-registry/server.js +8 -0
- package/esm/src/errors/error-registry-helpers.d.ts +11 -2
- package/esm/src/errors/error-registry-helpers.d.ts.map +1 -1
- package/esm/src/errors/error-registry-helpers.js +70 -1
- package/esm/src/errors/error-registry.d.ts +97 -85
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/error-registry.js +2 -14
- package/esm/src/errors/http-error.d.ts +1 -1
- package/esm/src/errors/http-error.d.ts.map +1 -1
- package/esm/src/errors/http-error.js +39 -43
- package/esm/src/errors/index.d.ts +3 -2
- package/esm/src/errors/index.d.ts.map +1 -1
- package/esm/src/errors/index.js +4 -3
- package/esm/src/errors/legacy-error-codec.d.ts +11 -0
- package/esm/src/errors/legacy-error-codec.d.ts.map +1 -0
- package/esm/src/errors/legacy-error-codec.js +24 -0
- package/esm/src/errors/logging.d.ts.map +1 -1
- package/esm/src/errors/logging.js +78 -46
- package/esm/src/errors/middleware/boundary-observability.d.ts +7 -0
- package/esm/src/errors/middleware/boundary-observability.d.ts.map +1 -0
- package/esm/src/errors/middleware/boundary-observability.js +27 -0
- package/esm/src/errors/middleware/cli-error-boundary.d.ts +9 -0
- package/esm/src/errors/middleware/cli-error-boundary.d.ts.map +1 -1
- package/esm/src/errors/middleware/cli-error-boundary.js +69 -61
- package/esm/src/errors/middleware/http-error-boundary.d.ts.map +1 -1
- package/esm/src/errors/middleware/http-error-boundary.js +30 -34
- package/esm/src/errors/middleware/wrap-unknown.d.ts +12 -4
- package/esm/src/errors/middleware/wrap-unknown.d.ts.map +1 -1
- package/esm/src/errors/middleware/wrap-unknown.js +78 -35
- package/esm/src/errors/request-instance.d.ts +11 -0
- package/esm/src/errors/request-instance.d.ts.map +1 -0
- package/esm/src/errors/request-instance.js +68 -0
- package/esm/src/errors/safe-diagnostics.d.ts +63 -0
- package/esm/src/errors/safe-diagnostics.d.ts.map +1 -0
- package/esm/src/errors/safe-diagnostics.js +371 -0
- package/esm/src/errors/tracing.d.ts +2 -2
- package/esm/src/errors/tracing.d.ts.map +1 -1
- package/esm/src/errors/tracing.js +14 -10
- package/esm/src/errors/types.d.ts +44 -5
- package/esm/src/errors/types.d.ts.map +1 -1
- package/esm/src/errors/types.js +148 -24
- package/esm/src/errors/user-friendly/error-catalog.d.ts +1 -1
- package/esm/src/errors/user-friendly/error-catalog.d.ts.map +1 -1
- package/esm/src/errors/user-friendly/error-catalog.js +16 -10
- package/esm/src/errors/user-friendly/error-formatter.d.ts.map +1 -1
- package/esm/src/errors/user-friendly/error-formatter.js +25 -13
- package/esm/src/errors/user-friendly/error-identifier.d.ts.map +1 -1
- package/esm/src/errors/user-friendly/error-identifier.js +37 -6
- package/esm/src/errors/user-friendly/error-wrapper.d.ts.map +1 -1
- package/esm/src/errors/user-friendly/error-wrapper.js +15 -6
- package/esm/src/errors/veryfront-error.d.ts +25 -2
- package/esm/src/errors/veryfront-error.d.ts.map +1 -1
- package/esm/src/errors/veryfront-error.js +638 -28
- package/esm/src/eval/agent-service/durable-run-canaries/cli-runner.d.ts.map +1 -1
- package/esm/src/eval/agent-service/durable-run-canaries/cli-runner.js +43 -2
- package/esm/src/eval/agent-service/durable-run-canaries/environment.d.ts.map +1 -1
- package/esm/src/eval/agent-service/durable-run-canaries/environment.js +19 -7
- package/esm/src/eval/agent-service/durable-run-canaries/runner.d.ts +1 -1
- package/esm/src/eval/agent-service/durable-run-canaries/runner.d.ts.map +1 -1
- package/esm/src/eval/agent-service/durable-run-canaries/runner.js +180 -57
- package/esm/src/eval/agent-service/durable-run-canaries/token-growth.d.ts.map +1 -1
- package/esm/src/eval/agent-service/durable-run-canaries/token-growth.js +12 -0
- package/esm/src/eval/agent-service/durable-run-canaries/validation.d.ts.map +1 -1
- package/esm/src/eval/agent-service/durable-run-canaries/validation.js +2 -9
- package/esm/src/eval/agent-service/live-evals/api-client.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/api-client.js +217 -89
- package/esm/src/eval/agent-service/live-evals/cli-runner.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/cli-runner.js +153 -39
- package/esm/src/eval/agent-service/live-evals/environment.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/environment.js +18 -12
- package/esm/src/eval/agent-service/live-evals/formatting.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/formatting.js +8 -1
- package/esm/src/eval/agent-service/live-evals/metadata.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/metadata.js +61 -6
- package/esm/src/eval/agent-service/live-evals/performance.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/performance.js +7 -0
- package/esm/src/eval/agent-service/live-evals/preflight.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/preflight.js +5 -4
- package/esm/src/eval/agent-service/live-evals/report.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/report.js +14 -4
- package/esm/src/eval/agent-service/live-evals/request.d.ts +1 -0
- package/esm/src/eval/agent-service/live-evals/request.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/request.js +40 -14
- package/esm/src/eval/agent-service/live-evals/runner.d.ts.map +1 -1
- package/esm/src/eval/agent-service/live-evals/runner.js +134 -57
- package/esm/src/eval/agent-service.d.ts.map +1 -1
- package/esm/src/eval/agent-service.js +182 -86
- package/esm/src/eval/baseline.d.ts.map +1 -1
- package/esm/src/eval/baseline.js +33 -0
- package/esm/src/eval/datasets.d.ts.map +1 -1
- package/esm/src/eval/datasets.js +9 -7
- package/esm/src/eval/discovery.d.ts +3 -0
- package/esm/src/eval/discovery.d.ts.map +1 -1
- package/esm/src/eval/discovery.js +30 -8
- package/esm/src/eval/factory.d.ts.map +1 -1
- package/esm/src/eval/factory.js +77 -25
- package/esm/src/eval/judges.d.ts.map +1 -1
- package/esm/src/eval/judges.js +34 -6
- package/esm/src/eval/metrics.d.ts.map +1 -1
- package/esm/src/eval/metrics.js +202 -64
- package/esm/src/eval/model-comparison.d.ts.map +1 -1
- package/esm/src/eval/model-comparison.js +165 -32
- package/esm/src/eval/provenance.d.ts.map +1 -1
- package/esm/src/eval/provenance.js +29 -21
- package/esm/src/eval/report.js +1 -1
- package/esm/src/eval/run-report.d.ts.map +1 -1
- package/esm/src/eval/run-report.js +35 -12
- package/esm/src/eval/runner.d.ts.map +1 -1
- package/esm/src/eval/runner.js +169 -22
- package/esm/src/eval/studio.d.ts +4 -4
- package/esm/src/eval/tool-behavior.d.ts +2 -0
- package/esm/src/eval/tool-behavior.d.ts.map +1 -1
- package/esm/src/eval/tool-behavior.js +42 -3
- package/esm/src/eval/validation.d.ts +14 -0
- package/esm/src/eval/validation.d.ts.map +1 -1
- package/esm/src/eval/validation.js +94 -10
- package/esm/src/extensions/abort-signal.d.ts +4 -4
- package/esm/src/extensions/abort-signal.js +4 -4
- package/esm/src/extensions/auth/index.d.ts +4 -1
- package/esm/src/extensions/auth/index.d.ts.map +1 -1
- package/esm/src/extensions/auth/index.js +3 -1
- package/esm/src/extensions/auth/rsc-action-authorization-provider.d.ts +93 -0
- package/esm/src/extensions/auth/rsc-action-authorization-provider.d.ts.map +1 -0
- package/esm/src/extensions/auth/rsc-action-authorization-provider.js +86 -0
- package/esm/src/extensions/browser/immutable-browser-bundle.d.ts +13 -0
- package/esm/src/extensions/browser/immutable-browser-bundle.d.ts.map +1 -0
- package/esm/src/extensions/browser/immutable-browser-bundle.js +75 -0
- package/esm/src/extensions/builtin-extensions.d.ts +17 -7
- package/esm/src/extensions/builtin-extensions.d.ts.map +1 -1
- package/esm/src/extensions/builtin-extensions.js +57 -132
- package/esm/src/extensions/bundler/defaults.d.ts +8 -0
- package/esm/src/extensions/bundler/defaults.d.ts.map +1 -1
- package/esm/src/extensions/bundler/defaults.js +49 -7
- package/esm/src/extensions/bundler/helper.js +1 -1
- package/esm/src/extensions/cache/token-cache-store.d.ts +1 -3
- package/esm/src/extensions/cache/token-cache-store.d.ts.map +1 -1
- package/esm/src/extensions/cache/token-cache-store.js +0 -2
- package/esm/src/extensions/capabilities.d.ts +26 -1
- package/esm/src/extensions/capabilities.d.ts.map +1 -1
- package/esm/src/extensions/capabilities.js +580 -49
- package/esm/src/extensions/contract-registry-internal.d.ts +144 -0
- package/esm/src/extensions/contract-registry-internal.d.ts.map +1 -0
- package/esm/src/extensions/contract-registry-internal.js +642 -0
- package/esm/src/extensions/contracts.d.ts.map +1 -1
- package/esm/src/extensions/contracts.js +14 -6
- package/esm/src/extensions/css/css-optimization-engine.d.ts +46 -0
- package/esm/src/extensions/css/css-optimization-engine.d.ts.map +1 -0
- package/esm/src/extensions/css/css-optimization-engine.js +65 -0
- package/esm/src/extensions/css/css-processor.d.ts +30 -30
- package/esm/src/extensions/css/css-processor.d.ts.map +1 -1
- package/esm/src/extensions/css/css-processor.js +108 -8
- package/esm/src/extensions/css/css-purging-engine.d.ts +36 -0
- package/esm/src/extensions/css/css-purging-engine.d.ts.map +1 -0
- package/esm/src/extensions/css/css-purging-engine.js +57 -0
- package/esm/src/extensions/css/index.d.ts +7 -2
- package/esm/src/extensions/css/index.d.ts.map +1 -1
- package/esm/src/extensions/css/index.js +4 -1
- package/esm/src/extensions/deferred-extension.d.ts +21 -0
- package/esm/src/extensions/deferred-extension.d.ts.map +1 -0
- package/esm/src/extensions/deferred-extension.js +40 -0
- package/esm/src/extensions/dev-ui/dev-ui-asset-provider.d.ts +11 -0
- package/esm/src/extensions/dev-ui/dev-ui-asset-provider.d.ts.map +1 -0
- package/esm/src/extensions/dev-ui/dev-ui-asset-provider.js +19 -0
- package/esm/src/extensions/dev-ui/index.d.ts +5 -0
- package/esm/src/extensions/dev-ui/index.d.ts.map +1 -0
- package/esm/src/extensions/dev-ui/index.js +4 -0
- package/esm/src/extensions/dev-ui/protocol.d.ts +23 -0
- package/esm/src/extensions/dev-ui/protocol.d.ts.map +1 -0
- package/esm/src/extensions/dev-ui/protocol.js +26 -0
- package/esm/src/extensions/distributed/agent-memory-support.d.ts +4 -0
- package/esm/src/extensions/distributed/agent-memory-support.d.ts.map +1 -0
- package/esm/src/extensions/distributed/agent-memory-support.js +3 -0
- package/esm/src/extensions/distributed/cache-support.d.ts +29 -0
- package/esm/src/extensions/distributed/cache-support.d.ts.map +1 -0
- package/esm/src/extensions/distributed/cache-support.js +10 -0
- package/esm/src/extensions/distributed/defaults.d.ts +6 -0
- package/esm/src/extensions/distributed/defaults.d.ts.map +1 -0
- package/esm/src/extensions/distributed/defaults.js +14 -0
- package/esm/src/extensions/distributed/index.d.ts +5 -0
- package/esm/src/extensions/distributed/index.d.ts.map +1 -0
- package/esm/src/extensions/distributed/index.js +3 -0
- package/esm/src/extensions/distributed/owned-redis-client.d.ts +19 -0
- package/esm/src/extensions/distributed/owned-redis-client.d.ts.map +1 -0
- package/esm/src/extensions/distributed/owned-redis-client.js +173 -0
- package/esm/src/extensions/distributed/rate-limit-support.d.ts +6 -0
- package/esm/src/extensions/distributed/rate-limit-support.d.ts.map +1 -0
- package/esm/src/extensions/distributed/rate-limit-support.js +4 -0
- package/esm/src/extensions/distributed/redis-runtime-provider.d.ts +152 -0
- package/esm/src/extensions/distributed/redis-runtime-provider.d.ts.map +1 -0
- package/esm/src/extensions/distributed/redis-runtime-provider.js +390 -0
- package/esm/src/extensions/distributed/routing-invalidation-support.d.ts +5 -0
- package/esm/src/extensions/distributed/routing-invalidation-support.d.ts.map +1 -0
- package/esm/src/extensions/distributed/routing-invalidation-support.js +4 -0
- package/esm/src/extensions/eval/eval-report-exporter.d.ts.map +1 -1
- package/esm/src/extensions/eval/eval-report-exporter.js +11 -9
- package/esm/src/extensions/factory-loader.js +2 -2
- package/esm/src/extensions/first-party-import.d.ts +25 -7
- package/esm/src/extensions/first-party-import.d.ts.map +1 -1
- package/esm/src/extensions/first-party-import.js +283 -45
- package/esm/src/extensions/image/image-optimization-engine.d.ts +64 -0
- package/esm/src/extensions/image/image-optimization-engine.d.ts.map +1 -0
- package/esm/src/extensions/image/image-optimization-engine.js +63 -0
- package/esm/src/extensions/image/index.d.ts +9 -0
- package/esm/src/extensions/image/index.d.ts.map +1 -0
- package/esm/src/extensions/image/index.js +7 -0
- package/esm/src/extensions/index.d.ts +4 -1
- package/esm/src/extensions/index.d.ts.map +1 -1
- package/esm/src/extensions/index.js +4 -1
- package/esm/src/extensions/llm/llm-provider-registry.d.ts.map +1 -1
- package/esm/src/extensions/llm/llm-provider-registry.js +7 -2
- package/esm/src/extensions/loader.d.ts +58 -7
- package/esm/src/extensions/loader.d.ts.map +1 -1
- package/esm/src/extensions/loader.js +847 -157
- package/esm/src/extensions/metadata-policy.d.ts +47 -0
- package/esm/src/extensions/metadata-policy.d.ts.map +1 -0
- package/esm/src/extensions/metadata-policy.js +125 -0
- package/esm/src/extensions/observability/application-error-reporter.d.ts +18 -0
- package/esm/src/extensions/observability/application-error-reporter.d.ts.map +1 -0
- package/esm/src/extensions/observability/application-error-reporter.js +2 -0
- package/esm/src/extensions/observability/index.d.ts +2 -0
- package/esm/src/extensions/observability/index.d.ts.map +1 -1
- package/esm/src/extensions/observability/index.js +1 -0
- package/esm/src/extensions/orchestrate.d.ts +5 -0
- package/esm/src/extensions/orchestrate.d.ts.map +1 -1
- package/esm/src/extensions/orchestrate.js +53 -4
- package/esm/src/extensions/parser/defaults.d.ts +8 -0
- package/esm/src/extensions/parser/defaults.d.ts.map +1 -1
- package/esm/src/extensions/parser/defaults.js +32 -9
- package/esm/src/extensions/parser/index.d.ts +1 -0
- package/esm/src/extensions/parser/index.d.ts.map +1 -1
- package/esm/src/extensions/parser/index.js +1 -0
- package/esm/src/extensions/parser/skill-defaults.d.ts +11 -0
- package/esm/src/extensions/parser/skill-defaults.d.ts.map +1 -0
- package/esm/src/extensions/parser/skill-defaults.js +60 -0
- package/esm/src/extensions/parser/skill-document-parser.d.ts +29 -0
- package/esm/src/extensions/parser/skill-document-parser.d.ts.map +1 -0
- package/esm/src/extensions/parser/skill-document-parser.js +212 -0
- package/esm/src/extensions/promise-intrinsics-internal.d.ts +29 -0
- package/esm/src/extensions/promise-intrinsics-internal.d.ts.map +1 -0
- package/esm/src/extensions/promise-intrinsics-internal.js +140 -0
- package/esm/src/extensions/property-inspection.d.ts +21 -0
- package/esm/src/extensions/property-inspection.d.ts.map +1 -0
- package/esm/src/extensions/property-inspection.js +62 -0
- package/esm/src/extensions/recommendations.d.ts.map +1 -1
- package/esm/src/extensions/recommendations.js +4 -0
- package/esm/src/extensions/rendering/index.d.ts +4 -0
- package/esm/src/extensions/rendering/index.d.ts.map +1 -0
- package/esm/src/extensions/rendering/index.js +3 -0
- package/esm/src/extensions/rendering/isolated-ssr-renderer.d.ts +33 -0
- package/esm/src/extensions/rendering/isolated-ssr-renderer.d.ts.map +1 -0
- package/esm/src/extensions/rendering/isolated-ssr-renderer.js +138 -0
- package/esm/src/extensions/runtime-validation.d.ts +21 -0
- package/esm/src/extensions/runtime-validation.d.ts.map +1 -0
- package/esm/src/extensions/runtime-validation.js +95 -0
- package/esm/src/extensions/safe-value.d.ts +12 -0
- package/esm/src/extensions/safe-value.d.ts.map +1 -0
- package/esm/src/extensions/safe-value.js +48 -0
- package/esm/src/extensions/schema/index.d.ts +2 -2
- package/esm/src/extensions/schema/index.d.ts.map +1 -1
- package/esm/src/extensions/schema/json-schema.d.ts +18 -5
- package/esm/src/extensions/schema/json-schema.d.ts.map +1 -1
- package/esm/src/extensions/schema/schema-validator.d.ts +47 -0
- package/esm/src/extensions/schema/schema-validator.d.ts.map +1 -1
- package/esm/src/extensions/types.d.ts +5 -0
- package/esm/src/extensions/types.d.ts.map +1 -1
- package/esm/src/extensions/types.js +5 -1
- package/esm/src/extensions/validation.d.ts +15 -4
- package/esm/src/extensions/validation.d.ts.map +1 -1
- package/esm/src/extensions/validation.js +321 -36
- package/esm/src/fs/index.d.ts +3 -2
- package/esm/src/fs/index.d.ts.map +1 -1
- package/esm/src/fs/index.js +3 -2
- package/esm/src/html/client-head-manager.d.ts +11 -0
- package/esm/src/html/client-head-manager.d.ts.map +1 -0
- package/esm/src/html/client-head-manager.js +509 -0
- package/esm/src/html/client-route-head.d.ts +14 -0
- package/esm/src/html/client-route-head.d.ts.map +1 -0
- package/esm/src/html/client-route-head.js +116 -0
- package/esm/src/html/html-escape.d.ts +1 -1
- package/esm/src/html/html-escape.d.ts.map +1 -1
- package/esm/src/html/html-escape.js +77 -5
- package/esm/src/html/html-injection.d.ts.map +1 -1
- package/esm/src/html/html-injection.js +3 -2
- package/esm/src/html/html-shell-generator.d.ts +3 -1
- package/esm/src/html/html-shell-generator.d.ts.map +1 -1
- package/esm/src/html/html-shell-generator.js +16 -12
- package/esm/src/html/hydration-data-element.d.ts +27 -0
- package/esm/src/html/hydration-data-element.d.ts.map +1 -0
- package/esm/src/html/hydration-data-element.js +33 -0
- package/esm/src/html/hydration-script-builder/hydration-data-generator.d.ts +1 -0
- package/esm/src/html/hydration-script-builder/hydration-data-generator.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/hydration-data-generator.js +1 -0
- package/esm/src/html/hydration-script-builder/hydration-runtime.generated.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/hydration-runtime.generated.js +1 -1
- package/esm/src/html/hydration-script-builder/prod-path.d.ts +4 -0
- package/esm/src/html/hydration-script-builder/prod-path.d.ts.map +1 -0
- package/esm/src/html/hydration-script-builder/prod-path.js +5 -0
- package/esm/src/html/hydration-script-builder/prod-scripts.d.ts +1 -3
- package/esm/src/html/hydration-script-builder/prod-scripts.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/prod-scripts.js +1 -5
- package/esm/src/html/hydration-script-builder/types.d.ts +2 -0
- package/esm/src/html/hydration-script-builder/types.d.ts.map +1 -1
- package/esm/src/html/index.d.ts +1 -1
- package/esm/src/html/index.d.ts.map +1 -1
- package/esm/src/html/index.js +1 -1
- package/esm/src/html/managed-head-protocol.d.ts +85 -0
- package/esm/src/html/managed-head-protocol.d.ts.map +1 -0
- package/esm/src/html/managed-head-protocol.js +739 -0
- package/esm/src/html/metadata-builder.d.ts +1 -0
- package/esm/src/html/metadata-builder.d.ts.map +1 -1
- package/esm/src/html/metadata-builder.js +3 -1
- package/esm/src/html/metadata-extraction.d.ts.map +1 -1
- package/esm/src/html/metadata-extraction.js +9 -6
- package/esm/src/html/nonce-injection.d.ts +16 -0
- package/esm/src/html/nonce-injection.d.ts.map +1 -1
- package/esm/src/html/nonce-injection.js +102 -2
- package/esm/src/html/styles-builder/candidate-extractor.d.ts +5 -18
- package/esm/src/html/styles-builder/candidate-extractor.d.ts.map +1 -1
- package/esm/src/html/styles-builder/candidate-extractor.js +68 -38
- package/esm/src/html/styles-builder/candidate-tokenizer.d.ts +9 -0
- package/esm/src/html/styles-builder/candidate-tokenizer.d.ts.map +1 -0
- package/esm/src/html/styles-builder/candidate-tokenizer.js +51 -0
- package/esm/src/html/styles-builder/css-hash-cache.d.ts +18 -43
- package/esm/src/html/styles-builder/css-hash-cache.d.ts.map +1 -1
- package/esm/src/html/styles-builder/css-hash-cache.js +203 -235
- package/esm/src/html/styles-builder/css-identity.d.ts +18 -0
- package/esm/src/html/styles-builder/css-identity.d.ts.map +1 -0
- package/esm/src/html/styles-builder/css-identity.js +61 -0
- package/esm/src/html/styles-builder/css-pregeneration.d.ts.map +1 -1
- package/esm/src/html/styles-builder/css-pregeneration.js +29 -10
- package/esm/src/html/styles-builder/index.d.ts +2 -2
- package/esm/src/html/styles-builder/index.d.ts.map +1 -1
- package/esm/src/html/styles-builder/index.js +1 -1
- package/esm/src/html/styles-builder/prepared-project-css-cache.d.ts +5 -1
- package/esm/src/html/styles-builder/prepared-project-css-cache.d.ts.map +1 -1
- package/esm/src/html/styles-builder/prepared-project-css-cache.js +134 -48
- package/esm/src/html/styles-builder/project-css-cache.d.ts +8 -5
- package/esm/src/html/styles-builder/project-css-cache.d.ts.map +1 -1
- package/esm/src/html/styles-builder/project-css-cache.js +148 -46
- package/esm/src/html/styles-builder/style-scope-profile.d.ts.map +1 -1
- package/esm/src/html/styles-builder/style-scope-profile.js +2 -6
- package/esm/src/html/styles-builder/tailwind-compiler-cache.d.ts +20 -18
- package/esm/src/html/styles-builder/tailwind-compiler-cache.d.ts.map +1 -1
- package/esm/src/html/styles-builder/tailwind-compiler-cache.js +152 -162
- package/esm/src/html/styles-builder/tailwind-compiler-utils.d.ts +1 -14
- package/esm/src/html/styles-builder/tailwind-compiler-utils.d.ts.map +1 -1
- package/esm/src/html/styles-builder/tailwind-compiler-utils.js +64 -108
- package/esm/src/html/styles-builder/tailwind-compiler.d.ts +34 -20
- package/esm/src/html/styles-builder/tailwind-compiler.d.ts.map +1 -1
- package/esm/src/html/styles-builder/tailwind-compiler.js +172 -129
- package/esm/src/html/tag-generators.d.ts +2 -0
- package/esm/src/html/tag-generators.d.ts.map +1 -1
- package/esm/src/html/tag-generators.js +333 -41
- package/esm/src/integrations/_data.d.ts.map +1 -1
- package/esm/src/integrations/_data.js +46 -6
- package/esm/src/integrations/feature-flags.d.ts +7 -0
- package/esm/src/integrations/feature-flags.d.ts.map +1 -1
- package/esm/src/integrations/feature-flags.js +25 -1
- package/esm/src/integrations/limits.d.ts +41 -0
- package/esm/src/integrations/limits.d.ts.map +1 -0
- package/esm/src/integrations/limits.js +40 -0
- package/esm/src/integrations/remote-tools.d.ts +7 -8
- package/esm/src/integrations/remote-tools.d.ts.map +1 -1
- package/esm/src/integrations/remote-tools.js +349 -69
- package/esm/src/integrations/schema.d.ts +4 -4
- package/esm/src/internal-agents/ag-ui-sse.d.ts.map +1 -1
- package/esm/src/internal-agents/ag-ui-sse.js +17 -0
- package/esm/src/internal-agents/control-plane-auth.d.ts.map +1 -1
- package/esm/src/internal-agents/control-plane-auth.js +6 -2
- package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
- package/esm/src/internal-agents/run-stream.js +213 -137
- package/esm/src/internal-agents/run-system-prompt.d.ts +0 -2
- package/esm/src/internal-agents/run-system-prompt.d.ts.map +1 -1
- package/esm/src/internal-agents/run-system-prompt.js +0 -4
- package/esm/src/internal-agents/schema.d.ts +5 -3
- package/esm/src/internal-agents/schema.d.ts.map +1 -1
- package/esm/src/internal-agents/schema.js +28 -0
- package/esm/src/internal-agents/session-manager.d.ts.map +1 -1
- package/esm/src/internal-agents/session-manager.js +1 -0
- package/esm/src/markdown/index.d.ts +8 -2
- package/esm/src/markdown/index.d.ts.map +1 -1
- package/esm/src/markdown/index.js +8 -2
- package/esm/src/mcp/registry.d.ts +2 -2
- package/esm/src/mcp/registry.d.ts.map +1 -1
- package/esm/src/mcp/registry.js +2 -1
- package/esm/src/mcp/sse.d.ts +1 -1
- package/esm/src/mcp/sse.d.ts.map +1 -1
- package/esm/src/mcp/sse.js +1 -1
- package/esm/src/mcp/types.d.ts +1 -1
- package/esm/src/mcp/types.d.ts.map +1 -1
- package/esm/src/mdx/index.d.ts +5 -1
- package/esm/src/mdx/index.d.ts.map +1 -1
- package/esm/src/mdx/index.js +5 -1
- package/esm/src/middleware/builtin/security/rate-limit-validation.d.ts +6 -0
- package/esm/src/middleware/builtin/security/rate-limit-validation.d.ts.map +1 -0
- package/esm/src/middleware/builtin/security/rate-limit-validation.js +36 -0
- package/esm/src/middleware/builtin/security/redis-rate-limit.d.ts +1 -6
- package/esm/src/middleware/builtin/security/redis-rate-limit.d.ts.map +1 -1
- package/esm/src/middleware/builtin/security/redis-rate-limit.js +21 -58
- package/esm/src/modules/manifest/route-module-manifest.d.ts.map +1 -1
- package/esm/src/modules/manifest/route-module-manifest.js +2 -1
- package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/component-loader.js +6 -4
- package/esm/src/modules/react-loader/ssr-module-loader/cache/redis.d.ts +5 -1
- package/esm/src/modules/react-loader/ssr-module-loader/cache/redis.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/cache/redis.js +9 -3
- package/esm/src/modules/react-loader/transformed-module-coordinator.d.ts +55 -0
- package/esm/src/modules/react-loader/transformed-module-coordinator.d.ts.map +1 -0
- package/esm/src/modules/react-loader/transformed-module-coordinator.js +1154 -0
- package/esm/src/modules/server/classify.d.ts +6 -1
- package/esm/src/modules/server/classify.d.ts.map +1 -1
- package/esm/src/modules/server/classify.js +14 -3
- package/esm/src/modules/server/fs-probe.d.ts.map +1 -1
- package/esm/src/modules/server/fs-probe.js +19 -6
- package/esm/src/modules/server/module-limits.d.ts +8 -0
- package/esm/src/modules/server/module-limits.d.ts.map +1 -0
- package/esm/src/modules/server/module-limits.js +8 -0
- package/esm/src/modules/server/module-server.d.ts.map +1 -1
- package/esm/src/modules/server/module-server.js +31 -9
- package/esm/src/modules/server/module-source-reader.d.ts +8 -0
- package/esm/src/modules/server/module-source-reader.d.ts.map +1 -0
- package/esm/src/modules/server/module-source-reader.js +38 -0
- package/esm/src/modules/server/websocket-handler.d.ts.map +1 -1
- package/esm/src/modules/server/websocket-handler.js +32 -3
- package/esm/src/oauth/config-validation.d.ts +26 -0
- package/esm/src/oauth/config-validation.d.ts.map +1 -0
- package/esm/src/oauth/config-validation.js +266 -0
- package/esm/src/oauth/data-properties.d.ts +9 -0
- package/esm/src/oauth/data-properties.d.ts.map +1 -0
- package/esm/src/oauth/data-properties.js +35 -0
- package/esm/src/oauth/handlers/callback-handler.d.ts +31 -6
- package/esm/src/oauth/handlers/callback-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/callback-handler.js +221 -76
- package/esm/src/oauth/handlers/index.d.ts +2 -2
- package/esm/src/oauth/handlers/index.d.ts.map +1 -1
- package/esm/src/oauth/handlers/index.js +1 -1
- package/esm/src/oauth/handlers/init-handler.d.ts +16 -2
- package/esm/src/oauth/handlers/init-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/init-handler.js +153 -70
- package/esm/src/oauth/handlers/token-store-policy.d.ts +5 -0
- package/esm/src/oauth/handlers/token-store-policy.d.ts.map +1 -0
- package/esm/src/oauth/handlers/token-store-policy.js +10 -0
- package/esm/src/oauth/index.d.ts +10 -5
- package/esm/src/oauth/index.d.ts.map +1 -1
- package/esm/src/oauth/index.js +9 -4
- package/esm/src/oauth/limits.d.ts +48 -0
- package/esm/src/oauth/limits.d.ts.map +1 -0
- package/esm/src/oauth/limits.js +47 -0
- package/esm/src/oauth/providers/atlassian.d.ts +27 -0
- package/esm/src/oauth/providers/atlassian.d.ts.map +1 -1
- package/esm/src/oauth/providers/atlassian.js +7 -2
- package/esm/src/oauth/providers/base.d.ts +22 -7
- package/esm/src/oauth/providers/base.d.ts.map +1 -1
- package/esm/src/oauth/providers/base.js +794 -136
- package/esm/src/oauth/providers/common.d.ts +216 -0
- package/esm/src/oauth/providers/common.d.ts.map +1 -1
- package/esm/src/oauth/providers/common.js +60 -9
- package/esm/src/oauth/providers/google.d.ts +72 -0
- package/esm/src/oauth/providers/google.d.ts.map +1 -1
- package/esm/src/oauth/providers/google.js +20 -3
- package/esm/src/oauth/providers/index.d.ts +2 -2
- package/esm/src/oauth/providers/index.d.ts.map +1 -1
- package/esm/src/oauth/providers/index.js +1 -1
- package/esm/src/oauth/providers/microsoft.d.ts +36 -0
- package/esm/src/oauth/providers/microsoft.d.ts.map +1 -1
- package/esm/src/oauth/providers/microsoft.js +11 -7
- package/esm/src/oauth/schemas/index.d.ts +1 -1
- package/esm/src/oauth/schemas/index.d.ts.map +1 -1
- package/esm/src/oauth/schemas/index.js +1 -1
- package/esm/src/oauth/schemas/oauth.schema.d.ts +39 -2
- package/esm/src/oauth/schemas/oauth.schema.d.ts.map +1 -1
- package/esm/src/oauth/schemas/oauth.schema.js +111 -31
- package/esm/src/oauth/scope-utils.d.ts +5 -0
- package/esm/src/oauth/scope-utils.d.ts.map +1 -0
- package/esm/src/oauth/scope-utils.js +31 -0
- package/esm/src/oauth/state-metadata.d.ts +11 -0
- package/esm/src/oauth/state-metadata.d.ts.map +1 -0
- package/esm/src/oauth/state-metadata.js +22 -0
- package/esm/src/oauth/state-utils.d.ts +19 -0
- package/esm/src/oauth/state-utils.d.ts.map +1 -0
- package/esm/src/oauth/state-utils.js +102 -0
- package/esm/src/oauth/text-validation.d.ts +3 -0
- package/esm/src/oauth/text-validation.d.ts.map +1 -0
- package/esm/src/oauth/text-validation.js +9 -0
- package/esm/src/oauth/token-store/index.d.ts +1 -1
- package/esm/src/oauth/token-store/index.d.ts.map +1 -1
- package/esm/src/oauth/token-store/memory.d.ts +19 -6
- package/esm/src/oauth/token-store/memory.d.ts.map +1 -1
- package/esm/src/oauth/token-store/memory.js +133 -30
- package/esm/src/oauth/token-utils.d.ts +11 -0
- package/esm/src/oauth/token-utils.d.ts.map +1 -0
- package/esm/src/oauth/token-utils.js +75 -0
- package/esm/src/oauth/types.d.ts +56 -0
- package/esm/src/oauth/types.d.ts.map +1 -1
- package/esm/src/oauth/url-utils.d.ts +16 -0
- package/esm/src/oauth/url-utils.d.ts.map +1 -0
- package/esm/src/oauth/url-utils.js +97 -0
- package/esm/src/oauth/url-validation.d.ts +13 -0
- package/esm/src/oauth/url-validation.d.ts.map +1 -0
- package/esm/src/oauth/url-validation.js +45 -0
- package/esm/src/observability/application-errors.d.ts +34 -0
- package/esm/src/observability/application-errors.d.ts.map +1 -1
- package/esm/src/observability/application-errors.js +223 -6
- package/esm/src/observability/auto-instrument/configurator.d.ts +1 -1
- package/esm/src/observability/auto-instrument/configurator.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/configurator.js +36 -3
- package/esm/src/observability/auto-instrument/http-instrumentation.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/http-instrumentation.js +115 -91
- package/esm/src/observability/auto-instrument/orchestrator.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/orchestrator.js +34 -15
- package/esm/src/observability/auto-instrument/react-instrumentation.d.ts +1 -1
- package/esm/src/observability/auto-instrument/react-instrumentation.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/react-instrumentation.js +30 -11
- package/esm/src/observability/auto-instrument/wrappers.d.ts +2 -2
- package/esm/src/observability/auto-instrument/wrappers.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/wrappers.js +15 -5
- package/esm/src/observability/error-collector.d.ts.map +1 -1
- package/esm/src/observability/error-collector.js +76 -18
- package/esm/src/observability/file-log-subscriber.d.ts +21 -0
- package/esm/src/observability/file-log-subscriber.d.ts.map +1 -1
- package/esm/src/observability/file-log-subscriber.js +335 -43
- package/esm/src/observability/index.d.ts +1 -0
- package/esm/src/observability/index.d.ts.map +1 -1
- package/esm/src/observability/index.js +1 -0
- package/esm/src/observability/instruments/build-instruments.d.ts +5 -0
- package/esm/src/observability/instruments/build-instruments.d.ts.map +1 -1
- package/esm/src/observability/instruments/build-instruments.js +8 -0
- package/esm/src/observability/instruments/cache-instruments.d.ts +3 -1
- package/esm/src/observability/instruments/cache-instruments.d.ts.map +1 -1
- package/esm/src/observability/instruments/cache-instruments.js +9 -2
- package/esm/src/observability/instruments/error-instruments.d.ts.map +1 -1
- package/esm/src/observability/instruments/error-instruments.js +10 -5
- package/esm/src/observability/instruments/instruments-factory.d.ts +3 -0
- package/esm/src/observability/instruments/instruments-factory.d.ts.map +1 -1
- package/esm/src/observability/instruments/instruments-factory.js +40 -6
- package/esm/src/observability/instruments/memory-instruments.d.ts +4 -0
- package/esm/src/observability/instruments/memory-instruments.d.ts.map +1 -1
- package/esm/src/observability/instruments/memory-instruments.js +84 -19
- package/esm/src/observability/instruments/model-call-context-instruments.d.ts +18 -0
- package/esm/src/observability/instruments/model-call-context-instruments.d.ts.map +1 -0
- package/esm/src/observability/instruments/model-call-context-instruments.js +25 -0
- package/esm/src/observability/instruments/observable-callbacks.d.ts +15 -0
- package/esm/src/observability/instruments/observable-callbacks.d.ts.map +1 -0
- package/esm/src/observability/instruments/observable-callbacks.js +51 -0
- package/esm/src/observability/limits.d.ts +20 -0
- package/esm/src/observability/limits.d.ts.map +1 -0
- package/esm/src/observability/limits.js +19 -0
- package/esm/src/observability/log-buffer.d.ts.map +1 -1
- package/esm/src/observability/log-buffer.js +104 -26
- package/esm/src/observability/metrics/config.d.ts +1 -1
- package/esm/src/observability/metrics/config.d.ts.map +1 -1
- package/esm/src/observability/metrics/config.js +83 -29
- package/esm/src/observability/metrics/index.d.ts +23 -1
- package/esm/src/observability/metrics/index.d.ts.map +1 -1
- package/esm/src/observability/metrics/index.js +32 -0
- package/esm/src/observability/metrics/manager.d.ts +4 -1
- package/esm/src/observability/metrics/manager.d.ts.map +1 -1
- package/esm/src/observability/metrics/manager.js +58 -62
- package/esm/src/observability/metrics/numeric.d.ts +9 -0
- package/esm/src/observability/metrics/numeric.d.ts.map +1 -0
- package/esm/src/observability/metrics/numeric.js +32 -0
- package/esm/src/observability/metrics/recorder.d.ts +17 -1
- package/esm/src/observability/metrics/recorder.d.ts.map +1 -1
- package/esm/src/observability/metrics/recorder.js +104 -33
- package/esm/src/observability/metrics/types.d.ts +17 -0
- package/esm/src/observability/metrics/types.d.ts.map +1 -1
- package/esm/src/observability/metrics/types.js +17 -1
- package/esm/src/observability/request-profiler.d.ts.map +1 -1
- package/esm/src/observability/request-profiler.js +68 -16
- package/esm/src/observability/sentry.d.ts +10 -1
- package/esm/src/observability/sentry.d.ts.map +1 -1
- package/esm/src/observability/sentry.js +90 -14
- package/esm/src/observability/simple-metrics/metrics-recorder.d.ts.map +1 -1
- package/esm/src/observability/simple-metrics/metrics-recorder.js +66 -58
- package/esm/src/observability/simple-metrics/metrics-state.js +2 -2
- package/esm/src/observability/simple-metrics/otel-instruments.d.ts.map +1 -1
- package/esm/src/observability/simple-metrics/otel-instruments.js +56 -30
- package/esm/src/observability/telemetry-error.d.ts +22 -0
- package/esm/src/observability/telemetry-error.d.ts.map +1 -0
- package/esm/src/observability/telemetry-error.js +377 -0
- package/esm/src/observability/tracing/api-shim.d.ts +39 -0
- package/esm/src/observability/tracing/api-shim.d.ts.map +1 -1
- package/esm/src/observability/tracing/api-shim.js +196 -69
- package/esm/src/observability/tracing/config.d.ts +1 -0
- package/esm/src/observability/tracing/config.d.ts.map +1 -1
- package/esm/src/observability/tracing/config.js +94 -23
- package/esm/src/observability/tracing/context-callback.d.ts +14 -0
- package/esm/src/observability/tracing/context-callback.d.ts.map +1 -0
- package/esm/src/observability/tracing/context-callback.js +111 -0
- package/esm/src/observability/tracing/context-propagation.d.ts +10 -2
- package/esm/src/observability/tracing/context-propagation.d.ts.map +1 -1
- package/esm/src/observability/tracing/context-propagation.js +62 -18
- package/esm/src/observability/tracing/index.d.ts +1 -1
- package/esm/src/observability/tracing/index.d.ts.map +1 -1
- package/esm/src/observability/tracing/index.js +14 -4
- package/esm/src/observability/tracing/manager.d.ts +7 -1
- package/esm/src/observability/tracing/manager.d.ts.map +1 -1
- package/esm/src/observability/tracing/manager.js +99 -23
- package/esm/src/observability/tracing/otlp-setup.d.ts.map +1 -1
- package/esm/src/observability/tracing/otlp-setup.js +190 -46
- package/esm/src/observability/tracing/service-tracer.d.ts.map +1 -1
- package/esm/src/observability/tracing/service-tracer.js +318 -61
- package/esm/src/observability/tracing/span-names.d.ts +4 -0
- package/esm/src/observability/tracing/span-names.d.ts.map +1 -1
- package/esm/src/observability/tracing/span-names.js +4 -0
- package/esm/src/observability/tracing/span-operations.d.ts +5 -1
- package/esm/src/observability/tracing/span-operations.d.ts.map +1 -1
- package/esm/src/observability/tracing/span-operations.js +63 -16
- package/esm/src/platform/adapters/base.d.ts +63 -1
- package/esm/src/platform/adapters/base.d.ts.map +1 -1
- package/esm/src/platform/adapters/base.js +4 -2
- package/esm/src/platform/adapters/bounded-file-read.d.ts +43 -0
- package/esm/src/platform/adapters/bounded-file-read.d.ts.map +1 -0
- package/esm/src/platform/adapters/bounded-file-read.js +185 -0
- package/esm/src/platform/adapters/bounded-text-reader.d.ts +27 -0
- package/esm/src/platform/adapters/bounded-text-reader.d.ts.map +1 -0
- package/esm/src/platform/adapters/bounded-text-reader.js +125 -0
- package/esm/src/platform/adapters/detect.d.ts +7 -6
- package/esm/src/platform/adapters/detect.d.ts.map +1 -1
- package/esm/src/platform/adapters/detect.js +8 -38
- package/esm/src/platform/adapters/file-snapshot-error.d.ts +8 -0
- package/esm/src/platform/adapters/file-snapshot-error.d.ts.map +1 -0
- package/esm/src/platform/adapters/file-snapshot-error.js +13 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts +74 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts.map +1 -0
- package/esm/src/platform/adapters/file-system-capabilities.js +508 -0
- package/esm/src/platform/adapters/fs/github/adapter.d.ts +3 -0
- package/esm/src/platform/adapters/fs/github/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/adapter.js +6 -0
- package/esm/src/platform/adapters/fs/github/github-api-client.d.ts +3 -0
- package/esm/src/platform/adapters/fs/github/github-api-client.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/github-api-client.js +99 -6
- package/esm/src/platform/adapters/fs/github/read-operations.d.ts +1 -0
- package/esm/src/platform/adapters/fs/github/read-operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/read-operations.js +35 -0
- package/esm/src/platform/adapters/fs/github/schemas/github-api.schema.d.ts +3 -3
- package/esm/src/platform/adapters/fs/github/stat-operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/stat-operations.js +7 -2
- package/esm/src/platform/adapters/fs/github/types.d.ts +1 -1
- package/esm/src/platform/adapters/fs/github/types.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts +10 -0
- package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/adapter.js +91 -18
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts +2 -0
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.js +14 -0
- package/esm/src/platform/adapters/fs/veryfront/read-operations-helpers.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/read-operations-helpers.js +8 -0
- package/esm/src/platform/adapters/fs/veryfront/read-operations.d.ts +2 -0
- package/esm/src/platform/adapters/fs/veryfront/read-operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/read-operations.js +66 -0
- package/esm/src/platform/adapters/fs/veryfront/types.d.ts +10 -0
- package/esm/src/platform/adapters/fs/veryfront/types.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/wrapper.d.ts +16 -0
- package/esm/src/platform/adapters/fs/wrapper.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/wrapper.js +119 -8
- package/esm/src/platform/adapters/mock.d.ts +1 -0
- package/esm/src/platform/adapters/mock.d.ts.map +1 -1
- package/esm/src/platform/adapters/mock.js +321 -38
- package/esm/src/platform/adapters/native-file-system-provenance.d.ts +6 -0
- package/esm/src/platform/adapters/native-file-system-provenance.d.ts.map +1 -0
- package/esm/src/platform/adapters/native-file-system-provenance.js +15 -0
- package/esm/src/platform/adapters/redis/modules.d.ts +1 -0
- package/esm/src/platform/adapters/redis/modules.d.ts.map +1 -1
- package/esm/src/platform/adapters/redis/modules.js +27 -13
- package/esm/src/platform/adapters/redis/node.js +1 -1
- package/esm/src/platform/adapters/redis/types.d.ts +1 -57
- package/esm/src/platform/adapters/redis/types.d.ts.map +1 -1
- package/esm/src/platform/adapters/registry.d.ts +8 -2
- package/esm/src/platform/adapters/registry.d.ts.map +1 -1
- package/esm/src/platform/adapters/registry.js +91 -68
- package/esm/src/platform/adapters/runtime/bun/adapter.d.ts +3 -3
- package/esm/src/platform/adapters/runtime/bun/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/bun/adapter.js +8 -8
- package/esm/src/platform/adapters/runtime/bun/filesystem-adapter.d.ts +13 -13
- package/esm/src/platform/adapters/runtime/bun/filesystem-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/bun/filesystem-adapter.js +36 -151
- package/esm/src/platform/adapters/runtime/bun/http-server.d.ts +18 -7
- package/esm/src/platform/adapters/runtime/bun/http-server.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/bun/http-server.js +145 -16
- package/esm/src/platform/adapters/runtime/bun/types.d.ts +54 -26
- package/esm/src/platform/adapters/runtime/bun/types.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/bun/types.js +5 -1
- package/esm/src/platform/adapters/runtime/bun/websocket-adapter.d.ts +23 -16
- package/esm/src/platform/adapters/runtime/bun/websocket-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/bun/websocket-adapter.js +163 -56
- package/esm/src/platform/adapters/runtime/deno/adapter.d.ts +8 -48
- package/esm/src/platform/adapters/runtime/deno/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/deno/adapter.js +12 -352
- package/esm/src/platform/adapters/runtime/deno/environment-adapter.d.ts +7 -0
- package/esm/src/platform/adapters/runtime/deno/environment-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/deno/environment-adapter.js +12 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.d.ts +45 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/deno/filesystem-adapter.js +291 -0
- package/esm/src/platform/adapters/runtime/deno/http-server.d.ts +49 -0
- package/esm/src/platform/adapters/runtime/deno/http-server.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/deno/http-server.js +191 -0
- package/esm/src/platform/adapters/runtime/deno/shell-adapter.d.ts +9 -0
- package/esm/src/platform/adapters/runtime/deno/shell-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/deno/shell-adapter.js +20 -0
- package/esm/src/platform/adapters/runtime/deno/websocket-adapter.d.ts +6 -0
- package/esm/src/platform/adapters/runtime/deno/websocket-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/deno/websocket-adapter.js +24 -0
- package/esm/src/platform/adapters/runtime/node/adapter.d.ts +3 -3
- package/esm/src/platform/adapters/runtime/node/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/node/adapter.js +6 -8
- package/esm/src/platform/adapters/runtime/node/filesystem-adapter.d.ts +4 -17
- package/esm/src/platform/adapters/runtime/node/filesystem-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/node/filesystem-adapter.js +12 -114
- package/esm/src/platform/adapters/runtime/node/http-server.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/node/http-server.js +26 -11
- package/esm/src/platform/adapters/runtime/node/websocket-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/env-to-object.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/env-to-object.js +1 -7
- package/esm/src/platform/adapters/runtime/shared/node-based-shell-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/node-based-shell-adapter.js +3 -20
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts +71 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.js +471 -0
- package/esm/src/platform/adapters/runtime/shared/request-peer.d.ts +31 -0
- package/esm/src/platform/adapters/runtime/shared/request-peer.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/request-peer.js +108 -0
- package/esm/src/platform/adapters/runtime/shared/server-lifecycle.d.ts +19 -3
- package/esm/src/platform/adapters/runtime/shared/server-lifecycle.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/server-lifecycle.js +96 -13
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.d.ts +12 -10
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/shared-watcher.js +123 -19
- package/esm/src/platform/adapters/runtime/shared/temp-dir.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/temp-dir.js +6 -2
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/watcher-queue.js +37 -4
- package/esm/src/platform/adapters/runtime-detection.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime-detection.js +2 -10
- package/esm/src/platform/adapters/veryfront-api-client/client.d.ts +17 -6
- package/esm/src/platform/adapters/veryfront-api-client/client.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/client.js +36 -2
- package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts +8 -2
- package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/operations.js +102 -4
- package/esm/src/platform/adapters/veryfront-api-client/retry-handler.d.ts +3 -1
- package/esm/src/platform/adapters/veryfront-api-client/retry-handler.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/retry-handler.js +2 -2
- package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.d.ts +14 -4
- package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.js +8 -0
- package/esm/src/platform/adapters/veryfront-api-client/schemas/index.d.ts +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/schemas/index.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/schemas/index.js +1 -1
- package/esm/src/platform/adapters/veryfront-api-transport.d.ts +19 -7
- package/esm/src/platform/adapters/veryfront-api-transport.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-transport.js +260 -24
- package/esm/src/platform/adapters/veryfront-api-url.d.ts +10 -0
- package/esm/src/platform/adapters/veryfront-api-url.d.ts.map +1 -0
- package/esm/src/platform/adapters/veryfront-api-url.js +81 -0
- package/esm/src/platform/cloud/resolver.d.ts.map +1 -1
- package/esm/src/platform/cloud/resolver.js +15 -3
- package/esm/src/platform/compat/abort-signal.d.ts +20 -0
- package/esm/src/platform/compat/abort-signal.d.ts.map +1 -0
- package/esm/src/platform/compat/abort-signal.js +64 -0
- package/esm/src/platform/compat/async-context.d.ts +8 -0
- package/esm/src/platform/compat/async-context.d.ts.map +1 -0
- package/esm/src/platform/compat/async-context.js +7 -0
- package/esm/src/platform/compat/constants.d.ts +2 -2
- package/esm/src/platform/compat/constants.d.ts.map +1 -1
- package/esm/src/platform/compat/constants.js +2 -2
- package/esm/src/platform/compat/error-introspection.d.ts +37 -0
- package/esm/src/platform/compat/error-introspection.d.ts.map +1 -0
- package/esm/src/platform/compat/error-introspection.js +258 -0
- package/esm/src/platform/compat/esbuild-init.js +50 -35
- package/esm/src/platform/compat/esbuild-shared.d.ts +1 -0
- package/esm/src/platform/compat/esbuild-shared.d.ts.map +1 -1
- package/esm/src/platform/compat/esbuild-shared.js +1 -0
- package/esm/src/platform/compat/framework-source-resolver.d.ts.map +1 -1
- package/esm/src/platform/compat/framework-source-resolver.js +29 -18
- package/esm/src/platform/compat/fs.d.ts +33 -8
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +144 -42
- package/esm/src/platform/compat/http/deno-server.d.ts +4 -1
- package/esm/src/platform/compat/http/deno-server.d.ts.map +1 -1
- package/esm/src/platform/compat/http/deno-server.js +144 -22
- package/esm/src/platform/compat/http/index.d.ts +1 -1
- package/esm/src/platform/compat/http/index.d.ts.map +1 -1
- package/esm/src/platform/compat/http/native-response.d.ts +4 -2
- package/esm/src/platform/compat/http/native-response.d.ts.map +1 -1
- package/esm/src/platform/compat/http/native-response.js +23 -3
- package/esm/src/platform/compat/http/node-server.d.ts +12 -4
- package/esm/src/platform/compat/http/node-server.d.ts.map +1 -1
- package/esm/src/platform/compat/http/node-server.js +145 -61
- package/esm/src/platform/compat/http/node-types.d.ts +7 -0
- package/esm/src/platform/compat/http/node-types.d.ts.map +1 -1
- package/esm/src/platform/compat/http/pinned-fetch.d.ts +10 -0
- package/esm/src/platform/compat/http/pinned-fetch.d.ts.map +1 -0
- package/esm/src/platform/compat/http/pinned-fetch.js +204 -0
- package/esm/src/platform/compat/http/request-adapter.js +58 -12
- package/esm/src/platform/compat/http/response-lifecycle.d.ts +6 -0
- package/esm/src/platform/compat/http/response-lifecycle.d.ts.map +1 -1
- package/esm/src/platform/compat/http/response-lifecycle.js +80 -31
- package/esm/src/platform/compat/http/responses.d.ts +1 -2
- package/esm/src/platform/compat/http/responses.d.ts.map +1 -1
- package/esm/src/platform/compat/http/responses.js +22 -14
- package/esm/src/platform/compat/http/types.d.ts +13 -0
- package/esm/src/platform/compat/http/types.d.ts.map +1 -1
- package/esm/src/platform/compat/http/websocket.d.ts +12 -0
- package/esm/src/platform/compat/http/websocket.d.ts.map +1 -1
- package/esm/src/platform/compat/http/websocket.js +36 -5
- package/esm/src/platform/compat/index.d.ts +1 -1
- package/esm/src/platform/compat/index.d.ts.map +1 -1
- package/esm/src/platform/compat/index.js +2 -2
- package/esm/src/platform/compat/kv/factory.d.ts +12 -0
- package/esm/src/platform/compat/kv/factory.d.ts.map +1 -1
- package/esm/src/platform/compat/kv/factory.js +24 -1
- package/esm/src/platform/compat/kv/internal.d.ts +9 -0
- package/esm/src/platform/compat/kv/internal.d.ts.map +1 -0
- package/esm/src/platform/compat/kv/internal.js +54 -0
- package/esm/src/platform/compat/kv/memory-adapter.d.ts +0 -2
- package/esm/src/platform/compat/kv/memory-adapter.d.ts.map +1 -1
- package/esm/src/platform/compat/kv/memory-adapter.js +22 -19
- package/esm/src/platform/compat/kv/sqlite-adapter.d.ts +0 -2
- package/esm/src/platform/compat/kv/sqlite-adapter.d.ts.map +1 -1
- package/esm/src/platform/compat/kv/sqlite-adapter.js +25 -29
- package/esm/src/platform/compat/kv/types.d.ts +6 -0
- package/esm/src/platform/compat/kv/types.d.ts.map +1 -1
- package/esm/src/platform/compat/native-brand-checks.d.ts +14 -0
- package/esm/src/platform/compat/native-brand-checks.d.ts.map +1 -0
- package/esm/src/platform/compat/native-brand-checks.js +68 -0
- package/esm/src/platform/compat/not-found-error.d.ts +12 -0
- package/esm/src/platform/compat/not-found-error.d.ts.map +1 -0
- package/esm/src/platform/compat/not-found-error.js +174 -0
- package/esm/src/platform/compat/path/security.d.ts.map +1 -1
- package/esm/src/platform/compat/path/security.js +3 -5
- package/esm/src/platform/compat/process/command.d.ts +24 -1
- package/esm/src/platform/compat/process/command.d.ts.map +1 -1
- package/esm/src/platform/compat/process/command.js +393 -78
- package/esm/src/platform/compat/process/env.d.ts +12 -0
- package/esm/src/platform/compat/process/env.d.ts.map +1 -1
- package/esm/src/platform/compat/process/env.js +29 -38
- package/esm/src/platform/compat/process/global-error.d.ts +19 -0
- package/esm/src/platform/compat/process/global-error.d.ts.map +1 -0
- package/esm/src/platform/compat/process/global-error.js +57 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts +10 -3
- package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -1
- package/esm/src/platform/compat/process/lifecycle.js +74 -23
- package/esm/src/platform/compat/process/project-env-contract.d.ts +19 -0
- package/esm/src/platform/compat/process/project-env-contract.d.ts.map +1 -0
- package/esm/src/platform/compat/process/project-env-contract.js +19 -0
- package/esm/src/platform/compat/proxy-topology.d.ts +17 -0
- package/esm/src/platform/compat/proxy-topology.d.ts.map +1 -0
- package/esm/src/platform/compat/proxy-topology.js +20 -0
- package/esm/src/platform/compat/react-paths.d.ts +1 -1
- package/esm/src/platform/compat/react-paths.d.ts.map +1 -1
- package/esm/src/platform/compat/react-paths.js +4 -12
- package/esm/src/platform/compat/runtime.d.ts +14 -5
- package/esm/src/platform/compat/runtime.d.ts.map +1 -1
- package/esm/src/platform/compat/runtime.js +34 -9
- package/esm/src/platform/compat/std/dotenv-limits.d.ts +11 -0
- package/esm/src/platform/compat/std/dotenv-limits.d.ts.map +1 -0
- package/esm/src/platform/compat/std/dotenv-limits.js +10 -0
- package/esm/src/platform/compat/std/dotenv.d.ts +46 -9
- package/esm/src/platform/compat/std/dotenv.d.ts.map +1 -1
- package/esm/src/platform/compat/std/dotenv.js +351 -48
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts +12 -0
- package/esm/src/platform/compat/std/front-matter-yaml.d.ts.map +1 -1
- package/esm/src/platform/compat/std/front-matter-yaml.js +35 -3
- package/esm/src/platform/compat/stdin.d.ts +18 -12
- package/esm/src/platform/compat/stdin.d.ts.map +1 -1
- package/esm/src/platform/compat/stdin.js +108 -80
- package/esm/src/platform/compat/temp-directory-prefix.d.ts +8 -0
- package/esm/src/platform/compat/temp-directory-prefix.d.ts.map +1 -0
- package/esm/src/platform/compat/temp-directory-prefix.js +15 -0
- package/esm/src/platform/compat/transform.d.ts.map +1 -1
- package/esm/src/platform/compat/transform.js +7 -6
- package/esm/src/platform/compat/vfs-paths.d.ts.map +1 -1
- package/esm/src/platform/compat/vfs-paths.js +23 -10
- package/esm/src/platform/environment.d.ts.map +1 -1
- package/esm/src/platform/environment.js +20 -5
- package/esm/src/prompt/factory.d.ts.map +1 -1
- package/esm/src/prompt/factory.js +153 -19
- package/esm/src/prompt/index.d.ts +1 -1
- package/esm/src/prompt/index.d.ts.map +1 -1
- package/esm/src/prompt/registry.d.ts +17 -4
- package/esm/src/prompt/registry.d.ts.map +1 -1
- package/esm/src/prompt/registry.js +29 -4
- package/esm/src/prompt/schemas/prompt.schema.d.ts +59 -1
- package/esm/src/prompt/schemas/prompt.schema.d.ts.map +1 -1
- package/esm/src/prompt/schemas/prompt.schema.js +38 -7
- package/esm/src/prompt/types.d.ts +7 -2
- package/esm/src/prompt/types.d.ts.map +1 -1
- package/esm/src/prompt/validation.d.ts +18 -0
- package/esm/src/prompt/validation.d.ts.map +1 -0
- package/esm/src/prompt/validation.js +188 -0
- package/esm/src/provider/index.d.ts +1 -1
- package/esm/src/provider/index.d.ts.map +1 -1
- package/esm/src/provider/local/model-runtime-adapter.d.ts.map +1 -1
- package/esm/src/provider/local/model-runtime-adapter.js +8 -4
- package/esm/src/provider/model-registry.d.ts +28 -18
- package/esm/src/provider/model-registry.d.ts.map +1 -1
- package/esm/src/provider/model-registry.js +192 -125
- package/esm/src/provider/runtime-inspection.d.ts +8 -1
- package/esm/src/provider/runtime-inspection.d.ts.map +1 -1
- package/esm/src/provider/runtime-inspection.js +35 -11
- package/esm/src/provider/runtime-loader/json-snapshot.d.ts +52 -0
- package/esm/src/provider/runtime-loader/json-snapshot.d.ts.map +1 -0
- package/esm/src/provider/runtime-loader/json-snapshot.js +405 -0
- package/esm/src/provider/runtime-loader/provider-embedding-responses.d.ts +0 -4
- package/esm/src/provider/runtime-loader/provider-embedding-responses.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-embedding-responses.js +2 -55
- package/esm/src/provider/runtime-loader/provider-endpoints.d.ts +1 -0
- package/esm/src/provider/runtime-loader/provider-endpoints.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-endpoints.js +41 -5
- package/esm/src/provider/runtime-loader/provider-http.d.ts +18 -3
- package/esm/src/provider/runtime-loader/provider-http.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-http.js +435 -41
- package/esm/src/provider/runtime-loader/provider-request-init.d.ts +3 -0
- package/esm/src/provider/runtime-loader/provider-request-init.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-request-init.js +48 -17
- package/esm/src/provider/runtime-loader/provider-sse.d.ts +16 -1
- package/esm/src/provider/runtime-loader/provider-sse.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-sse.js +42 -5
- package/esm/src/provider/runtime-loader/provider-usage.d.ts +3 -26
- package/esm/src/provider/runtime-loader/provider-usage.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-usage.js +42 -107
- package/esm/src/provider/runtime-loader/tool-input-status.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/tool-input-status.js +145 -52
- package/esm/src/provider/runtime-loader.d.ts +12 -59
- package/esm/src/provider/runtime-loader.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader.js +71 -13
- package/esm/src/provider/runtime-usage.d.ts +76 -0
- package/esm/src/provider/runtime-usage.d.ts.map +1 -0
- package/esm/src/provider/runtime-usage.js +200 -0
- package/esm/src/provider/shared/index.d.ts +7 -7
- package/esm/src/provider/shared/index.d.ts.map +1 -1
- package/esm/src/provider/shared/index.js +6 -7
- package/esm/src/provider/types.d.ts +195 -6
- package/esm/src/provider/types.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/model-catalog.d.ts +19 -11
- package/esm/src/provider/veryfront-cloud/model-catalog.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/model-catalog.js +73 -39
- package/esm/src/provider/veryfront-cloud/provider.js +1 -1
- package/esm/src/provider/veryfront-cloud/shared.d.ts +1 -1
- package/esm/src/provider/veryfront-cloud/shared.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/shared.js +54 -23
- package/esm/src/proxy/asset-handler.d.ts +3 -1
- package/esm/src/proxy/asset-handler.d.ts.map +1 -1
- package/esm/src/proxy/asset-handler.js +269 -41
- package/esm/src/proxy/cache/extension-store.d.ts +35 -0
- package/esm/src/proxy/cache/extension-store.d.ts.map +1 -0
- package/esm/src/proxy/cache/extension-store.js +75 -0
- package/esm/src/proxy/cache/index.d.ts +10 -2
- package/esm/src/proxy/cache/index.d.ts.map +1 -1
- package/esm/src/proxy/cache/index.js +89 -28
- package/esm/src/proxy/cache/memory-cache.d.ts +3 -1
- package/esm/src/proxy/cache/memory-cache.d.ts.map +1 -1
- package/esm/src/proxy/cache/memory-cache.js +80 -21
- package/esm/src/proxy/cache/resilient-cache.d.ts +48 -12
- package/esm/src/proxy/cache/resilient-cache.d.ts.map +1 -1
- package/esm/src/proxy/cache/resilient-cache.js +343 -113
- package/esm/src/proxy/cache/tracing-cache.d.ts +11 -10
- package/esm/src/proxy/cache/tracing-cache.d.ts.map +1 -1
- package/esm/src/proxy/cache/tracing-cache.js +88 -19
- package/esm/src/proxy/cache/types.d.ts +7 -12
- package/esm/src/proxy/cache/types.d.ts.map +1 -1
- package/esm/src/proxy/cache/types.js +1 -1
- package/esm/src/proxy/cache/validation.d.ts +28 -0
- package/esm/src/proxy/cache/validation.d.ts.map +1 -0
- package/esm/src/proxy/cache/validation.js +192 -0
- package/esm/src/proxy/control-plane-signature.d.ts +44 -2
- package/esm/src/proxy/control-plane-signature.d.ts.map +1 -1
- package/esm/src/proxy/control-plane-signature.js +83 -116
- package/esm/src/proxy/error-response.d.ts.map +1 -1
- package/esm/src/proxy/error-response.js +15 -3
- package/esm/src/proxy/handler.d.ts +6 -3
- package/esm/src/proxy/handler.d.ts.map +1 -1
- package/esm/src/proxy/handler.js +201 -235
- package/esm/src/proxy/hop-by-hop-headers.d.ts +6 -0
- package/esm/src/proxy/hop-by-hop-headers.d.ts.map +1 -0
- package/esm/src/proxy/hop-by-hop-headers.js +34 -0
- package/esm/src/proxy/local-project-resolver.d.ts +4 -0
- package/esm/src/proxy/local-project-resolver.d.ts.map +1 -1
- package/esm/src/proxy/local-project-resolver.js +78 -40
- package/esm/src/proxy/main.js +81 -53
- package/esm/src/proxy/oauth-client.d.ts +1 -0
- package/esm/src/proxy/oauth-client.d.ts.map +1 -1
- package/esm/src/proxy/oauth-client.js +97 -7
- package/esm/src/proxy/project-metadata-client.d.ts +59 -0
- package/esm/src/proxy/project-metadata-client.d.ts.map +1 -0
- package/esm/src/proxy/project-metadata-client.js +427 -0
- package/esm/src/proxy/proxy-access-control.d.ts +1 -9
- package/esm/src/proxy/proxy-access-control.d.ts.map +1 -1
- package/esm/src/proxy/proxy-access-control.js +69 -36
- package/esm/src/proxy/proxy-token-resolution.d.ts +9 -4
- package/esm/src/proxy/proxy-token-resolution.d.ts.map +1 -1
- package/esm/src/proxy/proxy-token-resolution.js +52 -9
- package/esm/src/proxy/renderer-router.d.ts +30 -12
- package/esm/src/proxy/renderer-router.d.ts.map +1 -1
- package/esm/src/proxy/renderer-router.js +344 -77
- package/esm/src/proxy/request-drain.d.ts.map +1 -1
- package/esm/src/proxy/request-drain.js +42 -7
- package/esm/src/proxy/request-host.d.ts +10 -0
- package/esm/src/proxy/request-host.d.ts.map +1 -0
- package/esm/src/proxy/request-host.js +54 -0
- package/esm/src/proxy/request-init.d.ts +12 -0
- package/esm/src/proxy/request-init.d.ts.map +1 -0
- package/esm/src/proxy/request-init.js +12 -0
- package/esm/src/proxy/request-lifecycle.d.ts.map +1 -1
- package/esm/src/proxy/request-lifecycle.js +2 -1
- package/esm/src/proxy/request-path.d.ts +7 -0
- package/esm/src/proxy/request-path.d.ts.map +1 -0
- package/esm/src/proxy/request-path.js +15 -0
- package/esm/src/proxy/response-body.d.ts +22 -0
- package/esm/src/proxy/response-body.d.ts.map +1 -0
- package/esm/src/proxy/response-body.js +169 -0
- package/esm/src/proxy/response-headers.d.ts.map +1 -1
- package/esm/src/proxy/response-headers.js +100 -12
- package/esm/src/proxy/retry.d.ts.map +1 -1
- package/esm/src/proxy/retry.js +46 -7
- package/esm/src/proxy/routing-invalidation-redis.d.ts +2 -2
- package/esm/src/proxy/routing-invalidation-redis.d.ts.map +1 -1
- package/esm/src/proxy/routing-invalidation-redis.js +1 -2
- package/esm/src/proxy/routing-invalidation.d.ts +14 -11
- package/esm/src/proxy/routing-invalidation.d.ts.map +1 -1
- package/esm/src/proxy/routing-invalidation.js +139 -53
- package/esm/src/proxy/server-resolver.d.ts +33 -20
- package/esm/src/proxy/server-resolver.d.ts.map +1 -1
- package/esm/src/proxy/server-resolver.js +398 -75
- package/esm/src/proxy/shutdown-hooks.d.ts +19 -0
- package/esm/src/proxy/shutdown-hooks.d.ts.map +1 -0
- package/esm/src/proxy/shutdown-hooks.js +177 -0
- package/esm/src/proxy/shutdown-intrinsics.d.ts +16 -0
- package/esm/src/proxy/shutdown-intrinsics.d.ts.map +1 -0
- package/esm/src/proxy/shutdown-intrinsics.js +97 -0
- package/esm/src/proxy/shutdown-lifecycle.d.ts +25 -0
- package/esm/src/proxy/shutdown-lifecycle.d.ts.map +1 -0
- package/esm/src/proxy/shutdown-lifecycle.js +231 -0
- package/esm/src/proxy/split-forward-request.d.ts +13 -0
- package/esm/src/proxy/split-forward-request.d.ts.map +1 -0
- package/esm/src/proxy/split-forward-request.js +23 -0
- package/esm/src/proxy/timing.d.ts +6 -0
- package/esm/src/proxy/timing.d.ts.map +1 -0
- package/esm/src/proxy/timing.js +5 -0
- package/esm/src/proxy/token-manager.d.ts +39 -3
- package/esm/src/proxy/token-manager.d.ts.map +1 -1
- package/esm/src/proxy/token-manager.js +385 -72
- package/esm/src/react/compat/config-generator.d.ts.map +1 -1
- package/esm/src/react/compat/config-generator.js +38 -26
- package/esm/src/react/compat/hooks-adapter.d.ts.map +1 -1
- package/esm/src/react/compat/hooks-adapter.js +14 -36
- package/esm/src/react/compat/index.d.ts +1 -1
- package/esm/src/react/compat/index.d.ts.map +1 -1
- package/esm/src/react/compat/index.js +1 -1
- package/esm/src/react/compat/scope-commit-effect.d.ts +29 -0
- package/esm/src/react/compat/scope-commit-effect.d.ts.map +1 -0
- package/esm/src/react/compat/scope-commit-effect.js +29 -0
- package/esm/src/react/compat/ssr-adapter/html-wrapper.d.ts +5 -0
- package/esm/src/react/compat/ssr-adapter/html-wrapper.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/html-wrapper.js +25 -14
- package/esm/src/react/compat/ssr-adapter/response-builder.d.ts +5 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.js +128 -16
- package/esm/src/react/compat/ssr-adapter/server-loader.d.ts +1 -0
- package/esm/src/react/compat/ssr-adapter/server-loader.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/server-loader.js +7 -0
- package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/stream-renderer.js +216 -93
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.js +218 -21
- package/esm/src/react/compat/ssr-adapter/timeout.d.ts +5 -0
- package/esm/src/react/compat/ssr-adapter/timeout.d.ts.map +1 -0
- package/esm/src/react/compat/ssr-adapter/timeout.js +21 -0
- package/esm/src/react/compat/ssr-adapter/types.d.ts +5 -0
- package/esm/src/react/compat/ssr-adapter/types.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/compatibility-checker.d.ts +2 -1
- package/esm/src/react/compat/version-detector/compatibility-checker.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/compatibility-checker.js +9 -6
- package/esm/src/react/compat/version-detector/feature-detector.d.ts +1 -1
- package/esm/src/react/compat/version-detector/feature-detector.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/feature-detector.js +107 -35
- package/esm/src/react/compat/version-detector/index.d.ts +1 -1
- package/esm/src/react/compat/version-detector/index.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/index.js +1 -1
- package/esm/src/react/compat/version-detector/types.d.ts +23 -23
- package/esm/src/react/compat/version-detector/types.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/version-cache.d.ts +1 -2
- package/esm/src/react/compat/version-detector/version-cache.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/version-cache.js +6 -13
- package/esm/src/react/compat/version-detector/version-parser.d.ts +9 -1
- package/esm/src/react/compat/version-detector/version-parser.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/version-parser.js +46 -14
- package/esm/src/react/components/AppWrapper.d.ts +1 -2
- package/esm/src/react/components/AppWrapper.d.ts.map +1 -1
- package/esm/src/react/components/AppWrapper.js +1 -0
- package/esm/src/react/components/LayoutComponent.d.ts +1 -1
- package/esm/src/react/components/LayoutComponent.d.ts.map +1 -1
- package/esm/src/react/components/LayoutComponent.js +3 -40
- package/esm/src/react/components/MDXProvider.d.ts +14 -3
- package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
- package/esm/src/react/components/MDXProvider.js +16 -6
- package/esm/src/react/components/ProviderComponent.d.ts +1 -1
- package/esm/src/react/components/ProviderComponent.d.ts.map +1 -1
- package/esm/src/react/components/ProviderComponent.js +3 -37
- package/esm/src/react/components/chat/agent-card.d.ts +23 -9
- package/esm/src/react/components/chat/agent-card.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-card.js +23 -10
- package/esm/src/react/components/chat/agent-picker-context.d.ts +16 -2
- package/esm/src/react/components/chat/agent-picker-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-picker-context.js +16 -2
- package/esm/src/react/components/chat/agent-picker.d.ts +8 -89
- package/esm/src/react/components/chat/agent-picker.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-picker.js +12 -11
- package/esm/src/react/components/chat/agent-picker.types.d.ts +87 -0
- package/esm/src/react/components/chat/agent-picker.types.d.ts.map +1 -0
- package/esm/src/react/components/chat/agent-picker.types.js +1 -0
- package/esm/src/react/components/chat/chat/chat-attachments.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/chat-attachments.js +1 -0
- package/esm/src/react/components/chat/chat/chat-preset.d.ts +4 -0
- package/esm/src/react/components/chat/chat/chat-preset.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/chat-preset.js +41 -0
- package/esm/src/react/components/chat/chat/chat-props.d.ts +13 -0
- package/esm/src/react/components/chat/chat/chat-props.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts +47 -10
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/attachment-pill.js +25 -12
- package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts +62 -18
- package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/attachments-panel.js +40 -23
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts +15 -6
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/branch-picker.js +8 -8
- package/esm/src/react/components/chat/chat/components/code-block.d.ts +5 -5
- package/esm/src/react/components/chat/chat/components/code-block.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/code-block.js +19 -25
- package/esm/src/react/components/chat/chat/components/message-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-actions.js +27 -12
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts +30 -7
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/reasoning.js +20 -7
- package/esm/src/react/components/chat/chat/components/sidebar-rename-editor.d.ts +18 -0
- package/esm/src/react/components/chat/chat/components/sidebar-rename-editor.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/sidebar-rename-editor.js +38 -0
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts +21 -117
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sidebar.js +57 -32
- package/esm/src/react/components/chat/chat/components/sidebar.types.d.ts +134 -0
- package/esm/src/react/components/chat/chat/components/sidebar.types.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/components/sidebar.types.js +1 -0
- package/esm/src/react/components/chat/chat/components/sources.d.ts +41 -4
- package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sources.js +28 -6
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts +24 -7
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/step-indicator.js +20 -7
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts +36 -15
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/tool-ui.js +43 -19
- package/esm/src/react/components/chat/chat/composition/api.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/api.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/api.js +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +13 -126
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-composer.js +38 -96
- package/esm/src/react/components/chat/chat/composition/chat-composer.types.d.ts +178 -0
- package/esm/src/react/components/chat/chat/composition/chat-composer.types.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-composer.types.js +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-action-semantics.d.ts +16 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-action-semantics.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-action-semantics.js +20 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-actions.d.ts +26 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-actions.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-actions.js +44 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-attachment-picker.d.ts +15 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-attachment-picker.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-attachment-picker.js +37 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-form.d.ts +15 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-form.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-form.js +13 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-submit.d.ts +14 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-submit.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-input-submit.js +31 -0
- package/esm/src/react/components/chat/chat/composition/chat-root.js +2 -2
- package/esm/src/react/components/chat/chat/composition/message-body.d.ts +2 -2
- package/esm/src/react/components/chat/chat/composition/message-body.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/message-header.d.ts +49 -0
- package/esm/src/react/components/chat/chat/composition/message-header.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/composition/message-header.js +66 -0
- package/esm/src/react/components/chat/chat/composition/message.d.ts +17 -55
- package/esm/src/react/components/chat/chat/composition/message.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/message.js +31 -94
- package/esm/src/react/components/chat/chat/composition/use-composer-value.d.ts +32 -26
- package/esm/src/react/components/chat/chat/composition/use-composer-value.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/use-composer-value.js +14 -10
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts +14 -2
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/chat-context.js +15 -2
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts +23 -3
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/composer-context.js +16 -3
- package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts +9 -3
- package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/index.d.ts +2 -2
- package/esm/src/react/components/chat/chat/contexts/index.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/index.js +2 -2
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts +37 -3
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/message-context.js +37 -2
- package/esm/src/react/components/chat/chat/controlled-chat.d.ts +1 -1
- package/esm/src/react/components/chat/chat/controlled-chat.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/controlled-chat.js +2 -3
- package/esm/src/react/components/chat/chat/hooks/report-unhandled-error.d.ts +2 -0
- package/esm/src/react/components/chat/chat/hooks/report-unhandled-error.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/hooks/report-unhandled-error.js +18 -0
- package/esm/src/react/components/chat/chat/hooks/use-chat-input.d.ts +99 -0
- package/esm/src/react/components/chat/chat/hooks/use-chat-input.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/hooks/use-chat-input.js +181 -0
- package/esm/src/react/components/chat/chat/hooks/use-clipboard.d.ts +5 -1
- package/esm/src/react/components/chat/chat/hooks/use-clipboard.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-clipboard.js +11 -27
- package/esm/src/react/components/chat/chat/hooks/use-conversation.d.ts +15 -2
- package/esm/src/react/components/chat/chat/hooks/use-conversation.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-conversation.js +97 -8
- package/esm/src/react/components/chat/chat/hooks/use-conversations.d.ts +43 -4
- package/esm/src/react/components/chat/chat/hooks/use-conversations.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-conversations.js +960 -156
- package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.d.ts +29 -0
- package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.js +47 -0
- package/esm/src/react/components/chat/chat/hooks/use-upload.d.ts +29 -0
- package/esm/src/react/components/chat/chat/hooks/use-upload.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-upload.js +345 -92
- package/esm/src/react/components/chat/chat/hooks/use-uploads-registry.d.ts +19 -1
- package/esm/src/react/components/chat/chat/hooks/use-uploads-registry.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-uploads-registry.js +463 -85
- package/esm/src/react/components/chat/chat/index.d.ts +12 -11
- package/esm/src/react/components/chat/chat/index.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/index.js +5 -48
- package/esm/src/react/components/chat/chat/persistence/conversation-codec.d.ts +92 -0
- package/esm/src/react/components/chat/chat/persistence/conversation-codec.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/persistence/conversation-codec.js +842 -0
- package/esm/src/react/components/chat/chat/persistence/conversation-store-lock.d.ts +28 -0
- package/esm/src/react/components/chat/chat/persistence/conversation-store-lock.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/persistence/conversation-store-lock.js +45 -0
- package/esm/src/react/components/chat/chat/persistence/conversation-store.d.ts +41 -5
- package/esm/src/react/components/chat/chat/persistence/conversation-store.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/persistence/conversation-store.js +21 -1
- package/esm/src/react/components/chat/chat/persistence/local-conversation-store.d.ts +11 -3
- package/esm/src/react/components/chat/chat/persistence/local-conversation-store.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/persistence/local-conversation-store.js +734 -52
- package/esm/src/react/components/chat/chat/persistence/memory-conversation-store.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/persistence/memory-conversation-store.js +21 -13
- package/esm/src/react/components/chat/chat/upload-url.d.ts +28 -0
- package/esm/src/react/components/chat/chat/upload-url.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/upload-url.js +77 -0
- package/esm/src/react/components/chat/chat-actions-settings.d.ts +31 -0
- package/esm/src/react/components/chat/chat-actions-settings.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat-actions-settings.js +138 -0
- package/esm/src/react/components/chat/chat-actions-trigger.d.ts +18 -0
- package/esm/src/react/components/chat/chat-actions-trigger.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat-actions-trigger.js +27 -0
- package/esm/src/react/components/chat/chat-actions.d.ts +10 -120
- package/esm/src/react/components/chat/chat-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat-actions.js +32 -96
- package/esm/src/react/components/chat/chat-actions.types.d.ts +114 -0
- package/esm/src/react/components/chat/chat-actions.types.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat-actions.types.js +1 -0
- package/esm/src/react/components/chat/chat-theme-scope.js +2 -2
- package/esm/src/react/components/chat/chat.d.ts +7 -4
- package/esm/src/react/components/chat/chat.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat.js +6 -3
- package/esm/src/react/components/chat/error-boundary.d.ts.map +1 -1
- package/esm/src/react/components/chat/error-boundary.js +0 -2
- package/esm/src/react/components/chat/markdown.d.ts +62 -34
- package/esm/src/react/components/chat/markdown.d.ts.map +1 -1
- package/esm/src/react/components/chat/markdown.js +46 -167
- package/esm/src/react/components/chat/model-selector.d.ts +27 -12
- package/esm/src/react/components/chat/model-selector.d.ts.map +1 -1
- package/esm/src/react/components/chat/model-selector.js +26 -12
- package/esm/src/react/components/clipboard.d.ts +34 -0
- package/esm/src/react/components/clipboard.d.ts.map +1 -0
- package/esm/src/react/components/clipboard.js +194 -0
- package/esm/src/react/components/mdx-wrapper-error.d.ts +17 -0
- package/esm/src/react/components/mdx-wrapper-error.d.ts.map +1 -0
- package/esm/src/react/components/mdx-wrapper-error.js +25 -0
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.js +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.js +1 -1
- package/esm/src/react/components/optimized-image/useOptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/useOptimizedImage.js +1 -1
- package/esm/src/react/components/optimized-image/utils.d.ts +4 -4
- package/esm/src/react/components/optimized-image/utils.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/utils.js +60 -3
- package/esm/src/react/components/ui/accordion.d.ts +91 -0
- package/esm/src/react/components/ui/accordion.d.ts.map +1 -0
- package/esm/src/react/components/ui/accordion.js +148 -0
- package/esm/src/react/components/ui/adapter/builtin/disclosure.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/disclosure.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/disclosure.js +71 -0
- package/esm/src/react/components/ui/adapter/builtin/index.d.ts +10 -0
- package/esm/src/react/components/ui/adapter/builtin/index.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/index.js +11 -0
- package/esm/src/react/components/ui/adapter/builtin/toast.d.ts +25 -0
- package/esm/src/react/components/ui/adapter/builtin/toast.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/toast.js +136 -0
- package/esm/src/react/components/ui/adapter/builtin/toggle-group.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/toggle-group.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/toggle-group.js +71 -0
- package/esm/src/react/components/ui/adapter/builtin/toolbar.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/toolbar.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/toolbar.js +148 -0
- package/esm/src/react/components/ui/adapter/context.d.ts +23 -0
- package/esm/src/react/components/ui/adapter/context.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/context.js +39 -0
- package/esm/src/react/components/ui/adapter/contract.d.ts +201 -0
- package/esm/src/react/components/ui/adapter/contract.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/contract.js +19 -0
- package/esm/src/react/components/ui/anchored-surface.d.ts +38 -9
- package/esm/src/react/components/ui/anchored-surface.d.ts.map +1 -1
- package/esm/src/react/components/ui/anchored-surface.js +81 -17
- package/esm/src/react/components/ui/app-shell.d.ts +1 -1
- package/esm/src/react/components/ui/app-shell.d.ts.map +1 -1
- package/esm/src/react/components/ui/app-shell.js +112 -24
- package/esm/src/react/components/ui/badge.d.ts +1 -1
- package/esm/src/react/components/ui/code-block.d.ts +54 -42
- package/esm/src/react/components/ui/code-block.d.ts.map +1 -1
- package/esm/src/react/components/ui/code-block.js +94 -237
- package/esm/src/react/components/ui/collapsible.d.ts +35 -13
- package/esm/src/react/components/ui/collapsible.d.ts.map +1 -1
- package/esm/src/react/components/ui/collapsible.js +111 -30
- package/esm/src/react/components/ui/color-mode.d.ts +7 -0
- package/esm/src/react/components/ui/color-mode.d.ts.map +1 -1
- package/esm/src/react/components/ui/color-mode.js +49 -29
- package/esm/src/react/components/ui/command.d.ts +32 -10
- package/esm/src/react/components/ui/command.d.ts.map +1 -1
- package/esm/src/react/components/ui/command.js +273 -33
- package/esm/src/react/components/ui/csp-nonce.d.ts +6 -2
- package/esm/src/react/components/ui/csp-nonce.d.ts.map +1 -1
- package/esm/src/react/components/ui/csp-nonce.js +13 -2
- package/esm/src/react/components/ui/dialog.d.ts +8 -8
- package/esm/src/react/components/ui/dialog.d.ts.map +1 -1
- package/esm/src/react/components/ui/dialog.js +43 -12
- package/esm/src/react/components/ui/disclosure-id-registry.d.ts +4 -0
- package/esm/src/react/components/ui/disclosure-id-registry.d.ts.map +1 -0
- package/esm/src/react/components/ui/disclosure-id-registry.js +35 -0
- package/esm/src/react/components/ui/dismissable-layer.d.ts +7 -0
- package/esm/src/react/components/ui/dismissable-layer.d.ts.map +1 -0
- package/esm/src/react/components/ui/dismissable-layer.js +67 -0
- package/esm/src/react/components/ui/drawer.d.ts +6 -7
- package/esm/src/react/components/ui/drawer.d.ts.map +1 -1
- package/esm/src/react/components/ui/drawer.js +22 -9
- package/esm/src/react/components/ui/dropdown-menu.d.ts +40 -16
- package/esm/src/react/components/ui/dropdown-menu.d.ts.map +1 -1
- package/esm/src/react/components/ui/dropdown-menu.js +140 -26
- package/esm/src/react/components/ui/floating.d.ts +16 -9
- package/esm/src/react/components/ui/floating.d.ts.map +1 -1
- package/esm/src/react/components/ui/floating.js +92 -42
- package/esm/src/react/components/ui/focus-management.d.ts +9 -0
- package/esm/src/react/components/ui/focus-management.d.ts.map +1 -0
- package/esm/src/react/components/ui/focus-management.js +118 -0
- package/esm/src/react/components/ui/icon-button.d.ts +1 -2
- package/esm/src/react/components/ui/icon-button.d.ts.map +1 -1
- package/esm/src/react/components/ui/icon-button.js +1 -2
- package/esm/src/react/components/ui/index.d.ts +10 -4
- package/esm/src/react/components/ui/index.d.ts.map +1 -1
- package/esm/src/react/components/ui/index.js +7 -2
- package/esm/src/react/components/ui/input.d.ts +1 -2
- package/esm/src/react/components/ui/input.d.ts.map +1 -1
- package/esm/src/react/components/ui/input.js +2 -4
- package/esm/src/react/components/ui/label.d.ts +1 -1
- package/esm/src/react/components/ui/list.d.ts +16 -2
- package/esm/src/react/components/ui/list.d.ts.map +1 -1
- package/esm/src/react/components/ui/list.js +137 -9
- package/esm/src/react/components/ui/modal-surface.d.ts +18 -4
- package/esm/src/react/components/ui/modal-surface.d.ts.map +1 -1
- package/esm/src/react/components/ui/modal-surface.js +167 -27
- package/esm/src/react/components/ui/popover.d.ts +12 -10
- package/esm/src/react/components/ui/popover.d.ts.map +1 -1
- package/esm/src/react/components/ui/popover.js +5 -12
- package/esm/src/react/components/ui/select.d.ts +48 -26
- package/esm/src/react/components/ui/select.d.ts.map +1 -1
- package/esm/src/react/components/ui/select.js +829 -86
- package/esm/src/react/components/ui/slot.d.ts +21 -6
- package/esm/src/react/components/ui/slot.d.ts.map +1 -1
- package/esm/src/react/components/ui/slot.js +132 -22
- package/esm/src/react/components/ui/textarea.d.ts +1 -1
- package/esm/src/react/components/ui/textarea.d.ts.map +1 -1
- package/esm/src/react/components/ui/textarea.js +2 -3
- package/esm/src/react/components/ui/toast-parts.d.ts +102 -0
- package/esm/src/react/components/ui/toast-parts.d.ts.map +1 -0
- package/esm/src/react/components/ui/toast-parts.js +112 -0
- package/esm/src/react/components/ui/toast.d.ts +65 -0
- package/esm/src/react/components/ui/toast.d.ts.map +1 -0
- package/esm/src/react/components/ui/toast.js +104 -0
- package/esm/src/react/components/ui/toggle-group.d.ts +32 -0
- package/esm/src/react/components/ui/toggle-group.d.ts.map +1 -0
- package/esm/src/react/components/ui/toggle-group.js +27 -0
- package/esm/src/react/components/ui/tokens.js +2 -2
- package/esm/src/react/components/ui/toolbar.d.ts +68 -0
- package/esm/src/react/components/ui/toolbar.d.ts.map +1 -0
- package/esm/src/react/components/ui/toolbar.js +58 -0
- package/esm/src/react/components/ui/tooltip.d.ts +10 -22
- package/esm/src/react/components/ui/tooltip.d.ts.map +1 -1
- package/esm/src/react/components/ui/tooltip.js +574 -95
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.d.ts +6 -0
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.js +8 -0
- package/esm/src/react/fonts/index.d.ts +2 -2
- package/esm/src/react/fonts/index.d.ts.map +1 -1
- package/esm/src/react/fonts/index.js +132 -21
- package/esm/src/react/head-collector.d.ts +31 -4
- package/esm/src/react/head-collector.d.ts.map +1 -1
- package/esm/src/react/head-collector.js +179 -59
- package/esm/src/react/index.d.ts +2 -2
- package/esm/src/react/index.d.ts.map +1 -1
- package/esm/src/react/index.js +1 -1
- package/esm/src/react/primitives/input-box.d.ts +2 -0
- package/esm/src/react/primitives/input-box.d.ts.map +1 -1
- package/esm/src/react/primitives/input-box.js +47 -12
- package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
- package/esm/src/react/primitives/tool-primitives.js +15 -5
- package/esm/src/react/runtime/core.d.ts.map +1 -1
- package/esm/src/react/runtime/core.js +44 -137
- package/esm/src/react/server-render-context.d.ts +22 -0
- package/esm/src/react/server-render-context.d.ts.map +1 -0
- package/esm/src/react/server-render-context.js +63 -0
- package/esm/src/registry/project-scoped-registry-manager.d.ts +66 -8
- package/esm/src/registry/project-scoped-registry-manager.d.ts.map +1 -1
- package/esm/src/registry/project-scoped-registry-manager.js +418 -140
- package/esm/src/registry/scoped-registry-facade.d.ts +24 -0
- package/esm/src/registry/scoped-registry-facade.d.ts.map +1 -1
- package/esm/src/registry/scoped-registry-facade.js +48 -0
- package/esm/src/release-assets/build-executor.d.ts +73 -32
- package/esm/src/release-assets/build-executor.d.ts.map +1 -1
- package/esm/src/release-assets/build-executor.js +1118 -642
- package/esm/src/release-assets/client-module-map.d.ts +6 -2
- package/esm/src/release-assets/client-module-map.d.ts.map +1 -1
- package/esm/src/release-assets/client-module-map.js +34 -19
- package/esm/src/release-assets/constants.d.ts +25 -3
- package/esm/src/release-assets/constants.d.ts.map +1 -1
- package/esm/src/release-assets/constants.js +34 -5
- package/esm/src/release-assets/css-compile.d.ts +21 -18
- package/esm/src/release-assets/css-compile.d.ts.map +1 -1
- package/esm/src/release-assets/css-compile.js +81 -48
- package/esm/src/release-assets/dependency-artifact-builder.d.ts +71 -0
- package/esm/src/release-assets/dependency-artifact-builder.d.ts.map +1 -0
- package/esm/src/release-assets/dependency-artifact-builder.js +598 -0
- package/esm/src/release-assets/dependency-artifact-contracts.d.ts +44 -0
- package/esm/src/release-assets/dependency-artifact-contracts.d.ts.map +1 -0
- package/esm/src/release-assets/dependency-artifact-contracts.js +1 -0
- package/esm/src/release-assets/dependency-artifact-graph.d.ts +52 -0
- package/esm/src/release-assets/dependency-artifact-graph.d.ts.map +1 -0
- package/esm/src/release-assets/dependency-artifact-graph.js +200 -0
- package/esm/src/release-assets/html-consumption.d.ts.map +1 -1
- package/esm/src/release-assets/html-consumption.js +26 -13
- package/esm/src/release-assets/index.d.ts +19 -6
- package/esm/src/release-assets/index.d.ts.map +1 -1
- package/esm/src/release-assets/index.js +19 -6
- package/esm/src/release-assets/manifest-cache.d.ts +20 -14
- package/esm/src/release-assets/manifest-cache.d.ts.map +1 -1
- package/esm/src/release-assets/manifest-cache.js +202 -63
- package/esm/src/release-assets/manifest-schema.d.ts +45 -20
- package/esm/src/release-assets/manifest-schema.d.ts.map +1 -1
- package/esm/src/release-assets/manifest-schema.js +398 -95
- package/esm/src/release-assets/module-consumption.d.ts +2 -1
- package/esm/src/release-assets/module-consumption.d.ts.map +1 -1
- package/esm/src/release-assets/module-consumption.js +81 -18
- package/esm/src/release-assets/route-path.d.ts.map +1 -1
- package/esm/src/release-assets/route-path.js +19 -2
- package/esm/src/release-assets/string-validation.d.ts +3 -0
- package/esm/src/release-assets/string-validation.d.ts.map +1 -0
- package/esm/src/release-assets/string-validation.js +9 -0
- package/esm/src/rendering/cache/cache-coordinator.d.ts +8 -4
- package/esm/src/rendering/cache/cache-coordinator.d.ts.map +1 -1
- package/esm/src/rendering/cache/cache-coordinator.js +91 -17
- package/esm/src/rendering/cache/cache-payload.d.ts +17 -0
- package/esm/src/rendering/cache/cache-payload.d.ts.map +1 -0
- package/esm/src/rendering/cache/cache-payload.js +823 -0
- package/esm/src/rendering/cache/stores/api-store.d.ts +0 -2
- package/esm/src/rendering/cache/stores/api-store.d.ts.map +1 -1
- package/esm/src/rendering/cache/stores/api-store.js +5 -41
- package/esm/src/rendering/cache/stores/filesystem-store.d.ts.map +1 -1
- package/esm/src/rendering/cache/stores/filesystem-store.js +3 -8
- package/esm/src/rendering/cache/stores/memory-store.d.ts +1 -0
- package/esm/src/rendering/cache/stores/memory-store.d.ts.map +1 -1
- package/esm/src/rendering/cache/stores/memory-store.js +6 -0
- package/esm/src/rendering/cache/stores/redis-store.d.ts +3 -2
- package/esm/src/rendering/cache/stores/redis-store.d.ts.map +1 -1
- package/esm/src/rendering/cache/stores/redis-store.js +65 -46
- package/esm/src/rendering/cache/types.d.ts +10 -0
- package/esm/src/rendering/cache/types.d.ts.map +1 -1
- package/esm/src/rendering/context/render-context.d.ts +2 -0
- package/esm/src/rendering/context/render-context.d.ts.map +1 -1
- package/esm/src/rendering/context/render-context.js +4 -0
- package/esm/src/rendering/orchestrator/html-head.d.ts +25 -3
- package/esm/src/rendering/orchestrator/html-head.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/html-head.js +247 -37
- package/esm/src/rendering/orchestrator/html.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/html.js +119 -34
- package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.js +20 -4
- package/esm/src/rendering/orchestrator/pipeline-helpers.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline-helpers.js +4 -2
- package/esm/src/rendering/orchestrator/pipeline.d.ts +14 -3
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline.js +40 -1
- package/esm/src/rendering/orchestrator/render-result-assembly.d.ts +2 -1
- package/esm/src/rendering/orchestrator/render-result-assembly.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/render-result-assembly.js +1 -1
- package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts +1 -26
- package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/ssr-orchestrator.js +9 -88
- package/esm/src/rendering/renderer.d.ts.map +1 -1
- package/esm/src/rendering/renderer.js +24 -8
- package/esm/src/rendering/rsc/client-boot.ts +23 -0
- package/esm/src/rendering/rsc/client-module-strategy.d.ts.map +1 -1
- package/esm/src/rendering/rsc/client-module-strategy.js +4 -3
- package/esm/src/rendering/shared/context-aware-cache.d.ts +2 -2
- package/esm/src/rendering/shared/context-aware-cache.d.ts.map +1 -1
- package/esm/src/rendering/shared/context-aware-cache.js +27 -7
- package/esm/src/rendering/ssr-renderer.d.ts +7 -0
- package/esm/src/rendering/ssr-renderer.d.ts.map +1 -1
- package/esm/src/rendering/ssr-renderer.js +58 -34
- package/esm/src/rendering/utils/index.d.ts +1 -1
- package/esm/src/rendering/utils/index.d.ts.map +1 -1
- package/esm/src/rendering/utils/index.js +1 -1
- package/esm/src/rendering/utils/stream-utils.d.ts +6 -1
- package/esm/src/rendering/utils/stream-utils.d.ts.map +1 -1
- package/esm/src/rendering/utils/stream-utils.js +79 -20
- package/esm/src/repositories/types.d.ts +6 -1
- package/esm/src/repositories/types.d.ts.map +1 -1
- package/esm/src/resource/registry.d.ts +3 -2
- package/esm/src/resource/registry.d.ts.map +1 -1
- package/esm/src/routing/api/context-builder.d.ts +3 -1
- package/esm/src/routing/api/context-builder.d.ts.map +1 -1
- package/esm/src/routing/api/context-builder.js +3 -1
- package/esm/src/routing/api/handler.d.ts +4 -2
- package/esm/src/routing/api/handler.d.ts.map +1 -1
- package/esm/src/routing/api/handler.js +75 -17
- package/esm/src/routing/api/module-loader/esbuild-plugin.d.ts +2 -0
- package/esm/src/routing/api/module-loader/esbuild-plugin.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/esbuild-plugin.js +73 -26
- package/esm/src/routing/api/module-loader/external-import-rewriter.d.ts +8 -6
- package/esm/src/routing/api/module-loader/external-import-rewriter.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/external-import-rewriter.js +6 -2
- package/esm/src/routing/api/module-loader/http-validator.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/http-validator.js +0 -2
- package/esm/src/routing/api/module-loader/loader.d.ts +9 -2
- package/esm/src/routing/api/module-loader/loader.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/loader.js +104 -64
- package/esm/src/routing/api/module-loader/project-source-snapshot.d.ts +25 -0
- package/esm/src/routing/api/module-loader/project-source-snapshot.d.ts.map +1 -0
- package/esm/src/routing/api/module-loader/project-source-snapshot.js +98 -0
- package/esm/src/routing/api/module-loader/security-config.d.ts +2 -1
- package/esm/src/routing/api/module-loader/security-config.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/security-config.js +20 -10
- package/esm/src/routing/api/module-loader/types.d.ts +6 -0
- package/esm/src/routing/api/module-loader/types.d.ts.map +1 -1
- package/esm/src/routing/api/openapi/spec-generator.d.ts +2 -0
- package/esm/src/routing/api/openapi/spec-generator.d.ts.map +1 -1
- package/esm/src/routing/api/openapi/spec-generator.js +4 -0
- package/esm/src/routing/api/response-normalization.d.ts +34 -0
- package/esm/src/routing/api/response-normalization.d.ts.map +1 -0
- package/esm/src/routing/api/response-normalization.js +465 -0
- package/esm/src/routing/api/route-executor.d.ts +30 -2
- package/esm/src/routing/api/route-executor.d.ts.map +1 -1
- package/esm/src/routing/api/route-executor.js +795 -185
- package/esm/src/routing/api/route-methods.d.ts +26 -0
- package/esm/src/routing/api/route-methods.d.ts.map +1 -0
- package/esm/src/routing/api/route-methods.js +115 -0
- package/esm/src/routing/client/dom-utils.d.ts +17 -3
- package/esm/src/routing/client/dom-utils.d.ts.map +1 -1
- package/esm/src/routing/client/dom-utils.js +132 -37
- package/esm/src/routing/client/index.d.ts +1 -1
- package/esm/src/routing/client/index.d.ts.map +1 -1
- package/esm/src/routing/client/index.js +1 -1
- package/esm/src/routing/client/page-loader.d.ts +3 -2
- package/esm/src/routing/client/page-loader.d.ts.map +1 -1
- package/esm/src/routing/client/page-loader.js +22 -6
- package/esm/src/routing/client/page-transition.d.ts +3 -0
- package/esm/src/routing/client/page-transition.d.ts.map +1 -1
- package/esm/src/routing/client/page-transition.js +57 -24
- package/esm/src/routing/client/types.d.ts +7 -0
- package/esm/src/routing/client/types.d.ts.map +1 -1
- package/esm/src/routing/index.d.ts +1 -1
- package/esm/src/routing/index.d.ts.map +1 -1
- package/esm/src/routing/index.js +1 -1
- package/esm/src/runs/runs-client.d.ts +1 -2
- package/esm/src/runs/runs-client.d.ts.map +1 -1
- package/esm/src/runs/runs-client.js +30 -10
- package/esm/src/runs/schemas.d.ts +20 -20
- package/esm/src/runtime/model-call-context.d.ts +59 -0
- package/esm/src/runtime/model-call-context.d.ts.map +1 -0
- package/esm/src/runtime/model-call-context.js +1 -0
- package/esm/src/runtime/model-call-recorder-context.d.ts +8 -0
- package/esm/src/runtime/model-call-recorder-context.d.ts.map +1 -0
- package/esm/src/runtime/model-call-recorder-context.js +14 -0
- package/esm/src/runtime/runtime-bridge.d.ts +3 -0
- package/esm/src/runtime/runtime-bridge.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.js +18 -2
- package/esm/src/schedule/calendar.d.ts +13 -0
- package/esm/src/schedule/calendar.d.ts.map +1 -0
- package/esm/src/schedule/calendar.js +133 -0
- package/esm/src/schedule/discovery.d.ts +9 -0
- package/esm/src/schedule/discovery.d.ts.map +1 -1
- package/esm/src/schedule/discovery.js +12 -1
- package/esm/src/schedule/factory.d.ts +8 -0
- package/esm/src/schedule/factory.d.ts.map +1 -1
- package/esm/src/schedule/factory.js +10 -174
- package/esm/src/schedule/index.d.ts +1 -1
- package/esm/src/schedule/index.js +1 -1
- package/esm/src/schedule/types.d.ts +38 -0
- package/esm/src/schedule/types.d.ts.map +1 -1
- package/esm/src/schedule/types.js +3 -83
- package/esm/src/schedule/validation.d.ts +6 -0
- package/esm/src/schedule/validation.d.ts.map +1 -0
- package/esm/src/schedule/validation.js +435 -0
- package/esm/src/schemas/common.d.ts.map +1 -1
- package/esm/src/schemas/common.js +31 -10
- package/esm/src/schemas/define.d.ts +3 -1
- package/esm/src/schemas/define.d.ts.map +1 -1
- package/esm/src/schemas/define.js +55 -5
- package/esm/src/schemas/index.d.ts +10 -3
- package/esm/src/schemas/index.d.ts.map +1 -1
- package/esm/src/schemas/index.js +10 -3
- package/esm/src/schemas/json-schema.d.ts +17 -1
- package/esm/src/schemas/json-schema.d.ts.map +1 -1
- package/esm/src/schemas/json-schema.js +67 -2
- package/esm/src/schemas/json-value.d.ts +33 -0
- package/esm/src/schemas/json-value.d.ts.map +1 -0
- package/esm/src/schemas/json-value.js +236 -0
- package/esm/src/schemas/lazy.d.ts +5 -0
- package/esm/src/schemas/lazy.d.ts.map +1 -1
- package/esm/src/schemas/lazy.js +63 -6
- package/esm/src/schemas/primitives.d.ts +5 -6
- package/esm/src/schemas/primitives.d.ts.map +1 -1
- package/esm/src/schemas/primitives.js +38 -12
- package/esm/src/security/client/html-sanitizer.d.ts +1 -2
- package/esm/src/security/client/html-sanitizer.d.ts.map +1 -1
- package/esm/src/security/client/html-sanitizer.js +5 -3
- package/esm/src/security/csrf/helpers.d.ts.map +1 -1
- package/esm/src/security/csrf/helpers.js +52 -18
- package/esm/src/security/deno-permissions.d.ts +1 -1
- package/esm/src/security/deno-permissions.js +1 -1
- package/esm/src/security/http/application-request.d.ts +11 -0
- package/esm/src/security/http/application-request.d.ts.map +1 -0
- package/esm/src/security/http/application-request.js +74 -0
- package/esm/src/security/http/auth.d.ts +2 -7
- package/esm/src/security/http/auth.d.ts.map +1 -1
- package/esm/src/security/http/auth.js +180 -56
- package/esm/src/security/http/base-handler.d.ts +6 -4
- package/esm/src/security/http/base-handler.d.ts.map +1 -1
- package/esm/src/security/http/base-handler.js +45 -33
- package/esm/src/security/http/config.d.ts +41 -1
- package/esm/src/security/http/config.d.ts.map +1 -1
- package/esm/src/security/http/config.js +239 -16
- package/esm/src/security/http/cors/constants.d.ts +4 -2
- package/esm/src/security/http/cors/constants.d.ts.map +1 -1
- package/esm/src/security/http/cors/constants.js +18 -2
- package/esm/src/security/http/cors/headers.d.ts +4 -2
- package/esm/src/security/http/cors/headers.d.ts.map +1 -1
- package/esm/src/security/http/cors/headers.js +70 -19
- package/esm/src/security/http/cors/index.d.ts +1 -1
- package/esm/src/security/http/cors/index.d.ts.map +1 -1
- package/esm/src/security/http/cors/middleware.d.ts.map +1 -1
- package/esm/src/security/http/cors/middleware.js +9 -7
- package/esm/src/security/http/cors/preflight.d.ts +13 -0
- package/esm/src/security/http/cors/preflight.d.ts.map +1 -1
- package/esm/src/security/http/cors/preflight.js +125 -28
- package/esm/src/security/http/cors/types.d.ts +13 -0
- package/esm/src/security/http/cors/types.d.ts.map +1 -1
- package/esm/src/security/http/cors/validators.d.ts +31 -6
- package/esm/src/security/http/cors/validators.d.ts.map +1 -1
- package/esm/src/security/http/cors/validators.js +269 -84
- package/esm/src/security/http/csrf/csrf-handler.d.ts +3 -2
- package/esm/src/security/http/csrf/csrf-handler.d.ts.map +1 -1
- package/esm/src/security/http/csrf/csrf-handler.js +12 -33
- package/esm/src/security/http/middleware/index.d.ts +0 -1
- package/esm/src/security/http/middleware/index.d.ts.map +1 -1
- package/esm/src/security/http/middleware/index.js +0 -1
- package/esm/src/security/http/outbound-fetch.d.ts +41 -0
- package/esm/src/security/http/outbound-fetch.d.ts.map +1 -0
- package/esm/src/security/http/outbound-fetch.js +130 -0
- package/esm/src/security/http/response/cache-handler.d.ts.map +1 -1
- package/esm/src/security/http/response/cache-handler.js +68 -9
- package/esm/src/security/http/response/fluent-methods.d.ts +2 -2
- package/esm/src/security/http/response/fluent-methods.d.ts.map +1 -1
- package/esm/src/security/http/response/security-handler.d.ts +7 -0
- package/esm/src/security/http/response/security-handler.d.ts.map +1 -1
- package/esm/src/security/http/response/security-handler.js +56 -26
- package/esm/src/security/http/response/static-helpers.d.ts +13 -7
- package/esm/src/security/http/response/static-helpers.d.ts.map +1 -1
- package/esm/src/security/http/response/static-helpers.js +45 -5
- package/esm/src/security/http/response/types.d.ts +2 -1
- package/esm/src/security/http/response/types.d.ts.map +1 -1
- package/esm/src/security/index.d.ts +15 -7
- package/esm/src/security/index.d.ts.map +1 -1
- package/esm/src/security/index.js +12 -4
- package/esm/src/security/input-validation/errors.d.ts +2 -1
- package/esm/src/security/input-validation/errors.d.ts.map +1 -1
- package/esm/src/security/input-validation/errors.js +2 -1
- package/esm/src/security/input-validation/handler.d.ts +5 -1
- package/esm/src/security/input-validation/handler.d.ts.map +1 -1
- package/esm/src/security/input-validation/handler.js +150 -8
- package/esm/src/security/input-validation/index.d.ts +1 -1
- package/esm/src/security/input-validation/index.d.ts.map +1 -1
- package/esm/src/security/input-validation/limits.d.ts +16 -1
- package/esm/src/security/input-validation/limits.d.ts.map +1 -1
- package/esm/src/security/input-validation/limits.js +230 -31
- package/esm/src/security/input-validation/parsers.d.ts +18 -3
- package/esm/src/security/input-validation/parsers.d.ts.map +1 -1
- package/esm/src/security/input-validation/parsers.js +119 -19
- package/esm/src/security/input-validation/sanitizers.d.ts +7 -1
- package/esm/src/security/input-validation/sanitizers.d.ts.map +1 -1
- package/esm/src/security/input-validation/sanitizers.js +14 -12
- package/esm/src/security/input-validation/types.d.ts +16 -1
- package/esm/src/security/input-validation/types.d.ts.map +1 -1
- package/esm/src/security/input-validation/types.js +8 -2
- package/esm/src/security/path-validation/canonical.d.ts +9 -3
- package/esm/src/security/path-validation/canonical.d.ts.map +1 -1
- package/esm/src/security/path-validation/canonical.js +49 -15
- package/esm/src/security/path-validation/index.d.ts +31 -4
- package/esm/src/security/path-validation/index.d.ts.map +1 -1
- package/esm/src/security/path-validation/index.js +276 -29
- package/esm/src/security/path-validation/normalization.d.ts.map +1 -1
- package/esm/src/security/path-validation/normalization.js +11 -2
- package/esm/src/security/path-validation/presets.d.ts +5 -5
- package/esm/src/security/path-validation/presets.d.ts.map +1 -1
- package/esm/src/security/path-validation/presets.js +1 -1
- package/esm/src/security/path-validation/rules.d.ts.map +1 -1
- package/esm/src/security/path-validation/rules.js +1 -9
- package/esm/src/security/path-validation/types.d.ts +14 -3
- package/esm/src/security/path-validation/types.d.ts.map +1 -1
- package/esm/src/security/path-validation/types.js +1 -0
- package/esm/src/security/path-validation.d.ts +1 -1
- package/esm/src/security/path-validation.d.ts.map +1 -1
- package/esm/src/security/path-validation.js +1 -1
- package/esm/src/security/project-locality.d.ts +38 -0
- package/esm/src/security/project-locality.d.ts.map +1 -0
- package/esm/src/security/project-locality.js +129 -0
- package/esm/src/security/sandbox/project-worker.d.ts +32 -4
- package/esm/src/security/sandbox/project-worker.d.ts.map +1 -1
- package/esm/src/security/sandbox/project-worker.js +871 -150
- package/esm/src/security/sandbox/worker-egress-guard.d.ts +23 -2
- package/esm/src/security/sandbox/worker-egress-guard.d.ts.map +1 -1
- package/esm/src/security/sandbox/worker-egress-guard.js +228 -35
- package/esm/src/security/sandbox/worker-error-boundary.d.ts +6 -0
- package/esm/src/security/sandbox/worker-error-boundary.d.ts.map +1 -0
- package/esm/src/security/sandbox/worker-error-boundary.js +143 -0
- package/esm/src/security/sandbox/worker-generation.d.ts +44 -0
- package/esm/src/security/sandbox/worker-generation.d.ts.map +1 -0
- package/esm/src/security/sandbox/worker-generation.js +138 -0
- package/esm/src/security/sandbox/worker-permissions.d.ts +6 -8
- package/esm/src/security/sandbox/worker-permissions.d.ts.map +1 -1
- package/esm/src/security/sandbox/worker-permissions.js +16 -40
- package/esm/src/security/sandbox/worker-pool.d.ts +85 -17
- package/esm/src/security/sandbox/worker-pool.d.ts.map +1 -1
- package/esm/src/security/sandbox/worker-pool.js +793 -158
- package/esm/src/security/sandbox/worker-types.d.ts +148 -15
- package/esm/src/security/sandbox/worker-types.d.ts.map +1 -1
- package/esm/src/security/sandbox/worker-types.js +17 -3
- package/esm/src/security/secure-fs.d.ts +13 -11
- package/esm/src/security/secure-fs.d.ts.map +1 -1
- package/esm/src/security/secure-fs.js +773 -100
- package/esm/src/server/bootstrap.d.ts +14 -0
- package/esm/src/server/bootstrap.d.ts.map +1 -1
- package/esm/src/server/bootstrap.js +21 -3
- package/esm/src/server/build-app-route-renderer.js +1 -1
- package/esm/src/server/context/enriched-context-types.d.ts +4 -0
- package/esm/src/server/context/enriched-context-types.d.ts.map +1 -1
- package/esm/src/server/context/enriched-context.d.ts.map +1 -1
- package/esm/src/server/context/enriched-context.js +2 -0
- package/esm/src/server/dev-server/middleware.d.ts +9 -0
- package/esm/src/server/dev-server/middleware.d.ts.map +1 -1
- package/esm/src/server/dev-server/middleware.js +17 -0
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +1 -0
- package/esm/src/server/handlers/dev/dashboard/api.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/dashboard/api.js +24 -29
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +7073 -1251
- package/esm/src/server/handlers/dev/styles-css.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/styles-css.handler.js +33 -36
- package/esm/src/server/handlers/monitoring/health.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/monitoring/health.handler.js +2 -0
- package/esm/src/server/handlers/monitoring/metrics.handler.js +1 -1
- package/esm/src/server/handlers/preview/markdown-preview.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/preview/markdown-preview.handler.js +34 -32
- package/esm/src/server/handlers/request/agent-stream.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/agent-stream.handler.js +66 -22
- package/esm/src/server/handlers/request/api/api-handler-wrapper.d.ts +1 -0
- package/esm/src/server/handlers/request/api/api-handler-wrapper.d.ts.map +1 -1
- package/esm/src/server/handlers/request/api/api-handler-wrapper.js +26 -3
- package/esm/src/server/handlers/request/api/app-router-handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/api/app-router-handler.js +23 -1
- package/esm/src/server/handlers/request/api/project-discovery.d.ts.map +1 -1
- package/esm/src/server/handlers/request/api/project-discovery.js +7 -0
- package/esm/src/server/handlers/request/channel-dispatch-request.d.ts.map +1 -1
- package/esm/src/server/handlers/request/channel-dispatch-request.js +26 -6
- package/esm/src/server/handlers/request/css.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/css.handler.js +14 -10
- package/esm/src/server/handlers/request/lib-modules.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/lib-modules.handler.js +75 -70
- package/esm/src/server/handlers/request/module/batch-module-handler.d.ts +2 -3
- package/esm/src/server/handlers/request/module/batch-module-handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/module/batch-module-handler.js +21 -29
- package/esm/src/server/handlers/request/module/data-endpoint-handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/module/data-endpoint-handler.js +15 -1
- package/esm/src/server/handlers/request/module/module.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/module/module.handler.js +54 -9
- package/esm/src/server/handlers/request/openapi.handler.d.ts +0 -2
- package/esm/src/server/handlers/request/openapi.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/openapi.handler.js +15 -31
- package/esm/src/server/handlers/request/project-run-execute.handler.d.ts +7 -0
- package/esm/src/server/handlers/request/project-run-execute.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/project-run-execute.handler.js +80 -11
- package/esm/src/server/handlers/request/route-visibility-policy.d.ts +6 -0
- package/esm/src/server/handlers/request/route-visibility-policy.d.ts.map +1 -0
- package/esm/src/server/handlers/request/route-visibility-policy.js +11 -0
- package/esm/src/server/handlers/request/rsc/index.d.ts.map +1 -1
- package/esm/src/server/handlers/request/rsc/index.js +2 -0
- package/esm/src/server/handlers/request/snippet.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/snippet.handler.js +36 -18
- package/esm/src/server/handlers/request/ssr/error-page-fallback.d.ts.map +1 -1
- package/esm/src/server/handlers/request/ssr/error-page-fallback.js +7 -3
- package/esm/src/server/handlers/request/ssr/not-found-fallback.d.ts.map +1 -1
- package/esm/src/server/handlers/request/ssr/not-found-fallback.js +7 -1
- package/esm/src/server/handlers/request/ssr/ssr-response-builder.d.ts.map +1 -1
- package/esm/src/server/handlers/request/ssr/ssr-response-builder.js +13 -5
- package/esm/src/server/handlers/request/ssr/ssr.handler.d.ts +0 -6
- package/esm/src/server/handlers/request/ssr/ssr.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/ssr/ssr.handler.js +22 -16
- package/esm/src/server/handlers/request/static.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/static.handler.js +3 -0
- package/esm/src/server/handlers/response/cors.d.ts +8 -0
- package/esm/src/server/handlers/response/cors.d.ts.map +1 -1
- package/esm/src/server/handlers/response/cors.js +35 -14
- package/esm/src/server/handlers/utils/dependency-snapshot-protocol.d.ts.map +1 -1
- package/esm/src/server/handlers/utils/dependency-snapshot-protocol.js +2 -0
- package/esm/src/server/node-handler.d.ts.map +1 -1
- package/esm/src/server/node-handler.js +4 -5
- package/esm/src/server/production-server.d.ts.map +1 -1
- package/esm/src/server/production-server.js +4 -0
- package/esm/src/server/project-env/snapshot.d.ts +27 -0
- package/esm/src/server/project-env/snapshot.d.ts.map +1 -0
- package/esm/src/server/project-env/snapshot.js +205 -0
- package/esm/src/server/project-env/storage.d.ts +3 -2
- package/esm/src/server/project-env/storage.d.ts.map +1 -1
- package/esm/src/server/project-env/storage.js +8 -3
- package/esm/src/server/runtime-handler/adapter-factory.d.ts +6 -0
- package/esm/src/server/runtime-handler/adapter-factory.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/adapter-factory.js +39 -11
- package/esm/src/server/runtime-handler/handler-context-builder.d.ts +7 -0
- package/esm/src/server/runtime-handler/handler-context-builder.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/handler-context-builder.js +3 -0
- package/esm/src/server/runtime-handler/index.d.ts +2 -0
- package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/index.js +1 -0
- package/esm/src/server/runtime-handler/project-middleware.d.ts +1 -1
- package/esm/src/server/runtime-handler/project-middleware.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/project-middleware.js +47 -18
- package/esm/src/server/runtime-handler/project-runtime-context.d.ts +2 -0
- package/esm/src/server/runtime-handler/project-runtime-context.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/project-runtime-context.js +48 -2
- package/esm/src/server/services/rendering/ssr.service.d.ts +5 -0
- package/esm/src/server/services/rendering/ssr.service.d.ts.map +1 -1
- package/esm/src/server/services/rendering/ssr.service.js +22 -0
- package/esm/src/server/services/rsc/endpoints/action-authorization-snapshot.d.ts +15 -0
- package/esm/src/server/services/rsc/endpoints/action-authorization-snapshot.d.ts.map +1 -0
- package/esm/src/server/services/rsc/endpoints/action-authorization-snapshot.js +222 -0
- package/esm/src/server/services/rsc/endpoints/action-handler.d.ts +9 -15
- package/esm/src/server/services/rsc/endpoints/action-handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/action-handler.js +399 -81
- package/esm/src/server/services/rsc/endpoints/action-parser.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/action-parser.js +79 -15
- package/esm/src/server/services/rsc/endpoints/endpoint-router.d.ts +1 -1
- package/esm/src/server/services/rsc/endpoints/endpoint-router.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/endpoint-router.js +33 -2
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
- package/esm/src/server/services/rsc/endpoints/types.d.ts +2 -0
- package/esm/src/server/services/rsc/endpoints/types.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/page-handler.js +1 -1
- package/esm/src/server/services/static/static-file.service.d.ts.map +1 -1
- package/esm/src/server/services/static/static-file.service.js +13 -3
- package/esm/src/server/shared/renderer/adapter.d.ts.map +1 -1
- package/esm/src/server/shared/renderer/adapter.js +25 -2
- package/esm/src/skill/allowed-tools.d.ts +12 -6
- package/esm/src/skill/allowed-tools.d.ts.map +1 -1
- package/esm/src/skill/allowed-tools.js +130 -29
- package/esm/src/skill/document-parser.d.ts +22 -0
- package/esm/src/skill/document-parser.d.ts.map +1 -0
- package/esm/src/skill/document-parser.js +316 -0
- package/esm/src/skill/executor.d.ts.map +1 -1
- package/esm/src/skill/executor.js +219 -22
- package/esm/src/skill/id-admission.d.ts +32 -0
- package/esm/src/skill/id-admission.d.ts.map +1 -0
- package/esm/src/skill/id-admission.js +65 -0
- package/esm/src/skill/index.d.ts +6 -4
- package/esm/src/skill/index.d.ts.map +1 -1
- package/esm/src/skill/index.js +4 -3
- package/esm/src/skill/limits.d.ts +59 -0
- package/esm/src/skill/limits.d.ts.map +1 -0
- package/esm/src/skill/limits.js +76 -0
- package/esm/src/skill/operation-budget.d.ts +20 -0
- package/esm/src/skill/operation-budget.d.ts.map +1 -0
- package/esm/src/skill/operation-budget.js +156 -0
- package/esm/src/skill/parser.d.ts +24 -14
- package/esm/src/skill/parser.d.ts.map +1 -1
- package/esm/src/skill/parser.js +578 -94
- package/esm/src/skill/path-safety.d.ts +32 -4
- package/esm/src/skill/path-safety.d.ts.map +1 -1
- package/esm/src/skill/path-safety.js +456 -69
- package/esm/src/skill/registry.d.ts +27 -3
- package/esm/src/skill/registry.d.ts.map +1 -1
- package/esm/src/skill/registry.js +99 -5
- package/esm/src/skill/selector.d.ts +5 -5
- package/esm/src/skill/selector.d.ts.map +1 -1
- package/esm/src/skill/selector.js +171 -34
- package/esm/src/skill/string-safety.d.ts +7 -0
- package/esm/src/skill/string-safety.d.ts.map +1 -0
- package/esm/src/skill/string-safety.js +64 -0
- package/esm/src/skill/tools.d.ts.map +1 -1
- package/esm/src/skill/tools.js +178 -30
- package/esm/src/skill/types.d.ts +112 -7
- package/esm/src/skill/types.d.ts.map +1 -1
- package/esm/src/skill/types.js +107 -10
- package/esm/src/skill/validation.d.ts +16 -0
- package/esm/src/skill/validation.d.ts.map +1 -0
- package/esm/src/skill/validation.js +246 -0
- package/esm/src/task/discovery.d.ts +2 -0
- package/esm/src/task/discovery.d.ts.map +1 -1
- package/esm/src/task/discovery.js +70 -20
- package/esm/src/task/index.d.ts +1 -1
- package/esm/src/task/index.d.ts.map +1 -1
- package/esm/src/task/project-runtime.d.ts +17 -1
- package/esm/src/task/project-runtime.d.ts.map +1 -1
- package/esm/src/task/project-runtime.js +18 -3
- package/esm/src/task/runner.d.ts +2 -0
- package/esm/src/task/runner.d.ts.map +1 -1
- package/esm/src/task/runner.js +38 -15
- package/esm/src/task/types.d.ts +4 -1
- package/esm/src/task/types.d.ts.map +1 -1
- package/esm/src/task/types.js +18 -4
- package/esm/src/testing/assert.d.ts +1 -1
- package/esm/src/testing/assert.d.ts.map +1 -1
- package/esm/src/testing/assert.js +2 -1
- package/esm/src/tool/data-properties.d.ts +17 -0
- package/esm/src/tool/data-properties.d.ts.map +1 -0
- package/esm/src/tool/data-properties.js +99 -0
- package/esm/src/tool/factory.d.ts.map +1 -1
- package/esm/src/tool/factory.js +192 -29
- package/esm/src/tool/host-tools.d.ts.map +1 -1
- package/esm/src/tool/host-tools.js +4 -6
- package/esm/src/tool/mcp-metadata.d.ts +7 -0
- package/esm/src/tool/mcp-metadata.d.ts.map +1 -0
- package/esm/src/tool/mcp-metadata.js +90 -0
- package/esm/src/tool/project-scoped-remote-tools.d.ts.map +1 -1
- package/esm/src/tool/project-scoped-remote-tools.js +89 -32
- package/esm/src/tool/registry.d.ts +15 -4
- package/esm/src/tool/registry.d.ts.map +1 -1
- package/esm/src/tool/registry.js +47 -5
- package/esm/src/tool/remote-mcp.d.ts +8 -1
- package/esm/src/tool/remote-mcp.d.ts.map +1 -1
- package/esm/src/tool/remote-mcp.js +328 -92
- package/esm/src/tool/remote-source-tools.d.ts.map +1 -1
- package/esm/src/tool/remote-source-tools.js +35 -19
- package/esm/src/tool/result.d.ts +13 -0
- package/esm/src/tool/result.d.ts.map +1 -1
- package/esm/src/tool/result.js +98 -21
- package/esm/src/tool/sleep.d.ts.map +1 -1
- package/esm/src/tool/sleep.js +12 -4
- package/esm/src/tool/types.d.ts +2 -0
- package/esm/src/tool/types.d.ts.map +1 -1
- package/esm/src/transforms/css-modules/naming.d.ts +10 -0
- package/esm/src/transforms/css-modules/naming.d.ts.map +1 -1
- package/esm/src/transforms/css-modules/naming.js +223 -24
- package/esm/src/transforms/esm/bundle-accumulator.d.ts +28 -0
- package/esm/src/transforms/esm/bundle-accumulator.d.ts.map +1 -0
- package/esm/src/transforms/esm/bundle-accumulator.js +113 -0
- package/esm/src/transforms/esm/bundle-deps-validator.d.ts.map +1 -1
- package/esm/src/transforms/esm/bundle-deps-validator.js +50 -25
- package/esm/src/transforms/esm/bundle-manifest.d.ts +2 -0
- package/esm/src/transforms/esm/bundle-manifest.d.ts.map +1 -1
- package/esm/src/transforms/esm/bundle-manifest.js +134 -26
- package/esm/src/transforms/esm/bundle-recovery.d.ts.map +1 -1
- package/esm/src/transforms/esm/bundle-recovery.js +72 -48
- package/esm/src/transforms/esm/http-bundle-file.d.ts +31 -0
- package/esm/src/transforms/esm/http-bundle-file.d.ts.map +1 -0
- package/esm/src/transforms/esm/http-bundle-file.js +48 -0
- package/esm/src/transforms/esm/http-bundler.d.ts +5 -1
- package/esm/src/transforms/esm/http-bundler.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-bundler.js +38 -12
- package/esm/src/transforms/esm/http-cache.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache.js +85 -70
- package/esm/src/transforms/esm/in-flight-manager.d.ts +0 -7
- package/esm/src/transforms/esm/in-flight-manager.d.ts.map +1 -1
- package/esm/src/transforms/esm/in-flight-manager.js +0 -24
- package/esm/src/transforms/esm/package-registry.js +1 -1
- package/esm/src/transforms/esm/specifier-resolver.d.ts +7 -12
- package/esm/src/transforms/esm/specifier-resolver.d.ts.map +1 -1
- package/esm/src/transforms/esm/specifier-resolver.js +21 -62
- package/esm/src/transforms/import-rewriter/route-adapter.d.ts +2 -2
- package/esm/src/transforms/import-rewriter/route-adapter.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/route-adapter.js +7 -3
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.js +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/import-transformer.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/import-transformer.js +6 -2
- package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.js +6 -3
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.d.ts +5 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.js +105 -45
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.js +24 -3
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.js +18 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/limits.d.ts +25 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/limits.d.ts.map +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/limits.js +40 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.js +11 -5
- package/esm/src/transforms/mdx/esm-module-loader/resolution/file-finder.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/resolution/file-finder.js +7 -3
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts +2 -0
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.d.ts +12 -3
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.js +37 -3
- package/esm/src/transforms/mdx/types.d.ts +2 -1
- package/esm/src/transforms/mdx/types.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/browser-server-exports-strip.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/browser-server-exports-strip.js +8 -0
- package/esm/src/transforms/shared/http-module-response.d.ts +20 -0
- package/esm/src/transforms/shared/http-module-response.d.ts.map +1 -0
- package/esm/src/transforms/shared/http-module-response.js +72 -0
- package/esm/src/trigger/discovery.d.ts +44 -4
- package/esm/src/trigger/discovery.d.ts.map +1 -1
- package/esm/src/trigger/discovery.js +247 -60
- package/esm/src/trigger/index.d.ts +4 -2
- package/esm/src/trigger/index.d.ts.map +1 -1
- package/esm/src/trigger/index.js +2 -0
- package/esm/src/trigger/local-runner.d.ts +26 -1
- package/esm/src/trigger/local-runner.d.ts.map +1 -1
- package/esm/src/trigger/local-runner.js +173 -32
- package/esm/src/trigger/target.d.ts +9 -0
- package/esm/src/trigger/target.d.ts.map +1 -1
- package/esm/src/trigger/target.js +26 -6
- package/esm/src/trigger/validation.d.ts +8 -0
- package/esm/src/trigger/validation.d.ts.map +1 -1
- package/esm/src/trigger/validation.js +25 -28
- package/esm/src/types/index.d.ts +3 -2
- package/esm/src/types/index.d.ts.map +1 -1
- package/esm/src/types/server.d.ts +16 -0
- package/esm/src/types/server.d.ts.map +1 -1
- package/esm/src/utils/abort.d.ts +10 -0
- package/esm/src/utils/abort.d.ts.map +1 -0
- package/esm/src/utils/abort.js +35 -0
- package/esm/src/utils/circuit-breaker.d.ts +3 -1
- package/esm/src/utils/circuit-breaker.d.ts.map +1 -1
- package/esm/src/utils/circuit-breaker.js +7 -1
- package/esm/src/utils/config-resource-limits.d.ts +46 -0
- package/esm/src/utils/config-resource-limits.d.ts.map +1 -0
- package/esm/src/utils/config-resource-limits.js +82 -0
- package/esm/src/utils/constants/build.d.ts +12 -0
- package/esm/src/utils/constants/build.d.ts.map +1 -1
- package/esm/src/utils/constants/build.js +13 -0
- package/esm/src/utils/constants/cache.d.ts +21 -0
- package/esm/src/utils/constants/cache.d.ts.map +1 -1
- package/esm/src/utils/constants/cache.js +101 -39
- package/esm/src/utils/constants/css.d.ts +20 -0
- package/esm/src/utils/constants/css.d.ts.map +1 -0
- package/esm/src/utils/constants/css.js +19 -0
- package/esm/src/utils/constants/index.d.ts +1 -1
- package/esm/src/utils/constants/index.d.ts.map +1 -1
- package/esm/src/utils/constants/index.js +1 -1
- package/esm/src/utils/constants/limits.d.ts +4 -0
- package/esm/src/utils/constants/limits.d.ts.map +1 -1
- package/esm/src/utils/constants/limits.js +4 -0
- package/esm/src/utils/constants/project-identity.d.ts +5 -0
- package/esm/src/utils/constants/project-identity.d.ts.map +1 -0
- package/esm/src/utils/constants/project-identity.js +4 -0
- package/esm/src/utils/constants/retry.d.ts +18 -0
- package/esm/src/utils/constants/retry.d.ts.map +1 -1
- package/esm/src/utils/constants/retry.js +18 -0
- package/esm/src/utils/constants/security.d.ts +4 -0
- package/esm/src/utils/constants/security.d.ts.map +1 -1
- package/esm/src/utils/constants/security.js +4 -0
- package/esm/src/utils/cors-policy-limits.d.ts +23 -0
- package/esm/src/utils/cors-policy-limits.d.ts.map +1 -0
- package/esm/src/utils/cors-policy-limits.js +72 -0
- package/esm/src/utils/css-artifact-identity.d.ts +23 -0
- package/esm/src/utils/css-artifact-identity.d.ts.map +1 -0
- package/esm/src/utils/css-artifact-identity.js +77 -0
- package/esm/src/utils/css-candidate-admission.d.ts +5 -0
- package/esm/src/utils/css-candidate-admission.d.ts.map +1 -0
- package/esm/src/utils/css-candidate-admission.js +162 -0
- package/esm/src/utils/css-content-admission.d.ts +5 -0
- package/esm/src/utils/css-content-admission.d.ts.map +1 -0
- package/esm/src/utils/css-content-admission.js +25 -0
- package/esm/src/utils/discovery-path-policy.d.ts +13 -0
- package/esm/src/utils/discovery-path-policy.d.ts.map +1 -0
- package/esm/src/utils/discovery-path-policy.js +45 -0
- package/esm/src/utils/index.d.ts +4 -1
- package/esm/src/utils/index.d.ts.map +1 -1
- package/esm/src/utils/index.js +4 -1
- package/esm/src/utils/is-well-formed-string.d.ts +4 -0
- package/esm/src/utils/is-well-formed-string.d.ts.map +1 -0
- package/esm/src/utils/is-well-formed-string.js +21 -0
- package/esm/src/utils/logger/core.d.ts +5 -0
- package/esm/src/utils/logger/core.d.ts.map +1 -1
- package/esm/src/utils/logger/core.js +67 -2
- package/esm/src/utils/logger/redact.d.ts +36 -13
- package/esm/src/utils/logger/redact.d.ts.map +1 -1
- package/esm/src/utils/logger/redact.js +573 -83
- package/esm/src/utils/lru-wrapper.d.ts +4 -2
- package/esm/src/utils/lru-wrapper.d.ts.map +1 -1
- package/esm/src/utils/lru-wrapper.js +1 -0
- package/esm/src/utils/parallel.d.ts.map +1 -1
- package/esm/src/utils/parallel.js +11 -1
- package/esm/src/utils/permit-semaphore.d.ts +28 -0
- package/esm/src/utils/permit-semaphore.d.ts.map +1 -0
- package/esm/src/utils/permit-semaphore.js +125 -0
- package/esm/src/utils/project-identity.d.ts +11 -0
- package/esm/src/utils/project-identity.d.ts.map +1 -0
- package/esm/src/utils/project-identity.js +69 -0
- package/esm/src/utils/project-relative-path.d.ts +22 -0
- package/esm/src/utils/project-relative-path.d.ts.map +1 -0
- package/esm/src/utils/project-relative-path.js +89 -0
- package/esm/src/utils/redis-client.d.ts +2 -29
- package/esm/src/utils/redis-client.d.ts.map +1 -1
- package/esm/src/utils/redis-client.js +42 -114
- package/esm/src/utils/remote-host-policy-limits.d.ts +5 -0
- package/esm/src/utils/remote-host-policy-limits.d.ts.map +1 -0
- package/esm/src/utils/remote-host-policy-limits.js +5 -0
- package/esm/src/utils/response-body.d.ts +62 -1
- package/esm/src/utils/response-body.d.ts.map +1 -1
- package/esm/src/utils/response-body.js +943 -10
- package/esm/src/utils/retained-string.d.ts +8 -0
- package/esm/src/utils/retained-string.d.ts.map +1 -0
- package/esm/src/utils/retained-string.js +50 -0
- package/esm/src/utils/route-path-utils.d.ts +2 -0
- package/esm/src/utils/route-path-utils.d.ts.map +1 -1
- package/esm/src/utils/route-path-utils.js +9 -0
- package/esm/src/utils/timer.d.ts +10 -0
- package/esm/src/utils/timer.d.ts.map +1 -0
- package/esm/src/utils/timer.js +19 -0
- package/esm/src/utils/utf8-byte-length.d.ts +9 -0
- package/esm/src/utils/utf8-byte-length.d.ts.map +1 -0
- package/esm/src/utils/utf8-byte-length.js +52 -0
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/webhook/discovery.d.ts +9 -0
- package/esm/src/webhook/discovery.d.ts.map +1 -1
- package/esm/src/webhook/discovery.js +12 -1
- package/esm/src/webhook/factory.d.ts +6 -0
- package/esm/src/webhook/factory.d.ts.map +1 -1
- package/esm/src/webhook/factory.js +8 -67
- package/esm/src/webhook/index.d.ts +4 -1
- package/esm/src/webhook/index.d.ts.map +1 -1
- package/esm/src/webhook/index.js +2 -0
- package/esm/src/webhook/runtime.d.ts +24 -0
- package/esm/src/webhook/runtime.d.ts.map +1 -0
- package/esm/src/webhook/runtime.js +152 -0
- package/esm/src/webhook/types.d.ts +27 -1
- package/esm/src/webhook/types.d.ts.map +1 -1
- package/esm/src/webhook/types.js +3 -6
- package/esm/src/webhook/validation.d.ts +7 -0
- package/esm/src/webhook/validation.d.ts.map +1 -0
- package/esm/src/webhook/validation.js +338 -0
- package/esm/src/workflow/backends/checkpoint-retention.d.ts +13 -0
- package/esm/src/workflow/backends/checkpoint-retention.d.ts.map +1 -0
- package/esm/src/workflow/backends/checkpoint-retention.js +33 -0
- package/esm/src/workflow/backends/memory.d.ts.map +1 -1
- package/esm/src/workflow/backends/memory.js +4 -4
- package/esm/src/workflow/backends/redis/index.d.ts.map +1 -1
- package/esm/src/workflow/backends/redis/index.js +17 -4
- package/esm/src/workflow/backends/types.d.ts +3 -0
- package/esm/src/workflow/backends/types.d.ts.map +1 -1
- package/esm/src/workflow/blob/blob-id.d.ts.map +1 -1
- package/esm/src/workflow/blob/blob-id.js +4 -2
- package/esm/src/workflow/blob/veryfront-cloud-storage.d.ts +6 -0
- package/esm/src/workflow/blob/veryfront-cloud-storage.d.ts.map +1 -1
- package/esm/src/workflow/blob/veryfront-cloud-storage.js +373 -78
- package/esm/src/workflow/claude-code/event-publisher.d.ts +11 -23
- package/esm/src/workflow/claude-code/event-publisher.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/event-publisher.js +134 -108
- package/esm/src/workflow/claude-code/index.d.ts +2 -2
- package/esm/src/workflow/claude-code/index.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/index.js +1 -1
- package/esm/src/workflow/claude-code/types.d.ts +68 -7
- package/esm/src/workflow/claude-code/types.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/types.js +17 -1
- package/esm/src/workflow/claude-code/websocket-publisher.d.ts +117 -37
- package/esm/src/workflow/claude-code/websocket-publisher.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/websocket-publisher.js +1061 -134
- package/esm/src/workflow/claude-code/wire-protocol.d.ts +42 -0
- package/esm/src/workflow/claude-code/wire-protocol.d.ts.map +1 -0
- package/esm/src/workflow/claude-code/wire-protocol.js +789 -0
- package/esm/src/workflow/discovery/workflow-discovery.d.ts +2 -0
- package/esm/src/workflow/discovery/workflow-discovery.d.ts.map +1 -1
- package/esm/src/workflow/discovery/workflow-discovery.js +2 -1
- package/esm/src/workflow/dsl/branch.d.ts.map +1 -1
- package/esm/src/workflow/dsl/branch.js +2 -7
- package/esm/src/workflow/dsl/parallel.d.ts.map +1 -1
- package/esm/src/workflow/dsl/parallel.js +3 -4
- package/esm/src/workflow/dsl/validation.d.ts +3 -0
- package/esm/src/workflow/dsl/validation.d.ts.map +1 -1
- package/esm/src/workflow/dsl/validation.js +43 -0
- package/esm/src/workflow/executor/checkpoint-manager.d.ts +1 -0
- package/esm/src/workflow/executor/checkpoint-manager.d.ts.map +1 -1
- package/esm/src/workflow/executor/checkpoint-manager.js +5 -5
- package/esm/src/workflow/executor/workflow-definition-snapshot.d.ts +27 -0
- package/esm/src/workflow/executor/workflow-definition-snapshot.d.ts.map +1 -0
- package/esm/src/workflow/executor/workflow-definition-snapshot.js +963 -0
- package/esm/src/workflow/limits.d.ts +26 -0
- package/esm/src/workflow/limits.d.ts.map +1 -0
- package/esm/src/workflow/limits.js +25 -0
- package/esm/src/workflow/registry.d.ts +27 -8
- package/esm/src/workflow/registry.d.ts.map +1 -1
- package/esm/src/workflow/registry.js +96 -25
- package/esm/src/workflow/runtime-state.d.ts +62 -0
- package/esm/src/workflow/runtime-state.d.ts.map +1 -0
- package/esm/src/workflow/runtime-state.js +145 -0
- package/esm/src/workflow/schemas/workflow.schema.d.ts +8 -8
- package/esm/src/workflow/schemas/workflow.schema.d.ts.map +1 -1
- package/esm/src/workflow/schemas/workflow.schema.js +3 -2
- package/esm/src/workflow/timed-wait-state.d.ts +9 -0
- package/esm/src/workflow/timed-wait-state.d.ts.map +1 -0
- package/esm/src/workflow/timed-wait-state.js +13 -0
- package/esm/src/workflow/types.d.ts +95 -1
- package/esm/src/workflow/types.d.ts.map +1 -1
- package/esm/src/workflow/types.js +173 -31
- package/esm/src/workflow/worker/dynamic-run-entrypoint.d.ts.map +1 -1
- package/esm/src/workflow/worker/dynamic-run-entrypoint.js +1 -0
- package/package.json +74 -11
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/mod.d.ts +0 -164
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/mod.js +0 -212
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/parse.d.ts +0 -19
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/parse.js +0 -69
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/stringify.d.ts +0 -17
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/stringify.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/dotenv/0.225.6/stringify.js +0 -45
- package/esm/extensions/ext-bundler-esbuild/src/binary.d.ts +0 -7
- package/esm/extensions/ext-bundler-esbuild/src/binary.d.ts.map +0 -1
- package/esm/extensions/ext-bundler-esbuild/src/binary.js +0 -143
- package/esm/extensions/ext-bundler-esbuild/src/es-module-lexer.d.ts +0 -17
- package/esm/extensions/ext-bundler-esbuild/src/es-module-lexer.d.ts.map +0 -1
- package/esm/extensions/ext-bundler-esbuild/src/es-module-lexer.js +0 -29
- package/esm/extensions/ext-bundler-esbuild/src/esbuild-bundler.d.ts +0 -25
- package/esm/extensions/ext-bundler-esbuild/src/esbuild-bundler.d.ts.map +0 -1
- package/esm/extensions/ext-bundler-esbuild/src/esbuild-bundler.js +0 -408
- package/esm/extensions/ext-bundler-esbuild/src/index.d.ts +0 -19
- package/esm/extensions/ext-bundler-esbuild/src/index.d.ts.map +0 -1
- package/esm/extensions/ext-bundler-esbuild/src/index.js +0 -40
- package/esm/extensions/ext-bundler-esbuild/src/plugin-adapter.d.ts +0 -16
- package/esm/extensions/ext-bundler-esbuild/src/plugin-adapter.d.ts.map +0 -1
- package/esm/extensions/ext-bundler-esbuild/src/plugin-adapter.js +0 -55
- package/esm/extensions/ext-bundler-esbuild/src/runtime.d.ts +0 -4
- package/esm/extensions/ext-bundler-esbuild/src/runtime.d.ts.map +0 -1
- package/esm/extensions/ext-bundler-esbuild/src/runtime.js +0 -43
- package/esm/src/build/asset-pipeline/tailwind-processor/css-utils.d.ts +0 -3
- package/esm/src/build/asset-pipeline/tailwind-processor/css-utils.d.ts.map +0 -1
- package/esm/src/build/asset-pipeline/tailwind-processor/css-utils.js +0 -13
- package/esm/src/build/binary-plugin-includes.d.ts +0 -6
- package/esm/src/build/binary-plugin-includes.d.ts.map +0 -1
- package/esm/src/build/binary-plugin-includes.js +0 -30
- package/esm/src/html/styles-builder/plugin-loader.d.ts +0 -15
- package/esm/src/html/styles-builder/plugin-loader.d.ts.map +0 -1
- package/esm/src/html/styles-builder/plugin-loader.js +0 -206
- package/esm/src/html/styles-builder/tailwind-plugin-allowlist.d.ts +0 -29
- package/esm/src/html/styles-builder/tailwind-plugin-allowlist.d.ts.map +0 -1
- package/esm/src/html/styles-builder/tailwind-plugin-allowlist.js +0 -48
- package/esm/src/modules/server/module-batch-handler.d.ts +0 -60
- package/esm/src/modules/server/module-batch-handler.d.ts.map +0 -1
- package/esm/src/modules/server/module-batch-handler.js +0 -512
- package/esm/src/observability/instruments/index.d.ts +0 -16
- package/esm/src/observability/instruments/index.d.ts.map +0 -1
- package/esm/src/observability/instruments/index.js +0 -7
- package/esm/src/rendering/rsc/server-action-guard.d.ts +0 -5
- package/esm/src/rendering/rsc/server-action-guard.d.ts.map +0 -1
- package/esm/src/rendering/rsc/server-action-guard.js +0 -5
- package/esm/src/security/http/middleware/config-loader.d.ts +0 -5
- package/esm/src/security/http/middleware/config-loader.d.ts.map +0 -1
- package/esm/src/security/http/middleware/config-loader.js +0 -44
- package/esm/src/server/schemas/action.schema.d.ts +0 -12
- package/esm/src/server/schemas/action.schema.d.ts.map +0 -1
- package/esm/src/server/schemas/action.schema.js +0 -8
- package/esm/src/server/schemas/index.d.ts +0 -7
- package/esm/src/server/schemas/index.d.ts.map +0 -1
- package/esm/src/server/schemas/index.js +0 -6
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource ceilings for the remote integration bridge.
|
|
3
|
+
*
|
|
4
|
+
* Keep these limits independent of agent, worker, and provider modules so the
|
|
5
|
+
* integration boundary does not acquire an inverted dependency on one of its
|
|
6
|
+
* consumers. The values are deliberately generous for existing integrations
|
|
7
|
+
* while still placing deterministic bounds on authenticated remote input.
|
|
8
|
+
*/
|
|
9
|
+
/** End-to-end deadline for one integration API request, including body reads. */
|
|
10
|
+
export const INTEGRATION_REQUEST_TIMEOUT_MS = 30_000;
|
|
11
|
+
/** Maximum serialized request accepted by the remote tool-call endpoint. */
|
|
12
|
+
export const MAX_INTEGRATION_CALL_REQUEST_BYTES = 4 * 1024 * 1024;
|
|
13
|
+
/** Maximum decoded JSON response accepted from tool discovery. */
|
|
14
|
+
export const MAX_INTEGRATION_TOOL_LIST_RESPONSE_BYTES = 16 * 1024 * 1024;
|
|
15
|
+
/** Maximum decoded JSON response accepted from tool execution. */
|
|
16
|
+
export const MAX_INTEGRATION_TOOL_CALL_RESPONSE_BYTES = 4 * 1024 * 1024;
|
|
17
|
+
/** Maximum diagnostic prefix retained from a failed integration API response. */
|
|
18
|
+
export const MAX_INTEGRATION_API_ERROR_RESPONSE_BYTES = 4 * 1024;
|
|
19
|
+
/** Maximum number of remote tool definitions admitted atomically. */
|
|
20
|
+
export const MAX_REMOTE_INTEGRATION_TOOL_DEFINITIONS = 1_000;
|
|
21
|
+
/** Maximum caller or environment credential length admitted into an HTTP header. */
|
|
22
|
+
export const MAX_REMOTE_INTEGRATION_API_TOKEN_LENGTH = 16_384;
|
|
23
|
+
/** Runtime tool names use the same ceiling as the agent invocation contract. */
|
|
24
|
+
export const MAX_REMOTE_INTEGRATION_TOOL_NAME_LENGTH = 128;
|
|
25
|
+
/** Maximum canonical connector-name length at lookup and policy boundaries. */
|
|
26
|
+
export const MAX_INTEGRATION_NAME_LENGTH = MAX_REMOTE_INTEGRATION_TOOL_NAME_LENGTH - 3;
|
|
27
|
+
/** Maximum integrations admitted into one exact-source narrowing policy. */
|
|
28
|
+
export const MAX_SOURCE_INTEGRATION_POLICY_INTEGRATIONS = 512;
|
|
29
|
+
/** A segment must leave room for the separator and the other non-empty segment. */
|
|
30
|
+
export const MAX_SOURCE_INTEGRATION_POLICY_SEGMENT_LENGTH = MAX_INTEGRATION_NAME_LENGTH;
|
|
31
|
+
/** A policy cannot usefully name more tools than remote discovery can admit. */
|
|
32
|
+
export const MAX_SOURCE_INTEGRATION_POLICY_TOOL_IDS = MAX_REMOTE_INTEGRATION_TOOL_DEFINITIONS;
|
|
33
|
+
/** Runtime tool descriptions use the same ceiling as the agent invocation contract. */
|
|
34
|
+
export const MAX_REMOTE_INTEGRATION_TOOL_DESCRIPTION_LENGTH = 1_024;
|
|
35
|
+
/** Run and agent identifiers use the same ceiling as the agent invocation contract. */
|
|
36
|
+
export const MAX_REMOTE_INTEGRATION_CONTEXT_ID_LENGTH = 128;
|
|
37
|
+
/** Runtime tool schemas use the same serialized ceiling as the agent invocation contract. */
|
|
38
|
+
export const MAX_REMOTE_INTEGRATION_TOOL_SCHEMA_BYTES = 16_384;
|
|
39
|
+
/** Prevent recursively consumed provider schemas from approaching stack limits. */
|
|
40
|
+
export const MAX_REMOTE_INTEGRATION_TOOL_SCHEMA_DEPTH = 64;
|
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
* different projects expose different authorized integration tools. The agent runtime
|
|
9
9
|
* calls these functions at tool-enumeration and tool-execution time.
|
|
10
10
|
*/
|
|
11
|
-
import type { ToolDefinition } from "../tool/index.js";
|
|
12
|
-
type RemoteIntegrationToolExecutionContext = {
|
|
13
|
-
runId?: string;
|
|
14
|
-
agentId?: string;
|
|
15
|
-
};
|
|
11
|
+
import type { ToolDefinition, ToolExecutionContext } from "../tool/index.js";
|
|
16
12
|
/**
|
|
17
13
|
* Fetch integration tool definitions for the current request context.
|
|
18
14
|
* Returns ToolDefinition[] that the agent runtime merges into the model's
|
|
@@ -20,8 +16,10 @@ type RemoteIntegrationToolExecutionContext = {
|
|
|
20
16
|
*
|
|
21
17
|
* Called per agent loop iteration — results are scoped to the current
|
|
22
18
|
* project's authorized integration tools via the per-request API token.
|
|
19
|
+
* Caller cancellation is propagated; remote failures and malformed or
|
|
20
|
+
* over-limit catalogs fail closed to an empty list.
|
|
23
21
|
*/
|
|
24
|
-
export declare function getRemoteIntegrationToolDefinitions(): Promise<ToolDefinition[]>;
|
|
22
|
+
export declare function getRemoteIntegrationToolDefinitions(context?: ToolExecutionContext): Promise<ToolDefinition[]>;
|
|
25
23
|
/**
|
|
26
24
|
* Check if a tool name looks like a remote integration tool.
|
|
27
25
|
* Integration tools use "integration__tool_id" format (double underscore separator).
|
|
@@ -30,7 +28,8 @@ export declare function isRemoteIntegrationTool(toolName: string): boolean;
|
|
|
30
28
|
/**
|
|
31
29
|
* Execute a remote integration tool via the API.
|
|
32
30
|
* Called by the agent runtime when a tool isn't found in the local registry.
|
|
31
|
+
* The request, response, and caller-supplied cancellation signal remain
|
|
32
|
+
* bounded for the complete network and response-body lifecycle.
|
|
33
33
|
*/
|
|
34
|
-
export declare function executeRemoteIntegrationTool(toolName: string, args: Record<string, unknown>, context?:
|
|
35
|
-
export {};
|
|
34
|
+
export declare function executeRemoteIntegrationTool(toolName: string, args: Record<string, unknown>, context?: ToolExecutionContext): Promise<unknown>;
|
|
36
35
|
//# sourceMappingURL=remote-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-tools.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/remote-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"remote-tools.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/remote-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAkBH,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAokB7E;;;;;;;;;GASG;AACH,wBAAsB,mCAAmC,CACvD,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CACR,cAAc,EAAE,CACjB,CA2BA;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEjE;AAED;;;;;GAKG;AACH,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,OAAO,CAAC,CAkClB"}
|
|
@@ -8,29 +8,94 @@
|
|
|
8
8
|
* different projects expose different authorized integration tools. The agent runtime
|
|
9
9
|
* calls these functions at tool-enumeration and tool-execution time.
|
|
10
10
|
*/
|
|
11
|
-
import { logger } from "../utils/index.js";
|
|
12
11
|
import { getApiBaseUrlEnv, getApiTokenEnv } from "../config/env.js";
|
|
13
12
|
import { getEnvironmentConfig } from "../config/environment-config.js";
|
|
14
13
|
import { getActiveSourceIntegrationPolicy } from "./source-policy-context.js";
|
|
15
14
|
import { isIntegrationToolAllowedBySourcePolicy, parseIntegrationToolIdentity, } from "./source-policy.js";
|
|
16
15
|
import { getCurrentRequestContext } from "../platform/adapters/fs/veryfront/request-context.js";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
import { snapshotBoundedJsonValue } from "../schemas/json-value.js";
|
|
17
|
+
import { logger } from "../utils/index.js";
|
|
18
|
+
import { hasProjectIdentityControlCharacters, isCanonicalProjectSlug, } from "../utils/project-identity.js";
|
|
19
|
+
import { readResponseTextPrefix } from "../utils/response-body.js";
|
|
20
|
+
import { INTEGRATION_REQUEST_TIMEOUT_MS, MAX_INTEGRATION_API_ERROR_RESPONSE_BYTES, MAX_INTEGRATION_CALL_REQUEST_BYTES, MAX_INTEGRATION_TOOL_CALL_RESPONSE_BYTES, MAX_INTEGRATION_TOOL_LIST_RESPONSE_BYTES, MAX_REMOTE_INTEGRATION_API_TOKEN_LENGTH, MAX_REMOTE_INTEGRATION_CONTEXT_ID_LENGTH, MAX_REMOTE_INTEGRATION_TOOL_DEFINITIONS, MAX_REMOTE_INTEGRATION_TOOL_DESCRIPTION_LENGTH, MAX_REMOTE_INTEGRATION_TOOL_NAME_LENGTH, MAX_REMOTE_INTEGRATION_TOOL_SCHEMA_BYTES, MAX_REMOTE_INTEGRATION_TOOL_SCHEMA_DEPTH, } from "./limits.js";
|
|
21
|
+
const utf8Encoder = new TextEncoder();
|
|
22
|
+
const EMPTY_REMOTE_INTEGRATION_CONTEXT = Object.freeze({
|
|
23
|
+
hasExplicitCredential: false,
|
|
24
|
+
authToken: undefined,
|
|
25
|
+
projectSlug: undefined,
|
|
26
|
+
runId: undefined,
|
|
27
|
+
agentId: undefined,
|
|
28
|
+
abortSignal: undefined,
|
|
29
|
+
});
|
|
30
|
+
function snapshotToolExecutionContext(context, includeCallMetadata) {
|
|
31
|
+
if (context === undefined)
|
|
32
|
+
return EMPTY_REMOTE_INTEGRATION_CONTEXT;
|
|
33
|
+
if (typeof context !== "object" || context === null) {
|
|
34
|
+
throw new TypeError("Integration tool execution context must be an object");
|
|
35
|
+
}
|
|
36
|
+
const readOwnDataProperty = (key) => {
|
|
37
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(context, key);
|
|
38
|
+
if (!descriptor)
|
|
39
|
+
return { present: false, value: undefined };
|
|
40
|
+
if (!("value" in descriptor)) {
|
|
41
|
+
throw new TypeError(`Integration tool execution context property "${key}" must be a data property`);
|
|
42
|
+
}
|
|
43
|
+
return { present: true, value: descriptor.value };
|
|
44
|
+
};
|
|
45
|
+
try {
|
|
46
|
+
const authToken = readOwnDataProperty("authToken");
|
|
47
|
+
const projectSlug = authToken.present
|
|
48
|
+
? readOwnDataProperty("projectSlug")
|
|
49
|
+
: { present: false, value: undefined };
|
|
50
|
+
const runId = includeCallMetadata
|
|
51
|
+
? readOwnDataProperty("runId")
|
|
52
|
+
: { present: false, value: undefined };
|
|
53
|
+
const agentId = includeCallMetadata
|
|
54
|
+
? readOwnDataProperty("agentId")
|
|
55
|
+
: { present: false, value: undefined };
|
|
56
|
+
const abortSignal = readOwnDataProperty("abortSignal");
|
|
57
|
+
if (abortSignal.value !== undefined &&
|
|
58
|
+
!(abortSignal.value instanceof AbortSignal)) {
|
|
59
|
+
throw new TypeError("Integration tool execution context abortSignal must be an AbortSignal");
|
|
60
|
+
}
|
|
61
|
+
return Object.freeze({
|
|
62
|
+
hasExplicitCredential: authToken.present,
|
|
63
|
+
authToken: authToken.value,
|
|
64
|
+
projectSlug: projectSlug.value,
|
|
65
|
+
runId: runId.value,
|
|
66
|
+
agentId: agentId.value,
|
|
67
|
+
abortSignal: abortSignal.value,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
catch (cause) {
|
|
71
|
+
throw new TypeError("Invalid integration tool execution context", { cause });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
22
74
|
// ---------------------------------------------------------------------------
|
|
23
75
|
// Per-request token resolution
|
|
24
76
|
// ---------------------------------------------------------------------------
|
|
25
77
|
function isValidApiToken(token) {
|
|
26
|
-
|
|
78
|
+
if (typeof token !== "string" ||
|
|
79
|
+
token.length === 0 ||
|
|
80
|
+
token.length > MAX_REMOTE_INTEGRATION_API_TOKEN_LENGTH) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
for (let index = 0; index < token.length; index++) {
|
|
84
|
+
const code = token.charCodeAt(index);
|
|
85
|
+
if (code < 0x21 || code > 0x7e)
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
27
89
|
}
|
|
28
90
|
/**
|
|
29
91
|
* Resolve the API token for the active runtime mode.
|
|
30
92
|
* Proxy mode requires a valid request-scoped project token. Single-project
|
|
31
93
|
* runtimes may use their process-wide environment token.
|
|
32
94
|
*/
|
|
33
|
-
function resolveRequestToken() {
|
|
95
|
+
function resolveRequestToken(context) {
|
|
96
|
+
if (context.hasExplicitCredential) {
|
|
97
|
+
return isValidApiToken(context.authToken) ? context.authToken : undefined;
|
|
98
|
+
}
|
|
34
99
|
const requestContext = getCurrentRequestContext();
|
|
35
100
|
if (requestContext) {
|
|
36
101
|
return isValidApiToken(requestContext.token) ? requestContext.token : undefined;
|
|
@@ -41,10 +106,23 @@ function resolveRequestToken() {
|
|
|
41
106
|
return isValidApiToken(environmentToken) ? environmentToken : undefined;
|
|
42
107
|
}
|
|
43
108
|
function normalizeProjectSlug(projectSlug) {
|
|
44
|
-
|
|
45
|
-
|
|
109
|
+
if (projectSlug === undefined)
|
|
110
|
+
return undefined;
|
|
111
|
+
if (typeof projectSlug !== "string") {
|
|
112
|
+
throw new TypeError("Integration project slug must be a string");
|
|
113
|
+
}
|
|
114
|
+
const normalized = projectSlug.trim();
|
|
115
|
+
if (normalized.length === 0)
|
|
116
|
+
return undefined;
|
|
117
|
+
if (!isCanonicalProjectSlug(normalized)) {
|
|
118
|
+
throw new TypeError("Integration project slug must be canonical");
|
|
119
|
+
}
|
|
120
|
+
return normalized;
|
|
46
121
|
}
|
|
47
|
-
function resolveRequestProjectSlug() {
|
|
122
|
+
function resolveRequestProjectSlug(context) {
|
|
123
|
+
if (context.hasExplicitCredential) {
|
|
124
|
+
return normalizeProjectSlug(context.projectSlug);
|
|
125
|
+
}
|
|
48
126
|
const requestContext = getCurrentRequestContext();
|
|
49
127
|
if (requestContext) {
|
|
50
128
|
return normalizeProjectSlug(requestContext.projectSlug);
|
|
@@ -56,13 +134,14 @@ function resolveRequestProjectSlug() {
|
|
|
56
134
|
// ---------------------------------------------------------------------------
|
|
57
135
|
function joinCallToolText(content) {
|
|
58
136
|
return content
|
|
59
|
-
.map((item) => item.text)
|
|
137
|
+
.map((item) => isRecord(item) && typeof item.text === "string" ? item.text : undefined)
|
|
60
138
|
.filter((text) => text !== undefined)
|
|
61
139
|
.join("\n");
|
|
62
140
|
}
|
|
63
141
|
function parseJsonText(text) {
|
|
64
142
|
try {
|
|
65
|
-
|
|
143
|
+
const snapshot = snapshotBoundedJsonValue(JSON.parse(text));
|
|
144
|
+
return snapshot.success ? snapshot.value : undefined;
|
|
66
145
|
}
|
|
67
146
|
catch {
|
|
68
147
|
return undefined;
|
|
@@ -71,28 +150,197 @@ function parseJsonText(text) {
|
|
|
71
150
|
function isRecord(value) {
|
|
72
151
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
73
152
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
153
|
+
function isJsonDepthWithin(value, maxDepth) {
|
|
154
|
+
const stack = [{ value, depth: 0 }];
|
|
155
|
+
while (stack.length > 0) {
|
|
156
|
+
const current = stack.pop();
|
|
157
|
+
if (!current)
|
|
158
|
+
break;
|
|
159
|
+
if (current.depth > maxDepth)
|
|
160
|
+
return false;
|
|
161
|
+
if (Array.isArray(current.value)) {
|
|
162
|
+
for (const child of current.value) {
|
|
163
|
+
stack.push({ value: child, depth: current.depth + 1 });
|
|
164
|
+
}
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
if (isRecord(current.value)) {
|
|
168
|
+
for (const child of Object.values(current.value)) {
|
|
169
|
+
stack.push({ value: child, depth: current.depth + 1 });
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
function parseRemoteToolDefinition(value) {
|
|
176
|
+
if (!isRecord(value) ||
|
|
177
|
+
typeof value.name !== "string" ||
|
|
178
|
+
value.name.length > MAX_REMOTE_INTEGRATION_TOOL_NAME_LENGTH ||
|
|
179
|
+
!isRemoteIntegrationTool(value.name) ||
|
|
180
|
+
typeof value.description !== "string" ||
|
|
181
|
+
value.description.length > MAX_REMOTE_INTEGRATION_TOOL_DESCRIPTION_LENGTH) {
|
|
182
|
+
return undefined;
|
|
183
|
+
}
|
|
184
|
+
const schemaSnapshot = snapshotBoundedJsonValue(value.inputSchema);
|
|
185
|
+
if (!schemaSnapshot.success ||
|
|
186
|
+
!isRecord(schemaSnapshot.value) ||
|
|
187
|
+
!isJsonDepthWithin(schemaSnapshot.value, MAX_REMOTE_INTEGRATION_TOOL_SCHEMA_DEPTH)) {
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
190
|
+
const serializedSchema = JSON.stringify(schemaSnapshot.value);
|
|
191
|
+
if (utf8Encoder.encode(serializedSchema).byteLength > MAX_REMOTE_INTEGRATION_TOOL_SCHEMA_BYTES) {
|
|
192
|
+
return undefined;
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
name: value.name,
|
|
196
|
+
description: value.description,
|
|
197
|
+
inputSchema: schemaSnapshot.value,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function parseToolListResponse(value) {
|
|
201
|
+
if (!isRecord(value) ||
|
|
202
|
+
!Array.isArray(value.tools) ||
|
|
203
|
+
value.tools.length > MAX_REMOTE_INTEGRATION_TOOL_DEFINITIONS) {
|
|
204
|
+
return undefined;
|
|
205
|
+
}
|
|
206
|
+
const definitions = [];
|
|
207
|
+
const names = new Set();
|
|
208
|
+
for (const candidate of value.tools) {
|
|
209
|
+
const definition = parseRemoteToolDefinition(candidate);
|
|
210
|
+
if (!definition || names.has(definition.name))
|
|
211
|
+
return undefined;
|
|
212
|
+
names.add(definition.name);
|
|
213
|
+
definitions.push(definition);
|
|
214
|
+
}
|
|
215
|
+
return definitions;
|
|
216
|
+
}
|
|
217
|
+
function createIntegrationRequestSignalScope(callerSignal) {
|
|
218
|
+
callerSignal?.throwIfAborted();
|
|
219
|
+
const controller = new AbortController();
|
|
220
|
+
const forwardCallerAbort = () => controller.abort(callerSignal?.reason);
|
|
221
|
+
const timeoutId = setTimeout(() => {
|
|
222
|
+
controller.abort(new DOMException(`Integration API request timed out after ${INTEGRATION_REQUEST_TIMEOUT_MS} ms`, "TimeoutError"));
|
|
223
|
+
}, INTEGRATION_REQUEST_TIMEOUT_MS);
|
|
224
|
+
const detachCaller = () => {
|
|
225
|
+
callerSignal?.removeEventListener("abort", forwardCallerAbort);
|
|
226
|
+
};
|
|
227
|
+
const cleanupAfterAbort = () => {
|
|
228
|
+
clearTimeout(timeoutId);
|
|
229
|
+
detachCaller();
|
|
230
|
+
};
|
|
231
|
+
controller.signal.addEventListener("abort", cleanupAfterAbort, { once: true });
|
|
232
|
+
if (callerSignal) {
|
|
233
|
+
callerSignal.addEventListener("abort", forwardCallerAbort, { once: true });
|
|
234
|
+
// An abort can race the initial check and listener registration.
|
|
235
|
+
if (callerSignal.aborted)
|
|
236
|
+
forwardCallerAbort();
|
|
237
|
+
}
|
|
238
|
+
let disposed = false;
|
|
239
|
+
return {
|
|
240
|
+
signal: controller.signal,
|
|
241
|
+
dispose: () => {
|
|
242
|
+
if (disposed)
|
|
243
|
+
return;
|
|
244
|
+
disposed = true;
|
|
245
|
+
clearTimeout(timeoutId);
|
|
246
|
+
detachCaller();
|
|
247
|
+
controller.signal.removeEventListener("abort", cleanupAfterAbort);
|
|
248
|
+
},
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
function discardResponseBody(response) {
|
|
252
|
+
if (!response.body)
|
|
253
|
+
return;
|
|
254
|
+
try {
|
|
255
|
+
const cancellation = response.body.cancel();
|
|
256
|
+
void cancellation.catch((error) => {
|
|
257
|
+
logger.debug("Failed to discard integration API response body", {
|
|
258
|
+
status: response.status,
|
|
259
|
+
errorName: error instanceof Error ? error.name : typeof error,
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
catch (error) {
|
|
264
|
+
logger.debug("Failed to discard integration API response body", {
|
|
265
|
+
status: response.status,
|
|
266
|
+
errorName: error instanceof Error ? error.name : typeof error,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
function assertResponseContentLengthWithin(response, maxBytes, label) {
|
|
271
|
+
const rawContentLength = response.headers.get("content-length");
|
|
272
|
+
if (rawContentLength === null)
|
|
273
|
+
return;
|
|
274
|
+
const contentLength = Number(rawContentLength.trim());
|
|
275
|
+
if (!/^\d+$/.test(rawContentLength.trim()) ||
|
|
276
|
+
!Number.isSafeInteger(contentLength) ||
|
|
277
|
+
contentLength > maxBytes) {
|
|
278
|
+
discardResponseBody(response);
|
|
279
|
+
throw new Error(`${label} exceeds the ${maxBytes}-byte response limit`);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
async function readBoundedResponseJson(response, maxBytes, signal, label) {
|
|
283
|
+
assertResponseContentLengthWithin(response, maxBytes, label);
|
|
284
|
+
const { text, truncated } = await readResponseTextPrefix(response, maxBytes + 1, signal, { fatalUtf8: true });
|
|
285
|
+
if (truncated || utf8Encoder.encode(text).byteLength > maxBytes) {
|
|
286
|
+
throw new Error(`${label} exceeds the ${maxBytes}-byte response limit`);
|
|
287
|
+
}
|
|
288
|
+
try {
|
|
289
|
+
return JSON.parse(text);
|
|
290
|
+
}
|
|
291
|
+
catch (cause) {
|
|
292
|
+
throw new SyntaxError(`${label} is not valid JSON`, { cause });
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
function snapshotRemoteToolArguments(args) {
|
|
296
|
+
const snapshot = snapshotBoundedJsonValue(args);
|
|
297
|
+
if (!snapshot.success || !isRecord(snapshot.value)) {
|
|
298
|
+
throw new TypeError("Remote integration tool arguments must be a bounded JSON object without accessors or cycles");
|
|
299
|
+
}
|
|
300
|
+
return snapshot.value;
|
|
80
301
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
302
|
+
function serializeCallRequest(toolName, args, context) {
|
|
303
|
+
for (const [label, value] of [
|
|
304
|
+
["run id", context.runId],
|
|
305
|
+
["agent id", context.agentId],
|
|
306
|
+
]) {
|
|
307
|
+
if (value === undefined)
|
|
308
|
+
continue;
|
|
309
|
+
if (typeof value !== "string") {
|
|
310
|
+
throw new TypeError(`Integration tool call ${label} must be a string`);
|
|
311
|
+
}
|
|
312
|
+
if (value.length > MAX_REMOTE_INTEGRATION_CONTEXT_ID_LENGTH) {
|
|
313
|
+
throw new RangeError(`Integration tool call ${label} exceeds the ${MAX_REMOTE_INTEGRATION_CONTEXT_ID_LENGTH}-character limit`);
|
|
314
|
+
}
|
|
315
|
+
if (value.length === 0 ||
|
|
316
|
+
value !== value.trim() ||
|
|
317
|
+
hasProjectIdentityControlCharacters(value)) {
|
|
318
|
+
throw new TypeError(`Integration tool call ${label} must be a canonical identifier`);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
const body = {
|
|
322
|
+
name: toolName,
|
|
323
|
+
arguments: snapshotRemoteToolArguments(args),
|
|
324
|
+
...(context.runId !== undefined ? { run_id: context.runId } : {}),
|
|
325
|
+
...(context.agentId !== undefined ? { agent_id: context.agentId } : {}),
|
|
326
|
+
};
|
|
327
|
+
const serialized = JSON.stringify(body);
|
|
328
|
+
if (utf8Encoder.encode(serialized).byteLength > MAX_INTEGRATION_CALL_REQUEST_BYTES) {
|
|
329
|
+
throw new RangeError(`Integration tool call request exceeds the ${MAX_INTEGRATION_CALL_REQUEST_BYTES}-byte limit`);
|
|
330
|
+
}
|
|
331
|
+
return serialized;
|
|
85
332
|
}
|
|
86
333
|
/**
|
|
87
334
|
* Issue an authenticated POST to the integration tools API with a bounded
|
|
88
335
|
* timeout. The two endpoints have different response contracts — tools/list
|
|
89
336
|
* throws on failure while tools/call maps failures into a structured result —
|
|
90
|
-
* so callers own response handling
|
|
91
|
-
*
|
|
337
|
+
* so callers own response handling and request-signal lifetime; this
|
|
338
|
+
* centralizes authenticated dispatch. No retry: tools/call is not idempotent
|
|
92
339
|
* (a retried call could re-send an email or re-create a record).
|
|
93
340
|
*/
|
|
94
|
-
async function postIntegrationApi(baseUrl, path, token,
|
|
95
|
-
const projectSlug = resolveRequestProjectSlug();
|
|
341
|
+
async function postIntegrationApi(baseUrl, path, token, serializedBody, context, signal) {
|
|
342
|
+
const projectSlug = resolveRequestProjectSlug(context);
|
|
343
|
+
signal.throwIfAborted();
|
|
96
344
|
return await fetch(`${baseUrl}${path}`, {
|
|
97
345
|
method: "POST",
|
|
98
346
|
headers: {
|
|
@@ -100,51 +348,72 @@ async function postIntegrationApi(baseUrl, path, token, body) {
|
|
|
100
348
|
"Content-Type": "application/json",
|
|
101
349
|
...(projectSlug ? { "x-veryfront-project-slug": projectSlug } : {}),
|
|
102
350
|
},
|
|
103
|
-
...(
|
|
104
|
-
signal
|
|
351
|
+
...(serializedBody !== undefined ? { body: serializedBody } : {}),
|
|
352
|
+
signal,
|
|
105
353
|
});
|
|
106
354
|
}
|
|
107
|
-
async function fetchToolList(baseUrl, token) {
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
355
|
+
async function fetchToolList(baseUrl, token, context) {
|
|
356
|
+
const requestScope = createIntegrationRequestSignalScope(context.abortSignal);
|
|
357
|
+
try {
|
|
358
|
+
const response = await postIntegrationApi(baseUrl, "/integrations/tools/list", token, undefined, context, requestScope.signal);
|
|
359
|
+
if (!response.ok) {
|
|
360
|
+
// Throw so callers can distinguish a fetch failure from "no remote tools
|
|
361
|
+
// available" (which returns an empty tools array with status 200).
|
|
362
|
+
discardResponseBody(response);
|
|
363
|
+
throw new Error(`Integration tools API returned ${response.status} ${response.statusText}`.trim());
|
|
364
|
+
}
|
|
365
|
+
const rawData = await readBoundedResponseJson(response, MAX_INTEGRATION_TOOL_LIST_RESPONSE_BYTES, requestScope.signal, "Integration tools API list response");
|
|
366
|
+
const definitions = parseToolListResponse(rawData);
|
|
367
|
+
if (!definitions) {
|
|
368
|
+
throw new Error("Integration tools API returned unexpected response shape");
|
|
369
|
+
}
|
|
370
|
+
return definitions;
|
|
113
371
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
throw new Error("Integration tools API returned unexpected response shape");
|
|
372
|
+
finally {
|
|
373
|
+
requestScope.dispose();
|
|
117
374
|
}
|
|
118
|
-
return rawData.tools ?? [];
|
|
119
375
|
}
|
|
120
376
|
async function callRemoteTool(baseUrl, token, toolName, args, context) {
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
const text = await response.text();
|
|
129
|
-
return { error: "api_error", status: response.status, message: text };
|
|
130
|
-
}
|
|
131
|
-
const result = await response.json();
|
|
132
|
-
// If MCP CallToolResult format, extract content
|
|
133
|
-
if (result?.content && Array.isArray(result.content)) {
|
|
134
|
-
const text = joinCallToolText(result.content);
|
|
135
|
-
if (result.structuredContent) {
|
|
136
|
-
return result.structuredContent;
|
|
377
|
+
const requestScope = createIntegrationRequestSignalScope(context.abortSignal);
|
|
378
|
+
try {
|
|
379
|
+
const serializedBody = serializeCallRequest(toolName, args, context);
|
|
380
|
+
const response = await postIntegrationApi(baseUrl, "/integrations/tools/call", token, serializedBody, context, requestScope.signal);
|
|
381
|
+
if (!response.ok) {
|
|
382
|
+
const { text } = await readResponseTextPrefix(response, MAX_INTEGRATION_API_ERROR_RESPONSE_BYTES, requestScope.signal, { fatalUtf8: true });
|
|
383
|
+
return { error: "api_error", status: response.status, message: text };
|
|
137
384
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return parsed;
|
|
143
|
-
return { error: "tool_error", message: text };
|
|
385
|
+
const rawResult = await readBoundedResponseJson(response, MAX_INTEGRATION_TOOL_CALL_RESPONSE_BYTES, requestScope.signal, "Integration tools API call response");
|
|
386
|
+
const resultSnapshot = snapshotBoundedJsonValue(rawResult);
|
|
387
|
+
if (!resultSnapshot.success) {
|
|
388
|
+
throw new TypeError("Integration tools API call response exceeds bounded JSON shape limits");
|
|
144
389
|
}
|
|
145
|
-
|
|
390
|
+
const result = resultSnapshot.value;
|
|
391
|
+
// If MCP CallToolResult format, extract content.
|
|
392
|
+
if (isRecord(result) && Array.isArray(result.content)) {
|
|
393
|
+
const text = joinCallToolText(result.content);
|
|
394
|
+
if (Object.hasOwn(result, "structuredContent")) {
|
|
395
|
+
if (!isRecord(result.structuredContent)) {
|
|
396
|
+
throw new TypeError("Integration tools API returned malformed MCP structured content");
|
|
397
|
+
}
|
|
398
|
+
return result.structuredContent;
|
|
399
|
+
}
|
|
400
|
+
if (Object.hasOwn(result, "isError") && typeof result.isError !== "boolean") {
|
|
401
|
+
throw new TypeError("Integration tools API returned a malformed MCP error marker");
|
|
402
|
+
}
|
|
403
|
+
if (result.isError === true) {
|
|
404
|
+
// Preserve structured errors such as authentication_required + connectUrl.
|
|
405
|
+
const parsed = parseJsonText(text);
|
|
406
|
+
if (parsed && typeof parsed === "object")
|
|
407
|
+
return parsed;
|
|
408
|
+
return { error: "tool_error", message: text };
|
|
409
|
+
}
|
|
410
|
+
return parseJsonText(text) ?? text;
|
|
411
|
+
}
|
|
412
|
+
return result;
|
|
413
|
+
}
|
|
414
|
+
finally {
|
|
415
|
+
requestScope.dispose();
|
|
146
416
|
}
|
|
147
|
-
return result;
|
|
148
417
|
}
|
|
149
418
|
// ---------------------------------------------------------------------------
|
|
150
419
|
// Public API — called by agent runtime per-request
|
|
@@ -156,14 +425,18 @@ async function callRemoteTool(baseUrl, token, toolName, args, context) {
|
|
|
156
425
|
*
|
|
157
426
|
* Called per agent loop iteration — results are scoped to the current
|
|
158
427
|
* project's authorized integration tools via the per-request API token.
|
|
428
|
+
* Caller cancellation is propagated; remote failures and malformed or
|
|
429
|
+
* over-limit catalogs fail closed to an empty list.
|
|
159
430
|
*/
|
|
160
|
-
export async function getRemoteIntegrationToolDefinitions() {
|
|
431
|
+
export async function getRemoteIntegrationToolDefinitions(context) {
|
|
432
|
+
const requestContext = snapshotToolExecutionContext(context, false);
|
|
433
|
+
requestContext.abortSignal?.throwIfAborted();
|
|
161
434
|
const baseUrl = getApiBaseUrlEnv();
|
|
162
|
-
const token = resolveRequestToken();
|
|
435
|
+
const token = resolveRequestToken(requestContext);
|
|
163
436
|
if (!baseUrl || !token)
|
|
164
437
|
return [];
|
|
165
438
|
try {
|
|
166
|
-
const remoteDefs = await fetchToolList(baseUrl, token);
|
|
439
|
+
const remoteDefs = await fetchToolList(baseUrl, token, requestContext);
|
|
167
440
|
const sourceIntegrationPolicy = getActiveSourceIntegrationPolicy();
|
|
168
441
|
return remoteDefs.filter((def) => sourceIntegrationPolicy === undefined ||
|
|
169
442
|
isIntegrationToolAllowedBySourcePolicy(def.name, sourceIntegrationPolicy)).map((def) => ({
|
|
@@ -175,6 +448,7 @@ export async function getRemoteIntegrationToolDefinitions() {
|
|
|
175
448
|
}));
|
|
176
449
|
}
|
|
177
450
|
catch (err) {
|
|
451
|
+
requestContext.abortSignal?.throwIfAborted();
|
|
178
452
|
logger.error("Failed to fetch remote integration tool definitions", {
|
|
179
453
|
error: err instanceof Error ? err.message : String(err),
|
|
180
454
|
});
|
|
@@ -191,9 +465,15 @@ export function isRemoteIntegrationTool(toolName) {
|
|
|
191
465
|
/**
|
|
192
466
|
* Execute a remote integration tool via the API.
|
|
193
467
|
* Called by the agent runtime when a tool isn't found in the local registry.
|
|
468
|
+
* The request, response, and caller-supplied cancellation signal remain
|
|
469
|
+
* bounded for the complete network and response-body lifecycle.
|
|
194
470
|
*/
|
|
195
471
|
export async function executeRemoteIntegrationTool(toolName, args, context) {
|
|
196
|
-
|
|
472
|
+
const requestContext = snapshotToolExecutionContext(context, true);
|
|
473
|
+
requestContext.abortSignal?.throwIfAborted();
|
|
474
|
+
if (typeof toolName !== "string" ||
|
|
475
|
+
toolName.length > MAX_REMOTE_INTEGRATION_TOOL_NAME_LENGTH ||
|
|
476
|
+
!isRemoteIntegrationTool(toolName)) {
|
|
197
477
|
throw new Error(`Remote integration tool "${toolName}" must use the canonical integration__tool_id name`);
|
|
198
478
|
}
|
|
199
479
|
const sourceIntegrationPolicy = getActiveSourceIntegrationPolicy();
|
|
@@ -202,9 +482,9 @@ export async function executeRemoteIntegrationTool(toolName, args, context) {
|
|
|
202
482
|
throw new Error(`Tool "${toolName}" is not allowed by the source integration policy`);
|
|
203
483
|
}
|
|
204
484
|
const baseUrl = getApiBaseUrlEnv();
|
|
205
|
-
const token = resolveRequestToken();
|
|
485
|
+
const token = resolveRequestToken(requestContext);
|
|
206
486
|
if (!baseUrl || !token) {
|
|
207
487
|
return { error: "no_api_token", message: "No API token available" };
|
|
208
488
|
}
|
|
209
|
-
return callRemoteTool(baseUrl, token, toolName, args,
|
|
489
|
+
return callRemoteTool(baseUrl, token, toolName, args, requestContext);
|
|
210
490
|
}
|