@remnic/plugin-openclaw 9.69.37 → 9.69.39

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 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
- await accessHttpServer.stop();
12469
- } catch (err) {
12470
- logger_exports.log.debug(`engram access HTTP stop failed: ${err}`);
12471
- }
12472
- stopDreamWatcher?.();
12473
- stopDreamWatcher = null;
12474
- stopHeartbeatWatcher?.();
12475
- stopHeartbeatWatcher = null;
12476
- removeDreamingObserver?.();
12477
- removeDreamingObserver = null;
12478
- try {
12479
- await orchestrator.destroy();
12480
- } catch (err) {
12481
- logger_exports.log.debug(`engram orchestrator destroy on stop failed: ${err}`);
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];