@deepseek-ai/dsh-experimental-ralph-bundle 0.0.0-stage → 0.2.1-alpha.3
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/LICENSE +21 -0
- package/README.i18n.yaml +37 -0
- package/README.md +77 -2
- package/README.zh.md +78 -0
- package/cordis.patch.yml +16 -0
- package/icon.svg +1 -0
- package/lib/index.js +1 -0
- package/lib/types/index.d.ts +3 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +47 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DeepSeek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.i18n.yaml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm run verify-translation-pairing --write packages/experimental/ralph-bundle/README.md
|
|
5
|
+
/:
|
|
6
|
+
en: 471abb0843949bd8
|
|
7
|
+
zh: 57662fb79022166e
|
|
8
|
+
/deepseek-ai-dsh-experimental-ralph-bundle:
|
|
9
|
+
en: d1c47cc0dd1ea81c
|
|
10
|
+
zh: a0ff6438eb9ccbf4
|
|
11
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/summary:
|
|
12
|
+
en: 2d0d6090157ea5ec
|
|
13
|
+
zh: 55c9669c4bf44cb9
|
|
14
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/table-of-contents:
|
|
15
|
+
en: d152484eb41ac6b4
|
|
16
|
+
zh: 988e839059414d27
|
|
17
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/use-this-package:
|
|
18
|
+
en: bb91c59b7a474054
|
|
19
|
+
zh: 2ae97c4106a71c74
|
|
20
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/understand-the-implementation:
|
|
21
|
+
en: c796a041544eabd2
|
|
22
|
+
zh: 25e5d4f4965e3f30
|
|
23
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/further-exploration:
|
|
24
|
+
en: 38086d7ddaa3088a
|
|
25
|
+
zh: e23269ca4c88c496
|
|
26
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/model-experience:
|
|
27
|
+
en: bad19e0e842cc0f2
|
|
28
|
+
zh: 0b14cdf238f6777e
|
|
29
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/model-experience/kv-cache-effect:
|
|
30
|
+
en: 25f20eda0e696067
|
|
31
|
+
zh: 378c4a15a5704ba0
|
|
32
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/known-limitations-and-deferred-work:
|
|
33
|
+
en: 39918e19422a80c1
|
|
34
|
+
zh: 71346d112bdea43f
|
|
35
|
+
/deepseek-ai-dsh-experimental-ralph-bundle/known-limitations-and-deferred-work/dev-note:
|
|
36
|
+
en: 279d01435256cd2a
|
|
37
|
+
zh: 83780964e5de2f54
|
package/README.md
CHANGED
|
@@ -1,3 +1,78 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
description: "Run explicitly requested repeated work with fresh agents."
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
# @deepseek-ai/dsh-experimental-ralph-bundle
|
|
7
|
+
|
|
8
|
+
English | [中文](README.zh.md)
|
|
9
|
+
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
Add the experimental Ralph tool to every Agent as a global tool for human-requested repeated work with fresh child agents. It ships switched off in Web and Desktop. Select it in Plugins to enable it.
|
|
13
|
+
|
|
14
|
+
## Table of Contents
|
|
15
|
+
|
|
16
|
+
- [Use this package](#use-this-package)
|
|
17
|
+
- [Understand the implementation](#understand-the-implementation)
|
|
18
|
+
- [Further Exploration](#further-exploration)
|
|
19
|
+
- [Model Experience](#model-experience)
|
|
20
|
+
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
|
21
|
+
- [Dev Note](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## Use this package
|
|
27
|
+
|
|
28
|
+
In Web or Desktop, open Plugins and enable **Ralph loops** in Official. Switch it off to remove its profile layer.
|
|
29
|
+
|
|
30
|
+
Enabling or disabling the bundle registers or removes its global tools in the running Host, so every Agent sees the change on its next request, in every preset including minimal.
|
|
31
|
+
|
|
32
|
+
-----
|
|
33
|
+
|
|
34
|
+
<a id="understand-the-implementation"></a>
|
|
35
|
+
## Understand the implementation
|
|
36
|
+
|
|
37
|
+
<details>
|
|
38
|
+
<summary>Implementation details — click to expand</summary>
|
|
39
|
+
|
|
40
|
+
[`cordis.patch.yml`](cordis.patch.yml) inserts the Host group `optional-ralph`, which isolates its own `workflowEngine` and registers `tool-ralph` in the global tool layer. Later profile patches can replace the tool's configuration or disable it by row id; an override alone does not select the bundle. The [profile composer](../../boot/app-boot/README.md) owns patch ordering and errors.
|
|
41
|
+
|
|
42
|
+
</details>
|
|
43
|
+
|
|
44
|
+
-----
|
|
45
|
+
|
|
46
|
+
<a id="further-exploration"></a>
|
|
47
|
+
## Further Exploration
|
|
48
|
+
|
|
49
|
+
[Capability implementation](../tool-ralph/README.md)
|
|
50
|
+
|
|
51
|
+
-----
|
|
52
|
+
|
|
53
|
+
<a id="model-experience"></a>
|
|
54
|
+
## Model Experience
|
|
55
|
+
|
|
56
|
+
Indirectly, through the [capability implementation](../tool-ralph/README.md), which owns model context and results.
|
|
57
|
+
|
|
58
|
+
#### KV Cache effect
|
|
59
|
+
|
|
60
|
+
The layer adds no request content directly; the capability implementation owns cache effects from tools, prompts, and results. Toggling the bundle changes the tool list of live Sessions, which invalidates their cached request prefix once.
|
|
61
|
+
|
|
62
|
+
## Known Limitations and Deferred Work
|
|
63
|
+
|
|
64
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
65
|
+
|
|
66
|
+
- Ralph requires explicit human intent to run a loop and can consume substantial model tokens across rounds. Its workflow engine is isolated from other workflow tools.
|
|
67
|
+
|
|
68
|
+
-----
|
|
69
|
+
|
|
70
|
+
<a id="dev-note"></a>
|
|
71
|
+
### Dev Note
|
|
72
|
+
|
|
73
|
+
<details>
|
|
74
|
+
<summary>Maintainer context — click to expand</summary>
|
|
75
|
+
|
|
76
|
+
None.
|
|
77
|
+
|
|
78
|
+
</details>
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "使用新智能体执行用户明确要求的循环工作。"
|
|
3
|
+
kind: "package-bundle"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @deepseek-ai/dsh-experimental-ralph-bundle
|
|
7
|
+
|
|
8
|
+
[English](README.md) | 中文
|
|
9
|
+
|
|
10
|
+
## 概述
|
|
11
|
+
|
|
12
|
+
为所有智能体添加实验性 Ralph 全局工具,使用新的子智能体执行用户要求的循环工作。 Web 和 Desktop 随附此功能,默认关闭。在插件页选择它即可启用。
|
|
13
|
+
|
|
14
|
+
## 目录
|
|
15
|
+
|
|
16
|
+
- [使用此包](#use-this-package)
|
|
17
|
+
- [理解实现](#understand-the-implementation)
|
|
18
|
+
- [进一步探索](#further-exploration)
|
|
19
|
+
- [模型体验](#model-experience)
|
|
20
|
+
- [已知限制与暂缓工作](#known-limitations-and-deferred-work)
|
|
21
|
+
- [开发备注](#dev-note)
|
|
22
|
+
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
<a id="use-this-package"></a>
|
|
26
|
+
## 使用此包
|
|
27
|
+
|
|
28
|
+
在 Web 或 Desktop 中打开插件页,在官方分组启用 **Ralph 循环**。关闭后移除其配置层。
|
|
29
|
+
|
|
30
|
+
启用或关闭组合包会在运行中的 Host 注册或移除其全局工具,因此所有预设(包括 minimal)中的每个智能体都会在下一次请求时看到变化。
|
|
31
|
+
|
|
32
|
+
-----
|
|
33
|
+
|
|
34
|
+
<a id="understand-the-implementation"></a>
|
|
35
|
+
## 理解实现
|
|
36
|
+
|
|
37
|
+
<details>
|
|
38
|
+
<summary>实现细节 — 点击展开</summary>
|
|
39
|
+
|
|
40
|
+
[`cordis.patch.yml`](cordis.patch.yml) 插入 Host 组 `optional-ralph`,该组隔离自己的 `workflowEngine`,并在全局工具层注册 `tool-ralph`。后续配置补丁可以按条目 id 替换该工具的配置或禁用它;单独的覆盖不会选中组合包。[配置组合器](../../boot/app-boot/README.zh.md) 负责补丁顺序和错误处理。
|
|
41
|
+
|
|
42
|
+
</details>
|
|
43
|
+
|
|
44
|
+
-----
|
|
45
|
+
|
|
46
|
+
<a id="further-exploration"></a>
|
|
47
|
+
## 进一步探索
|
|
48
|
+
|
|
49
|
+
[能力实现](../tool-ralph/README.zh.md)
|
|
50
|
+
|
|
51
|
+
-----
|
|
52
|
+
|
|
53
|
+
<a id="model-experience"></a>
|
|
54
|
+
## 模型体验
|
|
55
|
+
|
|
56
|
+
间接影响,通过[能力实现](../tool-ralph/README.zh.md) 贡献模型上下文和结果。
|
|
57
|
+
|
|
58
|
+
#### KV Cache 影响
|
|
59
|
+
|
|
60
|
+
此配置层不直接添加请求内容;能力实现负责工具目录、提示和结果的缓存影响。切换组合包会改变运行中会话的工具列表,使其已缓存的请求前缀失效一次。
|
|
61
|
+
|
|
62
|
+
## 已知限制与暂缓工作
|
|
63
|
+
|
|
64
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
65
|
+
|
|
66
|
+
- Ralph 需要用户明确要求执行循环,多轮运行可能消耗大量模型 token。其工作流引擎与其他工作流工具隔离。
|
|
67
|
+
|
|
68
|
+
-----
|
|
69
|
+
|
|
70
|
+
<a id="dev-note"></a>
|
|
71
|
+
### 开发备注
|
|
72
|
+
|
|
73
|
+
<details>
|
|
74
|
+
<summary>维护者上下文 — 点击展开</summary>
|
|
75
|
+
|
|
76
|
+
无。
|
|
77
|
+
|
|
78
|
+
</details>
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
- insert:
|
|
2
|
+
- id: optional-ralph
|
|
3
|
+
name: cordis:group
|
|
4
|
+
group: true
|
|
5
|
+
isolate:
|
|
6
|
+
workflowEngine: true
|
|
7
|
+
config:
|
|
8
|
+
- id: optional-ralph-workflow
|
|
9
|
+
name: '@deepseek-ai/dsh-workflow-ptc'
|
|
10
|
+
config:
|
|
11
|
+
provider: spawn
|
|
12
|
+
- id: tool-ralph
|
|
13
|
+
name: '@deepseek-ai/dsh-tool-ralph'
|
|
14
|
+
config:
|
|
15
|
+
subagentProvider: spawn
|
|
16
|
+
maxRounds: 64
|
package/icon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.0486 28.4901C12.0858 28.4901 7.25195 23.6562 7.25195 17.6934C13.2148 17.6934 18.0486 22.5272 18.0486 28.4901Z" fill="#A797FC"></path><path d="M18.0486 6.89667C12.0858 6.89667 7.25195 11.7305 7.25195 17.6934C13.2148 17.6934 18.0486 12.8595 18.0486 6.89667Z" fill="url(#dsh_plugin_art_R0a)"></path><path d="M18.0485 28.4901C24.0114 28.4901 28.8452 23.6562 28.8452 17.6934C22.8824 17.6934 18.0485 22.5272 18.0485 28.4901Z" fill="#4561EE"></path><path d="M18.0485 6.89667C24.0114 6.89667 28.8452 11.7305 28.8452 17.6934C22.8824 17.6934 18.0485 12.8595 18.0485 6.89667Z" fill="#658EFF"></path><defs><linearGradient id="dsh_plugin_art_R0a" x1="16.7911" y1="16.1655" x2="8.98192" y2="8.74289" gradientUnits="userSpaceOnUse"><stop stop-color="#A23AE7"></stop><stop offset="1" stop-color="#E2E2E2"></stop></linearGradient></defs></svg>
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-experimental-ralph-bundle",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Run explicitly requested repeated work with fresh agents.",
|
|
4
|
+
"version": "0.2.1-alpha.3",
|
|
5
|
+
"icon": "./icon.svg",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
12
|
+
"directory": "packages/experimental/ralph-bundle"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "lib/index.js",
|
|
16
|
+
"types": "lib/types/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./lib/types/index.d.ts",
|
|
20
|
+
"default": "./lib/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
23
|
+
"./locale/*.json": "./locale/*.json",
|
|
24
|
+
"./src/*": "./src/*",
|
|
25
|
+
"./package.json": "./package.json"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"icon.svg",
|
|
29
|
+
"locale/*.json",
|
|
30
|
+
"lib/index.js",
|
|
31
|
+
"cordis.patch.yml",
|
|
32
|
+
"lib/types/**/*.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"dsh": {
|
|
36
|
+
"bundle": {
|
|
37
|
+
"patch": "./cordis.patch.yml"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@deepseek-ai/dsh-tool-ralph": "0.2.1-alpha.3",
|
|
42
|
+
"@deepseek-ai/dsh-workflow-ptc": "0.2.1-alpha.3"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.2"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.2"
|
|
49
|
+
}
|
|
6
50
|
}
|