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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/agent/types.ts"],"names":[],"mappings":"AAAA;;4BAE4B;AAE5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,"file":"chat-ui-message-helpers.d.ts","sourceRoot":"","sources":["../../../src/src/chat/chat-ui-message-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE7E,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,kEAAkE;AAClE,MAAM,WAAW,wCAAwC;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,EAAE,uBAAuB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"chat-ui-message-helpers.d.ts","sourceRoot":"","sources":["../../../src/src/chat/chat-ui-message-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE7E,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,kEAAkE;AAClE,MAAM,WAAW,wCAAwC;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,EAAE,uBAAuB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAwQD,wCAAwC;AACxC,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,CAkChF;AAED,qCAAqC;AACrC,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,GAAG,SAAS,CAG1F;AAED,iDAAiD;AACjD,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,wCAAwC,GAC9C,mBAAmB,CAmBrB;AAED,wCAAwC;AACxC,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,GACjC,kBAAkB,CAAC,mBAAmB,CAAC,CA0BzC;AAED,qCAAqC;AACrC,wBAAuB,yBAAyB,CAAC,gBAAgB,EAC/D,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,GAC1D,aAAa,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CA6GrD;AAED,yCAAyC;AACzC,wBAAuB,4BAA4B,CACjD,MAAM,EAAE,aAAa,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,GACjD,aAAa,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAIxD"}
|
|
@@ -147,18 +147,18 @@ function normalizeBillingMetadata(value) {
|
|
|
147
147
|
function splitReplayDelta(existing, replayOffset, delta) {
|
|
148
148
|
const remaining = existing.slice(replayOffset);
|
|
149
149
|
if (!remaining) {
|
|
150
|
-
return { emit: delta, nextReplayOffset: null };
|
|
150
|
+
return { diverged: false, emit: delta, nextReplayOffset: null };
|
|
151
151
|
}
|
|
152
152
|
if (delta === remaining.slice(0, delta.length)) {
|
|
153
|
-
return { emit: "", nextReplayOffset: replayOffset + delta.length };
|
|
153
|
+
return { diverged: false, emit: "", nextReplayOffset: replayOffset + delta.length };
|
|
154
154
|
}
|
|
155
155
|
if (delta.startsWith(remaining)) {
|
|
156
|
-
return { emit: delta.slice(remaining.length), nextReplayOffset: null };
|
|
156
|
+
return { diverged: false, emit: delta.slice(remaining.length), nextReplayOffset: null };
|
|
157
157
|
}
|
|
158
158
|
if (remaining.startsWith(delta)) {
|
|
159
|
-
return { emit: "", nextReplayOffset: replayOffset + delta.length };
|
|
159
|
+
return { diverged: false, emit: "", nextReplayOffset: replayOffset + delta.length };
|
|
160
160
|
}
|
|
161
|
-
return { emit: delta, nextReplayOffset: null };
|
|
161
|
+
return { diverged: true, emit: delta, nextReplayOffset: null };
|
|
162
162
|
}
|
|
163
163
|
function getReplayState(stateMap, id) {
|
|
164
164
|
const existing = stateMap.get(id);
|
|
@@ -167,13 +167,22 @@ function getReplayState(stateMap, id) {
|
|
|
167
167
|
}
|
|
168
168
|
const created = {
|
|
169
169
|
content: "",
|
|
170
|
+
outputId: id,
|
|
171
|
+
outputOpen: false,
|
|
172
|
+
replacementCount: 0,
|
|
173
|
+
replayContent: "",
|
|
170
174
|
replayOffset: null,
|
|
171
175
|
started: false,
|
|
172
|
-
ended: false,
|
|
173
176
|
};
|
|
174
177
|
stateMap.set(id, created);
|
|
175
178
|
return created;
|
|
176
179
|
}
|
|
180
|
+
function replayChunkIdentity(chunk) {
|
|
181
|
+
return chunk.contentId ?? chunk.id;
|
|
182
|
+
}
|
|
183
|
+
function replayOutputIdentity(chunk, outputId) {
|
|
184
|
+
return chunk.contentId === undefined ? { id: outputId } : { id: chunk.id, contentId: outputId };
|
|
185
|
+
}
|
|
177
186
|
function firstStringField(value, keys) {
|
|
178
187
|
for (const key of keys) {
|
|
179
188
|
const candidate = value[key];
|
|
@@ -276,43 +285,93 @@ export async function* dedupeChatUiMessageChunks(stream) {
|
|
|
276
285
|
for await (const chunk of stream) {
|
|
277
286
|
if (chunk.type === "text-start" || chunk.type === "reasoning-start") {
|
|
278
287
|
const stateMap = chunk.type === "text-start" ? textStates : reasoningStates;
|
|
279
|
-
const state = getReplayState(stateMap, chunk
|
|
288
|
+
const state = getReplayState(stateMap, replayChunkIdentity(chunk));
|
|
280
289
|
if (state.started) {
|
|
281
290
|
state.replayOffset = 0;
|
|
282
|
-
state.
|
|
291
|
+
state.replayContent = "";
|
|
283
292
|
continue;
|
|
284
293
|
}
|
|
285
294
|
state.started = true;
|
|
286
|
-
state.
|
|
295
|
+
state.outputOpen = true;
|
|
287
296
|
yield chunk;
|
|
288
297
|
continue;
|
|
289
298
|
}
|
|
290
299
|
if (chunk.type === "text-delta" || chunk.type === "reasoning-delta") {
|
|
291
300
|
const stateMap = chunk.type === "text-delta" ? textStates : reasoningStates;
|
|
292
|
-
const
|
|
293
|
-
const
|
|
294
|
-
|
|
301
|
+
const inputId = replayChunkIdentity(chunk);
|
|
302
|
+
const state = getReplayState(stateMap, inputId);
|
|
303
|
+
if (state.replayOffset !== null) {
|
|
304
|
+
state.replayContent += chunk.delta;
|
|
305
|
+
}
|
|
306
|
+
const { diverged, emit, nextReplayOffset } = state.replayOffset === null
|
|
307
|
+
? { diverged: false, emit: chunk.delta, nextReplayOffset: null }
|
|
295
308
|
: splitReplayDelta(state.content, state.replayOffset, chunk.delta);
|
|
309
|
+
if (diverged) {
|
|
310
|
+
if (state.outputOpen) {
|
|
311
|
+
yield {
|
|
312
|
+
type: chunk.type === "text-delta" ? "text-end" : "reasoning-end",
|
|
313
|
+
...replayOutputIdentity(chunk, state.outputId),
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
state.replacementCount++;
|
|
317
|
+
state.outputId = `${inputId}:replacement:${state.replacementCount}`;
|
|
318
|
+
state.outputOpen = true;
|
|
319
|
+
state.content = state.replayContent;
|
|
320
|
+
state.replayContent = "";
|
|
321
|
+
state.replayOffset = null;
|
|
322
|
+
yield {
|
|
323
|
+
type: chunk.type === "text-delta" ? "text-start" : "reasoning-start",
|
|
324
|
+
...replayOutputIdentity(chunk, state.outputId),
|
|
325
|
+
};
|
|
326
|
+
yield {
|
|
327
|
+
...chunk,
|
|
328
|
+
...replayOutputIdentity(chunk, state.outputId),
|
|
329
|
+
delta: state.content,
|
|
330
|
+
};
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
296
333
|
state.replayOffset = nextReplayOffset;
|
|
297
334
|
if (!emit) {
|
|
298
335
|
continue;
|
|
299
336
|
}
|
|
337
|
+
if (!state.outputOpen) {
|
|
338
|
+
const replacementContent = state.replayContent || emit;
|
|
339
|
+
state.replacementCount++;
|
|
340
|
+
state.outputId = `${inputId}:replacement:${state.replacementCount}`;
|
|
341
|
+
state.outputOpen = true;
|
|
342
|
+
state.content = replacementContent;
|
|
343
|
+
state.replayContent = "";
|
|
344
|
+
state.replayOffset = null;
|
|
345
|
+
yield {
|
|
346
|
+
type: chunk.type === "text-delta" ? "text-start" : "reasoning-start",
|
|
347
|
+
...replayOutputIdentity(chunk, state.outputId),
|
|
348
|
+
};
|
|
349
|
+
yield {
|
|
350
|
+
...chunk,
|
|
351
|
+
...replayOutputIdentity(chunk, state.outputId),
|
|
352
|
+
delta: replacementContent,
|
|
353
|
+
};
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
state.replayContent = "";
|
|
300
357
|
state.content += emit;
|
|
301
358
|
yield {
|
|
302
359
|
...chunk,
|
|
360
|
+
...replayOutputIdentity(chunk, state.outputId),
|
|
303
361
|
delta: emit,
|
|
304
362
|
};
|
|
305
363
|
continue;
|
|
306
364
|
}
|
|
307
365
|
if (chunk.type === "text-end" || chunk.type === "reasoning-end") {
|
|
308
366
|
const stateMap = chunk.type === "text-end" ? textStates : reasoningStates;
|
|
309
|
-
const state = stateMap.get(chunk
|
|
310
|
-
if (!state || state.
|
|
367
|
+
const state = stateMap.get(replayChunkIdentity(chunk));
|
|
368
|
+
if (!state || !state.outputOpen) {
|
|
311
369
|
continue;
|
|
312
370
|
}
|
|
313
371
|
state.replayOffset = null;
|
|
314
|
-
state.
|
|
315
|
-
|
|
372
|
+
state.replayContent = "";
|
|
373
|
+
state.outputOpen = false;
|
|
374
|
+
yield { ...chunk, ...replayOutputIdentity(chunk, state.outputId) };
|
|
316
375
|
continue;
|
|
317
376
|
}
|
|
318
377
|
yield chunk;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/src/config/loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK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AC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAaD;AAED,yFAAyF;AACzF,wBAAgB,oCAAoC,IAAI,QAAQ,CAAC;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CASD;AAED,8EAA8E;AAC9E,wBAAgB,qCAAqC,IAAI,QAAQ,CAAC;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAKD;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAIvC;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAI9E"}
|
package/esm/src/config/loader.js
CHANGED
|
@@ -416,6 +416,17 @@ function createFreshDefaults() {
|
|
|
416
416
|
const configCacheByProject = new LRUCache({
|
|
417
417
|
maxEntries: DEFAULT_CONFIG_CACHE_MAX_ENTRIES,
|
|
418
418
|
});
|
|
419
|
+
/**
|
|
420
|
+
* Negative cache for deterministic hosted config rejections.
|
|
421
|
+
*
|
|
422
|
+
* The hosted cache key already folds in the exact source digest, policy
|
|
423
|
+
* version and environment fingerprint, so a rejected source stays rejected
|
|
424
|
+
* until the tenant ships different content; re-sending it to the evaluator
|
|
425
|
+
* worker on every request only repeats the same failure.
|
|
426
|
+
*/
|
|
427
|
+
const hostedConfigFailureCacheByProject = new LRUCache({
|
|
428
|
+
maxEntries: DEFAULT_CONFIG_CACHE_MAX_ENTRIES,
|
|
429
|
+
});
|
|
419
430
|
const MAX_ACTIVE_HOSTED_CONFIG_SOURCE_READS = DECLARATIVE_CONFIG_WORKER_ADMISSION_LIMITS.maxActive;
|
|
420
431
|
const MAX_QUEUED_HOSTED_CONFIG_SOURCE_READS = DECLARATIVE_CONFIG_WORKER_ADMISSION_LIMITS.maxQueued;
|
|
421
432
|
const hostedConfigSourceReadFlights = new IntrinsicMap();
|
|
@@ -433,8 +444,9 @@ const MAX_TRUSTED_CONFIG_FLIGHTS = 64;
|
|
|
433
444
|
const trustedConfigFlights = new IntrinsicMap();
|
|
434
445
|
const trustedVirtualFilesystemIds = new IntrinsicWeakMap();
|
|
435
446
|
let nextTrustedVirtualFilesystemId = 1;
|
|
436
|
-
// Register
|
|
447
|
+
// Register caches for monitoring
|
|
437
448
|
registerLRUCache("config-cache", configCacheByProject);
|
|
449
|
+
registerLRUCache("config-failure-cache", hostedConfigFailureCacheByProject);
|
|
438
450
|
let cacheRevision = 0;
|
|
439
451
|
function configFileProvenance(configFile) {
|
|
440
452
|
return freezeObject({ kind: "file", configFile });
|
|
@@ -777,6 +789,16 @@ async function buildHostedConfigCacheKey(baseCacheKey, configPath, source, paylo
|
|
|
777
789
|
function buildHostedConfigFlightKey(hostedCacheKey, revision) {
|
|
778
790
|
return `${revision}:${hostedCacheKey}`;
|
|
779
791
|
}
|
|
792
|
+
/**
|
|
793
|
+
* Whether a hosted evaluation failure is guaranteed to repeat for the same
|
|
794
|
+
* cache key. Worker-phase and retryable failures are infrastructure
|
|
795
|
+
* conditions that can succeed on retry, so they must never be cached.
|
|
796
|
+
*/
|
|
797
|
+
function isDeterministicHostedConfigRejection(error) {
|
|
798
|
+
return error instanceof DeclarativeConfigEvaluationError &&
|
|
799
|
+
!error.retryable &&
|
|
800
|
+
error.phase !== "worker";
|
|
801
|
+
}
|
|
780
802
|
function createHostedConfigFlight(flightKey, hostedCacheKey, payload, usePersistentCache, revisionAtStart) {
|
|
781
803
|
const controller = createHostedAbortController();
|
|
782
804
|
const controllerSignal = getAbortControllerSignal(controller);
|
|
@@ -815,6 +837,13 @@ function createHostedConfigFlight(flightKey, hostedCacheKey, payload, usePersist
|
|
|
815
837
|
result.resolve(config);
|
|
816
838
|
}, (error) => {
|
|
817
839
|
finish();
|
|
840
|
+
if (usePersistentCache && cacheRevision === revisionAtStart &&
|
|
841
|
+
isDeterministicHostedConfigRejection(error)) {
|
|
842
|
+
hostedConfigFailureCacheByProject.set(hostedCacheKey, {
|
|
843
|
+
revision: revisionAtStart,
|
|
844
|
+
error,
|
|
845
|
+
});
|
|
846
|
+
}
|
|
818
847
|
result.reject(error);
|
|
819
848
|
});
|
|
820
849
|
mapSet(hostedConfigFlights, flightKey, flight);
|
|
@@ -1304,6 +1333,12 @@ function loadHostedConfigFromSource(configPath, configFile, baseCacheKey, conten
|
|
|
1304
1333
|
if (cached?.revision === revisionAtStart) {
|
|
1305
1334
|
return cached.config;
|
|
1306
1335
|
}
|
|
1336
|
+
const cachedFailure = usePersistentCache
|
|
1337
|
+
? hostedConfigFailureCacheByProject.get(hostedCacheKey)
|
|
1338
|
+
: undefined;
|
|
1339
|
+
if (cachedFailure?.revision === revisionAtStart) {
|
|
1340
|
+
throw cachedFailure.error;
|
|
1341
|
+
}
|
|
1307
1342
|
const flight = getOrCreateHostedConfigFlight(hostedCacheKey, payload, usePersistentCache, revisionAtStart);
|
|
1308
1343
|
return await waitForHostedConfigFlight(flight, signal);
|
|
1309
1344
|
}, {
|
|
@@ -1797,6 +1832,7 @@ export function __getTrustedConfigFlightStateForTests() {
|
|
|
1797
1832
|
}
|
|
1798
1833
|
export function clearConfigCache() {
|
|
1799
1834
|
configCacheByProject.clear();
|
|
1835
|
+
hostedConfigFailureCacheByProject.clear();
|
|
1800
1836
|
cacheRevision++;
|
|
1801
1837
|
}
|
|
1802
1838
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-errors.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/catalog/build-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"build-errors.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/catalog/build-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD,eAAO,MAAM,mBAAmB,EAAE,mBA6GhC,CAAC"}
|
|
@@ -39,6 +39,20 @@ import Button from './components/Button.jsx'
|
|
|
39
39
|
# Hello World
|
|
40
40
|
|
|
41
41
|
<Button>Click me</Button>`,
|
|
42
|
+
}),
|
|
43
|
+
"markdown-compile-error": createErrorSolution("markdown-compile-error", {
|
|
44
|
+
title: "Markdown compilation failed",
|
|
45
|
+
message: "Failed to compile Markdown file.",
|
|
46
|
+
steps: [
|
|
47
|
+
"Check for syntax errors in your Markdown file",
|
|
48
|
+
"Ensure frontmatter YAML is valid",
|
|
49
|
+
"Check for unclosed frontmatter blocks",
|
|
50
|
+
],
|
|
51
|
+
example: `---
|
|
52
|
+
title: My Post
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
# Hello World`,
|
|
42
56
|
}),
|
|
43
57
|
"asset-optimization-error": createSimpleError("asset-optimization-error", "Asset optimization failed", "Failed to optimize assets (images, CSS, etc.).", [
|
|
44
58
|
"Check that asset files are valid",
|
|
@@ -2,6 +2,7 @@ export declare const BUILD_FAILED: import("../types.js").RegisteredError;
|
|
|
2
2
|
export declare const BUNDLE_ERROR: import("../types.js").RegisteredError;
|
|
3
3
|
export declare const TYPESCRIPT_ERROR: import("../types.js").RegisteredError;
|
|
4
4
|
export declare const MDX_COMPILE_ERROR: import("../types.js").RegisteredError;
|
|
5
|
+
export declare const MARKDOWN_COMPILE_ERROR: import("../types.js").RegisteredError;
|
|
5
6
|
export declare const ASSET_OPTIMIZATION_ERROR: import("../types.js").RegisteredError;
|
|
6
7
|
export declare const SSG_GENERATION_ERROR: import("../types.js").RegisteredError;
|
|
7
8
|
export declare const SOURCEMAP_ERROR: import("../types.js").RegisteredError;
|
|
@@ -12,6 +13,7 @@ export declare const BUILD_REGISTRY: {
|
|
|
12
13
|
readonly "bundle-error": import("../types.js").RegisteredError;
|
|
13
14
|
readonly "typescript-error": import("../types.js").RegisteredError;
|
|
14
15
|
readonly "mdx-compile-error": import("../types.js").RegisteredError;
|
|
16
|
+
readonly "markdown-compile-error": import("../types.js").RegisteredError;
|
|
15
17
|
readonly "asset-optimization-error": import("../types.js").RegisteredError;
|
|
16
18
|
readonly "ssg-generation-error": import("../types.js").RegisteredError;
|
|
17
19
|
readonly "sourcemap-error": import("../types.js").RegisteredError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/build.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,uCAMvB,CAAC;AAEH,eAAO,MAAM,YAAY,uCAMvB,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,wBAAwB,uCAMnC,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/build.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,uCAMvB,CAAC;AAEH,eAAO,MAAM,YAAY,uCAMvB,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,eAAO,MAAM,sBAAsB,uCAMjC,CAAC;AAEH,eAAO,MAAM,wBAAwB,uCAMnC,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uCAM5B,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,cAAc;;;;;;;;;;CAUjB,CAAC"}
|
|
@@ -27,6 +27,13 @@ export const MDX_COMPILE_ERROR = defineError({
|
|
|
27
27
|
title: "MDX compilation failed",
|
|
28
28
|
suggestion: "Check your MDX file syntax",
|
|
29
29
|
});
|
|
30
|
+
export const MARKDOWN_COMPILE_ERROR = defineError({
|
|
31
|
+
slug: "markdown-compile-error",
|
|
32
|
+
category: "BUILD",
|
|
33
|
+
status: 500,
|
|
34
|
+
title: "Markdown compilation failed",
|
|
35
|
+
suggestion: "Check your Markdown file syntax and frontmatter",
|
|
36
|
+
});
|
|
30
37
|
export const ASSET_OPTIMIZATION_ERROR = defineError({
|
|
31
38
|
slug: "asset-optimization-error",
|
|
32
39
|
category: "BUILD",
|
|
@@ -61,6 +68,7 @@ export const BUILD_REGISTRY = {
|
|
|
61
68
|
"bundle-error": BUNDLE_ERROR,
|
|
62
69
|
"typescript-error": TYPESCRIPT_ERROR,
|
|
63
70
|
"mdx-compile-error": MDX_COMPILE_ERROR,
|
|
71
|
+
"markdown-compile-error": MARKDOWN_COMPILE_ERROR,
|
|
64
72
|
"asset-optimization-error": ASSET_OPTIMIZATION_ERROR,
|
|
65
73
|
"ssg-generation-error": SSG_GENERATION_ERROR,
|
|
66
74
|
"sourcemap-error": SOURCEMAP_ERROR,
|
|
@@ -8,6 +8,8 @@ export declare const RELEASE_MISSING_VERSION: import("../types.js").RegisteredEr
|
|
|
8
8
|
export declare const RELEASE_BUILD_TIMEOUT: import("../types.js").RegisteredError;
|
|
9
9
|
export declare const DEPLOYMENT_VERIFICATION_TIMEOUT: import("../types.js").RegisteredError;
|
|
10
10
|
export declare const PUSH_RECEIPT_MISSING: import("../types.js").RegisteredError;
|
|
11
|
+
export declare const PUSH_CONFLICT: import("../types.js").RegisteredError;
|
|
12
|
+
export declare const SYNC_STATE_INVALID: import("../types.js").RegisteredError;
|
|
11
13
|
export declare const SOURCE_DIGEST_MISMATCH: import("../types.js").RegisteredError;
|
|
12
14
|
export declare const PREVIEW_HOSTNAME_TOO_LONG: import("../types.js").RegisteredError;
|
|
13
15
|
export declare const BRANCH_NOT_FOUND: import("../types.js").RegisteredError;
|
|
@@ -32,6 +34,8 @@ export declare const DEPLOY_REGISTRY: {
|
|
|
32
34
|
readonly "release-build-timeout": import("../types.js").RegisteredError;
|
|
33
35
|
readonly "deployment-verification-timeout": import("../types.js").RegisteredError;
|
|
34
36
|
readonly "push-receipt-missing": import("../types.js").RegisteredError;
|
|
37
|
+
readonly "push-conflict": import("../types.js").RegisteredError;
|
|
38
|
+
readonly "sync-state-invalid": import("../types.js").RegisteredError;
|
|
35
39
|
readonly "source-digest-mismatch": import("../types.js").RegisteredError;
|
|
36
40
|
readonly "preview-hostname-too-long": import("../types.js").RegisteredError;
|
|
37
41
|
readonly "branch-not-found": import("../types.js").RegisteredError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/deploy.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,wBAAwB,uCAOnC,CAAC;AAEH,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,+BAA+B,uCAM1C,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,sBAAsB,uCAMjC,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,uCAQhC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/deploy.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,eAAe,uCAM1B,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,wBAAwB,uCAOnC,CAAC;AAEH,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uCAMhC,CAAC;AAEH,eAAO,MAAM,+BAA+B,uCAM1C,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAM/B,CAAC;AAEH,eAAO,MAAM,aAAa,uCAOxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,sBAAsB,uCAMjC,CAAC;AAEH,eAAO,MAAM,yBAAyB,uCAMpC,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,uCAQhC,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;CAiBlB,CAAC"}
|
|
@@ -69,6 +69,20 @@ export const PUSH_RECEIPT_MISSING = defineError({
|
|
|
69
69
|
title: "Push receipt not found",
|
|
70
70
|
suggestion: "Run: veryfront push --branch main first",
|
|
71
71
|
});
|
|
72
|
+
export const PUSH_CONFLICT = defineError({
|
|
73
|
+
slug: "push-conflict",
|
|
74
|
+
category: "DEPLOY",
|
|
75
|
+
status: 409,
|
|
76
|
+
title: "Push rejected because remote files changed",
|
|
77
|
+
suggestion: "Commit or stash local changes, run veryfront pull, reconcile the changes with Git, then push again",
|
|
78
|
+
});
|
|
79
|
+
export const SYNC_STATE_INVALID = defineError({
|
|
80
|
+
slug: "sync-state-invalid",
|
|
81
|
+
category: "DEPLOY",
|
|
82
|
+
status: 400,
|
|
83
|
+
title: "Local sync metadata is invalid",
|
|
84
|
+
suggestion: "Remove .veryfront/sync-state.json, run veryfront pull, and try again",
|
|
85
|
+
});
|
|
72
86
|
export const SOURCE_DIGEST_MISMATCH = defineError({
|
|
73
87
|
slug: "source-digest-mismatch",
|
|
74
88
|
category: "DEPLOY",
|
|
@@ -118,6 +132,8 @@ export const DEPLOY_REGISTRY = {
|
|
|
118
132
|
"release-build-timeout": RELEASE_BUILD_TIMEOUT,
|
|
119
133
|
"deployment-verification-timeout": DEPLOYMENT_VERIFICATION_TIMEOUT,
|
|
120
134
|
"push-receipt-missing": PUSH_RECEIPT_MISSING,
|
|
135
|
+
"push-conflict": PUSH_CONFLICT,
|
|
136
|
+
"sync-state-invalid": SYNC_STATE_INVALID,
|
|
121
137
|
"source-digest-mismatch": SOURCE_DIGEST_MISMATCH,
|
|
122
138
|
"preview-hostname-too-long": PREVIEW_HOSTNAME_TOO_LONG,
|
|
123
139
|
"branch-not-found": BRANCH_NOT_FOUND,
|
|
@@ -32,6 +32,7 @@ export declare const ERROR_REGISTRY: Readonly<{
|
|
|
32
32
|
readonly "bundle-error": import("./types.js").RegisteredError;
|
|
33
33
|
readonly "typescript-error": import("./types.js").RegisteredError;
|
|
34
34
|
readonly "mdx-compile-error": import("./types.js").RegisteredError;
|
|
35
|
+
readonly "markdown-compile-error": import("./types.js").RegisteredError;
|
|
35
36
|
readonly "asset-optimization-error": import("./types.js").RegisteredError;
|
|
36
37
|
readonly "ssg-generation-error": import("./types.js").RegisteredError;
|
|
37
38
|
readonly "sourcemap-error": import("./types.js").RegisteredError;
|
|
@@ -108,6 +109,8 @@ export declare const ERROR_REGISTRY: Readonly<{
|
|
|
108
109
|
readonly "release-build-timeout": import("./types.js").RegisteredError;
|
|
109
110
|
readonly "deployment-verification-timeout": import("./types.js").RegisteredError;
|
|
110
111
|
readonly "push-receipt-missing": import("./types.js").RegisteredError;
|
|
112
|
+
readonly "push-conflict": import("./types.js").RegisteredError;
|
|
113
|
+
readonly "sync-state-invalid": import("./types.js").RegisteredError;
|
|
111
114
|
readonly "source-digest-mismatch": import("./types.js").RegisteredError;
|
|
112
115
|
readonly "preview-hostname-too-long": import("./types.js").RegisteredError;
|
|
113
116
|
readonly "branch-not-found": import("./types.js").RegisteredError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAgBhD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"error-registry.d.ts","sourceRoot":"","sources":["../../../src/src/errors/error-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAgBhD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY1B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,cAAc,CAAC;AAEpD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,wCAE7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,aAAa,0CAE1D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,SAAS,EAAE,CAEzC"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import "../../_dnt.polyfills.js";
|
|
20
20
|
export { defineError, VeryfrontError } from "./types.js";
|
|
21
21
|
export type { ErrorCategory, ErrorCreateOptions, ErrorDefinition, RegisteredError, RFC9457Response, VeryfrontErrorOptions, } from "./types.js";
|
|
22
|
-
export { AGENT_ERROR, AGENT_INTENT_ERROR, AGENT_NOT_FOUND, AGENT_TIMEOUT, API_CLIENT_ERROR, API_ERROR, API_ROUTE_ERROR, ASSET_OPTIMIZATION_ERROR, AUTHENTICATION_REQUIRED, BRANCH_NOT_FOUND, BUILD_FAILED, BUNDLE_ERROR, CACHE_ERROR, CACHE_INVARIANT_VIOLATION, CACHE_PATH_MISMATCH, CIRCUIT_BREAKER_OPEN, CIRCULAR_DEPENDENCY, CLIENT_BOUNDARY_VIOLATION, CLIENT_ONLY_IN_SERVER, COMPILATION_ERROR, COMPONENT_ERROR, CONFIG_INVALID, CONFIG_NOT_DEPLOYABLE, CONFIG_NOT_FOUND, CONFIG_PARSE_ERROR, CONFIG_TYPE_ERROR, CONFIG_VALIDATION_ERROR, CONFIG_VALIDATION_FAILED, CORS_CONFIG_INVALID, COST_LIMIT_EXCEEDED, DEPENDENCY_MISSING, DEPLOYMENT_ERROR, DEPLOYMENT_VERIFICATION_TIMEOUT, DEV_SERVER_ERROR, DURABLE_RUN_EVENT_PERSISTENCE_FAILED, DYNAMIC_ROUTE_ERROR, ENV_VAR_MISSING, ENVIRONMENT_NOT_FOUND, ENVIRONMENT_NOT_ROUTABLE, ERROR_OVERLAY_ERROR, ERROR_REGISTRY, type ErrorSlug, FALLBACK_EXHAUSTED, FAST_REFRESH_ERROR, FILE_NOT_FOUND, FILE_WATCH_ERROR, getAllSlugs, getErrorBySlug, getErrorsByCategory, HMR_ERROR, HYDRATION_MISMATCH, IMPORT_MAP_INVALID, IMPORT_RESOLUTION_ERROR, INITIALIZATION_ERROR, INPUT_VALIDATION_FAILED, INVALID_ARGUMENT, INVALID_IMPORT, INVALID_ROUTE_FILE, INVALID_USE_CLIENT, INVALID_USE_SERVER, LAYOUT_NOT_FOUND, LOCKFILE_FORMAT_MISMATCH, LOCKFILE_READ_ERROR, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR, MODULE_NOT_FOUND, NESTED_CWD_SCOPE, NETWORK_ERROR, NOT_SUPPORTED, ORCHESTRATION_ERROR, PAGE_NOT_FOUND, PERMISSION_DENIED, PLATFORM_ERROR, PORT_IN_USE, PREVIEW_HOSTNAME_TOO_LONG, PRODUCTION_BUILD_REQUIRED, PROJECT_EXECUTION_UNAVAILABLE, PROJECT_SOURCE_EMPTY, PUSH_RECEIPT_MISSING, RAG_STORE_CORRUPT, RAG_STORE_UNAVAILABLE, RELEASE_BUILD_TIMEOUT, RELEASE_MISSING_VERSION, RELEASE_NOT_FOUND, RENDER_ERROR, REQUEST_ERROR, RESOURCE_NOT_FOUND, ROUTE_CONFLICT, ROUTE_HANDLER_INVALID, ROUTE_PARAMS_ERROR, RSC_PAYLOAD_ERROR, SCHEDULE_CONFIG_INVALID, SECURITY_VIOLATION, SEMAPHORE_TIMEOUT, SERVER_ONLY_IN_CLIENT, SERVER_START_ERROR, SERVICE_OVERLOADED, SOURCE_DIGEST_MISMATCH, SOURCE_MAP_ERROR, SOURCEMAP_ERROR, SSG_GENERATION_ERROR, SSR_OUTPUT_LIMIT_EXCEEDED, TEMPLATE_NOT_FOUND, TIMEOUT_ERROR, TOKEN_STORAGE_ERROR, TOOL_ID_CONFLICT, TRIGGER_CONFIG_INVALID, TRIGGER_EXECUTION_FAILED, TRIGGER_NOT_SUPPORTED, TRIGGER_TARGET_NOT_FOUND, TYPESCRIPT_ERROR, UNKNOWN_ERROR, VERSION_MISMATCH, WEBHOOK_CONFIG_INVALID, } from "./error-registry.js";
|
|
22
|
+
export { AGENT_ERROR, AGENT_INTENT_ERROR, AGENT_NOT_FOUND, AGENT_TIMEOUT, API_CLIENT_ERROR, API_ERROR, API_ROUTE_ERROR, ASSET_OPTIMIZATION_ERROR, AUTHENTICATION_REQUIRED, BRANCH_NOT_FOUND, BUILD_FAILED, BUNDLE_ERROR, CACHE_ERROR, CACHE_INVARIANT_VIOLATION, CACHE_PATH_MISMATCH, CIRCUIT_BREAKER_OPEN, CIRCULAR_DEPENDENCY, CLIENT_BOUNDARY_VIOLATION, CLIENT_ONLY_IN_SERVER, COMPILATION_ERROR, COMPONENT_ERROR, CONFIG_INVALID, CONFIG_NOT_DEPLOYABLE, CONFIG_NOT_FOUND, CONFIG_PARSE_ERROR, CONFIG_TYPE_ERROR, CONFIG_VALIDATION_ERROR, CONFIG_VALIDATION_FAILED, CORS_CONFIG_INVALID, COST_LIMIT_EXCEEDED, DEPENDENCY_MISSING, DEPLOYMENT_ERROR, DEPLOYMENT_VERIFICATION_TIMEOUT, DEV_SERVER_ERROR, DURABLE_RUN_EVENT_PERSISTENCE_FAILED, DYNAMIC_ROUTE_ERROR, ENV_VAR_MISSING, ENVIRONMENT_NOT_FOUND, ENVIRONMENT_NOT_ROUTABLE, ERROR_OVERLAY_ERROR, ERROR_REGISTRY, type ErrorSlug, FALLBACK_EXHAUSTED, FAST_REFRESH_ERROR, FILE_NOT_FOUND, FILE_WATCH_ERROR, getAllSlugs, getErrorBySlug, getErrorsByCategory, HMR_ERROR, HYDRATION_MISMATCH, IMPORT_MAP_INVALID, IMPORT_RESOLUTION_ERROR, INITIALIZATION_ERROR, INPUT_VALIDATION_FAILED, INVALID_ARGUMENT, INVALID_IMPORT, INVALID_ROUTE_FILE, INVALID_USE_CLIENT, INVALID_USE_SERVER, LAYOUT_NOT_FOUND, LOCKFILE_FORMAT_MISMATCH, LOCKFILE_READ_ERROR, MARKDOWN_COMPILE_ERROR, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR, MODULE_NOT_FOUND, NESTED_CWD_SCOPE, NETWORK_ERROR, NOT_SUPPORTED, ORCHESTRATION_ERROR, PAGE_NOT_FOUND, PERMISSION_DENIED, PLATFORM_ERROR, PORT_IN_USE, PREVIEW_HOSTNAME_TOO_LONG, PRODUCTION_BUILD_REQUIRED, PROJECT_EXECUTION_UNAVAILABLE, PROJECT_SOURCE_EMPTY, PUSH_CONFLICT, PUSH_RECEIPT_MISSING, RAG_STORE_CORRUPT, RAG_STORE_UNAVAILABLE, RELEASE_BUILD_TIMEOUT, RELEASE_MISSING_VERSION, RELEASE_NOT_FOUND, RENDER_ERROR, REQUEST_ERROR, RESOURCE_NOT_FOUND, ROUTE_CONFLICT, ROUTE_HANDLER_INVALID, ROUTE_PARAMS_ERROR, RSC_PAYLOAD_ERROR, SCHEDULE_CONFIG_INVALID, SECURITY_VIOLATION, SEMAPHORE_TIMEOUT, SERVER_ONLY_IN_CLIENT, SERVER_START_ERROR, SERVICE_OVERLOADED, SOURCE_DIGEST_MISMATCH, SOURCE_MAP_ERROR, SOURCEMAP_ERROR, SSG_GENERATION_ERROR, SSR_OUTPUT_LIMIT_EXCEEDED, SYNC_STATE_INVALID, TEMPLATE_NOT_FOUND, TIMEOUT_ERROR, TOKEN_STORAGE_ERROR, TOOL_ID_CONFLICT, TRIGGER_CONFIG_INVALID, TRIGGER_EXECUTION_FAILED, TRIGGER_NOT_SUPPORTED, TRIGGER_TARGET_NOT_FOUND, TYPESCRIPT_ERROR, UNKNOWN_ERROR, VERSION_MISMATCH, WEBHOOK_CONFIG_INVALID, } from "./error-registry.js";
|
|
23
23
|
export { createErrorHandler, createErrorResponse, createErrorResponseFromDefinition, createProblemResponse, errorToResponse, formatErrorLog, isVeryfrontError, PROBLEM_JSON_CONTENT_TYPE, } from "./http-error.js";
|
|
24
24
|
export { cliErrorBoundary, cliErrorBoundarySync, errorToRFC9457Response, formatCLIError, httpErrorBoundary, wrapHandlerWithErrorBoundary, wrapUnknownError, wrapWithContext, } from "./middleware/index.js";
|
|
25
25
|
export { logError, logErrorWithMessage } from "./logging.js";
|
|
@@ -27,6 +27,7 @@ export type { ErrorLogEntry } from "./logging.js";
|
|
|
27
27
|
export { attachErrorToActiveSpan, attachErrorToSpan } from "./tracing.js";
|
|
28
28
|
export { handleErrorWithFallback, handleErrorWithFallbackSync, retryWithBackoff, type RetryWithBackoffOptions, } from "./error-handlers.js";
|
|
29
29
|
export { createErrorScope, safeFileRead, safeFileStat, safeReadDir, withErrorContext, withErrorContextSync, } from "./error-context.js";
|
|
30
|
+
export { sanitizeTerminalDiagnosticText } from "./safe-diagnostics.js";
|
|
30
31
|
export type { ErrorContext, ErrorHandlingOptions, LogLevel } from "./error-context.js";
|
|
31
32
|
export { BUILD_ERROR_CATALOG, CONFIG_ERROR_CATALOG, createErrorSolution, createSimpleError, DEPLOYMENT_ERROR_CATALOG, DEV_ERROR_CATALOG, ERROR_CATALOG, GENERAL_ERROR_CATALOG, getErrorSolution, MODULE_ERROR_CATALOG, ROUTE_ERROR_CATALOG, RSC_ERROR_CATALOG, RUNTIME_ERROR_CATALOG, searchErrors, SERVER_ERROR_CATALOG, } from "./catalog/index.js";
|
|
32
33
|
export type { ErrorCatalog, ErrorSolution, PartialErrorCatalog } from "./catalog/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACzD,YAAY,EACV,aAAa,EACb,kBAAkB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O,EACL,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE3F,OAAO,EACL,eAAe,EACf,eAAe,EACf,aAAa,EACb,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE3F,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1F,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACzD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,eAAe,EACf,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAEL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EAEvB,gBAAgB,EAEhB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EAEnB,yBAAyB,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oB,CAAC;AAE5B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE3F,OAAO,EACL,eAAe,EACf,eAAe,EACf,aAAa,EACb,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EAAE,aAAa,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE3F,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1F,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC"}
|
package/esm/src/errors/index.js
CHANGED
|
@@ -35,13 +35,13 @@ ERROR_REGISTRY, FALLBACK_EXHAUSTED, FAST_REFRESH_ERROR, FILE_NOT_FOUND, FILE_WAT
|
|
|
35
35
|
// DEV
|
|
36
36
|
HMR_ERROR,
|
|
37
37
|
// RUNTIME
|
|
38
|
-
HYDRATION_MISMATCH, IMPORT_MAP_INVALID, IMPORT_RESOLUTION_ERROR, INITIALIZATION_ERROR, INPUT_VALIDATION_FAILED, INVALID_ARGUMENT, INVALID_IMPORT, INVALID_ROUTE_FILE, INVALID_USE_CLIENT, INVALID_USE_SERVER, LAYOUT_NOT_FOUND, LOCKFILE_FORMAT_MISMATCH, LOCKFILE_READ_ERROR, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR,
|
|
38
|
+
HYDRATION_MISMATCH, IMPORT_MAP_INVALID, IMPORT_RESOLUTION_ERROR, INITIALIZATION_ERROR, INPUT_VALIDATION_FAILED, INVALID_ARGUMENT, INVALID_IMPORT, INVALID_ROUTE_FILE, INVALID_USE_CLIENT, INVALID_USE_SERVER, LAYOUT_NOT_FOUND, LOCKFILE_FORMAT_MISMATCH, LOCKFILE_READ_ERROR, MARKDOWN_COMPILE_ERROR, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR,
|
|
39
39
|
// MODULE
|
|
40
40
|
MODULE_NOT_FOUND, NESTED_CWD_SCOPE, NETWORK_ERROR, NOT_SUPPORTED, ORCHESTRATION_ERROR, PAGE_NOT_FOUND, PERMISSION_DENIED, PLATFORM_ERROR,
|
|
41
41
|
// SERVER
|
|
42
|
-
PORT_IN_USE, PREVIEW_HOSTNAME_TOO_LONG, PRODUCTION_BUILD_REQUIRED, PROJECT_EXECUTION_UNAVAILABLE, PROJECT_SOURCE_EMPTY, PUSH_RECEIPT_MISSING, RAG_STORE_CORRUPT, RAG_STORE_UNAVAILABLE, RELEASE_BUILD_TIMEOUT, RELEASE_MISSING_VERSION, RELEASE_NOT_FOUND, RENDER_ERROR, REQUEST_ERROR, RESOURCE_NOT_FOUND,
|
|
42
|
+
PORT_IN_USE, PREVIEW_HOSTNAME_TOO_LONG, PRODUCTION_BUILD_REQUIRED, PROJECT_EXECUTION_UNAVAILABLE, PROJECT_SOURCE_EMPTY, PUSH_CONFLICT, PUSH_RECEIPT_MISSING, RAG_STORE_CORRUPT, RAG_STORE_UNAVAILABLE, RELEASE_BUILD_TIMEOUT, RELEASE_MISSING_VERSION, RELEASE_NOT_FOUND, RENDER_ERROR, REQUEST_ERROR, RESOURCE_NOT_FOUND,
|
|
43
43
|
// ROUTE
|
|
44
|
-
ROUTE_CONFLICT, ROUTE_HANDLER_INVALID, ROUTE_PARAMS_ERROR, RSC_PAYLOAD_ERROR, SCHEDULE_CONFIG_INVALID, SECURITY_VIOLATION, SEMAPHORE_TIMEOUT, SERVER_ONLY_IN_CLIENT, SERVER_START_ERROR, SERVICE_OVERLOADED, SOURCE_DIGEST_MISMATCH, SOURCE_MAP_ERROR, SOURCEMAP_ERROR, SSG_GENERATION_ERROR, SSR_OUTPUT_LIMIT_EXCEEDED, TEMPLATE_NOT_FOUND, TIMEOUT_ERROR, TOKEN_STORAGE_ERROR, TOOL_ID_CONFLICT, TRIGGER_CONFIG_INVALID, TRIGGER_EXECUTION_FAILED, TRIGGER_NOT_SUPPORTED, TRIGGER_TARGET_NOT_FOUND, TYPESCRIPT_ERROR,
|
|
44
|
+
ROUTE_CONFLICT, ROUTE_HANDLER_INVALID, ROUTE_PARAMS_ERROR, RSC_PAYLOAD_ERROR, SCHEDULE_CONFIG_INVALID, SECURITY_VIOLATION, SEMAPHORE_TIMEOUT, SERVER_ONLY_IN_CLIENT, SERVER_START_ERROR, SERVICE_OVERLOADED, SOURCE_DIGEST_MISMATCH, SOURCE_MAP_ERROR, SOURCEMAP_ERROR, SSG_GENERATION_ERROR, SSR_OUTPUT_LIMIT_EXCEEDED, SYNC_STATE_INVALID, TEMPLATE_NOT_FOUND, TIMEOUT_ERROR, TOKEN_STORAGE_ERROR, TOOL_ID_CONFLICT, TRIGGER_CONFIG_INVALID, TRIGGER_EXECUTION_FAILED, TRIGGER_NOT_SUPPORTED, TRIGGER_TARGET_NOT_FOUND, TYPESCRIPT_ERROR,
|
|
45
45
|
// GENERAL
|
|
46
46
|
UNKNOWN_ERROR, VERSION_MISMATCH, WEBHOOK_CONFIG_INVALID, } from "./error-registry.js";
|
|
47
47
|
// RFC 9457 HTTP error utilities
|
|
@@ -55,6 +55,7 @@ export { attachErrorToActiveSpan, attachErrorToSpan } from "./tracing.js";
|
|
|
55
55
|
// Error handling utilities
|
|
56
56
|
export { handleErrorWithFallback, handleErrorWithFallbackSync, retryWithBackoff, } from "./error-handlers.js";
|
|
57
57
|
export { createErrorScope, safeFileRead, safeFileStat, safeReadDir, withErrorContext, withErrorContextSync, } from "./error-context.js";
|
|
58
|
+
export { sanitizeTerminalDiagnosticText } from "./safe-diagnostics.js";
|
|
58
59
|
export { BUILD_ERROR_CATALOG, CONFIG_ERROR_CATALOG, createErrorSolution, createSimpleError, DEPLOYMENT_ERROR_CATALOG, DEV_ERROR_CATALOG, ERROR_CATALOG, GENERAL_ERROR_CATALOG, getErrorSolution, MODULE_ERROR_CATALOG, ROUTE_ERROR_CATALOG, RSC_ERROR_CATALOG, RUNTIME_ERROR_CATALOG, searchErrors, SERVER_ERROR_CATALOG, } from "./catalog/index.js";
|
|
59
60
|
export { ERROR_SOLUTIONS, formatUserError, identifyError, wrapErrorHandler, } from "./user-friendly/index.js";
|
|
60
61
|
export { createError, ensureError, getErrorMessage, toError } from "./veryfront-error.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single owner for the "is this build failure the tenant's fault?" question.
|
|
3
|
+
*
|
|
4
|
+
* Two layers need the answer and cannot import each other: the module loader
|
|
5
|
+
* (which tags errors at their capture seam) and observability (which must not
|
|
6
|
+
* depend on the rendering layer). They exchange the verdict through a shared
|
|
7
|
+
* symbol, but the verdict itself is computed here so a new tenant-facing slug
|
|
8
|
+
* only has to be added once. Duplicating the slug set drifts silently — the
|
|
9
|
+
* same error would classify differently depending on which seam saw it first.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Whether `error` describes tenant source or content failing to build (a page
|
|
13
|
+
* that does not compile, MDX that does not parse) rather than a framework
|
|
14
|
+
* fault.
|
|
15
|
+
*
|
|
16
|
+
* Recognizes two discriminators, both written at the seam that knows:
|
|
17
|
+
* - an explicit `tenantBuildFailure: true` error context, set by a compiler
|
|
18
|
+
* stage that inspected the diagnostic, and
|
|
19
|
+
* - a tenant-facing BUILD registry slug.
|
|
20
|
+
*
|
|
21
|
+
* The module loader's symbol tag is deliberately *not* read here: it is set
|
|
22
|
+
* from this predicate, so reading it back would be circular.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isTenantSourceBuildError(error: unknown): boolean;
|
|
25
|
+
//# sourceMappingURL=tenant-classification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant-classification.d.ts","sourceRoot":"","sources":["../../../src/src/errors/tenant-classification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA+BH;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYhE"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single owner for the "is this build failure the tenant's fault?" question.
|
|
3
|
+
*
|
|
4
|
+
* Two layers need the answer and cannot import each other: the module loader
|
|
5
|
+
* (which tags errors at their capture seam) and observability (which must not
|
|
6
|
+
* depend on the rendering layer). They exchange the verdict through a shared
|
|
7
|
+
* symbol, but the verdict itself is computed here so a new tenant-facing slug
|
|
8
|
+
* only has to be added once. Duplicating the slug set drifts silently — the
|
|
9
|
+
* same error would classify differently depending on which seam saw it first.
|
|
10
|
+
*/
|
|
11
|
+
import { snapshotVeryfrontError } from "./types.js";
|
|
12
|
+
const ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
13
|
+
const ReflectApply = Reflect.apply;
|
|
14
|
+
const ReflectGetOwnPropertyDescriptor = Reflect.getOwnPropertyDescriptor;
|
|
15
|
+
const SetPrototypeHas = Set.prototype.has;
|
|
16
|
+
/**
|
|
17
|
+
* BUILD registry slugs that describe tenant source failing to compile, as
|
|
18
|
+
* opposed to framework cache/bundle/asset infrastructure failing in the same
|
|
19
|
+
* phase.
|
|
20
|
+
*/
|
|
21
|
+
const TENANT_BUILD_ERROR_SLUGS = new Set([
|
|
22
|
+
"typescript-error",
|
|
23
|
+
"mdx-compile-error",
|
|
24
|
+
"markdown-compile-error",
|
|
25
|
+
]);
|
|
26
|
+
function hasOwnTrueDataProperty(value, key) {
|
|
27
|
+
try {
|
|
28
|
+
const descriptor = ReflectGetOwnPropertyDescriptor(value, key);
|
|
29
|
+
return descriptor !== undefined &&
|
|
30
|
+
ReflectApply(ObjectPrototypeHasOwnProperty, descriptor, ["value"]) === true &&
|
|
31
|
+
descriptor.value === true;
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Whether `error` describes tenant source or content failing to build (a page
|
|
39
|
+
* that does not compile, MDX that does not parse) rather than a framework
|
|
40
|
+
* fault.
|
|
41
|
+
*
|
|
42
|
+
* Recognizes two discriminators, both written at the seam that knows:
|
|
43
|
+
* - an explicit `tenantBuildFailure: true` error context, set by a compiler
|
|
44
|
+
* stage that inspected the diagnostic, and
|
|
45
|
+
* - a tenant-facing BUILD registry slug.
|
|
46
|
+
*
|
|
47
|
+
* The module loader's symbol tag is deliberately *not* read here: it is set
|
|
48
|
+
* from this predicate, so reading it back would be circular.
|
|
49
|
+
*/
|
|
50
|
+
export function isTenantSourceBuildError(error) {
|
|
51
|
+
const snapshot = snapshotVeryfrontError(error);
|
|
52
|
+
if (!snapshot)
|
|
53
|
+
return false;
|
|
54
|
+
const errorContext = snapshot.context;
|
|
55
|
+
if (typeof errorContext === "object" && errorContext !== null &&
|
|
56
|
+
hasOwnTrueDataProperty(errorContext, "tenantBuildFailure")) {
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
return snapshot.category === "BUILD" &&
|
|
60
|
+
ReflectApply(SetPrototypeHas, TENANT_BUILD_ERROR_SLUGS, [snapshot.slug]) === true;
|
|
61
|
+
}
|