@lmzhen/dsh-tool-memory 0.3.26 → 0.3.28

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 -7
package/lib/index.js CHANGED
@@ -181,13 +181,14 @@ async function apply(ctx, rawConfig) {
181
181
  facts: args.facts ?? args.content,
182
182
  old_text: args.old_text
183
183
  };
184
+ const targetLabel = target === "memory" ? "" : `${target} `;
184
185
  const origin = resolveOrigins(exec.agent?.session.header.origin).approval;
185
186
  const sessionPolicy = effectiveSessionPolicy(ctx, exec.agent?.session);
186
187
  const approval = ctx.get("evolutionApproval");
187
188
  if (approval) {
188
189
  const decision = await approval.request({
189
190
  kind: "memory",
190
- summary: `memory ${target} ${Array.isArray(args.operations) ? `${args.operations.length} ops` : args.action ?? "add"}`,
191
+ summary: `memory ${targetLabel}${Array.isArray(args.operations) ? `${args.operations.length} ops` : args.action ?? "add"}`,
191
192
  args: normalized,
192
193
  origin,
193
194
  ...exec.agent?.session.id ? { sessionId: exec.agent.session.id } : {},
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.26",
4
+ "version": "0.3.28",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,23 +31,23 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.1",
34
- "@lmzhen/dsh-evolution-core": "^0.3.26",
35
- "@lmzhen/dsh-evolution-approval": "^0.3.26"
34
+ "@lmzhen/dsh-evolution-core": "^0.3.28",
35
+ "@lmzhen/dsh-evolution-approval": "^0.3.28"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
39
39
  "@deepseek-ai/cordis": "^4.0.1",
40
40
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
41
41
  "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
42
- "@lmzhen/dsh-memory": "^0.3.26",
43
- "@lmzhen/dsh-memory-files": "^0.3.26"
42
+ "@lmzhen/dsh-memory": "^0.3.28",
43
+ "@lmzhen/dsh-memory-files": "^0.3.28"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
47
47
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
48
48
  "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
49
49
  "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.1-rc.2",
50
- "@lmzhen/dsh-memory": "^0.3.26",
51
- "@lmzhen/dsh-memory-files": "^0.3.26"
50
+ "@lmzhen/dsh-memory": "^0.3.28",
51
+ "@lmzhen/dsh-memory-files": "^0.3.28"
52
52
  }
53
53
  }