plugin-updater 1.0.28 → 1.0.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/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,6 +48,8 @@ function writeLog(message, isError = false) {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
catch { /* never crash on log failure */ }
|
|
51
|
+
if (process.env.PLUGIN_UPDATER_LIBRARY_MODE === "1")
|
|
52
|
+
return;
|
|
51
53
|
if (isError)
|
|
52
54
|
console.error(message);
|
|
53
55
|
else if (loggingEnabled)
|
|
@@ -479,4 +481,7 @@ export async function activate(opencodeHookInput) {
|
|
|
479
481
|
}
|
|
480
482
|
await earlyLaunch(configDir, gitPlugins);
|
|
481
483
|
}
|
|
482
|
-
|
|
484
|
+
// consumers like the loader TUI import this module for its API only — running
|
|
485
|
+
// the full updater sequence on import would print over their screen
|
|
486
|
+
if (process.env.PLUGIN_UPDATER_LIBRARY_MODE !== "1")
|
|
487
|
+
activate();
|