veryfront 0.1.541 → 0.1.543
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_dnt.polyfills.d.ts +14 -15
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +121 -133
- package/esm/cli/commands/generate/handler.d.ts +1 -1
- package/esm/cli/commands/serve/handler.js +1 -1
- package/esm/cli/commands/serve/split-mode.d.ts +1 -0
- package/esm/cli/commands/serve/split-mode.d.ts.map +1 -1
- package/esm/cli/commands/serve/split-mode.js +9 -5
- package/esm/cli/router.d.ts.map +1 -1
- package/esm/cli/router.js +57 -22
- package/esm/cli/templates/manifest.d.ts +377 -376
- package/esm/cli/templates/manifest.js +417 -416
- package/esm/deno.d.ts +1 -10
- package/esm/deno.js +10 -19
- package/esm/extensions/ext-llm-anthropic/src/anthropic-provider.d.ts +1 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-provider.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-provider.js +5 -649
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.d.ts +98 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.d.ts.map +1 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.js +345 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-stream.d.ts +15 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-stream.d.ts.map +1 -0
- package/esm/extensions/ext-llm-anthropic/src/anthropic-stream.js +236 -0
- package/esm/extensions/ext-llm-google/src/google-provider.d.ts +1 -1
- package/esm/extensions/ext-llm-google/src/google-provider.d.ts.map +1 -1
- package/esm/extensions/ext-llm-google/src/google-provider.js +7 -433
- package/esm/extensions/ext-llm-google/src/google-request-builder.d.ts +94 -0
- package/esm/extensions/ext-llm-google/src/google-request-builder.d.ts.map +1 -0
- package/esm/extensions/ext-llm-google/src/google-request-builder.js +253 -0
- package/esm/extensions/ext-llm-google/src/google-stream.d.ts +10 -0
- package/esm/extensions/ext-llm-google/src/google-stream.d.ts.map +1 -0
- package/esm/extensions/ext-llm-google/src/google-stream.js +156 -0
- package/esm/extensions/ext-llm-openai/src/openai-chat-request-builder.d.ts +67 -0
- package/esm/extensions/ext-llm-openai/src/openai-chat-request-builder.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-chat-request-builder.js +126 -0
- package/esm/extensions/ext-llm-openai/src/openai-chat-stream.d.ts +2 -0
- package/esm/extensions/ext-llm-openai/src/openai-chat-stream.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-chat-stream.js +190 -0
- package/esm/extensions/ext-llm-openai/src/openai-provider.d.ts +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-provider.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-provider.js +6 -731
- package/esm/extensions/ext-llm-openai/src/openai-responses-request-builder.d.ts +42 -0
- package/esm/extensions/ext-llm-openai/src/openai-responses-request-builder.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-responses-request-builder.js +220 -0
- package/esm/extensions/ext-llm-openai/src/openai-responses-stream.d.ts +23 -0
- package/esm/extensions/ext-llm-openai/src/openai-responses-stream.d.ts.map +1 -0
- package/esm/extensions/ext-llm-openai/src/openai-responses-stream.js +190 -0
- package/esm/src/agent/ag-ui/chunk-encoder-bridge.d.ts +2 -1
- 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 -1
- package/esm/src/agent/ag-ui/detached-start.js +1 -1
- package/esm/src/agent/ag-ui/handler.js +2 -2
- package/esm/src/agent/ag-ui/runtime-chat-stream-encoder.js +1 -1
- package/esm/src/agent/ag-ui/runtime-event-encoder.d.ts +2 -1
- 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 -1
- package/esm/src/agent/ag-ui/runtime-handler.js +2 -2
- package/esm/src/agent/artifacts/default-research-artifact-policy.d.ts.map +1 -0
- package/esm/src/agent/{default-research-artifact-support.d.ts → artifacts/default-research-artifact-support.d.ts} +2 -2
- package/esm/src/agent/artifacts/default-research-artifact-support.d.ts.map +1 -0
- package/esm/src/agent/{default-research-artifact-support.js → artifacts/default-research-artifact-support.js} +3 -3
- package/esm/src/agent/artifacts/slash-command-artifact-policy.d.ts.map +1 -0
- package/esm/src/agent/{slash-command-artifact-policy.js → artifacts/slash-command-artifact-policy.js} +1 -1
- package/esm/src/agent/child-run/invoke-agent-child-runs.d.ts +147 -0
- package/esm/src/agent/child-run/invoke-agent-child-runs.d.ts.map +1 -0
- package/esm/src/agent/{invoke-agent-child-runs.js → child-run/invoke-agent-child-runs.js} +3 -3
- package/esm/src/agent/conversation/bootstrap.d.ts +1 -1
- package/esm/src/agent/conversation/bootstrap.d.ts.map +1 -1
- package/esm/src/agent/conversation/bootstrap.js +1 -1
- package/esm/src/agent/conversation/delegation-policy.js +1 -1
- package/esm/src/agent/{durable.d.ts → conversation/durable.d.ts} +6 -6
- package/esm/src/agent/conversation/durable.d.ts.map +1 -0
- package/esm/src/agent/{durable.js → conversation/durable.js} +3 -3
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts +2 -2
- package/esm/src/agent/conversation/hosted-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-lifecycle.js +2 -2
- package/esm/src/agent/conversation/hosted-terminal.d.ts +1 -1
- package/esm/src/agent/conversation/hosted-terminal.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-terminal.js +1 -1
- package/esm/src/agent/conversation/root-run-context.d.ts +1 -1
- package/esm/src/agent/conversation/root-run-context.d.ts.map +1 -1
- package/esm/src/agent/conversation/root-run-context.js +1 -1
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts +1 -1
- package/esm/src/agent/conversation/root-run-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts +5 -2
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-chunk-mirror.js +26 -1
- package/esm/src/agent/conversation/run-context.d.ts +1 -1
- package/esm/src/agent/conversation/run-context.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-mirror.d.ts +11 -1
- package/esm/src/agent/conversation/run-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-mirror.js +20 -0
- package/esm/src/agent/conversation/run-stream-mirror.d.ts +4 -2
- package/esm/src/agent/conversation/run-stream-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-stream-mirror.js +4 -0
- package/esm/src/agent/hosted/agent-run-lifecycle.d.ts +2 -2
- package/esm/src/agent/hosted/agent-run-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/agent-run-lifecycle.js +1 -1
- package/esm/src/agent/hosted/chat-execution-lifecycle-types.d.ts +10 -0
- package/esm/src/agent/hosted/chat-execution-lifecycle-types.d.ts.map +1 -0
- package/esm/src/agent/hosted/chat-execution-lifecycle-types.js +1 -0
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts +4 -11
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.js +1 -1
- package/esm/src/agent/hosted/chat-preparation.d.ts +1 -1
- package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-agent-adapter.js +2 -2
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts +1 -1
- package/esm/src/agent/hosted/chat-runtime-contract.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts +1 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.js +1 -1
- package/esm/src/agent/hosted/child-bootstrap.d.ts +1 -1
- package/esm/src/agent/hosted/child-bootstrap.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.js +1 -1
- package/esm/src/agent/hosted/child-fork-instructions.d.ts +1 -1
- package/esm/src/agent/hosted/child-fork-instructions.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-instructions.js +1 -1
- package/esm/src/agent/hosted/child-fork-runtime-start.d.ts +1 -1
- 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 -1
- package/esm/src/agent/hosted/child-fork-step-message-preparation.js +1 -1
- package/esm/src/agent/hosted/child-fork-stream-execution.d.ts +1 -1
- package/esm/src/agent/hosted/child-fork-stream-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-tool-sources.d.ts +1 -1
- package/esm/src/agent/hosted/child-fork-tool-sources.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-tool-sources.js +1 -1
- package/esm/src/agent/hosted/child-requested-tools.d.ts +1 -1
- package/esm/src/agent/hosted/child-requested-tools.js +2 -2
- package/esm/src/agent/hosted/child-status.d.ts +1 -1
- package/esm/src/agent/hosted/child-status.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-status.js +1 -1
- package/esm/src/agent/hosted/child-steering-tools.d.ts +1 -1
- package/esm/src/agent/hosted/child-steering-tools.js +2 -2
- package/esm/src/agent/hosted/child-tool-input.js +1 -1
- package/esm/src/agent/{veryfront-cloud-hosted-chat-execution-preparation.d.ts → hosted/cloud-chat-execution-preparation.d.ts} +4 -4
- package/esm/src/agent/hosted/cloud-chat-execution-preparation.d.ts.map +1 -0
- package/esm/src/agent/{veryfront-cloud-hosted-chat-execution-preparation.js → hosted/cloud-chat-execution-preparation.js} +2 -2
- package/esm/src/agent/{veryfront-cloud-prepared-hosted-chat-execution-runtime.d.ts → hosted/cloud-prepared-chat-execution-runtime.d.ts} +4 -4
- package/esm/src/agent/hosted/cloud-prepared-chat-execution-runtime.d.ts.map +1 -0
- package/esm/src/agent/{veryfront-cloud-prepared-hosted-chat-execution-runtime.js → hosted/cloud-prepared-chat-execution-runtime.js} +3 -3
- package/esm/src/agent/{veryfront-cloud-runtime-system-messages.d.ts → hosted/cloud-runtime-system-messages.d.ts} +5 -5
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts.map +1 -0
- package/esm/src/agent/{veryfront-cloud-runtime-system-messages.js → hosted/cloud-runtime-system-messages.js} +2 -2
- package/esm/src/agent/{default-hosted-chat-runtime.d.ts → hosted/default-chat-runtime.d.ts} +8 -8
- package/esm/src/agent/hosted/default-chat-runtime.d.ts.map +1 -0
- package/esm/src/agent/{default-hosted-chat-runtime.js → hosted/default-chat-runtime.js} +9 -9
- package/esm/src/agent/{default-hosted-invoke-agent-tool.d.ts → hosted/default-invoke-agent-tool.d.ts} +19 -19
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts.map +1 -0
- package/esm/src/agent/{default-hosted-invoke-agent-tool.js → hosted/default-invoke-agent-tool.js} +20 -20
- package/esm/src/agent/{default-hosted-project-steering-refresh.d.ts → hosted/default-project-steering-refresh.d.ts} +8 -8
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts.map +1 -0
- package/esm/src/agent/{default-hosted-project-steering-refresh.js → hosted/default-project-steering-refresh.js} +3 -3
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts +1 -1
- package/esm/src/agent/hosted/durable-chat-run-start.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts +3 -3
- package/esm/src/agent/hosted/durable-child-fork-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/durable-child-fork-execution.js +2 -2
- package/esm/src/agent/hosted/finalized-message.d.ts +1 -1
- package/esm/src/agent/hosted/finalized-message.d.ts.map +1 -1
- package/esm/src/agent/hosted/finalized-message.js +1 -1
- package/esm/src/agent/hosted/form-input-tool.d.ts +1 -1
- package/esm/src/agent/hosted/form-input-tool.js +3 -3
- package/esm/src/agent/{prepared-hosted-chat-execution.d.ts → hosted/prepared-chat-execution.d.ts} +4 -4
- package/esm/src/agent/hosted/prepared-chat-execution.d.ts.map +1 -0
- package/esm/src/agent/{prepared-hosted-chat-execution.js → hosted/prepared-chat-execution.js} +3 -3
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts +1 -1
- package/esm/src/agent/hosted/project-remote-tool-source.js +2 -2
- package/esm/src/agent/hosted/project-steering-adapter.d.ts +1 -1
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts +1 -1
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-state-resolver.js +7 -4
- package/esm/src/agent/{agent-trace-attributes.d.ts → hosted/trace-attributes.d.ts} +1 -1
- package/esm/src/agent/hosted/trace-attributes.d.ts.map +1 -0
- package/esm/src/agent/{veryfront-cloud-agent-service.d.ts → hosted/veryfront-cloud-agent-service.d.ts} +10 -10
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -0
- package/esm/src/agent/{veryfront-cloud-agent-service.js → hosted/veryfront-cloud-agent-service.js} +40 -48
- package/esm/src/agent/index.d.ts +33 -33
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +33 -33
- package/esm/src/agent/input/human-input.d.ts +382 -0
- package/esm/src/agent/input/human-input.d.ts.map +1 -0
- package/esm/src/agent/{human-input.js → input/human-input.js} +4 -4
- package/esm/src/agent/input/request-protocol.d.ts +506 -0
- package/esm/src/agent/input/request-protocol.d.ts.map +1 -0
- package/esm/src/agent/{input-request-protocol.js → input/request-protocol.js} +1 -1
- package/esm/src/agent/{project-agent-runtime.d.ts → project/agent-runtime.d.ts} +5 -5
- package/esm/src/agent/project/agent-runtime.d.ts.map +1 -0
- package/esm/src/agent/{project-agent-runtime.js → project/agent-runtime.js} +6 -6
- package/esm/src/agent/{project-context.d.ts → project/context.d.ts} +1 -1
- package/esm/src/agent/project/context.d.ts.map +1 -0
- package/esm/src/agent/{live-studio-mcp-tools.d.ts → project/live-studio-mcp-tools.d.ts} +2 -2
- package/esm/src/agent/project/live-studio-mcp-tools.d.ts.map +1 -0
- package/esm/src/agent/{live-studio-mcp-tools.js → project/live-studio-mcp-tools.js} +19 -17
- package/esm/src/agent/{project-steering-mutation.d.ts → project/steering-mutation.d.ts} +1 -1
- package/esm/src/agent/project/steering-mutation.d.ts.map +1 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts +4 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/ag-ui-contract.js +3 -0
- package/esm/src/agent/runtime/agent-definition-files.js +1 -1
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts +1 -0
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-invocation-contract.js +1 -0
- package/esm/src/agent/runtime/chat-stream-handler.d.ts.map +1 -1
- package/esm/src/agent/runtime/chat-stream-handler.js +1 -1
- package/esm/src/agent/runtime/constants.js +1 -1
- package/esm/src/agent/runtime/defaults.d.ts.map +1 -0
- package/esm/src/agent/runtime/index.js +1 -1
- package/esm/src/agent/{agent-runtime-message-adapter.d.ts → runtime/message-adapter.d.ts} +2 -2
- package/esm/src/agent/runtime/message-adapter.d.ts.map +1 -0
- package/esm/src/agent/{agent-runtime-message-adapter.js → runtime/message-adapter.js} +3 -3
- package/esm/src/agent/runtime/message-preparation.d.ts +1 -1
- package/esm/src/agent/runtime/message-preparation.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-preparation.js +1 -1
- package/esm/src/agent/runtime/model-tool-converter.js +1 -1
- package/esm/src/agent/runtime/project-skill-catalog.d.ts +1 -1
- package/esm/src/agent/runtime/project-skill-catalog.js +1 -1
- package/esm/src/agent/runtime/project-skill-loader.d.ts +1 -1
- package/esm/src/agent/runtime/project-skill-loader.js +1 -1
- package/esm/src/agent/{provider-native-tool-inventory.d.ts → runtime/provider-native-tool-inventory.d.ts} +1 -1
- package/esm/src/agent/runtime/provider-native-tool-inventory.d.ts.map +1 -0
- package/esm/src/agent/service/abort-rejection-guard.d.ts.map +1 -0
- package/esm/src/agent/service/bootstrap.d.ts +1 -1
- package/esm/src/agent/service/bootstrap.d.ts.map +1 -1
- package/esm/src/agent/service/bootstrap.js +1 -1
- package/esm/src/agent/{chat-handler.d.ts → service/chat-handler.d.ts} +2 -2
- package/esm/src/agent/service/chat-handler.d.ts.map +1 -0
- package/esm/src/agent/{chat-handler.js → service/chat-handler.js} +6 -6
- package/esm/src/agent/{detached-run-tracker.d.ts → service/detached-run-tracker.d.ts} +1 -1
- package/esm/src/agent/service/detached-run-tracker.d.ts.map +1 -0
- package/esm/src/agent/{detached-run-tracker.js → service/detached-run-tracker.js} +2 -2
- package/esm/src/agent/{external-agent-worker-client.d.ts → service/external-worker-client.d.ts} +2 -2
- package/esm/src/agent/service/external-worker-client.d.ts.map +1 -0
- package/esm/src/agent/{external-agent-worker-client.js → service/external-worker-client.js} +2 -2
- package/esm/src/agent/service/mcp-server-config.js +1 -1
- package/esm/src/agent/{request-auth-cache.d.ts → service/request-auth-cache.d.ts} +1 -1
- package/esm/src/agent/service/request-auth-cache.d.ts.map +1 -0
- package/esm/src/agent/{request-auth-cache.js → service/request-auth-cache.js} +1 -1
- package/esm/src/agent/service/response-like.d.ts.map +1 -0
- package/esm/src/agent/service/routes.d.ts +1 -1
- package/esm/src/agent/service/routes.d.ts.map +1 -1
- package/esm/src/agent/service/routes.js +2 -2
- package/esm/src/agent/service/runtime.d.ts +1 -1
- package/esm/src/agent/service/runtime.d.ts.map +1 -1
- package/esm/src/agent/service/runtime.js +1 -1
- package/esm/src/agent/{chat-ui-message-stream.d.ts → streaming/chat-ui-message-stream.d.ts} +2 -2
- package/esm/src/agent/streaming/chat-ui-message-stream.d.ts.map +1 -0
- package/esm/src/agent/{chat-ui-message-stream.js → streaming/chat-ui-message-stream.js} +3 -3
- package/esm/src/agent/{data-stream.d.ts → streaming/data-stream.d.ts} +1 -1
- package/esm/src/agent/streaming/data-stream.d.ts.map +1 -0
- package/esm/src/agent/{fork-runtime-stream.d.ts → streaming/fork-runtime-stream.d.ts} +3 -3
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts.map +1 -0
- package/esm/src/agent/{fork-runtime-stream.js → streaming/fork-runtime-stream.js} +8 -8
- package/esm/src/agent/{mirrored-tool-chunk-state.d.ts → streaming/mirrored-tool-chunk-state.d.ts} +1 -1
- package/esm/src/agent/streaming/mirrored-tool-chunk-state.d.ts.map +1 -0
- package/esm/src/agent/{tool-execution-data-event-bridge.d.ts → streaming/tool-execution-data-event-bridge.d.ts} +1 -1
- package/esm/src/agent/streaming/tool-execution-data-event-bridge.d.ts.map +1 -0
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.js +6 -6
- package/esm/src/agent/testing/live-evals/cli-runner.js +4 -4
- package/esm/src/channels/control-plane.d.ts +2 -2
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.js +1 -1
- package/esm/src/chat/message-prep.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +0 -1
- package/esm/src/discovery/handlers/agent-handler.d.ts +1 -1
- package/esm/src/discovery/handlers/agent-handler.js +1 -1
- package/esm/src/discovery/transpiler.d.ts.map +1 -1
- package/esm/src/discovery/transpiler.js +8 -7
- package/esm/src/discovery/types.d.ts +6 -6
- package/esm/src/discovery/types.d.ts.map +1 -1
- package/esm/src/errors/middleware/cli-error-boundary.d.ts +5 -1
- package/esm/src/errors/middleware/cli-error-boundary.d.ts.map +1 -1
- package/esm/src/errors/middleware/cli-error-boundary.js +8 -3
- package/esm/src/errors/middleware/http-error-boundary.d.ts +1 -1
- package/esm/src/errors/middleware/http-error-boundary.d.ts.map +1 -1
- package/esm/src/extensions/errors.js +1 -1
- package/esm/src/html/nonce-injection.d.ts.map +1 -1
- package/esm/src/html/nonce-injection.js +42 -12
- package/esm/src/integrations/remote-tools.d.ts.map +1 -1
- package/esm/src/integrations/remote-tools.js +8 -2
- package/esm/src/internal-agents/ag-ui-sse.js +1 -1
- package/esm/src/internal-agents/run-stream.d.ts +5 -1
- package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
- package/esm/src/internal-agents/run-stream.js +2 -1
- package/esm/src/internal-agents/schema.d.ts +99 -0
- package/esm/src/internal-agents/schema.d.ts.map +1 -1
- package/esm/src/internal-agents/schema.js +25 -8
- package/esm/src/mcp/annotations.d.ts +11 -0
- package/esm/src/mcp/annotations.d.ts.map +1 -0
- package/esm/src/mcp/annotations.js +1 -0
- package/esm/src/mcp/types.d.ts +5 -13
- package/esm/src/mcp/types.d.ts.map +1 -1
- package/esm/src/middleware/builtin/logger.d.ts +8 -0
- package/esm/src/middleware/builtin/logger.d.ts.map +1 -1
- package/esm/src/middleware/builtin/logger.js +26 -8
- package/esm/src/oauth/providers/base.d.ts.map +1 -1
- package/esm/src/oauth/providers/base.js +7 -2
- package/esm/src/observability/instruments/instruments-factory.js +1 -1
- package/esm/src/observability/metrics/manager.js +1 -1
- package/esm/src/observability/tracing/otlp-setup.js +1 -1
- package/esm/src/platform/adapters/fs/veryfront/default-invalidation-callbacks.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/default-invalidation-callbacks.js +34 -18
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts +3 -59
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.js +4 -53
- package/esm/src/platform/adapters/fs/veryfront/proxy-manager.d.ts +1 -1
- package/esm/src/platform/adapters/fs/veryfront/proxy-manager.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/proxy-manager.js +5 -4
- package/esm/src/platform/adapters/fs/veryfront/read-operations.js +2 -2
- package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts +60 -0
- package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts.map +1 -0
- package/esm/src/platform/adapters/fs/veryfront/request-context.js +50 -0
- package/esm/src/platform/adapters/fs/veryfront/websocket-manager-helpers.d.ts +5 -0
- package/esm/src/platform/adapters/fs/veryfront/websocket-manager-helpers.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/websocket-manager-helpers.js +15 -0
- package/esm/src/platform/adapters/fs/veryfront/websocket-manager.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/websocket-manager.js +5 -9
- package/esm/src/platform/adapters/registry.d.ts.map +1 -1
- package/esm/src/platform/adapters/registry.js +7 -5
- package/esm/src/platform/cloud/resolver.js +1 -1
- package/esm/src/platform/compat/path/security.js +1 -1
- package/esm/src/rendering/orchestrator/html-project-css.d.ts +1 -1
- package/esm/src/rendering/orchestrator/html-project-css.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/html-types.d.ts +26 -0
- package/esm/src/rendering/orchestrator/html-types.d.ts.map +1 -0
- package/esm/src/rendering/orchestrator/html-types.js +1 -0
- package/esm/src/rendering/orchestrator/html.d.ts +2 -25
- package/esm/src/rendering/orchestrator/html.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.js +4 -6
- package/esm/src/sandbox/config.d.ts +4 -0
- package/esm/src/sandbox/config.d.ts.map +1 -0
- package/esm/src/sandbox/config.js +16 -0
- package/esm/src/sandbox/lazy-sandbox.d.ts +1 -1
- package/esm/src/sandbox/lazy-sandbox.d.ts.map +1 -1
- package/esm/src/sandbox/lazy-sandbox.js +48 -44
- package/esm/src/sandbox/sandbox.d.ts +3 -86
- package/esm/src/sandbox/sandbox.d.ts.map +1 -1
- package/esm/src/sandbox/sandbox.js +3 -17
- package/esm/src/sandbox/types.d.ts +85 -0
- package/esm/src/sandbox/types.d.ts.map +1 -0
- package/esm/src/sandbox/types.js +1 -0
- package/esm/src/security/http/config.d.ts.map +1 -1
- package/esm/src/security/http/config.js +5 -1
- package/esm/src/security/http/response/security-handler.d.ts +1 -1
- package/esm/src/security/http/response/security-handler.d.ts.map +1 -1
- package/esm/src/security/http/response/security-handler.js +41 -5
- package/esm/src/server/context/enriched-context-types.d.ts +56 -0
- package/esm/src/server/context/enriched-context-types.d.ts.map +1 -0
- package/esm/src/server/context/enriched-context-types.js +1 -0
- package/esm/src/server/context/enriched-context.d.ts +3 -56
- package/esm/src/server/context/enriched-context.d.ts.map +1 -1
- package/esm/src/server/context/enriched-context.js +1 -1
- package/esm/src/server/dev-server/file-watch-setup.d.ts +2 -3
- package/esm/src/server/dev-server/file-watch-setup.d.ts.map +1 -1
- package/esm/src/server/dev-server/file-watch-setup.js +5 -5
- package/esm/src/server/dev-server/server.js +1 -1
- package/esm/src/server/dev-ui/manifest.d.ts +19 -19
- package/esm/src/server/dev-ui/manifest.js +19 -19
- package/esm/src/server/handlers/preview/hmr-client-message.d.ts +16 -0
- package/esm/src/server/handlers/preview/hmr-client-message.d.ts.map +1 -0
- package/esm/src/server/handlers/preview/hmr-client-message.js +45 -0
- package/esm/src/server/handlers/preview/hmr.handler.d.ts +0 -1
- package/esm/src/server/handlers/preview/hmr.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/preview/hmr.handler.js +14 -47
- package/esm/src/server/handlers/request/api/project-discovery.d.ts.map +1 -1
- package/esm/src/server/handlers/request/api/project-discovery.js +41 -48
- package/esm/src/server/handlers/request/channel-dispatch-request.d.ts +27 -0
- package/esm/src/server/handlers/request/channel-dispatch-request.d.ts.map +1 -0
- package/esm/src/server/handlers/request/channel-dispatch-request.js +71 -0
- package/esm/src/server/handlers/request/channel-invoke.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/channel-invoke.handler.js +14 -48
- package/esm/src/server/index.d.ts.map +1 -1
- package/esm/src/server/index.js +14 -47
- package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/index.js +17 -3
- package/esm/src/server/service-server.d.ts.map +1 -1
- package/esm/src/server/service-server.js +15 -29
- package/esm/src/server/utils/proxy-trust.d.ts +1 -1
- package/esm/src/server/utils/proxy-trust.js +1 -1
- package/esm/src/studio/bridge/bridge-bundle.generated.d.ts.map +1 -1
- package/esm/src/studio/bridge/bridge-bundle.generated.js +1 -1
- package/esm/src/tool/types.d.ts +1 -1
- package/esm/src/tool/types.d.ts.map +1 -1
- package/esm/src/transforms/esm/bundle-manifest-ttl.d.ts +10 -0
- package/esm/src/transforms/esm/bundle-manifest-ttl.d.ts.map +1 -0
- package/esm/src/transforms/esm/bundle-manifest-ttl.js +47 -0
- package/esm/src/transforms/esm/bundle-manifest-types.d.ts +14 -0
- package/esm/src/transforms/esm/bundle-manifest-types.d.ts.map +1 -0
- package/esm/src/transforms/esm/bundle-manifest-types.js +1 -0
- package/esm/src/transforms/esm/bundle-manifest.d.ts +9 -23
- package/esm/src/transforms/esm/bundle-manifest.d.ts.map +1 -1
- package/esm/src/transforms/esm/bundle-manifest.js +13 -46
- package/esm/src/transforms/esm/bundle-recovery.js +1 -1
- package/esm/src/transforms/esm/cached-bundle-validation.d.ts.map +1 -1
- package/esm/src/transforms/esm/cached-bundle-validation.js +1 -1
- package/esm/src/transforms/esm/in-flight-manager.d.ts +1 -1
- package/esm/src/transforms/esm/in-flight-manager.d.ts.map +1 -1
- package/esm/src/transforms/esm/in-flight-manager.js +2 -2
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts +1 -2
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/cache/index.js +3 -8
- package/esm/src/transforms/mdx/esm-module-loader/cache/local-fs.d.ts +3 -0
- package/esm/src/transforms/mdx/esm-module-loader/cache/local-fs.d.ts.map +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/cache/local-fs.js +8 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/dependency-recovery.js +2 -2
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.js +1 -1
- package/esm/src/types/server.d.ts +3 -16
- package/esm/src/types/server.d.ts.map +1 -1
- package/esm/src/utils/import-lockfile.js +1 -1
- package/esm/src/utils/parallel.js +1 -1
- package/esm/src/utils/path-utils.d.ts +2 -1
- package/esm/src/utils/path-utils.d.ts.map +1 -1
- package/esm/src/utils/path-utils.js +2 -2
- package/esm/src/utils/perf-timer.js +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/workflow/dsl/step.d.ts +2 -2
- package/esm/src/workflow/dsl/step.js +1 -1
- package/esm/src/workflow/executor/step-executor.d.ts +2 -2
- package/esm/src/workflow/executor/step-executor.js +1 -1
- package/esm/src/workflow/schemas/workflow.schema.d.ts +4 -4
- package/esm/src/workflow/types.d.ts +2 -2
- package/package.json +7 -7
- package/src/_dnt.polyfills.ts +169 -169
- package/src/cli/commands/serve/handler.ts +1 -1
- package/src/cli/commands/serve/split-mode.ts +13 -5
- package/src/cli/router.ts +69 -21
- package/src/cli/templates/manifest.js +417 -416
- package/src/deno.js +10 -19
- package/src/extensions/ext-llm-anthropic/src/anthropic-provider.ts +11 -900
- package/src/extensions/ext-llm-anthropic/src/anthropic-request-builder.ts +540 -0
- package/src/extensions/ext-llm-anthropic/src/anthropic-stream.ts +310 -0
- package/src/extensions/ext-llm-google/src/google-provider.ts +13 -595
- package/src/extensions/ext-llm-google/src/google-request-builder.ts +394 -0
- package/src/extensions/ext-llm-google/src/google-stream.ts +188 -0
- package/src/extensions/ext-llm-openai/src/openai-chat-request-builder.ts +220 -0
- package/src/extensions/ext-llm-openai/src/openai-chat-stream.ts +251 -0
- package/src/extensions/ext-llm-openai/src/openai-provider.ts +13 -944
- package/src/extensions/ext-llm-openai/src/openai-responses-request-builder.ts +298 -0
- package/src/extensions/ext-llm-openai/src/openai-responses-stream.ts +226 -0
- package/src/src/agent/ag-ui/chunk-encoder-bridge.ts +2 -2
- package/src/src/agent/ag-ui/detached-start.ts +1 -1
- package/src/src/agent/ag-ui/handler.ts +2 -2
- package/src/src/agent/ag-ui/runtime-chat-stream-encoder.ts +1 -1
- package/src/src/agent/ag-ui/runtime-event-encoder.ts +2 -2
- package/src/src/agent/ag-ui/runtime-handler.ts +2 -2
- package/src/src/agent/{default-research-artifact-support.ts → artifacts/default-research-artifact-support.ts} +4 -4
- package/src/src/agent/{slash-command-artifact-policy.ts → artifacts/slash-command-artifact-policy.ts} +1 -1
- package/src/src/agent/{invoke-agent-child-runs.ts → child-run/invoke-agent-child-runs.ts} +7 -4
- package/src/src/agent/conversation/bootstrap.ts +1 -1
- package/src/src/agent/conversation/delegation-policy.ts +1 -1
- package/src/src/agent/{durable.ts → conversation/durable.ts} +4 -4
- package/src/src/agent/conversation/hosted-lifecycle.ts +2 -2
- package/src/src/agent/conversation/hosted-terminal.ts +1 -1
- package/src/src/agent/conversation/root-run-context.ts +1 -1
- package/src/src/agent/conversation/root-run-lifecycle.ts +1 -1
- package/src/src/agent/conversation/run-chunk-mirror.ts +36 -1
- package/src/src/agent/conversation/run-context.ts +1 -1
- package/src/src/agent/conversation/run-mirror.ts +37 -1
- package/src/src/agent/conversation/run-stream-mirror.ts +8 -1
- package/src/src/agent/hosted/agent-run-lifecycle.ts +2 -2
- package/src/src/agent/hosted/chat-execution-lifecycle-types.ts +11 -0
- package/src/src/agent/hosted/chat-execution-runtime.ts +3 -12
- package/src/src/agent/hosted/chat-preparation.ts +1 -1
- package/src/src/agent/hosted/chat-runtime-agent-adapter.ts +2 -2
- package/src/src/agent/hosted/chat-runtime-contract.ts +1 -1
- package/src/src/agent/hosted/chat-runtime-tool-assembly.ts +1 -1
- package/src/src/agent/hosted/child-bootstrap.ts +1 -1
- package/src/src/agent/hosted/child-fork-execution-runner.ts +1 -1
- package/src/src/agent/hosted/child-fork-instructions.ts +1 -1
- package/src/src/agent/hosted/child-fork-runtime-start.ts +1 -1
- package/src/src/agent/hosted/child-fork-step-message-preparation.ts +1 -1
- package/src/src/agent/hosted/child-fork-stream-execution.ts +1 -1
- package/src/src/agent/hosted/child-fork-tool-sources.ts +1 -1
- package/src/src/agent/hosted/child-requested-tools.ts +2 -2
- package/src/src/agent/hosted/child-status.ts +1 -1
- package/src/src/agent/hosted/child-steering-tools.ts +2 -2
- package/src/src/agent/hosted/child-tool-input.ts +1 -1
- package/src/src/agent/{veryfront-cloud-hosted-chat-execution-preparation.ts → hosted/cloud-chat-execution-preparation.ts} +4 -4
- package/src/src/agent/{veryfront-cloud-prepared-hosted-chat-execution-runtime.ts → hosted/cloud-prepared-chat-execution-runtime.ts} +6 -6
- package/src/src/agent/{veryfront-cloud-runtime-system-messages.ts → hosted/cloud-runtime-system-messages.ts} +5 -5
- package/src/src/agent/{default-hosted-chat-runtime.ts → hosted/default-chat-runtime.ts} +15 -15
- package/src/src/agent/{default-hosted-invoke-agent-tool.ts → hosted/default-invoke-agent-tool.ts} +28 -30
- package/src/src/agent/{default-hosted-project-steering-refresh.ts → hosted/default-project-steering-refresh.ts} +9 -9
- package/src/src/agent/hosted/durable-chat-run-start.ts +1 -1
- package/src/src/agent/hosted/durable-child-fork-execution.ts +5 -5
- package/src/src/agent/hosted/finalized-message.ts +1 -1
- package/src/src/agent/hosted/form-input-tool.ts +3 -3
- package/src/src/agent/{prepared-hosted-chat-execution.ts → hosted/prepared-chat-execution.ts} +5 -5
- package/src/src/agent/hosted/project-remote-tool-source.ts +2 -2
- package/src/src/agent/hosted/project-steering-adapter.ts +1 -1
- package/src/src/agent/hosted/runtime-state-resolver.ts +8 -4
- package/src/src/agent/{veryfront-cloud-agent-service.ts → hosted/veryfront-cloud-agent-service.ts} +59 -71
- package/src/src/agent/index.ts +33 -33
- package/src/src/agent/{human-input.ts → input/human-input.ts} +5 -5
- package/src/src/agent/{input-request-protocol.ts → input/request-protocol.ts} +3 -3
- package/src/src/agent/{project-agent-runtime.ts → project/agent-runtime.ts} +10 -10
- package/src/src/agent/{live-studio-mcp-tools.ts → project/live-studio-mcp-tools.ts} +20 -18
- package/src/src/agent/runtime/ag-ui-contract.ts +8 -0
- package/src/src/agent/runtime/agent-definition-files.ts +1 -1
- package/src/src/agent/runtime/agent-invocation-contract.ts +2 -0
- package/src/src/agent/runtime/chat-stream-handler.ts +5 -1
- package/src/src/agent/runtime/constants.ts +1 -1
- package/src/src/agent/runtime/index.ts +1 -1
- package/src/src/agent/{agent-runtime-message-adapter.ts → runtime/message-adapter.ts} +3 -3
- package/src/src/agent/runtime/message-preparation.ts +1 -1
- package/src/src/agent/runtime/model-tool-converter.ts +1 -1
- package/src/src/agent/runtime/project-skill-catalog.ts +1 -1
- package/src/src/agent/runtime/project-skill-loader.ts +1 -1
- package/src/src/agent/{provider-native-tool-inventory.ts → runtime/provider-native-tool-inventory.ts} +1 -1
- package/src/src/agent/service/bootstrap.ts +1 -1
- package/src/src/agent/{chat-handler.ts → service/chat-handler.ts} +9 -9
- package/src/src/agent/{detached-run-tracker.ts → service/detached-run-tracker.ts} +2 -2
- package/src/src/agent/{external-agent-worker-client.ts → service/external-worker-client.ts} +3 -3
- package/src/src/agent/service/mcp-server-config.ts +1 -1
- package/src/src/agent/{request-auth-cache.ts → service/request-auth-cache.ts} +1 -1
- package/src/src/agent/service/routes.ts +3 -3
- package/src/src/agent/service/runtime.ts +1 -1
- package/src/src/agent/{chat-ui-message-stream.ts → streaming/chat-ui-message-stream.ts} +5 -5
- package/src/src/agent/{data-stream.ts → streaming/data-stream.ts} +1 -1
- package/src/src/agent/{fork-runtime-stream.ts → streaming/fork-runtime-stream.ts} +10 -10
- package/src/src/agent/{mirrored-tool-chunk-state.ts → streaming/mirrored-tool-chunk-state.ts} +1 -1
- package/src/src/agent/{tool-execution-data-event-bridge.ts → streaming/tool-execution-data-event-bridge.ts} +1 -1
- package/src/src/agent/testing/durable-run-canaries/cli-runner.ts +6 -6
- package/src/src/agent/testing/live-evals/cli-runner.ts +4 -4
- package/src/src/channels/control-plane.ts +2 -2
- package/src/src/chat/ag-ui.ts +4 -1
- package/src/src/chat/message-prep.ts +0 -1
- package/src/src/discovery/handlers/agent-handler.ts +2 -2
- package/src/src/discovery/transpiler.ts +8 -7
- package/src/src/discovery/types.ts +6 -6
- package/src/src/errors/middleware/cli-error-boundary.ts +10 -2
- package/src/src/errors/middleware/http-error-boundary.ts +1 -1
- package/src/src/extensions/errors.ts +1 -1
- package/src/src/html/nonce-injection.ts +44 -14
- package/src/src/integrations/remote-tools.ts +8 -2
- package/src/src/internal-agents/ag-ui-sse.ts +1 -1
- package/src/src/internal-agents/run-stream.ts +7 -2
- package/src/src/internal-agents/schema.ts +35 -14
- package/src/src/mcp/annotations.ts +10 -0
- package/src/src/mcp/types.ts +5 -14
- package/src/src/middleware/builtin/logger.ts +29 -8
- package/src/src/oauth/providers/base.ts +8 -2
- package/src/src/observability/instruments/instruments-factory.ts +1 -1
- package/src/src/observability/metrics/manager.ts +1 -1
- package/src/src/observability/tracing/otlp-setup.ts +1 -1
- package/src/src/platform/adapters/fs/veryfront/default-invalidation-callbacks.ts +55 -24
- package/src/src/platform/adapters/fs/veryfront/multi-project-adapter.ts +12 -106
- package/src/src/platform/adapters/fs/veryfront/proxy-manager.ts +5 -4
- package/src/src/platform/adapters/fs/veryfront/read-operations.ts +2 -2
- package/src/src/platform/adapters/fs/veryfront/request-context.ts +100 -0
- package/src/src/platform/adapters/fs/veryfront/websocket-manager-helpers.ts +21 -0
- package/src/src/platform/adapters/fs/veryfront/websocket-manager.ts +5 -11
- package/src/src/platform/adapters/registry.ts +12 -6
- package/src/src/platform/cloud/resolver.ts +1 -1
- package/src/src/platform/compat/path/security.ts +1 -1
- package/src/src/rendering/orchestrator/html-project-css.ts +1 -1
- package/src/src/rendering/orchestrator/html-types.ts +27 -0
- package/src/src/rendering/orchestrator/html.ts +3 -33
- package/src/src/rendering/orchestrator/module-loader/index.ts +4 -6
- package/src/src/sandbox/config.ts +20 -0
- package/src/src/sandbox/lazy-sandbox.ts +61 -54
- package/src/src/sandbox/sandbox.ts +30 -120
- package/src/src/sandbox/types.ts +95 -0
- package/src/src/security/http/config.ts +5 -1
- package/src/src/security/http/response/security-handler.ts +43 -4
- package/src/src/server/context/enriched-context-types.ts +65 -0
- package/src/src/server/context/enriched-context.ts +8 -66
- package/src/src/server/dev-server/file-watch-setup.ts +3 -4
- package/src/src/server/dev-server/server.ts +1 -1
- package/src/src/server/dev-ui/manifest.js +19 -19
- package/src/src/server/handlers/preview/hmr-client-message.ts +63 -0
- package/src/src/server/handlers/preview/hmr.handler.ts +14 -50
- package/src/src/server/handlers/request/api/project-discovery.ts +54 -48
- package/src/src/server/handlers/request/channel-dispatch-request.ts +113 -0
- package/src/src/server/handlers/request/channel-invoke.handler.ts +13 -59
- package/src/src/server/index.ts +13 -48
- package/src/src/server/runtime-handler/index.ts +19 -3
- package/src/src/server/service-server.ts +14 -31
- package/src/src/server/utils/proxy-trust.ts +1 -1
- package/src/src/studio/bridge/bridge-bundle.generated.ts +1 -1
- package/src/src/tool/types.ts +1 -2
- package/src/src/transforms/esm/bundle-manifest-ttl.ts +58 -0
- package/src/src/transforms/esm/bundle-manifest-types.ts +14 -0
- package/src/src/transforms/esm/bundle-manifest.ts +25 -64
- package/src/src/transforms/esm/bundle-recovery.ts +1 -1
- package/src/src/transforms/esm/cached-bundle-validation.ts +5 -1
- package/src/src/transforms/esm/in-flight-manager.ts +3 -3
- package/src/src/transforms/mdx/esm-module-loader/cache/index.ts +3 -14
- package/src/src/transforms/mdx/esm-module-loader/cache/local-fs.ts +10 -0
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/dependency-recovery.ts +2 -2
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.ts +1 -1
- package/src/src/types/server.ts +3 -16
- package/src/src/utils/import-lockfile.ts +1 -1
- package/src/src/utils/parallel.ts +1 -1
- package/src/src/utils/path-utils.ts +2 -2
- package/src/src/utils/perf-timer.ts +1 -1
- package/src/src/utils/version-constant.ts +1 -1
- package/src/src/workflow/dsl/step.ts +3 -3
- package/src/src/workflow/executor/step-executor.ts +3 -3
- package/src/src/workflow/types.ts +2 -2
- package/esm/src/agent/abort-rejection-guard.d.ts.map +0 -1
- package/esm/src/agent/agent-runtime-message-adapter.d.ts.map +0 -1
- package/esm/src/agent/agent-trace-attributes.d.ts.map +0 -1
- package/esm/src/agent/chat-handler.d.ts.map +0 -1
- package/esm/src/agent/chat-ui-message-stream.d.ts.map +0 -1
- package/esm/src/agent/data-stream.d.ts.map +0 -1
- package/esm/src/agent/default-hosted-chat-runtime.d.ts.map +0 -1
- package/esm/src/agent/default-hosted-invoke-agent-tool.d.ts.map +0 -1
- package/esm/src/agent/default-hosted-project-steering-refresh.d.ts.map +0 -1
- package/esm/src/agent/default-research-artifact-policy.d.ts.map +0 -1
- package/esm/src/agent/default-research-artifact-support.d.ts.map +0 -1
- package/esm/src/agent/defaults.d.ts.map +0 -1
- package/esm/src/agent/detached-run-tracker.d.ts.map +0 -1
- package/esm/src/agent/durable.d.ts.map +0 -1
- package/esm/src/agent/external-agent-worker-client.d.ts.map +0 -1
- package/esm/src/agent/fork-runtime-stream.d.ts.map +0 -1
- package/esm/src/agent/human-input.d.ts +0 -382
- package/esm/src/agent/human-input.d.ts.map +0 -1
- package/esm/src/agent/input-request-protocol.d.ts +0 -506
- package/esm/src/agent/input-request-protocol.d.ts.map +0 -1
- package/esm/src/agent/invoke-agent-child-runs.d.ts +0 -147
- package/esm/src/agent/invoke-agent-child-runs.d.ts.map +0 -1
- package/esm/src/agent/live-studio-mcp-tools.d.ts.map +0 -1
- package/esm/src/agent/mirrored-tool-chunk-state.d.ts.map +0 -1
- package/esm/src/agent/prepared-hosted-chat-execution.d.ts.map +0 -1
- package/esm/src/agent/project-agent-runtime.d.ts.map +0 -1
- package/esm/src/agent/project-context.d.ts.map +0 -1
- package/esm/src/agent/project-steering-mutation.d.ts.map +0 -1
- package/esm/src/agent/provider-native-tool-inventory.d.ts.map +0 -1
- package/esm/src/agent/request-auth-cache.d.ts.map +0 -1
- package/esm/src/agent/response-like.d.ts.map +0 -1
- package/esm/src/agent/slash-command-artifact-policy.d.ts.map +0 -1
- package/esm/src/agent/tool-execution-data-event-bridge.d.ts.map +0 -1
- package/esm/src/agent/veryfront-cloud-agent-service.d.ts.map +0 -1
- package/esm/src/agent/veryfront-cloud-hosted-chat-execution-preparation.d.ts.map +0 -1
- package/esm/src/agent/veryfront-cloud-prepared-hosted-chat-execution-runtime.d.ts.map +0 -1
- package/esm/src/agent/veryfront-cloud-runtime-system-messages.d.ts.map +0 -1
- /package/esm/src/agent/{default-research-artifact-policy.d.ts → artifacts/default-research-artifact-policy.d.ts} +0 -0
- /package/esm/src/agent/{default-research-artifact-policy.js → artifacts/default-research-artifact-policy.js} +0 -0
- /package/esm/src/agent/{slash-command-artifact-policy.d.ts → artifacts/slash-command-artifact-policy.d.ts} +0 -0
- /package/esm/src/agent/{agent-trace-attributes.js → hosted/trace-attributes.js} +0 -0
- /package/esm/src/agent/{project-context.js → project/context.js} +0 -0
- /package/esm/src/agent/{project-steering-mutation.js → project/steering-mutation.js} +0 -0
- /package/esm/src/agent/{defaults.d.ts → runtime/defaults.d.ts} +0 -0
- /package/esm/src/agent/{defaults.js → runtime/defaults.js} +0 -0
- /package/esm/src/agent/{provider-native-tool-inventory.js → runtime/provider-native-tool-inventory.js} +0 -0
- /package/esm/src/agent/{abort-rejection-guard.d.ts → service/abort-rejection-guard.d.ts} +0 -0
- /package/esm/src/agent/{abort-rejection-guard.js → service/abort-rejection-guard.js} +0 -0
- /package/esm/src/agent/{response-like.d.ts → service/response-like.d.ts} +0 -0
- /package/esm/src/agent/{response-like.js → service/response-like.js} +0 -0
- /package/esm/src/agent/{data-stream.js → streaming/data-stream.js} +0 -0
- /package/esm/src/agent/{mirrored-tool-chunk-state.js → streaming/mirrored-tool-chunk-state.js} +0 -0
- /package/esm/src/agent/{tool-execution-data-event-bridge.js → streaming/tool-execution-data-event-bridge.js} +0 -0
- /package/src/src/agent/{default-research-artifact-policy.ts → artifacts/default-research-artifact-policy.ts} +0 -0
- /package/src/src/agent/{agent-trace-attributes.ts → hosted/trace-attributes.ts} +0 -0
- /package/src/src/agent/{project-context.ts → project/context.ts} +0 -0
- /package/src/src/agent/{project-steering-mutation.ts → project/steering-mutation.ts} +0 -0
- /package/src/src/agent/{defaults.ts → runtime/defaults.ts} +0 -0
- /package/src/src/agent/{abort-rejection-guard.ts → service/abort-rejection-guard.ts} +0 -0
- /package/src/src/agent/{response-like.ts → service/response-like.ts} +0 -0
package/esm/_dnt.polyfills.d.ts
CHANGED
|
@@ -4,7 +4,13 @@ declare global {
|
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
6
|
export {};
|
|
7
|
-
|
|
7
|
+
declare global {
|
|
8
|
+
interface ArrayConstructor {
|
|
9
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | Promise<T>> | ArrayLike<T | Promise<T>>): Promise<T[]>;
|
|
10
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {}; /**
|
|
8
14
|
* Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
|
|
9
15
|
* but instead of using npm to install additional dependencies,
|
|
10
16
|
* this approach manually consolidates cjs/mjs/d.ts into a single file.
|
|
@@ -104,9 +110,13 @@ export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
|
|
|
104
110
|
export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
|
|
105
111
|
export declare let import_meta_ponyfill: ImportMetaPonyfill;
|
|
106
112
|
declare global {
|
|
107
|
-
interface
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
interface Object {
|
|
114
|
+
/**
|
|
115
|
+
* Determines whether an object has a property with the specified name.
|
|
116
|
+
* @param o An object.
|
|
117
|
+
* @param v A property name.
|
|
118
|
+
*/
|
|
119
|
+
hasOwn(o: object, v: PropertyKey): boolean;
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
122
|
export {};
|
|
@@ -159,17 +169,6 @@ declare global {
|
|
|
159
169
|
}
|
|
160
170
|
}
|
|
161
171
|
export {};
|
|
162
|
-
declare global {
|
|
163
|
-
interface Object {
|
|
164
|
-
/**
|
|
165
|
-
* Determines whether an object has a property with the specified name.
|
|
166
|
-
* @param o An object.
|
|
167
|
-
* @param v A property name.
|
|
168
|
-
*/
|
|
169
|
-
hasOwn(o: object, v: PropertyKey): boolean;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
export {};
|
|
173
172
|
declare global {
|
|
174
173
|
interface PromiseConstructor {
|
|
175
174
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK;QACb,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"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"}
|
package/esm/_dnt.polyfills.js
CHANGED
|
@@ -1,15 +1,112 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
// From https://github.com/es-shims/array-from-async/blob/4a5ff83947b861f35b380d5d4f20da2f07698638/index.mjs
|
|
2
|
+
// Tried to have dnt depend on the package instead, but it distributes as an
|
|
3
|
+
// ES module, so doesn't work with CommonJS.
|
|
4
|
+
//
|
|
5
|
+
// Code below:
|
|
6
|
+
//
|
|
7
|
+
// Copyright 2021 J. S. Choi
|
|
8
|
+
//
|
|
9
|
+
// Redistribution and use in source and binary forms, with or without
|
|
10
|
+
// modification, are permitted provided that the following conditions
|
|
11
|
+
// are met:
|
|
12
|
+
//
|
|
13
|
+
// 1. Redistributions of source code must retain the above copyright
|
|
14
|
+
// notice, this list of conditions and the following disclaimer.
|
|
15
|
+
//
|
|
16
|
+
// 2. Redistributions in binary form must reproduce the above copyright
|
|
17
|
+
// notice, this list of conditions and the following disclaimer in the
|
|
18
|
+
// documentation and/or other materials provided with the distribution.
|
|
19
|
+
//
|
|
20
|
+
// 3. Neither the name of the copyright holder nor the names of its
|
|
21
|
+
// contributors may be used to endorse or promote products derived from
|
|
22
|
+
// this software without specific prior written permission.
|
|
23
|
+
//
|
|
24
|
+
// **This software is provided by the copyright holders and contributors
|
|
25
|
+
// "as is" and any express or implied warranties, including, but not
|
|
26
|
+
// limited to, the implied warranties of merchantability and fitness for a
|
|
27
|
+
// particular purpose are disclaimed. In no event shall the copyright
|
|
28
|
+
// holder or contributors be liable for any direct, indirect, incidental,
|
|
29
|
+
// special, exemplary, or consequential damages (including, but not limited
|
|
30
|
+
// to, procurement of substitute goods or services; loss of use, data, or
|
|
31
|
+
// profits; or business interruption) however caused and on any theory of
|
|
32
|
+
// liability, whether in contract, strict liability, or tort (including
|
|
33
|
+
// negligence or otherwise) arising in any way out of the use of this
|
|
34
|
+
// software, even if advised of the possibility of such damage.**
|
|
35
|
+
const { MAX_SAFE_INTEGER } = Number;
|
|
36
|
+
const iteratorSymbol = Symbol.iterator;
|
|
37
|
+
const asyncIteratorSymbol = Symbol.asyncIterator;
|
|
38
|
+
const IntrinsicArray = Array;
|
|
39
|
+
const tooLongErrorMessage = 'Input is too long and exceeded Number.MAX_SAFE_INTEGER times.';
|
|
40
|
+
function isConstructor(obj) {
|
|
41
|
+
if (obj != null) {
|
|
42
|
+
const prox = new Proxy(obj, {
|
|
43
|
+
construct() {
|
|
44
|
+
return prox;
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
try {
|
|
48
|
+
new prox;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
async function fromAsync(items, mapfn, thisArg) {
|
|
60
|
+
const itemsAreIterable = (asyncIteratorSymbol in items ||
|
|
61
|
+
iteratorSymbol in items);
|
|
62
|
+
if (itemsAreIterable) {
|
|
63
|
+
const result = isConstructor(this)
|
|
64
|
+
? new this
|
|
65
|
+
: IntrinsicArray(0);
|
|
66
|
+
let i = 0;
|
|
67
|
+
for await (const v of items) {
|
|
68
|
+
if (i > MAX_SAFE_INTEGER) {
|
|
69
|
+
throw TypeError(tooLongErrorMessage);
|
|
70
|
+
}
|
|
71
|
+
else if (mapfn) {
|
|
72
|
+
result[i] = await mapfn.call(thisArg, v, i);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
result[i] = v;
|
|
76
|
+
}
|
|
77
|
+
i++;
|
|
78
|
+
}
|
|
79
|
+
result.length = i;
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
// In this case, the items are assumed to be an arraylike object with
|
|
84
|
+
// a length property and integer properties for each element.
|
|
85
|
+
const { length } = items;
|
|
86
|
+
const result = isConstructor(this)
|
|
87
|
+
? new this(length)
|
|
88
|
+
: IntrinsicArray(length);
|
|
89
|
+
let i = 0;
|
|
90
|
+
while (i < length) {
|
|
91
|
+
if (i > MAX_SAFE_INTEGER) {
|
|
92
|
+
throw TypeError(tooLongErrorMessage);
|
|
93
|
+
}
|
|
94
|
+
const v = await items[i];
|
|
95
|
+
if (mapfn) {
|
|
96
|
+
result[i] = await mapfn.call(thisArg, v, i);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
result[i] = v;
|
|
100
|
+
}
|
|
101
|
+
i++;
|
|
102
|
+
}
|
|
103
|
+
result.length = i;
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (!Array.fromAsync) {
|
|
108
|
+
Array.fromAsync = fromAsync;
|
|
109
|
+
}
|
|
13
110
|
//@ts-ignore
|
|
14
111
|
import { createRequire } from "node:module";
|
|
15
112
|
//@ts-ignore
|
|
@@ -125,114 +222,19 @@ export let import_meta_ponyfill = ((...args) => {
|
|
|
125
222
|
//@ts-ignore
|
|
126
223
|
return import_meta_ponyfill(...args);
|
|
127
224
|
});
|
|
128
|
-
//
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
// Copyright 2021 J. S. Choi
|
|
135
|
-
//
|
|
136
|
-
// Redistribution and use in source and binary forms, with or without
|
|
137
|
-
// modification, are permitted provided that the following conditions
|
|
138
|
-
// are met:
|
|
139
|
-
//
|
|
140
|
-
// 1. Redistributions of source code must retain the above copyright
|
|
141
|
-
// notice, this list of conditions and the following disclaimer.
|
|
142
|
-
//
|
|
143
|
-
// 2. Redistributions in binary form must reproduce the above copyright
|
|
144
|
-
// notice, this list of conditions and the following disclaimer in the
|
|
145
|
-
// documentation and/or other materials provided with the distribution.
|
|
146
|
-
//
|
|
147
|
-
// 3. Neither the name of the copyright holder nor the names of its
|
|
148
|
-
// contributors may be used to endorse or promote products derived from
|
|
149
|
-
// this software without specific prior written permission.
|
|
150
|
-
//
|
|
151
|
-
// **This software is provided by the copyright holders and contributors
|
|
152
|
-
// "as is" and any express or implied warranties, including, but not
|
|
153
|
-
// limited to, the implied warranties of merchantability and fitness for a
|
|
154
|
-
// particular purpose are disclaimed. In no event shall the copyright
|
|
155
|
-
// holder or contributors be liable for any direct, indirect, incidental,
|
|
156
|
-
// special, exemplary, or consequential damages (including, but not limited
|
|
157
|
-
// to, procurement of substitute goods or services; loss of use, data, or
|
|
158
|
-
// profits; or business interruption) however caused and on any theory of
|
|
159
|
-
// liability, whether in contract, strict liability, or tort (including
|
|
160
|
-
// negligence or otherwise) arising in any way out of the use of this
|
|
161
|
-
// software, even if advised of the possibility of such damage.**
|
|
162
|
-
const { MAX_SAFE_INTEGER } = Number;
|
|
163
|
-
const iteratorSymbol = Symbol.iterator;
|
|
164
|
-
const asyncIteratorSymbol = Symbol.asyncIterator;
|
|
165
|
-
const IntrinsicArray = Array;
|
|
166
|
-
const tooLongErrorMessage = 'Input is too long and exceeded Number.MAX_SAFE_INTEGER times.';
|
|
167
|
-
function isConstructor(obj) {
|
|
168
|
-
if (obj != null) {
|
|
169
|
-
const prox = new Proxy(obj, {
|
|
170
|
-
construct() {
|
|
171
|
-
return prox;
|
|
172
|
-
},
|
|
173
|
-
});
|
|
174
|
-
try {
|
|
175
|
-
new prox;
|
|
176
|
-
return true;
|
|
177
|
-
}
|
|
178
|
-
catch (err) {
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return false;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
async function fromAsync(items, mapfn, thisArg) {
|
|
187
|
-
const itemsAreIterable = (asyncIteratorSymbol in items ||
|
|
188
|
-
iteratorSymbol in items);
|
|
189
|
-
if (itemsAreIterable) {
|
|
190
|
-
const result = isConstructor(this)
|
|
191
|
-
? new this
|
|
192
|
-
: IntrinsicArray(0);
|
|
193
|
-
let i = 0;
|
|
194
|
-
for await (const v of items) {
|
|
195
|
-
if (i > MAX_SAFE_INTEGER) {
|
|
196
|
-
throw TypeError(tooLongErrorMessage);
|
|
197
|
-
}
|
|
198
|
-
else if (mapfn) {
|
|
199
|
-
result[i] = await mapfn.call(thisArg, v, i);
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
result[i] = v;
|
|
203
|
-
}
|
|
204
|
-
i++;
|
|
205
|
-
}
|
|
206
|
-
result.length = i;
|
|
207
|
-
return result;
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
// In this case, the items are assumed to be an arraylike object with
|
|
211
|
-
// a length property and integer properties for each element.
|
|
212
|
-
const { length } = items;
|
|
213
|
-
const result = isConstructor(this)
|
|
214
|
-
? new this(length)
|
|
215
|
-
: IntrinsicArray(length);
|
|
216
|
-
let i = 0;
|
|
217
|
-
while (i < length) {
|
|
218
|
-
if (i > MAX_SAFE_INTEGER) {
|
|
219
|
-
throw TypeError(tooLongErrorMessage);
|
|
220
|
-
}
|
|
221
|
-
const v = await items[i];
|
|
222
|
-
if (mapfn) {
|
|
223
|
-
result[i] = await mapfn.call(thisArg, v, i);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
result[i] = v;
|
|
225
|
+
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
226
|
+
if (!Object.hasOwn) {
|
|
227
|
+
Object.defineProperty(Object, "hasOwn", {
|
|
228
|
+
value: function (object, property) {
|
|
229
|
+
if (object == null) {
|
|
230
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
227
231
|
}
|
|
228
|
-
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
234
|
-
if (!Array.fromAsync) {
|
|
235
|
-
Array.fromAsync = fromAsync;
|
|
232
|
+
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
233
|
+
},
|
|
234
|
+
configurable: true,
|
|
235
|
+
enumerable: false,
|
|
236
|
+
writable: true,
|
|
237
|
+
});
|
|
236
238
|
}
|
|
237
239
|
function findLastIndex(self, callbackfn, that) {
|
|
238
240
|
const boundFunc = that === undefined ? callbackfn : callbackfn.bind(that);
|
|
@@ -270,20 +272,6 @@ if (!Uint8Array.prototype.findLast) {
|
|
|
270
272
|
return findLast(this, callbackfn, that);
|
|
271
273
|
};
|
|
272
274
|
}
|
|
273
|
-
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
274
|
-
if (!Object.hasOwn) {
|
|
275
|
-
Object.defineProperty(Object, "hasOwn", {
|
|
276
|
-
value: function (object, property) {
|
|
277
|
-
if (object == null) {
|
|
278
|
-
throw new TypeError("Cannot convert undefined or null to object");
|
|
279
|
-
}
|
|
280
|
-
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
281
|
-
},
|
|
282
|
-
configurable: true,
|
|
283
|
-
enumerable: false,
|
|
284
|
-
writable: true,
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
275
|
// https://github.com/tc39/proposal-promise-with-resolvers/blob/3a78801e073e99217dbeb2c43ba7212f3bdc8b83/polyfills.js#L1C1-L9C2
|
|
288
276
|
if (Promise.withResolvers === undefined) {
|
|
289
277
|
Promise.withResolvers = () => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { ParsedArgs } from "../../shared/types.js";
|
|
5
5
|
export declare const parseGenerateArgs: (args: ParsedArgs) => import("../../shared/args.js").SafeParseResult<import("../../../src/extensions/schema/schema-validator.js").InferShape<{
|
|
6
|
-
type: import("../../../src/internal-agents/schema.js").Schema<"
|
|
6
|
+
type: import("../../../src/internal-agents/schema.js").Schema<"page" | "api" | "layout" | "provider" | "integration" | undefined>;
|
|
7
7
|
name: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
8
8
|
}>>;
|
|
9
9
|
export declare function handleGenerateCommand(args: ParsedArgs): Promise<void>;
|
|
@@ -6,7 +6,7 @@ import { createArgParser, parseArgsOrThrow } from "../../shared/args.js";
|
|
|
6
6
|
const getServeArgsSchema = defineSchema((v) => v.object({
|
|
7
7
|
mode: ServerModeSchema.default("production"),
|
|
8
8
|
port: v.number().default(DEFAULT_DEV_SERVER_PORT),
|
|
9
|
-
hostname: v.string().default("
|
|
9
|
+
hostname: v.string().default("127.0.0.1"),
|
|
10
10
|
split: v.boolean().default(false),
|
|
11
11
|
binary: v.boolean().default(false),
|
|
12
12
|
binaryPath: v.string().default("./bin/veryfront"),
|
|
@@ -4,6 +4,7 @@ interface SplitModeOptions {
|
|
|
4
4
|
useBinary: boolean;
|
|
5
5
|
binaryPath: string;
|
|
6
6
|
}
|
|
7
|
+
export declare function buildSplitModeEnvForTests(userEnv: Record<string, string>, productionServerPort: number): Record<string, string>;
|
|
7
8
|
export declare function runSplitMode(options: SplitModeOptions): Promise<void>;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=split-mode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-mode.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/serve/split-mode.ts"],"names":[],"mappings":"AAaA,UAAU,gBAAgB;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"split-mode.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/serve/split-mode.ts"],"names":[],"mappings":"AAaA,UAAU,gBAAgB;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAuBD,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,oBAAoB,EAAE,MAAM,GAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMxB;AAwDD,wBAAsB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAsF3E"}
|
|
@@ -21,11 +21,19 @@ const STATIC_ENV = {
|
|
|
21
21
|
NODE_ENV: "production",
|
|
22
22
|
PROXY_MODE: "1",
|
|
23
23
|
PRODUCTION_MODE: "1",
|
|
24
|
+
VERYFRONT_TRUST_FORWARDED_HEADERS: "1",
|
|
24
25
|
SSR_REDIS_CACHE_ENABLED: "true",
|
|
25
26
|
PROJECT_MAX_CONCURRENT: "1000",
|
|
26
27
|
PROJECT_CIRCUIT_THRESHOLD: "20",
|
|
27
28
|
PROJECT_CIRCUIT_RESET_MS: "15000",
|
|
28
29
|
};
|
|
30
|
+
export function buildSplitModeEnvForTests(userEnv, productionServerPort) {
|
|
31
|
+
return {
|
|
32
|
+
...STATIC_ENV,
|
|
33
|
+
...userEnv,
|
|
34
|
+
VERYFRONT_SERVER_URL: `http://localhost:${productionServerPort}`,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
29
37
|
function validateEnvVars() {
|
|
30
38
|
const missing = [];
|
|
31
39
|
const env = {};
|
|
@@ -78,11 +86,7 @@ export async function runSplitMode(options) {
|
|
|
78
86
|
cliLogger.info("Validating environment variables...");
|
|
79
87
|
const userEnv = validateEnvVars();
|
|
80
88
|
// Build child-process environment
|
|
81
|
-
const env =
|
|
82
|
-
...STATIC_ENV,
|
|
83
|
-
...userEnv,
|
|
84
|
-
VERYFRONT_SERVER_URL: `http://localhost:${productionServerPort}`,
|
|
85
|
-
};
|
|
89
|
+
const env = buildSplitModeEnvForTests(userEnv, productionServerPort);
|
|
86
90
|
// Determine command
|
|
87
91
|
const veryfront = useBinary
|
|
88
92
|
? [binaryPath]
|
package/esm/cli/router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/cli/router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/cli/router.ts"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAgHpD;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAyHlE"}
|
package/esm/cli/router.js
CHANGED
|
@@ -47,7 +47,7 @@ import { parseLoginMethod } from "./auth/utils.js";
|
|
|
47
47
|
import { showCommandHelp, showMainHelp } from "./help/index.js";
|
|
48
48
|
import { setColorOverride } from "./ui/colors.js";
|
|
49
49
|
import { exitProcess, setQuietMode, setVerboseMode } from "./utils/index.js";
|
|
50
|
-
import { createSuccessEnvelope, isJsonMode, outputJson, setJsonMode, setOutputPath, } from "./shared/json-output.js";
|
|
50
|
+
import { createErrorEnvelope, createSuccessEnvelope, isJsonMode, outputJson, setJsonMode, setOutputPath, } from "./shared/json-output.js";
|
|
51
51
|
import { detectCI, setNonInteractive } from "./shared/interactive.js";
|
|
52
52
|
/**
|
|
53
53
|
* Command registry mapping command names to their handlers.
|
|
@@ -134,6 +134,16 @@ function showHelp(command) {
|
|
|
134
134
|
}
|
|
135
135
|
showMainHelp();
|
|
136
136
|
}
|
|
137
|
+
function commandNameForJson(args) {
|
|
138
|
+
const command = args._[0];
|
|
139
|
+
return typeof command === "string" && command.length > 0 ? command : "cli";
|
|
140
|
+
}
|
|
141
|
+
function errorMessage(error) {
|
|
142
|
+
return error instanceof Error ? error.message : String(error);
|
|
143
|
+
}
|
|
144
|
+
async function outputCliJsonError(command, error) {
|
|
145
|
+
await outputJson(createErrorEnvelope(command, error));
|
|
146
|
+
}
|
|
137
147
|
/**
|
|
138
148
|
* Route and execute the appropriate CLI command
|
|
139
149
|
*
|
|
@@ -195,33 +205,58 @@ export async function routeCommand(args) {
|
|
|
195
205
|
exitProcess(0);
|
|
196
206
|
return;
|
|
197
207
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
208
|
+
const handler = command ? commands[command] : undefined;
|
|
209
|
+
if (command && !handler) {
|
|
210
|
+
const { suggestCommand } = await import("./shared/suggest.js");
|
|
211
|
+
const { COMMANDS } = await import("./help/command-definitions.js");
|
|
212
|
+
// Use canonical command names from help registry (excludes aliases like "g", "preview")
|
|
213
|
+
const canonicalNames = Object.keys(COMMANDS);
|
|
214
|
+
const suggestions = suggestCommand(command, canonicalNames);
|
|
215
|
+
if (isJsonMode()) {
|
|
216
|
+
await outputCliJsonError(command, {
|
|
217
|
+
code: "USAGE_ERROR",
|
|
218
|
+
slug: "unknown-command",
|
|
219
|
+
message: `Unknown command: ${command}`,
|
|
220
|
+
context: suggestions.length > 0 ? { suggestions } : {},
|
|
221
|
+
});
|
|
222
|
+
exitProcess(2);
|
|
201
223
|
return;
|
|
202
224
|
}
|
|
203
|
-
|
|
204
|
-
if (
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
const suggestions = suggestCommand(command, canonicalNames);
|
|
210
|
-
cliLogger.error(`Unknown command: ${command}\n`);
|
|
211
|
-
if (suggestions.length > 0) {
|
|
212
|
-
cliLogger.info(` Did you mean?`);
|
|
213
|
-
for (const s of suggestions) {
|
|
214
|
-
const desc = COMMANDS[s]?.description ?? "";
|
|
215
|
-
cliLogger.info(` ${s} ${desc}`);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
showHelp();
|
|
225
|
+
cliLogger.error(`Unknown command: ${command}\n`);
|
|
226
|
+
if (suggestions.length > 0) {
|
|
227
|
+
cliLogger.info(` Did you mean?`);
|
|
228
|
+
for (const s of suggestions) {
|
|
229
|
+
const desc = COMMANDS[s]?.description ?? "";
|
|
230
|
+
cliLogger.info(` ${s} ${desc}`);
|
|
220
231
|
}
|
|
221
|
-
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
showHelp();
|
|
235
|
+
}
|
|
236
|
+
exitProcess(1);
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
await cliErrorBoundary(async () => {
|
|
240
|
+
if (command === "help") {
|
|
241
|
+
showHelp();
|
|
222
242
|
return;
|
|
223
243
|
}
|
|
224
244
|
await (handler ?? handleStartCommand)(args);
|
|
245
|
+
}, {
|
|
246
|
+
onError: async (error) => {
|
|
247
|
+
if (!isJsonMode()) {
|
|
248
|
+
console.log((await import("../src/errors/index.js")).formatCLIError(error));
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
const message = errorMessage(error);
|
|
252
|
+
const isUsageError = message.startsWith("Invalid ");
|
|
253
|
+
await outputCliJsonError(commandNameForJson(args), {
|
|
254
|
+
code: isUsageError ? "USAGE_ERROR" : "RUNTIME_ERROR",
|
|
255
|
+
slug: isUsageError ? "invalid-arguments" : "command-failed",
|
|
256
|
+
message,
|
|
257
|
+
});
|
|
258
|
+
},
|
|
259
|
+
getExitCode: (error) => errorMessage(error).startsWith("Invalid ") ? 2 : 1,
|
|
225
260
|
});
|
|
226
261
|
// Wait for update check to finish (with timeout to avoid hanging)
|
|
227
262
|
await Promise.race([
|