dsh-my-go 0.1.6 → 0.1.7
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 +9 -6
- package/dist/client.js +9 -6
- package/package.json +1 -1
- package/src/client.js +10 -6
package/dist/client.core.js
CHANGED
|
@@ -228,11 +228,14 @@ function apply(ctx) {
|
|
|
228
228
|
const labelStyle = { fontSize: 12, color: "var(--text-secondary, #888)", marginBottom: 2 };
|
|
229
229
|
const cardStyle = { border: "1px solid var(--separator, #333)", borderRadius: 8, padding: 12, marginBottom: 12 };
|
|
230
230
|
const rowStyle = { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 8, marginBottom: 8 };
|
|
231
|
-
const
|
|
232
|
-
const
|
|
233
|
-
for (const m of Object.values(available.models)) for (const id of m) ALL_MODELS.add(id);
|
|
234
|
-
const MODELS = ["", ...ALL_MODELS];
|
|
231
|
+
const FALLBACK_PROVIDERS = ["octopus", "deepseek", "deepseek-chat"];
|
|
232
|
+
const FALLBACK_MODELS = ["mimo-v2.5", "deepseek-v4-flash", "deepseek-v4-pro", "deepseek-v3", "deepseek-v3-chat", "deepseek-reasoner"];
|
|
235
233
|
const EFFORTS = ["", "low", "high", "max"];
|
|
234
|
+
const providers = available.providers.length > 0 ? available.providers : FALLBACK_PROVIDERS;
|
|
235
|
+
const modelSet = /* @__PURE__ */ new Set();
|
|
236
|
+
for (const m of Object.values(available.models)) for (const id of m) modelSet.add(id);
|
|
237
|
+
if (modelSet.size === 0) for (const m of FALLBACK_MODELS) modelSet.add(m);
|
|
238
|
+
const allModels = [...modelSet];
|
|
236
239
|
const providerLabel = (v) => v === "" ? "\u8DDF\u968F Sisyphus" : v;
|
|
237
240
|
const modelLabel = (v) => v === "" ? "\u8DDF\u968F Sisyphus" : v;
|
|
238
241
|
const effortLabel = (v) => v === "" ? "\u8DDF\u968F\u6A21\u578B\u9ED8\u8BA4" : v;
|
|
@@ -261,13 +264,13 @@ function apply(ctx) {
|
|
|
261
264
|
"div",
|
|
262
265
|
null,
|
|
263
266
|
React.createElement("div", { style: labelStyle }, "Provider"),
|
|
264
|
-
makeSelect(cfg.provider ?? "",
|
|
267
|
+
makeSelect(cfg.provider ?? "", ["", ...providers], providerLabel, (v) => set(type, "provider", v))
|
|
265
268
|
),
|
|
266
269
|
React.createElement(
|
|
267
270
|
"div",
|
|
268
271
|
null,
|
|
269
272
|
React.createElement("div", { style: labelStyle }, "Model"),
|
|
270
|
-
makeSelect(cfg.model ?? "",
|
|
273
|
+
makeSelect(cfg.model ?? "", ["", ...allModels], modelLabel, (v) => set(type, "model", v))
|
|
271
274
|
)
|
|
272
275
|
),
|
|
273
276
|
React.createElement(
|
package/dist/client.js
CHANGED
|
@@ -233,11 +233,14 @@ function apply(ctx) {
|
|
|
233
233
|
const labelStyle = { fontSize: 12, color: "var(--text-secondary, #888)", marginBottom: 2 };
|
|
234
234
|
const cardStyle = { border: "1px solid var(--separator, #333)", borderRadius: 8, padding: 12, marginBottom: 12 };
|
|
235
235
|
const rowStyle = { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 8, marginBottom: 8 };
|
|
236
|
-
const
|
|
237
|
-
const
|
|
238
|
-
for (const m of Object.values(available.models)) for (const id of m) ALL_MODELS.add(id);
|
|
239
|
-
const MODELS = ["", ...ALL_MODELS];
|
|
236
|
+
const FALLBACK_PROVIDERS = ["octopus", "deepseek", "deepseek-chat"];
|
|
237
|
+
const FALLBACK_MODELS = ["mimo-v2.5", "deepseek-v4-flash", "deepseek-v4-pro", "deepseek-v3", "deepseek-v3-chat", "deepseek-reasoner"];
|
|
240
238
|
const EFFORTS = ["", "low", "high", "max"];
|
|
239
|
+
const providers = available.providers.length > 0 ? available.providers : FALLBACK_PROVIDERS;
|
|
240
|
+
const modelSet = /* @__PURE__ */ new Set();
|
|
241
|
+
for (const m of Object.values(available.models)) for (const id of m) modelSet.add(id);
|
|
242
|
+
if (modelSet.size === 0) for (const m of FALLBACK_MODELS) modelSet.add(m);
|
|
243
|
+
const allModels = [...modelSet];
|
|
241
244
|
const providerLabel = (v) => v === "" ? "\u8DDF\u968F Sisyphus" : v;
|
|
242
245
|
const modelLabel = (v) => v === "" ? "\u8DDF\u968F Sisyphus" : v;
|
|
243
246
|
const effortLabel = (v) => v === "" ? "\u8DDF\u968F\u6A21\u578B\u9ED8\u8BA4" : v;
|
|
@@ -266,13 +269,13 @@ function apply(ctx) {
|
|
|
266
269
|
"div",
|
|
267
270
|
null,
|
|
268
271
|
React.createElement("div", { style: labelStyle }, "Provider"),
|
|
269
|
-
makeSelect(cfg.provider ?? "",
|
|
272
|
+
makeSelect(cfg.provider ?? "", ["", ...providers], providerLabel, (v) => set(type, "provider", v))
|
|
270
273
|
),
|
|
271
274
|
React.createElement(
|
|
272
275
|
"div",
|
|
273
276
|
null,
|
|
274
277
|
React.createElement("div", { style: labelStyle }, "Model"),
|
|
275
|
-
makeSelect(cfg.model ?? "",
|
|
278
|
+
makeSelect(cfg.model ?? "", ["", ...allModels], modelLabel, (v) => set(type, "model", v))
|
|
276
279
|
)
|
|
277
280
|
),
|
|
278
281
|
React.createElement(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-my-go",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
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
|
@@ -213,12 +213,16 @@ export function apply(ctx) {
|
|
|
213
213
|
const cardStyle = { border: '1px solid var(--separator, #333)', borderRadius: 8, padding: 12, marginBottom: 12 }
|
|
214
214
|
const rowStyle = { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 8, marginBottom: 8 }
|
|
215
215
|
|
|
216
|
-
const
|
|
217
|
-
const
|
|
218
|
-
for (const m of Object.values(available.models)) for (const id of m) ALL_MODELS.add(id)
|
|
219
|
-
const MODELS = ['', ...ALL_MODELS]
|
|
216
|
+
const FALLBACK_PROVIDERS = ['octopus', 'deepseek', 'deepseek-chat']
|
|
217
|
+
const FALLBACK_MODELS = ['mimo-v2.5', 'deepseek-v4-flash', 'deepseek-v4-pro', 'deepseek-v3', 'deepseek-v3-chat', 'deepseek-reasoner']
|
|
220
218
|
const EFFORTS = ['', 'low', 'high', 'max']
|
|
221
219
|
|
|
220
|
+
const providers = available.providers.length > 0 ? available.providers : FALLBACK_PROVIDERS
|
|
221
|
+
const modelSet = new Set()
|
|
222
|
+
for (const m of Object.values(available.models)) for (const id of m) modelSet.add(id)
|
|
223
|
+
if (modelSet.size === 0) for (const m of FALLBACK_MODELS) modelSet.add(m)
|
|
224
|
+
const allModels = [...modelSet]
|
|
225
|
+
|
|
222
226
|
const providerLabel = (v) => v === '' ? '跟随 Sisyphus' : v
|
|
223
227
|
const modelLabel = (v) => v === '' ? '跟随 Sisyphus' : v
|
|
224
228
|
const effortLabel = (v) => v === '' ? '跟随模型默认' : v
|
|
@@ -240,11 +244,11 @@ export function apply(ctx) {
|
|
|
240
244
|
React.createElement('div', { style: rowStyle },
|
|
241
245
|
React.createElement('div', null,
|
|
242
246
|
React.createElement('div', { style: labelStyle }, 'Provider'),
|
|
243
|
-
makeSelect(cfg.provider ?? '',
|
|
247
|
+
makeSelect(cfg.provider ?? '', ['', ...providers], providerLabel, (v) => set(type, 'provider', v)),
|
|
244
248
|
),
|
|
245
249
|
React.createElement('div', null,
|
|
246
250
|
React.createElement('div', { style: labelStyle }, 'Model'),
|
|
247
|
-
makeSelect(cfg.model ?? '',
|
|
251
|
+
makeSelect(cfg.model ?? '', ['', ...allModels], modelLabel, (v) => set(type, 'model', v)),
|
|
248
252
|
),
|
|
249
253
|
),
|
|
250
254
|
React.createElement('div', { style: rowStyle },
|