dsh-tdai-memory 0.2.9 → 0.2.10

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/client.js +59 -21
  2. package/package.json +4 -4
package/client.js CHANGED
@@ -58,6 +58,25 @@ window.__ModuleLoader__.load({
58
58
  groupExtraction: "提取",
59
59
  groupRecall: "召回",
60
60
  groupTools: "工具",
61
+ fieldDataDir: "数据目录(空 = ~/.memory-tencentdb/memory-tdai)",
62
+ fieldLlmBaseUrl: "Base URL",
63
+ fieldLlmApiKey: "API Key",
64
+ fieldLlmModel: "模型",
65
+ fieldLlmMaxTokens: "最大输出 Tokens",
66
+ fieldLlmTimeoutMs: "超时(毫秒)",
67
+ fieldEmbeddingBaseUrl: "Base URL",
68
+ fieldEmbeddingApiKey: "API Key",
69
+ fieldEmbeddingModel: "模型",
70
+ fieldEmbeddingDimensions: "向量维度",
71
+ fieldEmbeddingSendDimensions: "请求带 dimensions 参数",
72
+ fieldCaptureEnabled: "捕获对话(L0)",
73
+ fieldExtractionEnabled: "结构化提取(L1)",
74
+ fieldExtractionEnableDedup: "冲突检测(额外 LLM 调用)",
75
+ fieldRecallEnabled: "召回注入",
76
+ fieldRecallMaxResults: "最大召回条数",
77
+ fieldRecallScoreThreshold: "相似度阈值",
78
+ fieldRecallTimeoutMs: "召回超时(毫秒)",
79
+ fieldToolsEnabled: "注册搜索工具(tdai_memory_search / tdai_conversation_search)",
61
80
  secretHint: "留空保持当前密钥。",
62
81
  save: "保存",
63
82
  reset: "恢复默认",
@@ -78,6 +97,25 @@ window.__ModuleLoader__.load({
78
97
  groupExtraction: "Extraction",
79
98
  groupRecall: "Recall",
80
99
  groupTools: "Tools",
100
+ fieldDataDir: "Data dir (empty = ~/.memory-tencentdb/memory-tdai)",
101
+ fieldLlmBaseUrl: "Base URL",
102
+ fieldLlmApiKey: "API Key",
103
+ fieldLlmModel: "Model",
104
+ fieldLlmMaxTokens: "Max output tokens",
105
+ fieldLlmTimeoutMs: "Timeout (ms)",
106
+ fieldEmbeddingBaseUrl: "Base URL",
107
+ fieldEmbeddingApiKey: "API Key",
108
+ fieldEmbeddingModel: "Model",
109
+ fieldEmbeddingDimensions: "Vector dimensions",
110
+ fieldEmbeddingSendDimensions: "Send dimensions with requests",
111
+ fieldCaptureEnabled: "Capture conversations (L0)",
112
+ fieldExtractionEnabled: "Structured extraction (L1)",
113
+ fieldExtractionEnableDedup: "Conflict detection (extra LLM call)",
114
+ fieldRecallEnabled: "Recall injection",
115
+ fieldRecallMaxResults: "Max recall results",
116
+ fieldRecallScoreThreshold: "Similarity threshold",
117
+ fieldRecallTimeoutMs: "Recall timeout (ms)",
118
+ fieldToolsEnabled: "Register search tools (tdai_memory_search / tdai_conversation_search)",
81
119
  secretHint: "Leave blank to keep the current key.",
82
120
  save: "Save",
83
121
  reset: "Reset",
@@ -91,25 +129,25 @@ window.__ModuleLoader__.load({
91
129
 
92
130
  // ── field spec: dotted path + type + group ─────────────────────────────
93
131
  var FIELDS = [
94
- { path: ["dataDir"], label: "数据目录(空 = ~/.memory-tencentdb/memory-tdai)", type: "text", group: "groupData" },
95
- { path: ["llm", "baseUrl"], label: "Base URL", type: "text", group: "groupLlm" },
96
- { path: ["llm", "apiKey"], label: "API Key", type: "password", secret: true, group: "groupLlm" },
97
- { path: ["llm", "model"], label: "模型", type: "text", group: "groupLlm" },
98
- { path: ["llm", "maxTokens"], label: "最大输出 Tokens", type: "number", group: "groupLlm" },
99
- { path: ["llm", "timeoutMs"], label: "超时(毫秒)", type: "number", group: "groupLlm" },
100
- { path: ["embedding", "baseUrl"], label: "Base URL", type: "text", group: "groupEmbedding" },
101
- { path: ["embedding", "apiKey"], label: "API Key", type: "password", secret: true, group: "groupEmbedding" },
102
- { path: ["embedding", "model"], label: "模型", type: "text", group: "groupEmbedding" },
103
- { path: ["embedding", "dimensions"], label: "向量维度", type: "number", group: "groupEmbedding" },
104
- { path: ["embedding", "sendDimensions"], label: "请求带 dimensions 参数", type: "checkbox", group: "groupEmbedding" },
105
- { path: ["captureEnabled"], label: "捕获对话(L0)", type: "checkbox", group: "groupCapture" },
106
- { path: ["extraction", "enabled"], label: "结构化提取(L1)", type: "checkbox", group: "groupExtraction" },
107
- { path: ["extraction", "enableDedup"], label: "冲突检测(额外 LLM 调用)", type: "checkbox", group: "groupExtraction" },
108
- { path: ["recall", "enabled"], label: "召回注入", type: "checkbox", group: "groupRecall" },
109
- { path: ["recall", "maxResults"], label: "最大召回条数", type: "number", group: "groupRecall" },
110
- { path: ["recall", "scoreThreshold"], label: "相似度阈值", type: "number", group: "groupRecall" },
111
- { path: ["recall", "timeoutMs"], label: "召回超时(毫秒)", type: "number", group: "groupRecall" },
112
- { path: ["toolsEnabled"], label: "注册搜索工具(tdai_memory_search / tdai_conversation_search)", type: "checkbox", group: "groupTools" }
132
+ { path: ["dataDir"], label: "fieldDataDir", type: "text", group: "groupData" },
133
+ { path: ["llm", "baseUrl"], label: "fieldLlmBaseUrl", type: "text", group: "groupLlm" },
134
+ { path: ["llm", "apiKey"], label: "fieldLlmApiKey", type: "password", secret: true, group: "groupLlm" },
135
+ { path: ["llm", "model"], label: "fieldLlmModel", type: "text", group: "groupLlm" },
136
+ { path: ["llm", "maxTokens"], label: "fieldLlmMaxTokens", type: "number", group: "groupLlm" },
137
+ { path: ["llm", "timeoutMs"], label: "fieldLlmTimeoutMs", type: "number", group: "groupLlm" },
138
+ { path: ["embedding", "baseUrl"], label: "fieldEmbeddingBaseUrl", type: "text", group: "groupEmbedding" },
139
+ { path: ["embedding", "apiKey"], label: "fieldEmbeddingApiKey", type: "password", secret: true, group: "groupEmbedding" },
140
+ { path: ["embedding", "model"], label: "fieldEmbeddingModel", type: "text", group: "groupEmbedding" },
141
+ { path: ["embedding", "dimensions"], label: "fieldEmbeddingDimensions", type: "number", group: "groupEmbedding" },
142
+ { path: ["embedding", "sendDimensions"], label: "fieldEmbeddingSendDimensions", type: "checkbox", group: "groupEmbedding" },
143
+ { path: ["captureEnabled"], label: "fieldCaptureEnabled", type: "checkbox", group: "groupCapture" },
144
+ { path: ["extraction", "enabled"], label: "fieldExtractionEnabled", type: "checkbox", group: "groupExtraction" },
145
+ { path: ["extraction", "enableDedup"], label: "fieldExtractionEnableDedup", type: "checkbox", group: "groupExtraction" },
146
+ { path: ["recall", "enabled"], label: "fieldRecallEnabled", type: "checkbox", group: "groupRecall" },
147
+ { path: ["recall", "maxResults"], label: "fieldRecallMaxResults", type: "number", group: "groupRecall" },
148
+ { path: ["recall", "scoreThreshold"], label: "fieldRecallScoreThreshold", type: "number", group: "groupRecall" },
149
+ { path: ["recall", "timeoutMs"], label: "fieldRecallTimeoutMs", type: "number", group: "groupRecall" },
150
+ { path: ["toolsEnabled"], label: "fieldToolsEnabled", type: "checkbox", group: "groupTools" }
113
151
  ];
114
152
  FIELDS.forEach(function (f) { f.key = f.path.join("."); });
115
153
 
@@ -241,7 +279,7 @@ window.__ModuleLoader__.load({
241
279
  nodes.push(h("label", { key: f.path.join("."), className: "__tm_field" },
242
280
  h("span", { className: "__tm_row" },
243
281
  h("input", { className: "__tm_check", type: "checkbox", checked: Boolean(fieldDraft(f)), onChange: function (e) { setField(f, e.target.checked); } }),
244
- h("span", { className: "__tm_label" }, f.label),
282
+ h("span", { className: "__tm_label" }, t(f.label)),
245
283
  overridden ? h("span", { className: "__tm_override" }, t("overridden")) : null
246
284
  )
247
285
  ));
@@ -249,7 +287,7 @@ window.__ModuleLoader__.load({
249
287
  }
250
288
  nodes.push(h("label", { key: f.path.join("."), className: "__tm_field" },
251
289
  h("span", { className: "__tm_label" },
252
- f.label,
290
+ t(f.label),
253
291
  overridden ? h("span", { className: "__tm_override" }, t("overridden")) : null
254
292
  ),
255
293
  h("input", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tdai-memory",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "DeepSeek Harness 的 TencentDB Agent Memory 移植:L0 对话捕获 → L1 结构化记忆提取 → L2 场景/L3 画像,自动召回注入 + 记忆/对话搜索工具;复用现有 ~/.memory-tencentdb/memory-tdai 数据;附 Web UI 设置栏。",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "dsh": {
13
13
  "bundle": {
14
- "patch": "./cordis.patch.yml"
15
- },
14
+ "patch": "./cordis.patch.yml"
15
+ },
16
16
  "client": {
17
17
  "platform": "web"
18
18
  }
@@ -69,4 +69,4 @@
69
69
  "@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
70
70
  "@deepseek-ai/dsh-settings": "^0.1.0-rc.6"
71
71
  }
72
- }
72
+ }