veryfront 0.1.1190 → 0.1.1192
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/commands/serve/command.d.ts.map +1 -1
- package/esm/cli/commands/serve/command.js +5 -24
- package/esm/cli/commands/serve/proxy-extension-composition.d.ts +6 -5
- package/esm/cli/commands/serve/proxy-extension-composition.d.ts.map +1 -1
- package/esm/cli/commands/serve/proxy-extension-composition.js +57 -29
- package/esm/cli/commands/serve/proxy-runtime.d.ts +17 -0
- package/esm/cli/commands/serve/proxy-runtime.d.ts.map +1 -0
- package/esm/cli/commands/serve/proxy-runtime.js +54 -0
- package/esm/cli/mcp/dev-server-client.d.ts +6 -0
- package/esm/cli/mcp/dev-server-client.d.ts.map +1 -1
- package/esm/cli/mcp/dev-server-client.js +117 -5
- package/esm/cli/shared/config.d.ts +15 -1
- package/esm/cli/shared/config.d.ts.map +1 -1
- package/esm/cli/shared/config.js +24 -15
- package/esm/cli/shared/deployment/control-plane.d.ts +9 -2
- package/esm/cli/shared/deployment/control-plane.d.ts.map +1 -1
- package/esm/cli/shared/deployment/control-plane.js +7 -2
- package/esm/cli/shared/deployment/deploy-project.d.ts +2 -2
- package/esm/cli/shared/deployment/deploy-project.d.ts.map +1 -1
- package/esm/cli/shared/deployment/deploy-project.js +97 -28
- package/esm/cli/templates/manifest.d.ts +2 -0
- package/esm/cli/templates/manifest.js +7 -5
- package/esm/deno.d.ts +6 -0
- package/esm/deno.js +13 -7
- package/esm/extensions/ext-llm-anthropic/src/anthropic-native-content.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/anthropic-native-content.js +2 -2
- package/esm/extensions/ext-llm-google/src/google-thought-signatures.d.ts.map +1 -1
- package/esm/extensions/ext-llm-google/src/google-thought-signatures.js +2 -2
- package/esm/extensions/ext-llm-openai/src/openai-web-search.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/openai-web-search.js +2 -2
- package/esm/src/agent/hosted/child-fork-run-context.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-run-context.js +4 -1
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts +1 -0
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-pending-tool-lifecycle.js +8 -2
- package/esm/src/agent/hosted/child-tool-input.d.ts +1 -0
- package/esm/src/agent/hosted/child-tool-input.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-tool-input.js +14 -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 +2 -1
- package/esm/src/agent/hosted/cloud-agent-child-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-child-tools.js +12 -6
- package/esm/src/agent/hosted/cloud-agent-config.d.ts +3 -0
- package/esm/src/agent/hosted/cloud-agent-config.d.ts.map +1 -1
- package/esm/src/agent/hosted/cloud-agent-config.js +5 -0
- package/esm/src/agent/hosted/cloud-agent-provider-bootstrap.d.ts +2 -0
- package/esm/src/agent/hosted/cloud-agent-provider-bootstrap.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-reference-resolver.d.ts +5 -0
- package/esm/src/agent/hosted/project-reference-resolver.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-reference-resolver.js +63 -8
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts +10 -0
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts +9 -2
- package/esm/src/agent/runtime/agent-invocation-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/agent-invocation-contract.js +38 -3
- package/esm/src/agent/runtime/error-utils.d.ts +2 -0
- package/esm/src/agent/runtime/error-utils.d.ts.map +1 -1
- package/esm/src/agent/runtime/error-utils.js +300 -5
- package/esm/src/agent/runtime/model-resolution.js +36 -36
- package/esm/src/agent/schemas/agent.schema.d.ts +4 -4
- package/esm/src/agent/service/config.d.ts.map +1 -1
- package/esm/src/agent/service/config.js +4 -1
- package/esm/src/build/production-build/templates.d.ts.map +1 -1
- package/esm/src/build/production-build/templates.js +1 -1
- package/esm/src/cache/config-hash.d.ts.map +1 -1
- package/esm/src/cache/config-hash.js +39 -26
- package/esm/src/cache/keys/builders/render.d.ts +4 -1
- package/esm/src/cache/keys/builders/render.d.ts.map +1 -1
- package/esm/src/cache/keys/builders/render.js +13 -3
- package/esm/src/channels/control-plane.d.ts +19 -1
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/channels/control-plane.js +32 -0
- package/esm/src/discovery/discovery-utils.d.ts +6 -0
- package/esm/src/discovery/discovery-utils.d.ts.map +1 -1
- package/esm/src/discovery/discovery-utils.js +19 -0
- package/esm/src/discovery/index.d.ts +1 -1
- package/esm/src/discovery/index.d.ts.map +1 -1
- package/esm/src/discovery/index.js +1 -1
- package/esm/src/errors/catalog/module-errors.d.ts.map +1 -1
- package/esm/src/errors/catalog/module-errors.js +10 -0
- package/esm/src/errors/error-registry/module.d.ts +4 -0
- package/esm/src/errors/error-registry/module.d.ts.map +1 -1
- package/esm/src/errors/error-registry/module.js +16 -0
- package/esm/src/errors/error-registry.d.ts +2 -0
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/index.d.ts +1 -1
- package/esm/src/errors/index.d.ts.map +1 -1
- package/esm/src/errors/index.js +1 -1
- package/esm/src/errors/types.d.ts.map +1 -1
- package/esm/src/errors/types.js +5 -2
- package/esm/src/eval/studio.d.ts +1 -1
- package/esm/src/extensions/bundler/bundler.d.ts +8 -0
- package/esm/src/extensions/bundler/bundler.d.ts.map +1 -1
- package/esm/src/extensions/distributed/rate-limit-support.d.ts +3 -1
- package/esm/src/extensions/distributed/rate-limit-support.d.ts.map +1 -1
- package/esm/src/extensions/distributed/rate-limit-support.js +3 -1
- package/esm/src/html/dev-scripts.d.ts.map +1 -1
- package/esm/src/html/dev-scripts.js +2 -1
- package/esm/src/html/html-injection.d.ts.map +1 -1
- package/esm/src/html/html-injection.js +37 -3
- package/esm/src/html/hydration-script-builder/hydration-runtime.generated.js +1 -1
- package/esm/src/html/index.d.ts +1 -0
- package/esm/src/html/index.d.ts.map +1 -1
- package/esm/src/html/index.js +1 -0
- package/esm/src/html/project-stylesheet-ids.d.ts +4 -0
- package/esm/src/html/project-stylesheet-ids.d.ts.map +1 -0
- package/esm/src/html/project-stylesheet-ids.js +6 -0
- package/esm/src/internal-agents/schema.d.ts +2 -0
- package/esm/src/internal-agents/schema.d.ts.map +1 -1
- package/esm/src/internal-agents/schema.js +4 -1
- package/esm/src/middleware/builtin/security/rate-limit-validation.d.ts +1 -0
- package/esm/src/middleware/builtin/security/rate-limit-validation.d.ts.map +1 -1
- package/esm/src/middleware/builtin/security/rate-limit-validation.js +1 -0
- package/esm/src/middleware/builtin/security/rate-limit.d.ts +31 -1
- package/esm/src/middleware/builtin/security/rate-limit.d.ts.map +1 -1
- package/esm/src/middleware/builtin/security/rate-limit.js +164 -36
- package/esm/src/middleware/builtin/security/redis-rate-limit-script.d.ts +3 -0
- package/esm/src/middleware/builtin/security/redis-rate-limit-script.d.ts.map +1 -0
- package/esm/src/middleware/builtin/security/redis-rate-limit-script.js +10 -0
- package/esm/src/middleware/builtin/security/redis-rate-limit.d.ts +13 -2
- package/esm/src/middleware/builtin/security/redis-rate-limit.d.ts.map +1 -1
- package/esm/src/middleware/builtin/security/redis-rate-limit.js +88 -20
- package/esm/src/middleware/index.d.ts +1 -1
- package/esm/src/middleware/index.d.ts.map +1 -1
- package/esm/src/modules/import-map/loader.d.ts +2 -1
- package/esm/src/modules/import-map/loader.d.ts.map +1 -1
- package/esm/src/modules/import-map/loader.js +210 -81
- package/esm/src/modules/import-map/merger.d.ts.map +1 -1
- package/esm/src/modules/import-map/merger.js +57 -11
- package/esm/src/modules/import-map/preloader.d.ts +83 -2
- package/esm/src/modules/import-map/preloader.d.ts.map +1 -1
- package/esm/src/modules/import-map/preloader.js +824 -25
- 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 +28 -1
- package/esm/src/modules/server/browser-module-admission.d.ts +27 -0
- package/esm/src/modules/server/browser-module-admission.d.ts.map +1 -0
- package/esm/src/modules/server/browser-module-admission.js +164 -0
- package/esm/src/modules/server/classify.d.ts.map +1 -1
- package/esm/src/modules/server/classify.js +18 -2
- package/esm/src/modules/server/module-server.d.ts +14 -0
- package/esm/src/modules/server/module-server.d.ts.map +1 -1
- package/esm/src/modules/server/module-server.js +500 -132
- package/esm/src/modules/server/rate-limiter.d.ts +7 -2
- package/esm/src/modules/server/rate-limiter.d.ts.map +1 -1
- package/esm/src/modules/server/rate-limiter.js +30 -6
- package/esm/src/modules/server/websocket-handler.d.ts.map +1 -1
- package/esm/src/modules/server/websocket-handler.js +4 -5
- package/esm/src/observability/tracing/service-tracer.d.ts.map +1 -1
- package/esm/src/observability/tracing/service-tracer.js +2 -10
- package/esm/src/platform/adapters/fs/cache/file-cache.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/cache/file-cache.js +11 -1
- package/esm/src/platform/adapters/fs/github/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/adapter.js +0 -5
- package/esm/src/platform/adapters/fs/github/github-api-client.d.ts +1 -0
- package/esm/src/platform/adapters/fs/github/github-api-client.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/github-api-client.js +81 -6
- package/esm/src/platform/adapters/fs/github/path-utils.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/path-utils.js +22 -1
- package/esm/src/platform/adapters/fs/github/types.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/types.js +12 -11
- package/esm/src/platform/adapters/fs/integration.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/integration.js +25 -36
- package/esm/src/platform/adapters/fs/veryfront/path-normalizer.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/path-normalizer.js +17 -4
- package/esm/src/platform/adapters/fs/veryfront/proxy-manager.d.ts +6 -2
- package/esm/src/platform/adapters/fs/veryfront/proxy-manager.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/proxy-manager.js +207 -59
- package/esm/src/platform/adapters/fs/veryfront/schemas/proxy-manager.schema.js +1 -1
- package/esm/src/platform/adapters/veryfront-api-transport.d.ts +4 -0
- package/esm/src/platform/adapters/veryfront-api-transport.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-transport.js +20 -6
- package/esm/src/platform/compat/error-introspection.d.ts +12 -1
- package/esm/src/platform/compat/error-introspection.d.ts.map +1 -1
- package/esm/src/platform/compat/error-introspection.js +40 -5
- package/esm/src/platform/compat/framework-source-resolver.d.ts.map +1 -1
- package/esm/src/platform/compat/framework-source-resolver.js +6 -1
- package/esm/src/platform/compat/path/basic-operations.d.ts.map +1 -1
- package/esm/src/platform/compat/path/basic-operations.js +6 -2
- package/esm/src/platform/compat/path/portable.d.ts.map +1 -1
- package/esm/src/platform/compat/path/portable.js +98 -54
- package/esm/src/platform/compat/path/resolution.d.ts.map +1 -1
- package/esm/src/platform/compat/path/resolution.js +14 -5
- package/esm/src/platform/compat/primordials/array.d.ts +8 -0
- package/esm/src/platform/compat/primordials/array.d.ts.map +1 -0
- package/esm/src/platform/compat/primordials/array.js +33 -0
- package/esm/src/platform/compat/published-runtime-helpers.d.ts +2 -0
- package/esm/src/platform/compat/published-runtime-helpers.d.ts.map +1 -0
- package/esm/src/platform/compat/published-runtime-helpers.js +5 -0
- package/esm/src/platform/index.d.ts +1 -1
- package/esm/src/platform/index.d.ts.map +1 -1
- package/esm/src/platform/index.js +1 -1
- package/esm/src/provider/runtime-loader/json-snapshot.d.ts +12 -0
- package/esm/src/provider/runtime-loader/json-snapshot.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader/json-snapshot.js +203 -57
- package/esm/src/provider/runtime-loader.d.ts +1 -1
- package/esm/src/provider/runtime-loader.d.ts.map +1 -1
- package/esm/src/provider/runtime-loader.js +3 -3
- package/esm/src/provider/shared/index.d.ts +1 -1
- package/esm/src/provider/shared/index.d.ts.map +1 -1
- package/esm/src/provider/shared/index.js +1 -1
- package/esm/src/proxy/control-plane-signature.d.ts +14 -0
- package/esm/src/proxy/control-plane-signature.d.ts.map +1 -1
- package/esm/src/proxy/control-plane-signature.js +131 -1
- package/esm/src/proxy/handler.d.ts +3 -1
- package/esm/src/proxy/handler.d.ts.map +1 -1
- package/esm/src/proxy/handler.js +56 -3
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts +12 -5
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.js +5 -4
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts +8 -2
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.js +7 -7
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts +4 -3
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.js +10 -7
- package/esm/src/react/components/optimized-image/helpers.d.ts +20 -1
- package/esm/src/react/components/optimized-image/helpers.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/helpers.js +168 -6
- package/esm/src/react/components/optimized-image/index.d.ts +3 -2
- package/esm/src/react/components/optimized-image/index.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/useOptimizedImage.d.ts +11 -6
- package/esm/src/react/components/optimized-image/useOptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/useOptimizedImage.js +6 -8
- package/esm/src/react/index.d.ts +1 -1
- package/esm/src/react/index.d.ts.map +1 -1
- package/esm/src/release-assets/build-executor.d.ts.map +1 -1
- package/esm/src/release-assets/build-executor.js +43 -4
- package/esm/src/release-assets/index.d.ts +1 -1
- package/esm/src/release-assets/index.d.ts.map +1 -1
- package/esm/src/release-assets/index.js +1 -1
- package/esm/src/release-assets/manifest-cache.d.ts +8 -6
- package/esm/src/release-assets/manifest-cache.d.ts.map +1 -1
- package/esm/src/release-assets/manifest-cache.js +20 -5
- package/esm/src/release-assets/manifest-schema.d.ts +14 -2
- package/esm/src/release-assets/manifest-schema.d.ts.map +1 -1
- package/esm/src/release-assets/manifest-schema.js +21 -1
- package/esm/src/rendering/factories/service-factories.d.ts.map +1 -1
- package/esm/src/rendering/factories/service-factories.js +1 -0
- package/esm/src/rendering/layouts/layout-applicator.d.ts +3 -0
- package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/layout-applicator.js +3 -1
- package/esm/src/rendering/layouts/utils/applicator.d.ts +2 -1
- package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/applicator.js +3 -3
- package/esm/src/rendering/layouts/utils/component-loader.d.ts +4 -3
- package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/component-loader.js +23 -7
- package/esm/src/rendering/orchestrator/layout.d.ts +2 -0
- package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/layout.js +7 -2
- package/esm/src/rendering/orchestrator/lifecycle.d.ts +3 -0
- package/esm/src/rendering/orchestrator/lifecycle.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/lifecycle.js +3 -0
- package/esm/src/rendering/orchestrator/ssr.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/ssr.js +2 -0
- package/esm/src/rendering/page-renderer.d.ts +3 -0
- package/esm/src/rendering/page-renderer.d.ts.map +1 -1
- package/esm/src/rendering/page-renderer.js +3 -0
- package/esm/src/rendering/page-rendering.d.ts +2 -0
- package/esm/src/rendering/page-rendering.d.ts.map +1 -1
- package/esm/src/rendering/page-rendering.js +13 -1
- package/esm/src/rendering/renderer.d.ts.map +1 -1
- package/esm/src/rendering/renderer.js +1 -0
- package/esm/src/routing/api/module-loader/esbuild-plugin.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/esbuild-plugin.js +9 -3
- package/esm/src/runs/schemas.d.ts +11 -11
- package/esm/src/security/http/base-handler.d.ts.map +1 -1
- package/esm/src/security/http/base-handler.js +5 -3
- package/esm/src/security/http/local-control-request.d.ts +39 -0
- package/esm/src/security/http/local-control-request.d.ts.map +1 -0
- package/esm/src/security/http/local-control-request.js +137 -0
- package/esm/src/security/sandbox/worker-egress-guard.d.ts +15 -0
- package/esm/src/security/sandbox/worker-egress-guard.d.ts.map +1 -1
- package/esm/src/security/sandbox/worker-egress-guard.js +48 -3
- package/esm/src/server/bootstrap.d.ts.map +1 -1
- package/esm/src/server/bootstrap.js +11 -0
- package/esm/src/server/context/request-context.d.ts +6 -0
- package/esm/src/server/context/request-context.d.ts.map +1 -1
- package/esm/src/server/context/request-context.js +2 -1
- package/esm/src/server/handlers/dev/dashboard/access-policy.d.ts +20 -0
- package/esm/src/server/handlers/dev/dashboard/access-policy.d.ts.map +1 -0
- package/esm/src/server/handlers/dev/dashboard/access-policy.js +106 -0
- package/esm/src/server/handlers/dev/dashboard/html-shell.d.ts +2 -1
- package/esm/src/server/handlers/dev/dashboard/html-shell.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/dashboard/html-shell.js +8 -32
- package/esm/src/server/handlers/dev/dashboard/index.d.ts +3 -0
- package/esm/src/server/handlers/dev/dashboard/index.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/dashboard/index.js +73 -8
- package/esm/src/server/handlers/dev/dashboard/ui-handler.d.ts +2 -1
- package/esm/src/server/handlers/dev/dashboard/ui-handler.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/dashboard/ui-handler.js +5 -84
- package/esm/src/server/handlers/dev/debug-context.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/debug-context.handler.js +4 -0
- package/esm/src/server/handlers/dev/files/dev-file.handler.d.ts +0 -1
- package/esm/src/server/handlers/dev/files/dev-file.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/files/dev-file.handler.js +21 -30
- package/esm/src/server/handlers/dev/files/esbuild-plugins.d.ts +5 -0
- package/esm/src/server/handlers/dev/files/esbuild-plugins.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/files/esbuild-plugins.js +56 -14
- package/esm/src/server/handlers/dev/files/path-validator.d.ts +8 -1
- package/esm/src/server/handlers/dev/files/path-validator.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/files/path-validator.js +21 -8
- package/esm/src/server/handlers/dev/projects/api.js +1 -1
- package/esm/src/server/handlers/dev/projects/html-shell.d.ts +1 -1
- package/esm/src/server/handlers/dev/projects/html-shell.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/projects/html-shell.js +2 -36
- package/esm/src/server/handlers/dev/projects/index.d.ts +3 -0
- package/esm/src/server/handlers/dev/projects/index.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/projects/index.js +37 -7
- package/esm/src/server/handlers/dev/projects/ui-handler.d.ts +2 -1
- package/esm/src/server/handlers/dev/projects/ui-handler.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/projects/ui-handler.js +5 -103
- package/esm/src/server/handlers/dev/scripts/hmr-scripts.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/scripts/hmr-scripts.js +37 -13
- package/esm/src/server/handlers/dev/shared/dev-ui-bundle-response.d.ts +10 -0
- package/esm/src/server/handlers/dev/shared/dev-ui-bundle-response.d.ts.map +1 -0
- package/esm/src/server/handlers/dev/shared/dev-ui-bundle-response.js +50 -0
- package/esm/src/server/handlers/monitoring/client-log.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/monitoring/client-log.handler.js +4 -0
- package/esm/src/server/handlers/monitoring/memory.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/monitoring/memory.handler.js +4 -0
- package/esm/src/server/handlers/monitoring/metrics.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/monitoring/metrics.handler.js +4 -0
- package/esm/src/server/handlers/preview/hmr-client-message.d.ts +2 -1
- package/esm/src/server/handlers/preview/hmr-client-message.d.ts.map +1 -1
- package/esm/src/server/handlers/preview/hmr-client-message.js +4 -13
- package/esm/src/server/handlers/preview/hmr.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/preview/hmr.handler.js +3 -24
- package/esm/src/server/handlers/request/agent-stream.handler.d.ts +5 -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 +78 -60
- package/esm/src/server/handlers/request/module/module-server-handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/module/module-server-handler.js +2 -0
- package/esm/src/server/project-env/cache.d.ts +31 -8
- package/esm/src/server/project-env/cache.d.ts.map +1 -1
- package/esm/src/server/project-env/cache.js +222 -42
- package/esm/src/server/project-env/fetcher.d.ts +27 -3
- package/esm/src/server/project-env/fetcher.d.ts.map +1 -1
- package/esm/src/server/project-env/fetcher.js +156 -31
- package/esm/src/server/project-env/index.d.ts +2 -1
- package/esm/src/server/project-env/index.d.ts.map +1 -1
- package/esm/src/server/project-env/index.js +2 -1
- package/esm/src/server/project-env/production-environment-resolver.d.ts +40 -0
- package/esm/src/server/project-env/production-environment-resolver.d.ts.map +1 -0
- package/esm/src/server/project-env/production-environment-resolver.js +237 -0
- package/esm/src/server/runtime-handler/adapter-factory.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/adapter-factory.js +4 -9
- package/esm/src/server/runtime-handler/environment-resolution.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/environment-resolution.js +7 -2
- package/esm/src/server/runtime-handler/handler-context-builder.d.ts +9 -1
- package/esm/src/server/runtime-handler/handler-context-builder.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/handler-context-builder.js +4 -0
- package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/index.js +45 -25
- package/esm/src/server/runtime-handler/project-middleware.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/project-middleware.js +15 -8
- package/esm/src/server/runtime-handler/project-resolution.d.ts +5 -1
- package/esm/src/server/runtime-handler/project-resolution.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/project-resolution.js +30 -16
- package/esm/src/server/runtime-handler/project-runtime-context.d.ts +9 -8
- package/esm/src/server/runtime-handler/project-runtime-context.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/project-runtime-context.js +86 -28
- package/esm/src/server/runtime-handler/timeout-manager.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/timeout-manager.js +11 -4
- package/esm/src/server/services/rsc/endpoints/endpoint-router.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/endpoint-router.js +67 -99
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
- package/esm/src/server/services/rsc/orchestrators/handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/handler.js +1 -0
- package/esm/src/server/services/rsc/orchestrators/render-handler.d.ts +2 -0
- package/esm/src/server/services/rsc/orchestrators/render-handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/render-handler.js +13 -1
- package/esm/src/server/shared/browser-module-bundler.d.ts +56 -1
- package/esm/src/server/shared/browser-module-bundler.d.ts.map +1 -1
- package/esm/src/server/shared/browser-module-bundler.js +626 -83
- package/esm/src/server/utils/proxy-trust.d.ts +9 -16
- package/esm/src/server/utils/proxy-trust.d.ts.map +1 -1
- package/esm/src/server/utils/proxy-trust.js +8 -29
- package/esm/src/testing/assert.d.ts +1 -1
- package/esm/src/testing/assert.d.ts.map +1 -1
- package/esm/src/testing/assert.js +3 -1
- package/esm/src/tool/factory.d.ts.map +1 -1
- package/esm/src/tool/factory.js +42 -10
- package/esm/src/tool/index.d.ts +1 -1
- package/esm/src/tool/index.d.ts.map +1 -1
- package/esm/src/tool/index.js +1 -1
- package/esm/src/tool/remote-mcp.d.ts +16 -1
- package/esm/src/tool/remote-mcp.d.ts.map +1 -1
- package/esm/src/tool/remote-mcp.js +48 -6
- package/esm/src/transforms/esm/http-cache-helpers.d.ts +4 -0
- package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-helpers.js +184 -62
- package/esm/src/transforms/esm/package-registry.d.ts +6 -0
- package/esm/src/transforms/esm/package-registry.d.ts.map +1 -1
- package/esm/src/transforms/esm/package-registry.js +9 -0
- package/esm/src/transforms/esm/specifier-resolver.d.ts.map +1 -1
- package/esm/src/transforms/esm/specifier-resolver.js +52 -9
- package/esm/src/transforms/esm/types.d.ts +8 -0
- package/esm/src/transforms/esm/types.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/core.js +2 -2
- package/esm/src/transforms/import-rewriter/url-builder.d.ts +6 -0
- package/esm/src/transforms/import-rewriter/url-builder.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/url-builder.js +96 -29
- package/esm/src/transforms/mdx/esm-module-loader/import-transformer.js +2 -2
- 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 +1 -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 +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.d.ts +1 -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 +8 -4
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/index.js +44 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-writer.d.ts +15 -0
- package/esm/src/transforms/mdx/esm-module-loader/module-writer.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-writer.js +32 -2
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts +2 -0
- package/esm/src/transforms/mdx/esm-module-loader/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/index.d.ts +17 -1
- package/esm/src/transforms/mdx/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/index.js +23 -1
- package/esm/src/transforms/pipeline/cache-identity.d.ts +38 -0
- package/esm/src/transforms/pipeline/cache-identity.d.ts.map +1 -0
- package/esm/src/transforms/pipeline/cache-identity.js +381 -0
- package/esm/src/transforms/pipeline/index.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/index.js +71 -27
- package/esm/src/transforms/pipeline/stages/ssr-http-cache.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-http-cache.js +2 -0
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.d.ts +4 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.js +17 -2
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/index.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/index.js +4 -2
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.d.ts +2 -2
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.js +10 -10
- package/esm/src/transforms/pipeline/types.d.ts +19 -1
- package/esm/src/transforms/pipeline/types.d.ts.map +1 -1
- package/esm/src/transforms/shared/server-only-packages.d.ts.map +1 -1
- package/esm/src/transforms/shared/server-only-packages.js +17 -2
- package/esm/src/types/server.d.ts +8 -0
- package/esm/src/types/server.d.ts.map +1 -1
- package/esm/src/utils/base64url.d.ts.map +1 -1
- package/esm/src/utils/base64url.js +10 -4
- package/esm/src/utils/bundle-manifest.d.ts +19 -1
- package/esm/src/utils/bundle-manifest.d.ts.map +1 -1
- package/esm/src/utils/bundle-manifest.js +124 -27
- package/esm/src/utils/cache/eviction/eviction-manager.js +2 -2
- package/esm/src/utils/cache/stores/memory/entry-manager.d.ts +2 -1
- package/esm/src/utils/cache/stores/memory/entry-manager.d.ts.map +1 -1
- package/esm/src/utils/cache/stores/memory/entry-manager.js +7 -5
- package/esm/src/utils/cache/stores/memory/lru-cache-adapter.d.ts +7 -0
- package/esm/src/utils/cache/stores/memory/lru-cache-adapter.d.ts.map +1 -1
- package/esm/src/utils/cache/stores/memory/lru-cache-adapter.js +74 -17
- package/esm/src/utils/cache/stores/memory/lru-list-manager.d.ts +2 -0
- package/esm/src/utils/cache/stores/memory/lru-list-manager.d.ts.map +1 -1
- package/esm/src/utils/cache/stores/memory/lru-list-manager.js +6 -2
- package/esm/src/utils/cache/stores/memory/types.d.ts +2 -0
- package/esm/src/utils/cache/stores/memory/types.d.ts.map +1 -1
- package/esm/src/utils/cache-dir.d.ts +22 -1
- package/esm/src/utils/cache-dir.d.ts.map +1 -1
- package/esm/src/utils/cache-dir.js +171 -18
- package/esm/src/utils/cache-file-ops.d.ts +7 -3
- package/esm/src/utils/cache-file-ops.d.ts.map +1 -1
- package/esm/src/utils/cache-file-ops.js +26 -9
- package/esm/src/utils/cache-namespace.d.ts.map +1 -1
- package/esm/src/utils/cache-namespace.js +3 -1
- package/esm/src/utils/constants/limits.d.ts +1 -1
- package/esm/src/utils/constants/limits.d.ts.map +1 -1
- package/esm/src/utils/constants/limits.js +1 -1
- package/esm/src/utils/cookie-utils.d.ts.map +1 -1
- package/esm/src/utils/cookie-utils.js +15 -2
- package/esm/src/utils/env-loader.d.ts.map +1 -1
- package/esm/src/utils/env-loader.js +7 -2
- package/esm/src/utils/file-discovery.d.ts.map +1 -1
- package/esm/src/utils/file-discovery.js +88 -4
- package/esm/src/utils/hash-utils.d.ts.map +1 -1
- package/esm/src/utils/hash-utils.js +32 -6
- package/esm/src/utils/header-identity.d.ts +3 -0
- package/esm/src/utils/header-identity.d.ts.map +1 -0
- package/esm/src/utils/header-identity.js +25 -0
- package/esm/src/utils/id.d.ts.map +1 -1
- package/esm/src/utils/id.js +26 -4
- package/esm/src/utils/image-variant-widths.d.ts +13 -0
- package/esm/src/utils/image-variant-widths.d.ts.map +1 -0
- package/esm/src/utils/image-variant-widths.js +75 -0
- package/esm/src/utils/import-lockfile.d.ts +52 -1
- package/esm/src/utils/import-lockfile.d.ts.map +1 -1
- package/esm/src/utils/import-lockfile.js +1041 -58
- package/esm/src/utils/index.d.ts +1 -1
- package/esm/src/utils/index.d.ts.map +1 -1
- package/esm/src/utils/index.js +1 -1
- package/esm/src/utils/logger/logger.d.ts +1 -0
- package/esm/src/utils/logger/logger.d.ts.map +1 -1
- package/esm/src/utils/logger/logger.js +359 -78
- package/esm/src/utils/logger/redact.d.ts +4 -2
- package/esm/src/utils/logger/redact.d.ts.map +1 -1
- package/esm/src/utils/logger/redact.js +300 -112
- package/esm/src/utils/logger/serialization.d.ts +3 -0
- package/esm/src/utils/logger/serialization.d.ts.map +1 -0
- package/esm/src/utils/logger/serialization.js +81 -0
- package/esm/src/utils/lru-wrapper.js +2 -2
- package/esm/src/utils/memoize.d.ts +1 -1
- package/esm/src/utils/memoize.d.ts.map +1 -1
- package/esm/src/utils/memoize.js +16 -5
- package/esm/src/utils/memory/profiler.d.ts +11 -0
- package/esm/src/utils/memory/profiler.d.ts.map +1 -1
- package/esm/src/utils/memory/profiler.js +20 -5
- package/esm/src/utils/path-utils.d.ts.map +1 -1
- package/esm/src/utils/path-utils.js +4 -2
- package/esm/src/utils/sleep.d.ts +8 -1
- package/esm/src/utils/sleep.d.ts.map +1 -1
- package/esm/src/utils/sleep.js +11 -2
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/utils/websocket-message-size.d.ts +22 -0
- package/esm/src/utils/websocket-message-size.d.ts.map +1 -0
- package/esm/src/utils/websocket-message-size.js +41 -0
- package/esm/src/workflow/schemas/workflow.schema.d.ts +10 -10
- package/esm/src/workflow/worker/shared.d.ts.map +1 -1
- package/esm/src/workflow/worker/shared.js +16 -5
- package/package.json +8 -8
- package/esm/src/server/dev-ui/manifest.d.ts +0 -33
- package/esm/src/server/dev-ui/manifest.d.ts.map +0 -1
- package/esm/src/server/dev-ui/manifest.js +0 -31
- package/esm/src/server/handlers/dev/shared/ui-module-transform.d.ts +0 -8
- package/esm/src/server/handlers/dev/shared/ui-module-transform.d.ts.map +0 -1
- package/esm/src/server/handlers/dev/shared/ui-module-transform.js +0 -32
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { computeHash } from "../utils/index.js";
|
|
8
8
|
import { VERSION } from "../utils/version.js";
|
|
9
|
+
import { primordialArrayJoin as arrayJoin, primordialArrayPush as arrayPush, } from "../platform/compat/primordials/array.js";
|
|
9
10
|
import { CSSTYPE_VERSION, DEFAULT_REACT_VERSION, TAILWIND_VERSION, } from "../transforms/import-rewriter/url-builder.js";
|
|
10
11
|
import { buildDependencyPinningCacheVariant } from "./keys/dependency-pinning.js";
|
|
12
|
+
const JSONStringify = JSON.stringify;
|
|
13
|
+
const ObjectCreate = Object.create;
|
|
11
14
|
/**
|
|
12
15
|
* Compute a hash of transform-affecting configuration.
|
|
13
16
|
*
|
|
@@ -15,20 +18,23 @@ import { buildDependencyPinningCacheVariant } from "./keys/dependency-pinning.js
|
|
|
15
18
|
*/
|
|
16
19
|
export function computeConfigHash(config) {
|
|
17
20
|
const dependencyPinningCacheVariant = buildDependencyPinningCacheVariant(config.dependencyPinningCacheKey, config.moduleServerOrigin);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
// Null-prototype storage preserves the existing JSON cache-key format while
|
|
22
|
+
// preventing project code from injecting an inherited toJSON hook.
|
|
23
|
+
const normalized = ObjectCreate(null);
|
|
24
|
+
normalized.transformVersion = VERSION;
|
|
25
|
+
normalized.reactVersion = config.reactVersion ?? DEFAULT_REACT_VERSION;
|
|
26
|
+
normalized.jsxImportSource = config.jsxImportSource ?? "react";
|
|
27
|
+
normalized.moduleServerUrl = config.moduleServerUrl ?? null;
|
|
28
|
+
normalized.vendorBundleHash = config.vendorBundleHash ?? null;
|
|
29
|
+
normalized.apiBaseUrl = config.apiBaseUrl ?? null;
|
|
30
|
+
normalized.studioEmbed = config.studioEmbed ?? false;
|
|
31
|
+
normalized.dev = config.dev ?? false;
|
|
32
|
+
if (dependencyPinningCacheVariant) {
|
|
33
|
+
normalized.dependencyPinningCacheVariant = dependencyPinningCacheVariant;
|
|
34
|
+
}
|
|
35
|
+
normalized.csstype = CSSTYPE_VERSION;
|
|
36
|
+
normalized.tailwind = TAILWIND_VERSION;
|
|
37
|
+
return computeHash(JSONStringify(normalized));
|
|
32
38
|
}
|
|
33
39
|
/**
|
|
34
40
|
* Compute a quick config hash synchronously (less fields, faster).
|
|
@@ -36,21 +42,28 @@ export function computeConfigHash(config) {
|
|
|
36
42
|
* Use this when you need a config hash but can't afford async overhead.
|
|
37
43
|
*/
|
|
38
44
|
export function computeConfigHashSync(config) {
|
|
39
|
-
const parts = [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
const parts = [];
|
|
46
|
+
arrayPush(parts, `v${VERSION}`);
|
|
47
|
+
arrayPush(parts, config.reactVersion ?? DEFAULT_REACT_VERSION);
|
|
48
|
+
arrayPush(parts, config.jsxImportSource ?? "react");
|
|
49
|
+
const moduleServerUrlPart = encodeConfigPart("modules", config.moduleServerUrl);
|
|
50
|
+
if (moduleServerUrlPart)
|
|
51
|
+
arrayPush(parts, moduleServerUrlPart);
|
|
52
|
+
const vendorBundleHashPart = encodeConfigPart("vendor", config.vendorBundleHash);
|
|
53
|
+
if (vendorBundleHashPart)
|
|
54
|
+
arrayPush(parts, vendorBundleHashPart);
|
|
55
|
+
const apiBaseUrlPart = encodeConfigPart("api", config.apiBaseUrl);
|
|
56
|
+
if (apiBaseUrlPart)
|
|
57
|
+
arrayPush(parts, apiBaseUrlPart);
|
|
58
|
+
if (config.studioEmbed)
|
|
59
|
+
arrayPush(parts, "studio");
|
|
60
|
+
if (config.dev)
|
|
61
|
+
arrayPush(parts, "dev");
|
|
49
62
|
const dependencyPinningCacheVariant = buildDependencyPinningCacheVariant(config.dependencyPinningCacheKey, config.moduleServerOrigin);
|
|
50
63
|
if (dependencyPinningCacheVariant) {
|
|
51
|
-
parts
|
|
64
|
+
arrayPush(parts, `pins:${dependencyPinningCacheVariant}`);
|
|
52
65
|
}
|
|
53
|
-
return parts
|
|
66
|
+
return arrayJoin(parts, ":");
|
|
54
67
|
}
|
|
55
68
|
function encodeConfigPart(label, value) {
|
|
56
69
|
if (!value)
|
|
@@ -35,7 +35,10 @@ export declare function buildRenderCacheKey(cachePrefix: string, contentKey: str
|
|
|
35
35
|
export declare function buildComponentCacheKey(projectId: string, filePath: string, contentHash: string, dependencyPinningCacheKey?: string, moduleServerOrigin?: string): string;
|
|
36
36
|
export declare function buildLayoutComponentCacheKey(projectId: string, componentPath: string, hash: string, contentSourceId: string): string;
|
|
37
37
|
export declare function buildErrorPageCacheKey(projectId: string | undefined, projectDir: string, pageType: string): string;
|
|
38
|
-
export declare function buildProxyManagerCacheKey(projectSlug: string, productionMode: boolean, releaseId: string | null, branch: string | null, environmentName?: string | null
|
|
38
|
+
export declare function buildProxyManagerCacheKey(projectSlug: string, productionMode: boolean, releaseId: string | null, branch: string | null, environmentName?: string | null, authority?: {
|
|
39
|
+
projectId: string | null;
|
|
40
|
+
credentialPrincipal: string;
|
|
41
|
+
}): string;
|
|
39
42
|
/**
|
|
40
43
|
* Build a query-aware key that preserves query semantics for multi-tenant
|
|
41
44
|
* caching. The result can contain internal `*HH` byte escapes; ApiCacheBackend
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../../src/src/cache/keys/builders/render.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAIlF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../../src/src/cache/keys/builders/render.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAIlF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAO7D,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,SAAS,GAAG,YAAY,EACrC,UAAU,EAAE,MAAM;AAClB;;;;;GAKG;AACH,eAAe,CAAC,EAAE,MAAM,GACvB,MAAM,CAGR;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,SAAS,GAAG,YAAY,EACrC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACnC,MAAM,CAaR;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAEnF;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,yBAAyB,CAAC,EAAE,MAAM,EAClC,kBAAkB,CAAC,EAAE,MAAM,GAC1B,MAAM,CAOR;AAED,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,MAAM,EACZ,eAAe,EAAE,MAAM,GACtB,MAAM,CAER;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,MAAM,CAER;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,EAC/B,SAAS,CAAC,EAAE;IACV,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,GACA,MAAM,CA0BR;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,MAAM,CAMR"}
|
|
@@ -12,6 +12,7 @@ import { sanitizeQueryParamsForCacheKey } from "../utils.js";
|
|
|
12
12
|
import { CACHE_INVARIANT_VIOLATION } from "../../../errors/index.js";
|
|
13
13
|
import { encodeCacheSourceIdentity } from "../source-identity.js";
|
|
14
14
|
import { buildDependencyPinningCacheVariant } from "../dependency-pinning.js";
|
|
15
|
+
import { encodeCacheKeyLiteralSegment } from "../segment-codec.js";
|
|
15
16
|
export function buildRenderCachePrefix(projectId, environment, releaseKey,
|
|
16
17
|
/**
|
|
17
18
|
* Release asset manifest version currently being consumed for this render.
|
|
@@ -65,8 +66,17 @@ export function buildLayoutComponentCacheKey(projectId, componentPath, hash, con
|
|
|
65
66
|
export function buildErrorPageCacheKey(projectId, projectDir, pageType) {
|
|
66
67
|
return `${CacheKeyPrefix.ERROR_PAGE}:${projectId ?? projectDir}:${pageType}`;
|
|
67
68
|
}
|
|
68
|
-
export function buildProxyManagerCacheKey(projectSlug, productionMode, releaseId, branch, environmentName) {
|
|
69
|
+
export function buildProxyManagerCacheKey(projectSlug, productionMode, releaseId, branch, environmentName, authority) {
|
|
69
70
|
const mode = productionMode ? "production" : "preview";
|
|
71
|
+
if (authority && !authority.credentialPrincipal) {
|
|
72
|
+
throw CACHE_INVARIANT_VIOLATION.create({
|
|
73
|
+
detail: `Missing credential principal for proxy adapter ${projectSlug}`,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
const authorityKey = authority
|
|
77
|
+
? `:project:${encodeCacheKeyLiteralSegment(authority.projectId ?? "")}` +
|
|
78
|
+
`:credential:${encodeCacheKeyLiteralSegment(authority.credentialPrincipal)}`
|
|
79
|
+
: "";
|
|
70
80
|
if (productionMode) {
|
|
71
81
|
if (!releaseId) {
|
|
72
82
|
throw CACHE_INVARIANT_VIOLATION.create({
|
|
@@ -76,10 +86,10 @@ export function buildProxyManagerCacheKey(projectSlug, productionMode, releaseId
|
|
|
76
86
|
const source = environmentName
|
|
77
87
|
? encodeCacheSourceIdentity({ type: "environment", environmentName, releaseId })
|
|
78
88
|
: encodeCacheSourceIdentity({ type: "release", releaseId });
|
|
79
|
-
return `${CacheKeyPrefix.PROXY}:${projectSlug}:${mode}:${source.key}`;
|
|
89
|
+
return `${CacheKeyPrefix.PROXY}:${projectSlug}:${mode}:${source.key}${authorityKey}`;
|
|
80
90
|
}
|
|
81
91
|
const source = encodeCacheSourceIdentity({ type: "branch", branch: branch ?? "main" });
|
|
82
|
-
return `${CacheKeyPrefix.PROXY}:${projectSlug}:${mode}:${source.qualifier}`;
|
|
92
|
+
return `${CacheKeyPrefix.PROXY}:${projectSlug}:${mode}:${source.qualifier}${authorityKey}`;
|
|
83
93
|
}
|
|
84
94
|
/**
|
|
85
95
|
* Build a query-aware key that preserves query semantics for multi-tenant
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../../_dnt.polyfills.js";
|
|
2
2
|
import type { Agent } from "../agent/types.js";
|
|
3
|
+
import type { DiscoveryResult } from "../discovery/index.js";
|
|
3
4
|
import type { HandlerContext } from "../types/server.js";
|
|
4
5
|
import type { InferSchema, Schema } from "../extensions/schema/index.js";
|
|
5
6
|
/** Shared control plane agents list path value. */
|
|
@@ -274,7 +275,7 @@ export type DispatchClaims = InferSchema<ReturnType<typeof getDispatchClaimsSche
|
|
|
274
275
|
export type ControlPlaneClaims = InferSchema<ReturnType<typeof getControlPlaneClaimsSchema>>;
|
|
275
276
|
/** Public API contract for runtime agent discovery deps. */
|
|
276
277
|
export interface RuntimeAgentDiscoveryDeps {
|
|
277
|
-
ensureProjectDiscovery: (ctx: HandlerContext) => Promise<
|
|
278
|
+
ensureProjectDiscovery: (ctx: HandlerContext) => Promise<DiscoveryResult>;
|
|
278
279
|
getAgent: (id: string) => Agent | undefined;
|
|
279
280
|
getAllAgentIds: () => string[];
|
|
280
281
|
}
|
|
@@ -321,6 +322,23 @@ export declare function verifyControlPlaneJwsSignature(jws: string, options: {
|
|
|
321
322
|
requestMethod: string;
|
|
322
323
|
requestPath: string;
|
|
323
324
|
}): Promise<boolean>;
|
|
325
|
+
/**
|
|
326
|
+
* Verify a control-plane JWS against its request body without depending on the
|
|
327
|
+
* extension-backed schema registry.
|
|
328
|
+
*
|
|
329
|
+
* The split proxy uses this after it has resolved the project audience. It
|
|
330
|
+
* needs the signed body binding before it may turn target metadata in the body
|
|
331
|
+
* into trusted downstream headers, while the authoritative request handler
|
|
332
|
+
* still performs the full schema-backed verification.
|
|
333
|
+
*/
|
|
334
|
+
export declare function verifyControlPlaneJwsRequestSignature(jws: string, body: string, options: {
|
|
335
|
+
audience: string;
|
|
336
|
+
expectedProjectId?: string;
|
|
337
|
+
publicKeyPem: string;
|
|
338
|
+
maxAgeSeconds: number;
|
|
339
|
+
requestMethod: string;
|
|
340
|
+
requestPath: string;
|
|
341
|
+
}): Promise<boolean>;
|
|
324
342
|
/** Verify dispatch JWS. */
|
|
325
343
|
export declare function verifyDispatchJws(jws: string, body: string, options: {
|
|
326
344
|
audience: string;
|
|
@@ -1 +1 @@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AE;IACP,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,GACA,OAAO,CAAC,cAAc,CAAC,CAoBzB;AAED,gFAAgF;AAChF,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE;IACP,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,GACA,OAAO,CAAC,kBAAkB,CAAC,CAsB7B"}
|
|
@@ -500,6 +500,33 @@ export async function verifyControlPlaneJwsSignature(jws, options) {
|
|
|
500
500
|
requestBinding,
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* Verify a control-plane JWS against its request body without depending on the
|
|
505
|
+
* extension-backed schema registry.
|
|
506
|
+
*
|
|
507
|
+
* The split proxy uses this after it has resolved the project audience. It
|
|
508
|
+
* needs the signed body binding before it may turn target metadata in the body
|
|
509
|
+
* into trusted downstream headers, while the authoritative request handler
|
|
510
|
+
* still performs the full schema-backed verification.
|
|
511
|
+
*/
|
|
512
|
+
export async function verifyControlPlaneJwsRequestSignature(jws, body, options) {
|
|
513
|
+
let requestBinding;
|
|
514
|
+
try {
|
|
515
|
+
requestBinding = readExpectedRequestBinding(options);
|
|
516
|
+
}
|
|
517
|
+
catch {
|
|
518
|
+
return false;
|
|
519
|
+
}
|
|
520
|
+
return await verifySignedRequestJwsSignature(jws, parseControlPlaneSignatureClaims, {
|
|
521
|
+
audience: options.audience,
|
|
522
|
+
expectedProjectId: options.expectedProjectId,
|
|
523
|
+
maxAgeSeconds: options.maxAgeSeconds,
|
|
524
|
+
publicKeyPem: options.publicKeyPem,
|
|
525
|
+
requestBinding,
|
|
526
|
+
expectedRequestHash: await sha256Base64url(body),
|
|
527
|
+
requestHashClaimKey: "request_hash",
|
|
528
|
+
});
|
|
529
|
+
}
|
|
503
530
|
async function verifySignedRequestJwsSignature(jws, parseClaims, options) {
|
|
504
531
|
try {
|
|
505
532
|
if (jws.length > MAX_SIGNATURE_JWS_CODE_UNITS ||
|
|
@@ -536,6 +563,11 @@ async function verifySignedRequestJwsSignature(jws, parseClaims, options) {
|
|
|
536
563
|
if (options.requestBinding) {
|
|
537
564
|
requireSignedRequestBinding(claims, options.requestBinding.method, options.requestBinding.path);
|
|
538
565
|
}
|
|
566
|
+
if (options.expectedRequestHash !== undefined &&
|
|
567
|
+
(options.requestHashClaimKey === undefined ||
|
|
568
|
+
claims[options.requestHashClaimKey] !== options.expectedRequestHash)) {
|
|
569
|
+
return false;
|
|
570
|
+
}
|
|
539
571
|
if (!Number.isSafeInteger(claims.iat) ||
|
|
540
572
|
!Number.isSafeInteger(claims.exp) ||
|
|
541
573
|
claims.exp <= claims.iat) {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Helper functions for ID generation, path manipulation, and agent tracking.
|
|
5
5
|
*/
|
|
6
|
+
import type { DiscoveryResult } from "./types.js";
|
|
6
7
|
/**
|
|
7
8
|
* Convert a file path to a camelCase ID
|
|
8
9
|
*/
|
|
@@ -19,4 +20,9 @@ export declare function trackAgentPath(id: string, filePath: string): void;
|
|
|
19
20
|
* Clear tracked agent paths
|
|
20
21
|
*/
|
|
21
22
|
export declare function clearTrackedAgents(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Build a DiscoveryResult with no discovered primitives. Useful as a neutral
|
|
25
|
+
* return value for discovery stubs in tests and no-op discovery paths.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createEmptyDiscoveryResult(): DiscoveryResult;
|
|
22
28
|
//# sourceMappingURL=discovery-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery-utils.d.ts","sourceRoot":"","sources":["../../../src/src/discovery/discovery-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKrD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAO3E;AAKD;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAEjE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
|
|
1
|
+
{"version":3,"file":"discovery-utils.d.ts","sourceRoot":"","sources":["../../../src/src/discovery/discovery-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKrD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAO3E;AAKD;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAEjE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,eAAe,CAc5D"}
|
|
@@ -35,3 +35,22 @@ export function trackAgentPath(id, filePath) {
|
|
|
35
35
|
export function clearTrackedAgents() {
|
|
36
36
|
discoveredAgentPaths.clear();
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Build a DiscoveryResult with no discovered primitives. Useful as a neutral
|
|
40
|
+
* return value for discovery stubs in tests and no-op discovery paths.
|
|
41
|
+
*/
|
|
42
|
+
export function createEmptyDiscoveryResult() {
|
|
43
|
+
return {
|
|
44
|
+
tools: new Map(),
|
|
45
|
+
agents: new Map(),
|
|
46
|
+
skills: new Map(),
|
|
47
|
+
resources: new Map(),
|
|
48
|
+
prompts: new Map(),
|
|
49
|
+
workflows: new Map(),
|
|
50
|
+
tasks: new Map(),
|
|
51
|
+
schedules: new Map(),
|
|
52
|
+
webhooks: new Map(),
|
|
53
|
+
evals: new Map(),
|
|
54
|
+
errors: [],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
export type { DiscoveryConfig, DiscoveryHandler, DiscoveryResult, FileDiscoveryContext, } from "./types.js";
|
|
12
12
|
export { discoverAll } from "./discovery-engine.js";
|
|
13
13
|
export { createProjectDiscoveryConfig, DEFAULT_PROJECT_DISCOVERY_DIRS, } from "./project-discovery-config.js";
|
|
14
|
-
export { clearTrackedAgents, filenameToId, filePathToPattern } from "./discovery-utils.js";
|
|
14
|
+
export { clearTrackedAgents, createEmptyDiscoveryResult, filenameToId, filePathToPattern, } from "./discovery-utils.js";
|
|
15
15
|
export { clearTranspileCache } from "./transpiler.js";
|
|
16
16
|
export { validateProviderConfig, type ValidationResult } from "./provider-config-validator.js";
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/discovery/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/discovery/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,EAAE,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
export { discoverAll } from "./discovery-engine.js";
|
|
13
13
|
export { createProjectDiscoveryConfig, DEFAULT_PROJECT_DISCOVERY_DIRS, } from "./project-discovery-config.js";
|
|
14
14
|
// Re-export utilities
|
|
15
|
-
export { clearTrackedAgents, filenameToId, filePathToPattern } from "./discovery-utils.js";
|
|
15
|
+
export { clearTrackedAgents, createEmptyDiscoveryResult, filenameToId, filePathToPattern, } from "./discovery-utils.js";
|
|
16
16
|
// Re-export transpiler utilities
|
|
17
17
|
export { clearTranspileCache } from "./transpiler.js";
|
|
18
18
|
// Re-export provider config validation (pure logic — no ANSI colors)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-errors.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/catalog/module-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD,eAAO,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"module-errors.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/catalog/module-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtD,eAAO,MAAM,oBAAoB,EAAE,mBAwGjC,CAAC"}
|
|
@@ -56,4 +56,14 @@ resolve: {
|
|
|
56
56
|
"Check for multiple React instances",
|
|
57
57
|
"Update dependencies to compatible versions",
|
|
58
58
|
]),
|
|
59
|
+
"lockfile-format-mismatch": createSimpleError("lockfile-format-mismatch", "Lockfile format is not supported", "This Veryfront version cannot safely read or modify the lockfile format.", [
|
|
60
|
+
"Upgrade Veryfront to a version that supports this lockfile",
|
|
61
|
+
"Migrate the lockfile with a compatible Veryfront version",
|
|
62
|
+
"If the contents are no longer needed, run 'veryfront lock --clear' to reset it",
|
|
63
|
+
]),
|
|
64
|
+
"lockfile-read-error": createSimpleError("lockfile-read-error", "Lockfile could not be read safely", "Veryfront could not safely read or validate the existing lockfile.", [
|
|
65
|
+
"Check that the lockfile is readable",
|
|
66
|
+
"Restore valid JSON from version control or a backup",
|
|
67
|
+
"Run 'veryfront lock --clear' to discard the unreadable lockfile and regenerate it",
|
|
68
|
+
]),
|
|
59
69
|
});
|
|
@@ -5,6 +5,8 @@ export declare const CIRCULAR_DEPENDENCY: import("../types.js").RegisteredError;
|
|
|
5
5
|
export declare const INVALID_IMPORT: import("../types.js").RegisteredError;
|
|
6
6
|
export declare const DEPENDENCY_MISSING: import("../types.js").RegisteredError;
|
|
7
7
|
export declare const VERSION_MISMATCH: import("../types.js").RegisteredError;
|
|
8
|
+
export declare const LOCKFILE_FORMAT_MISMATCH: import("../types.js").RegisteredError;
|
|
9
|
+
export declare const LOCKFILE_READ_ERROR: import("../types.js").RegisteredError;
|
|
8
10
|
/** Registry fragment for MODULE errors (slug → definition). */
|
|
9
11
|
export declare const MODULE_REGISTRY: {
|
|
10
12
|
readonly "module-not-found": import("../types.js").RegisteredError;
|
|
@@ -13,5 +15,7 @@ export declare const MODULE_REGISTRY: {
|
|
|
13
15
|
readonly "invalid-import": import("../types.js").RegisteredError;
|
|
14
16
|
readonly "dependency-missing": import("../types.js").RegisteredError;
|
|
15
17
|
readonly "version-mismatch": import("../types.js").RegisteredError;
|
|
18
|
+
readonly "lockfile-format-mismatch": import("../types.js").RegisteredError;
|
|
19
|
+
readonly "lockfile-read-error": import("../types.js").RegisteredError;
|
|
16
20
|
};
|
|
17
21
|
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/module.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AAGpC,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/src/errors/error-registry/module.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAC;AAGpC,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,uBAAuB,uCAMlC,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAMzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAM7B,CAAC;AAEH,eAAO,MAAM,gBAAgB,uCAM3B,CAAC;AAEH,eAAO,MAAM,wBAAwB,uCAMnC,CAAC;AAEH,eAAO,MAAM,mBAAmB,uCAM9B,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;CASlB,CAAC"}
|
|
@@ -42,6 +42,20 @@ export const VERSION_MISMATCH = defineError({
|
|
|
42
42
|
title: "Dependency version mismatch",
|
|
43
43
|
suggestion: "Update dependencies to compatible versions",
|
|
44
44
|
});
|
|
45
|
+
export const LOCKFILE_FORMAT_MISMATCH = defineError({
|
|
46
|
+
slug: "lockfile-format-mismatch",
|
|
47
|
+
category: "MODULE",
|
|
48
|
+
status: 409,
|
|
49
|
+
title: "Lockfile format is not supported",
|
|
50
|
+
suggestion: "Upgrade Veryfront or migrate the lockfile before modifying it",
|
|
51
|
+
});
|
|
52
|
+
export const LOCKFILE_READ_ERROR = defineError({
|
|
53
|
+
slug: "lockfile-read-error",
|
|
54
|
+
category: "MODULE",
|
|
55
|
+
status: 500,
|
|
56
|
+
title: "Lockfile could not be read safely",
|
|
57
|
+
suggestion: "Check file access or restore a valid lockfile before retrying",
|
|
58
|
+
});
|
|
45
59
|
/** Registry fragment for MODULE errors (slug → definition). */
|
|
46
60
|
export const MODULE_REGISTRY = {
|
|
47
61
|
"module-not-found": MODULE_NOT_FOUND,
|
|
@@ -50,4 +64,6 @@ export const MODULE_REGISTRY = {
|
|
|
50
64
|
"invalid-import": INVALID_IMPORT,
|
|
51
65
|
"dependency-missing": DEPENDENCY_MISSING,
|
|
52
66
|
"version-mismatch": VERSION_MISMATCH,
|
|
67
|
+
"lockfile-format-mismatch": LOCKFILE_FORMAT_MISMATCH,
|
|
68
|
+
"lockfile-read-error": LOCKFILE_READ_ERROR,
|
|
53
69
|
};
|
|
@@ -60,6 +60,8 @@ export declare const ERROR_REGISTRY: Readonly<{
|
|
|
60
60
|
readonly "invalid-import": import("./types.js").RegisteredError;
|
|
61
61
|
readonly "dependency-missing": import("./types.js").RegisteredError;
|
|
62
62
|
readonly "version-mismatch": import("./types.js").RegisteredError;
|
|
63
|
+
readonly "lockfile-format-mismatch": import("./types.js").RegisteredError;
|
|
64
|
+
readonly "lockfile-read-error": import("./types.js").RegisteredError;
|
|
63
65
|
} & {
|
|
64
66
|
readonly "port-in-use": import("./types.js").RegisteredError;
|
|
65
67
|
readonly "server-start-error": 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_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, 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, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR, MODULE_NOT_FOUND, 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, 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_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, 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, 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, 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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/errors/index.ts"],"names":[],"mappings":"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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,7 +35,7 @@ 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, 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, MDX_COMPILE_ERROR, MIDDLEWARE_ERROR,
|
|
39
39
|
// MODULE
|
|
40
40
|
MODULE_NOT_FOUND, NETWORK_ERROR, NOT_SUPPORTED, ORCHESTRATION_ERROR, PAGE_NOT_FOUND, PERMISSION_DENIED, PLATFORM_ERROR,
|
|
41
41
|
// SERVER
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/errors/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/errors/types.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,QAAQ,GACR,OAAO,GACP,SAAS,GACT,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,KAAK,GACL,QAAQ,GACR,OAAO,GACP,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yFAAyF;IACzF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAA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C;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IACP,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;gBAEN,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB;IAiB3D;;OAEG;IACH,SAAS,IAAI,eAAe;IA+B5B;;OAEG;IACH,UAAU,IAAI,MAAM;CAIrB;AAED,+EAA+E;AAC/E,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAIhF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,GAAG,IAAI,CAGpF;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,cAAc,GACpB,sBAAsB,GAAG,IAAI,CAuD/B"}
|
package/esm/src/errors/types.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { buildErrorDocsUrl, sanitizeBoundedDiagnosticText } from "./diagnostic-policy.js";
|
|
2
|
+
const apply = Reflect.apply;
|
|
2
3
|
const freeze = Object.freeze;
|
|
3
4
|
const getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors;
|
|
4
5
|
const numberIsFinite = Number.isFinite;
|
|
5
6
|
const VERYFRONT_ERROR_INSTANCES = new WeakSet();
|
|
7
|
+
const weakSetAdd = WeakSet.prototype.add;
|
|
8
|
+
const weakSetHas = WeakSet.prototype.has;
|
|
6
9
|
const ERROR_CATEGORIES = new Set([
|
|
7
10
|
"CONFIG",
|
|
8
11
|
"BUILD",
|
|
@@ -63,7 +66,7 @@ export class VeryfrontError extends Error {
|
|
|
63
66
|
context;
|
|
64
67
|
constructor(message, options) {
|
|
65
68
|
super(message);
|
|
66
|
-
VERYFRONT_ERROR_INSTANCES
|
|
69
|
+
apply(weakSetAdd, VERYFRONT_ERROR_INSTANCES, [this]);
|
|
67
70
|
this.name = "VeryfrontError";
|
|
68
71
|
this.slug = options.slug;
|
|
69
72
|
this.category = options.category;
|
|
@@ -120,7 +123,7 @@ export class VeryfrontError extends Error {
|
|
|
120
123
|
export function isVeryfrontErrorInstance(error) {
|
|
121
124
|
return typeof error === "object" &&
|
|
122
125
|
error !== null &&
|
|
123
|
-
VERYFRONT_ERROR_INSTANCES
|
|
126
|
+
apply(weakSetHas, VERYFRONT_ERROR_INSTANCES, [error]) === true;
|
|
124
127
|
}
|
|
125
128
|
/**
|
|
126
129
|
* Read a VeryfrontError once into plain data.
|
package/esm/src/eval/studio.d.ts
CHANGED
|
@@ -206,7 +206,7 @@ export declare const getEvalRunSchema: () => import("../internal-agents/schema.j
|
|
|
206
206
|
kind: import("../internal-agents/schema.js").Schema<"eval-run">;
|
|
207
207
|
runId: import("../internal-agents/schema.js").Schema<string>;
|
|
208
208
|
evalId: import("../internal-agents/schema.js").Schema<string>;
|
|
209
|
-
status: import("../internal-agents/schema.js").Schema<"failed" | "waiting" | "
|
|
209
|
+
status: import("../internal-agents/schema.js").Schema<"failed" | "waiting" | "completed" | "cancelled" | "pending" | "running">;
|
|
210
210
|
targetKind: import("../internal-agents/schema.js").Schema<"agent" | "tool">;
|
|
211
211
|
target: import("../internal-agents/schema.js").Schema<string>;
|
|
212
212
|
source: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
|
|
@@ -104,6 +104,12 @@ export interface BundleOptions {
|
|
|
104
104
|
logLevel?: "silent" | "error" | "warning" | "info" | "debug" | "verbose";
|
|
105
105
|
/** Emit a dependency-graph {@link Metafile} in the result. */
|
|
106
106
|
metafile?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Cancels the bundle operation. Implementations must stop active work rather
|
|
109
|
+
* than only rejecting the caller while compilation continues in the
|
|
110
|
+
* background.
|
|
111
|
+
*/
|
|
112
|
+
signal?: AbortSignal;
|
|
107
113
|
/** Extra implementation-specific options. */
|
|
108
114
|
[key: string]: unknown;
|
|
109
115
|
}
|
|
@@ -226,6 +232,8 @@ export interface BundlerPlugin {
|
|
|
226
232
|
export interface BuildContext {
|
|
227
233
|
/** Re-run the build with cached state. */
|
|
228
234
|
rebuild(): Promise<BundleResult>;
|
|
235
|
+
/** Cancel the active rebuild, when the implementation supports it. */
|
|
236
|
+
cancel?(): Promise<void>;
|
|
229
237
|
/** Release context resources. */
|
|
230
238
|
dispose(): Promise<void>;
|
|
231
239
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/bundler/bundler.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,iDAAiD;AACjD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACzC,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAA;KAAE,EAAE,CAAC;IACrE,UAAU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;IAC/D,gEAAgE;IAChE,OAAO,CAAC,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACxD,mEAAmE;IACnE,IAAI,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** Provider-neutral rate-limit helpers shared with store extensions. */
|
|
2
2
|
import "../../../_dnt.polyfills.js";
|
|
3
3
|
export type { RateLimitEntry, RateLimitStore, } from "../../middleware/builtin/security/types.js";
|
|
4
|
-
export { requireRateLimitKey, requireRateLimitWindowMs, } from "../../middleware/builtin/security/rate-limit-validation.js";
|
|
4
|
+
export { MAX_RATE_LIMIT_KEY_LENGTH, requireRateLimitKey, requireRateLimitWindowMs, } from "../../middleware/builtin/security/rate-limit-validation.js";
|
|
5
|
+
export { REDIS_RATE_LIMIT_INCREMENT_WITH_TTL_SCRIPT, } from "../../middleware/builtin/security/redis-rate-limit-script.js";
|
|
6
|
+
export { unrefTimer } from "../../platform/compat/process.js";
|
|
5
7
|
export { MAX_TIMER_DELAY_MS } from "../../utils/timer.js";
|
|
6
8
|
//# sourceMappingURL=rate-limit-support.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate-limit-support.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/distributed/rate-limit-support.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,4BAA4B,CAAC;AAGpC,YAAY,EACV,cAAc,EACd,cAAc,GACf,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"rate-limit-support.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/distributed/rate-limit-support.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,4BAA4B,CAAC;AAGpC,YAAY,EACV,cAAc,EACd,cAAc,GACf,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EACL,0CAA0C,GAC3C,MAAM,8DAA8D,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|