@lmzhen/dsh-tool-memory 0.22.0 → 0.23.0

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -1
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -9,6 +9,8 @@ import { MEMORY_GUIDANCE_SECTION_ORDER, clampedNumber, payloadText, resolveExecO
9
9
  */
10
10
  const name = "tool-memory";
11
11
  /** Max characters of each echoed memory entry (single source for the Config default and the runtime slice). */
12
+ /** G2.4/C3: the give-up bound of the snapshot retry — a NAMED ceiling, not a literal in the call. */
13
+ const SNAPSHOT_RETRY_GIVE_UP_MS = 6e4;
12
14
  const DEFAULT_ENTRY_PREVIEW_CHARS = 200;
13
15
  const inject = ["tools", "memory"];
14
16
  /**
@@ -90,7 +92,7 @@ async function apply(ctx, rawConfig = {}) {
90
92
  }, "tool-memory.snapshot-retry");
91
93
  setTimeout(() => {
92
94
  clearInterval(retryTimer);
93
- }, 6e4).unref();
95
+ }, SNAPSHOT_RETRY_GIVE_UP_MS).unref();
94
96
  }
95
97
  } else if (!memoryDisabled) ctx.logger.warn("tool-memory: systemPrompt service not mounted; memory guidance and snapshot are not injected (the write tool still works)");
96
98
  async function executeCore(normalized) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-tool-memory",
3
3
  "description": "Model-facing memory tool and prompt context (community build)",
4
- "version": "0.22.0",
4
+ "version": "0.23.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,21 +27,21 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.4",
30
- "@lmzhen/dsh-evolution-approval": "^0.22.0",
31
- "@lmzhen/dsh-evolution-core": "^0.22.0"
30
+ "@lmzhen/dsh-evolution-approval": "^0.23.0",
31
+ "@lmzhen/dsh-evolution-core": "^0.23.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@deepseek-ai/cordis": "^4.0.1",
35
35
  "@deepseek-ai/dsh-tools": "^0.2.0-rc.1",
36
36
  "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.1",
37
- "@lmzhen/dsh-memory": "^0.22.0"
37
+ "@lmzhen/dsh-memory": "^0.23.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@deepseek-ai/dsh-tools": "^0.2.0-rc.1",
41
41
  "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.1",
42
42
  "@deepseek-ai/dsh-agent-loop-testkit": "^0.2.0-rc.1",
43
- "@lmzhen/dsh-evolution-approval": "^0.22.0",
44
- "@lmzhen/dsh-memory": "^0.22.0",
45
- "@lmzhen/dsh-memory-files": "^0.22.0"
43
+ "@lmzhen/dsh-evolution-approval": "^0.23.0",
44
+ "@lmzhen/dsh-memory": "^0.23.0",
45
+ "@lmzhen/dsh-memory-files": "^0.23.0"
46
46
  }
47
47
  }