create-principles-disciple 1.145.18 → 1.145.19
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/README.md +15 -0
- package/_release/product-identity.json +1 -1
- package/console/dist/ui/i18n/en.json +1 -1
- package/console/dist/ui/i18n/zh-CN.json +1 -1
- package/console/dist/ui/pages/control-center/ControlCenterPage.js +11 -1
- package/console/dist/web/assets/app.js +13 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/installers/openclaw-host-installer.d.ts +4 -8
- package/dist/installers/openclaw-host-installer.d.ts.map +1 -1
- package/dist/installers/openclaw-host-installer.js +10 -84
- package/dist/installers/openclaw-host-installer.js.map +1 -1
- package/package.json +1 -1
- package/pd-cli/package.json +1 -1
- package/release-manager/dist/index.d.ts.map +1 -1
- package/release-manager/dist/index.js +5 -1
- package/release-manager/dist/index.js.map +1 -1
- package/release-manager/dist/installers/openclaw-host-installer.d.ts +4 -8
- package/release-manager/dist/installers/openclaw-host-installer.d.ts.map +1 -1
- package/release-manager/dist/installers/openclaw-host-installer.js +10 -84
- package/release-manager/dist/installers/openclaw-host-installer.js.map +1 -1
- package/release-manager/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,8 +46,23 @@ npx create-principles-disciple --yes --workspace "/path/to/workspace" --json
|
|
|
46
46
|
--non-interactive Skip prompts
|
|
47
47
|
--workspace <path> Workspace directory
|
|
48
48
|
--json Output result as JSON (implies non-interactive)
|
|
49
|
+
--provider <name> LLM provider for the pd.default runtime profile (openai/anthropic/deepseek)
|
|
50
|
+
--api-key-env <name> NAME of the env var holding your LLM API key. Requires --provider
|
|
51
|
+
--model <id> LLM model id (optional; the per-provider default applies when omitted)
|
|
52
|
+
--base-url <url> OpenAI-compatible custom endpoint (optional; env: PD_BASE_URL)
|
|
49
53
|
```
|
|
50
54
|
|
|
55
|
+
## LLM runtime profile — required before the internal agents can run
|
|
56
|
+
|
|
57
|
+
PD's internal agents (diagnostician, dreamer, scribe, artificer, signal collector) call the LLM
|
|
58
|
+
provider **you** configure. PD ships no keys, stores no key values, and `--api-key-env` names an
|
|
59
|
+
environment variable rather than carrying a secret.
|
|
60
|
+
|
|
61
|
+
`--yes` without `--provider` installs in evidence-only mode: pain signals are captured and kept,
|
|
62
|
+
but diagnosis does not run and no principle is proposed. The post-install summary says so, and at any
|
|
63
|
+
later time `pd config doctor --workspace "<path>"` names the missing field. Full operator walkthrough:
|
|
64
|
+
[`docs/runbooks/USER_GUIDE.md`](../../docs/runbooks/USER_GUIDE.md) — “Before You Start: Give PD an LLM”.
|
|
65
|
+
|
|
51
66
|
## Post-Install Verification
|
|
52
67
|
|
|
53
68
|
The installer automatically verifies the installation during setup:
|
|
@@ -1459,7 +1459,7 @@
|
|
|
1459
1459
|
"configDisabled": "All agents are disabled.",
|
|
1460
1460
|
"configErrors": "Configuration Errors",
|
|
1461
1461
|
"internalAgents": "Internal Agents",
|
|
1462
|
-
"internalAgentsDescription": "Each PD internal agent
|
|
1462
|
+
"internalAgentsDescription": "Each PD internal agent runs on the runtime profile you configure — provider, model, and the name of the environment variable holding your API key. Keys stay outside PD.",
|
|
1463
1463
|
"defaultRuntime": "Default Runtime",
|
|
1464
1464
|
"defaultRuntimeDescription": "The default runtime profile for agents without explicit overrides.",
|
|
1465
1465
|
"advancedDiagnostics": "Advanced Diagnostics",
|
|
@@ -1459,7 +1459,7 @@
|
|
|
1459
1459
|
"configDisabled": "所有智能体已停用。",
|
|
1460
1460
|
"configErrors": "配置错误",
|
|
1461
1461
|
"internalAgents": "内部智能体",
|
|
1462
|
-
"internalAgentsDescription": "每个 PD
|
|
1462
|
+
"internalAgentsDescription": "每个 PD 内部智能体都运行在您配置的运行时配置上——provider、model,以及存放 API Key 的环境变量名。密钥本身留在 PD 之外。",
|
|
1463
1463
|
"defaultRuntime": "默认运行时",
|
|
1464
1464
|
"defaultRuntimeDescription": "未设置显式覆盖的智能体使用的默认运行时配置。",
|
|
1465
1465
|
"advancedDiagnostics": "高级诊断",
|
|
@@ -27,6 +27,14 @@ function validateSource(raw) {
|
|
|
27
27
|
function isRecord(value) {
|
|
28
28
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
29
29
|
}
|
|
30
|
+
// Overall readiness → the plain-language sentence shown under the internal-agents heading.
|
|
31
|
+
const CONFIG_READINESS_KEY = {
|
|
32
|
+
ready: "pages.controlCenter.configReady",
|
|
33
|
+
needs_setup: "pages.controlCenter.configNeedsSetup",
|
|
34
|
+
not_ready: "pages.controlCenter.configNotReady",
|
|
35
|
+
unknown: "pages.controlCenter.configUnknown",
|
|
36
|
+
disabled: "pages.controlCenter.configDisabled",
|
|
37
|
+
};
|
|
30
38
|
function validateReadinessStatus(raw) {
|
|
31
39
|
if (typeof raw !== "string")
|
|
32
40
|
return null;
|
|
@@ -486,7 +494,9 @@ export function ControlCenterPage() {
|
|
|
486
494
|
};
|
|
487
495
|
const overallReadiness = computeOverallReadiness(diagnostics);
|
|
488
496
|
const availableProfiles = catalogData?.profiles ?? configData.runtimeProfiles;
|
|
489
|
-
return (_jsx(PageShell, { children: _jsxs("div", { className: "animate-[pdFadeIn_400ms_ease-out]", children: [_jsx("div", { className: "font-mono text-[12px] tracking-[0.14em] text-ink-3 uppercase mb-3", children: t("pages.controlCenter.eyebrow") }), _jsx("h1", { className: "text-[29px] font-semibold tracking-tight text-ink mb-2", children: t("pages.controlCenter.title") }), _jsx("p", { className: "text-ink-3 text-[14px] max-w-[760px] leading-relaxed mb-7", children: t("pages.controlCenter.subtitle") }), _jsx(WorkflowDiagram, {}), _jsx(CompactStatusBar, { readiness: overallReadiness, agents: configData.agents }), _jsx(DesignGatePanel, {}), _jsxs("section", { className: "mt-8", "aria-labelledby": "section-agents", children: [_jsx(SectionTitle, { id: "section-agents", children: t("pages.controlCenter.internalAgents") }), _jsx("p", { className: "text-ink-3 text-[13px] leading-relaxed mb-3", children: t("pages.controlCenter.internalAgentsDescription") }), (
|
|
497
|
+
return (_jsx(PageShell, { children: _jsxs("div", { className: "animate-[pdFadeIn_400ms_ease-out]", children: [_jsx("div", { className: "font-mono text-[12px] tracking-[0.14em] text-ink-3 uppercase mb-3", children: t("pages.controlCenter.eyebrow") }), _jsx("h1", { className: "text-[29px] font-semibold tracking-tight text-ink mb-2", children: t("pages.controlCenter.title") }), _jsx("p", { className: "text-ink-3 text-[14px] max-w-[760px] leading-relaxed mb-7", children: t("pages.controlCenter.subtitle") }), _jsx(WorkflowDiagram, {}), _jsx(CompactStatusBar, { readiness: overallReadiness, agents: configData.agents }), _jsx(DesignGatePanel, {}), _jsxs("section", { className: "mt-8", "aria-labelledby": "section-agents", children: [_jsx(SectionTitle, { id: "section-agents", children: t("pages.controlCenter.internalAgents") }), _jsx("p", { className: "text-ink-3 text-[13px] leading-relaxed mb-3", children: t("pages.controlCenter.internalAgentsDescription") }), _jsx("p", { className: overallReadiness === "ready"
|
|
498
|
+
? "text-ink-4 text-[13px] leading-relaxed mb-3"
|
|
499
|
+
: "text-amber text-[13px] leading-relaxed mb-3", children: t(CONFIG_READINESS_KEY[overallReadiness]) }), (() => {
|
|
490
500
|
const { groups, unknown } = groupAgentsByDependency(configData.agents);
|
|
491
501
|
const locale = i18n.language.startsWith("en")
|
|
492
502
|
? "en"
|