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
package/esm/cli/shared/config.js
CHANGED
|
@@ -86,18 +86,7 @@ async function readConfigFileResolution(projectDir) {
|
|
|
86
86
|
// veryfront.json is always merged in: veryfront.config.ts owns the
|
|
87
87
|
// projectSlug when both define one, but apiUrl/apiToken only live in
|
|
88
88
|
// veryfront.json and must not be dropped because a TS config exists.
|
|
89
|
-
const
|
|
90
|
-
let jsonConfig = null;
|
|
91
|
-
try {
|
|
92
|
-
if (await fs.exists(configJsonPath)) {
|
|
93
|
-
const content = await fs.readTextFile(configJsonPath);
|
|
94
|
-
const parsed = VeryfrontConfigSchema.safeParse(JSON.parse(content));
|
|
95
|
-
jsonConfig = parsed.success ? parsed.data : null;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
catch (error) {
|
|
99
|
-
cliLogger.debug(`Failed to read veryfront.json:`, error);
|
|
100
|
-
}
|
|
89
|
+
const jsonConfig = await readConfigJsonFile(projectDir);
|
|
101
90
|
const config = !moduleProjectSlug && !jsonConfig ? null : {
|
|
102
91
|
...jsonConfig,
|
|
103
92
|
...(moduleProjectSlug ? { projectSlug: moduleProjectSlug } : {}),
|
|
@@ -112,6 +101,21 @@ async function readConfigFileResolution(projectDir) {
|
|
|
112
101
|
export async function readConfigFile(projectDir) {
|
|
113
102
|
return (await readConfigFileResolution(projectDir)).config;
|
|
114
103
|
}
|
|
104
|
+
export async function readConfigJsonFile(projectDir) {
|
|
105
|
+
const fs = createFileSystem();
|
|
106
|
+
const configJsonPath = join(projectDir, "veryfront.json");
|
|
107
|
+
try {
|
|
108
|
+
if (await fs.exists(configJsonPath)) {
|
|
109
|
+
const content = await fs.readTextFile(configJsonPath);
|
|
110
|
+
const parsed = VeryfrontConfigSchema.safeParse(JSON.parse(content));
|
|
111
|
+
return parsed.success ? parsed.data : null;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
cliLogger.debug(`Failed to read veryfront.json:`, error);
|
|
116
|
+
}
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
115
119
|
export async function writeProjectSlug(projectDir, slug) {
|
|
116
120
|
const fs = createFileSystem();
|
|
117
121
|
const configJsonPath = join(projectDir, "veryfront.json");
|
|
@@ -156,31 +160,72 @@ export function resolveEnvironmentProjectReference() {
|
|
|
156
160
|
return undefined;
|
|
157
161
|
}
|
|
158
162
|
async function resolveApiTokenForMode(env, configFile, interactive) {
|
|
163
|
+
const [candidate] = await resolveApiCredentialCandidates(env, configFile, interactive, env);
|
|
164
|
+
if (candidate) {
|
|
165
|
+
return {
|
|
166
|
+
apiToken: candidate.apiToken,
|
|
167
|
+
apiTokenSource: candidate.apiTokenSource,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
return { apiToken: null };
|
|
171
|
+
}
|
|
172
|
+
async function resolveApiCredentialCandidates(env, configFile, interactive, validationEnv) {
|
|
159
173
|
const envToken = env.apiToken;
|
|
160
174
|
const envSource = envToken ? getEnvSource("VERYFRONT_API_TOKEN") : { source: "unset" };
|
|
161
175
|
const storedToken = await readToken(env);
|
|
162
|
-
|
|
163
|
-
|
|
176
|
+
const candidates = [];
|
|
177
|
+
const shellEnvToken = envToken && envSource.source !== "env-file";
|
|
178
|
+
const projectEnvTokenAfterStored = interactive && envToken && envSource.source === "env-file" &&
|
|
179
|
+
storedToken;
|
|
180
|
+
if (shellEnvToken) {
|
|
181
|
+
candidates.push({
|
|
164
182
|
apiToken: envToken,
|
|
165
183
|
apiTokenSource: "env",
|
|
166
|
-
|
|
184
|
+
validationEnv,
|
|
185
|
+
authoritative: true,
|
|
186
|
+
});
|
|
167
187
|
}
|
|
168
188
|
if (configFile?.apiToken) {
|
|
169
|
-
|
|
189
|
+
candidates.push({
|
|
190
|
+
apiToken: configFile.apiToken,
|
|
191
|
+
apiTokenSource: "config-file",
|
|
192
|
+
validationEnv,
|
|
193
|
+
authoritative: true,
|
|
194
|
+
});
|
|
170
195
|
}
|
|
171
|
-
if (
|
|
172
|
-
|
|
196
|
+
if (projectEnvTokenAfterStored) {
|
|
197
|
+
candidates.push({
|
|
198
|
+
apiToken: storedToken,
|
|
199
|
+
apiTokenSource: "token-store",
|
|
200
|
+
validationEnv,
|
|
201
|
+
authoritative: false,
|
|
202
|
+
});
|
|
173
203
|
}
|
|
174
|
-
if (envToken) {
|
|
175
|
-
|
|
204
|
+
if (envToken && !shellEnvToken) {
|
|
205
|
+
candidates.push({
|
|
176
206
|
apiToken: envToken,
|
|
177
207
|
apiTokenSource: envSource.source === "env-file" ? "env-file" : "env",
|
|
178
|
-
|
|
208
|
+
validationEnv,
|
|
209
|
+
authoritative: envSource.source !== "env-file",
|
|
210
|
+
});
|
|
179
211
|
}
|
|
180
|
-
if (storedToken) {
|
|
181
|
-
|
|
212
|
+
if (storedToken && !projectEnvTokenAfterStored) {
|
|
213
|
+
candidates.push({
|
|
214
|
+
apiToken: storedToken,
|
|
215
|
+
apiTokenSource: "token-store",
|
|
216
|
+
validationEnv,
|
|
217
|
+
authoritative: false,
|
|
218
|
+
});
|
|
182
219
|
}
|
|
183
|
-
return
|
|
220
|
+
return candidates;
|
|
221
|
+
}
|
|
222
|
+
export async function resolveApiCredentialCandidatesForAuth(env = getEnvironmentConfig(), projectDir = cwd(), interactive = true) {
|
|
223
|
+
const configFile = await readConfigJsonFile(projectDir);
|
|
224
|
+
const validationEnv = {
|
|
225
|
+
...env,
|
|
226
|
+
apiUrl: resolveCliApiUrl(env, configFile?.apiUrl),
|
|
227
|
+
};
|
|
228
|
+
return resolveApiCredentialCandidates(env, configFile, interactive, validationEnv);
|
|
184
229
|
}
|
|
185
230
|
async function resolveConfigBase(projectDir, env, interactive) {
|
|
186
231
|
const dir = projectDir ?? cwd();
|
|
@@ -189,7 +234,7 @@ async function resolveConfigBase(projectDir, env, interactive) {
|
|
|
189
234
|
const apiUrl = resolveCliApiUrl(env, configFile?.apiUrl);
|
|
190
235
|
let { apiToken, apiTokenSource } = await resolveApiTokenForMode(env, configFile, interactive);
|
|
191
236
|
if (!apiToken && interactive) {
|
|
192
|
-
const userInfo = await ensureAuthenticated(env);
|
|
237
|
+
const userInfo = await ensureAuthenticated(env, dir);
|
|
193
238
|
if (!userInfo)
|
|
194
239
|
throw new Error("Authentication required for this operation.");
|
|
195
240
|
apiToken = (await readToken(env)) ?? null;
|
|
@@ -365,8 +410,8 @@ export function createApiClient(config) {
|
|
|
365
410
|
post(path, body) {
|
|
366
411
|
return request("POST", path, body);
|
|
367
412
|
},
|
|
368
|
-
put(path, body) {
|
|
369
|
-
return request("PUT", path, body);
|
|
413
|
+
put(path, body, options) {
|
|
414
|
+
return request("PUT", path, body, undefined, options);
|
|
370
415
|
},
|
|
371
416
|
patch(path, body) {
|
|
372
417
|
return request("PATCH", path, body);
|
|
@@ -137,7 +137,7 @@ async function loadTemplateFiles(template) {
|
|
|
137
137
|
detail: `Unknown template "${template}". Available templates: ${STARTER_TEMPLATE_NAMES.join(", ")}`,
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
const agentsGuide = getAiRuleTemplate("agents.md");
|
|
140
|
+
const agentsGuide = await getAiRuleTemplate("agents.md");
|
|
141
141
|
if (!agentsGuide)
|
|
142
142
|
throw createConfigError("Project agent guide template not found");
|
|
143
143
|
if (!files.some((file) => file.path === "AGENTS.md")) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const SYNC_STATE_RELATIVE_PATH = ".veryfront/sync-state.json";
|
|
2
|
+
export interface SyncFileSnapshot {
|
|
3
|
+
digest: string;
|
|
4
|
+
versionId?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SyncTargetScope {
|
|
7
|
+
controlPlane: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
branch: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SyncTarget extends SyncTargetScope {
|
|
12
|
+
projectSlug: string;
|
|
13
|
+
files: Record<string, SyncFileSnapshot>;
|
|
14
|
+
}
|
|
15
|
+
export declare function computeContentDigest(content: string): Promise<string>;
|
|
16
|
+
/** Validate the local sync metadata before a command mutates project files. */
|
|
17
|
+
export declare function preflightSyncState(projectDir: string): Promise<void>;
|
|
18
|
+
export declare function readSyncTarget(projectDir: string, inputScope: SyncTargetScope): Promise<SyncTarget | null>;
|
|
19
|
+
export declare function writeSyncTarget(projectDir: string, input: SyncTarget): Promise<void>;
|
|
20
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/cli/sync/state.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,wBAAwB,+BAAmD,CAAC;AAEzF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CACzC;AAcD,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAO3E;AAwID,+EAA+E;AAC/E,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE1E;AAED,wBAAsB,cAAc,CAClC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,eAAe,GAC1B,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAU5B;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA0C1F"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import * as dntShim from "../../_dnt.shims.js";
|
|
2
|
+
import { isNotFoundError, lstat, realPath } from "../../src/fs/index.js";
|
|
3
|
+
import { SYNC_STATE_INVALID } from "../../src/errors/index.js";
|
|
4
|
+
import { join, relative } from "../../src/platform/compat/path/index.js";
|
|
5
|
+
import { normalizeControlPlane } from "../shared/deployment-provenance.js";
|
|
6
|
+
const SYNC_STATE_VERSION = 1;
|
|
7
|
+
const SYNC_STATE_DIRECTORY = ".veryfront";
|
|
8
|
+
const SYNC_STATE_FILENAME = "sync-state.json";
|
|
9
|
+
const DIGEST_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
10
|
+
export const SYNC_STATE_RELATIVE_PATH = `${SYNC_STATE_DIRECTORY}/${SYNC_STATE_FILENAME}`;
|
|
11
|
+
const encoder = new TextEncoder();
|
|
12
|
+
export async function computeContentDigest(content) {
|
|
13
|
+
const digest = await dntShim.crypto.subtle.digest("SHA-256", encoder.encode(content));
|
|
14
|
+
return `sha256:${Array.from(new Uint8Array(digest))
|
|
15
|
+
.map((byte) => byte.toString(16).padStart(2, "0"))
|
|
16
|
+
.join("")}`;
|
|
17
|
+
}
|
|
18
|
+
function syncStatePath(projectDir) {
|
|
19
|
+
return join(projectDir, SYNC_STATE_DIRECTORY, SYNC_STATE_FILENAME);
|
|
20
|
+
}
|
|
21
|
+
function syncStatePathError() {
|
|
22
|
+
return SYNC_STATE_INVALID.create({
|
|
23
|
+
detail: `Veryfront cannot use ${SYNC_STATE_RELATIVE_PATH} through a symbolic link. Remove the link and run the command again.`,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function invalidSyncStateError() {
|
|
27
|
+
return SYNC_STATE_INVALID.create({
|
|
28
|
+
detail: `Veryfront could not read ${SYNC_STATE_RELATIVE_PATH}; remove it, run veryfront pull, and try again.`,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async function lstatIfPresent(path) {
|
|
32
|
+
try {
|
|
33
|
+
return await lstat(path);
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
if (isNotFoundError(error))
|
|
37
|
+
return null;
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async function inspectSyncStatePath(projectDir) {
|
|
42
|
+
const directory = join(projectDir, SYNC_STATE_DIRECTORY);
|
|
43
|
+
const directoryInfo = await lstatIfPresent(directory);
|
|
44
|
+
if (!directoryInfo)
|
|
45
|
+
return { directoryExists: false, fileExists: false };
|
|
46
|
+
if (directoryInfo.isSymlink)
|
|
47
|
+
throw syncStatePathError();
|
|
48
|
+
if (!directoryInfo.isDirectory) {
|
|
49
|
+
throw SYNC_STATE_INVALID.create({
|
|
50
|
+
detail: `${SYNC_STATE_DIRECTORY} must be a directory inside the project.`,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const [canonicalProject, canonicalDirectory] = await Promise.all([
|
|
54
|
+
realPath(projectDir),
|
|
55
|
+
realPath(directory),
|
|
56
|
+
]);
|
|
57
|
+
if (relative(canonicalProject, canonicalDirectory) !== SYNC_STATE_DIRECTORY) {
|
|
58
|
+
throw syncStatePathError();
|
|
59
|
+
}
|
|
60
|
+
const fileInfo = await lstatIfPresent(syncStatePath(projectDir));
|
|
61
|
+
if (!fileInfo)
|
|
62
|
+
return { directoryExists: true, fileExists: false };
|
|
63
|
+
if (fileInfo.isSymlink)
|
|
64
|
+
throw syncStatePathError();
|
|
65
|
+
if (!fileInfo.isFile) {
|
|
66
|
+
throw SYNC_STATE_INVALID.create({
|
|
67
|
+
detail: `${SYNC_STATE_RELATIVE_PATH} must be a file.`,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return { directoryExists: true, fileExists: true };
|
|
71
|
+
}
|
|
72
|
+
function isNonEmptyString(value) {
|
|
73
|
+
return typeof value === "string" && value.length > 0;
|
|
74
|
+
}
|
|
75
|
+
function isSyncFileSnapshot(value) {
|
|
76
|
+
if (!value || typeof value !== "object")
|
|
77
|
+
return false;
|
|
78
|
+
const snapshot = value;
|
|
79
|
+
return typeof snapshot.digest === "string" && DIGEST_PATTERN.test(snapshot.digest) &&
|
|
80
|
+
(snapshot.versionId === undefined || isNonEmptyString(snapshot.versionId));
|
|
81
|
+
}
|
|
82
|
+
function isSyncTarget(value) {
|
|
83
|
+
if (!value || typeof value !== "object")
|
|
84
|
+
return false;
|
|
85
|
+
const target = value;
|
|
86
|
+
if (!isNonEmptyString(target.controlPlane) ||
|
|
87
|
+
!isNonEmptyString(target.projectId) ||
|
|
88
|
+
!isNonEmptyString(target.projectSlug) ||
|
|
89
|
+
!isNonEmptyString(target.branch) ||
|
|
90
|
+
!target.files ||
|
|
91
|
+
typeof target.files !== "object" ||
|
|
92
|
+
Array.isArray(target.files)) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
normalizeControlPlane(target.controlPlane);
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return Object.entries(target.files).every(([path, snapshot]) => path.length > 0 && isSyncFileSnapshot(snapshot));
|
|
102
|
+
}
|
|
103
|
+
function isSyncState(value) {
|
|
104
|
+
if (!value || typeof value !== "object")
|
|
105
|
+
return false;
|
|
106
|
+
const state = value;
|
|
107
|
+
return state.version === SYNC_STATE_VERSION && Array.isArray(state.targets) &&
|
|
108
|
+
state.targets.every(isSyncTarget);
|
|
109
|
+
}
|
|
110
|
+
function normalizeScope(scope) {
|
|
111
|
+
return { ...scope, controlPlane: normalizeControlPlane(scope.controlPlane) };
|
|
112
|
+
}
|
|
113
|
+
function targetMatchesScope(target, scope) {
|
|
114
|
+
return normalizeControlPlane(target.controlPlane) === scope.controlPlane &&
|
|
115
|
+
target.projectId === scope.projectId && target.branch === scope.branch;
|
|
116
|
+
}
|
|
117
|
+
function sortedFiles(files) {
|
|
118
|
+
return Object.fromEntries(Object.entries(files)
|
|
119
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
120
|
+
.map(([path, snapshot]) => [path, { ...snapshot }]));
|
|
121
|
+
}
|
|
122
|
+
function targetSortKey(target) {
|
|
123
|
+
return `${target.controlPlane}\0${target.projectId}\0${target.branch}`;
|
|
124
|
+
}
|
|
125
|
+
async function readSyncState(projectDir) {
|
|
126
|
+
const inspected = await inspectSyncStatePath(projectDir);
|
|
127
|
+
if (!inspected.fileExists)
|
|
128
|
+
return { version: SYNC_STATE_VERSION, targets: [] };
|
|
129
|
+
try {
|
|
130
|
+
const parsed = JSON.parse(await dntShim.Deno.readTextFile(syncStatePath(projectDir)));
|
|
131
|
+
if (isSyncState(parsed))
|
|
132
|
+
return parsed;
|
|
133
|
+
}
|
|
134
|
+
catch {
|
|
135
|
+
throw invalidSyncStateError();
|
|
136
|
+
}
|
|
137
|
+
throw invalidSyncStateError();
|
|
138
|
+
}
|
|
139
|
+
/** Validate the local sync metadata before a command mutates project files. */
|
|
140
|
+
export async function preflightSyncState(projectDir) {
|
|
141
|
+
await readSyncState(projectDir);
|
|
142
|
+
}
|
|
143
|
+
export async function readSyncTarget(projectDir, inputScope) {
|
|
144
|
+
const scope = normalizeScope(inputScope);
|
|
145
|
+
const state = await readSyncState(projectDir);
|
|
146
|
+
const target = state.targets.find((candidate) => targetMatchesScope(candidate, scope));
|
|
147
|
+
if (!target)
|
|
148
|
+
return null;
|
|
149
|
+
return {
|
|
150
|
+
...target,
|
|
151
|
+
controlPlane: normalizeControlPlane(target.controlPlane),
|
|
152
|
+
files: sortedFiles(target.files),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export async function writeSyncTarget(projectDir, input) {
|
|
156
|
+
const target = {
|
|
157
|
+
...input,
|
|
158
|
+
controlPlane: normalizeControlPlane(input.controlPlane),
|
|
159
|
+
files: sortedFiles(input.files),
|
|
160
|
+
};
|
|
161
|
+
if (!isSyncTarget(target))
|
|
162
|
+
throw invalidSyncStateError();
|
|
163
|
+
const state = await readSyncState(projectDir);
|
|
164
|
+
const targets = state.targets
|
|
165
|
+
.filter((candidate) => !targetMatchesScope(candidate, target))
|
|
166
|
+
.map((candidate) => ({
|
|
167
|
+
...candidate,
|
|
168
|
+
controlPlane: normalizeControlPlane(candidate.controlPlane),
|
|
169
|
+
files: sortedFiles(candidate.files),
|
|
170
|
+
}));
|
|
171
|
+
targets.push(target);
|
|
172
|
+
targets.sort((left, right) => targetSortKey(left).localeCompare(targetSortKey(right)));
|
|
173
|
+
const directory = join(projectDir, SYNC_STATE_DIRECTORY);
|
|
174
|
+
const inspected = await inspectSyncStatePath(projectDir);
|
|
175
|
+
if (!inspected.directoryExists)
|
|
176
|
+
await dntShim.Deno.mkdir(directory, { recursive: true });
|
|
177
|
+
await inspectSyncStatePath(projectDir);
|
|
178
|
+
const temporaryPath = join(directory, `.${SYNC_STATE_FILENAME}.${dntShim.crypto.randomUUID()}.tmp`);
|
|
179
|
+
try {
|
|
180
|
+
await dntShim.Deno.writeTextFile(temporaryPath, `${JSON.stringify({ version: SYNC_STATE_VERSION, targets }, null, 2)}\n`);
|
|
181
|
+
await dntShim.Deno.rename(temporaryPath, syncStatePath(projectDir));
|
|
182
|
+
}
|
|
183
|
+
catch (error) {
|
|
184
|
+
try {
|
|
185
|
+
await dntShim.Deno.remove(temporaryPath);
|
|
186
|
+
}
|
|
187
|
+
catch (removeError) {
|
|
188
|
+
if (!isNotFoundError(removeError))
|
|
189
|
+
throw removeError;
|
|
190
|
+
}
|
|
191
|
+
throw error;
|
|
192
|
+
}
|
|
193
|
+
}
|
package/esm/deno.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1239",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"minimumDependencyAge": {
|
|
@@ -562,7 +562,7 @@ export default {
|
|
|
562
562
|
},
|
|
563
563
|
"test:all-runtimes": "deno task test:unit && deno task test:node && deno task test:bun",
|
|
564
564
|
"test:e2e": "deno task test:e2e:playwright",
|
|
565
|
-
"test:e2e:playwright": "PW_DISABLE_TS_ESM=1
|
|
565
|
+
"test:e2e:playwright": "PW_DISABLE_TS_ESM=1 deno run -A npm:playwright@1.60.0 test --config=tests/e2e/playwright.config.cjs",
|
|
566
566
|
"test:e2e:rsc-browser": "deno task generate && DENO_TESTING=1 VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --allow-all tests/e2e/regressions/rsc-proxy-hydration.test.ts tests/e2e/regressions/2026-07-27-legacy-router-hydration.test.ts tests/e2e/regressions/2026-07-27-release-asset-page-island-hydration.test.ts tests/e2e/regressions/2026-08-14-server-layout-spa-fallback.test.ts --unstable-worker-options --unstable-net",
|
|
567
567
|
"test:e2e:binary": "deno task generate && deno test --allow-all tests/integration/compiled-binary-e2e.test.ts",
|
|
568
568
|
"test:e2e:binary:fresh": "deno task generate && VERYFRONT_BINARY_FRESH=1 deno test --allow-all tests/integration/compiled-binary-e2e.test.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-request-builder.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-llm-anthropic/src/anthropic-request-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anthropic-request-builder.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-llm-anthropic/src/anthropic-request-builder.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,uBAAuB,EAEvB,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAO/C,OAAO,EACL,KAAK,iCAAiC,EAUvC,MAAM,+BAA+B,CAAC;AAEvC,KAAK,gBAAgB,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;AA2E9C,KAAK,0BAA0B,GAAG;IAChC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,+BAAgC,SAAQ,uBAAuB;IAC9E,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACjD;AAED,gGAAgG;AAChG,MAAM,MAAM,qBAAqB,GAAG,0BAA0B,CAAC;AAE/D,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,OAAO,EAAE;QACZ,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC;QACtC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,IAAI,CAAC;IACT,KAAK,IAAI,KAAK,CAAC;QACb,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC;QACtC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;CACJ,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACzC,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,0BAA0B,EAAE,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AA8lEF,wBAAgB,iDAAiD,CAC/D,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,+BAA+B,EACxC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,gBAAgB,GACzB;IACD,IAAI,EAAE,0BAA0B,CAAC;IACjC,qBAAqB,EAAE,iCAAiC,CAAC;CAC1D,CAgLA;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,+BAA+B,EACxC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,gBAAgB,GACzB,0BAA0B,CAQ5B"}
|