@deepseek-ai/dsh-tool-cordis 0.1.6-alpha.2 → 0.1.7-alpha.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.
- package/README.i18n.yaml +2 -2
- package/README.md +6 -5
- package/README.zh.md +6 -5
- package/lib/index.js +4 -9878
- package/lib/types/api-catalog.js +7776 -0
- package/lib/types/config.d.ts +19 -0
- package/lib/types/config.js +93 -0
- package/lib/types/host.d.ts +14 -0
- package/lib/types/host.js +17 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.js +57 -0
- package/lib/types/present.js +16 -0
- package/lib/types/providers.d.ts +1 -1
- package/lib/types/providers.js +85 -0
- package/package.json +21 -12
- package/lib/types/prompt.d.ts +0 -3
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/extensions/tool-cordis/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 23e2d4a3d047c1442769e07be045f7da4a24a783
|
|
6
|
+
README.zh.md: da855b7b1d4b4287a1f8d3a5ea7a1fb0c9407f2f
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Inspect Host and Client runtime APIs before writing plugin code. Creator mode pr
|
|
|
25
25
|
<a id="use-this-package"></a>
|
|
26
26
|
## Use this package
|
|
27
27
|
|
|
28
|
-
Creator mode includes this toolset. Other compositions mount `@deepseek-ai/dsh-tool-cordis`
|
|
28
|
+
Creator mode includes this toolset. Other compositions mount `@deepseek-ai/dsh-tool-cordis/host` once in the host composition beside the host runner that provides `cordisInspect`, and `@deepseek-ai/dsh-tool-cordis` in each agent preset that exposes the tools; a preset row alone registers no Host providers. Call `cordis_inspect_list` to discover providers, then `cordis_inspect_query` for a provider's exact methods and types. The Host `Config` provider lists live Loader entries in pages (`offset`, `limit` up to 100, optional exact plugin `name`; `total` and `nextOffset` bound the walk) with each entry's Loader id, the tree-local id patches address, and its Config status (`schema`, `absent`, `unsupported`, `tree` for group and include carriers, `inactive` for disabled, never imported, or disposed entries), and projects one entry's native Config into a self-contained JSON Schema document beside the entry's `packageDir`, the resolved directory holding the package README and built `lib/`, when the profile package lookup resolves it. Use [Plugin Manager](../../boot/plugin-manager/README.md) to install bundles containing plugin code or MCP configuration.
|
|
29
29
|
|
|
30
30
|
-----
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ Creator mode includes this toolset. Other compositions mount `@deepseek-ai/dsh-t
|
|
|
35
35
|
<details>
|
|
36
36
|
<summary>Implementation internals — click to expand</summary>
|
|
37
37
|
|
|
38
|
-
Host providers combine generated Service/Event catalogs and the requesting agent's tool registry. Client providers synchronize their manifests through the existing inspection registry and answer queries from a connected page. The
|
|
38
|
+
Host providers combine generated Service/Event catalogs, the live Loader tree projected through the app-boot Config projector, and the requesting agent's tool registry. Client providers synchronize their manifests through the existing inspection registry and answer queries from a connected page. The host entry owns the Host provider registrations and the preset row owns the two tools, each through Cordis effects; the registry rejects a duplicate provider id, which is why the providers register once per process rather than per preset. No invariant companion is published because inspection reads its providers directly and maintains no independent runtime projection.
|
|
39
39
|
|
|
40
40
|
</details>
|
|
41
41
|
|
|
@@ -54,21 +54,22 @@ Host providers combine generated Service/Event catalogs and the requesting agent
|
|
|
54
54
|
|
|
55
55
|
#### What the model sees
|
|
56
56
|
|
|
57
|
-
The [tool catalog](../../../docs/tool-catalog.md#deepseek-aidsh-tool-cordis) describes two read-only inspection tools. The
|
|
57
|
+
The [tool catalog](../../../docs/tool-catalog.md#deepseek-aidsh-tool-cordis) describes two read-only inspection tools. The plugin contributes no system prompt section: the tool descriptions state when to call each tool and that queries never invoke business methods. In the `cordis` preset, the first-turn skill catalog carries the descriptions of the two shipped skills, which route plugin, MCP, composition, and destination-less visual requests to the skill covering Plugin Manager, MCP setup, Client packaging, and slot registration. Query results contain the requested API declarations, live tool schemas, the live entry directory with Config status, or one entry's projected Config JSON Schema.
|
|
58
58
|
|
|
59
59
|
#### Token effect
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
Only the two tool schemas enter model requests while this plugin is visible. Query results append to the transcript; exact queries avoid loading unrelated declarations.
|
|
62
62
|
|
|
63
63
|
#### KV Cache effect
|
|
64
64
|
|
|
65
|
-
Unchanged schemas
|
|
65
|
+
Unchanged tool schemas remain prefix-stable. Query results append to history; enabling other plugins can change subsequent tool schemas.
|
|
66
66
|
|
|
67
67
|
## Known Limitations and Deferred Work
|
|
68
68
|
|
|
69
69
|
<a id="known-limitations-and-deferred-work"></a>
|
|
70
70
|
|
|
71
71
|
- Client queries wait for a responding page or cancellation. Inspection cannot invoke service methods, configure plugins, or execute generated code.
|
|
72
|
+
- `Config.listConfigs` walks the profile Loader tree only. Agent preset `plugins` lists mount in detached preset trees, so a plugin present only inside a preset declaration is not listed unless the profile tree also mounts it.
|
|
72
73
|
|
|
73
74
|
<a id="dev-note"></a>
|
|
74
75
|
### Dev Note
|
package/README.zh.md
CHANGED
|
@@ -25,7 +25,7 @@ kind: "package-reference"
|
|
|
25
25
|
<a id="use-this-package"></a>
|
|
26
26
|
## 使用本包
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
创造模式包含这组工具。其他组合需要在宿主组合里、提供 `cordisInspect` 的 host runner 旁挂载一次 `@deepseek-ai/dsh-tool-cordis/host`,并在每个要暴露这些工具的 agent preset 里挂载 `@deepseek-ai/dsh-tool-cordis`;仅有 preset 行不会注册任何 Host provider。调用 `cordis_inspect_list` 发现 provider,再用 `cordis_inspect_query` 查询其具体方法和类型。Host 的 `Config` provider 分页列出运行中的 Loader entry(`offset`、最多 100 的 `limit`、可选的精确插件 `name`;`total` 与 `nextOffset` 界定遍历),每个 entry 带 Loader id、patch 所寻址的树内 id 及其 Config 状态(`schema`、`absent`、`unsupported`、group 与 include 载体为 `tree`、禁用、未导入或已销毁的 entry 为 `inactive`),并把单个 entry 的原生 Config 投影为自包含的 JSON Schema 文档,同时在 profile 包查找能解析时给出该 entry 的 `packageDir`,即包 README 与构建产物 `lib/` 所在目录。通过 [Plugin Manager](../../boot/plugin-manager/README.zh.md) 安装包含插件代码或 MCP 配置的组合包。
|
|
29
29
|
|
|
30
30
|
-----
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ kind: "package-reference"
|
|
|
35
35
|
<details>
|
|
36
36
|
<summary>实现细节 — 点击展开</summary>
|
|
37
37
|
|
|
38
|
-
Host provider 结合生成的 Service/Event
|
|
38
|
+
Host provider 结合生成的 Service/Event 目录、经 app-boot Config 投影器投影的运行中 Loader 树,以及请求 agent 的工具注册表。Client provider 通过现有检查注册表同步清单,并从已连接页面回答查询。宿主入口持有 Host provider 的注册,preset 行持有两个工具,都通过 Cordis effect;注册表拒绝重复的 provider id,所以 provider 按进程注册一次而不是按 preset 注册。检查直接读取 provider,不维护独立运行时投影,因此不发布不变式配套插件。
|
|
39
39
|
|
|
40
40
|
</details>
|
|
41
41
|
|
|
@@ -54,21 +54,22 @@ Host provider 结合生成的 Service/Event 目录与请求 agent 的工具注
|
|
|
54
54
|
|
|
55
55
|
#### 模型所见
|
|
56
56
|
|
|
57
|
-
[工具目录](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tool-cordis)
|
|
57
|
+
[工具目录](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tool-cordis) 描述两个只读检查工具。插件不贡献 system prompt 段落:工具描述已说明何时调用每个工具以及查询不会调用业务方法。在 `cordis` preset 中,首轮 skill catalog 携带两个随附技能的描述,把插件、MCP、组合编辑和未指定去向的视觉请求路由到覆盖 Plugin Manager、MCP 设置、Client 打包和 slot 注册的技能。查询结果包含所请求的 API 声明、当前工具 schema、带 Config 状态的运行中 entry 目录,或单个 entry 投影后的 Config JSON Schema。
|
|
58
58
|
|
|
59
59
|
#### Token 影响
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
插件可见时,只有两个工具 schema 进入模型请求。查询结果追加到转录中;精确查询避免加载无关声明。
|
|
62
62
|
|
|
63
63
|
#### KV Cache 影响
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
未改变的工具 schema 保持前缀稳定。查询结果追加到历史中;启用其他插件可能改变后续工具 schema。
|
|
66
66
|
|
|
67
67
|
## 已知限制与待办
|
|
68
68
|
|
|
69
69
|
<a id="known-limitations-and-deferred-work"></a>
|
|
70
70
|
|
|
71
71
|
- Client 查询等待页面响应或取消。检查不能调用服务方法、配置插件或执行生成代码。
|
|
72
|
+
- `Config.listConfigs` 只遍历 profile 的 Loader 树。Agent preset 的 `plugins` 列表挂载在独立的 preset 树中,所以只出现在 preset 声明里的插件不会被列出,除非 profile 树也挂载了它。
|
|
72
73
|
|
|
73
74
|
<a id="dev-note"></a>
|
|
74
75
|
### 开发备注
|