@fonlan/dsh-gitmemo 0.5.1 → 0.5.3

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/README.md CHANGED
@@ -37,7 +37,7 @@ dependency, and no manual memory commands are ever needed.
37
37
 
38
38
  ## Installation
39
39
 
40
- Requires dsh ≥ 0.1.0-rc.6 and the `git` CLI.
40
+ Requires dsh ≥ 0.1.7-alpha.1 (or 0.2.x) and the `git` CLI.
41
41
 
42
42
  From the npm registry (once published):
43
43
 
package/README.zh.md CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  ## 安装
38
38
 
39
- 需要 dsh ≥ 0.1.0-rc.6 与 `git` CLI。
39
+ 需要 dsh ≥ 0.1.7-alpha.1(或 0.2.x)与 `git` CLI。
40
40
 
41
41
  从 npm 仓库(发布后):
42
42
 
package/lib/index.js CHANGED
@@ -423,8 +423,17 @@ function registerMemTools(ctx, config) {
423
423
  gated: {
424
424
  type: "object",
425
425
  additionalProperties: false,
426
- description: "Present only when the System-one recall gate ran: how many candidates it judged (and how many past the cap it left untouched), how many it kept, the short hashes it dropped, and whether it had to fail open.",
426
+ description: "Present only when the System-one recall gate ran: which policy ran (rerank or filter), how many candidates it judged (and how many past the cap it left untouched), how many it kept, the short hashes it dropped, and whether it had to fail open.",
427
427
  properties: {
428
+ policy: {
429
+ type: "string",
430
+ required: true,
431
+ description: "Policy that ran: `rerank` kept every judged candidate and ordered the page by the judge's value; `filter` dropped those below the threshold, bounded by `maxDropFraction`."
432
+ },
433
+ bounded: {
434
+ type: "boolean",
435
+ description: "Present (true) only when `maxDropFraction` restored candidates a `filter` threshold would have removed."
436
+ },
428
437
  mode: { type: "string", required: true, description: "Question type used: noul or score." },
429
438
  model: { type: "string", required: true, description: "System-one model the request named." },
430
439
  candidates: { type: "number", required: true, description: "Size of the candidate page the gate was handed." },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonlan/dsh-gitmemo",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Git-backed long-term memory for DeepSeek Harness: a local .mem git repo (single main branch, immutable entries, structured commit messages) with mem_search / mem_read / mem_write / mem_delete / mem_replace tools and fully automatic legacy migration (no CLI needed; the CLI remains for explicit control), auto-managed by the root agent with zero manual steps.",
5
5
  "author": "fonlan",
6
6
  "publishConfig": {
@@ -42,34 +42,19 @@
42
42
  "README.md",
43
43
  "README.zh.md"
44
44
  ],
45
- "scripts": {
46
- "build": "tsc -p tsconfig.json && chmod +x lib/cli.js && tsdown",
47
- "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.client.json",
48
- "bundle": "tsdown",
49
- "watch": "tsdown --watch",
50
- "test": "npm run build && node --test",
51
- "eval:lme": "node evals/longmemeval/run_retrieval.mjs",
52
- "eval:lme:oracle": "node evals/longmemeval/run_retrieval.mjs --split oracle",
53
- "eval:lme:s": "node --max-old-space-size=8192 evals/longmemeval/run_retrieval.mjs --split s --concurrency 8",
54
- "eval:omni:setup": "node evals/omnimemeval/setup.mjs",
55
- "prepublishOnly": "npm run build",
56
- "release:patch": "npm version patch && git push && git push --tags",
57
- "release:minor": "npm version minor && git push && git push --tags",
58
- "release:major": "npm version major && git push && git push --tags"
59
- },
60
45
  "devDependencies": {
61
- "@deepseek-ai/cordis": "^4.0.2",
62
- "@deepseek-ai/dsh-api-gateway": "^0.1.7-alpha.1",
63
- "@deepseek-ai/dsh-api-remotes": "^0.1.7-alpha.1",
64
- "@deepseek-ai/dsh-api-settings-controller": "^0.1.7-alpha.1",
65
- "@deepseek-ai/dsh-client-locale": "^0.1.7-alpha.1",
66
- "@deepseek-ai/dsh-client-store": "^0.1.7-alpha.1",
67
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.7-alpha.1",
68
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-alpha.1",
69
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.7-alpha.1",
70
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.7-alpha.1",
71
- "@deepseek-ai/dsh-tools": "^0.1.7-alpha.1",
72
- "@deepseek-ai/schemastery": "^3.18.4",
46
+ "@deepseek-ai/cordis": "4.0.5-alpha.1",
47
+ "@deepseek-ai/dsh-api-gateway": "0.2.1-alpha.1",
48
+ "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.1",
49
+ "@deepseek-ai/dsh-api-settings-controller": "0.2.1-alpha.1",
50
+ "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.1",
51
+ "@deepseek-ai/dsh-client-store": "0.2.1-alpha.1",
52
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-alpha.1",
53
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.1",
54
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.1-alpha.1",
55
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.1",
56
+ "@deepseek-ai/dsh-tools": "0.2.1-alpha.1",
57
+ "@deepseek-ai/schemastery": "3.18.5-alpha.1",
73
58
  "@types/node": "^26.2.0",
74
59
  "@types/react": "~18.3.1",
75
60
  "react": "^18.2.0",
@@ -100,5 +85,31 @@
100
85
  "git",
101
86
  "long-term-memory"
102
87
  ],
103
- "license": "MIT"
104
- }
88
+ "license": "MIT",
89
+ "peerDependencies": {
90
+ "@deepseek-ai/cordis": "^4.0.2",
91
+ "@deepseek-ai/dsh-api-remotes": "^0.1.7-alpha.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
92
+ "@deepseek-ai/dsh-api-settings-controller": "^0.1.7-alpha.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
93
+ "@deepseek-ai/dsh-client-locale": "^0.1.7-alpha.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
94
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.7-alpha.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
95
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-alpha.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
96
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.7-alpha.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
97
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.7-alpha.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
98
+ "@deepseek-ai/dsh-tools": "^0.1.7-alpha.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
99
+ "@deepseek-ai/schemastery": "^3.18.2"
100
+ },
101
+ "scripts": {
102
+ "build": "tsc -p tsconfig.json && chmod +x lib/cli.js && tsdown",
103
+ "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.client.json",
104
+ "bundle": "tsdown",
105
+ "watch": "tsdown --watch",
106
+ "test": "npm run build && node --test",
107
+ "eval:lme": "node evals/longmemeval/run_retrieval.mjs",
108
+ "eval:lme:oracle": "node evals/longmemeval/run_retrieval.mjs --split oracle",
109
+ "eval:lme:s": "node --max-old-space-size=8192 evals/longmemeval/run_retrieval.mjs --split s --concurrency 8",
110
+ "eval:omni:setup": "node evals/omnimemeval/setup.mjs",
111
+ "release:patch": "npm version patch && git push && git push --tags",
112
+ "release:minor": "npm version minor && git push && git push --tags",
113
+ "release:major": "npm version major && git push && git push --tags"
114
+ }
115
+ }