@morlay/dsh-context-assembler 0.0.6 → 0.0.8

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
@@ -1,10 +1,10 @@
1
1
  # @morlay/dsh-context-assembler
2
2
 
3
3
  提示词通道:**装配结果上的文本转换**(`replace` / `suppress`)与**降级 section 的按步送达**(本步没留在系统提示词
4
- 里的 section 改以 reminder 紧随用户消息送达,压缩后的重试再补投一次)。**不给扩展点**:没有注册面,也不接管任何
5
- "面"——工作区指令与技能目录用官方行(`@deepseek-ai/dsh-agent-instructions` / `@deepseek-ai/dsh-tool-skill`)自己的
6
- 注入方式。按会话的工具收口与三个注入开关(`instructions` / 技能目录 / 动态快照)**不在本包**:收口的输入是模式定义、
7
- 唯一消费者也是模式,所以它住在 [`@morlay/dsh-session-mode`](../../profile/dsh-session-mode/README.md)。
4
+ 里的 section 改以 reminder 紧随用户消息送达)。**不给扩展点**:没有注册面,也不接管任何"面"——工作区指令与技能
5
+ 目录用官方行自己的注入方式;按会话的工具收口与三个注入开关(`instructions` / 技能目录 / 动态快照)归
6
+ [`@morlay/dsh-session-mode`](../../profile/dsh-session-mode/README.md)。留什么、为什么与代价见
7
+ [设计 通道只做转换](./.agents/designs/20260929-通道只做转换.md)。
8
8
 
9
9
  ## 用法
10
10
 
@@ -23,11 +23,6 @@
23
23
  | `.` | `context-assembler` | 通道本体:装配结果上的文本转换 + 降级 section 的按步送达,发布 `ctx.contextAssembler`;config 是 `keep` / `suppress` / `replace` |
24
24
  | `./rows` | —(不是插件,只出那一行) | `contextChannel()`,装配层据此渲染 patch |
25
25
 
26
- **通道全局一份、不隔离**:消费者([`@morlay/dsh-tool-guidance` 的包根](../../profile/dsh-tool-guidance/README.md),
27
- 以及把 `instructions` 开关拨过来的 `dsh-session-mode` 收口)住在别的包里,隔离会让它们解析不到服务(行停在 waiting,
28
- 不报错)。模式差异不在通道上表达:通道只认按 agent 推来的那一个开关(`setInstructions`),收口与模式定义都在
29
- `@morlay/dsh-session-mode` 里。
30
-
31
26
  工具说明(汉化精简 + 用法分组)不在这个包里:它归 [`@morlay/dsh-tool-guidance`](../../profile/dsh-tool-guidance/README.md)
32
27
  (包根即运行时),对通道的依赖只剩 `suppressSection` 一处;引用展开也是独立包
33
28
  [`@morlay/dsh-reference`](../dsh-reference/README.md)(它不依赖通道服务)。
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import z from "@deepseek-ai/schemastery";
2
1
  import { Context, Service } from "@deepseek-ai/cordis";
2
+ import z from "@deepseek-ai/schemastery";
3
3
  import { Agent } from "@deepseek-ai/dsh-agent";
4
4
  //#region src/defaults.d.ts
5
5
  export declare const DEFAULT_KEEP: readonly string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-context-assembler",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Prompt channel for dsh: assembly-result text conversion (replace / suppress) plus per-step delivery of demoted sections. Workspace instructions and the skill catalog use the official rows (@deepseek-ai/dsh-agent-instructions / @deepseek-ai/dsh-tool-skill); the per-session scope gate lives in @morlay/dsh-session-mode. Reference expansion is its own package (@morlay/dsh-reference).",
5
5
  "keywords": [
6
6
  "context",
@@ -23,34 +23,43 @@
23
23
  ],
24
24
  "type": "module",
25
25
  "exports": {
26
- ".": "./dist/index.mjs",
27
- "./rows": "./dist/rows.mjs",
26
+ ".": {
27
+ "types": "./dist/index.d.mts",
28
+ "default": "./dist/index.mjs"
29
+ },
30
+ "./rows": {
31
+ "types": "./dist/rows.d.mts",
32
+ "default": "./dist/rows.mjs"
33
+ },
28
34
  "./package.json": "./package.json",
29
35
  "./locale/*.json": "./locale/*.json"
30
36
  },
31
37
  "dependencies": {
32
- "@deepseek-ai/schemastery": "^3.18.4"
38
+ "@deepseek-ai/schemastery": "^3.18.5"
33
39
  },
34
40
  "devDependencies": {
35
- "@deepseek-ai/cordis": "4.0.4",
36
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
37
- "@deepseek-ai/dsh-agent-loop": "0.2.0-rc.2",
38
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.0-rc.2",
39
- "@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
40
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
41
- "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
42
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
43
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
44
- "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
45
- "@deepseek-ai/dsh-token-meter": "0.2.0-rc.2",
46
- "@morlay/session-rdb": "0.1.5"
41
+ "@deepseek-ai/cordis": "^4.0.5",
42
+ "@deepseek-ai/dsh-agent": "^0.2.1-rc.1",
43
+ "@deepseek-ai/dsh-agent-loop": "^0.2.1-rc.1",
44
+ "@deepseek-ai/dsh-agent-loop-testkit": "^0.2.1-rc.1",
45
+ "@deepseek-ai/dsh-compaction-basic": "^0.2.1-rc.1",
46
+ "@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
47
+ "@deepseek-ai/dsh-scope": "^0.2.1-rc.1",
48
+ "@deepseek-ai/dsh-session": "^0.2.1-rc.1",
49
+ "@deepseek-ai/dsh-session-persistence-jsonl": "^0.2.1-rc.1",
50
+ "@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.1",
51
+ "@deepseek-ai/dsh-token-meter": "^0.2.1-rc.1",
52
+ "@morlay/session-rdb": "0.1.7"
47
53
  },
48
54
  "peerDependencies": {
49
- "@deepseek-ai/cordis": "^4.0.4",
50
- "@deepseek-ai/dsh-agent": "^0.2.0-rc.2",
51
- "@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
52
- "@deepseek-ai/dsh-session": "^0.2.0-rc.2",
53
- "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2"
55
+ "@deepseek-ai/cordis": "^4.0.5",
56
+ "@deepseek-ai/dsh-agent": "^0.2.1-rc.1",
57
+ "@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
58
+ "@deepseek-ai/dsh-session": "^0.2.1-rc.1",
59
+ "@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.1"
60
+ },
61
+ "engines": {
62
+ "dsh": ">= 0.2.1-rc.1 < 0.2.2"
54
63
  },
55
64
  "scripts": {
56
65
  "build": "pnpm exec tsdown"