@remnic/plugin-openclaw 1.0.33 → 1.0.34

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
@@ -23698,8 +23698,8 @@ function hasLoopExitIntent(normalizedQuery) {
23698
23698
  }
23699
23699
  function hasBoundedTrajectoryRange(query) {
23700
23700
  return [
23701
- /\b(?:between|from|in|during|within)\s+(?:steps?|actions?|observations?|turns?)\s+#?\d+\s*(?:-|\u2013|\u2014|\bto\b|\bthrough\b|\bthru\b|\band\b)\s*#?\d+\b/,
23702
- /\b(?:steps?|actions?|observations?|turns?)\s+#?\d+\s*(?:-|\u2013|\u2014|\bto\b|\bthrough\b|\bthru\b)\s*#?\d+\b/
23701
+ /\b(?:between|from|in|during|within)\s+(?:steps?|actions?|observations?|turns?)\s+#?\d+\s*(?:-|\u2013|\u2014|\bto\b|\bthrough\b|\bthru\b|\band\b)\s*(?:(?:steps?|actions?|observations?|turns?)\s+)?#?\d+\b/,
23702
+ /\b(?:steps?|actions?|observations?|turns?)\s+#?\d+\s*(?:-|\u2013|\u2014|\bto\b|\bthrough\b|\bthru\b)\s*(?:(?:steps?|actions?|observations?|turns?)\s+)?#?\d+\b/
23703
23703
  ].some((pattern) => pattern.test(query));
23704
23704
  }
23705
23705
  function hasSingleTrajectoryReference(query) {
@@ -29182,7 +29182,8 @@ ${preview}`,
29182
29182
  return {
29183
29183
  totalMessages: this.archive.getMessageCount(sessionId),
29184
29184
  totalSummaryNodes: this.dag.getNodeCount(sessionId),
29185
- maxDepth: this.dag.getMaxDepth(sessionId)
29185
+ maxDepth: this.dag.getMaxDepth(sessionId),
29186
+ maxTurnIndex: this.archive.getMaxTurnIndex(sessionId)
29186
29187
  };
29187
29188
  }
29188
29189
  return {
@@ -73494,6 +73495,16 @@ function tryDefinePluginEntry(def) {
73494
73495
  }
73495
73496
  }
73496
73497
  var sdkCaps;
73498
+ var NON_RUNTIME_REGISTRATION_MODES = /* @__PURE__ */ new Set([
73499
+ "discovery",
73500
+ "tool-discovery",
73501
+ "setup-only",
73502
+ "setup-runtime",
73503
+ "cli-metadata"
73504
+ ]);
73505
+ function isNonRuntimeRegistrationMode(mode) {
73506
+ return typeof mode === "string" && NON_RUNTIME_REGISTRATION_MODES.has(mode);
73507
+ }
73497
73508
  var pluginDefinition = {
73498
73509
  id: PLUGIN_ID,
73499
73510
  name: "Remnic (Local Memory)",
@@ -73504,6 +73515,16 @@ var pluginDefinition = {
73504
73515
  const serviceId = typeof registerThis?.id === "string" && registerThis.id.trim().length > 0 ? registerThis.id : PLUGIN_ID;
73505
73516
  const keys = buildServiceKeys(serviceId);
73506
73517
  initLogger(api.logger, false);
73518
+ sdkCaps = detectSdkCapabilities(api);
73519
+ log.info(
73520
+ `SDK detection: version=${sdkCaps.sdkVersion}, beforePromptBuild=${sdkCaps.hasBeforePromptBuild}, memoryPromptSection=${sdkCaps.hasRegisterMemoryPromptSection}, memoryCapability=${sdkCaps.hasRegisterMemoryCapability}, typedHooks=${sdkCaps.hasTypedHooks}`
73521
+ );
73522
+ if (isNonRuntimeRegistrationMode(sdkCaps.registrationMode)) {
73523
+ log.info(
73524
+ `registrationMode=${sdkCaps.registrationMode} \u2014 skipping runtime initialization`
73525
+ );
73526
+ return;
73527
+ }
73507
73528
  const disableRegisterMigration = readEnvVar("REMNIC_DISABLE_REGISTER_MIGRATION") === "1" || readEnvVar("OPENCLAW_ENGRAM_DISABLE_REGISTER_MIGRATION") === "1";
73508
73529
  if (!disableRegisterMigration) {
73509
73530
  const migrationPromise = globalThis[ENGRAM_MIGRATION_PROMISE] ??= migrateFromEngram({
@@ -73514,14 +73535,6 @@ var pluginDefinition = {
73514
73535
  });
73515
73536
  void migrationPromise;
73516
73537
  }
73517
- sdkCaps = detectSdkCapabilities(api);
73518
- log.info(
73519
- `SDK detection: version=${sdkCaps.sdkVersion}, beforePromptBuild=${sdkCaps.hasBeforePromptBuild}, memoryPromptSection=${sdkCaps.hasRegisterMemoryPromptSection}, memoryCapability=${sdkCaps.hasRegisterMemoryCapability}, typedHooks=${sdkCaps.hasTypedHooks}`
73520
- );
73521
- if (sdkCaps.registrationMode === "setup-only") {
73522
- log.info("registrationMode=setup-only \u2014 skipping full initialization");
73523
- return;
73524
- }
73525
73538
  const fileConfig = loadPluginConfigFromFile(serviceId);
73526
73539
  const cfg = parseConfig({
73527
73540
  ...fileConfig,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "openclaw-remnic",
3
3
  "name": "Remnic OpenClaw Plugin",
4
- "version": "1.0.33",
4
+ "version": "1.0.34",
5
5
  "kind": "memory",
6
6
  "description": "Local semantic memory for OpenClaw with bundled Remnic core runtime. Requires plugins.slots.memory set to this plugin id for hooks to fire.",
7
7
  "setup": {
@@ -70,34 +70,6 @@
70
70
  "beforeReset": true
71
71
  },
72
72
  "contracts": {
73
- "commands": [
74
- "remnic"
75
- ],
76
- "hooks": [
77
- "before_prompt_build",
78
- "before_agent_start",
79
- "agent_end",
80
- "before_compaction",
81
- "after_compaction",
82
- "before_reset",
83
- "session_start",
84
- "session_end",
85
- "before_tool_call",
86
- "after_tool_call",
87
- "llm_output",
88
- "subagent_spawning",
89
- "subagent_ended",
90
- "commands.list"
91
- ],
92
- "memoryCapabilities": [
93
- "openclaw-remnic"
94
- ],
95
- "memoryPromptSections": [
96
- "engram-memory"
97
- ],
98
- "services": [
99
- "openclaw-remnic"
100
- ],
101
73
  "tools": [
102
74
  "compounding_promote_candidate",
103
75
  "compounding_weekly_synthesize",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnic/plugin-openclaw",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "OpenClaw adapter for Remnic memory with bundled @remnic/core runtime",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "openai": "^6.0.0",
66
- "@remnic/core": "^1.1.10"
66
+ "@remnic/core": "^1.1.11"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "openclaw": ">=2026.4.8"