veryfront 0.1.1186 → 0.1.1190
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/analyze-chunks/command.d.ts.map +1 -1
- package/esm/cli/commands/analyze-chunks/command.js +3 -1
- 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/command-help.d.ts.map +1 -1
- package/esm/cli/commands/schedule/command-help.js +5 -1
- package/esm/cli/commands/schedule/handler.d.ts +17 -0
- package/esm/cli/commands/schedule/handler.d.ts.map +1 -1
- package/esm/cli/commands/schedule/handler.js +131 -31
- 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/command-help.d.ts.map +1 -1
- package/esm/cli/commands/webhook/command-help.js +5 -1
- package/esm/cli/commands/webhook/handler.d.ts +5 -0
- package/esm/cli/commands/webhook/handler.d.ts.map +1 -1
- package/esm/cli/commands/webhook/handler.js +74 -9
- 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 +299 -303
- package/esm/deno.d.ts +18 -0
- package/esm/deno.js +33 -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 +159 -35
- package/esm/src/agent/conversation/private-run-event.d.ts +13 -0
- package/esm/src/agent/conversation/private-run-event.d.ts.map +1 -0
- package/esm/src/agent/conversation/private-run-event.js +38 -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 +12 -0
- package/esm/src/agent/conversation/run-event-limits.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-event-limits.js +22 -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 +9 -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 +25 -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/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 +69 -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/durable-run-event-sink.d.ts +10 -0
- package/esm/src/agent/hosted/durable-run-event-sink.d.ts.map +1 -0
- package/esm/src/agent/hosted/durable-run-event-sink.js +102 -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/index.d.ts +3 -0
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +2 -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 +1 -1
- package/esm/src/agent/runtime/agent-runtime-step.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-runtime-step.js +16 -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 +70 -53
- 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/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.map +1 -1
- package/esm/src/agent/runtime/tool-exposure.js +190 -61
- 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 +6 -1
- package/esm/src/agent/service/node-sentry.d.ts.map +1 -1
- package/esm/src/agent/service/node-sentry.js +13 -6
- 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 +0 -1
- package/esm/src/agent/types.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/templates.d.ts.map +1 -1
- package/esm/src/build/production-build/templates.js +2 -2
- package/esm/src/cache/backend.d.ts +3 -1
- package/esm/src/cache/backend.d.ts.map +1 -1
- package/esm/src/cache/backend.js +3 -0
- package/esm/src/cache/backends/api.d.ts +5 -0
- package/esm/src/cache/backends/api.d.ts.map +1 -1
- package/esm/src/cache/backends/api.js +34 -12
- package/esm/src/cache/backends/disk.d.ts.map +1 -1
- package/esm/src/cache/backends/disk.js +29 -2
- 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 +3 -0
- package/esm/src/cache/backends/index.d.ts.map +1 -1
- package/esm/src/cache/backends/index.js +2 -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/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 +48 -3
- 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 -24
- package/esm/src/config/schemas/config.schema.d.ts.map +1 -1
- package/esm/src/config/schemas/config.schema.js +402 -216
- 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/schedule-handler.d.ts.map +1 -1
- package/esm/src/discovery/handlers/schedule-handler.js +2 -1
- package/esm/src/discovery/handlers/skill-handler.js +2 -2
- package/esm/src/discovery/handlers/webhook-handler.d.ts.map +1 -1
- package/esm/src/discovery/handlers/webhook-handler.js +2 -1
- 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/local-json-store-lock.d.ts +15 -0
- package/esm/src/embedding/local-json-store-lock.d.ts.map +1 -0
- package/esm/src/embedding/local-json-store-lock.js +457 -0
- package/esm/src/embedding/rag-store.d.ts.map +1 -1
- package/esm/src/embedding/rag-store.js +342 -165
- 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/agent.d.ts +2 -0
- package/esm/src/errors/error-registry/agent.d.ts.map +1 -1
- package/esm/src/errors/error-registry/agent.js +8 -0
- 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/server.d.ts +8 -0
- package/esm/src/errors/error-registry/server.d.ts.map +1 -1
- package/esm/src/errors/error-registry/server.js +26 -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 +100 -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 +5 -4
- 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 +18 -8
- package/esm/src/extensions/builtin-extensions.d.ts.map +1 -1
- package/esm/src/extensions/builtin-extensions.js +64 -173
- 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 +23 -2
- package/esm/src/extensions/capabilities.d.ts.map +1 -1
- package/esm/src/extensions/capabilities.js +534 -142
- 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/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/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 +2 -0
- package/esm/src/extensions/distributed/redis-runtime-provider.d.ts.map +1 -1
- package/esm/src/extensions/distributed/redis-runtime-provider.js +6 -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-defaults.d.ts +105 -0
- package/esm/src/extensions/first-party-defaults.d.ts.map +1 -0
- package/esm/src/extensions/first-party-defaults.js +178 -0
- 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/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 +94 -8
- 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/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 +4 -0
- package/esm/src/extensions/types.d.ts.map +1 -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 +320 -44
- package/esm/src/extensions/websocket/node-websocket-server-provider.d.ts +4 -4
- package/esm/src/extensions/websocket/node-websocket-server-provider.d.ts.map +1 -1
- package/esm/src/extensions/websocket/node-websocket-server-provider.js +4 -4
- package/esm/src/fs/index.d.ts +2 -2
- package/esm/src/fs/index.js +2 -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/tailwind-compiler-utils.d.ts.map +1 -1
- package/esm/src/html/styles-builder/tailwind-compiler-utils.js +6 -3
- 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.map +1 -1
- package/esm/src/middleware/builtin/security/redis-rate-limit.js +9 -5
- 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 +32 -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/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 +9 -0
- package/esm/src/observability/metrics/index.d.ts.map +1 -1
- package/esm/src/observability/metrics/index.js +4 -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 +8 -0
- package/esm/src/observability/metrics/recorder.d.ts.map +1 -1
- package/esm/src/observability/metrics/recorder.js +92 -33
- package/esm/src/observability/metrics/types.d.ts +5 -0
- package/esm/src/observability/metrics/types.d.ts.map +1 -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 +8 -7
- package/esm/src/observability/sentry.d.ts.map +1 -1
- package/esm/src/observability/sentry.js +37 -28
- 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 +51 -7
- 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 +9 -0
- package/esm/src/platform/adapters/bounded-file-read.d.ts.map +1 -1
- package/esm/src/platform/adapters/bounded-file-read.js +11 -5
- 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 +9 -0
- package/esm/src/platform/adapters/file-snapshot-error.d.ts.map +1 -1
- package/esm/src/platform/adapters/file-snapshot-error.js +15 -0
- package/esm/src/platform/adapters/file-system-capabilities.d.ts +51 -15
- package/esm/src/platform/adapters/file-system-capabilities.d.ts.map +1 -1
- package/esm/src/platform/adapters/file-system-capabilities.js +364 -130
- package/esm/src/platform/adapters/fs/cache/size-estimator.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/cache/size-estimator.js +12 -2
- 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/cache-scope.d.ts +8 -0
- package/esm/src/platform/adapters/fs/github/cache-scope.d.ts.map +1 -0
- package/esm/src/platform/adapters/fs/github/cache-scope.js +12 -0
- package/esm/src/platform/adapters/fs/github/directory-operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/directory-operations.js +2 -1
- 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/path-utils.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/path-utils.js +27 -4
- 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 +38 -2
- 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 +10 -4
- 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/integration.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/integration.js +4 -0
- package/esm/src/platform/adapters/fs/veryfront/adapter-helpers.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/adapter-helpers.js +21 -6
- package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts +4 -0
- package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/adapter.js +48 -18
- package/esm/src/platform/adapters/fs/veryfront/path-normalizer.d.ts +2 -0
- package/esm/src/platform/adapters/fs/veryfront/path-normalizer.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/path-normalizer.js +57 -5
- package/esm/src/platform/adapters/fs/veryfront/retry.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/retry.js +66 -13
- package/esm/src/platform/adapters/fs/veryfront/types.d.ts +4 -1
- package/esm/src/platform/adapters/fs/veryfront/types.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/wrapper.d.ts +3 -0
- package/esm/src/platform/adapters/fs/wrapper.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/wrapper.js +11 -2
- package/esm/src/platform/adapters/mock.d.ts +1 -5
- package/esm/src/platform/adapters/mock.d.ts.map +1 -1
- package/esm/src/platform/adapters/mock.js +281 -70
- 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/path-containment.d.ts +9 -0
- package/esm/src/platform/adapters/path-containment.d.ts.map +1 -0
- package/esm/src/platform/adapters/path-containment.js +13 -0
- 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 +12 -18
- package/esm/src/platform/adapters/runtime/bun/filesystem-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/bun/filesystem-adapter.js +34 -191
- 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 -54
- package/esm/src/platform/adapters/runtime/deno/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/deno/adapter.js +12 -413
- 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 -23
- 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 -156
- 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/native-snapshot-identity.d.ts +13 -0
- package/esm/src/platform/adapters/runtime/shared/native-snapshot-identity.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/native-snapshot-identity.js +12 -0
- 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 +78 -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 +515 -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 +14 -5
- package/esm/src/platform/adapters/veryfront-api-client/client.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/client.js +11 -2
- package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts +5 -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 +41 -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 +12 -13
- package/esm/src/platform/adapters/veryfront-api-transport.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-transport.js +231 -133
- 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 +29 -8
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +123 -57
- 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 +8 -3
- package/esm/src/platform/compat/not-found-error.d.ts.map +1 -1
- package/esm/src/platform/compat/not-found-error.js +164 -31
- 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 +11 -0
- package/esm/src/platform/compat/process/env.d.ts.map +1 -1
- package/esm/src/platform/compat/process/env.js +28 -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.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/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 +22 -19
- package/esm/src/release-assets/css-compile.d.ts.map +1 -1
- package/esm/src/release-assets/css-compile.js +67 -25
- 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/app-route-resolver.d.ts +4 -5
- package/esm/src/rendering/app-route-resolver.d.ts.map +1 -1
- package/esm/src/rendering/app-route-resolver.js +142 -87
- 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 +2 -0
- package/esm/src/rendering/cache/stores/redis-store.d.ts.map +1 -1
- package/esm/src/rendering/cache/stores/redis-store.js +44 -8
- 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/chunk-optimizer/contracts.d.ts +49 -0
- package/esm/src/rendering/chunk-optimizer/contracts.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/contracts.js +1 -0
- package/esm/src/rendering/chunk-optimizer/data-properties.d.ts +12 -0
- package/esm/src/rendering/chunk-optimizer/data-properties.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/data-properties.js +24 -0
- package/esm/src/rendering/chunk-optimizer/file-discovery.d.ts +3 -0
- package/esm/src/rendering/chunk-optimizer/file-discovery.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/file-discovery.js +167 -0
- package/esm/src/rendering/chunk-optimizer/filesystem.d.ts +7 -0
- package/esm/src/rendering/chunk-optimizer/filesystem.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/filesystem.js +51 -0
- package/esm/src/rendering/chunk-optimizer/limits.d.ts +23 -0
- package/esm/src/rendering/chunk-optimizer/limits.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/limits.js +22 -0
- package/esm/src/rendering/chunk-optimizer/manifest.d.ts +4 -0
- package/esm/src/rendering/chunk-optimizer/manifest.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/manifest.js +220 -0
- package/esm/src/rendering/chunk-optimizer/source-imports.d.ts +9 -0
- package/esm/src/rendering/chunk-optimizer/source-imports.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/source-imports.js +359 -0
- package/esm/src/rendering/chunk-optimizer/specifier.d.ts +5 -0
- package/esm/src/rendering/chunk-optimizer/specifier.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/specifier.js +10 -0
- package/esm/src/rendering/chunk-optimizer/suggestions.d.ts +3 -0
- package/esm/src/rendering/chunk-optimizer/suggestions.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/suggestions.js +164 -0
- package/esm/src/rendering/chunk-optimizer.d.ts +10 -43
- package/esm/src/rendering/chunk-optimizer.d.ts.map +1 -1
- package/esm/src/rendering/chunk-optimizer.js +39 -161
- 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.d.ts +14 -3
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline.js +46 -3
- 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/page-resolution/page-resolver.d.ts +3 -2
- package/esm/src/rendering/page-resolution/page-resolver.d.ts.map +1 -1
- package/esm/src/rendering/page-resolution/page-resolver.js +21 -10
- 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/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 +62 -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/run-event-sink-context.d.ts +17 -0
- package/esm/src/runtime/run-event-sink-context.d.ts.map +1 -0
- package/esm/src/runtime/run-event-sink-context.js +47 -0
- package/esm/src/runtime/runtime-bridge.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.js +36 -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 +42 -0
- package/esm/src/security/http/outbound-fetch.d.ts.map +1 -0
- package/esm/src/security/http/outbound-fetch.js +144 -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 +9 -17
- package/esm/src/security/secure-fs.d.ts.map +1 -1
- package/esm/src/security/secure-fs.js +692 -281
- package/esm/src/server/bootstrap.d.ts +15 -1
- package/esm/src/server/bootstrap.d.ts.map +1 -1
- package/esm/src/server/bootstrap.js +22 -4
- 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 +1 -1
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +2 -1
- 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/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 +33 -6
- 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/app-router-resolver.d.ts.map +1 -1
- package/esm/src/server/handlers/request/api/app-router-resolver.js +28 -30
- 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 +1 -1
- 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 +78 -9
- 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/service-server.d.ts +1 -1
- package/esm/src/server/service-server.d.ts.map +1 -1
- 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/entities/getEntityInfo.d.ts +57 -3
- package/esm/src/types/entities/getEntityInfo.d.ts.map +1 -1
- package/esm/src/types/entities/getEntityInfo.js +1015 -231
- package/esm/src/types/entities.d.ts +9 -1
- package/esm/src/types/entities.d.ts.map +1 -1
- package/esm/src/types/entities.js +92 -0
- package/esm/src/types/index.d.ts +2 -1
- 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/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 +3 -0
- package/esm/src/utils/constants/build.d.ts.map +1 -1
- package/esm/src/utils/constants/build.js +5 -1
- 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/limits.d.ts +6 -0
- package/esm/src/utils/constants/limits.d.ts.map +1 -1
- package/esm/src/utils/constants/limits.js +6 -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/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 +3 -1
- package/esm/src/utils/index.d.ts.map +1 -1
- package/esm/src/utils/index.js +3 -1
- 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/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/route-path-utils.d.ts +11 -0
- package/esm/src/utils/route-path-utils.d.ts.map +1 -1
- package/esm/src/utils/route-path-utils.js +65 -20
- 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/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 +5 -9
- package/esm/src/workflow/claude-code/event-publisher.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/event-publisher.js +86 -45
- 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 -8
- package/esm/src/workflow/claude-code/types.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/types.js +16 -3
- 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 +4 -4
- 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 +47 -6
- 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/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/platform/adapters/runtime/shared/native-file-capabilities.d.ts +0 -33
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.d.ts.map +0 -1
- package/esm/src/platform/adapters/runtime/shared/native-file-capabilities.js +0 -205
- 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
|
@@ -2,11 +2,22 @@ import { logger as baseLogger } from "../../utils/index.js";
|
|
|
2
2
|
import { getEnvironmentConfig, } from "../../config/environment-config.js";
|
|
3
3
|
import { getEnv } from "../../platform/compat/process.js";
|
|
4
4
|
import { OAuthService } from "../providers/base.js";
|
|
5
|
-
import {
|
|
5
|
+
import { buildOAuthCallbackUrl, createOAuthJsonResponse, createOAuthRedirect, resolveOAuthApplicationUrl, } from "../url-utils.js";
|
|
6
|
+
import { isRefreshCapableTokenStore, normalizeStoredOAuthTokens } from "../token-utils.js";
|
|
7
|
+
import { normalizeOAuthUserId } from "../state-utils.js";
|
|
8
|
+
import { normalizeOAuthScopeSet } from "../scope-utils.js";
|
|
9
|
+
import { RESERVED_AUTHORIZATION_PARAMETERS, snapshotOAuthParameterRecord, } from "../config-validation.js";
|
|
10
|
+
import { snapshotOwnDataProperties } from "../data-properties.js";
|
|
11
|
+
import { resolveOAuthHandlerTokenStore } from "./token-store-policy.js";
|
|
6
12
|
const logger = baseLogger.component("o-auth");
|
|
7
|
-
const DEFAULT_APP_URL = "http://localhost:3000";
|
|
8
13
|
function createUnauthorizedResponse() {
|
|
9
|
-
return
|
|
14
|
+
return createOAuthJsonResponse({ error: "Unauthorized" }, { status: 401 });
|
|
15
|
+
}
|
|
16
|
+
function createMethodNotAllowedResponse(allow) {
|
|
17
|
+
return createOAuthJsonResponse({ error: "Method not allowed" }, { status: 405, headers: { Allow: allow } });
|
|
18
|
+
}
|
|
19
|
+
function createForbiddenResponse() {
|
|
20
|
+
return createOAuthJsonResponse({ error: "Forbidden" }, { status: 403 });
|
|
10
21
|
}
|
|
11
22
|
async function isRequestUnauthorized(req, isAuthenticated) {
|
|
12
23
|
return isAuthenticated ? !(await isAuthenticated(req)) : false;
|
|
@@ -23,112 +34,184 @@ async function resolveUserId(req, getUserId) {
|
|
|
23
34
|
if (!getUserId)
|
|
24
35
|
return null;
|
|
25
36
|
const result = await getUserId(req);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return result;
|
|
29
|
-
}
|
|
30
|
-
function resolveAppUrl(baseUrl, env) {
|
|
31
|
-
const appUrl = baseUrl ?? env.appUrl;
|
|
32
|
-
if (appUrl)
|
|
33
|
-
return appUrl;
|
|
34
|
-
// Fail closed in production: never silently redirect OAuth callbacks to
|
|
35
|
-
// localhost. Require APP_URL (or an explicit baseUrl) to be configured.
|
|
36
|
-
if (env.nodeEnv === "production" || env.veryfrontEnv === "production") {
|
|
37
|
-
throw new Error("OAuth callback base URL not configured: set APP_URL (or pass baseUrl) in production.");
|
|
38
|
-
}
|
|
39
|
-
return DEFAULT_APP_URL;
|
|
37
|
+
const normalized = normalizeOAuthUserId(result);
|
|
38
|
+
return normalized !== null && normalized === result ? normalized : null;
|
|
40
39
|
}
|
|
41
|
-
function createNotConfiguredResponse(
|
|
40
|
+
function createNotConfiguredResponse(service) {
|
|
42
41
|
// SEC-009: Do NOT leak internal env var names in the HTTP response body.
|
|
43
42
|
// Operators still need the diagnostic, so log the missing env var names
|
|
44
43
|
// server-side via the existing logger.
|
|
45
44
|
logger.error("OAuth provider not configured", {
|
|
46
|
-
serviceId:
|
|
47
|
-
displayName:
|
|
48
|
-
missingVars:
|
|
45
|
+
serviceId: service.serviceId,
|
|
46
|
+
displayName: service.displayName,
|
|
47
|
+
missingVars: service.credentialEnvironmentVariables,
|
|
49
48
|
});
|
|
50
|
-
return
|
|
49
|
+
return createOAuthJsonResponse({ error: `${service.displayName} OAuth not configured` }, { status: 503 });
|
|
51
50
|
}
|
|
52
51
|
function createInitErrorResponse() {
|
|
53
52
|
// SEC-009: do NOT leak internal error details (file paths, library
|
|
54
53
|
// internals) to the client. The caller already logs the full error
|
|
55
54
|
// server-side; return a generic message here.
|
|
56
|
-
return
|
|
55
|
+
return createOAuthJsonResponse({ error: "Failed to initiate OAuth flow" }, { status: 500 });
|
|
57
56
|
}
|
|
58
57
|
/** Handler for create oauth init. */
|
|
59
58
|
export function createOAuthInitHandler(config, options) {
|
|
60
|
-
const { tokenStore
|
|
59
|
+
const { tokenStore: configuredTokenStore, baseUrl, callbackRouteId, authOptions: rawAuthOptions = {}, env = getEnvironmentConfig(), envReader = getEnv, isAuthenticated, getUserId, } = options ?? {};
|
|
60
|
+
const tokenStore = resolveOAuthHandlerTokenStore(configuredTokenStore, env);
|
|
61
|
+
const service = new OAuthService(config, tokenStore, envReader);
|
|
62
|
+
const handlerUsesPkce = service.pkceMode !== "unsupported";
|
|
63
|
+
const authOptions = snapshotOwnDataProperties(rawAuthOptions, [
|
|
64
|
+
"scopes",
|
|
65
|
+
"state",
|
|
66
|
+
"usePkce",
|
|
67
|
+
"additionalParams",
|
|
68
|
+
"redirectUri",
|
|
69
|
+
]);
|
|
70
|
+
if (!authOptions) {
|
|
71
|
+
throw new Error("OAuth init handler authOptions must use plain data properties");
|
|
72
|
+
}
|
|
73
|
+
if (authOptions.state !== undefined) {
|
|
74
|
+
throw new Error("OAuth init handler state is generated internally and must not be configured through authOptions");
|
|
75
|
+
}
|
|
76
|
+
if (authOptions.redirectUri !== undefined) {
|
|
77
|
+
throw new Error("OAuth init handler redirectUri is derived from the configured application URL");
|
|
78
|
+
}
|
|
79
|
+
const scopes = authOptions.scopes === undefined ? undefined : normalizeOAuthScopeSet(authOptions.scopes, service.scopeSeparator);
|
|
80
|
+
if (authOptions.scopes !== undefined && !scopes) {
|
|
81
|
+
throw new Error("OAuth init handler scopes are invalid");
|
|
82
|
+
}
|
|
83
|
+
const additionalParams = snapshotOAuthParameterRecord(authOptions.additionalParams, RESERVED_AUTHORIZATION_PARAMETERS);
|
|
84
|
+
const additionalParamsIssue = additionalParams.issues[0];
|
|
85
|
+
if (additionalParamsIssue) {
|
|
86
|
+
throw new Error(`Invalid OAuth authorization parameter configuration: ${additionalParamsIssue.message}`);
|
|
87
|
+
}
|
|
88
|
+
if (authOptions.usePkce !== undefined && authOptions.usePkce !== handlerUsesPkce) {
|
|
89
|
+
throw new Error(handlerUsesPkce
|
|
90
|
+
? "OAuth init handler requires PKCE with the S256 challenge method"
|
|
91
|
+
: "OAuth provider does not support PKCE");
|
|
92
|
+
}
|
|
93
|
+
const authorizationOptions = {
|
|
94
|
+
...(scopes ? { scopes } : {}),
|
|
95
|
+
...(additionalParams.snapshot === undefined
|
|
96
|
+
? {}
|
|
97
|
+
: { additionalParams: additionalParams.snapshot }),
|
|
98
|
+
usePkce: handlerUsesPkce,
|
|
99
|
+
};
|
|
100
|
+
const appUrl = resolveOAuthApplicationUrl(baseUrl, env);
|
|
101
|
+
const redirectUri = buildOAuthCallbackUrl(appUrl, callbackRouteId === undefined ? service.serviceId : callbackRouteId);
|
|
61
102
|
return async function handler(req) {
|
|
62
|
-
if (
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
const userId = await resolveUserId(req, getUserId);
|
|
66
|
-
if (!userId)
|
|
67
|
-
return createUnauthorizedResponse();
|
|
68
|
-
const service = new OAuthService(config, tokenStore, envReader);
|
|
69
|
-
if (!service.isConfigured()) {
|
|
70
|
-
return createNotConfiguredResponse(config);
|
|
71
|
-
}
|
|
72
|
-
const appUrl = resolveAppUrl(baseUrl, env);
|
|
73
|
-
const redirectUri = `${appUrl}/api/auth/${config.serviceId}/callback`;
|
|
103
|
+
if (req.method !== "GET")
|
|
104
|
+
return createMethodNotAllowedResponse("GET");
|
|
74
105
|
try {
|
|
75
|
-
|
|
106
|
+
if (await isRequestUnauthorized(req, isAuthenticated)) {
|
|
107
|
+
return createUnauthorizedResponse();
|
|
108
|
+
}
|
|
109
|
+
const userId = await resolveUserId(req, getUserId);
|
|
110
|
+
if (!userId)
|
|
111
|
+
return createUnauthorizedResponse();
|
|
112
|
+
if (!service.isConfigured()) {
|
|
113
|
+
return createNotConfiguredResponse(service);
|
|
114
|
+
}
|
|
115
|
+
const { url, state } = await service.createAuthorizationUrl({
|
|
116
|
+
...authorizationOptions,
|
|
117
|
+
redirectUri,
|
|
118
|
+
});
|
|
119
|
+
if (handlerUsesPkce && !state.codeVerifier) {
|
|
120
|
+
throw new Error("OAuth provider did not return the required PKCE verifier state");
|
|
121
|
+
}
|
|
76
122
|
await tokenStore.setState(state.state, {
|
|
77
123
|
userId,
|
|
78
|
-
serviceId:
|
|
79
|
-
codeVerifier: state.codeVerifier,
|
|
124
|
+
serviceId: service.serviceId,
|
|
80
125
|
redirectUri: state.redirectUri,
|
|
81
126
|
scopes: state.scopes,
|
|
82
127
|
createdAt: state.createdAt,
|
|
128
|
+
...(state.codeVerifier === undefined ? {} : { codeVerifier: state.codeVerifier }),
|
|
83
129
|
metadata: state.metadata,
|
|
84
130
|
});
|
|
85
|
-
return
|
|
131
|
+
return createOAuthRedirect(url);
|
|
86
132
|
}
|
|
87
133
|
catch (error) {
|
|
88
|
-
logger.error("Init error", { serviceId:
|
|
134
|
+
logger.error("Init error", { serviceId: service.serviceId }, error);
|
|
89
135
|
return createInitErrorResponse();
|
|
90
136
|
}
|
|
91
137
|
};
|
|
92
138
|
}
|
|
93
139
|
/** Handler for create oauth status. */
|
|
94
140
|
export function createOAuthStatusHandler(config, options) {
|
|
95
|
-
const { tokenStore =
|
|
141
|
+
const { tokenStore: configuredTokenStore, env = getEnvironmentConfig(), envReader = getEnv, isAuthenticated, getUserId, } = options ?? {};
|
|
142
|
+
const tokenStore = resolveOAuthHandlerTokenStore(configuredTokenStore, env);
|
|
143
|
+
const service = new OAuthService(config, tokenStore, envReader);
|
|
96
144
|
return async function handler(req) {
|
|
97
|
-
if (
|
|
98
|
-
return
|
|
145
|
+
if (req.method !== "GET")
|
|
146
|
+
return createMethodNotAllowedResponse("GET");
|
|
147
|
+
try {
|
|
148
|
+
if (await isRequestUnauthorized(req, isAuthenticated)) {
|
|
149
|
+
return createUnauthorizedResponse();
|
|
150
|
+
}
|
|
151
|
+
const userId = await resolveUserId(req, getUserId);
|
|
152
|
+
if (!userId)
|
|
153
|
+
return createUnauthorizedResponse();
|
|
154
|
+
const storedTokens = await tokenStore.getTokens(service.serviceId, userId);
|
|
155
|
+
const tokens = storedTokens === null ? null : normalizeStoredOAuthTokens(storedTokens);
|
|
156
|
+
if (storedTokens !== null && !tokens) {
|
|
157
|
+
throw new Error("TokenStore returned an invalid OAuth token row");
|
|
158
|
+
}
|
|
159
|
+
const isConnected = !!tokens?.accessToken;
|
|
160
|
+
const isExpired = tokens?.expiresAt !== undefined ? Date.now() >= tokens.expiresAt : false;
|
|
161
|
+
const hasRefreshToken = !!tokens?.refreshToken;
|
|
162
|
+
const refreshCapable = isRefreshCapableTokenStore(tokenStore);
|
|
163
|
+
const configured = service.isConfigured();
|
|
164
|
+
return createOAuthJsonResponse({
|
|
165
|
+
service: service.serviceId,
|
|
166
|
+
displayName: service.displayName,
|
|
167
|
+
connected: isConnected &&
|
|
168
|
+
(!isExpired || (hasRefreshToken && refreshCapable && configured)),
|
|
169
|
+
configured,
|
|
170
|
+
expiresAt: tokens?.expiresAt,
|
|
171
|
+
hasRefreshToken,
|
|
172
|
+
refreshCapable,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
catch (error) {
|
|
176
|
+
logger.error("OAuth status lookup failed", { serviceId: service.serviceId }, error);
|
|
177
|
+
return createOAuthJsonResponse({ error: "Failed to read OAuth status" }, { status: 500 });
|
|
99
178
|
}
|
|
100
|
-
const userId = await resolveUserId(req, getUserId);
|
|
101
|
-
if (!userId)
|
|
102
|
-
return createUnauthorizedResponse();
|
|
103
|
-
const tokens = await tokenStore.getTokens(config.serviceId, userId);
|
|
104
|
-
const isConnected = !!tokens?.accessToken;
|
|
105
|
-
const isExpired = tokens?.expiresAt ? Date.now() > tokens.expiresAt : false;
|
|
106
|
-
const hasRefreshToken = !!tokens?.refreshToken;
|
|
107
|
-
return Response.json({
|
|
108
|
-
service: config.serviceId,
|
|
109
|
-
displayName: config.displayName,
|
|
110
|
-
connected: isConnected && (!isExpired || hasRefreshToken),
|
|
111
|
-
configured: !!(envReader(config.clientIdEnvVar) && envReader(config.clientSecretEnvVar)),
|
|
112
|
-
expiresAt: tokens?.expiresAt,
|
|
113
|
-
hasRefreshToken,
|
|
114
|
-
});
|
|
115
179
|
};
|
|
116
180
|
}
|
|
117
181
|
/** Handler for create oauth disconnect. */
|
|
118
182
|
export function createOAuthDisconnectHandler(config, options) {
|
|
119
|
-
const { tokenStore =
|
|
183
|
+
const { tokenStore: configuredTokenStore, env = getEnvironmentConfig(), baseUrl, isAuthenticated, getUserId, } = options ??
|
|
120
184
|
{};
|
|
185
|
+
const tokenStore = resolveOAuthHandlerTokenStore(configuredTokenStore, env);
|
|
186
|
+
const service = new OAuthService(config, tokenStore);
|
|
187
|
+
const appUrl = resolveOAuthApplicationUrl(baseUrl, env);
|
|
121
188
|
return async function handler(req) {
|
|
122
|
-
if (
|
|
123
|
-
return
|
|
189
|
+
if (req.method !== "POST")
|
|
190
|
+
return createMethodNotAllowedResponse("POST");
|
|
191
|
+
const origin = req.headers.get("Origin");
|
|
192
|
+
try {
|
|
193
|
+
if (!origin || new URL(origin).origin !== appUrl.origin)
|
|
194
|
+
return createForbiddenResponse();
|
|
195
|
+
}
|
|
196
|
+
catch {
|
|
197
|
+
return createForbiddenResponse();
|
|
198
|
+
}
|
|
199
|
+
try {
|
|
200
|
+
if (await isRequestUnauthorized(req, isAuthenticated)) {
|
|
201
|
+
return createUnauthorizedResponse();
|
|
202
|
+
}
|
|
203
|
+
const userId = await resolveUserId(req, getUserId);
|
|
204
|
+
if (!userId)
|
|
205
|
+
return createUnauthorizedResponse();
|
|
206
|
+
await tokenStore.clearTokens(service.serviceId, userId);
|
|
207
|
+
return createOAuthJsonResponse({
|
|
208
|
+
success: true,
|
|
209
|
+
message: `Removed locally stored ${service.displayName} OAuth tokens`,
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
catch (error) {
|
|
213
|
+
logger.error("OAuth disconnect failed", { serviceId: service.serviceId }, error);
|
|
214
|
+
return createOAuthJsonResponse({ error: "Failed to disconnect OAuth provider" }, { status: 500 });
|
|
124
215
|
}
|
|
125
|
-
const userId = await resolveUserId(req, getUserId);
|
|
126
|
-
if (!userId)
|
|
127
|
-
return createUnauthorizedResponse();
|
|
128
|
-
await tokenStore.clearTokens(config.serviceId, userId);
|
|
129
|
-
return Response.json({
|
|
130
|
-
success: true,
|
|
131
|
-
message: `Disconnected from ${config.displayName}`,
|
|
132
|
-
});
|
|
133
216
|
};
|
|
134
217
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { EnvironmentConfig } from "../../config/environment-config.js";
|
|
2
|
+
import type { TokenStore } from "../types.js";
|
|
3
|
+
/** Resolve the handler store without silently using process-local state in deployments. */
|
|
4
|
+
export declare function resolveOAuthHandlerTokenStore(tokenStore: TokenStore | undefined, env: EnvironmentConfig): TokenStore;
|
|
5
|
+
//# sourceMappingURL=token-store-policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-store-policy.d.ts","sourceRoot":"","sources":["../../../../src/src/oauth/handlers/token-store-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,2FAA2F;AAC3F,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,GAAG,EAAE,iBAAiB,GACrB,UAAU,CAMZ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { memoryTokenStore } from "../token-store/memory.js";
|
|
2
|
+
import { isExplicitLocalOAuthEnvironment } from "../url-utils.js";
|
|
3
|
+
/** Resolve the handler store without silently using process-local state in deployments. */
|
|
4
|
+
export function resolveOAuthHandlerTokenStore(tokenStore, env) {
|
|
5
|
+
if (tokenStore)
|
|
6
|
+
return tokenStore;
|
|
7
|
+
if (isExplicitLocalOAuthEnvironment(env))
|
|
8
|
+
return memoryTokenStore;
|
|
9
|
+
throw new Error("OAuth handlers require an explicit shared TokenStore outside development/test");
|
|
10
|
+
}
|
package/esm/src/oauth/index.d.ts
CHANGED
|
@@ -9,21 +9,26 @@
|
|
|
9
9
|
* ```typescript
|
|
10
10
|
* // Create OAuth routes with pre-configured providers
|
|
11
11
|
* import { createOAuthInitHandler, createOAuthCallbackHandler, gmailConfig } from "veryfront/oauth";
|
|
12
|
+
* import { tokenStore } from "./persistent-token-store.ts";
|
|
12
13
|
*
|
|
13
14
|
* // app/api/auth/gmail/route.ts
|
|
14
|
-
* export const GET = createOAuthInitHandler(gmailConfig
|
|
15
|
+
* export const GET = createOAuthInitHandler(gmailConfig, {
|
|
16
|
+
* tokenStore,
|
|
17
|
+
* getUserId: (request) => getSessionUserId(request),
|
|
18
|
+
* });
|
|
15
19
|
*
|
|
16
20
|
* // app/api/auth/gmail/callback/route.ts
|
|
17
|
-
* export const GET = createOAuthCallbackHandler(gmailConfig);
|
|
21
|
+
* export const GET = createOAuthCallbackHandler(gmailConfig, { tokenStore });
|
|
18
22
|
* ```
|
|
19
23
|
*
|
|
20
24
|
* @module oauth
|
|
21
25
|
*/
|
|
22
26
|
import "../../_dnt.polyfills.js";
|
|
23
|
-
export type { AuthorizationUrlOptions, OAuthProviderConfig, OAuthServiceConfig, OAuthState, OAuthTokens, TokenExchangeOptions, TokenExchangeResult, TokenStore, } from "./types.js";
|
|
27
|
+
export type { AuthorizationUrlOptions, OAuthProviderConfig, OAuthServiceConfig, OAuthState, OAuthTokens, OAuthTokenSnapshot, RefreshCapableTokenStore, StoredOAuthState, TokenExchangeOptions, TokenExchangeResult, TokenStore, } from "./types.js";
|
|
24
28
|
export { OAuthProvider, OAuthService } from "./providers/base.js";
|
|
25
|
-
export {
|
|
29
|
+
export { AuthorizationUrlOptionsSchema, getAuthorizationUrlOptionsSchema, getOAuthProviderConfigSchema, getOAuthServiceConfigSchema, getOAuthStateSchema, getOAuthTokensSchema, getTokenExchangeOptionsSchema, getTokenExchangeResultSchema, OAuthProviderConfigSchema, OAuthServiceConfigSchema, OAuthStateSchema, OAuthTokensSchema, TokenExchangeOptionsSchema, TokenExchangeResultSchema, } from "./schemas/index.js";
|
|
30
|
+
export { airtableConfig, asanaConfig, bitbucketConfig, boxConfig, calendarConfig, clickupConfig, confluenceConfig, docsGoogleConfig, driveConfig, figmaConfig, freshdeskConfig, githubConfig, gitlabConfig, gmailConfig, hubspotConfig, intercomConfig, jiraConfig, linearConfig, mailchimpConfig, mondayConfig, notionConfig, oneDriveConfig, outlookConfig, pipedriveConfig, quickbooksConfig, salesforceConfig, sharePointConfig, sheetsConfig, shopifyConfig, slackConfig, teamsConfig, trelloConfig, twitterConfig, webexConfig, xeroConfig, zoomConfig, } from "./providers/index.js";
|
|
26
31
|
export { MemoryTokenStore } from "./token-store/index.js";
|
|
27
32
|
export type { MemoryTokenStoreOptions } from "./token-store/index.js";
|
|
28
|
-
export { createOAuthCallbackHandler, createOAuthDisconnectHandler, createOAuthInitHandler, createOAuthStatusHandler, type OAuthCallbackHandlerOptions, type OAuthInitHandlerOptions, } from "./handlers/index.js";
|
|
33
|
+
export { createOAuthCallbackDispatcher, createOAuthCallbackHandler, createOAuthDisconnectHandler, createOAuthInitHandler, createOAuthStatusHandler, type GetUserIdFn, type OAuthCallbackDispatcherOptions, type OAuthCallbackHandlerOptions, type OAuthDisconnectHandlerOptions, type OAuthInitHandlerOptions, type OAuthStatusHandlerOptions, } from "./handlers/index.js";
|
|
29
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/oauth/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/oauth/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,YAAY,EACV,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,GACX,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,EAChC,4BAA4B,EAC5B,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,6BAA6B,EAC7B,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,UAAU,EACV,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,UAAU,GACX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEtE,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,WAAW,EAChB,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,qBAAqB,CAAC"}
|
package/esm/src/oauth/index.js
CHANGED
|
@@ -9,18 +9,23 @@
|
|
|
9
9
|
* ```typescript
|
|
10
10
|
* // Create OAuth routes with pre-configured providers
|
|
11
11
|
* import { createOAuthInitHandler, createOAuthCallbackHandler, gmailConfig } from "veryfront/oauth";
|
|
12
|
+
* import { tokenStore } from "./persistent-token-store.ts";
|
|
12
13
|
*
|
|
13
14
|
* // app/api/auth/gmail/route.ts
|
|
14
|
-
* export const GET = createOAuthInitHandler(gmailConfig
|
|
15
|
+
* export const GET = createOAuthInitHandler(gmailConfig, {
|
|
16
|
+
* tokenStore,
|
|
17
|
+
* getUserId: (request) => getSessionUserId(request),
|
|
18
|
+
* });
|
|
15
19
|
*
|
|
16
20
|
* // app/api/auth/gmail/callback/route.ts
|
|
17
|
-
* export const GET = createOAuthCallbackHandler(gmailConfig);
|
|
21
|
+
* export const GET = createOAuthCallbackHandler(gmailConfig, { tokenStore });
|
|
18
22
|
* ```
|
|
19
23
|
*
|
|
20
24
|
* @module oauth
|
|
21
25
|
*/
|
|
22
26
|
import "../../_dnt.polyfills.js";
|
|
23
27
|
export { OAuthProvider, OAuthService } from "./providers/base.js";
|
|
24
|
-
export {
|
|
28
|
+
export { AuthorizationUrlOptionsSchema, getAuthorizationUrlOptionsSchema, getOAuthProviderConfigSchema, getOAuthServiceConfigSchema, getOAuthStateSchema, getOAuthTokensSchema, getTokenExchangeOptionsSchema, getTokenExchangeResultSchema, OAuthProviderConfigSchema, OAuthServiceConfigSchema, OAuthStateSchema, OAuthTokensSchema, TokenExchangeOptionsSchema, TokenExchangeResultSchema, } from "./schemas/index.js";
|
|
29
|
+
export { airtableConfig, asanaConfig, bitbucketConfig, boxConfig, calendarConfig, clickupConfig, confluenceConfig, docsGoogleConfig, driveConfig, figmaConfig, freshdeskConfig, githubConfig, gitlabConfig, gmailConfig, hubspotConfig, intercomConfig, jiraConfig, linearConfig, mailchimpConfig, mondayConfig, notionConfig, oneDriveConfig, outlookConfig, pipedriveConfig, quickbooksConfig, salesforceConfig, sharePointConfig, sheetsConfig, shopifyConfig, slackConfig, teamsConfig, trelloConfig, twitterConfig, webexConfig, xeroConfig, zoomConfig, } from "./providers/index.js";
|
|
25
30
|
export { MemoryTokenStore } from "./token-store/index.js";
|
|
26
|
-
export { createOAuthCallbackHandler, createOAuthDisconnectHandler, createOAuthInitHandler, createOAuthStatusHandler, } from "./handlers/index.js";
|
|
31
|
+
export { createOAuthCallbackDispatcher, createOAuthCallbackHandler, createOAuthDisconnectHandler, createOAuthInitHandler, createOAuthStatusHandler, } from "./handlers/index.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** Maximum OAuth authorization-code length accepted at the HTTP boundary. */
|
|
2
|
+
export declare const MAX_OAUTH_AUTHORIZATION_CODE_LENGTH = 4096;
|
|
3
|
+
/**
|
|
4
|
+
* Cross-runtime upper bound for outbound OAuth request timeouts.
|
|
5
|
+
*
|
|
6
|
+
* Ten minutes is intentionally far above the normal 30-second default while
|
|
7
|
+
* remaining operationally bounded and portable across Deno and Node.
|
|
8
|
+
*/
|
|
9
|
+
export declare const MAX_OAUTH_REQUEST_TIMEOUT_MS: number;
|
|
10
|
+
/** Maximum token-endpoint response body accepted by a provider config. */
|
|
11
|
+
export declare const MAX_OAUTH_TOKEN_RESPONSE_BYTES = 1048576;
|
|
12
|
+
/** Maximum provider API response body accepted by a service config. */
|
|
13
|
+
export declare const MAX_OAUTH_API_RESPONSE_BYTES: number;
|
|
14
|
+
/** Maximum opaque token-store revision length accepted across the boundary. */
|
|
15
|
+
export declare const MAX_OAUTH_TOKEN_REVISION_LENGTH = 256;
|
|
16
|
+
/** Maximum serialized size of optional data-only OAuth transaction metadata. */
|
|
17
|
+
export declare const MAX_OAUTH_STATE_METADATA_BYTES: number;
|
|
18
|
+
/** Maximum logical services admitted by one shared callback dispatcher. */
|
|
19
|
+
export declare const MAX_OAUTH_CALLBACK_SERVICE_COUNT = 100;
|
|
20
|
+
/** Maximum distinct refresh leaders retained for one token-store instance. */
|
|
21
|
+
export declare const MAX_OAUTH_REFRESH_INFLIGHT_COUNT = 10000;
|
|
22
|
+
/** Bounds each configured OAuth scope token and the complete scope set. */
|
|
23
|
+
export declare const MAX_OAUTH_SCOPE_TOKEN_LENGTH = 256;
|
|
24
|
+
export declare const MAX_OAUTH_SCOPE_COUNT = 100;
|
|
25
|
+
export declare const MAX_OAUTH_SCOPE_WIRE_LENGTH = 4096;
|
|
26
|
+
/** Bounds public identifiers used in persistent-store keys. */
|
|
27
|
+
export declare const MAX_OAUTH_PROVIDER_ID_LENGTH = 128;
|
|
28
|
+
export declare const MAX_OAUTH_SERVICE_ID_LENGTH = 128;
|
|
29
|
+
export declare const MAX_OAUTH_USER_ID_LENGTH = 1024;
|
|
30
|
+
export declare const MAX_OAUTH_PROJECT_ID_LENGTH = 256;
|
|
31
|
+
/** Bounds configuration-controlled names and wire values. */
|
|
32
|
+
export declare const MAX_OAUTH_DISPLAY_NAME_LENGTH = 256;
|
|
33
|
+
export declare const MAX_OAUTH_ENV_VAR_NAME_LENGTH = 128;
|
|
34
|
+
export declare const MAX_OAUTH_CREDENTIAL_LENGTH = 16384;
|
|
35
|
+
export declare const MAX_OAUTH_CONFIG_PARAMETER_COUNT = 100;
|
|
36
|
+
export declare const MAX_OAUTH_CONFIG_PARAMETER_NAME_LENGTH = 128;
|
|
37
|
+
export declare const MAX_OAUTH_CONFIG_PARAMETER_VALUE_LENGTH = 4096;
|
|
38
|
+
export declare const MAX_OAUTH_STATIC_HEADER_COUNT = 64;
|
|
39
|
+
export declare const MAX_OAUTH_STATIC_HEADER_NAME_LENGTH = 128;
|
|
40
|
+
export declare const MAX_OAUTH_STATIC_HEADER_VALUE_LENGTH = 8192;
|
|
41
|
+
export declare const MAX_OAUTH_TOKEN_MAPPING_FIELD_LENGTH = 128;
|
|
42
|
+
export declare const MAX_OAUTH_URL_LENGTH = 8192;
|
|
43
|
+
export declare const MAX_OAUTH_TOKEN_VALUE_LENGTH = 65536;
|
|
44
|
+
export declare const MAX_OAUTH_TOKEN_TYPE_LENGTH = 256;
|
|
45
|
+
/** Bounds machine-readable exchange errors and optional operator-safe detail. */
|
|
46
|
+
export declare const MAX_OAUTH_ERROR_LENGTH = 128;
|
|
47
|
+
export declare const MAX_OAUTH_ERROR_DESCRIPTION_LENGTH = 4096;
|
|
48
|
+
//# sourceMappingURL=limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../../src/src/oauth/limits.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,mCAAmC,OAAQ,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,QAAc,CAAC;AAExD,0EAA0E;AAC1E,eAAO,MAAM,8BAA8B,UAAY,CAAC;AAExD,uEAAuE;AACvE,eAAO,MAAM,4BAA4B,QAAiB,CAAC;AAE3D,+EAA+E;AAC/E,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD,gFAAgF;AAChF,eAAO,MAAM,8BAA8B,QAAa,CAAC;AAEzD,2EAA2E;AAC3E,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,8EAA8E;AAC9E,eAAO,MAAM,gCAAgC,QAAS,CAAC;AAEvD,2EAA2E;AAC3E,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AAEjD,+DAA+D;AAC/D,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAC/C,eAAO,MAAM,wBAAwB,OAAQ,CAAC;AAC9C,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,6DAA6D;AAC7D,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAClD,eAAO,MAAM,gCAAgC,MAAM,CAAC;AACpD,eAAO,MAAM,sCAAsC,MAAM,CAAC;AAC1D,eAAO,MAAM,uCAAuC,OAAQ,CAAC;AAC7D,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAChD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,oCAAoC,OAAQ,CAAC;AAC1D,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,oBAAoB,OAAQ,CAAC;AAC1C,eAAO,MAAM,4BAA4B,QAAS,CAAC;AACnD,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,kCAAkC,OAAQ,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Maximum OAuth authorization-code length accepted at the HTTP boundary. */
|
|
2
|
+
export const MAX_OAUTH_AUTHORIZATION_CODE_LENGTH = 4_096;
|
|
3
|
+
/**
|
|
4
|
+
* Cross-runtime upper bound for outbound OAuth request timeouts.
|
|
5
|
+
*
|
|
6
|
+
* Ten minutes is intentionally far above the normal 30-second default while
|
|
7
|
+
* remaining operationally bounded and portable across Deno and Node.
|
|
8
|
+
*/
|
|
9
|
+
export const MAX_OAUTH_REQUEST_TIMEOUT_MS = 10 * 60_000;
|
|
10
|
+
/** Maximum token-endpoint response body accepted by a provider config. */
|
|
11
|
+
export const MAX_OAUTH_TOKEN_RESPONSE_BYTES = 1_048_576;
|
|
12
|
+
/** Maximum provider API response body accepted by a service config. */
|
|
13
|
+
export const MAX_OAUTH_API_RESPONSE_BYTES = 10 * 1_048_576;
|
|
14
|
+
/** Maximum opaque token-store revision length accepted across the boundary. */
|
|
15
|
+
export const MAX_OAUTH_TOKEN_REVISION_LENGTH = 256;
|
|
16
|
+
/** Maximum serialized size of optional data-only OAuth transaction metadata. */
|
|
17
|
+
export const MAX_OAUTH_STATE_METADATA_BYTES = 16 * 1_024;
|
|
18
|
+
/** Maximum logical services admitted by one shared callback dispatcher. */
|
|
19
|
+
export const MAX_OAUTH_CALLBACK_SERVICE_COUNT = 100;
|
|
20
|
+
/** Maximum distinct refresh leaders retained for one token-store instance. */
|
|
21
|
+
export const MAX_OAUTH_REFRESH_INFLIGHT_COUNT = 10_000;
|
|
22
|
+
/** Bounds each configured OAuth scope token and the complete scope set. */
|
|
23
|
+
export const MAX_OAUTH_SCOPE_TOKEN_LENGTH = 256;
|
|
24
|
+
export const MAX_OAUTH_SCOPE_COUNT = 100;
|
|
25
|
+
export const MAX_OAUTH_SCOPE_WIRE_LENGTH = 4_096;
|
|
26
|
+
/** Bounds public identifiers used in persistent-store keys. */
|
|
27
|
+
export const MAX_OAUTH_PROVIDER_ID_LENGTH = 128;
|
|
28
|
+
export const MAX_OAUTH_SERVICE_ID_LENGTH = 128;
|
|
29
|
+
export const MAX_OAUTH_USER_ID_LENGTH = 1_024;
|
|
30
|
+
export const MAX_OAUTH_PROJECT_ID_LENGTH = 256;
|
|
31
|
+
/** Bounds configuration-controlled names and wire values. */
|
|
32
|
+
export const MAX_OAUTH_DISPLAY_NAME_LENGTH = 256;
|
|
33
|
+
export const MAX_OAUTH_ENV_VAR_NAME_LENGTH = 128;
|
|
34
|
+
export const MAX_OAUTH_CREDENTIAL_LENGTH = 16_384;
|
|
35
|
+
export const MAX_OAUTH_CONFIG_PARAMETER_COUNT = 100;
|
|
36
|
+
export const MAX_OAUTH_CONFIG_PARAMETER_NAME_LENGTH = 128;
|
|
37
|
+
export const MAX_OAUTH_CONFIG_PARAMETER_VALUE_LENGTH = 4_096;
|
|
38
|
+
export const MAX_OAUTH_STATIC_HEADER_COUNT = 64;
|
|
39
|
+
export const MAX_OAUTH_STATIC_HEADER_NAME_LENGTH = 128;
|
|
40
|
+
export const MAX_OAUTH_STATIC_HEADER_VALUE_LENGTH = 8_192;
|
|
41
|
+
export const MAX_OAUTH_TOKEN_MAPPING_FIELD_LENGTH = 128;
|
|
42
|
+
export const MAX_OAUTH_URL_LENGTH = 8_192;
|
|
43
|
+
export const MAX_OAUTH_TOKEN_VALUE_LENGTH = 65_536;
|
|
44
|
+
export const MAX_OAUTH_TOKEN_TYPE_LENGTH = 256;
|
|
45
|
+
/** Bounds machine-readable exchange errors and optional operator-safe detail. */
|
|
46
|
+
export const MAX_OAUTH_ERROR_LENGTH = 128;
|
|
47
|
+
export const MAX_OAUTH_ERROR_DESCRIPTION_LENGTH = 4_096;
|
|
@@ -19,6 +19,15 @@ export declare const atlassianServices: {
|
|
|
19
19
|
additionalAuthParams?: Record<string, string> | undefined;
|
|
20
20
|
additionalTokenParams?: Record<string, string> | undefined;
|
|
21
21
|
useBasicAuth?: boolean | undefined;
|
|
22
|
+
pkceMode?: string | undefined;
|
|
23
|
+
runtimeSupport?: string | undefined;
|
|
24
|
+
tokenRequestFormat?: string | undefined;
|
|
25
|
+
tokenRequestHeaders?: Record<string, string> | undefined;
|
|
26
|
+
apiHeaders?: Record<string, string> | undefined;
|
|
27
|
+
scopeSeparator?: string | undefined;
|
|
28
|
+
requestTimeoutMs?: number | undefined;
|
|
29
|
+
maxTokenResponseBytes?: number | undefined;
|
|
30
|
+
maxApiResponseBytes?: number | undefined;
|
|
22
31
|
tokenResponseMapping?: Partial<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
23
32
|
accessToken: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
24
33
|
refreshToken: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
@@ -44,6 +53,15 @@ export declare const atlassianServices: {
|
|
|
44
53
|
additionalAuthParams?: Record<string, string> | undefined;
|
|
45
54
|
additionalTokenParams?: Record<string, string> | undefined;
|
|
46
55
|
useBasicAuth?: boolean | undefined;
|
|
56
|
+
pkceMode?: string | undefined;
|
|
57
|
+
runtimeSupport?: string | undefined;
|
|
58
|
+
tokenRequestFormat?: string | undefined;
|
|
59
|
+
tokenRequestHeaders?: Record<string, string> | undefined;
|
|
60
|
+
apiHeaders?: Record<string, string> | undefined;
|
|
61
|
+
scopeSeparator?: string | undefined;
|
|
62
|
+
requestTimeoutMs?: number | undefined;
|
|
63
|
+
maxTokenResponseBytes?: number | undefined;
|
|
64
|
+
maxApiResponseBytes?: number | undefined;
|
|
47
65
|
tokenResponseMapping?: Partial<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
48
66
|
accessToken: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
49
67
|
refreshToken: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
@@ -69,6 +87,15 @@ export declare const atlassianServices: {
|
|
|
69
87
|
additionalAuthParams?: Record<string, string> | undefined;
|
|
70
88
|
additionalTokenParams?: Record<string, string> | undefined;
|
|
71
89
|
useBasicAuth?: boolean | undefined;
|
|
90
|
+
pkceMode?: string | undefined;
|
|
91
|
+
runtimeSupport?: string | undefined;
|
|
92
|
+
tokenRequestFormat?: string | undefined;
|
|
93
|
+
tokenRequestHeaders?: Record<string, string> | undefined;
|
|
94
|
+
apiHeaders?: Record<string, string> | undefined;
|
|
95
|
+
scopeSeparator?: string | undefined;
|
|
96
|
+
requestTimeoutMs?: number | undefined;
|
|
97
|
+
maxTokenResponseBytes?: number | undefined;
|
|
98
|
+
maxApiResponseBytes?: number | undefined;
|
|
72
99
|
tokenResponseMapping?: Partial<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
73
100
|
accessToken: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
74
101
|
refreshToken: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlassian.d.ts","sourceRoot":"","sources":["../../../../src/src/oauth/providers/atlassian.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"atlassian.d.ts","sourceRoot":"","sources":["../../../../src/src/oauth/providers/atlassian.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAkBtD,kCAAkC;AAClC,eAAO,MAAM,UAAU,EAAE,kBAYxB,CAAC;AAEF,wCAAwC;AACxC,eAAO,MAAM,gBAAgB,EAAE,kBAgB9B,CAAC;AAEF,uCAAuC;AACvC,eAAO,MAAM,eAAe,EAAE,kBAkB7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpB,CAAC"}
|
|
@@ -10,10 +10,13 @@ const atlassianBase = {
|
|
|
10
10
|
audience: "api.atlassian.com",
|
|
11
11
|
prompt: "consent",
|
|
12
12
|
},
|
|
13
|
+
tokenRequestFormat: "json",
|
|
14
|
+
pkceMode: "unsupported",
|
|
13
15
|
};
|
|
14
16
|
/** Configuration used by jira. */
|
|
15
17
|
export const jiraConfig = {
|
|
16
18
|
...atlassianBase,
|
|
19
|
+
additionalAuthParams: { ...atlassianBase.additionalAuthParams },
|
|
17
20
|
serviceId: "jira",
|
|
18
21
|
displayName: "Jira",
|
|
19
22
|
apiBaseUrl: "https://api.atlassian.com/ex/jira",
|
|
@@ -27,6 +30,7 @@ export const jiraConfig = {
|
|
|
27
30
|
/** Configuration used by confluence. */
|
|
28
31
|
export const confluenceConfig = {
|
|
29
32
|
...atlassianBase,
|
|
33
|
+
additionalAuthParams: { ...atlassianBase.additionalAuthParams },
|
|
30
34
|
serviceId: "confluence",
|
|
31
35
|
displayName: "Confluence",
|
|
32
36
|
apiBaseUrl: "https://api.atlassian.com/ex/confluence",
|
|
@@ -52,11 +56,12 @@ export const bitbucketConfig = {
|
|
|
52
56
|
clientSecretEnvVar: "BITBUCKET_CLIENT_SECRET",
|
|
53
57
|
apiBaseUrl: "https://api.bitbucket.org/2.0",
|
|
54
58
|
additionalAuthParams: {},
|
|
59
|
+
tokenRequestFormat: "form",
|
|
60
|
+
useBasicAuth: true,
|
|
55
61
|
defaultScopes: [
|
|
56
62
|
"repository",
|
|
57
|
-
"repository:write",
|
|
58
|
-
"pullrequest",
|
|
59
63
|
"pullrequest:write",
|
|
64
|
+
"issue",
|
|
60
65
|
"account",
|
|
61
66
|
],
|
|
62
67
|
};
|
|
@@ -2,18 +2,28 @@ import type { AuthorizationUrlOptions, OAuthProviderConfig, OAuthServiceConfig,
|
|
|
2
2
|
export type EnvReader = (key: string) => string | undefined;
|
|
3
3
|
/** Implement oauth provider. */
|
|
4
4
|
export declare class OAuthProvider {
|
|
5
|
-
protected config: OAuthProviderConfig;
|
|
6
|
-
protected envReader: EnvReader;
|
|
5
|
+
protected readonly config: OAuthProviderConfig;
|
|
6
|
+
protected readonly envReader: EnvReader;
|
|
7
7
|
constructor(config: OAuthProviderConfig, envReader?: EnvReader);
|
|
8
8
|
getClientId(): string | null;
|
|
9
9
|
getClientSecret(): string | null;
|
|
10
10
|
isConfigured(): boolean;
|
|
11
|
+
/** Declared PKCE behavior for this provider (`supported` by default). */
|
|
12
|
+
get pkceMode(): "required" | "supported" | "unsupported";
|
|
13
|
+
/** Separator used to serialize the provider's configured scope set. */
|
|
14
|
+
get scopeSeparator(): " " | ",";
|
|
11
15
|
createAuthorizationUrl(options?: AuthorizationUrlOptions & {
|
|
12
16
|
defaultScopes?: string[];
|
|
13
17
|
}): Promise<{
|
|
14
18
|
url: string;
|
|
15
19
|
state: OAuthState;
|
|
16
20
|
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Headers for a client-authenticated request to the provider's auth server.
|
|
23
|
+
* `useBasicAuth` providers carry the client credentials here; every other
|
|
24
|
+
* provider carries them in the body via {@link buildClientCredentialsParams}.
|
|
25
|
+
*/
|
|
26
|
+
private buildClientAuthHeaders;
|
|
17
27
|
private buildTokenHeaders;
|
|
18
28
|
/**
|
|
19
29
|
* Parse a successful token-endpoint body into {@link OAuthTokens}.
|
|
@@ -28,16 +38,19 @@ export declare class OAuthProvider {
|
|
|
28
38
|
private postTokenRequest;
|
|
29
39
|
private buildClientCredentialsParams;
|
|
30
40
|
private exchangeToken;
|
|
31
|
-
exchangeCode(options: TokenExchangeOptions): Promise<TokenExchangeResult>;
|
|
32
|
-
refreshTokens(refreshToken: string): Promise<TokenExchangeResult>;
|
|
33
|
-
revokeToken(token: string): Promise<boolean>;
|
|
41
|
+
exchangeCode(options: TokenExchangeOptions, signal?: AbortSignal): Promise<TokenExchangeResult>;
|
|
42
|
+
refreshTokens(refreshToken: string, signal?: AbortSignal): Promise<TokenExchangeResult>;
|
|
43
|
+
revokeToken(token: string, callerSignal?: AbortSignal): Promise<boolean>;
|
|
34
44
|
}
|
|
35
45
|
/** Implement oauth service. */
|
|
36
46
|
export declare class OAuthService extends OAuthProvider {
|
|
37
|
-
protected serviceConfig: OAuthServiceConfig;
|
|
47
|
+
protected readonly serviceConfig: OAuthServiceConfig;
|
|
38
48
|
protected tokenStore?: TokenStore;
|
|
39
49
|
constructor(config: OAuthServiceConfig, tokenStore?: TokenStore, envReader?: EnvReader);
|
|
40
50
|
get serviceId(): string;
|
|
51
|
+
get displayName(): string;
|
|
52
|
+
/** Detached credential variable names for operator-only diagnostics. */
|
|
53
|
+
get credentialEnvironmentVariables(): readonly [string, string];
|
|
41
54
|
get apiBaseUrl(): string;
|
|
42
55
|
createAuthorizationUrl(options?: AuthorizationUrlOptions): Promise<{
|
|
43
56
|
url: string;
|
|
@@ -50,8 +63,10 @@ export declare class OAuthService extends OAuthProvider {
|
|
|
50
63
|
* prevent one user's OAuth completion from overwriting another user's
|
|
51
64
|
* tokens. See VULN-AUTH-2.
|
|
52
65
|
*/
|
|
53
|
-
getAccessToken(userId: string): Promise<string | null>;
|
|
66
|
+
getAccessToken(userId: string, signal?: AbortSignal): Promise<string | null>;
|
|
54
67
|
private refreshAndStoreAccessToken;
|
|
68
|
+
private readTokenSnapshot;
|
|
69
|
+
private readCurrentUnexpiredAccessToken;
|
|
55
70
|
/**
|
|
56
71
|
* Resolve `endpoint` against `apiBaseUrl`, validating that absolute URLs
|
|
57
72
|
* share the configured origin.
|