dsh-prime-memory 0.14.0-beta.1 → 0.14.0-beta.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.
Files changed (2) hide show
  1. package/dist/client.js +13 -0
  2. package/package.json +138 -124
package/dist/client.js CHANGED
@@ -2965,6 +2965,7 @@ var __defProp = Object.defineProperty;
2965
2965
  if (off.length > 0) ceilingNote = "注意:部署配置已停用 " + off.join("、") + "(运行时开关无法开启)";
2966
2966
  }
2967
2967
  const mutate = settingsData && settingsData.settings ? !!settingsData.settings.memoryMutate : false;
2968
+ const cfEnabled = settingsData && settingsData.settings ? !!settingsData.settings.conflictFreeze : false;
2968
2969
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { children: [
2969
2970
  settingsData && settingsData.supported === false ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { style: S.hint, children: "settings 服务不可用,记忆模式开关未启用(记忆保持全开)。" }) : settingsData ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { style: S.switchPanel, children: [
2970
2971
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: S.panelLabel, children: "记忆模式" }),
@@ -3027,6 +3028,18 @@ var __defProp = Object.defineProperty;
3027
3028
  }
3028
3029
  }
3029
3030
  ),
3031
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: S.panelLabel, children: "人工冲突裁决" }),
3032
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3033
+ SwitchRow,
3034
+ {
3035
+ label: "人工冲突裁决",
3036
+ desc: cfEnabled ? '已开启:去重判定"两边都像对的"时冻结冲突对,停放到待人工裁决区' : "默认关闭;开启后冲突按 LLM 的 winner/loser 自动了结变为冻结,需人工裁决",
3037
+ checked: cfEnabled,
3038
+ onChange: (v) => {
3039
+ toggle("conflictFreeze", v);
3040
+ }
3041
+ }
3042
+ ),
3030
3043
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: S.panelLabel, children: "蒸馏参数" }),
3031
3044
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DistillSettings, { rpc, disabled: !master, data: settingsData, setData: setSettingsData, onError: setError }),
3032
3045
  ceilingNote ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { style: S.hint, children: ceilingNote }) : null
