dsh-layered-memory 0.8.11 → 0.8.12

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.en.md CHANGED
@@ -10,21 +10,27 @@
10
10
  [简体中文](README.md) · [Latest release](https://github.com/JunNanLYS/dsh-layered-memory/releases/latest) · [Report issues](https://github.com/JunNanLYS/dsh-layered-memory/issues)
11
11
 
12
12
  [![npm version](https://img.shields.io/npm/v/dsh-layered-memory?color=6f83ff&style=flat-square&label=npm)](https://www.npmjs.com/package/dsh-layered-memory)
13
- [![DSH 0.1.1-rc.2](https://img.shields.io/badge/DSH-0.1.1--rc.2-8b5cf6?style=flat-square)](https://github.com/deepseek-ai/deepseek-harness)
13
+ [![DSH 0.1.2-alpha.x](https://img.shields.io/badge/DSH-0.1.2--alpha.x-8b5cf6?style=flat-square)](https://github.com/deepseek-ai/deepseek-harness)
14
14
  [![MIT License](https://img.shields.io/badge/license-MIT-536990?style=flat-square)](LICENSE)
15
15
 
16
16
  </div>
17
17
 
18
18
  ## Getting Started
19
19
 
20
- Requires Node ≥ 22.16. Two invocation styles the `npx` prefix can replace `dsh` in
20
+ Requires Node ≥ 22.16 and DeepSeek Harness **0.1.2-alpha.1** (as of 0.8.12 only the
21
+ 0.1.2-alpha.x host line is supported; for older hosts see the
22
+ [release history](https://github.com/JunNanLYS/dsh-layered-memory/releases)).
23
+ Two invocation styles — the `npx` prefix can replace `dsh` in
21
24
  any command below:
22
25
 
23
26
  ```bash
24
- # Option 1: run the official CLI directly via npx (no pre-installed dsh; version can be pinned, e.g. dsh-layered-memory@0.8.4)
25
- npx -y @deepseek-ai/dsh plugin --profile web add dsh-layered-memory
27
+ # Option 1: run the official CLI directly via npx (no pre-installed dsh; the host version must
28
+ # be pinned to the alpha line — the npm "latest" tag still points to 0.1.1-rc.x)
29
+ npx -y @deepseek-ai/dsh@0.1.2-alpha.2 plugin --profile web add dsh-layered-memory
26
30
 
27
- # Option 2: with the dsh CLI installed (dsh is a pnpm forwarder; npm i -g pnpm first if missing)
31
+ # Option 2: with the dsh CLI installed (upgrade to the alpha line first:
32
+ # npm i -g @deepseek-ai/dsh@0.1.2-alpha.2, then restart; dsh is a pnpm forwarder —
33
+ # npm i -g pnpm first if missing)
28
34
  dsh plugin --profile web add dsh-layered-memory
29
35
 
30
36
  # Alternative sources: GitHub repo / local path (dev & debugging, link: points at the repo; npm run build + restart dsh to apply)
package/README.md CHANGED
@@ -10,20 +10,23 @@
10
10
  [English](README.en.md) · [最新发行版](https://github.com/JunNanLYS/dsh-layered-memory/releases/latest) · [反馈问题](https://github.com/JunNanLYS/dsh-layered-memory/issues)
11
11
 
12
12
  [![npm version](https://img.shields.io/npm/v/dsh-layered-memory?color=6f83ff&style=flat-square&label=npm)](https://www.npmjs.com/package/dsh-layered-memory)
13
- [![DSH 0.1.1-rc.2](https://img.shields.io/badge/DSH-0.1.1--rc.2-8b5cf6?style=flat-square)](https://github.com/deepseek-ai/deepseek-harness)
13
+ [![DSH 0.1.2-alpha.x](https://img.shields.io/badge/DSH-0.1.2--alpha.x-8b5cf6?style=flat-square)](https://github.com/deepseek-ai/deepseek-harness)
14
14
  [![MIT License](https://img.shields.io/badge/license-MIT-536990?style=flat-square)](LICENSE)
15
15
 
16
16
  </div>
17
17
 
18
18
  ## 快速开始
19
19
 
20
- 需要 Node ≥ 22.16。两种调用方式任选(`npx` 前缀可替换下面任何 `dsh` 命令):
20
+ 需要 Node ≥ 22.16 DeepSeek Harness ≥ **0.1.2-alpha.1**(0.8.12 起仅支持
21
+ 0.1.2-alpha.x 宿主线;旧版插件请看 [历史版本](https://github.com/JunNanLYS/dsh-layered-memory/releases))。
22
+ 两种调用方式任选(`npx` 前缀可替换下面任何 `dsh` 命令):
21
23
 
22
24
  ```bash
23
- # 方式一:npx 直接跑官方 CLI(无需预装 dsh;可 pin 版本,如 dsh-layered-memory@0.8.4
24
- npx -y @deepseek-ai/dsh plugin --profile web add dsh-layered-memory
25
+ # 方式一:npx 直接跑官方 CLI(无需预装 dsh;宿主须带 alpha 版本号——npm latest 仍指向 0.1.1-rc.x
26
+ npx -y @deepseek-ai/dsh@0.1.2-alpha.2 plugin --profile web add dsh-layered-memory
25
27
 
26
- # 方式二:已装 dsh CLI(dsh pnpm 转发器,未装 pnpm 时先 npm i -g pnpm)
28
+ # 方式二:已装 dsh CLI(先升级到 alpha 线:npm i -g @deepseek-ai/dsh@0.1.2-alpha.2 并重启;
29
+ # dsh 是 pnpm 转发器,未装 pnpm 时先 npm i -g pnpm)
27
30
  dsh plugin --profile web add dsh-layered-memory
28
31
 
29
32
  # 包源备选:GitHub 仓库 / 本地路径(开发调试,link: 指向仓库,npm run build + 重启 dsh 即生效)
package/dist/settings.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import Schema from '@deepseek-ai/schemastery';
2
- import { settingsNamespace } from '@deepseek-ai/dsh-settings';
3
2
  import { EFFORT_CHOICES } from './config.js';
4
3
  /**
5
4
  * 运行时统一路由链条目:[0] = 主路由(provider/model 双空 = 跟随默认模型),
@@ -63,7 +62,9 @@ export function validateDistillChain(chain, opts) {
63
62
  }
64
63
  return null;
65
64
  }
66
- const NS = settingsNamespace('dsh-memory');
65
+ // 0.1.2-alpha dsh-settings 不再导出 settingsNamespace 品牌 helper:
66
+ // register 改为泛型字面量签名(编译期校验 kebab-case,品牌在服务内部解析)。
67
+ const NS = 'dsh-memory';
67
68
  const ALWAYS_ON = {
68
69
  enabled: true,
69
70
  capture: true,
package/dist/stats.js CHANGED
@@ -56,7 +56,7 @@ export function registerMemoryRpc(ctx, cfg, stores, logger, status, live, modes,
56
56
  error: { code: 'internal', message: err instanceof Error ? err.message : String(err), details: {} },
57
57
  };
58
58
  }
59
- }, { authority: 'loopback' });
59
+ });
60
60
  registeredImpl = connection;
61
61
  if (!active) {
62
62
  void dispose();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-layered-memory",
3
- "version": "0.8.11",
3
+ "version": "0.8.12",
4
4
  "description": "L0~L3 分层蒸馏记忆插件 for DeepSeek Harness:自动捕获对话(L0)、抽取原子记忆(L1)、整合场景块(L2)、蒸馏核心画像/团队方法论(L3),并在模型步骤前自动召回注入。移植自 MemoryCore (TencentDB Agent Memory) 的管线设计。",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,6 @@
19
19
  },
20
20
  "client": {
21
21
  "inject": [
22
- "@deepseek-ai/dsh-client-runtime",
23
22
  "@deepseek-ai/dsh-client-connection"
24
23
  ],
25
24
  "platform": "web"
@@ -53,32 +52,32 @@
53
52
  },
54
53
  "license": "MIT",
55
54
  "dependencies": {
56
- "@deepseek-ai/schemastery": "3.18.1",
55
+ "@deepseek-ai/schemastery": "3.18.2",
57
56
  "@node-rs/jieba": "^2.0.2",
58
57
  "sqlite-vec": "^0.1.7-alpha.2",
59
58
  "undici": "^7.29.0"
60
59
  },
61
60
  "peerDependencies": {
62
61
  "@deepseek-ai/cordis": "^4.0.1",
63
- "@deepseek-ai/dsh-agent": "^0.1.1-rc.2",
64
- "@deepseek-ai/dsh-home-paths": "^0.1.1-rc.2",
65
- "@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
66
- "@deepseek-ai/dsh-session": "^0.1.1-rc.2",
67
- "@deepseek-ai/dsh-settings": "^0.1.1-rc.2",
68
- "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
69
- "@deepseek-ai/dsh-tools": "^0.1.1-rc.2"
62
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.1",
63
+ "@deepseek-ai/dsh-home-paths": "^0.1.2-alpha.1",
64
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.1",
65
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.1",
66
+ "@deepseek-ai/dsh-settings": "^0.1.2-alpha.1",
67
+ "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.1",
68
+ "@deepseek-ai/dsh-tools": "^0.1.2-alpha.1"
70
69
  },
71
70
  "devDependencies": {
72
- "@deepseek-ai/cordis": "4.0.1",
73
- "@deepseek-ai/dsh-agent": "0.1.1-rc.2",
74
- "@deepseek-ai/dsh-agent-default-model": "0.1.1-rc.2",
75
- "@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
76
- "@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
77
- "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
78
- "@deepseek-ai/dsh-session": "0.1.1-rc.2",
79
- "@deepseek-ai/dsh-settings": "0.1.1-rc.2",
80
- "@deepseek-ai/dsh-system-prompt": "0.1.1-rc.2",
81
- "@deepseek-ai/dsh-tools": "0.1.1-rc.2",
71
+ "@deepseek-ai/cordis": "4.0.2",
72
+ "@deepseek-ai/dsh-agent": "0.1.2-alpha.2",
73
+ "@deepseek-ai/dsh-agent-default-model": "0.1.2-alpha.2",
74
+ "@deepseek-ai/dsh-client-connection": "0.1.2-alpha.2",
75
+ "@deepseek-ai/dsh-home-paths": "0.1.2-alpha.2",
76
+ "@deepseek-ai/dsh-llm": "0.1.2-alpha.2",
77
+ "@deepseek-ai/dsh-session": "0.1.2-alpha.2",
78
+ "@deepseek-ai/dsh-settings": "0.1.2-alpha.2",
79
+ "@deepseek-ai/dsh-system-prompt": "0.1.2-alpha.2",
80
+ "@deepseek-ai/dsh-tools": "0.1.2-alpha.2",
82
81
  "@types/node": "^22.0.0",
83
82
  "@types/react": "^19.2.18",
84
83
  "esbuild": "^0.28.2",