dsh-foxy-memory 0.4.0 → 0.4.2

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 (3) hide show
  1. package/README.md +6 -6
  2. package/lib/index.js +1 -1
  3. package/package.json +47 -56
package/README.md CHANGED
@@ -23,11 +23,11 @@
23
23
  ```json
24
24
  {
25
25
  "id": "uuid",
26
- "presetId": "foxy3",
26
+ "presetId": "preset",
27
27
  "sessionId": "session-id",
28
28
  "platform": "dsh",
29
29
  "sourceLabel": "DSH",
30
- "speaker": "kunfox",
30
+ "speaker": "用户",
31
31
  "role": "user",
32
32
  "type": "conversation",
33
33
  "status": "active",
@@ -43,7 +43,7 @@
43
43
  注入时会格式化成:
44
44
 
45
45
  ```text
46
- - [2026-11-06 20:00] [DSH] kunfox: 今天在 DSH 做了……
46
+ - [2026-11-06 20:00] [DSH] 用户: 今天在 DSH 做了……
47
47
  - [2026-11-06 20:00] [DSH] Foxy: 记住啦。
48
48
  ```
49
49
 
@@ -59,12 +59,12 @@
59
59
  | `maxContentChars` | `4000` | 单条内容截断 |
60
60
  | `maxContextEntries` | `20` | 最多注入条数 |
61
61
  | `maxContextChars` | `6000` | 注入内容总字符上限 |
62
- | `userLabel` | `kunfox` | 用户显示名 |
62
+ | `userLabel` | `用户` | 用户显示名 |
63
63
  | `assistantLabel` | `Foxy` | 助手显示名 |
64
64
  | `provider` | `livingmemory`(配置 bridgeUrl 时)/ `local` | 记忆写到哪个 provider |
65
65
  | `bridgeUrl` | 空 | 新插件地址,如 `http://127.0.0.1:5140/foxy-memory` |
66
66
  | `bridgeToken` | 空 | 与新插件 `foxyApiToken` 一致;公网部署必须设置 |
67
- | `bridgePresetId` | `foxy3(Character)` | 写入 LivingMemory 的 preset |
67
+ | `bridgePresetId` | `preset(Character)` | 写入 LivingMemory 的 preset |
68
68
  | `bridgeTimeoutMs` | `15000` | 桥请求超时 |
69
69
  | `batchSize` | `8` | 累积多少条消息后调用 `/ingest` |
70
70
  | `flushIntervalMs` | `30000` | 未满一批时的定时冲刷间隔 |
@@ -121,7 +121,7 @@ ctx.foxyMemory.stats()
121
121
  provider: livingmemory
122
122
  bridgeUrl: http://127.0.0.1:5140/foxy-memory
123
123
  bridgeToken: 与新插件 foxyApiToken 一致的随机串
124
- bridgePresetId: foxy3(Character)
124
+ bridgePresetId: preset(Character)
125
125
  ```
126
126
 
127
127
  新插件的 `/foxy-memory/record|ingest|context|list|search|health` 直接操作 Koishi 数据库、用户画像与向量索引。DSH 侧只发 HTTP 请求,不再启动旧 `koishi-plugin-foxy-memory-bridge`。
package/lib/index.js CHANGED
@@ -378,7 +378,7 @@ export function apply(ctx, config = {}) {
378
378
  async context(input = {}) {
379
379
  try {
380
380
  const result = await bridgePost('/context', {
381
- presetId: bridgePresetId,
381
+ presetId: input.presetId || bridgePresetId,
382
382
  sessionId: input.sessionId,
383
383
  query: input.query || 'DSH',
384
384
  limit: input.limit,
package/package.json CHANGED
@@ -1,56 +1,47 @@
1
- {
2
- "name": "dsh-foxy-memory",
3
- "version": "0.4.0",
4
- "description": "Memory subplugin for dsh-foxy: local JSONL archive plus optional cross-platform Foxy Memory API, recall and search.",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "exports": {
8
- ".": "./lib/index.js",
9
- "./client": "./lib/client.js"
10
- },
11
- "files": [
12
- "lib",
13
- "cordis.patch.yml",
14
- "README.md"
15
- ],
16
- "engines": {
17
- "node": ">=20"
18
- },
19
- "author": "Kun-Fox",
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/Kun-Fox/dsh-foxy-memory.git"
23
- },
24
- "homepage": "https://github.com/Kun-Fox/dsh-foxy-memory#readme",
25
- "bugs": {
26
- "url": "https://github.com/Kun-Fox/dsh-foxy-memory/issues"
27
- },
28
- "dsh": {
29
- "bundle": {
30
- "patch": "./cordis.patch.yml"
31
- },
32
- "client": {
33
- "platform": "web",
34
- "inject": [
35
- "@deepseek-ai/dsh-client-ui-slots"
36
- ]
37
- }
38
- },
39
- "keywords": [
40
- "dsh",
41
- "deepseek-harness",
42
- "foxy",
43
- "memory",
44
- "livingmemory"
45
- ],
46
- "license": "MIT"
47
- }
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
1
+ {
2
+ "name": "dsh-foxy-memory",
3
+ "version": "0.4.2",
4
+ "description": "Memory subplugin for dsh-foxy: local JSONL archive plus optional cross-platform Foxy Memory API, recall and search.",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "exports": {
8
+ ".": "./lib/index.js",
9
+ "./client": "./lib/client.js"
10
+ },
11
+ "files": [
12
+ "lib",
13
+ "cordis.patch.yml",
14
+ "README.md"
15
+ ],
16
+ "engines": {
17
+ "node": ">=20"
18
+ },
19
+ "author": "Kun-Fox",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/Kun-Fox/dsh-foxy-memory.git"
23
+ },
24
+ "homepage": "https://github.com/Kun-Fox/dsh-foxy-memory#readme",
25
+ "bugs": {
26
+ "url": "https://github.com/Kun-Fox/dsh-foxy-memory/issues"
27
+ },
28
+ "dsh": {
29
+ "bundle": {
30
+ "patch": "./cordis.patch.yml"
31
+ },
32
+ "client": {
33
+ "platform": "web",
34
+ "inject": [
35
+ "@deepseek-ai/dsh-client-ui-slots"
36
+ ]
37
+ }
38
+ },
39
+ "keywords": [
40
+ "dsh",
41
+ "deepseek-harness",
42
+ "foxy",
43
+ "memory",
44
+ "livingmemory"
45
+ ],
46
+ "license": "MIT"
47
+ }