create-principles-disciple 1.155.1 → 1.155.3
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/console/dist/server/index.js +1 -0
- package/console/dist/server/routes/health.d.ts +1 -0
- package/console/dist/server/routes/health.js +12 -0
- package/console/dist/web/assets/app.js +32 -32
- package/console/package.json +2 -2
- package/core/dist/runtime/adapter/pi-ai-http-transport.d.ts.map +1 -1
- package/core/dist/runtime/adapter/pi-ai-http-transport.js.map +1 -1
- package/core/package.json +2 -2
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +20 -7
- package/dist/installer.js.map +1 -1
- package/package.json +8 -7
- package/pd-cli/dist/commands/console.d.ts.map +1 -1
- package/pd-cli/dist/commands/console.js +9 -0
- package/pd-cli/dist/commands/console.js.map +1 -1
- package/pd-cli/dist/commands/health-console.d.ts +1 -1
- package/pd-cli/dist/commands/health-console.d.ts.map +1 -1
- package/pd-cli/dist/commands/health-console.js +15 -1
- package/pd-cli/dist/commands/health-console.js.map +1 -1
- package/pd-cli/dist/commands/health.d.ts.map +1 -1
- package/pd-cli/dist/commands/health.js +7 -1
- package/pd-cli/dist/commands/health.js.map +1 -1
- package/pd-cli/dist/services/console-launcher.d.ts +93 -1
- package/pd-cli/dist/services/console-launcher.d.ts.map +1 -1
- package/pd-cli/dist/services/console-launcher.js +375 -10
- package/pd-cli/dist/services/console-launcher.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/plugin/dist/bundle.js +562 -555
- package/plugin/dist/openclaw-worker.js +297 -290
- package/release-manager/dist/installer.js +20 -7
- package/release-manager/package.json +7 -6
|
@@ -426,7 +426,18 @@ function resolvePackageDir(name, fromDir) {
|
|
|
426
426
|
function copyExecutorDependencyClosure(sourcePackageDir, stagingDir) {
|
|
427
427
|
const stagedModulesDir = path.join(stagingDir, 'node_modules');
|
|
428
428
|
const manifest = JSON.parse(readFileSync(path.join(sourcePackageDir, 'package.json'), 'utf8'));
|
|
429
|
-
|
|
429
|
+
// Two separate dedup keys, because they guard different things:
|
|
430
|
+
// - `copied` dedups the FLAT staged name (first resolution wins, mirroring
|
|
431
|
+
// the npm hoisted winner at top level).
|
|
432
|
+
// - `expanded` dedups by RESOLVED package root, so every distinct version
|
|
433
|
+
// still gets its dependency list walked. Name-only dedup here dropped
|
|
434
|
+
// transitive deps of version-conflicted packages: minimatch resolved to
|
|
435
|
+
// the hoisted copy first, so the tuf-js-nested minimatch's own deps
|
|
436
|
+
// (@isaacs/nonrecursive-glob-match) were never staged, while the
|
|
437
|
+
// wholesale cpSync still carried that nested copy into tuf-js — where
|
|
438
|
+
// its require then failed (PR #2767 CI).
|
|
439
|
+
const copied = new Set();
|
|
440
|
+
const expanded = new Set();
|
|
430
441
|
// Each queued dependency resolves from the package that DECLARES it —
|
|
431
442
|
// nested/deduped layouts mean chownr resolves from tar, not from the
|
|
432
443
|
// installer package root. The directory walk mirrors Node's own
|
|
@@ -434,15 +445,17 @@ function copyExecutorDependencyClosure(sourcePackageDir, stagingDir) {
|
|
|
434
445
|
const queue = Object.keys(manifest.dependencies ?? {}).map((name) => ({ name, fromDir: sourcePackageDir }));
|
|
435
446
|
while (queue.length > 0) {
|
|
436
447
|
const item = queue.shift();
|
|
437
|
-
if (seen.has(item.name))
|
|
438
|
-
continue;
|
|
439
|
-
seen.add(item.name);
|
|
440
448
|
const packageRoot = resolvePackageDir(item.name, item.fromDir);
|
|
441
|
-
|
|
449
|
+
if (expanded.has(packageRoot))
|
|
450
|
+
continue;
|
|
451
|
+
expanded.add(packageRoot);
|
|
452
|
+
if (!copied.has(item.name)) {
|
|
453
|
+
copied.add(item.name);
|
|
454
|
+
cpSync(packageRoot, path.join(stagedModulesDir, item.name), { recursive: true, dereference: true });
|
|
455
|
+
}
|
|
442
456
|
const dependencyManifest = JSON.parse(readFileSync(path.join(packageRoot, 'package.json'), 'utf8'));
|
|
443
457
|
for (const dependencyName of Object.keys(dependencyManifest.dependencies ?? {})) {
|
|
444
|
-
|
|
445
|
-
queue.push({ name: dependencyName, fromDir: packageRoot });
|
|
458
|
+
queue.push({ name: dependencyName, fromDir: packageRoot });
|
|
446
459
|
}
|
|
447
460
|
}
|
|
448
461
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-principles-disciple",
|
|
3
|
-
"version": "1.155.
|
|
3
|
+
"version": "1.155.3",
|
|
4
4
|
"description": "Interactive CLI installer for Principles Disciple OpenClaw plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"bundle": "node scripts/bundle-plugin.mjs",
|
|
44
44
|
"build:release-asset": "npm run build:deps && node scripts/build-self-contained-release.mjs",
|
|
45
45
|
"generate:release-locks": "node scripts/generate-release-locks.mjs",
|
|
46
|
-
"check:
|
|
46
|
+
"check:installer-lock-specs": "node scripts/check-installer-lock-specs.mjs",
|
|
47
|
+
"check:release-locks": "node scripts/check-installer-lock-specs.mjs && node scripts/check-release-locks.mjs",
|
|
47
48
|
"prepack": "npm run build:deps && npm run build && npm run bundle",
|
|
48
49
|
"prepublishOnly": "npm run build:deps && npm run build && npm run bundle",
|
|
49
50
|
"test": "vitest run",
|
|
@@ -67,9 +68,9 @@
|
|
|
67
68
|
"@principles/install-layout": "file:../install-layout",
|
|
68
69
|
"@sinclair/typebox": "^0.34.52",
|
|
69
70
|
"@tufjs/models": "3.0.1",
|
|
70
|
-
"@inquirer/prompts": "^8.
|
|
71
|
+
"@inquirer/prompts": "^8.8.0",
|
|
71
72
|
"better-sqlite3": "^13.0.3",
|
|
72
|
-
"commander": "^
|
|
73
|
+
"commander": "^15.1.0",
|
|
73
74
|
"fs-extra": "^11.4.0",
|
|
74
75
|
"js-yaml": "^5.4.3",
|
|
75
76
|
"micromatch": "^4.0.8",
|
|
@@ -78,8 +79,8 @@
|
|
|
78
79
|
"semver": "^7.8.6",
|
|
79
80
|
"tar": "^7.5.22",
|
|
80
81
|
"typebox": "^1.3.16",
|
|
81
|
-
"tuf-js": "6.0.
|
|
82
|
-
"undici": "^
|
|
82
|
+
"tuf-js": "6.0.3",
|
|
83
|
+
"undici": "^8.13.0"
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@types/fs-extra": "^11.0.4",
|