@pellux/goodvibes-sdk 0.21.29 → 0.21.33
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/dist/_internal/contracts/zod-schemas/accounts.d.ts +9 -9
- package/dist/_internal/contracts/zod-schemas/auth.d.ts +1 -1
- package/dist/_internal/daemon/context.d.ts +1 -0
- package/dist/_internal/daemon/context.d.ts.map +1 -1
- package/dist/_internal/daemon/error-response.js +22 -22
- package/dist/_internal/daemon/integration-route-types.d.ts +2 -1
- package/dist/_internal/daemon/integration-route-types.d.ts.map +1 -1
- package/dist/_internal/daemon/knowledge-routes.js +5 -5
- package/dist/_internal/daemon/media-routes.d.ts.map +1 -1
- package/dist/_internal/daemon/media-routes.js +4 -3
- package/dist/_internal/daemon/operator.d.ts +1 -1
- package/dist/_internal/daemon/operator.d.ts.map +1 -1
- package/dist/_internal/daemon/operator.js +2 -0
- package/dist/_internal/daemon/runtime-route-types.d.ts +2 -1
- package/dist/_internal/daemon/runtime-route-types.d.ts.map +1 -1
- package/dist/_internal/daemon/runtime-routes.d.ts +1 -1
- package/dist/_internal/daemon/runtime-routes.d.ts.map +1 -1
- package/dist/_internal/daemon/runtime-routes.js +1 -0
- package/dist/_internal/daemon/telemetry-routes.d.ts.map +1 -1
- package/dist/_internal/daemon/telemetry-routes.js +13 -12
- package/dist/_internal/errors/daemon-error-contract.d.ts +17 -0
- package/dist/_internal/errors/daemon-error-contract.d.ts.map +1 -1
- package/dist/_internal/errors/daemon-error-contract.js +17 -1
- package/dist/_internal/errors/index.d.ts +2 -1
- package/dist/_internal/errors/index.d.ts.map +1 -1
- package/dist/_internal/errors/index.js +1 -0
- package/dist/_internal/platform/artifacts/store.d.ts.map +1 -1
- package/dist/_internal/platform/artifacts/store.js +2 -1
- package/dist/_internal/platform/automation/scheduler-capacity.d.ts +29 -0
- package/dist/_internal/platform/automation/scheduler-capacity.d.ts.map +1 -0
- package/dist/_internal/platform/automation/scheduler-capacity.js +31 -0
- package/dist/_internal/platform/channels/delivery/shared.d.ts.map +1 -1
- package/dist/_internal/platform/channels/delivery/shared.js +3 -2
- package/dist/_internal/platform/channels/delivery/strategies-bridge.d.ts.map +1 -1
- package/dist/_internal/platform/channels/delivery/strategies-bridge.js +3 -2
- package/dist/_internal/platform/channels/delivery/strategies-core.d.ts.map +1 -1
- package/dist/_internal/platform/channels/delivery/strategies-core.js +5 -4
- package/dist/_internal/platform/channels/delivery/strategies-enterprise.d.ts.map +1 -1
- package/dist/_internal/platform/channels/delivery/strategies-enterprise.js +4 -3
- package/dist/_internal/platform/companion/companion-chat-rate-limiter.d.ts +7 -0
- package/dist/_internal/platform/companion/companion-chat-rate-limiter.d.ts.map +1 -1
- package/dist/_internal/platform/companion/companion-chat-rate-limiter.js +16 -0
- package/dist/_internal/platform/config/manager.d.ts.map +1 -1
- package/dist/_internal/platform/config/manager.js +2 -1
- package/dist/_internal/platform/config/schema-domain-runtime.d.ts +6 -0
- package/dist/_internal/platform/config/schema-domain-runtime.d.ts.map +1 -1
- package/dist/_internal/platform/config/schema-domain-runtime.js +22 -0
- package/dist/_internal/platform/config/schema-types.d.ts +16 -2
- package/dist/_internal/platform/config/schema-types.d.ts.map +1 -1
- package/dist/_internal/platform/config/schema.d.ts.map +1 -1
- package/dist/_internal/platform/config/schema.js +1 -0
- package/dist/_internal/platform/config/service-registry.d.ts.map +1 -1
- package/dist/_internal/platform/config/service-registry.js +2 -1
- package/dist/_internal/platform/control-plane/gateway-web-ui.d.ts +0 -1
- package/dist/_internal/platform/control-plane/gateway-web-ui.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/gateway-web-ui.js +7 -6
- package/dist/_internal/platform/control-plane/gateway.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/gateway.js +7 -0
- package/dist/_internal/platform/control-plane/session-broker.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/session-broker.js +38 -5
- package/dist/_internal/platform/core/orchestrator-tool-runtime.d.ts.map +1 -1
- package/dist/_internal/platform/core/orchestrator-tool-runtime.js +6 -6
- package/dist/_internal/platform/core/orchestrator-turn-loop.d.ts.map +1 -1
- package/dist/_internal/platform/core/orchestrator-turn-loop.js +10 -2
- package/dist/_internal/platform/core/orchestrator.d.ts.map +1 -1
- package/dist/_internal/platform/core/orchestrator.js +2 -0
- package/dist/_internal/platform/daemon/facade-composition.d.ts +4 -131
- package/dist/_internal/platform/daemon/facade-composition.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/facade-composition.js +9 -10
- package/dist/_internal/platform/daemon/facade-types.d.ts +141 -0
- package/dist/_internal/platform/daemon/facade-types.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/facade-types.js +1 -0
- package/dist/_internal/platform/daemon/http/rate-limiter.d.ts +23 -0
- package/dist/_internal/platform/daemon/http/rate-limiter.d.ts.map +1 -0
- package/dist/_internal/platform/daemon/http/rate-limiter.js +71 -0
- package/dist/_internal/platform/daemon/http/router-route-contexts.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/http/router-route-contexts.js +2 -1
- package/dist/_internal/platform/daemon/http/router.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/http/router.js +90 -66
- package/dist/_internal/platform/daemon/http/runtime-route-types.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/http-listener.d.ts +14 -0
- package/dist/_internal/platform/daemon/http-listener.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/http-listener.js +92 -86
- package/dist/_internal/platform/daemon/surface-delivery.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/surface-delivery.js +6 -5
- package/dist/_internal/platform/discovery/mcp-scanner.d.ts.map +1 -1
- package/dist/_internal/platform/discovery/mcp-scanner.js +28 -22
- package/dist/_internal/platform/discovery/scanner.d.ts.map +1 -1
- package/dist/_internal/platform/discovery/scanner.js +38 -22
- package/dist/_internal/platform/export/session-export.d.ts +0 -1
- package/dist/_internal/platform/export/session-export.d.ts.map +1 -1
- package/dist/_internal/platform/export/session-export.js +1 -33
- package/dist/_internal/platform/hooks/runners/http.d.ts.map +1 -1
- package/dist/_internal/platform/hooks/runners/http.js +15 -1
- package/dist/_internal/platform/hooks/types.d.ts +7 -0
- package/dist/_internal/platform/hooks/types.d.ts.map +1 -1
- package/dist/_internal/platform/integrations/delivery.d.ts +3 -1
- package/dist/_internal/platform/integrations/delivery.d.ts.map +1 -1
- package/dist/_internal/platform/integrations/delivery.js +3 -2
- package/dist/_internal/platform/integrations/discord.d.ts.map +1 -1
- package/dist/_internal/platform/integrations/discord.js +6 -5
- package/dist/_internal/platform/integrations/ntfy.d.ts.map +1 -1
- package/dist/_internal/platform/integrations/ntfy.js +3 -2
- package/dist/_internal/platform/integrations/webhooks.d.ts.map +1 -1
- package/dist/_internal/platform/integrations/webhooks.js +12 -1
- package/dist/_internal/platform/intelligence/lsp/binary-downloader.d.ts.map +1 -1
- package/dist/_internal/platform/intelligence/lsp/binary-downloader.js +4 -3
- package/dist/_internal/platform/knowledge/store.d.ts.map +1 -1
- package/dist/_internal/platform/knowledge/store.js +50 -25
- package/dist/_internal/platform/mcp/client.d.ts.map +1 -1
- package/dist/_internal/platform/mcp/client.js +3 -2
- package/dist/_internal/platform/media/builtin-generation-providers.d.ts.map +1 -1
- package/dist/_internal/platform/media/builtin-generation-providers.js +4 -3
- package/dist/_internal/platform/media/builtin-image-understanding.d.ts.map +1 -1
- package/dist/_internal/platform/media/builtin-image-understanding.js +5 -4
- package/dist/_internal/platform/providers/anthropic-compat.d.ts.map +1 -1
- package/dist/_internal/platform/providers/anthropic-compat.js +5 -3
- package/dist/_internal/platform/providers/anthropic.d.ts.map +1 -1
- package/dist/_internal/platform/providers/anthropic.js +10 -7
- package/dist/_internal/platform/providers/builtin-catalog.d.ts.map +1 -1
- package/dist/_internal/platform/providers/builtin-catalog.js +3 -2
- package/dist/_internal/platform/providers/catalogue.d.ts +56 -0
- package/dist/_internal/platform/providers/catalogue.d.ts.map +1 -0
- package/dist/_internal/platform/providers/catalogue.js +111 -0
- package/dist/_internal/platform/providers/context-discovery.d.ts.map +1 -1
- package/dist/_internal/platform/providers/context-discovery.js +2 -1
- package/dist/_internal/platform/providers/credentials.d.ts +12 -0
- package/dist/_internal/platform/providers/credentials.d.ts.map +1 -0
- package/dist/_internal/platform/providers/credentials.js +54 -0
- package/dist/_internal/platform/providers/gemini.d.ts.map +1 -1
- package/dist/_internal/platform/providers/gemini.js +6 -5
- package/dist/_internal/platform/providers/github-copilot.d.ts.map +1 -1
- package/dist/_internal/platform/providers/github-copilot.js +2 -1
- package/dist/_internal/platform/providers/health.d.ts +15 -0
- package/dist/_internal/platform/providers/health.d.ts.map +1 -0
- package/dist/_internal/platform/providers/health.js +32 -0
- package/dist/_internal/platform/providers/llama-cpp.d.ts.map +1 -1
- package/dist/_internal/platform/providers/llama-cpp.js +5 -3
- package/dist/_internal/platform/providers/lm-studio.d.ts.map +1 -1
- package/dist/_internal/platform/providers/lm-studio.js +5 -3
- package/dist/_internal/platform/providers/model-benchmarks.d.ts.map +1 -1
- package/dist/_internal/platform/providers/model-benchmarks.js +2 -1
- package/dist/_internal/platform/providers/model-catalog-cache.d.ts.map +1 -1
- package/dist/_internal/platform/providers/model-catalog-cache.js +2 -1
- package/dist/_internal/platform/providers/model-limits.d.ts.map +1 -1
- package/dist/_internal/platform/providers/model-limits.js +2 -1
- package/dist/_internal/platform/providers/ollama.d.ts.map +1 -1
- package/dist/_internal/platform/providers/ollama.js +5 -3
- package/dist/_internal/platform/providers/openai-codex.d.ts.map +1 -1
- package/dist/_internal/platform/providers/openai-codex.js +4 -2
- package/dist/_internal/platform/providers/openai-compat.d.ts.map +1 -1
- package/dist/_internal/platform/providers/openai-compat.js +3 -2
- package/dist/_internal/platform/providers/provider-not-found-error.d.ts +3 -1
- package/dist/_internal/platform/providers/provider-not-found-error.d.ts.map +1 -1
- package/dist/_internal/platform/providers/provider-not-found-error.js +3 -4
- package/dist/_internal/platform/providers/well-known-endpoints.d.ts +53 -0
- package/dist/_internal/platform/providers/well-known-endpoints.d.ts.map +1 -0
- package/dist/_internal/platform/providers/well-known-endpoints.js +52 -0
- package/dist/_internal/platform/runtime/auth/oauth-core.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/auth/oauth-core.js +2 -1
- package/dist/_internal/platform/runtime/bootstrap-runtime-events.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/bootstrap-runtime-events.js +2 -0
- package/dist/_internal/platform/runtime/contracts/index.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/contracts/index.js +1 -5
- package/dist/_internal/platform/runtime/contracts/migrations/schemas.d.ts +57 -0
- package/dist/_internal/platform/runtime/contracts/migrations/schemas.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/contracts/migrations/schemas.js +157 -0
- package/dist/_internal/platform/runtime/correlation.d.ts +44 -0
- package/dist/_internal/platform/runtime/correlation.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/correlation.js +40 -0
- package/dist/_internal/platform/runtime/emitters/security.d.ts +32 -0
- package/dist/_internal/platform/runtime/emitters/security.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/emitters/security.js +26 -0
- package/dist/_internal/platform/runtime/emitters/tools.d.ts +11 -2
- package/dist/_internal/platform/runtime/emitters/tools.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/emitters/tools.js +27 -0
- package/dist/_internal/platform/runtime/emitters/transport.d.ts +27 -0
- package/dist/_internal/platform/runtime/emitters/transport.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/emitters/transport.js +19 -0
- package/dist/_internal/platform/runtime/emitters/turn.d.ts +22 -1
- package/dist/_internal/platform/runtime/emitters/turn.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/emitters/turn.js +9 -0
- package/dist/_internal/platform/runtime/events/index.d.ts +45 -0
- package/dist/_internal/platform/runtime/events/index.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/events/index.js +130 -22
- package/dist/_internal/platform/runtime/events/ops.d.ts +8 -0
- package/dist/_internal/platform/runtime/events/ops.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/events/security.d.ts +47 -0
- package/dist/_internal/platform/runtime/events/security.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/events/tools.d.ts +14 -2
- package/dist/_internal/platform/runtime/events/tools.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/events/transport.d.ts +31 -0
- package/dist/_internal/platform/runtime/events/transport.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/events/turn.d.ts +25 -1
- package/dist/_internal/platform/runtime/events/turn.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/events/workspace.d.ts +16 -0
- package/dist/_internal/platform/runtime/events/workspace.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/integration/helpers.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/integration/helpers.js +5 -0
- package/dist/_internal/platform/runtime/llm-observability.d.ts +43 -0
- package/dist/_internal/platform/runtime/llm-observability.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/llm-observability.js +107 -0
- package/dist/_internal/platform/runtime/metrics.d.ts +49 -0
- package/dist/_internal/platform/runtime/metrics.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/metrics.js +114 -0
- package/dist/_internal/platform/runtime/ops/control-plane.d.ts +5 -2
- package/dist/_internal/platform/runtime/ops/control-plane.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/ops/control-plane.js +5 -4
- package/dist/_internal/platform/runtime/perf/slo-collector.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/perf/slo-collector.js +2 -0
- package/dist/_internal/platform/runtime/permissions/divergence-dashboard.d.ts +3 -1
- package/dist/_internal/platform/runtime/permissions/divergence-dashboard.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/permissions/divergence-dashboard.js +3 -2
- package/dist/_internal/platform/runtime/permissions/policy-loader.d.ts +3 -1
- package/dist/_internal/platform/runtime/permissions/policy-loader.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/permissions/policy-loader.js +3 -2
- package/dist/_internal/platform/runtime/permissions/policy-signer.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/permissions/policy-signer.js +7 -2
- package/dist/_internal/platform/runtime/permissions/simulation.d.ts +3 -1
- package/dist/_internal/platform/runtime/permissions/simulation.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/permissions/simulation.js +3 -2
- package/dist/_internal/platform/runtime/remote/transport-contract.d.ts +14 -2
- package/dist/_internal/platform/runtime/remote/transport-contract.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/remote/transport-contract.js +7 -5
- package/dist/_internal/platform/runtime/store/helpers/reducers/sync.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/store/helpers/reducers/sync.js +12 -1
- package/dist/_internal/platform/runtime/tasks/manager.d.ts +7 -3
- package/dist/_internal/platform/runtime/tasks/manager.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/tasks/manager.js +7 -6
- package/dist/_internal/platform/runtime/telemetry/api-helpers.d.ts +14 -0
- package/dist/_internal/platform/runtime/telemetry/api-helpers.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/telemetry/api-helpers.js +59 -0
- package/dist/_internal/platform/runtime/telemetry/api.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/telemetry/api.js +19 -4
- package/dist/_internal/platform/runtime/telemetry/exporters/otlp.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/telemetry/exporters/otlp.js +19 -6
- package/dist/_internal/platform/runtime/telemetry/exporters/queue.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/telemetry/exporters/queue.js +11 -4
- package/dist/_internal/platform/runtime/telemetry/meter.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/telemetry/meter.js +7 -3
- package/dist/_internal/platform/runtime/telemetry/redaction-config.d.ts +9 -0
- package/dist/_internal/platform/runtime/telemetry/redaction-config.d.ts.map +1 -0
- package/dist/_internal/platform/runtime/telemetry/redaction-config.js +52 -0
- package/dist/_internal/platform/runtime/tools/phases/budget.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/tools/phases/budget.js +3 -2
- package/dist/_internal/platform/runtime/transports/daemon-http-client.d.ts.map +1 -1
- package/dist/_internal/platform/runtime/transports/daemon-http-client.js +138 -17
- package/dist/_internal/platform/scheduler/scheduler.d.ts +19 -2
- package/dist/_internal/platform/scheduler/scheduler.d.ts.map +1 -1
- package/dist/_internal/platform/scheduler/scheduler.js +65 -25
- package/dist/_internal/platform/sessions/manager.d.ts.map +1 -1
- package/dist/_internal/platform/sessions/manager.js +6 -2
- package/dist/_internal/platform/state/memory-embedding-http.d.ts.map +1 -1
- package/dist/_internal/platform/state/memory-embedding-http.js +3 -2
- package/dist/_internal/platform/state/project-index.d.ts.map +1 -1
- package/dist/_internal/platform/state/project-index.js +6 -4
- package/dist/_internal/platform/tools/agent/index.d.ts.map +1 -1
- package/dist/_internal/platform/tools/agent/index.js +2 -1
- package/dist/_internal/platform/tools/analyze/git-modes.d.ts.map +1 -1
- package/dist/_internal/platform/tools/analyze/git-modes.js +2 -1
- package/dist/_internal/platform/tools/edit/core.d.ts.map +1 -1
- package/dist/_internal/platform/tools/edit/core.js +2 -1
- package/dist/_internal/platform/tools/exec/runtime.d.ts.map +1 -1
- package/dist/_internal/platform/tools/exec/runtime.js +3 -2
- package/dist/_internal/platform/tools/fetch/runtime.d.ts.map +1 -1
- package/dist/_internal/platform/tools/fetch/runtime.js +4 -2
- package/dist/_internal/platform/tools/read/index.d.ts.map +1 -1
- package/dist/_internal/platform/tools/read/index.js +2 -1
- package/dist/_internal/platform/tools/registry-tool/index.d.ts.map +1 -1
- package/dist/_internal/platform/tools/registry-tool/index.js +2 -1
- package/dist/_internal/platform/tools/state/index.d.ts.map +1 -1
- package/dist/_internal/platform/tools/state/index.js +2 -1
- package/dist/_internal/platform/tools/task/index.d.ts.map +1 -1
- package/dist/_internal/platform/tools/task/index.js +2 -1
- package/dist/_internal/platform/tools/team/index.d.ts.map +1 -1
- package/dist/_internal/platform/tools/team/index.js +2 -1
- package/dist/_internal/platform/tools/web-search/index.d.ts.map +1 -1
- package/dist/_internal/platform/tools/web-search/index.js +2 -1
- package/dist/_internal/platform/tools/worklist/index.d.ts.map +1 -1
- package/dist/_internal/platform/tools/worklist/index.js +2 -1
- package/dist/_internal/platform/types/errors.d.ts +12 -10
- package/dist/_internal/platform/types/errors.d.ts.map +1 -1
- package/dist/_internal/platform/types/errors.js +21 -20
- package/dist/_internal/platform/utils/error-display.d.ts.map +1 -1
- package/dist/_internal/platform/utils/error-display.js +6 -4
- package/dist/_internal/platform/utils/fetch-with-timeout.d.ts +17 -0
- package/dist/_internal/platform/utils/fetch-with-timeout.d.ts.map +1 -1
- package/dist/_internal/platform/utils/fetch-with-timeout.js +59 -0
- package/dist/_internal/platform/utils/record-coerce.d.ts +11 -0
- package/dist/_internal/platform/utils/record-coerce.d.ts.map +1 -0
- package/dist/_internal/platform/utils/record-coerce.js +12 -0
- package/dist/_internal/platform/utils/redaction.js +1 -1
- package/dist/_internal/platform/utils/ring-buffer.d.ts +54 -0
- package/dist/_internal/platform/utils/ring-buffer.d.ts.map +1 -0
- package/dist/_internal/platform/utils/ring-buffer.js +96 -0
- package/dist/_internal/platform/utils/shell-split.d.ts +11 -0
- package/dist/_internal/platform/utils/shell-split.d.ts.map +1 -0
- package/dist/_internal/platform/utils/shell-split.js +83 -0
- package/dist/_internal/platform/version.js +1 -1
- package/dist/_internal/platform/voice/providers/deepgram.d.ts.map +1 -1
- package/dist/_internal/platform/voice/providers/deepgram.js +2 -1
- package/dist/_internal/platform/voice/providers/elevenlabs.d.ts.map +1 -1
- package/dist/_internal/platform/voice/providers/elevenlabs.js +5 -4
- package/dist/_internal/platform/voice/providers/google.d.ts.map +1 -1
- package/dist/_internal/platform/voice/providers/google.js +5 -4
- package/dist/_internal/platform/voice/providers/microsoft.d.ts.map +1 -1
- package/dist/_internal/platform/voice/providers/microsoft.js +2 -1
- package/dist/_internal/platform/voice/providers/openai.d.ts.map +1 -1
- package/dist/_internal/platform/voice/providers/openai.js +4 -3
- package/dist/_internal/platform/voice/providers/shared.d.ts.map +1 -1
- package/dist/_internal/platform/voice/providers/shared.js +2 -1
- package/dist/_internal/platform/voice/providers/vydra.d.ts.map +1 -1
- package/dist/_internal/platform/voice/providers/vydra.js +3 -2
- package/dist/_internal/platform/watchers/registry.d.ts.map +1 -1
- package/dist/_internal/platform/watchers/registry.js +3 -2
- package/dist/_internal/platform/workflow/trigger-executor.d.ts.map +1 -1
- package/dist/_internal/platform/workflow/trigger-executor.js +5 -3
- package/dist/_internal/platform/workspace/daemon-home.d.ts.map +1 -1
- package/dist/_internal/platform/workspace/daemon-home.js +6 -2
- package/dist/_internal/platform/workspace/workspace-swap-manager.d.ts +1 -0
- package/dist/_internal/platform/workspace/workspace-swap-manager.d.ts.map +1 -1
- package/dist/_internal/platform/workspace/workspace-swap-manager.js +14 -2
- package/package.json +1 -1
|
@@ -109,6 +109,8 @@ export class SloCollector {
|
|
|
109
109
|
constructor(bus) {
|
|
110
110
|
this._subscribe(bus);
|
|
111
111
|
this._sweepTimer = setInterval(() => this._sweepPending(), SWEEP_INTERVAL_MS);
|
|
112
|
+
// Don't block clean process exit (PERF-07).
|
|
113
|
+
this._sweepTimer.unref?.();
|
|
112
114
|
}
|
|
113
115
|
/**
|
|
114
116
|
* Attach all event listeners to the bus.
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* session emitters in GC-ARCH-002). Until that flag is active, this module
|
|
18
18
|
* is exercised only via `DivergencePanel` in the diagnostics layer.
|
|
19
19
|
*/
|
|
20
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
20
21
|
import type { DivergenceReport, SimulationMode } from './types.js';
|
|
21
22
|
import type { PermissionSimulator } from './simulation.js';
|
|
22
23
|
/**
|
|
@@ -197,7 +198,8 @@ export declare class DivergenceDashboard {
|
|
|
197
198
|
* Thrown by `DivergenceDashboard.setMode('enforce')` when the divergence
|
|
198
199
|
* gate is in `blocked` state.
|
|
199
200
|
*/
|
|
200
|
-
export declare class DivergenceGateError extends
|
|
201
|
+
export declare class DivergenceGateError extends GoodVibesSdkError {
|
|
202
|
+
readonly code: 'DIVERGENCE_GATE_BLOCKED';
|
|
201
203
|
/** The full gate result at the time the error was thrown. */
|
|
202
204
|
readonly gate: EnforceGateResult;
|
|
203
205
|
constructor(message: string, gate: EnforceGateResult);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divergence-dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/divergence-dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAI3D;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,mDAAmD;IACnD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,mDAAmD;IACnD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,gEAAgE;IAChE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,yEAAyE;IACzE,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,kCAAkC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,gDAAgD;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;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;;;OAKG;IACH,gBAAgB,IAAI,oBAAoB;IAqBxC;;OAEG;IACH,QAAQ,IAAI,SAAS,oBAAoB,EAAE;IAI3C;;OAEG;IACH,WAAW,IAAI,2BAA2B;IAW1C;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAUnC;;OAEG;IACH,OAAO,IAAI,cAAc;IAIzB;;OAEG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,aAAa,IAAI,OAAO;CAGzB;AAID;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,
|
|
1
|
+
{"version":3,"file":"divergence-dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/divergence-dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAI3D;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,mDAAmD;IACnD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,mDAAmD;IACnD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,gEAAgE;IAChE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oDAAoD;IACpD,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,yEAAyE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,CAAM;IAC/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAO;gBAG9C,SAAS,EAAE,mBAAmB,EAC9B,IAAI,EAAE,cAAc,EACpB,MAAM,GAAE,yBAA8B;IASxC;;;;;;;OAOG;IACH,gBAAgB,IAAI,iBAAiB;IAKrC,wGAAwG;IACxG,OAAO,CAAC,YAAY;IAoCpB;;;;;OAKG;IACH,gBAAgB,IAAI,oBAAoB;IAqBxC;;OAEG;IACH,QAAQ,IAAI,SAAS,oBAAoB,EAAE;IAI3C;;OAEG;IACH,WAAW,IAAI,2BAA2B;IAW1C;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAUnC;;OAEG;IACH,OAAO,IAAI,cAAc;IAIzB;;OAEG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,aAAa,IAAI,OAAO;CAGzB;AAID;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,iBAAiB;IACxD,SAAiB,IAAI,EAAE,yBAAyB,CAAC;IACjD,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;gBAErB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB;CAKrD"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* session emitters in GC-ARCH-002). Until that flag is active, this module
|
|
18
18
|
* is exercised only via `DivergencePanel` in the diagnostics layer.
|
|
19
19
|
*/
|
|
20
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
20
21
|
// ── DivergenceDashboard ───────────────────────────────────────────────────────
|
|
21
22
|
/**
|
|
22
23
|
* DivergenceDashboard — divergence monitoring and enforce-mode gate.
|
|
@@ -196,11 +197,11 @@ export class DivergenceDashboard {
|
|
|
196
197
|
* Thrown by `DivergenceDashboard.setMode('enforce')` when the divergence
|
|
197
198
|
* gate is in `blocked` state.
|
|
198
199
|
*/
|
|
199
|
-
export class DivergenceGateError extends
|
|
200
|
+
export class DivergenceGateError extends GoodVibesSdkError {
|
|
200
201
|
/** The full gate result at the time the error was thrown. */
|
|
201
202
|
gate;
|
|
202
203
|
constructor(message, gate) {
|
|
203
|
-
super(message);
|
|
204
|
+
super(message, { code: 'DIVERGENCE_GATE_BLOCKED', category: 'permission', source: 'runtime', recoverable: false });
|
|
204
205
|
this.name = 'DivergenceGateError';
|
|
205
206
|
this.gate = gate;
|
|
206
207
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* This module does NOT perform I/O itself — it accepts a pre-parsed
|
|
10
10
|
* `SignedPolicyBundle` so callers control the loading strategy.
|
|
11
11
|
*/
|
|
12
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
12
13
|
import type { PolicyRule } from './types.js';
|
|
13
14
|
import type { PolicyBundleId, SignatureStatus, ProvenanceSource, SignedPolicyBundle } from './policy-signer.js';
|
|
14
15
|
/**
|
|
@@ -59,11 +60,12 @@ export interface PolicyLoadResult {
|
|
|
59
60
|
*
|
|
60
61
|
* Managed mode MUST reject bundles with invalid or missing signatures.
|
|
61
62
|
*/
|
|
62
|
-
export declare class PolicySignatureError extends
|
|
63
|
+
export declare class PolicySignatureError extends GoodVibesSdkError {
|
|
63
64
|
/** The bundle ID that failed validation. */
|
|
64
65
|
readonly bundleId: PolicyBundleId;
|
|
65
66
|
/** The validation outcome. */
|
|
66
67
|
readonly signatureStatus: SignatureStatus;
|
|
68
|
+
readonly code: 'POLICY_SIGNATURE_INVALID';
|
|
67
69
|
constructor(
|
|
68
70
|
/** The bundle ID that failed validation. */
|
|
69
71
|
bundleId: PolicyBundleId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-loader.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/policy-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAK5B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iDAAiD;IACjD,cAAc,EAAE,cAAc,CAAC;IAC/B,qDAAqD;IACrD,eAAe,EAAE,eAAe,CAAC;IACjC,wCAAwC;IACxC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,EAAE,EAAE,OAAO,CAAC;IACZ,qEAAqE;IACrE,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,wCAAwC;IACxC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID;;;;;GAKG;AACH,qBAAa,oBAAqB,SAAQ,
|
|
1
|
+
{"version":3,"file":"policy-loader.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/policy-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAK5B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,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;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,EAC/C,OAAO,GAAE,mBAAwB,GAChC,gBAAgB,CA8DlB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,mBAAmB,GAC3B,kBAAkB,CAAC,mBAAmB,CAAC,CAOzC"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* This module does NOT perform I/O itself — it accepts a pre-parsed
|
|
10
10
|
* `SignedPolicyBundle` so callers control the loading strategy.
|
|
11
11
|
*/
|
|
12
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
12
13
|
import { verifyBundle } from './policy-signer.js';
|
|
13
14
|
// ── Error class ───────────────────────────────────────────────────────────────
|
|
14
15
|
/**
|
|
@@ -17,7 +18,7 @@ import { verifyBundle } from './policy-signer.js';
|
|
|
17
18
|
*
|
|
18
19
|
* Managed mode MUST reject bundles with invalid or missing signatures.
|
|
19
20
|
*/
|
|
20
|
-
export class PolicySignatureError extends
|
|
21
|
+
export class PolicySignatureError extends GoodVibesSdkError {
|
|
21
22
|
bundleId;
|
|
22
23
|
signatureStatus;
|
|
23
24
|
constructor(
|
|
@@ -25,7 +26,7 @@ export class PolicySignatureError extends Error {
|
|
|
25
26
|
bundleId,
|
|
26
27
|
/** The validation outcome. */
|
|
27
28
|
signatureStatus, message) {
|
|
28
|
-
super(message);
|
|
29
|
+
super(message, { code: 'POLICY_SIGNATURE_INVALID', category: 'permission', source: 'runtime', recoverable: false });
|
|
29
30
|
this.bundleId = bundleId;
|
|
30
31
|
this.signatureStatus = signatureStatus;
|
|
31
32
|
this.name = 'PolicySignatureError';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-signer.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/policy-signer.ts"],"names":[],"mappings":"AAAA,qFAAqF;
|
|
1
|
+
{"version":3,"file":"policy-signer.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/policy-signer.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAkBrF;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEvF;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,cAAc,CAAC;AAIvF;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,uDAAuD;IACvD,QAAQ,EAAE,cAAc,CAAC;IACzB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,OAAO,EAAE,CAAC,CAAC;IACX;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yEAAyE;IACzE,EAAE,EAAE,OAAO,CAAC;IACZ,iCAAiC;IACjC,MAAM,EAAE,eAAe,CAAC;IACxB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAWnD;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAC1B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,CAAC,EACV,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,MAAM,CAAC,EAAE,MAAM,GACd,kBAAkB,CAAC,CAAC,CAAC,CAiBvB;AAID;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC7B,GAAG,EAAE,MAAM,GAAG,MAAM,GACnB,YAAY,CA6Ed"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* never stores keys in bundle payloads.
|
|
11
11
|
*/
|
|
12
12
|
import { createHmac, timingSafeEqual } from 'node:crypto';
|
|
13
|
+
import { logger } from '../../utils/logger.js';
|
|
13
14
|
// ── Canonical serialisation ───────────────────────────────────────────────────
|
|
14
15
|
/**
|
|
15
16
|
* canonicalise — Produces a deterministic JSON string for the given value.
|
|
@@ -97,8 +98,12 @@ export function verifyBundle(bundle, key) {
|
|
|
97
98
|
.update(canonical, 'utf8')
|
|
98
99
|
.digest();
|
|
99
100
|
}
|
|
100
|
-
catch {
|
|
101
|
-
// Non-fatal
|
|
101
|
+
catch (err) {
|
|
102
|
+
// OBS-11: Non-fatal — key is malformed; treat as invalid
|
|
103
|
+
logger.warn('[PolicySigner] HMAC key error during signature computation', {
|
|
104
|
+
bundleId: bundle.bundleId,
|
|
105
|
+
error: String(err),
|
|
106
|
+
});
|
|
102
107
|
return {
|
|
103
108
|
ok: false,
|
|
104
109
|
status: 'invalid',
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* Feature flag: `permissions-simulation` must be enabled to use this module.
|
|
20
20
|
*/
|
|
21
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
21
22
|
import type { DivergenceReport, PermissionSimulatorConfig, PermissionsConfig, SimulationMode, SimulationResult } from './types.js';
|
|
22
23
|
import { LayeredPolicyEvaluator } from './evaluator.js';
|
|
23
24
|
/**
|
|
@@ -103,7 +104,8 @@ export declare class PermissionSimulator {
|
|
|
103
104
|
/**
|
|
104
105
|
* Thrown when `enforce` mode is active and the divergence gate fails.
|
|
105
106
|
*/
|
|
106
|
-
export declare class SimulationEnforcementError extends
|
|
107
|
+
export declare class SimulationEnforcementError extends GoodVibesSdkError {
|
|
108
|
+
readonly code: 'SIMULATION_ENFORCEMENT_BLOCKED';
|
|
107
109
|
/** Current divergence rate (0–1). */
|
|
108
110
|
readonly divergenceRate: number;
|
|
109
111
|
/** Configured divergence threshold (0–1). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/simulation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAGV,gBAAgB,EAIhB,yBAAyB,EACzB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AA4DxD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmD;IAE7E,kEAAkE;IAClE,OAAO,CAAC,OAAO,CAA0B;IAEzC,kEAAkE;IAClE,OAAO,CAAC,YAAY,CAAsD;IAE1E,4CAA4C;IAC5C,OAAO,CAAC,aAAa,CAA8B;IAEnD,kCAAkC;IAClC,OAAO,CAAC,WAAW,CAA+C;IAElE,0CAA0C;IAC1C,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAO;IAClD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAQ;gBAG/C,YAAY,EAAE,iBAAiB,EAC/B,eAAe,EAAE,iBAAiB,EAClC,cAAc,EAAE,cAAc,EAC9B,MAAM,GAAE,yBAA8B;IAYxC;;;;;;;;OAQG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,gBAAgB;IAoEnB;;;;;OAKG;IACH,mBAAmB,IAAI,gBAAgB;IA4DvC;;OAEG;IACH,kBAAkB,IAAI,sBAAsB;IAI5C;;OAEG;IACH,qBAAqB,IAAI,sBAAsB;IAI/C;;OAEG;IACH,iBAAiB,IAAI,cAAc;IAInC;;;OAGG;IACH,uBAAuB,IAAI,OAAO;IAQlC;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;CAc7B;AAID;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,
|
|
1
|
+
{"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/permissions/simulation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAGV,gBAAgB,EAIhB,yBAAyB,EACzB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AA4DxD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmD;IAE7E,kEAAkE;IAClE,OAAO,CAAC,OAAO,CAA0B;IAEzC,kEAAkE;IAClE,OAAO,CAAC,YAAY,CAAsD;IAE1E,4CAA4C;IAC5C,OAAO,CAAC,aAAa,CAA8B;IAEnD,kCAAkC;IAClC,OAAO,CAAC,WAAW,CAA+C;IAElE,0CAA0C;IAC1C,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAO;IAClD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAQ;gBAG/C,YAAY,EAAE,iBAAiB,EAC/B,eAAe,EAAE,iBAAiB,EAClC,cAAc,EAAE,cAAc,EAC9B,MAAM,GAAE,yBAA8B;IAYxC;;;;;;;;OAQG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,gBAAgB;IAoEnB;;;;;OAKG;IACH,mBAAmB,IAAI,gBAAgB;IA4DvC;;OAEG;IACH,kBAAkB,IAAI,sBAAsB;IAI5C;;OAEG;IACH,qBAAqB,IAAI,sBAAsB;IAI/C;;OAEG;IACH,iBAAiB,IAAI,cAAc;IAInC;;;OAGG;IACH,uBAAuB,IAAI,OAAO;IAQlC;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;CAc7B;AAID;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,iBAAiB;IAC/D,SAAiB,IAAI,EAAE,gCAAgC,CAAC;IACxD,qCAAqC;IACrC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,6CAA6C;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAMvE"}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* Feature flag: `permissions-simulation` must be enabled to use this module.
|
|
20
20
|
*/
|
|
21
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
21
22
|
import { LayeredPolicyEvaluator } from './evaluator.js';
|
|
22
23
|
// ── Private helpers ────────────────────────────────────────────────────────────
|
|
23
24
|
/** Extracts the first meaningful token from the first string argument. */
|
|
@@ -276,13 +277,13 @@ export class PermissionSimulator {
|
|
|
276
277
|
/**
|
|
277
278
|
* Thrown when `enforce` mode is active and the divergence gate fails.
|
|
278
279
|
*/
|
|
279
|
-
export class SimulationEnforcementError extends
|
|
280
|
+
export class SimulationEnforcementError extends GoodVibesSdkError {
|
|
280
281
|
/** Current divergence rate (0–1). */
|
|
281
282
|
divergenceRate;
|
|
282
283
|
/** Configured divergence threshold (0–1). */
|
|
283
284
|
threshold;
|
|
284
285
|
constructor(message, divergenceRate, threshold) {
|
|
285
|
-
super(message);
|
|
286
|
+
super(message, { code: 'SIMULATION_ENFORCEMENT_BLOCKED', category: 'permission', source: 'runtime', recoverable: false });
|
|
286
287
|
this.name = 'SimulationEnforcementError';
|
|
287
288
|
this.divergenceRate = divergenceRate;
|
|
288
289
|
this.threshold = threshold;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remote Substrate — Transport Contract
|
|
3
|
+
*
|
|
4
|
+
* Defines typed message definitions for control/data/ack/failure
|
|
5
|
+
* message classes with retry/backoff policies per class.
|
|
6
|
+
*
|
|
7
|
+
* This module defines the full structural contract for all messages that cross
|
|
8
|
+
* the remote transport boundary. No raw strings — all messages are typed.
|
|
9
|
+
*/
|
|
10
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
1
11
|
import type { ControlMessage, DataMessage, AckMessage, FailureMessage, RetryPolicy, TransportErrorCategory, ProtocolVersion, CompatibilityMatrix, VersionNegotiationResult, NegotiatedProtocol } from './types.js';
|
|
2
12
|
/**
|
|
3
13
|
* Default retry policy for control plane messages.
|
|
@@ -48,11 +58,13 @@ export declare const TRANSPORT_COMPATIBILITY_MATRIX: CompatibilityMatrix;
|
|
|
48
58
|
* Carries the structured incompatibility details so callers can log,
|
|
49
59
|
* surface diagnostics, and produce a typed HANDSHAKE_REJECT payload.
|
|
50
60
|
*/
|
|
51
|
-
export declare class VersionMismatchError extends
|
|
61
|
+
export declare class VersionMismatchError extends GoodVibesSdkError {
|
|
52
62
|
readonly code: 'major_version_mismatch' | 'peer_version_too_old' | 'peer_version_unsupported';
|
|
63
|
+
/** Structured mismatch code (distinct from the generic SDK error code string). */
|
|
64
|
+
readonly mismatchCode: 'major_version_mismatch' | 'peer_version_too_old' | 'peer_version_unsupported';
|
|
53
65
|
readonly offeredVersion: Readonly<ProtocolVersion>;
|
|
54
66
|
readonly peerVersion: Readonly<ProtocolVersion>;
|
|
55
|
-
constructor(
|
|
67
|
+
constructor(mismatchCode: 'major_version_mismatch' | 'peer_version_too_old' | 'peer_version_unsupported', offeredVersion: Readonly<ProtocolVersion>, peerVersion: Readonly<ProtocolVersion>, message: string);
|
|
56
68
|
}
|
|
57
69
|
/**
|
|
58
70
|
* Negotiate a protocol version between this peer and a remote peer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport-contract.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/remote/transport-contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transport-contract.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/remote/transport-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAI7D,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,cAAc,EAEd,WAAW,EACX,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EAEnB,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AAIpB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAO/B,CAAC;AAEzB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAO5B,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE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EACnB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,QAAQ,CAAC,UAAU,CAAC,CAMtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,sBAAsB,EACrC,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,QAAQ,CAAC,cAAc,CAAC,CAS1B;AAID;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,MAAM,EACf,GAAG,GAAE,MAAM,MAAoB,GAC9B,MAAM,CAKR;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,sBAAsB,GAC/B,OAAO,CAET"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* This module defines the full structural contract for all messages that cross
|
|
8
8
|
* the remote transport boundary. No raw strings — all messages are typed.
|
|
9
9
|
*/
|
|
10
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
10
11
|
import { logger } from '../../utils/logger.js';
|
|
11
12
|
import { randomUUID } from 'node:crypto';
|
|
12
13
|
// ── Default retry policies per message class ──────────────────────────────────
|
|
@@ -112,14 +113,15 @@ export const TRANSPORT_COMPATIBILITY_MATRIX = Object.freeze([
|
|
|
112
113
|
* Carries the structured incompatibility details so callers can log,
|
|
113
114
|
* surface diagnostics, and produce a typed HANDSHAKE_REJECT payload.
|
|
114
115
|
*/
|
|
115
|
-
export class VersionMismatchError extends
|
|
116
|
-
code
|
|
116
|
+
export class VersionMismatchError extends GoodVibesSdkError {
|
|
117
|
+
/** Structured mismatch code (distinct from the generic SDK error code string). */
|
|
118
|
+
mismatchCode;
|
|
117
119
|
offeredVersion;
|
|
118
120
|
peerVersion;
|
|
119
|
-
constructor(
|
|
120
|
-
super(message);
|
|
121
|
+
constructor(mismatchCode, offeredVersion, peerVersion, message) {
|
|
122
|
+
super(message, { code: mismatchCode, category: 'protocol', source: 'transport', recoverable: false });
|
|
121
123
|
this.name = 'VersionMismatchError';
|
|
122
|
-
this.
|
|
124
|
+
this.mismatchCode = mismatchCode;
|
|
123
125
|
this.offeredVersion = offeredVersion;
|
|
124
126
|
this.peerVersion = peerVersion;
|
|
125
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/_internal/platform/runtime/store/helpers/reducers/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAqB,MAAM,+BAA+B,CAAC;AAClH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACxG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAA8B,MAAM,gCAAgC,CAAC;AAC3G,O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EAAE,uBAAuB,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAiB7J;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,OAAO,CAAC,uBAAuB,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAMzJ;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,EAAE,MAAM,GAAG,mBAAmB,CAiBpJ;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAcnI;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAiBnI;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAExI"}
|
|
@@ -247,6 +247,7 @@ export function updateMcpState(domain, event) {
|
|
|
247
247
|
(event.type === 'MCP_DEGRADED' || event.type === 'MCP_DISCONNECTED' || event.type === 'MCP_SCHEMA_QUARANTINED' ? 1 : 0),
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
|
+
/** Returns the transport state for lifecycle events that directly change state, or null for observability-only events. */
|
|
250
251
|
function transportStateForEvent(event) {
|
|
251
252
|
switch (event.type) {
|
|
252
253
|
case 'TRANSPORT_INITIALIZING':
|
|
@@ -265,11 +266,21 @@ function transportStateForEvent(event) {
|
|
|
265
266
|
return 'disconnected';
|
|
266
267
|
case 'TRANSPORT_TERMINAL_FAILURE':
|
|
267
268
|
return 'terminal_failure';
|
|
269
|
+
// OBS-18/OBS-19: observability-only events — no state change.
|
|
270
|
+
case 'TRANSPORT_RETRY_SCHEDULED':
|
|
271
|
+
case 'TRANSPORT_RETRY_EXECUTED':
|
|
272
|
+
case 'STREAM_SUBSCRIBER_CONNECTED':
|
|
273
|
+
case 'STREAM_SUBSCRIBER_DISCONNECTED':
|
|
274
|
+
return null;
|
|
268
275
|
}
|
|
269
276
|
}
|
|
270
277
|
export function updateTransportState(acp, daemon, event) {
|
|
271
278
|
const nextTransportState = transportStateForEvent(event);
|
|
272
|
-
|
|
279
|
+
// OBS-18/OBS-19: observability-only events have no transportId and no state to update.
|
|
280
|
+
if (nextTransportState === null)
|
|
281
|
+
return { acp, daemon };
|
|
282
|
+
const transportId = 'transportId' in event ? event.transportId : '';
|
|
283
|
+
const isAcp = transportId.startsWith('acp');
|
|
273
284
|
const nextAcp = isAcp
|
|
274
285
|
? {
|
|
275
286
|
...updateDomainMetadata(acp, event.type),
|
|
@@ -11,24 +11,28 @@
|
|
|
11
11
|
* - Track per-kind concurrency
|
|
12
12
|
* - Support retry policies
|
|
13
13
|
*/
|
|
14
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
14
15
|
import type { RuntimeStore } from '../store/index.js';
|
|
15
16
|
import type { RuntimeEventBus } from '../events/index.js';
|
|
16
17
|
import type { RuntimeTask, TaskKind, TaskLifecycleState } from '../store/domains/tasks.js';
|
|
17
18
|
import type { TaskManager, TaskCreateParams, TaskUpdateParams, TaskCancelParams, TaskFailParams } from './types.js';
|
|
18
19
|
/** Thrown when a requested task lifecycle transition is not permitted. */
|
|
19
|
-
export declare class TaskTransitionError extends
|
|
20
|
+
export declare class TaskTransitionError extends GoodVibesSdkError {
|
|
21
|
+
readonly code: 'TASK_TRANSITION_ERROR';
|
|
20
22
|
readonly taskId: string;
|
|
21
23
|
readonly from: TaskLifecycleState;
|
|
22
24
|
readonly to: TaskLifecycleState;
|
|
23
25
|
constructor(taskId: string, from: TaskLifecycleState, to: TaskLifecycleState);
|
|
24
26
|
}
|
|
25
27
|
/** Thrown when a task ID cannot be found in the registry. */
|
|
26
|
-
export declare class TaskNotFoundError extends
|
|
28
|
+
export declare class TaskNotFoundError extends GoodVibesSdkError {
|
|
29
|
+
readonly code: 'TASK_NOT_FOUND';
|
|
27
30
|
readonly taskId: string;
|
|
28
31
|
constructor(taskId: string);
|
|
29
32
|
}
|
|
30
33
|
/** Thrown when cancellation is attempted on a non-cancellable task. */
|
|
31
|
-
export declare class TaskNotCancellableError extends
|
|
34
|
+
export declare class TaskNotCancellableError extends GoodVibesSdkError {
|
|
35
|
+
readonly code: 'TASK_NOT_CANCELLABLE';
|
|
32
36
|
readonly taskId: string;
|
|
33
37
|
constructor(taskId: string);
|
|
34
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/tasks/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/tasks/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE3F,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACf,MAAM,YAAY,CAAC;AAgBpB,0EAA0E;AAC1E,qBAAa,mBAAoB,SAAQ,iBAAiB;IACxD,SAAiB,IAAI,EAAE,uBAAuB,CAAC;IAC/C,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,IAAI,EAAE,kBAAkB,CAAC;IACzC,SAAgB,E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UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,WAAW;IAgBjE,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAIhD,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,WAAW,EAAE;IAI7C,eAAe,IAAI,WAAW,EAAE;IAIhC,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM;IAIvC,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,EAAE;IAIlD,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAI7D,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW;IAoB7C;;OAEG;IACH,OAAO,CAAC,YAAY;IAQpB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAWxB;;OAEG;IACH,OAAO,CAAC,cAAc;IAWtB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAShB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAIxB;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAGzB"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* - Track per-kind concurrency
|
|
12
12
|
* - Support retry policies
|
|
13
13
|
*/
|
|
14
|
+
import { GoodVibesSdkError } from '../../../errors/index.js';
|
|
14
15
|
import { createDomainDispatch } from '../store/index.js';
|
|
15
16
|
import { TaskRegistry } from './registry.js';
|
|
16
17
|
import { canTransition } from './lifecycle.js';
|
|
@@ -19,12 +20,12 @@ import { emitTaskCreated, emitTaskStarted, emitTaskBlocked, emitTaskCompleted, e
|
|
|
19
20
|
// Error types
|
|
20
21
|
// ---------------------------------------------------------------------------
|
|
21
22
|
/** Thrown when a requested task lifecycle transition is not permitted. */
|
|
22
|
-
export class TaskTransitionError extends
|
|
23
|
+
export class TaskTransitionError extends GoodVibesSdkError {
|
|
23
24
|
taskId;
|
|
24
25
|
from;
|
|
25
26
|
to;
|
|
26
27
|
constructor(taskId, from, to) {
|
|
27
|
-
super(`[TaskManager] Invalid transition ${from} → ${to} for task ${taskId}
|
|
28
|
+
super(`[TaskManager] Invalid transition ${from} → ${to} for task ${taskId}`, { code: 'TASK_TRANSITION_ERROR', category: 'internal', source: 'runtime', recoverable: false });
|
|
28
29
|
this.name = 'TaskTransitionError';
|
|
29
30
|
this.taskId = taskId;
|
|
30
31
|
this.from = from;
|
|
@@ -32,19 +33,19 @@ export class TaskTransitionError extends Error {
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
/** Thrown when a task ID cannot be found in the registry. */
|
|
35
|
-
export class TaskNotFoundError extends
|
|
36
|
+
export class TaskNotFoundError extends GoodVibesSdkError {
|
|
36
37
|
taskId;
|
|
37
38
|
constructor(taskId) {
|
|
38
|
-
super(`[TaskManager] Task not found: ${taskId}
|
|
39
|
+
super(`[TaskManager] Task not found: ${taskId}`, { code: 'TASK_NOT_FOUND', category: 'not_found', source: 'runtime', recoverable: false });
|
|
39
40
|
this.name = 'TaskNotFoundError';
|
|
40
41
|
this.taskId = taskId;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
/** Thrown when cancellation is attempted on a non-cancellable task. */
|
|
44
|
-
export class TaskNotCancellableError extends
|
|
45
|
+
export class TaskNotCancellableError extends GoodVibesSdkError {
|
|
45
46
|
taskId;
|
|
46
47
|
constructor(taskId) {
|
|
47
|
-
super(`[TaskManager] Task ${taskId} is not cancellable
|
|
48
|
+
super(`[TaskManager] Task ${taskId} is not cancellable`, { code: 'TASK_NOT_CANCELLABLE', category: 'internal', source: 'runtime', recoverable: false });
|
|
48
49
|
this.name = 'TaskNotCancellableError';
|
|
49
50
|
this.taskId = taskId;
|
|
50
51
|
}
|
|
@@ -6,6 +6,12 @@ import type { AttributeValue, ReadableSpan } from './types.js';
|
|
|
6
6
|
import type { TelemetryAggregates, TelemetryListResponse, TelemetryPageInfo, TelemetryRecord, TelemetrySeverity, TelemetryViewMode } from './api.js';
|
|
7
7
|
export declare const SERVICE_NAME = "goodvibes-sdk";
|
|
8
8
|
export declare const DEFAULT_EVENT_LIMIT = 500;
|
|
9
|
+
/**
|
|
10
|
+
* OBS-22: Allowlist of metric label keys permitted in telemetry attributes.
|
|
11
|
+
* Keys outside this set are stripped before storage to prevent high-cardinality
|
|
12
|
+
* label explosion in metrics backends (Prometheus, OTLP, etc.).
|
|
13
|
+
*/
|
|
14
|
+
export declare const METRIC_LABEL_ALLOWLIST: Set<string>;
|
|
9
15
|
export declare const DEFAULT_ERROR_LIMIT = 250;
|
|
10
16
|
export declare const DEFAULT_SPAN_LIMIT = 250;
|
|
11
17
|
export declare const ALL_DOMAINS: readonly RuntimeEventDomain[];
|
|
@@ -24,6 +30,14 @@ export declare function normalizePayload(payload: unknown): Record<string, unkno
|
|
|
24
30
|
export declare function extractProvider(payload: Record<string, unknown>): string | undefined;
|
|
25
31
|
export declare function extractErrorCandidate(payload: Record<string, unknown>): string | undefined;
|
|
26
32
|
export declare function isErrorEventType(type: string): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* OBS-22: Filter metric labels against the allowlist to prevent high-cardinality
|
|
35
|
+
* label injection into metrics backends. Non-allowlisted keys are dropped.
|
|
36
|
+
*
|
|
37
|
+
* Note: full event attribute payloads (for telemetry records) are NOT filtered —
|
|
38
|
+
* this is only applied when building metric instrument labels.
|
|
39
|
+
*/
|
|
40
|
+
export declare function filterMetricLabels(labels: Record<string, unknown>): Record<string, unknown>;
|
|
27
41
|
export declare function buildAttributes(domain: RuntimeEventDomain, envelope: RuntimeEventEnvelope<AnyRuntimeEvent['type'], AnyRuntimeEvent>, payload: Record<string, unknown>): Record<string, unknown>;
|
|
28
42
|
export declare function buildRecordId(domain: RuntimeEventDomain, envelope: RuntimeEventEnvelope<AnyRuntimeEvent['type'], AnyRuntimeEvent>, seq: number): string;
|
|
29
43
|
export declare function extractRecordSequence(record: TelemetryRecord): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/telemetry/api-helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/telemetry/api-helpers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EAEb,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,mBAAmB,EAEnB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,aA+BjC,CAAC;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAQtC,eAAO,MAAM,WAAW,EAAE,SAAS,kBAAkB,EA2B3C,CAAC;AAMX,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAOpE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAK3E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE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MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmIzB"}
|
|
@@ -1,8 +1,46 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { VERSION } from '../../version.js';
|
|
3
|
+
import { getCorrelationContext } from '../correlation.js';
|
|
3
4
|
import { redactStructuredData } from '../../utils/redaction.js';
|
|
4
5
|
export const SERVICE_NAME = 'goodvibes-sdk';
|
|
5
6
|
export const DEFAULT_EVENT_LIMIT = 500;
|
|
7
|
+
/**
|
|
8
|
+
* OBS-22: Allowlist of metric label keys permitted in telemetry attributes.
|
|
9
|
+
* Keys outside this set are stripped before storage to prevent high-cardinality
|
|
10
|
+
* label explosion in metrics backends (Prometheus, OTLP, etc.).
|
|
11
|
+
*/
|
|
12
|
+
export const METRIC_LABEL_ALLOWLIST = new Set([
|
|
13
|
+
// Core identifiers (bounded cardinality)
|
|
14
|
+
'domain',
|
|
15
|
+
'eventType',
|
|
16
|
+
'source',
|
|
17
|
+
'severity',
|
|
18
|
+
// HTTP labels
|
|
19
|
+
'method',
|
|
20
|
+
'status_class',
|
|
21
|
+
'path_pattern',
|
|
22
|
+
// LLM labels
|
|
23
|
+
'provider',
|
|
24
|
+
'model',
|
|
25
|
+
'status',
|
|
26
|
+
'finish_reason',
|
|
27
|
+
// Auth labels
|
|
28
|
+
'auth_method',
|
|
29
|
+
'auth_result',
|
|
30
|
+
// Transport labels
|
|
31
|
+
'transport_type',
|
|
32
|
+
'reason',
|
|
33
|
+
'protocol',
|
|
34
|
+
// Session labels
|
|
35
|
+
'session_type',
|
|
36
|
+
// Error labels
|
|
37
|
+
'category',
|
|
38
|
+
'error_source',
|
|
39
|
+
// Stream labels
|
|
40
|
+
'stream_type',
|
|
41
|
+
// Listener/event labels (OBS-13)
|
|
42
|
+
'event_type',
|
|
43
|
+
]);
|
|
6
44
|
export const DEFAULT_ERROR_LIMIT = 250;
|
|
7
45
|
export const DEFAULT_SPAN_LIMIT = 250;
|
|
8
46
|
const NANOSECONDS_PER_MILLISECOND = 1_000_000;
|
|
@@ -194,7 +232,26 @@ export function extractErrorCandidate(payload) {
|
|
|
194
232
|
export function isErrorEventType(type) {
|
|
195
233
|
return /(^|_)(ERROR|FAILED|FAIL|TERMINAL_FAILURE)(_|$)/.test(type);
|
|
196
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* OBS-22: Filter metric labels against the allowlist to prevent high-cardinality
|
|
237
|
+
* label injection into metrics backends. Non-allowlisted keys are dropped.
|
|
238
|
+
*
|
|
239
|
+
* Note: full event attribute payloads (for telemetry records) are NOT filtered —
|
|
240
|
+
* this is only applied when building metric instrument labels.
|
|
241
|
+
*/
|
|
242
|
+
export function filterMetricLabels(labels) {
|
|
243
|
+
const out = {};
|
|
244
|
+
for (const key of Object.keys(labels)) {
|
|
245
|
+
if (METRIC_LABEL_ALLOWLIST.has(key)) {
|
|
246
|
+
out[key] = labels[key];
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return out;
|
|
250
|
+
}
|
|
197
251
|
export function buildAttributes(domain, envelope, payload) {
|
|
252
|
+
// C-2: merge correlation context so every event emitted from within a
|
|
253
|
+
// correlationCtx.run() scope automatically carries the ambient IDs.
|
|
254
|
+
const ctx = getCorrelationContext();
|
|
198
255
|
return {
|
|
199
256
|
domain,
|
|
200
257
|
eventType: envelope.type,
|
|
@@ -204,6 +261,8 @@ export function buildAttributes(domain, envelope, payload) {
|
|
|
204
261
|
...(envelope.turnId ? { turnId: envelope.turnId } : {}),
|
|
205
262
|
...(envelope.agentId ? { agentId: envelope.agentId } : {}),
|
|
206
263
|
...(envelope.taskId ? { taskId: envelope.taskId } : {}),
|
|
264
|
+
...(ctx.requestId ? { requestId: ctx.requestId } : {}),
|
|
265
|
+
...(ctx.runId ? { runId: ctx.runId } : {}),
|
|
207
266
|
...payload,
|
|
208
267
|
};
|
|
209
268
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/telemetry/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/runtime/telemetry/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAEV,eAAe,EACf,kBAAkB,EAEnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAEV,YAAY,EAKb,MAAM,YAAY,CAAC;AAiCpB,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACjD,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;I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