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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/host-runtime",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"./pd-config": {
|
|
23
23
|
"types": "./dist/pd-config.d.ts",
|
|
24
24
|
"default": "./dist/pd-config.js"
|
|
25
|
+
},
|
|
26
|
+
"./source-material-authorization": {
|
|
27
|
+
"types": "./dist/source-material-authorization.d.ts",
|
|
28
|
+
"default": "./dist/source-material-authorization.js"
|
|
25
29
|
}
|
|
26
30
|
},
|
|
27
31
|
"files": [
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { type BackgroundExecutionRecord, type BackgroundExecutionState } from './index.js';
|
|
2
|
+
/** @deprecated Retired (PRI-1282 review round 4): file age never proves
|
|
3
|
+
* abandonment — reclaim authority is holder-PID liveness only. Kept exported
|
|
4
|
+
* for source compatibility; no code path consults it. */
|
|
5
|
+
export declare const DEFAULT_CAS_LOCK_STALE_MS = 30000;
|
|
6
|
+
export interface CasLockOwner {
|
|
7
|
+
schema: string;
|
|
8
|
+
token: string;
|
|
9
|
+
pid: number;
|
|
10
|
+
host: string;
|
|
11
|
+
operation: string;
|
|
12
|
+
workspaceDir: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CasLockAcquireOptions {
|
|
16
|
+
manifestPath: string;
|
|
17
|
+
operation: string;
|
|
18
|
+
workspaceDir: string;
|
|
19
|
+
/** @deprecated Retired (PRI-1282 review round 4): file age is never a
|
|
20
|
+
* reclaim authority — only a provably-dead holder PID is. Accepted and
|
|
21
|
+
* ignored for source compatibility. */
|
|
22
|
+
staleMs?: number;
|
|
23
|
+
now?: () => Date;
|
|
24
|
+
/** Test seam: real fs by default. */
|
|
25
|
+
fsOps?: CasFsOps;
|
|
26
|
+
/**
|
|
27
|
+
* Test seams — production passes nothing.
|
|
28
|
+
*/
|
|
29
|
+
probes?: {
|
|
30
|
+
/**
|
|
31
|
+
* Holder-liveness probe for the PID recorded in a stale lock's owner
|
|
32
|
+
* metadata. Default: `process.kill(pid, 0)` semantics
|
|
33
|
+
* (alive / ESRCH→dead / EPERM→alive / anything else→unknown). Tests
|
|
34
|
+
* inject fakes; an inconclusive answer MUST be 'unknown' (fail-closed).
|
|
35
|
+
*/
|
|
36
|
+
readonly processAlive?: (pid: number) => 'alive' | 'dead' | 'unknown';
|
|
37
|
+
/**
|
|
38
|
+
* Arbitration-gate factory. Default opens the real `better-sqlite3`
|
|
39
|
+
* gate database at `<manifest>.cas.gate.db`. Tests inject failures
|
|
40
|
+
* (gate unopenable → fail-closed `lock_io_error`) or wraps to prove
|
|
41
|
+
* a decision ran inside the transaction.
|
|
42
|
+
*/
|
|
43
|
+
readonly openGate?: (gatePath: string) => CasGateLike;
|
|
44
|
+
/**
|
|
45
|
+
* Deterministic test hook invoked once per phase INSIDE the gate
|
|
46
|
+
* transaction — a contender parked here still holds the gate, which
|
|
47
|
+
* is what interleaving tests need to prove.
|
|
48
|
+
*/
|
|
49
|
+
readonly gateSync?: (phase: CasGatePhase) => void;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/** Deterministic injection points inside the arbitrated section. */
|
|
53
|
+
export type CasGatePhase = 'gate-held' | 'lock-evaluated' | 'stale-removed' | 'lock-created';
|
|
54
|
+
export interface CasLockHandle {
|
|
55
|
+
lockDir: string;
|
|
56
|
+
owner: CasLockOwner;
|
|
57
|
+
release: () => void;
|
|
58
|
+
}
|
|
59
|
+
export type CasLockAcquireResult = {
|
|
60
|
+
ok: true;
|
|
61
|
+
handle: CasLockHandle;
|
|
62
|
+
} | {
|
|
63
|
+
ok: false;
|
|
64
|
+
reason: 'lock_busy' | 'lock_invalid' | 'lock_io_error';
|
|
65
|
+
message: string;
|
|
66
|
+
holder?: CasLockOwner;
|
|
67
|
+
};
|
|
68
|
+
/** Best-effort realpath probe (injectable for platform/alias tests). */
|
|
69
|
+
export type RealpathProbe = (target: string) => string | undefined;
|
|
70
|
+
/** Filesystem seam so tests can inject failures without monkey-patching node. */
|
|
71
|
+
export interface CasFsOps {
|
|
72
|
+
mkdirExclusive(dir: string): {
|
|
73
|
+
ok: true;
|
|
74
|
+
} | {
|
|
75
|
+
ok: false;
|
|
76
|
+
code: 'exists' | 'io';
|
|
77
|
+
error?: Error;
|
|
78
|
+
};
|
|
79
|
+
readJson(file: string): {
|
|
80
|
+
ok: true;
|
|
81
|
+
value: unknown;
|
|
82
|
+
} | {
|
|
83
|
+
ok: false;
|
|
84
|
+
code: 'missing' | 'malformed' | 'io';
|
|
85
|
+
error?: Error;
|
|
86
|
+
};
|
|
87
|
+
writeJson(file: string, value: unknown): {
|
|
88
|
+
ok: true;
|
|
89
|
+
} | {
|
|
90
|
+
ok: false;
|
|
91
|
+
code: 'io';
|
|
92
|
+
error?: Error;
|
|
93
|
+
};
|
|
94
|
+
removeDir(dir: string): {
|
|
95
|
+
ok: true;
|
|
96
|
+
} | {
|
|
97
|
+
ok: false;
|
|
98
|
+
code: 'io';
|
|
99
|
+
error?: Error;
|
|
100
|
+
};
|
|
101
|
+
rename(from: string, to: string): {
|
|
102
|
+
ok: true;
|
|
103
|
+
} | {
|
|
104
|
+
ok: false;
|
|
105
|
+
code: 'io';
|
|
106
|
+
error?: Error;
|
|
107
|
+
};
|
|
108
|
+
readFile(file: string): {
|
|
109
|
+
ok: true;
|
|
110
|
+
text: string;
|
|
111
|
+
} | {
|
|
112
|
+
ok: false;
|
|
113
|
+
code: 'missing' | 'io';
|
|
114
|
+
error?: Error;
|
|
115
|
+
};
|
|
116
|
+
writeFile(file: string, text: string): {
|
|
117
|
+
ok: true;
|
|
118
|
+
} | {
|
|
119
|
+
ok: false;
|
|
120
|
+
code: 'io';
|
|
121
|
+
error?: Error;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/** Minimal surface of `better-sqlite3.Database` the gate needs (test-injectable). */
|
|
125
|
+
export interface CasGateLike {
|
|
126
|
+
exec(sql: string): void;
|
|
127
|
+
close(): void;
|
|
128
|
+
}
|
|
129
|
+
/** The one arbitration database per manifest — stable, never per-attempt. */
|
|
130
|
+
export declare function casGatePath(manifestPath: string): string;
|
|
131
|
+
export declare function defaultCasFsOps(): CasFsOps;
|
|
132
|
+
/**
|
|
133
|
+
* Acquire the per-manifest CAS critical section. Every decision — evaluate
|
|
134
|
+
* the existing lock, reclaim a provably-dead holder's lock, create ours —
|
|
135
|
+
* runs inside ONE `BEGIN IMMEDIATE` transaction on the per-manifest
|
|
136
|
+
* arbitration gate ({@link casGatePath}), so verify→remove→create is a
|
|
137
|
+
* serialized section by construction: no second contender can interleave
|
|
138
|
+
* between the check and the action (PRI-1282 review round 4 — the
|
|
139
|
+
* rename-quarantine/restore pattern it replaces could strand or overwrite
|
|
140
|
+
* a fresh lock in the check→act gap).
|
|
141
|
+
*
|
|
142
|
+
* Reclaim authority is the recorded holder's PID liveness, never file age:
|
|
143
|
+
* a lock is reclaimed ONLY when the recorded PID is provably dead on this
|
|
144
|
+
* host — a dead holder cannot be inside the critical section and cannot
|
|
145
|
+
* resume to delete the replacement lock. A live, foreign-host or
|
|
146
|
+
* unverifiable holder is `lock_busy`/`lock_invalid` — fail-closed.
|
|
147
|
+
*/
|
|
148
|
+
export declare function acquireBackgroundExecutionCasLock(options: CasLockAcquireOptions): CasLockAcquireResult;
|
|
149
|
+
export interface WithManifestWriteLockOptions {
|
|
150
|
+
manifestPath: string;
|
|
151
|
+
/** Attribution label, e.g. 'installer.writeInstallManifest'. */
|
|
152
|
+
operation: string;
|
|
153
|
+
/** Attribution context — install-level writers pass the PD home. */
|
|
154
|
+
context: string;
|
|
155
|
+
/** Bounded busy-wait retries; the critical section is millisecond-scale. */
|
|
156
|
+
retries?: number;
|
|
157
|
+
retryDelayMs?: number;
|
|
158
|
+
fsOps?: CasFsOps;
|
|
159
|
+
now?: () => Date;
|
|
160
|
+
}
|
|
161
|
+
export type WithManifestWriteLockResult<T> = {
|
|
162
|
+
ok: true;
|
|
163
|
+
value: T;
|
|
164
|
+
} | {
|
|
165
|
+
ok: false;
|
|
166
|
+
reason: 'lock_busy' | 'lock_invalid' | 'lock_io_error';
|
|
167
|
+
message: string;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Run a manifest read-modify-write under the SAME physical lock the §8.4
|
|
171
|
+
* transition path takes (ERR-168: a whole-object load→modify→save writer that
|
|
172
|
+
* ignores the locked single-writer mutator can clobber its sub-section). The
|
|
173
|
+
* installer and update-side config writers wrap their writes with this; the
|
|
174
|
+
* transition primitive uses the lock directly. Lock failure is LOUD — a
|
|
175
|
+
* writer must never fall back to an unlocked write.
|
|
176
|
+
*/
|
|
177
|
+
export declare function withInstallManifestWriteLock<T>(options: WithManifestWriteLockOptions, fn: () => T): WithManifestWriteLockResult<T>;
|
|
178
|
+
export type WorkspaceBackgroundOwnership = {
|
|
179
|
+
status: 'legacy_owned';
|
|
180
|
+
source: 'no_record' | 'record';
|
|
181
|
+
/** Implicit generation of the legacy default is 0; a record carries its own. */
|
|
182
|
+
generation: number;
|
|
183
|
+
record?: BackgroundExecutionRecord;
|
|
184
|
+
} | {
|
|
185
|
+
status: Exclude<BackgroundExecutionState, 'legacy_owned'>;
|
|
186
|
+
generation: number;
|
|
187
|
+
record: BackgroundExecutionRecord;
|
|
188
|
+
} | {
|
|
189
|
+
status: 'manifest_unreadable';
|
|
190
|
+
reason: string;
|
|
191
|
+
nextAction: string;
|
|
192
|
+
};
|
|
193
|
+
export interface ReadOwnershipOptions {
|
|
194
|
+
manifestPath: string;
|
|
195
|
+
workspaceDir: string;
|
|
196
|
+
platform?: string;
|
|
197
|
+
fsOps?: CasFsOps;
|
|
198
|
+
/** Realpath probe for alias identity (default: native realpath). */
|
|
199
|
+
realpath?: RealpathProbe;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* The single read-side projection of §8.4 ownership for ONE workspace.
|
|
203
|
+
* Consumers: the OpenClaw Gateway start/tick gate, the `pd openclaw worker`
|
|
204
|
+
* gate, and the handover/rollback commands. Fail-closed: an unreadable or
|
|
205
|
+
* malformed manifest is `manifest_unreadable` — "cannot decide" is NEVER
|
|
206
|
+
* collapsed into "legacy by default" for a consumer that is about to act.
|
|
207
|
+
*/
|
|
208
|
+
export declare function readWorkspaceBackgroundOwnership(options: ReadOwnershipOptions): WorkspaceBackgroundOwnership;
|
|
209
|
+
export declare const BACKGROUND_EXECUTION_TRANSITIONS: readonly ['begin_handover', 'abort_handover', 'complete_handover', 'begin_rollback', 'complete_rollback', 'abort_rollback'];
|
|
210
|
+
export type BackgroundExecutionTransitionKind = (typeof BACKGROUND_EXECUTION_TRANSITIONS)[number];
|
|
211
|
+
export interface TransitionBackgroundExecutionInput {
|
|
212
|
+
manifestPath: string;
|
|
213
|
+
workspaceDir: string;
|
|
214
|
+
kind: BackgroundExecutionTransitionKind;
|
|
215
|
+
/**
|
|
216
|
+
* Idempotency key of the operator's operation. Must match the persisted
|
|
217
|
+
* `operationId` of an in-flight transition record for complete/abort; a
|
|
218
|
+
* begin replaying the SAME id onto the same transition state is a no-op.
|
|
219
|
+
*/
|
|
220
|
+
operationId: string;
|
|
221
|
+
/** Caller-observed generation fence; mismatch refuses (stale view loses). */
|
|
222
|
+
expectedGeneration?: number;
|
|
223
|
+
/** begin_handover only: also merge the workspace into `workspaces[]`. */
|
|
224
|
+
registerWorkspace?: boolean;
|
|
225
|
+
platform?: string;
|
|
226
|
+
now?: () => Date;
|
|
227
|
+
staleMs?: number;
|
|
228
|
+
fsOps?: CasFsOps;
|
|
229
|
+
/** Realpath probe for alias identity (default: native realpath). */
|
|
230
|
+
realpath?: RealpathProbe;
|
|
231
|
+
/** Forwarded to the CAS lock acquire (holder-liveness test seam). */
|
|
232
|
+
probes?: CasLockAcquireOptions['probes'];
|
|
233
|
+
}
|
|
234
|
+
export interface TransitionBackgroundExecutionSuccess {
|
|
235
|
+
ok: true;
|
|
236
|
+
/** Whether this call mutated the manifest (false = idempotent replay). */
|
|
237
|
+
changed: boolean;
|
|
238
|
+
record: BackgroundExecutionRecord;
|
|
239
|
+
previous: BackgroundExecutionRecord | undefined;
|
|
240
|
+
}
|
|
241
|
+
export interface TransitionBackgroundExecutionFailure {
|
|
242
|
+
ok: false;
|
|
243
|
+
reason: 'invalid_input' | 'manifest_unreadable' | 'workspace_not_registered' | 'unexpected_state' | 'stale_generation' | 'operation_in_progress' | 'operation_mismatch' | 'lock_busy' | 'lock_invalid' | 'lock_io_error' | 'io_error';
|
|
244
|
+
message: string;
|
|
245
|
+
nextAction?: string;
|
|
246
|
+
current?: WorkspaceBackgroundOwnership;
|
|
247
|
+
}
|
|
248
|
+
export type TransitionBackgroundExecutionResult = TransitionBackgroundExecutionSuccess | TransitionBackgroundExecutionFailure;
|
|
249
|
+
/**
|
|
250
|
+
* Execute one §8.4 state-machine transition for one Workspace under the CAS
|
|
251
|
+
* critical section. The manifest is read, validated, mutated as a RAW object
|
|
252
|
+
* (unknown top-level fields survive — the update side owns `channel` /
|
|
253
|
+
* `autoCheck` / `releaseMetadataUrl`), re-validated, and landed with an
|
|
254
|
+
* atomic rename. A legacy single-key `backgroundExecution` spelling is
|
|
255
|
+
* migrated to the per-Workspace map in the same write (both spellings after
|
|
256
|
+
* the write would be a parse conflict).
|
|
257
|
+
*/
|
|
258
|
+
export declare function transitionWorkspaceBackgroundExecution(input: TransitionBackgroundExecutionInput): TransitionBackgroundExecutionResult;
|