create-principles-disciple 1.152.5 → 1.153.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/agent-skill/pd-setup/SKILL.md +70 -0
- package/codex-adapter/dist/background-selection.d.ts +9 -0
- package/codex-adapter/dist/background-selection.js +142 -0
- package/codex-adapter/dist/ingestion/adaptive-append-state.d.ts +209 -0
- package/codex-adapter/dist/ingestion/adaptive-append-state.js +544 -0
- package/codex-adapter/dist/pd-hook.js +329 -5
- package/codex-adapter/package.json +1 -1
- package/console/dist/server/config/pd-config-store.d.ts +11 -15
- package/console/dist/server/config/pd-config-store.js +92 -17
- package/console/dist/server/models/ActivationsConsoleModel.d.ts +8 -0
- package/console/dist/server/models/ActivationsConsoleModel.js +3 -2
- package/console/dist/server/models/AdaptiveActivationConsoleModel.d.ts +43 -4
- package/console/dist/server/models/AdaptiveActivationConsoleModel.js +36 -7
- package/console/dist/server/models/ExaminerEvidenceModel.d.ts +6 -2
- package/console/dist/server/models/ExaminerEvidenceModel.js +13 -2
- package/console/dist/server/routes/config.js +34 -8
- package/console/dist/server/routes/examiner-executor.d.ts +33 -0
- package/console/dist/server/routes/examiner-executor.js +95 -0
- package/console/dist/server/routes/examiner.js +12 -9
- package/console/dist/web/assets/app.css +14 -10
- package/console/dist/web/assets/app.js +27 -27
- package/core/dist/ledger-file-lock.d.ts +38 -0
- package/core/dist/ledger-file-lock.d.ts.map +1 -0
- package/core/dist/ledger-file-lock.js +240 -0
- package/core/dist/ledger-file-lock.js.map +1 -0
- package/core/dist/principle-text-normalization.d.ts +32 -0
- package/core/dist/principle-text-normalization.d.ts.map +1 -0
- package/core/dist/principle-text-normalization.js +34 -0
- package/core/dist/principle-text-normalization.js.map +1 -0
- package/core/dist/principle-tree-ledger.d.ts +22 -21
- package/core/dist/principle-tree-ledger.d.ts.map +1 -1
- package/core/dist/principle-tree-ledger.js +77 -204
- package/core/dist/principle-tree-ledger.js.map +1 -1
- package/core/dist/runtime/activation/sqlite-approval-store.d.ts.map +1 -1
- package/core/dist/runtime/activation/sqlite-approval-store.js +7 -1
- package/core/dist/runtime/activation/sqlite-approval-store.js.map +1 -1
- package/core/dist/runtime/adapter/principle-tree-ledger-adapter.d.ts +13 -0
- package/core/dist/runtime/adapter/principle-tree-ledger-adapter.d.ts.map +1 -1
- package/core/dist/runtime/adapter/principle-tree-ledger-adapter.js +90 -1
- package/core/dist/runtime/adapter/principle-tree-ledger-adapter.js.map +1 -1
- package/core/dist/runtime/adapter/schema-prompt-adapter.d.ts.map +1 -1
- package/core/dist/runtime/adapter/schema-prompt-adapter.js +21 -30
- package/core/dist/runtime/adapter/schema-prompt-adapter.js.map +1 -1
- package/core/dist/runtime/candidate-intake-service.d.ts +40 -1
- package/core/dist/runtime/candidate-intake-service.d.ts.map +1 -1
- package/core/dist/runtime/candidate-intake-service.js +548 -110
- package/core/dist/runtime/candidate-intake-service.js.map +1 -1
- package/core/dist/runtime/candidate-intake.d.ts +59 -2
- package/core/dist/runtime/candidate-intake.d.ts.map +1 -1
- package/core/dist/runtime/candidate-intake.js +23 -0
- package/core/dist/runtime/candidate-intake.js.map +1 -1
- package/core/dist/runtime/candidate-seed-suppression.d.ts +63 -0
- package/core/dist/runtime/candidate-seed-suppression.d.ts.map +1 -0
- package/core/dist/runtime/candidate-seed-suppression.js +29 -0
- package/core/dist/runtime/candidate-seed-suppression.js.map +1 -0
- package/core/dist/runtime/config/pd-config-agent-binding.d.ts +5 -5
- package/core/dist/runtime/config/pd-config-agent-binding.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-agent-binding.js +22 -16
- package/core/dist/runtime/config/pd-config-agent-binding.js.map +1 -1
- package/core/dist/runtime/config/pd-config-feature-flags.d.ts +10 -0
- package/core/dist/runtime/config/pd-config-feature-flags.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-feature-flags.js +14 -0
- package/core/dist/runtime/config/pd-config-feature-flags.js.map +1 -1
- package/core/dist/runtime/config/pd-config-types.d.ts +9 -0
- package/core/dist/runtime/config/pd-config-types.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-types.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 +10 -2
- package/core/dist/runtime/config/pd-config-validate.js.map +1 -1
- package/core/dist/runtime/config/pd-credentials.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-credentials.js +7 -1
- package/core/dist/runtime/config/pd-credentials.js.map +1 -1
- package/core/dist/runtime/diagnostician/distiller-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime/diagnostician/distiller-prompt-builder.js +30 -3
- package/core/dist/runtime/diagnostician/distiller-prompt-builder.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 +16 -5
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js.map +1 -1
- package/core/dist/runtime/diagnostician/router-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime/diagnostician/router-prompt-builder.js +16 -4
- package/core/dist/runtime/diagnostician/router-prompt-builder.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 +13 -2
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/core/dist/runtime/index.d.ts +4 -2
- package/core/dist/runtime/index.d.ts.map +1 -1
- package/core/dist/runtime/index.js +3 -1
- package/core/dist/runtime/index.js.map +1 -1
- package/core/dist/runtime/intent/intent-doc.d.ts +22 -0
- package/core/dist/runtime/intent/intent-doc.d.ts.map +1 -1
- package/core/dist/runtime/intent/intent-doc.js +79 -0
- package/core/dist/runtime/intent/intent-doc.js.map +1 -1
- package/core/dist/runtime/intent/intent-friction-block.d.ts +7 -0
- package/core/dist/runtime/intent/intent-friction-block.d.ts.map +1 -1
- package/core/dist/runtime/intent/intent-friction-block.js +34 -1
- package/core/dist/runtime/intent/intent-friction-block.js.map +1 -1
- package/core/dist/runtime/intent/intent-snapshot.d.ts +44 -5
- package/core/dist/runtime/intent/intent-snapshot.d.ts.map +1 -1
- package/core/dist/runtime/intent/intent-snapshot.js +83 -15
- package/core/dist/runtime/intent/intent-snapshot.js.map +1 -1
- package/core/dist/runtime/intent/strategic-conflict-gate.d.ts +19 -0
- package/core/dist/runtime/intent/strategic-conflict-gate.d.ts.map +1 -1
- package/core/dist/runtime/intent/strategic-conflict-gate.js +94 -26
- package/core/dist/runtime/intent/strategic-conflict-gate.js.map +1 -1
- package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts +22 -11
- package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/diag-rootcause-runner.js +101 -28
- package/core/dist/runtime/internalization/diag-rootcause-runner.js.map +1 -1
- package/core/dist/runtime/internalization/dreamer-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime/internalization/dreamer-prompt-builder.js +177 -28
- package/core/dist/runtime/internalization/dreamer-prompt-builder.js.map +1 -1
- package/core/dist/runtime/internalization/dreamer-runner.d.ts +9 -2
- package/core/dist/runtime/internalization/dreamer-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/dreamer-runner.js +11 -1
- package/core/dist/runtime/internalization/dreamer-runner.js.map +1 -1
- package/core/dist/runtime/internalization/evaluator-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/evaluator-runner.js +7 -0
- package/core/dist/runtime/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime/internalization/formation-context.d.ts +16 -0
- package/core/dist/runtime/internalization/formation-context.d.ts.map +1 -1
- package/core/dist/runtime/internalization/formation-context.js +109 -8
- package/core/dist/runtime/internalization/formation-context.js.map +1 -1
- package/core/dist/runtime/internalization/index.d.ts +2 -2
- 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/intent-contract.d.ts +55 -4
- package/core/dist/runtime/internalization/intent-contract.d.ts.map +1 -1
- package/core/dist/runtime/internalization/intent-contract.js +111 -30
- package/core/dist/runtime/internalization/intent-contract.js.map +1 -1
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts +16 -2
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts.map +1 -1
- package/core/dist/runtime/internalization/internalization-orchestrator.js +48 -14
- package/core/dist/runtime/internalization/internalization-orchestrator.js.map +1 -1
- package/core/dist/runtime/internalization/philosopher-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime/internalization/philosopher-prompt-builder.js +7 -6
- package/core/dist/runtime/internalization/philosopher-prompt-builder.js.map +1 -1
- package/core/dist/runtime/internalization/philosopher-runner.d.ts +9 -2
- package/core/dist/runtime/internalization/philosopher-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/philosopher-runner.js +11 -1
- package/core/dist/runtime/internalization/philosopher-runner.js.map +1 -1
- package/core/dist/runtime/internalization/scribe-prompt-builder.d.ts +13 -6
- package/core/dist/runtime/internalization/scribe-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime/internalization/scribe-prompt-builder.js +15 -10
- package/core/dist/runtime/internalization/scribe-prompt-builder.js.map +1 -1
- package/core/dist/runtime/internalization/scribe-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/scribe-runner.js +17 -7
- package/core/dist/runtime/internalization/scribe-runner.js.map +1 -1
- package/core/dist/runtime/pain-signal-bridge.d.ts +3 -0
- package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-bridge.js +224 -93
- package/core/dist/runtime/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime/pain-submit-capability.d.ts.map +1 -1
- package/core/dist/runtime/pain-submit-capability.js +3 -5
- package/core/dist/runtime/pain-submit-capability.js.map +1 -1
- package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -1
- package/core/dist/runtime/pain-to-principle-service.js +18 -21
- package/core/dist/runtime/pain-to-principle-service.js.map +1 -1
- package/core/dist/runtime/store/candidate/admission-document.d.ts +129 -0
- package/core/dist/runtime/store/candidate/admission-document.d.ts.map +1 -1
- package/core/dist/runtime/store/candidate/admission-document.js +196 -0
- package/core/dist/runtime/store/candidate/admission-document.js.map +1 -1
- package/core/dist/runtime/store/candidate/candidate-store.d.ts +54 -1
- package/core/dist/runtime/store/candidate/candidate-store.d.ts.map +1 -1
- package/core/dist/runtime/store/candidate/memory-candidate-store.d.ts +32 -1
- package/core/dist/runtime/store/candidate/memory-candidate-store.d.ts.map +1 -1
- package/core/dist/runtime/store/candidate/memory-candidate-store.js +24 -1
- package/core/dist/runtime/store/candidate/memory-candidate-store.js.map +1 -1
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.d.ts +32 -1
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.d.ts.map +1 -1
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.js +76 -1
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.js.map +1 -1
- package/core/dist/runtime/store/intent/sqlite-intent-decision-store.d.ts +10 -0
- package/core/dist/runtime/store/intent/sqlite-intent-decision-store.d.ts.map +1 -1
- package/core/dist/runtime/store/intent/sqlite-intent-decision-store.js +15 -4
- package/core/dist/runtime/store/intent/sqlite-intent-decision-store.js.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.d.ts +34 -1
- package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.js +10 -0
- package/core/dist/runtime/store/runtime-state-manager.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 +6 -0
- package/core/dist/telemetry-event.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/agent-skill.d.ts +59 -0
- package/dist/agent-skill.d.ts.map +1 -0
- package/dist/agent-skill.js +198 -0
- package/dist/agent-skill.js.map +1 -0
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +12 -0
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +171 -3
- package/dist/index.js.map +1 -1
- package/dist/install-summary.d.ts +52 -0
- package/dist/install-summary.d.ts.map +1 -1
- package/dist/install-summary.js +104 -0
- package/dist/install-summary.js.map +1 -1
- package/host-runtime/dist/adaptive-background-append.d.ts +70 -0
- package/host-runtime/dist/adaptive-background-append.js +165 -0
- package/host-runtime/dist/governance-signal-admission.js +1 -5
- package/host-runtime/dist/index.d.ts +1 -0
- package/host-runtime/dist/index.js +5 -0
- package/host-runtime/package.json +1 -1
- package/package.json +3 -2
- package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
- package/pd-cli/dist/commands/candidate.js +243 -28
- package/pd-cli/dist/commands/candidate.js.map +1 -1
- package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
- package/pd-cli/dist/commands/diagnose.js +110 -7
- package/pd-cli/dist/commands/diagnose.js.map +1 -1
- package/pd-cli/dist/commands/health-console.d.ts +21 -0
- package/pd-cli/dist/commands/health-console.d.ts.map +1 -0
- package/pd-cli/dist/commands/health-console.js +106 -0
- package/pd-cli/dist/commands/health-console.js.map +1 -0
- package/pd-cli/dist/commands/health.d.ts +159 -0
- package/pd-cli/dist/commands/health.d.ts.map +1 -1
- package/pd-cli/dist/commands/health.js +162 -2
- package/pd-cli/dist/commands/health.js.map +1 -1
- package/pd-cli/dist/commands/mcp-probe.d.ts +48 -0
- package/pd-cli/dist/commands/mcp-probe.d.ts.map +1 -0
- package/pd-cli/dist/commands/mcp-probe.js +479 -0
- package/pd-cli/dist/commands/mcp-probe.js.map +1 -0
- package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-retry.js +3 -0
- package/pd-cli/dist/commands/pain-retry.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.js +70 -4
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
- package/pd-cli/dist/program.d.ts.map +1 -1
- package/pd-cli/dist/program.js +68 -1
- package/pd-cli/dist/program.js.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.js +18 -7
- package/pd-cli/dist/services/admission-write-gate.js.map +1 -1
- package/pd-cli/dist/services/console-launcher.d.ts +3 -0
- package/pd-cli/dist/services/console-launcher.d.ts.map +1 -1
- package/pd-cli/dist/services/console-launcher.js +3 -2
- package/pd-cli/dist/services/console-launcher.js.map +1 -1
- package/pd-cli/dist/services/demo-story-a-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/demo-story-a-runner.js +8 -3
- package/pd-cli/dist/services/demo-story-a-runner.js.map +1 -1
- package/pd-cli/dist/services/reuse-park-release.d.ts +142 -0
- package/pd-cli/dist/services/reuse-park-release.d.ts.map +1 -0
- package/pd-cli/dist/services/reuse-park-release.js +201 -0
- package/pd-cli/dist/services/reuse-park-release.js.map +1 -0
- package/pd-cli/package.json +1 -1
- package/plugin/dist/bundle.js +914 -640
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/release-manager/dist/i18n.js +12 -0
- package/release-manager/package.json +2 -1
- package/workbuddy-adapter/dist/pd-hook.js +37 -3
- package/workbuddy-adapter/package.json +1 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pd-setup bootstrap agent skill — the pre-install knowledge channel.
|
|
3
|
+
*
|
|
4
|
+
* PD's plugin-delivered skills (pd-cli-operator / pd-control, …) only exist
|
|
5
|
+
* AFTER an install; before that, a host agent asked to "install PD" has no
|
|
6
|
+
* PD knowledge at all. This module ships ONE host-neutral bootstrap skill
|
|
7
|
+
* (agent-skill/pd-setup/SKILL.md, part of the create-principles-disciple
|
|
8
|
+
* tarball) and copies it into each host's USER-LEVEL skills directory:
|
|
9
|
+
*
|
|
10
|
+
* OpenClaw → ~/.openclaw/skills/pd-setup/SKILL.md
|
|
11
|
+
* Codex → ~/.agents/skills/pd-setup/SKILL.md (agent-ecosystem convention)
|
|
12
|
+
* WorkBuddy → ~/.workbuddy/skills/pd-setup/SKILL.md
|
|
13
|
+
*
|
|
14
|
+
* Boundaries:
|
|
15
|
+
* - NOT part of the plugin-delivered skill set: deliberately outside
|
|
16
|
+
* skill-catalog.json and the 4 delivery directories (bootstrap channel is
|
|
17
|
+
* owned by the installer, not the plugin payload parity system).
|
|
18
|
+
* - Never touches a target that is not provably ours (ownership marker);
|
|
19
|
+
* a foreign file at the target is a REFUSAL, never an overwrite (cli-5).
|
|
20
|
+
* - Idempotent: identical content → 'unchanged'; ours-but-stale → replaced.
|
|
21
|
+
*/
|
|
22
|
+
import * as fs from 'fs';
|
|
23
|
+
import * as path from 'path';
|
|
24
|
+
import * as os from 'os';
|
|
25
|
+
export const AGENT_SKILL_NAME = 'pd-setup';
|
|
26
|
+
/** Single authority for "this file is ours" — present in the shipped source. */
|
|
27
|
+
export const AGENT_SKILL_MARKER = 'pd-agent-skill: pd-setup';
|
|
28
|
+
export const AGENT_SKILL_HOSTS = ['openclaw', 'codex', 'workbuddy'];
|
|
29
|
+
/** User-level skills root per host (verified conventions, 2026-11-15). */
|
|
30
|
+
export function agentSkillRoot(host, homeDir = os.homedir()) {
|
|
31
|
+
switch (host) {
|
|
32
|
+
case 'openclaw': return path.join(homeDir, '.openclaw', 'skills');
|
|
33
|
+
case 'codex': return path.join(homeDir, '.agents', 'skills');
|
|
34
|
+
case 'workbuddy': return path.join(homeDir, '.workbuddy', 'skills');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/** Source dir of the shipped skill inside the installer package. */
|
|
38
|
+
export function agentSkillSourceDir(pluginDir) {
|
|
39
|
+
return path.join(pluginDir, 'agent-skill', AGENT_SKILL_NAME);
|
|
40
|
+
}
|
|
41
|
+
function readTarget(target) {
|
|
42
|
+
try {
|
|
43
|
+
return fs.readFileSync(target, 'utf8');
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function isOurs(content) {
|
|
50
|
+
return content !== null && content.includes(AGENT_SKILL_MARKER);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Read-only per-host triage. Foreign = someone else's file occupies the slot.
|
|
54
|
+
* Staleness of an installed copy is deliberately NOT reported here: without
|
|
55
|
+
* the shipped source there is no honest comparison, and `install` already
|
|
56
|
+
* answers it operationally ('unchanged' vs 'replaced') — P1/rc-9: a status
|
|
57
|
+
* field that cannot be computed must not be fabricated.
|
|
58
|
+
*/
|
|
59
|
+
export function agentSkillStatus(hosts, homeDir = os.homedir()) {
|
|
60
|
+
return hosts.map((host) => {
|
|
61
|
+
const target = path.join(agentSkillRoot(host, homeDir), AGENT_SKILL_NAME, 'SKILL.md');
|
|
62
|
+
const content = readTarget(target);
|
|
63
|
+
if (content === null)
|
|
64
|
+
return { host, state: 'not_installed', path: target };
|
|
65
|
+
if (!isOurs(content)) {
|
|
66
|
+
return {
|
|
67
|
+
host,
|
|
68
|
+
state: 'foreign',
|
|
69
|
+
path: target,
|
|
70
|
+
reason: 'target exists and is not marked as PD-owned — refusing to touch it',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return { host, state: 'installed', path: target };
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Copy the shipped skill into each host's user-level skills dir.
|
|
78
|
+
* Pure filesystem operation outside the install transaction (bootstrap
|
|
79
|
+
* channel): failures are per-host and never roll back sibling hosts.
|
|
80
|
+
*/
|
|
81
|
+
export function installAgentSkill(input) {
|
|
82
|
+
const homeDir = input.homeDir ?? os.homedir();
|
|
83
|
+
const sourceDir = agentSkillSourceDir(input.pluginDir);
|
|
84
|
+
const sourceFile = path.join(sourceDir, 'SKILL.md');
|
|
85
|
+
const sourceContent = fs.readFileSync(sourceFile, 'utf8');
|
|
86
|
+
if (!isOurs(sourceContent)) {
|
|
87
|
+
return {
|
|
88
|
+
success: false,
|
|
89
|
+
hosts: [],
|
|
90
|
+
skillSource: sourceFile,
|
|
91
|
+
reason: 'shipped agent skill is missing its ownership marker',
|
|
92
|
+
nextAction: 'Reinstall the create-principles-disciple package (npx create-principles-disciple@latest agent-skill install).',
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const hostResults = [];
|
|
96
|
+
let anySuccess = false;
|
|
97
|
+
for (const host of input.hosts) {
|
|
98
|
+
const target = path.join(agentSkillRoot(host, homeDir), AGENT_SKILL_NAME, 'SKILL.md');
|
|
99
|
+
const existing = readTarget(target);
|
|
100
|
+
if (existing !== null && !isOurs(existing)) {
|
|
101
|
+
hostResults.push({
|
|
102
|
+
host,
|
|
103
|
+
action: 'refused',
|
|
104
|
+
path: target,
|
|
105
|
+
reason: 'target exists and is not marked as PD-owned — inspect it, then remove/rename it and re-run',
|
|
106
|
+
});
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (existing === sourceContent) {
|
|
110
|
+
hostResults.push({ host, action: 'unchanged', path: target });
|
|
111
|
+
anySuccess = true;
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
try {
|
|
115
|
+
fs.mkdirSync(path.dirname(target), { recursive: true });
|
|
116
|
+
fs.writeFileSync(target, sourceContent, 'utf8');
|
|
117
|
+
hostResults.push({ host, action: existing === null ? 'installed' : 'replaced', path: target });
|
|
118
|
+
anySuccess = true;
|
|
119
|
+
}
|
|
120
|
+
catch (err) {
|
|
121
|
+
hostResults.push({
|
|
122
|
+
host,
|
|
123
|
+
action: 'refused',
|
|
124
|
+
path: target,
|
|
125
|
+
reason: `write failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
success: anySuccess,
|
|
131
|
+
hosts: hostResults,
|
|
132
|
+
skillSource: sourceFile,
|
|
133
|
+
...(anySuccess ? {} : {
|
|
134
|
+
reason: 'no host could be provisioned',
|
|
135
|
+
nextAction: 'Check the per-host reasons; fix the skills directory permissions/ownership and re-run.',
|
|
136
|
+
}),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
/** Remove the skill from each host — only when the target is provably ours. */
|
|
140
|
+
export function uninstallAgentSkill(input) {
|
|
141
|
+
const homeDir = input.homeDir ?? os.homedir();
|
|
142
|
+
const hostResults = [];
|
|
143
|
+
let anyAction = false;
|
|
144
|
+
for (const host of input.hosts) {
|
|
145
|
+
const target = path.join(agentSkillRoot(host, homeDir), AGENT_SKILL_NAME, 'SKILL.md');
|
|
146
|
+
const existing = readTarget(target);
|
|
147
|
+
if (existing === null) {
|
|
148
|
+
hostResults.push({ host, action: 'skipped_not_present', path: target });
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
if (!isOurs(existing)) {
|
|
152
|
+
hostResults.push({
|
|
153
|
+
host,
|
|
154
|
+
action: 'refused',
|
|
155
|
+
path: target,
|
|
156
|
+
reason: 'target exists and is not marked as PD-owned — not removed',
|
|
157
|
+
});
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
try {
|
|
161
|
+
// §18 bounded mutation: the marker proves ownership of SKILL.md ONLY.
|
|
162
|
+
// Remove the file, then take the directory only when it is provably
|
|
163
|
+
// empty (rmdirSync refuses non-empty dirs). A third-party file dropped
|
|
164
|
+
// beside our skill must survive; a leftover dir around it is cosmetic.
|
|
165
|
+
fs.rmSync(target);
|
|
166
|
+
try {
|
|
167
|
+
fs.rmdirSync(path.dirname(target));
|
|
168
|
+
}
|
|
169
|
+
catch {
|
|
170
|
+
// non-empty (or transiently busy) — intentionally left in place
|
|
171
|
+
}
|
|
172
|
+
hostResults.push({ host, action: 'removed', path: target });
|
|
173
|
+
anyAction = true;
|
|
174
|
+
}
|
|
175
|
+
catch (err) {
|
|
176
|
+
hostResults.push({
|
|
177
|
+
host,
|
|
178
|
+
action: 'refused',
|
|
179
|
+
path: target,
|
|
180
|
+
reason: `remove failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const anyRefused = hostResults.some((entry) => entry.action === 'refused');
|
|
185
|
+
return {
|
|
186
|
+
// rc-9/cli-6: 'removed' and 'skipped_not_present' are both clean outcomes
|
|
187
|
+
// (uninstall is idempotent); a refusal is not — the caller asked for
|
|
188
|
+
// removal and at least one target could not be proven ours.
|
|
189
|
+
success: !anyRefused,
|
|
190
|
+
hosts: hostResults,
|
|
191
|
+
skillSource: path.join(agentSkillSourceDir('.'), 'SKILL.md'),
|
|
192
|
+
...(anyRefused ? {
|
|
193
|
+
reason: 'one or more targets are not PD-owned — nothing was removed there',
|
|
194
|
+
nextAction: 'Inspect the refused paths above; remove or rename them manually if you own them.',
|
|
195
|
+
} : anyAction ? {} : { reason: 'nothing to remove (no PD-owned skill found)' }),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=agent-skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-skill.js","sourceRoot":"","sources":["../src/agent-skill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAmB,CAAC;AACpD,gFAAgF;AAChF,MAAM,CAAC,MAAM,kBAAkB,GAAG,0BAAmC,CAAC;AAGtE,MAAM,CAAC,MAAM,iBAAiB,GAA8B,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC,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names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAyQnC,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAEhD;AAED,wBAAgB,WAAW,IAAI,QAAQ,CAEtC;AAED,wBAAgB,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAErC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE5D"}
|
package/dist/i18n.js
CHANGED
|
@@ -28,6 +28,12 @@ const translations = {
|
|
|
28
28
|
existing_install_detected: 'Existing install detected — will use smart merge mode',
|
|
29
29
|
existing_core_files: 'Existing core files:',
|
|
30
30
|
install_complete: 'Install complete!',
|
|
31
|
+
post_install_checklist: 'Post-install checklist (for you or your agent):',
|
|
32
|
+
agent_skill_source_label: 'Skill source',
|
|
33
|
+
agent_skill_refused_label: 'Refused',
|
|
34
|
+
agent_skill_state_installed: 'installed',
|
|
35
|
+
agent_skill_state_foreign: 'FOREIGN — occupied by a non-PD file',
|
|
36
|
+
agent_skill_state_not_installed: 'not installed',
|
|
31
37
|
principles_disciple_setup: 'Principles Disciple Setup',
|
|
32
38
|
detecting_environment: 'Detecting environment',
|
|
33
39
|
openclaw_target_found: 'OpenClaw integration target found',
|
|
@@ -152,6 +158,12 @@ const translations = {
|
|
|
152
158
|
existing_install_detected: '检测到现有安装 — 将使用智能合并模式',
|
|
153
159
|
existing_core_files: '现有核心文件:',
|
|
154
160
|
install_complete: '安装完成!',
|
|
161
|
+
post_install_checklist: '安装后验收清单(给你或你的智能体执行):',
|
|
162
|
+
agent_skill_source_label: '技能来源',
|
|
163
|
+
agent_skill_refused_label: '已拒绝',
|
|
164
|
+
agent_skill_state_installed: '已安装',
|
|
165
|
+
agent_skill_state_foreign: '外来占用(非 PD 文件)',
|
|
166
|
+
agent_skill_state_not_installed: '未安装',
|
|
155
167
|
principles_disciple_setup: 'Principles Disciple 安装',
|
|
156
168
|
detecting_environment: '检测环境',
|
|
157
169
|
openclaw_target_found: 'OpenClaw 集成目标已找到',
|
package/dist/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAA6C;IAC7D,EAAE,EAAE;QACF,eAAe,EAAE,iBAAiB;QAClC,YAAY,EAAE,qBAAqB;QACnC,eAAe,EAAE,wDAAwD;QACzE,eAAe,EAAE,uDAAuD;QACxE,aAAa,EAAE,qBAAqB;QACpC,YAAY,EAAE,wBAAwB;QACtC,UAAU,EAAE,kBAAkB;QAC9B,UAAU,EAAE,sBAAsB;QAClC,gBAAgB,EAAE,sBAAsB;QACxC,YAAY,EAAE,oEAAoE;QAClF,eAAe,EAAE,kBAAkB;QACnC,cAAc,EAAE,wBAAwB;QACxC,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,WAAW;QACtB,oBAAoB,EAAE,mBAAmB;QACzC,eAAe,EAAE,iBAAiB;QAClC,WAAW,EAAE,aAAa;QAC1B,cAAc,EAAE,mBAAmB;QACnC,aAAa,EAAE,qDAAqD;QACpE,wBAAwB,EAAE,gEAAgE;QAC1F,iBAAiB,EAAE,4CAA4C;QAC/D,qBAAqB,EAAE,qEAAqE;QAC5F,mBAAmB,EAAE,mEAAmE;QACxF,sBAAsB,EAAE,mDAAmD;QAC3E,yBAAyB,EAAE,uDAAuD;QAClF,mBAAmB,EAAE,sBAAsB;QAC3C,gBAAgB,EAAE,mBAAmB;QACrC,yBAAyB,EAAE,2BAA2B;QACtD,qBAAqB,EAAE,uBAAuB;QAC9C,qBAAqB,EAAE,mCAAmC;QAC1D,yBAA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,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC;AAC1C,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import { install } from './installer.js';
|
|
4
4
|
export { isLanguage } from './i18n.js';
|
|
5
|
-
export declare function toInstallJsonOutput(result: Awaited<ReturnType<typeof install
|
|
5
|
+
export declare function toInstallJsonOutput(result: Awaited<ReturnType<typeof install>>, options?: {
|
|
6
|
+
operatorWorkspaceDir?: string;
|
|
7
|
+
}): Record<string, unknown>;
|
|
6
8
|
export declare const program: Command;
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,OAAO,EAAE,OAAO,EAA8B,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,OAAO,EAAE,OAAO,EAA8B,MAAM,gBAAgB,CAAC;AAqBrE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAoBvC,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,EAC3C,OAAO,GAAE;IAAE,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuCzB;AAmgBD,eAAO,MAAM,OAAO,SAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11,9 +11,10 @@ import { uninstall, checkInstallStatus } from './uninstaller.js';
|
|
|
11
11
|
import { checkEnvironment, detectWorkspace } from './utils/env.js';
|
|
12
12
|
import { MVP_CHANNELS, buildFailureOutput, getHomeDir, isValidHttpBaseUrl, } from './mvp-config.js';
|
|
13
13
|
import { setLanguage, t, getLanguage, isLanguage } from './i18n.js';
|
|
14
|
-
import { formatHostStateSummary } from './install-summary.js';
|
|
14
|
+
import { formatHostStateSummary, buildPostInstallGuidance, formatPostInstallGuidanceLines } from './install-summary.js';
|
|
15
15
|
import { isHostTarget, HOST_TARGETS } from './installers/index.js';
|
|
16
16
|
import { readWorkbuddyHostState } from './installers/workbuddy-host-installer.js';
|
|
17
|
+
import { AGENT_SKILL_HOSTS, agentSkillStatus, installAgentSkill, uninstallAgentSkill, } from './agent-skill.js';
|
|
17
18
|
export { isLanguage } from './i18n.js';
|
|
18
19
|
const __filename = url.fileURLToPath(import.meta.url);
|
|
19
20
|
const __dirname = path.dirname(__filename);
|
|
@@ -31,7 +32,11 @@ if (typeof pkgVersionValue !== 'string' || pkgVersionValue.length === 0) {
|
|
|
31
32
|
throw new Error('Invalid package.json: "version" must be a non-empty string');
|
|
32
33
|
}
|
|
33
34
|
const pkgVersion = pkgVersionValue;
|
|
34
|
-
export function toInstallJsonOutput(result) {
|
|
35
|
+
export function toInstallJsonOutput(result, options = {}) {
|
|
36
|
+
// The runtime actually deployed (success, or explicit partial completion
|
|
37
|
+
// with pending manual host steps) → agents get the executable checklist.
|
|
38
|
+
const runtimeUsable = result.success
|
|
39
|
+
|| (result.manualActions !== undefined && result.manualActions.length > 0);
|
|
35
40
|
return {
|
|
36
41
|
success: result.success,
|
|
37
42
|
workspace: result.workspaceDir,
|
|
@@ -39,6 +44,18 @@ export function toInstallJsonOutput(result) {
|
|
|
39
44
|
enabledChannels: result.enabledChannels,
|
|
40
45
|
verification: result.verification,
|
|
41
46
|
nextAction: result.nextAction,
|
|
47
|
+
...(runtimeUsable
|
|
48
|
+
? {
|
|
49
|
+
postInstall: buildPostInstallGuidance({
|
|
50
|
+
hostResults: result.hostResults,
|
|
51
|
+
manualActions: result.manualActions,
|
|
52
|
+
gatewayNotice: result.gatewayNotice,
|
|
53
|
+
components: result.components,
|
|
54
|
+
consoleUrl: result.consoleUrl,
|
|
55
|
+
operatorWorkspaceDir: options.operatorWorkspaceDir ?? '',
|
|
56
|
+
}),
|
|
57
|
+
}
|
|
58
|
+
: {}),
|
|
42
59
|
...(result.manualActions !== undefined && result.manualActions.length > 0
|
|
43
60
|
? {
|
|
44
61
|
manualActions: result.manualActions.map((hr) => ({
|
|
@@ -335,8 +352,22 @@ async function runInstall(options) {
|
|
|
335
352
|
// governance workspace for the workbuddy host, the project dir otherwise
|
|
336
353
|
// (same resolution the installer's own nextActions use).
|
|
337
354
|
const operatorWorkspaceDir = resolveConsoleWorkspaceDir(host, result.workspaceDir, getHomeDir());
|
|
355
|
+
// Agent-executable post-install checklist — printed in the text branches and
|
|
356
|
+
// attached to --json via toInstallJsonOutput (same derivation, one builder).
|
|
357
|
+
const runtimeUsable = result.success
|
|
358
|
+
|| (result.manualActions !== undefined && result.manualActions.length > 0);
|
|
359
|
+
const postInstallGuidance = runtimeUsable
|
|
360
|
+
? buildPostInstallGuidance({
|
|
361
|
+
hostResults: result.hostResults,
|
|
362
|
+
manualActions: result.manualActions,
|
|
363
|
+
gatewayNotice: result.gatewayNotice,
|
|
364
|
+
components: result.components,
|
|
365
|
+
consoleUrl: result.consoleUrl,
|
|
366
|
+
operatorWorkspaceDir,
|
|
367
|
+
})
|
|
368
|
+
: null;
|
|
338
369
|
if (jsonMode) {
|
|
339
|
-
const output = toInstallJsonOutput(result);
|
|
370
|
+
const output = toInstallJsonOutput(result, { operatorWorkspaceDir });
|
|
340
371
|
console.log(JSON.stringify(output, null, 2));
|
|
341
372
|
if (!result.success) {
|
|
342
373
|
process.exit(1);
|
|
@@ -394,6 +425,10 @@ async function runInstall(options) {
|
|
|
394
425
|
// prints nothing when the install failed.
|
|
395
426
|
for (const line of formatHostStateSummary(result.hostResults, result.success))
|
|
396
427
|
console.log(line);
|
|
428
|
+
if (postInstallGuidance !== null) {
|
|
429
|
+
for (const line of formatPostInstallGuidanceLines(postInstallGuidance, t('post_install_checklist')))
|
|
430
|
+
console.log(line);
|
|
431
|
+
}
|
|
397
432
|
console.log();
|
|
398
433
|
console.log(t('ready'));
|
|
399
434
|
console.log(`${t('diagnostics')}: pd runtime canary --workspace "${operatorWorkspaceDir}" --json`);
|
|
@@ -437,6 +472,10 @@ async function runInstall(options) {
|
|
|
437
472
|
}
|
|
438
473
|
console.log();
|
|
439
474
|
console.log(' Already-installed hosts remain installed and usable. Complete the manual step, then re-run: npx create-principles-disciple install --host <target>');
|
|
475
|
+
if (postInstallGuidance !== null) {
|
|
476
|
+
for (const line of formatPostInstallGuidanceLines(postInstallGuidance, t('post_install_checklist')))
|
|
477
|
+
console.log(line);
|
|
478
|
+
}
|
|
440
479
|
}
|
|
441
480
|
process.exit(1);
|
|
442
481
|
return;
|
|
@@ -645,6 +684,135 @@ program
|
|
|
645
684
|
if (!result.success)
|
|
646
685
|
process.exitCode = 1;
|
|
647
686
|
});
|
|
687
|
+
// ── agent-skill — the pre-install bootstrap skill channel ─────────────────────
|
|
688
|
+
// Copies the shipped host-neutral `pd-setup` skill into each host's USER-LEVEL
|
|
689
|
+
// skills directory (OpenClaw ~/.openclaw/skills, Codex ~/.agents/skills,
|
|
690
|
+
// WorkBuddy ~/.workbuddy/skills), so a host agent knows how to install PD
|
|
691
|
+
// BEFORE any PD exists on the machine. Outside the install transaction; never
|
|
692
|
+
// touches a target that is not provably ours (ownership marker). Unlike the
|
|
693
|
+
// product install, `--host all` covers ALL THREE hosts — the skill is one
|
|
694
|
+
// host-neutral body (Owner decision 2026-11-15: no per-host copies).
|
|
695
|
+
const agentSkillCmd = program
|
|
696
|
+
.command('agent-skill')
|
|
697
|
+
.description('Manage the pd-setup bootstrap agent skill (pre-install knowledge channel)');
|
|
698
|
+
function parseAgentSkillHosts(raw) {
|
|
699
|
+
if (raw === undefined || raw === 'all')
|
|
700
|
+
return [...AGENT_SKILL_HOSTS];
|
|
701
|
+
if (AGENT_SKILL_HOSTS.includes(raw))
|
|
702
|
+
return [raw];
|
|
703
|
+
return { error: `--host must be one of: openclaw, codex, workbuddy, all. Got: ${JSON.stringify(raw)}.` };
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Shared prelude for the three agent-skill subcommands: validates --lang and
|
|
707
|
+
* --host ONCE (the handlers used to repeat this block verbatim) and installs
|
|
708
|
+
* the language before any output so t() resolves the requested locale.
|
|
709
|
+
*/
|
|
710
|
+
function resolveAgentSkillRequest(options) {
|
|
711
|
+
if (!isLanguage(options.lang)) {
|
|
712
|
+
return { invalid: { flag: 'invalid_lang', message: `--lang must be 'zh' or 'en', got: ${JSON.stringify(options.lang)}.` } };
|
|
713
|
+
}
|
|
714
|
+
setLanguage(options.lang);
|
|
715
|
+
const hosts = parseAgentSkillHosts(options.host);
|
|
716
|
+
if (!Array.isArray(hosts)) {
|
|
717
|
+
return { invalid: { flag: 'invalid_host', message: hosts.error } };
|
|
718
|
+
}
|
|
719
|
+
return { hosts };
|
|
720
|
+
}
|
|
721
|
+
function reportAgentSkillInvalid(invalid, json) {
|
|
722
|
+
if (json) {
|
|
723
|
+
console.log(JSON.stringify(buildFailureOutput(invalid.flag, invalid.message), null, 2));
|
|
724
|
+
}
|
|
725
|
+
else {
|
|
726
|
+
console.error(invalid.message);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
agentSkillCmd
|
|
730
|
+
.command('install')
|
|
731
|
+
.description('Copy the shipped pd-setup skill into the host(s) user-level skills directory')
|
|
732
|
+
.option('--host <host>', 'Host platform (openclaw/codex/workbuddy/all)', 'all')
|
|
733
|
+
.option('-l, --lang <lang>', 'Language (zh/en)', 'zh')
|
|
734
|
+
.option('--json', 'Output result as JSON', false)
|
|
735
|
+
.action(async (options) => {
|
|
736
|
+
const request = resolveAgentSkillRequest(options);
|
|
737
|
+
if ('invalid' in request) {
|
|
738
|
+
reportAgentSkillInvalid(request.invalid, options.json === true);
|
|
739
|
+
process.exitCode = 1;
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
const result = installAgentSkill({ hosts: request.hosts, pluginDir: PLUGIN_DIR });
|
|
743
|
+
if (options.json) {
|
|
744
|
+
console.log(JSON.stringify(result, null, 2));
|
|
745
|
+
}
|
|
746
|
+
else {
|
|
747
|
+
console.log(`${t('agent_skill_source_label')}: ${result.skillSource}`);
|
|
748
|
+
for (const entry of result.hosts) {
|
|
749
|
+
console.log(`- ${entry.host}: ${entry.action} → ${entry.path}${entry.reason ? ` (${entry.reason})` : ''}`);
|
|
750
|
+
}
|
|
751
|
+
if (result.reason !== undefined)
|
|
752
|
+
console.error(`${t('agent_skill_refused_label')}: ${result.reason}`);
|
|
753
|
+
if (result.nextAction !== undefined)
|
|
754
|
+
console.log(`${t('next_action')}: ${result.nextAction}`);
|
|
755
|
+
}
|
|
756
|
+
if (!result.success)
|
|
757
|
+
process.exitCode = 1;
|
|
758
|
+
});
|
|
759
|
+
agentSkillCmd
|
|
760
|
+
.command('uninstall')
|
|
761
|
+
.description('Remove the pd-setup skill from the host(s) — only when provably ours')
|
|
762
|
+
.option('--host <host>', 'Host platform (openclaw/codex/workbuddy/all)', 'all')
|
|
763
|
+
.option('-l, --lang <lang>', 'Language (zh/en)', 'zh')
|
|
764
|
+
.option('--json', 'Output result as JSON', false)
|
|
765
|
+
.action(async (options) => {
|
|
766
|
+
const request = resolveAgentSkillRequest(options);
|
|
767
|
+
if ('invalid' in request) {
|
|
768
|
+
reportAgentSkillInvalid(request.invalid, options.json === true);
|
|
769
|
+
process.exitCode = 1;
|
|
770
|
+
return;
|
|
771
|
+
}
|
|
772
|
+
const result = uninstallAgentSkill({ hosts: request.hosts });
|
|
773
|
+
if (options.json) {
|
|
774
|
+
console.log(JSON.stringify(result, null, 2));
|
|
775
|
+
}
|
|
776
|
+
else {
|
|
777
|
+
for (const entry of result.hosts) {
|
|
778
|
+
console.log(`- ${entry.host}: ${entry.action} → ${entry.path}${entry.reason ? ` (${entry.reason})` : ''}`);
|
|
779
|
+
}
|
|
780
|
+
if (result.reason !== undefined)
|
|
781
|
+
console.error(`${t('agent_skill_refused_label')}: ${result.reason}`);
|
|
782
|
+
if (result.nextAction !== undefined)
|
|
783
|
+
console.log(`${t('next_action')}: ${result.nextAction}`);
|
|
784
|
+
}
|
|
785
|
+
if (!result.success)
|
|
786
|
+
process.exitCode = 1;
|
|
787
|
+
});
|
|
788
|
+
agentSkillCmd
|
|
789
|
+
.command('status')
|
|
790
|
+
.description('Show per-host state of the pd-setup skill (read-only)')
|
|
791
|
+
.option('--host <host>', 'Host platform (openclaw/codex/workbuddy/all)', 'all')
|
|
792
|
+
.option('-l, --lang <lang>', 'Language (zh/en)', 'zh')
|
|
793
|
+
.option('--json', 'Output result as JSON', false)
|
|
794
|
+
.action(async (options) => {
|
|
795
|
+
const request = resolveAgentSkillRequest(options);
|
|
796
|
+
if ('invalid' in request) {
|
|
797
|
+
reportAgentSkillInvalid(request.invalid, options.json === true);
|
|
798
|
+
process.exitCode = 1;
|
|
799
|
+
return;
|
|
800
|
+
}
|
|
801
|
+
const states = agentSkillStatus([...request.hosts]);
|
|
802
|
+
if (options.json) {
|
|
803
|
+
console.log(JSON.stringify({ hosts: states }, null, 2));
|
|
804
|
+
}
|
|
805
|
+
else {
|
|
806
|
+
for (const state of states) {
|
|
807
|
+
const label = state.state === 'installed'
|
|
808
|
+
? t('agent_skill_state_installed')
|
|
809
|
+
: state.state === 'foreign'
|
|
810
|
+
? `${t('agent_skill_state_foreign')} (${state.reason})`
|
|
811
|
+
: t('agent_skill_state_not_installed');
|
|
812
|
+
console.log(`- ${state.host}: ${label} → ${state.path}`);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
});
|
|
648
816
|
// cli-7: only wire the process handler and parse argv when this module is the
|
|
649
817
|
// CLI entry point — NOT when imported by tests (which inspect `program` opts
|
|
650
818
|
// directly). Without this guard, importing index.js would run the installer.
|