create-principles-disciple 1.154.5 → 1.155.1
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/_release/product-identity.json +2 -2
- package/codex-adapter/dist/codec/input-decoder.d.ts +17 -0
- package/codex-adapter/dist/codec/input-decoder.js +39 -0
- package/codex-adapter/dist/ingestion/explicit-owner-statement.js +125 -1
- package/codex-adapter/dist/ingestion/pain-receipt-fallback.d.ts +46 -0
- package/codex-adapter/dist/ingestion/pain-receipt-fallback.js +193 -0
- package/codex-adapter/dist/ingestion/turn-context.d.ts +10 -15
- package/codex-adapter/dist/ingestion/turn-context.js +35 -9
- package/codex-adapter/dist/pd-hook.js +57 -1
- package/codex-adapter/dist/worker/workspace-worker.d.ts +15 -0
- package/codex-adapter/dist/worker/workspace-worker.js +91 -12
- package/codex-adapter/package.json +1 -1
- package/console/dist/server/index.js +10 -0
- package/console/dist/server/models/EvidenceChainConsoleModel.js +31 -0
- package/console/dist/server/routes/service-host.d.ts +19 -0
- package/console/dist/server/routes/service-host.js +129 -0
- package/console/dist/web/assets/app.js +37 -37
- package/core/dist/runtime/context-payload.d.ts +48 -0
- package/core/dist/runtime/context-payload.d.ts.map +1 -1
- package/core/dist/runtime/context-payload.js +12 -0
- package/core/dist/runtime/context-payload.js.map +1 -1
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js +18 -0
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js.map +1 -1
- package/core/dist/runtime/diagnostician-candidate.d.ts.map +1 -1
- package/core/dist/runtime/diagnostician-candidate.js +18 -2
- package/core/dist/runtime/diagnostician-candidate.js.map +1 -1
- package/core/dist/runtime/evidence-guards.d.ts +7 -3
- package/core/dist/runtime/evidence-guards.d.ts.map +1 -1
- package/core/dist/runtime/evidence-guards.js +9 -7
- package/core/dist/runtime/evidence-guards.js.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-contract.js +14 -0
- package/core/dist/runtime/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.d.ts.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +8 -0
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/core/dist/runtime/host-submission-context.d.ts +83 -0
- package/core/dist/runtime/host-submission-context.d.ts.map +1 -0
- package/core/dist/runtime/host-submission-context.js +183 -0
- package/core/dist/runtime/host-submission-context.js.map +1 -0
- package/core/dist/runtime/index.d.ts +9 -2
- package/core/dist/runtime/index.d.ts.map +1 -1
- package/core/dist/runtime/index.js +29 -2
- package/core/dist/runtime/index.js.map +1 -1
- package/core/dist/runtime/intent/intent-doc.d.ts.map +1 -1
- package/core/dist/runtime/intent/intent-doc.js +29 -5
- package/core/dist/runtime/intent/intent-doc.js.map +1 -1
- package/core/dist/runtime/internalization/diag-distiller-runner.d.ts +9 -0
- package/core/dist/runtime/internalization/diag-distiller-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/diag-distiller-runner.js +13 -0
- package/core/dist/runtime/internalization/diag-distiller-runner.js.map +1 -1
- package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts +11 -0
- package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/diag-rootcause-runner.js +10 -0
- package/core/dist/runtime/internalization/diag-rootcause-runner.js.map +1 -1
- package/core/dist/runtime/internalization/diag-router-runner.d.ts +9 -0
- package/core/dist/runtime/internalization/diag-router-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/diag-router-runner.js +13 -0
- package/core/dist/runtime/internalization/diag-router-runner.js.map +1 -1
- package/core/dist/runtime/internalization/index.d.ts +1 -1
- package/core/dist/runtime/internalization/index.d.ts.map +1 -1
- package/core/dist/runtime/internalization/index.js +1 -1
- package/core/dist/runtime/internalization/index.js.map +1 -1
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts +19 -0
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts.map +1 -1
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.js +24 -0
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.js.map +1 -1
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts +8 -0
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts.map +1 -1
- package/core/dist/runtime/internalization/internalization-orchestrator.js +36 -4
- package/core/dist/runtime/internalization/internalization-orchestrator.js.map +1 -1
- package/core/dist/runtime/internalization/source-authorization-boundary.d.ts +39 -0
- package/core/dist/runtime/internalization/source-authorization-boundary.d.ts.map +1 -0
- package/core/dist/runtime/internalization/source-authorization-boundary.js +57 -0
- package/core/dist/runtime/internalization/source-authorization-boundary.js.map +1 -0
- package/core/dist/runtime/internalization/split-diagnostician-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/split-diagnostician-runner.js +72 -5
- package/core/dist/runtime/internalization/split-diagnostician-runner.js.map +1 -1
- package/core/dist/runtime/pain-admission-disposition.d.ts +60 -0
- package/core/dist/runtime/pain-admission-disposition.d.ts.map +1 -0
- package/core/dist/runtime/pain-admission-disposition.js +37 -0
- package/core/dist/runtime/pain-admission-disposition.js.map +1 -0
- package/core/dist/runtime/pain-ingress-payload.d.ts +36 -2
- package/core/dist/runtime/pain-ingress-payload.d.ts.map +1 -1
- package/core/dist/runtime/pain-ingress-payload.js +63 -6
- package/core/dist/runtime/pain-ingress-payload.js.map +1 -1
- package/core/dist/runtime/pain-ingress.d.ts.map +1 -1
- package/core/dist/runtime/pain-ingress.js +28 -0
- package/core/dist/runtime/pain-ingress.js.map +1 -1
- package/core/dist/runtime/pain-recall-read-model.d.ts +13 -1
- package/core/dist/runtime/pain-recall-read-model.d.ts.map +1 -1
- package/core/dist/runtime/pain-recall-read-model.js +50 -7
- package/core/dist/runtime/pain-recall-read-model.js.map +1 -1
- package/core/dist/runtime/pain-receipt-recovery.d.ts +147 -0
- package/core/dist/runtime/pain-receipt-recovery.d.ts.map +1 -0
- package/core/dist/runtime/pain-receipt-recovery.js +475 -0
- package/core/dist/runtime/pain-receipt-recovery.js.map +1 -0
- package/core/dist/runtime/pain-signal-bridge.d.ts +13 -1
- package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-bridge.js +174 -0
- package/core/dist/runtime/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime/pain-signal-runtime-factory.d.ts +9 -0
- package/core/dist/runtime/pain-signal-runtime-factory.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-runtime-factory.js +8 -3
- package/core/dist/runtime/pain-signal-runtime-factory.js.map +1 -1
- package/core/dist/runtime/pain-submit-capability.d.ts +11 -0
- package/core/dist/runtime/pain-submit-capability.d.ts.map +1 -1
- package/core/dist/runtime/pain-submit-capability.js +77 -3
- package/core/dist/runtime/pain-submit-capability.js.map +1 -1
- package/core/dist/runtime/pain-target-evidence-reconcile.d.ts +55 -0
- package/core/dist/runtime/pain-target-evidence-reconcile.d.ts.map +1 -0
- package/core/dist/runtime/pain-target-evidence-reconcile.js +164 -0
- package/core/dist/runtime/pain-target-evidence-reconcile.js.map +1 -0
- package/core/dist/runtime/pain-to-principle-service.d.ts +8 -0
- package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -1
- package/core/dist/runtime/pain-to-principle-service.js +1 -0
- package/core/dist/runtime/pain-to-principle-service.js.map +1 -1
- package/core/dist/runtime/source-material-authorization.d.ts +166 -0
- package/core/dist/runtime/source-material-authorization.d.ts.map +1 -0
- package/core/dist/runtime/source-material-authorization.js +250 -0
- package/core/dist/runtime/source-material-authorization.js.map +1 -0
- package/core/dist/runtime/store/context/index.d.ts +1 -0
- package/core/dist/runtime/store/context/index.d.ts.map +1 -1
- package/core/dist/runtime/store/context/index.js +1 -0
- package/core/dist/runtime/store/context/index.js.map +1 -1
- package/core/dist/runtime/store/context/promoted-evidence-reader.d.ts +8 -0
- package/core/dist/runtime/store/context/promoted-evidence-reader.d.ts.map +1 -1
- package/core/dist/runtime/store/context/promoted-evidence-reader.js +15 -1
- package/core/dist/runtime/store/context/promoted-evidence-reader.js.map +1 -1
- package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts +22 -0
- package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts.map +1 -1
- package/core/dist/runtime/store/context/sqlite-context-assembler.js +153 -3
- package/core/dist/runtime/store/context/sqlite-context-assembler.js.map +1 -1
- package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts +13 -0
- package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts.map +1 -1
- package/core/dist/runtime/store/lifecycle/lease-manager.d.ts +15 -0
- package/core/dist/runtime/store/lifecycle/lease-manager.d.ts.map +1 -1
- package/core/dist/runtime/store/lifecycle/lease-manager.js +16 -1
- package/core/dist/runtime/store/lifecycle/lease-manager.js.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.d.ts +2 -0
- package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.js.map +1 -1
- package/core/dist/runtime/store/task/memory-task-store.d.ts +1 -0
- package/core/dist/runtime/store/task/memory-task-store.d.ts.map +1 -1
- package/core/dist/runtime/store/task/memory-task-store.js +37 -0
- package/core/dist/runtime/store/task/memory-task-store.js.map +1 -1
- package/core/dist/runtime/store/task/sqlite-task-store.d.ts +10 -0
- package/core/dist/runtime/store/task/sqlite-task-store.d.ts.map +1 -1
- package/core/dist/runtime/store/task/sqlite-task-store.js +20 -0
- package/core/dist/runtime/store/task/sqlite-task-store.js.map +1 -1
- package/core/dist/runtime/store/task/task-store.d.ts +16 -0
- package/core/dist/runtime/store/task/task-store.d.ts.map +1 -1
- package/core/dist/runtime/task-status.d.ts +13 -0
- package/core/dist/runtime/task-status.d.ts.map +1 -1
- package/core/dist/runtime/task-status.js +9 -0
- package/core/dist/runtime/task-status.js.map +1 -1
- package/core/dist/runtime/types/evidence-chain-contract.d.ts +10 -0
- package/core/dist/runtime/types/evidence-chain-contract.d.ts.map +1 -1
- package/core/dist/runtime/types/evidence-chain-contract.js +7 -0
- package/core/dist/runtime/types/evidence-chain-contract.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +77 -30
- package/dist/installer.js.map +1 -1
- package/dist/installers/mcp-registration-conflict.d.ts +8 -0
- package/dist/installers/mcp-registration-conflict.d.ts.map +1 -1
- package/dist/installers/mcp-registration-conflict.js +34 -1
- package/dist/installers/mcp-registration-conflict.js.map +1 -1
- package/dist/installers/workbuddy-host-installer.d.ts +45 -13
- package/dist/installers/workbuddy-host-installer.d.ts.map +1 -1
- package/dist/installers/workbuddy-host-installer.js +284 -21
- package/dist/installers/workbuddy-host-installer.js.map +1 -1
- package/dist/prompts.d.ts +11 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +4 -0
- package/dist/prompts.js.map +1 -1
- package/dist/service-host-bridge.d.ts +67 -0
- package/dist/service-host-bridge.d.ts.map +1 -0
- package/dist/service-host-bridge.js +292 -0
- package/dist/service-host-bridge.js.map +1 -0
- package/dist/uninstaller.d.ts.map +1 -1
- package/dist/uninstaller.js +26 -0
- package/dist/uninstaller.js.map +1 -1
- package/dist/update/install-layout.d.ts +0 -12
- package/dist/update/install-layout.d.ts.map +1 -1
- package/dist/update/install-layout.js +42 -15
- package/dist/update/install-layout.js.map +1 -1
- package/host-runtime/dist/diagnostician-auto-run.js +4 -1
- package/host-runtime/dist/governance-observation-store.d.ts +7 -0
- package/host-runtime/dist/governance-observation-store.js +15 -4
- package/host-runtime/dist/governance-signal-admission.d.ts +49 -0
- package/host-runtime/dist/governance-signal-admission.js +355 -94
- package/host-runtime/dist/governance-trajectory-turn-reader.d.ts +20 -4
- package/host-runtime/dist/governance-trajectory-turn-reader.js +77 -5
- package/host-runtime/dist/index.d.ts +2 -0
- package/host-runtime/dist/index.js +5 -0
- package/host-runtime/dist/internalization-consumer-cycle.js +4 -1
- package/host-runtime/dist/pd-config.d.ts +10 -0
- package/host-runtime/dist/pd-config.js +37 -0
- package/host-runtime/dist/signal-stage2-cycle.js +28 -1
- package/host-runtime/dist/source-material-authorization.d.ts +53 -0
- package/host-runtime/dist/source-material-authorization.js +67 -0
- package/host-runtime/dist/source-revocation-sweep.d.ts +172 -0
- package/host-runtime/dist/source-revocation-sweep.js +928 -0
- package/host-runtime/package.json +5 -1
- package/install-layout/dist/background-execution-transition.d.ts +258 -0
- package/install-layout/dist/background-execution-transition.js +836 -0
- package/install-layout/dist/index.d.ts +8 -0
- package/install-layout/dist/index.js +8 -0
- package/install-layout/package.json +6 -2
- package/package.json +4 -4
- package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
- package/pd-cli/dist/commands/candidate.js +16 -5
- package/pd-cli/dist/commands/candidate.js.map +1 -1
- package/pd-cli/dist/commands/codex-setup.d.ts.map +1 -1
- package/pd-cli/dist/commands/codex-setup.js +17 -1
- package/pd-cli/dist/commands/codex-setup.js.map +1 -1
- package/pd-cli/dist/commands/codex-worker.d.ts.map +1 -1
- package/pd-cli/dist/commands/codex-worker.js +8 -4
- package/pd-cli/dist/commands/codex-worker.js.map +1 -1
- package/pd-cli/dist/commands/consent-sweep-revoked.d.ts +20 -0
- package/pd-cli/dist/commands/consent-sweep-revoked.d.ts.map +1 -0
- package/pd-cli/dist/commands/consent-sweep-revoked.js +85 -0
- package/pd-cli/dist/commands/consent-sweep-revoked.js.map +1 -0
- package/pd-cli/dist/commands/context.d.ts.map +1 -1
- package/pd-cli/dist/commands/context.js +9 -1
- package/pd-cli/dist/commands/context.js.map +1 -1
- package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
- package/pd-cli/dist/commands/diagnose.js +12 -6
- package/pd-cli/dist/commands/diagnose.js.map +1 -1
- package/pd-cli/dist/commands/openclaw-worker.d.ts +11 -0
- package/pd-cli/dist/commands/openclaw-worker.d.ts.map +1 -0
- package/pd-cli/dist/commands/openclaw-worker.js +199 -0
- package/pd-cli/dist/commands/openclaw-worker.js.map +1 -0
- package/pd-cli/dist/commands/pain-explicit.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-explicit.js +1 -0
- package/pd-cli/dist/commands/pain-explicit.js.map +1 -1
- package/pd-cli/dist/commands/pain-recall.d.ts +2 -2
- package/pd-cli/dist/commands/pain-recall.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-recall.js +7 -1
- package/pd-cli/dist/commands/pain-recall.js.map +1 -1
- package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-retry.js +12 -6
- package/pd-cli/dist/commands/pain-retry.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +2 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts +1 -0
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.js +32 -8
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-wake-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-wake-once.js +2 -1
- package/pd-cli/dist/commands/runtime-internalization-wake-once.js.map +1 -1
- package/pd-cli/dist/commands/service-handover.d.ts +12 -0
- package/pd-cli/dist/commands/service-handover.d.ts.map +1 -0
- package/pd-cli/dist/commands/service-handover.js +117 -0
- package/pd-cli/dist/commands/service-handover.js.map +1 -0
- package/pd-cli/dist/commands/service-lifecycle.d.ts +31 -0
- package/pd-cli/dist/commands/service-lifecycle.d.ts.map +1 -0
- package/pd-cli/dist/commands/service-lifecycle.js +207 -0
- package/pd-cli/dist/commands/service-lifecycle.js.map +1 -0
- package/pd-cli/dist/commands/service-run-once.d.ts +96 -0
- package/pd-cli/dist/commands/service-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/service-run-once.js +432 -13
- package/pd-cli/dist/commands/service-run-once.js.map +1 -1
- package/pd-cli/dist/commands/workbuddy-setup.d.ts.map +1 -1
- package/pd-cli/dist/commands/workbuddy-setup.js +22 -2
- package/pd-cli/dist/commands/workbuddy-setup.js.map +1 -1
- package/pd-cli/dist/program.d.ts.map +1 -1
- package/pd-cli/dist/program.js +167 -9
- package/pd-cli/dist/program.js.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.d.ts +3 -1
- package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.js +1 -0
- package/pd-cli/dist/services/admission-write-gate.js.map +1 -1
- package/pd-cli/dist/services/service-host/coordinator-common.d.ts +49 -0
- package/pd-cli/dist/services/service-host/coordinator-common.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/coordinator-common.js +158 -0
- package/pd-cli/dist/services/service-host/coordinator-common.js.map +1 -0
- package/pd-cli/dist/services/service-host/handover-claims.d.ts +14 -0
- package/pd-cli/dist/services/service-host/handover-claims.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/handover-claims.js +50 -0
- package/pd-cli/dist/services/service-host/handover-claims.js.map +1 -0
- package/pd-cli/dist/services/service-host/index.d.ts +19 -3
- package/pd-cli/dist/services/service-host/index.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/index.js +21 -3
- package/pd-cli/dist/services/service-host/index.js.map +1 -1
- package/pd-cli/dist/services/service-host/install-identity.d.ts +23 -3
- package/pd-cli/dist/services/service-host/install-identity.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/install-identity.js +15 -5
- package/pd-cli/dist/services/service-host/install-identity.js.map +1 -1
- package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts +130 -9
- package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/locking/service-run-lock.js +99 -19
- package/pd-cli/dist/services/service-host/locking/service-run-lock.js.map +1 -1
- package/pd-cli/dist/services/service-host/managed-run.d.ts +75 -0
- package/pd-cli/dist/services/service-host/managed-run.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/managed-run.js +550 -0
- package/pd-cli/dist/services/service-host/managed-run.js.map +1 -0
- package/pd-cli/dist/services/service-host/progress-evidence.d.ts +38 -0
- package/pd-cli/dist/services/service-host/progress-evidence.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/progress-evidence.js +155 -0
- package/pd-cli/dist/services/service-host/progress-evidence.js.map +1 -0
- package/pd-cli/dist/services/service-host/run-once.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/run-once.js +4 -136
- package/pd-cli/dist/services/service-host/run-once.js.map +1 -1
- package/pd-cli/dist/services/service-host/scheduler/contract.d.ts +184 -0
- package/pd-cli/dist/services/service-host/scheduler/contract.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/contract.js +86 -0
- package/pd-cli/dist/services/service-host/scheduler/contract.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/index.d.ts +76 -0
- package/pd-cli/dist/services/service-host/scheduler/index.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/index.js +128 -0
- package/pd-cli/dist/services/service-host/scheduler/index.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/linux.d.ts +27 -0
- package/pd-cli/dist/services/service-host/scheduler/linux.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/linux.js +1010 -0
- package/pd-cli/dist/services/service-host/scheduler/linux.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/macos.d.ts +13 -0
- package/pd-cli/dist/services/service-host/scheduler/macos.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/macos.js +819 -0
- package/pd-cli/dist/services/service-host/scheduler/macos.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/runtime-io.d.ts +13 -0
- package/pd-cli/dist/services/service-host/scheduler/runtime-io.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/runtime-io.js +141 -0
- package/pd-cli/dist/services/service-host/scheduler/runtime-io.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts +99 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.js +202 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/windows.d.ts +40 -0
- package/pd-cli/dist/services/service-host/scheduler/windows.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/windows.js +688 -0
- package/pd-cli/dist/services/service-host/scheduler/windows.js.map +1 -0
- package/pd-cli/dist/services/service-host/shadow-progress-store.d.ts +43 -0
- package/pd-cli/dist/services/service-host/shadow-progress-store.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/shadow-progress-store.js +156 -0
- package/pd-cli/dist/services/service-host/shadow-progress-store.js.map +1 -0
- package/pd-cli/dist/services/service-host/shadow-run.d.ts +87 -0
- package/pd-cli/dist/services/service-host/shadow-run.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/shadow-run.js +549 -0
- package/pd-cli/dist/services/service-host/shadow-run.js.map +1 -0
- package/pd-cli/dist/services/service-host/status/service-run-status.d.ts +114 -4
- package/pd-cli/dist/services/service-host/status/service-run-status.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/status/service-run-status.js +37 -0
- package/pd-cli/dist/services/service-host/status/service-run-status.js.map +1 -1
- package/pd-cli/dist/services/service-host/worker-adapter-codex.d.ts +2 -0
- package/pd-cli/dist/services/service-host/worker-adapter-codex.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-codex.js +76 -0
- package/pd-cli/dist/services/service-host/worker-adapter-codex.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.d.ts +2 -0
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js +49 -0
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.d.ts +2 -0
- package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.js +36 -0
- package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter.d.ts +187 -0
- package/pd-cli/dist/services/service-host/worker-adapter.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter.js +609 -0
- package/pd-cli/dist/services/service-host/worker-adapter.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-env.d.ts +84 -0
- package/pd-cli/dist/services/service-host/worker-env.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-env.js +195 -0
- package/pd-cli/dist/services/service-host/worker-env.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-process.d.ts +75 -0
- package/pd-cli/dist/services/service-host/worker-process.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-process.js +225 -0
- package/pd-cli/dist/services/service-host/worker-process.js.map +1 -0
- package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts +61 -0
- package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/workspace-dispatch.js +105 -0
- package/pd-cli/dist/services/service-host/workspace-dispatch.js.map +1 -0
- package/pd-cli/dist/services/service-host/workspace-handover.d.ts +190 -0
- package/pd-cli/dist/services/service-host/workspace-handover.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/workspace-handover.js +1393 -0
- package/pd-cli/dist/services/service-host/workspace-handover.js.map +1 -0
- package/pd-cli/package.json +6 -5
- package/pd-mcp-server/dist/submit-assembly.js +159 -42
- package/pd-mcp-server/dist/version.d.ts +1 -1
- package/pd-mcp-server/dist/version.js +1 -1
- package/pd-mcp-server/package.json +1 -1
- package/plugin/dist/bundle.js +586 -568
- package/plugin/dist/openclaw-worker.d.ts +92 -0
- package/plugin/dist/openclaw-worker.js +2439 -0
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/dist/service/gateway-consumer-lease.d.ts +142 -0
- package/plugin/dist/service/gateway-quiesce-ack.d.ts +40 -0
- package/plugin/dist/service/internalization-auto-consumer-service.d.ts +68 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +5 -1
- package/release-manager/dist/installer.js +77 -30
- package/release-manager/dist/installers/mcp-registration-conflict.js +34 -1
- package/release-manager/dist/installers/workbuddy-host-installer.js +284 -21
- package/release-manager/dist/service-host-bridge.js +292 -0
- package/release-manager/dist/update/install-layout.js +42 -15
- package/release-manager/package.json +2 -2
- package/workbuddy-adapter/dist/index.d.ts +1 -1
- package/workbuddy-adapter/dist/index.js +1 -1
- package/workbuddy-adapter/dist/worker/workspace-worker.d.ts +7 -0
- package/workbuddy-adapter/dist/worker/workspace-worker.js +179 -10
- package/workbuddy-adapter/package.json +1 -1
- package/workbuddy-adapter/plugin/.codebuddy-plugin/plugin.json +2 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { AdapterCycleResult, WorkerAdapter, WorkerHostKind, WorkspaceDescriptor, resolveActiveReleaseCliEntry } from './worker-adapter.js';
|
|
2
|
+
import type { ActiveReleaseFacts, ShadowExecutionRecord } from './status/service-run-status.js';
|
|
3
|
+
import type { InstallIdentity } from './install-identity.js';
|
|
4
|
+
import type { WorkerProcessOptions, WorkerProcessResult } from './worker-process.js';
|
|
5
|
+
export type AdapterDispatchOutcome = {
|
|
6
|
+
readonly kind: 'unsupported';
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: 'budget_exhausted';
|
|
9
|
+
} | {
|
|
10
|
+
readonly kind: 'executed';
|
|
11
|
+
readonly result: AdapterCycleResult;
|
|
12
|
+
} | {
|
|
13
|
+
readonly kind: 'adapter_threw';
|
|
14
|
+
readonly sanitizedMessage: string;
|
|
15
|
+
};
|
|
16
|
+
export interface AdapterDispatchEntry {
|
|
17
|
+
readonly hostKind: WorkerHostKind;
|
|
18
|
+
readonly outcome: AdapterDispatchOutcome;
|
|
19
|
+
}
|
|
20
|
+
export interface DispatchWorkspaceAdaptersArgs {
|
|
21
|
+
readonly workspaceDir: string;
|
|
22
|
+
readonly descriptor: WorkspaceDescriptor;
|
|
23
|
+
/** Bound host kinds to try, in order (all bound adapters — no filter — in managed mode). */
|
|
24
|
+
readonly hostKinds: readonly WorkerHostKind[];
|
|
25
|
+
/** Whole-workspace budget in ms (serial adapters share it). */
|
|
26
|
+
readonly timeoutMs: number;
|
|
27
|
+
/**
|
|
28
|
+
* Adapters by host kind. PARTIAL on purpose (PRI-1282 Phase 4): the shadow
|
|
29
|
+
* coordinator supplies only the codex|workbuddy pair while managed mode
|
|
30
|
+
* supplies all three — a dispatched kind without a registered adapter is a
|
|
31
|
+
* truthful `unsupported` entry, never a crash.
|
|
32
|
+
*/
|
|
33
|
+
readonly adapters: Readonly<Partial<Record<WorkerHostKind, WorkerAdapter>>>;
|
|
34
|
+
readonly activeRelease: ActiveReleaseFacts;
|
|
35
|
+
readonly identity: InstallIdentity;
|
|
36
|
+
readonly inheritedEnv: Readonly<Record<string, string | undefined>>;
|
|
37
|
+
readonly signal?: AbortSignal;
|
|
38
|
+
readonly probes?: {
|
|
39
|
+
readonly spawnWorkerProcess?: (options: WorkerProcessOptions) => Promise<WorkerProcessResult>;
|
|
40
|
+
readonly resolveCliEntry?: typeof resolveActiveReleaseCliEntry;
|
|
41
|
+
readonly now?: () => Date;
|
|
42
|
+
};
|
|
43
|
+
/** Caller's abort predicate, checked before every dispatch. */
|
|
44
|
+
readonly isAborted: () => boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface WorkspaceDispatchResult {
|
|
47
|
+
/** Monotonic deadline that governed this workspace (evidence). */
|
|
48
|
+
readonly deadlineAtMs: number;
|
|
49
|
+
readonly entries: readonly AdapterDispatchEntry[];
|
|
50
|
+
}
|
|
51
|
+
export declare function dispatchWorkspaceAdapters(args: DispatchWorkspaceAdaptersArgs): Promise<WorkspaceDispatchResult>;
|
|
52
|
+
/** Map an adapter cycle outcome to the shared workspace-state vocabulary. */
|
|
53
|
+
export declare function workspaceStateFor(outcome: AdapterCycleResult['cycleOutcome']): ShadowExecutionRecord['workspaceState'];
|
|
54
|
+
/**
|
|
55
|
+
* Carry-forward rule (task §6 + F7 review fix): EVIDENCED task progress
|
|
56
|
+
* wins for ANY outcome; otherwise a cycle_completed run's cycle-evidence
|
|
57
|
+
* timestamp applies; otherwise the previous value is preserved. Never the
|
|
58
|
+
* completion time of an empty/failed cycle.
|
|
59
|
+
*/
|
|
60
|
+
export declare function carriedProgress(result: AdapterCycleResult, previous: string | undefined): Pick<ShadowExecutionRecord, 'lastProgressAt' | 'lastProgressSource'>;
|
|
61
|
+
//# sourceMappingURL=workspace-dispatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-dispatch.d.ts","sourceRoot":"","sources":["../../../src/services/service-host/workspace-dispatch.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,mBAAmB,EACpB,4BAA4B,EAAC,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAChG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAErF,MAAM,MAAM,sBAAsB,GAC9B;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;CAAE,GAChC;IAAE,QAAQ,CAAC,IAAI,EAAE,kB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;KAC3B,CAAC;IACF,+DAA+D;IAC/D,QAAQ,CAAC,SAAS,EAAE,MAAM,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,kEAAkE;IAClE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACnD;AAED,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,uBAAuB,CAAC,CA8CrH;AAED,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,CAAC,cAAc,CAAC,GAAG,qBAAqB,CAAC,gBAAgB,CAAC,CAgBtH;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,IAAI,CAAC,qBAAqB,EAAE,gBAAgB,GAAG,oBAAoB,CAAC,CAgBtE"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared per-workspace Worker Adapter dispatch — the ONE implementation of
|
|
3
|
+
* the bounded adapter loop used by BOTH the Phase 2 shadow coordinator and
|
|
4
|
+
* the Phase 3 managed run (PRI-1281). Extracted from shadow-run so the
|
|
5
|
+
* deadline / abort / admission sequencing cannot drift between modes:
|
|
6
|
+
*
|
|
7
|
+
* - one MONOTONIC per-workspace budget shared by serially bound adapters;
|
|
8
|
+
* - an abort check before EVERY dispatch (an interrupt stops the queue, not
|
|
9
|
+
* just the in-flight worker);
|
|
10
|
+
* - a not-supported adapter is not an error (other hosts may still run);
|
|
11
|
+
* - an adapter throw is isolated to this workspace (FR-07).
|
|
12
|
+
*/
|
|
13
|
+
import { randomUUID } from 'node:crypto';
|
|
14
|
+
import { sanitizeWorkerText } from './worker-adapter.js';
|
|
15
|
+
export async function dispatchWorkspaceAdapters(args) {
|
|
16
|
+
const deadlineAtMs = performance.now() + args.timeoutMs;
|
|
17
|
+
const entries = [];
|
|
18
|
+
for (const hostKind of args.hostKinds) {
|
|
19
|
+
if (args.isAborted())
|
|
20
|
+
break;
|
|
21
|
+
const adapter = args.adapters[hostKind];
|
|
22
|
+
if (adapter === undefined) {
|
|
23
|
+
entries.push({ hostKind, outcome: { kind: 'unsupported' } });
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
const support = adapter.supports(args.descriptor);
|
|
27
|
+
if (!support.supported) {
|
|
28
|
+
entries.push({ hostKind, outcome: { kind: 'unsupported' } });
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
const remainingMs = deadlineAtMs - performance.now();
|
|
32
|
+
if (remainingMs <= 0) {
|
|
33
|
+
// Budget exhausted by an earlier adapter on this workspace — record the
|
|
34
|
+
// timeout truthfully instead of starting another Worker.
|
|
35
|
+
entries.push({ hostKind, outcome: { kind: 'budget_exhausted' } });
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const result = await adapter.executeOnce({
|
|
40
|
+
workspaceDir: args.workspaceDir,
|
|
41
|
+
activeRelease: args.activeRelease,
|
|
42
|
+
invocationId: randomUUID(),
|
|
43
|
+
timeoutMs: remainingMs,
|
|
44
|
+
deadlineAtMs,
|
|
45
|
+
...(args.signal !== undefined ? { signal: args.signal } : {}),
|
|
46
|
+
identity: args.identity,
|
|
47
|
+
inheritedEnv: args.inheritedEnv,
|
|
48
|
+
probes: {
|
|
49
|
+
...(args.probes?.spawnWorkerProcess !== undefined ? { spawnWorkerProcess: args.probes.spawnWorkerProcess } : {}),
|
|
50
|
+
...(args.probes?.resolveCliEntry !== undefined ? { resolveCliEntry: args.probes.resolveCliEntry } : {}),
|
|
51
|
+
...(args.probes?.now !== undefined ? { now: args.probes.now } : {}),
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
entries.push({ hostKind, outcome: { kind: 'executed', result } });
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
// An adapter must never take down the whole run (FR-07).
|
|
58
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
59
|
+
entries.push({ hostKind, outcome: { kind: 'adapter_threw', sanitizedMessage: sanitizeWorkerText(message, 160) } });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return { deadlineAtMs, entries };
|
|
63
|
+
}
|
|
64
|
+
/** Map an adapter cycle outcome to the shared workspace-state vocabulary. */
|
|
65
|
+
export function workspaceStateFor(outcome) {
|
|
66
|
+
switch (outcome) {
|
|
67
|
+
case 'cycle_completed':
|
|
68
|
+
case 'cycle_completed_without_business_progress':
|
|
69
|
+
return 'completed';
|
|
70
|
+
case 'paused':
|
|
71
|
+
return 'paused';
|
|
72
|
+
case 'degraded':
|
|
73
|
+
return 'degraded';
|
|
74
|
+
case 'failed':
|
|
75
|
+
case 'timeout':
|
|
76
|
+
case 'cancelled':
|
|
77
|
+
return 'failed';
|
|
78
|
+
default:
|
|
79
|
+
return 'unavailable';
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Carry-forward rule (task §6 + F7 review fix): EVIDENCED task progress
|
|
84
|
+
* wins for ANY outcome; otherwise a cycle_completed run's cycle-evidence
|
|
85
|
+
* timestamp applies; otherwise the previous value is preserved. Never the
|
|
86
|
+
* completion time of an empty/failed cycle.
|
|
87
|
+
*/
|
|
88
|
+
export function carriedProgress(result, previous) {
|
|
89
|
+
if (result.businessProgress.taskStateChanged && result.lastProgressAt !== null) {
|
|
90
|
+
return { lastProgressAt: result.lastProgressAt, lastProgressSource: 'task_state_change' };
|
|
91
|
+
}
|
|
92
|
+
// P2-02 (final-remediation review): a non-null lastProgressAt is real
|
|
93
|
+
// evidenced progress for ANY outcome — a paused/degraded cycle that
|
|
94
|
+
// persisted catch-up/downstream work keeps its timestamp too.
|
|
95
|
+
if (result.cycleOutcome === 'cycle_completed' || result.lastProgressAt !== null) {
|
|
96
|
+
return {
|
|
97
|
+
lastProgressAt: result.lastProgressAt ?? previous ?? null,
|
|
98
|
+
lastProgressSource: result.lastProgressAt !== null ? 'cycle_evidence' : previous !== undefined ? 'previous_run' : null,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
// No business progress this cycle (empty cycle, pause, failure, kill):
|
|
102
|
+
// keep the last known truthful value — never the cycle completion time.
|
|
103
|
+
return { lastProgressAt: previous ?? null, lastProgressSource: previous !== undefined ? 'previous_run' : null };
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=workspace-dispatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-dispatch.js","sourceRoot":"","sources":["../../../src/services/service-host/workspace-dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAOzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiDzD,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,IAAmC;IACjF,MAAM,YAAY,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC;IACxD,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QACtC,IAAI,IAAI,CAAC,SAAS,EAAE;YAAE,MAAM;QAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACxC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC;YAC7D,SAAS;QACX,CAAC;QACD,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;YACvB,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AE,CAAC;QAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,CAAC;IAC5F,CAAC;IACD,sEAAsE;IACtE,oEAAoE;IACpE,8DAA8D;IAC9D,IAAI,MAAM,CAAC,YAAY,KAAK,iBAAiB,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;QAChF,OAAO;YACL,cAAc,EAAE,MAAM,CAAC,cAAc,IAAI,QAAQ,IAAI,IAAI;YACzD,kBAAkB,EAAE,MAAM,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI;SACvH,CAAC;IACJ,CAAC;IACD,uEAAuE;IACvE,wEAAwE;IACxE,OAAO,EAAE,cAAc,EAAE,QAAQ,IAAI,IAAI,EAAE,kBAAkB,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAClH,CAAC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { type WorkspaceBackgroundOwnership } from '@principles/install-layout';
|
|
2
|
+
export declare const DEFAULT_HANDOVER_ACK_WAIT_MS: number;
|
|
3
|
+
export declare const DEFAULT_HANDOVER_STEP_TIMEOUT_MS: number;
|
|
4
|
+
export declare const DEFAULT_ROLLBACK_RESUME_WAIT_MS = 90000;
|
|
5
|
+
/**
|
|
6
|
+
* Bounded wait for the last in-flight worker cycle to release the workspace
|
|
7
|
+
* run mutex during rollback (PRI-1282 P1-1). Matches the consumer cycle's
|
|
8
|
+
* own bound; on expiry the workspace stays rollback_pending and resumable.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DEFAULT_ROLLBACK_DRAIN_WAIT_MS: number;
|
|
11
|
+
declare const HANDOVER_EVIDENCE_SCHEMA = "pd.service-handover-evidence.v1";
|
|
12
|
+
declare const HANDOVER_INTENT_SCHEMA = "pd.service-handover-intent.v1";
|
|
13
|
+
export interface HandoverContextInput {
|
|
14
|
+
readonly pdHomeOverride?: string;
|
|
15
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
16
|
+
readonly ackWaitMs?: number;
|
|
17
|
+
readonly stepTimeoutMs?: number;
|
|
18
|
+
readonly signal?: AbortSignal;
|
|
19
|
+
/**
|
|
20
|
+
* Test seam: the scheduler-enabled probe the handover runs before the CAS
|
|
21
|
+
* flip (default: real `runSchedulerLifecycle('status', …)`).
|
|
22
|
+
*/
|
|
23
|
+
readonly probes?: {
|
|
24
|
+
readonly schedulerStatus?: () => Promise<{
|
|
25
|
+
ok: true;
|
|
26
|
+
registered: boolean | null;
|
|
27
|
+
enabled: boolean | null;
|
|
28
|
+
} | {
|
|
29
|
+
ok: false;
|
|
30
|
+
reason: string;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Test seam: mints the operationId for a FRESH operation (never used
|
|
34
|
+
* when a marker or --resume names one — explicit resume only continues
|
|
35
|
+
* a real in-flight operation, per PRI-1282 r4 §5).
|
|
36
|
+
*/
|
|
37
|
+
readonly mintOperationId?: (kind: 'handover' | 'rollback') => string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export type HandoverContext = {
|
|
41
|
+
ok: true;
|
|
42
|
+
pdHome: string;
|
|
43
|
+
homeDir: string;
|
|
44
|
+
manifestPath: string;
|
|
45
|
+
workspaceDir: string;
|
|
46
|
+
} | {
|
|
47
|
+
ok: false;
|
|
48
|
+
reason: string;
|
|
49
|
+
nextAction: string;
|
|
50
|
+
};
|
|
51
|
+
export declare function establishHandoverContext(workspaceDir: string, input: HandoverContextInput): HandoverContext;
|
|
52
|
+
export declare function handoverEvidencePath(pdHome: string, canonicalDir: string, operationId: string): string;
|
|
53
|
+
export interface HandoverEvidence {
|
|
54
|
+
schemaVersion: typeof HANDOVER_EVIDENCE_SCHEMA;
|
|
55
|
+
kind: 'handover' | 'rollback';
|
|
56
|
+
operationId: string;
|
|
57
|
+
workspaceDir: string;
|
|
58
|
+
startedAt: string;
|
|
59
|
+
completedAt: string;
|
|
60
|
+
outcome: 'completed' | 'aborted' | 'failed';
|
|
61
|
+
steps: readonly {
|
|
62
|
+
step: string;
|
|
63
|
+
at: string;
|
|
64
|
+
outcome: string;
|
|
65
|
+
detail?: string;
|
|
66
|
+
}[];
|
|
67
|
+
finalOwnership: WorkspaceBackgroundOwnership;
|
|
68
|
+
}
|
|
69
|
+
export declare function writeHandoverEvidence(evidence: HandoverEvidence, pdHome: string): {
|
|
70
|
+
ok: boolean;
|
|
71
|
+
path: string;
|
|
72
|
+
reason?: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Read + field-validate the write-once evidence document (rc-2/rc-3:
|
|
76
|
+
* untrusted JSON until proven — an unreadable or malformed document is
|
|
77
|
+
* null, i.e. "no evidence", and the caller fails closed).
|
|
78
|
+
*/
|
|
79
|
+
export declare function readHandoverEvidence(pdHome: string, canonicalDir: string, operationId: string): HandoverEvidence | null;
|
|
80
|
+
/**
|
|
81
|
+
* The persisted commit INTENT written BEFORE the CAS flip: the steady-state
|
|
82
|
+
* `service_host_owned` marker deliberately clears `operationId`, so a run
|
|
83
|
+
* killed between the flip and the evidence write would otherwise be
|
|
84
|
+
* unattributable and unresumable. The intent is the auditable "this
|
|
85
|
+
* operation committed generation N" fact the resume path verifies against
|
|
86
|
+
* workspace + operationId + committed generation.
|
|
87
|
+
*
|
|
88
|
+
* Lifecycle / versioning policy (PRI-1282 review — the intent file IS
|
|
89
|
+
* persisted state and must be declared): one `<opId>.intent.json` per
|
|
90
|
+
* operation lives next to that operation's evidence document under
|
|
91
|
+
* `<pdHome>/service/handover/<wskey>/`; it is retained with the evidence
|
|
92
|
+
* directory for audit, and `schemaVersion` (`pd.service-handover-intent.v1`)
|
|
93
|
+
* is the compatibility contract — a reader ignores files whose
|
|
94
|
+
* schemaVersion it does not know, and a format change bumps the suffix
|
|
95
|
+
* rather than mutating in place. The intent is process EVIDENCE, never an
|
|
96
|
+
* ownership authority: deleting it only loses resumability attribution,
|
|
97
|
+
* never ownership (the install manifest stays the single source).
|
|
98
|
+
*/
|
|
99
|
+
export interface HandoverCommitIntent {
|
|
100
|
+
schemaVersion: typeof HANDOVER_INTENT_SCHEMA;
|
|
101
|
+
kind: 'handover';
|
|
102
|
+
operationId: string;
|
|
103
|
+
workspaceDir: string;
|
|
104
|
+
preparingGeneration: number;
|
|
105
|
+
committedGeneration: number;
|
|
106
|
+
writtenAt: string;
|
|
107
|
+
}
|
|
108
|
+
export declare function handoverIntentPath(pdHome: string, canonicalDir: string, operationId: string): string;
|
|
109
|
+
export declare function writeHandoverIntent(intent: HandoverCommitIntent, pdHome: string): {
|
|
110
|
+
ok: boolean;
|
|
111
|
+
path: string;
|
|
112
|
+
reason?: string;
|
|
113
|
+
};
|
|
114
|
+
/** Read + field-validate a persisted commit intent (null = absent/untrusted). */
|
|
115
|
+
export declare function readHandoverIntent(pdHome: string, canonicalDir: string, operationId: string): HandoverCommitIntent | null;
|
|
116
|
+
declare const ROLLBACK_INTENT_SCHEMA = "pd.service-rollback-intent.v1";
|
|
117
|
+
export interface RollbackCommitIntent {
|
|
118
|
+
schemaVersion: typeof ROLLBACK_INTENT_SCHEMA;
|
|
119
|
+
kind: 'rollback';
|
|
120
|
+
operationId: string;
|
|
121
|
+
workspaceDir: string;
|
|
122
|
+
/** Generation of the rollback_pending marker this intent belongs to. */
|
|
123
|
+
pendingGeneration: number;
|
|
124
|
+
/** Generation complete_rollback commits (pendingGeneration + 1). */
|
|
125
|
+
committedGeneration: number;
|
|
126
|
+
writtenAt: string;
|
|
127
|
+
}
|
|
128
|
+
export declare function rollbackIntentPath(pdHome: string, canonicalDir: string, operationId: string): string;
|
|
129
|
+
export declare function writeRollbackIntent(intent: RollbackCommitIntent, pdHome: string): {
|
|
130
|
+
ok: boolean;
|
|
131
|
+
path: string;
|
|
132
|
+
reason?: string;
|
|
133
|
+
};
|
|
134
|
+
/** Read + field-validate a persisted rollback intent (null = absent/untrusted). */
|
|
135
|
+
export declare function readRollbackIntent(pdHome: string, canonicalDir: string, operationId: string): RollbackCommitIntent | null;
|
|
136
|
+
export interface HandoverRunOptions extends HandoverContextInput {
|
|
137
|
+
readonly resumeOperationId?: string;
|
|
138
|
+
/** Abort an in-flight handover_preparing back to legacy_owned. */
|
|
139
|
+
readonly abort?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export type HandoverRunResult = {
|
|
142
|
+
ok: true;
|
|
143
|
+
outcome: 'completed';
|
|
144
|
+
operationId: string;
|
|
145
|
+
workspaceDir: string;
|
|
146
|
+
generation: number;
|
|
147
|
+
readiness: 'ready';
|
|
148
|
+
quiesceAck: {
|
|
149
|
+
operationId: string;
|
|
150
|
+
generation: number;
|
|
151
|
+
outcome: string;
|
|
152
|
+
startedVia: string;
|
|
153
|
+
};
|
|
154
|
+
workerCycle: {
|
|
155
|
+
mode: string;
|
|
156
|
+
exitCode: number | null;
|
|
157
|
+
evidencePath: string;
|
|
158
|
+
};
|
|
159
|
+
evidencePath: string;
|
|
160
|
+
} | {
|
|
161
|
+
ok: false;
|
|
162
|
+
outcome: 'aborted' | 'blocked' | 'failed';
|
|
163
|
+
reason: string;
|
|
164
|
+
nextAction: string;
|
|
165
|
+
operationId?: string;
|
|
166
|
+
detail?: unknown;
|
|
167
|
+
};
|
|
168
|
+
export declare function runWorkspaceHandover(workspaceDir: string, options: HandoverRunOptions): Promise<HandoverRunResult>;
|
|
169
|
+
export type RollbackRunResult = {
|
|
170
|
+
ok: true;
|
|
171
|
+
outcome: 'completed';
|
|
172
|
+
operationId: string;
|
|
173
|
+
workspaceDir: string;
|
|
174
|
+
generation: number;
|
|
175
|
+
gatewayResumption: 'observed' | 'not_verified_gateway_not_running';
|
|
176
|
+
evidencePath: string;
|
|
177
|
+
} | {
|
|
178
|
+
ok: false;
|
|
179
|
+
outcome: 'blocked' | 'failed';
|
|
180
|
+
reason: string;
|
|
181
|
+
nextAction: string;
|
|
182
|
+
operationId?: string;
|
|
183
|
+
};
|
|
184
|
+
export interface RollbackRunOptions extends HandoverContextInput {
|
|
185
|
+
/** Continue a named rollback operation (PRI-1282 r4 §8). */
|
|
186
|
+
readonly resumeOperationId?: string;
|
|
187
|
+
}
|
|
188
|
+
export declare function runWorkspaceRollback(workspaceDir: string, options: RollbackRunOptions): Promise<RollbackRunResult>;
|
|
189
|
+
export {};
|
|
190
|
+
//# sourceMappingURL=workspace-handover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-handover.d.ts","sourceRoot":"","sources":["../../../src/services/service-host/workspace-handover.ts"],"names":[],"mappings":"AAqCA,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,4BAA4B,CAAC;AAcpC,eAAO,MAAM,4BAA4B,QAAc,CAAC;AACxD,eAAO,MAAM,gCAAgC,QAAa,CAAC;AAC3D,eAAO,MAAM,+BAA+B,QAAS,CAAC;AACtD;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,QAAc,CAAC;AAC1D,QAAA,MAAM,wBAAwB,oCAAoC,CAAC;AACnE,QAAA,MAAM,sBAAsB,kCAAkC,CAAC;AAI/D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,OAAO,CACpC;YAAE,EAAE,EAA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