openclaw-overlay-plugin 0.8.12 → 0.8.13
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 +4 -0
- package/index.ts +5 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { cmdConnect } from './src/scripts/messaging/connect.js';
|
|
|
14
14
|
import { setNoExit } from './src/scripts/output.js';
|
|
15
15
|
import debug from 'debug';
|
|
16
16
|
const log = debug('openclaw:plugin:overlay');
|
|
17
|
+
let isInitialized = false;
|
|
17
18
|
// Track background service state
|
|
18
19
|
let serviceRunning = false;
|
|
19
20
|
let abortController = null;
|
|
@@ -216,6 +217,9 @@ function stopBackgroundService() {
|
|
|
216
217
|
}
|
|
217
218
|
export function register(api) {
|
|
218
219
|
const version = "0.8.12";
|
|
220
|
+
if (isInitialized)
|
|
221
|
+
return;
|
|
222
|
+
isInitialized = true;
|
|
219
223
|
api.logger?.info?.(`[openclaw-overlay] Initializing Plugin v${version}`);
|
|
220
224
|
const entries = api.getConfig?.()?.plugins?.entries || {};
|
|
221
225
|
const entry = entries['openclaw-overlay-plugin'] || entries['openclaw-overlay'] || {};
|
package/index.ts
CHANGED
|
@@ -17,6 +17,8 @@ import debug from 'debug';
|
|
|
17
17
|
|
|
18
18
|
const log = debug('openclaw:plugin:overlay');
|
|
19
19
|
|
|
20
|
+
let isInitialized = false;
|
|
21
|
+
|
|
20
22
|
// Track background service state
|
|
21
23
|
let serviceRunning = false;
|
|
22
24
|
let abortController: AbortController | null = null;
|
|
@@ -225,6 +227,9 @@ function stopBackgroundService() {
|
|
|
225
227
|
|
|
226
228
|
export function register(api: any) {
|
|
227
229
|
const version = "0.8.12";
|
|
230
|
+
if (isInitialized) return;
|
|
231
|
+
isInitialized = true;
|
|
232
|
+
|
|
228
233
|
api.logger?.info?.(`[openclaw-overlay] Initializing Plugin v${version}`);
|
|
229
234
|
const entries = api.getConfig?.()?.plugins?.entries || {};
|
|
230
235
|
const entry = entries['openclaw-overlay-plugin'] || entries['openclaw-overlay'] || {};
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED