@lmzhen/dsh-tool-memory 0.3.18 → 0.3.20

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 +2 -1
  2. package/package.json +7 -6
package/lib/index.js CHANGED
@@ -2839,6 +2839,7 @@ async function apply(ctx, rawConfig) {
2839
2839
  summary: `memory ${target} ${Array.isArray(args.operations) ? `${args.operations.length} ops` : args.action ?? "add"}`,
2840
2840
  args: normalized,
2841
2841
  origin,
2842
+ ...exec.agent?.session.id ? { sessionId: exec.agent.session.id } : {},
2842
2843
  ...sessionPolicy !== void 0 ? { sessionPolicy } : {}
2843
2844
  });
2844
2845
  if (decision.action === "staged") return {
@@ -2847,7 +2848,7 @@ async function apply(ctx, rawConfig) {
2847
2848
  entries: [],
2848
2849
  chars: 0,
2849
2850
  limit: 0,
2850
- pending_id: decision.pendingId ?? ""
2851
+ ...decision.pendingId !== void 0 ? { pending_id: decision.pendingId } : {}
2851
2852
  };
2852
2853
  }
2853
2854
  return await 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.3.18",
4
+ "version": "0.3.20",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,22 +32,23 @@
32
32
  ],
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "@deepseek-ai/schemastery": "^3.18.1"
35
+ "@deepseek-ai/schemastery": "^3.18.1",
36
+ "@lmzhen/dsh-evolution-approval": "^0.3.20"
36
37
  },
37
38
  "peerDependencies": {
38
39
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
39
40
  "@deepseek-ai/cordis": "^4.0.1",
40
41
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
41
42
  "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
42
- "@lmzhen/dsh-memory": "^0.3.18",
43
- "@lmzhen/dsh-memory-files": "^0.3.18"
43
+ "@lmzhen/dsh-memory": "^0.3.20",
44
+ "@lmzhen/dsh-memory-files": "^0.3.20"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
47
48
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
48
49
  "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
49
50
  "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.1-rc.2",
50
- "@lmzhen/dsh-memory": "^0.3.18",
51
- "@lmzhen/dsh-memory-files": "^0.3.18"
51
+ "@lmzhen/dsh-memory": "^0.3.20",
52
+ "@lmzhen/dsh-memory-files": "^0.3.20"
52
53
  }
53
54
  }