@deepseek-ai/dsh-agent-tool-presentation 0.1.3-alpha.2 → 0.1.5-alpha.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 run verify-translation-pairing --write packages/core/agent-tool-presentation/README.md
5
- README.md: 003734b6d05de40f0972632d01392dd201fa4232
6
- README.zh.md: 552812932adfdf344b51c9d7dffb679b8e23e5b2
5
+ README.md: 687610e008af76930b18cb8a31c92cfd9e59b7c3
6
+ README.zh.md: c642ebc763769c4c9e0b882a57076f433cb9139d
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- An [agent preset](../../preset/agent-presets/README.md) carries `dsh-agent-tool-presentation` to choose which form of its tools the model sees: `native` (every visible schema), `ptc` (only `run_code` plus a generated SDK), or `both`. The tool registry itself stays on the host plane — this row only declares the presentation for the mounting agent, so a PTC mode session runs beside native ones in one process, each seeing its own catalog. A PTC mode waits for a code runtime before mounting, so a preset selecting PTC mode against a deployment without one fails at mount instead of at the first prompt. The `mode` field is required: a preset without this row already gets the deployment default. Choose it when an agent preset needs to fix the tool form its agents' models see.
12
+ Use `dsh-agent-tool-presentation` in an [agent preset](../../preset/agent-presets/README.md) to fix whether models see every native tool schema, only `run_code` with a generated SDK, or both forms. Each preset can choose independently, so native and PTC agents can share one process without sharing tool catalogs. Selecting `ptc` or `both` requires a compatible code runtime; a deployment without one rejects the preset at mount time before its first prompt. The `mode` field is required when this package is present, while omitting the package keeps the deployment default.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- [agent preset](../../preset/agent-presets/README.zh.md) 携带 `dsh-agent-tool-presentation`,用来声明「模型看到其工具的哪一种形态」:`native`(每个可见 schema)、`ptc`(只有 `run_code` 加一份生成的 SDK)或 `both`。工具注册表本身仍在宿主平面——这一行只声明挂载 agent 的呈现方式,因此一个 PTC mode 会话可以与多个 native 会话同进程并存,各自看到各自的目录。PTC 模式在挂载前会等待代码运行时,因此针对未组装运行时的部署选择 PTC mode 的 preset 会在挂载时失败,而不是在第一次请求时失败。`mode` 字段是必填的:不带这一行的 preset 本来就会拿到部署默认值。当 agent preset 需要固定其 agent 的模型所看到的工具形态时,请选择本包。
12
+ 在 [agent preset](../../preset/agent-presets/README.zh.md) 中使用 `dsh-agent-tool-presentation`,可固定模型看到全部原生工具 schema、只有带生成 SDK 的 `run_code`,还是同时看到两种形态。每个 preset 可独立选择,因此 native 与 PTC agent 可以共享同一进程,而不共享工具目录。选择 `ptc` 或 `both` 需要兼容的代码运行时;没有该运行时的部署会在挂载时拒绝 preset,不会等到第一次请求。使用本包时 `mode` 字段为必填;省略本包则沿用部署默认值。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-agent-tool-presentation",
3
3
  "description": "Agent-plane presentation selector: composes one agent's tools as PTC mode, native, or both",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -30,16 +30,16 @@
30
30
  "@deepseek-ai/schemastery": "^3.18.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
34
- "@deepseek-ai/cordis": "^4.0.2"
33
+ "@deepseek-ai/cordis": "^4.0.2",
34
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@deepseek-ai/dsh-code-runtime": "^0.1.3-alpha.2",
38
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
39
- "@deepseek-ai/dsh-system-prompt": "^0.1.3-alpha.2",
40
- "@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
41
- "@deepseek-ai/dsh-scope": "^0.1.3-alpha.2",
42
- "@deepseek-ai/cordis": "^4.0.2",
43
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2"
37
+ "@deepseek-ai/dsh-code-runtime": "^0.1.5-alpha.1",
38
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
39
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.1",
40
+ "@deepseek-ai/dsh-scope": "^0.1.5-alpha.1",
41
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
42
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1",
43
+ "@deepseek-ai/cordis": "^4.0.2"
44
44
  }
45
45
  }