create-principles-disciple 1.144.26 → 1.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_release/product-identity.json +2 -2
- package/codex-adapter/dist/codex-evidence-recorder.js +8 -2
- package/codex-adapter/dist/index.d.ts +2 -2
- package/codex-adapter/dist/index.js +1 -1
- package/codex-adapter/dist/ingestion/admission.js +16 -0
- package/codex-adapter/dist/ingestion/codex-version.d.ts +10 -4
- package/codex-adapter/dist/ingestion/codex-version.js +10 -4
- package/codex-adapter/dist/ingestion/explicit-owner-statement.d.ts +48 -0
- package/codex-adapter/dist/ingestion/explicit-owner-statement.js +123 -0
- package/codex-adapter/dist/ingestion/ingestion.js +50 -1
- package/codex-adapter/dist/pd-hook.js +66 -3
- package/codex-adapter/dist/worker/workspace-worker.d.ts +14 -0
- package/codex-adapter/dist/worker/workspace-worker.js +194 -11
- package/codex-adapter/package.json +2 -2
- package/console/dist/server/models/ApprovalsConsoleModel.d.ts +2 -2
- package/console/dist/server/models/ApprovalsConsoleModel.js +1 -1
- package/console/dist/server/models/ApprovalsGroupedConsoleModel.js +1 -1
- package/console/dist/server/models/PrinciplesConsoleModel.d.ts +26 -1
- package/console/dist/server/models/PrinciplesConsoleModel.js +18 -1
- package/console/dist/server/routes/activations.js +4 -4
- package/console/dist/server/routes/approvals.js +2 -2
- package/console/dist/server/routes/failed-tasks.d.ts +9 -0
- package/console/dist/server/routes/failed-tasks.js +116 -7
- package/console/dist/server/routes/principles.js +73 -1
- package/console/dist/shared/prompt-injection-contract.d.ts +1 -1
- package/console/dist/ui/api.d.ts +5 -5
- package/console/dist/ui/i18n/en.json +13 -2
- package/console/dist/ui/i18n/zh-CN.json +13 -2
- package/console/dist/ui/pages/activation/ActivationPage.js +2 -1
- package/console/dist/ui/pages/failed-tasks/FailedTasksPage.js +42 -4
- package/console/dist/ui/pages/focus/FocusPage.js +3 -3
- package/console/dist/ui/pages/principles/PrinciplesPage.js +7 -2
- package/console/dist/ui/utils/validators.d.ts +6 -2
- package/console/dist/ui/utils/validators.js +19 -4
- package/console/dist/web/assets/app.css +26 -0
- package/console/dist/web/assets/app.js +24 -24
- package/console/package.json +4 -4
- package/core/dist/host/host-installer.d.ts +3 -1
- package/core/dist/host/host-installer.d.ts.map +1 -1
- package/core/dist/host/host-installer.js.map +1 -1
- package/core/dist/runtime-v2/admission-gate.d.ts +8 -0
- package/core/dist/runtime-v2/admission-gate.d.ts.map +1 -1
- package/core/dist/runtime-v2/admission-gate.js +3 -2
- package/core/dist/runtime-v2/admission-gate.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-defaults.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-defaults.js +16 -1
- package/core/dist/runtime-v2/config/pd-config-defaults.js.map +1 -1
- package/core/dist/runtime-v2/context-payload.d.ts +43 -3
- package/core/dist/runtime-v2/context-payload.d.ts.map +1 -1
- package/core/dist/runtime-v2/context-payload.js +15 -1
- package/core/dist/runtime-v2/context-payload.js.map +1 -1
- package/core/dist/runtime-v2/evidence-guards.d.ts +6 -0
- package/core/dist/runtime-v2/evidence-guards.d.ts.map +1 -1
- package/core/dist/runtime-v2/evidence-guards.js +11 -0
- package/core/dist/runtime-v2/evidence-guards.js.map +1 -1
- package/core/dist/runtime-v2/evolution/evolution-types.d.ts +4 -4
- package/core/dist/runtime-v2/evolution/evolution-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/evolution/evolution-types.js +1 -1
- package/core/dist/runtime-v2/evolution/evolution-types.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +6 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js +8 -0
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/core/dist/runtime-v2/index.d.ts +5 -2
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +3 -1
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/adversarial-feedback.d.ts +3 -1
- package/core/dist/runtime-v2/internalization/adversarial-feedback.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/adversarial-feedback.js +10 -1
- package/core/dist/runtime-v2/internalization/adversarial-feedback.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-output.d.ts +11 -0
- package/core/dist/runtime-v2/internalization/evaluator-output.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-output.js +10 -0
- package/core/dist/runtime-v2/internalization/evaluator-output.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts +3 -3
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js +49 -5
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js +13 -16
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/owner-decision-review.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/owner-decision-review.js +5 -1
- package/core/dist/runtime-v2/internalization/owner-decision-review.js.map +1 -1
- package/core/dist/runtime-v2/internalization/owner-review.d.ts +2 -2
- package/core/dist/runtime-v2/internalization/owner-review.js +2 -2
- package/core/dist/runtime-v2/internalization/scribe-output.d.ts +12 -0
- package/core/dist/runtime-v2/internalization/scribe-output.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-output.js +20 -0
- package/core/dist/runtime-v2/internalization/scribe-output.js.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts +32 -1
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js +38 -1
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/internalization-queue-read-model.d.ts +6 -0
- package/core/dist/runtime-v2/internalization-queue-read-model.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization-queue-read-model.js +8 -1
- package/core/dist/runtime-v2/internalization-queue-read-model.js.map +1 -1
- package/core/dist/runtime-v2/intervention-evidence-normalizer.d.ts.map +1 -1
- package/core/dist/runtime-v2/intervention-evidence-normalizer.js +10 -3
- package/core/dist/runtime-v2/intervention-evidence-normalizer.js.map +1 -1
- package/core/dist/runtime-v2/pain-ingress.d.ts +1 -1
- package/core/dist/runtime-v2/pain-ingress.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts +68 -2
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-bridge.js +541 -18
- package/core/dist/runtime-v2/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js +4 -0
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js.map +1 -1
- package/core/dist/runtime-v2/product-telemetry/snapshot-contract.d.ts +2 -2
- package/core/dist/runtime-v2/product-telemetry/snapshot-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/product-telemetry/snapshot-contract.js +2 -2
- package/core/dist/runtime-v2/product-telemetry/snapshot-contract.js.map +1 -1
- package/core/dist/runtime-v2/store/candidate/admission-document.d.ts +90 -0
- package/core/dist/runtime-v2/store/candidate/admission-document.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/candidate/admission-document.js +142 -0
- package/core/dist/runtime-v2/store/candidate/admission-document.js.map +1 -0
- package/core/dist/runtime-v2/store/candidate/candidate-store.d.ts +53 -0
- package/core/dist/runtime-v2/store/candidate/candidate-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts +35 -0
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.js +48 -0
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.js.map +1 -1
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts +44 -0
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js +136 -0
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js.map +1 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +1 -1
- package/core/dist/runtime-v2/store/intervention-evidence-schema.js +1 -1
- package/core/dist/runtime-v2/store/runtime-state-manager.d.ts +65 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/runtime-state-manager.js +46 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js +42 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-intervention-evidence-store.d.ts +1 -1
- package/core/dist/runtime-v2/store/sqlite-intervention-evidence-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-intervention-evidence-store.js.map +1 -1
- package/core/dist/runtime-v2/store/task/sqlite-family-reopen.d.ts +19 -0
- package/core/dist/runtime-v2/store/task/sqlite-family-reopen.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/task/sqlite-family-reopen.js +36 -0
- package/core/dist/runtime-v2/store/task/sqlite-family-reopen.js.map +1 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts +23 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js +50 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -1
- package/core/dist/runtime-v2/task-status.d.ts +3 -1
- package/core/dist/runtime-v2/task-status.d.ts.map +1 -1
- package/core/dist/runtime-v2/task-status.js +1 -1
- package/core/dist/runtime-v2/task-status.js.map +1 -1
- package/core/dist/runtime-v2/trajectory-schema.d.ts.map +1 -1
- package/core/dist/runtime-v2/trajectory-schema.js +11 -0
- package/core/dist/runtime-v2/trajectory-schema.js.map +1 -1
- package/core/dist/runtime-v2/types/event-types.d.ts +2 -2
- package/core/dist/runtime-v2/types/event-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-types.js +1 -1
- package/core/dist/runtime-v2/types/event-types.js.map +1 -1
- package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts +1 -1
- package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/evidence-chain-contract.js +2 -2
- package/core/dist/runtime-v2/types/evidence-chain-contract.js.map +1 -1
- package/core/dist/runtime-v2/types/intervention-evidence-contract.d.ts +3 -3
- package/core/dist/runtime-v2/types/intervention-evidence-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/intervention-evidence-contract.js +1 -0
- package/core/dist/runtime-v2/types/intervention-evidence-contract.js.map +1 -1
- package/core/dist/telemetry-event.d.ts +2 -2
- package/core/dist/telemetry-event.d.ts.map +1 -1
- package/core/dist/telemetry-event.js +4 -0
- package/core/dist/telemetry-event.js.map +1 -1
- package/core/dist/trajectory-types.d.ts +2 -2
- package/core/dist/trajectory-types.d.ts.map +1 -1
- package/core/package.json +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +84 -8
- package/dist/index.js.map +1 -1
- package/dist/installer.d.ts +42 -11
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +140 -36
- package/dist/installer.js.map +1 -1
- package/dist/installers/index.d.ts +18 -7
- package/dist/installers/index.d.ts.map +1 -1
- package/dist/installers/index.js +13 -4
- package/dist/installers/index.js.map +1 -1
- package/dist/installers/workbuddy-host-installer.d.ts +246 -0
- package/dist/installers/workbuddy-host-installer.d.ts.map +1 -0
- package/dist/installers/workbuddy-host-installer.js +1419 -0
- package/dist/installers/workbuddy-host-installer.js.map +1 -0
- package/dist/mvp-config.d.ts +24 -0
- package/dist/mvp-config.d.ts.map +1 -1
- package/dist/mvp-config.js +36 -0
- package/dist/mvp-config.js.map +1 -1
- package/dist/prompts.d.ts +13 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +45 -8
- package/dist/prompts.js.map +1 -1
- package/dist/uninstaller.d.ts +1 -1
- package/dist/uninstaller.d.ts.map +1 -1
- package/dist/uninstaller.js +29 -4
- package/dist/uninstaller.js.map +1 -1
- package/host-runtime/dist/governance-signal-admission.d.ts +63 -0
- package/host-runtime/dist/governance-signal-admission.js +322 -53
- package/host-runtime/dist/host-liveness-contract.js +7 -1
- package/host-runtime/dist/index.d.ts +1 -0
- package/host-runtime/dist/index.js +5 -1
- package/host-runtime/dist/internalization-consumer-cycle.d.ts +12 -0
- package/host-runtime/dist/internalization-consumer-cycle.js +43 -1
- package/host-runtime/dist/intervention-evidence-ingress.d.ts +1 -1
- package/host-runtime/dist/product-telemetry/service.js +1 -1
- package/host-runtime/dist/production-pain-evidence.d.ts +59 -1
- package/host-runtime/dist/production-pain-evidence.js +200 -17
- package/host-runtime/dist/prompt-activation-deliverability.js +5 -4
- package/host-runtime/dist/prompt-injection-event-evidence.d.ts +1 -1
- package/host-runtime/dist/prompt-injection-event-evidence.js +5 -1
- package/host-runtime/dist/prompt-injection-projection.d.ts +14 -5
- package/host-runtime/dist/prompt-injection-projection.js +30 -16
- package/host-runtime/dist/workbuddy-worker-status.d.ts +24 -0
- package/host-runtime/dist/workbuddy-worker-status.js +52 -0
- package/host-runtime/package.json +3 -3
- package/install-layout/dist/index.d.ts +18 -1
- package/install-layout/dist/index.js +15 -2
- package/install-layout/package.json +1 -1
- package/package.json +6 -5
- package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
- package/pd-cli/dist/commands/candidate.js +44 -4
- package/pd-cli/dist/commands/candidate.js.map +1 -1
- package/pd-cli/dist/commands/codex-worker.d.ts.map +1 -1
- package/pd-cli/dist/commands/codex-worker.js +30 -1
- package/pd-cli/dist/commands/codex-worker.js.map +1 -1
- package/pd-cli/dist/commands/config-doctor.d.ts.map +1 -1
- package/pd-cli/dist/commands/config-doctor.js +19 -4
- package/pd-cli/dist/commands/config-doctor.js.map +1 -1
- package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
- package/pd-cli/dist/commands/diagnose.js +4 -1
- package/pd-cli/dist/commands/diagnose.js.map +1 -1
- package/pd-cli/dist/commands/health-codex-install.d.ts +85 -0
- package/pd-cli/dist/commands/health-codex-install.d.ts.map +1 -0
- package/pd-cli/dist/commands/health-codex-install.js +207 -0
- package/pd-cli/dist/commands/health-codex-install.js.map +1 -0
- package/pd-cli/dist/commands/health-codex.d.ts.map +1 -1
- package/pd-cli/dist/commands/health-codex.js +78 -0
- package/pd-cli/dist/commands/health-codex.js.map +1 -1
- package/pd-cli/dist/commands/pain-list.d.ts +3 -2
- package/pd-cli/dist/commands/pain-list.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-list.js +10 -10
- package/pd-cli/dist/commands/pain-list.js.map +1 -1
- package/pd-cli/dist/commands/pain-record.d.ts +2 -0
- package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-record.js +36 -0
- package/pd-cli/dist/commands/pain-record.js.map +1 -1
- package/pd-cli/dist/commands/pain-retry.d.ts +6 -0
- package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-retry.js +152 -5
- package/pd-cli/dist/commands/pain-retry.js.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.d.ts +1 -1
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +3 -3
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/pd-cli/dist/commands/workbuddy-worker.d.ts +19 -0
- package/pd-cli/dist/commands/workbuddy-worker.d.ts.map +1 -0
- package/pd-cli/dist/commands/workbuddy-worker.js +168 -0
- package/pd-cli/dist/commands/workbuddy-worker.js.map +1 -0
- package/pd-cli/dist/index.js +29 -1
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/resolve-workspace.d.ts +14 -2
- package/pd-cli/dist/resolve-workspace.d.ts.map +1 -1
- package/pd-cli/dist/resolve-workspace.js +88 -21
- package/pd-cli/dist/resolve-workspace.js.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.d.ts +24 -0
- package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -0
- package/pd-cli/dist/services/admission-write-gate.js +41 -0
- package/pd-cli/dist/services/admission-write-gate.js.map +1 -0
- package/pd-cli/dist/services/pd-config-loader.d.ts +39 -7
- package/pd-cli/dist/services/pd-config-loader.d.ts.map +1 -1
- package/pd-cli/dist/services/pd-config-loader.js +111 -18
- package/pd-cli/dist/services/pd-config-loader.js.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts +10 -0
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.js +59 -4
- package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
- package/pd-cli/package.json +4 -3
- package/plugin/dist/bundle.js +564 -509
- package/plugin/dist/governance-audit.js +1 -1
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/dist/rulehost-evidence.js +1 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +3 -3
- package/release-manager/dist/index.d.ts.map +1 -1
- package/release-manager/dist/index.js +84 -8
- package/release-manager/dist/index.js.map +1 -1
- package/release-manager/dist/installer.d.ts +42 -11
- package/release-manager/dist/installer.d.ts.map +1 -1
- package/release-manager/dist/installer.js +140 -36
- package/release-manager/dist/installer.js.map +1 -1
- package/release-manager/dist/installers/index.d.ts +18 -7
- package/release-manager/dist/installers/index.d.ts.map +1 -1
- package/release-manager/dist/installers/index.js +13 -4
- package/release-manager/dist/installers/index.js.map +1 -1
- package/release-manager/dist/installers/workbuddy-host-installer.d.ts +246 -0
- package/release-manager/dist/installers/workbuddy-host-installer.d.ts.map +1 -0
- package/release-manager/dist/installers/workbuddy-host-installer.js +1419 -0
- package/release-manager/dist/installers/workbuddy-host-installer.js.map +1 -0
- package/release-manager/dist/mvp-config.d.ts +24 -0
- package/release-manager/dist/mvp-config.d.ts.map +1 -1
- package/release-manager/dist/mvp-config.js +36 -0
- package/release-manager/dist/mvp-config.js.map +1 -1
- package/release-manager/dist/prompts.d.ts +13 -0
- package/release-manager/dist/prompts.d.ts.map +1 -1
- package/release-manager/dist/prompts.js +45 -8
- package/release-manager/dist/prompts.js.map +1 -1
- package/release-manager/dist/uninstaller.d.ts +1 -1
- package/release-manager/dist/uninstaller.d.ts.map +1 -1
- package/release-manager/dist/uninstaller.js +29 -4
- package/release-manager/dist/uninstaller.js.map +1 -1
- package/release-manager/package.json +5 -4
- package/workbuddy-adapter/dist/codec/index.d.ts +2 -0
- package/workbuddy-adapter/dist/codec/index.js +2 -0
- package/workbuddy-adapter/dist/codec/input-decoder.d.ts +30 -0
- package/workbuddy-adapter/dist/codec/input-decoder.js +232 -0
- package/workbuddy-adapter/dist/codec/output-encoder.d.ts +62 -0
- package/workbuddy-adapter/dist/codec/output-encoder.js +75 -0
- package/workbuddy-adapter/dist/host-adapter.d.ts +33 -0
- package/workbuddy-adapter/dist/host-adapter.js +23 -0
- package/workbuddy-adapter/dist/index.d.ts +16 -0
- package/workbuddy-adapter/dist/index.js +16 -0
- package/workbuddy-adapter/dist/pd-hook.d.ts +17 -0
- package/workbuddy-adapter/dist/pd-hook.js +505 -0
- package/workbuddy-adapter/dist/tool-semantics.d.ts +22 -0
- package/workbuddy-adapter/dist/tool-semantics.js +33 -0
- package/workbuddy-adapter/dist/workbuddy-evidence-recorder.d.ts +50 -0
- package/workbuddy-adapter/dist/workbuddy-evidence-recorder.js +238 -0
- package/workbuddy-adapter/dist/worker/workspace-worker.d.ts +41 -0
- package/workbuddy-adapter/dist/worker/workspace-worker.js +219 -0
- package/workbuddy-adapter/dist/workspace-resolution.d.ts +15 -0
- package/workbuddy-adapter/dist/workspace-resolution.js +53 -0
- package/workbuddy-adapter/package.json +62 -0
- package/workbuddy-adapter/plugin/.codebuddy-plugin/plugin.json +6 -0
- package/workbuddy-adapter/plugin/hooks/hooks.json +62 -0
- package/workbuddy-adapter/plugin/scripts/wrapper.cjs +79 -0
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
* MVP hosts:
|
|
7
7
|
* - 'openclaw' (default) — OpenClawHostInstaller writes ~/.openclaw/openclaw.json.
|
|
8
8
|
* - 'codex' — CodexHostInstaller writes ~/.codex/hooks.json.
|
|
9
|
-
* - '
|
|
9
|
+
* - 'workbuddy' — WorkBuddyHostInstaller registers the PD plugin into
|
|
10
|
+
* WorkBuddy's marketplace/plugin system (quiet, opt-in:
|
|
11
|
+
* 'all' deliberately does NOT include it — SPEC
|
|
12
|
+
* workbuddy-host-adapter §6 install≠enable).
|
|
13
|
+
* - 'all' — openclaw + codex (both legacy install flows).
|
|
10
14
|
*
|
|
11
15
|
* Runtime Contract Rules:
|
|
12
16
|
* - rc-1-treat-as-unknown: --host CLI value is `unknown` until validated here.
|
|
@@ -16,11 +20,13 @@
|
|
|
16
20
|
import type { HostInstaller } from '@principles/core/host';
|
|
17
21
|
export { OpenClawHostInstaller } from './openclaw-host-installer.js';
|
|
18
22
|
export { CodexHostInstaller } from './codex-host-installer.js';
|
|
23
|
+
export { WorkBuddyHostInstaller } from './workbuddy-host-installer.js';
|
|
19
24
|
/**
|
|
20
|
-
* Host target selector. 'all' runs
|
|
21
|
-
*
|
|
25
|
+
* Host target selector. 'all' runs openclaw + codex. WorkBuddy is an explicit,
|
|
26
|
+
* separate target: installing it is an opt-in decision (OD-03/OD-04), so 'all'
|
|
27
|
+
* must not silently register a third host.
|
|
22
28
|
*/
|
|
23
|
-
export type HostTarget = 'openclaw' | 'codex' | 'all';
|
|
29
|
+
export type HostTarget = 'openclaw' | 'codex' | 'workbuddy' | 'all';
|
|
24
30
|
export declare const HOST_TARGETS: readonly HostTarget[];
|
|
25
31
|
/**
|
|
26
32
|
* Validate a CLI --host value. rc-1/rc-3: treat input as unknown, fail loud.
|
|
@@ -29,9 +35,14 @@ export declare function isHostTarget(value: unknown): value is HostTarget;
|
|
|
29
35
|
/**
|
|
30
36
|
* Factory: return the concrete HostInstaller instances for a given target.
|
|
31
37
|
*
|
|
32
|
-
* - 'openclaw'
|
|
33
|
-
* - 'codex'
|
|
34
|
-
* - '
|
|
38
|
+
* - 'openclaw' → [OpenClawHostInstaller]
|
|
39
|
+
* - 'codex' → [CodexHostInstaller]
|
|
40
|
+
* - 'workbuddy' → [WorkBuddyHostInstaller]
|
|
41
|
+
* - 'all' → [OpenClawHostInstaller, CodexHostInstaller]
|
|
42
|
+
*
|
|
43
|
+
* Note: uninstall flows that need "every host PD ever registered with" (the
|
|
44
|
+
* uninstall --host all contract) widen the list at their call site to include
|
|
45
|
+
* WorkBuddyHostInstaller — uninstalling a registration is cleanup, not opt-in.
|
|
35
46
|
*
|
|
36
47
|
* Callers iterate the returned array and call install()/uninstall()/detect()
|
|
37
48
|
* on each. This keeps the CLI install/uninstall flow host-agnostic.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/installers/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/installers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,CAAC;AAEpE,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAA8C,CAAC;AAE7F;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,EAAE,CAcrE"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { OpenClawHostInstaller } from './openclaw-host-installer.js';
|
|
2
2
|
import { CodexHostInstaller } from './codex-host-installer.js';
|
|
3
|
+
import { WorkBuddyHostInstaller } from './workbuddy-host-installer.js';
|
|
3
4
|
export { OpenClawHostInstaller } from './openclaw-host-installer.js';
|
|
4
5
|
export { CodexHostInstaller } from './codex-host-installer.js';
|
|
5
|
-
export
|
|
6
|
+
export { WorkBuddyHostInstaller } from './workbuddy-host-installer.js';
|
|
7
|
+
export const HOST_TARGETS = ['openclaw', 'codex', 'workbuddy', 'all'];
|
|
6
8
|
/**
|
|
7
9
|
* Validate a CLI --host value. rc-1/rc-3: treat input as unknown, fail loud.
|
|
8
10
|
*/
|
|
@@ -12,9 +14,14 @@ export function isHostTarget(value) {
|
|
|
12
14
|
/**
|
|
13
15
|
* Factory: return the concrete HostInstaller instances for a given target.
|
|
14
16
|
*
|
|
15
|
-
* - 'openclaw'
|
|
16
|
-
* - 'codex'
|
|
17
|
-
* - '
|
|
17
|
+
* - 'openclaw' → [OpenClawHostInstaller]
|
|
18
|
+
* - 'codex' → [CodexHostInstaller]
|
|
19
|
+
* - 'workbuddy' → [WorkBuddyHostInstaller]
|
|
20
|
+
* - 'all' → [OpenClawHostInstaller, CodexHostInstaller]
|
|
21
|
+
*
|
|
22
|
+
* Note: uninstall flows that need "every host PD ever registered with" (the
|
|
23
|
+
* uninstall --host all contract) widen the list at their call site to include
|
|
24
|
+
* WorkBuddyHostInstaller — uninstalling a registration is cleanup, not opt-in.
|
|
18
25
|
*
|
|
19
26
|
* Callers iterate the returned array and call install()/uninstall()/detect()
|
|
20
27
|
* on each. This keeps the CLI install/uninstall flow host-agnostic.
|
|
@@ -28,6 +35,8 @@ export function getHostInstallers(target) {
|
|
|
28
35
|
return [new OpenClawHostInstaller()];
|
|
29
36
|
case 'codex':
|
|
30
37
|
return [new CodexHostInstaller()];
|
|
38
|
+
case 'workbuddy':
|
|
39
|
+
return [new WorkBuddyHostInstaller()];
|
|
31
40
|
case 'all':
|
|
32
41
|
return [new OpenClawHostInstaller(), new CodexHostInstaller()];
|
|
33
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/installers/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/installers/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AASvE,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;AAE7F;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,YAAkC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC1F,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAkB;IAClD,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,wBAAwB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACvG,CAAC;IACD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,UAAU;YACb,OAAO,CAAC,IAAI,qBAAqB,EAAE,CAAC,CAAC;QACvC,KAAK,OAAO;YACV,OAAO,CAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC;QACpC,KAAK,WAAW;YACd,OAAO,CAAC,IAAI,sBAAsB,EAAE,CAAC,CAAC;QACxC,KAAK,KAAK;YACR,OAAO,CAAC,IAAI,qBAAqB,EAAE,EAAE,IAAI,kBAAkB,EAAE,CAAC,CAAC;IACnE,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import type { HostInstaller, HostInstallContext, HostInstallResult, HostUninstallContext, HostUninstallResult, HostDetectResult } from '@principles/core/host';
|
|
2
|
+
/** Plugin name inside the PD-owned marketplace (kebab-case per plugin.json contract). */
|
|
3
|
+
export declare const WORKBUDDY_PLUGIN_NAME = "principles-disciple";
|
|
4
|
+
/** PD-owned local marketplace name. enabledPlugins keys use "plugin@marketplace". */
|
|
5
|
+
export declare const WORKBUDDY_MARKETPLACE_NAME = "principles-disciple-market";
|
|
6
|
+
/** Registry/settings key: "principles-disciple@principles-disciple-market". */
|
|
7
|
+
export declare const WORKBUDDY_PLUGIN_KEY = "principles-disciple@principles-disciple-market";
|
|
8
|
+
export interface WorkbuddyCommandResult {
|
|
9
|
+
status: number | null;
|
|
10
|
+
stdout: string;
|
|
11
|
+
stderr: string;
|
|
12
|
+
error?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface WorkbuddyCommandOptions {
|
|
15
|
+
timeoutMs?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Extra environment for the engine child (merged over process.env).
|
|
18
|
+
* S2 (review 2026-10-13): the REAL engine resolves its config root from
|
|
19
|
+
* CODEBUDDY_CONFIG_DIR first (Phase 0 P0 isolation recipe) — without an
|
|
20
|
+
* explicit override it registers into ~/.codebuddy or a pre-existing
|
|
21
|
+
* CodeBuddy root while the installer verifies the declared WorkBuddy root.
|
|
22
|
+
*/
|
|
23
|
+
env?: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
export interface WorkbuddyHostInstallerDeps {
|
|
26
|
+
/** Home directory resolver (tests inject a temp dir; default: getHomeDir()). */
|
|
27
|
+
homeDir?: () => string;
|
|
28
|
+
/** Engine path resolver (default: env override + Program Files probe). */
|
|
29
|
+
enginePath?: () => string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* pd-cli runtime entry resolver (default: the installed runtime pd-cli under
|
|
32
|
+
* install-layout's pdCliDir). Its `runtime init` is the SHARED initializer
|
|
33
|
+
* that creates the governance workspace's .pd/config.yaml (core defaults),
|
|
34
|
+
* .pd/state.db and the canonical .state/trajectory.db schema — the same
|
|
35
|
+
* entry the main installer runs for the generic workspace (review R1).
|
|
36
|
+
*/
|
|
37
|
+
pdCliEntry?: () => string | undefined;
|
|
38
|
+
/** Command runner (default: spawnSync). Tests inject a fake engine boundary. */
|
|
39
|
+
runCommand?: (file: string, args: readonly string[], opts?: WorkbuddyCommandOptions) => WorkbuddyCommandResult;
|
|
40
|
+
}
|
|
41
|
+
/** All WorkBuddy paths PD may touch, derived from install-layout (never hand-joined ad hoc). */
|
|
42
|
+
export interface WorkbuddyPaths {
|
|
43
|
+
homeDir: string;
|
|
44
|
+
/** Host config dir (engine honors WORKBUDDY_CONFIG_DIR when set). */
|
|
45
|
+
configDir: string;
|
|
46
|
+
settingsPath: string;
|
|
47
|
+
registryPath: string;
|
|
48
|
+
/** <config>/plugins/cache/<marketplace>/<plugin> — our versioned cache subtree root. */
|
|
49
|
+
cachePluginRoot: string;
|
|
50
|
+
/** PD-owned marketplace root: ~/.pd/workbuddy-marketplace. */
|
|
51
|
+
marketplaceRoot: string;
|
|
52
|
+
/** ~/.workbuddy/pd-workspace (OD-07 governance workspace). */
|
|
53
|
+
governanceDir: string;
|
|
54
|
+
/** ~/.pd/runtime/workbuddy-adapter (frozen install-layout path). */
|
|
55
|
+
runtimeAdapterDir: string;
|
|
56
|
+
/** ~/.pd/install.json. */
|
|
57
|
+
installManifestPath: string;
|
|
58
|
+
}
|
|
59
|
+
export declare function resolveWorkbuddyPaths(homeDir: string): WorkbuddyPaths;
|
|
60
|
+
/**
|
|
61
|
+
* Resolve the WorkBuddy engine CLI path.
|
|
62
|
+
*
|
|
63
|
+
* Order: PD_WORKBUDDY_ENGINE / WB_ENGINE env override (probe convention) →
|
|
64
|
+
* the Desktop install location under Program Files (frozen by probe P01).
|
|
65
|
+
* The engine is NOT exposed on PATH — absence is a detectable, reportable
|
|
66
|
+
* fact, never a guess.
|
|
67
|
+
*/
|
|
68
|
+
export declare function resolveWorkbuddyEnginePath(): string | undefined;
|
|
69
|
+
export type JsonFileRead = {
|
|
70
|
+
ok: true;
|
|
71
|
+
value: Record<string, unknown>;
|
|
72
|
+
existed: true;
|
|
73
|
+
} | {
|
|
74
|
+
ok: true;
|
|
75
|
+
value: undefined;
|
|
76
|
+
existed: false;
|
|
77
|
+
} | {
|
|
78
|
+
ok: false;
|
|
79
|
+
reason: string;
|
|
80
|
+
nextAction: string;
|
|
81
|
+
path: string;
|
|
82
|
+
};
|
|
83
|
+
/** Read + validate a host JSON file. Malformed content is a HARD STOP (rc-3). */
|
|
84
|
+
export declare function readHostJsonFile(filePath: string): JsonFileRead;
|
|
85
|
+
/**
|
|
86
|
+
* Atomic, backup-protected JSON write for host config files.
|
|
87
|
+
*
|
|
88
|
+
* Discipline (SPEC §6): parse-failure callers never reach this function; the
|
|
89
|
+
* write itself backs up the previous bytes, replaces atomically (temp file +
|
|
90
|
+
* rename), and restores the backup when the replacement fails.
|
|
91
|
+
*/
|
|
92
|
+
export declare function writeHostJsonFileProtected(filePath: string, content: string): {
|
|
93
|
+
ok: true;
|
|
94
|
+
} | {
|
|
95
|
+
ok: false;
|
|
96
|
+
reason: string;
|
|
97
|
+
nextAction: string;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Locate the WorkBuddy plugin skeleton shipped by @principles/workbuddy-adapter.
|
|
101
|
+
*
|
|
102
|
+
* Contract with the adapter package (SPEC §4.1 — the adapter owns decoder,
|
|
103
|
+
* encoder, entries AND the plugin skeleton): the bundled payload contains
|
|
104
|
+
* `plugin/` with `.codebuddy-plugin/plugin.json` (name === principles-disciple)
|
|
105
|
+
* and `hooks/hooks.json` at the plugin ROOT (frozen manifest-facts layout).
|
|
106
|
+
* Lookup order: the installer payload being deployed (ctx.pluginDir), then the
|
|
107
|
+
* installed runtime copy (~/.pd/runtime/workbuddy-adapter) for re-runs.
|
|
108
|
+
*/
|
|
109
|
+
export interface WorkbuddyPluginPayload {
|
|
110
|
+
pluginDir: string;
|
|
111
|
+
version: string;
|
|
112
|
+
}
|
|
113
|
+
export declare function findWorkbuddyPluginPayload(pluginDir: string, runtimeAdapterDir: string): {
|
|
114
|
+
payload?: WorkbuddyPluginPayload;
|
|
115
|
+
reason?: string;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Merge 'workbuddy' + the governance workspace into ~/.pd/install.json.
|
|
119
|
+
*
|
|
120
|
+
* Set-union semantics: existing hosts (codex/openclaw) and workspaces are
|
|
121
|
+
* always preserved; unknown top-level keys (the update side owns
|
|
122
|
+
* channel/autoCheck/releaseMetadataUrl — PRI-709 P0-1) are carried through.
|
|
123
|
+
* Malformed existing manifest → hard stop, zero modification.
|
|
124
|
+
*/
|
|
125
|
+
export declare function mergeWorkbuddyIntoInstallManifest(manifestPath: string, governanceDir: string): {
|
|
126
|
+
ok: true;
|
|
127
|
+
} | {
|
|
128
|
+
ok: false;
|
|
129
|
+
reason: string;
|
|
130
|
+
nextAction: string;
|
|
131
|
+
};
|
|
132
|
+
export type FlagOverrideResult = {
|
|
133
|
+
ok: true;
|
|
134
|
+
configPath: string;
|
|
135
|
+
enabled: boolean;
|
|
136
|
+
} | {
|
|
137
|
+
ok: false;
|
|
138
|
+
reason: string;
|
|
139
|
+
nextAction: string;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Enable/disable `features.host.workbuddy.enabled` in the GOVERNANCE
|
|
143
|
+
* workspace's .pd/config.yaml with a line-targeted edit (comments and unknown
|
|
144
|
+
* keys preserved), creating a loader-valid config from the installer template
|
|
145
|
+
* when absent. Atomic write; round-trip verified.
|
|
146
|
+
*/
|
|
147
|
+
export declare function setWorkbuddyGovernanceFlag(governanceDir: string, enabled: boolean): FlagOverrideResult;
|
|
148
|
+
/** Read the explicit host.workbuddy override state (null = no explicit override → registry default OFF). */
|
|
149
|
+
export declare function readWorkbuddyGovernanceFlagOverride(governanceDir: string): boolean | null;
|
|
150
|
+
export interface WorkbuddyDetectDetails extends HostDetectResult {
|
|
151
|
+
/** WorkBuddy host discovered (config dir exists). */
|
|
152
|
+
hostFound: boolean;
|
|
153
|
+
/** Engine CLI binary located. */
|
|
154
|
+
engineFound: boolean;
|
|
155
|
+
/** Resolved engine path when found. */
|
|
156
|
+
enginePath?: string;
|
|
157
|
+
/** installed_plugins.json v2 carries our registration. */
|
|
158
|
+
registered: boolean;
|
|
159
|
+
/** settings.json enabledPlugins[key] === true. */
|
|
160
|
+
pluginEnabled: boolean;
|
|
161
|
+
/** Explicit host.workbuddy override in the governance config (null = default OFF). */
|
|
162
|
+
flagOverride: boolean | null;
|
|
163
|
+
/** ~/.pd/runtime/workbuddy-adapter present (package.json + dist). */
|
|
164
|
+
runtimeReachable: boolean;
|
|
165
|
+
/** Governance workspace dir created (OD-07 initialized). */
|
|
166
|
+
governanceInitialized: boolean;
|
|
167
|
+
/** settings.json exists AND parsed (false also when unparsable — install fails loud there). */
|
|
168
|
+
settingsExisted: boolean;
|
|
169
|
+
}
|
|
170
|
+
export declare class WorkBuddyHostInstaller implements HostInstaller {
|
|
171
|
+
readonly hostId = "workbuddy";
|
|
172
|
+
private readonly deps;
|
|
173
|
+
constructor(deps?: WorkbuddyHostInstallerDeps);
|
|
174
|
+
private paths;
|
|
175
|
+
/**
|
|
176
|
+
* Run `node <engine> <args>`; returns undefined when the invocation itself
|
|
177
|
+
* failed.
|
|
178
|
+
*
|
|
179
|
+
* S2 (review 2026-10-13): every engine command is pinned to the DECLARED
|
|
180
|
+
* config root by injecting BOTH isolation variables (the Phase 0 P0
|
|
181
|
+
* recipe). The real engine prefers CODEBUDDY_CONFIG_DIR; without the
|
|
182
|
+
* injection it registered into ~/.codebuddy / a pre-existing CodeBuddy root
|
|
183
|
+
* while this installer verified the declared WorkBuddy root — command
|
|
184
|
+
* success and target registration diverged. WORKBUDDY_CONFIG_DIR is
|
|
185
|
+
* injected as well so engine versions that honor the WorkBuddy-scoped
|
|
186
|
+
* variable stay on the same root.
|
|
187
|
+
*/
|
|
188
|
+
private runEngine;
|
|
189
|
+
/** Hooks run via `node` on PATH through Git Bash (frozen hook-runtime-contract shellAndRuntime). */
|
|
190
|
+
private preflightRuntime;
|
|
191
|
+
install(ctx: HostInstallContext): Promise<HostInstallResult>;
|
|
192
|
+
/**
|
|
193
|
+
* Initialize the OD-07 governance workspace with the FULL state the
|
|
194
|
+
* hook/console/worker chain reads (review 2026-10-13 R1).
|
|
195
|
+
*
|
|
196
|
+
* Preferred path: the SHARED initializer — `pd-cli runtime init --confirm
|
|
197
|
+
* --workspace <governanceDir>` — the exact entry the main installer runs for
|
|
198
|
+
* the generic workspace. It generates .pd/config.yaml from the core default
|
|
199
|
+
* config authority, .pd/state.db, and .state/trajectory.db with the
|
|
200
|
+
* canonical schema (idempotent; an existing config.yaml is never
|
|
201
|
+
* overwritten). Failure is a LOUD install failure — a registration without
|
|
202
|
+
* working governance state is exactly the R1 defect.
|
|
203
|
+
*
|
|
204
|
+
* Degraded path (pd-cli entry not resolvable — standalone host-installer
|
|
205
|
+
* use): the installer lays down the loader-valid default config from its own
|
|
206
|
+
* authority (generateConfigYamlContent, the same content the main installer
|
|
207
|
+
* writes for other hosts) so the hook CONFIG chain works, and reports the
|
|
208
|
+
* database initialization as an observable skip with an explicit next
|
|
209
|
+
* action — never a silent mkdir-only "success".
|
|
210
|
+
*/
|
|
211
|
+
private initializeGovernanceWorkspace;
|
|
212
|
+
private registerPlugin;
|
|
213
|
+
/**
|
|
214
|
+
* Set enabledPlugins[OUR_KEY]=true in settings.json, preserving every other
|
|
215
|
+
* key (same protected write discipline as the direct-write registration).
|
|
216
|
+
* Converges the engine install path (which honors the payload manifest's
|
|
217
|
+
* defaultEnabled) onto the installer's frozen installed ⇒ enabled contract.
|
|
218
|
+
*/
|
|
219
|
+
private enableRegisteredPlugin;
|
|
220
|
+
/**
|
|
221
|
+
* Direct-write registration for engine-unreachable machines, aligned with the
|
|
222
|
+
* frozen P01 formats: enabledPlugins[key]=true in settings.json (other keys
|
|
223
|
+
* and other plugins preserved), installed_plugins.json v2 entry
|
|
224
|
+
* {scope:'user', installPath, version, installedAt}, and the versioned cache
|
|
225
|
+
* copy under plugins/cache/<marketplace>/<plugin>/<version>/.
|
|
226
|
+
*/
|
|
227
|
+
private directWriteRegistration;
|
|
228
|
+
/** Human-readable preview of exactly what enabling will change (shown BEFORE any write). */
|
|
229
|
+
describeGovernanceEnable(): {
|
|
230
|
+
flag: 'host.workbuddy';
|
|
231
|
+
configPath: string;
|
|
232
|
+
value: boolean;
|
|
233
|
+
takesEffect: string;
|
|
234
|
+
};
|
|
235
|
+
/** Explicit enable of PD governance (install never calls this). */
|
|
236
|
+
enableGovernance(): FlagOverrideResult;
|
|
237
|
+
/** Explicit disable of PD governance (reversible rollback path). */
|
|
238
|
+
disableGovernance(): FlagOverrideResult;
|
|
239
|
+
uninstall(_ctx: HostUninstallContext): Promise<HostUninstallResult>;
|
|
240
|
+
/** Remove only OUR entries from settings.json + installed_plugins.json (frozen formats). */
|
|
241
|
+
private directWriteRemoval;
|
|
242
|
+
detect(): HostDetectResult;
|
|
243
|
+
/** Detailed detect: install presence vs host discovery vs registration vs enablement vs runtime reachability. */
|
|
244
|
+
detectDetails(): WorkbuddyDetectDetails;
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=workbuddy-host-installer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbuddy-host-installer.d.ts","sourceRoot":"","sources":["../../src/installers/workbuddy-host-installer.ts"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAM/B,yFAAyF;AACzF,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAC3D,qFAAqF;AACrF,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,+EAA+E;AAC/E,eAAO,MAAM,oBAAoB,mDAA2D,CAAC;AAoB7F,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,0BAA0B;IACzC,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC;IACvB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CA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