@wipcomputer/wip-ldm-os 0.4.73-alpha.27 → 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/bin/ldm.js +2 -2
- package/lib/deploy.mjs +10 -5
- package/package.json +1 -1
package/bin/ldm.js
CHANGED
|
@@ -2484,14 +2484,14 @@ async function cmdInstallCatalog() {
|
|
|
2484
2484
|
|
|
2485
2485
|
// Sync boot hook from npm package (#49)
|
|
2486
2486
|
if (syncBootHook()) {
|
|
2487
|
-
|
|
2487
|
+
console.log(' + Boot hook updated (sessions, messages, updates now active)');
|
|
2488
2488
|
}
|
|
2489
2489
|
|
|
2490
2490
|
// Sync inbox-check hook: UserPromptSubmit hook that surfaces pending
|
|
2491
2491
|
// bridge messages into CC context on every prompt. Closes the gap
|
|
2492
2492
|
// between lesa-bridge writes and CC delivery.
|
|
2493
2493
|
if (syncInboxCheckHook()) {
|
|
2494
|
-
|
|
2494
|
+
console.log(' + Inbox-check hook updated (bridge messages surface automatically)');
|
|
2495
2495
|
}
|
|
2496
2496
|
|
|
2497
2497
|
// Deploy git pre-commit hook on every install (not just init)
|
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;
|