@pellux/goodvibes-sdk 0.37.2 → 1.0.0
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/contracts/artifacts/operator-contract.json +3171 -929
- package/dist/daemon.d.ts +2 -0
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +4 -0
- package/dist/events/communication.d.ts +21 -1
- package/dist/events/communication.d.ts.map +1 -1
- package/dist/events/surfaces.d.ts +25 -3
- package/dist/events/surfaces.d.ts.map +1 -1
- package/dist/events/surfaces.js +22 -1
- package/dist/events/workflows.d.ts +7 -6
- package/dist/events/workflows.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/platform/agents/archetypes.d.ts.map +1 -1
- package/dist/platform/agents/archetypes.js +7 -0
- package/dist/platform/agents/index.d.ts +1 -0
- package/dist/platform/agents/index.d.ts.map +1 -1
- package/dist/platform/agents/index.js +1 -0
- package/dist/platform/agents/message-bus-core.d.ts +7 -0
- package/dist/platform/agents/message-bus-core.d.ts.map +1 -1
- package/dist/platform/agents/message-bus-core.js +2 -1
- package/dist/platform/agents/orchestrator-runner.d.ts +50 -1
- package/dist/platform/agents/orchestrator-runner.d.ts.map +1 -1
- package/dist/platform/agents/orchestrator-runner.js +172 -7
- package/dist/platform/agents/orchestrator.d.ts +78 -6
- package/dist/platform/agents/orchestrator.d.ts.map +1 -1
- package/dist/platform/agents/orchestrator.js +95 -18
- package/dist/platform/agents/planner-decomposition-runner.d.ts +38 -0
- package/dist/platform/agents/planner-decomposition-runner.d.ts.map +1 -0
- package/dist/platform/agents/planner-decomposition-runner.js +113 -0
- package/dist/platform/agents/turn-knowledge-injection.d.ts +192 -0
- package/dist/platform/agents/turn-knowledge-injection.d.ts.map +1 -0
- package/dist/platform/agents/turn-knowledge-injection.js +269 -0
- package/dist/platform/agents/worktree.d.ts +126 -8
- package/dist/platform/agents/worktree.d.ts.map +1 -1
- package/dist/platform/agents/worktree.js +240 -19
- package/dist/platform/agents/wrfc-controller.d.ts +46 -0
- package/dist/platform/agents/wrfc-controller.d.ts.map +1 -1
- package/dist/platform/agents/wrfc-controller.js +213 -32
- package/dist/platform/agents/wrfc-gate-runtime.d.ts +9 -0
- package/dist/platform/agents/wrfc-gate-runtime.d.ts.map +1 -1
- package/dist/platform/agents/wrfc-gate-runtime.js +7 -3
- package/dist/platform/agents/wrfc-gates.d.ts +1 -1
- package/dist/platform/agents/wrfc-gates.d.ts.map +1 -1
- package/dist/platform/agents/wrfc-gates.js +7 -1
- package/dist/platform/agents/wrfc-types.d.ts +23 -3
- package/dist/platform/agents/wrfc-types.d.ts.map +1 -1
- package/dist/platform/automation/types.d.ts +9 -1
- package/dist/platform/automation/types.d.ts.map +1 -1
- package/dist/platform/calendar/calendar-api-shared.d.ts +25 -0
- package/dist/platform/calendar/calendar-api-shared.d.ts.map +1 -0
- package/dist/platform/calendar/calendar-api-shared.js +100 -0
- package/dist/platform/calendar/calendar-connector.d.ts +79 -0
- package/dist/platform/calendar/calendar-connector.d.ts.map +1 -0
- package/dist/platform/calendar/calendar-connector.js +155 -0
- package/dist/platform/calendar/google-calendar-api.d.ts +25 -0
- package/dist/platform/calendar/google-calendar-api.d.ts.map +1 -0
- package/dist/platform/calendar/google-calendar-api.js +89 -0
- package/dist/platform/calendar/http-fetch-adapter.d.ts +25 -0
- package/dist/platform/calendar/http-fetch-adapter.d.ts.map +1 -0
- package/dist/platform/calendar/http-fetch-adapter.js +25 -0
- package/dist/platform/calendar/ics-parser.d.ts +35 -0
- package/dist/platform/calendar/ics-parser.d.ts.map +1 -0
- package/dist/platform/calendar/ics-parser.js +236 -0
- package/dist/platform/calendar/index.d.ts +41 -0
- package/dist/platform/calendar/index.d.ts.map +1 -0
- package/dist/platform/calendar/index.js +49 -0
- package/dist/platform/calendar/merged-calendar-model.d.ts +67 -0
- package/dist/platform/calendar/merged-calendar-model.d.ts.map +1 -0
- package/dist/platform/calendar/merged-calendar-model.js +181 -0
- package/dist/platform/calendar/microsoft-graph-api.d.ts +25 -0
- package/dist/platform/calendar/microsoft-graph-api.d.ts.map +1 -0
- package/dist/platform/calendar/microsoft-graph-api.js +95 -0
- package/dist/platform/calendar/oauth-flow.d.ts +62 -0
- package/dist/platform/calendar/oauth-flow.d.ts.map +1 -0
- package/dist/platform/calendar/oauth-flow.js +305 -0
- package/dist/platform/calendar/oauth-providers.d.ts +43 -0
- package/dist/platform/calendar/oauth-providers.d.ts.map +1 -0
- package/dist/platform/calendar/oauth-providers.js +120 -0
- package/dist/platform/calendar/oauth-token-store.d.ts +72 -0
- package/dist/platform/calendar/oauth-token-store.d.ts.map +1 -0
- package/dist/platform/calendar/oauth-token-store.js +189 -0
- package/dist/platform/calendar/oauth-types.d.ts +274 -0
- package/dist/platform/calendar/oauth-types.d.ts.map +1 -0
- package/dist/platform/calendar/oauth-types.js +22 -0
- package/dist/platform/calendar/rrule.d.ts +39 -0
- package/dist/platform/calendar/rrule.d.ts.map +1 -0
- package/dist/platform/calendar/rrule.js +261 -0
- package/dist/platform/calendar/subscription-store.d.ts +118 -0
- package/dist/platform/calendar/subscription-store.d.ts.map +1 -0
- package/dist/platform/calendar/subscription-store.js +293 -0
- package/dist/platform/calendar/types.d.ts +170 -0
- package/dist/platform/calendar/types.d.ts.map +1 -0
- package/dist/platform/calendar/types.js +21 -0
- package/dist/platform/companion/companion-chat-attachments.d.ts +29 -0
- package/dist/platform/companion/companion-chat-attachments.d.ts.map +1 -0
- package/dist/platform/companion/companion-chat-attachments.js +121 -0
- package/dist/platform/companion/companion-chat-broker-bridge.d.ts +40 -0
- package/dist/platform/companion/companion-chat-broker-bridge.d.ts.map +1 -0
- package/dist/platform/companion/companion-chat-broker-bridge.js +14 -0
- package/dist/platform/companion/companion-chat-broker-sync.d.ts +38 -0
- package/dist/platform/companion/companion-chat-broker-sync.d.ts.map +1 -0
- package/dist/platform/companion/companion-chat-broker-sync.js +80 -0
- package/dist/platform/companion/companion-chat-gc.d.ts +63 -0
- package/dist/platform/companion/companion-chat-gc.d.ts.map +1 -0
- package/dist/platform/companion/companion-chat-gc.js +38 -0
- package/dist/platform/companion/companion-chat-manager.d.ts +67 -20
- package/dist/platform/companion/companion-chat-manager.d.ts.map +1 -1
- package/dist/platform/companion/companion-chat-manager.js +130 -144
- package/dist/platform/companion/companion-chat-persistence.d.ts +9 -1
- package/dist/platform/companion/companion-chat-persistence.d.ts.map +1 -1
- package/dist/platform/companion/companion-chat-persistence.js +10 -2
- package/dist/platform/companion/companion-chat-routes.d.ts +2 -1
- package/dist/platform/companion/companion-chat-routes.d.ts.map +1 -1
- package/dist/platform/companion/companion-chat-routes.js +37 -4
- package/dist/platform/config/credential-status.d.ts +28 -0
- package/dist/platform/config/credential-status.d.ts.map +1 -0
- package/dist/platform/config/credential-status.js +75 -0
- package/dist/platform/config/index.d.ts +25 -0
- package/dist/platform/config/index.d.ts.map +1 -1
- package/dist/platform/config/index.js +18 -0
- package/dist/platform/config/manager.d.ts +18 -0
- package/dist/platform/config/manager.d.ts.map +1 -1
- package/dist/platform/config/manager.js +36 -2
- package/dist/platform/config/migrations.d.ts +48 -0
- package/dist/platform/config/migrations.d.ts.map +1 -0
- package/dist/platform/config/migrations.js +54 -0
- package/dist/platform/config/schema-domain-core.d.ts +10 -1
- package/dist/platform/config/schema-domain-core.d.ts.map +1 -1
- package/dist/platform/config/schema-domain-core.js +46 -3
- package/dist/platform/config/schema-types.d.ts +13 -7
- package/dist/platform/config/schema-types.d.ts.map +1 -1
- package/dist/platform/config/schema.d.ts.map +1 -1
- package/dist/platform/config/schema.js +2 -0
- package/dist/platform/control-plane/approval-broker.d.ts +11 -0
- package/dist/platform/control-plane/approval-broker.d.ts.map +1 -1
- package/dist/platform/control-plane/approval-broker.js +17 -1
- package/dist/platform/control-plane/approval-hunk-apply.d.ts +77 -0
- package/dist/platform/control-plane/approval-hunk-apply.d.ts.map +1 -0
- package/dist/platform/control-plane/approval-hunk-apply.js +80 -0
- package/dist/platform/control-plane/gateway-disabled-response.d.ts +20 -0
- package/dist/platform/control-plane/gateway-disabled-response.d.ts.map +1 -0
- package/dist/platform/control-plane/gateway-disabled-response.js +24 -0
- package/dist/platform/control-plane/gateway-scope-enforcement.d.ts +68 -0
- package/dist/platform/control-plane/gateway-scope-enforcement.d.ts.map +1 -0
- package/dist/platform/control-plane/gateway-scope-enforcement.js +91 -0
- package/dist/platform/control-plane/gateway-utils.d.ts +17 -0
- package/dist/platform/control-plane/gateway-utils.d.ts.map +1 -1
- package/dist/platform/control-plane/gateway-utils.js +30 -0
- package/dist/platform/control-plane/gateway.d.ts +12 -2
- package/dist/platform/control-plane/gateway.d.ts.map +1 -1
- package/dist/platform/control-plane/gateway.js +27 -31
- package/dist/platform/control-plane/index.d.ts +6 -1
- package/dist/platform/control-plane/index.d.ts.map +1 -1
- package/dist/platform/control-plane/index.js +4 -0
- package/dist/platform/control-plane/invoke-input-validation.d.ts +56 -0
- package/dist/platform/control-plane/invoke-input-validation.d.ts.map +1 -0
- package/dist/platform/control-plane/invoke-input-validation.js +163 -0
- package/dist/platform/control-plane/method-catalog-admin.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-admin.js +12 -1
- package/dist/platform/control-plane/method-catalog-calendar.d.ts +16 -0
- package/dist/platform/control-plane/method-catalog-calendar.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-calendar.js +21 -0
- package/dist/platform/control-plane/method-catalog-channels.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-channels.js +32 -3
- package/dist/platform/control-plane/method-catalog-control-automation.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-control-automation.js +19 -34
- package/dist/platform/control-plane/method-catalog-control-companion.d.ts +15 -0
- package/dist/platform/control-plane/method-catalog-control-companion.d.ts.map +1 -0
- package/dist/platform/control-plane/method-catalog-control-companion.js +133 -0
- package/dist/platform/control-plane/method-catalog-control-core.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-control-core.js +104 -122
- package/dist/platform/control-plane/method-catalog-control.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-control.js +4 -0
- package/dist/platform/control-plane/method-catalog-email.d.ts +17 -0
- package/dist/platform/control-plane/method-catalog-email.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-email.js +21 -0
- package/dist/platform/control-plane/method-catalog-events.d.ts +28 -0
- package/dist/platform/control-plane/method-catalog-events.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-events.js +74 -1
- package/dist/platform/control-plane/method-catalog-fleet.d.ts +24 -0
- package/dist/platform/control-plane/method-catalog-fleet.d.ts.map +1 -0
- package/dist/platform/control-plane/method-catalog-fleet.js +65 -0
- package/dist/platform/control-plane/method-catalog-route-reconcile.d.ts +84 -0
- package/dist/platform/control-plane/method-catalog-route-reconcile.d.ts.map +1 -0
- package/dist/platform/control-plane/method-catalog-route-reconcile.js +103 -0
- package/dist/platform/control-plane/method-catalog-shared.d.ts +29 -0
- package/dist/platform/control-plane/method-catalog-shared.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog.d.ts +9 -0
- package/dist/platform/control-plane/method-catalog.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog.js +32 -3
- package/dist/platform/control-plane/operator-contract-schemas-admin.d.ts +8 -0
- package/dist/platform/control-plane/operator-contract-schemas-admin.d.ts.map +1 -1
- package/dist/platform/control-plane/operator-contract-schemas-admin.js +22 -1
- package/dist/platform/control-plane/operator-contract-schemas-fleet.d.ts +18 -0
- package/dist/platform/control-plane/operator-contract-schemas-fleet.d.ts.map +1 -0
- package/dist/platform/control-plane/operator-contract-schemas-fleet.js +182 -0
- package/dist/platform/control-plane/operator-contract-schemas-permissions.d.ts.map +1 -1
- package/dist/platform/control-plane/operator-contract-schemas-permissions.js +5 -0
- package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts +29 -0
- package/dist/platform/control-plane/operator-contract-schemas-runtime.d.ts.map +1 -1
- package/dist/platform/control-plane/operator-contract-schemas-runtime.js +57 -3
- package/dist/platform/control-plane/operator-contract-schemas.d.ts +1 -0
- package/dist/platform/control-plane/operator-contract-schemas.d.ts.map +1 -1
- package/dist/platform/control-plane/operator-contract-schemas.js +1 -0
- package/dist/platform/control-plane/operator-contract.d.ts.map +1 -1
- package/dist/platform/control-plane/operator-contract.js +8 -0
- package/dist/platform/control-plane/routes/checkpoints.d.ts +39 -0
- package/dist/platform/control-plane/routes/checkpoints.d.ts.map +1 -0
- package/dist/platform/control-plane/routes/checkpoints.js +166 -0
- package/dist/platform/control-plane/routes/fleet.d.ts +53 -0
- package/dist/platform/control-plane/routes/fleet.d.ts.map +1 -0
- package/dist/platform/control-plane/routes/fleet.js +153 -0
- package/dist/platform/control-plane/routes/gateway-verb-error.d.ts +30 -0
- package/dist/platform/control-plane/routes/gateway-verb-error.d.ts.map +1 -0
- package/dist/platform/control-plane/routes/gateway-verb-error.js +36 -0
- package/dist/platform/control-plane/routes/index.d.ts +0 -6
- package/dist/platform/control-plane/routes/index.d.ts.map +1 -1
- package/dist/platform/control-plane/routes/index.js +5 -5
- package/dist/platform/control-plane/routes/invocation-params.d.ts +23 -0
- package/dist/platform/control-plane/routes/invocation-params.d.ts.map +1 -0
- package/dist/platform/control-plane/routes/invocation-params.js +9 -0
- package/dist/platform/control-plane/routes/register-w3-s2.d.ts +26 -0
- package/dist/platform/control-plane/routes/register-w3-s2.d.ts.map +1 -0
- package/dist/platform/control-plane/routes/register-w3-s2.js +8 -0
- package/dist/platform/control-plane/routes/session-search.d.ts +37 -0
- package/dist/platform/control-plane/routes/session-search.d.ts.map +1 -0
- package/dist/platform/control-plane/routes/session-search.js +113 -0
- package/dist/platform/control-plane/session-broker-gc.d.ts +16 -0
- package/dist/platform/control-plane/session-broker-gc.d.ts.map +1 -1
- package/dist/platform/control-plane/session-broker-gc.js +23 -6
- package/dist/platform/control-plane/session-broker-helpers.d.ts +3 -3
- package/dist/platform/control-plane/session-broker-helpers.d.ts.map +1 -1
- package/dist/platform/control-plane/session-broker-inputs.d.ts +18 -0
- package/dist/platform/control-plane/session-broker-inputs.d.ts.map +1 -1
- package/dist/platform/control-plane/session-broker-inputs.js +34 -0
- package/dist/platform/control-plane/session-broker-sessions.d.ts +102 -3
- package/dist/platform/control-plane/session-broker-sessions.d.ts.map +1 -1
- package/dist/platform/control-plane/session-broker-sessions.js +179 -5
- package/dist/platform/control-plane/session-broker-state.d.ts +20 -1
- package/dist/platform/control-plane/session-broker-state.d.ts.map +1 -1
- package/dist/platform/control-plane/session-broker-state.js +67 -5
- package/dist/platform/control-plane/session-broker.d.ts +51 -38
- package/dist/platform/control-plane/session-broker.d.ts.map +1 -1
- package/dist/platform/control-plane/session-broker.js +183 -75
- package/dist/platform/control-plane/session-store-importer.d.ts +57 -0
- package/dist/platform/control-plane/session-store-importer.d.ts.map +1 -0
- package/dist/platform/control-plane/session-store-importer.js +227 -0
- package/dist/platform/control-plane/session-types.d.ts +142 -7
- package/dist/platform/control-plane/session-types.d.ts.map +1 -1
- package/dist/platform/core/adaptive-planner.d.ts +50 -0
- package/dist/platform/core/adaptive-planner.d.ts.map +1 -1
- package/dist/platform/core/adaptive-planner.js +49 -0
- package/dist/platform/core/execution-plan.d.ts +43 -1
- package/dist/platform/core/execution-plan.d.ts.map +1 -1
- package/dist/platform/core/execution-plan.js +46 -10
- package/dist/platform/core/index.d.ts +2 -0
- package/dist/platform/core/index.d.ts.map +1 -1
- package/dist/platform/core/index.js +2 -0
- package/dist/platform/core/orchestrator-runtime.d.ts +31 -0
- package/dist/platform/core/orchestrator-runtime.d.ts.map +1 -1
- package/dist/platform/core/orchestrator-tool-runtime.d.ts +7 -0
- package/dist/platform/core/orchestrator-tool-runtime.d.ts.map +1 -1
- package/dist/platform/core/orchestrator-tool-runtime.js +10 -0
- package/dist/platform/core/orchestrator-turn-loop.d.ts +35 -1
- package/dist/platform/core/orchestrator-turn-loop.d.ts.map +1 -1
- package/dist/platform/core/orchestrator-turn-loop.js +121 -3
- package/dist/platform/core/orchestrator.d.ts +67 -0
- package/dist/platform/core/orchestrator.d.ts.map +1 -1
- package/dist/platform/core/orchestrator.js +89 -1
- package/dist/platform/core/plan-decomposition.d.ts +196 -0
- package/dist/platform/core/plan-decomposition.d.ts.map +1 -0
- package/dist/platform/core/plan-decomposition.js +417 -0
- package/dist/platform/core/plan-proposal.d.ts +204 -0
- package/dist/platform/core/plan-proposal.d.ts.map +1 -0
- package/dist/platform/core/plan-proposal.js +296 -0
- package/dist/platform/core/wrfc-routing.d.ts +1 -0
- package/dist/platform/core/wrfc-routing.d.ts.map +1 -1
- package/dist/platform/core/wrfc-routing.js +51 -1
- package/dist/platform/daemon/boot.d.ts +63 -0
- package/dist/platform/daemon/boot.d.ts.map +1 -0
- package/dist/platform/daemon/boot.js +60 -0
- package/dist/platform/daemon/cli.js +2 -1
- package/dist/platform/daemon/control-plane.d.ts.map +1 -1
- package/dist/platform/daemon/control-plane.js +50 -1
- package/dist/platform/daemon/facade-composition.d.ts.map +1 -1
- package/dist/platform/daemon/facade-composition.js +6 -0
- package/dist/platform/daemon/facade.d.ts +18 -6
- package/dist/platform/daemon/facade.d.ts.map +1 -1
- package/dist/platform/daemon/facade.js +50 -43
- package/dist/platform/daemon/http/router-route-contexts.d.ts +1 -0
- package/dist/platform/daemon/http/router-route-contexts.d.ts.map +1 -1
- package/dist/platform/daemon/http/router-route-contexts.js +1 -0
- package/dist/platform/daemon/http/router-session-broker-adapter.d.ts +13 -0
- package/dist/platform/daemon/http/router-session-broker-adapter.d.ts.map +1 -0
- package/dist/platform/daemon/http/router-session-broker-adapter.js +27 -0
- package/dist/platform/daemon/http/router.d.ts +1 -1
- package/dist/platform/daemon/http/router.d.ts.map +1 -1
- package/dist/platform/daemon/http/router.js +7 -22
- package/dist/platform/daemon/http/runtime-route-types.d.ts +42 -4
- package/dist/platform/daemon/http/runtime-route-types.d.ts.map +1 -1
- package/dist/platform/daemon/index.d.ts +2 -0
- package/dist/platform/daemon/index.d.ts.map +1 -1
- package/dist/platform/daemon/index.js +1 -0
- package/dist/platform/daemon/service-manager.d.ts +16 -0
- package/dist/platform/daemon/service-manager.d.ts.map +1 -1
- package/dist/platform/daemon/service-manager.js +79 -15
- package/dist/platform/intelligence/tree-sitter/service.d.ts.map +1 -1
- package/dist/platform/intelligence/tree-sitter/service.js +16 -2
- package/dist/platform/knowledge/browser-history/readers.d.ts.map +1 -1
- package/dist/platform/knowledge/browser-history/readers.js +15 -5
- package/dist/platform/knowledge/knowledge-api.d.ts +26 -0
- package/dist/platform/knowledge/knowledge-api.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-api.js +11 -0
- package/dist/platform/knowledge/project-planning/service.d.ts +14 -1
- package/dist/platform/knowledge/project-planning/service.d.ts.map +1 -1
- package/dist/platform/knowledge/project-planning/service.js +77 -0
- package/dist/platform/knowledge/project-planning/types.d.ts +32 -0
- package/dist/platform/knowledge/project-planning/types.d.ts.map +1 -1
- package/dist/platform/orchestration/bookkeeping.d.ts +12 -0
- package/dist/platform/orchestration/bookkeeping.d.ts.map +1 -0
- package/dist/platform/orchestration/bookkeeping.js +91 -0
- package/dist/platform/orchestration/budget.d.ts +22 -0
- package/dist/platform/orchestration/budget.d.ts.map +1 -0
- package/dist/platform/orchestration/budget.js +35 -0
- package/dist/platform/orchestration/cancellation.d.ts +31 -0
- package/dist/platform/orchestration/cancellation.d.ts.map +1 -0
- package/dist/platform/orchestration/cancellation.js +25 -0
- package/dist/platform/orchestration/controller-compat.d.ts +46 -0
- package/dist/platform/orchestration/controller-compat.d.ts.map +1 -0
- package/dist/platform/orchestration/controller-compat.js +27 -0
- package/dist/platform/orchestration/dirty-guard.d.ts +32 -0
- package/dist/platform/orchestration/dirty-guard.d.ts.map +1 -0
- package/dist/platform/orchestration/dirty-guard.js +147 -0
- package/dist/platform/orchestration/engine.d.ts +82 -0
- package/dist/platform/orchestration/engine.d.ts.map +1 -0
- package/dist/platform/orchestration/engine.js +623 -0
- package/dist/platform/orchestration/index.d.ts +20 -0
- package/dist/platform/orchestration/index.d.ts.map +1 -0
- package/dist/platform/orchestration/index.js +11 -0
- package/dist/platform/orchestration/persistence.d.ts +24 -0
- package/dist/platform/orchestration/persistence.d.ts.map +1 -0
- package/dist/platform/orchestration/persistence.js +179 -0
- package/dist/platform/orchestration/phase-runner.d.ts +114 -0
- package/dist/platform/orchestration/phase-runner.d.ts.map +1 -0
- package/dist/platform/orchestration/phase-runner.js +347 -0
- package/dist/platform/orchestration/proposal-workstream.d.ts +56 -0
- package/dist/platform/orchestration/proposal-workstream.d.ts.map +1 -0
- package/dist/platform/orchestration/proposal-workstream.js +76 -0
- package/dist/platform/orchestration/scheduler.d.ts +64 -0
- package/dist/platform/orchestration/scheduler.d.ts.map +1 -0
- package/dist/platform/orchestration/scheduler.js +73 -0
- package/dist/platform/orchestration/types.d.ts +535 -0
- package/dist/platform/orchestration/types.d.ts.map +1 -0
- package/dist/platform/orchestration/types.js +47 -0
- package/dist/platform/orchestration/worktree-isolation.d.ts +33 -0
- package/dist/platform/orchestration/worktree-isolation.d.ts.map +1 -0
- package/dist/platform/orchestration/worktree-isolation.js +248 -0
- package/dist/platform/presentation/glyphs.d.ts +91 -0
- package/dist/platform/presentation/glyphs.d.ts.map +1 -0
- package/dist/platform/presentation/glyphs.js +93 -0
- package/dist/platform/presentation/index.d.ts +28 -0
- package/dist/platform/presentation/index.d.ts.map +1 -0
- package/dist/platform/presentation/index.js +27 -0
- package/dist/platform/presentation/thinking-phrases.d.ts +12 -0
- package/dist/platform/presentation/thinking-phrases.d.ts.map +1 -0
- package/dist/platform/presentation/thinking-phrases.js +32 -0
- package/dist/platform/presentation/tones.d.ts +121 -0
- package/dist/platform/presentation/tones.d.ts.map +1 -0
- package/dist/platform/presentation/tones.js +145 -0
- package/dist/platform/presentation/waiting-wording.d.ts +54 -0
- package/dist/platform/presentation/waiting-wording.d.ts.map +1 -0
- package/dist/platform/presentation/waiting-wording.js +51 -0
- package/dist/platform/providers/runtime-snapshot.d.ts.map +1 -1
- package/dist/platform/providers/runtime-snapshot.js +12 -2
- package/dist/platform/runtime/bootstrap-services.d.ts +62 -2
- package/dist/platform/runtime/bootstrap-services.d.ts.map +1 -1
- package/dist/platform/runtime/bootstrap-services.js +217 -50
- package/dist/platform/runtime/daemon-version-compat.d.ts +39 -0
- package/dist/platform/runtime/daemon-version-compat.d.ts.map +1 -0
- package/dist/platform/runtime/daemon-version-compat.js +75 -0
- package/dist/platform/runtime/detached-daemon-runtime.d.ts +26 -0
- package/dist/platform/runtime/detached-daemon-runtime.d.ts.map +1 -0
- package/dist/platform/runtime/detached-daemon-runtime.js +49 -0
- package/dist/platform/runtime/emitters/communication.d.ts +11 -0
- package/dist/platform/runtime/emitters/communication.d.ts.map +1 -1
- package/dist/platform/runtime/emitters/communication.js +9 -0
- package/dist/platform/runtime/emitters/workflows.d.ts +1 -1
- package/dist/platform/runtime/emitters/workflows.d.ts.map +1 -1
- package/dist/platform/runtime/events/index.d.ts +13 -0
- package/dist/platform/runtime/events/index.d.ts.map +1 -1
- package/dist/platform/runtime/events/index.js +13 -0
- package/dist/platform/runtime/feature-flags/flags.d.ts.map +1 -1
- package/dist/platform/runtime/feature-flags/flags.js +56 -1
- package/dist/platform/runtime/fleet/adapters/agent.d.ts +56 -0
- package/dist/platform/runtime/fleet/adapters/agent.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/agent.js +143 -0
- package/dist/platform/runtime/fleet/adapters/automation.d.ts +30 -0
- package/dist/platform/runtime/fleet/adapters/automation.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/automation.js +41 -0
- package/dist/platform/runtime/fleet/adapters/background-process.d.ts +12 -0
- package/dist/platform/runtime/fleet/adapters/background-process.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/background-process.js +46 -0
- package/dist/platform/runtime/fleet/adapters/code-index.d.ts +21 -0
- package/dist/platform/runtime/fleet/adapters/code-index.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/code-index.js +44 -0
- package/dist/platform/runtime/fleet/adapters/orchestration.d.ts +69 -0
- package/dist/platform/runtime/fleet/adapters/orchestration.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/orchestration.js +329 -0
- package/dist/platform/runtime/fleet/adapters/schedule.d.ts +14 -0
- package/dist/platform/runtime/fleet/adapters/schedule.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/schedule.js +28 -0
- package/dist/platform/runtime/fleet/adapters/trigger.d.ts +12 -0
- package/dist/platform/runtime/fleet/adapters/trigger.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/trigger.js +22 -0
- package/dist/platform/runtime/fleet/adapters/watcher.d.ts +13 -0
- package/dist/platform/runtime/fleet/adapters/watcher.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/watcher.js +47 -0
- package/dist/platform/runtime/fleet/adapters/workflow.d.ts +11 -0
- package/dist/platform/runtime/fleet/adapters/workflow.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/workflow.js +34 -0
- package/dist/platform/runtime/fleet/adapters/wrfc.d.ts +35 -0
- package/dist/platform/runtime/fleet/adapters/wrfc.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/adapters/wrfc.js +275 -0
- package/dist/platform/runtime/fleet/index.d.ts +10 -0
- package/dist/platform/runtime/fleet/index.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/index.js +6 -0
- package/dist/platform/runtime/fleet/registry.d.ts +113 -0
- package/dist/platform/runtime/fleet/registry.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/registry.js +664 -0
- package/dist/platform/runtime/fleet/types.d.ts +199 -0
- package/dist/platform/runtime/fleet/types.d.ts.map +1 -0
- package/dist/platform/runtime/fleet/types.js +2 -0
- package/dist/platform/runtime/operator-client.d.ts +20 -2
- package/dist/platform/runtime/operator-client.d.ts.map +1 -1
- package/dist/platform/runtime/operator-client.js +11 -1
- package/dist/platform/runtime/provider-accounts/registry.d.ts.map +1 -1
- package/dist/platform/runtime/provider-accounts/registry.js +11 -1
- package/dist/platform/runtime/runtime-knowledge-api.d.ts +1 -1
- package/dist/platform/runtime/runtime-knowledge-api.d.ts.map +1 -1
- package/dist/platform/runtime/runtime-knowledge-api.js +1 -0
- package/dist/platform/runtime/services.d.ts +48 -0
- package/dist/platform/runtime/services.d.ts.map +1 -1
- package/dist/platform/runtime/services.js +95 -2
- package/dist/platform/runtime/session-spine/client.d.ts +234 -0
- package/dist/platform/runtime/session-spine/client.d.ts.map +1 -0
- package/dist/platform/runtime/session-spine/client.js +449 -0
- package/dist/platform/runtime/session-spine/index.d.ts +12 -0
- package/dist/platform/runtime/session-spine/index.d.ts.map +1 -0
- package/dist/platform/runtime/session-spine/index.js +11 -0
- package/dist/platform/runtime/session-spine/union-cache.d.ts +225 -0
- package/dist/platform/runtime/session-spine/union-cache.d.ts.map +1 -0
- package/dist/platform/runtime/session-spine/union-cache.js +333 -0
- package/dist/platform/runtime/shell-command-ops.d.ts +3 -1
- package/dist/platform/runtime/shell-command-ops.d.ts.map +1 -1
- package/dist/platform/runtime/transports/daemon-http-client-validators.d.ts.map +1 -1
- package/dist/platform/runtime/transports/daemon-http-client-validators.js +22 -0
- package/dist/platform/runtime/transports/daemon-http-client.d.ts.map +1 -1
- package/dist/platform/runtime/transports/daemon-http-client.js +25 -2
- package/dist/platform/runtime/transports/http-types.d.ts +9 -2
- package/dist/platform/runtime/transports/http-types.d.ts.map +1 -1
- package/dist/platform/state/canonical-memory.d.ts +95 -0
- package/dist/platform/state/canonical-memory.d.ts.map +1 -0
- package/dist/platform/state/canonical-memory.js +155 -0
- package/dist/platform/state/code-index-chunking.d.ts +49 -0
- package/dist/platform/state/code-index-chunking.d.ts.map +1 -0
- package/dist/platform/state/code-index-chunking.js +111 -0
- package/dist/platform/state/code-index-db.d.ts +53 -0
- package/dist/platform/state/code-index-db.d.ts.map +1 -0
- package/dist/platform/state/code-index-db.js +101 -0
- package/dist/platform/state/code-index-reindex.d.ts +73 -0
- package/dist/platform/state/code-index-reindex.d.ts.map +1 -0
- package/dist/platform/state/code-index-reindex.js +156 -0
- package/dist/platform/state/code-index-store.d.ts +175 -0
- package/dist/platform/state/code-index-store.d.ts.map +1 -0
- package/dist/platform/state/code-index-store.js +620 -0
- package/dist/platform/state/index.d.ts +12 -2
- package/dist/platform/state/index.d.ts.map +1 -1
- package/dist/platform/state/index.js +6 -1
- package/dist/platform/state/knowledge-injection.d.ts +23 -0
- package/dist/platform/state/knowledge-injection.d.ts.map +1 -1
- package/dist/platform/state/knowledge-injection.js +34 -19
- package/dist/platform/state/memory-recall-contract.d.ts +63 -0
- package/dist/platform/state/memory-recall-contract.d.ts.map +1 -0
- package/dist/platform/state/memory-recall-contract.js +94 -0
- package/dist/platform/state/memory-store.d.ts +2 -0
- package/dist/platform/state/memory-store.d.ts.map +1 -1
- package/dist/platform/state/memory-store.js +4 -0
- package/dist/platform/state/memory-vector-store.d.ts +1 -13
- package/dist/platform/state/memory-vector-store.d.ts.map +1 -1
- package/dist/platform/state/memory-vector-store.js +18 -39
- package/dist/platform/state/sqlite-store.d.ts +2 -0
- package/dist/platform/state/sqlite-store.d.ts.map +1 -1
- package/dist/platform/state/sqlite-store.js +4 -0
- package/dist/platform/state/sqlite-vec-loader.d.ts +25 -0
- package/dist/platform/state/sqlite-vec-loader.d.ts.map +1 -0
- package/dist/platform/state/sqlite-vec-loader.js +43 -0
- package/dist/platform/state/vibe-projection.d.ts +67 -0
- package/dist/platform/state/vibe-projection.d.ts.map +1 -0
- package/dist/platform/state/vibe-projection.js +115 -0
- package/dist/platform/tools/agent/index.d.ts.map +1 -1
- package/dist/platform/tools/agent/index.js +8 -0
- package/dist/platform/tools/agent/manager.d.ts +140 -1
- package/dist/platform/tools/agent/manager.d.ts.map +1 -1
- package/dist/platform/tools/agent/manager.js +143 -1
- package/dist/platform/tools/agent/schema.d.ts +26 -0
- package/dist/platform/tools/agent/schema.d.ts.map +1 -1
- package/dist/platform/tools/agent/schema.js +2 -2
- package/dist/platform/tools/agent/wrfc-batch-policy.d.ts +13 -0
- package/dist/platform/tools/agent/wrfc-batch-policy.d.ts.map +1 -1
- package/dist/platform/tools/agent/wrfc-batch-policy.js +60 -0
- package/dist/platform/tools/exec/runtime.d.ts +10 -0
- package/dist/platform/tools/exec/runtime.d.ts.map +1 -1
- package/dist/platform/tools/exec/runtime.js +161 -49
- package/dist/platform/tools/exec/schema.d.ts +3 -1
- package/dist/platform/tools/exec/schema.d.ts.map +1 -1
- package/dist/platform/tools/exec/schema.js +2 -1
- package/dist/platform/tools/fetch/runtime.d.ts +7 -0
- package/dist/platform/tools/fetch/runtime.d.ts.map +1 -1
- package/dist/platform/tools/fetch/runtime.js +8 -6
- package/dist/platform/tools/index.d.ts +2 -0
- package/dist/platform/tools/index.d.ts.map +1 -1
- package/dist/platform/tools/index.js +2 -0
- package/dist/platform/tools/registry.d.ts +9 -3
- package/dist/platform/tools/registry.d.ts.map +1 -1
- package/dist/platform/tools/registry.js +9 -3
- package/dist/platform/tools/state/index.d.ts +9 -0
- package/dist/platform/tools/state/index.d.ts.map +1 -1
- package/dist/platform/tools/state/index.js +60 -3
- package/dist/platform/types/foundation-contract.d.ts +1 -1
- package/dist/platform/types/foundation-contract.d.ts.map +1 -1
- package/dist/platform/types/index.d.ts +1 -1
- package/dist/platform/types/index.d.ts.map +1 -1
- package/dist/platform/types/tools.d.ts +14 -1
- package/dist/platform/types/tools.d.ts.map +1 -1
- package/dist/platform/version.js +1 -1
- package/package.json +29 -9
- package/dist/platform/control-plane/routes/automation.d.ts +0 -3
- package/dist/platform/control-plane/routes/automation.d.ts.map +0 -1
- package/dist/platform/control-plane/routes/automation.js +0 -63
- package/dist/platform/control-plane/routes/context.d.ts +0 -2
- package/dist/platform/control-plane/routes/context.d.ts.map +0 -1
- package/dist/platform/control-plane/routes/context.js +0 -1
- package/dist/platform/control-plane/routes/operator.d.ts +0 -8
- package/dist/platform/control-plane/routes/operator.d.ts.map +0 -1
- package/dist/platform/control-plane/routes/operator.js +0 -415
- package/dist/platform/control-plane/routes/remote.d.ts +0 -3
- package/dist/platform/control-plane/routes/remote.d.ts.map +0 -1
- package/dist/platform/control-plane/routes/remote.js +0 -35
- package/dist/platform/control-plane/routes/sessions.d.ts +0 -3
- package/dist/platform/control-plane/routes/sessions.d.ts.map +0 -1
- package/dist/platform/control-plane/routes/sessions.js +0 -43
- package/dist/platform/control-plane/routes/tasks.d.ts +0 -3
- package/dist/platform/control-plane/routes/tasks.d.ts.map +0 -1
- package/dist/platform/control-plane/routes/tasks.js +0 -22
|
@@ -1,6 +1,55 @@
|
|
|
1
|
-
import { STRING_SCHEMA, NUMBER_SCHEMA, arraySchema, objectSchema, eventDescriptor, runtimeDomainEvent } from './method-catalog-shared.js';
|
|
1
|
+
import { STRING_SCHEMA, NUMBER_SCHEMA, JSON_OBJECT_SCHEMA, arraySchema, objectSchema, eventDescriptor, runtimeDomainEvent } from './method-catalog-shared.js';
|
|
2
2
|
import { CONTROL_PLANE_SURFACE_MESSAGE_SCHEMA } from './operator-contract-schemas.js';
|
|
3
3
|
import { RUNTIME_EVENT_DOMAINS } from '../../events/domain-map.js';
|
|
4
|
+
/**
|
|
5
|
+
* The discriminated `event` values carried inside every `session-update` wire frame.
|
|
6
|
+
*
|
|
7
|
+
* The SharedSessionBroker collapses ALL of its lifecycle signals onto a single wire event
|
|
8
|
+
* named `session-update` (session-broker.ts `publishUpdate`); the real lifecycle name lives
|
|
9
|
+
* in the frame's `payload.event` field. This list is the source of truth for that
|
|
10
|
+
* discriminant and is documented by the `control.session_update` descriptor below so a
|
|
11
|
+
* subscriber (webui/TUI) can switch on `payload.event` against a contract-backed enum
|
|
12
|
+
* instead of guessing from undocumented behavior.
|
|
13
|
+
*
|
|
14
|
+
* NOTE (One-Platform S1 coordination): new broker signals flow through the SAME
|
|
15
|
+
* `session-update` wire channel automatically because `publishUpdate` is generic — when
|
|
16
|
+
* S1's `sessions.register` flow emits e.g. `session-registered`, only THIS enum needs the
|
|
17
|
+
* added string (the wire channel already carries it). Keep this list aligned with the
|
|
18
|
+
* broker's publishUpdate/publishInputLifecycleEvent call sites.
|
|
19
|
+
*/
|
|
20
|
+
export const SESSION_UPDATE_WIRE_EVENTS = [
|
|
21
|
+
'session-created',
|
|
22
|
+
'session-closed',
|
|
23
|
+
'session-deleted',
|
|
24
|
+
'session-reopened',
|
|
25
|
+
'session-agent-bound',
|
|
26
|
+
'session-agent-completed',
|
|
27
|
+
'session-message-appended',
|
|
28
|
+
'session-message-forwarded',
|
|
29
|
+
'session-route-attached',
|
|
30
|
+
'session-detached',
|
|
31
|
+
'session-input-queued',
|
|
32
|
+
'session-input-queued-for-surface',
|
|
33
|
+
'session-input-delivered',
|
|
34
|
+
'session-input-spawned',
|
|
35
|
+
'session-input-completed',
|
|
36
|
+
'session-input-failed',
|
|
37
|
+
'session-input-rejected',
|
|
38
|
+
'session-input-cancelled',
|
|
39
|
+
'session-follow-up-queued',
|
|
40
|
+
'session-follow-up-spawned',
|
|
41
|
+
];
|
|
42
|
+
/**
|
|
43
|
+
* Maps each cross-surface invalidation intent to the concrete `payload.event` value(s) a
|
|
44
|
+
* subscriber must react to. Documented in the descriptor so the webui/TUI do not guess.
|
|
45
|
+
*/
|
|
46
|
+
export const SESSION_UPDATE_INTENT_MAP = {
|
|
47
|
+
created: ['session-created'],
|
|
48
|
+
updated: ['session-message-appended', 'session-agent-completed', 'session-route-attached', 'session-detached', 'session-reopened'],
|
|
49
|
+
steered: ['session-input-queued-for-surface', 'session-input-delivered', 'session-message-forwarded'],
|
|
50
|
+
closed: ['session-closed'],
|
|
51
|
+
deleted: ['session-deleted'],
|
|
52
|
+
};
|
|
4
53
|
const RUNTIME_DOMAIN_DESCRIPTIONS = {
|
|
5
54
|
session: 'Shared-session lifecycle, participant, and message events.',
|
|
6
55
|
turn: 'Turn submission and completion events.',
|
|
@@ -69,4 +118,28 @@ export const builtinGatewayEventDescriptors = [
|
|
|
69
118
|
wireEvents: ['surface-message'],
|
|
70
119
|
outputSchema: CONTROL_PLANE_SURFACE_MESSAGE_SCHEMA,
|
|
71
120
|
}),
|
|
121
|
+
eventDescriptor({
|
|
122
|
+
id: 'control.session_update',
|
|
123
|
+
title: 'Session Lifecycle Update',
|
|
124
|
+
description: 'Shared-session lifecycle broadcast. Every session created / closed / deleted / reopened / '
|
|
125
|
+
+ 'agent-bound / agent-completed / message-appended / message-forwarded / route-attached '
|
|
126
|
+
+ 'and every input & follow-up lifecycle transition is published on the single '
|
|
127
|
+
+ '`session-update` wire event; the specific lifecycle name is the discriminated '
|
|
128
|
+
+ '`payload.event` field. Cross-surface invalidation mapping (webui/TUI): '
|
|
129
|
+
+ 'created ⇐ session-created; updated ⇐ session-message-appended / session-agent-completed / '
|
|
130
|
+
+ 'session-route-attached / session-reopened; steered ⇐ session-input-delivered / '
|
|
131
|
+
+ 'session-message-forwarded; closed ⇐ session-closed; deleted ⇐ session-deleted (a hard '
|
|
132
|
+
+ 'removal — the record is gone, not merely closed). This channel is un-domained: it '
|
|
133
|
+
+ 'reaches every live SSE/WS client regardless of subscribed domains, and is dropped '
|
|
134
|
+
+ 'entirely when the control-plane-gateway flag is turned off (no phantom buffering).',
|
|
135
|
+
category: 'transport',
|
|
136
|
+
transport: ['sse', 'ws'],
|
|
137
|
+
scopes: ['read:sessions'],
|
|
138
|
+
wireEvents: ['session-update'],
|
|
139
|
+
outputSchema: objectSchema({
|
|
140
|
+
event: { type: 'string', enum: [...SESSION_UPDATE_WIRE_EVENTS] },
|
|
141
|
+
payload: JSON_OBJECT_SCHEMA,
|
|
142
|
+
createdAt: NUMBER_SCHEMA,
|
|
143
|
+
}, ['event', 'payload', 'createdAt']),
|
|
144
|
+
}),
|
|
72
145
|
];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* method-catalog-fleet.ts
|
|
3
|
+
*
|
|
4
|
+
* W3-S2 — fleet.* + checkpoints.* method descriptors. Split out of
|
|
5
|
+
* method-catalog-control-core.ts (which was already at the 800-line
|
|
6
|
+
* source-file cap) rather than grown into it, mirroring how
|
|
7
|
+
* method-catalog-control-automation.ts is a sibling split of the same file
|
|
8
|
+
* merged back in by method-catalog-control.ts.
|
|
9
|
+
*
|
|
10
|
+
* Thin read (fleet) / checkpoint-lifecycle verbs over managers the daemon
|
|
11
|
+
* ALREADY holds in-process (ProcessRegistry, WorkspaceCheckpointManager —
|
|
12
|
+
* see routes/fleet.ts and routes/checkpoints.ts header comments). No `http`
|
|
13
|
+
* REST path is bound: these are registered with a direct handler on the
|
|
14
|
+
* catalog (RuntimeServices construction, ../runtime/services.ts).
|
|
15
|
+
* `transport: ['ws']` with no `http` binding is the transport-parity gate's
|
|
16
|
+
* (test/transport-parity.test.ts) own sanctioned category for a method
|
|
17
|
+
* dispatchable ONLY via the generic invoke-by-id mechanism — see the
|
|
18
|
+
* TRANSPORT NOTE above `sessions.search` in method-catalog-control-core.ts
|
|
19
|
+
* for the full rationale (this block predates that comment only in file
|
|
20
|
+
* position, not in reasoning).
|
|
21
|
+
*/
|
|
22
|
+
import type { GatewayMethodDescriptor } from './method-catalog-shared.js';
|
|
23
|
+
export declare const builtinGatewayFleetMethodDescriptors: readonly GatewayMethodDescriptor[];
|
|
24
|
+
//# sourceMappingURL=method-catalog-fleet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method-catalog-fleet.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-catalog-fleet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAgB1E,eAAO,MAAM,oCAAoC,EAAE,SAAS,uBAAuB,EA8DlF,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EMPTY_OBJECT_SCHEMA, methodDescriptor } from './method-catalog-shared.js';
|
|
2
|
+
import { CHECKPOINTS_CREATE_INPUT_SCHEMA, CHECKPOINTS_CREATE_OUTPUT_SCHEMA, CHECKPOINTS_DIFF_INPUT_SCHEMA, CHECKPOINTS_DIFF_OUTPUT_SCHEMA, CHECKPOINTS_LIST_INPUT_SCHEMA, CHECKPOINTS_LIST_OUTPUT_SCHEMA, CHECKPOINTS_RESTORE_INPUT_SCHEMA, CHECKPOINTS_RESTORE_OUTPUT_SCHEMA, FLEET_LIST_INPUT_SCHEMA, FLEET_LIST_OUTPUT_SCHEMA, FLEET_SNAPSHOT_OUTPUT_SCHEMA, } from './operator-contract-schemas.js';
|
|
3
|
+
export const builtinGatewayFleetMethodDescriptors = [
|
|
4
|
+
methodDescriptor({
|
|
5
|
+
id: 'fleet.snapshot',
|
|
6
|
+
title: 'Fleet Snapshot',
|
|
7
|
+
description: 'Return a point-in-time capture of every live/completed runtime process (agents, WRFC chains/subtasks, workflow FSMs/triggers/schedules, watchers, background processes) as a flat, parentId-linked node list. Capped at 2000 nodes (truncated:true + totalCount when the live fleet exceeds the cap) — use fleet.list to page through a larger fleet.',
|
|
8
|
+
category: 'fleet',
|
|
9
|
+
scopes: ['read:fleet'],
|
|
10
|
+
transport: ['ws'],
|
|
11
|
+
inputSchema: EMPTY_OBJECT_SCHEMA,
|
|
12
|
+
outputSchema: FLEET_SNAPSHOT_OUTPUT_SCHEMA,
|
|
13
|
+
}),
|
|
14
|
+
methodDescriptor({
|
|
15
|
+
id: 'fleet.list',
|
|
16
|
+
title: 'List Fleet Processes',
|
|
17
|
+
description: 'Paginated, filtered (kinds/states) query over the live process registry. Cursor pagination returns disjoint pages that union to the full matching set at query time.',
|
|
18
|
+
category: 'fleet',
|
|
19
|
+
scopes: ['read:fleet'],
|
|
20
|
+
transport: ['ws'],
|
|
21
|
+
inputSchema: FLEET_LIST_INPUT_SCHEMA,
|
|
22
|
+
outputSchema: FLEET_LIST_OUTPUT_SCHEMA,
|
|
23
|
+
}),
|
|
24
|
+
methodDescriptor({
|
|
25
|
+
id: 'checkpoints.list',
|
|
26
|
+
title: 'List Workspace Checkpoints',
|
|
27
|
+
description: 'Return workspace checkpoints (whole-workspace filesystem snapshots), newest first, optionally filtered by kind/since and capped by limit.',
|
|
28
|
+
category: 'checkpoints',
|
|
29
|
+
scopes: ['read:checkpoints'],
|
|
30
|
+
transport: ['ws'],
|
|
31
|
+
inputSchema: CHECKPOINTS_LIST_INPUT_SCHEMA,
|
|
32
|
+
outputSchema: CHECKPOINTS_LIST_OUTPUT_SCHEMA,
|
|
33
|
+
}),
|
|
34
|
+
methodDescriptor({
|
|
35
|
+
id: 'checkpoints.create',
|
|
36
|
+
title: 'Create Workspace Checkpoint',
|
|
37
|
+
description: 'Create a new workspace checkpoint. Returns checkpoint:null, noop:true (not an error) when the workspace tree is identical to the most recent checkpoint — no commit, ref, or manifest entry is created in that case.',
|
|
38
|
+
category: 'checkpoints',
|
|
39
|
+
scopes: ['write:checkpoints'],
|
|
40
|
+
transport: ['ws'],
|
|
41
|
+
inputSchema: CHECKPOINTS_CREATE_INPUT_SCHEMA,
|
|
42
|
+
outputSchema: CHECKPOINTS_CREATE_OUTPUT_SCHEMA,
|
|
43
|
+
}),
|
|
44
|
+
methodDescriptor({
|
|
45
|
+
id: 'checkpoints.diff',
|
|
46
|
+
title: 'Diff Workspace Checkpoints',
|
|
47
|
+
description: 'Diff two checkpoints, or one checkpoint against the live working tree when `b` is omitted. An unknown/gc\'d checkpoint id is an honest 404, not a silent empty diff.',
|
|
48
|
+
category: 'checkpoints',
|
|
49
|
+
scopes: ['read:checkpoints'],
|
|
50
|
+
transport: ['ws'],
|
|
51
|
+
inputSchema: CHECKPOINTS_DIFF_INPUT_SCHEMA,
|
|
52
|
+
outputSchema: CHECKPOINTS_DIFF_OUTPUT_SCHEMA,
|
|
53
|
+
}),
|
|
54
|
+
methodDescriptor({
|
|
55
|
+
id: 'checkpoints.restore',
|
|
56
|
+
title: 'Restore Workspace Checkpoint',
|
|
57
|
+
description: 'DESTRUCTIVE: restore the workspace to the state captured by a checkpoint (git-backed workspace rewrite). Executes immediately with NO server-side confirmation — the calling surface (TUI/webui) owns the confirm UX before invoking this verb. An unknown/gc\'d checkpoint id is an honest 404, not a silent no-op.',
|
|
58
|
+
category: 'checkpoints',
|
|
59
|
+
scopes: ['write:checkpoints'],
|
|
60
|
+
dangerous: true,
|
|
61
|
+
transport: ['ws'],
|
|
62
|
+
inputSchema: CHECKPOINTS_RESTORE_INPUT_SCHEMA,
|
|
63
|
+
outputSchema: CHECKPOINTS_RESTORE_OUTPUT_SCHEMA,
|
|
64
|
+
}),
|
|
65
|
+
];
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { GatewayMethodDescriptor } from './method-catalog-shared.js';
|
|
2
|
+
/**
|
|
3
|
+
* method-catalog-route-reconcile.ts (W4-A3)
|
|
4
|
+
*
|
|
5
|
+
* Advertisement-vs-route reconciliation. Every method descriptor that
|
|
6
|
+
* carries an `http` binding is a promise to a caller: "this daemon actually
|
|
7
|
+
* serves this endpoint." Nothing previously checked that promise against
|
|
8
|
+
* the real dispatch table. method-catalog-email.ts's four email.* methods
|
|
9
|
+
* advertised /api/email/* paths that no route handler anywhere has ever
|
|
10
|
+
* served, so a caller invoking one through the generic method-dispatch
|
|
11
|
+
* endpoint (control-plane.ts's invokeGatewayMethodCall, which synthesizes a
|
|
12
|
+
* request from `http.path` and feeds it back into the real router) got a
|
|
13
|
+
* plain 404 instead of an honest "this capability isn't wired up." The ad
|
|
14
|
+
* lied; only a caller's own skepticism about the 404 stood between it and
|
|
15
|
+
* treating the capability as real.
|
|
16
|
+
*
|
|
17
|
+
* This module answers, for a batch of descriptors, whether each one's http
|
|
18
|
+
* binding actually resolves against the real dispatch pipeline:
|
|
19
|
+
* `dispatchDaemonApiRoutes` from @pellux/goodvibes-daemon-sdk, the function
|
|
20
|
+
* DaemonHttpRouter.dispatchApiRoutes (packages/sdk/src/platform/daemon/http/
|
|
21
|
+
* router.ts — read as this reconcile's route authority, never edited by it)
|
|
22
|
+
* ultimately delegates to for every method-catalog family except a short
|
|
23
|
+
* list of specialized sub-routers wired directly in router.ts ahead of that
|
|
24
|
+
* delegation (see SPECIALIZED_SUB_ROUTER_PREFIXES). The probe dispatches a
|
|
25
|
+
* synthetic Request against handler stubs that only ever return a fixed
|
|
26
|
+
* marker Response — no real service, manager, or handler body ever runs, so
|
|
27
|
+
* probing stays side-effect free even for `dangerous: true` write methods
|
|
28
|
+
* (email.send, automation job mutation, etc.).
|
|
29
|
+
*
|
|
30
|
+
* Scope note (read before extending): dispatchDaemonApiRoutes covers the
|
|
31
|
+
* operator / automation / remote / session / task route families, which is
|
|
32
|
+
* most of the catalog (control-core, media, channels, remote, runtime,
|
|
33
|
+
* knowledge). A handful of catalogs point at specialized sub-routers that
|
|
34
|
+
* router.ts special-cases before it ever reaches dispatchDaemonApiRoutes
|
|
35
|
+
* (MCP config, batch, Cloudflare, Home Assistant, model routes, companion
|
|
36
|
+
* chat, project planning). This module has no evidence either way for
|
|
37
|
+
* those paths, so it marks them 'unchecked' rather than guessing — a false
|
|
38
|
+
* "unavailable" verdict would just be a different flavor of the same
|
|
39
|
+
* dishonesty this module exists to catch.
|
|
40
|
+
*/
|
|
41
|
+
export type RouteReconcileStatus = 'live' | 'unavailable' | 'unchecked';
|
|
42
|
+
export interface RouteReconcileResult {
|
|
43
|
+
readonly methodId: string;
|
|
44
|
+
readonly status: RouteReconcileStatus;
|
|
45
|
+
readonly http: {
|
|
46
|
+
readonly method: string;
|
|
47
|
+
readonly path: string;
|
|
48
|
+
} | null;
|
|
49
|
+
readonly reason: string;
|
|
50
|
+
}
|
|
51
|
+
export type RouteProbe = (method: string, path: string) => boolean | Promise<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Path prefixes served by a specialized sub-router that router.ts dispatches
|
|
54
|
+
* to BEFORE falling through to dispatchDaemonApiRoutes. Kept as an explicit,
|
|
55
|
+
* short allowlist (not inferred) so growth here is a deliberate, reviewed
|
|
56
|
+
* decision rather than silent scope creep.
|
|
57
|
+
*/
|
|
58
|
+
export declare const SPECIALIZED_SUB_ROUTER_PREFIXES: readonly string[];
|
|
59
|
+
/**
|
|
60
|
+
* Builds a dispatchDaemonApiRoutes-backed probe: does *any* route in the
|
|
61
|
+
* operator/automation/remote/session/task dispatch chain match this
|
|
62
|
+
* method+path? Every handler in the stub is inert — a Proxy that returns a
|
|
63
|
+
* single marker function for any property access, so it never needs
|
|
64
|
+
* updating when DaemonApiRouteHandlers gains a field (the exact kind of
|
|
65
|
+
* drift this reconcile exists to avoid reintroducing elsewhere).
|
|
66
|
+
*/
|
|
67
|
+
export declare function createDaemonSdkRouteProbe(): RouteProbe;
|
|
68
|
+
/** Reconciles a single descriptor's http binding (if any) against a probe. */
|
|
69
|
+
export declare function reconcileHttpDescriptor(descriptor: GatewayMethodDescriptor, probe: RouteProbe): Promise<RouteReconcileResult>;
|
|
70
|
+
/** Reconciles a full descriptor list against a probe, in catalog order. */
|
|
71
|
+
export declare function reconcileCatalogRoutes(descriptors: readonly GatewayMethodDescriptor[], probe: RouteProbe): Promise<RouteReconcileResult[]>;
|
|
72
|
+
/**
|
|
73
|
+
* The regression gate. Every descriptor whose http binding was actually
|
|
74
|
+
* checked (status !== 'unchecked') and resolved to no live route must
|
|
75
|
+
* already be marked `invokable: false` at the source — i.e. the
|
|
76
|
+
* advertisement itself must already say "don't call this" instead of
|
|
77
|
+
* silently 404ing a caller who trusted it. Returns the ids that violate
|
|
78
|
+
* that rule. A non-empty result means some descriptor is advertised as
|
|
79
|
+
* live but isn't backed by a route, and isn't marked unavailable either —
|
|
80
|
+
* an email.inbox.list-shaped regression. Wire this into a test (or a boot
|
|
81
|
+
* self-check, once one exists) and fail loudly on a non-empty result.
|
|
82
|
+
*/
|
|
83
|
+
export declare function findUnreconciledAdvertisements(descriptors: readonly GatewayMethodDescriptor[], results: readonly RouteReconcileResult[]): string[];
|
|
84
|
+
//# sourceMappingURL=method-catalog-route-reconcile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method-catalog-route-reconcile.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-cat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,103 @@
|
|
|
1
|
+
import { dispatchDaemonApiRoutes } from '@pellux/goodvibes-daemon-sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Path prefixes served by a specialized sub-router that router.ts dispatches
|
|
4
|
+
* to BEFORE falling through to dispatchDaemonApiRoutes. Kept as an explicit,
|
|
5
|
+
* short allowlist (not inferred) so growth here is a deliberate, reviewed
|
|
6
|
+
* decision rather than silent scope creep.
|
|
7
|
+
*/
|
|
8
|
+
export const SPECIALIZED_SUB_ROUTER_PREFIXES = [
|
|
9
|
+
'/api/mcp',
|
|
10
|
+
'/api/batch',
|
|
11
|
+
'/api/cloudflare',
|
|
12
|
+
'/api/homeassistant',
|
|
13
|
+
'/api/models',
|
|
14
|
+
'/api/companion/chat',
|
|
15
|
+
'/api/projects/planning',
|
|
16
|
+
];
|
|
17
|
+
const RECONCILE_PROBE_MARKER = { reconcileProbeMarker: true };
|
|
18
|
+
function isSpecializedSubRouterPath(path) {
|
|
19
|
+
return SPECIALIZED_SUB_ROUTER_PREFIXES.some((prefix) => path === prefix || path.startsWith(`${prefix}/`));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Replaces every `{param}` template segment with an opaque single-segment
|
|
23
|
+
* placeholder. Every path-matching regex in the dispatch chain matches "one
|
|
24
|
+
* non-slash segment" for a param slot, so a placeholder resolves the same
|
|
25
|
+
* way a real id would without needing one.
|
|
26
|
+
*/
|
|
27
|
+
function resolveTemplatePath(template) {
|
|
28
|
+
return template.replace(/\{[^/}]+\}/g, 'reconcile-probe-placeholder');
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Builds a dispatchDaemonApiRoutes-backed probe: does *any* route in the
|
|
32
|
+
* operator/automation/remote/session/task dispatch chain match this
|
|
33
|
+
* method+path? Every handler in the stub is inert — a Proxy that returns a
|
|
34
|
+
* single marker function for any property access, so it never needs
|
|
35
|
+
* updating when DaemonApiRouteHandlers gains a field (the exact kind of
|
|
36
|
+
* drift this reconcile exists to avoid reintroducing elsewhere).
|
|
37
|
+
*/
|
|
38
|
+
export function createDaemonSdkRouteProbe() {
|
|
39
|
+
const marker = () => Response.json(RECONCILE_PROBE_MARKER);
|
|
40
|
+
const inertHandlers = new Proxy({}, { get: () => marker });
|
|
41
|
+
return async (method, path) => {
|
|
42
|
+
const request = new Request(`http://reconcile-probe.invalid${path}`, { method });
|
|
43
|
+
const response = await dispatchDaemonApiRoutes(request, inertHandlers);
|
|
44
|
+
return response !== null;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/** Reconciles a single descriptor's http binding (if any) against a probe. */
|
|
48
|
+
export async function reconcileHttpDescriptor(descriptor, probe) {
|
|
49
|
+
if (!descriptor.http) {
|
|
50
|
+
return { methodId: descriptor.id, status: 'unchecked', http: null, reason: 'no http binding to reconcile' };
|
|
51
|
+
}
|
|
52
|
+
const http = { method: descriptor.http.method, path: descriptor.http.path };
|
|
53
|
+
if (isSpecializedSubRouterPath(descriptor.http.path)) {
|
|
54
|
+
return {
|
|
55
|
+
methodId: descriptor.id,
|
|
56
|
+
status: 'unchecked',
|
|
57
|
+
http,
|
|
58
|
+
reason: `path is served by a specialized sub-router outside this reconcile's checked scope: ${descriptor.http.path}`,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const probePath = resolveTemplatePath(descriptor.http.path);
|
|
62
|
+
const resolved = await probe(descriptor.http.method, probePath);
|
|
63
|
+
return resolved
|
|
64
|
+
? { methodId: descriptor.id, status: 'live', http, reason: 'route resolved via dispatchDaemonApiRoutes' }
|
|
65
|
+
: {
|
|
66
|
+
methodId: descriptor.id,
|
|
67
|
+
status: 'unavailable',
|
|
68
|
+
http,
|
|
69
|
+
reason: `no registered route serves ${descriptor.http.method} ${descriptor.http.path}`,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
/** Reconciles a full descriptor list against a probe, in catalog order. */
|
|
73
|
+
export async function reconcileCatalogRoutes(descriptors, probe) {
|
|
74
|
+
const results = [];
|
|
75
|
+
for (const descriptor of descriptors) {
|
|
76
|
+
results.push(await reconcileHttpDescriptor(descriptor, probe));
|
|
77
|
+
}
|
|
78
|
+
return results;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The regression gate. Every descriptor whose http binding was actually
|
|
82
|
+
* checked (status !== 'unchecked') and resolved to no live route must
|
|
83
|
+
* already be marked `invokable: false` at the source — i.e. the
|
|
84
|
+
* advertisement itself must already say "don't call this" instead of
|
|
85
|
+
* silently 404ing a caller who trusted it. Returns the ids that violate
|
|
86
|
+
* that rule. A non-empty result means some descriptor is advertised as
|
|
87
|
+
* live but isn't backed by a route, and isn't marked unavailable either —
|
|
88
|
+
* an email.inbox.list-shaped regression. Wire this into a test (or a boot
|
|
89
|
+
* self-check, once one exists) and fail loudly on a non-empty result.
|
|
90
|
+
*/
|
|
91
|
+
export function findUnreconciledAdvertisements(descriptors, results) {
|
|
92
|
+
const descriptorsById = new Map(descriptors.map((descriptor) => [descriptor.id, descriptor]));
|
|
93
|
+
const violations = [];
|
|
94
|
+
for (const result of results) {
|
|
95
|
+
if (result.status !== 'unavailable')
|
|
96
|
+
continue;
|
|
97
|
+
const descriptor = descriptorsById.get(result.methodId);
|
|
98
|
+
if (descriptor && descriptor.invokable !== false) {
|
|
99
|
+
violations.push(result.methodId);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return violations;
|
|
103
|
+
}
|
|
@@ -22,6 +22,35 @@ export interface GatewayMethodDescriptor {
|
|
|
22
22
|
readonly outputSchema?: Record<string, unknown> | undefined;
|
|
23
23
|
readonly pluginId?: string | undefined;
|
|
24
24
|
readonly dangerous?: boolean | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Defaults to `true`. When explicitly `false`, this method is NOT dispatchable
|
|
27
|
+
* through the generic HTTP/WS method-invocation surface
|
|
28
|
+
* (`invokeGatewayMethodCall`/`invokeWebSocketControlPlaneCall` in
|
|
29
|
+
* `../daemon/control-plane.ts`, guarded by `validateGatewayInvocation`, which
|
|
30
|
+
* rejects it with an honest 400 `NOT_INVOKABLE` before any handler or route is
|
|
31
|
+
* even considered) — nothing more, nothing less.
|
|
32
|
+
*
|
|
33
|
+
* This is a statement about ONE dispatch path, not a claim that the method can
|
|
34
|
+
* never run anywhere. Two independent reasons a descriptor carries
|
|
35
|
+
* `invokable: false`:
|
|
36
|
+
* - No route or internal handler exists at all for this build (e.g. `email.*`,
|
|
37
|
+
* `calendar.*` — cataloged so the contract is honest about the capability's
|
|
38
|
+
* shape, but genuinely unavailable everywhere).
|
|
39
|
+
* - A real route DOES exist and IS served (e.g. `voice.tts.stream`,
|
|
40
|
+
* `control.events.stream`, `artifacts.content.get`), just not through the
|
|
41
|
+
* generic JSON-envelope invoke path — the response is binary/streaming/HTML
|
|
42
|
+
* (see `metadata.responseKind`) and callers must use the direct HTTP path
|
|
43
|
+
* instead.
|
|
44
|
+
*
|
|
45
|
+
* A runtime that registers a real in-process handler for this method id (via
|
|
46
|
+
* `GatewayMethodCatalog.register(descriptor, handler)`) and calls
|
|
47
|
+
* `GatewayMethodCatalog.invoke()` DIRECTLY (bypassing `validateGatewayInvocation`)
|
|
48
|
+
* still serves it — `invoke()` itself does not consult this flag, by design: a
|
|
49
|
+
* consuming runtime that has wired up a genuine handler is authoritative over
|
|
50
|
+
* whether the method actually works, this descriptor is not. `invoke()` only
|
|
51
|
+
* refuses when BOTH `invokable === false` AND no handler is registered — see
|
|
52
|
+
* `method-catalog.ts`'s `invoke()`.
|
|
53
|
+
*/
|
|
25
54
|
readonly invokable?: boolean | undefined;
|
|
26
55
|
readonly metadata?: Record<string, unknown> | undefined;
|
|
27
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-catalog-shared.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-catalog-shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAA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G,WAAW,GAAG,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC,CAAC,GAAG,uBAAuB,CAO7M;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,sBAAsB,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC,GAAG,sBAAsB,CAKvJ;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,CAEjE;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,GAAG,sBAAsB,CAY1G"}
|
|
@@ -24,6 +24,15 @@ export declare class GatewayMethodCatalog {
|
|
|
24
24
|
getAllScopes(options?: {
|
|
25
25
|
readonly includeWrite?: boolean;
|
|
26
26
|
}): string[];
|
|
27
|
+
/**
|
|
28
|
+
* Run a method's registered internal handler directly. Note this does NOT consult
|
|
29
|
+
* `descriptor.invokable` for a method that HAS a handler — see the field's doc
|
|
30
|
+
* comment in method-catalog-shared.ts: a runtime that registered a real handler is
|
|
31
|
+
* authoritative over whether the method works, the descriptor's `invokable` flag
|
|
32
|
+
* is not. `invokeGatewayMethodCall` (../daemon/control-plane.ts) is what enforces
|
|
33
|
+
* `invokable` for the generic HTTP/WS dispatch surface, via
|
|
34
|
+
* `validateGatewayInvocation`, BEFORE ever reaching here.
|
|
35
|
+
*/
|
|
27
36
|
invoke(id: string, invocation: GatewayMethodInvocation): Promise<unknown>;
|
|
28
37
|
}
|
|
29
38
|
//# sourceMappingURL=method-catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-catalog.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-catalog.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"method-catalog.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/method-catalog.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAOpC,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AA6DpC,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8C;IACtE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6C;gBAExD,OAAO,GAAE;QAAE,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAA;KAAO;IAWhE,QAAQ,CACN,UAAU,EAAE,uBAAuB,EACnC,OAAO,CAAC,EAAE,oBAAoB,EAC9B,OAAO,GAAE;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAO,GAC3C,MAAM,IAAI;IAcb,aAAa,CACX,UAAU,EAAE,sBAAsB,EAClC,OAAO,GAAE;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAO,GAC3C,MAAM,IAAI;IAcb,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI/B,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIpC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAa1C,IAAI,CAAC,OAAO,GAAE,wBAA6B,GAAG,uBAAuB,EAAE;IASvE,UAAU,CAAC,OAAO,GAAE,uBAA4B,GAAG,sBAAsB,EAAE;IAU3E,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,uBAAuB,GAAG,IAAI;IAI/C,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI;IAInD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI/B,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,uBAAuB,GAAG,IAAI;IAUnF,YAAY,CAAC,OAAO,GAAE;QAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,MAAM,EAAE;IAiBzE;;;;;;;;OAQG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC;CA8BhF"}
|
|
@@ -7,6 +7,8 @@ import { builtinGatewayEventDescriptors, } from './method-catalog-events.js';
|
|
|
7
7
|
import { builtinGatewayKnowledgeMethodDescriptors, } from './method-catalog-knowledge.js';
|
|
8
8
|
import { builtinGatewayMediaMethodDescriptors, } from './method-catalog-media.js';
|
|
9
9
|
import { builtinGatewayRuntimeMethodDescriptors, } from './method-catalog-runtime.js';
|
|
10
|
+
import { GatewayVerbError } from './routes/gateway-verb-error.js';
|
|
11
|
+
import { SDKErrorCodes } from '@pellux/goodvibes-errors';
|
|
10
12
|
const BUILTIN_GATEWAY_EVENTS = builtinGatewayEventDescriptors;
|
|
11
13
|
const BUILTIN_GATEWAY_METHODS = [
|
|
12
14
|
...builtinGatewayControlMethodDescriptors,
|
|
@@ -168,12 +170,39 @@ export class GatewayMethodCatalog {
|
|
|
168
170
|
}
|
|
169
171
|
return [...scopes].sort();
|
|
170
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* Run a method's registered internal handler directly. Note this does NOT consult
|
|
175
|
+
* `descriptor.invokable` for a method that HAS a handler — see the field's doc
|
|
176
|
+
* comment in method-catalog-shared.ts: a runtime that registered a real handler is
|
|
177
|
+
* authoritative over whether the method works, the descriptor's `invokable` flag
|
|
178
|
+
* is not. `invokeGatewayMethodCall` (../daemon/control-plane.ts) is what enforces
|
|
179
|
+
* `invokable` for the generic HTTP/WS dispatch surface, via
|
|
180
|
+
* `validateGatewayInvocation`, BEFORE ever reaching here.
|
|
181
|
+
*/
|
|
171
182
|
async invoke(id, invocation) {
|
|
172
183
|
const entry = this.methods.get(id);
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
184
|
+
// Uncataloged id — a real machine code (METHOD_NOT_FOUND), not a prose Error, so
|
|
185
|
+
// any direct caller of invoke() (bypassing the HTTP dispatch's own 404 below) gets
|
|
186
|
+
// the same code-driven signal as invokeGatewayMethod/getGatewayMethod
|
|
187
|
+
// (daemon-sdk/control-routes.ts) and invokeGatewayMethodCall (../daemon/control-
|
|
188
|
+
// plane.ts) — distinct from NOT_INVOKABLE (cataloged but not invokable), which is
|
|
189
|
+
// the id existing but refusing dispatch, not the id being unknown outright.
|
|
190
|
+
if (!entry) {
|
|
191
|
+
throw new GatewayVerbError(`Unknown gateway method: ${id}`, SDKErrorCodes.METHOD_NOT_FOUND, 404);
|
|
192
|
+
}
|
|
193
|
+
if (!entry.handler) {
|
|
194
|
+
// A method explicitly marked invokable:false with no registered handler is
|
|
195
|
+
// honestly "not invokable anywhere" (see the field's doc comment) — distinct
|
|
196
|
+
// from a method that a caller expected to have a handler here but doesn't (a
|
|
197
|
+
// real bug in that caller's wiring). A GatewayVerbError flows straight through
|
|
198
|
+
// invokeGatewayMethodCall's existing catch into an honest 400/NOT_INVOKABLE
|
|
199
|
+
// instead of a generic 500 — and gives any OTHER caller of `invoke()` directly
|
|
200
|
+
// (bypassing the HTTP gate) the same honest, typed signal.
|
|
201
|
+
if (entry.descriptor.invokable === false) {
|
|
202
|
+
throw new GatewayVerbError(`Gateway method is not invokable and has no registered handler: ${id}`, 'NOT_INVOKABLE', 400);
|
|
203
|
+
}
|
|
176
204
|
throw new Error(`Gateway method has no internal handler: ${id}`);
|
|
205
|
+
}
|
|
177
206
|
return entry.handler(invocation);
|
|
178
207
|
}
|
|
179
208
|
}
|
|
@@ -9,6 +9,14 @@ export declare const PANEL_SNAPSHOT_SCHEMA: Record<string, unknown>;
|
|
|
9
9
|
export declare const CONFIG_SNAPSHOT_SCHEMA: Record<string, unknown>;
|
|
10
10
|
export declare const SURFACE_RECORD_SCHEMA: Record<string, unknown>;
|
|
11
11
|
export declare const CONFIG_SET_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Secret-FREE status metadata for a single shared-store credential. Carries NO
|
|
14
|
+
* secret value / raw key bytes by construction — the plaintext never crosses the
|
|
15
|
+
* wire. `usable` reflects a real in-process resolution attempt.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CREDENTIAL_STATUS_RECORD_SCHEMA: Record<string, unknown>;
|
|
18
|
+
/** Output of `credentials.get` — a secret-free credential-status snapshot. */
|
|
19
|
+
export declare const CREDENTIALS_SNAPSHOT_SCHEMA: Record<string, unknown>;
|
|
12
20
|
export declare const AUTOMATION_SCHEDULE_SCHEMA: Record<string, unknown>;
|
|
13
21
|
export declare const AUTOMATION_EXECUTION_INTENT_SCHEMA: Record<string, unknown>;
|
|
14
22
|
export declare const AUTOMATION_RUNTIME_EXECUTION_INTENT_SCHEMA: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator-contract-schemas-admin.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/operator-contract-schemas-admin.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,sBAAsB,yBAGV,CAAC;AAQ1B,eAAO,MAAM,wBAAwB,yBAQ2F,CAAC;AAEjI,eAAO,MAAM,+BAA+B,yBAE7B,CAAC;AAEhB,eAAO,MAAM,wCAAwC,yBAEtC,CAAC;AAEhB,eAAO,MAAM,uCAAuC,yBAErC,CAAC;AAEhB,eAAO,MAAM,yCAAyC,yBAEvC,CAAC;AAEhB,eAAO,MAAM,wBAAwB,yBAIT,CAAC;AAE7B,eAAO,MAAM,qBAAqB,yBAMmB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,yBAWG,CAAC;AAEvC,eAAO,MAAM,qBAAqB,yBAYyD,CAAC;AAE5F,eAAO,MAAM,wBAAwB,yBAIiB,CAAC;
|
|
1
|
+
{"version":3,"file":"operator-contract-schemas-admin.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/operator-contract-schemas-admin.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,sBAAsB,yBAGV,CAAC;AAQ1B,eAAO,MAAM,wBAAwB,yBAQ2F,CAAC;AAEjI,eAAO,MAAM,+BAA+B,yBAE7B,CAAC;AAEhB,eAAO,MAAM,wCAAwC,yBAEtC,CAAC;AAEhB,eAAO,MAAM,uCAAuC,yBAErC,CAAC;AAEhB,eAAO,MAAM,yCAAyC,yBAEvC,CAAC;AAEhB,eAAO,MAAM,wBAAwB,yBAIT,CAAC;AAE7B,eAAO,MAAM,qBAAqB,yBAMmB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,yBAWG,CAAC;AAEvC,eAAO,MAAM,qBAAqB,yBAYyD,CAAC;AAE5F,eAAO,MAAM,wBAAwB,yBAIiB,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,yBASwE,CAAC;AAErH,8EAA8E;AAC9E,eAAO,MAAM,2BAA2B,yBAGR,CAAC;AAuGjC,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAM9D,CAAC;AAQF,eAAO,MAAM,kCAAkC,yBAGrB,CAAC;AAE3B,eAAO,MAAM,0CAA0C,yBAKhB,CAAC;AAExC,eAAO,MAAM,gCAAgC,yBAUA,CAAC;AAkB9C,eAAO,MAAM,kCAAkC,yBAoBA,CAAC;AAEhD,eAAO,MAAM,iCAAiC,yBAMD,CAAC;AAE9C,eAAO,MAAM,iCAAiC,yBAQoF,CAAC;AAUnI,eAAO,MAAM,gCAAgC,yBAQyD,CAAC;AAEvG,eAAO,MAAM,+BAA+B,yBAWgE,CAAC;AAuC7G,eAAO,MAAM,+BAA+B,yBASC,CAAC;AAE9C,eAAO,MAAM,qBAAqB,yBAwBiM,CAAC;AAcpO,eAAO,MAAM,qBAAqB,yBAiCiK,CAAC;AAEpM,eAAO,MAAM,sCAAsC,yBA6Bf,CAAC;AAErC,eAAO,MAAM,6BAA6B,yBAE9B,CAAC;AAEb,eAAO,MAAM,6BAA6B,yBAE9B,CAAC;AAEb,eAAO,MAAM,mCAAmC,yBAGvB,CAAC;AAE1B,eAAO,MAAM,oCAAoC,yBAKe,CAAC;AAEjE,eAAO,MAAM,mCAAmC,yBAErC,CAAC;AAEZ,eAAO,MAAM,gCAAgC,yBAQiC,CAAC;AAE/E,eAAO,MAAM,kCAAkC,yBAQI,CAAC;AAEpD,eAAO,MAAM,kCAAkC,yBAG3B,CAAC;AAErB,eAAO,MAAM,wBAAwB,yBASX,CAAC;AAE3B,eAAO,MAAM,sBAAsB,yBAEnB,CAAC;AAEjB,eAAO,MAAM,oBAAoB,yBAA4B,CAAC;AAE9D,eAAO,MAAM,qBAAqB,yBAKmC,CAAC;AAYtE,eAAO,MAAM,qBAAqB,yBAcwD,CAAC;AAE3F,eAAO,MAAM,0BAA0B,yBAEvB,CAAC;AAEjB,eAAO,MAAM,4BAA4B,yBAGM,CAAC;AAuChD,eAAO,MAAM,qBAAqB,yBAeiH,CAAC"}
|
|
@@ -72,6 +72,26 @@ export const CONFIG_SET_OUTPUT_SCHEMA = objectSchema({
|
|
|
72
72
|
key: STRING_SCHEMA,
|
|
73
73
|
value: JSON_VALUE_SCHEMA,
|
|
74
74
|
}, ['success', 'key'], { additionalProperties: true });
|
|
75
|
+
/**
|
|
76
|
+
* Secret-FREE status metadata for a single shared-store credential. Carries NO
|
|
77
|
+
* secret value / raw key bytes by construction — the plaintext never crosses the
|
|
78
|
+
* wire. `usable` reflects a real in-process resolution attempt.
|
|
79
|
+
*/
|
|
80
|
+
export const CREDENTIAL_STATUS_RECORD_SCHEMA = objectSchema({
|
|
81
|
+
key: STRING_SCHEMA,
|
|
82
|
+
configured: BOOLEAN_SCHEMA,
|
|
83
|
+
usable: BOOLEAN_SCHEMA,
|
|
84
|
+
source: STRING_SCHEMA,
|
|
85
|
+
scope: STRING_SCHEMA,
|
|
86
|
+
secure: BOOLEAN_SCHEMA,
|
|
87
|
+
overriddenByEnv: BOOLEAN_SCHEMA,
|
|
88
|
+
refSource: STRING_SCHEMA,
|
|
89
|
+
}, ['key', 'configured', 'usable', 'source', 'scope', 'secure', 'overriddenByEnv'], { additionalProperties: false });
|
|
90
|
+
/** Output of `credentials.get` — a secret-free credential-status snapshot. */
|
|
91
|
+
export const CREDENTIALS_SNAPSHOT_SCHEMA = objectSchema({
|
|
92
|
+
available: BOOLEAN_SCHEMA,
|
|
93
|
+
credentials: arraySchema(CREDENTIAL_STATUS_RECORD_SCHEMA),
|
|
94
|
+
}, ['available', 'credentials']);
|
|
75
95
|
const AUTOMATION_JOB_STATUS_SCHEMA = enumSchema(['enabled', 'paused', 'error', 'archived']);
|
|
76
96
|
const AUTOMATION_RUN_STATUS_SCHEMA = enumSchema(['queued', 'running', 'completed', 'failed', 'cancelled']);
|
|
77
97
|
const AUTOMATION_RUN_TRIGGER_SCHEMA = enumSchema([
|
|
@@ -552,6 +572,7 @@ const SERVICE_NETWORK_SCHEMA = objectSchema({
|
|
|
552
572
|
}, ['controlPlane', 'httpListener', 'outbound'], { additionalProperties: false });
|
|
553
573
|
export const SERVICE_STATUS_SCHEMA = objectSchema({
|
|
554
574
|
platform: STRING_SCHEMA,
|
|
575
|
+
serviceName: STRING_SCHEMA,
|
|
555
576
|
path: STRING_SCHEMA,
|
|
556
577
|
installed: BOOLEAN_SCHEMA,
|
|
557
578
|
autostart: BOOLEAN_SCHEMA,
|
|
@@ -564,4 +585,4 @@ export const SERVICE_STATUS_SCHEMA = objectSchema({
|
|
|
564
585
|
lastAction: STRING_SCHEMA,
|
|
565
586
|
actionError: STRING_SCHEMA,
|
|
566
587
|
network: SERVICE_NETWORK_SCHEMA,
|
|
567
|
-
}, ['platform', 'path', 'installed', 'autostart', 'running', 'commandPreview', 'suggestedCommands'], { additionalProperties: true });
|
|
588
|
+
}, ['platform', 'serviceName', 'path', 'installed', 'autostart', 'running', 'commandPreview', 'suggestedCommands'], { additionalProperties: true });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const PROCESS_NODE_SCHEMA: Record<string, unknown>;
|
|
2
|
+
export declare const FLEET_SNAPSHOT_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
3
|
+
export declare const FLEET_LIST_INPUT_SCHEMA: Record<string, unknown>;
|
|
4
|
+
export declare const FLEET_LIST_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
5
|
+
export declare const WORKSPACE_CHECKPOINT_SCHEMA: Record<string, unknown>;
|
|
6
|
+
export declare const CHECKPOINTS_LIST_INPUT_SCHEMA: Record<string, unknown>;
|
|
7
|
+
export declare const CHECKPOINTS_LIST_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
8
|
+
export declare const CHECKPOINTS_CREATE_INPUT_SCHEMA: Record<string, unknown>;
|
|
9
|
+
export declare const CHECKPOINTS_CREATE_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
10
|
+
export declare const CHECKPOINT_DIFF_SCHEMA: Record<string, unknown>;
|
|
11
|
+
export declare const CHECKPOINTS_DIFF_INPUT_SCHEMA: Record<string, unknown>;
|
|
12
|
+
export declare const CHECKPOINTS_DIFF_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
13
|
+
export declare const CHECKPOINT_RESTORE_RESULT_SCHEMA: Record<string, unknown>;
|
|
14
|
+
export declare const CHECKPOINTS_RESTORE_INPUT_SCHEMA: Record<string, unknown>;
|
|
15
|
+
export declare const CHECKPOINTS_RESTORE_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
16
|
+
export declare const SESSIONS_SEARCH_INPUT_SCHEMA: Record<string, unknown>;
|
|
17
|
+
export declare const SESSIONS_SEARCH_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
18
|
+
//# sourceMappingURL=operator-contract-schemas-fleet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-contract-schemas-fleet.d.ts","sourceRoot":"","sources":["../../../src/platform/control-plane/operator-contract-schemas-fleet.ts"],"names":[],"mappings":"AAoFA,eAAO,MAAM,mBAAmB,yBAkB8E,CAAC;AAE/G,eAAO,MAAM,4BAA4B,yBAKa,CAAC;AAEvD,eAAO,MAAM,uBAAuB,yBAK9B,CAAC;AAEP,eAAO,MAAM,wBAAwB,yBAKC,CAAC;AAKvC,eAAO,MAAM,2BAA2B,yBAWqD,CAAC;AAE9F,eAAO,MAAM,6BAA6B,yBAIpC,CAAC;AAEP,eAAO,MAAM,8BAA8B,yBAExB,CAAC;AAEpB,eAAO,MAAM,+BAA+B,yBAOhC,CAAC;AAEb,eAAO,MAAM,gCAAgC,yBAGnB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,yBAMe,CAAC;AAEnD,eAAO,MAAM,6BAA6B,yBAGjC,CAAC;AAEV,eAAO,MAAM,8BAA8B,yBAE/B,CAAC;AAEb,eAAO,MAAM,gCAAgC,yBAK8B,CAAC;AAE5E,eAAO,MAAM,gCAAgC,yBAInC,CAAC;AAEX,eAAO,MAAM,iCAAiC,yBAEhC,CAAC;AAEf,eAAO,MAAM,4BAA4B,yBASnC,CAAC;AAEP,eAAO,MAAM,6BAA6B,yBAIf,CAAC"}
|