veryfront 0.1.1237 → 0.1.1239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/cli/auth/login.d.ts +24 -2
- package/esm/cli/auth/login.d.ts.map +1 -1
- package/esm/cli/auth/login.js +444 -35
- package/esm/cli/commands/build/error-handler.d.ts.map +1 -1
- package/esm/cli/commands/build/error-handler.js +41 -3
- package/esm/cli/commands/build/handler.d.ts.map +1 -1
- package/esm/cli/commands/build/handler.js +1 -1
- package/esm/cli/commands/dev/command.d.ts.map +1 -1
- package/esm/cli/commands/dev/command.js +14 -1
- package/esm/cli/commands/dev/inference-status.d.ts +6 -0
- package/esm/cli/commands/dev/inference-status.d.ts.map +1 -1
- package/esm/cli/commands/dev/inference-status.js +14 -2
- package/esm/cli/commands/generate/command.d.ts.map +1 -1
- package/esm/cli/commands/generate/command.js +61 -0
- package/esm/cli/commands/init/init-command.d.ts.map +1 -1
- package/esm/cli/commands/init/init-command.js +23 -31
- package/esm/cli/commands/install/registry.d.ts.map +1 -1
- package/esm/cli/commands/install/registry.js +6 -9
- package/esm/cli/commands/login/command-help.d.ts.map +1 -1
- package/esm/cli/commands/login/command-help.js +3 -1
- package/esm/cli/commands/pull/command.d.ts +1 -0
- package/esm/cli/commands/pull/command.d.ts.map +1 -1
- package/esm/cli/commands/pull/command.js +49 -6
- package/esm/cli/commands/push/command-help.d.ts.map +1 -1
- package/esm/cli/commands/push/command-help.js +7 -0
- package/esm/cli/commands/push/command.d.ts +23 -12
- package/esm/cli/commands/push/command.d.ts.map +1 -1
- package/esm/cli/commands/push/command.js +461 -44
- package/esm/cli/commands/push/plan.d.ts +35 -0
- package/esm/cli/commands/push/plan.d.ts.map +1 -0
- package/esm/cli/commands/push/plan.js +96 -0
- package/esm/cli/commands/schedule/handler.d.ts +21 -2
- package/esm/cli/commands/schedule/handler.d.ts.map +1 -1
- package/esm/cli/commands/schedule/handler.js +74 -27
- package/esm/cli/commands/schema/command-help.js +1 -1
- package/esm/cli/commands/up/command.js +1 -1
- package/esm/cli/commands/webhook/handler.d.ts.map +1 -1
- package/esm/cli/commands/webhook/handler.js +3 -1
- package/esm/cli/router.d.ts.map +1 -1
- package/esm/cli/router.js +27 -5
- package/esm/cli/shared/args.d.ts +15 -1
- package/esm/cli/shared/args.d.ts.map +1 -1
- package/esm/cli/shared/args.js +56 -3
- package/esm/cli/shared/config.d.ts +11 -2
- package/esm/cli/shared/config.d.ts.map +1 -1
- package/esm/cli/shared/config.js +72 -27
- package/esm/cli/shared/project-creation.js +1 -1
- package/esm/cli/sync/state.d.ts +20 -0
- package/esm/cli/sync/state.d.ts.map +1 -0
- package/esm/cli/sync/state.js +193 -0
- package/esm/deno.js +2 -2
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-request-builder.js +852 -21
- package/esm/extensions/ext-observability-sentry/src/policy.d.ts +2 -0
- package/esm/extensions/ext-observability-sentry/src/policy.d.ts.map +1 -1
- package/esm/extensions/ext-observability-sentry/src/policy.js +214 -3
- package/esm/src/agent/conversation/delegation-policy.d.ts +2 -0
- package/esm/src/agent/conversation/delegation-policy.d.ts.map +1 -1
- package/esm/src/agent/conversation/delegation-policy.js +13 -3
- package/esm/src/agent/conversation/hosted-terminal.d.ts.map +1 -1
- package/esm/src/agent/conversation/hosted-terminal.js +6 -2
- package/esm/src/agent/conversation/run-chunk-mirror.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-chunk-mirror.js +14 -2
- package/esm/src/agent/factory.d.ts.map +1 -1
- package/esm/src/agent/factory.js +22 -11
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts +2 -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 +6 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts +2 -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 +6 -3
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts +12 -3
- 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 +16 -3
- package/esm/src/agent/hosted/cloud-agent-chat-execution.d.ts +1 -1
- package/esm/src/agent/hosted/cloud-agent-chat-execution.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-chat-execution.js +3 -3
- package/esm/src/agent/hosted/cloud-agent-child-tools.d.ts +11 -0
- package/esm/src/agent/hosted/cloud-agent-child-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-child-tools.js +2 -3
- package/esm/src/agent/hosted/cloud-agent-config.d.ts +1 -0
- package/esm/src/agent/hosted/cloud-agent-config.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts +16 -1
- package/esm/src/agent/hosted/cloud-runtime-system-messages.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-runtime-system-messages.js +13 -3
- package/esm/src/agent/hosted/default-chat-runtime.d.ts +2 -1
- package/esm/src/agent/hosted/default-chat-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-chat-runtime.js +18 -7
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts +2 -1
- package/esm/src/agent/hosted/default-invoke-agent-tool.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-invoke-agent-tool.js +11 -3
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts +2 -1
- package/esm/src/agent/hosted/default-project-steering-refresh.d.ts.map +1 -1
- package/esm/src/agent/hosted/default-project-steering-refresh.js +4 -1
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts +6 -4
- package/esm/src/agent/hosted/runtime-state-resolver.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-state-resolver.js +8 -11
- package/esm/src/agent/index.d.ts +3 -3
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/project/agent-runtime.d.ts.map +1 -1
- package/esm/src/agent/project/agent-runtime.js +6 -3
- package/esm/src/agent/runtime/agent-definition.d.ts +68 -66
- package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-definition.js +15 -2
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts +2 -0
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-markdown-adapter.js +1 -1
- package/esm/src/agent/runtime/agent-runtime-step.d.ts +11 -5
- package/esm/src/agent/runtime/agent-runtime-step.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-runtime-step.js +23 -6
- package/esm/src/agent/runtime/call-context.d.ts +42 -11
- package/esm/src/agent/runtime/call-context.d.ts.map +1 -1
- package/esm/src/agent/runtime/call-context.js +480 -42
- package/esm/src/agent/runtime/chat-stream-handler.d.ts +18 -0
- package/esm/src/agent/runtime/chat-stream-handler.d.ts.map +1 -1
- package/esm/src/agent/runtime/chat-stream-handler.js +38 -18
- package/esm/src/agent/runtime/effective-agent-system.d.ts +13 -4
- package/esm/src/agent/runtime/effective-agent-system.d.ts.map +1 -1
- package/esm/src/agent/runtime/effective-agent-system.js +29 -0
- 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 +638 -53
- package/esm/src/agent/runtime/load-skill-tool.d.ts +33 -3
- package/esm/src/agent/runtime/load-skill-tool.d.ts.map +1 -1
- package/esm/src/agent/runtime/load-skill-tool.js +152 -21
- package/esm/src/agent/runtime/model-resolution.d.ts +3 -0
- package/esm/src/agent/runtime/model-resolution.d.ts.map +1 -1
- package/esm/src/agent/runtime/model-resolution.js +14 -0
- package/esm/src/agent/runtime/model-transport.d.ts +1 -0
- package/esm/src/agent/runtime/model-transport.d.ts.map +1 -1
- package/esm/src/agent/runtime/model-transport.js +5 -2
- package/esm/src/agent/runtime/run-runtime-context.d.ts +4 -0
- package/esm/src/agent/runtime/run-runtime-context.d.ts.map +1 -1
- package/esm/src/agent/runtime/run-runtime-context.js +9 -3
- package/esm/src/agent/runtime/runtime-tool-config.d.ts +1 -0
- package/esm/src/agent/runtime/runtime-tool-config.d.ts.map +1 -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 +113 -25
- package/esm/src/agent/runtime/streamed-assistant-message.d.ts +22 -2
- package/esm/src/agent/runtime/streamed-assistant-message.d.ts.map +1 -1
- package/esm/src/agent/runtime/streamed-assistant-message.js +26 -5
- package/esm/src/agent/runtime/tool-inventory.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-inventory.js +13 -9
- package/esm/src/agent/runtime/tool-result-continuation.d.ts +4 -2
- package/esm/src/agent/runtime/tool-result-continuation.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-result-continuation.js +24 -20
- package/esm/src/agent/schemas/agent.schema.d.ts +2 -2
- package/esm/src/agent/service/runtime.js +1 -1
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts +5 -4
- package/esm/src/agent/streaming/fork-runtime-stream.d.ts.map +1 -1
- package/esm/src/agent/types.d.ts +14 -1
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/chat/chat-ui-message-helpers.d.ts.map +1 -1
- package/esm/src/chat/chat-ui-message-helpers.js +75 -16
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +37 -1
- package/esm/src/errors/catalog/build-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/build-errors.js +14 -0
- package/esm/src/errors/error-registry/build.d.ts +2 -0
- package/esm/src/errors/error-registry/build.d.ts.map +1 -1
- package/esm/src/errors/error-registry/build.js +8 -0
- package/esm/src/errors/error-registry/deploy.d.ts +4 -0
- package/esm/src/errors/error-registry/deploy.d.ts.map +1 -1
- package/esm/src/errors/error-registry/deploy.js +16 -0
- package/esm/src/errors/error-registry.d.ts +3 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/index.d.ts +2 -1
- package/esm/src/errors/index.d.ts.map +1 -1
- package/esm/src/errors/index.js +4 -3
- package/esm/src/errors/tenant-classification.d.ts +25 -0
- package/esm/src/errors/tenant-classification.d.ts.map +1 -0
- package/esm/src/errors/tenant-classification.js +61 -0
- package/esm/src/extensions/builtin-extensions.d.ts +10 -15
- package/esm/src/extensions/builtin-extensions.d.ts.map +1 -1
- package/esm/src/extensions/builtin-extensions.js +32 -26
- package/esm/src/extensions/deferred-extension.d.ts +4 -4
- package/esm/src/extensions/deferred-extension.js +4 -4
- package/esm/src/extensions/index.d.ts +1 -0
- package/esm/src/extensions/index.d.ts.map +1 -1
- package/esm/src/extensions/index.js +1 -0
- package/esm/src/html/hydration-script-builder/hydration-runtime.generated.js +1 -1
- package/esm/src/integrations/_data.d.ts.map +1 -1
- package/esm/src/integrations/_data.js +6 -0
- package/esm/src/integrations/schema.d.ts +8 -0
- package/esm/src/integrations/schema.d.ts.map +1 -1
- package/esm/src/integrations/schema.js +3 -0
- package/esm/src/integrations/types.d.ts +2 -0
- package/esm/src/integrations/types.d.ts.map +1 -1
- package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
- package/esm/src/internal-agents/run-stream.js +35 -20
- package/esm/src/internal-agents/run-system-prompt.d.ts +7 -2
- package/esm/src/internal-agents/run-system-prompt.d.ts.map +1 -1
- package/esm/src/internal-agents/run-system-prompt.js +19 -13
- package/esm/src/internal-agents/schema.d.ts +2 -0
- package/esm/src/internal-agents/schema.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.js +2 -18
- package/esm/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.d.ts +11 -0
- package/esm/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.js +53 -6
- package/esm/src/observability/application-error-contract.d.ts +4 -0
- package/esm/src/observability/application-error-contract.d.ts.map +1 -1
- package/esm/src/observability/application-errors.d.ts.map +1 -1
- package/esm/src/observability/application-errors.js +64 -3
- package/esm/src/platform/adapters/runtime/deno/http-server.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/deno/http-server.js +2 -10
- package/esm/src/platform/adapters/runtime/shared/request-peer.d.ts +14 -0
- package/esm/src/platform/adapters/runtime/shared/request-peer.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/request-peer.js +82 -0
- package/esm/src/platform/compat/http/pinned-fetch.d.ts +1 -1
- package/esm/src/provider/runtime-loader/provider-http.d.ts +5 -1
- package/esm/src/provider/runtime-loader/provider-http.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/provider-http.js +55 -17
- package/esm/src/provider/shared/index.d.ts +1 -0
- package/esm/src/provider/shared/index.d.ts.map +1 -1
- package/esm/src/provider/shared/index.js +2 -0
- package/esm/src/provider/types.d.ts +1 -0
- package/esm/src/provider/types.d.ts.map +1 -1
- package/esm/src/react/components/ui/adapter/builtin/combobox.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/combobox.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/combobox.js +204 -0
- package/esm/src/react/components/ui/adapter/builtin/dialog.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/dialog.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/dialog.js +20 -0
- package/esm/src/react/components/ui/adapter/builtin/drawer.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/drawer.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/drawer.js +21 -0
- package/esm/src/react/components/ui/adapter/builtin/index.d.ts.map +1 -1
- package/esm/src/react/components/ui/adapter/builtin/index.js +10 -0
- package/esm/src/react/components/ui/adapter/builtin/popover.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/popover.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/popover.js +28 -0
- package/esm/src/react/components/ui/adapter/builtin/tabs.d.ts +3 -0
- package/esm/src/react/components/ui/adapter/builtin/tabs.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/builtin/tabs.js +73 -0
- package/esm/src/react/components/ui/adapter/context.d.ts.map +1 -1
- package/esm/src/react/components/ui/adapter/context.js +10 -0
- package/esm/src/react/components/ui/adapter/contract.d.ts +212 -0
- package/esm/src/react/components/ui/adapter/contract.d.ts.map +1 -1
- package/esm/src/react/components/ui/adapter/token-scope.d.ts +24 -0
- package/esm/src/react/components/ui/adapter/token-scope.d.ts.map +1 -0
- package/esm/src/react/components/ui/adapter/token-scope.js +26 -0
- package/esm/src/react/components/ui/alert-dialog.d.ts +101 -0
- package/esm/src/react/components/ui/alert-dialog.d.ts.map +1 -0
- package/esm/src/react/components/ui/alert-dialog.js +181 -0
- package/esm/src/react/components/ui/aspect-ratio.d.ts +18 -0
- package/esm/src/react/components/ui/aspect-ratio.d.ts.map +1 -0
- package/esm/src/react/components/ui/aspect-ratio.js +13 -0
- package/esm/src/react/components/ui/autocomplete.d.ts +67 -0
- package/esm/src/react/components/ui/autocomplete.d.ts.map +1 -0
- package/esm/src/react/components/ui/autocomplete.js +59 -0
- package/esm/src/react/components/ui/breadcrumb.d.ts +86 -0
- package/esm/src/react/components/ui/breadcrumb.d.ts.map +1 -0
- package/esm/src/react/components/ui/breadcrumb.js +67 -0
- package/esm/src/react/components/ui/calendar.d.ts +40 -0
- package/esm/src/react/components/ui/calendar.d.ts.map +1 -0
- package/esm/src/react/components/ui/calendar.js +170 -0
- package/esm/src/react/components/ui/combobox.d.ts +74 -0
- package/esm/src/react/components/ui/combobox.d.ts.map +1 -0
- package/esm/src/react/components/ui/combobox.js +100 -0
- package/esm/src/react/components/ui/context-menu.d.ts +116 -0
- package/esm/src/react/components/ui/context-menu.d.ts.map +1 -0
- package/esm/src/react/components/ui/context-menu.js +168 -0
- package/esm/src/react/components/ui/date-picker.d.ts +69 -0
- package/esm/src/react/components/ui/date-picker.d.ts.map +1 -0
- package/esm/src/react/components/ui/date-picker.js +96 -0
- package/esm/src/react/components/ui/dialog.d.ts +41 -11
- package/esm/src/react/components/ui/dialog.d.ts.map +1 -1
- package/esm/src/react/components/ui/dialog.js +47 -28
- package/esm/src/react/components/ui/drawer.d.ts +31 -8
- package/esm/src/react/components/ui/drawer.d.ts.map +1 -1
- package/esm/src/react/components/ui/drawer.js +33 -22
- package/esm/src/react/components/ui/dropdown-menu.d.ts.map +1 -1
- package/esm/src/react/components/ui/dropdown-menu.js +7 -75
- package/esm/src/react/components/ui/field.d.ts +70 -0
- package/esm/src/react/components/ui/field.d.ts.map +1 -0
- package/esm/src/react/components/ui/field.js +161 -0
- package/esm/src/react/components/ui/file-type.d.ts +9 -8
- package/esm/src/react/components/ui/file-type.d.ts.map +1 -1
- package/esm/src/react/components/ui/file-type.js +8 -8
- package/esm/src/react/components/ui/hover-card.d.ts +82 -0
- package/esm/src/react/components/ui/hover-card.d.ts.map +1 -0
- package/esm/src/react/components/ui/hover-card.js +140 -0
- package/esm/src/react/components/ui/index.d.ts +23 -2
- package/esm/src/react/components/ui/index.d.ts.map +1 -1
- package/esm/src/react/components/ui/index.js +21 -0
- package/esm/src/react/components/ui/input-otp.d.ts +37 -0
- package/esm/src/react/components/ui/input-otp.d.ts.map +1 -0
- package/esm/src/react/components/ui/input-otp.js +42 -0
- package/esm/src/react/components/ui/menu-keyboard.d.ts +8 -0
- package/esm/src/react/components/ui/menu-keyboard.d.ts.map +1 -0
- package/esm/src/react/components/ui/menu-keyboard.js +76 -0
- package/esm/src/react/components/ui/menubar.d.ts +98 -0
- package/esm/src/react/components/ui/menubar.d.ts.map +1 -0
- package/esm/src/react/components/ui/menubar.js +173 -0
- package/esm/src/react/components/ui/meter.d.ts +45 -0
- package/esm/src/react/components/ui/meter.d.ts.map +1 -0
- package/esm/src/react/components/ui/meter.js +59 -0
- package/esm/src/react/components/ui/modal-surface.d.ts +7 -1
- package/esm/src/react/components/ui/modal-surface.d.ts.map +1 -1
- package/esm/src/react/components/ui/modal-surface.js +23 -6
- package/esm/src/react/components/ui/navigation-menu.d.ts +101 -0
- package/esm/src/react/components/ui/navigation-menu.d.ts.map +1 -0
- package/esm/src/react/components/ui/navigation-menu.js +195 -0
- package/esm/src/react/components/ui/number-field.d.ts +46 -0
- package/esm/src/react/components/ui/number-field.d.ts.map +1 -0
- package/esm/src/react/components/ui/number-field.js +121 -0
- package/esm/src/react/components/ui/pagination.d.ts +77 -0
- package/esm/src/react/components/ui/pagination.d.ts.map +1 -0
- package/esm/src/react/components/ui/pagination.js +62 -0
- package/esm/src/react/components/ui/popover.d.ts +42 -13
- package/esm/src/react/components/ui/popover.d.ts.map +1 -1
- package/esm/src/react/components/ui/popover.js +25 -12
- package/esm/src/react/components/ui/scroll-area.d.ts +38 -0
- package/esm/src/react/components/ui/scroll-area.d.ts.map +1 -0
- package/esm/src/react/components/ui/scroll-area.js +35 -0
- package/esm/src/react/components/ui/separator.d.ts +20 -0
- package/esm/src/react/components/ui/separator.d.ts.map +1 -0
- package/esm/src/react/components/ui/separator.js +13 -0
- package/esm/src/react/components/ui/slider.d.ts +44 -0
- package/esm/src/react/components/ui/slider.d.ts.map +1 -0
- package/esm/src/react/components/ui/slider.js +46 -0
- package/esm/src/react/components/ui/status.d.ts +6 -5
- package/esm/src/react/components/ui/status.d.ts.map +1 -1
- package/esm/src/react/components/ui/status.js +4 -4
- package/esm/src/react/components/ui/tabs.d.ts +32 -9
- package/esm/src/react/components/ui/tabs.d.ts.map +1 -1
- package/esm/src/react/components/ui/tabs.js +46 -22
- package/esm/src/react/components/ui/toggle.d.ts +26 -0
- package/esm/src/react/components/ui/toggle.d.ts.map +1 -0
- package/esm/src/react/components/ui/toggle.js +29 -0
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.d.ts +2 -1
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.d.ts.map +1 -1
- package/esm/src/react/components/ui/use-isomorphic-layout-effect.js +6 -3
- package/esm/src/rendering/chunk-optimizer/source-imports.d.ts.map +1 -1
- package/esm/src/rendering/chunk-optimizer/source-imports.js +4 -114
- package/esm/src/rendering/orchestrator/css-candidate-manifest.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/css-candidate-manifest.js +30 -1
- package/esm/src/rendering/orchestrator/module-loader/build-failure.d.ts +10 -0
- package/esm/src/rendering/orchestrator/module-loader/build-failure.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/build-failure.js +50 -3
- package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.d.ts +2 -0
- package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/dependency-resolver.js +21 -6
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts +2 -1
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.js +190 -7
- package/esm/src/rendering/orchestrator/module-loader/module-persistence.d.ts +4 -0
- package/esm/src/rendering/orchestrator/module-loader/module-persistence.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/module-persistence.js +374 -7
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline.js +12 -1
- package/esm/src/runs/runs-client.d.ts +2 -4
- package/esm/src/runs/runs-client.d.ts.map +1 -1
- package/esm/src/runs/schemas.d.ts +18 -8
- package/esm/src/runs/schemas.d.ts.map +1 -1
- package/esm/src/runs/schemas.js +26 -0
- package/esm/src/runtime/model-call-context.d.ts +6 -1
- package/esm/src/runtime/model-call-context.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.js +133 -15
- package/esm/src/schedule/factory.d.ts +8 -2
- package/esm/src/schedule/factory.d.ts.map +1 -1
- package/esm/src/schedule/factory.js +0 -8
- package/esm/src/schedule/index.d.ts +10 -1
- package/esm/src/schedule/index.d.ts.map +1 -1
- package/esm/src/schedule/index.js +9 -0
- package/esm/src/schedule/types.d.ts +30 -11
- package/esm/src/schedule/types.d.ts.map +1 -1
- package/esm/src/schedule/validation.d.ts +17 -0
- package/esm/src/schedule/validation.d.ts.map +1 -1
- package/esm/src/schedule/validation.js +93 -5
- package/esm/src/security/sandbox/worker-pool.d.ts.map +1 -1
- package/esm/src/security/sandbox/worker-pool.js +6 -1
- package/esm/src/server/bootstrap.d.ts.map +1 -1
- package/esm/src/server/bootstrap.js +6 -0
- package/esm/src/server/dev-server/index.d.ts +1 -1
- package/esm/src/server/dev-server/index.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.d.ts +7 -3
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +12 -3
- package/esm/src/server/dev-server/types.d.ts +7 -1
- package/esm/src/server/dev-server/types.d.ts.map +1 -1
- package/esm/src/server/dev-server.d.ts +1 -1
- package/esm/src/server/dev-server.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 +2509 -34
- package/esm/src/server/handlers/dev/projects/index.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/projects/index.js +3 -0
- package/esm/src/server/handlers/request/agent-stream.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/agent-stream.handler.js +29 -24
- package/esm/src/server/index.d.ts +3 -3
- package/esm/src/server/index.d.ts.map +1 -1
- package/esm/src/server/index.js +10 -5
- package/esm/src/server/node-handler.d.ts.map +1 -1
- package/esm/src/server/node-handler.js +4 -1
- package/esm/src/server/production-server.d.ts.map +1 -1
- package/esm/src/server/production-server.js +2 -1
- package/esm/src/server/project-env/cache.d.ts +17 -0
- package/esm/src/server/project-env/cache.d.ts.map +1 -1
- package/esm/src/server/project-env/cache.js +78 -2
- package/esm/src/server/project-env/fetcher.d.ts.map +1 -1
- package/esm/src/server/project-env/fetcher.js +24 -14
- package/esm/src/server/project-env/index.d.ts +1 -1
- package/esm/src/server/project-env/index.d.ts.map +1 -1
- package/esm/src/server/project-env/index.js +1 -1
- package/esm/src/server/project-env/internal-authorization.d.ts +7 -0
- package/esm/src/server/project-env/internal-authorization.d.ts.map +1 -0
- package/esm/src/server/project-env/internal-authorization.js +32 -0
- package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/index.js +1 -1
- package/esm/src/server/runtime-handler/projects-handler.d.ts +1 -1
- package/esm/src/server/runtime-handler/projects-handler.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/projects-handler.js +4 -2
- package/esm/src/transforms/esm/http-bundler.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-bundler.js +6 -5
- package/esm/src/transforms/esm/http-cache-helpers.d.ts +11 -0
- package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-helpers.js +35 -0
- package/esm/src/transforms/esm/http-cache.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache.js +16 -10
- package/esm/src/transforms/esm/specifier-resolver.d.ts.map +1 -1
- package/esm/src/transforms/esm/specifier-resolver.js +87 -7
- package/esm/src/transforms/import-rewriter/strategies/alias-strategy.d.ts +2 -0
- package/esm/src/transforms/import-rewriter/strategies/alias-strategy.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/strategies/alias-strategy.js +11 -6
- package/esm/src/transforms/md/compiler/md-compiler.d.ts.map +1 -1
- package/esm/src/transforms/md/compiler/md-compiler.js +12 -5
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.d.ts +2 -0
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/frontmatter-extractor.js +33 -1
- package/esm/src/transforms/mdx/compiler/mdx-compiler.d.ts.map +1 -1
- package/esm/src/transforms/mdx/compiler/mdx-compiler.js +46 -7
- 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 +8 -2
- package/esm/src/transforms/mdx/esm-module-loader/cache-format.d.ts +1 -0
- package/esm/src/transforms/mdx/esm-module-loader/cache-format.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/cache-format.js +3 -0
- package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.d.ts +4 -0
- package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/loader-helpers.js +44 -8
- package/esm/src/transforms/mdx/esm-module-loader/missing-module.d.ts +2 -0
- package/esm/src/transforms/mdx/esm-module-loader/missing-module.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/missing-module.js +4 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fallback.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fallback.js +5 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.d.ts +2 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.js +50 -11
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.d.ts +24 -12
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.js +201 -18
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts +5 -0
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.d.ts +22 -2
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/source-spans.js +2080 -129
- package/esm/src/transforms/mdx/esm-module-loader/utils/stub-module.d.ts +11 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/stub-module.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/utils/stub-module.js +32 -15
- package/esm/src/transforms/pipeline/stages/compile.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/compile.js +44 -0
- package/esm/src/transforms/shared/specifier-suffix.d.ts +25 -0
- package/esm/src/transforms/shared/specifier-suffix.d.ts.map +1 -0
- package/esm/src/transforms/shared/specifier-suffix.js +43 -0
- package/esm/src/trigger/index.d.ts +2 -2
- package/esm/src/trigger/index.d.ts.map +1 -1
- package/esm/src/trigger/index.js +1 -1
- package/esm/src/trigger/local-runner.d.ts +2 -2
- package/esm/src/trigger/local-runner.d.ts.map +1 -1
- package/esm/src/trigger/local-runner.js +11 -4
- package/esm/src/trigger/target.d.ts +97 -5
- package/esm/src/trigger/target.d.ts.map +1 -1
- package/esm/src/trigger/target.js +175 -5
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/webhook/types.d.ts +21 -6
- package/esm/src/webhook/types.d.ts.map +1 -1
- package/esm/src/webhook/validation.d.ts.map +1 -1
- package/esm/src/webhook/validation.js +27 -39
- package/esm/templates/index.d.ts +1 -1
- package/esm/templates/index.d.ts.map +1 -1
- package/esm/templates/loader.d.ts +6 -6
- package/esm/templates/loader.d.ts.map +1 -1
- package/esm/templates/loader.js +34 -18
- package/esm/templates/manifest.generated.d.ts +3 -0
- package/esm/templates/manifest.generated.d.ts.map +1 -0
- package/esm/templates/manifest.generated.js +2 -0
- package/package.json +8 -8
- package/esm/templates/manifest.d.ts +0 -664
- package/esm/templates/manifest.d.ts.map +0 -1
- package/esm/templates/manifest.js +0 -662
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
import { join } from "../../../platform/compat/path/index.js";
|
|
7
7
|
import { rendererLogger } from "../../../utils/index.js";
|
|
8
8
|
import { isCacheWriteRaceError } from "../../../utils/cache-file-ops.js";
|
|
9
|
+
import { isNotFoundError } from "../../../platform/compat/fs.js";
|
|
9
10
|
import { hashCodeHex } from "../../../utils/hash-utils.js";
|
|
10
11
|
import { getModulePathCache, saveModulePathCache, } from "../../../transforms/mdx/esm-module-loader/cache/index.js";
|
|
11
|
-
import { buildMdxEsmPathCacheKey } from "../../../transforms/mdx/esm-module-loader/cache-format.js";
|
|
12
|
+
import { buildMdxEsmPathCacheKey, UNRESOLVED_IMPORTS_SIDECAR_SUFFIX, } from "../../../transforms/mdx/esm-module-loader/cache-format.js";
|
|
13
|
+
import { isMemberNameBefore } from "../../../transforms/mdx/esm-module-loader/utils/source-spans.js";
|
|
12
14
|
import { buildModuleTransformCacheVariant } from "./module-cache-lookup.js";
|
|
13
15
|
const logger = rendererLogger.component("module-loader");
|
|
14
16
|
/** Maximum number of directories to track to prevent memory leaks. */
|
|
@@ -45,15 +47,354 @@ async function ensureDir(adapter, dir, force = false) {
|
|
|
45
47
|
createdDirs.add(dir);
|
|
46
48
|
pruneCreatedDirs();
|
|
47
49
|
}
|
|
50
|
+
/** Read unresolved-import evidence stored beside a transformed artifact. */
|
|
51
|
+
export async function readPersistedUnresolvedSpecifiers(modulePath, localAdapter) {
|
|
52
|
+
try {
|
|
53
|
+
const content = await localAdapter.fs.readFile(`${modulePath}${UNRESOLVED_IMPORTS_SIDECAR_SUFFIX}`);
|
|
54
|
+
const decoded = typeof content === "string" ? content : new TextDecoder().decode(content);
|
|
55
|
+
const parsed = JSON.parse(decoded);
|
|
56
|
+
if (!Array.isArray(parsed) || !parsed.every((value) => typeof value === "string")) {
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
59
|
+
return parsed;
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
if (isNotFoundError(error))
|
|
63
|
+
return [];
|
|
64
|
+
logger.debug("Unresolved-import cache evidence unavailable", {
|
|
65
|
+
modulePath: modulePath.slice(-60),
|
|
66
|
+
error: error instanceof Error ? error.message : String(error),
|
|
67
|
+
});
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
48
71
|
/**
|
|
49
72
|
* Whether transformed output exposes a default export, so a cycle alias knows
|
|
50
73
|
* to re-export it. Covers esbuild's `export default …`, `… as default`, and
|
|
51
74
|
* `export { default } from …` forms.
|
|
52
75
|
*/
|
|
53
76
|
function hasDefaultExport(code) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
77
|
+
let previousTokenIndex = -1;
|
|
78
|
+
const controlConditionCloseParens = new Set();
|
|
79
|
+
const statementBlockCloseBraces = new Set();
|
|
80
|
+
const openParens = [];
|
|
81
|
+
const openBraces = [];
|
|
82
|
+
let openBracketCount = 0;
|
|
83
|
+
let pendingDeclaration;
|
|
84
|
+
for (let index = 0; index < code.length;) {
|
|
85
|
+
index = skipTrivia(code, index);
|
|
86
|
+
if (index >= code.length)
|
|
87
|
+
break;
|
|
88
|
+
if (startsIdentifier(code, index, "export")) {
|
|
89
|
+
const exportIndex = index;
|
|
90
|
+
index = skipTrivia(code, index + "export".length);
|
|
91
|
+
if (startsIdentifier(code, index, "default"))
|
|
92
|
+
return true;
|
|
93
|
+
if (code[index] === "{" && exportListExposesDefault(code, index))
|
|
94
|
+
return true;
|
|
95
|
+
if (code[index] === "*") {
|
|
96
|
+
index = skipTrivia(code, index + 1);
|
|
97
|
+
if (startsIdentifier(code, index, "as")) {
|
|
98
|
+
index = skipTrivia(code, index + "as".length);
|
|
99
|
+
if (startsIdentifier(code, index, "default"))
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
index = exportIndex + "export".length;
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
const next = skipTextToken(code, index, {
|
|
107
|
+
previousTokenIndex,
|
|
108
|
+
controlConditionCloseParens,
|
|
109
|
+
statementBlockCloseBraces,
|
|
110
|
+
});
|
|
111
|
+
if (next !== index) {
|
|
112
|
+
previousTokenIndex = next - 1;
|
|
113
|
+
index = next;
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if (isIdentifierStart(code[index])) {
|
|
117
|
+
const identifierStart = index;
|
|
118
|
+
index++;
|
|
119
|
+
while (index < code.length && isIdentifierPart(code[index]))
|
|
120
|
+
index++;
|
|
121
|
+
const identifier = code.slice(identifierStart, index);
|
|
122
|
+
if ((identifier === "function" || identifier === "class") &&
|
|
123
|
+
startsDeclaration(code, previousTokenIndex, controlConditionCloseParens)) {
|
|
124
|
+
pendingDeclaration = {
|
|
125
|
+
kind: identifier,
|
|
126
|
+
braceDepth: openBraces.length,
|
|
127
|
+
parenDepth: openParens.length,
|
|
128
|
+
bracketDepth: openBracketCount,
|
|
129
|
+
parameterListClosed: false,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
previousTokenIndex = index - 1;
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
if (code[index] === "(") {
|
|
136
|
+
const keyword = identifierBefore(code, previousTokenIndex);
|
|
137
|
+
openParens.push(keyword === "if" || keyword === "while" || keyword === "for" ||
|
|
138
|
+
keyword === "with" || keyword === "switch" || keyword === "catch");
|
|
139
|
+
}
|
|
140
|
+
else if (code[index] === ")") {
|
|
141
|
+
if (openParens.pop() === true)
|
|
142
|
+
controlConditionCloseParens.add(index);
|
|
143
|
+
if (pendingDeclaration?.kind === "function" &&
|
|
144
|
+
openParens.length === pendingDeclaration.parenDepth) {
|
|
145
|
+
pendingDeclaration.parameterListClosed = true;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
else if (code[index] === "[") {
|
|
149
|
+
openBracketCount++;
|
|
150
|
+
}
|
|
151
|
+
else if (code[index] === "]") {
|
|
152
|
+
openBracketCount = Math.max(0, openBracketCount - 1);
|
|
153
|
+
}
|
|
154
|
+
else if (code[index] === "{") {
|
|
155
|
+
const opensDeclarationBody = pendingDeclaration !== undefined &&
|
|
156
|
+
openBraces.length === pendingDeclaration.braceDepth &&
|
|
157
|
+
openParens.length === pendingDeclaration.parenDepth &&
|
|
158
|
+
openBracketCount === pendingDeclaration.bracketDepth &&
|
|
159
|
+
(pendingDeclaration.kind === "class" || pendingDeclaration.parameterListClosed);
|
|
160
|
+
openBraces.push(opensDeclarationBody ||
|
|
161
|
+
code[previousTokenIndex] === ")" &&
|
|
162
|
+
controlConditionCloseParens.has(previousTokenIndex));
|
|
163
|
+
if (opensDeclarationBody)
|
|
164
|
+
pendingDeclaration = undefined;
|
|
165
|
+
}
|
|
166
|
+
else if (code[index] === "}" && openBraces.pop() === true) {
|
|
167
|
+
statementBlockCloseBraces.add(index);
|
|
168
|
+
}
|
|
169
|
+
previousTokenIndex = index;
|
|
170
|
+
index++;
|
|
171
|
+
}
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
function startsDeclaration(code, previousTokenIndex, controlConditionCloseParens) {
|
|
175
|
+
if (previousTokenIndex < 0)
|
|
176
|
+
return true;
|
|
177
|
+
if (";{}:".includes(code[previousTokenIndex] ?? ""))
|
|
178
|
+
return true;
|
|
179
|
+
if (controlConditionCloseParens.has(previousTokenIndex))
|
|
180
|
+
return true;
|
|
181
|
+
return ["async", "default", "export"].includes(identifierBefore(code, previousTokenIndex) ?? "");
|
|
182
|
+
}
|
|
183
|
+
function exportListExposesDefault(code, openBraceIndex) {
|
|
184
|
+
const closeBraceIndex = findExportListCloseBrace(code, openBraceIndex);
|
|
185
|
+
if (closeBraceIndex === -1)
|
|
186
|
+
return false;
|
|
187
|
+
const specifiers = splitExportSpecifiers(code.slice(openBraceIndex + 1, closeBraceIndex));
|
|
188
|
+
return specifiers.some((specifier) => exportedName(specifier) === "default");
|
|
189
|
+
}
|
|
190
|
+
function findExportListCloseBrace(code, openBraceIndex) {
|
|
191
|
+
for (let index = openBraceIndex + 1; index < code.length;) {
|
|
192
|
+
const next = skipTextToken(code, index);
|
|
193
|
+
if (next !== index) {
|
|
194
|
+
index = next;
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
if (code[index] === "}")
|
|
198
|
+
return index;
|
|
199
|
+
index++;
|
|
200
|
+
}
|
|
201
|
+
return -1;
|
|
202
|
+
}
|
|
203
|
+
function splitExportSpecifiers(list) {
|
|
204
|
+
const specifiers = [];
|
|
205
|
+
let start = 0;
|
|
206
|
+
for (let index = 0; index < list.length;) {
|
|
207
|
+
const next = skipTextToken(list, index);
|
|
208
|
+
if (next !== index) {
|
|
209
|
+
index = next;
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
if (list[index] === ",") {
|
|
213
|
+
specifiers.push(list.slice(start, index));
|
|
214
|
+
start = index + 1;
|
|
215
|
+
}
|
|
216
|
+
index++;
|
|
217
|
+
}
|
|
218
|
+
specifiers.push(list.slice(start));
|
|
219
|
+
return specifiers;
|
|
220
|
+
}
|
|
221
|
+
function exportedName(specifier) {
|
|
222
|
+
const tokens = identifierTokens(specifier);
|
|
223
|
+
if (tokens.length === 0)
|
|
224
|
+
return undefined;
|
|
225
|
+
for (let index = tokens.length - 2; index >= 0; index--) {
|
|
226
|
+
if (tokens[index] === "as")
|
|
227
|
+
return tokens[index + 1];
|
|
228
|
+
}
|
|
229
|
+
return tokens.length === 1 ? tokens[0] : undefined;
|
|
230
|
+
}
|
|
231
|
+
function identifierTokens(source) {
|
|
232
|
+
const tokens = [];
|
|
233
|
+
for (let index = 0; index < source.length;) {
|
|
234
|
+
const next = skipTextToken(source, index);
|
|
235
|
+
if (next !== index) {
|
|
236
|
+
index = next;
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
if (isIdentifierStart(source[index])) {
|
|
240
|
+
const start = index;
|
|
241
|
+
index++;
|
|
242
|
+
while (index < source.length && isIdentifierPart(source[index]))
|
|
243
|
+
index++;
|
|
244
|
+
tokens.push(source.slice(start, index));
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
index++;
|
|
248
|
+
}
|
|
249
|
+
return tokens;
|
|
250
|
+
}
|
|
251
|
+
function skipTrivia(source, index) {
|
|
252
|
+
while (index < source.length) {
|
|
253
|
+
const char = source[index];
|
|
254
|
+
if (char === " " || char === "\t" || char === "\n" || char === "\r" || char === "\f") {
|
|
255
|
+
index++;
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
const next = skipComment(source, index);
|
|
259
|
+
if (next !== index) {
|
|
260
|
+
index = next;
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
return index;
|
|
266
|
+
}
|
|
267
|
+
function skipTextToken(source, index, context) {
|
|
268
|
+
const commentEnd = skipComment(source, index);
|
|
269
|
+
if (commentEnd !== index)
|
|
270
|
+
return commentEnd;
|
|
271
|
+
const regexEnd = skipRegexToken(source, index, context);
|
|
272
|
+
if (regexEnd !== index)
|
|
273
|
+
return regexEnd;
|
|
274
|
+
const char = source[index];
|
|
275
|
+
if (char !== '"' && char !== "'" && char !== "`")
|
|
276
|
+
return index;
|
|
277
|
+
for (index++; index < source.length; index++) {
|
|
278
|
+
if (source[index] === "\\") {
|
|
279
|
+
index++;
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
if (source[index] === char)
|
|
283
|
+
return index + 1;
|
|
284
|
+
}
|
|
285
|
+
return source.length;
|
|
286
|
+
}
|
|
287
|
+
function skipRegexToken(source, index, context) {
|
|
288
|
+
if (source[index] !== "/" || source[index + 1] === "/" || source[index + 1] === "*") {
|
|
289
|
+
return index;
|
|
290
|
+
}
|
|
291
|
+
const previous = context?.previousTokenIndex ?? previousSignificantIndex(source, index);
|
|
292
|
+
if (previous >= 0) {
|
|
293
|
+
const char = source[previous];
|
|
294
|
+
if (char === ")" && context?.controlConditionCloseParens.has(previous)) {
|
|
295
|
+
// A statement can start with a regex immediately after a control
|
|
296
|
+
// condition, for example `if (ready) /pattern/.test(value)`.
|
|
297
|
+
}
|
|
298
|
+
else if (char === "}" && context?.statementBlockCloseBraces.has(previous)) {
|
|
299
|
+
// The same is true after the braced form, for example
|
|
300
|
+
// `if (ready) {} /pattern/.test(value)` or
|
|
301
|
+
// `function ready() {} /pattern/.test(value)`.
|
|
302
|
+
}
|
|
303
|
+
else if (!"([{=,:;!~?&|+-*%^<>".includes(char)) {
|
|
304
|
+
const keyword = identifierBefore(source, previous);
|
|
305
|
+
if (keyword !== null && isMemberNameBefore(source, previous))
|
|
306
|
+
return index;
|
|
307
|
+
if (![
|
|
308
|
+
"case",
|
|
309
|
+
"delete",
|
|
310
|
+
"do",
|
|
311
|
+
"else",
|
|
312
|
+
"extends",
|
|
313
|
+
"in",
|
|
314
|
+
"instanceof",
|
|
315
|
+
"new",
|
|
316
|
+
"await",
|
|
317
|
+
"return",
|
|
318
|
+
"throw",
|
|
319
|
+
"typeof",
|
|
320
|
+
"void",
|
|
321
|
+
"yield",
|
|
322
|
+
].includes(keyword ?? ""))
|
|
323
|
+
return index;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
let cursor = index + 1;
|
|
327
|
+
let inCharacterClass = false;
|
|
328
|
+
while (cursor < source.length) {
|
|
329
|
+
const char = source[cursor];
|
|
330
|
+
if (char === "\\") {
|
|
331
|
+
cursor += 2;
|
|
332
|
+
continue;
|
|
333
|
+
}
|
|
334
|
+
if (char === "[" && !inCharacterClass) {
|
|
335
|
+
inCharacterClass = true;
|
|
336
|
+
cursor++;
|
|
337
|
+
continue;
|
|
338
|
+
}
|
|
339
|
+
if (char === "]" && inCharacterClass) {
|
|
340
|
+
inCharacterClass = false;
|
|
341
|
+
cursor++;
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
if (char === "/" && !inCharacterClass) {
|
|
345
|
+
cursor++;
|
|
346
|
+
while (isIdentifierPart(source[cursor]))
|
|
347
|
+
cursor++;
|
|
348
|
+
return cursor;
|
|
349
|
+
}
|
|
350
|
+
if (char === "\n" || char === "\r")
|
|
351
|
+
return index;
|
|
352
|
+
cursor++;
|
|
353
|
+
}
|
|
354
|
+
return index;
|
|
355
|
+
}
|
|
356
|
+
function previousSignificantIndex(source, index) {
|
|
357
|
+
let cursor = index - 1;
|
|
358
|
+
while (cursor >= 0 && /\s/.test(source[cursor] ?? ""))
|
|
359
|
+
cursor--;
|
|
360
|
+
return cursor;
|
|
361
|
+
}
|
|
362
|
+
function identifierBefore(source, endIndex) {
|
|
363
|
+
const end = endIndex + 1;
|
|
364
|
+
let start = end;
|
|
365
|
+
while (start > 0 && isIdentifierPart(source[start - 1]))
|
|
366
|
+
start--;
|
|
367
|
+
return start === end ? null : source.slice(start, end);
|
|
368
|
+
}
|
|
369
|
+
function skipComment(source, index) {
|
|
370
|
+
if (source[index] !== "/" || index + 1 >= source.length)
|
|
371
|
+
return index;
|
|
372
|
+
if (source[index + 1] === "/") {
|
|
373
|
+
const newlineIndex = source.indexOf("\n", index + 2);
|
|
374
|
+
return newlineIndex === -1 ? source.length : newlineIndex + 1;
|
|
375
|
+
}
|
|
376
|
+
if (source[index + 1] === "*") {
|
|
377
|
+
const closeIndex = source.indexOf("*/", index + 2);
|
|
378
|
+
return closeIndex === -1 ? source.length : closeIndex + 2;
|
|
379
|
+
}
|
|
380
|
+
return index;
|
|
381
|
+
}
|
|
382
|
+
function startsIdentifier(source, index, identifier) {
|
|
383
|
+
if (source.slice(index, index + identifier.length) !== identifier)
|
|
384
|
+
return false;
|
|
385
|
+
const before = index > 0 ? source[index - 1] : "";
|
|
386
|
+
const after = source[index + identifier.length] ?? "";
|
|
387
|
+
return !isIdentifierPart(before) && !isIdentifierPart(after);
|
|
388
|
+
}
|
|
389
|
+
function isIdentifierStart(char) {
|
|
390
|
+
if (char === undefined)
|
|
391
|
+
return false;
|
|
392
|
+
return char === "$" || char === "_" ||
|
|
393
|
+
(char >= "A" && char <= "Z") ||
|
|
394
|
+
(char >= "a" && char <= "z");
|
|
395
|
+
}
|
|
396
|
+
function isIdentifierPart(char) {
|
|
397
|
+
return isIdentifierStart(char) || (char !== undefined && char >= "0" && char <= "9");
|
|
57
398
|
}
|
|
58
399
|
/**
|
|
59
400
|
* Write a stable, non-hashed alias next to a cycle target's hashed artifact.
|
|
@@ -92,7 +433,15 @@ async function writeCycleTargetAlias(input, outputRelativePath, hashedFileName)
|
|
|
92
433
|
}
|
|
93
434
|
/** Write a transformed module artifact and register cache pointers. */
|
|
94
435
|
export async function persistTransformedModule(input) {
|
|
95
|
-
const
|
|
436
|
+
const unresolvedSpecifiers = [...new Set(input.unresolvedSpecifiers ?? [])].sort();
|
|
437
|
+
const serializedUnresolvedSpecifiers = JSON.stringify(unresolvedSpecifiers);
|
|
438
|
+
// Evidence changes the artifact identity only when evidence exists. This
|
|
439
|
+
// keeps the common no-evidence path stable and prevents concurrent writers
|
|
440
|
+
// with different classification data from sharing one mutable sidecar.
|
|
441
|
+
const transformedIdentity = unresolvedSpecifiers.length === 0
|
|
442
|
+
? input.transformedCode
|
|
443
|
+
: `${input.transformedCode}\0${serializedUnresolvedSpecifiers}`;
|
|
444
|
+
const transformedHash = hashCodeHex(transformedIdentity).slice(0, 8);
|
|
96
445
|
const relativePath = input.filePath.startsWith(input.projectDir)
|
|
97
446
|
? input.filePath.slice(input.projectDir.length).replace(/^\/+/, "")
|
|
98
447
|
: input.filePath.replace(/^\/+/, "");
|
|
@@ -135,7 +484,23 @@ export async function persistTransformedModule(input) {
|
|
|
135
484
|
throw retryError;
|
|
136
485
|
}
|
|
137
486
|
}
|
|
138
|
-
|
|
487
|
+
// Publish the path cache only after its tenant-attribution evidence is
|
|
488
|
+
// durable. A new worker can otherwise reuse the transformed artifact from
|
|
489
|
+
// _index.json without knowing which authored imports remained unresolved.
|
|
490
|
+
let shouldPublishReusableCache = true;
|
|
491
|
+
if (unresolvedSpecifiers.length > 0) {
|
|
492
|
+
try {
|
|
493
|
+
await input.localAdapter.fs.writeFile(`${tempFilePath}${UNRESOLVED_IMPORTS_SIDECAR_SUFFIX}`, serializedUnresolvedSpecifiers);
|
|
494
|
+
}
|
|
495
|
+
catch (error) {
|
|
496
|
+
shouldPublishReusableCache = false;
|
|
497
|
+
logger.warn("Failed to persist unresolved-import evidence", {
|
|
498
|
+
filePath: input.filePath.slice(-40),
|
|
499
|
+
error: error instanceof Error ? error.message : String(error),
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
if (shouldPublishReusableCache && input.contentSourceId) {
|
|
139
504
|
const normalizedPath = `_vf_modules/${relativePath.replace(/\.(tsx?|jsx|mdx)$/, ".js")}`;
|
|
140
505
|
const mdxCacheKey = buildMdxEsmPathCacheKey(normalizedPath, input.reactVersion, buildModuleTransformCacheVariant(input.dependencyPinningCacheKey, input.moduleServerOrigin));
|
|
141
506
|
const cache = await getModulePathCache(input.tmpDir);
|
|
@@ -149,7 +514,9 @@ export async function persistTransformedModule(input) {
|
|
|
149
514
|
tempFilePath: tempFilePath.slice(-60),
|
|
150
515
|
});
|
|
151
516
|
}
|
|
152
|
-
|
|
517
|
+
if (shouldPublishReusableCache) {
|
|
518
|
+
input.moduleCache.set(input.cacheKey, tempFilePath);
|
|
519
|
+
}
|
|
153
520
|
if (input.isCycleTarget) {
|
|
154
521
|
const hashedFileName = jsPath.slice(jsPath.lastIndexOf("/") + 1);
|
|
155
522
|
await writeCycleTargetAlias(input, outputRelativePath, hashedFileName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/src/rendering/orchestrator/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,iCAAiC,CAAC;AASzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,M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AyB,EAAE,aAAa,CAAC,CAAC;CAC5E;AA4CD,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,mBAAmB,CAAgC;gBAE/C,MAAM,EAAE,oBAAoB;IAcxC,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,oBAAoB;IA0B5B;;;;OAIG;YACW,yBAAyB;IAoCvC;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAKxB,OAAO,CAAC,UAAU;YAOJ,0BAA0B;IAaxC;;;;;;;;;OASG;YACW,qBAAqB;IAyGnC;;;OAGG;YACW,mBAAmB;IAwHjC;;;;;;;OAOG;YACW,yBAAyB;IAiCvC,OAAO,CAAC,uBAAuB;IAkCzB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC;IAsW9E,+EAA+E;IACzE,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC;YA+JzE,kBAAkB;YA2ClB,cAAc;IAW5B,OAAO,CAAC,uBAAuB;YAYjB,kBAAkB;IA+FhC,OAAO,CAAC,kBAAkB;YAQZ,uBAAuB;IAmBrC;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;CA8BtB"}
|
|
@@ -36,7 +36,7 @@ import { buildReleaseAssetModules } from "../../release-assets/client-module-map
|
|
|
36
36
|
import { getCSSByHashAsync, regenerateCSSByHash, } from "../../html/styles-builder/tailwind-compiler.js";
|
|
37
37
|
import { getReadyManifestForRender } from "../../release-assets/manifest-cache.js";
|
|
38
38
|
import { createEsmCache, createModuleCache, loadModule } from "./module-loader/index.js";
|
|
39
|
-
import { isBuildFailure } from "./module-loader/build-failure.js";
|
|
39
|
+
import { isBuildFailure, isTenantBuildFailure } from "./module-loader/build-failure.js";
|
|
40
40
|
import { getCSSImports, runWithCSSCollector, } from "../../modules/react-loader/css-import-collector.js";
|
|
41
41
|
import { assembleRenderResult } from "./render-result-assembly.js";
|
|
42
42
|
import { isMdxEsmExportMismatchError, recoverStaleMdxEsmPreviewCaches } from "../page-rendering.js";
|
|
@@ -212,6 +212,7 @@ export class RenderPipeline {
|
|
|
212
212
|
path: result.path,
|
|
213
213
|
error: errorMessage,
|
|
214
214
|
buildFailure: isBuildFailure(result.error),
|
|
215
|
+
tenantBuildFailure: isTenantBuildFailure(result.error),
|
|
215
216
|
});
|
|
216
217
|
renderPageLog.error("Critical page module failed to load", {
|
|
217
218
|
path: result.path,
|
|
@@ -236,6 +237,16 @@ export class RenderPipeline {
|
|
|
236
237
|
// one that compiled and threw at module scope is an application
|
|
237
238
|
// error the project's own error page should present.
|
|
238
239
|
buildFailure: criticalFailures.some((f) => f.buildFailure),
|
|
240
|
+
// Only explicit compiler/source classifications may affect
|
|
241
|
+
// observability severity. Infrastructure can fail in the same phase.
|
|
242
|
+
//
|
|
243
|
+
// `every` rather than `some`: today `criticalFailures` holds at most
|
|
244
|
+
// one entry (collectModulesToLoad pushes exactly one `type: "page"`,
|
|
245
|
+
// and only pages reach here), so the two are equivalent. If that ever
|
|
246
|
+
// changes, one tenant mistake must not downgrade a framework fault
|
|
247
|
+
// that failed alongside it. The array is non-empty inside this branch,
|
|
248
|
+
// so `every` cannot vacuously return true.
|
|
249
|
+
tenantBuildFailure: criticalFailures.every((f) => f.tenantBuildFailure),
|
|
239
250
|
loadedCount: loaded.length,
|
|
240
251
|
totalModules: modules.length,
|
|
241
252
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type RetryConfig } from "../platform/adapters/veryfront-api-client/retry-handler.js";
|
|
2
|
+
import type { ResolvedTriggerTarget } from "../trigger/target.js";
|
|
2
3
|
import { type CancelRunResponse, type CreateRunResponse, type Run, type RunEventList, type RunList, type ScheduleRunCreateResponse } from "./schemas.js";
|
|
3
4
|
/** Configuration used by the Veryfront runs client. */
|
|
4
5
|
export interface VeryfrontRunsClientConfig {
|
|
@@ -61,10 +62,7 @@ export interface CreateScheduleRunFromSourceInput extends ProjectScopedOptions {
|
|
|
61
62
|
export interface CreateScheduleRunFromSourceResult {
|
|
62
63
|
scheduleRun: ScheduleRunCreateResponse;
|
|
63
64
|
timeoutSeconds: number;
|
|
64
|
-
target:
|
|
65
|
-
kind: "task" | "workflow" | "agent";
|
|
66
|
-
id: string;
|
|
67
|
-
};
|
|
65
|
+
target: ResolvedTriggerTarget;
|
|
68
66
|
}
|
|
69
67
|
/** Input payload for knowledge ingest by upload IDs. */
|
|
70
68
|
export interface KnowledgeIngestByUploadIdsInput extends Omit<CreateTaskRunInput, "target" | "config"> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs-client.d.ts","sourceRoot":"","sources":["../../../src/src/runs/runs-client.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,4DAA4D,CAAC;AAGpE,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,iBAAiB,EAEtB,KAAK,GAAG,EACR,KAAK,YAAY,EAEjB,KAAK,OAAO,EAIZ,KAAK,yBAAyB,EAE/B,MAAM,cAAc,CAAC;AAQtB,uDAAuD;AACvD,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;CAC9B;AAED,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wDAAwD;AACxD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEpF,2DAA2D;AAC3D,MAAM,W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6BAA6B;IAYrC,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,uBAAuB;YAcjB,WAAW;CA4B1B;AAED,4BAA4B;AAC5B,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,yBAAyB,GAAG,mBAAmB,CAExF"}
|
|
@@ -110,10 +110,15 @@ export declare const getScheduleReferenceListSchema: () => import("../internal-a
|
|
|
110
110
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
111
111
|
name: import("../internal-agents/schema.js").Schema<string>;
|
|
112
112
|
status: import("../internal-agents/schema.js").Schema<"active" | "deleting" | "paused">;
|
|
113
|
-
target: import("../internal-agents/schema.js").Schema<
|
|
114
|
-
kind:
|
|
115
|
-
id:
|
|
116
|
-
}
|
|
113
|
+
target: import("../internal-agents/schema.js").Schema<{
|
|
114
|
+
kind: "task" | "workflow";
|
|
115
|
+
id: string;
|
|
116
|
+
} | {
|
|
117
|
+
conversationId?: string | null | undefined;
|
|
118
|
+
conversationMode?: "none" | "create_new" | "existing" | undefined;
|
|
119
|
+
kind: "agent";
|
|
120
|
+
id: string;
|
|
121
|
+
}>;
|
|
117
122
|
definition_source: import("../internal-agents/schema.js").Schema<"source" | "manual">;
|
|
118
123
|
source_trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
119
124
|
timeout_seconds: import("../internal-agents/schema.js").Schema<number>;
|
|
@@ -342,10 +347,15 @@ export declare const ScheduleReferenceListSchema: import("../internal-agents/sch
|
|
|
342
347
|
id: import("../internal-agents/schema.js").Schema<string>;
|
|
343
348
|
name: import("../internal-agents/schema.js").Schema<string>;
|
|
344
349
|
status: import("../internal-agents/schema.js").Schema<"active" | "deleting" | "paused">;
|
|
345
|
-
target: import("../internal-agents/schema.js").Schema<
|
|
346
|
-
kind:
|
|
347
|
-
id:
|
|
348
|
-
}
|
|
350
|
+
target: import("../internal-agents/schema.js").Schema<{
|
|
351
|
+
kind: "task" | "workflow";
|
|
352
|
+
id: string;
|
|
353
|
+
} | {
|
|
354
|
+
conversationId?: string | null | undefined;
|
|
355
|
+
conversationMode?: "none" | "create_new" | "existing" | undefined;
|
|
356
|
+
kind: "agent";
|
|
357
|
+
id: string;
|
|
358
|
+
}>;
|
|
349
359
|
definition_source: import("../internal-agents/schema.js").Schema<"source" | "manual">;
|
|
350
360
|
source_trigger_id: import("../internal-agents/schema.js").Schema<string | null>;
|
|
351
361
|
timeout_seconds: import("../internal-agents/schema.js").Schema<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/src/runs/schemas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/src/runs/schemas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB,6FAE5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,+HAE9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;GAK7B,CAAC;AAEF,eAAO,MAAM,6BAA6B,uGAEzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,gGAEnC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;GAMtC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCxB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMtC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;GAM9C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;GA+C1C,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKtC,CAAC;AAEF,eAAO,MAAM,iBAAi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D,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC;AACjG,qEAAqE;AACrE,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC;AACrF,gEAAgE;AAChE,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC;AAC3F,6BAA6B;AAC7B,MAAM,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAC/D,gDAAgD;AAChD,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC;AAC3F,mEAAmE;AACnE,MAAM,MAAM,yBAAyB,GAAG,WAAW,CACjD,UAAU,CAAC,OAAO,kCAAkC,CAAC,CACtD,CAAC;AACF,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC;AAC3F,8BAA8B;AAC9B,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AACzE,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;AACjF,sCAAsC;AACtC,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC"}
|
package/esm/src/runs/schemas.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineSchema, lazySchema } from "../schemas/index.js";
|
|
2
|
+
import { agentConversationDiagnostic } from "../trigger/target.js";
|
|
2
3
|
export const getRunKindSchema = defineSchema((v) => v.enum(["agent", "workflow", "task", "eval"]));
|
|
3
4
|
export const getRunStatusSchema = defineSchema((v) => v.enum(["pending", "running", "waiting", "completed", "failed", "cancelled"]));
|
|
4
5
|
export const getRunOwnerSchema = defineSchema((v) => v.object({
|
|
@@ -65,6 +66,31 @@ export const getScheduleReferenceListSchema = defineSchema((v) => v.object({
|
|
|
65
66
|
target: v.object({
|
|
66
67
|
kind: v.enum(["task", "workflow", "agent"]),
|
|
67
68
|
id: v.string(),
|
|
69
|
+
conversation_mode: v.enum(["create_new", "existing", "none"]).optional(),
|
|
70
|
+
conversation_id: v.string().nullable().optional(),
|
|
71
|
+
}).superRefine(({ kind, conversation_mode, conversation_id }, context) => {
|
|
72
|
+
if (kind !== "agent" &&
|
|
73
|
+
(conversation_mode !== undefined || conversation_id !== undefined)) {
|
|
74
|
+
context.addIssue({
|
|
75
|
+
code: "custom",
|
|
76
|
+
message: "Schedule target conversation fields are valid only for agent targets.",
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
if (kind === "agent") {
|
|
80
|
+
const detail = agentConversationDiagnostic("Schedule target", conversation_mode, conversation_id);
|
|
81
|
+
if (detail !== null) {
|
|
82
|
+
context.addIssue({ code: "custom", message: detail });
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}).transform(({ kind, id, conversation_mode, conversation_id }) => {
|
|
86
|
+
if (kind !== "agent")
|
|
87
|
+
return { kind, id };
|
|
88
|
+
return {
|
|
89
|
+
kind,
|
|
90
|
+
id,
|
|
91
|
+
...(conversation_mode === undefined ? {} : { conversationMode: conversation_mode }),
|
|
92
|
+
...(conversation_id === undefined ? {} : { conversationId: conversation_id }),
|
|
93
|
+
};
|
|
68
94
|
}),
|
|
69
95
|
definition_source: v.enum(["manual", "source"]),
|
|
70
96
|
source_trigger_id: v.string().nullable(),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export type ModelCallMessage = {
|
|
3
3
|
role: "system";
|
|
4
4
|
content: string;
|
|
5
|
+
providerOptions?: Record<string, unknown>;
|
|
5
6
|
} | {
|
|
6
7
|
role: "user";
|
|
7
8
|
content: Array<{
|
|
@@ -49,7 +50,11 @@ export type ModelCallTool = {
|
|
|
49
50
|
id: `${string}.${string}`;
|
|
50
51
|
args: Record<string, unknown>;
|
|
51
52
|
};
|
|
52
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Provider-agnostic input persisted before one model dispatch. System-message
|
|
55
|
+
* provider options contain only validated prompt-cache metadata. Other
|
|
56
|
+
* provider-specific values are excluded because run events are durable.
|
|
57
|
+
*/
|
|
53
58
|
export interface AgentRunModelCallContextEvent {
|
|
54
59
|
type: "AGENT_RUN_MODEL_CALL_CONTEXT";
|
|
55
60
|
messages: ModelCallMessage[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-call-context.d.ts","sourceRoot":"","sources":["../../../src/src/runtime/model-call-context.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"model-call-context.d.ts","sourceRoot":"","sources":["../../../src/src/runtime/model-call-context.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAC9E;IACA,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CACV;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAC9B;QAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAChF,CAAC;CACH,GACC;IACA,IAAI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,aAAa,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-bridge.d.ts","sourceRoot":"","sources":["../../../src/src/runtime/runtime-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AAG9G,OAAO,KAAK,EACV,yBAAyB,EAEzB,mBAAmB,EACnB,6BAA6B,EAC7B,cAAc,EACf,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EAEb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime-bridge.d.ts","sourceRoot":"","sources":["../../../src/src/runtime/runtime-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AAG9G,OAAO,KAAK,EACV,yBAAyB,EAEzB,mBAAmB,EACnB,6BAA6B,EAC7B,cAAc,EACf,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EAEb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAiBhE,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,4BAA4B,EAAE,CAAC;IACzC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,2BAA2B,CAAC,EAAE,6BAA6B,CAAC;IAC5D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,M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