@pellux/goodvibes-sdk 0.38.0 → 1.1.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 +4468 -916
- 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 +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/orchestrator-runner.d.ts +16 -3
- package/dist/platform/agents/orchestrator-runner.d.ts.map +1 -1
- package/dist/platform/agents/orchestrator-runner.js +20 -6
- package/dist/platform/agents/orchestrator.d.ts +42 -10
- package/dist/platform/agents/orchestrator.d.ts.map +1 -1
- package/dist/platform/agents/orchestrator.js +68 -20
- 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 +88 -3
- package/dist/platform/agents/turn-knowledge-injection.d.ts.map +1 -1
- package/dist/platform/agents/turn-knowledge-injection.js +147 -30
- 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 +24 -1
- package/dist/platform/agents/wrfc-controller.d.ts.map +1 -1
- package/dist/platform/agents/wrfc-controller.js +161 -35
- 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-branching.d.ts +66 -0
- package/dist/platform/companion/companion-chat-branching.d.ts.map +1 -0
- package/dist/platform/companion/companion-chat-branching.js +142 -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 +91 -23
- package/dist/platform/companion/companion-chat-manager.d.ts.map +1 -1
- package/dist/platform/companion/companion-chat-manager.js +195 -223
- 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 +113 -4
- package/dist/platform/companion/companion-chat-turn-execution.d.ts +61 -0
- package/dist/platform/companion/companion-chat-turn-execution.d.ts.map +1 -0
- package/dist/platform/companion/companion-chat-turn-execution.js +107 -0
- package/dist/platform/companion/companion-chat-types.d.ts +67 -0
- package/dist/platform/companion/companion-chat-types.d.ts.map +1 -1
- 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 +9 -0
- package/dist/platform/config/manager.d.ts.map +1 -1
- package/dist/platform/config/manager.js +21 -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-domain-runtime.d.ts +8 -0
- package/dist/platform/config/schema-domain-runtime.d.ts.map +1 -1
- package/dist/platform/config/schema-domain-runtime.js +32 -0
- package/dist/platform/config/schema-types.d.ts +21 -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 +8 -1
- package/dist/platform/control-plane/index.d.ts.map +1 -1
- package/dist/platform/control-plane/index.js +8 -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 +176 -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-push.d.ts +30 -0
- package/dist/platform/control-plane/method-catalog-push.d.ts.map +1 -0
- package/dist/platform/control-plane/method-catalog-push.js +80 -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-runtime.d.ts.map +1 -1
- package/dist/platform/control-plane/method-catalog-runtime.js +83 -1
- 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 +34 -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 +37 -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 +100 -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/push.d.ts +26 -0
- package/dist/platform/control-plane/routes/push.d.ts.map +1 -0
- package/dist/platform/control-plane/routes/push.js +104 -0
- package/dist/platform/control-plane/routes/register-gateway-verb-groups.d.ts +31 -0
- package/dist/platform/control-plane/routes/register-gateway-verb-groups.d.ts.map +1 -0
- package/dist/platform/control-plane/routes/register-gateway-verb-groups.js +16 -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/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 +1 -0
- package/dist/platform/core/index.d.ts.map +1 -1
- package/dist/platform/core/index.js +1 -0
- package/dist/platform/core/orchestrator-runtime.d.ts +23 -3
- 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 +13 -6
- package/dist/platform/core/orchestrator-turn-loop.d.ts.map +1 -1
- package/dist/platform/core/orchestrator-turn-loop.js +29 -22
- package/dist/platform/core/orchestrator.d.ts +16 -10
- package/dist/platform/core/orchestrator.d.ts.map +1 -1
- package/dist/platform/core/orchestrator.js +23 -8
- 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 +39 -0
- package/dist/platform/core/plan-proposal.d.ts.map +1 -1
- 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 +69 -0
- package/dist/platform/daemon/boot.d.ts.map +1 -0
- package/dist/platform/daemon/boot.js +61 -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 +15 -6
- package/dist/platform/daemon/facade.d.ts.map +1 -1
- package/dist/platform/daemon/facade.js +48 -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 +2 -1
- package/dist/platform/daemon/http/router.d.ts.map +1 -1
- package/dist/platform/daemon/http/router.js +42 -40
- 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/http/webui-serving.d.ts +68 -0
- package/dist/platform/daemon/http/webui-serving.d.ts.map +1 -0
- package/dist/platform/daemon/http/webui-serving.js +230 -0
- 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 +1 -1
- 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 +2 -2
- package/dist/platform/orchestration/cancellation.d.ts +2 -2
- package/dist/platform/orchestration/controller-compat.d.ts +16 -3
- package/dist/platform/orchestration/controller-compat.d.ts.map +1 -1
- package/dist/platform/orchestration/controller-compat.js +18 -4
- package/dist/platform/orchestration/dirty-guard.js +1 -1
- package/dist/platform/orchestration/engine.d.ts +26 -1
- package/dist/platform/orchestration/engine.d.ts.map +1 -1
- package/dist/platform/orchestration/engine.js +229 -25
- package/dist/platform/orchestration/index.d.ts +6 -4
- package/dist/platform/orchestration/index.d.ts.map +1 -1
- package/dist/platform/orchestration/index.js +3 -2
- package/dist/platform/orchestration/persistence.d.ts.map +1 -1
- package/dist/platform/orchestration/persistence.js +6 -3
- package/dist/platform/orchestration/phase-runner.d.ts +33 -6
- package/dist/platform/orchestration/phase-runner.d.ts.map +1 -1
- package/dist/platform/orchestration/phase-runner.js +98 -25
- 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 +20 -1
- package/dist/platform/orchestration/scheduler.d.ts.map +1 -1
- package/dist/platform/orchestration/scheduler.js +16 -0
- package/dist/platform/orchestration/types.d.ts +289 -4
- package/dist/platform/orchestration/types.d.ts.map +1 -1
- package/dist/platform/orchestration/types.js +32 -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/push/delivery.d.ts +48 -0
- package/dist/platform/push/delivery.d.ts.map +1 -0
- package/dist/platform/push/delivery.js +117 -0
- package/dist/platform/push/encryption.d.ts +41 -0
- package/dist/platform/push/encryption.d.ts.map +1 -0
- package/dist/platform/push/encryption.js +82 -0
- package/dist/platform/push/index.d.ts +17 -0
- package/dist/platform/push/index.d.ts.map +1 -0
- package/dist/platform/push/index.js +10 -0
- package/dist/platform/push/service.d.ts +75 -0
- package/dist/platform/push/service.d.ts.map +1 -0
- package/dist/platform/push/service.js +95 -0
- package/dist/platform/push/subscription-store.d.ts +50 -0
- package/dist/platform/push/subscription-store.d.ts.map +1 -0
- package/dist/platform/push/subscription-store.js +123 -0
- package/dist/platform/push/types.d.ts +68 -0
- package/dist/platform/push/types.d.ts.map +1 -0
- package/dist/platform/push/types.js +13 -0
- package/dist/platform/push/vapid.d.ts +54 -0
- package/dist/platform/push/vapid.d.ts.map +1 -0
- package/dist/platform/push/vapid.js +113 -0
- 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/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 +39 -1
- package/dist/platform/runtime/fleet/adapters/agent.d.ts +2 -2
- package/dist/platform/runtime/fleet/adapters/agent.d.ts.map +1 -1
- package/dist/platform/runtime/fleet/adapters/agent.js +4 -4
- package/dist/platform/runtime/fleet/adapters/automation.d.ts +1 -1
- package/dist/platform/runtime/fleet/adapters/automation.js +1 -1
- package/dist/platform/runtime/fleet/adapters/code-index.d.ts +1 -1
- package/dist/platform/runtime/fleet/adapters/code-index.js +1 -1
- package/dist/platform/runtime/fleet/adapters/orchestration.d.ts +40 -18
- package/dist/platform/runtime/fleet/adapters/orchestration.d.ts.map +1 -1
- package/dist/platform/runtime/fleet/adapters/orchestration.js +138 -34
- package/dist/platform/runtime/fleet/adapters/schedule.d.ts +4 -4
- package/dist/platform/runtime/fleet/adapters/schedule.js +4 -4
- package/dist/platform/runtime/fleet/adapters/trigger.d.ts +3 -4
- package/dist/platform/runtime/fleet/adapters/trigger.d.ts.map +1 -1
- package/dist/platform/runtime/fleet/adapters/trigger.js +3 -4
- package/dist/platform/runtime/fleet/adapters/wrfc.d.ts +13 -0
- package/dist/platform/runtime/fleet/adapters/wrfc.d.ts.map +1 -1
- package/dist/platform/runtime/fleet/adapters/wrfc.js +49 -2
- package/dist/platform/runtime/fleet/registry.d.ts +7 -7
- package/dist/platform/runtime/fleet/registry.d.ts.map +1 -1
- package/dist/platform/runtime/fleet/registry.js +41 -7
- package/dist/platform/runtime/fleet/types.d.ts +9 -9
- package/dist/platform/runtime/fleet/types.d.ts.map +1 -1
- package/dist/platform/runtime/memory-spine/client.d.ts +127 -0
- package/dist/platform/runtime/memory-spine/client.d.ts.map +1 -0
- package/dist/platform/runtime/memory-spine/client.js +113 -0
- package/dist/platform/runtime/memory-spine/index.d.ts +11 -0
- package/dist/platform/runtime/memory-spine/index.d.ts.map +1 -0
- package/dist/platform/runtime/memory-spine/index.js +10 -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/services.d.ts +11 -9
- package/dist/platform/runtime/services.d.ts.map +1 -1
- package/dist/platform/runtime/services.js +24 -9
- 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.js +1 -1
- package/dist/platform/state/code-index-db.d.ts +1 -1
- 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.map +1 -1
- package/dist/platform/state/code-index-store.js +11 -3
- package/dist/platform/state/index.d.ts +8 -0
- package/dist/platform/state/index.d.ts.map +1 -1
- package/dist/platform/state/index.js +4 -0
- package/dist/platform/state/memory-recall-contract.d.ts +118 -0
- package/dist/platform/state/memory-recall-contract.d.ts.map +1 -0
- package/dist/platform/state/memory-recall-contract.js +170 -0
- package/dist/platform/state/memory-registry.d.ts +8 -0
- package/dist/platform/state/memory-registry.d.ts.map +1 -1
- package/dist/platform/state/memory-registry.js +10 -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.map +1 -1
- package/dist/platform/state/memory-vector-store.js +14 -3
- 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 +1 -1
- package/dist/platform/state/sqlite-vec-loader.js +1 -1
- 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 +22 -10
- package/dist/platform/tools/agent/manager.d.ts.map +1 -1
- package/dist/platform/tools/agent/manager.js +13 -7
- 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 +27 -10
- package/dist/platform/tools/exec/schema.d.ts +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/platform/tools/registry.js +1 -1
- 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 +1 -1
- package/dist/platform/utils/request-body.d.ts.map +1 -1
- package/dist/platform/utils/request-body.js +50 -5
- package/dist/platform/version.js +1 -1
- package/package.json +25 -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
|
@@ -2,6 +2,7 @@ import { logger } from '../utils/logger.js';
|
|
|
2
2
|
import { jsonErrorResponse } from './http/error-response.js';
|
|
3
3
|
import { summarizeError } from '../utils/error-display.js';
|
|
4
4
|
import { AgentManager } from '../tools/agent/index.js';
|
|
5
|
+
import { discoverLegacySessionSources, importLegacySessionStores } from '../control-plane/index.js';
|
|
5
6
|
import {} from '../runtime/remote/index.js';
|
|
6
7
|
import { isSurfaceDeliveryEnabled } from './surface-policy.js';
|
|
7
8
|
import { AgentTaskAdapter } from '../runtime/tasks/adapters/agent-adapter.js';
|
|
@@ -13,13 +14,10 @@ import { readAutomationReasoningEffort, readAutomationWakeMode, readExternalCont
|
|
|
13
14
|
import { requirePortAvailable } from './port-check.js';
|
|
14
15
|
import { resolveHostBinding } from './host-resolver.js';
|
|
15
16
|
import { createHostModeRestartWatcher } from './host-mode-watcher.js';
|
|
16
|
-
//
|
|
17
|
-
// DaemonServer
|
|
18
|
-
// ---------------------------------------------------------------------------
|
|
17
|
+
// --- DaemonServer ---
|
|
19
18
|
/**
|
|
20
|
-
* DaemonServer — HTTP task server
|
|
21
|
-
*
|
|
22
|
-
* Enable via: danger.daemon = true in config.
|
|
19
|
+
* DaemonServer — HTTP task server. Enabled by default via `daemon.enabled`
|
|
20
|
+
* (loopback-bound), resolved via resolveDaemonEnabled.
|
|
23
21
|
* All routes require Bearer token auth (set via enable()).
|
|
24
22
|
* POST /task — submit a task; returns agentId.
|
|
25
23
|
* GET /task/:id — returns agent status.
|
|
@@ -145,8 +143,7 @@ export class DaemonServer {
|
|
|
145
143
|
handleApprovalAction: (approvalId, action, req) => this.handleApprovalAction(approvalId, action, req),
|
|
146
144
|
tlsState: () => this.tlsState,
|
|
147
145
|
swapManager: this.config.swapManager ?? null,
|
|
148
|
-
// Resolve companion-chat defaults from the live ProviderRegistry
|
|
149
|
-
// creation uses the current route, not a snapshot captured at startup.
|
|
146
|
+
// Resolve companion-chat defaults from the live ProviderRegistry (current route, not a startup snapshot).
|
|
150
147
|
resolveDefaultProviderModel: () => {
|
|
151
148
|
try {
|
|
152
149
|
const current = resolved.runtimeServices.providerRegistry.getCurrentModel();
|
|
@@ -167,8 +164,7 @@ export class DaemonServer {
|
|
|
167
164
|
this.httpRouter = collaborators.httpRouter;
|
|
168
165
|
this.providerRuntime = collaborators.providerRuntime;
|
|
169
166
|
this.builtinChannels = collaborators.builtinChannels;
|
|
170
|
-
// Wire AgentTaskAdapter to the RuntimeEventBus so task records reach
|
|
171
|
-
// terminal states when their backing agent finishes.
|
|
167
|
+
// Wire AgentTaskAdapter to the RuntimeEventBus so task records reach terminal states on agent finish.
|
|
172
168
|
this.agentTaskAdapter = new AgentTaskAdapter(this.runtimeStore);
|
|
173
169
|
this.agentTaskAdapterUnsub = this.agentTaskAdapter.attachRuntimeBus(this.runtimeBus);
|
|
174
170
|
// Mark any tasks that were running at startup as aborted after daemon restart.
|
|
@@ -191,13 +187,13 @@ export class DaemonServer {
|
|
|
191
187
|
return this.controlPlaneGateway.listRecentEvents(limit);
|
|
192
188
|
}
|
|
193
189
|
/**
|
|
194
|
-
* Enable the daemon.
|
|
195
|
-
* The
|
|
196
|
-
*
|
|
190
|
+
* Enable the daemon. Caller passes the resolved enable decision (from
|
|
191
|
+
* resolveDaemonEnabled). The token authenticates all requests. Returns false
|
|
192
|
+
* if the passed-in flag forbids it.
|
|
197
193
|
*/
|
|
198
194
|
enable(dangerConfig, token) {
|
|
199
195
|
if (!dangerConfig.daemon) {
|
|
200
|
-
logger.info('DaemonServer.enable:
|
|
196
|
+
logger.info('DaemonServer.enable: daemon disabled by config (daemon.enabled=false) — not enabling');
|
|
201
197
|
return false;
|
|
202
198
|
}
|
|
203
199
|
this.enabled = true;
|
|
@@ -205,12 +201,23 @@ export class DaemonServer {
|
|
|
205
201
|
this.controlPlaneGateway.setServerState({ enabled: true, host: this.host, port: this.port });
|
|
206
202
|
return true;
|
|
207
203
|
}
|
|
204
|
+
/** Bound TCP port after {@link start} (resolves a `port: 0` request to the real port). */
|
|
205
|
+
get boundPort() {
|
|
206
|
+
const served = this.server?.port;
|
|
207
|
+
return typeof served === 'number' ? served : this.port;
|
|
208
|
+
}
|
|
209
|
+
/** The host the daemon is bound to. */
|
|
210
|
+
get boundHost() { return this.host; }
|
|
211
|
+
/** The daemon's shared approval broker — the SAME broker the HTTP approvals routes resolve through. Exposed so embedders and boot-factory proof tests can seed/inspect approvals (bridge an external UI, or prove per-hunk approve/deny over the live wire). */
|
|
212
|
+
get approvals() { return this.approvalBroker; }
|
|
213
|
+
/** The daemon's canonical single-writer memory registry — the SAME store the HTTP memory routes serve. Exposed so embedders and boot-factory proof tests can read back a wire write as a direct canonical-store read. */
|
|
214
|
+
get memory() { return this.runtimeServices.memoryRegistry; }
|
|
208
215
|
/**
|
|
209
216
|
* Start the daemon. Refuses to start if not explicitly enabled.
|
|
210
217
|
*/
|
|
211
218
|
async start() {
|
|
212
219
|
if (!this.enabled) {
|
|
213
|
-
logger.info('Daemon mode is disabled.
|
|
220
|
+
logger.info('Daemon mode is disabled (daemon.enabled=false). It is on by default.');
|
|
214
221
|
return;
|
|
215
222
|
}
|
|
216
223
|
if (this.authToken === null) {
|
|
@@ -285,6 +292,14 @@ export class DaemonServer {
|
|
|
285
292
|
},
|
|
286
293
|
},
|
|
287
294
|
});
|
|
295
|
+
// Boot precondition: fold legacy stores into the home store before the broker serves (idempotent).
|
|
296
|
+
await importLegacySessionStores({
|
|
297
|
+
homeStorePath: this.runtimeServices.shellPaths.resolveUserPath('control-plane', 'sessions.json'),
|
|
298
|
+
sources: discoverLegacySessionSources({
|
|
299
|
+
projectRoot: this.runtimeServices.shellPaths.workingDirectory,
|
|
300
|
+
companionSessionsDir: this.runtimeServices.shellPaths.resolveUserPath('companion-chat', 'sessions'), // injected home
|
|
301
|
+
}),
|
|
302
|
+
}).catch((error) => logger.warn('DaemonServer: legacy session import failed', { error: summarizeError(error) }));
|
|
288
303
|
await Promise.all([
|
|
289
304
|
this.sessionBroker.start(),
|
|
290
305
|
this.approvalBroker.start(),
|
|
@@ -293,19 +308,18 @@ export class DaemonServer {
|
|
|
293
308
|
this.distributedRuntime.start(),
|
|
294
309
|
]);
|
|
295
310
|
await this.providerRuntime.startConfigured();
|
|
296
|
-
// Load persisted companion sessions after providers are configured.
|
|
297
311
|
await this.companionChatManager.init();
|
|
312
|
+
// Init the canonical memory store so the daemon is a live single-writer memory service on accept (memory.records.add would else throw "not initialized" on a cold store).
|
|
313
|
+
await this.runtimeServices.memoryStore.init();
|
|
298
314
|
if (this.replyPoller === null) {
|
|
299
|
-
// Poll every 2 s for surface replies
|
|
300
|
-
//
|
|
301
|
-
// below a perceptible threshold while still batching concurrent replies.
|
|
315
|
+
// Poll every 2 s for asynchronously-resolved surface replies; short interval
|
|
316
|
+
// keeps companion latency low while batching concurrent replies.
|
|
302
317
|
this.replyPoller = setInterval(() => {
|
|
303
318
|
void this.pollPendingSurfaceReplies().catch((error) => {
|
|
304
319
|
logger.warn('DaemonServer: surface reply poll failed', { error: summarizeError(error) });
|
|
305
320
|
});
|
|
306
321
|
}, 2_000);
|
|
307
|
-
// unref()
|
|
308
|
-
// alive if all other async work has completed — same pattern as animInterval.
|
|
322
|
+
// unref() so this timer never keeps the event loop alive past shutdown.
|
|
309
323
|
this.replyPoller.unref?.();
|
|
310
324
|
}
|
|
311
325
|
this.surfaceRegistry.syncConfiguredSurfaces();
|
|
@@ -387,16 +401,15 @@ export class DaemonServer {
|
|
|
387
401
|
async stop() {
|
|
388
402
|
if (this.server === null)
|
|
389
403
|
return;
|
|
390
|
-
// Tear down config watcher only on intentional stop
|
|
391
|
-
//
|
|
392
|
-
// config changes that arrive between stop() and the subsequent start() can be
|
|
393
|
-
// captured by the dirty flag.
|
|
404
|
+
// Tear down config watcher only on intentional stop; during a restart cycle
|
|
405
|
+
// (_restarting) it must stay active so mid-restart changes hit the dirty flag.
|
|
394
406
|
if (!this._restarting) {
|
|
395
407
|
this._configWatchUnsub?.();
|
|
396
408
|
this._configWatchUnsub = null;
|
|
397
409
|
}
|
|
398
|
-
// Synchronous pre-stop teardown
|
|
399
|
-
this.
|
|
410
|
+
// Synchronous pre-stop teardown. Only stop the heartbeat watcher when start() engaged it (registered solely behind `watchers.enabled`); stopWatcher() runs requireFeatureGate('watcher-framework') and THROWS when that gate is off, which would break a clean shutdown of a watchers-disabled daemon.
|
|
411
|
+
if (this.configManager.get('watchers.enabled'))
|
|
412
|
+
this.watcherRegistry.stopWatcher('daemon-heartbeat', 'daemon-stopped');
|
|
400
413
|
if (this.replyPoller !== null) {
|
|
401
414
|
clearInterval(this.replyPoller);
|
|
402
415
|
this.replyPoller = null;
|
|
@@ -406,9 +419,8 @@ export class DaemonServer {
|
|
|
406
419
|
this.approvalBrokerUnsubscribe = null;
|
|
407
420
|
this.httpRouter.dispose();
|
|
408
421
|
this.companionChatManager.dispose();
|
|
409
|
-
// Stop services
|
|
410
|
-
// channelPolicy,
|
|
411
|
-
// when the server socket closes. We stop what we can in reverse start order.
|
|
422
|
+
// Stop services with async teardown in reverse start order (sessionBroker,
|
|
423
|
+
// approvalBroker, channelPolicy, distributedRuntime end when the socket closes).
|
|
412
424
|
this.providerRuntime.stopAll();
|
|
413
425
|
this.automationManager.stop();
|
|
414
426
|
// Tear down the adapter bus subscription and session broker GC interval.
|
|
@@ -431,9 +443,8 @@ export class DaemonServer {
|
|
|
431
443
|
return; // idempotent
|
|
432
444
|
const restart = () => {
|
|
433
445
|
if (this._restarting) {
|
|
434
|
-
//
|
|
435
|
-
//
|
|
436
|
-
// restart IIFE, so isRunning may be false even while a restart is in progress.
|
|
446
|
+
// Change arrived mid-restart — queue a second cycle (check _restarting
|
|
447
|
+
// before isRunning: stop() runs synchronously inside the restart IIFE).
|
|
437
448
|
this._restartDirty = true;
|
|
438
449
|
return;
|
|
439
450
|
}
|
|
@@ -467,10 +478,8 @@ export class DaemonServer {
|
|
|
467
478
|
}
|
|
468
479
|
})();
|
|
469
480
|
};
|
|
470
|
-
// getIsRunning
|
|
471
|
-
//
|
|
472
|
-
// dirty-flag path inside `restart`. When the server is intentionally stopped
|
|
473
|
-
// (not mid-restart) isRunning and _restarting are both false.
|
|
481
|
+
// getIsRunning also returns true mid-restart (_restarting) so changes arriving
|
|
482
|
+
// then reach the dirty-flag path; both are false on an intentional stop.
|
|
474
483
|
const watcher = createHostModeRestartWatcher({
|
|
475
484
|
configManager: this.configManager,
|
|
476
485
|
keys: ['controlPlane.hostMode', 'controlPlane.host', 'controlPlane.port'],
|
|
@@ -485,9 +494,7 @@ export class DaemonServer {
|
|
|
485
494
|
get isRunning() {
|
|
486
495
|
return this.server !== null;
|
|
487
496
|
}
|
|
488
|
-
//
|
|
489
|
-
// Auth
|
|
490
|
-
// -------------------------------------------------------------------------
|
|
497
|
+
// --- Auth ---
|
|
491
498
|
extractAuthToken(req) {
|
|
492
499
|
return this.controlPlaneHelper.extractAuthToken(req);
|
|
493
500
|
}
|
|
@@ -530,9 +537,7 @@ export class DaemonServer {
|
|
|
530
537
|
async invokeGatewayMethodCall(input) {
|
|
531
538
|
return await this.controlPlaneHelper.invokeGatewayMethodCall(input);
|
|
532
539
|
}
|
|
533
|
-
//
|
|
534
|
-
// Request handling
|
|
535
|
-
// -------------------------------------------------------------------------
|
|
540
|
+
// --- Request handling ---
|
|
536
541
|
async handleRequest(req) {
|
|
537
542
|
return await this.httpRouter.handleRequest(req);
|
|
538
543
|
}
|
|
@@ -27,6 +27,7 @@ export declare function buildChannelRouteContext(input: {
|
|
|
27
27
|
export declare function buildSystemRouteContext(input: {
|
|
28
28
|
readonly approvalBroker: ApprovalBroker;
|
|
29
29
|
readonly configManager: ConfigManager;
|
|
30
|
+
readonly credentialStatus: DaemonSystemRouteContext['credentialStatus'];
|
|
30
31
|
readonly integrationHelpers: IntegrationHelperService | null;
|
|
31
32
|
readonly inspectInboundTls: (surface: 'controlPlane' | 'httpListener') => unknown;
|
|
32
33
|
readonly inspectOutboundTls: () => unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-route-contexts.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/router-route-contexts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEjI,OAAO,KAAK,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KA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GAAG,EAAE,MAAM,KAAK,UAAU,GAAG,QAAQ,CAAC;IAC/D,QAAQ,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC7D,QAAQ,CAAC,6BAA6B,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,UAAU,CAAC,2BAA2B,CAAC,+BAA+B,CAAC,CAAC,CAAC;IACvI,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;CAC3D,GAAG,2BAA2B,CAkI9B;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,cAAc,EAAE,qBAAqB,CAAC;IAC/C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,UAAU,GAAG,QAAQ,CAAC,CAAC;IAC7E,QAAQ,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC7D,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC7C,GAAG,uBAAuB,CAwD1B;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,6BAA6B,GAAG,6BAA6B,CAEhH"}
|
|
@@ -42,6 +42,7 @@ export function buildSystemRouteContext(input) {
|
|
|
42
42
|
return {
|
|
43
43
|
approvalBroker: input.approvalBroker,
|
|
44
44
|
configManager: input.configManager,
|
|
45
|
+
credentialStatus: input.credentialStatus,
|
|
45
46
|
integrationHelpers: input.integrationHelpers,
|
|
46
47
|
inspectInboundTls: input.inspectInboundTls,
|
|
47
48
|
inspectOutboundTls: input.inspectOutboundTls,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* router-session-broker-adapter.ts
|
|
3
|
+
*
|
|
4
|
+
* Adapts the real `SharedSessionBroker` to the narrow structural shape
|
|
5
|
+
* `createDaemonRuntimeRouteHandlers` (runtime-routes.ts) expects on its
|
|
6
|
+
* `sessionBroker` context field. Split out of router.ts (see CHANGELOG 1.0.0) to stay under
|
|
7
|
+
* the repo's grandfathered line-cap ceiling (see scripts/check-line-cap.ts) —
|
|
8
|
+
* this is a pure file-organization move, not a behavior change.
|
|
9
|
+
*/
|
|
10
|
+
import type { SharedSessionBroker } from '../../control-plane/index.js';
|
|
11
|
+
import type { DaemonRuntimeRouteContext } from './runtime-route-types.js';
|
|
12
|
+
export declare function buildRouterSessionBrokerAdapter(sessionBroker: SharedSessionBroker): DaemonRuntimeRouteContext['sessionBroker'];
|
|
13
|
+
//# sourceMappingURL=router-session-broker-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-session-broker-adapter.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/router-session-broker-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,mBAAmB,GACjC,yBAAyB,CAAC,eAAe,CAAC,CAsC5C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function buildRouterSessionBrokerAdapter(sessionBroker) {
|
|
2
|
+
return {
|
|
3
|
+
start: () => sessionBroker.start(),
|
|
4
|
+
submitMessage: (input) => sessionBroker.submitMessage(input),
|
|
5
|
+
steerMessage: (input) => sessionBroker.steerMessage(input),
|
|
6
|
+
followUpMessage: (input) => sessionBroker.followUpMessage(input),
|
|
7
|
+
bindAgent: async (sessionId, agentId) => {
|
|
8
|
+
await sessionBroker.bindAgent(sessionId, agentId);
|
|
9
|
+
},
|
|
10
|
+
createSession: (input) => sessionBroker.createSession(input),
|
|
11
|
+
register: (input) => sessionBroker.register(input),
|
|
12
|
+
getSession: (sessionId) => sessionBroker.getSession(sessionId),
|
|
13
|
+
getMessages: (sessionId, limit) => sessionBroker.getMessages(sessionId, limit),
|
|
14
|
+
getInputs: (sessionId, limit) => sessionBroker.getInputs(sessionId, limit),
|
|
15
|
+
getInputsSince: (sessionId, options) => sessionBroker.getInputsSince(sessionId, options),
|
|
16
|
+
markInputDelivered: (sessionId, inputId, options) => sessionBroker.markInputDelivered(sessionId, inputId, options),
|
|
17
|
+
closeSession: (sessionId) => sessionBroker.closeSession(sessionId),
|
|
18
|
+
reopenSession: (sessionId) => sessionBroker.reopenSession(sessionId),
|
|
19
|
+
detachParticipant: (sessionId, surfaceId) => sessionBroker.detachParticipant(sessionId, surfaceId),
|
|
20
|
+
deleteSession: (sessionId) => sessionBroker.deleteSession(sessionId),
|
|
21
|
+
cancelInput: (sessionId, inputId) => sessionBroker.cancelInput(sessionId, inputId),
|
|
22
|
+
completeAgent: async (sessionId, agentId, message, meta) => {
|
|
23
|
+
await sessionBroker.completeAgent(sessionId, agentId, message, meta);
|
|
24
|
+
},
|
|
25
|
+
appendCompanionMessage: (sessionId, input) => sessionBroker.appendCompanionMessage(sessionId, input),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -130,7 +130,7 @@ interface DaemonHttpRouterContext {
|
|
|
130
130
|
* Without this, the production router always passes undefined and the secrets
|
|
131
131
|
* tier is permanently dead on live code paths.
|
|
132
132
|
*/
|
|
133
|
-
readonly secretsManager?: Pick<import('../../config/secrets.js').SecretsManager, 'get' | 'set' | 'getGlobalHome'> | null | undefined;
|
|
133
|
+
readonly secretsManager?: Pick<import('../../config/secrets.js').SecretsManager, 'get' | 'set' | 'getGlobalHome' | 'list' | 'listDetailed'> | null | undefined;
|
|
134
134
|
readonly trySpawnAgent: (input: Parameters<AgentManager['spawn']>[0], logLabel?: string, sessionId?: string) => import('../../tools/agent/index.js').AgentRecord | Response;
|
|
135
135
|
}
|
|
136
136
|
export declare class DaemonHttpRouter {
|
|
@@ -143,6 +143,7 @@ export declare class DaemonHttpRouter {
|
|
|
143
143
|
dispose(): void;
|
|
144
144
|
private getConfigValue;
|
|
145
145
|
handleRequest(req: Request): Promise<Response>;
|
|
146
|
+
private dispatchAuthedRequest;
|
|
146
147
|
/**
|
|
147
148
|
* Dispatches routes that are exempt from the auth gate: login, remote-peer
|
|
148
149
|
* handshake, webhooks, and the control-plane web UI. Extracted from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAIL,KAAK,iBAAiB,EAGvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAC7G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAMpE,OAAO,K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,EAClB,UAAU,GACN,KAAK,GACL,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,eAAe,GACf,UAAU,GACV,aAAa,GACb,QAAQ,GACR,UAAU,GACV,WAAW,GACX,UAAU,GACV,SAAS,GACT,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,QAAgB,GACnB,QAAQ;YAWG,WAAW;YA4CX,mBAAmB;IAQ3B,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAInD,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIrD,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIlD,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;CAG5D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isValidConfigKey } from '../../config/schema.js';
|
|
2
|
+
import { createCredentialStatusProvider } from '../../config/credential-status.js';
|
|
2
3
|
import { buildOperatorSessionCookie, OPERATOR_SESSION_COOKIE_NAME } from '../../security/http-auth.js';
|
|
3
4
|
import { normalizeAtSchedule, normalizeCronSchedule, normalizeEverySchedule, } from '../../automation/index.js';
|
|
4
5
|
import { buildOperatorContract } from '../../control-plane/operator-contract.js';
|
|
@@ -14,6 +15,7 @@ import { createDaemonKnowledgeRouteHandlers } from './knowledge-routes.js';
|
|
|
14
15
|
import { createDaemonMediaRouteHandlers } from './media-routes.js';
|
|
15
16
|
import { createDaemonRemoteRouteHandlers, handleRemotePairRequest, handleRemotePairVerify, handleRemotePeerHeartbeat, handleRemotePeerWorkPull, handleRemotePeerWorkComplete, } from './remote-routes.js';
|
|
16
17
|
import { createDaemonRuntimeRouteHandlers } from './runtime-routes.js';
|
|
18
|
+
import { buildRouterSessionBrokerAdapter } from './router-session-broker-adapter.js';
|
|
17
19
|
import { snapshotMetrics } from '../../runtime/metrics.js';
|
|
18
20
|
import { createDaemonControlRouteHandlers } from './control-routes.js';
|
|
19
21
|
import { createDaemonIntegrationRouteHandlers } from './integration-routes.js';
|
|
@@ -34,6 +36,7 @@ import { HomeGraphRoutes } from './home-graph-routes.js';
|
|
|
34
36
|
import { dispatchOpenAICompatibleRoutes } from './openai-compatible-routes.js';
|
|
35
37
|
import { ProjectPlanningRoutes } from './project-planning-routes.js';
|
|
36
38
|
import { parseDaemonJsonBody, parseDaemonJsonText, parseOptionalDaemonJsonBody, } from './router-request-body.js';
|
|
39
|
+
import { applyCorsHeaders, handleCorsPreflight, resolveWebuiServingPosture, serveWebuiBundle, } from './webui-serving.js';
|
|
37
40
|
export class DaemonHttpRouter {
|
|
38
41
|
context;
|
|
39
42
|
telemetryApi;
|
|
@@ -59,29 +62,44 @@ export class DaemonHttpRouter {
|
|
|
59
62
|
}
|
|
60
63
|
async handleRequest(req) {
|
|
61
64
|
return correlationCtx.run({ requestId: req.headers.get('x-request-id') ?? crypto.randomUUID() }, async () => {
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if (
|
|
68
|
-
return
|
|
69
|
-
category: 'authentication',
|
|
70
|
-
source: 'runtime',
|
|
71
|
-
guidance: 'Authenticate with the operator shared token or an authenticated user session before calling daemon APIs.',
|
|
72
|
-
}), { status: 401 });
|
|
65
|
+
// Opt-in cross-origin + bundle-serving posture (both default off → no CORS,
|
|
66
|
+
// no bundle, daemon behaves exactly as before). CORS preflight is answered
|
|
67
|
+
// pre-auth (a browser OPTIONS carries no credentials; only allowlisted
|
|
68
|
+
// origins are granted, never a wildcard).
|
|
69
|
+
const serving = resolveWebuiServingPosture(this.context.configManager);
|
|
70
|
+
if (serving.cors.enabled && req.method === 'OPTIONS') {
|
|
71
|
+
return applyCorsHeaders(req, handleCorsPreflight(req, serving), serving);
|
|
73
72
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
source: 'runtime',
|
|
81
|
-
guidance: 'Check the daemon API path and version. New SDK-facing routes are published under /api/v1.',
|
|
82
|
-
}), { status: 404 });
|
|
73
|
+
// Same-origin bundle serving is pre-auth: the built app is public and
|
|
74
|
+
// token-authenticates its own API calls; reserved API paths return null
|
|
75
|
+
// here (API precedence) and flow to the normal auth-gated dispatch below.
|
|
76
|
+
const asset = serving.serveBundle ? await serveWebuiBundle(req, serving) : null;
|
|
77
|
+
const response = asset ?? await this.dispatchAuthedRequest(req);
|
|
78
|
+
return serving.cors.enabled ? applyCorsHeaders(req, response, serving) : response;
|
|
83
79
|
});
|
|
84
80
|
}
|
|
81
|
+
async dispatchAuthedRequest(req) {
|
|
82
|
+
// Pre-auth routes: no auth check (login, remote-peer handshake, webhooks, control-plane web UI).
|
|
83
|
+
const preAuth = await this.dispatchPreAuthRoutes(req);
|
|
84
|
+
if (preAuth)
|
|
85
|
+
return preAuth;
|
|
86
|
+
if (!this.context.checkAuth(req)) {
|
|
87
|
+
return jsonErrorResponse(new AppError('Authentication required', 'AUTH_REQUIRED', false, {
|
|
88
|
+
category: 'authentication',
|
|
89
|
+
source: 'runtime',
|
|
90
|
+
guidance: 'Authenticate with the operator shared token or an authenticated user session before calling daemon APIs.',
|
|
91
|
+
}), { status: 401 });
|
|
92
|
+
}
|
|
93
|
+
const apiResponse = await this.dispatchApiRoutes(req);
|
|
94
|
+
if (apiResponse)
|
|
95
|
+
return apiResponse;
|
|
96
|
+
const url = new URL(req.url);
|
|
97
|
+
return jsonErrorResponse(new AppError(`Route not found: ${url.pathname}`, 'NOT_FOUND', false, {
|
|
98
|
+
category: 'not_found',
|
|
99
|
+
source: 'runtime',
|
|
100
|
+
guidance: 'Check the daemon API path and version. New SDK-facing routes are published under /api/v1.',
|
|
101
|
+
}), { status: 404 });
|
|
102
|
+
}
|
|
85
103
|
/**
|
|
86
104
|
* Dispatches routes that are exempt from the auth gate: login, remote-peer
|
|
87
105
|
* handshake, webhooks, and the control-plane web UI. Extracted from
|
|
@@ -303,6 +321,9 @@ export class DaemonHttpRouter {
|
|
|
303
321
|
...buildSystemRouteContext({
|
|
304
322
|
approvalBroker: this.context.approvalBroker,
|
|
305
323
|
configManager: this.context.configManager,
|
|
324
|
+
credentialStatus: this.context.secretsManager
|
|
325
|
+
? createCredentialStatusProvider(this.context.secretsManager)
|
|
326
|
+
: null,
|
|
306
327
|
integrationHelpers: this.context.integrationHelpers,
|
|
307
328
|
inspectInboundTls: (surface) => inspectInboundTls(this.context.configManager, surface),
|
|
308
329
|
inspectOutboundTls: () => inspectOutboundTls(this.context.configManager),
|
|
@@ -323,26 +344,7 @@ export class DaemonHttpRouter {
|
|
|
323
344
|
parseOptionalJsonBody: (request) => this.parseOptionalJsonBody(request),
|
|
324
345
|
recordApiResponse: (request, path, response) => this.recordApiResponse(request, path, response),
|
|
325
346
|
requireAdmin: (request) => this.context.requireAdmin(request),
|
|
326
|
-
sessionBroker:
|
|
327
|
-
start: () => this.context.sessionBroker.start(),
|
|
328
|
-
submitMessage: (input) => this.context.sessionBroker.submitMessage(input),
|
|
329
|
-
steerMessage: (input) => this.context.sessionBroker.steerMessage(input),
|
|
330
|
-
followUpMessage: (input) => this.context.sessionBroker.followUpMessage(input),
|
|
331
|
-
bindAgent: async (sessionId, agentId) => {
|
|
332
|
-
await this.context.sessionBroker.bindAgent(sessionId, agentId);
|
|
333
|
-
},
|
|
334
|
-
createSession: (input) => this.context.sessionBroker.createSession(input),
|
|
335
|
-
getSession: (sessionId) => this.context.sessionBroker.getSession(sessionId),
|
|
336
|
-
getMessages: (sessionId, limit) => this.context.sessionBroker.getMessages(sessionId, limit),
|
|
337
|
-
getInputs: (sessionId, limit) => this.context.sessionBroker.getInputs(sessionId, limit),
|
|
338
|
-
closeSession: (sessionId) => this.context.sessionBroker.closeSession(sessionId),
|
|
339
|
-
reopenSession: (sessionId) => this.context.sessionBroker.reopenSession(sessionId),
|
|
340
|
-
cancelInput: (sessionId, inputId) => this.context.sessionBroker.cancelInput(sessionId, inputId),
|
|
341
|
-
completeAgent: async (sessionId, agentId, message, meta) => {
|
|
342
|
-
await this.context.sessionBroker.completeAgent(sessionId, agentId, message, meta);
|
|
343
|
-
},
|
|
344
|
-
appendCompanionMessage: (sessionId, input) => this.context.sessionBroker.appendCompanionMessage(sessionId, input),
|
|
345
|
-
},
|
|
347
|
+
sessionBroker: buildRouterSessionBrokerAdapter(this.context.sessionBroker),
|
|
346
348
|
agentManager: {
|
|
347
349
|
getStatus: (agentId) => this.context.agentManager.getStatus(agentId),
|
|
348
350
|
cancel: (agentId) => this.context.agentManager.cancel(agentId),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DaemonRuntimeRouteHandlers } from '
|
|
1
|
+
import type { DaemonRuntimeRouteHandlers } from '@pellux/goodvibes-daemon-sdk';
|
|
2
2
|
import type { DaemonRuntimeRouteContext as SdkDaemonRuntimeRouteContext, AutomationSurfaceKind, JsonBody } from '@pellux/goodvibes-daemon-sdk';
|
|
3
3
|
import type { AutomationScheduleDefinition, CreateAutomationJobInput, UpdateAutomationJobInput } from '../../automation/index.js';
|
|
4
4
|
import type { ExecutionIntent } from '../../runtime/execution-intents.js';
|
|
@@ -73,7 +73,7 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
|
|
|
73
73
|
metadata?: Record<string, unknown> | undefined;
|
|
74
74
|
routing?: SharedSessionRoutingIntent | undefined;
|
|
75
75
|
}): Promise<{
|
|
76
|
-
mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'rejected';
|
|
76
|
+
mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'queued-for-surface' | 'rejected';
|
|
77
77
|
input: {
|
|
78
78
|
id: string;
|
|
79
79
|
routing?: SharedSessionRoutingIntent;
|
|
@@ -102,7 +102,7 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
|
|
|
102
102
|
routing?: SharedSessionRoutingIntent | undefined;
|
|
103
103
|
allowSpawnFallback?: boolean | undefined;
|
|
104
104
|
}): Promise<{
|
|
105
|
-
mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'rejected';
|
|
105
|
+
mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'queued-for-surface' | 'rejected';
|
|
106
106
|
input: {
|
|
107
107
|
id: string;
|
|
108
108
|
state: string;
|
|
@@ -131,7 +131,7 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
|
|
|
131
131
|
metadata?: Record<string, unknown> | undefined;
|
|
132
132
|
routing?: SharedSessionRoutingIntent | undefined;
|
|
133
133
|
}): Promise<{
|
|
134
|
-
mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'rejected';
|
|
134
|
+
mode: 'continued-live' | 'spawn' | 'queued-follow-up' | 'queued-for-surface' | 'rejected';
|
|
135
135
|
input: {
|
|
136
136
|
id: string;
|
|
137
137
|
state: string;
|
|
@@ -164,6 +164,30 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
|
|
|
164
164
|
}): Promise<{
|
|
165
165
|
id: string;
|
|
166
166
|
}>;
|
|
167
|
+
register(input: {
|
|
168
|
+
sessionId: string;
|
|
169
|
+
kind?: string | undefined;
|
|
170
|
+
project?: string | undefined;
|
|
171
|
+
title?: string | undefined;
|
|
172
|
+
participant: {
|
|
173
|
+
surfaceKind: AutomationSurfaceKind;
|
|
174
|
+
surfaceId: string;
|
|
175
|
+
externalId?: string | undefined;
|
|
176
|
+
userId?: string | undefined;
|
|
177
|
+
displayName?: string | undefined;
|
|
178
|
+
routeId?: string | undefined;
|
|
179
|
+
lastSeenAt: number;
|
|
180
|
+
};
|
|
181
|
+
reopen?: boolean | undefined;
|
|
182
|
+
}): Promise<{
|
|
183
|
+
record: {
|
|
184
|
+
id: string;
|
|
185
|
+
};
|
|
186
|
+
reopened: boolean;
|
|
187
|
+
conflict?: {
|
|
188
|
+
readonly status: 'closed';
|
|
189
|
+
} | undefined;
|
|
190
|
+
}>;
|
|
167
191
|
getSession(sessionId: string): {
|
|
168
192
|
id: string;
|
|
169
193
|
status: string;
|
|
@@ -172,12 +196,26 @@ export interface DaemonRuntimeRouteContext extends Omit<SdkDaemonRuntimeRouteCon
|
|
|
172
196
|
} | null;
|
|
173
197
|
getMessages(sessionId: string, limit: number): unknown[];
|
|
174
198
|
getInputs(sessionId: string, limit: number): unknown[];
|
|
199
|
+
getInputsSince(sessionId: string, options: {
|
|
200
|
+
state?: string | undefined;
|
|
201
|
+
since?: number | undefined;
|
|
202
|
+
limit?: number | undefined;
|
|
203
|
+
}): unknown[];
|
|
204
|
+
markInputDelivered(sessionId: string, inputId: string, options: {
|
|
205
|
+
consumed?: boolean | undefined;
|
|
206
|
+
}): Promise<unknown | null>;
|
|
175
207
|
closeSession(sessionId: string): Promise<{
|
|
176
208
|
id: string;
|
|
177
209
|
} | null>;
|
|
178
210
|
reopenSession(sessionId: string): Promise<{
|
|
179
211
|
id: string;
|
|
180
212
|
} | null>;
|
|
213
|
+
detachParticipant(sessionId: string, surfaceId: string): Promise<{
|
|
214
|
+
id: string;
|
|
215
|
+
status: string;
|
|
216
|
+
} | null>;
|
|
217
|
+
/** Hard-remove a session record + its messages/inputs (see CHANGELOG 1.0.0). Distinct from close. */
|
|
218
|
+
deleteSession(sessionId: string): Promise<'deleted' | 'not-found' | 'active'>;
|
|
181
219
|
cancelInput(sessionId: string, inputId: string): Promise<unknown | null>;
|
|
182
220
|
completeAgent(sessionId: string, agentId: string, message: string, meta: {
|
|
183
221
|
status: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-route-types.d.ts","sourceRoot":"","sources":["../../../../src/platform/daemon/http/runtime-route-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,KAAK,EAAE,yBAAyB,IAAI,4BAA4B,EAAE,qBAAqB,EAAE,QAAQ,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