principles-disciple 1.57.0 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  "id": "principles-disciple",
3
3
  "name": "Principles Disciple",
4
4
  "description": "Evolutionary programming agent framework with strategic guardrails and reflection loops.",
5
- "version": "1.57.0",
5
+ "version": "1.58.0",
6
6
  "skills": [
7
7
  "./skills"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "principles-disciple",
3
- "version": "1.57.0",
3
+ "version": "1.58.0",
4
4
  "description": "Native OpenClaw plugin for Principles Disciple",
5
5
  "type": "module",
6
6
  "main": "./dist/bundle.js",
@@ -644,11 +644,22 @@ function injectLocalWorkspacePackages() {
644
644
  console.log(' 📦 Injecting local workspace packages (@principles/core)...');
645
645
  mkdirSync(dirname(targetModules), { recursive: true });
646
646
  // cpSync creates symlinks on Windows for symlinked dirs — use cp -rL (dereference) via exec
647
+ let injected = false;
647
648
  try {
648
649
  execSync(`cp -rL "${monorepoModules}" "${targetModules}"`, { stdio: 'ignore' });
650
+ injected = true;
649
651
  } catch {
650
652
  // Fallback: manual copy via node (Windows-compatible)
651
- copyDir(monorepoModules, targetModules);
653
+ try {
654
+ copyDir(monorepoModules, targetModules);
655
+ injected = true;
656
+ } catch (copyErr) {
657
+ console.warn(' ⚠️ Failed to inject @principles/core from monorepo: ' + copyErr.message);
658
+ console.warn(' ⚠️ npm install --production may fail if @principles/core is not published');
659
+ }
660
+ }
661
+ if (injected && !existsSync(targetModules)) {
662
+ console.warn(' ⚠️ Injection reported success but target not found: ' + targetModules);
652
663
  }
653
664
  }
654
665