@wipcomputer/wip-ldm-os 0.4.73-alpha.28 → 0.4.73-alpha.29
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/lib/deploy.mjs +10 -5
- package/package.json +1 -1
package/lib/deploy.mjs
CHANGED
|
@@ -532,15 +532,15 @@ function safeDeployDir(repoPath, destDir, name) {
|
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
// ── OpenClaw plugin naming (fix #8) ──
|
|
536
|
-
|
|
537
|
-
function resolveOcPluginName(repoPath, toolName) {
|
|
538
|
-
// OpenClaw matches plugins by directory name, not plugin id.
|
|
539
|
-
// Check openclaw.json for existing references to this plugin.
|
|
540
535
|
/**
|
|
541
536
|
* Update tools.allow in openclaw.json to include a newly deployed plugin.
|
|
542
537
|
* OpenClaw 2026.4.8+ enforces tools.allow as an exclusive allowlist.
|
|
543
538
|
* Without this, newly installed plugins are blocked from running.
|
|
539
|
+
*
|
|
540
|
+
* This function MUST remain at module top level. Nesting it inside another
|
|
541
|
+
* function puts it out of scope for its call sites in the install handlers
|
|
542
|
+
* and produces a ReferenceError at runtime. See:
|
|
543
|
+
* ai/product/bugs/installer/2026-04-11--cc-mini--update-tools-allow-reference-error.md
|
|
544
544
|
*/
|
|
545
545
|
function updateToolsAllow(pluginName) {
|
|
546
546
|
const ocConfigPath = join(OC_ROOT, 'openclaw.json');
|
|
@@ -558,6 +558,11 @@ function updateToolsAllow(pluginName) {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
+
// ── OpenClaw plugin naming (fix #8) ──
|
|
562
|
+
|
|
563
|
+
function resolveOcPluginName(repoPath, toolName) {
|
|
564
|
+
// OpenClaw matches plugins by directory name, not plugin id.
|
|
565
|
+
// Check openclaw.json for existing references to this plugin.
|
|
561
566
|
const ocConfigPath = join(OC_ROOT, 'openclaw.json');
|
|
562
567
|
const ocConfig = readJSON(ocConfigPath);
|
|
563
568
|
if (!ocConfig?.extensions) return toolName;
|