@remnic/plugin-openclaw 9.69.37 → 9.69.38
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 +20 -14
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
sanitizeSessionKeyForFilename,
|
|
43
43
|
defaultWorkspaceDir
|
|
44
44
|
} from "@remnic/core/orchestrator";
|
|
45
|
+
import { beginCodexSubscriptionShutdown, getCodexSubscriptionRunnerForOwner } from "@remnic/core";
|
|
45
46
|
|
|
46
47
|
// ../../src/tools.ts
|
|
47
48
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -12464,21 +12465,26 @@ Keep the reflection grounded in the evidence below.
|
|
|
12464
12465
|
logger_exports.log.debug(`engram opik exporter unsubscribe failed: ${err}`);
|
|
12465
12466
|
}
|
|
12466
12467
|
activeOpikExporter = null;
|
|
12468
|
+
const finishCodex = beginCodexSubscriptionShutdown(getCodexSubscriptionRunnerForOwner(cfg));
|
|
12467
12469
|
try {
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12470
|
+
try {
|
|
12471
|
+
await accessHttpServer.stop();
|
|
12472
|
+
} catch (err) {
|
|
12473
|
+
logger_exports.log.debug(`engram access HTTP stop failed: ${err}`);
|
|
12474
|
+
}
|
|
12475
|
+
stopDreamWatcher?.();
|
|
12476
|
+
stopDreamWatcher = null;
|
|
12477
|
+
stopHeartbeatWatcher?.();
|
|
12478
|
+
stopHeartbeatWatcher = null;
|
|
12479
|
+
removeDreamingObserver?.();
|
|
12480
|
+
removeDreamingObserver = null;
|
|
12481
|
+
try {
|
|
12482
|
+
await orchestrator.destroy();
|
|
12483
|
+
} catch (err) {
|
|
12484
|
+
logger_exports.log.debug(`engram orchestrator destroy on stop failed: ${err}`);
|
|
12485
|
+
}
|
|
12486
|
+
} finally {
|
|
12487
|
+
finishCodex();
|
|
12482
12488
|
}
|
|
12483
12489
|
if (globalThis[keys.ORCHESTRATOR] === orchestrator) {
|
|
12484
12490
|
delete globalThis[keys.ORCHESTRATOR];
|