@eddyskywalker/dsh-chatgpt-subscription 0.88.1 → 0.88.2
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 +994 -274
- package/lib/client.js.map +1 -1
- package/lib/codemode.js +1 -0
- package/lib/index.js +86 -7
- package/lib/{progress-updates-CSBYky9J.js → progress-updates-DwpfBXOx.js} +53 -17
- package/lib/progress-updates.js +1 -1
- package/lib/types/client/features/progress-updates/contracts.d.ts +9 -0
- package/lib/types/client/features/progress-updates/contracts.d.ts.map +1 -1
- package/lib/types/client/features/progress-updates/dashboard.d.ts +12 -0
- package/lib/types/client/features/progress-updates/dashboard.d.ts.map +1 -0
- package/lib/types/client/features/progress-updates/host-source.d.ts +7 -1
- package/lib/types/client/features/progress-updates/host-source.d.ts.map +1 -1
- package/lib/types/client/features/progress-updates/locales.d.ts +59 -2
- package/lib/types/client/features/progress-updates/locales.d.ts.map +1 -1
- package/lib/types/client/features/progress-updates/updates-panel.d.ts +7 -89
- package/lib/types/client/features/progress-updates/updates-panel.d.ts.map +1 -1
- package/lib/types/client/locales-ru/progress-updates.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/providers/kimi-code/cache-wait.d.ts +23 -0
- package/lib/types/host/providers/kimi-code/cache-wait.d.ts.map +1 -1
- package/lib/types/host/providers/opencode-go/mapper.d.ts.map +1 -1
- package/lib/types/host/runtime/codemode/rules.d.ts.map +1 -1
- package/lib/types/host/runtime/progress-updates/index.d.ts +1 -1
- package/lib/types/host/runtime/progress-updates/index.d.ts.map +1 -1
- package/lib/types/host/runtime/progress-updates/nudge.d.ts +1 -1
- package/lib/types/host/runtime/progress-updates/routes.d.ts +3 -1
- package/lib/types/host/runtime/progress-updates/routes.d.ts.map +1 -1
- package/lib/types/host/runtime/progress-updates/store.d.ts +8 -1
- package/lib/types/host/runtime/progress-updates/store.d.ts.map +1 -1
- package/lib/types/index.d.ts +2 -2
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/codemode.js
CHANGED
|
@@ -661,6 +661,7 @@ function buildCodemodeSectionText(input) {
|
|
|
661
661
|
"- Discovery returns whole objects too: `" + listTool + "` answers `{ tools: [{ name, description, namespace }] }`, `" + searchTool + "` answers `{ tools: [{ name, namespace, description, parameters, output? }], fallback? }`, and `" + describeTool + "` answers `{ found, name?, namespace?, description?, parameters?, output? }`.",
|
|
662
662
|
!python && retained ? "- Tool argument objects and evaluated values must be lossless JSON: **never leave `undefined` in an object property value** — `{ a: x.opt }` fails the call when `x.opt === undefined`. Omit the key, write `x.opt ?? null`, or inspect it with `inspect(x)`." : "- Tool argument objects and `return` values must be lossless JSON: **never leave `undefined` in an object property value** — `{ a: x.opt }` fails the call when `x.opt === undefined`. Omit the key, write `x.opt ?? null`, or print it with `inspect` / `console.log`.",
|
|
663
663
|
"- Parameter keys: `read`, `edit`, `write`, and `read_image` take `file_path` (not `path`); `glob` and `grep` take `path`; `bash`, `pwsh`, and `win_bash` take `workdir` (not `cwd`).",
|
|
664
|
+
"- Before `edit`, read the file and copy an `old_string` that occurs exactly once; `old_string` and `new_string` must differ. Use `glob` to confirm an unknown path before `read` or `edit`: a missing path is a tool error, not an empty result.",
|
|
664
665
|
...python ? [] : [
|
|
665
666
|
"- Paths and regexes: write a Windows path with forward slashes (`C:/Users/...`) or wrap it in `String.raw`; a literal `C:\\Users` inside an ordinary string is read as the escape `\\U` and the program never starts (`Expected unicode escape`). Regex backslashes (`\\d`, `\\.`) have the same trap — double them or use `String.raw`.",
|
|
666
667
|
...retained ? ["- Modules in the retained REPL: CommonJS `require` / `module` and host packages like `import('vscode')` are unavailable; dynamic `await import('./src/x.ts')` resolves relative to the session's initial working directory (whereas `process.cwd()` and relative file paths follow the current session directory on each call).", "- Retained REPL scope: each call copies prior top-level bindings into a fresh scope (mutating an object persists; reassigning a primitive only updates that call's copy). Either use a copied name or redeclare it — never self-reference in `let x = x + 1`, avoid `var` inside blocks, and never declare `__$binding_*` identifiers."] : ["- A program is not a module: `import('./src/x.ts')` and `import('vscode')` cannot resolve — the program runs in a fresh process with no module graph. Read files with `tools.read`; `await import('node:fs')` works only for Node built-ins."],
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveProgressUpdatesSettings, n as attachProgressSettings } from "./progress-updates-
|
|
1
|
+
import { a as resolveProgressUpdatesSettings, n as attachProgressSettings } from "./progress-updates-DwpfBXOx.js";
|
|
2
2
|
import { h as resolvePlanModePipelineEnabled, l as attachPlanModePipelineSettings } from "./plan-mode-pipeline-DvVmLaxR.js";
|
|
3
3
|
import { a as PLUGIN_MESSAGE_SOURCE_KIND, c as leadingSystemEndIndex, i as LlmError$1, l as midConversationSystemToUserMessage, n as installBundledPresets, o as extractSystemText, r as resolvesFromHere, s as formatMidConversationSystemReminder, u as normalizeGenerateOptions } from "./preset-sync-B9yKbQPc.js";
|
|
4
4
|
import { A as isDeepSeekV41FlashSession, B as projectFreshCodexCompaction, C as isStepOpenModel, D as DEEPSEEK_OFFICIAL_PROVIDERS, E as matchOpenModelSession, F as codexCompactionReplayMetadata, H as withCodexCompactionTrigger, I as codexRemoteCompactionEnabled, L as isCompactionItem, M as readSessionRoute, N as checkpointFromMetadata, O as isDeepSeekV41Flash, P as checkpointFromOutputItems, R as latestCodexCompaction, S as isQwenOpenModel, T as matchOpenModelScope, V as shouldCompactCodexPayload, _ as isMimoOpenModel, b as isOpenModelPrefixCacheProtected, d as OPEN_MODEL_PROFILES, f as bareOpenModelId, g as isLongSparseOpenModel, h as isKimiOpenModel, j as readScopeRoute, k as isDeepSeekV41FlashScope, l as resolveSkipProviders, m as isGlm5OpenModel, n as DEFAULT_SKIP_PROVIDERS, p as isDeepSeekV4NonV41Model, r as PRUNER_SERVICE_NAME, u as shouldSkipPruningForSession, v as isMinimaxOpenModel, w as matchOpenModelProfile, x as isOpenModelSessionPrefixCacheProtected, y as isOpenModelCacheWarmupProtected, z as noteCodexRemoteCompactionFailure } from "./tool-result-pruner-Dy6X17gv.js";
|
|
@@ -840,7 +840,7 @@ const ROUTE_PREFIX$5 = "/api/dsh-chatgpt-subscription";
|
|
|
840
840
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
841
841
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
842
842
|
*/
|
|
843
|
-
const PLUGIN_VERSION = "0.88.
|
|
843
|
+
const PLUGIN_VERSION = "0.88.2";
|
|
844
844
|
const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
|
|
845
845
|
const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
|
|
846
846
|
const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
|
|
@@ -32992,7 +32992,8 @@ function feedOpenCodeGoChatPayload(state, payload) {
|
|
|
32992
32992
|
});
|
|
32993
32993
|
}
|
|
32994
32994
|
tool.id = stringValue(raw.id) ?? tool.id;
|
|
32995
|
-
|
|
32995
|
+
const name = stringValue(fn.name);
|
|
32996
|
+
if (name !== void 0 && name !== "") tool.name = name;
|
|
32996
32997
|
const args = stringValue(fn.arguments) ?? "";
|
|
32997
32998
|
if (!tool.started) {
|
|
32998
32999
|
tool.started = true;
|
|
@@ -33007,7 +33008,7 @@ function feedOpenCodeGoChatPayload(state, payload) {
|
|
|
33007
33008
|
type: "tool-call-delta",
|
|
33008
33009
|
index: tool.index,
|
|
33009
33010
|
id: toToolCallId(tool.id),
|
|
33010
|
-
name: tool.name
|
|
33011
|
+
...tool.name === "" ? {} : { name: tool.name },
|
|
33011
33012
|
argumentsDelta: args
|
|
33012
33013
|
});
|
|
33013
33014
|
});
|
|
@@ -105720,6 +105721,17 @@ const CACHE_WAIT_WARMUP_SETTING_DESCRIPTION = "等待子代理或后台任务期
|
|
|
105720
105721
|
const MAX_TRACKED_SESSIONS = 256;
|
|
105721
105722
|
/** Per-session bound on tracked background jobs; registrations beyond it are ignored. */
|
|
105722
105723
|
const MAX_TRACKED_JOBS = 256;
|
|
105724
|
+
/** Bound on remembered child-to-parent links, kept after a child settles so a reused child re-attaches. */
|
|
105725
|
+
const MAX_KNOWN_CHILDREN = 1024;
|
|
105726
|
+
/**
|
|
105727
|
+
* Providers whose activity store can name a parent's line when its request header is gone
|
|
105728
|
+
* (e.g. after a host restart). Order breaks ties; kimi-code stays first for compatibility.
|
|
105729
|
+
*/
|
|
105730
|
+
const WAIT_PROVIDER_CANDIDATES = [
|
|
105731
|
+
"kimi-code",
|
|
105732
|
+
"claude-subscription",
|
|
105733
|
+
"claude-api"
|
|
105734
|
+
];
|
|
105723
105735
|
/** Pure cache-wait policy; no child deadline or forced progress is involved. */
|
|
105724
105736
|
function evaluateCacheWait(input) {
|
|
105725
105737
|
if (!input.waiting || !input.hasChildren || input.lastActiveAt === void 0) return { kind: "none" };
|
|
@@ -105810,6 +105822,8 @@ var KimiCacheWaitController = class {
|
|
|
105810
105822
|
options;
|
|
105811
105823
|
states = /* @__PURE__ */ new Map();
|
|
105812
105824
|
parentByChild = /* @__PURE__ */ new Map();
|
|
105825
|
+
/** Child-to-parent links that survive the child settling; see {@link reattachChild}. */
|
|
105826
|
+
knownParentByChild = /* @__PURE__ */ new Map();
|
|
105813
105827
|
providerBySession = /* @__PURE__ */ new Map();
|
|
105814
105828
|
now;
|
|
105815
105829
|
timer;
|
|
@@ -105850,9 +105864,11 @@ var KimiCacheWaitController = class {
|
|
|
105850
105864
|
const childId = text(data?.childId);
|
|
105851
105865
|
if (childId === void 0 || childId === session.id) return;
|
|
105852
105866
|
const state = this.stateFor(session.id);
|
|
105867
|
+
state.session = session;
|
|
105853
105868
|
const newChild = !state.children.has(childId);
|
|
105854
105869
|
state.children.add(childId);
|
|
105855
105870
|
this.parentByChild.set(childId, session.id);
|
|
105871
|
+
this.rememberParent(childId, session.id);
|
|
105856
105872
|
if (newChild) {
|
|
105857
105873
|
state.warmupUsed = false;
|
|
105858
105874
|
state.warmupCount = 0;
|
|
@@ -105868,7 +105884,7 @@ var KimiCacheWaitController = class {
|
|
|
105868
105884
|
return;
|
|
105869
105885
|
}
|
|
105870
105886
|
if (type === "user/message") {
|
|
105871
|
-
const source = record$1(record$1(data?.message)?.source);
|
|
105887
|
+
const source = record$1(record$1(data?.message)?.source) ?? record$1(data?.source);
|
|
105872
105888
|
if (text(source?.kind) === "subagent-settled") this.removeChild(text(source?.senderSessionId));
|
|
105873
105889
|
return;
|
|
105874
105890
|
}
|
|
@@ -105876,6 +105892,7 @@ var KimiCacheWaitController = class {
|
|
|
105876
105892
|
const jobId = text(data?.jobId);
|
|
105877
105893
|
if (jobId === void 0) return;
|
|
105878
105894
|
const state = this.stateFor(session.id);
|
|
105895
|
+
state.session = session;
|
|
105879
105896
|
if (state.jobs.has(jobId) || state.jobs.size >= MAX_TRACKED_JOBS) return;
|
|
105880
105897
|
state.jobs.add(jobId);
|
|
105881
105898
|
state.warmupUsed = false;
|
|
@@ -105890,7 +105907,10 @@ var KimiCacheWaitController = class {
|
|
|
105890
105907
|
this.removeJob(session.id, text(data?.jobId));
|
|
105891
105908
|
return;
|
|
105892
105909
|
}
|
|
105910
|
+
if (type === "turn/start") this.reattachChild(session);
|
|
105893
105911
|
const state = this.stateFor(session.id);
|
|
105912
|
+
state.session = session;
|
|
105913
|
+
if (type === "turn/start" || type === "turn/end") state.turnSeen = true;
|
|
105894
105914
|
if (type === "turn/start") {
|
|
105895
105915
|
state.waiting = false;
|
|
105896
105916
|
this.clearTimer(state);
|
|
@@ -105937,6 +105957,7 @@ var KimiCacheWaitController = class {
|
|
|
105937
105957
|
for (const state of this.states.values()) this.clearTimer(state);
|
|
105938
105958
|
this.states.clear();
|
|
105939
105959
|
this.parentByChild.clear();
|
|
105960
|
+
this.knownParentByChild.clear();
|
|
105940
105961
|
this.providerBySession.clear();
|
|
105941
105962
|
}
|
|
105942
105963
|
stateFor(sessionId) {
|
|
@@ -105962,6 +105983,50 @@ var KimiCacheWaitController = class {
|
|
|
105962
105983
|
}
|
|
105963
105984
|
return state;
|
|
105964
105985
|
}
|
|
105986
|
+
rememberParent(childId, parentId) {
|
|
105987
|
+
this.knownParentByChild.delete(childId);
|
|
105988
|
+
this.knownParentByChild.set(childId, parentId);
|
|
105989
|
+
if (this.knownParentByChild.size > MAX_KNOWN_CHILDREN) {
|
|
105990
|
+
const oldest = this.knownParentByChild.keys().next();
|
|
105991
|
+
if (oldest.done !== true) this.knownParentByChild.delete(oldest.value);
|
|
105992
|
+
}
|
|
105993
|
+
}
|
|
105994
|
+
/**
|
|
105995
|
+
* A child Session started a turn: make sure its parent counts it as running again.
|
|
105996
|
+
*
|
|
105997
|
+
* Two real cases produce a running child the catalog no longer reports:
|
|
105998
|
+
* - the parent reuses a settled child through `send_message`, which appends no new
|
|
105999
|
+
* `subagent/catalog` event, so the settle notice left the child untracked;
|
|
106000
|
+
* - the host restarted while children ran: they resume on their own, but this
|
|
106001
|
+
* controller starts empty and the idle parent never ends another turn to re-arm.
|
|
106002
|
+
*
|
|
106003
|
+
* The parent comes from the remembered catalog link, else the child's durable header.
|
|
106004
|
+
* A parent this controller has never seen start or end a turn (it started after the
|
|
106005
|
+
* parent's last turn) is adopted as waiting: it is idle while its children run, and its
|
|
106006
|
+
* next real turn/start clears that again.
|
|
106007
|
+
*/
|
|
106008
|
+
reattachChild(session) {
|
|
106009
|
+
const childId = session.id;
|
|
106010
|
+
let parentId = this.knownParentByChild.get(childId);
|
|
106011
|
+
if (parentId === void 0) try {
|
|
106012
|
+
const header = record$1(session.header);
|
|
106013
|
+
const origin = text(header?.origin);
|
|
106014
|
+
if (origin === void 0 || origin === "subagent") parentId = text(header?.parentSession);
|
|
106015
|
+
} catch {}
|
|
106016
|
+
if (parentId === void 0 || parentId === childId) return;
|
|
106017
|
+
const state = this.stateFor(parentId);
|
|
106018
|
+
if (state.turnSeen !== true) state.waiting = true;
|
|
106019
|
+
this.rememberParent(childId, parentId);
|
|
106020
|
+
if (state.children.has(childId)) return;
|
|
106021
|
+
state.children.add(childId);
|
|
106022
|
+
this.parentByChild.set(childId, parentId);
|
|
106023
|
+
state.warmupUsed = false;
|
|
106024
|
+
state.warmupCount = 0;
|
|
106025
|
+
state.warmupFailed = false;
|
|
106026
|
+
state.lastWarmupAt = void 0;
|
|
106027
|
+
state.handled = false;
|
|
106028
|
+
this.reconcile(state.session ?? { id: parentId }, state);
|
|
106029
|
+
}
|
|
105965
106030
|
dropState(sessionId) {
|
|
105966
106031
|
const state = this.states.get(sessionId);
|
|
105967
106032
|
if (state === void 0) return;
|
|
@@ -106000,7 +106065,21 @@ var KimiCacheWaitController = class {
|
|
|
106000
106065
|
} catch {}
|
|
106001
106066
|
const latest = this.providerBySession.get(session.id);
|
|
106002
106067
|
if (latest !== void 0) return latest;
|
|
106003
|
-
|
|
106068
|
+
let best;
|
|
106069
|
+
for (const provider of WAIT_PROVIDER_CANDIDATES) {
|
|
106070
|
+
let at;
|
|
106071
|
+
try {
|
|
106072
|
+
at = this.activity(session.id, provider)?.lastActiveAt;
|
|
106073
|
+
} catch {
|
|
106074
|
+
at = void 0;
|
|
106075
|
+
}
|
|
106076
|
+
if (at === void 0 || !Number.isFinite(at)) continue;
|
|
106077
|
+
if (best === void 0 || at > best.at) best = {
|
|
106078
|
+
provider,
|
|
106079
|
+
at
|
|
106080
|
+
};
|
|
106081
|
+
}
|
|
106082
|
+
return best?.provider;
|
|
106004
106083
|
}
|
|
106005
106084
|
isWarmupEnabled() {
|
|
106006
106085
|
try {
|
|
@@ -121228,7 +121307,7 @@ const Config = z$1.object({
|
|
|
121228
121307
|
reasoningCollapseGuard: z$1.union([z$1.object({}), z$1.const(false)]).default(false).description("推理复读熔断器;传入配置对象开启,false 关闭。"),
|
|
121229
121308
|
noAnswerResume: z$1.union([z$1.object({}), z$1.const(false)]).default({}).description("在回合无回答且无工具调用结束时自动续跑;设 false 关闭。"),
|
|
121230
121309
|
progressUpdates: z$1.boolean().default(true).volatile().description("允许 Agent 在执行过程中汇报阶段进展并在侧栏展示。"),
|
|
121231
|
-
progressUpdatesNudgeThreshold: z$1.number().step(1).min(1).max(50).default(
|
|
121310
|
+
progressUpdatesNudgeThreshold: z$1.number().step(1).min(1).max(50).default(24).volatile().description("连续工具调用达到该轮数仍未汇报进展时发出提醒。"),
|
|
121232
121311
|
progressUpdatesLanguage: z$1.union([
|
|
121233
121312
|
z$1.const("auto"),
|
|
121234
121313
|
z$1.const("zh"),
|
|
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
* @returns 是否达到 {@link NUDGE_THRESHOLD}。
|
|
8
8
|
*/
|
|
9
9
|
function shouldNudge(rounds) {
|
|
10
|
-
return rounds >=
|
|
10
|
+
return rounds >= 24;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* 把进展列表截断到环形缓冲上限,保留最新的一批。
|
|
@@ -698,7 +698,11 @@ function makeProgressUpdatesRoute(reader) {
|
|
|
698
698
|
return;
|
|
699
699
|
}
|
|
700
700
|
const session = new URL(req.url ?? "/", "http://127.0.0.1").searchParams.get("session") ?? "";
|
|
701
|
-
|
|
701
|
+
const tasks = reader.tasksOf?.(session);
|
|
702
|
+
writeJson(res, 200, {
|
|
703
|
+
updates: reader.updatesOf(session),
|
|
704
|
+
...tasks === void 0 ? {} : { tasks }
|
|
705
|
+
}, { "cache-control": "no-store" });
|
|
702
706
|
}
|
|
703
707
|
};
|
|
704
708
|
}
|
|
@@ -725,7 +729,7 @@ function resolveProgressUpdatesSettings(config) {
|
|
|
725
729
|
const language = readProgressConfigField(config?.progressUpdatesLanguage);
|
|
726
730
|
return {
|
|
727
731
|
enabled: enabled !== false,
|
|
728
|
-
nudgeThreshold: typeof threshold === "number" && Number.isSafeInteger(threshold) && threshold > 0 ? threshold :
|
|
732
|
+
nudgeThreshold: typeof threshold === "number" && Number.isSafeInteger(threshold) && threshold > 0 ? threshold : 24,
|
|
729
733
|
language: language !== void 0 && PROGRESS_UPDATE_LANGUAGES.includes(language) ? language : "auto"
|
|
730
734
|
};
|
|
731
735
|
}
|
|
@@ -955,20 +959,50 @@ function installProgressUpdates(ctx, options) {
|
|
|
955
959
|
* 请求不带 session(或带一个本进程没见过的 id)时,回退到那个"合成会话桶":
|
|
956
960
|
* 这是单会话部署里的常态,也是插件第一次被调用、祖先血缘还没建立时的落点。
|
|
957
961
|
*/
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
if (
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
const
|
|
965
|
-
|
|
966
|
-
|
|
962
|
+
/** 读取宿主已有 Todo 投影;只复制普通 DTO,绝不追加会话消息。 */
|
|
963
|
+
const projectedTasksOf = (sessionId) => {
|
|
964
|
+
if (sessionId === "") return [];
|
|
965
|
+
try {
|
|
966
|
+
const sessions = sessionsOf();
|
|
967
|
+
const projections = sessionProjectionsOf();
|
|
968
|
+
const own = sessions?.get?.(sessionId);
|
|
969
|
+
if (own === void 0 || projections === void 0) return [];
|
|
970
|
+
const state = projections.stateOf(own, "todos");
|
|
971
|
+
if (!Array.isArray(state)) return [];
|
|
972
|
+
const tasks = [];
|
|
973
|
+
for (const item of state) {
|
|
974
|
+
if (!isRecord(item) || typeof item.content !== "string") continue;
|
|
975
|
+
const status = item.status;
|
|
976
|
+
if (status !== "pending" && status !== "in_progress" && status !== "completed") continue;
|
|
977
|
+
tasks.push({
|
|
978
|
+
id: sessionId + ":todo:" + tasks.length,
|
|
979
|
+
content: item.content,
|
|
980
|
+
status,
|
|
981
|
+
...typeof item.activeForm === "string" ? { activeForm: item.activeForm } : {}
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
return tasks;
|
|
985
|
+
} catch {
|
|
967
986
|
return [];
|
|
968
987
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
988
|
+
};
|
|
989
|
+
const reader = {
|
|
990
|
+
tasksOf: projectedTasksOf,
|
|
991
|
+
updatesOf: (sessionId) => {
|
|
992
|
+
const projected = projectionUpdatesOf(sessionId);
|
|
993
|
+
if (projected !== void 0) return projected;
|
|
994
|
+
const direct = stores.get(sessionId);
|
|
995
|
+
if (direct !== void 0) return direct.state().updates;
|
|
996
|
+
if (sessionId !== "") {
|
|
997
|
+
const merged = counterSessionIdOf({ id: sessionId }, sessionsOf());
|
|
998
|
+
const parent = merged === void 0 ? void 0 : stores.get(merged);
|
|
999
|
+
if (parent !== void 0) return parent.state().updates;
|
|
1000
|
+
return [];
|
|
1001
|
+
}
|
|
1002
|
+
const fallback = stores.get("session");
|
|
1003
|
+
return fallback === void 0 ? [] : fallback.state().updates;
|
|
1004
|
+
}
|
|
1005
|
+
};
|
|
972
1006
|
track(() => {
|
|
973
1007
|
const tools = serviceOf("tools");
|
|
974
1008
|
if (tools === void 0) {
|
|
@@ -979,7 +1013,9 @@ function installProgressUpdates(ctx, options) {
|
|
|
979
1013
|
isEnabled: () => options.settings().enabled,
|
|
980
1014
|
sink: () => ({ push: (update) => {
|
|
981
1015
|
if (!options.settings().enabled) return false;
|
|
982
|
-
storeOf(update.source ?? "session")
|
|
1016
|
+
const store = storeOf(update.source ?? "session");
|
|
1017
|
+
store.push(update);
|
|
1018
|
+
store.markUpdated();
|
|
983
1019
|
return true;
|
|
984
1020
|
} }),
|
|
985
1021
|
sourceOf: (exec) => counterKeyOf(exec)
|
|
@@ -1055,7 +1091,7 @@ function installProgressUpdates(ctx, options) {
|
|
|
1055
1091
|
countedSteps.set(key, step);
|
|
1056
1092
|
}
|
|
1057
1093
|
const rounds = store.bumpRound();
|
|
1058
|
-
if (!(current.nudgeThreshold ===
|
|
1094
|
+
if (!(current.nudgeThreshold === 24 ? shouldNudge(rounds) : rounds >= current.nudgeThreshold)) return decision;
|
|
1059
1095
|
const nudges = store.markNudged().nudges;
|
|
1060
1096
|
return withNudge(decision, createNudgeContext(nudges));
|
|
1061
1097
|
}));
|
package/lib/progress-updates.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as name, n as attachProgressSettings, r as inject, t as apply } from "./progress-updates-
|
|
1
|
+
import { i as name, n as attachProgressSettings, r as inject, t as apply } from "./progress-updates-DwpfBXOx.js";
|
|
2
2
|
export { apply, attachProgressSettings, inject, name };
|
|
@@ -35,6 +35,13 @@ export interface ProgressUpdate {
|
|
|
35
35
|
/** 来源标签(计数会话 id)。 */
|
|
36
36
|
source?: string;
|
|
37
37
|
}
|
|
38
|
+
/** 宿主 Todo 投影的只读副本。 */
|
|
39
|
+
export interface ProgressTask {
|
|
40
|
+
id: string;
|
|
41
|
+
content: string;
|
|
42
|
+
status: 'pending' | 'in_progress' | 'completed';
|
|
43
|
+
activeForm?: string;
|
|
44
|
+
}
|
|
38
45
|
/**
|
|
39
46
|
* 右侧栏页签类型的注册面(阶段一)。
|
|
40
47
|
*
|
|
@@ -98,6 +105,8 @@ export interface SidebarRightTabRegistryService {
|
|
|
98
105
|
}
|
|
99
106
|
/** 右侧栏导航面:按 kind 打开一个页面型页签。 */
|
|
100
107
|
export interface SidebarRightService {
|
|
108
|
+
/** 在指定会话里打开;新宿主优先走这个入口。 */
|
|
109
|
+
openTabIn?(sessionId: string, kind: string): void;
|
|
101
110
|
/**
|
|
102
111
|
* 按 kind 打开一个页面型页签。
|
|
103
112
|
* @param kind - 阶段一声明过的类型判别值。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,cAAc;IAC7B,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mDAAmD;IACnD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,kCAAkC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,CAAA;IACxD,qBAAqB;IACrB,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAA;CACnD;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,uBAAuB;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,2BAA2B;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,MAAM,CAAA;IAC5B,8BAA8B;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,MAAM,CAAA;IACnC,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,OAAO,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACrF;AAED,2BAA2B;AAC3B,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,yBAAyB,GAAG,MAAM,IAAI,CAAA;IAC3D;;;;OAIG;IACH,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAC5B;AAED,+BAA+B;AAC/B,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,OAAO;QACf;;;;WAIG;QACH,wBAAwB,EAAE;YAAE,IAAI,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,SAAS,CAAA;SAAE,CAAA;QAC7D,uBAAuB;QACvB,8BAA8B,EAAE;YAAE,IAAI,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,SAAS,CAAA;SAAE,CAAA;KACpE;CACF"}
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,cAAc;IAC7B,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,uBAAuB;AACvB,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAA;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mDAAmD;IACnD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACrC,kCAAkC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,CAAA;IACxD,qBAAqB;IACrB,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAA;CACnD;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,oBAAoB;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,uBAAuB;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,2BAA2B;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,MAAM,CAAA;IAC5B,8BAA8B;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,MAAM,CAAA;IACnC,8BAA8B;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,OAAO,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACrF;AAED,2BAA2B;AAC3B,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,yBAAyB,GAAG,MAAM,IAAI,CAAA;IAC3D;;;;OAIG;IACH,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAC5B;AAED,+BAA+B;AAC/B,MAAM,WAAW,mBAAmB;IAClC,2BAA2B;IAC3B,SAAS,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACjD;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,OAAO;QACf;;;;WAIG;QACH,wBAAwB,EAAE;YAAE,IAAI,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,SAAS,CAAA;SAAE,CAAA;QAC7D,uBAAuB;QACvB,8BAA8B,EAAE;YAAE,IAAI,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,SAAS,CAAA;SAAE,CAAA;KACpE;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { ProgressTask, ProgressUpdate } from './contracts.ts';
|
|
3
|
+
import { type ProgressUpdatesLocaleKey } from './locales.ts';
|
|
4
|
+
export interface DashboardCopySeat {
|
|
5
|
+
t?: (key: ProgressUpdatesLocaleKey) => string;
|
|
6
|
+
}
|
|
7
|
+
export interface ProgressDashboardProps extends DashboardCopySeat {
|
|
8
|
+
updates: readonly ProgressUpdate[];
|
|
9
|
+
tasks?: readonly ProgressTask[];
|
|
10
|
+
}
|
|
11
|
+
export declare function ProgressDashboard({ updates, tasks, t: copy }: ProgressDashboardProps): ReactNode;
|
|
12
|
+
//# sourceMappingURL=dashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAExF,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,EAAM,KAAK,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAEhE,MAAM,WAAW,iBAAiB;IAChC,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,wBAAwB,KAAK,MAAM,CAAA;CAC9C;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,OAAO,EAAE,SAAS,cAAc,EAAE,CAAA;IAClC,KAAK,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;CAChC;AAsLD,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,KAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,sBAAsB,GAAG,SAAS,CAgFrG"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 浏览器半边的**真实取数通道**:轮询宿主路由,把结果包成面板认的快照源。
|
|
3
3
|
* @module @eddyskywalker/dsh-chatgpt-subscription/client/progress-updates/host-source
|
|
4
4
|
*/
|
|
5
|
-
import type { ProgressUpdate } from './contracts.ts';
|
|
5
|
+
import type { ProgressTask, ProgressUpdate } from './contracts.ts';
|
|
6
6
|
import type { ProgressSnapshotSource } from './updates-panel.tsx';
|
|
7
7
|
/**
|
|
8
8
|
* 本路由族的前缀(**文档相对**,不带前导斜杠)。
|
|
@@ -37,6 +37,8 @@ export declare const PROGRESS_FETCH_TIMEOUT_MS = 8000;
|
|
|
37
37
|
export interface ProgressUpdatesResponse {
|
|
38
38
|
/** 该会话的进展,按产生顺序排列。 */
|
|
39
39
|
updates: ProgressUpdate[];
|
|
40
|
+
/** 可选只读 Todo 投影;旧宿主省略时按空列表。 */
|
|
41
|
+
tasks?: ProgressTask[];
|
|
40
42
|
}
|
|
41
43
|
/** 定时器宿主的最小形状;抽出来是为了测试能塞假时钟。 */
|
|
42
44
|
export interface ProgressTimers {
|
|
@@ -68,11 +70,15 @@ export interface ProgressFetchDeps {
|
|
|
68
70
|
timers?: ProgressTimers;
|
|
69
71
|
/** 解析响应体,缺省按 {@link ProgressUpdatesResponse} 取 `updates`。 */
|
|
70
72
|
decode?: (body: unknown) => readonly ProgressUpdate[];
|
|
73
|
+
/** 解析任务投影,缺省读取响应里的 tasks。 */
|
|
74
|
+
decodeTasks?: (body: unknown) => readonly ProgressTask[];
|
|
71
75
|
/** 观测一次失败(错误已被吞掉,只为测试与诊断)。 */
|
|
72
76
|
onError?: (error: unknown) => void;
|
|
73
77
|
}
|
|
74
78
|
/** 面板数据源 + 一个显式停止入口(apply 卸载时调用)。 */
|
|
75
79
|
export interface HostProgressSource extends ProgressSnapshotSource {
|
|
80
|
+
/** 当前只读 Todo 快照,与进展共享一次轮询和订阅。 */
|
|
81
|
+
getTasksSnapshot(): readonly ProgressTask[];
|
|
76
82
|
/**
|
|
77
83
|
* 停止轮询并清空监听(幂等,且**是终态**)。
|
|
78
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-source.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/host-source.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"host-source.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/host-source.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAEjE;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,qCAAqC,CAAA;AAEvE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,4BAA4B,IAAI,OAAO,CAAC,OAAO,CAAC,CA0BrE;AAED,8CAA8C;AAC9C,eAAO,MAAM,gBAAgB,OAAQ,CAAA;AAErC,+BAA+B;AAC/B,eAAO,MAAM,yBAAyB,OAAQ,CAAA;AAE9C,yCAAyC;AACzC,MAAM,WAAW,uBAAuB;IACtC,sBAAsB;IACtB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;CACvB;AAED,gCAAgC;AAChC,MAAM,WAAW,cAAc;IAC7B,qBAAqB;IACrB,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACzD,eAAe;IACf,aAAa,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,sBAAsB;IACtB,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAA;IACxD,gBAAgB;IAChB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CACxC;AAUD,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAA;IAC/B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,OAAO,CAAA;IACzB,uCAAuC;IACvC,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,SAAS,cAAc,EAAE,CAAA;IACrD,6BAA6B;IAC7B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,SAAS,YAAY,EAAE,CAAA;IACxD,8BAA8B;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACnC;AAED,qCAAqC;AACrC,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,iCAAiC;IACjC,gBAAgB,IAAI,SAAS,YAAY,EAAE,CAAA;IAC3C;;;;;OAKG;IACH,IAAI,IAAI,IAAI,CAAA;CACb;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAO3C;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAG7D;AA+BD;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,GAAE,iBAAsB,GAC3B,kBAAkB,CA2JpB"}
|
|
@@ -28,6 +28,25 @@ export declare const zh: {
|
|
|
28
28
|
readonly progressCollapse: "收起这条进展";
|
|
29
29
|
readonly progressEmptyTitle: "还没有进展更新";
|
|
30
30
|
readonly progressEmptyHint: "agent 开始多步任务后,会在这里汇报它进行到哪一步。";
|
|
31
|
+
readonly workspaceTitle: "工作脉络";
|
|
32
|
+
readonly tabUpdates: "进展";
|
|
33
|
+
readonly tabTasks: "任务";
|
|
34
|
+
readonly tabArchive: "归档";
|
|
35
|
+
readonly tasksEmpty: "当前会话还没有任务清单";
|
|
36
|
+
readonly tasksProgress: "任务完成 {n}%";
|
|
37
|
+
readonly tasksSummary: "已完成 {done} / {total} 项任务";
|
|
38
|
+
readonly tasksBreakdown: "{active} 项进行中 · {pending} 项待处理";
|
|
39
|
+
readonly archiveScale: "按 {n} 归档";
|
|
40
|
+
readonly archiveEmpty: "还没有可归档的进展";
|
|
41
|
+
readonly archiveCount: "{n} 条进展";
|
|
42
|
+
readonly filterPlaceholder: "搜索标题或正文";
|
|
43
|
+
readonly sourceFilter: "按来源筛选";
|
|
44
|
+
readonly sourceAll: "全部来源";
|
|
45
|
+
readonly exportMarkdown: "导出筛选结果为 Markdown";
|
|
46
|
+
readonly filterEmpty: "没有匹配的进展";
|
|
47
|
+
readonly filterEmptyHint: "换个关键词或清除来源筛选。";
|
|
48
|
+
readonly copyUpdate: "复制这条进展";
|
|
49
|
+
readonly copied: "已复制";
|
|
31
50
|
readonly rowPending: "进展更新";
|
|
32
51
|
readonly rowRunning: "进行中";
|
|
33
52
|
readonly rowDone: "已汇报";
|
|
@@ -88,6 +107,25 @@ export declare const dictionaries: {
|
|
|
88
107
|
readonly progressCollapse: "收起这条进展";
|
|
89
108
|
readonly progressEmptyTitle: "还没有进展更新";
|
|
90
109
|
readonly progressEmptyHint: "agent 开始多步任务后,会在这里汇报它进行到哪一步。";
|
|
110
|
+
readonly workspaceTitle: "工作脉络";
|
|
111
|
+
readonly tabUpdates: "进展";
|
|
112
|
+
readonly tabTasks: "任务";
|
|
113
|
+
readonly tabArchive: "归档";
|
|
114
|
+
readonly tasksEmpty: "当前会话还没有任务清单";
|
|
115
|
+
readonly tasksProgress: "任务完成 {n}%";
|
|
116
|
+
readonly tasksSummary: "已完成 {done} / {total} 项任务";
|
|
117
|
+
readonly tasksBreakdown: "{active} 项进行中 · {pending} 项待处理";
|
|
118
|
+
readonly archiveScale: "按 {n} 归档";
|
|
119
|
+
readonly archiveEmpty: "还没有可归档的进展";
|
|
120
|
+
readonly archiveCount: "{n} 条进展";
|
|
121
|
+
readonly filterPlaceholder: "搜索标题或正文";
|
|
122
|
+
readonly sourceFilter: "按来源筛选";
|
|
123
|
+
readonly sourceAll: "全部来源";
|
|
124
|
+
readonly exportMarkdown: "导出筛选结果为 Markdown";
|
|
125
|
+
readonly filterEmpty: "没有匹配的进展";
|
|
126
|
+
readonly filterEmptyHint: "换个关键词或清除来源筛选。";
|
|
127
|
+
readonly copyUpdate: "复制这条进展";
|
|
128
|
+
readonly copied: "已复制";
|
|
91
129
|
readonly rowPending: "进展更新";
|
|
92
130
|
readonly rowRunning: "进行中";
|
|
93
131
|
readonly rowDone: "已汇报";
|
|
@@ -144,6 +182,25 @@ export declare const dictionaries: {
|
|
|
144
182
|
readonly progressCollapse: "收起这条进展";
|
|
145
183
|
readonly progressEmptyTitle: "还没有进展更新";
|
|
146
184
|
readonly progressEmptyHint: "agent 开始多步任务后,会在这里汇报它进行到哪一步。";
|
|
185
|
+
readonly workspaceTitle: "工作脉络";
|
|
186
|
+
readonly tabUpdates: "进展";
|
|
187
|
+
readonly tabTasks: "任务";
|
|
188
|
+
readonly tabArchive: "归档";
|
|
189
|
+
readonly tasksEmpty: "当前会话还没有任务清单";
|
|
190
|
+
readonly tasksProgress: "任务完成 {n}%";
|
|
191
|
+
readonly tasksSummary: "已完成 {done} / {total} 项任务";
|
|
192
|
+
readonly tasksBreakdown: "{active} 项进行中 · {pending} 项待处理";
|
|
193
|
+
readonly archiveScale: "按 {n} 归档";
|
|
194
|
+
readonly archiveEmpty: "还没有可归档的进展";
|
|
195
|
+
readonly archiveCount: "{n} 条进展";
|
|
196
|
+
readonly filterPlaceholder: "搜索标题或正文";
|
|
197
|
+
readonly sourceFilter: "按来源筛选";
|
|
198
|
+
readonly sourceAll: "全部来源";
|
|
199
|
+
readonly exportMarkdown: "导出筛选结果为 Markdown";
|
|
200
|
+
readonly filterEmpty: "没有匹配的进展";
|
|
201
|
+
readonly filterEmptyHint: "换个关键词或清除来源筛选。";
|
|
202
|
+
readonly copyUpdate: "复制这条进展";
|
|
203
|
+
readonly copied: "已复制";
|
|
147
204
|
readonly rowPending: "进展更新";
|
|
148
205
|
readonly rowRunning: "进行中";
|
|
149
206
|
readonly rowDone: "已汇报";
|
|
@@ -185,8 +242,8 @@ export declare const dictionaries: {
|
|
|
185
242
|
readonly settingsUnavailable: "这项设置当前不可修改(宿主没有开放配置表单)";
|
|
186
243
|
readonly settingsSaveFailed: "保存失败,请稍后再试";
|
|
187
244
|
};
|
|
188
|
-
en: Record<"navTitle" | "progressTitle" | "progressGuideNote" | "markdownCopy" | "markdownCopied" | "markdownFootnotes" | "progressLatest" | "progressCount" | "progressExpand" | "progressCollapse" | "progressEmptyTitle" | "progressEmptyHint" | "rowPending" | "rowRunning" | "rowDone" | "rowError" | "rowExpand" | "rowCollapse" | "settingsHint" | "settingsOpen" | "settingsEnabledName" | "settingsEnabledNote" | "settingsCacheWarmupName" | "settingsCacheWarmupNote" | "settingsRetrievalName" | "settingsRetrievalNote" | "settingsCacheWaitWarmupName" | "settingsCacheWaitWarmupNote" | "settingsCacheAffinityName" | "settingsCacheAffinityNote" | "settingsPlanModePipelineName" | "settingsPlanModePipelineNote" | "settingsDispatchExecutionGuardName" | "settingsDispatchExecutionGuardNote" | "settingsToolRunawayGuardName" | "settingsToolRunawayGuardNote" | "settingsMediaToolsName" | "settingsMediaToolsNote" | "settingsTeamPolicyCacheGuardName" | "settingsTeamPolicyCacheGuardNote" | "settingsThresholdName" | "settingsThresholdNote" | "settingsLanguageName" | "settingsLanguageNote" | "settingsLanguageAuto" | "settingsLanguageZh" | "settingsLanguageEn" | "settingsLanguageRu" | "settingsPanelName" | "settingsPanelNote" | "settingsUnavailable" | "settingsSaveFailed", string>;
|
|
189
|
-
'en-US': Record<"navTitle" | "progressTitle" | "progressGuideNote" | "markdownCopy" | "markdownCopied" | "markdownFootnotes" | "progressLatest" | "progressCount" | "progressExpand" | "progressCollapse" | "progressEmptyTitle" | "progressEmptyHint" | "rowPending" | "rowRunning" | "rowDone" | "rowError" | "rowExpand" | "rowCollapse" | "settingsHint" | "settingsOpen" | "settingsEnabledName" | "settingsEnabledNote" | "settingsCacheWarmupName" | "settingsCacheWarmupNote" | "settingsRetrievalName" | "settingsRetrievalNote" | "settingsCacheWaitWarmupName" | "settingsCacheWaitWarmupNote" | "settingsCacheAffinityName" | "settingsCacheAffinityNote" | "settingsPlanModePipelineName" | "settingsPlanModePipelineNote" | "settingsDispatchExecutionGuardName" | "settingsDispatchExecutionGuardNote" | "settingsToolRunawayGuardName" | "settingsToolRunawayGuardNote" | "settingsMediaToolsName" | "settingsMediaToolsNote" | "settingsTeamPolicyCacheGuardName" | "settingsTeamPolicyCacheGuardNote" | "settingsThresholdName" | "settingsThresholdNote" | "settingsLanguageName" | "settingsLanguageNote" | "settingsLanguageAuto" | "settingsLanguageZh" | "settingsLanguageEn" | "settingsLanguageRu" | "settingsPanelName" | "settingsPanelNote" | "settingsUnavailable" | "settingsSaveFailed", string>;
|
|
245
|
+
en: Record<"copied" | "navTitle" | "progressTitle" | "progressGuideNote" | "markdownCopy" | "markdownCopied" | "markdownFootnotes" | "progressLatest" | "progressCount" | "progressExpand" | "progressCollapse" | "progressEmptyTitle" | "progressEmptyHint" | "workspaceTitle" | "tabUpdates" | "tabTasks" | "tabArchive" | "tasksEmpty" | "tasksProgress" | "tasksSummary" | "tasksBreakdown" | "archiveScale" | "archiveEmpty" | "archiveCount" | "filterPlaceholder" | "sourceFilter" | "sourceAll" | "exportMarkdown" | "filterEmpty" | "filterEmptyHint" | "copyUpdate" | "rowPending" | "rowRunning" | "rowDone" | "rowError" | "rowExpand" | "rowCollapse" | "settingsHint" | "settingsOpen" | "settingsEnabledName" | "settingsEnabledNote" | "settingsCacheWarmupName" | "settingsCacheWarmupNote" | "settingsRetrievalName" | "settingsRetrievalNote" | "settingsCacheWaitWarmupName" | "settingsCacheWaitWarmupNote" | "settingsCacheAffinityName" | "settingsCacheAffinityNote" | "settingsPlanModePipelineName" | "settingsPlanModePipelineNote" | "settingsDispatchExecutionGuardName" | "settingsDispatchExecutionGuardNote" | "settingsToolRunawayGuardName" | "settingsToolRunawayGuardNote" | "settingsMediaToolsName" | "settingsMediaToolsNote" | "settingsTeamPolicyCacheGuardName" | "settingsTeamPolicyCacheGuardNote" | "settingsThresholdName" | "settingsThresholdNote" | "settingsLanguageName" | "settingsLanguageNote" | "settingsLanguageAuto" | "settingsLanguageZh" | "settingsLanguageEn" | "settingsLanguageRu" | "settingsPanelName" | "settingsPanelNote" | "settingsUnavailable" | "settingsSaveFailed", string>;
|
|
246
|
+
'en-US': Record<"copied" | "navTitle" | "progressTitle" | "progressGuideNote" | "markdownCopy" | "markdownCopied" | "markdownFootnotes" | "progressLatest" | "progressCount" | "progressExpand" | "progressCollapse" | "progressEmptyTitle" | "progressEmptyHint" | "workspaceTitle" | "tabUpdates" | "tabTasks" | "tabArchive" | "tasksEmpty" | "tasksProgress" | "tasksSummary" | "tasksBreakdown" | "archiveScale" | "archiveEmpty" | "archiveCount" | "filterPlaceholder" | "sourceFilter" | "sourceAll" | "exportMarkdown" | "filterEmpty" | "filterEmptyHint" | "copyUpdate" | "rowPending" | "rowRunning" | "rowDone" | "rowError" | "rowExpand" | "rowCollapse" | "settingsHint" | "settingsOpen" | "settingsEnabledName" | "settingsEnabledNote" | "settingsCacheWarmupName" | "settingsCacheWarmupNote" | "settingsRetrievalName" | "settingsRetrievalNote" | "settingsCacheWaitWarmupName" | "settingsCacheWaitWarmupNote" | "settingsCacheAffinityName" | "settingsCacheAffinityNote" | "settingsPlanModePipelineName" | "settingsPlanModePipelineNote" | "settingsDispatchExecutionGuardName" | "settingsDispatchExecutionGuardNote" | "settingsToolRunawayGuardName" | "settingsToolRunawayGuardNote" | "settingsMediaToolsName" | "settingsMediaToolsNote" | "settingsTeamPolicyCacheGuardName" | "settingsTeamPolicyCacheGuardNote" | "settingsThresholdName" | "settingsThresholdNote" | "settingsLanguageName" | "settingsLanguageNote" | "settingsLanguageAuto" | "settingsLanguageZh" | "settingsLanguageEn" | "settingsLanguageRu" | "settingsPanelName" | "settingsPanelNote" | "settingsUnavailable" | "settingsSaveFailed", string>;
|
|
190
247
|
};
|
|
191
248
|
/** 本命名空间的字典键联合,供类型化 `t` 座位使用。 */
|
|
192
249
|
export type ProgressUpdatesLocaleKey = keyof typeof zh;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/locales.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAG,sBAA+B,CAAA;AAElE;;;;;;GAMG;AACH,eAAO,MAAM,EAAE;IACb,4BAA4B;;;IAG5B,4BAA4B
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../../src/client/features/progress-updates/locales.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,EAAG,sBAA+B,CAAA;AAElE;;;;;;GAMG;AACH,eAAO,MAAM,EAAE;IACb,4BAA4B;;;IAG5B,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEpB,CAAA;AAEV,wBAAwB;AACxB,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAwEvD,CAAA;AAED,qCAAqC;AACrC,eAAO,MAAM,YAAY;;QAvJvB,4BAA4B;;;QAG5B,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAH5B,4BAA4B;;;QAG5B,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyJ7B,CAAA;AAED,iCAAiC;AACjC,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,EAAE,CAAA;AAEtD,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,mBAAmB;QACnB,sBAAsB,EAAE,wBAAwB,CAAA;KACjD;CACF"}
|