@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
|
@@ -104,10 +104,32 @@ export function assertTelemetryMetricsSnapshot(value, endpoint) {
|
|
|
104
104
|
}
|
|
105
105
|
return value;
|
|
106
106
|
}
|
|
107
|
+
/** The session kinds this build knows. A response carrying anything else is
|
|
108
|
+
* from a newer/older peer; we degrade honestly rather than surface an invalid
|
|
109
|
+
* kind (mixed-version stance — docs/decisions/2026-07-05-session-wire-mixed-version.md). */
|
|
110
|
+
const KNOWN_SESSION_KINDS = new Set([
|
|
111
|
+
'tui', 'agent', 'webui', 'companion-task', 'companion-chat', 'automation',
|
|
112
|
+
]);
|
|
107
113
|
export function normalizeSharedSessionRecord(record) {
|
|
108
114
|
const candidate = record;
|
|
115
|
+
// Parse-with-backfill so a 0.38-pinned consumer reading a newer daemon's frame
|
|
116
|
+
// (and vice-versa) degrades honestly instead of carrying dishonest values:
|
|
117
|
+
// - absent/blank project → 'unknown' (the documented home-scoped default);
|
|
118
|
+
// - an unknown kind → 'tui' (documented fallback); the raw value is preserved
|
|
119
|
+
// under metadata.wireKind so nothing is silently lost.
|
|
120
|
+
const rawKind = candidate.kind;
|
|
121
|
+
const kindIsKnown = typeof rawKind === 'string' && KNOWN_SESSION_KINDS.has(rawKind);
|
|
122
|
+
const project = typeof candidate.project === 'string' && candidate.project.trim().length > 0
|
|
123
|
+
? candidate.project
|
|
124
|
+
: 'unknown';
|
|
125
|
+
const baseMetadata = (candidate.metadata && typeof candidate.metadata === 'object')
|
|
126
|
+
? candidate.metadata
|
|
127
|
+
: {};
|
|
109
128
|
return {
|
|
110
129
|
...candidate,
|
|
130
|
+
kind: kindIsKnown ? rawKind : 'tui',
|
|
131
|
+
project,
|
|
132
|
+
...(kindIsKnown ? {} : { metadata: { ...baseMetadata, wireKind: rawKind ?? null } }),
|
|
111
133
|
surfaceKinds: (candidate.surfaceKinds ?? []),
|
|
112
134
|
participants: (candidate.participants ?? []).map((participant) => ({
|
|
113
135
|
...participant,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-http-client.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/transports/daemon-http-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"daemon-http-client.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/transports/daemon-http-client.ts"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAoBV,aAAa,EAEb,oBAAoB,EAKrB,MAAM,iBAAiB,CAAC;AAibzB,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,aAAa,CA8ChF"}
|
|
@@ -41,11 +41,26 @@ function createOperatorClient(transport, events) {
|
|
|
41
41
|
return response?.session ? normalizeSharedSessionRecord(response.session) : null;
|
|
42
42
|
},
|
|
43
43
|
messages: async (sessionId, limit = 100) => (await operatorApi.sessions.messages.list(sessionId, { limit })).messages.map((entry) => normalizeSharedSessionMessage(entry)),
|
|
44
|
-
inputs: async (sessionId, limit = 100) => {
|
|
45
|
-
const response = await operatorApi.invoke('sessions.inputs.list', {
|
|
44
|
+
inputs: async (sessionId, limit = 100, options) => {
|
|
45
|
+
const response = await operatorApi.invoke('sessions.inputs.list', {
|
|
46
|
+
sessionId,
|
|
47
|
+
limit,
|
|
48
|
+
...(options?.state !== undefined ? { state: options.state } : {}),
|
|
49
|
+
...(options?.since !== undefined ? { since: options.since } : {}),
|
|
50
|
+
});
|
|
46
51
|
return (response.inputs ?? []).map((entry) => normalizeSharedSessionInput(entry));
|
|
47
52
|
},
|
|
48
53
|
ensureSession: async (input = {}) => normalizeSharedSessionRecord(assertObjectField(await operatorApi.sessions.create(buildSessionEnsureBody(input)), 'session', 'sessions.create')),
|
|
54
|
+
register: async (input) => {
|
|
55
|
+
const response = await operatorApi.invoke('sessions.register', asContractInput(input) ?? {});
|
|
56
|
+
const record = normalizeSharedSessionRecord(assertObjectField(response, 'session', 'sessions.register'));
|
|
57
|
+
const conflictRaw = response['conflict'];
|
|
58
|
+
const conflict = conflictRaw && typeof conflictRaw === 'object'
|
|
59
|
+
&& conflictRaw.status === 'closed'
|
|
60
|
+
? { status: 'closed' }
|
|
61
|
+
: undefined;
|
|
62
|
+
return { record, reopened: response['reopened'] === true, ...(conflict ? { conflict } : {}) };
|
|
63
|
+
},
|
|
49
64
|
close: async (sessionId) => {
|
|
50
65
|
const response = await withNullOnNotFound(() => operatorApi.sessions.close(sessionId));
|
|
51
66
|
return response?.session ? normalizeSharedSessionRecord(response.session) : null;
|
|
@@ -61,6 +76,14 @@ function createOperatorClient(transport, events) {
|
|
|
61
76
|
const response = await withNullOnNotFound(() => operatorApi.sessions.inputs.cancel(sessionId, inputId));
|
|
62
77
|
return response?.input ? normalizeSharedSessionInput(response.input) : null;
|
|
63
78
|
},
|
|
79
|
+
deliverInput: async (sessionId, inputId, options) => {
|
|
80
|
+
const response = await withNullOnNotFound(() => operatorApi.invoke('sessions.inputs.deliver', {
|
|
81
|
+
sessionId,
|
|
82
|
+
inputId,
|
|
83
|
+
...(options?.consumed === true ? { consumed: true } : {}),
|
|
84
|
+
}));
|
|
85
|
+
return response?.input ? normalizeSharedSessionInput(response.input) : null;
|
|
86
|
+
},
|
|
64
87
|
},
|
|
65
88
|
tasks: {
|
|
66
89
|
snapshot: async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ControlPlaneRecentEvent, ControlPlaneAuthSnapshot, SharedApprovalRecord, SharedSessionInputRecord, SharedSessionMessage, SharedSessionRecord, SharedSessionSubmission } from '../../control-plane/index.js';
|
|
2
|
-
import type { SteerSharedSessionMessageInput } from '../../control-plane/index.js';
|
|
2
|
+
import type { RegisterSharedSessionInput, SharedSessionRegisterResult, SteerSharedSessionMessageInput } from '../../control-plane/index.js';
|
|
3
3
|
import type { ProviderRuntimeSnapshot, ProviderUsageSnapshot } from '../../providers/runtime-snapshot.js';
|
|
4
4
|
import type { TelemetryAggregates, TelemetryCapabilities, TelemetryFilter, TelemetryListResponse, TelemetryRecord, TelemetryRuntimeSnapshot, TelemetrySnapshot, TelemetryViewMode } from '../telemetry/api.js';
|
|
5
5
|
import type { DistributedNodeHostContract, DistributedPendingWork, DistributedPeerKind, DistributedPeerRecord, DistributedPeerTokenRecord, DistributedRuntimePairRequest, DistributedWorkPriority } from '../remote/distributed-runtime-types.js';
|
|
@@ -44,14 +44,21 @@ export interface HttpTransportSessionsClient {
|
|
|
44
44
|
list(limit?: number): Promise<readonly SharedSessionRecord[]>;
|
|
45
45
|
get(sessionId: string): Promise<SharedSessionRecord | null>;
|
|
46
46
|
messages(sessionId: string, limit?: number): Promise<readonly SharedSessionMessage[]>;
|
|
47
|
-
inputs(sessionId: string, limit?: number
|
|
47
|
+
inputs(sessionId: string, limit?: number, options?: {
|
|
48
|
+
readonly state?: string | undefined;
|
|
49
|
+
readonly since?: number | undefined;
|
|
50
|
+
}): Promise<readonly SharedSessionInputRecord[]>;
|
|
48
51
|
ensureSession(input?: HttpSessionEnsureInput): Promise<SharedSessionRecord>;
|
|
52
|
+
register(input: RegisterSharedSessionInput): Promise<SharedSessionRegisterResult>;
|
|
49
53
|
close(sessionId: string): Promise<SharedSessionRecord | null>;
|
|
50
54
|
reopen(sessionId: string): Promise<SharedSessionRecord | null>;
|
|
51
55
|
submitMessage(sessionId: string, input: HttpSessionMessageInput): Promise<SharedSessionSubmission>;
|
|
52
56
|
steerMessage(sessionId: string, input: HttpSteerSessionMessageInput): Promise<SharedSessionSubmission>;
|
|
53
57
|
followUpMessage(sessionId: string, input: HttpSessionMessageInput): Promise<SharedSessionSubmission>;
|
|
54
58
|
cancelInput(sessionId: string, inputId: string): Promise<SharedSessionInputRecord | null>;
|
|
59
|
+
deliverInput(sessionId: string, inputId: string, options?: {
|
|
60
|
+
readonly consumed?: boolean | undefined;
|
|
61
|
+
}): Promise<SharedSessionInputRecord | null>;
|
|
55
62
|
}
|
|
56
63
|
export interface HttpTransportTasksClient {
|
|
57
64
|
snapshot(): Promise<UiTasksSnapshot>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-types.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/transports/http-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC1G,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5H,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAA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AG,SAAS,CAAC;IACtC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CACzD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,SAAS,6BAA6B,EAAE,CAAC;IAChE,QAAQ,CAAC,IAAI,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACjD,QAAQ,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;CACxD"}
|
|
1
|
+
{"version":3,"file":"http-types.d.ts","sourceRoot":"","sources":["../../../../src/platform/runtime/transports/http-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC5I,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC1G,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,iB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memory identity (Wave-6 E6).
|
|
3
|
+
*
|
|
4
|
+
* BACKGROUND (the E6 silo). The MemoryStore engine (memory-store.ts) is a good
|
|
5
|
+
* single engine, but it is instantiated as disjoint SQLite files per surface:
|
|
6
|
+
* - the SDK daemon runtime → <workingDir>/.goodvibes/<surface>/memory.sqlite
|
|
7
|
+
* - the agent → <userRoot>/goodvibes-agent/memory.sqlite (global)
|
|
8
|
+
* - the TUI → <workingDir>/.goodvibes/tui/memory.sqlite
|
|
9
|
+
* A fact learned in one surface is invisible to the others. E6 collapses those to
|
|
10
|
+
* ONE canonical store identity.
|
|
11
|
+
*
|
|
12
|
+
* CANONICAL PLACEMENT (ruled in the Wave-6 decision record). The SQLiteStore is
|
|
13
|
+
* backed by sql.js: every open loads the whole database into memory and every
|
|
14
|
+
* save() rewrites the entire file via writeFileSync. There is no row locking and
|
|
15
|
+
* no WAL, so two live processes writing the SAME file would clobber each other on
|
|
16
|
+
* save — a whole-file lost-update that would DELETE memory, the exact honesty
|
|
17
|
+
* violation E6 must not introduce. Therefore:
|
|
18
|
+
*
|
|
19
|
+
* TARGET (end-state): the daemon owns the single canonical store and surfaces
|
|
20
|
+
* read/write add/search/searchSemantic THROUGH it (one process = one
|
|
21
|
+
* writer). Deferred out of Wave-6 because it adds new wire methods that
|
|
22
|
+
* serialize the land and gate the release train, and cannot be proven
|
|
23
|
+
* under the no-real-daemons test rule.
|
|
24
|
+
*
|
|
25
|
+
* Wave-6 STEP (what this module delivers): one canonical PATH resolver so every
|
|
26
|
+
* surface names the same store identity, plus a no-loss FOLD/RECONCILE
|
|
27
|
+
* primitive built on the existing exportBundle/importBundle seam
|
|
28
|
+
* (memory-sync.ts prior art). Access is sequential/owned, never a naive
|
|
29
|
+
* concurrent shared-file write — folding is an id-keyed union that never
|
|
30
|
+
* overwrites or drops an existing record, so it is safe to run at boot
|
|
31
|
+
* and idempotent on re-run.
|
|
32
|
+
*
|
|
33
|
+
* This module never deletes a source store — like the legacy session fold
|
|
34
|
+
* (session-store-importer.ts), deletion is the GC's job, not migration's. Every
|
|
35
|
+
* fold returns a report so a caller can surface exactly what moved and what was
|
|
36
|
+
* left in place; nothing is ever silently dropped.
|
|
37
|
+
*/
|
|
38
|
+
import { MemoryStore } from './memory-store.js';
|
|
39
|
+
import type { MemoryEmbeddingProviderRegistry } from './memory-embeddings.js';
|
|
40
|
+
/** The single cross-surface memory database path, rooted at the user home dir. */
|
|
41
|
+
export declare function resolveCanonicalMemoryDbPath(homeDir: string): string;
|
|
42
|
+
/** A legacy/per-surface store to fold into the canonical store. */
|
|
43
|
+
export interface LegacyMemorySource {
|
|
44
|
+
/** Human-readable label for the report, e.g. 'agent-global' or 'tui:/repo'. */
|
|
45
|
+
readonly label: string;
|
|
46
|
+
/** Absolute path to the source SQLite database. */
|
|
47
|
+
readonly dbPath: string;
|
|
48
|
+
}
|
|
49
|
+
export interface MemoryFoldSourceReport {
|
|
50
|
+
readonly label: string;
|
|
51
|
+
readonly dbPath: string;
|
|
52
|
+
/** false → the source file did not exist and was skipped (not an error). */
|
|
53
|
+
readonly existed: boolean;
|
|
54
|
+
/** Records newly folded into the canonical store from this source. */
|
|
55
|
+
readonly importedRecords: number;
|
|
56
|
+
/**
|
|
57
|
+
* Records already present in the canonical store (same id) and therefore left
|
|
58
|
+
* untouched. NOT dropped — the existing canonical record is authoritative and
|
|
59
|
+
* the source copy is a duplicate. Non-zero here on a re-run proves idempotence.
|
|
60
|
+
*/
|
|
61
|
+
readonly skippedRecords: number;
|
|
62
|
+
readonly importedLinks: number;
|
|
63
|
+
/** Present only when the source could not be opened/read; the source is skipped, not fatal. */
|
|
64
|
+
readonly error?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface MemoryFoldReport {
|
|
67
|
+
readonly canonicalPath: string;
|
|
68
|
+
readonly totalImported: number;
|
|
69
|
+
readonly totalSkipped: number;
|
|
70
|
+
readonly totalLinks: number;
|
|
71
|
+
readonly sources: readonly MemoryFoldSourceReport[];
|
|
72
|
+
/** Labels of sources whose file did not exist (skipped, not an error). */
|
|
73
|
+
readonly missingSources: readonly string[];
|
|
74
|
+
/** Labels of sources that failed to open/parse (skipped per-source, run never aborts). */
|
|
75
|
+
readonly failedSources: readonly string[];
|
|
76
|
+
}
|
|
77
|
+
export interface FoldMemoryStoresOptions {
|
|
78
|
+
/** Embedding registry used to open each source store read-only (vector index disabled). */
|
|
79
|
+
readonly embeddingRegistry: MemoryEmbeddingProviderRegistry;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Fold every legacy/per-surface store into the canonical store via the bundle
|
|
83
|
+
* seam. Id-keyed union: an id already in the canonical store is left as-is
|
|
84
|
+
* (counted as skipped), a new id is imported. Never overwrites, never deletes a
|
|
85
|
+
* source, never aborts on one bad source. Idempotent — re-running folds nothing
|
|
86
|
+
* new (all ids already present). Returns a full report.
|
|
87
|
+
*
|
|
88
|
+
* This is the migration path (fold the old per-surface stores in at boot) AND
|
|
89
|
+
* the reconciliation primitive for an offline/embedded surface that cannot share
|
|
90
|
+
* the canonical file live (fold its bundle in when it reconnects).
|
|
91
|
+
*/
|
|
92
|
+
export declare function foldMemoryStores(canonical: MemoryStore, sources: readonly LegacyMemorySource[], options: FoldMemoryStoresOptions): Promise<MemoryFoldReport>;
|
|
93
|
+
/** Render a human-readable summary of a fold report (for surfacing at boot). */
|
|
94
|
+
export declare function formatMemoryFoldReport(report: MemoryFoldReport): string;
|
|
95
|
+
//# sourceMappingURL=canonical-memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonical-memory.d.ts","sourceRoot":"","sources":["../../../src/platform/state/canonical-memory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAI9E,kFAAkF;AAClF,wBAAgB,4BAA4B,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AO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CA+E3B;AAED,gFAAgF;AAChF,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAgBvE"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* canonical-memory.ts — the ONE cross-surface memory identity (Wave-6 E6).
|
|
3
|
+
*
|
|
4
|
+
* BACKGROUND (the E6 silo). The MemoryStore engine (memory-store.ts) is a good
|
|
5
|
+
* single engine, but it is instantiated as disjoint SQLite files per surface:
|
|
6
|
+
* - the SDK daemon runtime → <workingDir>/.goodvibes/<surface>/memory.sqlite
|
|
7
|
+
* - the agent → <userRoot>/goodvibes-agent/memory.sqlite (global)
|
|
8
|
+
* - the TUI → <workingDir>/.goodvibes/tui/memory.sqlite
|
|
9
|
+
* A fact learned in one surface is invisible to the others. E6 collapses those to
|
|
10
|
+
* ONE canonical store identity.
|
|
11
|
+
*
|
|
12
|
+
* CANONICAL PLACEMENT (ruled in the Wave-6 decision record). The SQLiteStore is
|
|
13
|
+
* backed by sql.js: every open loads the whole database into memory and every
|
|
14
|
+
* save() rewrites the entire file via writeFileSync. There is no row locking and
|
|
15
|
+
* no WAL, so two live processes writing the SAME file would clobber each other on
|
|
16
|
+
* save — a whole-file lost-update that would DELETE memory, the exact honesty
|
|
17
|
+
* violation E6 must not introduce. Therefore:
|
|
18
|
+
*
|
|
19
|
+
* TARGET (end-state): the daemon owns the single canonical store and surfaces
|
|
20
|
+
* read/write add/search/searchSemantic THROUGH it (one process = one
|
|
21
|
+
* writer). Deferred out of Wave-6 because it adds new wire methods that
|
|
22
|
+
* serialize the land and gate the release train, and cannot be proven
|
|
23
|
+
* under the no-real-daemons test rule.
|
|
24
|
+
*
|
|
25
|
+
* Wave-6 STEP (what this module delivers): one canonical PATH resolver so every
|
|
26
|
+
* surface names the same store identity, plus a no-loss FOLD/RECONCILE
|
|
27
|
+
* primitive built on the existing exportBundle/importBundle seam
|
|
28
|
+
* (memory-sync.ts prior art). Access is sequential/owned, never a naive
|
|
29
|
+
* concurrent shared-file write — folding is an id-keyed union that never
|
|
30
|
+
* overwrites or drops an existing record, so it is safe to run at boot
|
|
31
|
+
* and idempotent on re-run.
|
|
32
|
+
*
|
|
33
|
+
* This module never deletes a source store — like the legacy session fold
|
|
34
|
+
* (session-store-importer.ts), deletion is the GC's job, not migration's. Every
|
|
35
|
+
* fold returns a report so a caller can surface exactly what moved and what was
|
|
36
|
+
* left in place; nothing is ever silently dropped.
|
|
37
|
+
*/
|
|
38
|
+
import { existsSync } from 'node:fs';
|
|
39
|
+
import { join } from 'node:path';
|
|
40
|
+
import { MemoryStore } from './memory-store.js';
|
|
41
|
+
import { logger } from '../utils/logger.js';
|
|
42
|
+
import { summarizeError } from '../utils/error-display.js';
|
|
43
|
+
/** The single cross-surface memory database path, rooted at the user home dir. */
|
|
44
|
+
export function resolveCanonicalMemoryDbPath(homeDir) {
|
|
45
|
+
return join(homeDir, '.goodvibes', 'shared', 'memory.sqlite');
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Fold every legacy/per-surface store into the canonical store via the bundle
|
|
49
|
+
* seam. Id-keyed union: an id already in the canonical store is left as-is
|
|
50
|
+
* (counted as skipped), a new id is imported. Never overwrites, never deletes a
|
|
51
|
+
* source, never aborts on one bad source. Idempotent — re-running folds nothing
|
|
52
|
+
* new (all ids already present). Returns a full report.
|
|
53
|
+
*
|
|
54
|
+
* This is the migration path (fold the old per-surface stores in at boot) AND
|
|
55
|
+
* the reconciliation primitive for an offline/embedded surface that cannot share
|
|
56
|
+
* the canonical file live (fold its bundle in when it reconnects).
|
|
57
|
+
*/
|
|
58
|
+
export async function foldMemoryStores(canonical, sources, options) {
|
|
59
|
+
await canonical.init();
|
|
60
|
+
const sourceReports = [];
|
|
61
|
+
const missingSources = [];
|
|
62
|
+
const failedSources = [];
|
|
63
|
+
let totalImported = 0;
|
|
64
|
+
let totalSkipped = 0;
|
|
65
|
+
let totalLinks = 0;
|
|
66
|
+
for (const source of sources) {
|
|
67
|
+
if (!existsSync(source.dbPath)) {
|
|
68
|
+
missingSources.push(source.label);
|
|
69
|
+
sourceReports.push({
|
|
70
|
+
label: source.label,
|
|
71
|
+
dbPath: source.dbPath,
|
|
72
|
+
existed: false,
|
|
73
|
+
importedRecords: 0,
|
|
74
|
+
skippedRecords: 0,
|
|
75
|
+
importedLinks: 0,
|
|
76
|
+
});
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
let sourceStore = null;
|
|
80
|
+
try {
|
|
81
|
+
sourceStore = new MemoryStore(source.dbPath, {
|
|
82
|
+
embeddingRegistry: options.embeddingRegistry,
|
|
83
|
+
enableVectorIndex: false,
|
|
84
|
+
});
|
|
85
|
+
await sourceStore.init();
|
|
86
|
+
const bundle = sourceStore.exportBundle({});
|
|
87
|
+
const result = await canonical.importBundle(bundle);
|
|
88
|
+
totalImported += result.importedRecords;
|
|
89
|
+
totalSkipped += result.skippedRecords;
|
|
90
|
+
totalLinks += result.importedLinks;
|
|
91
|
+
sourceReports.push({
|
|
92
|
+
label: source.label,
|
|
93
|
+
dbPath: source.dbPath,
|
|
94
|
+
existed: true,
|
|
95
|
+
importedRecords: result.importedRecords,
|
|
96
|
+
skippedRecords: result.skippedRecords,
|
|
97
|
+
importedLinks: result.importedLinks,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
catch (err) {
|
|
101
|
+
const error = summarizeError(err);
|
|
102
|
+
failedSources.push(source.label);
|
|
103
|
+
sourceReports.push({
|
|
104
|
+
label: source.label,
|
|
105
|
+
dbPath: source.dbPath,
|
|
106
|
+
existed: true,
|
|
107
|
+
importedRecords: 0,
|
|
108
|
+
skippedRecords: 0,
|
|
109
|
+
importedLinks: 0,
|
|
110
|
+
error,
|
|
111
|
+
});
|
|
112
|
+
logger.warn('foldMemoryStores: source skipped', { label: source.label, error });
|
|
113
|
+
}
|
|
114
|
+
finally {
|
|
115
|
+
sourceStore?.close();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
const report = {
|
|
119
|
+
canonicalPath: canonical.dbPath ?? '(unknown)',
|
|
120
|
+
totalImported,
|
|
121
|
+
totalSkipped,
|
|
122
|
+
totalLinks,
|
|
123
|
+
sources: sourceReports,
|
|
124
|
+
missingSources,
|
|
125
|
+
failedSources,
|
|
126
|
+
};
|
|
127
|
+
logger.info('foldMemoryStores: complete', {
|
|
128
|
+
canonicalPath: report.canonicalPath,
|
|
129
|
+
totalImported,
|
|
130
|
+
totalSkipped,
|
|
131
|
+
missing: missingSources.length,
|
|
132
|
+
failed: failedSources.length,
|
|
133
|
+
});
|
|
134
|
+
return report;
|
|
135
|
+
}
|
|
136
|
+
/** Render a human-readable summary of a fold report (for surfacing at boot). */
|
|
137
|
+
export function formatMemoryFoldReport(report) {
|
|
138
|
+
const lines = [
|
|
139
|
+
'Memory unification (E6) — fold into canonical store',
|
|
140
|
+
` canonical ${report.canonicalPath}`,
|
|
141
|
+
` imported ${report.totalImported} already-present ${report.totalSkipped} links ${report.totalLinks}`,
|
|
142
|
+
];
|
|
143
|
+
for (const source of report.sources) {
|
|
144
|
+
if (!source.existed) {
|
|
145
|
+
lines.push(` - ${source.label}: no store on disk (nothing to fold)`);
|
|
146
|
+
}
|
|
147
|
+
else if (source.error) {
|
|
148
|
+
lines.push(` - ${source.label}: SKIPPED — ${source.error}`);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
lines.push(` - ${source.label}: +${source.importedRecords} imported, ${source.skippedRecords} already present, +${source.importedLinks} links`);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return lines.join('\n');
|
|
155
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
|
|
2
|
+
import type { SymbolInfo } from '../intelligence/tree-sitter/queries.js';
|
|
3
|
+
/** One chunk of source: either a top-level tree-sitter symbol or a fixed-size line window. */
|
|
4
|
+
export interface CodeChunk {
|
|
5
|
+
readonly chunkId: string;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
readonly lang: string;
|
|
8
|
+
readonly symbol: string;
|
|
9
|
+
readonly kind: string;
|
|
10
|
+
readonly startLine: number;
|
|
11
|
+
readonly endLine: number;
|
|
12
|
+
readonly contentHash: string;
|
|
13
|
+
readonly mtimeMs: number;
|
|
14
|
+
readonly fileHash: string;
|
|
15
|
+
}
|
|
16
|
+
/** How a file's chunks were produced. 'window' means "never silently dropped" fell back to fixed-size windows. */
|
|
17
|
+
export type CodeChunkMode = 'symbols' | 'window' | 'empty' | 'unchanged';
|
|
18
|
+
/** A chunk plus the exact text its embedding is computed from. */
|
|
19
|
+
export interface DraftChunk {
|
|
20
|
+
readonly chunk: CodeChunk;
|
|
21
|
+
readonly embedText: string;
|
|
22
|
+
}
|
|
23
|
+
/** The minimal tree-sitter surface chunking needs (structural, so tests can fake it). */
|
|
24
|
+
export interface ChunkingIntelligence {
|
|
25
|
+
detectLanguage(filePath: string): string | null;
|
|
26
|
+
getSymbols(filePath: string, content: string): Promise<SymbolInfo[]>;
|
|
27
|
+
}
|
|
28
|
+
export declare const DEFAULT_WINDOW_LINES = 60;
|
|
29
|
+
export declare const DEFAULT_WINDOW_OVERLAP_LINES = 10;
|
|
30
|
+
export declare function sha256(text: string): string;
|
|
31
|
+
export interface ChunkFileInput {
|
|
32
|
+
readonly intelligence: ChunkingIntelligence;
|
|
33
|
+
readonly absPath: string;
|
|
34
|
+
readonly relPath: string;
|
|
35
|
+
readonly content: string;
|
|
36
|
+
readonly fileHash: string;
|
|
37
|
+
readonly mtimeMs: number;
|
|
38
|
+
readonly windowLines?: number | undefined;
|
|
39
|
+
readonly windowOverlapLines?: number | undefined;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Chunk one file's content. The caller is responsible for having initialized
|
|
43
|
+
* the intelligence facade (tree-sitter grammars) before calling.
|
|
44
|
+
*/
|
|
45
|
+
export declare function chunkFileContent(input: ChunkFileInput): Promise<{
|
|
46
|
+
drafts: DraftChunk[];
|
|
47
|
+
mode: CodeChunkMode;
|
|
48
|
+
}>;
|
|
49
|
+
//# sourceMappingURL=code-index-chunking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-index-chunking.d.ts","sourceRoot":"","sources":["../../../src/platform/state/code-index-chunking.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAsBrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEzE,8FAA8F;AAC9F,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,kHAAkH;AAClH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;AAEzE,kEAAkE;AAClE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,yFAAyF;AACzF,MAAM,WAAW,oBAAoB;IACnC,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChD,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;CACtE;AAED,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAI/C,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClD;AAED;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC;IAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAAC,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,CA+BxD"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
|
|
2
|
+
/**
|
|
3
|
+
* Code-index chunking — pure content → chunk transformation for CodeIndexStore
|
|
4
|
+
* (Wave-5, W5.3 Stage A; extracted from code-index-store.ts to keep that file
|
|
5
|
+
* within the 800-line source discipline).
|
|
6
|
+
*
|
|
7
|
+
* Everything here is side-effect-free with respect to the store: given file
|
|
8
|
+
* content plus a tree-sitter surface (ChunkingIntelligence), produce DraftChunk
|
|
9
|
+
* lists deterministically. The store owns storage, embedding, and lifecycle.
|
|
10
|
+
*
|
|
11
|
+
* Chunking contract (unchanged from the original in-store implementation):
|
|
12
|
+
* - Files with top-level tree-sitter symbols chunk one-per-symbol ('symbols').
|
|
13
|
+
* - Unsupported languages, parse failures, and symbol-less files fall back to
|
|
14
|
+
* fixed-size line windows ('window') — a non-empty file is never silently
|
|
15
|
+
* dropped.
|
|
16
|
+
* - Whitespace-only content yields zero chunks ('empty').
|
|
17
|
+
* - chunk_id is a deterministic function of path + line span + content hash,
|
|
18
|
+
* so identical trees always chunk identically.
|
|
19
|
+
*/
|
|
20
|
+
import { createHash } from 'node:crypto';
|
|
21
|
+
export const DEFAULT_WINDOW_LINES = 60;
|
|
22
|
+
export const DEFAULT_WINDOW_OVERLAP_LINES = 10;
|
|
23
|
+
/** Languages extractSymbols() actually understands (tree-sitter/queries.ts extractSymbols). Everything else always falls back to windowed chunking. */
|
|
24
|
+
const SYMBOL_SUPPORTED_LANGS = new Set(['typescript', 'tsx', 'javascript', 'python']);
|
|
25
|
+
export function sha256(text) {
|
|
26
|
+
return createHash('sha256').update(text).digest('hex');
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Chunk one file's content. The caller is responsible for having initialized
|
|
30
|
+
* the intelligence facade (tree-sitter grammars) before calling.
|
|
31
|
+
*/
|
|
32
|
+
export async function chunkFileContent(input) {
|
|
33
|
+
const { intelligence, absPath, relPath, content, fileHash, mtimeMs } = input;
|
|
34
|
+
if (!content.trim())
|
|
35
|
+
return { drafts: [], mode: 'empty' };
|
|
36
|
+
const lang = intelligence.detectLanguage(absPath) ?? 'unknown';
|
|
37
|
+
let symbols = [];
|
|
38
|
+
if (SYMBOL_SUPPORTED_LANGS.has(lang)) {
|
|
39
|
+
symbols = await intelligence.getSymbols(absPath, content);
|
|
40
|
+
}
|
|
41
|
+
const topLevel = symbols.filter((symbol) => !symbol.container);
|
|
42
|
+
if (topLevel.length > 0) {
|
|
43
|
+
const lines = content.split('\n');
|
|
44
|
+
const drafts = topLevel.map((symbol) => makeSymbolChunk(relPath, lang, symbol, lines, fileHash, mtimeMs));
|
|
45
|
+
return { drafts, mode: 'symbols' };
|
|
46
|
+
}
|
|
47
|
+
// Unsupported language, parse failure, or a supported-language file with
|
|
48
|
+
// zero top-level declarations (e.g. a pure re-export barrel) — the index
|
|
49
|
+
// must never silently drop a non-empty file, so it falls back to windows.
|
|
50
|
+
const drafts = makeWindowChunks(relPath, lang, content, fileHash, mtimeMs, input.windowLines, input.windowOverlapLines);
|
|
51
|
+
return { drafts, mode: 'window' };
|
|
52
|
+
}
|
|
53
|
+
function makeSymbolChunk(relPath, lang, symbol, lines, fileHash, mtimeMs) {
|
|
54
|
+
const startLine = symbol.line;
|
|
55
|
+
const endLine = Math.max(symbol.endLine, symbol.line);
|
|
56
|
+
const slice = lines.slice(Math.max(0, startLine - 1), endLine).join('\n');
|
|
57
|
+
const embedText = `${lang} ${symbol.kind} ${symbol.name}\n${slice}`;
|
|
58
|
+
const contentHash = sha256(embedText);
|
|
59
|
+
const chunkId = sha256(`${relPath}:${startLine}-${endLine}:${contentHash}`);
|
|
60
|
+
return {
|
|
61
|
+
embedText,
|
|
62
|
+
chunk: {
|
|
63
|
+
chunkId,
|
|
64
|
+
path: relPath,
|
|
65
|
+
lang,
|
|
66
|
+
symbol: symbol.name,
|
|
67
|
+
kind: symbol.kind,
|
|
68
|
+
startLine,
|
|
69
|
+
endLine,
|
|
70
|
+
contentHash,
|
|
71
|
+
mtimeMs,
|
|
72
|
+
fileHash,
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function makeWindowChunks(relPath, lang, content, fileHash, mtimeMs, windowLinesOption, windowOverlapOption) {
|
|
77
|
+
const lines = content.split('\n');
|
|
78
|
+
const windowSize = Math.max(1, windowLinesOption ?? DEFAULT_WINDOW_LINES);
|
|
79
|
+
const overlap = Math.max(0, Math.min(windowSize - 1, windowOverlapOption ?? DEFAULT_WINDOW_OVERLAP_LINES));
|
|
80
|
+
const step = Math.max(1, windowSize - overlap);
|
|
81
|
+
const drafts = [];
|
|
82
|
+
for (let start = 0; start < lines.length; start += step) {
|
|
83
|
+
const end = Math.min(lines.length, start + windowSize);
|
|
84
|
+
const slice = lines.slice(start, end).join('\n');
|
|
85
|
+
if (slice.trim()) {
|
|
86
|
+
const startLine = start + 1;
|
|
87
|
+
const endLine = end;
|
|
88
|
+
const embedText = `${lang} window ${relPath}\n${slice}`;
|
|
89
|
+
const contentHash = sha256(embedText);
|
|
90
|
+
const chunkId = sha256(`${relPath}:${startLine}-${endLine}:${contentHash}`);
|
|
91
|
+
drafts.push({
|
|
92
|
+
embedText,
|
|
93
|
+
chunk: {
|
|
94
|
+
chunkId,
|
|
95
|
+
path: relPath,
|
|
96
|
+
lang,
|
|
97
|
+
symbol: '',
|
|
98
|
+
kind: 'window',
|
|
99
|
+
startLine,
|
|
100
|
+
endLine,
|
|
101
|
+
contentHash,
|
|
102
|
+
mtimeMs,
|
|
103
|
+
fileHash,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (end >= lines.length)
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
return drafts;
|
|
111
|
+
}
|