@remnic/plugin-openclaw 9.69.55 → 9.69.57

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
@@ -8062,8 +8062,7 @@ function registerDelegateRuntime(api, options) {
8062
8062
  const promptLinesBySession = /* @__PURE__ */ new Map();
8063
8063
  const promptInjectionEnabled = options.allowPromptInjection && options.recallBudgetChars !== 0;
8064
8064
  const useSectionBuilder = typeof api.registerMemoryPromptSection === "function";
8065
- const useCapabilityBuilder = !useSectionBuilder && typeof api.registerMemoryCapability === "function";
8066
- const cachePromptLines = useSectionBuilder || useCapabilityBuilder;
8065
+ const cachePromptLines = useSectionBuilder;
8067
8066
  const capability = registerDelegateMemoryCapability(api, {
8068
8067
  serviceId: options.serviceId,
8069
8068
  target,
@@ -8097,14 +8096,10 @@ function registerDelegateRuntime(api, options) {
8097
8096
  workspaceDir: options.capability.workspaceDir,
8098
8097
  agentIds: options.capability.agentIds,
8099
8098
  allowPromptInjection: promptInjectionEnabled,
8100
- // The section builder owns the destructive read when it exists; otherwise
8101
- // the capability builder IS the sole consumer and must evict, or a stale
8102
- // section would be re-injected on the next turn.
8103
- readPromptLines: (sessionKey) => {
8104
- const lines = promptLinesBySession.get(sessionKey) ?? null;
8105
- if (!useSectionBuilder) promptLinesBySession.delete(sessionKey);
8106
- return lines;
8107
- },
8099
+ // Peek only. The section builder's own builder function owns eviction,
8100
+ // and on hosts without one (OpenClaw 2.0) the hook never caches it
8101
+ // injects directly so this can never double-inject behind the hook.
8102
+ readPromptLines: (sessionKey) => promptLinesBySession.get(sessionKey) ?? null,
8108
8103
  extractionMaxTurnChars: options.capability.extractionMaxTurnChars,
8109
8104
  flushModel: options.capability.flushModel,
8110
8105
  configuredSearchBackend: options.capability.configuredSearchBackend,