heybash-xdpool 1.0.7 → 1.0.8
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/CHANGELOG.md +5 -0
- package/lib/client.js +8 -127
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/client.js
CHANGED
|
@@ -4,32 +4,8 @@ window.__ModuleLoader__.load({
|
|
|
4
4
|
var module = { exports: {} };
|
|
5
5
|
var exports = module.exports;
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
-
// \0rolldown/runtime.js
|
|
8
|
-
var __create = Object.create;
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
16
|
-
key = keys[i];
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
-
get: ((k) => from[k]).bind(null, key),
|
|
19
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return to;
|
|
23
|
-
};
|
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
25
|
-
value: mod,
|
|
26
|
-
enumerable: true
|
|
27
|
-
}) : target, mod));
|
|
28
7
|
let react = require("react");
|
|
29
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
let node_crypto = require("node:crypto");
|
|
31
|
-
node_crypto = __toESM(node_crypto, 1);
|
|
32
|
-
let node_fs = require("node:fs");
|
|
33
9
|
let react_dom = require("react-dom");
|
|
34
10
|
// src/client/sidebar-row.ts
|
|
35
11
|
/**
|
|
@@ -12235,108 +12211,6 @@ window.__ModuleLoader__.load({
|
|
|
12235
12211
|
if (model.multiplier !== 0) return void 0;
|
|
12236
12212
|
return paidSiblingOf(model, models);
|
|
12237
12213
|
}
|
|
12238
|
-
// src/doubao-catalog.ts
|
|
12239
|
-
/**
|
|
12240
|
-
* DSH-side alias for "generate an image".
|
|
12241
|
-
*
|
|
12242
|
-
* NOT a Doubao `model_item_key` — Doubao has no model by this name. Selecting it
|
|
12243
|
-
* makes the shim send an ordinary chat turn with `input_skill: imageGen`, and
|
|
12244
|
-
* Doubao answers with Seedream. Keeping it in the catalog is what puts 生图 in
|
|
12245
|
-
* DSH's model picker without inventing a second UI.
|
|
12246
|
-
*/
|
|
12247
|
-
const DOUBAO_IMAGE_MODEL_ID = "image-gen";
|
|
12248
|
-
/**
|
|
12249
|
-
* IMAGEGEN_LABEL_OVERLAY: 生图版本名以插件根目录的 image-models.json 为准,
|
|
12250
|
-
* 该文件由 doubao_imagemodels.py --sync 从服务端 get_item_conf 生成。
|
|
12251
|
-
*/
|
|
12252
|
-
function imageModelLabelFromOverlay() {
|
|
12253
|
-
try {
|
|
12254
|
-
const url = new URL("../image-models.json", require("url").pathToFileURL(__filename).href);
|
|
12255
|
-
const parsed = JSON.parse((0, node_fs.readFileSync)(url, "utf8"));
|
|
12256
|
-
return typeof parsed.label === "string" && parsed.label !== "" ? parsed.label : void 0;
|
|
12257
|
-
} catch {
|
|
12258
|
-
return;
|
|
12259
|
-
}
|
|
12260
|
-
}
|
|
12261
|
-
/**
|
|
12262
|
-
* The entries DSH may offer.
|
|
12263
|
-
*
|
|
12264
|
-
* WHY THESE ENTRIES. Doubao groups models by MODE, and the model list is per-mode:
|
|
12265
|
-
*
|
|
12266
|
-
* 对话 → 豆包 快速 (0), 豆包 2.1 Turbo·专家 (3)
|
|
12267
|
-
* 工作任务 → 自动 (9), 2.1 Lite (seed-lite-7b), 2.1 Pro (5), Turbo (3)
|
|
12268
|
-
*
|
|
12269
|
-
* The 「工作任务」 group (`seed-lite-7b`, `5`, `9`) runs through `Agent-GeneralTask`
|
|
12270
|
-
* (`mode_id: "3"`, `agent_mode: 1`) and is accompanied by an HTTP `tool_local`
|
|
12271
|
-
* workspace responder (`msg/ack` -> `upload_command_result` -> `msg/complete`)
|
|
12272
|
-
* so external turns complete without `710010702`.
|
|
12273
|
-
*
|
|
12274
|
-
* MEASURED, 2026-10-22: `model_item_key` is forwarded verbatim (the server stores
|
|
12275
|
-
* it on the message), but in 对话 mode it does NOT change what answers —
|
|
12276
|
-
* 0 / 3 / 5 / seed-lite-7b AND a deliberately bogus key all returned answers of
|
|
12277
|
-
* indistinguishable length and latency (12.3–14.0 s). So this list is honest
|
|
12278
|
-
* about what the PICKER can offer; it does not claim per-key routing.
|
|
12279
|
-
*
|
|
12280
|
-
* 「豆包 快速」 leads because it is the app's own chat-mode default, so an
|
|
12281
|
-
* unconfigured install reproduces the app rather than something that merely
|
|
12282
|
-
* happens to work.
|
|
12283
|
-
*/
|
|
12284
|
-
const DOUBAO_MODELS = [
|
|
12285
|
-
{
|
|
12286
|
-
id: "0",
|
|
12287
|
-
name: "豆包 快速",
|
|
12288
|
-
reasoning: false
|
|
12289
|
-
},
|
|
12290
|
-
{
|
|
12291
|
-
id: "3",
|
|
12292
|
-
name: "豆包 2.1 Turbo",
|
|
12293
|
-
badge: "专家",
|
|
12294
|
-
reasoning: true
|
|
12295
|
-
},
|
|
12296
|
-
{
|
|
12297
|
-
id: "seed-lite-7b",
|
|
12298
|
-
name: "豆包 2.1 Lite",
|
|
12299
|
-
badge: "工作任务",
|
|
12300
|
-
reasoning: true,
|
|
12301
|
-
taskMode: true
|
|
12302
|
-
},
|
|
12303
|
-
{
|
|
12304
|
-
id: "5",
|
|
12305
|
-
name: "豆包 2.1 Pro",
|
|
12306
|
-
badge: "工作任务",
|
|
12307
|
-
reasoning: true,
|
|
12308
|
-
taskMode: true
|
|
12309
|
-
},
|
|
12310
|
-
{
|
|
12311
|
-
id: "9",
|
|
12312
|
-
name: "自动",
|
|
12313
|
-
badge: "工作任务",
|
|
12314
|
-
reasoning: true,
|
|
12315
|
-
taskMode: true
|
|
12316
|
-
},
|
|
12317
|
-
{
|
|
12318
|
-
id: DOUBAO_IMAGE_MODEL_ID,
|
|
12319
|
-
name: imageModelLabelFromOverlay() ?? "豆包 生图(Seedream 5.5)",
|
|
12320
|
-
reasoning: true
|
|
12321
|
-
}
|
|
12322
|
-
];
|
|
12323
|
-
(0, node_crypto.randomUUID)();
|
|
12324
|
-
// src/doubao-llm.ts
|
|
12325
|
-
/** The listings, derived from the catalog the reference implementation measured. */
|
|
12326
|
-
function doubaoListing() {
|
|
12327
|
-
const rows = [];
|
|
12328
|
-
for (const model of DOUBAO_MODELS) {
|
|
12329
|
-
const parts = [];
|
|
12330
|
-
if (typeof model.badge === "string" && model.badge !== "") parts.push(model.badge);
|
|
12331
|
-
if (model.reasoning === true) parts.push("推理");
|
|
12332
|
-
rows.push({
|
|
12333
|
-
id: model.id,
|
|
12334
|
-
name: model.name,
|
|
12335
|
-
...parts.length === 0 ? {} : { description: parts.join(" · ") }
|
|
12336
|
-
});
|
|
12337
|
-
}
|
|
12338
|
-
return rows;
|
|
12339
|
-
}
|
|
12340
12214
|
// src/client/ChannelPoolSection.tsx
|
|
12341
12215
|
/**
|
|
12342
12216
|
* Account-pool page, scan-channel section.
|
|
@@ -12366,6 +12240,13 @@ window.__ModuleLoader__.load({
|
|
|
12366
12240
|
*
|
|
12367
12241
|
* @module dsh-xdpool/client/ChannelPoolSection
|
|
12368
12242
|
*/
|
|
12243
|
+
const doubaoListing = () => [{
|
|
12244
|
+
id: "0",
|
|
12245
|
+
name: "豆包 快速"
|
|
12246
|
+
}, {
|
|
12247
|
+
id: "3",
|
|
12248
|
+
name: "豆包 2.1 Turbo"
|
|
12249
|
+
}];
|
|
12369
12250
|
let poolSnapshot;
|
|
12370
12251
|
/**
|
|
12371
12252
|
* `provider.status` answered recently, kept across unmounts.
|
|
@@ -13896,7 +13777,7 @@ window.__ModuleLoader__.load({
|
|
|
13896
13777
|
}
|
|
13897
13778
|
// src/version.ts
|
|
13898
13779
|
/** Version embedded in the browser bundle at build time from the package manifest. */
|
|
13899
|
-
const POOL_VERSION = "1.0.
|
|
13780
|
+
const POOL_VERSION = "1.0.8";
|
|
13900
13781
|
// src/client/PoolCard.tsx
|
|
13901
13782
|
/**
|
|
13902
13783
|
* Heybash card contributed to DSH Plugin configuration.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "heybash-xdpool",
|
|
3
3
|
"displayName": "Heybash",
|
|
4
4
|
"description": "Heybash model pool for DeepSeek Harness: account rotation, provider aggregation, routing chains, usage insights and a local OpenAI-compatible gateway.",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.8",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Heybash",
|
|
8
8
|
"contributors": [
|