create-principles-disciple 1.148.11 → 1.150.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 +1 -1
- package/codex-adapter/dist/pd-hook.d.ts +22 -1
- package/codex-adapter/dist/pd-hook.js +81 -7
- package/codex-adapter/dist/worker/workspace-worker.d.ts +15 -0
- package/codex-adapter/dist/worker/workspace-worker.js +7 -36
- package/codex-adapter/package.json +1 -1
- package/console/dist/server/index.js +21 -0
- package/console/dist/server/models/ActivationsConsoleModel.d.ts +3 -17
- package/console/dist/server/models/ActivationsConsoleModel.js +5 -44
- package/console/dist/server/routes/compatibility-scan.d.ts +18 -0
- package/console/dist/server/routes/compatibility-scan.js +33 -0
- package/console/dist/server/routes/diagnostician.d.ts +50 -0
- package/console/dist/server/routes/diagnostician.js +388 -0
- package/console/dist/shared/compatibility-scan-contract.d.ts +26 -0
- package/console/dist/shared/compatibility-scan-contract.js +1 -0
- package/console/dist/web/assets/app.js +31 -31
- package/core/dist/host/host-installer.d.ts +7 -0
- 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/activation/index.d.ts +3 -3
- package/core/dist/runtime/activation/index.d.ts.map +1 -1
- package/core/dist/runtime/activation/index.js +1 -1
- package/core/dist/runtime/activation/index.js.map +1 -1
- package/core/dist/runtime/activation/promotion-readiness-evaluator.d.ts +25 -1
- package/core/dist/runtime/activation/promotion-readiness-evaluator.d.ts.map +1 -1
- package/core/dist/runtime/activation/promotion-readiness-evaluator.js +58 -1
- package/core/dist/runtime/activation/promotion-readiness-evaluator.js.map +1 -1
- package/core/dist/runtime/activation/promotion-readiness-reader.d.ts.map +1 -1
- package/core/dist/runtime/activation/promotion-readiness-reader.js +4 -2
- package/core/dist/runtime/activation/promotion-readiness-reader.js.map +1 -1
- package/core/dist/runtime/activation/rulecode-owner-decision-service.d.ts +28 -0
- package/core/dist/runtime/activation/rulecode-owner-decision-service.d.ts.map +1 -1
- package/core/dist/runtime/activation/rulecode-owner-decision-service.js +2 -0
- package/core/dist/runtime/activation/rulecode-owner-decision-service.js.map +1 -1
- package/core/dist/runtime/activation-compatibility-read-model.d.ts +20 -5
- package/core/dist/runtime/activation-compatibility-read-model.d.ts.map +1 -1
- package/core/dist/runtime/activation-compatibility-read-model.js +15 -3
- package/core/dist/runtime/activation-compatibility-read-model.js.map +1 -1
- package/core/dist/runtime/admission-gate.d.ts +8 -1
- package/core/dist/runtime/admission-gate.d.ts.map +1 -1
- package/core/dist/runtime/admission-gate.js +2 -1
- package/core/dist/runtime/admission-gate.js.map +1 -1
- package/core/dist/runtime/config/pd-config-defaults.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-defaults.js +20 -2
- package/core/dist/runtime/config/pd-config-defaults.js.map +1 -1
- package/core/dist/runtime/config/pd-config-validate.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-validate.js +18 -0
- package/core/dist/runtime/config/pd-config-validate.js.map +1 -1
- package/core/dist/runtime/context-payload.d.ts +48 -3
- package/core/dist/runtime/context-payload.d.ts.map +1 -1
- package/core/dist/runtime/context-payload.js +38 -0
- package/core/dist/runtime/context-payload.js.map +1 -1
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.d.ts +8 -2
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js +28 -2
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js.map +1 -1
- package/core/dist/runtime/diagnostician-candidate.d.ts +24 -0
- package/core/dist/runtime/diagnostician-candidate.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician-candidate.js +55 -0
- package/core/dist/runtime/diagnostician-candidate.js.map +1 -0
- package/core/dist/runtime/evidence-guards.d.ts +10 -4
- package/core/dist/runtime/evidence-guards.d.ts.map +1 -1
- package/core/dist/runtime/evidence-guards.js +12 -5
- package/core/dist/runtime/evidence-guards.js.map +1 -1
- package/core/dist/runtime/evolution/evolution-types.d.ts +4 -4
- package/core/dist/runtime/evolution/evolution-types.d.ts.map +1 -1
- package/core/dist/runtime/evolution/evolution-types.js +1 -0
- package/core/dist/runtime/evolution/evolution-types.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 +16 -0
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/core/dist/runtime/index.d.ts +5 -2
- package/core/dist/runtime/index.d.ts.map +1 -1
- package/core/dist/runtime/index.js +6 -1
- package/core/dist/runtime/index.js.map +1 -1
- package/core/dist/runtime/internalization/index.d.ts +1 -0
- package/core/dist/runtime/internalization/index.d.ts.map +1 -1
- package/core/dist/runtime/internalization/index.js +2 -0
- package/core/dist/runtime/internalization/index.js.map +1 -1
- package/core/dist/runtime/internalization/rule-host-contracts.d.ts +10 -0
- package/core/dist/runtime/internalization/rule-host-contracts.d.ts.map +1 -1
- package/core/dist/runtime/internalization/rule-host-evaluator.js +10 -10
- package/core/dist/runtime/internalization/rule-host-evaluator.js.map +1 -1
- package/core/dist/runtime/internalization/rule-host-input-builder.d.ts +7 -6
- package/core/dist/runtime/internalization/rule-host-input-builder.d.ts.map +1 -1
- package/core/dist/runtime/internalization/rule-host-input-builder.js +6 -2
- package/core/dist/runtime/internalization/rule-host-input-builder.js.map +1 -1
- package/core/dist/runtime/internalization/rule-host-result-normalizer.d.ts +33 -0
- package/core/dist/runtime/internalization/rule-host-result-normalizer.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-host-result-normalizer.js +61 -0
- package/core/dist/runtime/internalization/rule-host-result-normalizer.js.map +1 -0
- package/core/dist/runtime/internalization/rule-host-validator.d.ts.map +1 -1
- package/core/dist/runtime/internalization/rule-host-validator.js +17 -0
- package/core/dist/runtime/internalization/rule-host-validator.js.map +1 -1
- package/core/dist/runtime/pain-ingress-payload.d.ts +27 -2
- package/core/dist/runtime/pain-ingress-payload.d.ts.map +1 -1
- package/core/dist/runtime/pain-ingress-payload.js +45 -3
- package/core/dist/runtime/pain-ingress-payload.js.map +1 -1
- package/core/dist/runtime/pain-ingress.d.ts +4 -2
- package/core/dist/runtime/pain-ingress.d.ts.map +1 -1
- package/core/dist/runtime/pain-ingress.js +23 -3
- package/core/dist/runtime/pain-ingress.js.map +1 -1
- package/core/dist/runtime/pain-severity.d.ts +14 -0
- package/core/dist/runtime/pain-severity.d.ts.map +1 -0
- package/core/dist/runtime/pain-severity.js +14 -0
- package/core/dist/runtime/pain-severity.js.map +1 -0
- package/core/dist/runtime/pain-signal-bridge.d.ts +17 -3
- package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-bridge.js +6 -0
- package/core/dist/runtime/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime/pain-signal-observability.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-observability.js +3 -2
- package/core/dist/runtime/pain-signal-observability.js.map +1 -1
- package/core/dist/runtime/pain-submit-capability.d.ts +164 -0
- package/core/dist/runtime/pain-submit-capability.d.ts.map +1 -0
- package/core/dist/runtime/pain-submit-capability.js +442 -0
- package/core/dist/runtime/pain-submit-capability.js.map +1 -0
- package/core/dist/runtime/pain-to-principle-service.d.ts +4 -0
- package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -1
- package/core/dist/runtime/pain-to-principle-service.js +2 -0
- package/core/dist/runtime/pain-to-principle-service.js.map +1 -1
- package/core/dist/runtime/stalled-diagnostician-task-read-model.d.ts +56 -10
- package/core/dist/runtime/stalled-diagnostician-task-read-model.d.ts.map +1 -1
- package/core/dist/runtime/stalled-diagnostician-task-read-model.js +80 -4
- package/core/dist/runtime/stalled-diagnostician-task-read-model.js.map +1 -1
- package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts.map +1 -1
- package/core/dist/runtime/store/context/sqlite-context-assembler.js +11 -0
- package/core/dist/runtime/store/context/sqlite-context-assembler.js.map +1 -1
- package/core/dist/runtime/store/run/memory-run-store.d.ts +10 -0
- package/core/dist/runtime/store/run/memory-run-store.d.ts.map +1 -1
- package/core/dist/runtime/store/run/memory-run-store.js +21 -0
- package/core/dist/runtime/store/run/memory-run-store.js.map +1 -1
- package/core/dist/runtime/store/run/run-store.d.ts +12 -0
- package/core/dist/runtime/store/run/run-store.d.ts.map +1 -1
- package/core/dist/runtime/store/run/sqlite-run-store.d.ts +1 -0
- package/core/dist/runtime/store/run/sqlite-run-store.d.ts.map +1 -1
- package/core/dist/runtime/store/run/sqlite-run-store.js +14 -0
- package/core/dist/runtime/store/run/sqlite-run-store.js.map +1 -1
- package/core/dist/runtime/task-status.d.ts +9 -0
- package/core/dist/runtime/task-status.d.ts.map +1 -1
- package/core/dist/runtime/task-status.js +7 -1
- package/core/dist/runtime/task-status.js.map +1 -1
- package/core/dist/runtime/types/evidence-chain-contract.d.ts +18 -0
- package/core/dist/runtime/types/evidence-chain-contract.d.ts.map +1 -1
- package/core/dist/runtime/types/evidence-chain-contract.js +37 -7
- package/core/dist/runtime/types/evidence-chain-contract.js.map +1 -1
- package/core/package.json +5 -1
- package/dist/install-summary.d.ts +7 -0
- package/dist/install-summary.d.ts.map +1 -1
- package/dist/install-summary.js +4 -0
- package/dist/install-summary.js.map +1 -1
- package/dist/installer.d.ts +92 -8
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +215 -10
- package/dist/installer.js.map +1 -1
- package/dist/installers/codex-host-installer.d.ts +88 -1
- package/dist/installers/codex-host-installer.d.ts.map +1 -1
- package/dist/installers/codex-host-installer.js +350 -11
- package/dist/installers/codex-host-installer.js.map +1 -1
- package/dist/installers/index.d.ts +23 -0
- package/dist/installers/index.d.ts.map +1 -1
- package/dist/installers/index.js +38 -1
- package/dist/installers/index.js.map +1 -1
- package/dist/installers/legacy-workbuddy-skill.d.ts +59 -0
- package/dist/installers/legacy-workbuddy-skill.d.ts.map +1 -0
- package/dist/installers/legacy-workbuddy-skill.js +168 -0
- package/dist/installers/legacy-workbuddy-skill.js.map +1 -0
- package/dist/installers/workbuddy-host-installer.d.ts.map +1 -1
- package/dist/installers/workbuddy-host-installer.js +7 -0
- package/dist/installers/workbuddy-host-installer.js.map +1 -1
- package/host-runtime/dist/adaptive-priority-provider.d.ts +94 -0
- package/host-runtime/dist/adaptive-priority-provider.js +162 -0
- package/host-runtime/dist/adaptive-selection.d.ts +164 -0
- package/host-runtime/dist/adaptive-selection.js +506 -0
- package/host-runtime/dist/diagnostician-auto-run.d.ts +28 -0
- package/host-runtime/dist/diagnostician-auto-run.js +100 -0
- package/host-runtime/dist/host-tool-semantic-resolver.d.ts +42 -1
- package/host-runtime/dist/host-tool-semantic-resolver.js +80 -14
- package/host-runtime/dist/index.d.ts +4 -0
- package/host-runtime/dist/index.js +6 -0
- package/host-runtime/dist/production-rulehost-gate.js +17 -17
- package/host-runtime/dist/rulecode-event-collection.d.ts +31 -0
- package/host-runtime/dist/rulecode-event-collection.js +62 -0
- package/host-runtime/package.json +1 -1
- package/install-layout/dist/index.d.ts +1 -1
- package/install-layout/dist/index.js +1 -1
- package/install-layout/dist/pd-home.d.ts +9 -2
- package/install-layout/dist/pd-home.js +77 -14
- package/install-layout/package.json +1 -1
- package/package.json +4 -4
- package/pd-cli/dist/commands/diagnose.d.ts +30 -0
- package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
- package/pd-cli/dist/commands/diagnose.js +75 -0
- package/pd-cli/dist/commands/diagnose.js.map +1 -1
- package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-record.js +5 -4
- package/pd-cli/dist/commands/pain-record.js.map +1 -1
- package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-retry.js +2 -1
- package/pd-cli/dist/commands/pain-retry.js.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.d.ts +6 -17
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +42 -48
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/pd-cli/dist/commands/runtime-compatibility-scan.d.ts +5 -2
- package/pd-cli/dist/commands/runtime-compatibility-scan.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-compatibility-scan.js +22 -2
- package/pd-cli/dist/commands/runtime-compatibility-scan.js.map +1 -1
- package/pd-cli/dist/index.js +1 -0
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/services/config-doctor.d.ts +9 -0
- package/pd-cli/dist/services/config-doctor.d.ts.map +1 -1
- package/pd-cli/dist/services/config-doctor.js +15 -0
- package/pd-cli/dist/services/config-doctor.js.map +1 -1
- package/pd-cli/dist/services/delivery-surfaces.js +1 -1
- package/pd-cli/dist/services/delivery-surfaces.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/pd-mcp-server/dist/budget.d.ts +1 -1
- package/pd-mcp-server/dist/budget.js +2 -2
- package/pd-mcp-server/dist/envelope.d.ts +15 -0
- package/pd-mcp-server/dist/envelope.js +49 -1
- package/pd-mcp-server/dist/index.d.ts +2 -0
- package/pd-mcp-server/dist/index.js +6 -0
- package/pd-mcp-server/dist/server.d.ts +83 -14
- package/pd-mcp-server/dist/server.js +251 -4
- package/pd-mcp-server/dist/version.d.ts +1 -1
- package/pd-mcp-server/dist/version.js +1 -1
- package/pd-mcp-server/dist/workspace.d.ts +4 -2
- package/pd-mcp-server/dist/workspace.js +5 -2
- package/pd-mcp-server/package.json +1 -1
- package/plugin/dist/bundle.js +443 -431
- package/plugin/dist/core/evolution-reducer.d.ts +2 -2
- package/plugin/dist/hooks/hook-tool-semantics.d.ts +25 -0
- package/plugin/dist/hooks/pain-ingress-adapter.d.ts +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 +1 -1
- package/release-manager/dist/installer.js +215 -10
- package/release-manager/dist/installers/codex-host-installer.js +350 -11
- package/release-manager/dist/installers/index.js +38 -1
- package/release-manager/dist/installers/legacy-workbuddy-skill.js +168 -0
- package/release-manager/dist/installers/workbuddy-host-installer.js +7 -0
- package/release-manager/package.json +1 -1
- package/workbuddy-adapter/dist/pd-hook.js +20 -4
- package/workbuddy-adapter/package.json +1 -1
- package/workbuddy-adapter/plugin/skills/pd-pain-signal/SKILL.md +123 -20
package/dist/installers/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { existsSync } from 'fs';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
import * as os from 'os';
|
|
1
4
|
import { OpenClawHostInstaller } from './openclaw-host-installer.js';
|
|
2
5
|
import { CodexHostInstaller } from './codex-host-installer.js';
|
|
3
|
-
import { WorkBuddyHostInstaller } from './workbuddy-host-installer.js';
|
|
6
|
+
import { WorkBuddyHostInstaller, readWorkbuddyHostState } from './workbuddy-host-installer.js';
|
|
4
7
|
export { OpenClawHostInstaller } from './openclaw-host-installer.js';
|
|
5
8
|
export { CodexHostInstaller } from './codex-host-installer.js';
|
|
6
9
|
export { WorkBuddyHostInstaller } from './workbuddy-host-installer.js';
|
|
@@ -41,4 +44,38 @@ export function getHostInstallers(target) {
|
|
|
41
44
|
return [new OpenClawHostInstaller(), new CodexHostInstaller()];
|
|
42
45
|
}
|
|
43
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Detect which hosts on THIS machine already carry a PD install (update chain,
|
|
49
|
+
* 2026-11-11).
|
|
50
|
+
*
|
|
51
|
+
* Why this exists: `--host` defaulted to 'openclaw' and the install manifest
|
|
52
|
+
* only refreshed hosts PD had recorded before. A host installed outside that
|
|
53
|
+
* manifest was silently left on the old release during an upgrade — the Owner
|
|
54
|
+
* had to uninstall/reinstall it by hand, which is not an acceptable update
|
|
55
|
+
* chain. The installer now unions this detection into its refresh targets.
|
|
56
|
+
*
|
|
57
|
+
* Detection is deliberately conservative: "the app directory exists" is NOT
|
|
58
|
+
* enough (WorkBuddy is opt-in, OD-03). Each entry requires PD's own footprint:
|
|
59
|
+
* - openclaw: the installed extension directory;
|
|
60
|
+
* - codex: a Marketplace cache / legacy PD hook registration;
|
|
61
|
+
* - workbuddy: PD registered in its plugin registry.
|
|
62
|
+
*/
|
|
63
|
+
export function detectInstalledHosts(homeDir = os.homedir(), codexHome) {
|
|
64
|
+
const detected = [];
|
|
65
|
+
const openclawExtension = path.join(homeDir, '.openclaw', 'extensions', 'principles-disciple');
|
|
66
|
+
if (existsSync(openclawExtension)) {
|
|
67
|
+
detected.push({ hostId: 'openclaw', evidence: openclawExtension });
|
|
68
|
+
}
|
|
69
|
+
const codex = new CodexHostInstaller(codexHome === undefined ? {} : { codexHome }).detect();
|
|
70
|
+
if (codex.installed) {
|
|
71
|
+
const evidence = codex.paths.find((entry) => entry.exists && entry.name.startsWith('Codex Marketplace plugin'))
|
|
72
|
+
?? codex.paths.find((entry) => entry.exists);
|
|
73
|
+
detected.push({ hostId: 'codex', evidence: evidence?.path ?? 'codex install detected' });
|
|
74
|
+
}
|
|
75
|
+
const workbuddy = readWorkbuddyHostState(homeDir);
|
|
76
|
+
if (workbuddy.pluginState !== undefined && workbuddy.pluginState.registryReadable && workbuddy.pluginState.registered) {
|
|
77
|
+
detected.push({ hostId: 'workbuddy', evidence: path.join(homeDir, '.workbuddy', 'plugins', 'installed_plugins.json') });
|
|
78
|
+
}
|
|
79
|
+
return detected;
|
|
80
|
+
}
|
|
44
81
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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,EAA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,IAAI,IAAI,wBAAwB,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED,MAAM,SAAS,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAClD,IAAI,SAAS,CAAC,WAAW,KAAK,SAAS,IAAI,SAAS,CAAC,WAAW,CAAC,gBAAgB,IAAI,SAAS,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC;QACtH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,wBAAwB,CAAC,EAAE,CAAC,CAAC;IAC1H,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const LEGACY_WORKBUDDY_SKILL_DIR = "pd-record-pain";
|
|
2
|
+
export declare const LEGACY_WORKBUDDY_SKILL_FILE = "SKILL.md";
|
|
3
|
+
export interface PublishedLegacyWorkbuddySkill {
|
|
4
|
+
/** Value used in the `SKILL.md.deprecated-<label>` suffix. */
|
|
5
|
+
readonly label: string;
|
|
6
|
+
/** SHA-256 of the exact bytes PD shipped. */
|
|
7
|
+
readonly sha256: string;
|
|
8
|
+
/** Where the bytes come from, so the hash can be re-verified. */
|
|
9
|
+
readonly provenance: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Every `pd-record-pain/SKILL.md` payload this repository has ever shipped,
|
|
13
|
+
* recovered from git history (`git cat-file blob <blob>`). Both entries were
|
|
14
|
+
* deleted in 5c383e572 ("refactor(skills): unify PD host skill capabilities").
|
|
15
|
+
*/
|
|
16
|
+
export declare const PUBLISHED_LEGACY_WORKBUDDY_SKILLS: readonly PublishedLegacyWorkbuddySkill[];
|
|
17
|
+
export type LegacyWorkbuddySkillState = {
|
|
18
|
+
readonly status: 'absent';
|
|
19
|
+
readonly path: string;
|
|
20
|
+
} | {
|
|
21
|
+
readonly status: 'already_deprecated';
|
|
22
|
+
readonly path: string;
|
|
23
|
+
readonly deprecatedPath: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly status: 'deprecated';
|
|
26
|
+
readonly path: string;
|
|
27
|
+
readonly deprecatedPath: string;
|
|
28
|
+
readonly label: string;
|
|
29
|
+
} | {
|
|
30
|
+
readonly status: 'modified';
|
|
31
|
+
readonly path: string;
|
|
32
|
+
readonly sha256: string;
|
|
33
|
+
readonly nextAction: string;
|
|
34
|
+
};
|
|
35
|
+
export interface LegacyWorkbuddySkillOutcome {
|
|
36
|
+
readonly state: LegacyWorkbuddySkillState;
|
|
37
|
+
/** Operator-facing lines for the install summary. Empty when nothing to say. */
|
|
38
|
+
readonly warnings: readonly string[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Read-only inspection. Never renames, never deletes.
|
|
42
|
+
*
|
|
43
|
+
* `published` is injectable so the rename branch can be exercised against a
|
|
44
|
+
* fixture; production callers always use the shipped registry.
|
|
45
|
+
*/
|
|
46
|
+
export declare function inspectLegacyWorkbuddySkill(options: {
|
|
47
|
+
configDir: string;
|
|
48
|
+
published?: readonly PublishedLegacyWorkbuddySkill[];
|
|
49
|
+
}): LegacyWorkbuddySkillState;
|
|
50
|
+
/**
|
|
51
|
+
* Retire the legacy user-level skill when it is provably an unmodified PD
|
|
52
|
+
* payload. Safe to run on every install/upgrade: absent, already-retired and
|
|
53
|
+
* Owner-modified states are all no-ops.
|
|
54
|
+
*/
|
|
55
|
+
export declare function deprecateLegacyWorkbuddySkill(options: {
|
|
56
|
+
configDir: string;
|
|
57
|
+
published?: readonly PublishedLegacyWorkbuddySkill[];
|
|
58
|
+
}): LegacyWorkbuddySkillOutcome;
|
|
59
|
+
//# sourceMappingURL=legacy-workbuddy-skill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy-workbuddy-skill.d.ts","sourceRoot":"","sources":["../../src/installers/legacy-workbuddy-skill.ts"],"names":[],"mappings":"AA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,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,6BAA6B,EAAE,CAAA;CAAE,GACnF,yBAAyB,CA0C3B;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,6BAA6B,EAAE,CAAA;CAAE,GACnF,2BAA2B,CA+C7B"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Legacy WorkBuddy user-level skill retirement
|
|
3
|
+
* (SPEC-PD-AGENT-PAIN-INGRESS-001 §5.5 / TECHNICAL-DESIGN §7.4).
|
|
4
|
+
*
|
|
5
|
+
* PD stopped shipping a user-level `pd-record-pain` skill; pain raised by an
|
|
6
|
+
* agent is now ingested through the governed host path. Old machines still
|
|
7
|
+
* carry `~/.workbuddy/skills/pd-record-pain/SKILL.md`, which keeps telling
|
|
8
|
+
* agents to write pain through the retired channel.
|
|
9
|
+
*
|
|
10
|
+
* Rules this module implements — and the reasons each one exists:
|
|
11
|
+
*
|
|
12
|
+
* 1. Detection is path + frontmatter `name`. A directory that happens to be
|
|
13
|
+
* called `pd-record-pain` but declares a different skill name is the
|
|
14
|
+
* Owner's own skill; it is never touched and never reported.
|
|
15
|
+
* 2. Only a copy whose bytes match a PUBLISHED skill payload may be renamed.
|
|
16
|
+
* The published payload hashes below are derived from this repository's
|
|
17
|
+
* git history (the exact blobs PD used to ship), so "unmodified" is proven
|
|
18
|
+
* rather than assumed.
|
|
19
|
+
* 3. A copy that does not match any published payload is left in place with a
|
|
20
|
+
* structured `deprecated_skill_modified` warning. Silent overwrite or
|
|
21
|
+
* deletion of Owner-modified files is forbidden (SPEC §5.5, AGENTS §18).
|
|
22
|
+
* 4. Renaming is idempotent: once `SKILL.md.deprecated-<label>` exists the
|
|
23
|
+
* skill directory is reported as already retired and is not touched again.
|
|
24
|
+
* 5. Nothing is deleted. The renamed file stays next to the original with a
|
|
25
|
+
* suffix that keeps it out of skill discovery.
|
|
26
|
+
*/
|
|
27
|
+
import { createHash } from 'node:crypto';
|
|
28
|
+
import { existsSync, readdirSync, readFileSync, renameSync } from 'node:fs';
|
|
29
|
+
import * as path from 'node:path';
|
|
30
|
+
export const LEGACY_WORKBUDDY_SKILL_DIR = 'pd-record-pain';
|
|
31
|
+
export const LEGACY_WORKBUDDY_SKILL_FILE = 'SKILL.md';
|
|
32
|
+
/**
|
|
33
|
+
* Every `pd-record-pain/SKILL.md` payload this repository has ever shipped,
|
|
34
|
+
* recovered from git history (`git cat-file blob <blob>`). Both entries were
|
|
35
|
+
* deleted in 5c383e572 ("refactor(skills): unify PD host skill capabilities").
|
|
36
|
+
*/
|
|
37
|
+
export const PUBLISHED_LEGACY_WORKBUDDY_SKILLS = [
|
|
38
|
+
{
|
|
39
|
+
label: '0.1.1-openclaw',
|
|
40
|
+
sha256: 'beb758bd66c6e330ff18bb751136a276d98486d85876b4488d09551b672d8186',
|
|
41
|
+
provenance: 'plugins/principles-disciple/skills/pd-record-pain/SKILL.md @ plugin 0.1.1 (blob 7df4717)',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: '0.1.0-workbuddy',
|
|
45
|
+
sha256: 'f2eee21234250bf530a81579f033cda4fa41c0728bc81536320774127bd2d6e6',
|
|
46
|
+
provenance: 'packages/workbuddy-adapter/plugin/skills/pd-record-pain/SKILL.md @ plugin 0.1.0 (blob 7338fe8)',
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
function frontmatterName(content) {
|
|
50
|
+
// Minimal, format-only parse: the skill frontmatter is a leading `---` block
|
|
51
|
+
// of `key: value` lines. We only need `name`, and a missing block is a
|
|
52
|
+
// non-match (rc-3: never guess a skill identity from the directory name).
|
|
53
|
+
const lines = content.split(/\r?\n/);
|
|
54
|
+
if (lines[0]?.trim() !== '---')
|
|
55
|
+
return undefined;
|
|
56
|
+
for (let i = 1; i < lines.length; i += 1) {
|
|
57
|
+
const line = lines[i] ?? '';
|
|
58
|
+
if (line.trim() === '---')
|
|
59
|
+
return undefined;
|
|
60
|
+
const match = /^name:\s*(.*)$/.exec(line);
|
|
61
|
+
if (match !== null)
|
|
62
|
+
return match[1]?.trim().replace(/^['"]|['"]$/g, '');
|
|
63
|
+
}
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
function sha256Of(bytes) {
|
|
67
|
+
return createHash('sha256').update(bytes).digest('hex');
|
|
68
|
+
}
|
|
69
|
+
function skillDir(configDir) {
|
|
70
|
+
return path.join(configDir, 'skills', LEGACY_WORKBUDDY_SKILL_DIR);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Read-only inspection. Never renames, never deletes.
|
|
74
|
+
*
|
|
75
|
+
* `published` is injectable so the rename branch can be exercised against a
|
|
76
|
+
* fixture; production callers always use the shipped registry.
|
|
77
|
+
*/
|
|
78
|
+
export function inspectLegacyWorkbuddySkill(options) {
|
|
79
|
+
const publishedVersions = options.published ?? PUBLISHED_LEGACY_WORKBUDDY_SKILLS;
|
|
80
|
+
const dir = skillDir(options.configDir);
|
|
81
|
+
const skillPath = path.join(dir, LEGACY_WORKBUDDY_SKILL_FILE);
|
|
82
|
+
if (!existsSync(skillPath)) {
|
|
83
|
+
// Idempotency: a previously retired copy leaves only the suffixed file.
|
|
84
|
+
let deprecatedPath;
|
|
85
|
+
if (existsSync(dir)) {
|
|
86
|
+
const suffix = `${LEGACY_WORKBUDDY_SKILL_FILE}.deprecated-`;
|
|
87
|
+
const retired = readdirSync(dir).find((entry) => entry.startsWith(suffix));
|
|
88
|
+
if (retired !== undefined)
|
|
89
|
+
deprecatedPath = path.join(dir, retired);
|
|
90
|
+
}
|
|
91
|
+
return deprecatedPath === undefined
|
|
92
|
+
? { status: 'absent', path: skillPath }
|
|
93
|
+
: { status: 'already_deprecated', path: skillPath, deprecatedPath };
|
|
94
|
+
}
|
|
95
|
+
const bytes = readFileSync(skillPath);
|
|
96
|
+
if (frontmatterName(bytes.toString('utf8')) !== LEGACY_WORKBUDDY_SKILL_DIR) {
|
|
97
|
+
// Same directory name, different declared skill: not ours to retire.
|
|
98
|
+
return { status: 'absent', path: skillPath };
|
|
99
|
+
}
|
|
100
|
+
const digest = sha256Of(bytes);
|
|
101
|
+
const published = publishedVersions.find((entry) => entry.sha256 === digest);
|
|
102
|
+
if (published === undefined) {
|
|
103
|
+
return {
|
|
104
|
+
status: 'modified',
|
|
105
|
+
path: skillPath,
|
|
106
|
+
sha256: digest,
|
|
107
|
+
nextAction: `This skill is no longer shipped by PD, but its content does not match any published version, ` +
|
|
108
|
+
`so it was left untouched. Review it, then delete ${dir} yourself if you did not customise it.`,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
status: 'deprecated',
|
|
113
|
+
path: skillPath,
|
|
114
|
+
deprecatedPath: `${skillPath}.deprecated-${published.label}`,
|
|
115
|
+
label: published.label,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Retire the legacy user-level skill when it is provably an unmodified PD
|
|
120
|
+
* payload. Safe to run on every install/upgrade: absent, already-retired and
|
|
121
|
+
* Owner-modified states are all no-ops.
|
|
122
|
+
*/
|
|
123
|
+
export function deprecateLegacyWorkbuddySkill(options) {
|
|
124
|
+
const state = inspectLegacyWorkbuddySkill(options);
|
|
125
|
+
if (state.status === 'modified') {
|
|
126
|
+
return {
|
|
127
|
+
state,
|
|
128
|
+
warnings: [
|
|
129
|
+
'WARNING [deprecated_skill_modified]: a retired user-level skill "pd-record-pain" was found but NOT modified ' +
|
|
130
|
+
`(${state.path}, sha256 ${state.sha256.slice(0, 12)}…) — its content matches no published version.`,
|
|
131
|
+
` ${state.nextAction}`,
|
|
132
|
+
],
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
if (state.status !== 'deprecated') {
|
|
136
|
+
return { state, warnings: [] };
|
|
137
|
+
}
|
|
138
|
+
try {
|
|
139
|
+
if (existsSync(state.deprecatedPath)) {
|
|
140
|
+
// Another published label already retired this directory. Keep both; the
|
|
141
|
+
// live SKILL.md is still the one the host would load, so report it.
|
|
142
|
+
return {
|
|
143
|
+
state,
|
|
144
|
+
warnings: [
|
|
145
|
+
`WARNING [legacy_skill_rename_failed]: retired skill "pd-record-pain" could not be renamed because ${state.deprecatedPath} already exists.`,
|
|
146
|
+
` Move or delete ${state.path} yourself; skill discovery still sees it.`,
|
|
147
|
+
],
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
renameSync(state.path, state.deprecatedPath);
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
return {
|
|
154
|
+
state,
|
|
155
|
+
warnings: [
|
|
156
|
+
`WARNING [legacy_skill_rename_failed]: retired skill "pd-record-pain" could not be renamed (${error instanceof Error ? error.message : String(error)}).`,
|
|
157
|
+
` Delete ${state.path} yourself; skill discovery still sees it.`,
|
|
158
|
+
],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
state,
|
|
163
|
+
warnings: [
|
|
164
|
+
`Retired the obsolete user-level skill "pd-record-pain" (renamed to ${path.basename(state.deprecatedPath)}).`,
|
|
165
|
+
],
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=legacy-workbuddy-skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy-workbuddy-skill.js","sourceRoot":"","sources":["../../src/installers/legacy-workbuddy-skill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;AAC3D,MAAM,CAAC,MAA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E;oBACR,qGAAqG,KAAK,CAAC,cAAc,kBAAkB;oBAC3I,2BAA2B,KAAK,CAAC,IAAI,2CAA2C;iBACjF;aACF,CAAC;QACJ,CAAC;QACD,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC/C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,KAAK;YACL,QAAQ,EAAE;gBACR,8FAA8F,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI;gBACxJ,mBAAmB,KAAK,CAAC,IAAI,2CAA2C;aACzE;SACF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,KAAK;QACL,QAAQ,EAAE;YACR,sEAAsE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI;SAC9G;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workbuddy-host-installer.d.ts","sourceRoot":"","sources":["../../src/installers/workbuddy-host-installer.ts"],"names":[],"mappings":"AA6CA,OAAO,EAA+E,UAAU,EAAU,MAAM,EAAmD,MAAM,SAAS,CAAC;AAuBnL,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;AAE7F,OAAO,EAAE,qBAAqB,EAAoE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"workbuddy-host-installer.d.ts","sourceRoot":"","sources":["../../src/installers/workbuddy-host-installer.ts"],"names":[],"mappings":"AA6CA,OAAO,EAA+E,UAAU,EAAU,MAAM,EAAmD,MAAM,SAAS,CAAC;AAuBnL,yFAAyF;AACzF,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;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I,gBAAgB,CAEzB;IAED,iHAAiH;IACjH,aAAa,IAAI,sBAAsB,CAyCtC;CACF"}
|
|
@@ -66,6 +66,7 @@ export const WORKBUDDY_PLUGIN_KEY = `${WORKBUDDY_PLUGIN_NAME}@${WORKBUDDY_MARKET
|
|
|
66
66
|
const WORKBUDDY_REQUIRED_SKILLS = ['pd-cli-operator', 'pd-pain-signal', 'pd-review', 'pd-control'];
|
|
67
67
|
import { atomicReplaceTextFile, AtomicReplaceCleanupError, AtomicReplaceConflictError, errnoCode } from '../utils/config-file-io.js';
|
|
68
68
|
import { checkMcpRegistrationConflict } from './mcp-registration-conflict.js';
|
|
69
|
+
import { deprecateLegacyWorkbuddySkill } from './legacy-workbuddy-skill.js';
|
|
69
70
|
import { resolveMcpServerDir, resolveMcpServerEntry } from '../mcp-server-layout-compat.js';
|
|
70
71
|
import { getHomeDir, generateConfigYamlContent, getConfigYamlPath, resolveDefaultModelForProvider, isValidHttpBaseUrl } from '../mvp-config.js';
|
|
71
72
|
// Type-only import from @principles/core — erased at compile time; this
|
|
@@ -2553,11 +2554,17 @@ export class WorkBuddyHostInstaller {
|
|
|
2553
2554
|
const pendingRebindNote = profilePendingAgents.length > 0
|
|
2554
2555
|
? ` Pending config: agent(s) ${profilePendingAgents.join(', ')} still bind to their explicit runtime profiles; to rebind them to the install profile, set internalAgents.agents.<name>.runtimeProfile to '${GOVERNANCE_PROFILE_ID}' (or remove the per-agent runtimeProfile row so they inherit internalAgents.defaultRuntime) in ${path.join(p.governanceDir, '.pd', 'config.yaml')}.`
|
|
2555
2556
|
: '';
|
|
2557
|
+
// SPEC-PD-AGENT-PAIN-INGRESS-001 §5.5 / TD §7.4: retire the old user-level
|
|
2558
|
+
// `pd-record-pain` skill once per install/upgrade. Idempotent and
|
|
2559
|
+
// preservation-first: a copy that is not provably a published payload is
|
|
2560
|
+
// reported, never overwritten or deleted.
|
|
2561
|
+
const legacySkill = deprecateLegacyWorkbuddySkill({ configDir: p.configDir });
|
|
2556
2562
|
return {
|
|
2557
2563
|
success: true,
|
|
2558
2564
|
hostId: this.hostId,
|
|
2559
2565
|
configPath: p.settingsPath,
|
|
2560
2566
|
configAction: registration.settingsAction,
|
|
2567
|
+
warnings: legacySkill.warnings.length > 0 ? legacySkill.warnings : undefined,
|
|
2561
2568
|
pluginState: this.readInstalledPluginState(),
|
|
2562
2569
|
governance: governanceDefaults === null
|
|
2563
2570
|
? undefined
|