veryfront 0.1.1189 → 0.1.1191
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/analyze-chunks/command.d.ts.map +1 -1
- package/esm/cli/commands/analyze-chunks/command.js +3 -1
- package/esm/cli/commands/schedule/command-help.d.ts.map +1 -1
- package/esm/cli/commands/schedule/command-help.js +5 -1
- package/esm/cli/commands/schedule/handler.d.ts +17 -0
- package/esm/cli/commands/schedule/handler.d.ts.map +1 -1
- package/esm/cli/commands/schedule/handler.js +119 -29
- 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 +58 -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/commands/webhook/command-help.d.ts.map +1 -1
- package/esm/cli/commands/webhook/command-help.js +5 -1
- package/esm/cli/commands/webhook/handler.d.ts +5 -0
- package/esm/cli/commands/webhook/handler.d.ts.map +1 -1
- package/esm/cli/commands/webhook/handler.js +62 -7
- 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 +9 -7
- package/esm/deno.d.ts +5 -0
- package/esm/deno.js +13 -5
- 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/conversation/durable.d.ts.map +1 -1
- package/esm/src/agent/conversation/durable.js +61 -50
- package/esm/src/agent/conversation/private-run-event.d.ts +13 -0
- package/esm/src/agent/conversation/private-run-event.d.ts.map +1 -0
- package/esm/src/agent/conversation/private-run-event.js +38 -0
- package/esm/src/agent/conversation/run-event-limits.d.ts +6 -3
- package/esm/src/agent/conversation/run-event-limits.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-event-limits.js +17 -3
- package/esm/src/agent/conversation/run-event-normalization.d.ts.map +1 -1
- package/esm/src/agent/conversation/run-event-normalization.js +5 -3
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts +3 -3
- package/esm/src/agent/hosted/chat-execution-runtime.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-execution-runtime.js +14 -16
- package/esm/src/agent/hosted/child-fork-execution-runner.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-execution-runner.js +10 -12
- 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/durable-run-event-sink.d.ts +10 -0
- package/esm/src/agent/hosted/durable-run-event-sink.d.ts.map +1 -0
- package/esm/src/agent/hosted/durable-run-event-sink.js +102 -0
- 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/index.d.ts +2 -1
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +1 -0
- 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/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +0 -6
- 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/agent/types.d.ts +0 -7
- package/esm/src/agent/types.d.ts.map +1 -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 +17 -0
- package/esm/src/channels/control-plane.d.ts.map +1 -1
- package/esm/src/channels/control-plane.js +32 -0
- package/esm/src/discovery/handlers/schedule-handler.d.ts.map +1 -1
- package/esm/src/discovery/handlers/schedule-handler.js +2 -1
- package/esm/src/discovery/handlers/webhook-handler.d.ts.map +1 -1
- package/esm/src/discovery/handlers/webhook-handler.js +2 -1
- package/esm/src/embedding/local-json-store-lock.d.ts +15 -0
- package/esm/src/embedding/local-json-store-lock.d.ts.map +1 -0
- package/esm/src/embedding/local-json-store-lock.js +457 -0
- package/esm/src/embedding/rag-store.d.ts.map +1 -1
- package/esm/src/embedding/rag-store.js +342 -165
- 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/agent.d.ts +2 -0
- package/esm/src/errors/error-registry/agent.d.ts.map +1 -1
- package/esm/src/errors/error-registry/agent.js +8 -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/server.d.ts +6 -0
- package/esm/src/errors/error-registry/server.d.ts.map +1 -1
- package/esm/src/errors/error-registry/server.js +18 -0
- package/esm/src/errors/error-registry.d.ts +5 -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 +3 -3
- 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/builtin-extensions.d.ts +10 -10
- package/esm/src/extensions/builtin-extensions.d.ts.map +1 -1
- package/esm/src/extensions/builtin-extensions.js +22 -63
- 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/extensions/first-party-defaults.d.ts +105 -0
- package/esm/src/extensions/first-party-defaults.d.ts.map +1 -0
- package/esm/src/extensions/first-party-defaults.js +178 -0
- package/esm/src/extensions/orchestrate.d.ts.map +1 -1
- package/esm/src/extensions/orchestrate.js +41 -4
- package/esm/src/extensions/websocket/node-websocket-server-provider.d.ts +4 -4
- package/esm/src/extensions/websocket/node-websocket-server-provider.d.ts.map +1 -1
- package/esm/src/extensions/websocket/node-websocket-server-provider.js +4 -4
- 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.d.ts +26 -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 +2 -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 +9 -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/instruments/instruments-factory.d.ts.map +1 -1
- package/esm/src/observability/instruments/instruments-factory.js +0 -8
- package/esm/src/observability/metrics/index.d.ts +1 -14
- package/esm/src/observability/metrics/index.d.ts.map +1 -1
- package/esm/src/observability/metrics/index.js +0 -28
- package/esm/src/observability/metrics/recorder.d.ts +1 -9
- package/esm/src/observability/metrics/recorder.d.ts.map +1 -1
- package/esm/src/observability/metrics/recorder.js +0 -12
- package/esm/src/observability/metrics/types.d.ts +0 -12
- package/esm/src/observability/metrics/types.d.ts.map +1 -1
- package/esm/src/observability/metrics/types.js +1 -17
- 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/file-snapshot-error.d.ts +7 -0
- package/esm/src/platform/adapters/file-snapshot-error.d.ts.map +1 -1
- package/esm/src/platform/adapters/file-snapshot-error.js +13 -0
- 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/cache/size-estimator.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/cache/size-estimator.js +12 -2
- 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/cache-scope.d.ts +8 -0
- package/esm/src/platform/adapters/fs/github/cache-scope.d.ts.map +1 -0
- package/esm/src/platform/adapters/fs/github/cache-scope.js +12 -0
- package/esm/src/platform/adapters/fs/github/directory-operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/directory-operations.js +2 -1
- 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 +48 -4
- package/esm/src/platform/adapters/fs/github/read-operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/read-operations.js +4 -3
- package/esm/src/platform/adapters/fs/github/stat-operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/github/stat-operations.js +3 -2
- 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 -32
- package/esm/src/platform/adapters/fs/veryfront/adapter-helpers.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/adapter-helpers.js +21 -6
- package/esm/src/platform/adapters/fs/veryfront/path-normalizer.d.ts +2 -0
- package/esm/src/platform/adapters/fs/veryfront/path-normalizer.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/path-normalizer.js +70 -5
- 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/retry.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/retry.js +66 -13
- package/esm/src/platform/adapters/fs/veryfront/schemas/proxy-manager.schema.js +1 -1
- package/esm/src/platform/adapters/fs/veryfront/types.d.ts +3 -1
- package/esm/src/platform/adapters/fs/veryfront/types.d.ts.map +1 -1
- package/esm/src/platform/adapters/mock.d.ts.map +1 -1
- package/esm/src/platform/adapters/mock.js +3 -7
- package/esm/src/platform/adapters/path-containment.d.ts +9 -0
- package/esm/src/platform/adapters/path-containment.d.ts.map +1 -0
- package/esm/src/platform/adapters/path-containment.js +13 -0
- package/esm/src/platform/adapters/runtime/shared/native-snapshot-identity.d.ts +13 -0
- package/esm/src/platform/adapters/runtime/shared/native-snapshot-identity.d.ts.map +1 -0
- package/esm/src/platform/adapters/runtime/shared/native-snapshot-identity.js +12 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts +7 -0
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/runtime/shared/node-filesystem-adapter.js +62 -18
- 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/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/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/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 +7 -6
- package/esm/src/release-assets/manifest-cache.d.ts.map +1 -1
- package/esm/src/release-assets/manifest-cache.js +19 -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/app-route-resolver.d.ts +4 -5
- package/esm/src/rendering/app-route-resolver.d.ts.map +1 -1
- package/esm/src/rendering/app-route-resolver.js +142 -87
- package/esm/src/rendering/chunk-optimizer/contracts.d.ts +49 -0
- package/esm/src/rendering/chunk-optimizer/contracts.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/contracts.js +1 -0
- package/esm/src/rendering/chunk-optimizer/data-properties.d.ts +12 -0
- package/esm/src/rendering/chunk-optimizer/data-properties.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/data-properties.js +24 -0
- package/esm/src/rendering/chunk-optimizer/file-discovery.d.ts +3 -0
- package/esm/src/rendering/chunk-optimizer/file-discovery.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/file-discovery.js +167 -0
- package/esm/src/rendering/chunk-optimizer/filesystem.d.ts +7 -0
- package/esm/src/rendering/chunk-optimizer/filesystem.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/filesystem.js +51 -0
- package/esm/src/rendering/chunk-optimizer/limits.d.ts +23 -0
- package/esm/src/rendering/chunk-optimizer/limits.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/limits.js +22 -0
- package/esm/src/rendering/chunk-optimizer/manifest.d.ts +4 -0
- package/esm/src/rendering/chunk-optimizer/manifest.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/manifest.js +220 -0
- package/esm/src/rendering/chunk-optimizer/source-imports.d.ts +9 -0
- package/esm/src/rendering/chunk-optimizer/source-imports.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/source-imports.js +359 -0
- package/esm/src/rendering/chunk-optimizer/specifier.d.ts +5 -0
- package/esm/src/rendering/chunk-optimizer/specifier.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/specifier.js +10 -0
- package/esm/src/rendering/chunk-optimizer/suggestions.d.ts +3 -0
- package/esm/src/rendering/chunk-optimizer/suggestions.d.ts.map +1 -0
- package/esm/src/rendering/chunk-optimizer/suggestions.js +164 -0
- package/esm/src/rendering/chunk-optimizer.d.ts +10 -43
- package/esm/src/rendering/chunk-optimizer.d.ts.map +1 -1
- package/esm/src/rendering/chunk-optimizer.js +39 -161
- package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/layout-applicator.js +1 -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 +10 -6
- package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/layout.js +6 -2
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline.js +6 -2
- package/esm/src/rendering/page-resolution/page-resolver.d.ts +3 -2
- package/esm/src/rendering/page-resolution/page-resolver.d.ts.map +1 -1
- package/esm/src/rendering/page-resolution/page-resolver.js +21 -10
- 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/runtime/model-call-context.d.ts +7 -4
- package/esm/src/runtime/model-call-context.d.ts.map +1 -1
- package/esm/src/runtime/run-event-sink-context.d.ts +17 -0
- package/esm/src/runtime/run-event-sink-context.d.ts.map +1 -0
- package/esm/src/runtime/run-event-sink-context.js +47 -0
- package/esm/src/runtime/runtime-bridge.d.ts +0 -3
- package/esm/src/runtime/runtime-bridge.d.ts.map +1 -1
- package/esm/src/runtime/runtime-bridge.js +26 -8
- 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/http/outbound-fetch.d.ts +1 -0
- package/esm/src/security/http/outbound-fetch.d.ts.map +1 -1
- package/esm/src/security/http/outbound-fetch.js +14 -0
- package/esm/src/server/bootstrap.d.ts +1 -1
- package/esm/src/server/bootstrap.d.ts.map +1 -1
- package/esm/src/server/bootstrap.js +12 -1
- 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/dev-server/server.d.ts +1 -1
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +1 -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/api/api-handler-wrapper.d.ts.map +1 -1
- package/esm/src/server/handlers/request/api/api-handler-wrapper.js +7 -3
- package/esm/src/server/handlers/request/api/app-router-resolver.d.ts.map +1 -1
- package/esm/src/server/handlers/request/api/app-router-resolver.js +28 -30
- 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 +10 -3
- package/esm/src/server/project-env/fetcher.d.ts.map +1 -1
- package/esm/src/server/project-env/fetcher.js +138 -27
- 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/service-server.d.ts +1 -1
- package/esm/src/server/service-server.d.ts.map +1 -1
- 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/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 +22 -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/url-builder.d.ts.map +1 -1
- package/esm/src/transforms/import-rewriter/url-builder.js +40 -14
- 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-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/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/entities/getEntityInfo.d.ts +57 -3
- package/esm/src/types/entities/getEntityInfo.d.ts.map +1 -1
- package/esm/src/types/entities/getEntityInfo.js +1015 -231
- package/esm/src/types/entities.d.ts +9 -1
- package/esm/src/types/entities.d.ts.map +1 -1
- package/esm/src/types/entities.js +92 -0
- 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 +3 -1
- package/esm/src/utils/constants/limits.d.ts.map +1 -1
- package/esm/src/utils/constants/limits.js +3 -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/route-path-utils.d.ts +9 -0
- package/esm/src/utils/route-path-utils.d.ts.map +1 -1
- package/esm/src/utils/route-path-utils.js +56 -20
- 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 -6
- package/esm/src/agent/conversation/model-call-context-run-event.d.ts +0 -41
- package/esm/src/agent/conversation/model-call-context-run-event.d.ts.map +0 -1
- package/esm/src/agent/conversation/model-call-context-run-event.js +0 -74
- package/esm/src/agent/hosted/model-call-context-run-event-recorder.d.ts +0 -35
- package/esm/src/agent/hosted/model-call-context-run-event-recorder.d.ts.map +0 -1
- package/esm/src/agent/hosted/model-call-context-run-event-recorder.js +0 -266
- package/esm/src/observability/instruments/model-call-context-instruments.d.ts +0 -18
- package/esm/src/observability/instruments/model-call-context-instruments.d.ts.map +0 -1
- package/esm/src/observability/instruments/model-call-context-instruments.js +0 -25
- package/esm/src/runtime/model-call-recorder-context.d.ts +0 -8
- package/esm/src/runtime/model-call-recorder-context.d.ts.map +0 -1
- package/esm/src/runtime/model-call-recorder-context.js +0 -14
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/analyze-chunks/command.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/analyze-chunks/command.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CA8Ef"}
|
|
@@ -46,7 +46,9 @@ export async function analyzeChunksCommand(options) {
|
|
|
46
46
|
cliLogger.info("Detected heavy UI libraries shared across pages. Break them into dedicated chunks.");
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
catch {
|
|
49
|
+
catch (error) {
|
|
50
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
51
|
+
cliLogger.error(`Failed to analyze chunks: ${message}`);
|
|
50
52
|
exit(1);
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/schedule/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/schedule/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,YAAY,EAAE,WA+B1B,CAAC"}
|
|
@@ -6,7 +6,7 @@ export const scheduleHelp = {
|
|
|
6
6
|
options: [
|
|
7
7
|
{
|
|
8
8
|
flag: "--input <file>",
|
|
9
|
-
description: "JSON
|
|
9
|
+
description: "JSON object file to override the schedule input (run only)",
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
flag: "--remote",
|
|
@@ -16,6 +16,10 @@ export const scheduleHelp = {
|
|
|
16
16
|
flag: "--json",
|
|
17
17
|
description: "Output as JSON",
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
flag: "--debug",
|
|
21
|
+
description: "Enable debug logging (run only)",
|
|
22
|
+
},
|
|
19
23
|
],
|
|
20
24
|
examples: [
|
|
21
25
|
"veryfront schedule list",
|
|
@@ -5,6 +5,23 @@ interface RemoteSchedulePollOptions {
|
|
|
5
5
|
now?: () => number;
|
|
6
6
|
sleep?: (delayMs: number) => Promise<void>;
|
|
7
7
|
}
|
|
8
|
+
interface LocalScheduleTimeoutOptions {
|
|
9
|
+
maxDelaySeconds?: number;
|
|
10
|
+
setTimer?: (callback: () => void, delayMs: number) => ReturnType<typeof setTimeout>;
|
|
11
|
+
clearTimer?: (timerId: ReturnType<typeof setTimeout>) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface LocalScheduleTimeout {
|
|
14
|
+
readonly signal: AbortSignal | undefined;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create a disposable cooperative timeout for one local schedule execution.
|
|
19
|
+
*
|
|
20
|
+
* Long durations are armed in bounded chunks so timer coercion cannot shorten
|
|
21
|
+
* the configured deadline.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createLocalScheduleTimeout(timeoutSeconds: number | undefined, options?: LocalScheduleTimeoutOptions): LocalScheduleTimeout;
|
|
24
|
+
export declare function normalizeLocalScheduleInput(value: unknown): Record<string, unknown>;
|
|
8
25
|
export declare function waitForRemoteScheduleRun(client: Pick<VeryfrontRunsClient, "get">, accepted: CreateScheduleRunFromSourceResult, options?: RemoteSchedulePollOptions): Promise<Run>;
|
|
9
26
|
export declare function formatRemoteScheduleRunOutput(run: Run): Record<string, unknown>;
|
|
10
27
|
export declare function resolveRemoteScheduleTarget(run: Run, fallback: TriggerTarget): TriggerTarget;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/schedule/handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAUxD,OAAO,EAEL,KAAK,iCAAiC,EACtC,KAAK,GAAG,EACR,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/schedule/handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAUxD,OAAO,EAEL,KAAK,iCAAiC,EACtC,KAAK,GAAG,EACR,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,+BAA+B,CAAC;AAyDvC,UAAU,yBAAyB;IACjC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C;AAED,UAAU,2BAA2B;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IACpF,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IACzC,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,OAAO,GAAE,2BAAgC,GACxC,oBAAoB,CAmDtB;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAOnF;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,EACxC,QAAQ,EAAE,iCAAiC,EAC3C,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAAC,GAAG,CAAC,CAwDd;AAED,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAO/E;AAED,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,aAAa,GAAG,aAAa,CAiB5F;AAiCD,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAgH3E"}
|
|
@@ -7,13 +7,17 @@ import { defineSchema, lazySchema } from "../../../src/schemas/index.js";
|
|
|
7
7
|
import { DEPLOYMENT_ERROR, DEPLOYMENT_VERIFICATION_TIMEOUT, INVALID_ARGUMENT, RESOURCE_NOT_FOUND, } from "../../../src/errors/index.js";
|
|
8
8
|
import { createRunsClient, } from "../../../src/runs/index.js";
|
|
9
9
|
import { discoverSchedules } from "../../../src/schedule/index.js";
|
|
10
|
-
import { runTriggerTarget } from "../../../src/trigger/index.js";
|
|
10
|
+
import { isTriggerId, isTriggerTarget, runTriggerTarget, } from "../../../src/trigger/index.js";
|
|
11
11
|
import { outputTriggerList, outputTriggerRun, readJsonFile } from "../trigger-utils.js";
|
|
12
12
|
const REMOTE_SCHEDULE_POLL_INTERVAL_MS = 1_000;
|
|
13
13
|
const REMOTE_SCHEDULE_TIMEOUT_GRACE_MS = 30_000;
|
|
14
14
|
// Bound how long the CLI waits for dispatch without consuming the cloud run's
|
|
15
15
|
// execution budget. The run remains durable in Veryfront if this wait expires.
|
|
16
16
|
const REMOTE_SCHEDULE_QUEUE_WAIT_TIMEOUT_MS = 5 * 60_000;
|
|
17
|
+
// Deno and Node both clamp longer setTimeout delays. Chaining bounded chunks
|
|
18
|
+
// preserves the authored timeout instead of firing early after host coercion.
|
|
19
|
+
const MAX_HOST_TIMER_DELAY_MS = 2 ** 31 - 1;
|
|
20
|
+
const MAX_TIMER_DELAY_SECONDS = Math.floor(MAX_HOST_TIMER_DELAY_MS / 1_000);
|
|
17
21
|
const getScheduleArgsSchema = defineSchema((v) => v.object({
|
|
18
22
|
action: v.enum(["run", "list"]).optional(),
|
|
19
23
|
id: v.string().optional(),
|
|
@@ -49,7 +53,70 @@ async function handleScheduleList(_args) {
|
|
|
49
53
|
});
|
|
50
54
|
});
|
|
51
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Create a disposable cooperative timeout for one local schedule execution.
|
|
58
|
+
*
|
|
59
|
+
* Long durations are armed in bounded chunks so timer coercion cannot shorten
|
|
60
|
+
* the configured deadline.
|
|
61
|
+
*/
|
|
62
|
+
export function createLocalScheduleTimeout(timeoutSeconds, options = {}) {
|
|
63
|
+
if (timeoutSeconds === undefined) {
|
|
64
|
+
return { signal: undefined, dispose() { } };
|
|
65
|
+
}
|
|
66
|
+
if (!Number.isSafeInteger(timeoutSeconds) || timeoutSeconds <= 0) {
|
|
67
|
+
throw new TypeError("Local schedule timeout must be a positive safe integer.");
|
|
68
|
+
}
|
|
69
|
+
const maxDelaySeconds = options.maxDelaySeconds ?? MAX_TIMER_DELAY_SECONDS;
|
|
70
|
+
if (!Number.isSafeInteger(maxDelaySeconds) || maxDelaySeconds <= 0) {
|
|
71
|
+
throw new TypeError("Local schedule timer chunk must be a positive safe integer.");
|
|
72
|
+
}
|
|
73
|
+
const setTimer = options.setTimer ?? globalThis.setTimeout;
|
|
74
|
+
const clearTimer = options.clearTimer ?? globalThis.clearTimeout;
|
|
75
|
+
const controller = new AbortController();
|
|
76
|
+
let remainingSeconds = timeoutSeconds;
|
|
77
|
+
let timerId;
|
|
78
|
+
let disposed = false;
|
|
79
|
+
const armNextChunk = () => {
|
|
80
|
+
if (disposed || controller.signal.aborted)
|
|
81
|
+
return;
|
|
82
|
+
const delaySeconds = Math.min(remainingSeconds, maxDelaySeconds);
|
|
83
|
+
remainingSeconds -= delaySeconds;
|
|
84
|
+
timerId = setTimer(() => {
|
|
85
|
+
timerId = undefined;
|
|
86
|
+
if (disposed)
|
|
87
|
+
return;
|
|
88
|
+
if (remainingSeconds > 0) {
|
|
89
|
+
armNextChunk();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
controller.abort(new DOMException("Local schedule execution exceeded its configured timeout.", "TimeoutError"));
|
|
93
|
+
}, delaySeconds * 1_000);
|
|
94
|
+
};
|
|
95
|
+
armNextChunk();
|
|
96
|
+
return {
|
|
97
|
+
signal: controller.signal,
|
|
98
|
+
dispose() {
|
|
99
|
+
disposed = true;
|
|
100
|
+
if (timerId !== undefined) {
|
|
101
|
+
clearTimer(timerId);
|
|
102
|
+
timerId = undefined;
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export function normalizeLocalScheduleInput(value) {
|
|
108
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
109
|
+
throw INVALID_ARGUMENT.create({
|
|
110
|
+
detail: "--input JSON file must contain a JSON object.",
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
52
115
|
export async function waitForRemoteScheduleRun(client, accepted, options = {}) {
|
|
116
|
+
if (!Number.isSafeInteger(accepted.timeoutSeconds) ||
|
|
117
|
+
accepted.timeoutSeconds <= 0) {
|
|
118
|
+
throw new Error("Remote schedule returned an invalid execution timeout.");
|
|
119
|
+
}
|
|
53
120
|
const now = options.now ?? Date.now;
|
|
54
121
|
const sleep = options.sleep ??
|
|
55
122
|
((delayMs) => new Promise((resolve) => setTimeout(resolve, delayMs)));
|
|
@@ -79,7 +146,8 @@ export async function waitForRemoteScheduleRun(client, accepted, options = {}) {
|
|
|
79
146
|
throw DEPLOYMENT_ERROR.create({ detail: `Scheduled run was cancelled: ${runId}` });
|
|
80
147
|
}
|
|
81
148
|
const recordedTimeoutSeconds = run.timeout_seconds;
|
|
82
|
-
const executionTimeoutSeconds = recordedTimeoutSeconds
|
|
149
|
+
const executionTimeoutSeconds = Number.isSafeInteger(recordedTimeoutSeconds) &&
|
|
150
|
+
recordedTimeoutSeconds !== null &&
|
|
83
151
|
recordedTimeoutSeconds > 0
|
|
84
152
|
? recordedTimeoutSeconds
|
|
85
153
|
: accepted.timeoutSeconds;
|
|
@@ -109,17 +177,26 @@ export function formatRemoteScheduleRunOutput(run) {
|
|
|
109
177
|
};
|
|
110
178
|
}
|
|
111
179
|
export function resolveRemoteScheduleTarget(run, fallback) {
|
|
112
|
-
|
|
113
|
-
|
|
180
|
+
const fallbackTarget = isTriggerTarget(fallback) ? { ...fallback } : null;
|
|
181
|
+
if (!run.target) {
|
|
182
|
+
if (fallbackTarget !== null)
|
|
183
|
+
return fallbackTarget;
|
|
184
|
+
throw new Error("Remote schedule returned an invalid target.");
|
|
185
|
+
}
|
|
114
186
|
const separator = run.target.indexOf(":");
|
|
115
|
-
if (separator < 1)
|
|
116
|
-
|
|
187
|
+
if (separator < 1) {
|
|
188
|
+
if (fallbackTarget !== null)
|
|
189
|
+
return fallbackTarget;
|
|
190
|
+
throw new Error("Remote schedule returned an invalid target.");
|
|
191
|
+
}
|
|
117
192
|
const kind = run.target.slice(0, separator);
|
|
118
193
|
const id = run.target.slice(separator + 1).trim();
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
194
|
+
const candidate = { kind, id };
|
|
195
|
+
if (isTriggerTarget(candidate))
|
|
196
|
+
return candidate;
|
|
197
|
+
if (fallbackTarget !== null)
|
|
198
|
+
return fallbackTarget;
|
|
199
|
+
throw new Error("Remote schedule returned an invalid target.");
|
|
123
200
|
}
|
|
124
201
|
async function runRemoteSchedule(projectDir, opts) {
|
|
125
202
|
const startedAt = Date.now();
|
|
@@ -133,6 +210,9 @@ async function runRemoteSchedule(projectDir, opts) {
|
|
|
133
210
|
sourceTriggerId: opts.id,
|
|
134
211
|
idempotencyKey: `schedule-cli:${dntShim.crypto.randomUUID()}`,
|
|
135
212
|
});
|
|
213
|
+
if (!isTriggerTarget(accepted.target)) {
|
|
214
|
+
throw new Error("Remote schedule returned an invalid target.");
|
|
215
|
+
}
|
|
136
216
|
const remoteRun = await waitForRemoteScheduleRun(client, accepted);
|
|
137
217
|
await outputTriggerRun({
|
|
138
218
|
command: "schedule",
|
|
@@ -154,7 +234,10 @@ export async function handleScheduleCommand(args) {
|
|
|
154
234
|
throw INVALID_ARGUMENT.create({ detail: "Usage: veryfront schedule run <id>" });
|
|
155
235
|
}
|
|
156
236
|
const projectDir = dntShim.Deno.cwd();
|
|
157
|
-
if (opts.
|
|
237
|
+
if (!isTriggerId(opts.id)) {
|
|
238
|
+
throw INVALID_ARGUMENT.create({ detail: `Invalid schedule id: "${opts.id}".` });
|
|
239
|
+
}
|
|
240
|
+
if (opts.remote && opts.input !== undefined) {
|
|
158
241
|
throw INVALID_ARGUMENT.create({
|
|
159
242
|
detail: "Remote schedule runs use the source already pushed to Veryfront and do not accept --input.",
|
|
160
243
|
});
|
|
@@ -166,7 +249,9 @@ export async function handleScheduleCommand(args) {
|
|
|
166
249
|
}
|
|
167
250
|
await withProjectSourceContext(projectDir, async (context) => {
|
|
168
251
|
const { adapter, config, configCacheKey, projectId } = context;
|
|
169
|
-
const input = opts.input
|
|
252
|
+
const input = opts.input !== undefined
|
|
253
|
+
? await readJsonFile(opts.input, "--input JSON file")
|
|
254
|
+
: undefined;
|
|
170
255
|
const result = await discoverSchedules({
|
|
171
256
|
projectDir,
|
|
172
257
|
adapter,
|
|
@@ -182,10 +267,8 @@ export async function handleScheduleCommand(args) {
|
|
|
182
267
|
if (!schedule) {
|
|
183
268
|
throw RESOURCE_NOT_FOUND.create({ detail: `Schedule "${opts.id}" not found.` });
|
|
184
269
|
}
|
|
185
|
-
const triggerInput = input
|
|
186
|
-
const scheduleConfig = triggerInput
|
|
187
|
-
? triggerInput
|
|
188
|
-
: {};
|
|
270
|
+
const triggerInput = normalizeLocalScheduleInput(opts.input === undefined ? schedule.input ?? {} : input);
|
|
271
|
+
const scheduleConfig = triggerInput;
|
|
189
272
|
const scheduleName = schedule.name ?? schedule.id;
|
|
190
273
|
const scheduleTarget = scheduleConfig._schedule_target;
|
|
191
274
|
const conversationMode = scheduleTarget && typeof scheduleTarget === "object" &&
|
|
@@ -209,17 +292,26 @@ export async function handleScheduleCommand(args) {
|
|
|
209
292
|
},
|
|
210
293
|
}
|
|
211
294
|
: {};
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
295
|
+
const timeout = createLocalScheduleTimeout(schedule.timeoutSeconds);
|
|
296
|
+
const run = await (async () => {
|
|
297
|
+
try {
|
|
298
|
+
return await runTriggerTarget({
|
|
299
|
+
projectDir,
|
|
300
|
+
adapter,
|
|
301
|
+
config,
|
|
302
|
+
cacheKey: configCacheKey,
|
|
303
|
+
projectId,
|
|
304
|
+
target: schedule.target,
|
|
305
|
+
input: triggerInput,
|
|
306
|
+
...agentRunOptions,
|
|
307
|
+
signal: timeout.signal,
|
|
308
|
+
debug: opts.debug,
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
finally {
|
|
312
|
+
timeout.dispose();
|
|
313
|
+
}
|
|
314
|
+
})();
|
|
223
315
|
await outputTriggerRun({
|
|
224
316
|
command: "schedule",
|
|
225
317
|
triggerId: schedule.id,
|
|
@@ -227,8 +319,6 @@ export async function handleScheduleCommand(args) {
|
|
|
227
319
|
output: run.output,
|
|
228
320
|
durationMs: run.durationMs,
|
|
229
321
|
});
|
|
230
|
-
}).catch((error) => {
|
|
231
|
-
throw error;
|
|
232
322
|
});
|
|
233
323
|
exitProcess(0);
|
|
234
324
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/serve/command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/serve/command.ts"],"names":[],"mappings":"AAWA,KAAK,oBAAoB,GAAG;IAC1B,uBAAuB,EAAE,CACvB,KAAK,EAAE,OAAO,EACd,OAAO,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAC1B,MAAM,GAAG,SAAS,CAAC;IACxB,sBAAsB,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACjE,gBAAgB,CAAC,EAAE,CACjB,SAAS,EAAE,SAAS,GAAG,OAAO,EAC9B,KAAK,EAAE,OAAO,KACX,IAAI,CAAC;CACX,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,sBAAsB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,wBAAwB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAClD,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,uBAAuB,EAAE,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IACzE,sBAAsB,EAAE,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;IACvE,uBAAuB,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,wBAAsB,4BAA4B,CAAC,CAAC,EAClD,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,GAAE,4BAAiC,GACzC,OAAO,CAAC,CAAC,CAAC,CAqBZ;AAoCD,wBAAsB,sCAAsC,CAAC,CAAC,EAC5D,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,QAAQ,EAAE,oBAAoB,EAC9B,sBAAsB,GAAE,MAAM,OAAO,CAAC,IAAI,CAA6B,EACvE,uBAAuB,GAAE,MAAM,OAAO,CAAC,OAAO,CAA2B,GACxE,OAAO,CAAC,CAAC,CAAC,CAMZ;AA2DD,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,YAAY,EACrB,YAAY,GAAE,4BAAiC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAgFf;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,YAAY,EACrB,YAAY,GAAE,wBAA6B,GAC1C,OAAO,CAAC,IAAI,CAAC,CAcf"}
|
|
@@ -5,6 +5,7 @@ import { exitProcess, registerTerminationSignals, showHeader } from "../../utils
|
|
|
5
5
|
import { generateDefaultProjectId } from "../../utils/project.js";
|
|
6
6
|
import { startCliProductionServer } from "../../shared/server-startup.js";
|
|
7
7
|
import { ensureCliBundlerContracts } from "../../shared/default-contracts.js";
|
|
8
|
+
import { runStandaloneProxyRuntime } from "./proxy-runtime.js";
|
|
8
9
|
const STARTUP_ERROR_FLUSH_TIMEOUT_MS = 2_000;
|
|
9
10
|
export async function runWithStartupErrorReporting(startup, reporter, options = {}) {
|
|
10
11
|
const flushTimeoutMs = options.flushTimeoutMs ?? STARTUP_ERROR_FLUSH_TIMEOUT_MS;
|
|
@@ -75,30 +76,10 @@ async function runSplit(options) {
|
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
78
|
async function runProxy(options) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
setEnv("HOST", options.bindAddress);
|
|
83
|
-
const { activateStandaloneProxyCacheExtension, registerStandaloneProxyCacheExtensionTeardown, } = await import("./proxy-extension-composition.js");
|
|
84
|
-
const extensionLoader = await activateStandaloneProxyCacheExtension();
|
|
85
|
-
const teardownCacheExtension = await registerStandaloneProxyCacheExtensionTeardown(extensionLoader);
|
|
86
|
-
// DenoHttpServer.serve() blocks until the server stops,
|
|
87
|
-
// so this import keeps the process alive.
|
|
88
|
-
try {
|
|
89
|
-
await import("../../../src/proxy/main.js");
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
try {
|
|
93
|
-
await teardownCacheExtension();
|
|
94
|
-
}
|
|
95
|
-
catch (cleanupError) {
|
|
96
|
-
cliLogger.error("Failed to clean up proxy extensions after startup failure", cleanupError);
|
|
97
|
-
}
|
|
98
|
-
throw error;
|
|
99
|
-
}
|
|
100
|
-
// Keep the process alive (Deno.serve returns immediately in compiled binaries)
|
|
101
|
-
await new Promise(() => { });
|
|
79
|
+
await runStandaloneProxyRuntime({
|
|
80
|
+
bindAddress: options.bindAddress,
|
|
81
|
+
port: options.port,
|
|
82
|
+
});
|
|
102
83
|
}
|
|
103
84
|
function createDeferredProductionStartupErrorReporter() {
|
|
104
85
|
let sentryModule;
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* Standalone proxy extension composition.
|
|
3
3
|
*
|
|
4
4
|
* This CLI/deployment boundary activates provider implementations before the
|
|
5
|
-
* provider-neutral proxy runtime is imported. Core consumes
|
|
6
|
-
* `TokenCacheStore` contract published by the
|
|
5
|
+
* provider-neutral proxy runtime is imported. Core consumes the
|
|
6
|
+
* `TokenCacheStore` contract and the Redis runtime provider published by the
|
|
7
|
+
* extension loader.
|
|
7
8
|
*/
|
|
8
9
|
import { ExtensionLoader } from "../../../src/extensions/index.js";
|
|
9
10
|
import { type RegisterProxyShutdownHook } from "../../../src/proxy/shutdown-hooks.js";
|
|
10
|
-
/** Start explicit standalone
|
|
11
|
-
export declare function
|
|
11
|
+
/** Start explicit standalone proxy extension composition. */
|
|
12
|
+
export declare function activateStandaloneProxyExtensions(): Promise<ExtensionLoader | null>;
|
|
12
13
|
/** Register exactly-once provider teardown with the proxy's shutdown owner. */
|
|
13
|
-
export declare function
|
|
14
|
+
export declare function registerStandaloneProxyExtensionTeardown(loader: ExtensionLoader | null, registerHook?: RegisterProxyShutdownHook): Promise<() => Promise<void>>;
|
|
14
15
|
//# sourceMappingURL=proxy-extension-composition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-extension-composition.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/serve/proxy-extension-composition.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"proxy-extension-composition.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/serve/proxy-extension-composition.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAyB,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAG1F,OAAO,EAEL,KAAK,yBAAyB,EAE/B,MAAM,sCAAsC,CAAC;AAqG9C,6DAA6D;AAC7D,wBAAgB,iCAAiC,IAAI,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAEnF;AA2DD,+EAA+E;AAC/E,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,eAAe,GAAG,IAAI,EAC9B,YAAY,GAAE,yBAAqD,GAClE,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAI9B"}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* Standalone proxy extension composition.
|
|
3
3
|
*
|
|
4
4
|
* This CLI/deployment boundary activates provider implementations before the
|
|
5
|
-
* provider-neutral proxy runtime is imported. Core consumes
|
|
6
|
-
* `TokenCacheStore` contract published by the
|
|
5
|
+
* provider-neutral proxy runtime is imported. Core consumes the
|
|
6
|
+
* `TokenCacheStore` contract and the Redis runtime provider published by the
|
|
7
|
+
* extension loader.
|
|
7
8
|
*/
|
|
8
|
-
import { cliLogger } from "
|
|
9
|
+
import { cliLogger } from "../../../src/utils/logger/index.js";
|
|
9
10
|
import { ExtensionLoader } from "../../../src/extensions/index.js";
|
|
10
11
|
import { importFirstPartyExtensionModule } from "../../../src/extensions/first-party-import.js";
|
|
11
|
-
import { getEnv } from "../../../src/platform/
|
|
12
|
+
import { getEnv, setEnv } from "../../../src/platform/compat/process/env.js";
|
|
12
13
|
import { createProxyShutdownAggregateError, registerProxyShutdownHook, } from "../../../src/proxy/shutdown-hooks.js";
|
|
13
14
|
// This module is evaluated before extension activation. Pin promises created
|
|
14
15
|
// by the later teardown path so extension code cannot replace Promise species
|
|
@@ -29,29 +30,57 @@ function pinCompositionPromise(promise) {
|
|
|
29
30
|
const resolvedBeforeExtensionActivation = pinCompositionPromise(new NativePromise((resolve) => resolve()));
|
|
30
31
|
const CACHE_EXTENSION_SOURCE_DIRECTORY = "ext-cache-redis";
|
|
31
32
|
const CACHE_EXTENSION_PACKAGE_NAME = "@veryfront/ext-cache-redis";
|
|
33
|
+
const REDIS_EXTENSION_SOURCE_DIRECTORY = "ext-redis";
|
|
34
|
+
const REDIS_EXTENSION_PACKAGE_NAME = "@veryfront/ext-redis";
|
|
32
35
|
/**
|
|
33
|
-
* Activate the standalone proxy's explicitly selected cache
|
|
34
|
-
*
|
|
35
|
-
* teardown; the proxy borrows its registered `TokenCacheStore`.
|
|
36
|
+
* Activate the standalone proxy's explicitly selected cache and Redis runtime
|
|
37
|
+
* providers. The returned loader owns provider teardown.
|
|
36
38
|
*/
|
|
37
|
-
async function
|
|
39
|
+
async function activateStandaloneProxyExtensionsInternal() {
|
|
38
40
|
const cacheType = getEnv("CACHE_TYPE") || "memory";
|
|
39
|
-
if (cacheType !== "memory" && cacheType !== "extension") {
|
|
40
|
-
throw new NativeTypeError(
|
|
41
|
+
if (cacheType !== "memory" && cacheType !== "extension" && cacheType !== "redis") {
|
|
42
|
+
throw new NativeTypeError(`CACHE_TYPE must be memory, extension, or redis (received "${cacheType}")`);
|
|
41
43
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
const selected = [];
|
|
45
|
+
if (cacheType === "extension" || cacheType === "redis") {
|
|
46
|
+
selected.push({
|
|
47
|
+
origin: "standalone proxy cache selection",
|
|
48
|
+
packageName: CACHE_EXTENSION_PACKAGE_NAME,
|
|
49
|
+
sourceDirectory: CACHE_EXTENSION_SOURCE_DIRECTORY,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (getEnv("REDIS_URL")) {
|
|
53
|
+
selected.push({
|
|
54
|
+
origin: "standalone proxy routing invalidation",
|
|
55
|
+
packageName: REDIS_EXTENSION_PACKAGE_NAME,
|
|
56
|
+
sourceDirectory: REDIS_EXTENSION_SOURCE_DIRECTORY,
|
|
57
|
+
});
|
|
47
58
|
}
|
|
59
|
+
if (selected.length === 0)
|
|
60
|
+
return null;
|
|
61
|
+
const extensions = await NativePromise.all(selected.map(async (definition) => {
|
|
62
|
+
const module = await importFirstPartyExtensionModule(definition.sourceDirectory, definition.packageName);
|
|
63
|
+
if (typeof module.default !== "function") {
|
|
64
|
+
throw new NativeTypeError(`${definition.packageName} must export an ExtensionFactory`);
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
extension: module.default(),
|
|
68
|
+
source: "config",
|
|
69
|
+
origin: definition.origin,
|
|
70
|
+
};
|
|
71
|
+
}));
|
|
48
72
|
const loader = new ExtensionLoader(cliLogger);
|
|
49
73
|
try {
|
|
50
|
-
await loader.setupAll(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
74
|
+
await loader.setupAll(extensions, {});
|
|
75
|
+
// Keep the chart compatible with older universal binaries during rollout.
|
|
76
|
+
// This shared boundary translates the legacy value only after the
|
|
77
|
+
// extension-backed store is registered. The downstream cache validators
|
|
78
|
+
// (src/proxy/cache/index.ts, src/proxy/cache/extension-store.ts) accept
|
|
79
|
+
// only "memory" and "extension", so this translation must complete before
|
|
80
|
+
// the proxy runtime is imported. TODO: remove this rollout shim once the
|
|
81
|
+
// hosted charts stop passing CACHE_TYPE=redis.
|
|
82
|
+
if (cacheType === "redis")
|
|
83
|
+
setEnv("CACHE_TYPE", "extension");
|
|
55
84
|
return loader;
|
|
56
85
|
}
|
|
57
86
|
catch (error) {
|
|
@@ -59,16 +88,16 @@ async function activateStandaloneProxyCacheExtensionInternal() {
|
|
|
59
88
|
await loader.teardownAll();
|
|
60
89
|
}
|
|
61
90
|
catch (cleanupError) {
|
|
62
|
-
cliLogger.error("Failed to clean up standalone proxy
|
|
91
|
+
cliLogger.error("Failed to clean up standalone proxy extensions", cleanupError);
|
|
63
92
|
}
|
|
64
93
|
throw error;
|
|
65
94
|
}
|
|
66
95
|
}
|
|
67
|
-
/** Start explicit standalone
|
|
68
|
-
export function
|
|
69
|
-
return pinCompositionPromise(
|
|
96
|
+
/** Start explicit standalone proxy extension composition. */
|
|
97
|
+
export function activateStandaloneProxyExtensions() {
|
|
98
|
+
return pinCompositionPromise(activateStandaloneProxyExtensionsInternal());
|
|
70
99
|
}
|
|
71
|
-
async function
|
|
100
|
+
async function registerStandaloneProxyExtensionTeardownInternal(loader, registerHook) {
|
|
72
101
|
if (!loader)
|
|
73
102
|
return () => resolvedBeforeExtensionActivation;
|
|
74
103
|
let teardownPromise = null;
|
|
@@ -90,7 +119,7 @@ async function registerStandaloneProxyCacheExtensionTeardownInternal(loader, reg
|
|
|
90
119
|
await teardown();
|
|
91
120
|
}
|
|
92
121
|
catch (cleanupError) {
|
|
93
|
-
throw createProxyShutdownAggregateError([error, cleanupError], "Failed to register and clean up standalone proxy
|
|
122
|
+
throw createProxyShutdownAggregateError([error, cleanupError], "Failed to register and clean up standalone proxy extension teardown");
|
|
94
123
|
}
|
|
95
124
|
throw error;
|
|
96
125
|
}
|
|
@@ -109,7 +138,7 @@ async function registerStandaloneProxyCacheExtensionTeardownInternal(loader, reg
|
|
|
109
138
|
}
|
|
110
139
|
catch (teardownError) {
|
|
111
140
|
if (disposalFailed) {
|
|
112
|
-
throw createProxyShutdownAggregateError([disposalError, teardownError], "Failed to unregister and tear down standalone proxy
|
|
141
|
+
throw createProxyShutdownAggregateError([disposalError, teardownError], "Failed to unregister and tear down standalone proxy extensions");
|
|
113
142
|
}
|
|
114
143
|
throw teardownError;
|
|
115
144
|
}
|
|
@@ -118,6 +147,6 @@ async function registerStandaloneProxyCacheExtensionTeardownInternal(loader, reg
|
|
|
118
147
|
})());
|
|
119
148
|
}
|
|
120
149
|
/** Register exactly-once provider teardown with the proxy's shutdown owner. */
|
|
121
|
-
export function
|
|
122
|
-
return pinCompositionPromise(
|
|
150
|
+
export function registerStandaloneProxyExtensionTeardown(loader, registerHook = registerProxyShutdownHook) {
|
|
151
|
+
return pinCompositionPromise(registerStandaloneProxyExtensionTeardownInternal(loader, registerHook));
|
|
123
152
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { activateStandaloneProxyExtensions, registerStandaloneProxyExtensionTeardown } from "./proxy-extension-composition.js";
|
|
2
|
+
export interface StandaloneProxyRuntimeOptions {
|
|
3
|
+
bindAddress?: string;
|
|
4
|
+
port?: number;
|
|
5
|
+
}
|
|
6
|
+
interface StandaloneProxyRuntimeDependencies {
|
|
7
|
+
activateExtensions?: typeof activateStandaloneProxyExtensions;
|
|
8
|
+
keepAlive?: () => Promise<void>;
|
|
9
|
+
loadProxy?: () => Promise<unknown>;
|
|
10
|
+
registerTeardown?: typeof registerStandaloneProxyExtensionTeardown;
|
|
11
|
+
}
|
|
12
|
+
/** Create the never-settling promise that owns the standalone process lifetime. */
|
|
13
|
+
export declare function createStandaloneProxyKeepAlivePromise(): Promise<void>;
|
|
14
|
+
/** Start the standalone proxy with the same lifecycle in CLI and dedicated binaries. */
|
|
15
|
+
export declare function runStandaloneProxyRuntime(options?: StandaloneProxyRuntimeOptions, dependencies?: StandaloneProxyRuntimeDependencies): Promise<void>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=proxy-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-runtime.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/serve/proxy-runtime.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iCAAiC,EACjC,wCAAwC,EACzC,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,6BAA6B;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,kCAAkC;IAC1C,kBAAkB,CAAC,EAAE,OAAO,iCAAiC,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,wCAAwC,CAAC;CACpE;AAMD,mFAAmF;AACnF,wBAAgB,qCAAqC,IAAI,OAAO,CAAC,IAAI,CAAC,CAErE;AAWD,wFAAwF;AACxF,wBAAsB,yBAAyB,CAC7C,OAAO,GAAE,6BAAkC,EAC3C,YAAY,GAAE,kCAAuC,GACpD,OAAO,CAAC,IAAI,CAAC,CA8Bf"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getEnv, setEnv } from "../../../src/platform/compat/process/env.js";
|
|
2
|
+
import { cliLogger } from "../../../src/utils/logger/index.js";
|
|
3
|
+
import denoConfig from "../../../deno.js";
|
|
4
|
+
import { isJsonMode } from "../../shared/json-output.js";
|
|
5
|
+
import { bold, brand, dim } from "../../ui/colors.js";
|
|
6
|
+
import { activateStandaloneProxyExtensions, registerStandaloneProxyExtensionTeardown, } from "./proxy-extension-composition.js";
|
|
7
|
+
// Capture the constructor before extension activation so extension-owned
|
|
8
|
+
// global mutations cannot break the CLI-owned process lifetime promise.
|
|
9
|
+
const NativePromise = Promise;
|
|
10
|
+
/** Create the never-settling promise that owns the standalone process lifetime. */
|
|
11
|
+
export function createStandaloneProxyKeepAlivePromise() {
|
|
12
|
+
return new NativePromise(() => { });
|
|
13
|
+
}
|
|
14
|
+
function showProxyHeader() {
|
|
15
|
+
if (isJsonMode())
|
|
16
|
+
return;
|
|
17
|
+
const version = typeof denoConfig.version === "string" ? denoConfig.version : "0.0.0";
|
|
18
|
+
// Preserve the existing `veryfront serve --mode=proxy` output while the
|
|
19
|
+
// dedicated binary shares this runtime with the universal CLI.
|
|
20
|
+
console.log(`${bold(brand("Veryfront"))} ${dim(`(v${version})`)}`);
|
|
21
|
+
console.log();
|
|
22
|
+
}
|
|
23
|
+
/** Start the standalone proxy with the same lifecycle in CLI and dedicated binaries. */
|
|
24
|
+
export async function runStandaloneProxyRuntime(options = {}, dependencies = {}) {
|
|
25
|
+
if (options.port !== undefined)
|
|
26
|
+
setEnv("PORT", String(options.port));
|
|
27
|
+
if (options.bindAddress !== undefined)
|
|
28
|
+
setEnv("HOST", options.bindAddress);
|
|
29
|
+
const port = getEnv("PORT") || "8080";
|
|
30
|
+
const bindAddress = getEnv("HOST") || "0.0.0.0";
|
|
31
|
+
showProxyHeader();
|
|
32
|
+
cliLogger.info(`Starting proxy server on ${bindAddress}:${port}`);
|
|
33
|
+
const activateExtensions = dependencies.activateExtensions ??
|
|
34
|
+
activateStandaloneProxyExtensions;
|
|
35
|
+
const registerTeardown = dependencies.registerTeardown ??
|
|
36
|
+
registerStandaloneProxyExtensionTeardown;
|
|
37
|
+
const extensionLoader = await activateExtensions();
|
|
38
|
+
const teardownExtensions = await registerTeardown(extensionLoader);
|
|
39
|
+
try {
|
|
40
|
+
await (dependencies.loadProxy ?? (() => import("../../../src/proxy/main.js")))();
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
try {
|
|
44
|
+
await teardownExtensions();
|
|
45
|
+
}
|
|
46
|
+
catch (cleanupError) {
|
|
47
|
+
cliLogger.error("Failed to clean up proxy extensions after startup failure", cleanupError);
|
|
48
|
+
}
|
|
49
|
+
throw error;
|
|
50
|
+
}
|
|
51
|
+
// Deno.serve returns after binding in compiled binaries, while the proxy's
|
|
52
|
+
// signal handlers own shutdown and extension teardown.
|
|
53
|
+
await (dependencies.keepAlive ?? createStandaloneProxyKeepAlivePromise)();
|
|
54
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/webhook/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/webhook/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,WAAW,EAAE,WA0BzB,CAAC"}
|
|
@@ -6,12 +6,16 @@ export const webhookHelp = {
|
|
|
6
6
|
options: [
|
|
7
7
|
{
|
|
8
8
|
flag: "--payload <file>",
|
|
9
|
-
description: "JSON payload fixture (run only)",
|
|
9
|
+
description: "JSON payload fixture (run only; 64 KiB maximum; filters and agent templates are applied)",
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
flag: "--json",
|
|
13
13
|
description: "Output as JSON",
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
flag: "--debug",
|
|
17
|
+
description: "Enable debug logging (run only)",
|
|
18
|
+
},
|
|
15
19
|
],
|
|
16
20
|
examples: [
|
|
17
21
|
"veryfront webhook list",
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { ParsedArgs } from "../../shared/types.js";
|
|
2
|
+
import { type PreparedWebhookInvocation } from "../../../src/webhook/index.js";
|
|
3
|
+
export declare function toWebhookAgentOptions(invocation: PreparedWebhookInvocation): {
|
|
4
|
+
agentInput?: string;
|
|
5
|
+
agentContext?: Record<string, unknown>;
|
|
6
|
+
};
|
|
2
7
|
export declare function handleWebhookCommand(args: ParsedArgs): Promise<void>;
|
|
3
8
|
//# sourceMappingURL=handler.d.ts.map
|