dsh-my-go 0.1.4 → 0.1.5
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/dist/client.core.js +17 -4
- package/dist/client.js +17 -4
- package/package.json +1 -1
- package/src/client.js +19 -4
package/dist/client.core.js
CHANGED
|
@@ -217,10 +217,23 @@ function apply(ctx) {
|
|
|
217
217
|
setSaving(false);
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
|
-
const
|
|
220
|
+
const selectStyle = { background: "var(--surface, #1e1e1e)", color: "var(--text, #e0e0e0)", border: "1px solid var(--separator, #333)", borderRadius: 4, padding: "4px 8px", fontSize: 13, width: "100%", boxSizing: "border-box" };
|
|
221
221
|
const labelStyle = { fontSize: 12, color: "var(--text-secondary, #888)", marginBottom: 2 };
|
|
222
222
|
const cardStyle = { border: "1px solid var(--separator, #333)", borderRadius: 8, padding: 12, marginBottom: 12 };
|
|
223
223
|
const rowStyle = { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 8, marginBottom: 8 };
|
|
224
|
+
const PROVIDERS = ["", "octopus", "deepseek"];
|
|
225
|
+
const MODELS = ["", "mimo-v2.5", "deepseek-v4-flash", "deepseek-v4-pro", "deepseek-v3"];
|
|
226
|
+
const EFFORTS = ["", "low", "high", "max"];
|
|
227
|
+
const providerLabel = (v) => v === "" ? "\u8DDF\u968F Sisyphus" : v;
|
|
228
|
+
const modelLabel = (v) => v === "" ? "\u8DDF\u968F Sisyphus" : v;
|
|
229
|
+
const effortLabel = (v) => v === "" ? "\u8DDF\u968F\u6A21\u578B\u9ED8\u8BA4" : v;
|
|
230
|
+
const makeSelect = (value, options, labelFn, onChange) => React.createElement(
|
|
231
|
+
"select",
|
|
232
|
+
{ style: selectStyle, value: value ?? "", onChange: (e) => onChange(e.target.value) },
|
|
233
|
+
...options.map(
|
|
234
|
+
(opt) => React.createElement("option", { key: opt, value: opt }, labelFn(opt))
|
|
235
|
+
)
|
|
236
|
+
);
|
|
224
237
|
return React.createElement(
|
|
225
238
|
"div",
|
|
226
239
|
{ style: { padding: 16, maxWidth: 600 } },
|
|
@@ -239,13 +252,13 @@ function apply(ctx) {
|
|
|
239
252
|
"div",
|
|
240
253
|
null,
|
|
241
254
|
React.createElement("div", { style: labelStyle }, "Provider"),
|
|
242
|
-
|
|
255
|
+
makeSelect(cfg.provider ?? "", PROVIDERS, providerLabel, (v) => set(type, "provider", v))
|
|
243
256
|
),
|
|
244
257
|
React.createElement(
|
|
245
258
|
"div",
|
|
246
259
|
null,
|
|
247
260
|
React.createElement("div", { style: labelStyle }, "Model"),
|
|
248
|
-
|
|
261
|
+
makeSelect(cfg.model ?? "", MODELS, modelLabel, (v) => set(type, "model", v))
|
|
249
262
|
)
|
|
250
263
|
),
|
|
251
264
|
React.createElement(
|
|
@@ -255,7 +268,7 @@ function apply(ctx) {
|
|
|
255
268
|
"div",
|
|
256
269
|
null,
|
|
257
270
|
React.createElement("div", { style: labelStyle }, "Reasoning Effort"),
|
|
258
|
-
|
|
271
|
+
makeSelect(cfg.reasoningEffort ?? "", EFFORTS, effortLabel, (v) => set(type, "reasoningEffort", v))
|
|
259
272
|
),
|
|
260
273
|
React.createElement(
|
|
261
274
|
"div",
|
package/dist/client.js
CHANGED
|
@@ -222,10 +222,23 @@ function apply(ctx) {
|
|
|
222
222
|
setSaving(false);
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
|
-
const
|
|
225
|
+
const selectStyle = { background: "var(--surface, #1e1e1e)", color: "var(--text, #e0e0e0)", border: "1px solid var(--separator, #333)", borderRadius: 4, padding: "4px 8px", fontSize: 13, width: "100%", boxSizing: "border-box" };
|
|
226
226
|
const labelStyle = { fontSize: 12, color: "var(--text-secondary, #888)", marginBottom: 2 };
|
|
227
227
|
const cardStyle = { border: "1px solid var(--separator, #333)", borderRadius: 8, padding: 12, marginBottom: 12 };
|
|
228
228
|
const rowStyle = { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 8, marginBottom: 8 };
|
|
229
|
+
const PROVIDERS = ["", "octopus", "deepseek"];
|
|
230
|
+
const MODELS = ["", "mimo-v2.5", "deepseek-v4-flash", "deepseek-v4-pro", "deepseek-v3"];
|
|
231
|
+
const EFFORTS = ["", "low", "high", "max"];
|
|
232
|
+
const providerLabel = (v) => v === "" ? "\u8DDF\u968F Sisyphus" : v;
|
|
233
|
+
const modelLabel = (v) => v === "" ? "\u8DDF\u968F Sisyphus" : v;
|
|
234
|
+
const effortLabel = (v) => v === "" ? "\u8DDF\u968F\u6A21\u578B\u9ED8\u8BA4" : v;
|
|
235
|
+
const makeSelect = (value, options, labelFn, onChange) => React.createElement(
|
|
236
|
+
"select",
|
|
237
|
+
{ style: selectStyle, value: value ?? "", onChange: (e) => onChange(e.target.value) },
|
|
238
|
+
...options.map(
|
|
239
|
+
(opt) => React.createElement("option", { key: opt, value: opt }, labelFn(opt))
|
|
240
|
+
)
|
|
241
|
+
);
|
|
229
242
|
return React.createElement(
|
|
230
243
|
"div",
|
|
231
244
|
{ style: { padding: 16, maxWidth: 600 } },
|
|
@@ -244,13 +257,13 @@ function apply(ctx) {
|
|
|
244
257
|
"div",
|
|
245
258
|
null,
|
|
246
259
|
React.createElement("div", { style: labelStyle }, "Provider"),
|
|
247
|
-
|
|
260
|
+
makeSelect(cfg.provider ?? "", PROVIDERS, providerLabel, (v) => set(type, "provider", v))
|
|
248
261
|
),
|
|
249
262
|
React.createElement(
|
|
250
263
|
"div",
|
|
251
264
|
null,
|
|
252
265
|
React.createElement("div", { style: labelStyle }, "Model"),
|
|
253
|
-
|
|
266
|
+
makeSelect(cfg.model ?? "", MODELS, modelLabel, (v) => set(type, "model", v))
|
|
254
267
|
)
|
|
255
268
|
),
|
|
256
269
|
React.createElement(
|
|
@@ -260,7 +273,7 @@ function apply(ctx) {
|
|
|
260
273
|
"div",
|
|
261
274
|
null,
|
|
262
275
|
React.createElement("div", { style: labelStyle }, "Reasoning Effort"),
|
|
263
|
-
|
|
276
|
+
makeSelect(cfg.reasoningEffort ?? "", EFFORTS, effortLabel, (v) => set(type, "reasoningEffort", v))
|
|
264
277
|
),
|
|
265
278
|
React.createElement(
|
|
266
279
|
"div",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-my-go",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "DSH plugin: Sisyphus agent orchestration — star topology, single-line blocking, 7 specialist sub-agents (Hermes/Explore/Librarian/Looker/Hephaestus/Prometheus/Oracle) with per-type model binding, go_work/continue/need_help/forward communication tools, Web UI tree panel and settings.",
|
|
5
5
|
"author": "daizihan233",
|
|
6
6
|
"license": "MIT",
|
package/src/client.js
CHANGED
|
@@ -202,11 +202,26 @@ export function apply(ctx) {
|
|
|
202
202
|
} finally { setSaving(false) }
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
const
|
|
205
|
+
const selectStyle = { background: 'var(--surface, #1e1e1e)', color: 'var(--text, #e0e0e0)', border: '1px solid var(--separator, #333)', borderRadius: 4, padding: '4px 8px', fontSize: 13, width: '100%', boxSizing: 'border-box' }
|
|
206
206
|
const labelStyle = { fontSize: 12, color: 'var(--text-secondary, #888)', marginBottom: 2 }
|
|
207
207
|
const cardStyle = { border: '1px solid var(--separator, #333)', borderRadius: 8, padding: 12, marginBottom: 12 }
|
|
208
208
|
const rowStyle = { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 8, marginBottom: 8 }
|
|
209
209
|
|
|
210
|
+
const PROVIDERS = ['', 'octopus', 'deepseek']
|
|
211
|
+
const MODELS = ['', 'mimo-v2.5', 'deepseek-v4-flash', 'deepseek-v4-pro', 'deepseek-v3']
|
|
212
|
+
const EFFORTS = ['', 'low', 'high', 'max']
|
|
213
|
+
|
|
214
|
+
const providerLabel = (v) => v === '' ? '跟随 Sisyphus' : v
|
|
215
|
+
const modelLabel = (v) => v === '' ? '跟随 Sisyphus' : v
|
|
216
|
+
const effortLabel = (v) => v === '' ? '跟随模型默认' : v
|
|
217
|
+
|
|
218
|
+
const makeSelect = (value, options, labelFn, onChange) =>
|
|
219
|
+
React.createElement('select', { style: selectStyle, value: value ?? '', onChange: (e) => onChange(e.target.value) },
|
|
220
|
+
...options.map((opt) =>
|
|
221
|
+
React.createElement('option', { key: opt, value: opt }, labelFn(opt))
|
|
222
|
+
)
|
|
223
|
+
)
|
|
224
|
+
|
|
210
225
|
return React.createElement('div', { style: { padding: 16, maxWidth: 600 } },
|
|
211
226
|
React.createElement('h2', { style: { margin: '0 0 4px' } }, 'MyGO 编排配置'),
|
|
212
227
|
React.createElement('p', { style: { margin: '0 0 16px', fontSize: 13, color: 'var(--text-secondary, #888)' } }, '每个子智能体的模型 / Provider / 思考程度 / DSV4P0813 补丁开关。修改后点保存,下次派发生效。'),
|
|
@@ -217,17 +232,17 @@ export function apply(ctx) {
|
|
|
217
232
|
React.createElement('div', { style: rowStyle },
|
|
218
233
|
React.createElement('div', null,
|
|
219
234
|
React.createElement('div', { style: labelStyle }, 'Provider'),
|
|
220
|
-
|
|
235
|
+
makeSelect(cfg.provider ?? '', PROVIDERS, providerLabel, (v) => set(type, 'provider', v)),
|
|
221
236
|
),
|
|
222
237
|
React.createElement('div', null,
|
|
223
238
|
React.createElement('div', { style: labelStyle }, 'Model'),
|
|
224
|
-
|
|
239
|
+
makeSelect(cfg.model ?? '', MODELS, modelLabel, (v) => set(type, 'model', v)),
|
|
225
240
|
),
|
|
226
241
|
),
|
|
227
242
|
React.createElement('div', { style: rowStyle },
|
|
228
243
|
React.createElement('div', null,
|
|
229
244
|
React.createElement('div', { style: labelStyle }, 'Reasoning Effort'),
|
|
230
|
-
|
|
245
|
+
makeSelect(cfg.reasoningEffort ?? '', EFFORTS, effortLabel, (v) => set(type, 'reasoningEffort', v)),
|
|
231
246
|
),
|
|
232
247
|
React.createElement('div', { style: { display: 'flex', alignItems: 'flex-end', gap: 8 } },
|
|
233
248
|
React.createElement('label', { style: { display: 'flex', alignItems: 'center', gap: 6, cursor: 'pointer', fontSize: 13, paddingTop: 18 } },
|