@remnic/plugin-openclaw 9.69.67 → 9.69.68

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
@@ -7821,8 +7821,10 @@ function createDelegateMemoryCapability(options) {
7821
7821
  function registerDelegateMemoryCapability(api, options) {
7822
7822
  const built = createDelegateMemoryCapability(options);
7823
7823
  const hasUnified = typeof api.registerMemoryCapability === "function";
7824
- const hasRuntime = typeof api.registerMemoryRuntime === "function";
7825
- const hasFlushPlan = typeof api.registerMemoryFlushPlan === "function";
7824
+ const registerRuntime = api.registerMemoryRuntime;
7825
+ const registerFlushPlan = api.registerMemoryFlushPlan;
7826
+ const hasRuntime = typeof registerRuntime === "function";
7827
+ const hasFlushPlan = typeof registerFlushPlan === "function";
7826
7828
  if (!hasUnified && !hasRuntime && !hasFlushPlan) {
7827
7829
  log6.debug(
7828
7830
  `[${options.serviceId}] delegate: host exposes no memory capability surface \u2014 nothing to register`
@@ -7837,8 +7839,8 @@ function registerDelegateMemoryCapability(api, options) {
7837
7839
  publicArtifacts: { listArtifacts: built.listArtifacts }
7838
7840
  });
7839
7841
  }
7840
- if (hasRuntime) api.registerMemoryRuntime?.(built.runtime);
7841
- if (hasFlushPlan) api.registerMemoryFlushPlan?.(built.flushPlanResolver);
7842
+ if (hasRuntime) registerRuntime.call(api, built.runtime);
7843
+ if (hasFlushPlan) registerFlushPlan.call(api, built.flushPlanResolver);
7842
7844
  const surface = hasUnified ? "memory capability with publicArtifacts provider" : "split memory runtime/flush-plan surfaces";
7843
7845
  const builder = options.allowPromptInjection ? " and promptBuilder" : " (promptBuilder omitted \u2014 injection disabled by policy)";
7844
7846
  log6.info(`[${options.serviceId}] delegate: registered daemon-backed ${surface}${builder}`);
@@ -8608,7 +8610,8 @@ function registerDelegateRuntime(api, options) {
8608
8610
  },
8609
8611
  { id: "remnic-delegate-memory", label: "Remnic Memory Context (delegate)" }
8610
8612
  );
8611
- api.registerMemoryPromptSection(memoryBuildFn);
8613
+ const registerSection = api.registerMemoryPromptSection;
8614
+ registerSection.call(api, memoryBuildFn);
8612
8615
  }
8613
8616
  } else {
8614
8617
  log8.info(
@@ -11368,7 +11371,8 @@ Keep the reflection grounded in the evidence below.
11368
11371
  };
11369
11372
  memoryBuildFn.id = "engram-memory";
11370
11373
  memoryBuildFn.label = "Engram Memory Context";
11371
- api.registerMemoryPromptSection(memoryBuildFn);
11374
+ const registerSection = api.registerMemoryPromptSection;
11375
+ registerSection.call(api, memoryBuildFn);
11372
11376
  memoryPromptBuilder = memoryBuildFn;
11373
11377
  }
11374
11378
  if (sdkCaps.hasRegisterMemoryCapability && typeof api.registerMemoryCapability === "function" || typeof api.registerMemoryRuntime === "function" || typeof api.registerMemoryFlushPlan === "function") {
@@ -11556,11 +11560,14 @@ Keep the reflection grounded in the evidence below.
11556
11560
  if (typeof api.registerMemoryCapability === "function") {
11557
11561
  api.registerMemoryCapability(memoryCapability);
11558
11562
  }
11559
- if (typeof api.registerMemoryRuntime === "function") {
11560
- api.registerMemoryRuntime(remnicMemoryRuntime);
11563
+ const legacyMemoryApi = api;
11564
+ const registerRuntime = legacyMemoryApi.registerMemoryRuntime;
11565
+ const registerFlushPlan = legacyMemoryApi.registerMemoryFlushPlan;
11566
+ if (typeof registerRuntime === "function") {
11567
+ registerRuntime.call(api, remnicMemoryRuntime);
11561
11568
  }
11562
- if (typeof api.registerMemoryFlushPlan === "function") {
11563
- api.registerMemoryFlushPlan(remnicMemoryFlushPlanResolver);
11569
+ if (typeof registerFlushPlan === "function") {
11570
+ registerFlushPlan.call(api, remnicMemoryFlushPlanResolver);
11564
11571
  }
11565
11572
  const builderDesc = !promptInjectionAllowed ? " (promptBuilder omitted \u2014 injection disabled by policy)" : memoryPromptBuilder ? " and promptBuilder (from registerMemoryPromptSection)" : " and promptBuilder (capability-only fallback)";
11566
11573
  const capabilityDesc = typeof api.registerMemoryCapability === "function" ? `memory capability with publicArtifacts provider${builderDesc}` : "split memory runtime/flush-plan surfaces";