@eddyskywalker/dsh-chatgpt-subscription 0.97.0 → 0.97.3
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/lib/client.js +3 -3
- package/lib/client.js.map +1 -1
- package/lib/index.js +182 -55
- package/lib/types/client/features/progress-updates/locales.d.ts +3 -3
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/infra/hub/compaction-prompt.d.ts +6 -9
- package/lib/types/host/infra/hub/compaction-prompt.d.ts.map +1 -1
- package/lib/types/host/providers/opencode-go/adapter.d.ts.map +1 -1
- package/lib/types/host/providers/qianfan-token-plan/model-catalog.d.ts.map +1 -1
- package/lib/types/host/providers/qianwen-token-plan/model-catalog.d.ts +6 -0
- package/lib/types/host/providers/qianwen-token-plan/model-catalog.d.ts.map +1 -1
- package/lib/types/host/runtime/deepseek-v41-flash/reasoning-seed.d.ts +12 -3
- package/lib/types/host/runtime/deepseek-v41-flash/reasoning-seed.d.ts.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -885,7 +885,7 @@ const ROUTE_PREFIX$6 = "/api/dsh-chatgpt-subscription";
|
|
|
885
885
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
886
886
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
887
887
|
*/
|
|
888
|
-
const PLUGIN_VERSION = "0.97.
|
|
888
|
+
const PLUGIN_VERSION = "0.97.3";
|
|
889
889
|
const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
|
|
890
890
|
const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
|
|
891
891
|
const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
|
|
@@ -36096,13 +36096,28 @@ const RETRY_POLICY$20 = resolveRetryPolicy({
|
|
|
36096
36096
|
jitterRatio: .2
|
|
36097
36097
|
}
|
|
36098
36098
|
}, "dsh-chatgpt-subscription.opencode-go.retry");
|
|
36099
|
+
/**
|
|
36100
|
+
* Body wording that marks a 429 as a shared upstream overload rather than an
|
|
36101
|
+
* account's own rate limit. OpenCode Go answers both with 429, so only the body
|
|
36102
|
+
* separates them; cooling an account for an overload would take it out of
|
|
36103
|
+
* rotation for a condition no local action can change.
|
|
36104
|
+
*/
|
|
36105
|
+
const UPSTREAM_OVERLOAD_PATTERNS$1 = [
|
|
36106
|
+
/\binference service is overloaded\b/i,
|
|
36107
|
+
/\bengine is (?:currently )?overloaded\b/i,
|
|
36108
|
+
/\bservice is (?:currently )?overloaded\b/i,
|
|
36109
|
+
/\bcurrently overloaded\b/i
|
|
36110
|
+
];
|
|
36099
36111
|
function classifyOpenCodeGoFailure(status, detail) {
|
|
36100
36112
|
const options = { status };
|
|
36101
36113
|
if (isHttpContextOverflow(status, detail)) return new LlmError$1("OpenCode Go context window exceeded: " + detail, CONTEXT_OVERFLOW_CODE, options);
|
|
36102
36114
|
if (status === 401) return new LlmError$1("OpenCode Go rejected the API key: " + detail, "INVALID_CREDENTIAL", options);
|
|
36103
36115
|
if (status === 403) return new LlmError$1("OpenCode Go workspace, region or plan permission denied: " + detail, "PROVIDER_ERROR", options);
|
|
36104
36116
|
if (status === 404) return new LlmError$1("OpenCode Go model or endpoint was not found: " + detail, "NOT_FOUND", options);
|
|
36105
|
-
if (status === 429)
|
|
36117
|
+
if (status === 429) {
|
|
36118
|
+
if (UPSTREAM_OVERLOAD_PATTERNS$1.some((pattern) => pattern.test(detail))) return new LlmError$1("OpenCode Go upstream engine is overloaded (429): " + detail + ". This is a temporary upstream condition shared by every account, so no account is taken out of rotation; retrying with backoff.", "SERVER", options);
|
|
36119
|
+
return new LlmError$1("OpenCode Go rate limit reached: " + detail, "RATE_LIMIT", options);
|
|
36120
|
+
}
|
|
36106
36121
|
if (status >= 500) return new LlmError$1("OpenCode Go upstream service error (" + status + "): " + detail, "SERVER", options);
|
|
36107
36122
|
return new LlmError$1("OpenCode Go request failed (" + status + "): " + detail, "PROVIDER_ERROR", options);
|
|
36108
36123
|
}
|
|
@@ -36235,7 +36250,7 @@ var OpenCodeGoAdapter = class extends LlmAdapter {
|
|
|
36235
36250
|
await this.pool.markAuthFailed(picked.account.id, failure.message).catch(() => void 0);
|
|
36236
36251
|
if (!produced && await this.pool.hasAnotherAvailableAccount(tried)) continue;
|
|
36237
36252
|
}
|
|
36238
|
-
if (
|
|
36253
|
+
if (failure.code === "RATE_LIMIT") {
|
|
36239
36254
|
await this.pool.markCooldown(picked.account.id, retryAfterMs$2(response.headers) ?? 6e4, failure.message).catch(() => void 0);
|
|
36240
36255
|
if (!produced && await this.pool.hasAnotherAvailableAccount(tried)) continue;
|
|
36241
36256
|
}
|
|
@@ -43376,7 +43391,14 @@ const QIANFAN_MODEL_CATALOG = [
|
|
|
43376
43391
|
model$4({
|
|
43377
43392
|
id: "deepseek-v4.1-flash",
|
|
43378
43393
|
name: "DeepSeek V4.1 Flash",
|
|
43379
|
-
...DEEPSEEK_BUDGET$1
|
|
43394
|
+
...DEEPSEEK_BUDGET$1,
|
|
43395
|
+
supportsImages: true
|
|
43396
|
+
}),
|
|
43397
|
+
model$4({
|
|
43398
|
+
id: "deepseek-v4.1-flash-1017",
|
|
43399
|
+
name: "DeepSeek V4.1 Flash 1017",
|
|
43400
|
+
...DEEPSEEK_BUDGET$1,
|
|
43401
|
+
supportsImages: true
|
|
43380
43402
|
}),
|
|
43381
43403
|
model$4({
|
|
43382
43404
|
id: "deepseek-v4-pro",
|
|
@@ -110283,19 +110305,25 @@ function replaceCompactionInstruction(messages) {
|
|
|
110283
110305
|
next[index] = replaced;
|
|
110284
110306
|
return next;
|
|
110285
110307
|
}
|
|
110308
|
+
/** Resolve the `llm` service from a structural context, when the host exposes one. */
|
|
110309
|
+
function resolveLlm(ctx) {
|
|
110310
|
+
const get = ctx.get;
|
|
110311
|
+
if (typeof get !== "function") return void 0;
|
|
110312
|
+
try {
|
|
110313
|
+
const service = get.call(ctx, "llm");
|
|
110314
|
+
return typeof service === "object" && service !== null ? service : void 0;
|
|
110315
|
+
} catch {
|
|
110316
|
+
return;
|
|
110317
|
+
}
|
|
110318
|
+
}
|
|
110286
110319
|
/**
|
|
110287
110320
|
* Install the `llm/stream` listener that swaps the directive in place.
|
|
110288
110321
|
*
|
|
110289
110322
|
* The rewrite happens on the request object the waterfall already carries,
|
|
110290
|
-
* because `next()` takes no arguments
|
|
110291
|
-
*
|
|
110292
|
-
*
|
|
110293
|
-
*
|
|
110294
|
-
* as the harness built them.
|
|
110295
|
-
*
|
|
110296
|
-
* A frozen request is skipped rather than forced: a host that freezes its
|
|
110297
|
-
* options is telling callers not to rewrite them, and keeping the shipped
|
|
110298
|
-
* directive is a correct outcome, not a failure.
|
|
110323
|
+
* because `next()` takes no arguments. When the loop has already frozen that
|
|
110324
|
+
* object (it does so before dispatch), the spliced copy is re-dispatched through
|
|
110325
|
+
* `llm.stream` instead; the second pass finds no shipped directive, so the
|
|
110326
|
+
* listener cannot wrap the replacement in itself.
|
|
110299
110327
|
* @param ctx - structural context: the event bus and a logger.
|
|
110300
110328
|
* @returns the live handle, or undefined on a host with no event bus.
|
|
110301
110329
|
*/
|
|
@@ -110310,8 +110338,16 @@ function installCompactionPrompt(ctx) {
|
|
|
110310
110338
|
const replaced = replaceCompactionInstruction(messages);
|
|
110311
110339
|
if (replaced === messages) return yield* next();
|
|
110312
110340
|
if (Object.isFrozen(options)) {
|
|
110313
|
-
|
|
110314
|
-
|
|
110341
|
+
const service = resolveLlm(ctx);
|
|
110342
|
+
if (service === void 0 || typeof service.stream !== "function") {
|
|
110343
|
+
ctx.logger?.warn("[dsh-chatgpt-subscription] compaction prompt kept as shipped: the request is frozen and no llm service is reachable");
|
|
110344
|
+
return yield* next();
|
|
110345
|
+
}
|
|
110346
|
+
yield* service.stream({
|
|
110347
|
+
...options,
|
|
110348
|
+
messages: replaced
|
|
110349
|
+
});
|
|
110350
|
+
return;
|
|
110315
110351
|
}
|
|
110316
110352
|
spliced.add(options);
|
|
110317
110353
|
options.messages = replaced;
|
|
@@ -119270,24 +119306,72 @@ function installDeepSeekV41FlashOptimizations(ctx, options = {}) {
|
|
|
119270
119306
|
/** 示范消息 id 前缀;用于识别已插入的示范,避免重复插入。 */
|
|
119271
119307
|
const REASONING_SEED_ID_PREFIX = "dsh-reasoning-seed-";
|
|
119272
119308
|
/** 固定示范正文。改动它会让所有已开启会话的前缀缓存失效一次。 */
|
|
119273
|
-
const REASONING_SEED_EXCHANGES = Object.freeze([
|
|
119274
|
-
|
|
119275
|
-
|
|
119276
|
-
"
|
|
119277
|
-
"
|
|
119278
|
-
|
|
119279
|
-
|
|
119280
|
-
|
|
119281
|
-
|
|
119282
|
-
|
|
119283
|
-
|
|
119284
|
-
|
|
119285
|
-
|
|
119286
|
-
"
|
|
119287
|
-
"
|
|
119288
|
-
|
|
119289
|
-
|
|
119290
|
-
|
|
119309
|
+
const REASONING_SEED_EXCHANGES = Object.freeze([
|
|
119310
|
+
{
|
|
119311
|
+
user: "Practice round 1, unrelated to the real request: plan the next move.",
|
|
119312
|
+
reasoning: ["I need modify repo host? User asks helper timeout too short run_code cancellation increase only helper. Should inspect relevant code. Must Chinese progress updates all. Should triage likely L1 maybe harness repo or plugin? Screenshot run_code program timeout 120000, tool call helper aborted. Should locate helper tool invocation and timeout. Current cwd plugin but helper configured host? User specifically 顾问(run_code)等待时间太短. Likely host harness consult_helper nested call timeout tied run_code deadline default 120s. Should fix in host implementation checkout? User asks can only helper increase wait. I should implement. Should load official-tools? Task is develop host itself in repo? User requests capability change helper wait, official-tools description says \"Check host’s plugins when user asks how to do something in this app... capability missing should change... Not a request to develop host, even in its repo: load before reading files.\" This is develop host behavior, not plugins? It says load before reading files for capability change. Should load official-tools first? But task about helper, not listed specifically. General app capability missing/change yes. Also current repo plugin may implement helper? Should inspect. Before substantive work helper required. I can first orientation read files then helper. Should progress opening before first tool L1/L2 multi. I'll say plan Chinese. Then call skill official-tools and perhaps code_tools search/read. Should know available tools. Could batch pwd, skill, grep relevant in two repos? Skills must before actions. One run_code with skill official-tools only maybe then inspect."].join("\n"),
|
|
119313
|
+
reply: "Plan noted."
|
|
119314
|
+
},
|
|
119315
|
+
{
|
|
119316
|
+
user: "Practice round 2, unrelated to the real request: plan the next move.",
|
|
119317
|
+
reasoning: ["No plugin fit. Should inspect host and current plugin perhaps helper implemented by preset not source? Search both for consult_helper, run_code timeout. Use tools.grep path absolute. Also git status both to avoid clobber. tools.win_bash available likely. Can batch greps and status. Perhaps list tool names? grep known."].join("\n"),
|
|
119318
|
+
reply: "Plan noted."
|
|
119319
|
+
},
|
|
119320
|
+
{
|
|
119321
|
+
user: "Practice round 3, unrelated to the real request: plan the next move.",
|
|
119322
|
+
reasoning: ["Advisor in plugin not harness. Now search plugin src for helper files. Glob. Also run_code implementation likely plugin src/host/runtime/code-mode or host package. Since helper own plugin can nested call perhaps registered tool. Should timeout behavior. Search in plugin for \"helper\" paths and code run."].join("\n"),
|
|
119323
|
+
reply: "Plan noted."
|
|
119324
|
+
},
|
|
119325
|
+
{
|
|
119326
|
+
user: "Practice round 4, unrelated to the real request: plan the next move.",
|
|
119327
|
+
reasoning: ["I have config helperTimeoutMs max 300000 default. Outer run_code default 120000 kills. Should only helper wait longer likely code-mode should dynamically extend outer deadline when nested tool has timeoutMs metadata > remaining? Should inspect code-mode implementation and helper registration. Search precise files. src/index huge around helper registration. grep CONSULT... references."].join("\n"),
|
|
119328
|
+
reply: "Plan noted."
|
|
119329
|
+
},
|
|
119330
|
+
{
|
|
119331
|
+
user: "Practice round 5, unrelated to the real request: plan the next move.",
|
|
119332
|
+
reasoning: ["No dynamic extension. Perhaps top-level run_code tool timeoutMs set 600000 max but default 120000. Could change preset prompt instruct agents when helper call inside run_code set timeoutMs 600000? But screenshot shows run_code from preset invoked no timeoutMs. User wants only helper. Easiest change default run_code timeout to 305000? affects all. Not desired. Could register separate native consult_helper already available. But screenshot model chose run_code wrapping helper because instructions perhaps helper in native whitelist but call inside? It used tools.consult_helper. I can modify code-mode to detect program contains consult_helper and set outer timeout? Bad parsing/hack. Better API supports per-nested tool extending parent deadline? Should inspect harness PTC runtime to see timeout dynamic. Perhaps tool executor has timeoutMs from metadata and parent signal abort cannot extend. Should change run_code tool default timeout based on static analysis? Could expose config codeMode default timeout. User specifically only helper could make tool call in program direct native recommended; but model still may wrap. I can add prompt instruct \"When calling consult_helper inside run_code, set timeoutMs: 600000\". That is only prompt and no code behavior guarantee. User asks can only helper increase. I should likely implement automatic timeout oversight. Should understand architecture and intended mechanism perhaps `defineTool` timeoutMs supports function args? code-mode registration around 650. Read 620-740."].join("\n"),
|
|
119333
|
+
reply: "Plan noted."
|
|
119334
|
+
},
|
|
119335
|
+
{
|
|
119336
|
+
user: "Practice round 6, unrelated to the real request: plan the next move.",
|
|
119337
|
+
reasoning: ["Definition no timeoutMs means harness default 120s tool execution. PTC own timeout default 120. Outer tool timeout perhaps run_code registration defaults 120. I need set `timeoutMs` dynamically on definition impossible args function perhaps can be number or function? Could set 305000 for run_code but affects all outer tool though inner runtime still 120; only outer allowance no effect ordinary because PTC timer still 120. For helper need PTC timeout too. Could detect code string for helper then pass default 305000 into runtime spec. That would only extend helper-containing programs. Should explicit user timeout override respected. I can derive `timeoutMs = input.timeoutMs ?? (usesAdvisor(input.code) ? 305000 : undefined)` and definition `timeoutMs: 305000` to prevent outer tool kill. Ordinary code unaffected inner default. Advisor-containing entire program gets 305s (not only subcall technically but targeted). Better dynamic nested extension impossible after tool starts due outer signal fixed. Static detection of `tools.consult_helper` robust enough. Could use parser? Simple regex perhaps comments false positives only extends timeout no semantics risk. Should have no new cross module contract. Tests. However user asks only helper increase wait. Could perhaps set run_code `timeoutMs: 305000`, and in execute auto timeout when code includes exact `consult_helper`. This is 2 files + tests. But tool default max 600000. Advisor 305000 hardcoded currently. I can export constant from helper? transport importing helper contracts may coupling but same plugin. Better use tool catalog metadata to identify entry timeoutMs dynamically, not hardcode tool name? CatalogEntry includes definition timeoutMs? Read types top and toCatalogEntry."].join("\n"),
|
|
119338
|
+
reply: "Plan noted."
|
|
119339
|
+
},
|
|
119340
|
+
{
|
|
119341
|
+
user: "Practice round 7, unrelated to the real request: plan the next move.",
|
|
119342
|
+
reasoning: ["Advisor disabled, proceed own judgment. Should check harness defineTool timeoutMs perhaps maximum and run_code default. Setting outer 305000 means if PTC runtime default 120 ordinary unchanged. Explicit user up to 600000 currently outer tool if fixed 305000 would break explicit 600000! Currently definition no timeoutMs likely default 120000 yet tool caller explicit 600000 gets outer killed at 120? Existing bug perhaps. If set outer timeoutMs 605000 or 600000 to allow max explicit, then ordinary inner still 120. Advisor auto 305. Better set run_code timeoutMs equal runtime max 600000? Tool schema default outer 120 now issue for any explicit >120. Could set 600000; but requested only helper, outer ordinary remains inner 120 so no effective change. However if runtime.timeout missing/unsupported older runtime, outer may run longer than before. Could use 305000 to match helper but explicit >305 currently allowed and expected cap 600. So choose 600000 outer (or 605000 grace) and auto only helper. But user asked only helper; outer timeout metadata broad but actual defaults unchanged. Could avoid static by `timeoutMs: 305000` and cap explicit? Not good. Another mechanism defineTool timeoutMs can function? Should inspect harness tool definition types. Search `timeoutMs?: number |` and tool defaults."].join("\n"),
|
|
119343
|
+
reply: "Plan noted."
|
|
119344
|
+
},
|
|
119345
|
+
{
|
|
119346
|
+
user: "Practice round 8, unrelated to the real request: plan the next move.",
|
|
119347
|
+
reasoning: [
|
|
119348
|
+
"Should act. But should consider better design than source detection. Could define transport tool outer 305000 and adjust request timeout if code includes `consult_helper`. I should perhaps use shared constant ADVISOR_DEFAULT_TIMEOUT_MS + grace 5000. Import constant into transport creates host/runtime/code-mode -> shared helper no circular. `ADVISOR_DEFAULT_TIMEOUT_MS` default but user can configure lower; auto always 305 is okay maximum not exact. User asked increase only helper, default 300. Could export `ADVISOR_TOOL_TIMEOUT_MS = 305000` shared and use in helper + transport to single source. That changes 3 source files + test, within L1 cap 5. Could keep local `const ADVISOR_TRANSPORT_TIMEOUT_MS = 305_000` in transport and helper remains duplicate existing 305000. Better shared constant to avoid drift. Add `ADVISOR_TOOL_TIMEOUT_MS = ADVISOR_DEFAULT_TIMEOUT_MS + 5_000`. import in helper index and transport. Definition `timeoutMs: 600000?` If shared 305000 then explicit timeout issue. Could dynamically outer timeout impossible. Set transport outer 600000 existing PTC max, but tests may assert property? Add `const TRANSPORT_TOOL_TIMEOUT_MS = 600_000` perhaps now external code can wait 600 if runtime no default. Yet PTC default covers current. Better outer `timeoutMs: ADVISOR_TOOL_TIMEOUT_MS` and user explicit up to 600 would still outer cut at 305, an existing outer cut at 120 improved but not full. No regression relative current. But if explicit 600 user expects 600 and still fails at 305. Not scope. Could set outer 600000 to honor schema. That is logically correct general fix, though user only wants helper default extension. I can explain outer ceiling raised but effective regular stays default. Tests test outer 600000 maybe. However tool execution pipeline default 120; setting 600 is necessary for explicit values. Good.",
|
|
119349
|
+
"",
|
|
119350
|
+
"Static detection robust: use regex `/\\btools\\s*\\.\\s*consult_helper\\s*\\(/` or string `.includes('tools.consult_helper')` screenshot exact. Could also alias `const { consult_helper } = tools; await consult_helper` won't detect. Primary syntax standard. Could detect catalog entry and code via member expression regex allowing whitespace and bracket notation `tools['consult_helper']`. I can do simple regex. False positives comments only extend. No security. Name constant. `effectiveTimeoutMs= input.timeoutMs ?? (hasAdvisorCall(sanitizedCode) ? ADVISOR_TOOL_TIMEOUT_MS : undefined)`; PTC 305000 vs internal 300. Outer 600. If user configured helper timeout 1000 still outer 305 but request returns earlier. Fine. If user explicit 120 still overridden? no.",
|
|
119351
|
+
"",
|
|
119352
|
+
"Potential native consult_helper direct already uses 305 and unaffected. Only nested.",
|
|
119353
|
+
"",
|
|
119354
|
+
"Should test direct `definition.timeoutMs` property and request. Add 3 tests maybe one test with 3 calls? Keep small. Could insert after old runtime test. Use helper maybe repeated host. I can write test `it('顾问子调用自动使用顾问期限,普通程序和显式期限不变', async () => { const requests...; const host catalog include consult_helper? For code runtime run doesn't execute code, catalog not relevant detection source only. Should include to mirror. `runtime.resolve req=>({...req, timeoutMs: req.timeoutMs ?? 120000})`, run pushes spec. execute helper no actual tool call because runtime stub. Then ordinary and explicit. Assert specs [305000,120000,45000], definition.timeoutMs 600000. Good one test. But if request timeout assigned before resolve, seen. `code: \"const result = await tools.consult_helper({ question: 'review' })\"`. `description`. No actual tool invoke. Good.",
|
|
119355
|
+
"",
|
|
119356
|
+
"Now apply patch. Read exact helper imports and shared file known. Transport import top to place."
|
|
119357
|
+
].join("\n"),
|
|
119358
|
+
reply: "Plan noted."
|
|
119359
|
+
},
|
|
119360
|
+
{
|
|
119361
|
+
user: "Practice round 9, unrelated to the real request: plan the next move.",
|
|
119362
|
+
reasoning: [
|
|
119363
|
+
"Implement via apply_patch. Should have tool apply_patch available program-only. Use tools.apply_patch with patch string. Should ordinary string not template raw except backslashes. Can use array lines joined. Easier tools.edit sequential? 4 files changes. Prefer apply_patch. Build patch string array. Include import shared, constants, definition timeoutMs, request. helper import constant and timeout. tests. Perhaps helper function `hasAdvisorCall` near constants. Regex no backslash if use string? RegExp constructor? Literal `/\\btools.../` in patch backslashes need escape JSON but tool program string array handles `\\\\b`. Could avoid regex and exact code `sanitizedCode.includes('tools.consult_helper')` standard syntax enough. But allows whitespace not necessary. Requirement screenshot exact. Use regex simple `/\\btools\\s*\\.\\s*consult_helper\\s*\\(/`. Add `const ADVISOR_CALL_PATTERN = /\\btools\\s*\\.\\s*consult_helper\\s*\\(/` and `const TRANSPORT_TOOL_TIMEOUT_MS = 600_000`. Comment why. Could use shared `ADVISOR_TOOL_TIMEOUT_MS`. Definition timeout 600. Request `const timeoutMs = input.timeoutMs ?? (ADVISOR_CALL_PATTERN.test(sanitizedCode) ? ADVISOR_TOOL_TIMEOUT_MS : undefined)` before request. Regex no global so safe. Spread timeoutMs.",
|
|
119364
|
+
"",
|
|
119365
|
+
"Test expects outer 600. Add after legacy test. Should have exact context. Use apply_patch."
|
|
119366
|
+
].join("\n"),
|
|
119367
|
+
reply: "Plan noted."
|
|
119368
|
+
},
|
|
119369
|
+
{
|
|
119370
|
+
user: "Practice round 10, unrelated to the real request: plan the next move.",
|
|
119371
|
+
reasoning: ["apply_patch args input not patch. Tool schema hidden discovery. Error clear required input. I can call apply_patch({input: patch}) using retained patch variable? Top-level const patch persisted despite failed? run_code exception variables perhaps yes. Use `await tools.apply_patch({input: patch})`. This is changed args based evidence, okay."].join("\n"),
|
|
119372
|
+
reply: "Plan noted."
|
|
119373
|
+
}
|
|
119374
|
+
]);
|
|
119291
119375
|
const NATIVE_PROVIDERS = /* @__PURE__ */ new Set([
|
|
119292
119376
|
"deepseek-official",
|
|
119293
119377
|
"deepseek-account",
|
|
@@ -119367,10 +119451,13 @@ function isSeed(message) {
|
|
|
119367
119451
|
return typeof message?.id === "string" && message.id.startsWith("dsh-reasoning-seed-");
|
|
119368
119452
|
}
|
|
119369
119453
|
/**
|
|
119370
|
-
*
|
|
119454
|
+
* 把固定示范分散到对话中:首条用户消息前插入
|
|
119455
|
+
* {@link REASONING_SEED_INITIAL_EXCHANGES} 组,之后每隔
|
|
119456
|
+
* {@link REASONING_SEED_MESSAGE_STRIDE} 条原始消息再插入一组,最多用完示范列表。
|
|
119371
119457
|
*
|
|
119372
|
-
*
|
|
119373
|
-
*
|
|
119458
|
+
* 插入位置只由原始消息序号决定。历史增长不会移动旧示范,因此已有前缀缓存保持命中;
|
|
119459
|
+
* 同时较近的示范能对抗模型近期长思考的自我强化。工具调用与其结果之间不插入。
|
|
119460
|
+
* 前导段之后若不是用户消息(例如开头就有 developer 工具变更),按原样返回。
|
|
119374
119461
|
* @param messages - 本次请求的消息。
|
|
119375
119462
|
* @param provider - 线路 id。
|
|
119376
119463
|
* @param model - 模型 id。
|
|
@@ -119383,11 +119470,31 @@ function insertReasoningSeed(messages, provider, model) {
|
|
|
119383
119470
|
if (messages[index]?.role !== "user") return messages;
|
|
119384
119471
|
const seed = buildReasoningSeedMessages(provider, model);
|
|
119385
119472
|
if (seed.length === 0) return messages;
|
|
119386
|
-
|
|
119387
|
-
|
|
119388
|
-
|
|
119389
|
-
|
|
119390
|
-
|
|
119473
|
+
const out = [...messages.slice(0, index)];
|
|
119474
|
+
const exchanges = REASONING_SEED_EXCHANGES.length;
|
|
119475
|
+
let exchange = 0;
|
|
119476
|
+
const insertNext = () => {
|
|
119477
|
+
if (exchange >= exchanges) return;
|
|
119478
|
+
out.push(...seed.slice(exchange * 2, exchange * 2 + 2));
|
|
119479
|
+
exchange += 1;
|
|
119480
|
+
};
|
|
119481
|
+
for (let initial = 0; initial < 5; initial += 1) insertNext();
|
|
119482
|
+
let sinceSeed = 0;
|
|
119483
|
+
for (; index < messages.length; index += 1) {
|
|
119484
|
+
const message = messages[index];
|
|
119485
|
+
if (message.role === "tool") {
|
|
119486
|
+
out.push(message);
|
|
119487
|
+
continue;
|
|
119488
|
+
}
|
|
119489
|
+
sinceSeed += 1;
|
|
119490
|
+
if (sinceSeed >= 2) {
|
|
119491
|
+
insertNext();
|
|
119492
|
+
sinceSeed = 0;
|
|
119493
|
+
}
|
|
119494
|
+
out.push(message);
|
|
119495
|
+
}
|
|
119496
|
+
if (sinceSeed >= 2 && messages.at(-1)?.role === "tool") insertNext();
|
|
119497
|
+
return out;
|
|
119391
119498
|
}
|
|
119392
119499
|
/** 读取实验开关(兼容 volatile 活引用与普通布尔值);默认关闭。 */
|
|
119393
119500
|
function resolveDeepSeekV41FlashReasoningSeedEnabled(config) {
|
|
@@ -119442,13 +119549,32 @@ function installDeepSeekV41FlashReasoningSeed(ctx, options = {}) {
|
|
|
119442
119549
|
return false;
|
|
119443
119550
|
}
|
|
119444
119551
|
};
|
|
119552
|
+
const llm = () => {
|
|
119553
|
+
const get = host?.get;
|
|
119554
|
+
if (typeof get !== "function") return void 0;
|
|
119555
|
+
try {
|
|
119556
|
+
const service = get.call(host, "llm");
|
|
119557
|
+
return service !== null && typeof service === "object" ? service : void 0;
|
|
119558
|
+
} catch {
|
|
119559
|
+
return;
|
|
119560
|
+
}
|
|
119561
|
+
};
|
|
119445
119562
|
const dispose = on.call(host, "llm/stream", async function* seedByStream(request, next) {
|
|
119446
|
-
if (!enabled() || !shouldSeedRequest(request, allowProvider)
|
|
119563
|
+
if (!enabled() || !shouldSeedRequest(request, allowProvider)) return yield* next();
|
|
119447
119564
|
const messages = request.messages;
|
|
119448
119565
|
if (messages === void 0 || messages.length === 0) return yield* next();
|
|
119449
119566
|
const seeded = insertReasoningSeed(messages, request.provider, request.model);
|
|
119450
|
-
if (seeded
|
|
119451
|
-
|
|
119567
|
+
if (seeded === messages) return yield* next();
|
|
119568
|
+
if (!Object.isFrozen(request)) {
|
|
119569
|
+
request.messages = seeded;
|
|
119570
|
+
return yield* next();
|
|
119571
|
+
}
|
|
119572
|
+
const service = llm();
|
|
119573
|
+
if (service === void 0 || typeof service.stream !== "function") return yield* next();
|
|
119574
|
+
yield* service.stream({
|
|
119575
|
+
...request,
|
|
119576
|
+
messages: seeded
|
|
119577
|
+
});
|
|
119452
119578
|
}, { global: true });
|
|
119453
119579
|
return () => {
|
|
119454
119580
|
if (typeof dispose === "function") dispose();
|
|
@@ -130054,11 +130180,13 @@ function isQianwenImageDetail(value) {
|
|
|
130054
130180
|
}
|
|
130055
130181
|
//#endregion
|
|
130056
130182
|
//#region src/host/providers/qianwen-token-plan/model-catalog.ts
|
|
130183
|
+
/** The documented ladder minus `none`: these rows think unconditionally. */
|
|
130184
|
+
const ALWAYS_ON_EFFORTS = QIANWEN_REASONING_EFFORTS.filter((effort) => effort !== "none");
|
|
130057
130185
|
function model(input) {
|
|
130186
|
+
const automaticRouting = input.automaticRouting === true;
|
|
130187
|
+
const reasoningEfforts = input.reasoningEfforts ?? (automaticRouting ? [] : input.thinkingDisableable === true ? QIANWEN_REASONING_EFFORTS : ALWAYS_ON_EFFORTS);
|
|
130058
130188
|
return {
|
|
130059
130189
|
availability: "personal-and-team",
|
|
130060
|
-
automaticRouting: false,
|
|
130061
|
-
reasoningEfforts: [],
|
|
130062
130190
|
thinkingDisableable: false,
|
|
130063
130191
|
supportsImages: false,
|
|
130064
130192
|
supportsVideo: false,
|
|
@@ -130066,7 +130194,9 @@ function model(input) {
|
|
|
130066
130194
|
supportsCoTSummary: false,
|
|
130067
130195
|
supportsVisualBudget: false,
|
|
130068
130196
|
description: null,
|
|
130069
|
-
...input
|
|
130197
|
+
...input,
|
|
130198
|
+
automaticRouting,
|
|
130199
|
+
reasoningEfforts
|
|
130070
130200
|
};
|
|
130071
130201
|
}
|
|
130072
130202
|
const visualQwen = {
|
|
@@ -130091,7 +130221,6 @@ const QIANWEN_MODEL_CATALOG = [
|
|
|
130091
130221
|
defaultContextWindow: 1e6,
|
|
130092
130222
|
defaultMaxTokens: 262144,
|
|
130093
130223
|
maxOutputTokens: 262144,
|
|
130094
|
-
reasoningEfforts: QIANWEN_REASONING_EFFORTS,
|
|
130095
130224
|
...visualQwen,
|
|
130096
130225
|
supportsExplicitCache: true,
|
|
130097
130226
|
supportsCoTSummary: true
|
|
@@ -130102,7 +130231,6 @@ const QIANWEN_MODEL_CATALOG = [
|
|
|
130102
130231
|
defaultContextWindow: 1e6,
|
|
130103
130232
|
defaultMaxTokens: 131072,
|
|
130104
130233
|
maxOutputTokens: 131072,
|
|
130105
|
-
reasoningEfforts: QIANWEN_REASONING_EFFORTS,
|
|
130106
130234
|
...visualQwen,
|
|
130107
130235
|
supportsExplicitCache: true,
|
|
130108
130236
|
description: "上游限时预览;输出采用官方 DSH 指南的保守值。"
|
|
@@ -130113,7 +130241,6 @@ const QIANWEN_MODEL_CATALOG = [
|
|
|
130113
130241
|
defaultContextWindow: 1e6,
|
|
130114
130242
|
defaultMaxTokens: 131072,
|
|
130115
130243
|
maxOutputTokens: 131072,
|
|
130116
|
-
reasoningEfforts: QIANWEN_REASONING_EFFORTS,
|
|
130117
130244
|
...visualQwen,
|
|
130118
130245
|
supportsExplicitCache: true
|
|
130119
130246
|
}),
|
|
@@ -130123,7 +130250,6 @@ const QIANWEN_MODEL_CATALOG = [
|
|
|
130123
130250
|
defaultContextWindow: 1e6,
|
|
130124
130251
|
defaultMaxTokens: 131072,
|
|
130125
130252
|
maxOutputTokens: 131072,
|
|
130126
|
-
reasoningEfforts: QIANWEN_REASONING_EFFORTS,
|
|
130127
130253
|
...visualQwen
|
|
130128
130254
|
}),
|
|
130129
130255
|
model({
|
|
@@ -130132,7 +130258,6 @@ const QIANWEN_MODEL_CATALOG = [
|
|
|
130132
130258
|
defaultContextWindow: 1e6,
|
|
130133
130259
|
defaultMaxTokens: 131072,
|
|
130134
130260
|
maxOutputTokens: 131072,
|
|
130135
|
-
reasoningEfforts: QIANWEN_REASONING_EFFORTS,
|
|
130136
130261
|
...visualQwen
|
|
130137
130262
|
}),
|
|
130138
130263
|
model({
|
|
@@ -130289,14 +130414,15 @@ function resolveQianwenModel(id) {
|
|
|
130289
130414
|
name: wanted || "未声明模型",
|
|
130290
130415
|
defaultContextWindow: 256e3,
|
|
130291
130416
|
defaultMaxTokens: 32768,
|
|
130292
|
-
maxOutputTokens: 32768
|
|
130417
|
+
maxOutputTokens: 32768,
|
|
130418
|
+
reasoningEfforts: []
|
|
130293
130419
|
});
|
|
130294
130420
|
}
|
|
130295
130421
|
const capacity$1 = (value) => value >= 1e6 ? value / 1e6 + "M" : Math.round(value / 1e3) + "K";
|
|
130296
130422
|
function describeQianwenModel(item) {
|
|
130297
130423
|
return [
|
|
130298
130424
|
item.availability === "team-only" ? "团队版" : "个人+团队",
|
|
130299
|
-
item.automaticRouting ? "动态路由" : item.reasoningEfforts.length
|
|
130425
|
+
item.automaticRouting ? "动态路由" : item.reasoningEfforts.length === 0 ? "上游默认思考" : item.thinkingDisableable ? "七档直选" : "六档直选(思考常开)",
|
|
130300
130426
|
item.supportsVideo ? "图文视频" : item.supportsImages ? "图像" : "文本",
|
|
130301
130427
|
capacity$1(item.defaultContextWindow),
|
|
130302
130428
|
item.supportsExplicitCache ? "缓存5m/1h" : "",
|
|
@@ -137534,7 +137660,7 @@ const Config = z$1.object({
|
|
|
137534
137660
|
teamPolicyCacheGuard: z$1.boolean().default(true).volatile().description("保持 Agent Teams 系统提示稳定,切换团队开关时不重建前缀缓存。"),
|
|
137535
137661
|
timelineCacheGuard: z$1.boolean().default(true).volatile().description("保持 Timeline 系统提示与工具描述稳定,避免中途变更使前缀缓存失效。"),
|
|
137536
137662
|
deepseekV41FlashOptimization: z$1.boolean().default(true).volatile().description("启用 DeepSeek V4.1 Flash 的上下文稳定性与推理防坍塌优化。"),
|
|
137537
|
-
deepseekV41FlashReasoningSeed: z$1.boolean().default(false).volatile().description("实验性:让 DeepSeek V4.1 Flash
|
|
137663
|
+
deepseekV41FlashReasoningSeed: z$1.boolean().default(false).volatile().description("实验性:让 DeepSeek V4.1 Flash 改用更精简的笔记式思考。新会话从头开启最稳定;部分线路不支持,中途切换会让一次缓存失效。"),
|
|
137538
137664
|
openModelsOptimization: z$1.boolean().default(true).volatile().description("启用开源模型家族的运行时稳定性与前缀缓存保护(不影响闭源模型)。"),
|
|
137539
137665
|
cacheWarmup: z$1.boolean().default(true).volatile().description(CACHE_WARMUP_SETTING_DESCRIPTION),
|
|
137540
137666
|
cacheWarmupProviders: z$1.array(z$1.string()).default(CONTROLLED_PROVIDERS).volatile().description("启用大结果预览投影的线路列表;留空数组表示全部关闭。"),
|
|
@@ -137604,6 +137730,7 @@ function apply(ctx, pluginConfig = {}) {
|
|
|
137604
137730
|
ctx.effect(() => {
|
|
137605
137731
|
const handle = installCompactionPrompt({
|
|
137606
137732
|
on: (event, listener, options) => ctx.on?.(event, listener, options),
|
|
137733
|
+
get: (name) => ctx.get(name),
|
|
137607
137734
|
logger: ctx.logger
|
|
137608
137735
|
});
|
|
137609
137736
|
return () => handle?.dispose();
|
|
@@ -64,7 +64,7 @@ export declare const zh: {
|
|
|
64
64
|
readonly settingsCacheWaitWarmupName: "等待缓存续热";
|
|
65
65
|
readonly settingsCacheWaitWarmupNote: "等待子代理或后台任务期间,在缓存到期前 5 分钟轻量续热;默认用于 Kimi 以及两条 Claude 线路的 1 小时缓存档,其他线路需明确 TTL 并显式启用";
|
|
66
66
|
readonly settingsReasoningSeedName: "精简思考示范";
|
|
67
|
-
readonly settingsReasoningSeedNote: "实验性:在 DeepSeek V4.1 Flash
|
|
67
|
+
readonly settingsReasoningSeedNote: "实验性:在 DeepSeek V4.1 Flash 对话中按固定间隔插入笔记式思考示范,让模型改用更精简的推理;新会话从头开启最稳定,示范不写入会话";
|
|
68
68
|
readonly settingsCacheAffinityName: "账号缓存亲和";
|
|
69
69
|
readonly settingsCacheAffinityNote: "多账号轮换时优先选前缀仍热的账号,低额度时让位;默认用于 Kimi,其他线路需证明账号级缓存并显式启用";
|
|
70
70
|
readonly settingsPlanModePipelineName: "计划模式管线";
|
|
@@ -157,7 +157,7 @@ export declare const dictionaries: {
|
|
|
157
157
|
readonly settingsCacheWaitWarmupName: "等待缓存续热";
|
|
158
158
|
readonly settingsCacheWaitWarmupNote: "等待子代理或后台任务期间,在缓存到期前 5 分钟轻量续热;默认用于 Kimi 以及两条 Claude 线路的 1 小时缓存档,其他线路需明确 TTL 并显式启用";
|
|
159
159
|
readonly settingsReasoningSeedName: "精简思考示范";
|
|
160
|
-
readonly settingsReasoningSeedNote: "实验性:在 DeepSeek V4.1 Flash
|
|
160
|
+
readonly settingsReasoningSeedNote: "实验性:在 DeepSeek V4.1 Flash 对话中按固定间隔插入笔记式思考示范,让模型改用更精简的推理;新会话从头开启最稳定,示范不写入会话";
|
|
161
161
|
readonly settingsCacheAffinityName: "账号缓存亲和";
|
|
162
162
|
readonly settingsCacheAffinityNote: "多账号轮换时优先选前缀仍热的账号,低额度时让位;默认用于 Kimi,其他线路需证明账号级缓存并显式启用";
|
|
163
163
|
readonly settingsPlanModePipelineName: "计划模式管线";
|
|
@@ -246,7 +246,7 @@ export declare const dictionaries: {
|
|
|
246
246
|
readonly settingsCacheWaitWarmupName: "等待缓存续热";
|
|
247
247
|
readonly settingsCacheWaitWarmupNote: "等待子代理或后台任务期间,在缓存到期前 5 分钟轻量续热;默认用于 Kimi 以及两条 Claude 线路的 1 小时缓存档,其他线路需明确 TTL 并显式启用";
|
|
248
248
|
readonly settingsReasoningSeedName: "精简思考示范";
|
|
249
|
-
readonly settingsReasoningSeedNote: "实验性:在 DeepSeek V4.1 Flash
|
|
249
|
+
readonly settingsReasoningSeedNote: "实验性:在 DeepSeek V4.1 Flash 对话中按固定间隔插入笔记式思考示范,让模型改用更精简的推理;新会话从头开启最稳定,示范不写入会话";
|
|
250
250
|
readonly settingsCacheAffinityName: "账号缓存亲和";
|
|
251
251
|
readonly settingsCacheAffinityNote: "多账号轮换时优先选前缀仍热的账号,低额度时让位;默认用于 Kimi,其他线路需证明账号级缓存并显式启用";
|
|
252
252
|
readonly settingsPlanModePipelineName: "计划模式管线";
|
package/lib/types/compat.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
|
|
|
76
76
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
77
77
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
78
78
|
*/
|
|
79
|
-
export declare const PLUGIN_VERSION: "0.97.
|
|
79
|
+
export declare const PLUGIN_VERSION: "0.97.3";
|
|
80
80
|
export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
|
|
81
81
|
export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
|
|
82
82
|
export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
|
|
@@ -66,6 +66,8 @@ export interface PromptContext {
|
|
|
66
66
|
on?(event: 'llm/stream', listener: PromptStreamListener, options?: {
|
|
67
67
|
readonly global?: boolean;
|
|
68
68
|
}): unknown;
|
|
69
|
+
/** Service lookup, so a frozen request can be re-dispatched through `llm.stream`. */
|
|
70
|
+
get?(name: string): unknown;
|
|
69
71
|
logger?: {
|
|
70
72
|
warn(message: string): void;
|
|
71
73
|
} | undefined;
|
|
@@ -78,15 +80,10 @@ export interface PromptHandle {
|
|
|
78
80
|
* Install the `llm/stream` listener that swaps the directive in place.
|
|
79
81
|
*
|
|
80
82
|
* The rewrite happens on the request object the waterfall already carries,
|
|
81
|
-
* because `next()` takes no arguments
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* as the harness built them.
|
|
86
|
-
*
|
|
87
|
-
* A frozen request is skipped rather than forced: a host that freezes its
|
|
88
|
-
* options is telling callers not to rewrite them, and keeping the shipped
|
|
89
|
-
* directive is a correct outcome, not a failure.
|
|
83
|
+
* because `next()` takes no arguments. When the loop has already frozen that
|
|
84
|
+
* object (it does so before dispatch), the spliced copy is re-dispatched through
|
|
85
|
+
* `llm.stream` instead; the second pass finds no shipped directive, so the
|
|
86
|
+
* listener cannot wrap the replacement in itself.
|
|
90
87
|
* @param ctx - structural context: the event bus and a logger.
|
|
91
88
|
* @returns the live handle, or undefined on a host with no event bus.
|
|
92
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction-prompt.d.ts","sourceRoot":"","sources":["../../../../../src/host/infra/hub/compaction-prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,4EACmC,CAAA;AAE3E,4FAA4F;AAC5F,eAAO,MAAM,yBAAyB,wBAAwB,CAAA;AAE9D,iCAAiC;AACjC,eAAO,MAAM,sBAAsB,QAqBvB,CAAA;AAEZ,8DAA8D;AAC9D,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC;AAED,8DAA8D;AAC9D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,CAAA;CACtD;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,O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WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,EAAE,OAAO,CAAA;IACzB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACnD,mBAAmB,EAAE,OAAO,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAkBD,eAAO,MAAM,qBAAqB,EAAE,SAAS,iBAAiB,
|
|
1
|
+
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../../../src/host/providers/qianfan-token-plan/model-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AAGjH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,EAAE,OAAO,CAAA;IACzB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACnD,mBAAmB,EAAE,OAAO,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAkBD,eAAO,MAAM,qBAAqB,EAAE,SAAS,iBAAiB,EAgB7D,CAAA;AAED,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAA+C,CAAA;AAEtG,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,CAIjE;AAGD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAIpE;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,GAAE;IAAE,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAAC,sBAAsB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAAO,GAAG,kBAAkB,EAAE,CAQlL;AAMD,eAAO,MAAM,gCAAgC,IAAI,CAAA;AAEjD,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;CACxB;AACD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,2BAA2B,EAAE,CAAA;CACtC;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,sBAAsB,CAY9E;AAED,oCAAoC;AACpC,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,sBAAsB,GAAG,MAAM,CAYxF;AAED,wFAAwF;AACxF,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,OAAO,GAAG,sBAAsB,GAAG,IAAI,CAqBxF;AAED,8FAA8F;AAC9F,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI,GAAG,iBAAiB,EAAE,GAAG,IAAI,CAgBvG"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { QianwenModelOption, QianwenReasoningEffort } from '../../../shared/qianwen-token-plan-contracts.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Every general-chat row carries the documented `reasoning_effort` ladder, so the composer
|
|
4
|
+
* offers a thinking control for the whole plan catalogue instead of the Qwen rows only.
|
|
5
|
+
* `thinkingDisableable` decides whether `none` (thinking off) belongs to that row's ladder.
|
|
6
|
+
* Auto is routed upstream and an undeclared id is not described here, so both ship no ladder.
|
|
7
|
+
*/
|
|
2
8
|
export type QianwenPlanAvailability = 'personal-and-team' | 'team-only';
|
|
3
9
|
export interface QianwenModelEntry {
|
|
4
10
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../../../src/host/providers/qianwen-token-plan/model-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AAGjH,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,WAAW,CAAA;AACvE,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,uBAAuB,CAAA;IACrC,gBAAgB,EAAE,OAAO,CAAA;IACzB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACnD,mBAAmB,EAAE,OAAO,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;
|
|
1
|
+
{"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../../../src/host/providers/qianwen-token-plan/model-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AAGjH;;;;;GAKG;AAEH,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,WAAW,CAAA;AACvE,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,uBAAuB,CAAA;IACrC,gBAAgB,EAAE,OAAO,CAAA;IACzB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACnD,mBAAmB,EAAE,OAAO,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAkBD,eAAO,MAAM,qBAAqB,EAAE,SAAS,iBAAiB,EAwB7D,CAAA;AACD,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAA6C,CAAA;AACpG,wBAAgB,mBAAmB,CAAC,EAAE,EAAC,MAAM,GAAE,iBAAiB,CAI/D;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAC,iBAAiB,GAAE,MAAM,CAKlE;AACD,wBAAgB,mBAAmB,CAAC,QAAQ,GAAC;IAAC,eAAe,CAAC,EAAC,SAAS,MAAM,EAAE,GAAC,IAAI,CAAC;IAAA,sBAAsB,CAAC,EAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAC,MAAM,CAAC,CAAC,CAAA;CAAI,GAAE,kBAAkB,EAAE,CAGtK"}
|
|
@@ -49,11 +49,18 @@ export interface SeedMessage {
|
|
|
49
49
|
* @returns 交替排列的用户与助手示范消息;线路无法承载时为空数组。
|
|
50
50
|
*/
|
|
51
51
|
export declare function buildReasoningSeedMessages(provider: string, model: string): SeedMessage[];
|
|
52
|
+
/** 首条用户消息前插入的示范组数;首步需要足够剂量建立写法。 */
|
|
53
|
+
export declare const REASONING_SEED_INITIAL_EXCHANGES = 5;
|
|
54
|
+
/** 首组之后,每经过多少条原始对话消息再插入一组示范。 */
|
|
55
|
+
export declare const REASONING_SEED_MESSAGE_STRIDE = 2;
|
|
52
56
|
/**
|
|
53
|
-
*
|
|
57
|
+
* 把固定示范分散到对话中:首条用户消息前插入
|
|
58
|
+
* {@link REASONING_SEED_INITIAL_EXCHANGES} 组,之后每隔
|
|
59
|
+
* {@link REASONING_SEED_MESSAGE_STRIDE} 条原始消息再插入一组,最多用完示范列表。
|
|
54
60
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
61
|
+
* 插入位置只由原始消息序号决定。历史增长不会移动旧示范,因此已有前缀缓存保持命中;
|
|
62
|
+
* 同时较近的示范能对抗模型近期长思考的自我强化。工具调用与其结果之间不插入。
|
|
63
|
+
* 前导段之后若不是用户消息(例如开头就有 developer 工具变更),按原样返回。
|
|
57
64
|
* @param messages - 本次请求的消息。
|
|
58
65
|
* @param provider - 线路 id。
|
|
59
66
|
* @param model - 模型 id。
|
|
@@ -89,6 +96,8 @@ export interface ReasoningSeedContext {
|
|
|
89
96
|
on?(event: 'llm/stream', listener: ReasoningSeedStreamListener, options?: {
|
|
90
97
|
readonly global?: boolean;
|
|
91
98
|
}): unknown;
|
|
99
|
+
/** Service lookup, so a frozen request can be re-dispatched through `llm.stream`. */
|
|
100
|
+
get?(name: string): unknown;
|
|
92
101
|
}
|
|
93
102
|
/** 安装选项。 */
|
|
94
103
|
export interface ReasoningSeedOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning-seed.d.ts","sourceRoot":"","sources":["../../../../../src/host/runtime/deepseek-v41-flash/reasoning-seed.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAA;AAGlF,OAAO,EAAE,0BAA0B,EAAE,CAAA;AAErC,oCAAoC;AACpC,eAAO,MAAM,wBAAwB,wBAAwB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