package/package.json CHANGED
@@ -1,124 +1,138 @@
1
- {
2
- "name": "dsh-prime-memory",
3
- "version": "0.14.0-beta.1",
4
- "publishConfig": {
5
- "registry": "https://registry.npmjs.org",
6
- "access": "public",
7
- "tag": "dsh-0.1.5"
8
- },
9
- "description": "L0~L3 分层蒸馏记忆插件 for DeepSeek Harness:自动捕获对话(L0)、抽取原子记忆(L1)、整合场景块(L2)、蒸馏核心画像/团队方法论(L3),并在模型步骤前自动召回注入。移植自 MemoryCore (TencentDB Agent Memory) 的管线设计。",
10
- "type": "module",
11
- "main": "dist/index.js",
12
- "types": "dist/index.d.ts",
13
- "exports": {
14
- ".": {
15
- "types": "./dist/index.d.ts",
16
- "default": "./dist/index.js"
17
- },
18
- "./client": "./dist/client.js",
19
- "./package.json": "./package.json"
20
- },
21
- "dsh": {
22
- "bundle": {
23
- "patch": "./cordis.patch.yml"
24
- },
25
- "client": {
26
- "inject": [
27
- "@deepseek-ai/dsh-client-ui-primitives",
28
- "@deepseek-ai/dsh-client-connection"
29
- ],
30
- "platform": "web"
31
- }
32
- },
33
- "files": [
34
- "dist",
35
- "assets",
36
- "cordis.patch.yml",
37
- "dsh.plugin.json",
38
- "README.md",
39
- "README.en.md",
40
- "README.ja.md",
41
- "README.ko.md",
42
- "INSTALL.md",
43
- "INSTALL.en.md",
44
- "INSTALL.ja.md",
45
- "INSTALL.ko.md",
46
- "CHANGELOG.md",
47
- "CHANGELOG.en.md",
48
- "CHANGELOG.ja.md",
49
- "CHANGELOG.ko.md",
50
- "ENGINEERING-NOTES.md"
51
- ],
52
- "scripts": {
53
- "build": "tsc -p tsconfig.json && node scripts/build-client.mjs && node scripts/copy-client.mjs",
54
- "smoke": "npm run build:smoke && node dist-smoke/smoke.js",
55
- "verify-catalog": "npm run build && node scripts/verify-catalog.mjs",
56
- "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit && tsc -p tsconfig.test.json",
57
- "build:smoke": "tsc src/smoke.ts --outDir dist-smoke --module nodenext --moduleResolution nodenext --target es2022 --strict --skipLibCheck --esModuleInterop",
58
- "lint": "eslint src client/src scripts tests",
59
- "test": "vitest run"
60
- },
61
- "engines": {
62
- "node": ">=22.16.0",
63
- "dsh": ">=0.1.5-rc.1 <0.2.0-0"
64
- },
65
- "keywords": [
66
- "dsh",
67
- "deepseek-harness",
68
- "memory",
69
- "agent-memory",
70
- "cordis-plugin"
71
- ],
72
- "repository": {
73
- "type": "git",
74
- "url": "git+https://github.com/drscrewdriver/dsh-prime-memory.git"
75
- },
76
- "author": "drscrewdriver <597093681@qq.com>",
77
- "license": "MIT",
78
- "dependencies": {
79
- "@deepseek-ai/schemastery": "3.18.1",
80
- "@node-rs/jieba": "^2.0.2",
81
- "sqlite-vec": "^0.1.7-alpha.2",
82
- "undici": "^7.29.0"
83
- },
84
- "peerDependencies": {
85
- "@deepseek-ai/cordis": "^4.0.1",
86
- "@deepseek-ai/dsh-agent": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
87
- "@deepseek-ai/dsh-home-paths": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
88
- "@deepseek-ai/dsh-llm": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
89
- "@deepseek-ai/dsh-session": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
90
- "@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
91
- "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
92
- "@deepseek-ai/dsh-tools": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2"
93
- },
94
- "peerDependenciesMeta": {
95
- "@deepseek-ai/dsh-agent": { "optional": true },
96
- "@deepseek-ai/dsh-home-paths": { "optional": true },
97
- "@deepseek-ai/dsh-llm": { "optional": true },
98
- "@deepseek-ai/dsh-session": { "optional": true },
99
- "@deepseek-ai/dsh-settings": { "optional": true },
100
- "@deepseek-ai/dsh-system-prompt": { "optional": true },
101
- "@deepseek-ai/dsh-tools": { "optional": true }
102
- },
103
- "devDependencies": {
104
- "@deepseek-ai/cordis": "4.0.1",
105
- "@deepseek-ai/dsh-agent": "0.1.1-rc.2",
106
- "@deepseek-ai/dsh-agent-default-model": "0.1.1-rc.2",
107
- "@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
108
- "@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
109
- "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
110
- "@deepseek-ai/dsh-session": "0.1.1-rc.2",
111
- "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
112
- "@deepseek-ai/dsh-system-prompt": "0.1.1-rc.2",
113
- "@deepseek-ai/dsh-tools": "0.1.1-rc.2",
114
- "@eslint/js": "^10.0.1",
115
- "@types/node": "^22.0.0",
116
- "@types/react": "^19.2.18",
117
- "esbuild": "^0.28.2",
118
- "eslint": "^10.9.1",
119
- "globals": "^17.12.0",
120
- "typescript": "^5.6.0",
121
- "typescript-eslint": "^8.69.0",
122
- "vitest": "^4.1.11"
123
- }
124
- }
1
+ {
2
+ "name": "dsh-prime-memory",
3
+ "version": "0.14.0-beta.3",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org",
6
+ "access": "public",
7
+ "tag": "dsh-0.1.5"
8
+ },
9
+ "description": "L0~L3 分层蒸馏记忆插件 for DeepSeek Harness:自动捕获对话(L0)、抽取原子记忆(L1)、整合场景块(L2)、蒸馏核心画像/团队方法论(L3),并在模型步骤前自动召回注入。移植自 MemoryCore (TencentDB Agent Memory) 的管线设计。",
10
+ "type": "module",
11
+ "main": "dist/index.js",
12
+ "types": "dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "./client": "./dist/client.js",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "dsh": {
22
+ "bundle": {
23
+ "patch": "./cordis.patch.yml"
24
+ },
25
+ "client": {
26
+ "inject": [
27
+ "@deepseek-ai/dsh-client-ui-primitives",
28
+ "@deepseek-ai/dsh-client-connection"
29
+ ],
30
+ "platform": "web"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "assets",
36
+ "cordis.patch.yml",
37
+ "dsh.plugin.json",
38
+ "README.md",
39
+ "README.en.md",
40
+ "README.ja.md",
41
+ "README.ko.md",
42
+ "INSTALL.md",
43
+ "INSTALL.en.md",
44
+ "INSTALL.ja.md",
45
+ "INSTALL.ko.md",
46
+ "CHANGELOG.md",
47
+ "CHANGELOG.en.md",
48
+ "CHANGELOG.ja.md",
49
+ "CHANGELOG.ko.md",
50
+ "ENGINEERING-NOTES.md"
51
+ ],
52
+ "scripts": {
53
+ "build": "tsc -p tsconfig.json && node scripts/build-client.mjs && node scripts/copy-client.mjs",
54
+ "smoke": "npm run build:smoke && node dist-smoke/smoke.js",
55
+ "verify-catalog": "npm run build && node scripts/verify-catalog.mjs",
56
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit && tsc -p tsconfig.test.json",
57
+ "build:smoke": "tsc src/smoke.ts --outDir dist-smoke --module nodenext --moduleResolution nodenext --target es2022 --strict --skipLibCheck --esModuleInterop",
58
+ "lint": "eslint src client/src scripts tests",
59
+ "test": "vitest run"
60
+ },
61
+ "engines": {
62
+ "node": ">=22.16.0",
63
+ "dsh": ">=0.1.5-rc.1 <0.2.0-0"
64
+ },
65
+ "keywords": [
66
+ "dsh",
67
+ "deepseek-harness",
68
+ "memory",
69
+ "agent-memory",
70
+ "cordis-plugin"
71
+ ],
72
+ "repository": {
73
+ "type": "git",
74
+ "url": "git+https://github.com/drscrewdriver/dsh-prime-memory.git"
75
+ },
76
+ "author": "drscrewdriver <597093681@qq.com>",
77
+ "license": "MIT",
78
+ "dependencies": {
79
+ "@deepseek-ai/schemastery": "3.18.1",
80
+ "@node-rs/jieba": "^2.0.2",
81
+ "sqlite-vec": "^0.1.7-alpha.2",
82
+ "undici": "^7.29.0"
83
+ },
84
+ "peerDependencies": {
85
+ "@deepseek-ai/cordis": "^4.0.1",
86
+ "@deepseek-ai/dsh-agent": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
87
+ "@deepseek-ai/dsh-home-paths": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
88
+ "@deepseek-ai/dsh-llm": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
89
+ "@deepseek-ai/dsh-session": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
90
+ "@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
91
+ "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2",
92
+ "@deepseek-ai/dsh-tools": "^0.1.1-rc.2 || ^0.1.2-rc.1 || ^0.1.3-rc.1 || ^0.1.5-rc.2"
93
+ },
94
+ "peerDependenciesMeta": {
95
+ "@deepseek-ai/dsh-agent": {
96
+ "optional": true
97
+ },
98
+ "@deepseek-ai/dsh-home-paths": {
99
+ "optional": true
100
+ },
101
+ "@deepseek-ai/dsh-llm": {
102
+ "optional": true
103
+ },
104
+ "@deepseek-ai/dsh-session": {
105
+ "optional": true
106
+ },
107
+ "@deepseek-ai/dsh-settings": {
108
+ "optional": true
109
+ },
110
+ "@deepseek-ai/dsh-system-prompt": {
111
+ "optional": true
112
+ },
113
+ "@deepseek-ai/dsh-tools": {
114
+ "optional": true
115
+ }
116
+ },
117
+ "devDependencies": {
118
+ "@deepseek-ai/cordis": "4.0.1",
119
+ "@deepseek-ai/dsh-agent": "0.1.1-rc.2",
120
+ "@deepseek-ai/dsh-agent-default-model": "0.1.1-rc.2",
121
+ "@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
122
+ "@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
123
+ "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
124
+ "@deepseek-ai/dsh-session": "0.1.1-rc.2",
125
+ "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
126
+ "@deepseek-ai/dsh-system-prompt": "0.1.1-rc.2",
127
+ "@deepseek-ai/dsh-tools": "0.1.1-rc.2",
128
+ "@eslint/js": "^10.0.1",
129
+ "@types/node": "^22.0.0",
130
+ "@types/react": "^19.2.18",
131
+ "esbuild": "^0.28.2",
132
+ "eslint": "^10.9.1",
133
+ "globals": "^17.12.0",
134
+ "typescript": "^5.6.0",
135
+ "typescript-eslint": "^8.69.0",
136
+ "vitest": "^4.1.11"
137
+ }
138
+ }