@hhuangpanda/dsh-automation 0.3.34 → 0.3.36
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.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
> **A fork of [alpacachen/dsh-automation](https://github.com/alpacachen/dsh-automation) that adds support for DSH 0.2.
|
|
1
|
+
> **A fork of [alpacachen/dsh-automation](https://github.com/alpacachen/dsh-automation) that adds support for newer DSH versions, tested on 0.2.2-rc.1.**
|
|
2
2
|
>
|
|
3
3
|
> If you used the original plugin, disable it before installing this one, or tasks will run twice.
|
|
4
4
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<p>
|
|
16
16
|
<a href="https://www.npmjs.com/package/@hhuangpanda/dsh-automation"><img alt="npm version" src="https://img.shields.io/npm/v/@hhuangpanda/dsh-automation?color=5b8def&label=npm"></a>
|
|
17
|
+
<a href="https://awesome-dsh-plugin.com/p/hhuangpanda/dsh-automation/"><img alt="Awesome DSH Plugin" src="https://awesome-dsh-plugin.com/badge.svg"></a>
|
|
17
18
|
<a href="https://github.com/hhuangpanda/dsh-automation/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/hhuangpanda/dsh-automation/actions/workflows/ci.yml/badge.svg"></a>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
@@ -58,7 +59,11 @@
|
|
|
58
59
|
|
|
59
60
|
## Get started
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
| Plugin version | Supported DSH versions |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| 0.3.36 and later | 0.1.7-rc.2 to the latest 0.2.2 RC |
|
|
65
|
+
| 0.3.35 | 0.1.7-rc.2 to the latest 0.2.1 RC (fails to load on 0.2.2) |
|
|
66
|
+
| 0.3.34 and earlier | 0.1.7-rc.2 to 0.2.0-rc.2 (fails to load on 0.2.1 and later) |
|
|
62
67
|
|
|
63
68
|
```sh
|
|
64
69
|
dsh plugin --profile web add @hhuangpanda/dsh-automation
|
package/README.zh.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
> **这是 [alpacachen/dsh-automation](https://github.com/alpacachen/dsh-automation) 的 fork
|
|
1
|
+
> **这是 [alpacachen/dsh-automation](https://github.com/alpacachen/dsh-automation) 的 fork,新增支持较新的 DSH 版本,已在 0.2.2-rc.1 上测试。**
|
|
2
2
|
>
|
|
3
3
|
> 如果你用过原版插件,请先停用它再安装本插件,否则任务会重复执行。
|
|
4
4
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<p>
|
|
16
16
|
<a href="https://www.npmjs.com/package/@hhuangpanda/dsh-automation"><img alt="npm version" src="https://img.shields.io/npm/v/@hhuangpanda/dsh-automation?color=5b8def&label=npm"></a>
|
|
17
|
+
<a href="https://awesome-dsh-plugin.com/p/hhuangpanda/dsh-automation/"><img alt="Awesome DSH Plugin" src="https://awesome-dsh-plugin.com/badge.svg"></a>
|
|
17
18
|
<a href="https://github.com/hhuangpanda/dsh-automation/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/hhuangpanda/dsh-automation/actions/workflows/ci.yml/badge.svg"></a>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
@@ -58,7 +59,11 @@
|
|
|
58
59
|
|
|
59
60
|
## 开始使用
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
| 插件版本 | 支持的 DSH 版本 |
|
|
63
|
+
| --- | --- |
|
|
64
|
+
| 0.3.36 及更高 | 0.1.7-rc.2 至最新的 0.2.2 RC |
|
|
65
|
+
| 0.3.35 | 0.1.7-rc.2 至最新的 0.2.1 RC(无法在 0.2.2 加载) |
|
|
66
|
+
| 0.3.34 及更早 | 0.1.7-rc.2 至 0.2.0-rc.2(无法在 0.2.1 及以上版本加载) |
|
|
62
67
|
|
|
63
68
|
```sh
|
|
64
69
|
dsh plugin --profile web add @hhuangpanda/dsh-automation
|
|
Binary file
|
|
Binary file
|
|
@@ -51,7 +51,6 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
51
51
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
52
|
});
|
|
53
53
|
import { ReasoningEffortId } from '@deepseek-ai/dsh-llm';
|
|
54
|
-
import { standingMountFor } from '@deepseek-ai/dsh-agent-preset-registry';
|
|
55
54
|
import { isUserInvocable, renderSkillContent } from '@deepseek-ai/dsh-skill';
|
|
56
55
|
import { assertProviderModelPair, validateReasoningExecution } from './validation.js';
|
|
57
56
|
import '@deepseek-ai/dsh-agent-preset-registry';
|
|
@@ -195,10 +194,9 @@ export class AgentConfiguration {
|
|
|
195
194
|
if (task.execution.skills.length === 0)
|
|
196
195
|
return [];
|
|
197
196
|
const skills = this.ctx.agentPresets.serviceFor(agent, 'skills') ?? this.ctx.skills;
|
|
198
|
-
const scope = standingMountFor(agent.ctx)?.key;
|
|
199
197
|
const loaded = [];
|
|
200
198
|
for (const name of task.execution.skills) {
|
|
201
|
-
const skill = await skills.get(name, { cwd: task.execution.cwd, scope });
|
|
199
|
+
const skill = await skills.get(name, { cwd: task.execution.cwd, scope: agent });
|
|
202
200
|
if (skill === undefined)
|
|
203
201
|
throw new Error(`Selected skill ${name} is unavailable.`);
|
|
204
202
|
if (!isUserInvocable(skill))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hhuangpanda/dsh-automation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.36",
|
|
4
4
|
"description": "Durable agent-created automations for DeepSeek Harness",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -68,75 +68,75 @@
|
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@deepseek-ai/cordis": "^4.0.4",
|
|
71
|
-
"@deepseek-ai/dsh-agent": "
|
|
72
|
-
"@deepseek-ai/dsh-agent-preset-registry": "
|
|
73
|
-
"@deepseek-ai/dsh-api-session-controller": "
|
|
74
|
-
"@deepseek-ai/dsh-api-workspace-controller": "
|
|
75
|
-
"@deepseek-ai/dsh-client-connection": "
|
|
76
|
-
"@deepseek-ai/dsh-client-locale": "
|
|
77
|
-
"@deepseek-ai/dsh-client-ui-layout": "
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-renderer": "
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-session": "
|
|
80
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "
|
|
81
|
-
"@deepseek-ai/dsh-client-ui-workspace": "
|
|
82
|
-
"@deepseek-ai/dsh-host-webserver": "
|
|
83
|
-
"@deepseek-ai/dsh-llm": "
|
|
84
|
-
"@deepseek-ai/dsh-permission-presets": "
|
|
85
|
-
"@deepseek-ai/dsh-session": "
|
|
86
|
-
"@deepseek-ai/dsh-session-title": "
|
|
87
|
-
"@deepseek-ai/dsh-skill": "
|
|
88
|
-
"@deepseek-ai/dsh-tools": "
|
|
89
|
-
"@deepseek-ai/dsh-util-values": "
|
|
90
|
-
"@deepseek-ai/dsh-workspace": "
|
|
71
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
72
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
73
|
+
"@deepseek-ai/dsh-api-session-controller": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
74
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
75
|
+
"@deepseek-ai/dsh-client-connection": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
76
|
+
"@deepseek-ai/dsh-client-locale": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
77
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-session": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
81
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
82
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
83
|
+
"@deepseek-ai/dsh-llm": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
84
|
+
"@deepseek-ai/dsh-permission-presets": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
85
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
86
|
+
"@deepseek-ai/dsh-session-title": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
87
|
+
"@deepseek-ai/dsh-skill": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
88
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
89
|
+
"@deepseek-ai/dsh-util-values": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
90
|
+
"@deepseek-ai/dsh-workspace": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2",
|
|
91
91
|
"react": "^18.2.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@deepseek-ai/cordis": "
|
|
95
|
-
"@deepseek-ai/cordis-plugin-include": "1.0
|
|
96
|
-
"@deepseek-ai/cordis-plugin-loader": "1.0
|
|
97
|
-
"@deepseek-ai/dsh-agent": "^0.2.
|
|
98
|
-
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.
|
|
99
|
-
"@deepseek-ai/dsh-api-remotes": "^0.2.
|
|
100
|
-
"@deepseek-ai/dsh-api-session-controller": "^0.2.
|
|
101
|
-
"@deepseek-ai/dsh-api-workspace-controller": "^0.2.
|
|
102
|
-
"@deepseek-ai/dsh-atomic-write": "^0.2.
|
|
103
|
-
"@deepseek-ai/dsh-attachment": "^0.2.
|
|
104
|
-
"@deepseek-ai/dsh-client-connection": "^0.2.
|
|
105
|
-
"@deepseek-ai/dsh-client-locale": "^0.2.
|
|
106
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.
|
|
107
|
-
"@deepseek-ai/dsh-client-ui-layout": "^0.2.
|
|
108
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.2.
|
|
109
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.
|
|
110
|
-
"@deepseek-ai/dsh-client-ui-session": "^0.2.
|
|
111
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "^0.2.
|
|
112
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.2.
|
|
113
|
-
"@deepseek-ai/dsh-client-ui-workspace": "^0.2.
|
|
114
|
-
"@deepseek-ai/dsh-commands": "^0.2.
|
|
115
|
-
"@deepseek-ai/dsh-home-paths": "^0.2.
|
|
116
|
-
"@deepseek-ai/dsh-host-webserver": "^0.2.
|
|
94
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
95
|
+
"@deepseek-ai/cordis-plugin-include": "~1.1.0",
|
|
96
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.1.0",
|
|
97
|
+
"@deepseek-ai/dsh-agent": "^0.2.2-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.2-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-api-remotes": "^0.2.2-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.2.2-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-api-workspace-controller": "^0.2.2-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-atomic-write": "^0.2.2-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-attachment": "^0.2.2-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-client-connection": "^0.2.2-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-client-locale": "^0.2.2-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.2-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-client-ui-layout": "^0.2.2-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.2.2-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.2.2-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "^0.2.2-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-client-ui-workspace": "^0.2.2-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-commands": "^0.2.2-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-home-paths": "^0.2.2-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-host-webserver": "^0.2.2-rc.1",
|
|
117
117
|
"@deepseek-ai/dsh-invariants": "^0.2.0-rc.2",
|
|
118
|
-
"@deepseek-ai/dsh-llm": "^0.2.
|
|
119
|
-
"@deepseek-ai/dsh-llm-retry": "^0.2.
|
|
120
|
-
"@deepseek-ai/dsh-permission-presets": "^0.2.
|
|
121
|
-
"@deepseek-ai/dsh-sandbox": "^0.2.
|
|
122
|
-
"@deepseek-ai/dsh-sandbox-policy": "^0.2.
|
|
123
|
-
"@deepseek-ai/dsh-scope": "^0.2.
|
|
124
|
-
"@deepseek-ai/dsh-session": "^0.2.
|
|
125
|
-
"@deepseek-ai/dsh-session-persistence": "^0.2.
|
|
126
|
-
"@deepseek-ai/dsh-session-projection": "^0.2.
|
|
127
|
-
"@deepseek-ai/dsh-session-title": "^0.2.
|
|
128
|
-
"@deepseek-ai/dsh-settings": "^0.2.
|
|
129
|
-
"@deepseek-ai/dsh-shell": "^0.2.
|
|
130
|
-
"@deepseek-ai/dsh-skill": "^0.2.
|
|
131
|
-
"@deepseek-ai/dsh-storage": "^0.2.
|
|
132
|
-
"@deepseek-ai/dsh-storage-domain": "^0.2.
|
|
133
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.
|
|
134
|
-
"@deepseek-ai/dsh-tools": "^0.2.
|
|
135
|
-
"@deepseek-ai/dsh-typert-protocol": "^0.2.
|
|
136
|
-
"@deepseek-ai/dsh-typert-registry": "^0.2.
|
|
137
|
-
"@deepseek-ai/dsh-user-approval": "^0.2.
|
|
138
|
-
"@deepseek-ai/dsh-util-values": "^0.2.
|
|
139
|
-
"@deepseek-ai/dsh-workspace": "^0.2.
|
|
118
|
+
"@deepseek-ai/dsh-llm": "^0.2.2-rc.1",
|
|
119
|
+
"@deepseek-ai/dsh-llm-retry": "^0.2.2-rc.1",
|
|
120
|
+
"@deepseek-ai/dsh-permission-presets": "^0.2.2-rc.1",
|
|
121
|
+
"@deepseek-ai/dsh-sandbox": "^0.2.2-rc.1",
|
|
122
|
+
"@deepseek-ai/dsh-sandbox-policy": "^0.2.2-rc.1",
|
|
123
|
+
"@deepseek-ai/dsh-scope": "^0.2.2-rc.1",
|
|
124
|
+
"@deepseek-ai/dsh-session": "^0.2.2-rc.1",
|
|
125
|
+
"@deepseek-ai/dsh-session-persistence": "^0.2.2-rc.1",
|
|
126
|
+
"@deepseek-ai/dsh-session-projection": "^0.2.2-rc.1",
|
|
127
|
+
"@deepseek-ai/dsh-session-title": "^0.2.2-rc.1",
|
|
128
|
+
"@deepseek-ai/dsh-settings": "^0.2.2-rc.1",
|
|
129
|
+
"@deepseek-ai/dsh-shell": "^0.2.2-rc.1",
|
|
130
|
+
"@deepseek-ai/dsh-skill": "^0.2.2-rc.1",
|
|
131
|
+
"@deepseek-ai/dsh-storage": "^0.2.2-rc.1",
|
|
132
|
+
"@deepseek-ai/dsh-storage-domain": "^0.2.2-rc.1",
|
|
133
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.1",
|
|
134
|
+
"@deepseek-ai/dsh-tools": "^0.2.2-rc.1",
|
|
135
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.2.2-rc.1",
|
|
136
|
+
"@deepseek-ai/dsh-typert-registry": "^0.2.2-rc.1",
|
|
137
|
+
"@deepseek-ai/dsh-user-approval": "^0.2.2-rc.1",
|
|
138
|
+
"@deepseek-ai/dsh-util-values": "^0.2.2-rc.1",
|
|
139
|
+
"@deepseek-ai/dsh-workspace": "^0.2.2-rc.1",
|
|
140
140
|
"@types/node": "^22.15.0",
|
|
141
141
|
"@types/react": "^18.3.1",
|
|
142
142
|
"c8": "^10.1.3",
|
|
@@ -149,7 +149,8 @@
|
|
|
149
149
|
"typescript-eslint": "^8.70.0"
|
|
150
150
|
},
|
|
151
151
|
"engines": {
|
|
152
|
-
"node": ">=22"
|
|
152
|
+
"node": ">=22",
|
|
153
|
+
"dsh": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || >=0.2.1-rc.1 <0.2.1 || >=0.2.2-rc.1 <0.2.2"
|
|
153
154
|
},
|
|
154
155
|
"license": "MIT",
|
|
155
156
|
"publishConfig": {
|
package/screenshots.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
["docs/images/automation-overview-en.png", "docs/images/automation-overview-zh.png"]
|
|
1
|
+
["docs/images/automation-overview-en.png", "docs/images/automation-example-en.png", "docs/images/automation-overview-zh.png", "docs/images/automation-example-zh.png"]
|