veryfront 0.1.558 → 0.1.559
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 +4 -4
- package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts +3 -0
- package/esm/src/agent/ag-ui/browser-chunk-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-chunk-encoder.js +1 -0
- package/esm/src/agent/ag-ui/browser-encoder.d.ts +8 -0
- package/esm/src/agent/ag-ui/browser-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-encoder.js +4 -0
- package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts +3 -0
- package/esm/src/agent/ag-ui/browser-finalize-tracker.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-finalize-tracker.js +1 -0
- package/esm/src/agent/ag-ui/browser-response-stream.d.ts +5 -0
- package/esm/src/agent/ag-ui/browser-response-stream.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/browser-response-stream.js +1 -0
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts +9 -0
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/chat-ui-chunk-browser-encoder.js +6 -0
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts +3 -0
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.js +1 -0
- package/esm/src/agent/ag-ui/detached-start.d.ts +13 -2
- package/esm/src/agent/ag-ui/detached-start.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/detached-start.js +9 -2
- package/esm/src/agent/ag-ui/forwarded-context.d.ts +8 -0
- package/esm/src/agent/ag-ui/forwarded-context.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/forwarded-context.js +7 -0
- package/esm/src/agent/ag-ui/handler.d.ts +4 -0
- package/esm/src/agent/ag-ui/handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/handler.js +1 -0
- package/esm/src/agent/ag-ui/host-support.d.ts +13 -1
- package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/host-support.js +11 -3
- package/esm/src/agent/ag-ui/run-control.d.ts +8 -1
- package/esm/src/agent/ag-ui/run-control.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/run-control.js +5 -1
- package/esm/src/agent/ag-ui/runtime-browser-response.d.ts +2 -0
- package/esm/src/agent/ag-ui/runtime-browser-response.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-browser-response.js +1 -0
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts +4 -0
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.js +1 -0
- package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts +3 -0
- package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-event-encoder.js +1 -0
- package/esm/src/agent/ag-ui/runtime-handler.d.ts +7 -0
- package/esm/src/agent/ag-ui/runtime-handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-handler.js +1 -0
- package/esm/src/agent/ag-ui/runtime-support.d.ts +1 -0
- package/esm/src/agent/ag-ui/runtime-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-support.js +1 -0
- package/esm/src/agent/ag-ui/tool-shared.d.ts +1 -0
- package/esm/src/agent/ag-ui/tool-shared.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/tracked-browser-response.d.ts +2 -0
- package/esm/src/agent/ag-ui/tracked-browser-response.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/tracked-browser-response.js +1 -0
- package/esm/src/agent/artifacts/default-research-artifact-policy.d.ts +5 -0
- package/esm/src/agent/artifacts/default-research-artifact-policy.d.ts.map +1 -1
- package/esm/src/agent/artifacts/default-research-artifact-policy.js +4 -0
- package/esm/src/agent/artifacts/default-research-artifact-support.d.ts +10 -0
- package/esm/src/agent/artifacts/default-research-artifact-support.d.ts.map +1 -1
- package/esm/src/agent/artifacts/default-research-artifact-support.js +7 -0
- package/esm/src/agent/artifacts/slash-command-artifact-policy.d.ts +4 -0
- package/esm/src/agent/artifacts/slash-command-artifact-policy.d.ts.map +1 -1
- package/esm/src/agent/artifacts/slash-command-artifact-policy.js +2 -0
- package/esm/src/agent/child-run/execution-cleanup.d.ts +4 -0
- package/esm/src/agent/child-run/execution-cleanup.d.ts.map +1 -1
- package/esm/src/agent/child-run/execution-cleanup.js +2 -0
- package/esm/src/agent/child-run/execution-snapshot.d.ts +13 -0
- package/esm/src/agent/child-run/execution-snapshot.d.ts.map +1 -1
- package/esm/src/agent/child-run/execution-snapshot.js +7 -0
- package/esm/src/agent/child-run/execution-support.d.ts +4 -0
- package/esm/src/agent/child-run/execution-support.d.ts.map +1 -1
- package/esm/src/agent/child-run/execution-support.js +4 -0
- package/esm/src/agent/child-run/final-step-support.d.ts +3 -0
- package/esm/src/agent/child-run/final-step-support.d.ts.map +1 -1
- package/esm/src/agent/child-run/final-step-support.js +3 -0
- package/esm/src/agent/child-run/invoke-agent-child-runs.d.ts +21 -3
- package/esm/src/agent/child-run/invoke-agent-child-runs.d.ts.map +1 -1
- package/esm/src/agent/child-run/invoke-agent-child-runs.js +16 -3
- package/esm/src/agent/child-run/result-summary.d.ts +5 -0
- package/esm/src/agent/child-run/result-summary.d.ts.map +1 -1
- package/esm/src/agent/child-run/result-summary.js +5 -0
- package/esm/src/agent/composition/composition.d.ts +9 -0
- package/esm/src/agent/composition/composition.d.ts.map +1 -1
- package/esm/src/agent/composition/composition.js +6 -0
- package/esm/src/agent/conversation/bootstrap.d.ts +21 -2
- package/esm/src/agent/conversation/bootstrap.d.ts.map +1 -1
- package/esm/src/agent/conversation/bootstrap.js +16 -2
- package/esm/src/agent/conversation/delegation-policy.d.ts +32 -0
- package/esm/src/agent/conversation/delegation-policy.d.ts.map +1 -1
- package/esm/src/agent/conversation/delegation-policy.js +30 -0
- package/esm/src/agent/conversation/durable.d.ts +59 -6
- package/esm/src/agent/conversation/durable.d.ts.map +1 -1
- package/esm/src/agent/conversation/durable.js +44 -6
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts +6 -0
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-lifecycle.js +3 -0
- package/esm/src/agent/conversation/hosted-terminal.d.ts +15 -0
- package/esm/src/agent/conversation/hosted-terminal.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-terminal.js +9 -0
- package/esm/src/agent/conversation/root-run-context.d.ts +6 -0
- package/esm/src/agent/conversation/root-run-context.d.ts.map +1 -1
- package/esm/src/agent/conversation/root-run-context.js +4 -0
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts +7 -0
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/conversation/root-run-lifecycle.js +2 -0
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts +13 -0
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-chunk-mirror.js +2 -0
- package/esm/src/agent/conversation/run-context.d.ts +2 -0
- package/esm/src/agent/conversation/run-context.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-context.js +1 -0
- package/esm/src/agent/conversation/run-event-normalization.d.ts +3 -0
- package/esm/src/agent/conversation/run-event-normalization.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-event-normalization.js +3 -0
- package/esm/src/agent/conversation/run-event-preparation.d.ts +4 -0
- package/esm/src/agent/conversation/run-event-preparation.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-event-preparation.js +4 -0
- package/esm/src/agent/conversation/run-events.d.ts +8 -1
- package/esm/src/agent/conversation/run-events.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-events.js +7 -1
- package/esm/src/agent/conversation/run-mirror.d.ts +5 -0
- package/esm/src/agent/conversation/run-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-mirror.js +1 -0
- package/esm/src/agent/conversation/run-stream-mirror.d.ts +2 -0
- package/esm/src/agent/conversation/run-stream-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-stream-mirror.js +1 -0
- package/esm/src/agent/factory.d.ts +1 -0
- package/esm/src/agent/factory.d.ts.map +1 -1
- package/esm/src/agent/factory.js +1 -0
- package/esm/src/agent/hosted/ag-ui-chat-request.d.ts +11 -1
- package/esm/src/agent/hosted/ag-ui-chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/ag-ui-chat-request.js +7 -1
- package/esm/src/agent/hosted/agent-project-steering.d.ts +6 -0
- package/esm/src/agent/hosted/agent-project-steering.d.ts.map +1 -1
- package/esm/src/agent/hosted/agent-project-steering.js +2 -0
- package/esm/src/agent/hosted/agent-run-lifecycle.d.ts +9 -0
- package/esm/src/agent/hosted/agent-run-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/agent-run-lifecycle.js +2 -0
- package/esm/src/agent/hosted/chat-execution-lifecycle-types.d.ts +1 -0
- package/esm/src/agent/hosted/chat-execution-lifecycle-types.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts +17 -0
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.js +8 -0
- package/esm/src/agent/hosted/chat-preparation.d.ts +14 -0
- package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-preparation.js +4 -0
- package/esm/src/agent/hosted/chat-request-parser.d.ts +8 -0
- package/esm/src/agent/hosted/chat-request-parser.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-request-parser.js +3 -0
- package/esm/src/agent/hosted/chat-request.d.ts +14 -3
- package/esm/src/agent/hosted/chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-request.js +12 -3
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts +4 -0
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.js +1 -0
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts +9 -0
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts +6 -0
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.js +2 -0
- package/esm/src/agent/hosted/child-artifact-support.d.ts +9 -0
- package/esm/src/agent/hosted/child-artifact-support.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-artifact-support.js +5 -0
- package/esm/src/agent/hosted/child-bootstrap.d.ts +5 -0
- package/esm/src/agent/hosted/child-bootstrap.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-bootstrap.js +2 -0
- package/esm/src/agent/hosted/child-execution-logging.d.ts +8 -0
- package/esm/src/agent/hosted/child-execution-logging.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-execution-logging.js +5 -0
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts +10 -0
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.js +7 -0
- package/esm/src/agent/hosted/child-fork-instructions.d.ts +3 -0
- package/esm/src/agent/hosted/child-fork-instructions.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-instructions.js +2 -0
- package/esm/src/agent/hosted/child-fork-run-context.d.ts +16 -0
- package/esm/src/agent/hosted/child-fork-run-context.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-run-context.js +5 -0
- package/esm/src/agent/hosted/child-fork-runtime-start.d.ts +4 -0
- package/esm/src/agent/hosted/child-fork-runtime-start.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-runtime-start.js +1 -0
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts +5 -0
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-step-message-preparation.js +2 -0
- package/esm/src/agent/hosted/child-fork-stream-execution.d.ts +10 -0
- package/esm/src/agent/hosted/child-fork-stream-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-stream-execution.js +4 -0
- package/esm/src/agent/hosted/child-fork-tool-sources.d.ts +6 -0
- package/esm/src/agent/hosted/child-fork-tool-sources.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-tool-sources.js +2 -0
- package/esm/src/agent/hosted/child-invoke-tool.d.ts +3 -0
- package/esm/src/agent/hosted/child-invoke-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-invoke-tool.js +1 -0
- package/esm/src/agent/hosted/child-lifecycle.d.ts +9 -0
- package/esm/src/agent/hosted/child-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-lifecycle.js +3 -0
- package/esm/src/agent/hosted/child-mirror.d.ts +10 -0
- package/esm/src/agent/hosted/child-mirror.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-mirror.js +6 -0
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts +11 -0
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.js +2 -0
- package/esm/src/agent/hosted/child-requested-tools.d.ts +18 -0
- package/esm/src/agent/hosted/child-requested-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-requested-tools.js +13 -0
- package/esm/src/agent/hosted/child-status.d.ts +11 -0
- package/esm/src/agent/hosted/child-status.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-status.js +6 -0
- package/esm/src/agent/hosted/child-steering-tools.d.ts +6 -0
- package/esm/src/agent/hosted/child-steering-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-steering-tools.js +2 -0
- package/esm/src/agent/hosted/child-stream-watchdog.d.ts +8 -0
- package/esm/src/agent/hosted/child-stream-watchdog.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-stream-watchdog.js +6 -0
- package/esm/src/agent/hosted/child-tool-input.d.ts +9 -1
- package/esm/src/agent/hosted/child-tool-input.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-tool-input.js +6 -1
- package/esm/src/agent/hosted/cloud-chat-execution-preparation.d.ts +4 -0
- package/esm/src/agent/hosted/cloud-chat-execution-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-chat-execution-preparation.js +2 -0
- package/esm/src/agent/hosted/cloud-prepared-chat-execution-runtime.d.ts +2 -0
- package/esm/src/agent/hosted/cloud-prepared-chat-execution-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-prepared-chat-execution-runtime.js +1 -0
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts +3 -0
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-runtime-system-messages.js +2 -0
- package/esm/src/agent/hosted/default-chat-runtime.d.ts +10 -0
- package/esm/src/agent/hosted/default-chat-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-chat-runtime.js +1 -0
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts +17 -2
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-invoke-agent-tool.js +8 -2
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts +7 -0
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-project-steering-refresh.js +2 -0
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts +9 -0
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-chat-run-start.js +2 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts +22 -0
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-child-fork-execution.js +6 -0
- package/esm/src/agent/hosted/finalized-message.d.ts +10 -0
- package/esm/src/agent/hosted/finalized-message.d.ts.map +1 -1
- package/esm/src/agent/hosted/finalized-message.js +4 -0
- package/esm/src/agent/hosted/form-input-tool.d.ts +2 -0
- package/esm/src/agent/hosted/form-input-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/form-input-tool.js +1 -0
- package/esm/src/agent/hosted/lifecycle.d.ts +6 -0
- package/esm/src/agent/hosted/lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/lifecycle.js +1 -0
- package/esm/src/agent/hosted/prepared-chat-execution.d.ts +6 -0
- package/esm/src/agent/hosted/prepared-chat-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/prepared-chat-execution.js +2 -0
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts +8 -0
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-remote-tool-source.js +2 -0
- package/esm/src/agent/hosted/project-steering-adapter.d.ts +5 -0
- package/esm/src/agent/hosted/project-steering-adapter.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-steering-adapter.js +1 -0
- package/esm/src/agent/hosted/response-stream.d.ts +4 -0
- package/esm/src/agent/hosted/response-stream.d.ts.map +1 -1
- package/esm/src/agent/hosted/response-stream.js +1 -0
- package/esm/src/agent/hosted/runtime-request-config.d.ts +8 -0
- package/esm/src/agent/hosted/runtime-request-config.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-request-config.js +4 -0
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts +7 -0
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-state-resolver.js +1 -0
- package/esm/src/agent/hosted/stream-finalization.d.ts +7 -0
- package/esm/src/agent/hosted/stream-finalization.d.ts.map +1 -1
- package/esm/src/agent/hosted/stream-finalization.js +2 -0
- package/esm/src/agent/hosted/stream-terminal-error.d.ts +4 -0
- package/esm/src/agent/hosted/stream-terminal-error.d.ts.map +1 -1
- package/esm/src/agent/hosted/stream-terminal-error.js +3 -0
- package/esm/src/agent/hosted/trace-attributes.d.ts +9 -0
- package/esm/src/agent/hosted/trace-attributes.d.ts.map +1 -1
- package/esm/src/agent/hosted/trace-attributes.js +6 -0
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts +13 -0
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +4 -0
- package/esm/src/agent/input/human-input.d.ts +22 -0
- package/esm/src/agent/input/human-input.d.ts.map +1 -1
- package/esm/src/agent/input/human-input.js +10 -0
- package/esm/src/agent/input/request-protocol.d.ts +14 -0
- package/esm/src/agent/input/request-protocol.d.ts.map +1 -1
- package/esm/src/agent/input/request-protocol.js +12 -0
- package/esm/src/agent/memory/memory-interface.d.ts +3 -0
- package/esm/src/agent/memory/memory-interface.d.ts.map +1 -1
- package/esm/src/agent/memory/memory.d.ts +4 -0
- package/esm/src/agent/memory/memory.d.ts.map +1 -1
- package/esm/src/agent/memory/memory.js +4 -0
- package/esm/src/agent/memory/redis.d.ts +2 -0
- package/esm/src/agent/memory/redis.d.ts.map +1 -1
- package/esm/src/agent/memory/redis.js +2 -0
- package/esm/src/agent/project/agent-runtime.d.ts +10 -0
- package/esm/src/agent/project/agent-runtime.d.ts.map +1 -1
- package/esm/src/agent/project/agent-runtime.js +7 -0
- package/esm/src/agent/project/context.d.ts +3 -0
- package/esm/src/agent/project/context.d.ts.map +1 -1
- package/esm/src/agent/project/context.js +2 -0
- package/esm/src/agent/project/live-studio-mcp-tools.d.ts +3 -0
- package/esm/src/agent/project/live-studio-mcp-tools.d.ts.map +1 -1
- package/esm/src/agent/project/live-studio-mcp-tools.js +2 -0
- package/esm/src/agent/project/steering-mutation.d.ts +7 -0
- package/esm/src/agent/project/steering-mutation.d.ts.map +1 -1
- package/esm/src/agent/project/steering-mutation.js +4 -0
- package/esm/src/agent/react/use-agent.d.ts +3 -0
- package/esm/src/agent/react/use-agent.d.ts.map +1 -1
- package/esm/src/agent/react/use-agent.js +1 -0
- package/esm/src/agent/react/use-chat/types.d.ts +7 -2
- package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-completion.d.ts +2 -0
- package/esm/src/agent/react/use-completion.d.ts.map +1 -1
- package/esm/src/agent/react/use-streaming.d.ts +3 -0
- package/esm/src/agent/react/use-streaming.d.ts.map +1 -1
- package/esm/src/agent/react/use-streaming.js +1 -0
- package/esm/src/agent/react/use-voice-input.d.ts +3 -0
- package/esm/src/agent/react/use-voice-input.d.ts.map +1 -1
- package/esm/src/agent/react/use-voice-input.js +1 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts +11 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/ag-ui-contract.js +9 -2
- package/esm/src/agent/runtime/agent-definition-files.d.ts +7 -0
- package/esm/src/agent/runtime/agent-definition-files.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition-files.js +5 -0
- package/esm/src/agent/runtime/agent-definition.d.ts +19 -3
- package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition.js +15 -3
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts +52 -13
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-invocation-contract.js +45 -15
- package/esm/src/agent/runtime/agent-markdown-adapter.d.ts +3 -0
- package/esm/src/agent/runtime/agent-markdown-adapter.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-markdown-adapter.js +3 -0
- package/esm/src/agent/runtime/builtin-skill-files.d.ts +10 -0
- package/esm/src/agent/runtime/builtin-skill-files.d.ts.map +1 -1
- package/esm/src/agent/runtime/builtin-skill-files.js +9 -0
- package/esm/src/agent/runtime/client-profile.d.ts +17 -3
- package/esm/src/agent/runtime/client-profile.d.ts.map +1 -1
- package/esm/src/agent/runtime/client-profile.js +14 -3
- package/esm/src/agent/runtime/index.d.ts +1 -0
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +1 -0
- package/esm/src/agent/runtime/load-skill-tool.d.ts +11 -0
- package/esm/src/agent/runtime/load-skill-tool.d.ts.map +1 -1
- package/esm/src/agent/runtime/load-skill-tool.js +3 -0
- package/esm/src/agent/runtime/message-adapter.d.ts +9 -0
- package/esm/src/agent/runtime/message-adapter.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-adapter.js +7 -0
- package/esm/src/agent/runtime/message-file-url-refresh.d.ts +3 -0
- package/esm/src/agent/runtime/message-file-url-refresh.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-file-url-refresh.js +1 -0
- package/esm/src/agent/runtime/message-preparation.d.ts +2 -0
- package/esm/src/agent/runtime/message-preparation.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-preparation.js +1 -0
- package/esm/src/agent/runtime/project-files-client.d.ts +18 -2
- package/esm/src/agent/runtime/project-files-client.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-files-client.js +10 -2
- package/esm/src/agent/runtime/project-skill-catalog.d.ts +6 -0
- package/esm/src/agent/runtime/project-skill-catalog.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-skill-catalog.js +3 -0
- package/esm/src/agent/runtime/project-skill-loader.d.ts +6 -0
- package/esm/src/agent/runtime/project-skill-loader.d.ts.map +1 -1
- package/esm/src/agent/runtime/project-skill-loader.js +1 -0
- package/esm/src/agent/runtime/prompt-block.d.ts +2 -0
- package/esm/src/agent/runtime/prompt-block.d.ts.map +1 -1
- package/esm/src/agent/runtime/prompt-block.js +1 -0
- package/esm/src/agent/runtime/provider-native-tool-inventory.d.ts +4 -0
- package/esm/src/agent/runtime/provider-native-tool-inventory.d.ts.map +1 -1
- package/esm/src/agent/runtime/provider-native-tool-inventory.js +3 -0
- package/esm/src/agent/runtime/provider-tool-compat.d.ts +7 -0
- package/esm/src/agent/runtime/provider-tool-compat.d.ts.map +1 -1
- package/esm/src/agent/runtime/provider-tool-compat.js +4 -0
- package/esm/src/agent/runtime/resume-session.d.ts +9 -0
- package/esm/src/agent/runtime/resume-session.d.ts.map +1 -1
- package/esm/src/agent/runtime/resume-session.js +7 -0
- package/esm/src/agent/runtime/skill-metadata.d.ts +14 -1
- package/esm/src/agent/runtime/skill-metadata.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-metadata.js +8 -1
- package/esm/src/agent/runtime/skill-prompt.d.ts +3 -0
- package/esm/src/agent/runtime/skill-prompt.d.ts.map +1 -1
- package/esm/src/agent/runtime/skill-prompt.js +3 -0
- package/esm/src/agent/runtime/tool-inventory.d.ts +2 -0
- package/esm/src/agent/runtime/tool-inventory.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-inventory.js +2 -0
- package/esm/src/agent/runtime/upload-url-client.d.ts +4 -0
- package/esm/src/agent/runtime/upload-url-client.d.ts.map +1 -1
- package/esm/src/agent/runtime/upload-url-client.js +1 -0
- package/esm/src/agent/schemas/agent.schema.d.ts +14 -0
- package/esm/src/agent/schemas/agent.schema.d.ts.map +1 -1
- package/esm/src/agent/service/abort-rejection-guard.d.ts +8 -0
- package/esm/src/agent/service/abort-rejection-guard.d.ts.map +1 -1
- package/esm/src/agent/service/abort-rejection-guard.js +2 -0
- package/esm/src/agent/service/auth.d.ts +16 -0
- package/esm/src/agent/service/auth.d.ts.map +1 -1
- package/esm/src/agent/service/auth.js +4 -0
- package/esm/src/agent/service/before-stream.d.ts +4 -0
- package/esm/src/agent/service/before-stream.d.ts.map +1 -1
- package/esm/src/agent/service/bootstrap.d.ts +7 -0
- package/esm/src/agent/service/bootstrap.d.ts.map +1 -1
- package/esm/src/agent/service/bootstrap.js +2 -0
- package/esm/src/agent/service/config.d.ts +8 -0
- package/esm/src/agent/service/config.d.ts.map +1 -1
- package/esm/src/agent/service/config.js +4 -0
- package/esm/src/agent/service/definition.d.ts +5 -0
- package/esm/src/agent/service/definition.d.ts.map +1 -1
- package/esm/src/agent/service/detached-run-tracker.d.ts +8 -0
- package/esm/src/agent/service/detached-run-tracker.d.ts.map +1 -1
- package/esm/src/agent/service/detached-run-tracker.js +2 -0
- package/esm/src/agent/service/env-files.d.ts +6 -0
- package/esm/src/agent/service/env-files.d.ts.map +1 -1
- package/esm/src/agent/service/env-files.js +2 -0
- package/esm/src/agent/service/external-worker-client.d.ts +16 -0
- package/esm/src/agent/service/external-worker-client.d.ts.map +1 -1
- package/esm/src/agent/service/external-worker-client.js +5 -0
- package/esm/src/agent/service/node-runtime-infrastructure.d.ts +6 -0
- package/esm/src/agent/service/node-runtime-infrastructure.d.ts.map +1 -1
- package/esm/src/agent/service/node-runtime-infrastructure.js +2 -0
- package/esm/src/agent/service/node-telemetry.d.ts +18 -0
- package/esm/src/agent/service/node-telemetry.d.ts.map +1 -1
- package/esm/src/agent/service/node-telemetry.js +4 -0
- package/esm/src/agent/service/registration.d.ts +13 -0
- package/esm/src/agent/service/registration.d.ts.map +1 -1
- package/esm/src/agent/service/registration.js +4 -0
- package/esm/src/agent/service/request-auth-cache.d.ts +4 -0
- package/esm/src/agent/service/request-auth-cache.d.ts.map +1 -1
- package/esm/src/agent/service/request-auth-cache.js +1 -0
- package/esm/src/agent/service/response-like.d.ts +1 -0
- package/esm/src/agent/service/response-like.d.ts.map +1 -1
- package/esm/src/agent/service/response-like.js +1 -0
- package/esm/src/agent/service/routes.d.ts +15 -0
- package/esm/src/agent/service/routes.d.ts.map +1 -1
- package/esm/src/agent/service/routes.js +1 -0
- package/esm/src/agent/service/runtime.d.ts +21 -0
- package/esm/src/agent/service/runtime.d.ts.map +1 -1
- package/esm/src/agent/service/runtime.js +5 -0
- package/esm/src/agent/service/server.d.ts +9 -0
- package/esm/src/agent/service/server.d.ts.map +1 -1
- package/esm/src/agent/service/server.js +3 -0
- package/esm/src/agent/streaming/chat-ui-message-stream.d.ts +4 -0
- package/esm/src/agent/streaming/chat-ui-message-stream.d.ts.map +1 -1
- package/esm/src/agent/streaming/chat-ui-message-stream.js +1 -0
- package/esm/src/agent/streaming/data-stream.d.ts +6 -0
- package/esm/src/agent/streaming/data-stream.d.ts.map +1 -1
- package/esm/src/agent/streaming/data-stream.js +6 -0
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts +41 -4
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts.map +1 -1
- package/esm/src/agent/streaming/fork-runtime-stream.js +25 -3
- package/esm/src/agent/streaming/mirrored-tool-chunk-state.d.ts +15 -0
- package/esm/src/agent/streaming/mirrored-tool-chunk-state.d.ts.map +1 -1
- package/esm/src/agent/streaming/mirrored-tool-chunk-state.js +8 -0
- package/esm/src/agent/streaming/tool-execution-data-event-bridge.d.ts +3 -0
- package/esm/src/agent/streaming/tool-execution-data-event-bridge.d.ts.map +1 -1
- package/esm/src/agent/streaming/tool-execution-data-event-bridge.js +1 -0
- package/esm/src/agent/testing/agent-tester.d.ts +8 -0
- package/esm/src/agent/testing/agent-tester.d.ts.map +1 -1
- package/esm/src/agent/testing/agent-tester.js +5 -0
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.d.ts +3 -0
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.js +1 -0
- package/esm/src/agent/testing/durable-run-canaries/environment.d.ts +3 -0
- package/esm/src/agent/testing/durable-run-canaries/environment.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/environment.js +2 -0
- package/esm/src/agent/testing/durable-run-canaries/runner.d.ts +16 -0
- package/esm/src/agent/testing/durable-run-canaries/runner.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/runner.js +5 -0
- package/esm/src/agent/testing/durable-run-canaries/validation.d.ts +5 -0
- package/esm/src/agent/testing/durable-run-canaries/validation.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/validation.js +5 -0
- package/esm/src/agent/testing/live-evals/api-client.d.ts +24 -0
- package/esm/src/agent/testing/live-evals/api-client.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/api-client.js +11 -0
- package/esm/src/agent/testing/live-evals/cli-runner.d.ts +4 -0
- package/esm/src/agent/testing/live-evals/cli-runner.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/cli-runner.js +1 -0
- package/esm/src/agent/testing/live-evals/environment.d.ts +3 -0
- package/esm/src/agent/testing/live-evals/environment.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/environment.js +2 -0
- package/esm/src/agent/testing/live-evals/formatting.d.ts +4 -0
- package/esm/src/agent/testing/live-evals/formatting.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/formatting.js +4 -0
- package/esm/src/agent/testing/live-evals/metadata.d.ts +8 -0
- package/esm/src/agent/testing/live-evals/metadata.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/metadata.js +4 -0
- package/esm/src/agent/testing/live-evals/performance.d.ts +4 -0
- package/esm/src/agent/testing/live-evals/performance.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/performance.js +1 -0
- package/esm/src/agent/testing/live-evals/preflight.d.ts +3 -0
- package/esm/src/agent/testing/live-evals/preflight.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/preflight.js +2 -0
- package/esm/src/agent/testing/live-evals/report.d.ts +9 -0
- package/esm/src/agent/testing/live-evals/report.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/report.js +6 -0
- package/esm/src/agent/testing/live-evals/request.d.ts +2 -0
- package/esm/src/agent/testing/live-evals/request.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/request.js +2 -0
- package/esm/src/agent/testing/live-evals/result.d.ts +4 -0
- package/esm/src/agent/testing/live-evals/result.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/result.js +3 -0
- package/esm/src/agent/testing/live-evals/runner.d.ts +11 -0
- package/esm/src/agent/testing/live-evals/runner.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/runner.js +5 -0
- package/esm/src/agent/types.d.ts +18 -0
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/agent/types.js +4 -0
- package/esm/src/channels/control-plane.d.ts +32 -0
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/channels/control-plane.js +22 -0
- package/esm/src/channels/invoke.d.ts +24 -0
- package/esm/src/channels/invoke.d.ts.map +1 -1
- package/esm/src/channels/invoke.js +18 -0
- package/esm/src/chat/ag-ui.d.ts +37 -5
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.js +25 -5
- package/esm/src/chat/chat-ui-message-helpers.d.ts +7 -0
- package/esm/src/chat/chat-ui-message-helpers.d.ts.map +1 -1
- package/esm/src/chat/chat-ui-message-helpers.js +6 -0
- package/esm/src/chat/conversation.d.ts +52 -5
- package/esm/src/chat/conversation.d.ts.map +1 -1
- package/esm/src/chat/conversation.js +42 -5
- package/esm/src/chat/final-step-fallback.d.ts +20 -0
- package/esm/src/chat/final-step-fallback.d.ts.map +1 -1
- package/esm/src/chat/final-step-fallback.js +14 -0
- package/esm/src/chat/hosted-ui-chunk-mapping.d.ts +3 -0
- package/esm/src/chat/hosted-ui-chunk-mapping.d.ts.map +1 -1
- package/esm/src/chat/hosted-ui-chunk-mapping.js +1 -0
- package/esm/src/chat/message-prep.d.ts +18 -0
- package/esm/src/chat/message-prep.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +18 -0
- package/esm/src/chat/protocol.d.ts +25 -0
- package/esm/src/chat/protocol.d.ts.map +1 -1
- package/esm/src/chat/provider-errors.d.ts +6 -0
- package/esm/src/chat/provider-errors.d.ts.map +1 -1
- package/esm/src/chat/provider-errors.js +5 -0
- package/esm/src/chat/stream-watchdog.d.ts +11 -0
- package/esm/src/chat/stream-watchdog.d.ts.map +1 -1
- package/esm/src/chat/stream-watchdog.js +8 -0
- package/esm/src/chat/types.d.ts +71 -7
- package/esm/src/chat/types.d.ts.map +1 -1
- package/esm/src/chat/types.js +35 -7
- package/esm/src/config/define-config.d.ts +1 -0
- package/esm/src/config/define-config.d.ts.map +1 -1
- package/esm/src/config/define-config.js +1 -0
- package/esm/src/data/helpers.d.ts +2 -0
- package/esm/src/data/helpers.d.ts.map +1 -1
- package/esm/src/data/helpers.js +2 -0
- package/esm/src/data/schemas/data.schema.d.ts +2 -0
- package/esm/src/data/schemas/data.schema.d.ts.map +1 -1
- package/esm/src/embedding/react/use-uploads.d.ts +3 -1
- package/esm/src/embedding/react/use-uploads.d.ts.map +1 -1
- package/esm/src/embedding/types.d.ts +15 -0
- package/esm/src/embedding/types.d.ts.map +1 -1
- package/esm/src/extensions/contracts.d.ts +5 -0
- package/esm/src/extensions/contracts.d.ts.map +1 -1
- package/esm/src/extensions/contracts.js +5 -0
- package/esm/src/extensions/errors.d.ts +4 -0
- package/esm/src/extensions/errors.d.ts.map +1 -1
- package/esm/src/extensions/errors.js +4 -0
- package/esm/src/extensions/llm/llm-provider-registry.d.ts +1 -0
- package/esm/src/extensions/llm/llm-provider-registry.d.ts.map +1 -1
- package/esm/src/extensions/llm/llm-provider-registry.js +1 -0
- package/esm/src/extensions/loader.d.ts +1 -0
- package/esm/src/extensions/loader.d.ts.map +1 -1
- package/esm/src/extensions/loader.js +1 -0
- package/esm/src/extensions/observability/node-telemetry-provider.d.ts +4 -0
- package/esm/src/extensions/observability/node-telemetry-provider.d.ts.map +1 -1
- package/esm/src/extensions/parser/code-parser.d.ts +2 -1
- package/esm/src/extensions/parser/code-parser.d.ts.map +1 -1
- package/esm/src/extensions/recommendations.d.ts +1 -0
- package/esm/src/extensions/recommendations.d.ts.map +1 -1
- package/esm/src/extensions/recommendations.js +1 -0
- package/esm/src/extensions/sandbox/shell-tools.d.ts +7 -0
- package/esm/src/extensions/sandbox/shell-tools.d.ts.map +1 -1
- package/esm/src/extensions/sandbox/shell-tools.js +1 -0
- package/esm/src/extensions/types.d.ts +8 -0
- package/esm/src/extensions/types.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/prod-scripts.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/prod-scripts.js +1 -0
- package/esm/src/html/hydration-script-builder/templates/renderer.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/templates/renderer.js +26 -14
- package/esm/src/integrations/index.d.ts +4 -0
- package/esm/src/integrations/index.d.ts.map +1 -1
- package/esm/src/integrations/index.js +4 -0
- package/esm/src/integrations/schema.d.ts +14 -0
- package/esm/src/integrations/schema.d.ts.map +1 -1
- package/esm/src/integrations/schema.js +7 -0
- package/esm/src/integrations/types.d.ts +4 -0
- package/esm/src/integrations/types.d.ts.map +1 -1
- package/esm/src/internal-agents/schema.js +2 -2
- package/esm/src/jobs/jobs-client.d.ts +15 -0
- package/esm/src/jobs/jobs-client.d.ts.map +1 -1
- package/esm/src/jobs/jobs-client.js +2 -0
- package/esm/src/jobs/schemas.d.ts +53 -0
- package/esm/src/jobs/schemas.d.ts.map +1 -1
- package/esm/src/jobs/schemas.js +28 -0
- package/esm/src/mcp/elicitation.d.ts +5 -0
- package/esm/src/mcp/elicitation.d.ts.map +1 -1
- package/esm/src/mcp/elicitation.js +2 -0
- package/esm/src/mcp/registry.d.ts +6 -0
- package/esm/src/mcp/registry.d.ts.map +1 -1
- package/esm/src/mcp/registry.js +6 -0
- package/esm/src/mcp/schemas/mcp.schema.d.ts +2 -0
- package/esm/src/mcp/schemas/mcp.schema.d.ts.map +1 -1
- package/esm/src/mcp/server.d.ts +3 -0
- package/esm/src/mcp/server.d.ts.map +1 -1
- package/esm/src/mcp/server.js +2 -0
- package/esm/src/mcp/sse.d.ts +2 -0
- package/esm/src/mcp/sse.d.ts.map +1 -1
- package/esm/src/mcp/sse.js +2 -0
- package/esm/src/mcp/task-store.d.ts +1 -0
- package/esm/src/mcp/task-store.d.ts.map +1 -1
- package/esm/src/mcp/task-store.js +2 -0
- package/esm/src/middleware/builtin/logger.d.ts +5 -0
- package/esm/src/middleware/builtin/logger.d.ts.map +1 -1
- package/esm/src/middleware/builtin/logger.js +3 -0
- package/esm/src/middleware/builtin/security/rate-limit.d.ts +3 -0
- package/esm/src/middleware/builtin/security/rate-limit.d.ts.map +1 -1
- package/esm/src/middleware/builtin/security/rate-limit.js +2 -0
- package/esm/src/middleware/builtin/security/redis-rate-limit.d.ts +2 -0
- package/esm/src/middleware/builtin/security/redis-rate-limit.d.ts.map +1 -1
- package/esm/src/middleware/builtin/security/redis-rate-limit.js +1 -0
- package/esm/src/middleware/builtin/security/types.d.ts +1 -0
- package/esm/src/middleware/builtin/security/types.d.ts.map +1 -1
- package/esm/src/middleware/builtin/timeout.d.ts +1 -0
- package/esm/src/middleware/builtin/timeout.d.ts.map +1 -1
- package/esm/src/middleware/builtin/types.d.ts +1 -0
- package/esm/src/middleware/builtin/types.d.ts.map +1 -1
- package/esm/src/middleware/core/context.d.ts +1 -0
- package/esm/src/middleware/core/context.d.ts.map +1 -1
- package/esm/src/middleware/core/context.js +1 -0
- package/esm/src/middleware/core/pipeline/pipeline.d.ts +1 -0
- package/esm/src/middleware/core/pipeline/pipeline.d.ts.map +1 -1
- package/esm/src/middleware/core/pipeline/pipeline.js +1 -0
- package/esm/src/middleware/core/pipeline/types.d.ts +1 -0
- package/esm/src/middleware/core/pipeline/types.d.ts.map +1 -1
- package/esm/src/middleware/core/types.d.ts +5 -0
- package/esm/src/middleware/core/types.d.ts.map +1 -1
- package/esm/src/oauth/handlers/callback-handler.d.ts +3 -1
- package/esm/src/oauth/handlers/callback-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/callback-handler.js +1 -0
- package/esm/src/oauth/handlers/init-handler.d.ts +7 -3
- package/esm/src/oauth/handlers/init-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/init-handler.js +3 -0
- package/esm/src/oauth/providers/atlassian.d.ts +3 -0
- package/esm/src/oauth/providers/atlassian.d.ts.map +1 -1
- package/esm/src/oauth/providers/atlassian.js +3 -0
- package/esm/src/oauth/providers/base.d.ts +2 -0
- package/esm/src/oauth/providers/base.d.ts.map +1 -1
- package/esm/src/oauth/providers/base.js +2 -0
- package/esm/src/oauth/providers/common.d.ts +26 -0
- package/esm/src/oauth/providers/common.d.ts.map +1 -1
- package/esm/src/oauth/providers/common.js +26 -0
- package/esm/src/oauth/providers/google.d.ts +4 -0
- package/esm/src/oauth/providers/google.d.ts.map +1 -1
- package/esm/src/oauth/providers/google.js +4 -0
- package/esm/src/oauth/providers/microsoft.d.ts +4 -0
- package/esm/src/oauth/providers/microsoft.d.ts.map +1 -1
- package/esm/src/oauth/providers/microsoft.js +4 -0
- package/esm/src/oauth/schemas/oauth.schema.d.ts +7 -0
- package/esm/src/oauth/schemas/oauth.schema.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/http-instrumentation.d.ts +2 -0
- package/esm/src/observability/auto-instrument/http-instrumentation.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/http-instrumentation.js +2 -0
- package/esm/src/observability/auto-instrument/orchestrator.d.ts +2 -0
- package/esm/src/observability/auto-instrument/orchestrator.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/orchestrator.js +2 -0
- package/esm/src/observability/auto-instrument/react-instrumentation.d.ts +2 -0
- package/esm/src/observability/auto-instrument/react-instrumentation.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/react-instrumentation.js +2 -0
- package/esm/src/observability/auto-instrument/types.d.ts +1 -0
- package/esm/src/observability/auto-instrument/types.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/wrappers.d.ts +3 -0
- package/esm/src/observability/auto-instrument/wrappers.d.ts.map +1 -1
- package/esm/src/observability/auto-instrument/wrappers.js +3 -0
- package/esm/src/observability/error-collector.d.ts +8 -0
- package/esm/src/observability/error-collector.d.ts.map +1 -1
- package/esm/src/observability/error-collector.js +4 -0
- package/esm/src/observability/file-log-subscriber.d.ts +4 -0
- package/esm/src/observability/file-log-subscriber.d.ts.map +1 -1
- package/esm/src/observability/file-log-subscriber.js +3 -0
- package/esm/src/observability/log-buffer.d.ts +8 -0
- package/esm/src/observability/log-buffer.d.ts.map +1 -1
- package/esm/src/observability/log-buffer.js +4 -0
- package/esm/src/observability/metrics/index.d.ts +22 -0
- package/esm/src/observability/metrics/index.d.ts.map +1 -1
- package/esm/src/observability/metrics/index.js +22 -0
- package/esm/src/observability/metrics/types.d.ts +1 -0
- package/esm/src/observability/metrics/types.d.ts.map +1 -1
- package/esm/src/observability/tracing/index.d.ts +14 -0
- package/esm/src/observability/tracing/index.d.ts.map +1 -1
- package/esm/src/observability/tracing/index.js +14 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts +15 -0
- package/esm/src/observability/tracing/otlp-setup.d.ts.map +1 -1
- package/esm/src/observability/tracing/otlp-setup.js +14 -0
- package/esm/src/observability/tracing/service-tracer.d.ts +15 -0
- package/esm/src/observability/tracing/service-tracer.d.ts.map +1 -1
- package/esm/src/observability/tracing/service-tracer.js +1 -0
- package/esm/src/observability/tracing/span-names.d.ts +1 -0
- package/esm/src/observability/tracing/span-names.d.ts.map +1 -1
- package/esm/src/observability/tracing/span-names.js +1 -0
- package/esm/src/observability/tracing/types.d.ts +2 -0
- package/esm/src/observability/tracing/types.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.d.ts +15 -0
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +14 -0
- package/esm/src/platform/compat/http/responses.d.ts +7 -0
- package/esm/src/platform/compat/http/responses.d.ts.map +1 -1
- package/esm/src/platform/compat/http/responses.js +7 -0
- package/esm/src/platform/compat/path/basic-operations.d.ts +4 -0
- package/esm/src/platform/compat/path/basic-operations.d.ts.map +1 -1
- package/esm/src/platform/compat/path/basic-operations.js +4 -0
- package/esm/src/platform/compat/path/resolution.d.ts +1 -0
- package/esm/src/platform/compat/path/resolution.d.ts.map +1 -1
- package/esm/src/platform/compat/path/resolution.js +1 -0
- package/esm/src/platform/compat/process/env.d.ts +4 -0
- package/esm/src/platform/compat/process/env.d.ts.map +1 -1
- package/esm/src/platform/compat/process/env.js +4 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts +1 -0
- package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -1
- package/esm/src/platform/compat/process/lifecycle.js +1 -0
- package/esm/src/prompt/factory.d.ts +1 -0
- package/esm/src/prompt/factory.d.ts.map +1 -1
- package/esm/src/prompt/factory.js +1 -0
- package/esm/src/prompt/registry.d.ts +1 -0
- package/esm/src/prompt/registry.d.ts.map +1 -1
- package/esm/src/prompt/registry.js +1 -0
- package/esm/src/prompt/schemas/prompt.schema.d.ts +1 -0
- package/esm/src/prompt/schemas/prompt.schema.d.ts.map +1 -1
- package/esm/src/prompt/types.d.ts +1 -0
- package/esm/src/prompt/types.d.ts.map +1 -1
- package/esm/src/provider/model-registry.d.ts +1 -0
- package/esm/src/provider/model-registry.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-embedding-responses.d.ts +1 -0
- package/esm/src/provider/runtime-loader/provider-embedding-responses.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-embedding-responses.js +1 -0
- package/esm/src/provider/runtime-loader/provider-endpoints.d.ts +7 -0
- package/esm/src/provider/runtime-loader/provider-endpoints.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-endpoints.js +7 -0
- package/esm/src/provider/runtime-loader/provider-http.d.ts +3 -0
- package/esm/src/provider/runtime-loader/provider-http.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-http.js +3 -0
- package/esm/src/provider/runtime-loader/provider-records.d.ts +1 -0
- package/esm/src/provider/runtime-loader/provider-records.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-records.js +1 -0
- package/esm/src/provider/runtime-loader/provider-request-init.d.ts +3 -0
- package/esm/src/provider/runtime-loader/provider-request-init.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-request-init.js +3 -0
- package/esm/src/provider/runtime-loader/provider-sse.d.ts +1 -0
- package/esm/src/provider/runtime-loader/provider-sse.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-sse.js +1 -0
- package/esm/src/provider/runtime-loader/provider-usage.d.ts +2 -0
- package/esm/src/provider/runtime-loader/provider-usage.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-usage.js +1 -0
- package/esm/src/provider/runtime-loader/tool-input-status.d.ts +1 -0
- package/esm/src/provider/runtime-loader/tool-input-status.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/tool-input-status.js +2 -0
- package/esm/src/provider/runtime-loader.d.ts +10 -0
- package/esm/src/provider/runtime-loader.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader.js +7 -0
- package/esm/src/provider/types.d.ts +1 -0
- package/esm/src/provider/types.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/context.d.ts +3 -0
- package/esm/src/provider/veryfront-cloud/context.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/context.js +2 -0
- package/esm/src/provider/veryfront-cloud/model-catalog.d.ts +16 -0
- package/esm/src/provider/veryfront-cloud/model-catalog.d.ts.map +1 -1
- package/esm/src/provider/veryfront-cloud/model-catalog.js +14 -0
- package/esm/src/provider/veryfront-cloud/shared.d.ts +1 -0
- package/esm/src/provider/veryfront-cloud/shared.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.js +3 -2
- package/esm/src/react/components/MDXProvider.d.ts +3 -0
- package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
- package/esm/src/react/components/MDXProvider.js +2 -0
- package/esm/src/react/components/chat/agent-card.d.ts +2 -0
- package/esm/src/react/components/chat/agent-card.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-card.js +1 -0
- package/esm/src/react/components/chat/chat/components/animations.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/animations.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/animations.js +3 -0
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/attachment-pill.js +1 -0
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/branch-picker.js +1 -0
- package/esm/src/react/components/chat/chat/components/code-block.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/code-block.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/code-block.js +1 -0
- package/esm/src/react/components/chat/chat/components/drop-zone.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/drop-zone.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/drop-zone.js +1 -0
- package/esm/src/react/components/chat/chat/components/empty-state.d.ts +8 -0
- package/esm/src/react/components/chat/chat/components/empty-state.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/empty-state.js +4 -0
- package/esm/src/react/components/chat/chat/components/inference-badge.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/inference-badge.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/inference-badge.js +1 -0
- package/esm/src/react/components/chat/chat/components/inline-citation.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/inline-citation.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/inline-citation.js +1 -0
- package/esm/src/react/components/chat/chat/components/message-actions.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/message-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-actions.js +1 -0
- package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-edit-form.js +1 -0
- package/esm/src/react/components/chat/chat/components/message-feedback.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/message-feedback.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-feedback.js +1 -0
- package/esm/src/react/components/chat/chat/components/quick-actions.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/quick-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/quick-actions.js +1 -0
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts +1 -0
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/reasoning.js +1 -0
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sidebar.js +1 -0
- package/esm/src/react/components/chat/chat/components/skill-badge.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/skill-badge.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/skill-badge.js +1 -0
- package/esm/src/react/components/chat/chat/components/sources.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sources.js +1 -0
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/step-indicator.js +1 -0
- package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/tab-switcher.js +1 -0
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts +1 -0
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/tool-ui.js +1 -0
- package/esm/src/react/components/chat/chat/components/upgrade-cta.d.ts +2 -0
- package/esm/src/react/components/chat/chat/components/upgrade-cta.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/upgrade-cta.js +1 -0
- package/esm/src/react/components/chat/chat/components/uploads-panel.d.ts +3 -0
- package/esm/src/react/components/chat/chat/components/uploads-panel.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/uploads-panel.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-composer.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-empty.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-if.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-if.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-if.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-message-list.js +1 -0
- package/esm/src/react/components/chat/chat/composition/chat-root.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/chat-root.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-root.js +1 -0
- package/esm/src/react/components/chat/chat/composition/error-banner.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/error-banner.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/error-banner.js +1 -0
- package/esm/src/react/components/chat/chat/composition/message.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/message.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/message.js +1 -0
- package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts +2 -0
- package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/model-avatar.js +1 -0
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts +4 -0
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/chat-context.js +3 -0
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts +4 -0
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/composer-context.js +3 -0
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts +4 -0
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/message-context.js +3 -0
- package/esm/src/react/components/chat/chat/contexts/thread-list-context.d.ts +4 -0
- package/esm/src/react/components/chat/chat/contexts/thread-list-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/thread-list-context.js +3 -0
- package/esm/src/react/components/chat/chat/hooks/use-threads.d.ts +4 -0
- package/esm/src/react/components/chat/chat/hooks/use-threads.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-threads.js +1 -0
- package/esm/src/react/components/chat/chat/index.d.ts +3 -0
- package/esm/src/react/components/chat/chat/index.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/index.js +2 -0
- package/esm/src/react/components/chat/chat-with-sidebar.d.ts +12 -0
- package/esm/src/react/components/chat/chat-with-sidebar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat-with-sidebar.js +1 -0
- package/esm/src/react/components/chat/error-boundary.d.ts +3 -0
- package/esm/src/react/components/chat/error-boundary.d.ts.map +1 -1
- package/esm/src/react/components/chat/error-boundary.js +2 -0
- package/esm/src/react/components/chat/markdown.d.ts +3 -0
- package/esm/src/react/components/chat/markdown.d.ts.map +1 -1
- package/esm/src/react/components/chat/markdown.js +1 -0
- package/esm/src/react/components/chat/message.d.ts +4 -0
- package/esm/src/react/components/chat/message.d.ts.map +1 -1
- package/esm/src/react/components/chat/message.js +2 -0
- package/esm/src/react/components/chat/model-selector.d.ts +2 -1
- package/esm/src/react/components/chat/model-selector.d.ts.map +1 -1
- package/esm/src/react/components/chat/model-selector.js +1 -0
- package/esm/src/react/components/chat/theme.d.ts +2 -0
- package/esm/src/react/components/chat/theme.d.ts.map +1 -1
- package/esm/src/react/fonts/index.d.ts +3 -0
- package/esm/src/react/fonts/index.d.ts.map +1 -1
- package/esm/src/react/fonts/index.js +1 -0
- package/esm/src/react/runtime/core.d.ts +38 -0
- package/esm/src/react/runtime/core.d.ts.map +1 -1
- package/esm/src/react/runtime/core.js +6 -0
- package/esm/src/rendering/rsc/client-boot.ts +50 -5
- package/esm/src/resource/factory.d.ts +1 -0
- package/esm/src/resource/factory.d.ts.map +1 -1
- package/esm/src/resource/factory.js +1 -0
- package/esm/src/resource/registry.d.ts +1 -0
- package/esm/src/resource/registry.d.ts.map +1 -1
- package/esm/src/resource/registry.js +1 -0
- package/esm/src/resource/types.d.ts +2 -0
- package/esm/src/resource/types.d.ts.map +1 -1
- package/esm/src/routing/api/context-builder.d.ts +1 -0
- package/esm/src/routing/api/context-builder.d.ts.map +1 -1
- package/esm/src/routing/api/handler.d.ts +2 -0
- package/esm/src/routing/api/handler.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/types.d.ts +1 -0
- package/esm/src/routing/api/module-loader/types.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.d.ts +1 -0
- package/esm/src/runtime/runtime-bridge.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.js +1 -0
- package/esm/src/sandbox/agent-service-tools.d.ts +16 -0
- package/esm/src/sandbox/agent-service-tools.d.ts.map +1 -1
- package/esm/src/sandbox/agent-service-tools.js +6 -0
- package/esm/src/sandbox/lazy-sandbox.d.ts +2 -0
- package/esm/src/sandbox/lazy-sandbox.d.ts.map +1 -1
- package/esm/src/sandbox/lazy-sandbox.js +1 -0
- package/esm/src/sandbox/shell-tools.d.ts +3 -0
- package/esm/src/sandbox/shell-tools.d.ts.map +1 -1
- package/esm/src/sandbox/shell-tools.js +3 -0
- package/esm/src/security/http/cors/middleware.d.ts +1 -0
- package/esm/src/security/http/cors/middleware.d.ts.map +1 -1
- package/esm/src/security/http/cors/middleware.js +1 -0
- package/esm/src/security/input-validation/handler.d.ts +2 -0
- package/esm/src/security/input-validation/handler.d.ts.map +1 -1
- package/esm/src/security/input-validation/parsers.d.ts +3 -0
- package/esm/src/security/input-validation/parsers.d.ts.map +1 -1
- package/esm/src/security/input-validation/parsers.js +3 -0
- package/esm/src/server/build-types.d.ts +1 -0
- package/esm/src/server/build-types.d.ts.map +1 -1
- package/esm/src/server/dev-server/index.d.ts +1 -0
- package/esm/src/server/dev-server/index.d.ts.map +1 -1
- package/esm/src/server/dev-server/index.js +1 -0
- package/esm/src/server/dev-server/server.d.ts +2 -1
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +2 -1
- package/esm/src/server/dev-server/types.d.ts +3 -0
- package/esm/src/server/dev-server/types.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +75 -0
- package/esm/src/server/index.d.ts +3 -0
- package/esm/src/server/index.d.ts.map +1 -1
- package/esm/src/server/index.js +1 -0
- package/esm/src/server/node-handler.d.ts +1 -0
- package/esm/src/server/node-handler.d.ts.map +1 -1
- package/esm/src/server/node-handler.js +1 -0
- package/esm/src/server/production-server.d.ts +3 -0
- package/esm/src/server/production-server.d.ts.map +1 -1
- package/esm/src/server/production-server.js +1 -0
- package/esm/src/server/reload-notifier.d.ts +1 -0
- package/esm/src/server/reload-notifier.d.ts.map +1 -1
- package/esm/src/server/reload-notifier.js +1 -0
- package/esm/src/server/service-server.d.ts +14 -0
- package/esm/src/server/service-server.d.ts.map +1 -1
- package/esm/src/server/service-server.js +3 -0
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +1 -1
- package/esm/src/testing/assert.d.ts +18 -0
- package/esm/src/testing/assert.d.ts.map +1 -1
- package/esm/src/testing/assert.js +17 -0
- package/esm/src/testing/bdd.d.ts +8 -0
- package/esm/src/testing/bdd.d.ts.map +1 -1
- package/esm/src/testing/bdd.js +8 -0
- package/esm/src/testing/deno-compat.d.ts +8 -0
- package/esm/src/testing/deno-compat.d.ts.map +1 -1
- package/esm/src/testing/deno-compat.js +8 -0
- package/esm/src/testing/isolation.d.ts +1 -0
- package/esm/src/testing/isolation.d.ts.map +1 -1
- package/esm/src/testing/isolation.js +1 -0
- package/esm/src/testing/timing.d.ts +3 -0
- package/esm/src/testing/timing.d.ts.map +1 -1
- package/esm/src/testing/timing.js +3 -0
- package/esm/src/testing/utils.d.ts +1 -0
- package/esm/src/testing/utils.d.ts.map +1 -1
- package/esm/src/testing/utils.js +1 -0
- package/esm/src/tool/context7.d.ts +2 -0
- package/esm/src/tool/context7.d.ts.map +1 -1
- package/esm/src/tool/context7.js +1 -0
- package/esm/src/tool/executor.d.ts +1 -0
- package/esm/src/tool/executor.d.ts.map +1 -1
- package/esm/src/tool/executor.js +1 -0
- package/esm/src/tool/factory.d.ts +3 -0
- package/esm/src/tool/factory.d.ts.map +1 -1
- package/esm/src/tool/factory.js +2 -0
- package/esm/src/tool/host-tools.d.ts +5 -0
- package/esm/src/tool/host-tools.d.ts.map +1 -1
- package/esm/src/tool/host-tools.js +1 -0
- package/esm/src/tool/project-scoped-remote-tools.d.ts +15 -0
- package/esm/src/tool/project-scoped-remote-tools.d.ts.map +1 -1
- package/esm/src/tool/project-scoped-remote-tools.js +7 -0
- package/esm/src/tool/registry.d.ts +1 -0
- package/esm/src/tool/registry.d.ts.map +1 -1
- package/esm/src/tool/registry.js +1 -0
- package/esm/src/tool/remote-mcp.d.ts +2 -0
- package/esm/src/tool/remote-mcp.d.ts.map +1 -1
- package/esm/src/tool/remote-mcp.js +1 -0
- package/esm/src/tool/remote-source-tools.d.ts +3 -0
- package/esm/src/tool/remote-source-tools.d.ts.map +1 -1
- package/esm/src/tool/remote-source-tools.js +2 -0
- package/esm/src/tool/result.d.ts +2 -0
- package/esm/src/tool/result.d.ts.map +1 -1
- package/esm/src/tool/result.js +2 -0
- package/esm/src/tool/sleep.d.ts +6 -0
- package/esm/src/tool/sleep.d.ts.map +1 -1
- package/esm/src/tool/sleep.js +2 -0
- package/esm/src/tool/tracing.d.ts +5 -0
- package/esm/src/tool/tracing.d.ts.map +1 -1
- package/esm/src/tool/tracing.js +1 -0
- package/esm/src/tool/types.d.ts +2 -1
- package/esm/src/tool/types.d.ts.map +1 -1
- package/esm/src/types/index.d.ts +2 -0
- package/esm/src/types/index.d.ts.map +1 -1
- package/esm/src/utils/bundle-manifest.d.ts +3 -0
- package/esm/src/utils/bundle-manifest.d.ts.map +1 -1
- package/esm/src/utils/bundle-manifest.js +1 -0
- package/esm/src/utils/constants/build.d.ts +2 -0
- package/esm/src/utils/constants/build.d.ts.map +1 -1
- package/esm/src/utils/constants/build.js +2 -0
- package/esm/src/utils/constants/cache.d.ts +4 -0
- package/esm/src/utils/constants/cache.d.ts.map +1 -1
- package/esm/src/utils/constants/cache.js +4 -0
- package/esm/src/utils/constants/cdn.d.ts +4 -0
- package/esm/src/utils/constants/cdn.d.ts.map +1 -1
- package/esm/src/utils/constants/cdn.js +4 -0
- package/esm/src/utils/constants/hash.d.ts +2 -0
- package/esm/src/utils/constants/hash.d.ts.map +1 -1
- package/esm/src/utils/constants/hash.js +2 -0
- package/esm/src/utils/constants/hmr.d.ts +7 -0
- package/esm/src/utils/constants/hmr.d.ts.map +1 -1
- package/esm/src/utils/constants/hmr.js +7 -0
- package/esm/src/utils/constants/html.d.ts +6 -0
- package/esm/src/utils/constants/html.d.ts.map +1 -1
- package/esm/src/utils/constants/html.js +6 -0
- package/esm/src/utils/constants/http.d.ts +23 -0
- package/esm/src/utils/constants/http.d.ts.map +1 -1
- package/esm/src/utils/constants/http.js +23 -0
- package/esm/src/utils/constants/network.d.ts +3 -0
- package/esm/src/utils/constants/network.d.ts.map +1 -1
- package/esm/src/utils/constants/network.js +3 -0
- package/esm/src/utils/constants/security.d.ts +3 -0
- package/esm/src/utils/constants/security.d.ts.map +1 -1
- package/esm/src/utils/constants/security.js +3 -0
- package/esm/src/utils/constants/server.d.ts +1 -0
- package/esm/src/utils/constants/server.d.ts.map +1 -1
- package/esm/src/utils/constants/server.js +1 -0
- package/esm/src/utils/feature-flags.d.ts +1 -0
- package/esm/src/utils/feature-flags.d.ts.map +1 -1
- package/esm/src/utils/feature-flags.js +1 -0
- package/esm/src/utils/hash-utils.d.ts +5 -0
- package/esm/src/utils/hash-utils.d.ts.map +1 -1
- package/esm/src/utils/hash-utils.js +4 -0
- package/esm/src/utils/import-lockfile.d.ts +3 -0
- package/esm/src/utils/import-lockfile.d.ts.map +1 -1
- package/esm/src/utils/import-lockfile.js +2 -0
- package/esm/src/utils/logger/logger.d.ts +7 -0
- package/esm/src/utils/logger/logger.d.ts.map +1 -1
- package/esm/src/utils/logger/logger.js +6 -0
- package/esm/src/utils/logger/request-context.d.ts +2 -0
- package/esm/src/utils/logger/request-context.d.ts.map +1 -1
- package/esm/src/utils/logger/request-context.js +1 -0
- package/esm/src/utils/memoize.d.ts +3 -0
- package/esm/src/utils/memoize.d.ts.map +1 -1
- package/esm/src/utils/memoize.js +3 -0
- package/esm/src/utils/parallel.d.ts +1 -0
- package/esm/src/utils/parallel.d.ts.map +1 -1
- package/esm/src/utils/parallel.js +1 -0
- package/esm/src/utils/path-utils.d.ts +1 -0
- package/esm/src/utils/path-utils.d.ts.map +1 -1
- package/esm/src/utils/path-utils.js +1 -0
- package/esm/src/utils/perf-timer.d.ts +5 -0
- package/esm/src/utils/perf-timer.d.ts.map +1 -1
- package/esm/src/utils/perf-timer.js +5 -0
- package/esm/src/utils/runtime-guards.d.ts +6 -0
- package/esm/src/utils/runtime-guards.d.ts.map +1 -1
- package/esm/src/utils/runtime-guards.js +3 -0
- package/esm/src/utils/version-constant.d.ts +2 -1
- package/esm/src/utils/version-constant.d.ts.map +1 -1
- package/esm/src/utils/version-constant.js +2 -1
- package/esm/src/workflow/api/workflow-client.d.ts +3 -0
- package/esm/src/workflow/api/workflow-client.d.ts.map +1 -1
- package/esm/src/workflow/api/workflow-client.js +2 -0
- package/esm/src/workflow/backends/memory.d.ts +1 -0
- package/esm/src/workflow/backends/memory.d.ts.map +1 -1
- package/esm/src/workflow/backends/memory.js +1 -0
- package/esm/src/workflow/backends/redis/index.d.ts +1 -0
- package/esm/src/workflow/backends/redis/index.d.ts.map +1 -1
- package/esm/src/workflow/backends/redis/index.js +1 -0
- package/esm/src/workflow/backends/types.d.ts +3 -0
- package/esm/src/workflow/backends/types.d.ts.map +1 -1
- package/esm/src/workflow/backends/types.js +1 -0
- package/esm/src/workflow/claude-code/event-publisher.d.ts +1 -0
- package/esm/src/workflow/claude-code/event-publisher.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/event-publisher.js +1 -0
- package/esm/src/workflow/dsl/branch.d.ts +1 -0
- package/esm/src/workflow/dsl/branch.d.ts.map +1 -1
- package/esm/src/workflow/dsl/loop.d.ts +4 -0
- package/esm/src/workflow/dsl/loop.d.ts.map +1 -1
- package/esm/src/workflow/dsl/loop.js +3 -0
- package/esm/src/workflow/dsl/map.d.ts +2 -0
- package/esm/src/workflow/dsl/map.d.ts.map +1 -1
- package/esm/src/workflow/dsl/map.js +1 -0
- package/esm/src/workflow/dsl/parallel.d.ts +1 -0
- package/esm/src/workflow/dsl/parallel.d.ts.map +1 -1
- package/esm/src/workflow/dsl/step.d.ts +4 -0
- package/esm/src/workflow/dsl/step.d.ts.map +1 -1
- package/esm/src/workflow/dsl/step.js +3 -0
- package/esm/src/workflow/dsl/sub-workflow.d.ts +1 -0
- package/esm/src/workflow/dsl/sub-workflow.d.ts.map +1 -1
- package/esm/src/workflow/dsl/wait.d.ts +2 -0
- package/esm/src/workflow/dsl/wait.d.ts.map +1 -1
- package/esm/src/workflow/dsl/workflow.d.ts +5 -0
- package/esm/src/workflow/dsl/workflow.d.ts.map +1 -1
- package/esm/src/workflow/dsl/workflow.js +4 -0
- package/esm/src/workflow/executor/workflow-executor.d.ts +1 -3
- package/esm/src/workflow/executor/workflow-executor.d.ts.map +1 -1
- package/esm/src/workflow/react/use-approval.d.ts +3 -3
- package/esm/src/workflow/react/use-approval.d.ts.map +1 -1
- package/esm/src/workflow/react/use-approval.js +1 -3
- package/esm/src/workflow/react/use-workflow-list.d.ts +2 -0
- package/esm/src/workflow/react/use-workflow-list.d.ts.map +1 -1
- package/esm/src/workflow/react/use-workflow-start.d.ts +3 -0
- package/esm/src/workflow/react/use-workflow-start.d.ts.map +1 -1
- package/esm/src/workflow/react/use-workflow-start.js +1 -0
- package/esm/src/workflow/react/use-workflow.d.ts +3 -0
- package/esm/src/workflow/react/use-workflow.d.ts.map +1 -1
- package/esm/src/workflow/react/use-workflow.js +1 -0
- package/esm/src/workflow/schemas/workflow.schema.d.ts +1 -0
- package/esm/src/workflow/schemas/workflow.schema.d.ts.map +1 -1
- package/esm/src/workflow/worker/dynamic-job-entrypoint.d.ts +1 -0
- package/esm/src/workflow/worker/dynamic-job-entrypoint.d.ts.map +1 -1
- package/esm/src/workflow/worker/dynamic-job-entrypoint.js +1 -0
- package/esm/src/workflow/worker/job-entrypoint.d.ts +1 -0
- package/esm/src/workflow/worker/job-entrypoint.d.ts.map +1 -1
- package/esm/src/workflow/worker/job-entrypoint.js +1 -0
- package/esm/src/workflow/worker/workflow-worker.d.ts +1 -0
- package/esm/src/workflow/worker/workflow-worker.d.ts.map +1 -1
- package/esm/src/workflow/worker/workflow-worker.js +1 -0
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ export class ProviderQuotaError extends ProviderError {
|
|
|
33
33
|
/** Non-retryable 4xx/5xx that doesn't fit another bucket. */
|
|
34
34
|
export class ProviderRequestError extends ProviderError {
|
|
35
35
|
}
|
|
36
|
+
/** Parses retry after ms. */
|
|
36
37
|
export function parseRetryAfterMs(header) {
|
|
37
38
|
if (!header)
|
|
38
39
|
return undefined;
|
|
@@ -143,6 +144,7 @@ export async function buildProviderError(provider, response) {
|
|
|
143
144
|
retryable: false,
|
|
144
145
|
});
|
|
145
146
|
}
|
|
147
|
+
/** Request and parse a JSON response. */
|
|
146
148
|
export async function requestJson(options) {
|
|
147
149
|
const response = await options.fetchImpl(options.url, options.init);
|
|
148
150
|
if (!response.ok) {
|
|
@@ -152,6 +154,7 @@ export async function requestJson(options) {
|
|
|
152
154
|
}
|
|
153
155
|
return response.json();
|
|
154
156
|
}
|
|
157
|
+
/** Request a streaming response. */
|
|
155
158
|
export async function requestStream(options) {
|
|
156
159
|
const response = await options.fetchImpl(options.url, options.init);
|
|
157
160
|
if (!response.ok) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-records.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/provider-records.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAM9E"}
|
|
1
|
+
{"version":3,"file":"provider-records.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/provider-records.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAM9E"}
|
|
@@ -9,12 +9,14 @@ export declare function createAnthropicRequestHeaders(options: {
|
|
|
9
9
|
extraHeaders?: HeadersInit;
|
|
10
10
|
enableFineGrainedToolStreaming?: boolean;
|
|
11
11
|
}): Headers;
|
|
12
|
+
/** Create request init options for OpenAI-compatible providers. */
|
|
12
13
|
export declare function createOpenAIRequestInit(options: {
|
|
13
14
|
apiKey: string;
|
|
14
15
|
extraHeaders?: HeadersInit;
|
|
15
16
|
body: string;
|
|
16
17
|
signal?: AbortSignal;
|
|
17
18
|
}): RequestInit;
|
|
19
|
+
/** Create Anthropic request init. */
|
|
18
20
|
export declare function createAnthropicRequestInit(options: {
|
|
19
21
|
apiKey?: string;
|
|
20
22
|
authToken?: string;
|
|
@@ -23,6 +25,7 @@ export declare function createAnthropicRequestInit(options: {
|
|
|
23
25
|
body: string;
|
|
24
26
|
signal?: AbortSignal;
|
|
25
27
|
}): RequestInit;
|
|
28
|
+
/** Create Google request init. */
|
|
26
29
|
export declare function createGoogleRequestInit(options: {
|
|
27
30
|
apiKey: string;
|
|
28
31
|
extraHeaders?: HeadersInit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-request-init.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/provider-request-init.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAC5C,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B,GAAG,OAAO,CAKV;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C,GAAG,OAAO,CAyBV;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,WAAW,CAWd;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,WAAW,CAYd;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,WAAW,CAWd"}
|
|
1
|
+
{"version":3,"file":"provider-request-init.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/provider-request-init.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAC5C,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B,GAAG,OAAO,CAKV;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C,GAAG,OAAO,CAyBV;AAED,mEAAmE;AACnE,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,WAAW,CAWd;AAED,qCAAqC;AACrC,wBAAgB,0BAA0B,CAAC,OAAO,EAAE;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,WAAW,CAYd;AAED,kCAAkC;AAClC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,WAAW,CAWd"}
|
|
@@ -28,6 +28,7 @@ export function createAnthropicRequestHeaders(options) {
|
|
|
28
28
|
}
|
|
29
29
|
return headers;
|
|
30
30
|
}
|
|
31
|
+
/** Create request init options for OpenAI-compatible providers. */
|
|
31
32
|
export function createOpenAIRequestInit(options) {
|
|
32
33
|
return {
|
|
33
34
|
method: "POST",
|
|
@@ -40,6 +41,7 @@ export function createOpenAIRequestInit(options) {
|
|
|
40
41
|
signal: options.signal,
|
|
41
42
|
};
|
|
42
43
|
}
|
|
44
|
+
/** Create Anthropic request init. */
|
|
43
45
|
export function createAnthropicRequestInit(options) {
|
|
44
46
|
return {
|
|
45
47
|
method: "POST",
|
|
@@ -53,6 +55,7 @@ export function createAnthropicRequestInit(options) {
|
|
|
53
55
|
signal: options.signal,
|
|
54
56
|
};
|
|
55
57
|
}
|
|
58
|
+
/** Create Google request init. */
|
|
56
59
|
export function createGoogleRequestInit(options) {
|
|
57
60
|
return {
|
|
58
61
|
method: "POST",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-sse.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/provider-sse.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG;IAC5C,MAAM,EAAE,KAAK,CAAC,OAAO,GAAG,QAAQ,CAAC,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;CACnB,CAyBA"}
|
|
1
|
+
{"version":3,"file":"provider-sse.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/provider-sse.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG;IAC5C,MAAM,EAAE,KAAK,CAAC,OAAO,GAAG,QAAQ,CAAC,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;CACnB,CAyBA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Public API contract for runtime usage. */
|
|
1
2
|
export type RuntimeUsage = {
|
|
2
3
|
inputTokens?: number;
|
|
3
4
|
outputTokens?: number;
|
|
@@ -15,5 +16,6 @@ export declare function extractOpenAIUsage(payload: unknown): RuntimeUsage | und
|
|
|
15
16
|
* exposes reasoning tokens via `output_tokens_details.reasoning_tokens`.
|
|
16
17
|
*/
|
|
17
18
|
export declare function extractOpenAIResponsesUsage(payload: unknown): RuntimeUsage | undefined;
|
|
19
|
+
/** Merge provider usage counters. */
|
|
18
20
|
export declare function mergeUsage(current: RuntimeUsage | undefined, next: RuntimeUsage | undefined): RuntimeUsage | undefined;
|
|
19
21
|
//# sourceMappingURL=provider-usage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-usage.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/provider-usage.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAsBhF;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAoB7E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAmB7E;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAwBtF;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,IAAI,EAAE,YAAY,GAAG,SAAS,GAC7B,YAAY,GAAG,SAAS,CAsB1B"}
|
|
1
|
+
{"version":3,"file":"provider-usage.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/provider-usage.ts"],"names":[],"mappings":"AAEA,6CAA6C;AAC7C,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAsBhF;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAoB7E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAmB7E;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAwBtF;AAED,qCAAqC;AACrC,wBAAgB,UAAU,CACxB,OAAO,EAAE,YAAY,GAAG,SAAS,EACjC,IAAI,EAAE,YAAY,GAAG,SAAS,GAC7B,YAAY,GAAG,SAAS,CAsB1B"}
|
|
@@ -87,6 +87,7 @@ export function extractOpenAIResponsesUsage(payload) {
|
|
|
87
87
|
...(typeof cachedTokens === "number" ? { cacheReadInputTokens: cachedTokens } : {}),
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
+
/** Merge provider usage counters. */
|
|
90
91
|
export function mergeUsage(current, next) {
|
|
91
92
|
if (!current) {
|
|
92
93
|
return next;
|
|
@@ -12,6 +12,7 @@ export declare function collectDueToolStatuses(toolStates: Map<string, ToolInput
|
|
|
12
12
|
status: "pending_input";
|
|
13
13
|
};
|
|
14
14
|
}>;
|
|
15
|
+
/** Applies tool input status transitions. */
|
|
15
16
|
export declare function withToolInputStatusTransitions(stream: AsyncIterable<unknown>, thresholdMs?: number): AsyncIterable<unknown>;
|
|
16
17
|
export {};
|
|
17
18
|
//# sourceMappingURL=tool-input-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-input-status.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/tool-input-status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool-input-status.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/runtime-loader/tool-input-status.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,OAAQ,CAAC;AAErD,KAAK,uBAAuB,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAEnE,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,uBAAuB,GAAG,IAAI,CAAC;CAC5C,CAAC;AAOF,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAexE;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,GAClB,KAAK,CAAC;IAAE,IAAI,EAAE,uBAAuB,CAAC;IAAC,IAAI,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,eAAe,CAAA;KAAE,CAAA;CAAE,CAAC,CAsBjG;AAED,6CAA6C;AAC7C,wBAAuB,8BAA8B,CACnD,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAC9B,WAAW,SAAkC,GAC5C,aAAa,CAAC,OAAO,CAAC,CAkLxB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Shared tool input pending threshold ms value. */
|
|
1
2
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
3
|
export const TOOL_INPUT_PENDING_THRESHOLD_MS = 5_000;
|
|
3
4
|
export function getToolCallIdFromStreamPart(part) {
|
|
@@ -31,6 +32,7 @@ export function collectDueToolStatuses(toolStates, now, thresholdMs) {
|
|
|
31
32
|
}
|
|
32
33
|
return events;
|
|
33
34
|
}
|
|
35
|
+
/** Applies tool input status transitions. */
|
|
34
36
|
export async function* withToolInputStatusTransitions(stream, thresholdMs = TOOL_INPUT_PENDING_THRESHOLD_MS) {
|
|
35
37
|
const iterator = stream[Symbol.asyncIterator]();
|
|
36
38
|
const toolStates = new Map();
|
|
@@ -8,6 +8,7 @@ export { ProviderError, ProviderOverloadedError, ProviderQuotaError, ProviderRat
|
|
|
8
8
|
export { TOOL_INPUT_PENDING_THRESHOLD_MS, withToolInputStatusTransitions };
|
|
9
9
|
export { buildProviderError, isNumberArray, mergeUsage, parseRetryAfterMs, readRecord, requestJson, requestStream, };
|
|
10
10
|
export type { RuntimeUsage };
|
|
11
|
+
/** Message shape for runtime prompt. */
|
|
11
12
|
export type RuntimePromptMessage = {
|
|
12
13
|
role: "system";
|
|
13
14
|
content: string;
|
|
@@ -62,6 +63,7 @@ type RuntimeToolDefinition = {
|
|
|
62
63
|
id: `${string}.${string}`;
|
|
63
64
|
args: Record<string, unknown>;
|
|
64
65
|
};
|
|
66
|
+
/** Message shape for OpenAI-compatible chat requests. */
|
|
65
67
|
export type OpenAICompatibleChatMessage = {
|
|
66
68
|
role: "system";
|
|
67
69
|
content: string;
|
|
@@ -92,6 +94,7 @@ export type OpenAICompatibleChatMessage = {
|
|
|
92
94
|
tool_call_id: string;
|
|
93
95
|
content: string;
|
|
94
96
|
};
|
|
97
|
+
/** Request payload for OpenAI-compatible chat completion providers. */
|
|
95
98
|
export type OpenAICompatibleChatRequest = {
|
|
96
99
|
model: string;
|
|
97
100
|
messages: OpenAICompatibleChatMessage[];
|
|
@@ -140,14 +143,21 @@ type WarningCollector = {
|
|
|
140
143
|
push(warning: ProviderWarning): void;
|
|
141
144
|
drain(): ProviderWarning[];
|
|
142
145
|
};
|
|
146
|
+
/** Create warning collector. */
|
|
143
147
|
export declare function createWarningCollector(): WarningCollector;
|
|
148
|
+
/** Serialize a JSON-compatible value. */
|
|
144
149
|
export declare function stringifyJsonValue(value: unknown): string;
|
|
150
|
+
/** Read text content parts from provider messages. */
|
|
145
151
|
export declare function readTextParts(parts: Array<{
|
|
146
152
|
type: string;
|
|
147
153
|
text?: string;
|
|
148
154
|
}>): string;
|
|
155
|
+
/** Convert runtime prompt messages into OpenAI-compatible chat messages. */
|
|
149
156
|
export declare function toOpenAICompatibleMessages(prompt: RuntimePromptMessage[]): OpenAICompatibleChatMessage[];
|
|
157
|
+
/** Convert runtime tool definitions into OpenAI-compatible function tools. */
|
|
150
158
|
export declare function toOpenAICompatibleTools(tools: RuntimeToolDefinition[] | undefined): OpenAICompatibleChatRequest["tools"] | undefined;
|
|
159
|
+
/** Options accepted by read provider. */
|
|
151
160
|
export declare function readProviderOptions(providerOptions: Record<string, unknown> | undefined, ...providerNames: string[]): Record<string, unknown>;
|
|
161
|
+
/** Zod schema for unwrap tool input. */
|
|
152
162
|
export declare function unwrapToolInputSchema(inputSchema: unknown): unknown;
|
|
153
163
|
//# sourceMappingURL=runtime-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-loader.d.ts","sourceRoot":"","sources":["../../../src/src/provider/runtime-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACd,MAAM,mCAAmC,CAAC;AAC3C,OAAO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AgB,GAAG;IACtB,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,KAAK,IAAI,eAAe,EAAE,CAAC;CAC5B,CAAC;AAEF,gCAAgC;AAChC,wBAAgB,sBAAsB,IAAI,gBAAgB,CAUzD;AAED,yCAAyC;AACzC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMzD;AAED,sDAAsD;AACtD,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,MAAM,CAQnF;AA0BD,4EAA4E;AAC5E,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,oBAAoB,EAAE,GAC7B,2BAA2B,EAAE,CA0D/B;AAED,8EAA8E;AAC9E,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,qBAAqB,EAAE,GAAG,SAAS,GACzC,2BAA2B,CAAC,OAAO,CAAC,GAAG,SAAS,CAmBlD;AAED,yCAAyC;AACzC,wBAAgB,mBAAmB,CACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACpD,GAAG,aAAa,EAAE,MAAM,EAAE,GACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAezB;AAED,wCAAwC;AACxC,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAOnE"}
|
|
@@ -6,6 +6,7 @@ import { TOOL_INPUT_PENDING_THRESHOLD_MS, withToolInputStatusTransitions, } from
|
|
|
6
6
|
export { ProviderError, ProviderOverloadedError, ProviderQuotaError, ProviderRateLimitError, ProviderRequestError, } from "./runtime-loader/provider-http.js";
|
|
7
7
|
export { TOOL_INPUT_PENDING_THRESHOLD_MS, withToolInputStatusTransitions };
|
|
8
8
|
export { buildProviderError, isNumberArray, mergeUsage, parseRetryAfterMs, readRecord, requestJson, requestStream, };
|
|
9
|
+
/** Create warning collector. */
|
|
9
10
|
export function createWarningCollector() {
|
|
10
11
|
const list = [];
|
|
11
12
|
return {
|
|
@@ -17,12 +18,14 @@ export function createWarningCollector() {
|
|
|
17
18
|
},
|
|
18
19
|
};
|
|
19
20
|
}
|
|
21
|
+
/** Serialize a JSON-compatible value. */
|
|
20
22
|
export function stringifyJsonValue(value) {
|
|
21
23
|
if (typeof value === "string") {
|
|
22
24
|
return value;
|
|
23
25
|
}
|
|
24
26
|
return JSON.stringify(value);
|
|
25
27
|
}
|
|
28
|
+
/** Read text content parts from provider messages. */
|
|
26
29
|
export function readTextParts(parts) {
|
|
27
30
|
let text = "";
|
|
28
31
|
for (const part of parts) {
|
|
@@ -50,6 +53,7 @@ function toOpenAICompatibleUserContent(parts) {
|
|
|
50
53
|
}
|
|
51
54
|
return content.length > 0 ? content : readTextParts(parts);
|
|
52
55
|
}
|
|
56
|
+
/** Convert runtime prompt messages into OpenAI-compatible chat messages. */
|
|
53
57
|
export function toOpenAICompatibleMessages(prompt) {
|
|
54
58
|
const messages = [];
|
|
55
59
|
for (const message of prompt) {
|
|
@@ -102,6 +106,7 @@ export function toOpenAICompatibleMessages(prompt) {
|
|
|
102
106
|
}
|
|
103
107
|
return messages;
|
|
104
108
|
}
|
|
109
|
+
/** Convert runtime tool definitions into OpenAI-compatible function tools. */
|
|
105
110
|
export function toOpenAICompatibleTools(tools) {
|
|
106
111
|
if (!tools) {
|
|
107
112
|
return undefined;
|
|
@@ -118,6 +123,7 @@ export function toOpenAICompatibleTools(tools) {
|
|
|
118
123
|
: []);
|
|
119
124
|
return functions.length > 0 ? functions : undefined;
|
|
120
125
|
}
|
|
126
|
+
/** Options accepted by read provider. */
|
|
121
127
|
export function readProviderOptions(providerOptions, ...providerNames) {
|
|
122
128
|
if (!providerOptions) {
|
|
123
129
|
return {};
|
|
@@ -132,6 +138,7 @@ export function readProviderOptions(providerOptions, ...providerNames) {
|
|
|
132
138
|
}
|
|
133
139
|
return merged;
|
|
134
140
|
}
|
|
141
|
+
/** Zod schema for unwrap tool input. */
|
|
135
142
|
export function unwrapToolInputSchema(inputSchema) {
|
|
136
143
|
if (typeof inputSchema !== "object" || inputSchema === null || Array.isArray(inputSchema)) {
|
|
137
144
|
return inputSchema;
|
|
@@ -14,6 +14,7 @@ export interface ModelRuntimeStreamResult {
|
|
|
14
14
|
stream: ReadableStream<unknown>;
|
|
15
15
|
warnings?: unknown[];
|
|
16
16
|
}
|
|
17
|
+
/** Public API contract for model runtime. */
|
|
17
18
|
export interface ModelRuntime extends RuntimeMetadata {
|
|
18
19
|
readonly _isVfLocalModel?: boolean;
|
|
19
20
|
doGenerate(options: unknown): PromiseLike<ModelRuntimeGenerateResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/provider/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,C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AAc,CAAC,OAAO,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACtB;AAED,6CAA6C;AAC7C,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAAC,0BAA0B,CAAC,CAAC;IACtE,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAAC,wBAAwB,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5E,OAAO,CAAC,OAAO,EAAE;QACf,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,WAAW,CAAC,EAAE,WAAW,CAAC;KAC3B,GAAG,WAAW,CAAC;QACd,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;QACvB,KAAK,CAAC,EAAE;YACN,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,CAAC;QACF,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;KACtB,CAAC,CAAC;CACJ"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
/** Context for Veryfront Cloud. */
|
|
1
2
|
export interface VeryfrontCloudContext {
|
|
2
3
|
apiBaseUrl?: string;
|
|
3
4
|
apiToken?: string;
|
|
4
5
|
projectSlug?: string;
|
|
5
6
|
serviceLayer?: string;
|
|
6
7
|
}
|
|
8
|
+
/** Context for run with Veryfront Cloud. */
|
|
7
9
|
export declare function runWithVeryfrontCloudContext<T>(context: VeryfrontCloudContext, fn: () => T): T;
|
|
10
|
+
/** Run with Veryfront Cloud context async. */
|
|
8
11
|
export declare function runWithVeryfrontCloudContextAsync<T>(context: VeryfrontCloudContext, fn: () => Promise<T>): Promise<T>;
|
|
9
12
|
export declare function getCurrentVeryfrontCloudContext(): VeryfrontCloudContext | undefined;
|
|
10
13
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/veryfront-cloud/context.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,wBAAgB,4BAA4B,CAAC,CAAC,EAC5C,OAAO,EAAE,qBAAqB,EAC9B,EAAE,EAAE,MAAM,CAAC,GACV,CAAC,CAEH;AAED,wBAAgB,iCAAiC,CAAC,CAAC,EACjD,OAAO,EAAE,qBAAqB,EAC9B,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED,wBAAgB,+BAA+B,IAAI,qBAAqB,GAAG,SAAS,CAEnF"}
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/veryfront-cloud/context.ts"],"names":[],"mappings":"AAEA,mCAAmC;AACnC,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,4CAA4C;AAC5C,wBAAgB,4BAA4B,CAAC,CAAC,EAC5C,OAAO,EAAE,qBAAqB,EAC9B,EAAE,EAAE,MAAM,CAAC,GACV,CAAC,CAEH;AAED,8CAA8C;AAC9C,wBAAgB,iCAAiC,CAAC,CAAC,EACjD,OAAO,EAAE,qBAAqB,EAC9B,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED,wBAAgB,+BAA+B,IAAI,qBAAqB,GAAG,SAAS,CAEnF"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
2
|
const veryfrontCloudContextStorage = new AsyncLocalStorage();
|
|
3
|
+
/** Context for run with Veryfront Cloud. */
|
|
3
4
|
export function runWithVeryfrontCloudContext(context, fn) {
|
|
4
5
|
return veryfrontCloudContextStorage.run(context, fn);
|
|
5
6
|
}
|
|
7
|
+
/** Run with Veryfront Cloud context async. */
|
|
6
8
|
export function runWithVeryfrontCloudContextAsync(context, fn) {
|
|
7
9
|
return veryfrontCloudContextStorage.run(context, fn);
|
|
8
10
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { VeryfrontCloudProviderId } from "./shared.js";
|
|
2
|
+
/** Configuration used by Veryfront Cloud model thinking. */
|
|
2
3
|
export type VeryfrontCloudModelThinkingConfig = {
|
|
3
4
|
enabled: boolean;
|
|
4
5
|
budgetTokens?: number;
|
|
5
6
|
};
|
|
7
|
+
/** Public API contract for Veryfront Cloud chat model. */
|
|
6
8
|
export type VeryfrontCloudChatModel = {
|
|
7
9
|
id: string;
|
|
8
10
|
modelId: string;
|
|
@@ -11,22 +13,36 @@ export type VeryfrontCloudChatModel = {
|
|
|
11
13
|
description: string;
|
|
12
14
|
thinkingBudgetTokens?: number;
|
|
13
15
|
};
|
|
16
|
+
/** Default value for Veryfront Cloud model ID. */
|
|
14
17
|
export declare const DEFAULT_VERYFRONT_CLOUD_MODEL_ID = "opus";
|
|
18
|
+
/** Shared Veryfront Cloud model prefix value. */
|
|
15
19
|
export declare const VERYFRONT_CLOUD_MODEL_PREFIX = "veryfront-cloud/";
|
|
20
|
+
/** Shared Veryfront Cloud chat models value. */
|
|
16
21
|
export declare const VERYFRONT_CLOUD_CHAT_MODELS: VeryfrontCloudChatModel[];
|
|
22
|
+
/** Find Veryfront Cloud model. */
|
|
17
23
|
export declare function findVeryfrontCloudModel(id: string): VeryfrontCloudChatModel | undefined;
|
|
24
|
+
/** Normalizes Veryfront Cloud model ID. */
|
|
18
25
|
export declare function normalizeVeryfrontCloudModelId(modelId: string): string;
|
|
26
|
+
/** Find Veryfront Cloud model by model ID. */
|
|
19
27
|
export declare function findVeryfrontCloudModelByModelId(modelId: string): VeryfrontCloudChatModel | undefined;
|
|
28
|
+
/** Return Veryfront Cloud provider from model ID. */
|
|
20
29
|
export declare function getVeryfrontCloudProviderFromModelId(modelId: string): VeryfrontCloudProviderId;
|
|
30
|
+
/** Try to get Veryfront Cloud provider from model ID. */
|
|
21
31
|
export declare function tryGetVeryfrontCloudProviderFromModelId(modelId: string): VeryfrontCloudProviderId | undefined;
|
|
32
|
+
/** Resolves Veryfront Cloud model ID. */
|
|
22
33
|
export declare function resolveVeryfrontCloudModelId(alias?: string): string;
|
|
34
|
+
/** Resolves Veryfront Cloud gateway model ID. */
|
|
23
35
|
export declare function resolveVeryfrontCloudGatewayModelId(modelId: string | undefined): string | undefined;
|
|
36
|
+
/** Resolves Veryfront Cloud model thinking. */
|
|
24
37
|
export declare function resolveVeryfrontCloudModelThinking(modelId: string | undefined): VeryfrontCloudModelThinkingConfig | undefined;
|
|
38
|
+
/** Options accepted by resolve Veryfront Cloud thinking provider. */
|
|
25
39
|
export declare function resolveVeryfrontCloudThinkingProviderOptions(modelId: string, thinking: VeryfrontCloudModelThinkingConfig | undefined): Record<string, unknown> | undefined;
|
|
40
|
+
/** Group Veryfront Cloud models by provider. */
|
|
26
41
|
export declare function groupVeryfrontCloudModelsByProvider(): Array<{
|
|
27
42
|
provider: VeryfrontCloudProviderId;
|
|
28
43
|
label: string;
|
|
29
44
|
models: VeryfrontCloudChatModel[];
|
|
30
45
|
}>;
|
|
46
|
+
/** Resolves hosted Veryfront Cloud model ID. */
|
|
31
47
|
export declare const resolveHostedVeryfrontCloudModelId: typeof resolveVeryfrontCloudGatewayModelId;
|
|
32
48
|
//# sourceMappingURL=model-catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/veryfront-cloud/model-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,gCAAgC,SAAS,CAAC;AACvD,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAU/D,eAAO,MAAM,2BAA2B,EAAE,uBAAuB,EAqDhE,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS,CAEvF;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAItE;AAED,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,GACd,uBAAuB,GAAG,SAAS,CAGrC;AAED,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,MAAM,GACd,wBAAwB,CAO1B;AAED,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,MAAM,GACd,wBAAwB,GAAG,SAAS,CAMtC;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,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|
1
2
|
export const DEFAULT_VERYFRONT_CLOUD_MODEL_ID = "opus";
|
|
3
|
+
/** Shared Veryfront Cloud model prefix value. */
|
|
2
4
|
export const VERYFRONT_CLOUD_MODEL_PREFIX = "veryfront-cloud/";
|
|
3
5
|
const VERYFRONT_CLOUD_GATEWAY_MODEL_PROVIDER_PREFIXES = [
|
|
4
6
|
"anthropic/",
|
|
@@ -7,6 +9,7 @@ const VERYFRONT_CLOUD_GATEWAY_MODEL_PROVIDER_PREFIXES = [
|
|
|
7
9
|
"google-ai-studio/",
|
|
8
10
|
"moonshotai/",
|
|
9
11
|
];
|
|
12
|
+
/** Shared Veryfront Cloud chat models value. */
|
|
10
13
|
export const VERYFRONT_CLOUD_CHAT_MODELS = [
|
|
11
14
|
{
|
|
12
15
|
id: "opus",
|
|
@@ -61,18 +64,22 @@ export const VERYFRONT_CLOUD_CHAT_MODELS = [
|
|
|
61
64
|
description: "Deep thinking and multimodal",
|
|
62
65
|
},
|
|
63
66
|
];
|
|
67
|
+
/** Find Veryfront Cloud model. */
|
|
64
68
|
export function findVeryfrontCloudModel(id) {
|
|
65
69
|
return VERYFRONT_CLOUD_CHAT_MODELS.find((model) => model.id === id);
|
|
66
70
|
}
|
|
71
|
+
/** Normalizes Veryfront Cloud model ID. */
|
|
67
72
|
export function normalizeVeryfrontCloudModelId(modelId) {
|
|
68
73
|
return modelId.startsWith(VERYFRONT_CLOUD_MODEL_PREFIX)
|
|
69
74
|
? modelId.slice(VERYFRONT_CLOUD_MODEL_PREFIX.length)
|
|
70
75
|
: modelId;
|
|
71
76
|
}
|
|
77
|
+
/** Find Veryfront Cloud model by model ID. */
|
|
72
78
|
export function findVeryfrontCloudModelByModelId(modelId) {
|
|
73
79
|
const normalizedModelId = normalizeVeryfrontCloudModelId(modelId);
|
|
74
80
|
return VERYFRONT_CLOUD_CHAT_MODELS.find((model) => model.modelId === normalizedModelId);
|
|
75
81
|
}
|
|
82
|
+
/** Return Veryfront Cloud provider from model ID. */
|
|
76
83
|
export function getVeryfrontCloudProviderFromModelId(modelId) {
|
|
77
84
|
const normalizedModelId = normalizeVeryfrontCloudModelId(modelId);
|
|
78
85
|
const prefix = normalizedModelId.split("/")[0];
|
|
@@ -82,6 +89,7 @@ export function getVeryfrontCloudProviderFromModelId(modelId) {
|
|
|
82
89
|
return prefix;
|
|
83
90
|
throw new Error(`Unknown model provider prefix "${prefix}" in model ID "${modelId}"`);
|
|
84
91
|
}
|
|
92
|
+
/** Try to get Veryfront Cloud provider from model ID. */
|
|
85
93
|
export function tryGetVeryfrontCloudProviderFromModelId(modelId) {
|
|
86
94
|
try {
|
|
87
95
|
return getVeryfrontCloudProviderFromModelId(modelId);
|
|
@@ -90,6 +98,7 @@ export function tryGetVeryfrontCloudProviderFromModelId(modelId) {
|
|
|
90
98
|
return undefined;
|
|
91
99
|
}
|
|
92
100
|
}
|
|
101
|
+
/** Resolves Veryfront Cloud model ID. */
|
|
93
102
|
export function resolveVeryfrontCloudModelId(alias) {
|
|
94
103
|
const requestedModel = alias || DEFAULT_VERYFRONT_CLOUD_MODEL_ID;
|
|
95
104
|
const catalogModel = VERYFRONT_CLOUD_CHAT_MODELS.find((model) => model.modelId === requestedModel);
|
|
@@ -105,6 +114,7 @@ export function resolveVeryfrontCloudModelId(alias) {
|
|
|
105
114
|
}
|
|
106
115
|
return model.modelId;
|
|
107
116
|
}
|
|
117
|
+
/** Resolves Veryfront Cloud gateway model ID. */
|
|
108
118
|
export function resolveVeryfrontCloudGatewayModelId(modelId) {
|
|
109
119
|
if (!modelId) {
|
|
110
120
|
return modelId;
|
|
@@ -116,6 +126,7 @@ export function resolveVeryfrontCloudGatewayModelId(modelId) {
|
|
|
116
126
|
? `${VERYFRONT_CLOUD_MODEL_PREFIX}${modelId}`
|
|
117
127
|
: modelId;
|
|
118
128
|
}
|
|
129
|
+
/** Resolves Veryfront Cloud model thinking. */
|
|
119
130
|
export function resolveVeryfrontCloudModelThinking(modelId) {
|
|
120
131
|
if (!modelId) {
|
|
121
132
|
return undefined;
|
|
@@ -129,6 +140,7 @@ export function resolveVeryfrontCloudModelThinking(modelId) {
|
|
|
129
140
|
budgetTokens: model.thinkingBudgetTokens,
|
|
130
141
|
};
|
|
131
142
|
}
|
|
143
|
+
/** Options accepted by resolve Veryfront Cloud thinking provider. */
|
|
132
144
|
export function resolveVeryfrontCloudThinkingProviderOptions(modelId, thinking) {
|
|
133
145
|
if (!thinking?.enabled || typeof thinking.budgetTokens !== "number" || thinking.budgetTokens <= 0) {
|
|
134
146
|
return undefined;
|
|
@@ -154,6 +166,7 @@ const PROVIDER_LABELS = {
|
|
|
154
166
|
moonshotai: "Kimi",
|
|
155
167
|
};
|
|
156
168
|
const PROVIDER_ORDER = ["anthropic", "openai", "google", "moonshotai"];
|
|
169
|
+
/** Group Veryfront Cloud models by provider. */
|
|
157
170
|
export function groupVeryfrontCloudModelsByProvider() {
|
|
158
171
|
return PROVIDER_ORDER.map((provider) => ({
|
|
159
172
|
provider,
|
|
@@ -161,4 +174,5 @@ export function groupVeryfrontCloudModelsByProvider() {
|
|
|
161
174
|
models: VERYFRONT_CLOUD_CHAT_MODELS.filter((model) => model.provider === provider),
|
|
162
175
|
})).filter((group) => group.models.length > 0);
|
|
163
176
|
}
|
|
177
|
+
/** Resolves hosted Veryfront Cloud model ID. */
|
|
164
178
|
export const resolveHostedVeryfrontCloudModelId = resolveVeryfrontCloudGatewayModelId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/veryfront-cloud/shared.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,wBAAwB,GAChC,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,YAAY,CAAC;AAEjB,UAAU,2BAA2B;IACnC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB;AA+BD,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,UAAU,GAAG,WAAW,GAC7B,2BAA2B,CA+B7B;AAED,wBAAgB,8BAA8B,IAAI;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAmBA;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,wBAAwB,GACjC,MAAM,CAER;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,KAAK,CAed"}
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/src/provider/veryfront-cloud/shared.ts"],"names":[],"mappings":"AAGA,2DAA2D;AAC3D,MAAM,MAAM,wBAAwB,GAChC,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,YAAY,CAAC;AAEjB,UAAU,2BAA2B;IACnC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB;AA+BD,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,UAAU,GAAG,WAAW,GAC7B,2BAA2B,CA+B7B;AAED,wBAAgB,8BAA8B,IAAI;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAmBA;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,wBAAwB,GACjC,MAAM,CAER;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,KAAK,CAed"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-renderer.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/compat/ssr-adapter/string-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAKpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiB7C,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"string-renderer.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/compat/ssr-adapter/string-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAKpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiB7C,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,MAAM,CAAC,CAmCjB;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,MAAM,CAAC,CAUjB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { rendererLogger as logger } from "../../../utils/index.js";
|
|
1
|
+
import { isCompiledBinary, rendererLogger as logger } from "../../../utils/index.js";
|
|
2
2
|
import { withSpan } from "../../../observability/tracing/otlp-setup.js";
|
|
3
3
|
import { SpanNames } from "../../../observability/tracing/span-names.js";
|
|
4
4
|
import { getReactDOMServer } from "./server-loader.js";
|
|
@@ -17,7 +17,8 @@ async function streamToString(stream) {
|
|
|
17
17
|
}
|
|
18
18
|
export async function renderToStringAdapter(element, options = {}) {
|
|
19
19
|
const server = await getReactDOMServer();
|
|
20
|
-
|
|
20
|
+
const canUseReadableStream = server.renderToReadableStream && !isCompiledBinary();
|
|
21
|
+
if (canUseReadableStream) {
|
|
21
22
|
try {
|
|
22
23
|
const stream = (await withSpan(SpanNames.SSR_REACT_RENDER_TO_STREAM, () => server.renderToReadableStream(element, {
|
|
23
24
|
onError: (error) => {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from "../../../react/react.js";
|
|
2
2
|
import type { MDXComponents } from "../../types/index.js";
|
|
3
|
+
/** Props accepted by MDX provider. */
|
|
3
4
|
export interface MDXProviderProps {
|
|
4
5
|
components?: MDXComponents;
|
|
5
6
|
children: React.ReactNode;
|
|
6
7
|
}
|
|
8
|
+
/** Render MDX provider. */
|
|
7
9
|
export declare function MDXProvider({ components, children, }: MDXProviderProps): React.ReactNode;
|
|
10
|
+
/** React hook for mdxcomponents. */
|
|
8
11
|
export declare function useMDXComponents(components?: MDXComponents): MDXComponents;
|
|
9
12
|
//# sourceMappingURL=MDXProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MDXProvider.d.ts","sourceRoot":"","sources":["../../../../src/src/react/components/MDXProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAC1B,UAAe,EACf,QAAQ,GACT,EAAE,gBAAgB,GAAG,KAAK,CAAC,SAAS,CAEpC;AAED,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,aAAa,GAAG,aAAa,CAG1E"}
|
|
1
|
+
{"version":3,"file":"MDXProvider.d.ts","sourceRoot":"","sources":["../../../../src/src/react/components/MDXProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,sCAAsC;AACtC,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,2BAA2B;AAC3B,wBAAgB,WAAW,CAAC,EAC1B,UAAe,EACf,QAAQ,GACT,EAAE,gBAAgB,GAAG,KAAK,CAAC,SAAS,CAEpC;AAED,oCAAoC;AACpC,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,aAAa,GAAG,aAAa,CAG1E"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React, { createContext, useContext } from "../../../react/react.js";
|
|
2
2
|
const MDXContext = createContext({});
|
|
3
|
+
/** Render MDX provider. */
|
|
3
4
|
export function MDXProvider({ components = {}, children, }) {
|
|
4
5
|
return React.createElement(MDXContext.Provider, { value: components }, children);
|
|
5
6
|
}
|
|
7
|
+
/** React hook for mdxcomponents. */
|
|
6
8
|
export function useMDXComponents(components) {
|
|
7
9
|
const contextComponents = useContext(MDXContext);
|
|
8
10
|
return { ...contextComponents, ...(components ?? {}) };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "../../../../react/react.js";
|
|
2
2
|
import type { AgentMessage, AgentStatus, ToolCall } from "../../../agent/index.js";
|
|
3
3
|
import { type AgentTheme } from "./theme.js";
|
|
4
|
+
/** Props accepted by agent card. */
|
|
4
5
|
export interface AgentCardProps {
|
|
5
6
|
/** Agent messages */
|
|
6
7
|
messages?: AgentMessage[];
|
|
@@ -17,5 +18,6 @@ export interface AgentCardProps {
|
|
|
17
18
|
/** Custom tool renderer */
|
|
18
19
|
renderTool?: (toolCall: ToolCall) => React.ReactNode;
|
|
19
20
|
}
|
|
21
|
+
/** Render agent card. */
|
|
20
22
|
export declare const AgentCard: React.ForwardRefExoticComponent<AgentCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
23
|
//# sourceMappingURL=agent-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../../../../src/src/react/components/chat/agent-card.tsx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,MAAM,CAAC;IAElB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B,2BAA2B;IAC3B,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,KAAK,CAAC,SAAS,CAAC;CACtD;AAED,yBAAyB;AACzB,eAAO,MAAM,SAAS,uFA0GrB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "../../../../react/react.js";
|
|
2
2
|
import { AgentContainer, AgentStatus as AgentStatusPrimitive, ThinkingIndicator, ToolInvocation, ToolResult, } from "../../primitives/index.js";
|
|
3
3
|
import { cn, defaultAgentTheme, mergeThemes } from "./theme.js";
|
|
4
|
+
/** Render agent card. */
|
|
4
5
|
export const AgentCard = React.forwardRef(({ messages, toolCalls = [], status, thinking, className, theme: userTheme, renderTool, }, ref) => {
|
|
5
6
|
const theme = mergeThemes(defaultAgentTheme, userTheme);
|
|
6
7
|
const toolRenderer = renderTool ??
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as React from "../../../../../../react/react.js";
|
|
2
|
+
/** Render shimmer. */
|
|
2
3
|
export declare function Shimmer({ children }: {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
}): React.ReactElement;
|
|
6
|
+
/** Render loader. */
|
|
5
7
|
export declare function Loader({ className, size, }: {
|
|
6
8
|
className?: string;
|
|
7
9
|
size?: number;
|
|
8
10
|
}): React.ReactElement;
|
|
11
|
+
/** Render fade in. */
|
|
9
12
|
export declare function FadeIn({ children, duration, className, }: {
|
|
10
13
|
children: React.ReactNode;
|
|
11
14
|
duration?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/animations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAG1D,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,CAMvF;AAED,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,IAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,KAAK,CAAC,YAAY,CAcrB;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,QAAc,EACd,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,YAAY,CAoBrB"}
|
|
1
|
+
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../../../../../../src/src/react/components/chat/chat/components/animations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAG1D,sBAAsB;AACtB,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,CAMvF;AAED,qBAAqB;AACrB,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,IAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,KAAK,CAAC,YAAY,CAcrB;AAED,sBAAsB;AACtB,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,QAAc,EACd,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,YAAY,CAoBrB"}
|