@dsh-cc/claude-code-agents 0.6.3 → 0.7.1-rc.1

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm check:readme --write
5
- README.md: 02c91d5c56390f673a19e59033b4d00b450c2036
6
- README.zh.md: 53ed09c7b4de81a0490d42aa0fe06a2b0000507b
5
+ README.md: 2a62a29974d04b83a31ee222f5a5d9846870815e
6
+ README.zh.md: 9531863c402396471837f21c2c09a6d779fbfffa
package/README.md CHANGED
@@ -9,7 +9,7 @@ Load Claude Code's `.claude/agents/*.md` and `*.json` sub-agent definitions as d
9
9
  - **Three layers, highest wins.** The bundled layer ships in-package utility agents (`explore` and `dsh-cc-guide`, both pinning `model: haiku` with a Read/Glob/Grep allow-list) via `discoverBundledAgents()`. The project layer is the nearest `.claude/agents` directory found by walking up from the project root; the user layer is the author's own `~/.claude/agents`. A definition is keyed by its file basename, and layers shadow by rank — bundled < user < project — so a local file of the same name always overrides its bundled namesake.
10
10
  - **Two formats.** A `.md` file's YAML frontmatter supplies the fields and its markdown body (or the `prompt` frontmatter override) supplies the system prompt. A `.json` file is a single object whose `prompt` field is the system prompt.
11
11
  - **Loud failures.** Every bad known frontmatter value throws at load time with the file path and field name, so a broken agent is fixed rather than silently degraded. Unknown fields are ignored, so a definition authored against a newer Claude Code release ports to the supported subset.
12
- - **Field translation.** `description` becomes the when-to-use guide; `tools`/`disallowedTools` compile to one effective `allow`/`deny` tool restriction whose names intersect (a name in both lists is denied); `model` (with the `inherit` sentinel normalized), `effort`, `permissionMode`, `maxTurns`, `initialPrompt`, `background`, `memory`, `skills`, `mcpServers`, `hooks`, and `isolation` are all carried through — and `background` is no longer inert: the Task tool honors it (backgrounds on omitted `run_in_background`).
12
+ - **Field translation.** `description` becomes the when-to-use guide; `tools`/`disallowedTools` compile to one effective `allow`/`deny` tool restriction whose names intersect (a name in both lists is denied); `model` (with the `inherit` sentinel normalized), `effort`, `permissionMode`, `maxTurns`, `initialPrompt`, `background`, `memory`, `skills`, `mcpServers`, `hooks`, and `isolation` are all carried through — and `background` is no longer inert: the Task tool honors it (backgrounds on omitted `run_in_background`); `isolation: worktree` is consumed by the Task tool too (the child runs in a per-child git worktree — see `@dsh-cc/subagent-task`'s isolated-worktree section).
13
13
 
14
14
  ## API
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@
9
9
  - **三层,高者优先。** bundled 层随包内置工具 agent(`explore` 与 `dsh-cc-guide`,均钉死 `model: haiku` 并带 Read/Glob/Grep 白名单),经 `discoverBundledAgents()` 提供。project 层是从项目根向上遍历找到的最近的 `.claude/agents` 目录;user 层是作者自己的 `~/.claude/agents`。定义以其文件 basename 为键,各层按级别遮蔽——bundled < user < project——同名本地文件总是覆盖其 bundled 同名者。
10
10
  - **两种格式。** `.md` 文件的 YAML frontmatter 提供字段,其 markdown 正文(或 `prompt` frontmatter 覆写)提供系统提示。`.json` 文件是单个对象,其 `prompt` 字段即系统提示。
11
11
  - **响亮失败。** 每个坏掉的已知 frontmatter 值都会在加载期带着文件路径与字段名抛错,因此坏 agent 会被修复而非静默降级。未知字段被忽略,因此针对更新版本 Claude Code 编写的定义可移植到受支持子集。
12
- - **字段翻译。** `description` 成为 when-to-use 指南;`tools`/`disallowedTools` 编译为单个有效的 `allow`/`deny` 工具约束,其名称求交集(同时出现在两个列表中的名称被禁用);`model`(含归一化的 `inherit` 哨兵)、`effort`、`permissionMode`、`maxTurns`、`initialPrompt`、`background`、`memory`、`skills`、`mcpServers`、`hooks` 与 `isolation` 全部透传——且 `background` 不再是死字段:Task 工具会兑现它(在 `run_in_background` 缺省时转后台)。
12
+ - **字段翻译。** `description` 成为 when-to-use 指南;`tools`/`disallowedTools` 编译为单个有效的 `allow`/`deny` 工具约束,其名称求交集(同时出现在两个列表中的名称被禁用);`model`(含归一化的 `inherit` 哨兵)、`effort`、`permissionMode`、`maxTurns`、`initialPrompt`、`background`、`memory`、`skills`、`mcpServers`、`hooks` 与 `isolation` 全部透传——且 `background` 不再是死字段:Task 工具会兑现它(在 `run_in_background` 缺省时转后台);`isolation: worktree` 也被 Task 工具消费(child 运行在 per-child git worktree 中——见 `@dsh-cc/subagent-task` 的隔离工作树一节)。
13
13
 
14
14
  ## API
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dsh-cc/claude-code-agents",
3
3
  "description": "Load Claude Code `.claude/agents` definitions as agent presets for the DeepSeek Harness",
4
- "version": "0.6.3",
4
+ "version": "0.7.1-rc.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dsh-cc/dsh-cc.git",
@@ -45,12 +45,12 @@
45
45
  "peerDependencies": {
46
46
  "@deepseek-ai/cordis": ">=0.1.5-rc.1",
47
47
  "@deepseek-ai/dsh-invariants": ">=0.1.5-rc.1",
48
- "@dsh-cc/tools": "^0.6.3"
48
+ "@dsh-cc/tools": "^0.7.1-rc.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@deepseek-ai/cordis": "link:../../../../deepseek-harness/vendor/cordis",
52
52
  "@deepseek-ai/dsh-invariants": "link:../../../../deepseek-harness/packages/runtime-diagnostics/invariants",
53
- "@dsh-cc/tools": "^0.6.3"
53
+ "@dsh-cc/tools": "^0.7.1-rc.1"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"