dsh-auto-flow 0.1.0 → 0.1.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/LICENSE +20 -20
- package/README.md +12 -14
- package/lib/client.js +17 -17
- package/lib/typert.host.js +6 -6
- package/lib/typert.remote-client.js +6 -6
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 方世伟
|
|
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
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 方世伟
|
|
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
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
A DeepSeek Harness plugin.
|
|
1
|
+
# DeepSeek Harness 插件
|
|
4
2
|
|
|
5
3
|
DeepSeek Harness 插件 Bundle(Host 半 + Client 半同包),演示通信设计:
|
|
6
4
|
|
|
@@ -14,17 +12,17 @@ DeepSeek Harness 插件 Bundle(Host 半 + Client 半同包),演示通信
|
|
|
14
12
|
|
|
15
13
|
## 能力清单(每项都对齐官方实现)
|
|
16
14
|
|
|
17
|
-
| 能力 | 官方参考 | 位置
|
|
18
|
-
| ----------------------------------- | ------------------------------------- |
|
|
19
|
-
| `@Remote` 严格模式 | `goal`、`message-feedback` | `src/index.ts` 的 `send`/`list`
|
|
20
|
-
| `@Remote exec` 宿主 shell(轻执行) | `tool-bash`(shell seam) | `src/index.ts` 的 `exec`
|
|
21
|
-
| 模型工具 | `tool-bash`、`tool-todo` | `plugin_auto_flow`(`defineTool` + `presentCall`)
|
|
22
|
-
| 斜杠命令 | `commands` + `plan-mode` | `/auto-flow`(`ctx.commands.register`)
|
|
23
|
-
| 插件 Config + 设置 UI | `settings` + `llm-deepseek` | `installSection` + `settings.general.item`
|
|
24
|
-
| 持久化(domain storage) | `storage-domain` + `message-feedback` | `src/domain.ts`
|
|
25
|
-
| 客户端 UI 槽位(slots) | `ui-goal`、`ui-message-feedback` | `conversation.input.dock` 等三槽位
|
|
26
|
-
| 多语言 locale | `ui-*` 的 `locales.ts` | `src/client/locales.ts`
|
|
27
|
-
| 跨插件服务协作 | Cordis `Service` | `dsh-auto-flow-core` 的 `autoFlowFormatter`
|
|
15
|
+
| 能力 | 官方参考 | 位置 |
|
|
16
|
+
| ----------------------------------- | ------------------------------------- | -------------------------------------------------- |
|
|
17
|
+
| `@Remote` 严格模式 | `goal`、`message-feedback` | `src/index.ts` 的 `send`/`list` |
|
|
18
|
+
| `@Remote exec` 宿主 shell(轻执行) | `tool-bash`(shell seam) | `src/index.ts` 的 `exec` |
|
|
19
|
+
| 模型工具 | `tool-bash`、`tool-todo` | `plugin_auto_flow`(`defineTool` + `presentCall`) |
|
|
20
|
+
| 斜杠命令 | `commands` + `plan-mode` | `/auto-flow`(`ctx.commands.register`) |
|
|
21
|
+
| 插件 Config + 设置 UI | `settings` + `llm-deepseek` | `installSection` + `settings.general.item` |
|
|
22
|
+
| 持久化(domain storage) | `storage-domain` + `message-feedback` | `src/domain.ts` |
|
|
23
|
+
| 客户端 UI 槽位(slots) | `ui-goal`、`ui-message-feedback` | `conversation.input.dock` 等三槽位 |
|
|
24
|
+
| 多语言 locale | `ui-*` 的 `locales.ts` | `src/client/locales.ts` |
|
|
25
|
+
| 跨插件服务协作 | Cordis `Service` | `dsh-auto-flow-core` 的 `autoFlowFormatter` |
|
|
28
26
|
|
|
29
27
|
## 开发
|
|
30
28
|
|
package/lib/client.js
CHANGED
|
@@ -5153,7 +5153,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5153
5153
|
},
|
|
5154
5154
|
sourceLocation: {
|
|
5155
5155
|
"file": "packages/dsh-auto-flow/src/index.ts",
|
|
5156
|
-
"line":
|
|
5156
|
+
"line": 509,
|
|
5157
5157
|
"column": 9
|
|
5158
5158
|
}
|
|
5159
5159
|
},
|
|
@@ -5180,7 +5180,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5180
5180
|
},
|
|
5181
5181
|
sourceLocation: {
|
|
5182
5182
|
"file": "packages/dsh-auto-flow/src/index.ts",
|
|
5183
|
-
"line":
|
|
5183
|
+
"line": 583,
|
|
5184
5184
|
"column": 9
|
|
5185
5185
|
}
|
|
5186
5186
|
},
|
|
@@ -5207,7 +5207,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5207
5207
|
},
|
|
5208
5208
|
sourceLocation: {
|
|
5209
5209
|
"file": "packages/dsh-auto-flow/src/index.ts",
|
|
5210
|
-
"line":
|
|
5210
|
+
"line": 557,
|
|
5211
5211
|
"column": 9
|
|
5212
5212
|
}
|
|
5213
5213
|
},
|
|
@@ -5225,7 +5225,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5225
5225
|
},
|
|
5226
5226
|
sourceLocation: {
|
|
5227
5227
|
"file": "packages/dsh-auto-flow/src/index.ts",
|
|
5228
|
-
"line":
|
|
5228
|
+
"line": 485,
|
|
5229
5229
|
"column": 3
|
|
5230
5230
|
}
|
|
5231
5231
|
},
|
|
@@ -5243,7 +5243,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5243
5243
|
},
|
|
5244
5244
|
sourceLocation: {
|
|
5245
5245
|
"file": "packages/dsh-auto-flow/src/index.ts",
|
|
5246
|
-
"line":
|
|
5246
|
+
"line": 479,
|
|
5247
5247
|
"column": 3
|
|
5248
5248
|
}
|
|
5249
5249
|
},
|
|
@@ -5270,7 +5270,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5270
5270
|
},
|
|
5271
5271
|
sourceLocation: {
|
|
5272
5272
|
"file": "packages/dsh-auto-flow/src/index.ts",
|
|
5273
|
-
"line":
|
|
5273
|
+
"line": 451,
|
|
5274
5274
|
"column": 9
|
|
5275
5275
|
}
|
|
5276
5276
|
}
|
|
@@ -5288,15 +5288,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5288
5288
|
document.head.appendChild(tag);
|
|
5289
5289
|
}
|
|
5290
5290
|
var DemoBar_module_css_default = {
|
|
5291
|
-
"
|
|
5291
|
+
"result": "_0Yhqva_result",
|
|
5292
5292
|
"markers": "_0Yhqva_markers",
|
|
5293
|
-
"
|
|
5293
|
+
"bar": "_0Yhqva_bar",
|
|
5294
5294
|
"row": "_0Yhqva_row",
|
|
5295
|
-
"failed": "_0Yhqva_failed",
|
|
5296
|
-
"result": "_0Yhqva_result",
|
|
5297
5295
|
"button": "_0Yhqva_button",
|
|
5296
|
+
"output": "_0Yhqva_output",
|
|
5298
5297
|
"checkbox": "_0Yhqva_checkbox",
|
|
5299
|
-
"
|
|
5298
|
+
"input": "_0Yhqva_input",
|
|
5299
|
+
"failed": "_0Yhqva_failed"
|
|
5300
5300
|
};
|
|
5301
5301
|
//#endregion
|
|
5302
5302
|
//#region src/client/DemoBar.tsx
|
|
@@ -5556,10 +5556,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5556
5556
|
document.head.appendChild(tag);
|
|
5557
5557
|
}
|
|
5558
5558
|
var GreetingDock_module_css_default = {
|
|
5559
|
-
"dock": "MP9Bkq_dock",
|
|
5560
|
-
"label": "MP9Bkq_label",
|
|
5561
5559
|
"count": "MP9Bkq_count",
|
|
5562
|
-
"last": "MP9Bkq_last"
|
|
5560
|
+
"last": "MP9Bkq_last",
|
|
5561
|
+
"label": "MP9Bkq_label",
|
|
5562
|
+
"dock": "MP9Bkq_dock"
|
|
5563
5563
|
};
|
|
5564
5564
|
//#endregion
|
|
5565
5565
|
//#region src/client/GreetingDock.tsx
|
|
@@ -5621,11 +5621,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
5621
5621
|
document.head.appendChild(tag);
|
|
5622
5622
|
}
|
|
5623
5623
|
var SettingsRow_module_css_default = {
|
|
5624
|
-
"input": "Seaz9W_input",
|
|
5625
5624
|
"row": "Seaz9W_row",
|
|
5625
|
+
"status": "Seaz9W_status",
|
|
5626
|
+
"input": "Seaz9W_input",
|
|
5626
5627
|
"button": "Seaz9W_button",
|
|
5627
|
-
"label": "Seaz9W_label"
|
|
5628
|
-
"status": "Seaz9W_status"
|
|
5628
|
+
"label": "Seaz9W_label"
|
|
5629
5629
|
};
|
|
5630
5630
|
//#endregion
|
|
5631
5631
|
//#region src/client/SettingsRow.tsx
|
package/lib/typert.host.js
CHANGED
|
@@ -91,7 +91,7 @@ export const TYPERT = {
|
|
|
91
91
|
typeSymbol: 'dsh-auto-flow/types#ExecResult',
|
|
92
92
|
schema: dsh_auto_flow_autoFlow_exec_result$schema,
|
|
93
93
|
},
|
|
94
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
94
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":509,"column":9},
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
id: 'dsh-auto-flow#autoFlow/execKill',
|
|
@@ -116,7 +116,7 @@ export const TYPERT = {
|
|
|
116
116
|
typeSymbol: 'dsh-auto-flow/types#ExecKillResult',
|
|
117
117
|
schema: dsh_auto_flow_autoFlow_execKill_result$schema,
|
|
118
118
|
},
|
|
119
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
119
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":583,"column":9},
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
id: 'dsh-auto-flow#autoFlow/execRead',
|
|
@@ -141,7 +141,7 @@ export const TYPERT = {
|
|
|
141
141
|
typeSymbol: 'dsh-auto-flow/types#ExecReadResult',
|
|
142
142
|
schema: dsh_auto_flow_autoFlow_execRead_result$schema,
|
|
143
143
|
},
|
|
144
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
144
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":557,"column":9},
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
id: 'dsh-auto-flow#autoFlow/last',
|
|
@@ -156,7 +156,7 @@ export const TYPERT = {
|
|
|
156
156
|
typeSymbol: 'dsh-auto-flow#autoFlow/last:result',
|
|
157
157
|
schema: dsh_auto_flow_autoFlow_last_result$schema,
|
|
158
158
|
},
|
|
159
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
159
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":485,"column":3},
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
id: 'dsh-auto-flow#autoFlow/list',
|
|
@@ -171,7 +171,7 @@ export const TYPERT = {
|
|
|
171
171
|
typeSymbol: 'dsh-auto-flow#autoFlow/list:result',
|
|
172
172
|
schema: dsh_auto_flow_autoFlow_list_result$schema,
|
|
173
173
|
},
|
|
174
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
174
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":479,"column":3},
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
id: 'dsh-auto-flow#autoFlow/send',
|
|
@@ -196,7 +196,7 @@ export const TYPERT = {
|
|
|
196
196
|
typeSymbol: 'dsh-auto-flow/types#Greeting',
|
|
197
197
|
schema: dsh_auto_flow_autoFlow_send_result$schema,
|
|
198
198
|
},
|
|
199
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
199
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":451,"column":9},
|
|
200
200
|
},
|
|
201
201
|
],
|
|
202
202
|
model: {
|
|
@@ -88,7 +88,7 @@ export const TYPERT_REMOTE = {
|
|
|
88
88
|
typeSymbol: 'dsh-auto-flow/types#ExecResult',
|
|
89
89
|
schema: dsh_auto_flow_autoFlow_exec_result$schema,
|
|
90
90
|
},
|
|
91
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
91
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":509,"column":9},
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
id: 'dsh-auto-flow#autoFlow/execKill',
|
|
@@ -113,7 +113,7 @@ export const TYPERT_REMOTE = {
|
|
|
113
113
|
typeSymbol: 'dsh-auto-flow/types#ExecKillResult',
|
|
114
114
|
schema: dsh_auto_flow_autoFlow_execKill_result$schema,
|
|
115
115
|
},
|
|
116
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
116
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":583,"column":9},
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
id: 'dsh-auto-flow#autoFlow/execRead',
|
|
@@ -138,7 +138,7 @@ export const TYPERT_REMOTE = {
|
|
|
138
138
|
typeSymbol: 'dsh-auto-flow/types#ExecReadResult',
|
|
139
139
|
schema: dsh_auto_flow_autoFlow_execRead_result$schema,
|
|
140
140
|
},
|
|
141
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
141
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":557,"column":9},
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
id: 'dsh-auto-flow#autoFlow/last',
|
|
@@ -153,7 +153,7 @@ export const TYPERT_REMOTE = {
|
|
|
153
153
|
typeSymbol: 'dsh-auto-flow#autoFlow/last:result',
|
|
154
154
|
schema: dsh_auto_flow_autoFlow_last_result$schema,
|
|
155
155
|
},
|
|
156
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
156
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":485,"column":3},
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
id: 'dsh-auto-flow#autoFlow/list',
|
|
@@ -168,7 +168,7 @@ export const TYPERT_REMOTE = {
|
|
|
168
168
|
typeSymbol: 'dsh-auto-flow#autoFlow/list:result',
|
|
169
169
|
schema: dsh_auto_flow_autoFlow_list_result$schema,
|
|
170
170
|
},
|
|
171
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
171
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":479,"column":3},
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
id: 'dsh-auto-flow#autoFlow/send',
|
|
@@ -193,7 +193,7 @@ export const TYPERT_REMOTE = {
|
|
|
193
193
|
typeSymbol: 'dsh-auto-flow/types#Greeting',
|
|
194
194
|
schema: dsh_auto_flow_autoFlow_send_result$schema,
|
|
195
195
|
},
|
|
196
|
-
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":
|
|
196
|
+
sourceLocation: {"file":"packages/dsh-auto-flow/src/index.ts","line":451,"column":9},
|
|
197
197
|
},
|
|
198
198
|
],
|
|
199
199
|
}
|