veryfront 0.1.516 → 0.1.518
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/deno.js +3 -3
- package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts +14 -0
- package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/browser-chunk-encoder.js +31 -0
- package/esm/src/agent/ag-ui/browser-encoder.d.ts +32 -0
- package/esm/src/agent/ag-ui/browser-encoder.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/browser-encoder.js +405 -0
- package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts +12 -0
- package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/browser-finalize-tracker.js +42 -0
- package/esm/src/agent/ag-ui/browser-response-stream.d.ts +28 -0
- package/esm/src/agent/ag-ui/browser-response-stream.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts +20 -0
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.js +108 -0
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts +11 -0
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.js +9 -0
- package/esm/src/agent/ag-ui/detached-start.d.ts +158 -0
- package/esm/src/agent/ag-ui/detached-start.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/detached-start.js +256 -0
- package/esm/src/agent/ag-ui/forwarded-context.d.ts +14 -0
- package/esm/src/agent/ag-ui/forwarded-context.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/forwarded-context.js +56 -0
- package/esm/src/agent/ag-ui/handler.d.ts +14 -0
- package/esm/src/agent/ag-ui/handler.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/handler.js +244 -0
- package/esm/src/agent/ag-ui/host-support.d.ts +131 -0
- package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/host-support.js +179 -0
- package/esm/src/agent/ag-ui/request-shared.d.ts +4 -0
- package/esm/src/agent/ag-ui/request-shared.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/request-shared.js +56 -0
- package/esm/src/agent/ag-ui/run-control.d.ts +39 -0
- package/esm/src/agent/ag-ui/run-control.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/run-control.js +84 -0
- package/esm/src/agent/ag-ui/runtime-browser-response.d.ts +18 -0
- package/esm/src/agent/ag-ui/runtime-browser-response.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/runtime-browser-response.js +15 -0
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts +17 -0
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.js +304 -0
- package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts +11 -0
- package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/runtime-event-encoder.js +37 -0
- package/esm/src/agent/ag-ui/runtime-handler.d.ts +44 -0
- package/esm/src/agent/ag-ui/runtime-handler.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/runtime-handler.js +301 -0
- package/esm/src/agent/ag-ui/runtime-support.d.ts +4 -0
- package/esm/src/agent/ag-ui/runtime-support.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/sse-parser.d.ts +57 -0
- package/esm/src/agent/ag-ui/sse-parser.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/sse-parser.js +227 -0
- package/esm/src/agent/ag-ui/tool-shared.d.ts +15 -0
- package/esm/src/agent/ag-ui/tool-shared.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/tool-shared.js +48 -0
- package/esm/src/agent/ag-ui/tracked-browser-response.d.ts +9 -0
- package/esm/src/agent/ag-ui/tracked-browser-response.d.ts.map +1 -0
- package/esm/src/agent/ag-ui/tracked-browser-response.js +19 -0
- package/esm/src/agent/agent-runtime-message-adapter.js +1 -1
- package/esm/src/agent/chat-ui-message-stream.js +1 -1
- package/esm/src/agent/child-run/execution-cleanup.d.ts +14 -0
- package/esm/src/agent/child-run/execution-cleanup.d.ts.map +1 -0
- package/esm/src/agent/child-run/execution-snapshot.d.ts +70 -0
- package/esm/src/agent/child-run/execution-snapshot.d.ts.map +1 -0
- package/esm/src/agent/child-run/execution-support.d.ts +5 -0
- package/esm/src/agent/child-run/execution-support.d.ts.map +1 -0
- package/esm/src/agent/child-run/final-step-support.d.ts +18 -0
- package/esm/src/agent/child-run/final-step-support.d.ts.map +1 -0
- package/esm/src/agent/child-run/result-summary.d.ts +14 -0
- package/esm/src/agent/child-run/result-summary.d.ts.map +1 -0
- package/esm/src/agent/conversation/bootstrap.d.ts +94 -0
- package/esm/src/agent/conversation/bootstrap.d.ts.map +1 -0
- package/esm/src/agent/conversation/bootstrap.js +210 -0
- package/esm/src/agent/conversation/delegation-policy.d.ts +53 -0
- package/esm/src/agent/conversation/delegation-policy.d.ts.map +1 -0
- package/esm/src/agent/conversation/delegation-policy.js +192 -0
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts +39 -0
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts.map +1 -0
- package/esm/src/agent/conversation/hosted-lifecycle.js +138 -0
- package/esm/src/agent/conversation/hosted-terminal.d.ts +46 -0
- package/esm/src/agent/conversation/hosted-terminal.d.ts.map +1 -0
- package/esm/src/agent/conversation/hosted-terminal.js +138 -0
- package/esm/src/agent/conversation/root-run-context.d.ts +57 -0
- package/esm/src/agent/conversation/root-run-context.d.ts.map +1 -0
- package/esm/src/agent/conversation/root-run-context.js +79 -0
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts +61 -0
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts.map +1 -0
- package/esm/src/agent/conversation/root-run-lifecycle.js +94 -0
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts +74 -0
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-chunk-mirror.js +188 -0
- package/esm/src/agent/conversation/run-context.d.ts +19 -0
- package/esm/src/agent/conversation/run-context.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-event-normalization.d.ts +8 -0
- package/esm/src/agent/conversation/run-event-normalization.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-event-preparation.d.ts +7 -0
- package/esm/src/agent/conversation/run-event-preparation.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-event-preparation.js +48 -0
- package/esm/src/agent/conversation/run-events.d.ts +34 -0
- package/esm/src/agent/conversation/run-events.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-events.js +200 -0
- package/esm/src/agent/conversation/run-mirror.d.ts +43 -0
- package/esm/src/agent/conversation/run-mirror.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-mirror.js +157 -0
- package/esm/src/agent/conversation/run-stream-mirror.d.ts +21 -0
- package/esm/src/agent/conversation/run-stream-mirror.d.ts.map +1 -0
- package/esm/src/agent/conversation/run-stream-mirror.js +31 -0
- package/esm/src/agent/data-stream.d.ts +1 -1
- package/esm/src/agent/default-hosted-chat-runtime.d.ts +5 -5
- package/esm/src/agent/default-hosted-chat-runtime.d.ts.map +1 -1
- package/esm/src/agent/default-hosted-chat-runtime.js +3 -3
- package/esm/src/agent/default-hosted-invoke-agent-tool.d.ts +7 -7
- package/esm/src/agent/default-hosted-invoke-agent-tool.d.ts.map +1 -1
- package/esm/src/agent/default-hosted-invoke-agent-tool.js +13 -13
- package/esm/src/agent/default-hosted-project-steering-refresh.d.ts +4 -4
- package/esm/src/agent/default-hosted-project-steering-refresh.js +1 -1
- package/esm/src/agent/default-research-artifact-support.js +2 -2
- package/esm/src/agent/fork-runtime-stream.d.ts +1 -1
- package/esm/src/agent/fork-runtime-stream.js +1 -1
- package/esm/src/agent/hosted/ag-ui-chat-request.d.ts +56 -0
- package/esm/src/agent/hosted/ag-ui-chat-request.d.ts.map +1 -0
- package/esm/src/agent/hosted/ag-ui-chat-request.js +112 -0
- package/esm/src/agent/hosted/agent-project-steering.d.ts +33 -0
- package/esm/src/agent/hosted/agent-project-steering.d.ts.map +1 -0
- package/esm/src/agent/hosted/agent-project-steering.js +73 -0
- package/esm/src/agent/hosted/agent-run-lifecycle.d.ts +60 -0
- package/esm/src/agent/hosted/agent-run-lifecycle.d.ts.map +1 -0
- package/esm/src/agent/hosted/agent-run-lifecycle.js +72 -0
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts +127 -0
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts.map +1 -0
- package/esm/src/agent/hosted/chat-execution-runtime.js +400 -0
- package/esm/src/agent/hosted/chat-preparation.d.ts +105 -0
- package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -0
- package/esm/src/agent/hosted/chat-preparation.js +156 -0
- package/esm/src/agent/hosted/chat-request-parser.d.ts +53 -0
- package/esm/src/agent/hosted/chat-request-parser.d.ts.map +1 -0
- package/esm/src/agent/hosted/chat-request-parser.js +105 -0
- package/esm/src/agent/hosted/chat-request.d.ts +305 -0
- package/esm/src/agent/hosted/chat-request.d.ts.map +1 -0
- package/esm/src/agent/hosted/chat-request.js +68 -0
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts +14 -0
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts.map +1 -0
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.js +48 -0
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts +86 -0
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts.map +1 -0
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts +51 -0
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts.map +1 -0
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.js +84 -0
- package/esm/src/agent/hosted/child-artifact-support.d.ts +25 -0
- package/esm/src/agent/hosted/child-artifact-support.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-artifact-support.js +121 -0
- package/esm/src/agent/hosted/child-bootstrap.d.ts +40 -0
- package/esm/src/agent/hosted/child-bootstrap.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-bootstrap.js +44 -0
- package/esm/src/agent/hosted/child-execution-logging.d.ts +35 -0
- package/esm/src/agent/hosted/child-execution-logging.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-execution-logging.js +69 -0
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts +101 -0
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-fork-execution-runner.js +205 -0
- package/esm/src/agent/hosted/child-fork-instructions.d.ts +8 -0
- package/esm/src/agent/hosted/child-fork-instructions.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-fork-run-context.d.ts +88 -0
- package/esm/src/agent/hosted/child-fork-run-context.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-fork-run-context.js +144 -0
- package/esm/src/agent/hosted/child-fork-runtime-start.d.ts +18 -0
- package/esm/src/agent/hosted/child-fork-runtime-start.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-fork-runtime-start.js +41 -0
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts +19 -0
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-fork-step-message-preparation.js +52 -0
- package/esm/src/agent/hosted/child-fork-stream-execution.d.ts +153 -0
- package/esm/src/agent/hosted/child-fork-stream-execution.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-fork-stream-execution.js +416 -0
- package/esm/src/agent/hosted/child-fork-tool-sources.d.ts +46 -0
- package/esm/src/agent/hosted/child-fork-tool-sources.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-fork-tool-sources.js +132 -0
- package/esm/src/agent/hosted/child-invoke-tool.d.ts +20 -0
- package/esm/src/agent/hosted/child-invoke-tool.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-invoke-tool.js +49 -0
- package/esm/src/agent/hosted/child-lifecycle.d.ts +63 -0
- package/esm/src/agent/hosted/child-lifecycle.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-lifecycle.js +192 -0
- package/esm/src/agent/hosted/child-mirror.d.ts +108 -0
- package/esm/src/agent/hosted/child-mirror.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts +50 -0
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.js +119 -0
- package/esm/src/agent/hosted/child-requested-tools.d.ts +109 -0
- package/esm/src/agent/hosted/child-requested-tools.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-requested-tools.js +233 -0
- package/esm/src/agent/hosted/child-status.d.ts +39 -0
- package/esm/src/agent/hosted/child-status.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-status.js +98 -0
- package/esm/src/agent/hosted/child-steering-tools.d.ts +20 -0
- package/esm/src/agent/hosted/child-steering-tools.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-steering-tools.js +53 -0
- package/esm/src/agent/hosted/child-stream-watchdog.d.ts +27 -0
- package/esm/src/agent/hosted/child-stream-watchdog.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-stream-watchdog.js +95 -0
- package/esm/src/agent/hosted/child-tool-input.d.ts +44 -0
- package/esm/src/agent/hosted/child-tool-input.d.ts.map +1 -0
- package/esm/src/agent/hosted/child-tool-input.js +44 -0
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts +46 -0
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts.map +1 -0
- package/esm/src/agent/hosted/durable-chat-run-start.js +148 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts +159 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts.map +1 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.js +324 -0
- package/esm/src/agent/hosted/finalized-message.d.ts +44 -0
- package/esm/src/agent/hosted/finalized-message.d.ts.map +1 -0
- package/esm/src/agent/hosted/finalized-message.js +67 -0
- package/esm/src/agent/hosted/form-input-tool.d.ts +85 -0
- package/esm/src/agent/hosted/form-input-tool.d.ts.map +1 -0
- package/esm/src/agent/hosted/form-input-tool.js +88 -0
- package/esm/src/agent/hosted/lifecycle.d.ts +41 -0
- package/esm/src/agent/hosted/lifecycle.d.ts.map +1 -0
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts +46 -0
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts.map +1 -0
- package/esm/src/agent/hosted/project-remote-tool-source.js +147 -0
- package/esm/src/agent/hosted/project-steering-adapter.d.ts +34 -0
- package/esm/src/agent/hosted/project-steering-adapter.d.ts.map +1 -0
- package/esm/src/agent/hosted/project-steering-adapter.js +82 -0
- package/esm/src/agent/hosted/response-stream.d.ts +22 -0
- package/esm/src/agent/hosted/response-stream.d.ts.map +1 -0
- package/esm/src/agent/hosted/response-stream.js +52 -0
- package/esm/src/agent/hosted/runtime-request-config.d.ts +27 -0
- package/esm/src/agent/hosted/runtime-request-config.d.ts.map +1 -0
- package/esm/src/agent/hosted/runtime-request-config.js +54 -0
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts +28 -0
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts.map +1 -0
- package/esm/src/agent/hosted/runtime-state-resolver.js +71 -0
- package/esm/src/agent/hosted/stream-finalization.d.ts +61 -0
- package/esm/src/agent/hosted/stream-finalization.d.ts.map +1 -0
- package/esm/src/agent/hosted/stream-terminal-error.d.ts +16 -0
- package/esm/src/agent/hosted/stream-terminal-error.d.ts.map +1 -0
- package/esm/src/agent/hosted/stream-terminal-error.js +54 -0
- package/esm/src/agent/hosted/veryfront-api-tool-access.d.ts +49 -0
- package/esm/src/agent/hosted/veryfront-api-tool-access.d.ts.map +1 -0
- package/esm/src/agent/hosted/veryfront-api-tool-access.js +182 -0
- package/esm/src/agent/human-input.js +1 -1
- package/esm/src/agent/index.d.ts +108 -107
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +106 -105
- package/esm/src/agent/live-studio-mcp-tools.d.ts +1 -1
- package/esm/src/agent/live-studio-mcp-tools.js +1 -1
- package/esm/src/agent/prepared-hosted-chat-execution.d.ts +2 -2
- package/esm/src/agent/prepared-hosted-chat-execution.js +3 -3
- package/esm/src/agent/project-agent-runtime.d.ts +25 -0
- package/esm/src/agent/project-agent-runtime.d.ts.map +1 -0
- package/esm/src/agent/project-agent-runtime.js +84 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts +213 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts.map +1 -0
- package/esm/src/agent/runtime/ag-ui-contract.js +134 -0
- package/esm/src/agent/runtime/agent-definition-files.d.ts +23 -0
- package/esm/src/agent/runtime/agent-definition-files.d.ts.map +1 -0
- package/esm/src/agent/runtime/agent-definition-files.js +79 -0
- package/esm/src/agent/runtime/agent-definition.d.ts +60 -0
- package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -0
- package/esm/src/agent/runtime/agent-definition.js +105 -0
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts +326 -0
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -0
- package/esm/src/agent/runtime/agent-invocation-contract.js +212 -0
- package/esm/src/agent/runtime/agent-markdown-adapter.d.ts +6 -0
- package/esm/src/agent/runtime/agent-markdown-adapter.d.ts.map +1 -0
- package/esm/src/agent/runtime/agent-markdown-adapter.js +20 -0
- package/esm/src/agent/runtime/builtin-skill-files.d.ts +18 -0
- package/esm/src/agent/runtime/builtin-skill-files.d.ts.map +1 -0
- package/esm/src/agent/runtime/builtin-skill-files.js +82 -0
- package/esm/src/agent/runtime/client-profile.d.ts +26 -0
- package/esm/src/agent/runtime/client-profile.d.ts.map +1 -0
- package/esm/src/agent/runtime/client-profile.js +82 -0
- package/esm/src/agent/runtime/load-skill-tool.d.ts +43 -0
- package/esm/src/agent/runtime/load-skill-tool.d.ts.map +1 -0
- package/esm/src/agent/runtime/load-skill-tool.js +115 -0
- package/esm/src/agent/runtime/message-file-url-refresh.d.ts +9 -0
- package/esm/src/agent/runtime/message-file-url-refresh.d.ts.map +1 -0
- package/esm/src/agent/runtime/message-preparation.d.ts +10 -0
- package/esm/src/agent/runtime/message-preparation.d.ts.map +1 -0
- package/esm/src/agent/runtime/message-preparation.js +34 -0
- package/esm/src/agent/runtime/project-files-client.d.ts +50 -0
- package/esm/src/agent/runtime/project-files-client.d.ts.map +1 -0
- package/esm/src/agent/runtime/project-files-client.js +143 -0
- package/esm/src/agent/runtime/project-skill-catalog.d.ts +26 -0
- package/esm/src/agent/runtime/project-skill-catalog.d.ts.map +1 -0
- package/esm/src/agent/runtime/project-skill-catalog.js +148 -0
- package/esm/src/agent/runtime/project-skill-loader.d.ts +28 -0
- package/esm/src/agent/runtime/project-skill-loader.d.ts.map +1 -0
- package/esm/src/agent/runtime/project-skill-loader.js +122 -0
- package/esm/src/agent/runtime/prompt-block.d.ts +7 -0
- package/esm/src/agent/runtime/prompt-block.d.ts.map +1 -0
- package/esm/src/agent/runtime/skill-metadata.d.ts +75 -0
- package/esm/src/agent/runtime/skill-metadata.d.ts.map +1 -0
- package/esm/src/agent/runtime/skill-metadata.js +159 -0
- package/esm/src/agent/runtime/skill-prompt.d.ts +5 -0
- package/esm/src/agent/runtime/skill-prompt.d.ts.map +1 -0
- package/esm/src/agent/runtime/skill-prompt.js +40 -0
- package/esm/src/agent/runtime/tool-inventory.d.ts +4 -0
- package/esm/src/agent/runtime/tool-inventory.d.ts.map +1 -0
- package/esm/src/agent/runtime/upload-url-client.d.ts +13 -0
- package/esm/src/agent/runtime/upload-url-client.d.ts.map +1 -0
- package/esm/src/agent/runtime/upload-url-client.js +54 -0
- package/esm/src/agent/service/auth.d.ts +81 -0
- package/esm/src/agent/service/auth.d.ts.map +1 -0
- package/esm/src/agent/service/bootstrap.d.ts +23 -0
- package/esm/src/agent/service/bootstrap.d.ts.map +1 -0
- package/esm/src/agent/service/bootstrap.js +38 -0
- package/esm/src/agent/service/config.d.ts +140 -0
- package/esm/src/agent/service/config.d.ts.map +1 -0
- package/esm/src/agent/service/definition.d.ts +87 -0
- package/esm/src/agent/service/definition.d.ts.map +1 -0
- package/esm/src/agent/service/env-files.d.ts +13 -0
- package/esm/src/agent/service/env-files.d.ts.map +1 -0
- package/esm/src/agent/service/env-files.js +34 -0
- package/esm/src/agent/service/mcp-server-config.d.ts +33 -0
- package/esm/src/agent/service/mcp-server-config.d.ts.map +1 -0
- package/esm/src/agent/service/mcp-server-config.js +49 -0
- package/esm/src/agent/service/node-runtime-infrastructure.d.ts +26 -0
- package/esm/src/agent/service/node-runtime-infrastructure.d.ts.map +1 -0
- package/esm/src/agent/service/node-runtime-infrastructure.js +30 -0
- package/esm/src/agent/service/node-telemetry.d.ts +44 -0
- package/esm/src/agent/service/node-telemetry.d.ts.map +1 -0
- package/esm/src/agent/service/registration.d.ts +110 -0
- package/esm/src/agent/service/registration.d.ts.map +1 -0
- package/esm/src/agent/service/registration.js +228 -0
- package/esm/src/agent/service/routes.d.ts +81 -0
- package/esm/src/agent/service/routes.d.ts.map +1 -0
- package/esm/src/agent/service/routes.js +204 -0
- package/esm/src/agent/service/runtime.d.ts +73 -0
- package/esm/src/agent/service/runtime.d.ts.map +1 -0
- package/esm/src/agent/service/runtime.js +118 -0
- package/esm/src/agent/service/server.d.ts +30 -0
- package/esm/src/agent/service/server.d.ts.map +1 -0
- package/esm/src/agent/service/server.js +47 -0
- package/esm/src/agent/veryfront-cloud-agent-service.d.ts +8 -7
- package/esm/src/agent/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/veryfront-cloud-agent-service.js +17 -72
- package/esm/src/agent/veryfront-cloud-hosted-chat-execution-preparation.d.ts +3 -3
- package/esm/src/agent/veryfront-cloud-hosted-chat-execution-preparation.js +1 -1
- package/esm/src/agent/veryfront-cloud-prepared-hosted-chat-execution-runtime.d.ts +1 -1
- package/esm/src/agent/veryfront-cloud-runtime-system-messages.d.ts +3 -3
- package/esm/src/agent/veryfront-cloud-runtime-system-messages.js +2 -2
- package/esm/src/discovery/handlers/runtime-agent-markdown-handler.js +2 -2
- package/esm/src/internal-agents/ag-ui-sse.d.ts +2 -2
- package/esm/src/internal-agents/ag-ui-sse.js +1 -1
- package/esm/src/internal-agents/run-stream.js +1 -1
- package/esm/src/internal-agents/schema.d.ts +2 -2
- package/esm/src/internal-agents/schema.js +2 -2
- package/esm/src/tool/project-scoped-remote-tools.d.ts +6 -0
- package/esm/src/tool/project-scoped-remote-tools.d.ts.map +1 -1
- package/esm/src/tool/project-scoped-remote-tools.js +15 -4
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +3 -3
- package/src/deno.js +3 -3
- package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +1 -1
- package/src/deps/esm.sh/@types/react@19.2.14/global.d.ts +166 -0
- package/src/deps/esm.sh/@types/react@19.2.14/index.d.ts +4370 -0
- package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +1 -1
- package/src/src/agent/ag-ui/browser-chunk-encoder.ts +58 -0
- package/src/src/agent/ag-ui/browser-encoder.ts +538 -0
- package/src/src/agent/ag-ui/browser-finalize-tracker.ts +65 -0
- package/src/src/agent/ag-ui/browser-response-stream.ts +175 -0
- package/src/src/agent/ag-ui/chat-ui-chunk-browser-encoder.ts +172 -0
- package/src/src/agent/ag-ui/chunk-encoder-bridge.ts +34 -0
- package/src/src/agent/ag-ui/detached-start.ts +425 -0
- package/src/src/agent/ag-ui/forwarded-context.ts +83 -0
- package/src/src/agent/ag-ui/handler.ts +388 -0
- package/src/src/agent/ag-ui/host-support.ts +244 -0
- package/src/src/agent/ag-ui/request-shared.ts +76 -0
- package/src/src/agent/ag-ui/run-control.ts +145 -0
- package/src/src/agent/ag-ui/runtime-browser-response.ts +41 -0
- package/src/src/agent/ag-ui/runtime-chat-stream-encoder.ts +359 -0
- package/src/src/agent/ag-ui/runtime-event-encoder.ts +71 -0
- package/src/src/agent/ag-ui/runtime-handler.ts +510 -0
- package/src/src/agent/ag-ui/runtime-support.ts +64 -0
- package/src/src/agent/ag-ui/sse-parser.ts +306 -0
- package/src/src/agent/ag-ui/tool-shared.ts +80 -0
- package/src/src/agent/ag-ui/tracked-browser-response.ts +42 -0
- package/src/src/agent/agent-runtime-message-adapter.ts +1 -1
- package/src/src/agent/chat-ui-message-stream.ts +1 -1
- package/src/src/agent/conversation/bootstrap.ts +335 -0
- package/src/src/agent/conversation/delegation-policy.ts +299 -0
- package/src/src/agent/conversation/hosted-lifecycle.ts +215 -0
- package/src/src/agent/conversation/hosted-terminal.ts +235 -0
- package/src/src/agent/conversation/root-run-context.ts +143 -0
- package/src/src/agent/conversation/root-run-lifecycle.ts +184 -0
- package/src/src/agent/conversation/run-chunk-mirror.ts +350 -0
- package/src/src/agent/conversation/run-context.ts +22 -0
- package/src/src/agent/conversation/run-event-preparation.ts +76 -0
- package/src/src/agent/conversation/run-events.ts +242 -0
- package/src/src/agent/conversation/run-mirror.ts +235 -0
- package/src/src/agent/conversation/run-stream-mirror.ts +56 -0
- package/src/src/agent/data-stream.ts +1 -1
- package/src/src/agent/default-hosted-chat-runtime.ts +6 -6
- package/src/src/agent/default-hosted-invoke-agent-tool.ts +19 -19
- package/src/src/agent/default-hosted-project-steering-refresh.ts +5 -5
- package/src/src/agent/default-research-artifact-support.ts +2 -2
- package/src/src/agent/fork-runtime-stream.ts +2 -2
- package/src/src/agent/hosted/ag-ui-chat-request.ts +197 -0
- package/src/src/agent/hosted/agent-project-steering.ts +129 -0
- package/src/src/agent/hosted/agent-run-lifecycle.ts +161 -0
- package/src/src/agent/hosted/chat-execution-runtime.ts +703 -0
- package/src/src/agent/hosted/chat-preparation.ts +357 -0
- package/src/src/agent/hosted/chat-request-parser.ts +209 -0
- package/src/src/agent/hosted/chat-request.ts +112 -0
- package/src/src/agent/hosted/chat-runtime-agent-adapter.ts +88 -0
- package/src/src/agent/hosted/chat-runtime-contract.ts +101 -0
- package/src/src/agent/hosted/chat-runtime-tool-assembly.ts +183 -0
- package/src/src/agent/hosted/child-artifact-support.ts +201 -0
- package/src/src/agent/hosted/child-bootstrap.ts +75 -0
- package/src/src/agent/hosted/child-execution-logging.ts +114 -0
- package/src/src/agent/hosted/child-fork-execution-runner.ts +396 -0
- package/src/src/agent/hosted/child-fork-run-context.ts +309 -0
- package/src/src/agent/hosted/child-fork-runtime-start.ts +84 -0
- package/src/src/agent/hosted/child-fork-step-message-preparation.ts +96 -0
- package/src/src/agent/hosted/child-fork-stream-execution.ts +626 -0
- package/src/src/agent/hosted/child-fork-tool-sources.ts +231 -0
- package/src/src/agent/hosted/child-invoke-tool.ts +90 -0
- package/src/src/agent/hosted/child-lifecycle.ts +352 -0
- package/src/src/agent/hosted/child-mirror.ts +272 -0
- package/src/src/agent/hosted/child-pending-tool-lifecycle.ts +191 -0
- package/src/src/agent/hosted/child-requested-tools.ts +411 -0
- package/src/src/agent/hosted/child-status.ts +167 -0
- package/src/src/agent/hosted/child-steering-tools.ts +92 -0
- package/src/src/agent/hosted/child-stream-watchdog.ts +146 -0
- package/src/src/agent/hosted/child-tool-input.ts +91 -0
- package/src/src/agent/hosted/durable-chat-run-start.ts +246 -0
- package/src/src/agent/hosted/durable-child-fork-execution.ts +597 -0
- package/src/src/agent/hosted/finalized-message.ts +170 -0
- package/src/src/agent/hosted/form-input-tool.ts +128 -0
- package/src/src/agent/hosted/project-remote-tool-source.ts +279 -0
- package/src/src/agent/hosted/project-steering-adapter.ts +184 -0
- package/src/src/agent/hosted/response-stream.ts +87 -0
- package/src/src/agent/hosted/runtime-request-config.ts +112 -0
- package/src/src/agent/hosted/runtime-state-resolver.ts +133 -0
- package/src/src/agent/hosted/stream-finalization.ts +188 -0
- package/src/src/agent/hosted/stream-terminal-error.ts +81 -0
- package/src/src/agent/hosted/veryfront-api-tool-access.ts +293 -0
- package/src/src/agent/human-input.ts +1 -1
- package/src/src/agent/index.ts +120 -107
- package/src/src/agent/live-studio-mcp-tools.ts +1 -1
- package/src/src/agent/prepared-hosted-chat-execution.ts +4 -4
- package/src/src/agent/project-agent-runtime.ts +139 -0
- package/src/src/agent/runtime/ag-ui-contract.ts +216 -0
- package/src/src/agent/runtime/agent-definition-files.ts +128 -0
- package/src/src/agent/runtime/agent-definition.ts +163 -0
- package/src/src/agent/runtime/agent-invocation-contract.ts +355 -0
- package/src/src/agent/runtime/agent-markdown-adapter.ts +31 -0
- package/src/src/agent/runtime/builtin-skill-files.ts +122 -0
- package/src/src/agent/runtime/client-profile.ts +123 -0
- package/src/src/agent/runtime/load-skill-tool.ts +239 -0
- package/src/src/agent/runtime/message-file-url-refresh.ts +120 -0
- package/src/src/agent/runtime/message-preparation.ts +58 -0
- package/src/src/agent/runtime/project-files-client.ts +256 -0
- package/src/src/agent/runtime/project-skill-catalog.ts +238 -0
- package/src/src/agent/runtime/project-skill-loader.ts +217 -0
- package/src/src/agent/runtime/skill-metadata.ts +260 -0
- package/src/src/agent/runtime/skill-prompt.ts +61 -0
- package/src/src/agent/runtime/tool-inventory.ts +46 -0
- package/src/src/agent/runtime/upload-url-client.ts +95 -0
- package/src/src/agent/service/bootstrap.ts +79 -0
- package/src/src/agent/service/definition.ts +386 -0
- package/src/src/agent/service/env-files.ts +60 -0
- package/src/src/agent/service/mcp-server-config.ts +112 -0
- package/src/src/agent/service/node-runtime-infrastructure.ts +71 -0
- package/src/src/agent/service/registration.ts +320 -0
- package/src/src/agent/service/routes.ts +386 -0
- package/src/src/agent/service/runtime.ts +303 -0
- package/src/src/agent/service/server.ts +98 -0
- package/src/src/agent/veryfront-cloud-agent-service.ts +37 -115
- package/src/src/agent/veryfront-cloud-hosted-chat-execution-preparation.ts +3 -3
- package/src/src/agent/veryfront-cloud-prepared-hosted-chat-execution-runtime.ts +1 -1
- package/src/src/agent/veryfront-cloud-runtime-system-messages.ts +4 -4
- package/src/src/discovery/handlers/runtime-agent-markdown-handler.ts +2 -2
- package/src/src/internal-agents/ag-ui-sse.ts +2 -2
- package/src/src/internal-agents/run-stream.ts +1 -1
- package/src/src/internal-agents/schema.ts +2 -2
- package/src/src/tool/project-scoped-remote-tools.ts +23 -4
- package/src/src/utils/version-constant.ts +1 -1
- package/esm/src/agent/ag-ui-browser-chunk-encoder.d.ts +0 -14
- package/esm/src/agent/ag-ui-browser-chunk-encoder.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-browser-chunk-encoder.js +0 -31
- package/esm/src/agent/ag-ui-browser-encoder.d.ts +0 -32
- package/esm/src/agent/ag-ui-browser-encoder.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-browser-encoder.js +0 -405
- package/esm/src/agent/ag-ui-browser-finalize-tracker.d.ts +0 -12
- package/esm/src/agent/ag-ui-browser-finalize-tracker.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-browser-finalize-tracker.js +0 -42
- package/esm/src/agent/ag-ui-browser-response-stream.d.ts +0 -28
- package/esm/src/agent/ag-ui-browser-response-stream.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-chat-ui-chunk-browser-encoder.d.ts +0 -20
- package/esm/src/agent/ag-ui-chat-ui-chunk-browser-encoder.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-chat-ui-chunk-browser-encoder.js +0 -108
- package/esm/src/agent/ag-ui-chunk-encoder-bridge.d.ts +0 -11
- package/esm/src/agent/ag-ui-chunk-encoder-bridge.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-chunk-encoder-bridge.js +0 -9
- package/esm/src/agent/ag-ui-detached-start.d.ts +0 -158
- package/esm/src/agent/ag-ui-detached-start.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-detached-start.js +0 -256
- package/esm/src/agent/ag-ui-forwarded-context.d.ts +0 -14
- package/esm/src/agent/ag-ui-forwarded-context.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-forwarded-context.js +0 -56
- package/esm/src/agent/ag-ui-handler.d.ts +0 -14
- package/esm/src/agent/ag-ui-handler.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-handler.js +0 -244
- package/esm/src/agent/ag-ui-host-support.d.ts +0 -131
- package/esm/src/agent/ag-ui-host-support.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-host-support.js +0 -179
- package/esm/src/agent/ag-ui-request-shared.d.ts +0 -4
- package/esm/src/agent/ag-ui-request-shared.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-request-shared.js +0 -56
- package/esm/src/agent/ag-ui-run-control.d.ts +0 -39
- package/esm/src/agent/ag-ui-run-control.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-run-control.js +0 -84
- package/esm/src/agent/ag-ui-runtime-browser-response.d.ts +0 -18
- package/esm/src/agent/ag-ui-runtime-browser-response.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-runtime-browser-response.js +0 -15
- package/esm/src/agent/ag-ui-runtime-chat-stream-encoder.d.ts +0 -17
- package/esm/src/agent/ag-ui-runtime-chat-stream-encoder.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-runtime-chat-stream-encoder.js +0 -304
- package/esm/src/agent/ag-ui-runtime-event-encoder.d.ts +0 -11
- package/esm/src/agent/ag-ui-runtime-event-encoder.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-runtime-event-encoder.js +0 -37
- package/esm/src/agent/ag-ui-runtime-handler.d.ts +0 -44
- package/esm/src/agent/ag-ui-runtime-handler.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-runtime-handler.js +0 -301
- package/esm/src/agent/ag-ui-runtime-support.d.ts +0 -4
- package/esm/src/agent/ag-ui-runtime-support.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-sse-parser.d.ts +0 -57
- package/esm/src/agent/ag-ui-sse-parser.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-sse-parser.js +0 -227
- package/esm/src/agent/ag-ui-tool-shared.d.ts +0 -15
- package/esm/src/agent/ag-ui-tool-shared.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-tool-shared.js +0 -48
- package/esm/src/agent/ag-ui-tracked-browser-response.d.ts +0 -9
- package/esm/src/agent/ag-ui-tracked-browser-response.d.ts.map +0 -1
- package/esm/src/agent/ag-ui-tracked-browser-response.js +0 -19
- package/esm/src/agent/agent-service-auth.d.ts +0 -81
- package/esm/src/agent/agent-service-auth.d.ts.map +0 -1
- package/esm/src/agent/agent-service-bootstrap.d.ts +0 -23
- package/esm/src/agent/agent-service-bootstrap.d.ts.map +0 -1
- package/esm/src/agent/agent-service-bootstrap.js +0 -38
- package/esm/src/agent/agent-service-config.d.ts +0 -140
- package/esm/src/agent/agent-service-config.d.ts.map +0 -1
- package/esm/src/agent/agent-service-env-files.d.ts +0 -13
- package/esm/src/agent/agent-service-env-files.d.ts.map +0 -1
- package/esm/src/agent/agent-service-env-files.js +0 -34
- package/esm/src/agent/agent-service-mcp-server-config.d.ts +0 -33
- package/esm/src/agent/agent-service-mcp-server-config.d.ts.map +0 -1
- package/esm/src/agent/agent-service-mcp-server-config.js +0 -49
- package/esm/src/agent/agent-service-registration.d.ts +0 -110
- package/esm/src/agent/agent-service-registration.d.ts.map +0 -1
- package/esm/src/agent/agent-service-registration.js +0 -228
- package/esm/src/agent/agent-service-routes.d.ts +0 -81
- package/esm/src/agent/agent-service-routes.d.ts.map +0 -1
- package/esm/src/agent/agent-service-routes.js +0 -204
- package/esm/src/agent/agent-service-runtime.d.ts +0 -73
- package/esm/src/agent/agent-service-runtime.d.ts.map +0 -1
- package/esm/src/agent/agent-service-runtime.js +0 -118
- package/esm/src/agent/agent-service-server.d.ts +0 -30
- package/esm/src/agent/agent-service-server.d.ts.map +0 -1
- package/esm/src/agent/agent-service-server.js +0 -47
- package/esm/src/agent/agent-service.d.ts +0 -87
- package/esm/src/agent/agent-service.d.ts.map +0 -1
- package/esm/src/agent/child-run-execution-cleanup.d.ts +0 -14
- package/esm/src/agent/child-run-execution-cleanup.d.ts.map +0 -1
- package/esm/src/agent/child-run-execution-snapshot.d.ts +0 -70
- package/esm/src/agent/child-run-execution-snapshot.d.ts.map +0 -1
- package/esm/src/agent/child-run-execution-support.d.ts +0 -5
- package/esm/src/agent/child-run-execution-support.d.ts.map +0 -1
- package/esm/src/agent/child-run-final-step-support.d.ts +0 -18
- package/esm/src/agent/child-run-final-step-support.d.ts.map +0 -1
- package/esm/src/agent/child-run-result-summary.d.ts +0 -14
- package/esm/src/agent/child-run-result-summary.d.ts.map +0 -1
- package/esm/src/agent/conversation-bootstrap.d.ts +0 -94
- package/esm/src/agent/conversation-bootstrap.d.ts.map +0 -1
- package/esm/src/agent/conversation-bootstrap.js +0 -210
- package/esm/src/agent/conversation-delegation-policy.d.ts +0 -53
- package/esm/src/agent/conversation-delegation-policy.d.ts.map +0 -1
- package/esm/src/agent/conversation-delegation-policy.js +0 -192
- package/esm/src/agent/conversation-hosted-lifecycle.d.ts +0 -39
- package/esm/src/agent/conversation-hosted-lifecycle.d.ts.map +0 -1
- package/esm/src/agent/conversation-hosted-lifecycle.js +0 -138
- package/esm/src/agent/conversation-hosted-terminal.d.ts +0 -46
- package/esm/src/agent/conversation-hosted-terminal.d.ts.map +0 -1
- package/esm/src/agent/conversation-hosted-terminal.js +0 -138
- package/esm/src/agent/conversation-root-run-context.d.ts +0 -57
- package/esm/src/agent/conversation-root-run-context.d.ts.map +0 -1
- package/esm/src/agent/conversation-root-run-context.js +0 -79
- package/esm/src/agent/conversation-root-run-lifecycle.d.ts +0 -61
- package/esm/src/agent/conversation-root-run-lifecycle.d.ts.map +0 -1
- package/esm/src/agent/conversation-root-run-lifecycle.js +0 -94
- package/esm/src/agent/conversation-run-chunk-mirror.d.ts +0 -74
- package/esm/src/agent/conversation-run-chunk-mirror.d.ts.map +0 -1
- package/esm/src/agent/conversation-run-chunk-mirror.js +0 -188
- package/esm/src/agent/conversation-run-context.d.ts +0 -19
- package/esm/src/agent/conversation-run-context.d.ts.map +0 -1
- package/esm/src/agent/conversation-run-event-normalization.d.ts +0 -8
- package/esm/src/agent/conversation-run-event-normalization.d.ts.map +0 -1
- package/esm/src/agent/conversation-run-event-preparation.d.ts +0 -7
- package/esm/src/agent/conversation-run-event-preparation.d.ts.map +0 -1
- package/esm/src/agent/conversation-run-event-preparation.js +0 -48
- package/esm/src/agent/conversation-run-events.d.ts +0 -34
- package/esm/src/agent/conversation-run-events.d.ts.map +0 -1
- package/esm/src/agent/conversation-run-events.js +0 -200
- package/esm/src/agent/conversation-run-mirror.d.ts +0 -43
- package/esm/src/agent/conversation-run-mirror.d.ts.map +0 -1
- package/esm/src/agent/conversation-run-mirror.js +0 -157
- package/esm/src/agent/conversation-run-stream-mirror.d.ts +0 -21
- package/esm/src/agent/conversation-run-stream-mirror.d.ts.map +0 -1
- package/esm/src/agent/conversation-run-stream-mirror.js +0 -31
- package/esm/src/agent/hosted-ag-ui-chat-request.d.ts +0 -56
- package/esm/src/agent/hosted-ag-ui-chat-request.d.ts.map +0 -1
- package/esm/src/agent/hosted-ag-ui-chat-request.js +0 -112
- package/esm/src/agent/hosted-agent-project-steering.d.ts +0 -33
- package/esm/src/agent/hosted-agent-project-steering.d.ts.map +0 -1
- package/esm/src/agent/hosted-agent-project-steering.js +0 -73
- package/esm/src/agent/hosted-agent-run-lifecycle.d.ts +0 -60
- package/esm/src/agent/hosted-agent-run-lifecycle.d.ts.map +0 -1
- package/esm/src/agent/hosted-agent-run-lifecycle.js +0 -72
- package/esm/src/agent/hosted-chat-execution-runtime.d.ts +0 -127
- package/esm/src/agent/hosted-chat-execution-runtime.d.ts.map +0 -1
- package/esm/src/agent/hosted-chat-execution-runtime.js +0 -400
- package/esm/src/agent/hosted-chat-preparation.d.ts +0 -105
- package/esm/src/agent/hosted-chat-preparation.d.ts.map +0 -1
- package/esm/src/agent/hosted-chat-preparation.js +0 -156
- package/esm/src/agent/hosted-chat-request-parser.d.ts +0 -53
- package/esm/src/agent/hosted-chat-request-parser.d.ts.map +0 -1
- package/esm/src/agent/hosted-chat-request-parser.js +0 -105
- package/esm/src/agent/hosted-chat-request.d.ts +0 -305
- package/esm/src/agent/hosted-chat-request.d.ts.map +0 -1
- package/esm/src/agent/hosted-chat-request.js +0 -68
- package/esm/src/agent/hosted-chat-runtime-agent-adapter.d.ts +0 -14
- package/esm/src/agent/hosted-chat-runtime-agent-adapter.d.ts.map +0 -1
- package/esm/src/agent/hosted-chat-runtime-agent-adapter.js +0 -48
- package/esm/src/agent/hosted-chat-runtime-contract.d.ts +0 -86
- package/esm/src/agent/hosted-chat-runtime-contract.d.ts.map +0 -1
- package/esm/src/agent/hosted-chat-runtime-tool-assembly.d.ts +0 -51
- package/esm/src/agent/hosted-chat-runtime-tool-assembly.d.ts.map +0 -1
- package/esm/src/agent/hosted-chat-runtime-tool-assembly.js +0 -84
- package/esm/src/agent/hosted-child-artifact-support.d.ts +0 -25
- package/esm/src/agent/hosted-child-artifact-support.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-artifact-support.js +0 -121
- package/esm/src/agent/hosted-child-bootstrap.d.ts +0 -40
- package/esm/src/agent/hosted-child-bootstrap.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-bootstrap.js +0 -44
- package/esm/src/agent/hosted-child-execution-logging.d.ts +0 -35
- package/esm/src/agent/hosted-child-execution-logging.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-execution-logging.js +0 -69
- package/esm/src/agent/hosted-child-fork-execution-runner.d.ts +0 -101
- package/esm/src/agent/hosted-child-fork-execution-runner.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-fork-execution-runner.js +0 -205
- package/esm/src/agent/hosted-child-fork-instructions.d.ts +0 -8
- package/esm/src/agent/hosted-child-fork-instructions.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-fork-run-context.d.ts +0 -88
- package/esm/src/agent/hosted-child-fork-run-context.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-fork-run-context.js +0 -144
- package/esm/src/agent/hosted-child-fork-runtime-start.d.ts +0 -18
- package/esm/src/agent/hosted-child-fork-runtime-start.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-fork-runtime-start.js +0 -41
- package/esm/src/agent/hosted-child-fork-step-message-preparation.d.ts +0 -19
- package/esm/src/agent/hosted-child-fork-step-message-preparation.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-fork-step-message-preparation.js +0 -52
- package/esm/src/agent/hosted-child-fork-stream-execution.d.ts +0 -153
- package/esm/src/agent/hosted-child-fork-stream-execution.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-fork-stream-execution.js +0 -416
- package/esm/src/agent/hosted-child-fork-tool-sources.d.ts +0 -46
- package/esm/src/agent/hosted-child-fork-tool-sources.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-fork-tool-sources.js +0 -124
- package/esm/src/agent/hosted-child-invoke-tool.d.ts +0 -20
- package/esm/src/agent/hosted-child-invoke-tool.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-invoke-tool.js +0 -49
- package/esm/src/agent/hosted-child-lifecycle.d.ts +0 -63
- package/esm/src/agent/hosted-child-lifecycle.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-lifecycle.js +0 -192
- package/esm/src/agent/hosted-child-mirror.d.ts +0 -108
- package/esm/src/agent/hosted-child-mirror.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-pending-tool-lifecycle.d.ts +0 -50
- package/esm/src/agent/hosted-child-pending-tool-lifecycle.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-pending-tool-lifecycle.js +0 -119
- package/esm/src/agent/hosted-child-requested-tools.d.ts +0 -109
- package/esm/src/agent/hosted-child-requested-tools.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-requested-tools.js +0 -233
- package/esm/src/agent/hosted-child-status.d.ts +0 -39
- package/esm/src/agent/hosted-child-status.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-status.js +0 -98
- package/esm/src/agent/hosted-child-steering-tools.d.ts +0 -20
- package/esm/src/agent/hosted-child-steering-tools.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-steering-tools.js +0 -53
- package/esm/src/agent/hosted-child-stream-watchdog.d.ts +0 -27
- package/esm/src/agent/hosted-child-stream-watchdog.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-stream-watchdog.js +0 -95
- package/esm/src/agent/hosted-child-tool-input.d.ts +0 -44
- package/esm/src/agent/hosted-child-tool-input.d.ts.map +0 -1
- package/esm/src/agent/hosted-child-tool-input.js +0 -44
- package/esm/src/agent/hosted-durable-chat-run-start.d.ts +0 -46
- package/esm/src/agent/hosted-durable-chat-run-start.d.ts.map +0 -1
- package/esm/src/agent/hosted-durable-chat-run-start.js +0 -148
- package/esm/src/agent/hosted-durable-child-fork-execution.d.ts +0 -159
- package/esm/src/agent/hosted-durable-child-fork-execution.d.ts.map +0 -1
- package/esm/src/agent/hosted-durable-child-fork-execution.js +0 -324
- package/esm/src/agent/hosted-finalized-message.d.ts +0 -44
- package/esm/src/agent/hosted-finalized-message.d.ts.map +0 -1
- package/esm/src/agent/hosted-finalized-message.js +0 -67
- package/esm/src/agent/hosted-form-input-tool.d.ts +0 -85
- package/esm/src/agent/hosted-form-input-tool.d.ts.map +0 -1
- package/esm/src/agent/hosted-form-input-tool.js +0 -88
- package/esm/src/agent/hosted-lifecycle.d.ts +0 -41
- package/esm/src/agent/hosted-lifecycle.d.ts.map +0 -1
- package/esm/src/agent/hosted-project-remote-tool-source.d.ts +0 -45
- package/esm/src/agent/hosted-project-remote-tool-source.d.ts.map +0 -1
- package/esm/src/agent/hosted-project-remote-tool-source.js +0 -135
- package/esm/src/agent/hosted-project-steering-adapter.d.ts +0 -34
- package/esm/src/agent/hosted-project-steering-adapter.d.ts.map +0 -1
- package/esm/src/agent/hosted-project-steering-adapter.js +0 -82
- package/esm/src/agent/hosted-response-stream.d.ts +0 -22
- package/esm/src/agent/hosted-response-stream.d.ts.map +0 -1
- package/esm/src/agent/hosted-response-stream.js +0 -52
- package/esm/src/agent/hosted-runtime-request-config.d.ts +0 -27
- package/esm/src/agent/hosted-runtime-request-config.d.ts.map +0 -1
- package/esm/src/agent/hosted-runtime-request-config.js +0 -54
- package/esm/src/agent/hosted-runtime-state-resolver.d.ts +0 -28
- package/esm/src/agent/hosted-runtime-state-resolver.d.ts.map +0 -1
- package/esm/src/agent/hosted-runtime-state-resolver.js +0 -71
- package/esm/src/agent/hosted-stream-finalization.d.ts +0 -61
- package/esm/src/agent/hosted-stream-finalization.d.ts.map +0 -1
- package/esm/src/agent/hosted-stream-terminal-error.d.ts +0 -16
- package/esm/src/agent/hosted-stream-terminal-error.d.ts.map +0 -1
- package/esm/src/agent/hosted-stream-terminal-error.js +0 -54
- package/esm/src/agent/node-agent-service-runtime-infrastructure.d.ts +0 -26
- package/esm/src/agent/node-agent-service-runtime-infrastructure.d.ts.map +0 -1
- package/esm/src/agent/node-agent-service-runtime-infrastructure.js +0 -30
- package/esm/src/agent/node-agent-service-telemetry.d.ts +0 -44
- package/esm/src/agent/node-agent-service-telemetry.d.ts.map +0 -1
- package/esm/src/agent/runtime-ag-ui-contract.d.ts +0 -213
- package/esm/src/agent/runtime-ag-ui-contract.d.ts.map +0 -1
- package/esm/src/agent/runtime-ag-ui-contract.js +0 -134
- package/esm/src/agent/runtime-agent-definition-files.d.ts +0 -23
- package/esm/src/agent/runtime-agent-definition-files.d.ts.map +0 -1
- package/esm/src/agent/runtime-agent-definition-files.js +0 -79
- package/esm/src/agent/runtime-agent-definition.d.ts +0 -60
- package/esm/src/agent/runtime-agent-definition.d.ts.map +0 -1
- package/esm/src/agent/runtime-agent-definition.js +0 -105
- package/esm/src/agent/runtime-agent-invocation-contract.d.ts +0 -326
- package/esm/src/agent/runtime-agent-invocation-contract.d.ts.map +0 -1
- package/esm/src/agent/runtime-agent-invocation-contract.js +0 -212
- package/esm/src/agent/runtime-agent-markdown-adapter.d.ts +0 -6
- package/esm/src/agent/runtime-agent-markdown-adapter.d.ts.map +0 -1
- package/esm/src/agent/runtime-agent-markdown-adapter.js +0 -20
- package/esm/src/agent/runtime-builtin-skill-files.d.ts +0 -18
- package/esm/src/agent/runtime-builtin-skill-files.d.ts.map +0 -1
- package/esm/src/agent/runtime-builtin-skill-files.js +0 -82
- package/esm/src/agent/runtime-client-profile.d.ts +0 -26
- package/esm/src/agent/runtime-client-profile.d.ts.map +0 -1
- package/esm/src/agent/runtime-client-profile.js +0 -82
- package/esm/src/agent/runtime-load-skill-tool.d.ts +0 -43
- package/esm/src/agent/runtime-load-skill-tool.d.ts.map +0 -1
- package/esm/src/agent/runtime-load-skill-tool.js +0 -115
- package/esm/src/agent/runtime-message-file-url-refresh.d.ts +0 -9
- package/esm/src/agent/runtime-message-file-url-refresh.d.ts.map +0 -1
- package/esm/src/agent/runtime-message-preparation.d.ts +0 -10
- package/esm/src/agent/runtime-message-preparation.d.ts.map +0 -1
- package/esm/src/agent/runtime-message-preparation.js +0 -34
- package/esm/src/agent/runtime-project-files-client.d.ts +0 -50
- package/esm/src/agent/runtime-project-files-client.d.ts.map +0 -1
- package/esm/src/agent/runtime-project-files-client.js +0 -143
- package/esm/src/agent/runtime-project-skill-catalog.d.ts +0 -26
- package/esm/src/agent/runtime-project-skill-catalog.d.ts.map +0 -1
- package/esm/src/agent/runtime-project-skill-catalog.js +0 -148
- package/esm/src/agent/runtime-project-skill-loader.d.ts +0 -28
- package/esm/src/agent/runtime-project-skill-loader.d.ts.map +0 -1
- package/esm/src/agent/runtime-project-skill-loader.js +0 -122
- package/esm/src/agent/runtime-prompt-block.d.ts +0 -7
- package/esm/src/agent/runtime-prompt-block.d.ts.map +0 -1
- package/esm/src/agent/runtime-skill-metadata.d.ts +0 -75
- package/esm/src/agent/runtime-skill-metadata.d.ts.map +0 -1
- package/esm/src/agent/runtime-skill-metadata.js +0 -159
- package/esm/src/agent/runtime-skill-prompt.d.ts +0 -5
- package/esm/src/agent/runtime-skill-prompt.d.ts.map +0 -1
- package/esm/src/agent/runtime-skill-prompt.js +0 -40
- package/esm/src/agent/runtime-tool-inventory.d.ts +0 -4
- package/esm/src/agent/runtime-tool-inventory.d.ts.map +0 -1
- package/esm/src/agent/runtime-upload-url-client.d.ts +0 -13
- package/esm/src/agent/runtime-upload-url-client.d.ts.map +0 -1
- package/esm/src/agent/runtime-upload-url-client.js +0 -54
- package/src/deps/esm.sh/@types/react@19.2.3/global.d.ts +0 -165
- package/src/deps/esm.sh/@types/react@19.2.3/index.d.ts +0 -4301
- package/src/src/agent/ag-ui-browser-chunk-encoder.ts +0 -58
- package/src/src/agent/ag-ui-browser-encoder.ts +0 -538
- package/src/src/agent/ag-ui-browser-finalize-tracker.ts +0 -65
- package/src/src/agent/ag-ui-browser-response-stream.ts +0 -175
- package/src/src/agent/ag-ui-chat-ui-chunk-browser-encoder.ts +0 -172
- package/src/src/agent/ag-ui-chunk-encoder-bridge.ts +0 -34
- package/src/src/agent/ag-ui-detached-start.ts +0 -425
- package/src/src/agent/ag-ui-forwarded-context.ts +0 -83
- package/src/src/agent/ag-ui-handler.ts +0 -388
- package/src/src/agent/ag-ui-host-support.ts +0 -244
- package/src/src/agent/ag-ui-request-shared.ts +0 -76
- package/src/src/agent/ag-ui-run-control.ts +0 -145
- package/src/src/agent/ag-ui-runtime-browser-response.ts +0 -41
- package/src/src/agent/ag-ui-runtime-chat-stream-encoder.ts +0 -359
- package/src/src/agent/ag-ui-runtime-event-encoder.ts +0 -71
- package/src/src/agent/ag-ui-runtime-handler.ts +0 -510
- package/src/src/agent/ag-ui-runtime-support.ts +0 -64
- package/src/src/agent/ag-ui-sse-parser.ts +0 -306
- package/src/src/agent/ag-ui-tool-shared.ts +0 -80
- package/src/src/agent/ag-ui-tracked-browser-response.ts +0 -42
- package/src/src/agent/agent-service-bootstrap.ts +0 -79
- package/src/src/agent/agent-service-env-files.ts +0 -60
- package/src/src/agent/agent-service-mcp-server-config.ts +0 -112
- package/src/src/agent/agent-service-registration.ts +0 -320
- package/src/src/agent/agent-service-routes.ts +0 -389
- package/src/src/agent/agent-service-runtime.ts +0 -303
- package/src/src/agent/agent-service-server.ts +0 -98
- package/src/src/agent/agent-service.ts +0 -386
- package/src/src/agent/conversation-bootstrap.ts +0 -335
- package/src/src/agent/conversation-delegation-policy.ts +0 -299
- package/src/src/agent/conversation-hosted-lifecycle.ts +0 -215
- package/src/src/agent/conversation-hosted-terminal.ts +0 -235
- package/src/src/agent/conversation-root-run-context.ts +0 -143
- package/src/src/agent/conversation-root-run-lifecycle.ts +0 -184
- package/src/src/agent/conversation-run-chunk-mirror.ts +0 -353
- package/src/src/agent/conversation-run-context.ts +0 -22
- package/src/src/agent/conversation-run-event-preparation.ts +0 -76
- package/src/src/agent/conversation-run-events.ts +0 -242
- package/src/src/agent/conversation-run-mirror.ts +0 -235
- package/src/src/agent/conversation-run-stream-mirror.ts +0 -59
- package/src/src/agent/hosted-ag-ui-chat-request.ts +0 -197
- package/src/src/agent/hosted-agent-project-steering.ts +0 -129
- package/src/src/agent/hosted-agent-run-lifecycle.ts +0 -161
- package/src/src/agent/hosted-chat-execution-runtime.ts +0 -703
- package/src/src/agent/hosted-chat-preparation.ts +0 -357
- package/src/src/agent/hosted-chat-request-parser.ts +0 -209
- package/src/src/agent/hosted-chat-request.ts +0 -112
- package/src/src/agent/hosted-chat-runtime-agent-adapter.ts +0 -88
- package/src/src/agent/hosted-chat-runtime-contract.ts +0 -101
- package/src/src/agent/hosted-chat-runtime-tool-assembly.ts +0 -183
- package/src/src/agent/hosted-child-artifact-support.ts +0 -201
- package/src/src/agent/hosted-child-bootstrap.ts +0 -75
- package/src/src/agent/hosted-child-execution-logging.ts +0 -114
- package/src/src/agent/hosted-child-fork-execution-runner.ts +0 -393
- package/src/src/agent/hosted-child-fork-run-context.ts +0 -312
- package/src/src/agent/hosted-child-fork-runtime-start.ts +0 -84
- package/src/src/agent/hosted-child-fork-step-message-preparation.ts +0 -96
- package/src/src/agent/hosted-child-fork-stream-execution.ts +0 -626
- package/src/src/agent/hosted-child-fork-tool-sources.ts +0 -223
- package/src/src/agent/hosted-child-invoke-tool.ts +0 -90
- package/src/src/agent/hosted-child-lifecycle.ts +0 -352
- package/src/src/agent/hosted-child-mirror.ts +0 -272
- package/src/src/agent/hosted-child-pending-tool-lifecycle.ts +0 -191
- package/src/src/agent/hosted-child-requested-tools.ts +0 -411
- package/src/src/agent/hosted-child-status.ts +0 -167
- package/src/src/agent/hosted-child-steering-tools.ts +0 -92
- package/src/src/agent/hosted-child-stream-watchdog.ts +0 -146
- package/src/src/agent/hosted-child-tool-input.ts +0 -91
- package/src/src/agent/hosted-durable-chat-run-start.ts +0 -246
- package/src/src/agent/hosted-durable-child-fork-execution.ts +0 -597
- package/src/src/agent/hosted-finalized-message.ts +0 -170
- package/src/src/agent/hosted-form-input-tool.ts +0 -128
- package/src/src/agent/hosted-project-remote-tool-source.ts +0 -262
- package/src/src/agent/hosted-project-steering-adapter.ts +0 -184
- package/src/src/agent/hosted-response-stream.ts +0 -87
- package/src/src/agent/hosted-runtime-request-config.ts +0 -112
- package/src/src/agent/hosted-runtime-state-resolver.ts +0 -133
- package/src/src/agent/hosted-stream-finalization.ts +0 -188
- package/src/src/agent/hosted-stream-terminal-error.ts +0 -81
- package/src/src/agent/node-agent-service-runtime-infrastructure.ts +0 -71
- package/src/src/agent/runtime-ag-ui-contract.ts +0 -216
- package/src/src/agent/runtime-agent-definition-files.ts +0 -128
- package/src/src/agent/runtime-agent-definition.ts +0 -163
- package/src/src/agent/runtime-agent-invocation-contract.ts +0 -355
- package/src/src/agent/runtime-agent-markdown-adapter.ts +0 -31
- package/src/src/agent/runtime-builtin-skill-files.ts +0 -122
- package/src/src/agent/runtime-client-profile.ts +0 -123
- package/src/src/agent/runtime-load-skill-tool.ts +0 -239
- package/src/src/agent/runtime-message-file-url-refresh.ts +0 -120
- package/src/src/agent/runtime-message-preparation.ts +0 -58
- package/src/src/agent/runtime-project-files-client.ts +0 -256
- package/src/src/agent/runtime-project-skill-catalog.ts +0 -238
- package/src/src/agent/runtime-project-skill-loader.ts +0 -217
- package/src/src/agent/runtime-skill-metadata.ts +0 -260
- package/src/src/agent/runtime-skill-prompt.ts +0 -61
- package/src/src/agent/runtime-tool-inventory.ts +0 -46
- package/src/src/agent/runtime-upload-url-client.ts +0 -95
- /package/esm/src/agent/{ag-ui-browser-response-stream.js → ag-ui/browser-response-stream.js} +0 -0
- /package/esm/src/agent/{ag-ui-runtime-support.js → ag-ui/runtime-support.js} +0 -0
- /package/esm/src/agent/{child-run-execution-cleanup.js → child-run/execution-cleanup.js} +0 -0
- /package/esm/src/agent/{child-run-execution-snapshot.js → child-run/execution-snapshot.js} +0 -0
- /package/esm/src/agent/{child-run-execution-support.js → child-run/execution-support.js} +0 -0
- /package/esm/src/agent/{child-run-final-step-support.js → child-run/final-step-support.js} +0 -0
- /package/esm/src/agent/{child-run-result-summary.js → child-run/result-summary.js} +0 -0
- /package/esm/src/agent/{conversation-run-context.js → conversation/run-context.js} +0 -0
- /package/esm/src/agent/{conversation-run-event-normalization.js → conversation/run-event-normalization.js} +0 -0
- /package/esm/src/agent/{hosted-chat-runtime-contract.js → hosted/chat-runtime-contract.js} +0 -0
- /package/esm/src/agent/{hosted-child-fork-instructions.js → hosted/child-fork-instructions.js} +0 -0
- /package/esm/src/agent/{hosted-child-mirror.js → hosted/child-mirror.js} +0 -0
- /package/esm/src/agent/{hosted-lifecycle.js → hosted/lifecycle.js} +0 -0
- /package/esm/src/agent/{hosted-stream-finalization.js → hosted/stream-finalization.js} +0 -0
- /package/esm/src/agent/{runtime-message-file-url-refresh.js → runtime/message-file-url-refresh.js} +0 -0
- /package/esm/src/agent/{runtime-prompt-block.js → runtime/prompt-block.js} +0 -0
- /package/esm/src/agent/{runtime-tool-inventory.js → runtime/tool-inventory.js} +0 -0
- /package/esm/src/agent/{agent-service-auth.js → service/auth.js} +0 -0
- /package/esm/src/agent/{agent-service-config.js → service/config.js} +0 -0
- /package/esm/src/agent/{agent-service.js → service/definition.js} +0 -0
- /package/esm/src/agent/{node-agent-service-telemetry.js → service/node-telemetry.js} +0 -0
- /package/src/src/agent/{child-run-execution-cleanup.ts → child-run/execution-cleanup.ts} +0 -0
- /package/src/src/agent/{child-run-execution-snapshot.ts → child-run/execution-snapshot.ts} +0 -0
- /package/src/src/agent/{child-run-execution-support.ts → child-run/execution-support.ts} +0 -0
- /package/src/src/agent/{child-run-final-step-support.ts → child-run/final-step-support.ts} +0 -0
- /package/src/src/agent/{child-run-result-summary.ts → child-run/result-summary.ts} +0 -0
- /package/src/src/agent/{conversation-run-event-normalization.ts → conversation/run-event-normalization.ts} +0 -0
- /package/src/src/agent/{hosted-child-fork-instructions.ts → hosted/child-fork-instructions.ts} +0 -0
- /package/src/src/agent/{hosted-lifecycle.ts → hosted/lifecycle.ts} +0 -0
- /package/src/src/agent/{runtime-prompt-block.ts → runtime/prompt-block.ts} +0 -0
- /package/src/src/agent/{agent-service-auth.ts → service/auth.ts} +0 -0
- /package/src/src/agent/{agent-service-config.ts → service/config.ts} +0 -0
- /package/src/src/agent/{node-agent-service-telemetry.ts → service/node-telemetry.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-lifecycle.d.ts","sourceRoot":"","sources":["../../../src/src/agent/hosted-lifecycle.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IAC7C,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE;YACN,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;SAC5B,CAAC;KACH,CAAC;IACF,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,wBAAwB,CAAC,MAAM;IAC9C,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,sBAAsB,CAAC,IAAI,EAAE,MAAM;IAClD,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,WAAW,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACxE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAClE,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC5E,8BAA8B,CAAC,EAAE,CAC/B,GAAG,EAAE,IAAI,EACT,aAAa,EAAE,4BAA4B,KACxC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,CAChB,GAAG,EAAE,IAAI,EACT,aAAa,EAAE,4BAA4B,KACxC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,4BAA4B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC/F,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,4BAA4B,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC9F;AAED,MAAM,WAAW,4BAA4B,CAAC,IAAI,EAAE,MAAM;IACxD,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,EAAE,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC9C,oBAAoB,EAAE,MAAM,OAAO,CAAC,4BAA4B,CAAC,GAAG,4BAA4B,CAAC;IACjG,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,OAAO,KACX,OAAO,CAAC,4BAA4B,CAAC,GAAG,4BAA4B,CAAC;CAC3E;AAED,MAAM,WAAW,wBAAwB,CAAC,IAAI;IAC5C,GAAG,EAAE,IAAI,CAAC;IACV,aAAa,EAAE,4BAA4B,CAAC;CAC7C;AA4ED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EACnD,OAAO,EAAE,4BAA4B,CAAC,IAAI,EAAE,MAAM,CAAC,GAClD,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAgCzC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { type ProjectScopedRemoteToolDefaultProjectId, type ProjectScopedRemoteToolOptions, type RemoteMCPToolSourceConfig, type RemoteToolSource, type ToolExecutionContext } from "../tool/index.js";
|
|
2
|
-
import { type AgentServiceMcpServerConfig } from "./agent-service-mcp-server-config.js";
|
|
3
|
-
import type { RuntimeClientProfile } from "./runtime-client-profile.js";
|
|
4
|
-
import { type ProjectSteeringMutationResult, type ProjectSteeringPaths } from "./project-steering-mutation.js";
|
|
5
|
-
export type HostedProjectRemoteToolSourceMutationHandler = (mutation: ProjectSteeringMutationResult) => Promise<void> | void;
|
|
6
|
-
export type HostedProjectRemoteToolSourceProjectSwitchHandler = (projectId: string) => Promise<void> | void;
|
|
7
|
-
export type HostedProjectRemoteToolSourcePrepareToolInput = (input: {
|
|
8
|
-
toolName: string;
|
|
9
|
-
toolInput: Record<string, unknown>;
|
|
10
|
-
context?: ToolExecutionContext;
|
|
11
|
-
}) => Record<string, unknown>;
|
|
12
|
-
export type HostedProjectRemoteToolSourceRetryPolicy = (input: {
|
|
13
|
-
toolName: string;
|
|
14
|
-
toolInput: Record<string, unknown>;
|
|
15
|
-
activeProjectId: string | null;
|
|
16
|
-
activeBranchId: string | null;
|
|
17
|
-
error: unknown;
|
|
18
|
-
}) => boolean;
|
|
19
|
-
export type CreateHostedProjectRemoteToolSourceInput = {
|
|
20
|
-
source: RemoteToolSource;
|
|
21
|
-
defaultProjectId?: ProjectScopedRemoteToolDefaultProjectId;
|
|
22
|
-
getActiveBranchId?: () => string | null | undefined;
|
|
23
|
-
allowedToolNames?: ReadonlySet<string> | null;
|
|
24
|
-
projectScopedRemoteToolOptions?: ProjectScopedRemoteToolOptions;
|
|
25
|
-
prepareToolInput?: HostedProjectRemoteToolSourcePrepareToolInput;
|
|
26
|
-
retryToolName?: string;
|
|
27
|
-
shouldRetryWithTool?: HostedProjectRemoteToolSourceRetryPolicy;
|
|
28
|
-
steeringPaths?: ProjectSteeringPaths;
|
|
29
|
-
onProjectSwitch?: HostedProjectRemoteToolSourceProjectSwitchHandler;
|
|
30
|
-
onSteeringMutation?: HostedProjectRemoteToolSourceMutationHandler;
|
|
31
|
-
};
|
|
32
|
-
export declare function createHostedProjectRemoteToolSource(input: CreateHostedProjectRemoteToolSourceInput): RemoteToolSource;
|
|
33
|
-
export type CreateHostedProjectRemoteToolSourcesInput = Omit<CreateHostedProjectRemoteToolSourceInput, "source" | "onProjectSwitch"> & {
|
|
34
|
-
authToken: string;
|
|
35
|
-
apiMcpUrl: string;
|
|
36
|
-
studioMcpUrl?: string | null;
|
|
37
|
-
mcpServers?: readonly AgentServiceMcpServerConfig[];
|
|
38
|
-
clientProfile?: RuntimeClientProfile | null;
|
|
39
|
-
getProjectId: () => string | null | undefined;
|
|
40
|
-
conversationId?: string;
|
|
41
|
-
createRemoteToolSource?: (config: RemoteMCPToolSourceConfig) => RemoteToolSource;
|
|
42
|
-
onStudioProjectSwitch?: HostedProjectRemoteToolSourceProjectSwitchHandler;
|
|
43
|
-
};
|
|
44
|
-
export declare function createHostedProjectRemoteToolSources(input: CreateHostedProjectRemoteToolSourcesInput): RemoteToolSource[];
|
|
45
|
-
//# sourceMappingURL=hosted-project-remote-tool-source.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-project-remote-tool-source.d.ts","sourceRoot":"","sources":["../../../src/src/agent/hosted-project-remote-tool-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,uCAAuC,EAC5C,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,2BAA2B,EAGjC,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAGL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,4CAA4C,GAAG,CACzD,QAAQ,EAAE,6BAA6B,KACpC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B,MAAM,MAAM,iDAAiD,GAAG,CAC9D,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B,MAAM,MAAM,6CAA6C,GAAG,CAAC,KAAK,EAAE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9B,MAAM,MAAM,wCAAwC,GAAG,CAAC,KAAK,EAAE;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,OAAO,CAAC;CAChB,KAAK,OAAO,CAAC;AAEd,MAAM,MAAM,wCAAwC,GAAG;IACrD,MAAM,EAAE,gBAAgB,CAAC;IACzB,gBAAgB,CAAC,EAAE,uCAAuC,CAAC;IAC3D,iBAAiB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9C,8BAA8B,CAAC,EAAE,8BAA8B,CAAC;IAChE,gBAAgB,CAAC,EAAE,6CAA6C,CAAC;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,wCAAwC,CAAC;IAC/D,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,eAAe,CAAC,EAAE,iDAAiD,CAAC;IACpE,kBAAkB,CAAC,EAAE,4CAA4C,CAAC;CACnE,CAAC;AAQF,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,wCAAwC,GAC9C,gBAAgB,CAkHlB;AAED,MAAM,MAAM,yCAAyC,GACjD,IAAI,CACJ,wCAAwC,EACxC,QAAQ,GAAG,iBAAiB,CAC7B,GACC;IACA,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACpD,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC5C,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,gBAAgB,CAAC;IACjF,qBAAqB,CAAC,EAAE,iDAAiD,CAAC;CAC3E,CAAC;AA8BJ,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,yCAAyC,GAC/C,gBAAgB,EAAE,CA6BpB"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { createProjectScopedRemoteToolCatalog, createRemoteMCPToolSource, isProjectNavigationRemoteTool, } from "../tool/index.js";
|
|
2
|
-
import { createAgentServiceRemoteMcpConfig, defaultAgentServiceMcpServers, } from "./agent-service-mcp-server-config.js";
|
|
3
|
-
import { toChildRunToolInputRecord } from "./child-run-execution-support.js";
|
|
4
|
-
import { getConfirmedProjectContextSwitchId } from "./project-context.js";
|
|
5
|
-
import { getProjectSteeringMutation, isSuccessfulProjectSteeringMutationResult, } from "./project-steering-mutation.js";
|
|
6
|
-
function resolveActiveBranchId(getActiveBranchId) {
|
|
7
|
-
return getActiveBranchId?.() ?? null;
|
|
8
|
-
}
|
|
9
|
-
export function createHostedProjectRemoteToolSource(input) {
|
|
10
|
-
const toolCatalog = createProjectScopedRemoteToolCatalog({
|
|
11
|
-
source: input.source,
|
|
12
|
-
defaultProjectId: input.defaultProjectId,
|
|
13
|
-
allowedToolNames: input.allowedToolNames,
|
|
14
|
-
projectScopedRemoteToolOptions: input.projectScopedRemoteToolOptions,
|
|
15
|
-
});
|
|
16
|
-
const retryToolName = input.retryToolName ?? "update_file";
|
|
17
|
-
async function executeWithRetry(inputExecution) {
|
|
18
|
-
try {
|
|
19
|
-
return await input.source.executeTool(inputExecution.toolName, inputExecution.toolInput, inputExecution.executeContext);
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
22
|
-
if (input.shouldRetryWithTool?.({
|
|
23
|
-
toolName: inputExecution.toolName,
|
|
24
|
-
toolInput: inputExecution.toolInput,
|
|
25
|
-
activeProjectId: inputExecution.activeProjectId,
|
|
26
|
-
activeBranchId: inputExecution.activeBranchId,
|
|
27
|
-
error,
|
|
28
|
-
})) {
|
|
29
|
-
return input.source.executeTool(retryToolName, inputExecution.toolInput, inputExecution.executeContext);
|
|
30
|
-
}
|
|
31
|
-
throw error;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
id: input.source.id,
|
|
36
|
-
listTools: (context) => toolCatalog.listTools(context),
|
|
37
|
-
async executeTool(toolName, args, context) {
|
|
38
|
-
const normalizedToolInput = input.prepareToolInput?.({
|
|
39
|
-
toolName,
|
|
40
|
-
toolInput: toChildRunToolInputRecord(args),
|
|
41
|
-
context,
|
|
42
|
-
}) ?? toChildRunToolInputRecord(args);
|
|
43
|
-
const { activeProjectId, toolInput: hydratedToolInput, executeContext, } = await toolCatalog.prepareExecution({
|
|
44
|
-
toolName,
|
|
45
|
-
toolInput: normalizedToolInput,
|
|
46
|
-
context,
|
|
47
|
-
});
|
|
48
|
-
const activeBranchId = resolveActiveBranchId(input.getActiveBranchId);
|
|
49
|
-
let result = await executeWithRetry({
|
|
50
|
-
toolName,
|
|
51
|
-
toolInput: hydratedToolInput,
|
|
52
|
-
executeContext,
|
|
53
|
-
activeProjectId,
|
|
54
|
-
activeBranchId,
|
|
55
|
-
});
|
|
56
|
-
if (input.shouldRetryWithTool?.({
|
|
57
|
-
toolName,
|
|
58
|
-
toolInput: hydratedToolInput,
|
|
59
|
-
activeProjectId,
|
|
60
|
-
activeBranchId,
|
|
61
|
-
error: result,
|
|
62
|
-
})) {
|
|
63
|
-
result = await input.source.executeTool(retryToolName, hydratedToolInput, executeContext);
|
|
64
|
-
}
|
|
65
|
-
if (!isSuccessfulProjectSteeringMutationResult(result)) {
|
|
66
|
-
return result;
|
|
67
|
-
}
|
|
68
|
-
if (isProjectNavigationRemoteTool(toolName, input.projectScopedRemoteToolOptions)) {
|
|
69
|
-
const requestedProjectId = normalizedToolInput.project_id;
|
|
70
|
-
const confirmedProjectId = typeof requestedProjectId === "string"
|
|
71
|
-
? getConfirmedProjectContextSwitchId(result, requestedProjectId)
|
|
72
|
-
: null;
|
|
73
|
-
if (confirmedProjectId) {
|
|
74
|
-
await input.onProjectSwitch?.(confirmedProjectId);
|
|
75
|
-
}
|
|
76
|
-
return result;
|
|
77
|
-
}
|
|
78
|
-
const mutation = getProjectSteeringMutation({
|
|
79
|
-
toolName,
|
|
80
|
-
toolInput: hydratedToolInput,
|
|
81
|
-
activeProjectId,
|
|
82
|
-
activeBranchId,
|
|
83
|
-
steeringPaths: input.steeringPaths,
|
|
84
|
-
});
|
|
85
|
-
if (mutation.instructionsChanged || mutation.skillsChanged) {
|
|
86
|
-
await input.onSteeringMutation?.(mutation);
|
|
87
|
-
}
|
|
88
|
-
return result;
|
|
89
|
-
},
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function createHostedProjectRemoteToolSourceFromConfig(input, source, onProjectSwitch) {
|
|
93
|
-
return createHostedProjectRemoteToolSource({
|
|
94
|
-
source,
|
|
95
|
-
...(input.defaultProjectId !== undefined ? { defaultProjectId: input.defaultProjectId } : {}),
|
|
96
|
-
...(input.getActiveBranchId !== undefined
|
|
97
|
-
? { getActiveBranchId: input.getActiveBranchId }
|
|
98
|
-
: {}),
|
|
99
|
-
...(input.allowedToolNames !== undefined ? { allowedToolNames: input.allowedToolNames } : {}),
|
|
100
|
-
...(input.projectScopedRemoteToolOptions !== undefined
|
|
101
|
-
? { projectScopedRemoteToolOptions: input.projectScopedRemoteToolOptions }
|
|
102
|
-
: {}),
|
|
103
|
-
...(input.prepareToolInput !== undefined ? { prepareToolInput: input.prepareToolInput } : {}),
|
|
104
|
-
...(input.retryToolName !== undefined ? { retryToolName: input.retryToolName } : {}),
|
|
105
|
-
...(input.shouldRetryWithTool !== undefined
|
|
106
|
-
? { shouldRetryWithTool: input.shouldRetryWithTool }
|
|
107
|
-
: {}),
|
|
108
|
-
...(input.steeringPaths !== undefined ? { steeringPaths: input.steeringPaths } : {}),
|
|
109
|
-
...(input.onSteeringMutation !== undefined
|
|
110
|
-
? { onSteeringMutation: input.onSteeringMutation }
|
|
111
|
-
: {}),
|
|
112
|
-
...(onProjectSwitch !== undefined ? { onProjectSwitch } : {}),
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
export function createHostedProjectRemoteToolSources(input) {
|
|
116
|
-
const createRemoteToolSource = input.createRemoteToolSource ?? createRemoteMCPToolSource;
|
|
117
|
-
const sources = [];
|
|
118
|
-
const mcpServers = input.mcpServers ?? defaultAgentServiceMcpServers();
|
|
119
|
-
for (const server of mcpServers) {
|
|
120
|
-
const remoteConfig = createAgentServiceRemoteMcpConfig({
|
|
121
|
-
server,
|
|
122
|
-
authToken: input.authToken,
|
|
123
|
-
apiMcpUrl: input.apiMcpUrl,
|
|
124
|
-
studioMcpUrl: input.studioMcpUrl,
|
|
125
|
-
clientProfile: input.clientProfile,
|
|
126
|
-
getProjectId: input.getProjectId,
|
|
127
|
-
conversationId: input.conversationId,
|
|
128
|
-
});
|
|
129
|
-
if (!remoteConfig) {
|
|
130
|
-
continue;
|
|
131
|
-
}
|
|
132
|
-
sources.push(createHostedProjectRemoteToolSourceFromConfig(input, createRemoteToolSource(remoteConfig), server.kind === "veryfront-studio" ? input.onStudioProjectSwitch : undefined));
|
|
133
|
-
}
|
|
134
|
-
return sources;
|
|
135
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Tool } from "../tool/index.js";
|
|
2
|
-
import { type RuntimeLoadSkillBuiltinStore, type RuntimeLoadSkillToolContext, type RuntimeLoadSkillToolInput, type RuntimeLoadSkillToolOutput } from "./runtime-load-skill-tool.js";
|
|
3
|
-
import type { MutableAgentProjectContext } from "./project-context.js";
|
|
4
|
-
import { type RuntimeProjectFilesClient, type RuntimeProjectFilesFetch, type RuntimeProjectFilesTrace } from "./runtime-project-files-client.js";
|
|
5
|
-
import { type RuntimeProjectSteeringLookup } from "./runtime-project-skill-catalog.js";
|
|
6
|
-
import { type RuntimeLoadedProjectSkill, type RuntimeProjectSkillContext, type RuntimeProjectSkillLoader, type RuntimeProjectSkillLoaderLogger } from "./runtime-project-skill-loader.js";
|
|
7
|
-
import type { RuntimeSkillDefinition, RuntimeSkillMetadataLogger } from "./runtime-skill-metadata.js";
|
|
8
|
-
export type HostedProjectSteeringLogger = RuntimeSkillMetadataLogger & RuntimeProjectSkillLoaderLogger;
|
|
9
|
-
export type HostedProjectSteeringAdapterOptions = {
|
|
10
|
-
apiUrl: string | URL;
|
|
11
|
-
skillsDir: string;
|
|
12
|
-
logger?: HostedProjectSteeringLogger;
|
|
13
|
-
trace?: RuntimeProjectFilesTrace;
|
|
14
|
-
fetch?: RuntimeProjectFilesFetch;
|
|
15
|
-
projectFilesClient?: RuntimeProjectFilesClient;
|
|
16
|
-
projectSkillLoader?: RuntimeProjectSkillLoader;
|
|
17
|
-
builtinSkills?: readonly RuntimeSkillDefinition[];
|
|
18
|
-
builtinStore?: RuntimeLoadSkillBuiltinStore;
|
|
19
|
-
};
|
|
20
|
-
export type HostedProjectSkillIdsContext = MutableAgentProjectContext & {
|
|
21
|
-
authToken: string;
|
|
22
|
-
};
|
|
23
|
-
export type HostedProjectSteeringAdapter = {
|
|
24
|
-
listBuiltinSkillIds: () => string[];
|
|
25
|
-
getProjectInstructions: (lookup: RuntimeProjectSteeringLookup) => Promise<string>;
|
|
26
|
-
getSkillsConfig: (lookup: RuntimeProjectSteeringLookup) => Promise<RuntimeSkillDefinition[]>;
|
|
27
|
-
listProjectSkillReferences: (context: RuntimeProjectSkillContext, skillId: string) => Promise<string[]>;
|
|
28
|
-
loadProjectSkill: (context: RuntimeProjectSkillContext, skillId: string) => Promise<RuntimeLoadedProjectSkill | null>;
|
|
29
|
-
loadProjectSkillReference: (context: RuntimeProjectSkillContext, skillId: string, normalizedFile: string) => Promise<string | null>;
|
|
30
|
-
createLoadSkillTool: (context: RuntimeLoadSkillToolContext) => Tool<RuntimeLoadSkillToolInput, RuntimeLoadSkillToolOutput>;
|
|
31
|
-
refreshProjectSkillIds: (context: HostedProjectSkillIdsContext) => Promise<void>;
|
|
32
|
-
};
|
|
33
|
-
export declare function createHostedProjectSteeringAdapter(options: HostedProjectSteeringAdapterOptions): HostedProjectSteeringAdapter;
|
|
34
|
-
//# sourceMappingURL=hosted-project-steering-adapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-project-steering-adapter.d.ts","sourceRoot":"","sources":["../../../src/src/agent/hosted-project-steering-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EAEL,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAEL,KAAK,yBAAyB,EAE9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC9B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACrC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,2BAA2B,GACnC,0BAA0B,GAC1B,+BAA+B,CAAC;AAEpC,MAAM,MAAM,mCAAmC,GAAG;IAChD,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC,KAAK,CAAC,EAAE,wBAAwB,CAAC;IACjC,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;IAC/C,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;IAC/C,aAAa,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAClD,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,0BAA0B,GAAG;IACtE,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,mBAAmB,EAAE,MAAM,MAAM,EAAE,CAAC;IACpC,sBAAsB,EAAE,CAAC,MAAM,EAAE,4BAA4B,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAClF,eAAe,EAAE,CAAC,MAAM,EAAE,4BAA4B,KAAK,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAC7F,0BAA0B,EAAE,CAC1B,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACvB,gBAAgB,EAAE,CAChB,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;IAC/C,yBAAyB,EAAE,CACzB,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,KACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B,mBAAmB,EAAE,CACnB,OAAO,EAAE,2BAA2B,KACjC,IAAI,CAAC,yBAAyB,EAAE,0BAA0B,CAAC,CAAC;IACjE,sBAAsB,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClF,CAAC;AA2CF,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,mCAAmC,GAC3C,4BAA4B,CAyD9B"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { HostedServiceAuthError, isHostedServiceAuthError } from "./agent-service-auth.js";
|
|
2
|
-
import { listRuntimeBuiltinSkillReferences, readRuntimeBuiltinSkill, readRuntimeBuiltinSkillReferenceFile, } from "./runtime-builtin-skill-files.js";
|
|
3
|
-
import { createRuntimeLoadSkillTool, } from "./runtime-load-skill-tool.js";
|
|
4
|
-
import { createRuntimeProjectFilesClient, } from "./runtime-project-files-client.js";
|
|
5
|
-
import { getRuntimeProjectInstructions, getRuntimeProjectSkillCatalog, loadRuntimeBuiltinSkillCatalog, } from "./runtime-project-skill-catalog.js";
|
|
6
|
-
import { createRuntimeProjectSkillLoader, } from "./runtime-project-skill-loader.js";
|
|
7
|
-
function createProjectFilesAccessDeniedError(statusCode, message) {
|
|
8
|
-
return new HostedServiceAuthError(statusCode, message);
|
|
9
|
-
}
|
|
10
|
-
function createProjectFilesClientOptions(options) {
|
|
11
|
-
return {
|
|
12
|
-
apiUrl: options.apiUrl,
|
|
13
|
-
fetch: options.fetch,
|
|
14
|
-
trace: options.trace,
|
|
15
|
-
createAccessDeniedError: createProjectFilesAccessDeniedError,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function createDefaultProjectFilesClient(options) {
|
|
19
|
-
return createRuntimeProjectFilesClient(createProjectFilesClientOptions(options));
|
|
20
|
-
}
|
|
21
|
-
function createDefaultProjectSkillLoader(options, projectFilesClient) {
|
|
22
|
-
return createRuntimeProjectSkillLoader({
|
|
23
|
-
getProjectFile: projectFilesClient.getProjectFile,
|
|
24
|
-
getProjectFiles: projectFilesClient.getProjectFiles,
|
|
25
|
-
isAccessDeniedError: isHostedServiceAuthError,
|
|
26
|
-
logger: options.logger,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function createDefaultBuiltinStore() {
|
|
30
|
-
return {
|
|
31
|
-
readSkill: readRuntimeBuiltinSkill,
|
|
32
|
-
readReferenceFile: readRuntimeBuiltinSkillReferenceFile,
|
|
33
|
-
listReferences: listRuntimeBuiltinSkillReferences,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export function createHostedProjectSteeringAdapter(options) {
|
|
37
|
-
const projectFilesClient = options.projectFilesClient ?? createDefaultProjectFilesClient(options);
|
|
38
|
-
const projectSkillLoader = options.projectSkillLoader ??
|
|
39
|
-
createDefaultProjectSkillLoader(options, projectFilesClient);
|
|
40
|
-
const builtinSkills = options.builtinSkills ??
|
|
41
|
-
loadRuntimeBuiltinSkillCatalog({ skillsDir: options.skillsDir, logger: options.logger });
|
|
42
|
-
const builtinStore = options.builtinStore ?? createDefaultBuiltinStore();
|
|
43
|
-
async function getProjectInstructions(lookup) {
|
|
44
|
-
return getRuntimeProjectInstructions({
|
|
45
|
-
...lookup,
|
|
46
|
-
getProjectFile: projectFilesClient.getProjectFile,
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
async function getSkillsConfig(lookup) {
|
|
50
|
-
return getRuntimeProjectSkillCatalog({
|
|
51
|
-
...lookup,
|
|
52
|
-
builtinSkills,
|
|
53
|
-
logger: options.logger,
|
|
54
|
-
getProjectFile: projectFilesClient.getProjectFile,
|
|
55
|
-
getProjectFiles: projectFilesClient.getProjectFiles,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
listBuiltinSkillIds: () => builtinSkills.map((skill) => skill.id),
|
|
60
|
-
getProjectInstructions,
|
|
61
|
-
getSkillsConfig,
|
|
62
|
-
listProjectSkillReferences: (context, skillId) => projectSkillLoader.listProjectSkillReferences(context, skillId),
|
|
63
|
-
loadProjectSkill: (context, skillId) => projectSkillLoader.loadProjectSkill(context, skillId),
|
|
64
|
-
loadProjectSkillReference: (context, skillId, normalizedFile) => projectSkillLoader.loadProjectSkillReference(context, skillId, normalizedFile),
|
|
65
|
-
createLoadSkillTool: (context) => createRuntimeLoadSkillTool({
|
|
66
|
-
context,
|
|
67
|
-
skillsDir: options.skillsDir,
|
|
68
|
-
projectSkillLoader,
|
|
69
|
-
builtinSkillIds: builtinSkills.map((skill) => skill.id),
|
|
70
|
-
builtinStore,
|
|
71
|
-
logger: options.logger,
|
|
72
|
-
}),
|
|
73
|
-
refreshProjectSkillIds: async (context) => {
|
|
74
|
-
const skills = await getSkillsConfig({
|
|
75
|
-
projectId: context.projectId,
|
|
76
|
-
authToken: context.authToken,
|
|
77
|
-
branchId: context.branchId,
|
|
78
|
-
});
|
|
79
|
-
context.availableSkillIds = skills.map((skill) => skill.id);
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type HostedLifecycleExecution } from "./hosted-lifecycle.js";
|
|
2
|
-
export interface HostedResponseStreamWriter<TChunk> {
|
|
3
|
-
write: (chunk: TChunk) => void;
|
|
4
|
-
}
|
|
5
|
-
export interface HostedResponseStreamHeartbeatState {
|
|
6
|
-
heartbeatCount: number;
|
|
7
|
-
elapsedSeconds: number;
|
|
8
|
-
}
|
|
9
|
-
export interface HostedResponseStreamHeartbeat<TChunk> {
|
|
10
|
-
intervalMs?: number;
|
|
11
|
-
buildChunk: () => TChunk;
|
|
12
|
-
onBeat?: (state: HostedResponseStreamHeartbeatState) => void;
|
|
13
|
-
onStop?: (state: HostedResponseStreamHeartbeatState) => void;
|
|
14
|
-
}
|
|
15
|
-
export interface RunHostedResponseStreamWithHeartbeatOptions<TChunk> {
|
|
16
|
-
execution: HostedLifecycleExecution<TChunk>;
|
|
17
|
-
writer: HostedResponseStreamWriter<TChunk>;
|
|
18
|
-
heartbeat?: HostedResponseStreamHeartbeat<TChunk>;
|
|
19
|
-
runId?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare function runHostedResponseStreamWithHeartbeat<TChunk>(options: RunHostedResponseStreamWithHeartbeatOptions<TChunk>): Promise<void>;
|
|
22
|
-
//# sourceMappingURL=hosted-response-stream.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-response-stream.d.ts","sourceRoot":"","sources":["../../../src/src/agent/hosted-response-stream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,wBAAwB,EAAsB,MAAM,uBAAuB,CAAC;AAE1F,MAAM,WAAW,0BAA0B,CAAC,MAAM;IAChD,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,kCAAkC;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,6BAA6B,CAAC,MAAM;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,kCAAkC,KAAK,IAAI,CAAC;IAC7D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,kCAAkC,KAAK,IAAI,CAAC;CAC9D;AAED,MAAM,WAAW,2CAA2C,CAAC,MAAM;IACjE,SAAS,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC5C,MAAM,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,6BAA6B,CAAC,MAAM,CAAC,CAAC;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqCD,wBAAsB,oCAAoC,CAAC,MAAM,EAC/D,OAAO,EAAE,2CAA2C,CAAC,MAAM,CAAC,GAC3D,OAAO,CAAC,IAAI,CAAC,CAuBf"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as dntShim from "../../_dnt.shims.js";
|
|
2
|
-
import { runHostedLifecycle } from "./hosted-lifecycle.js";
|
|
3
|
-
function getHeartbeatState(startedAt, heartbeatCount) {
|
|
4
|
-
return {
|
|
5
|
-
heartbeatCount,
|
|
6
|
-
elapsedSeconds: Math.round((Date.now() - startedAt) / 1000),
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
function startHostedResponseStreamHeartbeat(input) {
|
|
10
|
-
const startedAt = Date.now();
|
|
11
|
-
let heartbeatCount = 0;
|
|
12
|
-
const interval = dntShim.setInterval(() => {
|
|
13
|
-
heartbeatCount += 1;
|
|
14
|
-
input.heartbeat.onBeat?.(getHeartbeatState(startedAt, heartbeatCount));
|
|
15
|
-
try {
|
|
16
|
-
input.writer.write(input.heartbeat.buildChunk());
|
|
17
|
-
}
|
|
18
|
-
catch {
|
|
19
|
-
clearInterval(interval);
|
|
20
|
-
}
|
|
21
|
-
}, input.heartbeat.intervalMs ?? 15_000);
|
|
22
|
-
return {
|
|
23
|
-
stop: () => {
|
|
24
|
-
clearInterval(interval);
|
|
25
|
-
input.heartbeat.onStop?.(getHeartbeatState(startedAt, heartbeatCount));
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export async function runHostedResponseStreamWithHeartbeat(options) {
|
|
30
|
-
const heartbeat = options.heartbeat
|
|
31
|
-
? startHostedResponseStreamHeartbeat({
|
|
32
|
-
writer: options.writer,
|
|
33
|
-
heartbeat: options.heartbeat,
|
|
34
|
-
})
|
|
35
|
-
: null;
|
|
36
|
-
try {
|
|
37
|
-
await runHostedLifecycle({
|
|
38
|
-
abortSignal: new AbortController().signal,
|
|
39
|
-
execution: options.execution,
|
|
40
|
-
adapter: {
|
|
41
|
-
startRun: () => ({ runId: options.runId ?? "response-stream" }),
|
|
42
|
-
appendEvents: (_run, chunk) => {
|
|
43
|
-
options.writer.write(chunk);
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
resolveTerminalState: () => ({ status: "completed" }),
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
finally {
|
|
50
|
-
heartbeat?.stop();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ChatRuntimeOverrides } from "../chat/types.js";
|
|
2
|
-
import { type HostedChatRequest } from "./hosted-chat-request.js";
|
|
3
|
-
import type { RuntimeAgentMarkdownDefinition, RuntimeAgentThinkingConfig } from "./runtime-agent-definition.js";
|
|
4
|
-
import { type RuntimeClientProfile } from "./runtime-client-profile.js";
|
|
5
|
-
export type HostedRuntimeRequestConfigRequest = Pick<HostedChatRequest, "model" | "forwardedProps" | "runtimeOverrides">;
|
|
6
|
-
export type HostedRuntimeRequestConfigAgent = Pick<RuntimeAgentMarkdownDefinition, "model" | "thinking" | "maxSteps">;
|
|
7
|
-
export type ResolveHostedRuntimeRequestConfigInput = {
|
|
8
|
-
request: HostedRuntimeRequestConfigRequest;
|
|
9
|
-
agentConfig: HostedRuntimeRequestConfigAgent;
|
|
10
|
-
resolveModelId: (modelId: string | undefined) => string | undefined;
|
|
11
|
-
resolveModelThinking?: (modelId: string | undefined) => RuntimeAgentThinkingConfig | undefined;
|
|
12
|
-
};
|
|
13
|
-
export type ResolvedHostedRuntimeRequestConfig = {
|
|
14
|
-
effectiveRuntimeOverrides: ChatRuntimeOverrides | undefined;
|
|
15
|
-
requestedModel: string | undefined;
|
|
16
|
-
clientProfile: RuntimeClientProfile | null;
|
|
17
|
-
requestedThinking: RuntimeAgentThinkingConfig | undefined;
|
|
18
|
-
requestedMaxSteps: number | undefined;
|
|
19
|
-
};
|
|
20
|
-
export declare function getForwardedHostedModelId(forwardedProps: Record<string, unknown> | undefined): string | undefined;
|
|
21
|
-
export declare function getForwardedHostedRuntimeOverrides(forwardedProps: Record<string, unknown> | undefined): ChatRuntimeOverrides | undefined;
|
|
22
|
-
export declare function resolveHostedRuntimeThinkingOverride(input: {
|
|
23
|
-
configuredThinking: RuntimeAgentThinkingConfig | undefined;
|
|
24
|
-
requestedThinking: false | number | undefined;
|
|
25
|
-
}): RuntimeAgentThinkingConfig | undefined;
|
|
26
|
-
export declare function resolveHostedRuntimeRequestConfig(input: ResolveHostedRuntimeRequestConfigInput): ResolvedHostedRuntimeRequestConfig;
|
|
27
|
-
//# sourceMappingURL=hosted-runtime-request-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-runtime-request-config.d.ts","sourceRoot":"","sources":["../../../src/src/agent/hosted-runtime-request-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,KAAK,iBAAiB,EAAoC,MAAM,0BAA0B,CAAC;AACpG,OAAO,KAAK,EACV,8BAA8B,EAC9B,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,iBAAiB,EACjB,OAAO,GAAG,gBAAgB,GAAG,kBAAkB,CAChD,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,8BAA8B,EAC9B,OAAO,GAAG,UAAU,GAAG,UAAU,CAClC,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,OAAO,EAAE,iCAAiC,CAAC;IAC3C,WAAW,EAAE,+BAA+B,CAAC;IAC7C,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,oBAAoB,CAAC,EAAE,CACrB,OAAO,EAAE,MAAM,GAAG,SAAS,KACxB,0BAA0B,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,yBAAyB,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC5D,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC3C,iBAAiB,EAAE,0BAA0B,GAAG,SAAS,CAAC;IAC1D,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AAMF,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAClD,MAAM,GAAG,SAAS,CAKpB;AAED,wBAAgB,kCAAkC,CAChD,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAClD,oBAAoB,GAAG,SAAS,CAgBlC;AAED,wBAAgB,oCAAoC,CAAC,KAAK,EAAE;IAC1D,kBAAkB,EAAE,0BAA0B,GAAG,SAAS,CAAC;IAC3D,iBAAiB,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;CAC/C,GAAG,0BAA0B,GAAG,SAAS,CAazC;AAED,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,sCAAsC,GAC5C,kCAAkC,CAoBpC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { hostedChatRuntimeOverridesSchema } from "./hosted-chat-request.js";
|
|
2
|
-
import { resolveRuntimeClientProfile, } from "./runtime-client-profile.js";
|
|
3
|
-
function isRecord(value) {
|
|
4
|
-
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
5
|
-
}
|
|
6
|
-
export function getForwardedHostedModelId(forwardedProps) {
|
|
7
|
-
return typeof forwardedProps?.model === "string" &&
|
|
8
|
-
forwardedProps.model.trim().length > 0
|
|
9
|
-
? forwardedProps.model
|
|
10
|
-
: undefined;
|
|
11
|
-
}
|
|
12
|
-
export function getForwardedHostedRuntimeOverrides(forwardedProps) {
|
|
13
|
-
const runtimeOverrides = forwardedProps?.runtimeOverrides;
|
|
14
|
-
if (!isRecord(runtimeOverrides)) {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
const parsedRuntimeOverrides = hostedChatRuntimeOverridesSchema.safeParse(runtimeOverrides);
|
|
18
|
-
if (!parsedRuntimeOverrides.success) {
|
|
19
|
-
return undefined;
|
|
20
|
-
}
|
|
21
|
-
return Object.keys(parsedRuntimeOverrides.data).length > 0
|
|
22
|
-
? parsedRuntimeOverrides.data
|
|
23
|
-
: undefined;
|
|
24
|
-
}
|
|
25
|
-
export function resolveHostedRuntimeThinkingOverride(input) {
|
|
26
|
-
if (input.requestedThinking === undefined) {
|
|
27
|
-
return input.configuredThinking;
|
|
28
|
-
}
|
|
29
|
-
if (input.requestedThinking === false) {
|
|
30
|
-
return { enabled: false };
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
enabled: true,
|
|
34
|
-
budgetTokens: input.requestedThinking,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export function resolveHostedRuntimeRequestConfig(input) {
|
|
38
|
-
const effectiveRuntimeOverrides = input.request.runtimeOverrides ??
|
|
39
|
-
getForwardedHostedRuntimeOverrides(input.request.forwardedProps);
|
|
40
|
-
const requestedModel = input.resolveModelId(input.request.model ?? getForwardedHostedModelId(input.request.forwardedProps) ??
|
|
41
|
-
input.agentConfig.model);
|
|
42
|
-
return {
|
|
43
|
-
effectiveRuntimeOverrides,
|
|
44
|
-
requestedModel,
|
|
45
|
-
clientProfile: resolveRuntimeClientProfile(input.request.forwardedProps),
|
|
46
|
-
requestedThinking: resolveHostedRuntimeThinkingOverride({
|
|
47
|
-
configuredThinking: input.resolveModelThinking?.(requestedModel) ??
|
|
48
|
-
input.agentConfig.thinking,
|
|
49
|
-
requestedThinking: effectiveRuntimeOverrides?.thinking,
|
|
50
|
-
}),
|
|
51
|
-
requestedMaxSteps: effectiveRuntimeOverrides?.maxSteps ??
|
|
52
|
-
input.agentConfig.maxSteps,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type DefaultResearchArtifactContext } from "./default-research-artifact-support.js";
|
|
2
|
-
export type HostedRuntimeStateResolverContext = DefaultResearchArtifactContext & {
|
|
3
|
-
projectId?: string | null;
|
|
4
|
-
branchId?: string | null;
|
|
5
|
-
steeringRevision?: number;
|
|
6
|
-
slashCommandArtifactPathSeen?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type HostedRuntimeStateResolverInput = {
|
|
9
|
-
context?: Record<string, unknown>;
|
|
10
|
-
system: string;
|
|
11
|
-
messages: readonly unknown[];
|
|
12
|
-
step: number;
|
|
13
|
-
};
|
|
14
|
-
export type HostedRuntimeStateResolverResult = {
|
|
15
|
-
system: string;
|
|
16
|
-
context: Record<string, unknown>;
|
|
17
|
-
};
|
|
18
|
-
export type HostedRuntimeSystemRefreshInput<TContext extends HostedRuntimeStateResolverContext> = {
|
|
19
|
-
taskContext: TContext;
|
|
20
|
-
system: string;
|
|
21
|
-
};
|
|
22
|
-
export type HostedRuntimeSystemRefresh<TContext extends HostedRuntimeStateResolverContext> = (input: HostedRuntimeSystemRefreshInput<TContext>) => Promise<string> | string;
|
|
23
|
-
export type CreateHostedRuntimeStateResolverOptions<TContext extends HostedRuntimeStateResolverContext> = {
|
|
24
|
-
taskContext: TContext;
|
|
25
|
-
refreshSystem?: HostedRuntimeSystemRefresh<TContext>;
|
|
26
|
-
};
|
|
27
|
-
export declare function createHostedRuntimeStateResolver<TContext extends HostedRuntimeStateResolverContext>(options: CreateHostedRuntimeStateResolverOptions<TContext>): (input: HostedRuntimeStateResolverInput) => Promise<HostedRuntimeStateResolverResult>;
|
|
28
|
-
//# sourceMappingURL=hosted-runtime-state-resolver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-runtime-state-resolver.d.ts","sourceRoot":"","sources":["../../../src/src/agent/hosted-runtime-state-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,wCAAwC,CAAC;AAUhD,MAAM,MAAM,iCAAiC,GAAG,8BAA8B,GAAG;IAC/E,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,+BAA+B,CAAC,QAAQ,SAAS,iCAAiC,IAAI;IAChG,WAAW,EAAE,QAAQ,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,0BAA0B,CAAC,QAAQ,SAAS,iCAAiC,IAAI,CAC3F,KAAK,EAAE,+BAA+B,CAAC,QAAQ,CAAC,KAC7C,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAE9B,MAAM,MAAM,uCAAuC,CACjD,QAAQ,SAAS,iCAAiC,IAChD;IACF,WAAW,EAAE,QAAQ,CAAC;IACtB,aAAa,CAAC,EAAE,0BAA0B,CAAC,QAAQ,CAAC,CAAC;CACtD,CAAC;AAcF,wBAAgB,gCAAgC,CAC9C,QAAQ,SAAS,iCAAiC,EAElD,OAAO,EAAE,uCAAuC,CAAC,QAAQ,CAAC,GACzD,CAAC,KAAK,EAAE,+BAA+B,KAAK,OAAO,CAAC,gCAAgC,CAAC,CAmEvF"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { extractLatestUserText, updateDefaultResearchArtifacts, } from "./default-research-artifact-support.js";
|
|
2
|
-
import { addFirstTurnStarterIntentRootOwnershipReminder, addSlashCommandArtifactReminder, evaluateStarterIntentTurnPolicy, FIRST_TURN_STARTER_INTENT_ROOT_OWNERSHIP_CONTEXT_KEY, } from "./conversation-delegation-policy.js";
|
|
3
|
-
import { evaluateSlashCommandArtifactPolicy } from "./slash-command-artifact-policy.js";
|
|
4
|
-
import { flattenSystemInstructions } from "./runtime-tool-inventory.js";
|
|
5
|
-
function activeProjectId(context) {
|
|
6
|
-
return context.projectId || null;
|
|
7
|
-
}
|
|
8
|
-
function activeBranchId(context) {
|
|
9
|
-
return context.branchId ?? null;
|
|
10
|
-
}
|
|
11
|
-
function steeringRevision(context) {
|
|
12
|
-
return context.steeringRevision ?? 0;
|
|
13
|
-
}
|
|
14
|
-
export function createHostedRuntimeStateResolver(options) {
|
|
15
|
-
let lastAppliedSteeringRevision = steeringRevision(options.taskContext);
|
|
16
|
-
let lastAppliedProjectId = activeProjectId(options.taskContext);
|
|
17
|
-
let lastAppliedBranchId = activeBranchId(options.taskContext);
|
|
18
|
-
return async ({ context, system, messages, step }) => {
|
|
19
|
-
const currentSteeringRevision = steeringRevision(options.taskContext);
|
|
20
|
-
const currentProjectId = activeProjectId(options.taskContext);
|
|
21
|
-
const currentBranchId = activeBranchId(options.taskContext);
|
|
22
|
-
const steeringChanged = currentSteeringRevision !== lastAppliedSteeringRevision ||
|
|
23
|
-
currentProjectId !== lastAppliedProjectId ||
|
|
24
|
-
currentBranchId !== lastAppliedBranchId;
|
|
25
|
-
let nextSystem = system;
|
|
26
|
-
const nextContextRecord = { ...(context ?? {}) };
|
|
27
|
-
if (steeringChanged && options.refreshSystem) {
|
|
28
|
-
nextSystem = await options.refreshSystem({
|
|
29
|
-
taskContext: options.taskContext,
|
|
30
|
-
system,
|
|
31
|
-
});
|
|
32
|
-
lastAppliedSteeringRevision = currentSteeringRevision;
|
|
33
|
-
lastAppliedProjectId = currentProjectId;
|
|
34
|
-
lastAppliedBranchId = currentBranchId;
|
|
35
|
-
}
|
|
36
|
-
const latestUserText = extractLatestUserText(messages);
|
|
37
|
-
if (latestUserText) {
|
|
38
|
-
const reminded = updateDefaultResearchArtifacts({
|
|
39
|
-
taskContext: options.taskContext,
|
|
40
|
-
latestUserText,
|
|
41
|
-
system: nextSystem,
|
|
42
|
-
});
|
|
43
|
-
nextSystem = typeof reminded === "string" ? reminded : flattenSystemInstructions(reminded);
|
|
44
|
-
}
|
|
45
|
-
const starterIntentPolicy = evaluateStarterIntentTurnPolicy({
|
|
46
|
-
messages,
|
|
47
|
-
step,
|
|
48
|
-
});
|
|
49
|
-
if (starterIntentPolicy.shouldAddRootOwnershipReminder) {
|
|
50
|
-
nextSystem = addFirstTurnStarterIntentRootOwnershipReminder(nextSystem);
|
|
51
|
-
}
|
|
52
|
-
if (starterIntentPolicy.shouldBlockImmediateDelegation) {
|
|
53
|
-
nextContextRecord[FIRST_TURN_STARTER_INTENT_ROOT_OWNERSHIP_CONTEXT_KEY] = true;
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
delete nextContextRecord[FIRST_TURN_STARTER_INTENT_ROOT_OWNERSHIP_CONTEXT_KEY];
|
|
57
|
-
}
|
|
58
|
-
const slashCommandArtifactPolicy = evaluateSlashCommandArtifactPolicy({
|
|
59
|
-
messages,
|
|
60
|
-
slashCommandArtifactPathSeen: options.taskContext.slashCommandArtifactPathSeen,
|
|
61
|
-
});
|
|
62
|
-
if (slashCommandArtifactPolicy.shouldKeepReminder) {
|
|
63
|
-
const reminded = addSlashCommandArtifactReminder(nextSystem);
|
|
64
|
-
nextSystem = typeof reminded === "string" ? reminded : flattenSystemInstructions(reminded);
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
system: nextSystem,
|
|
68
|
-
context: nextContextRecord,
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
}
|