create-principles-disciple 1.154.4 → 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,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pd service install|enable|disable|status|uninstall` — the Phase 3
|
|
3
|
+
* lifecycle command handlers (SPEC §8.1/§11 Phase 3, task §5).
|
|
4
|
+
*
|
|
5
|
+
* cli-1: `--json` stdout carries exactly ONE machine document (diagnostics
|
|
6
|
+
* to stderr). cli-2/6: every failure exits non-zero with reason +
|
|
7
|
+
* nextAction; an OS permission denial is NEVER rendered as "not installed".
|
|
8
|
+
* All operations are idempotent; `install` defaults to installed_disabled
|
|
9
|
+
* and never auto-enables.
|
|
10
|
+
*/
|
|
11
|
+
import { runSchedulerLifecycle, composeServiceHostStatus, } from '../services/service-host/index.js';
|
|
12
|
+
import { SERVICE_HOST_STATUS_SCHEMA_VERSION } from '../services/service-host/index.js';
|
|
13
|
+
import { resolveCoordinatorInstallIdentity } from '../services/service-host/install-identity.js';
|
|
14
|
+
import { acquireServiceRunLock, releaseServiceRunLock } from '../services/service-host/locking/service-run-lock.js';
|
|
15
|
+
const OP_SCHEMA = 'pd.service-scheduler-op.v1';
|
|
16
|
+
/** Full-value --interval-ms validation BEFORE any OS mutation (F8 pattern). */
|
|
17
|
+
export function parseInstallIntervalMs(raw) {
|
|
18
|
+
if (raw === undefined || raw.trim() === '')
|
|
19
|
+
return { ok: true };
|
|
20
|
+
const value = raw.trim();
|
|
21
|
+
if (!/^\d+$/.test(value)) {
|
|
22
|
+
return {
|
|
23
|
+
ok: false,
|
|
24
|
+
reason: `invalid_interval_ms:${value.slice(0, 40)}`,
|
|
25
|
+
nextAction: '--interval-ms must be a plain millisecond integer (e.g. 120000). Partial values like "2m" are refused.',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return { ok: true, intervalMs: Number(value) };
|
|
29
|
+
}
|
|
30
|
+
function opNextAction(result) {
|
|
31
|
+
if (result.ok) {
|
|
32
|
+
switch (result.operation) {
|
|
33
|
+
case 'install':
|
|
34
|
+
return result.facts.enabled === true
|
|
35
|
+
? 'The scheduler registration was created and is ENABLED (an existing registration preserved its enabled state). Managed runs fire on the configured interval; inspect with pd service status --json.'
|
|
36
|
+
: 'The scheduler registration was created in the DISABLED state (installed_disabled). Run pd service enable to arm automatic triggers; nothing runs until then.';
|
|
37
|
+
case 'enable':
|
|
38
|
+
return 'Automatic triggers are armed. The next OS trigger runs one bounded managed cycle; inspect with pd service status --json.';
|
|
39
|
+
case 'disable':
|
|
40
|
+
return 'Future automatic triggers are stopped. The registration, Workspace data, pending tasks, Ledger and Trajectory are all preserved; re-arm with pd service enable.';
|
|
41
|
+
case 'uninstall':
|
|
42
|
+
return 'The OS scheduler registration was removed. Workspace data, .pd/state.db, Ledger, Trajectory and evidence are untouched; manual pd service run-once / worker --once remain available.';
|
|
43
|
+
default:
|
|
44
|
+
return 'Scheduler state read from the OS above; each field is its own witness.';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return result.nextAction;
|
|
48
|
+
}
|
|
49
|
+
/** Human rendering (JSON mode prints the document verbatim). */
|
|
50
|
+
function printHumanOp(result, nextAction) {
|
|
51
|
+
if (result.ok) {
|
|
52
|
+
const state = result.facts.enabled === null ? 'enabled=unknown' : result.facts.enabled ? 'ENABLED' : 'disabled';
|
|
53
|
+
console.log(`pd service ${result.operation}: ok (${result.facts.platform} task "${result.facts.taskName}" — registered=${result.facts.registered}, ${state}${result.changed ? '' : ', no change (idempotent)'})`);
|
|
54
|
+
console.log(` next: ${nextAction}`);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
console.error(`pd service ${result.operation} FAILED: ${result.reason}`);
|
|
58
|
+
console.error(` next: ${nextAction}`);
|
|
59
|
+
}
|
|
60
|
+
export async function handleServiceLifecycle(operation, args) {
|
|
61
|
+
let intervalMs;
|
|
62
|
+
if (operation === 'install' && args.intervalMsRaw !== undefined) {
|
|
63
|
+
const parsed = parseInstallIntervalMs(args.intervalMsRaw);
|
|
64
|
+
if (!parsed.ok) {
|
|
65
|
+
const output = { schemaVersion: OP_SCHEMA, operation, ok: false, reason: parsed.reason, nextAction: parsed.nextAction };
|
|
66
|
+
if (args.json)
|
|
67
|
+
console.log(JSON.stringify(output));
|
|
68
|
+
else
|
|
69
|
+
printHumanOp({ ok: false, operation, reason: parsed.reason, nextAction: parsed.nextAction }, parsed.nextAction);
|
|
70
|
+
process.exitCode = 1;
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
({ intervalMs } = parsed);
|
|
74
|
+
}
|
|
75
|
+
// PRI-1282 r4 §9: mutating lifecycle operations serialize with handover,
|
|
76
|
+
// rollback and managed run-once through the SHARED install-level run
|
|
77
|
+
// lock — a `pd service disable` landing mid-handover would otherwise flip
|
|
78
|
+
// the trigger under an in-flight ownership transition. `status` stays
|
|
79
|
+
// lock-free (read-only).
|
|
80
|
+
const identity = resolveCoordinatorInstallIdentity(process.env, args.pdHome !== undefined ? { trustedHomeDir: args.pdHome } : {});
|
|
81
|
+
if (!identity.ok) {
|
|
82
|
+
const output = { schemaVersion: OP_SCHEMA, operation, ok: false, reason: `install_identity_unresolved:${identity.reason}`, nextAction: identity.nextAction };
|
|
83
|
+
if (args.json)
|
|
84
|
+
console.log(JSON.stringify(output));
|
|
85
|
+
else
|
|
86
|
+
printHumanOp({ ok: false, operation, reason: output.reason, nextAction: output.nextAction }, output.nextAction);
|
|
87
|
+
process.exitCode = 1;
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const runLock = acquireServiceRunLock(identity.identity.pdHome);
|
|
91
|
+
if (!runLock.ok) {
|
|
92
|
+
const output = {
|
|
93
|
+
schemaVersion: OP_SCHEMA,
|
|
94
|
+
operation,
|
|
95
|
+
ok: false,
|
|
96
|
+
reason: `service_run_in_progress:${runLock.kind}`,
|
|
97
|
+
nextAction: 'A managed run-once, handover or rollback is currently executing on this install; wait for it to finish and retry the lifecycle operation.',
|
|
98
|
+
};
|
|
99
|
+
if (args.json)
|
|
100
|
+
console.log(JSON.stringify(output));
|
|
101
|
+
else
|
|
102
|
+
printHumanOp({ ok: false, operation, reason: output.reason, nextAction: output.nextAction }, output.nextAction);
|
|
103
|
+
process.exitCode = 1;
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
let result;
|
|
107
|
+
try {
|
|
108
|
+
result = await runSchedulerLifecycle(operation, {
|
|
109
|
+
...(args.pdHome !== undefined ? { trustedHomeDir: args.pdHome } : {}),
|
|
110
|
+
...(intervalMs !== undefined ? { intervalMs } : {}),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
finally {
|
|
114
|
+
releaseServiceRunLock(runLock.handle);
|
|
115
|
+
}
|
|
116
|
+
const nextAction = opNextAction(result);
|
|
117
|
+
if (args.json) {
|
|
118
|
+
const output = result.ok
|
|
119
|
+
? {
|
|
120
|
+
schemaVersion: OP_SCHEMA,
|
|
121
|
+
operation,
|
|
122
|
+
ok: true,
|
|
123
|
+
changed: result.changed,
|
|
124
|
+
platform: result.facts.platform,
|
|
125
|
+
taskName: result.facts.taskName,
|
|
126
|
+
registered: result.facts.registered,
|
|
127
|
+
enabled: result.facts.enabled,
|
|
128
|
+
...(result.facts.triggerIntervalMs !== undefined ? { triggerIntervalMs: result.facts.triggerIntervalMs } : {}),
|
|
129
|
+
osLastRunAt: result.facts.lastRunAt,
|
|
130
|
+
osLastResult: result.facts.lastResult,
|
|
131
|
+
nextAction,
|
|
132
|
+
}
|
|
133
|
+
: { schemaVersion: OP_SCHEMA, operation, ok: false, reason: result.reason, nextAction };
|
|
134
|
+
console.log(JSON.stringify(output, null, 2));
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
printHumanOp(result, nextAction);
|
|
138
|
+
}
|
|
139
|
+
process.exitCode = result.ok ? 0 : 1;
|
|
140
|
+
}
|
|
141
|
+
function printHumanStatus(status) {
|
|
142
|
+
const s = status.scheduler;
|
|
143
|
+
console.log(`pd service status (${status.platform}) — generated ${status.generatedAt}`);
|
|
144
|
+
console.log(` pdHome: ${status.installation.pdHome}`);
|
|
145
|
+
console.log(` activeRelease: ${status.installation.activeRelease.valid ? status.installation.activeRelease.releaseId ?? 'unknown' : status.installation.activeRelease.reason ?? 'unavailable'}`);
|
|
146
|
+
if (s.available) {
|
|
147
|
+
const enabled = s.enabled === null ? 'unknown' : s.enabled ? 'ENABLED' : 'disabled';
|
|
148
|
+
console.log(` scheduler: registered=${s.registered}, ${enabled} (task "${s.taskName}")`);
|
|
149
|
+
if (s.triggerConfiguration !== null) {
|
|
150
|
+
console.log(` trigger: every ${s.triggerConfiguration.intervalMs ?? '?'}ms → node "${s.triggerConfiguration.nodePath}" "${s.triggerConfiguration.cliEntry}"`);
|
|
151
|
+
}
|
|
152
|
+
console.log(` osLastRun: ${s.osLastRunAt ?? 'none'} (result ${s.osLastResult ?? 'n/a'})`);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
console.log(` scheduler: UNAVAILABLE — ${s.reason ?? 'unknown'}`);
|
|
156
|
+
if (s.nextAction !== undefined)
|
|
157
|
+
console.log(` next: ${s.nextAction}`);
|
|
158
|
+
}
|
|
159
|
+
if (status.lastRun !== null) {
|
|
160
|
+
console.log(` lastRun: ${status.lastRun.mode}/${status.lastRun.outcome} via ${status.lastRun.triggerSource} at ${status.lastRun.startedAt} (${status.lastRun.durationMs}ms)`);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
console.log(` lastRun: none recorded (${status.lastRunRead})`);
|
|
164
|
+
}
|
|
165
|
+
console.log(` lastProgressAt: ${status.lastProgressAt ?? 'none yet'}`);
|
|
166
|
+
if (status.workspaces.length > 0) {
|
|
167
|
+
console.log(` workspaces:`);
|
|
168
|
+
for (const ws of status.workspaces) {
|
|
169
|
+
console.log(` [${ws.discoveryVerdict}] ${ws.canonicalDir} — owner=${ws.ownerState} (effectiveOwner=${ws.effectiveOwner}); hosts: ${ws.hosts.join(', ') || 'none'}`);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
console.log(` workspaces: none discovered`);
|
|
174
|
+
}
|
|
175
|
+
if (status.degradedReasons.length > 0) {
|
|
176
|
+
console.log(` degraded: ${status.degradedReasons.join('; ')}`);
|
|
177
|
+
}
|
|
178
|
+
console.log(` next: ${status.nextAction}`);
|
|
179
|
+
}
|
|
180
|
+
/** `pd service status` — the unified read-only contract document. */
|
|
181
|
+
export async function handleServiceStatus(args) {
|
|
182
|
+
const result = await composeServiceHostStatus({
|
|
183
|
+
...(args.pdHome !== undefined ? { trustedHomeDir: args.pdHome } : {}),
|
|
184
|
+
});
|
|
185
|
+
if (result.ok) {
|
|
186
|
+
if (args.json) {
|
|
187
|
+
console.log(JSON.stringify(result.status, null, 2));
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
printHumanStatus(result.status);
|
|
191
|
+
}
|
|
192
|
+
// A status read with degraded witnesses is still a successful READ —
|
|
193
|
+
// the degradations are data, not a failed command (exit 0). A total
|
|
194
|
+
// refusal (identity unavailable) is the only non-zero path.
|
|
195
|
+
process.exitCode = 0;
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
if (args.json) {
|
|
199
|
+
console.log(JSON.stringify({ schemaVersion: SERVICE_HOST_STATUS_SCHEMA_VERSION, ok: false, reason: result.reason, nextAction: result.nextAction }));
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
console.error(`pd service status FAILED: ${result.reason}`);
|
|
203
|
+
console.error(` next: ${result.nextAction}`);
|
|
204
|
+
}
|
|
205
|
+
process.exitCode = 1;
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=service-lifecycle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-lifecycle.js","sourceRoot":"","sources":["../../src/commands/service-lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GAGzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,kCAAkC,EAAkC,MAAM,mCAAmC,CAAC;AACvH,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAUpH,MAAM,SAAS,GAAG,4BAAqC,CAAC;AAyBxD,+EAA+E;AAC/E,MAAM,UAAU,sBAAsB,CAAC,GAAuB;IAC5D,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IAChE,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IACzB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAA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,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACN,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAClC,CAAC;QACD,qEAAqE;QACrE,oEAAoE;QACpE,4DAA4D;QAC5D,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,kCAAkC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACtJ,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,6BAA6B,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,KAAK,CAAC,WAAW,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -1,6 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pd service run-once` — the PD Service Host run-once coordinator CLI
|
|
3
|
+
* (SPEC-PD-SERVICE-HOST-001 §11 Phase 1 + Phase 2 + Phase 3).
|
|
4
|
+
*
|
|
5
|
+
* Three modes (cli-4):
|
|
6
|
+
* - bare / `--json` (Phase 3, PRI-1281): the MANAGED execution — the OS
|
|
7
|
+
* scheduler's entry. Auto-discovers workspaces and executes ONLY
|
|
8
|
+
* `effectiveOwner=service_host` ones (§8.4); zero such workspaces is a
|
|
9
|
+
* legal empty run.
|
|
10
|
+
* - `--dry-run` (Phase 1): the read-only discovery dry-run — NO worker,
|
|
11
|
+
* NO ownership change, no business writes.
|
|
12
|
+
* - `--shadow` (Phase 2, PRI-1280): an explicit, bounded REAL worker cycle
|
|
13
|
+
* for each `--workspace <dir>` selection through the unified Worker
|
|
14
|
+
* Adapter. Shadow calls the real worker — business tasks may advance —
|
|
15
|
+
* and requires explicit workspace selection; never scheduled.
|
|
16
|
+
*
|
|
17
|
+
* `--trigger manual|scheduler` records the SELF-DECLARED trigger source
|
|
18
|
+
* (task §4/§11 review): the scheduler registers `--trigger scheduler`, but
|
|
19
|
+
* the flag is written by the run-once process itself — it is a REPORTED
|
|
20
|
+
* trigger, not verified OS evidence. Any caller may claim 'scheduler';
|
|
21
|
+
* consumers (status document, Examiner, Console) must never treat the flag
|
|
22
|
+
* as proof of an OS-triggered run — the OS scheduler witnesses
|
|
23
|
+
* (registration/lastRun) are the verified side. Login vs periodic is
|
|
24
|
+
* deliberately NOT distinguished (no platform reports it reliably).
|
|
25
|
+
*
|
|
26
|
+
* cli-1: `--json` stdout carries exactly one machine-readable document;
|
|
27
|
+
* diagnostics go to stderr. cli-2/cli-5: refusals set the exit code without
|
|
28
|
+
* mutating anything. cli-6: every refusal carries reason + nextAction.
|
|
29
|
+
*/
|
|
30
|
+
import { type ShadowRunResult, type ManagedRunResult, type ServiceRunTriggerSource } from '../services/service-host/index.js';
|
|
31
|
+
import type { WorkerHostKind } from '../services/service-host/index.js';
|
|
1
32
|
export interface ServiceRunOnceArgs {
|
|
2
33
|
readonly dryRun: boolean;
|
|
34
|
+
readonly shadow: boolean;
|
|
35
|
+
/** Explicit workspace selections for shadow mode (at least one required). */
|
|
36
|
+
readonly workspaces: readonly string[];
|
|
37
|
+
/** Restrict shadow to one host adapter (codex | workbuddy). */
|
|
38
|
+
readonly host?: WorkerHostKind;
|
|
39
|
+
/** Set when --host was given a value outside codex|workbuddy (fail-closed). */
|
|
40
|
+
readonly invalidHost?: string;
|
|
41
|
+
/** Self-declared trigger source for the status record (default manual) —
|
|
42
|
+
* reported, never verified (task §11). */
|
|
43
|
+
readonly trigger?: ServiceRunTriggerSource;
|
|
44
|
+
/** Set when --trigger was given a value outside manual|scheduler (fail-closed). */
|
|
45
|
+
readonly invalidTrigger?: string;
|
|
46
|
+
/** Trusted home injection (scheduler registration / installer / tests). */
|
|
47
|
+
readonly pdHome?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The RAW --timeout-ms argument string (F8 review fix): validated in full
|
|
50
|
+
* here — a partial parse like `5m` → 5 used to start a REAL cycle with a
|
|
51
|
+
* 1-second deadline, and an unparseable value silently fell back to the
|
|
52
|
+
* 45-minute default. Both paths now refuse before any execution.
|
|
53
|
+
*/
|
|
54
|
+
readonly timeoutMsRaw?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Caller-provided cancellation (F11 review fix). When absent, the CLI
|
|
57
|
+
* wires terminal SIGINT/SIGTERM to an internal controller so a terminal
|
|
58
|
+
* interrupt aborts the in-flight worker child through the SAME signal
|
|
59
|
+
* path. Tests inject a signal directly.
|
|
60
|
+
*/
|
|
61
|
+
readonly signal?: AbortSignal;
|
|
3
62
|
readonly json: boolean;
|
|
4
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* F8: validate the full --timeout-ms value BEFORE any real execution. The
|
|
66
|
+
* whole string must be a decimal integer inside the supported range —
|
|
67
|
+
* partial parses (`5m` → 5) and silent defaults (`five` → 45min) are
|
|
68
|
+
* refused with a structured reason instead of starting a mis-bounded
|
|
69
|
+
* worker.
|
|
70
|
+
*/
|
|
71
|
+
export declare function parseShadowTimeoutMs(raw: string | undefined): {
|
|
72
|
+
ok: true;
|
|
73
|
+
timeoutMs: number;
|
|
74
|
+
} | {
|
|
75
|
+
ok: false;
|
|
76
|
+
reason: string;
|
|
77
|
+
nextAction: string;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Wire the terminal's OS signals into ONE AbortController (F11 + P1-01
|
|
81
|
+
* final-closure review): SIGINT, SIGTERM and — on POSIX — SIGHUP all drive
|
|
82
|
+
* the same cancellation path the in-flight worker child already honours
|
|
83
|
+
* (process-group SIGTERM → bounded grace → SIGKILL → bounded stdio drain).
|
|
84
|
+
* A dropped SSH/terminal session must terminate the detached worker group
|
|
85
|
+
* through the coordinator's normal cleanup instead of leaving an
|
|
86
|
+
* uncontrolled worker — and a released lock — behind. Windows keeps its
|
|
87
|
+
* existing semantics: SIGHUP is never registered there.
|
|
88
|
+
*
|
|
89
|
+
* Returns the teardown that removes every listener it installed; callers
|
|
90
|
+
* invoke it exactly once when the coordinated work settles.
|
|
91
|
+
*/
|
|
92
|
+
export declare function wireTerminalAbortSignals(controller: AbortController): () => void;
|
|
93
|
+
/** Human rendering of one shadow execution (task §10: outcome + progress + health stay distinct). */
|
|
94
|
+
export declare function printHumanShadow(result: Extract<ShadowRunResult, {
|
|
95
|
+
outcome: 'completed';
|
|
96
|
+
}>): void;
|
|
97
|
+
/** Human rendering of one managed execution (task §4 admission matrix). */
|
|
98
|
+
export declare function printHumanManaged(result: Extract<ManagedRunResult, {
|
|
99
|
+
outcome: 'completed';
|
|
100
|
+
}>): void;
|
|
5
101
|
export declare function handleServiceRunOnce(args: ServiceRunOnceArgs): Promise<void>;
|
|
6
102
|
//# sourceMappingURL=service-run-once.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-run-once.d.ts","sourceRoot":"","sources":["../../src/commands/service-run-once.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service-run-once.d.ts","sourceRoot":"","sources":["../../src/commands/service-run-once.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAA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