veryfront 0.1.558 → 0.1.560
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/cli/commands/doctor/version-checks.d.ts.map +1 -1
- package/esm/cli/commands/doctor/version-checks.js +3 -1
- package/esm/deno.d.ts +1 -0
- package/esm/deno.js +5 -4
- package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts +3 -0
- package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-chunk-encoder.js +1 -0
- package/esm/src/agent/ag-ui/browser-encoder.d.ts +8 -0
- package/esm/src/agent/ag-ui/browser-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-encoder.js +4 -0
- package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts +3 -0
- package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-finalize-tracker.js +1 -0
- package/esm/src/agent/ag-ui/browser-response-stream.d.ts +5 -0
- package/esm/src/agent/ag-ui/browser-response-stream.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-response-stream.js +1 -0
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts +9 -0
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.js +6 -0
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts +3 -0
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.js +1 -0
- package/esm/src/agent/ag-ui/detached-start.d.ts +13 -2
- package/esm/src/agent/ag-ui/detached-start.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/detached-start.js +9 -2
- package/esm/src/agent/ag-ui/forwarded-context.d.ts +8 -0
- package/esm/src/agent/ag-ui/forwarded-context.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/forwarded-context.js +7 -0
- package/esm/src/agent/ag-ui/handler.d.ts +4 -0
- package/esm/src/agent/ag-ui/handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/handler.js +1 -0
- package/esm/src/agent/ag-ui/host-support.d.ts +13 -1
- package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/host-support.js +11 -3
- package/esm/src/agent/ag-ui/run-control.d.ts +8 -1
- package/esm/src/agent/ag-ui/run-control.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/run-control.js +5 -1
- package/esm/src/agent/ag-ui/runtime-browser-response.d.ts +2 -0
- package/esm/src/agent/ag-ui/runtime-browser-response.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-browser-response.js +1 -0
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts +4 -0
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.js +1 -0
- package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts +3 -0
- package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-event-encoder.js +1 -0
- package/esm/src/agent/ag-ui/runtime-handler.d.ts +7 -0
- package/esm/src/agent/ag-ui/runtime-handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-handler.js +1 -0
- package/esm/src/agent/ag-ui/runtime-support.d.ts +1 -0
- package/esm/src/agent/ag-ui/runtime-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-support.js +1 -0
- package/esm/src/agent/ag-ui/tool-shared.d.ts +1 -0
- package/esm/src/agent/ag-ui/tool-shared.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/tracked-browser-response.d.ts +2 -0
- package/esm/src/agent/ag-ui/tracked-browser-response.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/tracked-browser-response.js +1 -0
- package/esm/src/agent/artifacts/default-research-artifact-policy.d.ts +5 -0
- package/esm/src/agent/artifacts/default-research-artifact-policy.d.ts.map +1 -1
- package/esm/src/agent/artifacts/default-research-artifact-policy.js +4 -0
- package/esm/src/agent/artifacts/default-research-artifact-support.d.ts +10 -0
- package/esm/src/agent/artifacts/default-research-artifact-support.d.ts.map +1 -1
- package/esm/src/agent/artifacts/default-research-artifact-support.js +7 -0
- package/esm/src/agent/artifacts/slash-command-artifact-policy.d.ts +4 -0
- package/esm/src/agent/artifacts/slash-command-artifact-policy.d.ts.map +1 -1
- package/esm/src/agent/artifacts/slash-command-artifact-policy.js +2 -0
- package/esm/src/agent/child-run/execution-cleanup.d.ts +4 -0
- package/esm/src/agent/child-run/execution-cleanup.d.ts.map +1 -1
- package/esm/src/agent/child-run/execution-cleanup.js +2 -0
- package/esm/src/agent/child-run/execution-snapshot.d.ts +13 -0
- package/esm/src/agent/child-run/execution-snapshot.d.ts.map +1 -1
- package/esm/src/agent/child-run/execution-snapshot.js +7 -0
- package/esm/src/agent/child-run/execution-support.d.ts +4 -0
- package/esm/src/agent/child-run/execution-support.d.ts.map +1 -1
- package/esm/src/agent/child-run/execution-support.js +4 -0
- package/esm/src/agent/child-run/final-step-support.d.ts +3 -0
- package/esm/src/agent/child-run/final-step-support.d.ts.map +1 -1
- package/esm/src/agent/child-run/final-step-support.js +3 -0
- package/esm/src/agent/child-run/invoke-agent-child-runs.d.ts +21 -3
- package/esm/src/agent/child-run/invoke-agent-child-runs.d.ts.map +1 -1
- package/esm/src/agent/child-run/invoke-agent-child-runs.js +16 -3
- package/esm/src/agent/child-run/result-summary.d.ts +5 -0
- package/esm/src/agent/child-run/result-summary.d.ts.map +1 -1
- package/esm/src/agent/child-run/result-summary.js +5 -0
- package/esm/src/agent/composition/composition.d.ts +9 -0
- package/esm/src/agent/composition/composition.d.ts.map +1 -1
- package/esm/src/agent/composition/composition.js +6 -0
- package/esm/src/agent/conversation/bootstrap.d.ts +21 -2
- package/esm/src/agent/conversation/bootstrap.d.ts.map +1 -1
- package/esm/src/agent/conversation/bootstrap.js +16 -2
- package/esm/src/agent/conversation/delegation-policy.d.ts +32 -0
- package/esm/src/agent/conversation/delegation-policy.d.ts.map +1 -1
- package/esm/src/agent/conversation/delegation-policy.js +30 -0
- package/esm/src/agent/conversation/durable.d.ts +59 -6
- package/esm/src/agent/conversation/durable.d.ts.map +1 -1
- package/esm/src/agent/conversation/durable.js +44 -6
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts +6 -0
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-lifecycle.js +3 -0
- package/esm/src/agent/conversation/hosted-terminal.d.ts +15 -0
- package/esm/src/agent/conversation/hosted-terminal.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-terminal.js +9 -0
- package/esm/src/agent/conversation/root-run-context.d.ts +6 -0
- package/esm/src/agent/conversation/root-run-context.d.ts.map +1 -1
- package/esm/src/agent/conversation/root-run-context.js +4 -0
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts +7 -0
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/conversation/root-run-lifecycle.js +2 -0
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts +13 -0
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-chunk-mirror.js +2 -0
- package/esm/src/agent/conversation/run-context.d.ts +2 -0
- package/esm/src/agent/conversation/run-context.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-context.js +1 -0
- package/esm/src/agent/conversation/run-event-normalization.d.ts +3 -0
- package/esm/src/agent/conversation/run-event-normalization.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-event-normalization.js +3 -0
- package/esm/src/agent/conversation/run-event-preparation.d.ts +4 -0
- package/esm/src/agent/conversation/run-event-preparation.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-event-preparation.js +4 -0
- package/esm/src/agent/conversation/run-events.d.ts +8 -1
- package/esm/src/agent/conversation/run-events.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-events.js +7 -1
- package/esm/src/agent/conversation/run-mirror.d.ts +5 -0
- package/esm/src/agent/conversation/run-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-mirror.js +1 -0
- package/esm/src/agent/conversation/run-stream-mirror.d.ts +2 -0
- package/esm/src/agent/conversation/run-stream-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-stream-mirror.js +1 -0
- package/esm/src/agent/factory.d.ts +1 -0
- package/esm/src/agent/factory.d.ts.map +1 -1
- package/esm/src/agent/factory.js +1 -0
- package/esm/src/agent/hosted/ag-ui-chat-request.d.ts +11 -1
- package/esm/src/agent/hosted/ag-ui-chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/ag-ui-chat-request.js +7 -1
- package/esm/src/agent/hosted/agent-project-steering.d.ts +6 -0
- package/esm/src/agent/hosted/agent-project-steering.d.ts.map +1 -1
- package/esm/src/agent/hosted/agent-project-steering.js +2 -0
- package/esm/src/agent/hosted/agent-run-lifecycle.d.ts +9 -0
- package/esm/src/agent/hosted/agent-run-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/agent-run-lifecycle.js +2 -0
- package/esm/src/agent/hosted/chat-execution-lifecycle-types.d.ts +1 -0
- package/esm/src/agent/hosted/chat-execution-lifecycle-types.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts +17 -0
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.js +8 -0
- package/esm/src/agent/hosted/chat-preparation.d.ts +14 -0
- package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-preparation.js +4 -0
- package/esm/src/agent/hosted/chat-request-parser.d.ts +8 -0
- package/esm/src/agent/hosted/chat-request-parser.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-request-parser.js +3 -0
- package/esm/src/agent/hosted/chat-request.d.ts +14 -3
- package/esm/src/agent/hosted/chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-request.js +12 -3
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts +4 -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 +1 -0
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts +9 -0
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts +6 -0
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.js +2 -0
- package/esm/src/agent/hosted/child-artifact-support.d.ts +9 -0
- package/esm/src/agent/hosted/child-artifact-support.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-artifact-support.js +5 -0
- package/esm/src/agent/hosted/child-bootstrap.d.ts +5 -0
- package/esm/src/agent/hosted/child-bootstrap.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-bootstrap.js +2 -0
- package/esm/src/agent/hosted/child-execution-logging.d.ts +8 -0
- package/esm/src/agent/hosted/child-execution-logging.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-execution-logging.js +5 -0
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts +10 -0
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.js +7 -0
- package/esm/src/agent/hosted/child-fork-instructions.d.ts +3 -0
- package/esm/src/agent/hosted/child-fork-instructions.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-instructions.js +2 -0
- package/esm/src/agent/hosted/child-fork-run-context.d.ts +16 -0
- package/esm/src/agent/hosted/child-fork-run-context.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-run-context.js +5 -0
- package/esm/src/agent/hosted/child-fork-runtime-start.d.ts +4 -0
- package/esm/src/agent/hosted/child-fork-runtime-start.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-runtime-start.js +1 -0
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts +5 -0
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-step-message-preparation.js +2 -0
- package/esm/src/agent/hosted/child-fork-stream-execution.d.ts +10 -0
- package/esm/src/agent/hosted/child-fork-stream-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-stream-execution.js +4 -0
- package/esm/src/agent/hosted/child-fork-tool-sources.d.ts +6 -0
- package/esm/src/agent/hosted/child-fork-tool-sources.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-tool-sources.js +2 -0
- package/esm/src/agent/hosted/child-invoke-tool.d.ts +3 -0
- package/esm/src/agent/hosted/child-invoke-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-invoke-tool.js +1 -0
- package/esm/src/agent/hosted/child-lifecycle.d.ts +9 -0
- package/esm/src/agent/hosted/child-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-lifecycle.js +3 -0
- package/esm/src/agent/hosted/child-mirror.d.ts +10 -0
- package/esm/src/agent/hosted/child-mirror.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-mirror.js +6 -0
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts +11 -0
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.js +2 -0
- package/esm/src/agent/hosted/child-requested-tools.d.ts +18 -0
- package/esm/src/agent/hosted/child-requested-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-requested-tools.js +13 -0
- package/esm/src/agent/hosted/child-status.d.ts +11 -0
- package/esm/src/agent/hosted/child-status.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-status.js +6 -0
- package/esm/src/agent/hosted/child-steering-tools.d.ts +6 -0
- package/esm/src/agent/hosted/child-steering-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-steering-tools.js +2 -0
- package/esm/src/agent/hosted/child-stream-watchdog.d.ts +8 -0
- package/esm/src/agent/hosted/child-stream-watchdog.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-stream-watchdog.js +6 -0
- package/esm/src/agent/hosted/child-tool-input.d.ts +9 -1
- package/esm/src/agent/hosted/child-tool-input.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-tool-input.js +6 -1
- package/esm/src/agent/hosted/cloud-chat-execution-preparation.d.ts +4 -0
- package/esm/src/agent/hosted/cloud-chat-execution-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-chat-execution-preparation.js +2 -0
- package/esm/src/agent/hosted/cloud-prepared-chat-execution-runtime.d.ts +2 -0
- package/esm/src/agent/hosted/cloud-prepared-chat-execution-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-prepared-chat-execution-runtime.js +1 -0
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts +3 -0
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-runtime-system-messages.js +2 -0
- package/esm/src/agent/hosted/default-chat-runtime.d.ts +10 -0
- package/esm/src/agent/hosted/default-chat-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-chat-runtime.js +1 -0
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts +17 -2
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-invoke-agent-tool.js +8 -2
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts +7 -0
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-project-steering-refresh.js +2 -0
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts +9 -0
- 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 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts +22 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-child-fork-execution.js +6 -0
- package/esm/src/agent/hosted/finalized-message.d.ts +10 -0
- package/esm/src/agent/hosted/finalized-message.d.ts.map +1 -1
- package/esm/src/agent/hosted/finalized-message.js +4 -0
- package/esm/src/agent/hosted/form-input-tool.d.ts +2 -0
- package/esm/src/agent/hosted/form-input-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/form-input-tool.js +1 -0
- package/esm/src/agent/hosted/lifecycle.d.ts +6 -0
- package/esm/src/agent/hosted/lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/lifecycle.js +1 -0
- package/esm/src/agent/hosted/prepared-chat-execution.d.ts +6 -0
- package/esm/src/agent/hosted/prepared-chat-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/prepared-chat-execution.js +2 -0
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts +8 -0
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-remote-tool-source.js +2 -0
- package/esm/src/agent/hosted/project-steering-adapter.d.ts +5 -0
- package/esm/src/agent/hosted/project-steering-adapter.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-steering-adapter.js +1 -0
- package/esm/src/agent/hosted/response-stream.d.ts +4 -0
- package/esm/src/agent/hosted/response-stream.d.ts.map +1 -1
- package/esm/src/agent/hosted/response-stream.js +1 -0
- package/esm/src/agent/hosted/runtime-request-config.d.ts +8 -0
- package/esm/src/agent/hosted/runtime-request-config.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-request-config.js +4 -0
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts +7 -0
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-state-resolver.js +1 -0
- package/esm/src/agent/hosted/stream-finalization.d.ts +7 -0
- package/esm/src/agent/hosted/stream-finalization.d.ts.map +1 -1
- package/esm/src/agent/hosted/stream-finalization.js +2 -0
- package/esm/src/agent/hosted/stream-terminal-error.d.ts +4 -0
- package/esm/src/agent/hosted/stream-terminal-error.d.ts.map +1 -1
- package/esm/src/agent/hosted/stream-terminal-error.js +3 -0
- package/esm/src/agent/hosted/trace-attributes.d.ts +9 -0
- package/esm/src/agent/hosted/trace-attributes.d.ts.map +1 -1
- package/esm/src/agent/hosted/trace-attributes.js +6 -0
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts +13 -0
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +4 -0
- package/esm/src/agent/input/human-input.d.ts +22 -0
- package/esm/src/agent/input/human-input.d.ts.map +1 -1
- package/esm/src/agent/input/human-input.js +10 -0
- package/esm/src/agent/input/request-protocol.d.ts +14 -0
- package/esm/src/agent/input/request-protocol.d.ts.map +1 -1
- package/esm/src/agent/input/request-protocol.js +12 -0
- package/esm/src/agent/memory/memory-interface.d.ts +3 -0
- package/esm/src/agent/memory/memory-interface.d.ts.map +1 -1
- package/esm/src/agent/memory/memory.d.ts +4 -0
- package/esm/src/agent/memory/memory.d.ts.map +1 -1
- package/esm/src/agent/memory/memory.js +4 -0
- package/esm/src/agent/memory/redis.d.ts +2 -0
- package/esm/src/agent/memory/redis.d.ts.map +1 -1
- package/esm/src/agent/memory/redis.js +2 -0
- package/esm/src/agent/project/agent-runtime.d.ts +10 -0
- package/esm/src/agent/project/agent-runtime.d.ts.map +1 -1
- package/esm/src/agent/project/agent-runtime.js +7 -0
- package/esm/src/agent/project/context.d.ts +3 -0
- package/esm/src/agent/project/context.d.ts.map +1 -1
- package/esm/src/agent/project/context.js +2 -0
- package/esm/src/agent/project/live-studio-mcp-tools.d.ts +3 -0
- package/esm/src/agent/project/live-studio-mcp-tools.d.ts.map +1 -1
- package/esm/src/agent/project/live-studio-mcp-tools.js +2 -0
- package/esm/src/agent/project/steering-mutation.d.ts +7 -0
- package/esm/src/agent/project/steering-mutation.d.ts.map +1 -1
- package/esm/src/agent/project/steering-mutation.js +4 -0
- package/esm/src/agent/react/use-agent.d.ts +3 -0
- package/esm/src/agent/react/use-agent.d.ts.map +1 -1
- package/esm/src/agent/react/use-agent.js +1 -0
- package/esm/src/agent/react/use-chat/types.d.ts +7 -2
- package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-completion.d.ts +2 -0
- package/esm/src/agent/react/use-completion.d.ts.map +1 -1
- package/esm/src/agent/react/use-streaming.d.ts +3 -0
- package/esm/src/agent/react/use-streaming.d.ts.map +1 -1
- package/esm/src/agent/react/use-streaming.js +1 -0
- package/esm/src/agent/react/use-voice-input.d.ts +3 -0
- package/esm/src/agent/react/use-voice-input.d.ts.map +1 -1
- package/esm/src/agent/react/use-voice-input.js +1 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts +11 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/ag-ui-contract.js +9 -2
- package/esm/src/agent/runtime/agent-definition-files.d.ts +7 -0
- package/esm/src/agent/runtime/agent-definition-files.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition-files.js +5 -0
- package/esm/src/agent/runtime/agent-definition.d.ts +19 -3
- package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition.js +15 -3
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts +52 -13
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-invocation-contract.js +45 -15
- package/esm/src/agent/runtime/agent-markdown-adapter.d.ts +3 -0
- package/esm/src/agent/runtime/agent-markdown-adapter.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-markdown-adapter.js +3 -0
- package/esm/src/agent/runtime/builtin-skill-files.d.ts +10 -0
- package/esm/src/agent/runtime/builtin-skill-files.d.ts.map +1 -1
- package/esm/src/agent/runtime/builtin-skill-files.js +9 -0
- package/esm/src/agent/runtime/client-profile.d.ts +17 -3
- package/esm/src/agent/runtime/client-profile.d.ts.map +1 -1
- package/esm/src/agent/runtime/client-profile.js +14 -3
- package/esm/src/agent/runtime/index.d.ts +1 -0
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +1 -0
- package/esm/src/agent/runtime/load-skill-tool.d.ts +11 -0
- package/esm/src/agent/runtime/load-skill-tool.d.ts.map +1 -1
- package/esm/src/agent/runtime/load-skill-tool.js +3 -0
- package/esm/src/agent/runtime/message-adapter.d.ts +9 -0
- package/esm/src/agent/runtime/message-adapter.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-adapter.js +7 -0
- package/esm/src/agent/runtime/message-file-url-refresh.d.ts +3 -0
- package/esm/src/agent/runtime/message-file-url-refresh.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-file-url-refresh.js +1 -0
- package/esm/src/agent/runtime/message-preparation.d.ts +2 -0
- package/esm/src/agent/runtime/message-preparation.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-preparation.js +1 -0
- package/esm/src/agent/runtime/project-files-client.d.ts +18 -2
- package/esm/src/agent/runtime/project-files-client.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-files-client.js +10 -2
- 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 +3 -0
- package/esm/src/agent/runtime/project-skill-loader.d.ts +6 -0
- package/esm/src/agent/runtime/project-skill-loader.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-skill-loader.js +1 -0
- package/esm/src/agent/runtime/prompt-block.d.ts +2 -0
- package/esm/src/agent/runtime/prompt-block.d.ts.map +1 -1
- package/esm/src/agent/runtime/prompt-block.js +1 -0
- package/esm/src/agent/runtime/provider-native-tool-inventory.d.ts +4 -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 +3 -0
- package/esm/src/agent/runtime/provider-tool-compat.d.ts +7 -0
- package/esm/src/agent/runtime/provider-tool-compat.d.ts.map +1 -1
- package/esm/src/agent/runtime/provider-tool-compat.js +4 -0
- package/esm/src/agent/runtime/resume-session.d.ts +9 -0
- package/esm/src/agent/runtime/resume-session.d.ts.map +1 -1
- package/esm/src/agent/runtime/resume-session.js +7 -0
- package/esm/src/agent/runtime/skill-metadata.d.ts +14 -1
- package/esm/src/agent/runtime/skill-metadata.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-metadata.js +8 -1
- package/esm/src/agent/runtime/skill-prompt.d.ts +3 -0
- package/esm/src/agent/runtime/skill-prompt.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-prompt.js +3 -0
- package/esm/src/agent/runtime/tool-inventory.d.ts +2 -0
- package/esm/src/agent/runtime/tool-inventory.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-inventory.js +2 -0
- package/esm/src/agent/runtime/upload-url-client.d.ts +4 -0
- package/esm/src/agent/runtime/upload-url-client.d.ts.map +1 -1
- package/esm/src/agent/runtime/upload-url-client.js +1 -0
- package/esm/src/agent/schemas/agent.schema.d.ts +14 -0
- package/esm/src/agent/schemas/agent.schema.d.ts.map +1 -1
- package/esm/src/agent/service/abort-rejection-guard.d.ts +8 -0
- package/esm/src/agent/service/abort-rejection-guard.d.ts.map +1 -1
- package/esm/src/agent/service/abort-rejection-guard.js +2 -0
- package/esm/src/agent/service/auth.d.ts +16 -0
- package/esm/src/agent/service/auth.d.ts.map +1 -1
- package/esm/src/agent/service/auth.js +4 -0
- package/esm/src/agent/service/before-stream.d.ts +4 -0
- package/esm/src/agent/service/before-stream.d.ts.map +1 -1
- package/esm/src/agent/service/bootstrap.d.ts +7 -0
- package/esm/src/agent/service/bootstrap.d.ts.map +1 -1
- package/esm/src/agent/service/bootstrap.js +2 -0
- package/esm/src/agent/service/config.d.ts +11 -0
- package/esm/src/agent/service/config.d.ts.map +1 -1
- package/esm/src/agent/service/config.js +10 -0
- package/esm/src/agent/service/definition.d.ts +5 -0
- package/esm/src/agent/service/definition.d.ts.map +1 -1
- package/esm/src/agent/service/detached-run-tracker.d.ts +8 -0
- package/esm/src/agent/service/detached-run-tracker.d.ts.map +1 -1
- package/esm/src/agent/service/detached-run-tracker.js +2 -0
- package/esm/src/agent/service/env-files.d.ts +6 -0
- package/esm/src/agent/service/env-files.d.ts.map +1 -1
- package/esm/src/agent/service/env-files.js +2 -0
- package/esm/src/agent/service/external-worker-client.d.ts +16 -0
- package/esm/src/agent/service/external-worker-client.d.ts.map +1 -1
- package/esm/src/agent/service/external-worker-client.js +5 -0
- package/esm/src/agent/service/node-runtime-infrastructure.d.ts +6 -0
- package/esm/src/agent/service/node-runtime-infrastructure.d.ts.map +1 -1
- package/esm/src/agent/service/node-runtime-infrastructure.js +2 -0
- package/esm/src/agent/service/node-telemetry.d.ts +18 -0
- package/esm/src/agent/service/node-telemetry.d.ts.map +1 -1
- package/esm/src/agent/service/node-telemetry.js +4 -0
- package/esm/src/agent/service/registration.d.ts +16 -0
- package/esm/src/agent/service/registration.d.ts.map +1 -1
- package/esm/src/agent/service/registration.js +10 -0
- package/esm/src/agent/service/request-auth-cache.d.ts +4 -0
- package/esm/src/agent/service/request-auth-cache.d.ts.map +1 -1
- package/esm/src/agent/service/request-auth-cache.js +1 -0
- package/esm/src/agent/service/response-like.d.ts +1 -0
- package/esm/src/agent/service/response-like.d.ts.map +1 -1
- package/esm/src/agent/service/response-like.js +1 -0
- package/esm/src/agent/service/routes.d.ts +15 -0
- package/esm/src/agent/service/routes.d.ts.map +1 -1
- package/esm/src/agent/service/routes.js +1 -0
- package/esm/src/agent/service/runtime.d.ts +21 -0
- package/esm/src/agent/service/runtime.d.ts.map +1 -1
- package/esm/src/agent/service/runtime.js +5 -0
- package/esm/src/agent/service/server.d.ts +9 -0
- package/esm/src/agent/service/server.d.ts.map +1 -1
- package/esm/src/agent/service/server.js +3 -0
- package/esm/src/agent/streaming/chat-ui-message-stream.d.ts +4 -0
- package/esm/src/agent/streaming/chat-ui-message-stream.d.ts.map +1 -1
- package/esm/src/agent/streaming/chat-ui-message-stream.js +1 -0
- package/esm/src/agent/streaming/data-stream.d.ts +6 -0
- package/esm/src/agent/streaming/data-stream.d.ts.map +1 -1
- package/esm/src/agent/streaming/data-stream.js +6 -0
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts +41 -4
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts.map +1 -1
- package/esm/src/agent/streaming/fork-runtime-stream.js +25 -3
- package/esm/src/agent/streaming/mirrored-tool-chunk-state.d.ts +15 -0
- package/esm/src/agent/streaming/mirrored-tool-chunk-state.d.ts.map +1 -1
- package/esm/src/agent/streaming/mirrored-tool-chunk-state.js +8 -0
- package/esm/src/agent/streaming/tool-execution-data-event-bridge.d.ts +3 -0
- package/esm/src/agent/streaming/tool-execution-data-event-bridge.d.ts.map +1 -1
- package/esm/src/agent/streaming/tool-execution-data-event-bridge.js +1 -0
- package/esm/src/agent/testing/agent-tester.d.ts +8 -0
- package/esm/src/agent/testing/agent-tester.d.ts.map +1 -1
- package/esm/src/agent/testing/agent-tester.js +5 -0
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.d.ts +3 -0
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.js +1 -0
- package/esm/src/agent/testing/durable-run-canaries/environment.d.ts +3 -0
- package/esm/src/agent/testing/durable-run-canaries/environment.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/environment.js +2 -0
- package/esm/src/agent/testing/durable-run-canaries/runner.d.ts +16 -0
- package/esm/src/agent/testing/durable-run-canaries/runner.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/runner.js +5 -0
- package/esm/src/agent/testing/durable-run-canaries/validation.d.ts +5 -0
- package/esm/src/agent/testing/durable-run-canaries/validation.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/validation.js +5 -0
- package/esm/src/agent/testing/live-evals/api-client.d.ts +24 -0
- package/esm/src/agent/testing/live-evals/api-client.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/api-client.js +11 -0
- package/esm/src/agent/testing/live-evals/cli-runner.d.ts +4 -0
- package/esm/src/agent/testing/live-evals/cli-runner.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/cli-runner.js +1 -0
- package/esm/src/agent/testing/live-evals/environment.d.ts +3 -0
- package/esm/src/agent/testing/live-evals/environment.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/environment.js +2 -0
- package/esm/src/agent/testing/live-evals/formatting.d.ts +4 -0
- package/esm/src/agent/testing/live-evals/formatting.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/formatting.js +4 -0
- package/esm/src/agent/testing/live-evals/metadata.d.ts +8 -0
- package/esm/src/agent/testing/live-evals/metadata.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/metadata.js +4 -0
- package/esm/src/agent/testing/live-evals/performance.d.ts +4 -0
- package/esm/src/agent/testing/live-evals/performance.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/performance.js +1 -0
- package/esm/src/agent/testing/live-evals/preflight.d.ts +3 -0
- package/esm/src/agent/testing/live-evals/preflight.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/preflight.js +2 -0
- package/esm/src/agent/testing/live-evals/report.d.ts +9 -0
- package/esm/src/agent/testing/live-evals/report.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/report.js +6 -0
- package/esm/src/agent/testing/live-evals/request.d.ts +2 -0
- package/esm/src/agent/testing/live-evals/request.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/request.js +2 -0
- package/esm/src/agent/testing/live-evals/result.d.ts +4 -0
- package/esm/src/agent/testing/live-evals/result.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/result.js +3 -0
- package/esm/src/agent/testing/live-evals/runner.d.ts +11 -0
- package/esm/src/agent/testing/live-evals/runner.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/runner.js +5 -0
- package/esm/src/agent/types.d.ts +18 -0
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/agent/types.js +4 -0
- package/esm/src/channels/control-plane.d.ts +32 -0
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/channels/control-plane.js +22 -0
- package/esm/src/channels/invoke.d.ts +24 -0
- package/esm/src/channels/invoke.d.ts.map +1 -1
- package/esm/src/channels/invoke.js +18 -0
- package/esm/src/chat/ag-ui.d.ts +37 -5
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.js +25 -5
- package/esm/src/chat/chat-ui-message-helpers.d.ts +7 -0
- package/esm/src/chat/chat-ui-message-helpers.d.ts.map +1 -1
- package/esm/src/chat/chat-ui-message-helpers.js +6 -0
- package/esm/src/chat/conversation.d.ts +52 -5
- package/esm/src/chat/conversation.d.ts.map +1 -1
- package/esm/src/chat/conversation.js +42 -5
- package/esm/src/chat/final-step-fallback.d.ts +20 -0
- package/esm/src/chat/final-step-fallback.d.ts.map +1 -1
- package/esm/src/chat/final-step-fallback.js +14 -0
- package/esm/src/chat/hosted-ui-chunk-mapping.d.ts +3 -0
- package/esm/src/chat/hosted-ui-chunk-mapping.d.ts.map +1 -1
- package/esm/src/chat/hosted-ui-chunk-mapping.js +1 -0
- package/esm/src/chat/message-prep.d.ts +18 -0
- package/esm/src/chat/message-prep.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +18 -0
- package/esm/src/chat/protocol.d.ts +25 -0
- package/esm/src/chat/protocol.d.ts.map +1 -1
- package/esm/src/chat/provider-errors.d.ts +6 -0
- package/esm/src/chat/provider-errors.d.ts.map +1 -1
- package/esm/src/chat/provider-errors.js +5 -0
- package/esm/src/chat/stream-watchdog.d.ts +11 -0
- package/esm/src/chat/stream-watchdog.d.ts.map +1 -1
- package/esm/src/chat/stream-watchdog.js +8 -0
- package/esm/src/chat/types.d.ts +71 -7
- package/esm/src/chat/types.d.ts.map +1 -1
- package/esm/src/chat/types.js +35 -7
- package/esm/src/config/define-config.d.ts +1 -0
- package/esm/src/config/define-config.d.ts.map +1 -1
- package/esm/src/config/define-config.js +1 -0
- 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 +2 -0
- package/esm/src/data/schemas/data.schema.d.ts +2 -0
- package/esm/src/data/schemas/data.schema.d.ts.map +1 -1
- package/esm/src/embedding/react/use-uploads.d.ts +3 -1
- package/esm/src/embedding/react/use-uploads.d.ts.map +1 -1
- package/esm/src/embedding/types.d.ts +15 -0
- package/esm/src/embedding/types.d.ts.map +1 -1
- package/esm/src/extensions/contracts.d.ts +5 -0
- package/esm/src/extensions/contracts.d.ts.map +1 -1
- package/esm/src/extensions/contracts.js +5 -0
- package/esm/src/extensions/errors.d.ts +4 -0
- package/esm/src/extensions/errors.d.ts.map +1 -1
- package/esm/src/extensions/errors.js +4 -0
- package/esm/src/extensions/llm/llm-provider-registry.d.ts +1 -0
- package/esm/src/extensions/llm/llm-provider-registry.d.ts.map +1 -1
- package/esm/src/extensions/llm/llm-provider-registry.js +1 -0
- package/esm/src/extensions/loader.d.ts +1 -0
- package/esm/src/extensions/loader.d.ts.map +1 -1
- package/esm/src/extensions/loader.js +1 -0
- package/esm/src/extensions/observability/node-telemetry-provider.d.ts +4 -0
- package/esm/src/extensions/observability/node-telemetry-provider.d.ts.map +1 -1
- package/esm/src/extensions/parser/code-parser.d.ts +2 -1
- package/esm/src/extensions/parser/code-parser.d.ts.map +1 -1
- package/esm/src/extensions/recommendations.d.ts +1 -0
- package/esm/src/extensions/recommendations.d.ts.map +1 -1
- package/esm/src/extensions/recommendations.js +1 -0
- package/esm/src/extensions/sandbox/shell-tools.d.ts +7 -0
- package/esm/src/extensions/sandbox/shell-tools.d.ts.map +1 -1
- package/esm/src/extensions/sandbox/shell-tools.js +1 -0
- package/esm/src/extensions/types.d.ts +8 -0
- package/esm/src/extensions/types.d.ts.map +1 -1
- 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 -0
- package/esm/src/html/hydration-script-builder/templates/renderer.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/templates/renderer.js +26 -14
- package/esm/src/integrations/index.d.ts +4 -0
- package/esm/src/integrations/index.d.ts.map +1 -1
- package/esm/src/integrations/index.js +4 -0
- package/esm/src/integrations/schema.d.ts +14 -0
- package/esm/src/integrations/schema.d.ts.map +1 -1
- package/esm/src/integrations/schema.js +7 -0
- package/esm/src/integrations/types.d.ts +4 -0
- package/esm/src/integrations/types.d.ts.map +1 -1
- package/esm/src/internal-agents/schema.js +2 -2
- package/esm/src/jobs/jobs-client.d.ts +15 -0
- package/esm/src/jobs/jobs-client.d.ts.map +1 -1
- package/esm/src/jobs/jobs-client.js +2 -0
- package/esm/src/jobs/schemas.d.ts +53 -0
- package/esm/src/jobs/schemas.d.ts.map +1 -1
- package/esm/src/jobs/schemas.js +28 -0
- package/esm/src/mcp/elicitation.d.ts +5 -0
- package/esm/src/mcp/elicitation.d.ts.map +1 -1
- package/esm/src/mcp/elicitation.js +2 -0
- package/esm/src/mcp/registry.d.ts +6 -0
- package/esm/src/mcp/registry.d.ts.map +1 -1
- package/esm/src/mcp/registry.js +6 -0
- package/esm/src/mcp/schemas/mcp.schema.d.ts +2 -0
- package/esm/src/mcp/schemas/mcp.schema.d.ts.map +1 -1
- package/esm/src/mcp/server.d.ts +3 -0
- package/esm/src/mcp/server.d.ts.map +1 -1
- package/esm/src/mcp/server.js +2 -0
- package/esm/src/mcp/sse.d.ts +2 -0
- package/esm/src/mcp/sse.d.ts.map +1 -1
- package/esm/src/mcp/sse.js +2 -0
- package/esm/src/mcp/task-store.d.ts +1 -0
- package/esm/src/mcp/task-store.d.ts.map +1 -1
- package/esm/src/mcp/task-store.js +2 -0
- package/esm/src/middleware/builtin/logger.d.ts +5 -0
- package/esm/src/middleware/builtin/logger.d.ts.map +1 -1
- package/esm/src/middleware/builtin/logger.js +3 -0
- package/esm/src/middleware/builtin/security/rate-limit.d.ts +3 -0
- package/esm/src/middleware/builtin/security/rate-limit.d.ts.map +1 -1
- package/esm/src/middleware/builtin/security/rate-limit.js +2 -0
- package/esm/src/middleware/builtin/security/redis-rate-limit.d.ts +2 -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 +1 -0
- package/esm/src/middleware/builtin/security/types.d.ts +1 -0
- package/esm/src/middleware/builtin/security/types.d.ts.map +1 -1
- package/esm/src/middleware/builtin/timeout.d.ts +1 -0
- package/esm/src/middleware/builtin/timeout.d.ts.map +1 -1
- package/esm/src/middleware/builtin/types.d.ts +1 -0
- package/esm/src/middleware/builtin/types.d.ts.map +1 -1
- package/esm/src/middleware/core/context.d.ts +1 -0
- package/esm/src/middleware/core/context.d.ts.map +1 -1
- package/esm/src/middleware/core/context.js +1 -0
- package/esm/src/middleware/core/pipeline/pipeline.d.ts +1 -0
- package/esm/src/middleware/core/pipeline/pipeline.d.ts.map +1 -1
- package/esm/src/middleware/core/pipeline/pipeline.js +1 -0
- package/esm/src/middleware/core/pipeline/types.d.ts +1 -0
- package/esm/src/middleware/core/pipeline/types.d.ts.map +1 -1
- package/esm/src/middleware/core/types.d.ts +5 -0
- package/esm/src/middleware/core/types.d.ts.map +1 -1
- package/esm/src/oauth/handlers/callback-handler.d.ts +3 -1
- package/esm/src/oauth/handlers/callback-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/callback-handler.js +1 -0
- package/esm/src/oauth/handlers/init-handler.d.ts +7 -3
- package/esm/src/oauth/handlers/init-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/init-handler.js +3 -0
- package/esm/src/oauth/providers/atlassian.d.ts +3 -0
- package/esm/src/oauth/providers/atlassian.d.ts.map +1 -1
- package/esm/src/oauth/providers/atlassian.js +3 -0
- package/esm/src/oauth/providers/base.d.ts +2 -0
- package/esm/src/oauth/providers/base.d.ts.map +1 -1
- package/esm/src/oauth/providers/base.js +2 -0
- package/esm/src/oauth/providers/common.d.ts +26 -0
- package/esm/src/oauth/providers/common.d.ts.map +1 -1
- package/esm/src/oauth/providers/common.js +26 -0
- package/esm/src/oauth/providers/google.d.ts +4 -0
- package/esm/src/oauth/providers/google.d.ts.map +1 -1
- package/esm/src/oauth/providers/google.js +4 -0
- package/esm/src/oauth/providers/microsoft.d.ts +4 -0
- package/esm/src/oauth/providers/microsoft.d.ts.map +1 -1
- package/esm/src/oauth/providers/microsoft.js +4 -0
- package/esm/src/oauth/schemas/oauth.schema.d.ts +7 -0
- package/esm/src/oauth/schemas/oauth.schema.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/http-instrumentation.d.ts +2 -0
- package/esm/src/observability/auto-instrument/http-instrumentation.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/http-instrumentation.js +2 -0
- package/esm/src/observability/auto-instrument/orchestrator.d.ts +2 -0
- package/esm/src/observability/auto-instrument/orchestrator.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/orchestrator.js +2 -0
- package/esm/src/observability/auto-instrument/react-instrumentation.d.ts +2 -0
- package/esm/src/observability/auto-instrument/react-instrumentation.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/react-instrumentation.js +2 -0
- package/esm/src/observability/auto-instrument/types.d.ts +1 -0
- package/esm/src/observability/auto-instrument/types.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/wrappers.d.ts +3 -0
- package/esm/src/observability/auto-instrument/wrappers.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/wrappers.js +3 -0
- package/esm/src/observability/error-collector.d.ts +8 -0
- package/esm/src/observability/error-collector.d.ts.map +1 -1
- package/esm/src/observability/error-collector.js +4 -0
- package/esm/src/observability/file-log-subscriber.d.ts +4 -0
- package/esm/src/observability/file-log-subscriber.d.ts.map +1 -1
- package/esm/src/observability/file-log-subscriber.js +3 -0
- package/esm/src/observability/log-buffer.d.ts +8 -0
- package/esm/src/observability/log-buffer.d.ts.map +1 -1
- package/esm/src/observability/log-buffer.js +4 -0
- package/esm/src/observability/metrics/index.d.ts +22 -0
- package/esm/src/observability/metrics/index.d.ts.map +1 -1
- package/esm/src/observability/metrics/index.js +22 -0
- package/esm/src/observability/metrics/types.d.ts +1 -0
- package/esm/src/observability/metrics/types.d.ts.map +1 -1
- package/esm/src/observability/tracing/index.d.ts +14 -0
- package/esm/src/observability/tracing/index.d.ts.map +1 -1
- package/esm/src/observability/tracing/index.js +14 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts +15 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts.map +1 -1
- package/esm/src/observability/tracing/otlp-setup.js +14 -0
- package/esm/src/observability/tracing/service-tracer.d.ts +15 -0
- package/esm/src/observability/tracing/service-tracer.d.ts.map +1 -1
- package/esm/src/observability/tracing/service-tracer.js +1 -0
- package/esm/src/observability/tracing/span-names.d.ts +1 -0
- package/esm/src/observability/tracing/span-names.d.ts.map +1 -1
- package/esm/src/observability/tracing/span-names.js +1 -0
- package/esm/src/observability/tracing/types.d.ts +2 -0
- package/esm/src/observability/tracing/types.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.d.ts +15 -0
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +14 -0
- package/esm/src/platform/compat/http/responses.d.ts +7 -0
- package/esm/src/platform/compat/http/responses.d.ts.map +1 -1
- package/esm/src/platform/compat/http/responses.js +7 -0
- package/esm/src/platform/compat/path/basic-operations.d.ts +4 -0
- package/esm/src/platform/compat/path/basic-operations.d.ts.map +1 -1
- package/esm/src/platform/compat/path/basic-operations.js +4 -0
- package/esm/src/platform/compat/path/resolution.d.ts +1 -0
- package/esm/src/platform/compat/path/resolution.d.ts.map +1 -1
- package/esm/src/platform/compat/path/resolution.js +1 -0
- package/esm/src/platform/compat/process/env.d.ts +4 -0
- package/esm/src/platform/compat/process/env.d.ts.map +1 -1
- package/esm/src/platform/compat/process/env.js +4 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts +1 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -1
- package/esm/src/platform/compat/process/lifecycle.js +1 -0
- package/esm/src/prompt/factory.d.ts +1 -0
- package/esm/src/prompt/factory.d.ts.map +1 -1
- package/esm/src/prompt/factory.js +1 -0
- package/esm/src/prompt/registry.d.ts +1 -0
- package/esm/src/prompt/registry.d.ts.map +1 -1
- package/esm/src/prompt/registry.js +1 -0
- package/esm/src/prompt/schemas/prompt.schema.d.ts +1 -0
- package/esm/src/prompt/schemas/prompt.schema.d.ts.map +1 -1
- package/esm/src/prompt/types.d.ts +1 -0
- package/esm/src/prompt/types.d.ts.map +1 -1
- package/esm/src/provider/model-registry.d.ts +1 -0
- package/esm/src/provider/model-registry.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-embedding-responses.d.ts +1 -0
- package/esm/src/provider/runtime-loader/provider-embedding-responses.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-embedding-responses.js +1 -0
- package/esm/src/provider/runtime-loader/provider-endpoints.d.ts +7 -0
- package/esm/src/provider/runtime-loader/provider-endpoints.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-endpoints.js +7 -0
- package/esm/src/provider/runtime-loader/provider-http.d.ts +3 -0
- package/esm/src/provider/runtime-loader/provider-http.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-http.js +3 -0
- package/esm/src/provider/runtime-loader/provider-records.d.ts +1 -0
- package/esm/src/provider/runtime-loader/provider-records.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-records.js +1 -0
- 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 +3 -0
- package/esm/src/provider/runtime-loader/provider-sse.d.ts +1 -0
- package/esm/src/provider/runtime-loader/provider-sse.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-sse.js +1 -0
- package/esm/src/provider/runtime-loader/provider-usage.d.ts +2 -0
- package/esm/src/provider/runtime-loader/provider-usage.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-usage.js +1 -0
- package/esm/src/provider/runtime-loader/tool-input-status.d.ts +1 -0
- package/esm/src/provider/runtime-loader/tool-input-status.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/tool-input-status.js +2 -0
- package/esm/src/provider/runtime-loader.d.ts +10 -0
- package/esm/src/provider/runtime-loader.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader.js +7 -0
- package/esm/src/provider/types.d.ts +1 -0
- package/esm/src/provider/types.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/context.d.ts +3 -0
- package/esm/src/provider/veryfront-cloud/context.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/context.js +2 -0
- package/esm/src/provider/veryfront-cloud/model-catalog.d.ts +16 -0
- package/esm/src/provider/veryfront-cloud/model-catalog.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/model-catalog.js +14 -0
- package/esm/src/provider/veryfront-cloud/shared.d.ts +1 -0
- package/esm/src/provider/veryfront-cloud/shared.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.js +3 -2
- package/esm/src/react/components/MDXProvider.d.ts +3 -0
- package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
- package/esm/src/react/components/MDXProvider.js +2 -0
- package/esm/src/react/components/chat/agent-card.d.ts +2 -0
- package/esm/src/react/components/chat/agent-card.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-card.js +1 -0
- package/esm/src/react/components/chat/chat/components/animations.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/animations.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/animations.js +3 -0
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts +3 -0
- 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 +1 -0
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts +2 -0
- 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 +1 -0
- package/esm/src/react/components/chat/chat/components/code-block.d.ts +2 -0
- 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 +1 -0
- package/esm/src/react/components/chat/chat/components/drop-zone.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/drop-zone.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/drop-zone.js +1 -0
- package/esm/src/react/components/chat/chat/components/empty-state.d.ts +8 -0
- package/esm/src/react/components/chat/chat/components/empty-state.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/empty-state.js +4 -0
- package/esm/src/react/components/chat/chat/components/inference-badge.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/inference-badge.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/inference-badge.js +1 -0
- package/esm/src/react/components/chat/chat/components/inline-citation.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/inline-citation.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/inline-citation.js +1 -0
- package/esm/src/react/components/chat/chat/components/message-actions.d.ts +2 -0
- 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 +1 -0
- package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-edit-form.js +1 -0
- package/esm/src/react/components/chat/chat/components/message-feedback.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/message-feedback.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-feedback.js +1 -0
- package/esm/src/react/components/chat/chat/components/quick-actions.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/quick-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/quick-actions.js +1 -0
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts +1 -0
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/reasoning.js +1 -0
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sidebar.js +1 -0
- package/esm/src/react/components/chat/chat/components/skill-badge.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/skill-badge.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/skill-badge.js +1 -0
- package/esm/src/react/components/chat/chat/components/sources.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sources.js +1 -0
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts +2 -0
- 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 +1 -0
- package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/tab-switcher.js +1 -0
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts +1 -0
- 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 +1 -0
- package/esm/src/react/components/chat/chat/components/upgrade-cta.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/upgrade-cta.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/upgrade-cta.js +1 -0
- package/esm/src/react/components/chat/chat/components/uploads-panel.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/uploads-panel.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/uploads-panel.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +2 -0
- 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 +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-empty.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-if.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-if.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-if.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-message-list.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-root.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-root.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-root.js +1 -0
- package/esm/src/react/components/chat/chat/composition/error-banner.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/error-banner.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/error-banner.js +1 -0
- package/esm/src/react/components/chat/chat/composition/message.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/message.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/message.js +1 -0
- package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/model-avatar.js +1 -0
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts +4 -0
- 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 +3 -0
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts +4 -0
- 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 +3 -0
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts +4 -0
- 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 +3 -0
- package/esm/src/react/components/chat/chat/contexts/thread-list-context.d.ts +4 -0
- package/esm/src/react/components/chat/chat/contexts/thread-list-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/thread-list-context.js +3 -0
- package/esm/src/react/components/chat/chat/hooks/use-threads.d.ts +4 -0
- package/esm/src/react/components/chat/chat/hooks/use-threads.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-threads.js +1 -0
- package/esm/src/react/components/chat/chat/index.d.ts +3 -0
- package/esm/src/react/components/chat/chat/index.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/index.js +2 -0
- package/esm/src/react/components/chat/chat-with-sidebar.d.ts +12 -0
- package/esm/src/react/components/chat/chat-with-sidebar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat-with-sidebar.js +1 -0
- package/esm/src/react/components/chat/error-boundary.d.ts +3 -0
- package/esm/src/react/components/chat/error-boundary.d.ts.map +1 -1
- package/esm/src/react/components/chat/error-boundary.js +2 -0
- package/esm/src/react/components/chat/markdown.d.ts +3 -0
- package/esm/src/react/components/chat/markdown.d.ts.map +1 -1
- package/esm/src/react/components/chat/markdown.js +1 -0
- package/esm/src/react/components/chat/message.d.ts +4 -0
- package/esm/src/react/components/chat/message.d.ts.map +1 -1
- package/esm/src/react/components/chat/message.js +2 -0
- package/esm/src/react/components/chat/model-selector.d.ts +2 -1
- package/esm/src/react/components/chat/model-selector.d.ts.map +1 -1
- package/esm/src/react/components/chat/model-selector.js +1 -0
- package/esm/src/react/components/chat/theme.d.ts +2 -0
- package/esm/src/react/components/chat/theme.d.ts.map +1 -1
- package/esm/src/react/fonts/index.d.ts +3 -0
- package/esm/src/react/fonts/index.d.ts.map +1 -1
- package/esm/src/react/fonts/index.js +1 -0
- package/esm/src/react/runtime/core.d.ts +38 -0
- package/esm/src/react/runtime/core.d.ts.map +1 -1
- package/esm/src/react/runtime/core.js +6 -0
- package/esm/src/rendering/rsc/client-boot.ts +50 -5
- package/esm/src/resource/factory.d.ts +1 -0
- package/esm/src/resource/factory.d.ts.map +1 -1
- package/esm/src/resource/factory.js +1 -0
- package/esm/src/resource/registry.d.ts +1 -0
- package/esm/src/resource/registry.d.ts.map +1 -1
- package/esm/src/resource/registry.js +1 -0
- package/esm/src/resource/types.d.ts +2 -0
- package/esm/src/resource/types.d.ts.map +1 -1
- package/esm/src/routing/api/context-builder.d.ts +1 -0
- package/esm/src/routing/api/context-builder.d.ts.map +1 -1
- package/esm/src/routing/api/handler.d.ts +2 -0
- package/esm/src/routing/api/handler.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/types.d.ts +1 -0
- package/esm/src/routing/api/module-loader/types.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.d.ts +1 -0
- package/esm/src/runtime/runtime-bridge.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.js +1 -0
- package/esm/src/sandbox/agent-service-tools.d.ts +16 -0
- package/esm/src/sandbox/agent-service-tools.d.ts.map +1 -1
- package/esm/src/sandbox/agent-service-tools.js +6 -0
- package/esm/src/sandbox/lazy-sandbox.d.ts +2 -0
- package/esm/src/sandbox/lazy-sandbox.d.ts.map +1 -1
- package/esm/src/sandbox/lazy-sandbox.js +1 -0
- package/esm/src/sandbox/shell-tools.d.ts +3 -0
- package/esm/src/sandbox/shell-tools.d.ts.map +1 -1
- package/esm/src/sandbox/shell-tools.js +3 -0
- package/esm/src/security/http/cors/middleware.d.ts +1 -0
- package/esm/src/security/http/cors/middleware.d.ts.map +1 -1
- package/esm/src/security/http/cors/middleware.js +1 -0
- package/esm/src/security/input-validation/handler.d.ts +2 -0
- package/esm/src/security/input-validation/handler.d.ts.map +1 -1
- package/esm/src/security/input-validation/parsers.d.ts +3 -0
- package/esm/src/security/input-validation/parsers.d.ts.map +1 -1
- package/esm/src/security/input-validation/parsers.js +3 -0
- package/esm/src/server/build-types.d.ts +1 -0
- package/esm/src/server/build-types.d.ts.map +1 -1
- package/esm/src/server/dev-server/index.d.ts +1 -0
- package/esm/src/server/dev-server/index.d.ts.map +1 -1
- package/esm/src/server/dev-server/index.js +1 -0
- package/esm/src/server/dev-server/server.d.ts +2 -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/dev-server/types.d.ts +3 -0
- package/esm/src/server/dev-server/types.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +75 -0
- package/esm/src/server/index.d.ts +3 -0
- package/esm/src/server/index.d.ts.map +1 -1
- package/esm/src/server/index.js +1 -0
- package/esm/src/server/node-handler.d.ts +1 -0
- package/esm/src/server/node-handler.d.ts.map +1 -1
- package/esm/src/server/node-handler.js +1 -0
- package/esm/src/server/production-server.d.ts +3 -0
- package/esm/src/server/production-server.d.ts.map +1 -1
- package/esm/src/server/production-server.js +1 -0
- package/esm/src/server/reload-notifier.d.ts +1 -0
- package/esm/src/server/reload-notifier.d.ts.map +1 -1
- package/esm/src/server/reload-notifier.js +1 -0
- package/esm/src/server/service-server.d.ts +14 -0
- package/esm/src/server/service-server.d.ts.map +1 -1
- package/esm/src/server/service-server.js +3 -0
- 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 +1 -1
- package/esm/src/testing/assert.d.ts +18 -0
- package/esm/src/testing/assert.d.ts.map +1 -1
- package/esm/src/testing/assert.js +17 -0
- package/esm/src/testing/bdd.d.ts +8 -0
- package/esm/src/testing/bdd.d.ts.map +1 -1
- package/esm/src/testing/bdd.js +8 -0
- package/esm/src/testing/deno-compat.d.ts +8 -0
- package/esm/src/testing/deno-compat.d.ts.map +1 -1
- package/esm/src/testing/deno-compat.js +8 -0
- package/esm/src/testing/isolation.d.ts +1 -0
- package/esm/src/testing/isolation.d.ts.map +1 -1
- package/esm/src/testing/isolation.js +1 -0
- package/esm/src/testing/timing.d.ts +3 -0
- package/esm/src/testing/timing.d.ts.map +1 -1
- package/esm/src/testing/timing.js +3 -0
- package/esm/src/testing/utils.d.ts +1 -0
- package/esm/src/testing/utils.d.ts.map +1 -1
- package/esm/src/testing/utils.js +1 -0
- package/esm/src/tool/context7.d.ts +2 -0
- package/esm/src/tool/context7.d.ts.map +1 -1
- package/esm/src/tool/context7.js +1 -0
- package/esm/src/tool/executor.d.ts +1 -0
- package/esm/src/tool/executor.d.ts.map +1 -1
- package/esm/src/tool/executor.js +1 -0
- package/esm/src/tool/factory.d.ts +3 -0
- package/esm/src/tool/factory.d.ts.map +1 -1
- package/esm/src/tool/factory.js +2 -0
- package/esm/src/tool/host-tools.d.ts +5 -0
- package/esm/src/tool/host-tools.d.ts.map +1 -1
- package/esm/src/tool/host-tools.js +1 -0
- package/esm/src/tool/project-scoped-remote-tools.d.ts +15 -0
- package/esm/src/tool/project-scoped-remote-tools.d.ts.map +1 -1
- package/esm/src/tool/project-scoped-remote-tools.js +7 -0
- package/esm/src/tool/registry.d.ts +1 -0
- package/esm/src/tool/registry.d.ts.map +1 -1
- package/esm/src/tool/registry.js +1 -0
- package/esm/src/tool/remote-mcp.d.ts +2 -0
- package/esm/src/tool/remote-mcp.d.ts.map +1 -1
- package/esm/src/tool/remote-mcp.js +1 -0
- package/esm/src/tool/remote-source-tools.d.ts +3 -0
- package/esm/src/tool/remote-source-tools.d.ts.map +1 -1
- package/esm/src/tool/remote-source-tools.js +2 -0
- package/esm/src/tool/result.d.ts +2 -0
- package/esm/src/tool/result.d.ts.map +1 -1
- package/esm/src/tool/result.js +2 -0
- package/esm/src/tool/sleep.d.ts +6 -0
- package/esm/src/tool/sleep.d.ts.map +1 -1
- package/esm/src/tool/sleep.js +2 -0
- package/esm/src/tool/tracing.d.ts +5 -0
- package/esm/src/tool/tracing.d.ts.map +1 -1
- package/esm/src/tool/tracing.js +1 -0
- package/esm/src/tool/types.d.ts +2 -1
- package/esm/src/tool/types.d.ts.map +1 -1
- package/esm/src/types/index.d.ts +2 -0
- package/esm/src/types/index.d.ts.map +1 -1
- package/esm/src/utils/bundle-manifest.d.ts +3 -0
- package/esm/src/utils/bundle-manifest.d.ts.map +1 -1
- package/esm/src/utils/bundle-manifest.js +1 -0
- package/esm/src/utils/constants/build.d.ts +2 -0
- package/esm/src/utils/constants/build.d.ts.map +1 -1
- package/esm/src/utils/constants/build.js +2 -0
- package/esm/src/utils/constants/cache.d.ts +4 -0
- package/esm/src/utils/constants/cache.d.ts.map +1 -1
- package/esm/src/utils/constants/cache.js +4 -0
- package/esm/src/utils/constants/cdn.d.ts +4 -0
- package/esm/src/utils/constants/cdn.d.ts.map +1 -1
- package/esm/src/utils/constants/cdn.js +4 -0
- package/esm/src/utils/constants/hash.d.ts +2 -0
- package/esm/src/utils/constants/hash.d.ts.map +1 -1
- package/esm/src/utils/constants/hash.js +2 -0
- package/esm/src/utils/constants/hmr.d.ts +7 -0
- package/esm/src/utils/constants/hmr.d.ts.map +1 -1
- package/esm/src/utils/constants/hmr.js +7 -0
- package/esm/src/utils/constants/html.d.ts +6 -0
- package/esm/src/utils/constants/html.d.ts.map +1 -1
- package/esm/src/utils/constants/html.js +6 -0
- package/esm/src/utils/constants/http.d.ts +23 -0
- package/esm/src/utils/constants/http.d.ts.map +1 -1
- package/esm/src/utils/constants/http.js +23 -0
- package/esm/src/utils/constants/network.d.ts +3 -0
- package/esm/src/utils/constants/network.d.ts.map +1 -1
- package/esm/src/utils/constants/network.js +3 -0
- package/esm/src/utils/constants/security.d.ts +3 -0
- package/esm/src/utils/constants/security.d.ts.map +1 -1
- package/esm/src/utils/constants/security.js +3 -0
- package/esm/src/utils/constants/server.d.ts +1 -0
- package/esm/src/utils/constants/server.d.ts.map +1 -1
- package/esm/src/utils/constants/server.js +1 -0
- package/esm/src/utils/feature-flags.d.ts +1 -0
- package/esm/src/utils/feature-flags.d.ts.map +1 -1
- package/esm/src/utils/feature-flags.js +1 -0
- package/esm/src/utils/hash-utils.d.ts +5 -0
- package/esm/src/utils/hash-utils.d.ts.map +1 -1
- package/esm/src/utils/hash-utils.js +4 -0
- package/esm/src/utils/import-lockfile.d.ts +3 -0
- package/esm/src/utils/import-lockfile.d.ts.map +1 -1
- package/esm/src/utils/import-lockfile.js +2 -0
- package/esm/src/utils/logger/logger.d.ts +7 -0
- package/esm/src/utils/logger/logger.d.ts.map +1 -1
- package/esm/src/utils/logger/logger.js +6 -0
- package/esm/src/utils/logger/request-context.d.ts +2 -0
- package/esm/src/utils/logger/request-context.d.ts.map +1 -1
- package/esm/src/utils/logger/request-context.js +1 -0
- package/esm/src/utils/memoize.d.ts +3 -0
- package/esm/src/utils/memoize.d.ts.map +1 -1
- package/esm/src/utils/memoize.js +3 -0
- package/esm/src/utils/parallel.d.ts +1 -0
- package/esm/src/utils/parallel.d.ts.map +1 -1
- package/esm/src/utils/parallel.js +1 -0
- package/esm/src/utils/path-utils.d.ts +1 -0
- package/esm/src/utils/path-utils.d.ts.map +1 -1
- package/esm/src/utils/path-utils.js +1 -0
- package/esm/src/utils/perf-timer.d.ts +5 -0
- package/esm/src/utils/perf-timer.d.ts.map +1 -1
- package/esm/src/utils/perf-timer.js +5 -0
- package/esm/src/utils/runtime-guards.d.ts +6 -0
- package/esm/src/utils/runtime-guards.d.ts.map +1 -1
- package/esm/src/utils/runtime-guards.js +3 -0
- package/esm/src/utils/version-constant.d.ts +2 -1
- package/esm/src/utils/version-constant.d.ts.map +1 -1
- package/esm/src/utils/version-constant.js +2 -1
- package/esm/src/workflow/api/workflow-client.d.ts +3 -0
- package/esm/src/workflow/api/workflow-client.d.ts.map +1 -1
- package/esm/src/workflow/api/workflow-client.js +2 -0
- package/esm/src/workflow/backends/memory.d.ts +1 -0
- package/esm/src/workflow/backends/memory.d.ts.map +1 -1
- package/esm/src/workflow/backends/memory.js +1 -0
- package/esm/src/workflow/backends/redis/index.d.ts +1 -0
- package/esm/src/workflow/backends/redis/index.d.ts.map +1 -1
- package/esm/src/workflow/backends/redis/index.js +1 -0
- 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/backends/types.js +1 -0
- package/esm/src/workflow/claude-code/event-publisher.d.ts +1 -0
- package/esm/src/workflow/claude-code/event-publisher.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/event-publisher.js +1 -0
- package/esm/src/workflow/dsl/branch.d.ts +1 -0
- package/esm/src/workflow/dsl/branch.d.ts.map +1 -1
- package/esm/src/workflow/dsl/loop.d.ts +4 -0
- package/esm/src/workflow/dsl/loop.d.ts.map +1 -1
- package/esm/src/workflow/dsl/loop.js +3 -0
- package/esm/src/workflow/dsl/map.d.ts +2 -0
- package/esm/src/workflow/dsl/map.d.ts.map +1 -1
- package/esm/src/workflow/dsl/map.js +1 -0
- package/esm/src/workflow/dsl/parallel.d.ts +1 -0
- package/esm/src/workflow/dsl/parallel.d.ts.map +1 -1
- package/esm/src/workflow/dsl/step.d.ts +4 -0
- package/esm/src/workflow/dsl/step.d.ts.map +1 -1
- package/esm/src/workflow/dsl/step.js +3 -0
- package/esm/src/workflow/dsl/sub-workflow.d.ts +1 -0
- package/esm/src/workflow/dsl/sub-workflow.d.ts.map +1 -1
- package/esm/src/workflow/dsl/wait.d.ts +2 -0
- package/esm/src/workflow/dsl/wait.d.ts.map +1 -1
- package/esm/src/workflow/dsl/workflow.d.ts +5 -0
- package/esm/src/workflow/dsl/workflow.d.ts.map +1 -1
- package/esm/src/workflow/dsl/workflow.js +4 -0
- package/esm/src/workflow/executor/workflow-executor.d.ts +1 -3
- package/esm/src/workflow/executor/workflow-executor.d.ts.map +1 -1
- package/esm/src/workflow/react/use-approval.d.ts +3 -3
- package/esm/src/workflow/react/use-approval.d.ts.map +1 -1
- package/esm/src/workflow/react/use-approval.js +1 -3
- package/esm/src/workflow/react/use-workflow-list.d.ts +2 -0
- package/esm/src/workflow/react/use-workflow-list.d.ts.map +1 -1
- package/esm/src/workflow/react/use-workflow-start.d.ts +3 -0
- package/esm/src/workflow/react/use-workflow-start.d.ts.map +1 -1
- package/esm/src/workflow/react/use-workflow-start.js +1 -0
- package/esm/src/workflow/react/use-workflow.d.ts +3 -0
- package/esm/src/workflow/react/use-workflow.d.ts.map +1 -1
- package/esm/src/workflow/react/use-workflow.js +1 -0
- package/esm/src/workflow/schemas/workflow.schema.d.ts +1 -0
- package/esm/src/workflow/schemas/workflow.schema.d.ts.map +1 -1
- package/esm/src/workflow/worker/dynamic-job-entrypoint.d.ts +1 -0
- package/esm/src/workflow/worker/dynamic-job-entrypoint.d.ts.map +1 -1
- package/esm/src/workflow/worker/dynamic-job-entrypoint.js +1 -0
- package/esm/src/workflow/worker/job-entrypoint.d.ts +1 -0
- package/esm/src/workflow/worker/job-entrypoint.d.ts.map +1 -1
- package/esm/src/workflow/worker/job-entrypoint.js +1 -0
- package/esm/src/workflow/worker/workflow-worker.d.ts +1 -0
- package/esm/src/workflow/worker/workflow-worker.d.ts.map +1 -1
- package/esm/src/workflow/worker/workflow-worker.js +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { InferSchema } from "../../extensions/schema/index.js";
|
|
2
2
|
import type { Message } from "../types.js";
|
|
3
|
+
/** Event emitted for AG-UI sse. */
|
|
3
4
|
export interface AgUiSseEvent {
|
|
4
5
|
event: string;
|
|
5
6
|
payload: Record<string, unknown>;
|
|
@@ -82,7 +83,9 @@ export declare const AgUiContextItemSchema: import("../../internal-agents/schema
|
|
|
82
83
|
mimeType: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
83
84
|
text: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
84
85
|
}>>;
|
|
85
|
-
/**
|
|
86
|
+
/** Schema for AG-UI request.
|
|
87
|
+
* @deprecated Use getAgUiRequestSchema()
|
|
88
|
+
*/
|
|
86
89
|
export declare const AgUiRequestSchema: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
87
90
|
threadId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
88
91
|
runId: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
@@ -119,13 +122,22 @@ export declare const AgUiRequestSchema: import("../../internal-agents/schema.js"
|
|
|
119
122
|
model: import("../../internal-agents/schema.js").Schema<string | undefined>;
|
|
120
123
|
maxOutputTokens: import("../../internal-agents/schema.js").Schema<number | undefined>;
|
|
121
124
|
}>>;
|
|
125
|
+
/** Public API contract for AG-UI injected tool. */
|
|
122
126
|
export type AgUiInjectedTool = InferSchema<ReturnType<typeof getAgUiInjectedToolSchema>>;
|
|
127
|
+
/** Public API contract for AG-UI context item. */
|
|
123
128
|
export type AgUiContextItem = InferSchema<ReturnType<typeof getAgUiContextItemSchema>>;
|
|
129
|
+
/** Request payload for AG-UI. */
|
|
124
130
|
export type AgUiRequest = InferSchema<ReturnType<typeof getAgUiRequestSchema>>;
|
|
131
|
+
/** Request payload for parse AG-UI. */
|
|
125
132
|
export declare function parseAgUiRequest(request: Request): Promise<AgUiRequest>;
|
|
133
|
+
/** Error shape for parse AG-UI request or. */
|
|
126
134
|
export declare function parseAgUiRequestOrError(request: Request): Promise<AgUiRequest | Response>;
|
|
135
|
+
/** Normalizes AG-UI messages. */
|
|
127
136
|
export declare function normalizeAgUiMessages(messages: AgUiRequest["messages"]): Message[];
|
|
137
|
+
/** Event emitted for create AG-UI run error. */
|
|
128
138
|
export declare function createAgUiRunErrorEvent(message: string, code?: string): AgUiSseEvent;
|
|
139
|
+
/** Response payload for create AG-UI sse error. */
|
|
129
140
|
export declare function createAgUiSseErrorResponse(event: AgUiSseEvent, status: number): Response;
|
|
141
|
+
/** Response payload for create AG-UI sse. */
|
|
130
142
|
export declare function createAgUiSseResponse(stream: ReadableStream<Uint8Array>): Response;
|
|
131
143
|
//# sourceMappingURL=host-support.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-support.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/host-support.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAa3C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAgBD,eAAO,MAAM,yBAAyB;;;;GASrC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;GAuBpC,CAAC;AAuBF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBhC,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,sBAAsB;;;;GAAwC,CAAC;AAC5E,iDAAiD;AACjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;GAAuC,CAAC;AAC1E
|
|
1
|
+
{"version":3,"file":"host-support.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/host-support.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAa3C,mCAAmC;AACnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAgBD,eAAO,MAAM,yBAAyB;;;;GASrC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;GAuBpC,CAAC;AAuBF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBhC,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,sBAAsB;;;;GAAwC,CAAC;AAC5E,iDAAiD;AACjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;GAAuC,CAAC;AAC1E;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmC,CAAC;AAElE,mDAAmD;AACnD,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC;AACzF,kDAAkD;AAClD,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC;AACvF,iCAAiC;AACjC,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;AA0H/E,uCAAuC;AACvC,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAE7E;AAED,8CAA8C;AAC9C,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,WAAW,GAAG,QAAQ,CAAC,CAKjC;AAED,iCAAiC;AACjC,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,GAAG,OAAO,EAAE,CAiBlF;AAED,gDAAgD;AAChD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,YAAY,CAQpF;AAED,mDAAmD;AACnD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CAUxF;AAED,6CAA6C;AAC7C,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,QAAQ,CASlF"}
|
|
@@ -5,7 +5,7 @@ const AGENT_ID_PATTERN = /^[a-zA-Z0-9_-]+$/;
|
|
|
5
5
|
const MAX_TOOL_PARAMETERS_BYTES = 16_384;
|
|
6
6
|
const MAX_CONTEXT_ITEM_BYTES = 16_384;
|
|
7
7
|
const MAX_CONTEXT_TOTAL_BYTES = 65_536;
|
|
8
|
-
const MAX_FORWARDED_PROPS_BYTES =
|
|
8
|
+
const MAX_FORWARDED_PROPS_BYTES = 196_608;
|
|
9
9
|
const MAX_TEXT_PART_LENGTH = 10_000;
|
|
10
10
|
const MAX_MESSAGES_PER_REQUEST = 100;
|
|
11
11
|
const encoder = new TextEncoder();
|
|
@@ -63,7 +63,7 @@ export const getAgUiRequestSchema = defineSchema((v) => v.object({
|
|
|
63
63
|
messages: v.array(getAgUiMessageSchema()).min(1).max(MAX_MESSAGES_PER_REQUEST),
|
|
64
64
|
tools: v.array(getAgUiInjectedToolSchema()).max(50).default([]),
|
|
65
65
|
context: v.array(getAgUiContextItemSchema()).max(10).default([]).refine((value) => isWithinJsonSizeLimit(value, MAX_CONTEXT_TOTAL_BYTES), { message: "context must be less than 64 KB total" }),
|
|
66
|
-
forwardedProps: v.record(v.string(), v.unknown()).optional().refine((value) => value === undefined || isWithinJsonSizeLimit(value, MAX_FORWARDED_PROPS_BYTES), { message: "forwardedProps must be less than
|
|
66
|
+
forwardedProps: v.record(v.string(), v.unknown()).optional().refine((value) => value === undefined || isWithinJsonSizeLimit(value, MAX_FORWARDED_PROPS_BYTES), { message: "forwardedProps must be less than 192 KB" }),
|
|
67
67
|
model: v.string().optional(),
|
|
68
68
|
maxOutputTokens: v.number().int().positive().optional(),
|
|
69
69
|
}));
|
|
@@ -71,7 +71,9 @@ export const getAgUiRequestSchema = defineSchema((v) => v.object({
|
|
|
71
71
|
export const AgUiInjectedToolSchema = lazySchema(getAgUiInjectedToolSchema);
|
|
72
72
|
/** @deprecated Use getAgUiContextItemSchema() */
|
|
73
73
|
export const AgUiContextItemSchema = lazySchema(getAgUiContextItemSchema);
|
|
74
|
-
/**
|
|
74
|
+
/** Schema for AG-UI request.
|
|
75
|
+
* @deprecated Use getAgUiRequestSchema()
|
|
76
|
+
*/
|
|
75
77
|
export const AgUiRequestSchema = lazySchema(getAgUiRequestSchema);
|
|
76
78
|
function normalizeToolArgs(part) {
|
|
77
79
|
if (isRecord(part.args))
|
|
@@ -165,12 +167,15 @@ function extractAssistantToolOutputMessages(message) {
|
|
|
165
167
|
}];
|
|
166
168
|
});
|
|
167
169
|
}
|
|
170
|
+
/** Request payload for parse AG-UI. */
|
|
168
171
|
export async function parseAgUiRequest(request) {
|
|
169
172
|
return getAgUiRequestSchema().parse(await request.json());
|
|
170
173
|
}
|
|
174
|
+
/** Error shape for parse AG-UI request or. */
|
|
171
175
|
export async function parseAgUiRequestOrError(request) {
|
|
172
176
|
return await parseAgUiJsonRequestOrError(() => parseAgUiRequest(request), "Invalid AG-UI request");
|
|
173
177
|
}
|
|
178
|
+
/** Normalizes AG-UI messages. */
|
|
174
179
|
export function normalizeAgUiMessages(messages) {
|
|
175
180
|
return messages.flatMap((message) => {
|
|
176
181
|
const normalizedMessage = {
|
|
@@ -188,6 +193,7 @@ export function normalizeAgUiMessages(messages) {
|
|
|
188
193
|
];
|
|
189
194
|
});
|
|
190
195
|
}
|
|
196
|
+
/** Event emitted for create AG-UI run error. */
|
|
191
197
|
export function createAgUiRunErrorEvent(message, code) {
|
|
192
198
|
return {
|
|
193
199
|
event: "RunError",
|
|
@@ -197,6 +203,7 @@ export function createAgUiRunErrorEvent(message, code) {
|
|
|
197
203
|
},
|
|
198
204
|
};
|
|
199
205
|
}
|
|
206
|
+
/** Response payload for create AG-UI sse error. */
|
|
200
207
|
export function createAgUiSseErrorResponse(event, status) {
|
|
201
208
|
return new Response(decoder.decode(formatAgUiEvent(event.event, event.payload)), {
|
|
202
209
|
status,
|
|
@@ -208,6 +215,7 @@ export function createAgUiSseErrorResponse(event, status) {
|
|
|
208
215
|
},
|
|
209
216
|
});
|
|
210
217
|
}
|
|
218
|
+
/** Response payload for create AG-UI sse. */
|
|
211
219
|
export function createAgUiSseResponse(stream) {
|
|
212
220
|
return new Response(stream, {
|
|
213
221
|
headers: {
|
|
@@ -6,13 +6,16 @@ export declare const getAgUiResumeSignalSchema: () => import("../../internal-age
|
|
|
6
6
|
result: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
7
7
|
isError: import("../../internal-agents/schema.js").Schema<boolean>;
|
|
8
8
|
}>>;
|
|
9
|
-
/**
|
|
9
|
+
/** Schema for AG-UI resume signal.
|
|
10
|
+
* @deprecated Use getAgUiResumeSignalSchema()
|
|
11
|
+
*/
|
|
10
12
|
export declare const AgUiResumeSignalSchema: import("../../internal-agents/schema.js").Schema<import("../../extensions/schema/schema-validator.js").InferShape<{
|
|
11
13
|
type: import("../../internal-agents/schema.js").Schema<"tool_result">;
|
|
12
14
|
toolCallId: import("../../internal-agents/schema.js").Schema<string>;
|
|
13
15
|
result: import("../../internal-agents/schema.js").Schema<unknown>;
|
|
14
16
|
isError: import("../../internal-agents/schema.js").Schema<boolean>;
|
|
15
17
|
}>>;
|
|
18
|
+
/** Public API contract for AG-UI resume signal. */
|
|
16
19
|
export type AgUiResumeSignal = InferSchema<ReturnType<typeof getAgUiResumeSignalSchema>>;
|
|
17
20
|
type ResumeValue = {
|
|
18
21
|
result: unknown;
|
|
@@ -27,13 +30,17 @@ export interface AgUiRunControlHandlerOptions {
|
|
|
27
30
|
requestOrCtx: unknown;
|
|
28
31
|
}) => Promise<string | null>);
|
|
29
32
|
}
|
|
33
|
+
/** Options accepted by AG-UI resume handler. */
|
|
30
34
|
export interface AgUiResumeHandlerOptions extends AgUiRunControlHandlerOptions {
|
|
31
35
|
sessionManager: RunResumeSessionManager<ResumeValue>;
|
|
32
36
|
}
|
|
37
|
+
/** Options accepted by AG-UI cancel handler. */
|
|
33
38
|
export interface AgUiCancelHandlerOptions<T = unknown> extends AgUiRunControlHandlerOptions {
|
|
34
39
|
sessionManager: RunResumeSessionManager<T>;
|
|
35
40
|
}
|
|
41
|
+
/** Handler for create AG-UI resume. */
|
|
36
42
|
export declare function createAgUiResumeHandler(options: AgUiResumeHandlerOptions): (requestOrCtx: unknown) => Promise<Response>;
|
|
43
|
+
/** Handler for create AG-UI cancel. */
|
|
37
44
|
export declare function createAgUiCancelHandler<T = unknown>(options: AgUiCancelHandlerOptions<T>): (requestOrCtx: unknown) => Promise<Response>;
|
|
38
45
|
export {};
|
|
39
46
|
//# sourceMappingURL=run-control.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-control.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/run-control.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAEL,uBAAuB,EAGxB,MAAM,8BAA8B,CAAC;AAKtC,eAAO,MAAM,yBAAyB;;;;;GASrC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"run-control.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/run-control.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAEL,uBAAuB,EAGxB,MAAM,8BAA8B,CAAC;AAKtC,eAAO,MAAM,yBAAyB;;;;;GASrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;GAAwC,CAAC;AAE5E,mDAAmD;AACnD,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC;AAEzF,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAMF,MAAM,WAAW,4BAA4B;IAC3C,YAAY,CAAC,EACT,CAAC,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,OAAO,CAAA;KAAE,KAAK,MAAM,GAAG,IAAI,CAAC,GACvE,CAAC,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;CACtF;AAED,gDAAgD;AAChD,MAAM,WAAW,wBAAyB,SAAQ,4BAA4B;IAC5E,cAAc,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;CACtD;AAED,gDAAgD;AAChD,MAAM,WAAW,wBAAwB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,4BAA4B;IACzF,cAAc,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC;CAC5C;AAaD,uCAAuC;AACvC,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,wBAAwB,GAChC,CAAC,YAAY,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CA2D9C;AAED,uCAAuC;AACvC,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,OAAO,EACjD,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACnC,CAAC,YAAY,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAgB9C"}
|
|
@@ -11,7 +11,9 @@ export const getAgUiResumeSignalSchema = defineSchema((v) => v.discriminatedUnio
|
|
|
11
11
|
isError: v.boolean().optional().default(false),
|
|
12
12
|
}),
|
|
13
13
|
]));
|
|
14
|
-
/**
|
|
14
|
+
/** Schema for AG-UI resume signal.
|
|
15
|
+
* @deprecated Use getAgUiResumeSignalSchema()
|
|
16
|
+
*/
|
|
15
17
|
export const AgUiResumeSignalSchema = lazySchema(getAgUiResumeSignalSchema);
|
|
16
18
|
function getRunId(pathname, regex) {
|
|
17
19
|
return regex.exec(pathname)?.[1] ?? null;
|
|
@@ -22,6 +24,7 @@ async function resolveRunId(requestOrCtx, request, options, regex) {
|
|
|
22
24
|
return explicit;
|
|
23
25
|
return getRunId(new URL(request.url).pathname, regex);
|
|
24
26
|
}
|
|
27
|
+
/** Handler for create AG-UI resume. */
|
|
25
28
|
export function createAgUiResumeHandler(options) {
|
|
26
29
|
return async function POST(requestOrCtx) {
|
|
27
30
|
const request = extractRequest(requestOrCtx);
|
|
@@ -68,6 +71,7 @@ export function createAgUiResumeHandler(options) {
|
|
|
68
71
|
}
|
|
69
72
|
};
|
|
70
73
|
}
|
|
74
|
+
/** Handler for create AG-UI cancel. */
|
|
71
75
|
export function createAgUiCancelHandler(options) {
|
|
72
76
|
return async function DELETE(requestOrCtx) {
|
|
73
77
|
const request = extractRequest(requestOrCtx);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type AgUiBrowserResponseEncoder, type AgUiBrowserResponseExecution } from "./browser-response-stream.js";
|
|
2
2
|
import { type AgUiRuntimeRequest } from "../runtime/ag-ui-contract.js";
|
|
3
3
|
import type { AgentResponse } from "../types.js";
|
|
4
|
+
/** Input payload for create AG-UI runtime browser response. */
|
|
4
5
|
export interface CreateAgUiRuntimeBrowserResponseInput<TChunk, TState> {
|
|
5
6
|
agUiInput: AgUiRuntimeRequest;
|
|
6
7
|
defaults?: {
|
|
@@ -14,5 +15,6 @@ export interface CreateAgUiRuntimeBrowserResponseInput<TChunk, TState> {
|
|
|
14
15
|
onChunk?: (state: TState, chunk: TChunk) => void;
|
|
15
16
|
getFinalResponse?: (state: TState) => AgentResponse | null;
|
|
16
17
|
}
|
|
18
|
+
/** Response payload for create AG-UI runtime browser. */
|
|
17
19
|
export declare function createAgUiRuntimeBrowserResponse<TChunk, TState>(input: CreateAgUiRuntimeBrowserResponseInput<TChunk, TState>): Response;
|
|
18
20
|
//# sourceMappingURL=runtime-browser-response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-browser-response.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-browser-response.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EAElC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,qCAAqC,CAAC,MAAM,EAAE,MAAM;IACnE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,4BAA4B,CAAC,MAAM,CAAC,CAAC;IAChD,OAAO,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAC7D,KAAK,EAAE,qCAAqC,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3D,QAAQ,CAYV"}
|
|
1
|
+
{"version":3,"file":"runtime-browser-response.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-browser-response.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EAElC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,+DAA+D;AAC/D,MAAM,WAAW,qCAAqC,CAAC,MAAM,EAAE,MAAM;IACnE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,4BAA4B,CAAC,MAAM,CAAC,CAAC;IAChD,OAAO,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;CAC5D;AAED,yDAAyD;AACzD,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAC7D,KAAK,EAAE,qCAAqC,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3D,QAAQ,CAYV"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAgUiBrowserResponseStream, } from "./browser-response-stream.js";
|
|
2
2
|
import { createAgUiSseResponse } from "./host-support.js";
|
|
3
3
|
import { normalizeAgUiBrowserRuntimeRequest, } from "../runtime/ag-ui-contract.js";
|
|
4
|
+
/** Response payload for create AG-UI runtime browser. */
|
|
4
5
|
export function createAgUiRuntimeBrowserResponse(input) {
|
|
5
6
|
const stream = createAgUiBrowserResponseStream({
|
|
6
7
|
agUiInput: normalizeAgUiBrowserRuntimeRequest(input.agUiInput, input.defaults),
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import type { AgUiRuntimeStreamEvent } from "./browser-encoder.js";
|
|
2
2
|
import type { ChatFinishReason, ChatStreamEvent } from "../../chat/protocol.js";
|
|
3
|
+
/** State for AG-UI runtime chat stream encoder. */
|
|
3
4
|
export interface AgUiRuntimeChatStreamEncoderState {
|
|
4
5
|
isStepOpen: boolean;
|
|
5
6
|
finishReason: ChatFinishReason;
|
|
6
7
|
}
|
|
8
|
+
/** Public API contract for AG-UI runtime chat stream encoder. */
|
|
7
9
|
export interface AgUiRuntimeChatStreamEncoder {
|
|
8
10
|
state: AgUiRuntimeChatStreamEncoderState;
|
|
9
11
|
encode: (event: AgUiRuntimeStreamEvent) => ChatStreamEvent[];
|
|
10
12
|
}
|
|
13
|
+
/** Options accepted by create AG-UI runtime chat stream encoder. */
|
|
11
14
|
export interface CreateAgUiRuntimeChatStreamEncoderOptions {
|
|
12
15
|
responseMessageId: string;
|
|
13
16
|
sendReasoning?: boolean;
|
|
14
17
|
onError?: (error: unknown) => string;
|
|
15
18
|
}
|
|
19
|
+
/** Create AG-UI runtime chat stream encoder. */
|
|
16
20
|
export declare function createAgUiRuntimeChatStreamEncoder(options: CreateAgUiRuntimeChatStreamEncoderOptions): AgUiRuntimeChatStreamEncoder;
|
|
17
21
|
//# sourceMappingURL=runtime-chat-stream-encoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-chat-stream-encoder.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-chat-stream-encoder.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEhF,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,iCAAiC,CAAC;IACzC,MAAM,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,eAAe,EAAE,CAAC;CAC9D;AAED,MAAM,WAAW,yCAAyC;IACxD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAAC;CACtC;AAoDD,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,yCAAyC,GACjD,4BAA4B,CAyR9B"}
|
|
1
|
+
{"version":3,"file":"runtime-chat-stream-encoder.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-chat-stream-encoder.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEhF,mDAAmD;AACnD,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,gBAAgB,CAAC;CAChC;AAED,iEAAiE;AACjE,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,iCAAiC,CAAC;IACzC,MAAM,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,eAAe,EAAE,CAAC;CAC9D;AAED,oEAAoE;AACpE,MAAM,WAAW,yCAAyC;IACxD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAAC;CACtC;AAoDD,gDAAgD;AAChD,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,yCAAyC,GACjD,4BAA4B,CAyR9B"}
|
|
@@ -32,6 +32,7 @@ function isEmptyRecord(value) {
|
|
|
32
32
|
function formatErrorText(error, onError) {
|
|
33
33
|
return onError ? onError(error) : error instanceof Error ? error.message : String(error);
|
|
34
34
|
}
|
|
35
|
+
/** Create AG-UI runtime chat stream encoder. */
|
|
35
36
|
export function createAgUiRuntimeChatStreamEncoder(options) {
|
|
36
37
|
const state = {
|
|
37
38
|
isStepOpen: false,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { type AgUiBrowserEncodedEvent, type AgUiBrowserEncoderState, type AgUiBrowserRunFinishedMetadata, type AgUiRuntimeStreamEvent } from "./browser-encoder.js";
|
|
2
2
|
import type { AgentResponse } from "../types.js";
|
|
3
|
+
/** Public API contract for AG-UI runtime event encoder. */
|
|
3
4
|
export interface AgUiRuntimeEventEncoder {
|
|
4
5
|
state: AgUiBrowserEncoderState;
|
|
5
6
|
encode: (event: AgUiRuntimeStreamEvent) => AgUiBrowserEncodedEvent[];
|
|
6
7
|
finalize: (response: AgentResponse | null) => AgUiBrowserEncodedEvent[];
|
|
7
8
|
}
|
|
9
|
+
/** Options accepted by create AG-UI runtime event encoder. */
|
|
8
10
|
export interface CreateAgUiRuntimeEventEncoderOptions {
|
|
9
11
|
initialMetadata?: Partial<AgUiBrowserRunFinishedMetadata>;
|
|
10
12
|
}
|
|
13
|
+
/** Create AG-UI runtime event encoder. */
|
|
11
14
|
export declare function createAgUiRuntimeEventEncoder(options?: CreateAgUiRuntimeEventEncoderOptions): AgUiRuntimeEventEncoder;
|
|
12
15
|
//# sourceMappingURL=runtime-event-encoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-event-encoder.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-event-encoder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAI5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,MAAM,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,uBAAuB,EAAE,CAAC;IACrE,QAAQ,EAAE,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,KAAK,uBAAuB,EAAE,CAAC;CACzE;AAED,MAAM,WAAW,oCAAoC;IACnD,eAAe,CAAC,EAAE,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC3D;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,GAAE,oCAAyC,GACjD,uBAAuB,CA+CzB"}
|
|
1
|
+
{"version":3,"file":"runtime-event-encoder.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-event-encoder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAI5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,2DAA2D;AAC3D,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,MAAM,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,uBAAuB,EAAE,CAAC;IACrE,QAAQ,EAAE,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,KAAK,uBAAuB,EAAE,CAAC;CACzE;AAED,8DAA8D;AAC9D,MAAM,WAAW,oCAAoC;IACnD,eAAe,CAAC,EAAE,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC3D;AAED,0CAA0C;AAC1C,wBAAgB,6BAA6B,CAC3C,OAAO,GAAE,oCAAyC,GACjD,uBAAuB,CA+CzB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createAgUiBrowserEncoderState, finalizeAgUiBrowserEvents, mapRuntimeStreamEventToAgUiBrowserEvents, } from "./browser-encoder.js";
|
|
2
|
+
/** Create AG-UI runtime event encoder. */
|
|
2
3
|
export function createAgUiRuntimeEventEncoder(options = {}) {
|
|
3
4
|
const state = createAgUiBrowserEncoderState();
|
|
4
5
|
const toolInputs = new Map();
|
|
@@ -2,17 +2,20 @@ import { type RunResumeSessionManager } from "../runtime/index.js";
|
|
|
2
2
|
import type { Agent } from "../types.js";
|
|
3
3
|
import { type AgUiRuntimeRequest } from "../runtime/ag-ui-contract.js";
|
|
4
4
|
import { type AgUiResumeValue } from "./tool-shared.js";
|
|
5
|
+
/** Context for AG-UI runtime lifecycle. */
|
|
5
6
|
export interface AgUiRuntimeLifecycleContext {
|
|
6
7
|
request: AgUiRuntimeRequest;
|
|
7
8
|
toolCallId?: string;
|
|
8
9
|
error?: unknown;
|
|
9
10
|
}
|
|
11
|
+
/** Input payload for AG-UI runtime handler execute. */
|
|
10
12
|
export interface AgUiRuntimeHandlerExecuteInput {
|
|
11
13
|
request: Request;
|
|
12
14
|
agUiInput: AgUiRuntimeRequest;
|
|
13
15
|
context: Record<string, unknown>;
|
|
14
16
|
createDefaultResponse?: () => Promise<Response>;
|
|
15
17
|
}
|
|
18
|
+
/** Public API contract for AG-UI runtime handler execute. */
|
|
16
19
|
export type AgUiRuntimeHandlerExecute = (input: AgUiRuntimeHandlerExecuteInput) => Promise<Response> | Response;
|
|
17
20
|
export interface AgUiRuntimeRequestGateInput {
|
|
18
21
|
request: Request;
|
|
@@ -23,6 +26,7 @@ export interface AgUiRuntimeValidationErrorInput {
|
|
|
23
26
|
response: Response;
|
|
24
27
|
}
|
|
25
28
|
export type AgUiRuntimeValidationErrorResponse = (input: AgUiRuntimeValidationErrorInput) => Promise<Response> | Response;
|
|
29
|
+
/** Options accepted by AG-UI runtime handler. */
|
|
26
30
|
export interface AgUiRuntimeHandlerOptions {
|
|
27
31
|
context?: Record<string, unknown> | ((request: Request) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
28
32
|
beforeParse?: AgUiRuntimeRequestGate;
|
|
@@ -33,12 +37,15 @@ export interface AgUiRuntimeHandlerOptions {
|
|
|
33
37
|
onFinish?: (context: AgUiRuntimeLifecycleContext) => Promise<void> | void;
|
|
34
38
|
onError?: (context: AgUiRuntimeLifecycleContext) => Promise<void> | void;
|
|
35
39
|
}
|
|
40
|
+
/** Public API contract for AG-UI runtime handler config with agent. */
|
|
36
41
|
export interface AgUiRuntimeHandlerConfigWithAgent extends AgUiRuntimeHandlerOptions {
|
|
37
42
|
agent: Agent;
|
|
38
43
|
}
|
|
44
|
+
/** Configuration used by AG-UI runtime handler. */
|
|
39
45
|
export type AgUiRuntimeHandlerConfig = AgUiRuntimeHandlerConfigWithAgent | (AgUiRuntimeHandlerOptions & {
|
|
40
46
|
agent?: undefined;
|
|
41
47
|
execute: AgUiRuntimeHandlerExecute;
|
|
42
48
|
});
|
|
49
|
+
/** Handler for create AG-UI runtime. */
|
|
43
50
|
export declare function createAgUiRuntimeHandler(config: AgUiRuntimeHandlerConfig): (requestOrCtx: unknown) => Promise<Response>;
|
|
44
51
|
//# sourceMappingURL=runtime-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-handler.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-handler.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,kBAAkB,CAAC;AAkB9E,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,kBAAkB,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAqRD,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAC;CACjD;AAED,MAAM,MAAM,yBAAyB,GAAG,CACtC,KAAK,EAAE,8BAA8B,KAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAElC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,2BAA2B,KAC/B,OAAO,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC;AAExE,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,MAAM,kCAAkC,GAAG,CAC/C,KAAK,EAAE,+BAA+B,KACnC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAElC,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EACJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACvF,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,uBAAuB,CAAC,EAAE,kCAAkC,CAAC;IAC7D,cAAc,CAAC,EAAE,uBAAuB,CAAC,eAAe,CAAC,CAAC;IAC1D,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAChF,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1E,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC1E;AAED,MAAM,WAAW,iCAAkC,SAAQ,yBAAyB;IAClF,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,MAAM,wBAAwB,GAChC,iCAAiC,GACjC,CAAC,yBAAyB,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,yBAAyB,CAAA;CAAE,CAAC,CAAC;AAE5F,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,CAAC,YAAY,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAmJ9C"}
|
|
1
|
+
{"version":3,"file":"runtime-handler.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-handler.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,kBAAkB,CAAC;AAkB9E,2CAA2C;AAC3C,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,kBAAkB,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAqRD,uDAAuD;AACvD,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAC;CACjD;AAED,6DAA6D;AAC7D,MAAM,MAAM,yBAAyB,GAAG,CACtC,KAAK,EAAE,8BAA8B,KAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAElC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,2BAA2B,KAC/B,OAAO,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAC;AAExE,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,MAAM,kCAAkC,GAAG,CAC/C,KAAK,EAAE,+BAA+B,KACnC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AAElC,iDAAiD;AACjD,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EACJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACvF,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,uBAAuB,CAAC,EAAE,kCAAkC,CAAC;IAC7D,cAAc,CAAC,EAAE,uBAAuB,CAAC,eAAe,CAAC,CAAC;IAC1D,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAChF,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1E,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC1E;AAED,uEAAuE;AACvE,MAAM,WAAW,iCAAkC,SAAQ,yBAAyB;IAClF,KAAK,EAAE,KAAK,CAAC;CACd;AAED,mDAAmD;AACnD,MAAM,MAAM,wBAAwB,GAChC,iCAAiC,GACjC,CAAC,yBAAyB,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,yBAAyB,CAAA;CAAE,CAAC,CAAC;AAE5F,wCAAwC;AACxC,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,CAAC,YAAY,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAmJ9C"}
|
|
@@ -200,6 +200,7 @@ async function createAgUiRuntimeInjectedToolsStreamResponse(agent, request, base
|
|
|
200
200
|
},
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
+
/** Handler for create AG-UI runtime. */
|
|
203
204
|
export function createAgUiRuntimeHandler(config) {
|
|
204
205
|
if (!config.agent && !config.execute) {
|
|
205
206
|
throw new Error("createAgUiRuntimeHandler requires either an agent or an execute handler.");
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Message } from "../types.js";
|
|
2
2
|
import type { AgUiRuntimeRequest } from "../runtime/ag-ui-contract.js";
|
|
3
|
+
/** Normalizes AG-UI runtime messages. */
|
|
3
4
|
export declare function normalizeAgUiRuntimeMessages(messages: AgUiRuntimeRequest["messages"]): Message[];
|
|
4
5
|
//# sourceMappingURL=runtime-support.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-support.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAevE,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,kBAAkB,CAAC,UAAU,CAAC,GACvC,OAAO,EAAE,CA6CX"}
|
|
1
|
+
{"version":3,"file":"runtime-support.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/runtime-support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAevE,yCAAyC;AACzC,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,kBAAkB,CAAC,UAAU,CAAC,GACvC,OAAO,EAAE,CA6CX"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Tool } from "../../tool/types.js";
|
|
2
2
|
import type { RunResumeSessionManager } from "../runtime/index.js";
|
|
3
3
|
import type { Agent } from "../types.js";
|
|
4
|
+
/** Public API contract for AG-UI resume value. */
|
|
4
5
|
export type AgUiResumeValue = {
|
|
5
6
|
result: unknown;
|
|
6
7
|
isError: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-shared.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/tool-shared.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAIpE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,oBAAoB,EAC1B,cAAc,EAAE,uBAAuB,CAAC,eAAe,CAAC,GACvD,IAAI,CA0BN;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,oBAAoB,EAAE,EAC7B,cAAc,EAAE,uBAAuB,CAAC,eAAe,CAAC,GACvD,KAAK,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAwB1B"}
|
|
1
|
+
{"version":3,"file":"tool-shared.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/tool-shared.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,kDAAkD;AAClD,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAIpE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,oBAAoB,EAC1B,cAAc,EAAE,uBAAuB,CAAC,eAAe,CAAC,GACvD,IAAI,CA0BN;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,oBAAoB,EAAE,EAC7B,cAAc,EAAE,uBAAuB,CAAC,eAAe,CAAC,GACvD,KAAK,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAwB1B"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { AgUiBrowserFinalizeTracker } from "./browser-finalize-tracker.js";
|
|
2
2
|
import type { AgUiChunkEncoderBridge } from "./chunk-encoder-bridge.js";
|
|
3
3
|
import { type CreateAgUiRuntimeBrowserResponseInput } from "./runtime-browser-response.js";
|
|
4
|
+
/** Input payload for create AG-UI tracked browser response. */
|
|
4
5
|
export interface CreateAgUiTrackedBrowserResponseInput<TChunk> extends Omit<CreateAgUiRuntimeBrowserResponseInput<TChunk, null>, "encoder" | "initialState" | "onChunk" | "getFinalResponse"> {
|
|
5
6
|
chunkEncoder: Pick<AgUiChunkEncoderBridge<TChunk>, "encode" | "finalize">;
|
|
6
7
|
finalizeTracker: Pick<AgUiBrowserFinalizeTracker<TChunk>, "observeChunk" | "observeEncodedEvents" | "getFinalResponse">;
|
|
7
8
|
}
|
|
9
|
+
/** Response payload for create AG-UI tracked browser. */
|
|
8
10
|
export declare function createAgUiTrackedBrowserResponse<TChunk>(input: CreateAgUiTrackedBrowserResponseInput<TChunk>): Response;
|
|
9
11
|
//# sourceMappingURL=tracked-browser-response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracked-browser-response.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/tracked-browser-response.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAEL,KAAK,qCAAqC,EAC3C,MAAM,+BAA+B,CAAC;AAGvC,MAAM,WAAW,qCAAqC,CAAC,MAAM,CAAE,SAC7D,IAAI,CACF,qCAAqC,CAAC,MAAM,EAAE,IAAI,CAAC,EACnD,SAAS,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,CAC5D;IACD,YAAY,EAAE,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC,CAAC;IAC1E,eAAe,EAAE,IAAI,CACnB,0BAA0B,CAAC,MAAM,CAAC,EAClC,cAAc,GAAG,sBAAsB,GAAG,kBAAkB,CAC7D,CAAC;CACH;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EACrD,KAAK,EAAE,qCAAqC,CAAC,MAAM,CAAC,GACnD,QAAQ,CAkBV"}
|
|
1
|
+
{"version":3,"file":"tracked-browser-response.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/tracked-browser-response.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAEL,KAAK,qCAAqC,EAC3C,MAAM,+BAA+B,CAAC;AAGvC,+DAA+D;AAC/D,MAAM,WAAW,qCAAqC,CAAC,MAAM,CAAE,SAC7D,IAAI,CACF,qCAAqC,CAAC,MAAM,EAAE,IAAI,CAAC,EACnD,SAAS,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,CAC5D;IACD,YAAY,EAAE,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC,CAAC;IAC1E,eAAe,EAAE,IAAI,CACnB,0BAA0B,CAAC,MAAM,CAAC,EAClC,cAAc,GAAG,sBAAsB,GAAG,kBAAkB,CAC7D,CAAC;CACH;AAED,yDAAyD;AACzD,wBAAgB,gCAAgC,CAAC,MAAM,EACrD,KAAK,EAAE,qCAAqC,CAAC,MAAM,CAAC,GACnD,QAAQ,CAkBV"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Public API contract for default research artifact paths. */
|
|
1
2
|
export interface DefaultResearchArtifactPaths {
|
|
2
3
|
topicSlug: string;
|
|
3
4
|
topicRootPath: string;
|
|
@@ -6,15 +7,18 @@ export interface DefaultResearchArtifactPaths {
|
|
|
6
7
|
findingsPath: string;
|
|
7
8
|
sourcesPath: string;
|
|
8
9
|
}
|
|
10
|
+
/** Should inject default research artifact path helper. */
|
|
9
11
|
export declare function shouldInjectDefaultResearchArtifactPath(input: {
|
|
10
12
|
description: string;
|
|
11
13
|
prompt: string;
|
|
12
14
|
}): boolean;
|
|
15
|
+
/** Builds default research artifact path reminder. */
|
|
13
16
|
export declare function buildDefaultResearchArtifactPathReminder(input: {
|
|
14
17
|
description: string;
|
|
15
18
|
prompt: string;
|
|
16
19
|
runId?: string;
|
|
17
20
|
}): string | null;
|
|
21
|
+
/** Builds default research artifact paths. */
|
|
18
22
|
export declare function buildDefaultResearchArtifactPaths(input: {
|
|
19
23
|
description: string;
|
|
20
24
|
prompt: string;
|
|
@@ -24,6 +28,7 @@ export declare function buildDefaultResearchArtifactPathsFromCurrentReportPath(i
|
|
|
24
28
|
currentReportPath: string;
|
|
25
29
|
runId?: string;
|
|
26
30
|
}): DefaultResearchArtifactPaths | null;
|
|
31
|
+
/** Applies default research artifact path. */
|
|
27
32
|
export declare function withDefaultResearchArtifactPath(input: {
|
|
28
33
|
description: string;
|
|
29
34
|
prompt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-research-artifact-policy.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/artifacts/default-research-artifact-policy.ts"],"names":[],"mappings":"AAiEA,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,uCAAuC,CAAC,KAAK,EAAE;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAaV;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,MAAM,GAAG,IAAI,CAehB;AAED,wBAAgB,iCAAiC,CAAC,KAAK,EAAE;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,4BAA4B,CAe/B;AAED,wBAAgB,sDAAsD,CAAC,KAAK,EAAE;IAC5E,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,4BAA4B,GAAG,IAAI,CAoBtC;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,MAAM,CAOT"}
|
|
1
|
+
{"version":3,"file":"default-research-artifact-policy.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/artifacts/default-research-artifact-policy.ts"],"names":[],"mappings":"AAiEA,+DAA+D;AAC/D,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,2DAA2D;AAC3D,wBAAgB,uCAAuC,CAAC,KAAK,EAAE;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAaV;AAED,sDAAsD;AACtD,wBAAgB,wCAAwC,CAAC,KAAK,EAAE;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,MAAM,GAAG,IAAI,CAehB;AAED,8CAA8C;AAC9C,wBAAgB,iCAAiC,CAAC,KAAK,EAAE;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,4BAA4B,CAe/B;AAED,wBAAgB,sDAAsD,CAAC,KAAK,EAAE;IAC5E,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,4BAA4B,GAAG,IAAI,CAoBtC;AAED,8CAA8C;AAC9C,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,MAAM,CAOT"}
|
|
@@ -51,6 +51,7 @@ function extractResearchTopic(input) {
|
|
|
51
51
|
}
|
|
52
52
|
return promptTopic;
|
|
53
53
|
}
|
|
54
|
+
/** Should inject default research artifact path helper. */
|
|
54
55
|
export function shouldInjectDefaultResearchArtifactPath(input) {
|
|
55
56
|
if (!RESEARCH_TASK_CUE_PATTERN.test(input.description) &&
|
|
56
57
|
!RESEARCH_TASK_CUE_PATTERN.test(input.prompt)) {
|
|
@@ -61,6 +62,7 @@ export function shouldInjectDefaultResearchArtifactPath(input) {
|
|
|
61
62
|
}
|
|
62
63
|
return !hasAnyArtifactPath(input.prompt);
|
|
63
64
|
}
|
|
65
|
+
/** Builds default research artifact path reminder. */
|
|
64
66
|
export function buildDefaultResearchArtifactPathReminder(input) {
|
|
65
67
|
if (!shouldInjectDefaultResearchArtifactPath(input)) {
|
|
66
68
|
return null;
|
|
@@ -75,6 +77,7 @@ export function buildDefaultResearchArtifactPathReminder(input) {
|
|
|
75
77
|
"Use create_file or update_file yourself before finishing.",
|
|
76
78
|
].join("\n");
|
|
77
79
|
}
|
|
80
|
+
/** Builds default research artifact paths. */
|
|
78
81
|
export function buildDefaultResearchArtifactPaths(input) {
|
|
79
82
|
const topic = extractResearchTopic(input);
|
|
80
83
|
const topicSlug = topic ? slugifyArtifactSegment(topic) : "research-report";
|
|
@@ -109,6 +112,7 @@ export function buildDefaultResearchArtifactPathsFromCurrentReportPath(input) {
|
|
|
109
112
|
sourcesPath: `${topicRootPath}/sources.md`,
|
|
110
113
|
};
|
|
111
114
|
}
|
|
115
|
+
/** Applies default research artifact path. */
|
|
112
116
|
export function withDefaultResearchArtifactPath(input) {
|
|
113
117
|
const reminder = buildDefaultResearchArtifactPathReminder(input);
|
|
114
118
|
if (!reminder) {
|
|
@@ -1,35 +1,44 @@
|
|
|
1
1
|
import type { ChatSystemMessage } from "../../chat/types.js";
|
|
2
2
|
import { type RemoteToolSource } from "../../tool/index.js";
|
|
3
3
|
import { type DefaultResearchArtifactPaths } from "./default-research-artifact-policy.js";
|
|
4
|
+
/** Public API contract for default research artifacts. */
|
|
4
5
|
export type DefaultResearchArtifacts = DefaultResearchArtifactPaths;
|
|
6
|
+
/** Context for default research artifact. */
|
|
5
7
|
export interface DefaultResearchArtifactContext {
|
|
6
8
|
availableToolNames?: string[];
|
|
7
9
|
projectId?: string | null;
|
|
8
10
|
parentRunId?: string;
|
|
9
11
|
defaultResearchArtifacts?: DefaultResearchArtifacts | null;
|
|
10
12
|
}
|
|
13
|
+
/** Public API contract for default research artifact logger. */
|
|
11
14
|
export interface DefaultResearchArtifactLogger {
|
|
12
15
|
debug?: (message: string, metadata?: Record<string, unknown>) => void;
|
|
13
16
|
}
|
|
17
|
+
/** Extract latest user text. */
|
|
14
18
|
export declare function extractLatestUserText(messages: readonly unknown[]): string | null;
|
|
19
|
+
/** Fetch latest conversation user text helper. */
|
|
15
20
|
export declare function fetchLatestConversationUserText(input: {
|
|
16
21
|
apiUrl: string;
|
|
17
22
|
authToken: string;
|
|
18
23
|
conversationId?: string;
|
|
19
24
|
logger?: DefaultResearchArtifactLogger;
|
|
20
25
|
}): Promise<string | null>;
|
|
26
|
+
/** Update default research artifacts helper. */
|
|
21
27
|
export declare function updateDefaultResearchArtifacts(input: {
|
|
22
28
|
taskContext: DefaultResearchArtifactContext;
|
|
23
29
|
latestUserText: string | null;
|
|
24
30
|
system: string | ChatSystemMessage[];
|
|
25
31
|
}): string | ChatSystemMessage[];
|
|
32
|
+
/** Apply default research artifact path helper. */
|
|
26
33
|
export declare function applyDefaultResearchArtifactPath(toolName: string, toolInput: Record<string, unknown>, taskContext: DefaultResearchArtifactContext): Record<string, unknown>;
|
|
34
|
+
/** Should retry create research artifact as update helper. */
|
|
27
35
|
export declare function shouldRetryCreateResearchArtifactAsUpdate(input: {
|
|
28
36
|
toolName: string;
|
|
29
37
|
toolInput: Record<string, unknown>;
|
|
30
38
|
taskContext: DefaultResearchArtifactContext;
|
|
31
39
|
error: unknown;
|
|
32
40
|
}): boolean;
|
|
41
|
+
/** Mirror default research run artifact helper. */
|
|
33
42
|
export declare function mirrorDefaultResearchRunArtifact(input: {
|
|
34
43
|
toolName: string;
|
|
35
44
|
toolInput: Record<string, unknown>;
|
|
@@ -39,6 +48,7 @@ export declare function mirrorDefaultResearchRunArtifact(input: {
|
|
|
39
48
|
executeContext: Record<string, unknown> | undefined;
|
|
40
49
|
executeTool: (toolName: string, args: Record<string, unknown>, context: Record<string, unknown> | undefined) => Promise<unknown>;
|
|
41
50
|
}): Promise<void>;
|
|
51
|
+
/** Handler for create default research run artifact mirror. */
|
|
42
52
|
export declare function createDefaultResearchRunArtifactMirrorHandler(input: {
|
|
43
53
|
taskContext: DefaultResearchArtifactContext;
|
|
44
54
|
remoteToolSource?: Pick<RemoteToolSource, "executeTool"> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-research-artifact-support.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/artifacts/default-research-artifact-support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG1F,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AAEpE,MAAM,WAAW,8BAA8B;IAC7C,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC5D;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACvE;AAyCD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,GAAG,IAAI,CA+BjF;AAYD,wBAAsB,+BAA+B,CAAC,KAAK,EAAE;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA8CzB;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE;IACpD,WAAW,EAAE,8BAA8B,CAAC;IAC5C,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAAC;CACtC,GAAG,MAAM,GAAG,iBAAiB,EAAE,CAwB/B;AAuBD,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,WAAW,EAAE,8BAA8B,GAC1C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA+BzB;AAED,wBAAgB,yCAAyC,CAAC,KAAK,EAAE;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,WAAW,EAAE,8BAA8B,CAAC;IAC5C,KAAK,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CA2BV;AAED,wBAAsB,gCAAgC,CAAC,KAAK,EAAE;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,8BAA8B,CAAC;IAC5C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACpD,WAAW,EAAE,CACX,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KACzC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDhB;AAED,wBAAgB,6CAA6C,CAAC,KAAK,EAAE;IACnE,WAAW,EAAE,8BAA8B,CAAC;IAC5C,gBAAgB,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;CACjE,IACe,SAAS;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,KAAG,OAAO,CAAC,IAAI,CAAC,CAqBlB"}
|
|
1
|
+
{"version":3,"file":"default-research-artifact-support.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/artifacts/default-research-artifact-support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG1F,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,uCAAuC,CAAC;AAE/C,0DAA0D;AAC1D,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AAEpE,6CAA6C;AAC7C,MAAM,WAAW,8BAA8B;IAC7C,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC5D;AAED,gEAAgE;AAChE,MAAM,WAAW,6BAA6B;IAC5C,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACvE;AAyCD,gCAAgC;AAChC,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,GAAG,IAAI,CA+BjF;AAYD,kDAAkD;AAClD,wBAAsB,+BAA+B,CAAC,KAAK,EAAE;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA8CzB;AAED,gDAAgD;AAChD,wBAAgB,8BAA8B,CAAC,KAAK,EAAE;IACpD,WAAW,EAAE,8BAA8B,CAAC;IAC5C,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAAC;CACtC,GAAG,MAAM,GAAG,iBAAiB,EAAE,CAwB/B;AAuBD,mDAAmD;AACnD,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,WAAW,EAAE,8BAA8B,GAC1C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA+BzB;AAED,8DAA8D;AAC9D,wBAAgB,yCAAyC,CAAC,KAAK,EAAE;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,WAAW,EAAE,8BAA8B,CAAC;IAC5C,KAAK,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CA2BV;AAED,mDAAmD;AACnD,wBAAsB,gCAAgC,CAAC,KAAK,EAAE;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,8BAA8B,CAAC;IAC5C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACpD,WAAW,EAAE,CACX,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KACzC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDhB;AAED,+DAA+D;AAC/D,wBAAgB,6CAA6C,CAAC,KAAK,EAAE;IACnE,WAAW,EAAE,8BAA8B,CAAC;IAC5C,gBAAgB,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;CACjE,IACe,SAAS;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,KAAG,OAAO,CAAC,IAAI,CAAC,CAqBlB"}
|
|
@@ -28,6 +28,7 @@ function buildDefaultArtifactsFromResultPath(input) {
|
|
|
28
28
|
})
|
|
29
29
|
: null;
|
|
30
30
|
}
|
|
31
|
+
/** Extract latest user text. */
|
|
31
32
|
export function extractLatestUserText(messages) {
|
|
32
33
|
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
33
34
|
const message = messages[index];
|
|
@@ -58,6 +59,7 @@ function extractLatestUserDescription(text) {
|
|
|
58
59
|
const withoutLeadingSlashCommand = withoutCommandSpan.replace(/^\s*\/[a-z0-9_-]+\s*/i, "");
|
|
59
60
|
return withoutLeadingSlashCommand.trim();
|
|
60
61
|
}
|
|
62
|
+
/** Fetch latest conversation user text helper. */
|
|
61
63
|
export async function fetchLatestConversationUserText(input) {
|
|
62
64
|
if (!input.conversationId) {
|
|
63
65
|
return null;
|
|
@@ -93,6 +95,7 @@ export async function fetchLatestConversationUserText(input) {
|
|
|
93
95
|
return null;
|
|
94
96
|
}
|
|
95
97
|
}
|
|
98
|
+
/** Update default research artifacts helper. */
|
|
96
99
|
export function updateDefaultResearchArtifacts(input) {
|
|
97
100
|
if (!input.latestUserText) {
|
|
98
101
|
return input.system;
|
|
@@ -129,6 +132,7 @@ function appendSystemReminder(instructions, reminder) {
|
|
|
129
132
|
},
|
|
130
133
|
];
|
|
131
134
|
}
|
|
135
|
+
/** Apply default research artifact path helper. */
|
|
132
136
|
export function applyDefaultResearchArtifactPath(toolName, toolInput, taskContext) {
|
|
133
137
|
const defaultArtifacts = taskContext.defaultResearchArtifacts;
|
|
134
138
|
if (!defaultArtifacts || (toolName !== "create_file" && toolName !== "update_file")) {
|
|
@@ -154,6 +158,7 @@ export function applyDefaultResearchArtifactPath(toolName, toolInput, taskContex
|
|
|
154
158
|
path: canonicalCurrentPath,
|
|
155
159
|
};
|
|
156
160
|
}
|
|
161
|
+
/** Should retry create research artifact as update helper. */
|
|
157
162
|
export function shouldRetryCreateResearchArtifactAsUpdate(input) {
|
|
158
163
|
if (input.toolName !== "create_file") {
|
|
159
164
|
return false;
|
|
@@ -175,6 +180,7 @@ export function shouldRetryCreateResearchArtifactAsUpdate(input) {
|
|
|
175
180
|
const topicRootPath = defaultArtifacts.currentReportPath.replace(/^\/+/, "").replace(/\/report\.md$/, "");
|
|
176
181
|
return path === topicRootPath || path.startsWith(`${topicRootPath}/`);
|
|
177
182
|
}
|
|
183
|
+
/** Mirror default research run artifact helper. */
|
|
178
184
|
export async function mirrorDefaultResearchRunArtifact(input) {
|
|
179
185
|
if (input.toolName !== "create_file" && input.toolName !== "update_file") {
|
|
180
186
|
return;
|
|
@@ -219,6 +225,7 @@ export async function mirrorDefaultResearchRunArtifact(input) {
|
|
|
219
225
|
throw error;
|
|
220
226
|
}
|
|
221
227
|
}
|
|
228
|
+
/** Handler for create default research run artifact mirror. */
|
|
222
229
|
export function createDefaultResearchRunArtifactMirrorHandler(input) {
|
|
223
230
|
return async (request) => {
|
|
224
231
|
const remoteToolSource = input.remoteToolSource;
|