feat(plugin): compose optional bundles inside agent presets

This commit is contained in:
Tianyi Cui committed 2026-10-06 23:48:58 +08:00
1 parent 4da62dc8f4
commit 3aa1cab43a
109 files changed
+3442 -130

No files matched your search

+78
View File
@@ -0,0 +1,78 @@
---
description: "Edit files with the str_replace_editor tool."
kind: "package-bundle"
---
# @deepseek-ai/dsh-string-editor
English | [中文](README.zh.md)
## Summary
Add str_replace_editor to standard, cordis, and ptc alongside their existing filesystem tools. It ships switched off in Web and Desktop. Select it in Plugins to enable it.
## Table of Contents
- [Use this package](#use-this-package)
- [Understand the implementation](#understand-the-implementation)
- [Further Exploration](#further-exploration)
- [Model Experience](#model-experience)
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
- [Dev Note](#dev-note)
-----
<a id="use-this-package"></a>
## Use this package
In Web or Desktop, open Plugins and enable **String editor** in Official. Switch it off to remove its profile layer.
New Agents and subsequently reopened Sessions use the selected composition; live Agents retain their existing plugins. The minimal preset and host-level tool catalog remain unchanged.
-----
<a id="understand-the-implementation"></a>
## Understand the implementation
<details>
<summary>Implementation details — click to expand</summary>
[`cordis.patch.yml`](cordis.patch.yml) contributes rows through `preset: preset-standard`, `preset: preset-cordis`, and `preset: preset-ptc`. Later profile patches can override their settings. The [profile composer](../../boot/app-boot/README.md) owns patch ordering and errors.
</details>
-----
<a id="further-exploration"></a>
## Further Exploration
[Capability implementation](../../fs/tool-str-replace-editor/README.md)
-----
<a id="model-experience"></a>
## Model Experience
Indirectly, through the [capability implementation](../../fs/tool-str-replace-editor/README.md), which owns model context and results.
#### KV Cache effect
The layer adds no request content directly; the capability implementation owns cache effects from tools, prompts, and results.
## Known Limitations and Deferred Work
<a id="known-limitations-and-deferred-work"></a>
- This editor overlaps with existing filesystem tools and follows their workspace authorization and observation requirements.
-----
<a id="dev-note"></a>
### Dev Note
<details>
<summary>Maintainer context — click to expand</summary>
None.
</details>
@@ -0,0 +1,78 @@
---
description: "使用 str_replace_editor 工具编辑文件。"
kind: "package-bundle"
---
# @deepseek-ai/dsh-string-editor
[English](README.md) | 中文
## 概要
为 standard、cordis 和 ptc 添加 str_replace_editor,保留原有文件系统工具。 Web 和 Desktop 随附此功能,默认关闭。在插件页选择它即可启用。
## 目录
- [使用此包](#use-this-package)
- [理解实现](#understand-the-implementation)
- [进一步探索](#further-exploration)
- [模型体验](#model-experience)
- [已知限制与暂缓工作](#known-limitations-and-deferred-work)
- [开发备注](#dev-note)
-----
<a id="use-this-package"></a>
## 使用此包
在 Web 或 Desktop 中打开插件页,在官方分组启用 **字符串编辑器**。关闭后移除其配置层。
新智能体和随后重新打开的会话使用所选组合;正在运行的智能体保留已有插件。minimal 预设和 Host 层工具目录保持不变。
-----
<a id="understand-the-implementation"></a>
## 理解实现
<details>
<summary>实现细节 — 点击展开</summary>
[`cordis.patch.yml`](cordis.patch.yml) 通过 `preset: preset-standard`、`preset: preset-cordis` 和 `preset: preset-ptc` 贡献插件行。后续配置补丁可以覆盖这些设置。[配置组合器](../../boot/app-boot/README.zh.md) 负责补丁顺序和错误处理。
</details>
-----
<a id="further-exploration"></a>
## 进一步探索
[能力实现](../../fs/tool-str-replace-editor/README.zh.md)
-----
<a id="model-experience"></a>
## 模型体验
间接影响,通过[能力实现](../../fs/tool-str-replace-editor/README.zh.md) 贡献模型上下文和结果。
#### KV Cache 影响
此配置层不直接添加请求内容;能力实现负责工具目录、提示和结果的缓存影响。
## 已知限制与暂缓工作
<a id="known-limitations-and-deferred-work"></a>
- 此编辑器与现有文件系统工具的功能重叠,并遵守工作区授权和文件观察要求。
-----
<a id="dev-note"></a>
### 开发备注
<details>
<summary>维护者上下文 — 点击展开</summary>
无。
</details>
@@ -0,0 +1,14 @@
- preset: preset-standard
insert:
- id: optional-tool-str-replace-editor
name: '@deepseek-ai/dsh-tool-str-replace-editor'
- preset: preset-cordis
insert:
- id: optional-tool-str-replace-editor
name: '@deepseek-ai/dsh-tool-str-replace-editor'
- preset: preset-ptc
insert:
- id: optional-tool-str-replace-editor
name: '@deepseek-ai/dsh-tool-str-replace-editor'
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#7c3aed"/><g fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m18 23-8 9 8 9m28-18 8 9-8 9M37 17 27 47"/></g></svg>

After

Width:  |  Height:  |  Size: 270 B

@@ -0,0 +1,6 @@
{
"meta": {
"title": "String editor",
"description": "Edit files with the str_replace_editor tool."
}
}
@@ -0,0 +1,6 @@
{
"meta": {
"title": "字符串编辑器",
"description": "使用 str_replace_editor 工具编辑文件。"
}
}
@@ -0,0 +1,49 @@
{
"name": "@deepseek-ai/dsh-string-editor",
"description": "Edit files with the str_replace_editor tool.",
"version": "0.2.1-alpha.1",
"icon": "./icon.svg",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/deepseek-harness/deepseek-harness.git",
"directory": "packages/bundle/string-editor"
},
"type": "module",
"main": "lib/index.js",
"types": "lib/types/index.d.ts",
"exports": {
".": {
"types": "./lib/types/index.d.ts",
"default": "./lib/index.js"
},
"./cordis.patch.yml": "./cordis.patch.yml",
"./locale/*.json": "./locale/*.json",
"./src/*": "./src/*",
"./package.json": "./package.json"
},
"files": [
"icon.svg",
"locale/*.json",
"lib/index.js",
"cordis.patch.yml",
"lib/types/**/*.d.ts"
],
"license": "MIT",
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
}
},
"dependencies": {
"@deepseek-ai/dsh-tool-str-replace-editor": "workspace:*"
},
"peerDependencies": {
"@deepseek-ai/cordis": "workspace:~"
},
"devDependencies": {
"@deepseek-ai/cordis": "workspace:~"
}
}
@@ -0,0 +1,2 @@
/** String editor profile layer; runtime entries are declared in cordis.patch.yml. */
export {}
@@ -0,0 +1,15 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib/types"
},
"include": [
"src"
],
"references": [
{
"path": "../../../vendor/cordis"
}
]
}