@dsh-workbench/shared 1.5.4-beta.1 → 1.5.4-beta.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/dist/components/card/LongTaskRow.css +24 -6
- package/dist/components/card/LongTaskRow.d.ts +2 -0
- package/dist/components/card/LongTaskRow.js +27 -16
- package/dist/contract/long-task.d.ts +4 -0
- package/dist/host/flow/step.d.ts +2 -1
- package/dist/host/flow/step.js +13 -8
- package/dist/host/unit/long-task.js +17 -6
- package/dist/i18n/en.js +4 -2
- package/dist/i18n/index.d.ts +5 -3
- package/dist/i18n/zh.d.ts +4 -2
- package/dist/i18n/zh.js +4 -2
- package/package.json +1 -1
- package/src/components/card/LongTaskRow.css +24 -6
- package/src/components/card/LongTaskRow.tsx +93 -49
- package/src/components/card/__tests__/long-task-row.test.ts +68 -16
- package/src/contract/long-task.ts +4 -0
- package/src/host/flow/__tests__/step.test.ts +29 -5
- package/src/host/flow/step.ts +13 -9
- package/src/host/unit/__tests__/long-task.test.ts +58 -0
- package/src/host/unit/long-task.ts +24 -6
- package/src/i18n/en.ts +4 -2
- package/src/i18n/zh.ts +4 -2
|
@@ -6,11 +6,9 @@
|
|
|
6
6
|
gap: var(--wb-len-2);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.wb-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
gap: var(--wb-len-6);
|
|
13
|
-
margin: 0;
|
|
9
|
+
.wb-longTaskDense {
|
|
10
|
+
padding-top: 0;
|
|
11
|
+
border-top: 0;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
.wb-longTaskLink {
|
|
@@ -46,6 +44,15 @@
|
|
|
46
44
|
overflow: auto;
|
|
47
45
|
}
|
|
48
46
|
|
|
47
|
+
.wb-longTaskHeadEnd {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
flex: none;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: var(--wb-len-8);
|
|
52
|
+
min-width: 0;
|
|
53
|
+
margin-left: auto;
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
.wb-longTaskStop {
|
|
50
57
|
display: inline-flex;
|
|
51
58
|
flex: none;
|
|
@@ -55,7 +62,6 @@
|
|
|
55
62
|
width: var(--wb-len-20);
|
|
56
63
|
height: var(--wb-len-20);
|
|
57
64
|
padding: 0;
|
|
58
|
-
margin-left: auto;
|
|
59
65
|
border: 0.5px solid var(--dsw-alias-border-l2);
|
|
60
66
|
border-radius: var(--dsw-radius-sm);
|
|
61
67
|
background: var(--dsw-specific-menu);
|
|
@@ -182,6 +188,7 @@
|
|
|
182
188
|
|
|
183
189
|
.wb-longTaskMeta {
|
|
184
190
|
margin: 0;
|
|
191
|
+
min-width: 0;
|
|
185
192
|
font-size: var(--dsw-font-xxxs-11-font-size);
|
|
186
193
|
line-height: var(--wb-line-16);
|
|
187
194
|
color: var(--dsw-alias-label-tertiary);
|
|
@@ -230,4 +237,15 @@
|
|
|
230
237
|
|
|
231
238
|
.wb-longTaskStepLink {
|
|
232
239
|
flex: none;
|
|
240
|
+
font-size: inherit;
|
|
241
|
+
line-height: inherit;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.wb-longTaskStepDetail {
|
|
245
|
+
padding-left: calc(var(--wb-len-8) + var(--wb-len-6));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.wb-longTaskStepAttempt {
|
|
249
|
+
flex: none;
|
|
250
|
+
color: var(--dsw-alias-label-tertiary);
|
|
233
251
|
}
|
|
@@ -67,6 +67,8 @@ export interface LongTaskRowProps {
|
|
|
67
67
|
readonly meta?: string | undefined;
|
|
68
68
|
readonly dot?: 'done' | 'ongoing' | 'error' | 'idle' | 'warning' | undefined;
|
|
69
69
|
readonly dotLabel?: string | undefined;
|
|
70
|
+
readonly attemptLabel?: ((attempt: number) => string) | undefined;
|
|
71
|
+
readonly dense?: boolean | undefined;
|
|
70
72
|
readonly problem?: string | undefined;
|
|
71
73
|
readonly links?: readonly LongTaskRowLink[] | undefined;
|
|
72
74
|
readonly steps?: readonly string[] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LONG_TASK_LINK_MAX, longTaskDot, longTaskIsLive, longTaskStopPress, longTaskStopStage, LONG_TASK_STOP_ARM_MS, } from '../../contract/long-task.js';
|
|
2
2
|
import { Link } from '../layout/Link.js';
|
|
3
3
|
import { Fragment, h, useEffect, useState } from '../../lib/react.js';
|
|
4
|
-
import { Button, CodeBlock, DisclosureRow, IconCodeOutlineRegular,
|
|
4
|
+
import { Button, CodeBlock, DisclosureRow, IconCodeOutlineRegular, IconStopFillRegular, StateDot, } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
5
5
|
import './LongTaskRow.css';
|
|
6
6
|
function RowLink({ href, text }) {
|
|
7
7
|
return (h(Link, { href: href, className: "wb-longTaskLink" }, text));
|
|
@@ -14,14 +14,24 @@ const STEP_DOT = {
|
|
|
14
14
|
info: 'idle',
|
|
15
15
|
};
|
|
16
16
|
const HTTP_PATTERN = /^https?:\/\//i;
|
|
17
|
-
function StepRow({ row }) {
|
|
17
|
+
function StepRow({ row, live, last, attemptLabel, }) {
|
|
18
18
|
const links = (row.links ?? [])
|
|
19
19
|
.filter((link) => HTTP_PATTERN.test(link.href))
|
|
20
20
|
.slice(0, LONG_TASK_LINK_MAX);
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const state = row.kind === 'start' ? (live && last ? 'ongoing' : 'idle') : STEP_DOT[row.kind];
|
|
22
|
+
const attempt = row.attempt !== undefined && row.attempt > 1 && attemptLabel !== undefined
|
|
23
|
+
? attemptLabel(row.attempt)
|
|
24
|
+
: undefined;
|
|
25
|
+
const content = (h(Fragment, null,
|
|
23
26
|
h("span", { className: "wb-longTaskStepText" }, row.text),
|
|
24
|
-
links.map((link) => (h(Link, { className: "wb-longTaskStepLink", href: link.href, key: `${link.href}@${link.text}` }, link.text)))
|
|
27
|
+
links.map((link) => (h(Link, { className: "wb-longTaskStepLink", href: link.href, key: `${link.href}@${link.text}` }, link.text))),
|
|
28
|
+
attempt === undefined ? null : h("span", { className: "wb-longTaskStepAttempt" }, attempt)));
|
|
29
|
+
if (row.kind === 'info') {
|
|
30
|
+
return (h("li", { className: "wb-longTaskStepRow wb-longTaskStepDetail", "data-kind": "info" }, content));
|
|
31
|
+
}
|
|
32
|
+
return (h("li", { className: "wb-longTaskStepRow", "data-kind": row.kind },
|
|
33
|
+
h(StateDot, { state: state, size: 8 }),
|
|
34
|
+
content));
|
|
25
35
|
}
|
|
26
36
|
function DumpBlock(props) {
|
|
27
37
|
return (h(DisclosureRow, { className: "wb-longTaskDump", icon: props.icon, title: props.title, open: props.open, expandable: true, expandOnRowClick: true, previewChevron: true, onToggle: props.onToggle }, props.children));
|
|
@@ -125,21 +135,22 @@ export function LongTaskRow(props) {
|
|
|
125
135
|
if (failed)
|
|
126
136
|
setStepsOpen(true);
|
|
127
137
|
}, [failed]);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
const expandable = props.stepsTitle !== undefined && (history.length > 0 || steps.length > 0);
|
|
139
|
+
const stepShown = step !== '' && !props.headline.includes(step);
|
|
140
|
+
const dotNode = props.dotLabel === undefined ? (h(StateDot, { state: dot, size: 10 })) : (h("span", { role: "img", "aria-label": props.dotLabel },
|
|
141
|
+
h(StateDot, { state: dot, size: 10 })));
|
|
142
|
+
return (h("div", { className: props.dense === true ? 'wb-longTask wb-longTaskDense' : 'wb-longTask' },
|
|
143
|
+
h(DisclosureRow, { icon: dotNode, title: props.headline, open: expandable && stepsOpen, expandable: expandable, expandOnRowClick: true, previewChevron: true, titleClassName: "wb-longTaskHeadline", onToggle: () => setStepsOpen((value) => !value), headerAccessory: h("span", { className: "wb-longTaskHeadEnd" },
|
|
144
|
+
(props.links ?? []).map((link) => (h(RowLink, { href: link.href, key: `${link.text}@${link.href}`, text: link.text }))),
|
|
145
|
+
props.login === undefined ? null : (h(Button, { type: "button", size: "sm", variant: "outline", onClick: props.login.onOpen }, props.login.label)),
|
|
146
|
+
meta === '' ? null : h("span", { className: "wb-longTaskMeta" }, meta),
|
|
147
|
+
stop === undefined ? null : (h(StopControl, { stop: stop, onFired: () => setStopFired(true) }))) },
|
|
148
|
+
stepShown ? h("p", { className: "wb-longTaskStep" }, step) : null,
|
|
149
|
+
history.length === 0 ? (h(CodeBlock, { code: steps.join('\n'), className: "wb-longTaskDump", showHeader: props.copyLabel !== undefined, copyLabel: props.copyLabel ?? '', copiedLabel: props.copiedLabel ?? '' })) : (h("ul", { className: "wb-longTaskSteps" }, history.map((row, index) => (h(StepRow, { key: `${String(index)}:${row.text}`, row: row, live: live, last: index === history.length - 1, ...(props.attemptLabel === undefined ? {} : { attemptLabel: props.attemptLabel }) })))))),
|
|
138
150
|
stopPending === '' ? null : h("p", { className: "wb-longTaskStopPending" }, stopPending),
|
|
139
151
|
props.intervention === undefined ? null : (h(InterventionNeed, { intervention: props.intervention })),
|
|
140
152
|
problem === '' ? null : h("p", { className: "wb-longTaskProblem" }, problem),
|
|
141
153
|
stopWhy === '' ? null : h("p", { className: "wb-longTaskStopWhy" }, stopWhy),
|
|
142
|
-
props.stepsTitle === undefined || (history.length === 0 && steps.length === 0) ? null : (h(DumpBlock, { icon: h(IconFlatListOutlineRegular, { size: 14 }), title: props.stepsTitle, open: stepsOpen, onToggle: () => setStepsOpen(!stepsOpen) }, history.length === 0 ? (h(CodeBlock, { code: steps.join('\n'), className: "wb-longTaskDump", showHeader: props.copyLabel !== undefined, copyLabel: props.copyLabel ?? '', copiedLabel: props.copiedLabel ?? '' })) : (h("ul", { className: "wb-longTaskSteps" }, history.map((row, index) => (h(StepRow, { key: `${String(index)}:${row.text}`, row: row }))))))),
|
|
143
154
|
raw === '' || props.rawTitle === undefined ? null : (h(DumpBlock, { icon: h(IconCodeOutlineRegular, { size: 14 }), title: props.rawTitle, open: rawOpen, onToggle: () => setRawOpen(!rawOpen) },
|
|
144
155
|
h(CodeBlock, { code: raw, className: "wb-longTaskDump", showHeader: props.copyLabel !== undefined, copyLabel: props.copyLabel ?? '', copiedLabel: props.copiedLabel ?? '' })))));
|
|
145
156
|
}
|
|
@@ -60,6 +60,8 @@ export interface LongTaskIntervention {
|
|
|
60
60
|
export interface LongTaskStep {
|
|
61
61
|
readonly kind: 'start' | 'succeed' | 'fail' | 'info' | 'warn';
|
|
62
62
|
readonly text: string;
|
|
63
|
+
readonly stepId?: string | undefined;
|
|
64
|
+
readonly attempt?: number | undefined;
|
|
63
65
|
readonly links?: readonly LongTaskLink[] | undefined;
|
|
64
66
|
readonly intervention?: LongTaskIntervention | undefined;
|
|
65
67
|
readonly loginUrl?: string | undefined;
|
|
@@ -71,6 +73,8 @@ export interface LongTaskStep {
|
|
|
71
73
|
export interface LongTaskStepRow {
|
|
72
74
|
readonly kind: LongTaskStep['kind'];
|
|
73
75
|
readonly text: string;
|
|
76
|
+
readonly stepId?: string | undefined;
|
|
77
|
+
readonly attempt?: number | undefined;
|
|
74
78
|
readonly links?: readonly LongTaskLink[] | undefined;
|
|
75
79
|
}
|
|
76
80
|
/**
|
package/dist/host/flow/step.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import type { FlowStepEvent } from './types.js';
|
|
|
4
4
|
* 把流程的一步事件翻成长任务步骤流的默认一行。
|
|
5
5
|
* `running` → `start`、`ok` → `succeed`、`skipped` → `info`、`failed` → `fail`、
|
|
6
6
|
* `needs-login` → `info`(带 `loginUrl`)、`needs-human` → `info`(带 `intervention`);
|
|
7
|
-
* 文字取 `message ?? title`(人工干预节点取 `intervention.title
|
|
7
|
+
* 文字取 `message ?? title`(人工干预节点取 `intervention.title`);`stepId` / `attempt` 原样带上
|
|
8
|
+
* (外壳按 `stepId` 把同一步的进行中与结果收成一行),事件带 `links` 时每一行都跟着带。
|
|
8
9
|
* 要改文案或过滤步骤,就在模块里自己映射 —— 这只是默认值。
|
|
9
10
|
* @param event `flow.run({ onStep })` 收到的那条事件。
|
|
10
11
|
* @returns 能直接交给长任务 `run({ onStep })` 的一行。
|
package/dist/host/flow/step.js
CHANGED
|
@@ -2,22 +2,27 @@
|
|
|
2
2
|
* 把流程的一步事件翻成长任务步骤流的默认一行。
|
|
3
3
|
* `running` → `start`、`ok` → `succeed`、`skipped` → `info`、`failed` → `fail`、
|
|
4
4
|
* `needs-login` → `info`(带 `loginUrl`)、`needs-human` → `info`(带 `intervention`);
|
|
5
|
-
* 文字取 `message ?? title`(人工干预节点取 `intervention.title
|
|
5
|
+
* 文字取 `message ?? title`(人工干预节点取 `intervention.title`);`stepId` / `attempt` 原样带上
|
|
6
|
+
* (外壳按 `stepId` 把同一步的进行中与结果收成一行),事件带 `links` 时每一行都跟着带。
|
|
6
7
|
* 要改文案或过滤步骤,就在模块里自己映射 —— 这只是默认值。
|
|
7
8
|
* @param event `flow.run({ onStep })` 收到的那条事件。
|
|
8
9
|
* @returns 能直接交给长任务 `run({ onStep })` 的一行。
|
|
9
10
|
*/
|
|
10
11
|
export function longTaskStepOf(event) {
|
|
11
12
|
const text = event.message ?? event.title;
|
|
12
|
-
const
|
|
13
|
+
const base = {
|
|
14
|
+
...(event.stepId === '' ? {} : { stepId: event.stepId }),
|
|
15
|
+
...(event.attempt === undefined ? {} : { attempt: event.attempt }),
|
|
16
|
+
...(event.links === undefined || event.links.length === 0 ? {} : { links: event.links }),
|
|
17
|
+
};
|
|
13
18
|
if (event.status === 'failed')
|
|
14
|
-
return { kind: 'fail', text, ...
|
|
19
|
+
return { kind: 'fail', text, ...base };
|
|
15
20
|
if (event.status === 'needs-human') {
|
|
16
21
|
return {
|
|
17
22
|
kind: 'info',
|
|
18
23
|
text: event.intervention?.title ?? text,
|
|
19
24
|
...(event.intervention === undefined ? {} : { intervention: event.intervention }),
|
|
20
|
-
...
|
|
25
|
+
...base,
|
|
21
26
|
};
|
|
22
27
|
}
|
|
23
28
|
if (event.status === 'needs-login') {
|
|
@@ -27,12 +32,12 @@ export function longTaskStepOf(event) {
|
|
|
27
32
|
...(event.loginUrl === undefined || event.loginUrl === ''
|
|
28
33
|
? {}
|
|
29
34
|
: { loginUrl: event.loginUrl }),
|
|
30
|
-
...
|
|
35
|
+
...base,
|
|
31
36
|
};
|
|
32
37
|
}
|
|
33
38
|
if (event.status === 'ok')
|
|
34
|
-
return { kind: 'succeed', text, ...
|
|
39
|
+
return { kind: 'succeed', text, ...base };
|
|
35
40
|
if (event.status === 'skipped')
|
|
36
|
-
return { kind: 'info', text, ...
|
|
37
|
-
return { kind: 'start', text, ...
|
|
41
|
+
return { kind: 'info', text, ...base };
|
|
42
|
+
return { kind: 'start', text, ...base };
|
|
38
43
|
}
|
|
@@ -4,6 +4,16 @@ function isLiveStatus(status) {
|
|
|
4
4
|
return status === 'running' || status === 'needs-human' || status === 'needs-login';
|
|
5
5
|
}
|
|
6
6
|
const RECENT_MS = 10 * 60 * 1000;
|
|
7
|
+
function mergeStepRow(rows, row) {
|
|
8
|
+
if (row.stepId === undefined)
|
|
9
|
+
return [...rows, row].slice(-LONG_TASK_HISTORY_MAX);
|
|
10
|
+
const at = rows.findIndex((one) => one.stepId === row.stepId);
|
|
11
|
+
if (at === -1)
|
|
12
|
+
return [...rows, row].slice(-LONG_TASK_HISTORY_MAX);
|
|
13
|
+
const next = [...rows];
|
|
14
|
+
next[at] = row;
|
|
15
|
+
return next;
|
|
16
|
+
}
|
|
7
17
|
function pickDefined(source, keys) {
|
|
8
18
|
const out = {};
|
|
9
19
|
for (const key of keys) {
|
|
@@ -129,21 +139,22 @@ export function createLongTaskRegistry(deps) {
|
|
|
129
139
|
const current = live(id);
|
|
130
140
|
if (current === null)
|
|
131
141
|
return;
|
|
132
|
-
const line = `${step.kind === 'fail' ? '✗ ' : ''}${step.text}`;
|
|
133
142
|
const repeated = current.step === step.text &&
|
|
134
143
|
step.intervention !== undefined &&
|
|
135
144
|
current.intervention?.title === step.intervention.title;
|
|
136
|
-
const steps = repeated ? current.steps : [...current.steps, line].slice(-LONG_TASK_HISTORY_MAX);
|
|
137
145
|
const historyRow = {
|
|
138
146
|
kind: step.kind,
|
|
139
147
|
text: step.text,
|
|
140
|
-
...(
|
|
141
|
-
|
|
142
|
-
:
|
|
148
|
+
...pickDefined({
|
|
149
|
+
stepId: step.stepId,
|
|
150
|
+
attempt: step.attempt,
|
|
151
|
+
links: step.links?.slice(0, LONG_TASK_LINK_MAX),
|
|
152
|
+
}, ['stepId', 'attempt', 'links']),
|
|
143
153
|
};
|
|
144
154
|
const history = repeated
|
|
145
155
|
? current.history ?? []
|
|
146
|
-
:
|
|
156
|
+
: mergeStepRow(current.history ?? [], historyRow);
|
|
157
|
+
const steps = history.map((row) => `${row.kind === 'fail' ? '✗ ' : ''}${row.text}`);
|
|
147
158
|
const extra = bound.step?.(step, current) ?? {};
|
|
148
159
|
if (step.intervention !== undefined) {
|
|
149
160
|
patch(id, {
|
package/dist/i18n/en.js
CHANGED
|
@@ -1006,8 +1006,10 @@ export const en = {
|
|
|
1006
1006
|
'longTask.stopConfirm': 'Confirm stop',
|
|
1007
1007
|
'longTask.stopArmed': 'Click again to stop',
|
|
1008
1008
|
'longTask.stopPending': 'Stop requested; waiting for the module',
|
|
1009
|
-
'longTask.
|
|
1010
|
-
'longTask.list.
|
|
1009
|
+
'longTask.attempt': 'Attempt {attempt}',
|
|
1010
|
+
'longTask.list.entry': 'Workbench tasks {n}',
|
|
1011
|
+
'longTask.list.count': '{n}',
|
|
1012
|
+
'longTask.list.title': 'Workbench tasks',
|
|
1011
1013
|
'longTask.state.running': 'Running',
|
|
1012
1014
|
'longTask.state.needsHuman': 'Waiting for you',
|
|
1013
1015
|
'longTask.state.needsLogin': 'Needs sign-in',
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1016,8 +1016,10 @@ export declare const dictionaries: {
|
|
|
1016
1016
|
readonly 'longTask.stopConfirm': "确认停止";
|
|
1017
1017
|
readonly 'longTask.stopArmed': "再次点击确认停止";
|
|
1018
1018
|
readonly 'longTask.stopPending': "已请求停止,等模块确认";
|
|
1019
|
-
readonly 'longTask.
|
|
1020
|
-
readonly 'longTask.list.
|
|
1019
|
+
readonly 'longTask.attempt': "第 {attempt} 次";
|
|
1020
|
+
readonly 'longTask.list.entry': "工作台任务 {n}";
|
|
1021
|
+
readonly 'longTask.list.count': "{n} 个";
|
|
1022
|
+
readonly 'longTask.list.title': "工作台任务";
|
|
1021
1023
|
readonly 'longTask.state.running': "运行中";
|
|
1022
1024
|
readonly 'longTask.state.needsHuman': "等你处理";
|
|
1023
1025
|
readonly 'longTask.state.needsLogin': "需要登录";
|
|
@@ -1102,7 +1104,7 @@ export declare const dictionaries: {
|
|
|
1102
1104
|
readonly 'diyPresetSource.empty': "没有可用的模式。请先在 dsh 中修复或新建一个模式。";
|
|
1103
1105
|
readonly 'diyPresetSource.failed': "保存设置失败,请重试。";
|
|
1104
1106
|
};
|
|
1105
|
-
en: Record<"diag.code.readFailed" | "diag.hint.readFailed" | "diag.code.configCorrupt" | "diag.code.moduleUnreadable" | "diag.code.manifestsGaveUp" | "diag.code.selfUpdateFailed" | "diag.code.supplyInstallFailed" | "diag.code.badParam" | "diag.code.sinkFailed" | "diag.code.unknownCode" | "time.now" | "time.ago" | "time.minutes" | "time.hours" | "time.days" | "askAgent.prompt.whereOnly" | "askAgent.prompt.where" | "askAgent.prompt.head" | "askAgent.prompt.why" | "askAgent.prompt.rows" | "askAgent.prompt.issue" | "askAgent.prompt.reason" | "askAgent.prompt.host" | "askAgent.prompt.deployment" | "askAgent.prompt.configDir" | "askAgent.prompt.logDir" | "askAgent.prompt.tried" | "askAgent.prompt.evidence" | "askAgent.prompt.ask" | "blocker.retry" | "blocker.copy" | "askAgent.copy" | "askAgent.screen.board" | "blocker.unknown.title" | "blocker.login.go" | "blocker.login.titleGeneric" | "blocker.login.title" | "blocker.login.manual" | "blocker.login.hint" | "blocker.forbidden.open" | "blocker.forbidden.titleGeneric" | "blocker.forbidden.title" | "blocker.forbidden.hint" | "blocker.timeout.hint" | "blocker.exec.hint" | "blocker.fix.install" | "blocker.market.open" | "env.unit.failed" | "env.unit.failedHint" | "env.unit.degraded" | "env.unit.unsupported" | "env.unit.degradedHint" | "env.unit.unsupportedHint" | "env.unit.unchecked" | "env.unit.uncheckedHint" | "profileCreate.nav" | "profileCreate.lead" | "profileCreate.name" | "profileCreate.nameHint" | "profileCreate.source" | "profileCreate.current" | "profileCreate.copy" | "profileCreate.settings" | "profileCreate.create" | "profileCreate.creating" | "profileCreate.created" | "profileCreate.command" | "profileCreate.commandUnsupported" | "profileCreate.copyCommand" | "profileCreate.copied" | "profileCreate.readFailed" | "profileCreate.retry" | "profileCreate.reading" | "profileCreate.noProfiles" | "profileCreate.failed" | "configSync.nav" | "configSync.lead" | "configSync.source" | "configSync.sourceBroken" | "configSync.sourceRows" | "configSync.sourceDead" | "configSync.refresh" | "configSync.loading" | "configSync.readHint" | "configSync.summary.loading" | "configSync.summary.ready" | "configSync.summary.none" | "configSync.summary.error" | "configSync.view" | "configSync.hide" | "configSync.pickHint" | "configSync.tag.new" | "configSync.tag.differs" | "configSync.conflictNote" | "configSync.code.lang" | "configSync.code.copy" | "configSync.code.copied" | "configSync.code.wrap" | "configSync.code.unwrap" | "configSync.code.collapse" | "configSync.code.collapseAria" | "configSync.code.expandAria" | "configSync.code.expand" | "configSync.missing" | "configSync.apply" | "configSync.applyNone" | "configSync.applying" | "configSync.applied" | "configSync.appliedUnverified" | "configSync.appliedIds" | "configSync.skippedIds" | "configSync.nothing" | "configSync.unreadable" | "configSync.noSource" | "configSync.emptyProviders" | "configSync.failed" | "diyPresetSource.nav" | "diyPresetSource.lead" | "diyPresetSource.standard" | "diyPresetSource.ptc" | "diyPresetSource.minimal" | "diyPresetSource.cordis" | "diyPresetSource.unusable" | "diyPresetSource.storedUnavailable" | "diyPresetSource.readFailed" | "diyPresetSource.reading" | "diyPresetSource.search" | "diyPresetSource.empty" | "diyPresetSource.failed" | "env.need.bin.missing" | "env.need.bin.hint" | "env.need.extension.missing" | "env.need.extension.outdated" | "env.need.extension.hint" | "env.need.lib.missing" | "env.need.lib.outdated" | "env.need.lib.unsatisfied" | "env.need.lib.hint" | "env.need.env.missing" | "env.need.env.hint" | "brand.name" | "toggle.open" | "toggle.collapse" | "project.label" | "workspace.section" | "project.none" | "project.empty" | "project.add" | "project.add.busy" | "project.add.failed" | "project.search.label" | "project.search.placeholder" | "project.search.empty" | "project.group.workspaces" | "project.group.defaultWorkspace" | "project.group.workshop" | "project.menu.row" | "project.menu.alias" | "project.menu.reveal.finder" | "project.menu.reveal.folder" | "project.menu.delete" | "project.alias.title" | "project.alias.description" | "project.alias.field" | "project.alias.placeholder" | "project.alias.hint" | "project.alias.save" | "project.alias.saving" | "project.alias.cancel" | "project.alias.failed" | "project.delete.title" | "project.delete.description" | "project.delete.confirm" | "project.delete.pending" | "project.delete.cancel" | "project.delete.failed" | "project.reveal.failed" | "session.new" | "session.new.label" | "session.empty" | "session.noProject" | "session.list.label" | "session.copy" | "session.pinned" | "session.actions" | "session.expand" | "session.collapse" | "session.search.label" | "session.search.results" | "session.search.placeholder" | "session.search.clear" | "session.search.pending" | "session.search.empty" | "session.search.hasMore" | "status.idle" | "status.running" | "status.longTask" | "status.longTaskWaiting" | "status.waitingApproval" | "status.planReview" | "status.waitingAnswer" | "status.compact.approval" | "status.compact.planReview" | "status.compact.answer" | "status.completed" | "status.subagentsRunning.one" | "status.subagentsRunning.other" | "project.attention.warning.one" | "project.attention.warning.other" | "project.attention.running.one" | "project.attention.running.other" | "project.attention.longTask.one" | "project.attention.longTask.other" | "project.attention.longTaskWaiting.one" | "project.attention.longTaskWaiting.other" | "project.attention.done.one" | "project.attention.done.other" | "project.attention.state.warning" | "project.attention.state.longTaskWaiting" | "project.attention.state.running" | "project.attention.state.done" | "hover.copied" | "time.short.minutes" | "time.short.hours" | "time.short.days" | "time.short.months" | "time.short.years" | "panels.title" | "panels.groupBackground" | "runtime.plugin" | "runtime.pluginOf" | "runtime.pluginThing" | "runtime.pluginArea" | "panels.market.defaultHint" | "panels.market.defaultLabel" | "panels.market.defaultNeedsDeps" | "panels.market.defaultLocked" | "panels.followAll" | "panels.followAllConfirmTitle" | "panels.followAllConfirmDetail" | "panels.followAllConfirmAck" | "panels.followAllConfirmYes" | "panels.followAllConfirmNo" | "panels.enabled" | "panels.disabled" | "panels.onBoard" | "panels.offBoard" | "panels.choose" | "panels.buildModule" | "panels.failed" | "panels.dragHint" | "panels.unknownStep" | "panels.labelWithHint" | "panels.hintJoin" | "panels.dep.failed" | "panels.dep.unchecked" | "panels.dep.missing" | "panels.dep.outdated" | "panels.dep.depsNewer" | "panels.dep.degraded" | "panels.dep.unsupported" | "panels.tab.modules" | "panels.tab.market" | "panels.browseMarket" | "panels.noneInstalled" | "panels.noneInstalledHint" | "panels.market.installed" | "panels.market.modulesReadFailed" | "panels.market.notActive" | "panels.market.notUsable" | "panels.market.broken" | "panels.market.pluginVersionMismatch" | "panels.market.runtimeVersionMismatch" | "panels.market.hasNew" | "panels.market.hasProblem" | "panels.market.missing" | "panels.market.unchecked" | "panels.market.uncheckedHint" | "panels.market.checking" | "market.listUnread" | "market.unreadable.badge.one" | "market.unreadable.badge.other" | "market.unreadable.title" | "market.unreadable.lead" | "market.unreadable.copy" | "market.unreadable.copied" | "market.unreadable.close" | "panels.market.sectionInstalled" | "panels.market.sectionPending" | "panels.market.sectionShared" | "panels.market.sharedUsedBy" | "panels.market.listSeparator" | "panels.market.sharedMissing" | "panels.market.sharedOutdated" | "panels.market.sharedUnsatisfied" | "panels.market.sharedOk" | "panels.market.versionArrow" | "panels.market.lead" | "panels.market.install" | "panels.market.installDeps" | "panels.market.update" | "panels.market.updateDeps" | "panels.market.depsHaveUpdate" | "panels.market.swapSlow" | "panels.market.removeSlow" | "panels.market.updateNoChange" | "panels.market.updateUnknownVersion" | "panels.market.updateGone" | "panels.market.updateRestored" | "panels.market.updateBehind" | "panels.market.updateStuck.title" | "panels.market.updateStuck.factNoChange" | "panels.market.updateStuck.copiedHint" | "panels.market.selfUpdateQueued" | "panels.market.selfUpdateMigration" | "panels.market.selfUpdatePendingRestart" | "panels.market.selfUpdateRetry" | "panels.market.selfUpdateNeedsHost" | "panels.market.selfUpdateBusy" | "panels.market.selfUpdateReinstallFailed" | "panels.market.selfUpdateReinstallStopped" | "panels.market.uninstall" | "panels.market.uninstallLabel" | "panels.market.installing" | "panels.market.installingDeps" | "panels.market.updating" | "panels.market.updatingDeps" | "panels.market.uninstalling" | "panels.market.confirmUninstallTitle" | "panels.market.confirmUninstallDetail" | "panels.market.confirmUninstallAck" | "panels.market.confirmYes" | "panels.market.confirmNo" | "panels.market.noMarketSource" | "panels.market.failed" | "panels.market.failure.permission" | "panels.market.failure.diskFull" | "panels.market.failure.auth" | "panels.market.failure.sandbox" | "panels.market.failure.retryAdvice" | "panels.market.failure.copyOutput" | "panels.market.failure.copyOutputHint" | "panels.market.failure.unknown" | "panels.market.failure.factOwner" | "panels.market.failure.factMode" | "panels.market.failure.factSpace" | "panels.market.failure.factAuth" | "panels.market.failure.title" | "panels.market.failure.factSummary" | "panels.market.failure.factUnknown" | "panels.market.failure.factStuck" | "panels.market.failure.thisSource" | "panels.market.failure.noReason" | "panels.market.failure.nowhere" | "panels.market.failure.copyFix" | "panels.market.failure.copied" | "panels.market.failure.copiedHint" | "panels.market.failure.askAgent" | "panels.market.failure.askAgentText" | "panels.market.failure.askAgentAuth" | "panels.market.failure.askAgentUnknown" | "panels.market.failure.recheck" | "panels.market.failure.showOutput" | "panels.market.failure.hideOutput" | "panels.market.failure.term.commandLine" | "panels.market.failure.term.signal" | "panels.market.failure.term.exitCode" | "panels.market.failure.term.noExitCode" | "panels.market.failure.term.running" | "panels.market.failure.term.failed" | "panels.market.failure.term.done" | "panels.market.failure.term.copy" | "panels.market.failure.term.copied" | "panels.market.failure.term.noOutput" | "panels.market.failure.term.collapse" | "panels.market.failure.term.expandAria" | "panels.market.failure.term.expand" | "panels.market.needEnv" | "panels.market.needBinary" | "panels.market.needLib" | "panels.market.localMark" | "panels.market.noSource" | "panels.market.needBuiltinMissing" | "panels.market.badSource" | "panels.market.empty" | "panels.market.updateAllPlugins" | "panels.market.updatingAll" | "panels.market.sectionPlugins" | "panels.market.openDetail" | "panels.market.detailBack" | "panels.market.depKindExtension" | "panels.market.depKindLib" | "panels.market.depKindBin" | "panels.market.depKindEnv" | "panels.market.depEnvNotSet" | "panels.market.depOptional" | "panels.market.detailDepsTitle" | "panels.market.detailDepsEmpty" | "panels.market.detailSourceTitle" | "panels.market.detailSource" | "panels.market.detailRegistry" | "panels.market.detailSpec" | "panels.market.detailUnit" | "panels.market.detailVersion" | "panels.market.detailLatest" | "panels.market.detailRuntime" | "panels.market.detailExtension" | "panels.market.detailExtensionValue" | "panels.market.detailBridge" | "panels.market.detailBridgeValue" | "panels.market.detailBridgeStale" | "panels.market.detailRuntimeMismatch" | "panels.market.detailRuntimeReady" | "panels.market.detailRuntimeUnknown" | "panels.market.detailPluginName" | "panels.market.detailInstalledAt" | "panels.market.detailMarket" | "panels.market.detailRepository" | "panels.market.detailCommit" | "panels.market.detailDirectory" | "panels.market.detailUpdateSource" | "panels.market.detailUpdateVersion" | "panels.market.detailLocalDirectory" | "panels.market.detailUnknown" | "panels.market.detailSharedTitle" | "panels.market.detailTabs" | "panels.market.detailSharedTabs" | "panels.market.detailTabOverview" | "panels.market.detailTabReadme" | "panels.market.detailTabChangelog" | "panels.market.detailAuthor" | "panels.market.detailHomepage" | "panels.market.detailKeywords" | "panels.market.detailKind" | "panels.market.sharedKindPlugin" | "panels.market.sharedKindLib" | "panels.market.detailSharedUsedBy" | "panels.market.moduleOutdated" | "panels.market.olderOnDisk" | "panels.market.configDriftedNote" | "panels.market.olderOnDiskNote" | "panels.market.updateNeedsWorkbench" | "panels.market.needsHostVersion" | "panels.market.needsHostAction.desktop" | "panels.market.needsHostAction.dsh" | "panels.market.updateIncompatible" | "panels.market.updateUnverified" | "panels.market.moduleRefused" | "panels.market.moduleRestartHint" | "panels.market.pendingRestart" | "panels.market.pendingFollowUp" | "panels.market.migrationHint" | "panels.market.migrateAction" | "panels.market.migrating" | "panels.market.working" | "panels.market.migrateConfirmTitle" | "panels.market.migrateConfirmDetail" | "panels.market.migrateConfirmAck" | "panels.market.migrateConfirmYes" | "panels.market.migrateDone" | "panels.market.migrateDoneNoCount" | "panels.market.dismissFollowUp" | "panels.market.dismissing" | "panels.market.dismissFollowUpTitle" | "panels.market.dismissFollowUpDetail" | "panels.market.dismissFollowUpAck" | "panels.market.dismissFollowUpYes" | "panels.market.dismissed" | "panels.market.workbenchName" | "panels.market.workbenchBroken" | "panels.market.workbenchBrokenNoFix" | "panels.market.pluginBroken" | "panels.market.restartNeeded" | "panels.market.foot" | "panels.market.checkUpdates" | "panels.market.checkAll" | "panels.market.checkingNow" | "panels.market.checkFailed" | "panels.market.notCheckedYet" | "panels.market.checkedAt" | "panels.market.latestPartial" | "panels.market.sourceUnreachable" | "panels.market.latestNoRegistry" | "panels.market.latestProbeFailed" | "panels.market.justNow" | "panels.market.minutesAgo" | "panels.market.hoursAgo" | "panels.market.add.description" | "panels.market.add.specPlaceholder" | "panels.market.add.guideToggle" | "panels.market.add.guideHide" | "panels.market.add.guideIdTitle" | "panels.market.add.guideIdExample" | "panels.market.add.guideIdHint" | "panels.market.add.guideGitTitle" | "panels.market.add.guideGitExample" | "panels.market.add.guideGitHint" | "panels.market.add.guidePathTitle" | "panels.market.add.guidePathExample" | "panels.market.add.guidePathHint" | "panels.market.add.guideExampleLabel" | "panels.market.add.guideFill" | "panels.market.add.guideSafety" | "panels.market.add.registryLegend" | "panels.market.add.registryOfficial" | "panels.market.add.registryMirror" | "panels.market.add.registryWithHost" | "panels.market.add.registryToggle" | "panels.market.add.installVersion" | "panels.market.add.origins" | "panels.market.add.registryDefault" | "panels.market.add.registryCustom" | "panels.market.add.registryCustomPlaceholder" | "panels.market.add.registryCustomHint" | "panels.market.add.registryCustomInvalid" | "panels.market.add.run" | "panels.market.add.edit" | "panels.market.add.changeRegistry" | "panels.market.add.installingTitle" | "panels.market.add.installedTitle" | "panels.market.add.failedTitle" | "panels.market.add.cancelledTitle" | "panels.market.add.failureNetworkHost" | "panels.market.add.problemInvalid" | "panels.market.add.problemInstalled" | "panels.market.add.problemNotFound" | "panels.market.add.problemNotPackage" | "panels.market.add.problemNotBundle" | "panels.market.add.problemNotWorkbenchModule" | "panels.market.add.problemNotModuleOrPlugin" | "panels.market.add.failureNotModuleOrPlugin" | "panels.market.add.installedPlugin" | "panels.market.add.unknownModule" | "panels.market.add.sourceRepo" | "panels.market.add.sourceRef" | "panels.market.add.sourceBranch" | "panels.market.add.sourceDirectory" | "panels.market.add.sourceDir" | "panels.market.add.pluginPreview" | "panels.market.add.pluginAlias" | "panels.market.add.problemNetwork" | "panels.market.add.problemUnknown" | "panels.market.add.failureNetwork" | "panels.market.add.failureNotFound" | "panels.market.add.failureNoMatchingVersion" | "panels.market.add.failureDiskFull" | "panels.market.add.failurePermission" | "panels.market.add.failureBuildBlocked" | "panels.market.add.failureIntegrity" | "panels.market.add.failureStopProfile" | "panels.market.add.failureCancelled" | "panels.market.add.failureTimeout" | "panels.market.add.failurePnpmMissing" | "panels.market.add.failureInstalled" | "panels.market.add.failureGeneric" | "panels.market.add.failureBundleList" | "panels.market.add.failureModuleRow" | "panels.market.add.failureModuleRowRemove" | "panels.market.add.failureNoProfileDir" | "panels.market.add.failureCredentials" | "panels.market.approve.title" | "panels.market.approve.caution" | "panels.market.approve.install" | "panels.market.approve.update" | "panels.market.add.restart" | "panels.market.add.tookEffect" | "panels.market.add.details" | "panels.market.add.open" | "panels.market.add.title" | "panels.market.add.intro" | "panels.market.add.specLabel" | "panels.market.add.specHint" | "panels.market.add.exampleTitle" | "panels.market.add.exampleFill" | "panels.market.add.registryLabel" | "panels.market.add.registryProfile" | "panels.market.add.registryPnpm" | "panels.market.add.check" | "panels.market.add.checking" | "panels.market.add.classifying" | "panels.market.add.change" | "panels.market.add.previewTitle" | "panels.market.add.fieldName" | "panels.market.add.fieldVersion" | "panels.market.add.fieldDescription" | "panels.market.add.fieldSource" | "panels.market.add.install" | "panels.market.add.installing" | "panels.market.add.cancel" | "panels.market.add.close" | "panels.market.add.retry" | "panels.market.add.changeSource" | "panels.market.tabInstalled" | "panels.market.tabs" | "panels.tab.discover" | "panels.discover.loading" | "panels.discover.slowHint" | "panels.discover.lead" | "panels.discover.addSource" | "panels.discover.addingSource" | "panels.discover.addFirstSource" | "panels.discover.removeSource" | "panels.discover.removeTitle" | "panels.discover.removeBody" | "panels.discover.sourceActions" | "panels.discover.sourceStateWritable" | "panels.discover.sourceStateReadOnly" | "panels.discover.sourceEnable" | "panels.discover.sourceDisable" | "panels.discover.sourceWorking" | "panels.discover.sourceEnabled" | "panels.discover.sourceReadOnly" | "panels.discover.refresh" | "panels.discover.search" | "panels.discover.clearSearch" | "panels.discover.all" | "panels.discover.sourceLabel" | "panels.discover.sourceKind" | "panels.discover.sourceKindHttp" | "panels.discover.sourceKindGit" | "panels.discover.sourceUrl" | "panels.discover.sourcePlaceholder" | "panels.discover.sourceRef" | "panels.discover.sourcePath" | "panels.discover.sourceLocal" | "panels.discover.sourceLocalHint" | "panels.discover.save" | "panels.discover.cancel" | "panels.discover.retry" | "panels.discover.noSource" | "panels.discover.noSourceHint" | "panels.discover.sourcesFailed" | "panels.discover.unreadable" | "panels.discover.sandbox" | "panels.discover.sourceAuth" | "panels.discover.invalid" | "panels.discover.emptyRepo" | "panels.discover.missingIndex" | "panels.discover.initTitle" | "panels.discover.initCta" | "panels.discover.initWhat" | "panels.discover.initBranch" | "panels.discover.initBranchHint" | "panels.discover.initBranchBad" | "panels.discover.initOk" | "panels.discover.initBusy" | "panels.discover.initDone" | "panels.discover.stale" | "panels.discover.empty" | "panels.discover.noMatch" | "panels.discover.notInstalled" | "panels.discover.installed" | "panels.discover.installedVersion" | "panels.discover.update" | "panels.discover.badShell" | "panels.discover.badShellDetail" | "panels.discover.unverified" | "panels.discover.failed" | "panels.discover.transportTitle" | "panels.discover.transportSsh" | "panels.discover.transportHttps" | "panels.discover.transportOk" | "panels.discover.transportAuth" | "panels.discover.transportUnreachable" | "panels.discover.transportUnknown" | "panels.discover.transportChecking" | "panels.discover.transportTest" | "panels.discover.transportPlaceholder" | "panels.discover.transportNeedsAuth" | "panels.discover.transportChange" | "panels.discover.transportChangeHide" | "panels.discover.transportNone" | "panels.discover.expand" | "panels.discover.collapse" | "panels.discover.versionCount" | "panels.discover.sourceNpm" | "panels.discover.sourceNpmDefault" | "panels.discover.sourceGit" | "panels.discover.installVersion" | "panels.discover.confirmTitle" | "panels.discover.confirmDetail" | "panels.discover.confirmAck" | "panels.discover.confirmOk" | "panels.discover.confirmCancel" | "panels.discover.marketMenu" | "panels.discover.manageSources" | "panels.discover.sourcesTitle" | "panels.discover.sourcesIntro" | "panels.discover.sourcesLabel" | "panels.discover.sourceTrust" | "panels.discover.sourceDuplicate" | "panels.discover.sourceBadUrl" | "panels.discover.close" | "panels.discover.labelsMenu" | "panels.discover.labelsCount" | "panels.discover.tagsAll" | "panels.discover.sort" | "panels.discover.sortWith" | "panels.discover.sortRelevance" | "panels.discover.sortDefault" | "panels.discover.sortPublished" | "panels.discover.categoriesLabel" | "panels.discover.showMore" | "panels.discover.entryMeta" | "panels.discover.entryMetaAuthor" | "panels.discover.openEntry" | "panels.discover.cardInstall" | "panels.discover.cardInstalled" | "panels.discover.cardUpdate" | "panels.discover.cardBlocked" | "panels.discover.installTitle" | "panels.discover.installVersionTitle" | "panels.discover.openInstalled" | "panels.discover.noCompatibleVersion" | "panels.discover.detailBack" | "panels.discover.publishedAt" | "panels.discover.detailMarket" | "panels.discover.detailIncompatible" | "panels.discover.detailUnknown" | "panels.discover.detailSource" | "panels.discover.authorUnknown" | "panels.discover.tabOverview" | "panels.discover.tabReadme" | "panels.discover.tabChangelog" | "panels.discover.docReadme" | "panels.discover.docChangelog" | "panels.discover.docLoading" | "panels.discover.docMissing" | "panels.discover.docUnavailable" | "panels.discover.docUnknownReason" | "panels.discover.detailTabs" | "panels.discover.factPackage" | "panels.discover.factRegistry" | "panels.discover.factRepository" | "panels.discover.factCommit" | "panels.discover.factDirectory" | "panels.discover.factPublished" | "panels.discover.factAuthor" | "panels.discover.factHomepage" | "panels.discover.factCategory" | "panels.discover.factLabels" | "panels.discover.factMarket" | "panels.discover.detailVersions" | "panels.discover.versionsLabel" | "panels.discover.tagRecommended" | "panels.discover.tagPrerelease" | "panels.discover.tagInstalled" | "panels.discover.tagIncompatible" | "panels.discover.tagUnknown" | "panels.discover.selected" | "panels.discover.done" | "panels.discover.installTrust" | "panels.discover.progress" | "panels.market.approve.hint" | "panels.market.add.doneApplied" | "panels.market.add.doneRestart" | "panels.market.add.restartWhy" | "panels.market.add.restartWhy.no-hmr" | "panels.market.add.restartWhy.package-moved" | "panels.market.add.restartWhy.host-module" | "panels.market.add.restartWhy.unmanaged-plugin" | "panels.market.add.restartWhy.module-comparison" | "panels.market.add.cancelled" | "panels.market.add.failed" | "panels.market.add.removed" | "panels.market.add.supplyPending" | "panels.market.add.supplyFailed" | "panels.market.add.problemBuiltinMissing" | "panels.market.add.notModule" | "panels.market.add.removedRestart" | "panels.market.add.remove" | "panels.market.add.problem.invalidSpec" | "panels.market.add.problem.alreadyInstalled" | "panels.market.add.problem.notFound" | "panels.market.add.problem.notAPackage" | "panels.market.add.problem.notABundle" | "panels.market.add.problem.network" | "panels.market.add.problem.unknown" | "panels.market.add.reason.invalidSpec" | "panels.market.add.reason.incompatible" | "panels.market.add.reason.notBundle" | "panels.market.add.reason.notRemovable" | "panels.market.add.reason.bundleInUse" | "panels.market.add.reason.stopProfile" | "panels.market.add.reason.staleApproval" | "panels.market.add.reason.operationError" | "panels.market.add.reason.buildBlocked" | "panels.market.add.reason.pnpmMissing" | "panels.market.add.reason.noMatchingVersion" | "panels.market.add.reason.diskFull" | "panels.market.add.reason.permission" | "panels.market.add.reason.integrity" | "panels.market.add.reason.timeout" | "panels.market.add.reason.network" | "panels.market.add.reason.notFound" | "panels.market.add.reason.unknown" | "blocker.fix.update" | "blocker.fix.running" | "blocker.fix.failed" | "blocker.retry.running" | "panels.reading" | "panels.staleNote" | "panels.boardReadFailed" | "panels.boardReadFailedHint" | "panels.retry" | "panels.cardBroken" | "panels.cardRetry" | "panels.empty" | "panels.emptyHint" | "env.title" | "env.checking" | "env.installing" | "env.installingToolchain" | "env.failed" | "env.stepFailed.install" | "env.stepFailed.path" | "env.stepFailed.shell" | "env.stepFailed.host" | "env.toolchain.ok" | "env.toolchain.warn" | "env.runtime.ok" | "env.bridge.ok" | "env.bridge.short" | "env.bridge.why" | "env.bridge.extensionOffline" | "env.bridge.extensionLocal" | "env.bridge.extensionIncompatible" | "env.bridge.extensionIncompatibleAny" | "env.bridge.hold" | "env.bridge.unknown" | "env.fix.title" | "env.fix.why" | "env.fix.whyPath" | "env.fix.whyShell" | "env.fix.whyHost" | "env.fix.step" | "env.fix.stepRetry" | "env.fix.stepPath" | "env.fix.stepShell" | "env.fix.stepHost" | "env.fix.permission" | "env.fix.network" | "env.fix.details" | "env.retry" | "env.failed.continue" | "env.wake" | "env.wake.opening" | "env.wake.browserOpen" | "env.wake.noBrowser" | "env.wake.failed" | "env.bridge.continue" | "env.diy.ok" | "env.diy.short" | "env.diy.hold" | "env.diy.older.why" | "env.diy.older.step" | "env.diy.broken.why" | "env.diy.broken.hint" | "env.diy.presetMissing.why" | "env.diy.presetMissing.hint" | "env.diy.continue" | "askAgent.title" | "askAgent.copied" | "askAgent.screen.workbench" | "entry.failed" | "askAgent.screen.settings" | "askAgent.deployment.desktop" | "askAgent.deployment.web" | "diag.code.preflightDiyRowBroken" | "diag.hint.preflightDiyRowBroken" | "diag.code.preflightDiyPresetMissing" | "diag.hint.preflightDiyPresetMissing" | "diag.code.preflightBridgeHold" | "diag.hint.preflightBridgeHold" | "diag.code.preflightHostOlder" | "diag.hint.preflightHostOlder" | "diag.code.preflightHostNewer" | "diag.hint.preflightHostNewer" | "env.step.hostVersion" | "env.hostVersion.newer" | "env.hostVersion.older" | "env.hostVersion.newer.why" | "env.hostVersion.older.why" | "env.hostVersion.older.step" | "env.hostVersion.recover" | "env.hostVersion.recover.detail" | "env.copyCommand" | "env.copied" | "env.step.toolchain" | "env.step.adapter" | "env.step.runtime" | "env.step.bridge" | "env.step.diy" | "env.step.warm" | "env.warm.done" | "env.warm.short" | "env.unit.hint" | "rightbar.label" | "rightbar.expand" | "rightbar.collapse" | "rightbar.column.label" | "rightbar.column.workbench" | "rightbar.column.dsh" | "rightbar.refresh" | "rightbar.refreshing" | "rightbar.updatedAt" | "rightbar.noProject" | "rightbar.openPlatform" | "error.unknown" | "board.title" | "panel.conversation" | "panels.label" | "panels.more" | "mcpOnDemand.nav" | "mcpOnDemand.lead" | "mcpOnDemand.failed" | "updatePrerelease.nav" | "updatePrerelease.lead" | "updatePrerelease.channel.rc" | "updatePrerelease.channel.beta" | "updatePrerelease.channel.alpha" | "updatePrerelease.none" | "updatePrerelease.separator" | "updatePrerelease.pick" | "updatePrerelease.failed" | "workbenchSettings.nav" | "workbenchSettings.readFailed" | "workbenchSettings.advanced" | "moduleModel.nav" | "moduleModel.lead" | "moduleModel.followDefault" | "moduleModel.followDefaultNamed" | "moduleModel.unavailable" | "moduleModel.reading" | "moduleModel.search" | "moduleModel.readFailed" | "moduleModel.failed" | "sidebarEdition.nav" | "sidebarEdition.official" | "sidebarEdition.officialHint" | "sidebarEdition.custom" | "sidebarEdition.customHint" | "sidebarEdition.saving" | "sidebarEdition.failed" | "debug.workspace" | "debug.status" | "debug.status.trouble" | "debug.stalled" | "debug.act.pause" | "debug.act.resume" | "debug.act.stop" | "debug.act.stop.ask" | "debug.card.here.title" | "debug.card.here.note" | "debug.card.away.note" | "debug.card.paused.note" | "debug.card.hidden.note" | "rightbar.flow.label" | "rightbar.record.label" | "rightbar.flow.done" | "rightbar.flow.active" | "rightbar.flow.pending" | "rightbar.flow.statusCompleted" | "rightbar.flow.statusInProgress" | "rightbar.flow.statusPending" | "rightbar.flow.steps" | "approval.plan.see" | "approval.plan.do" | "approval.plan.agent" | "approval.plan.data" | "approval.fact.object" | "approval.fact.change" | "approval.fact.target" | "approval.fact.impact" | "approval.missingDetail" | "approval.record.site" | "approval.record.what" | "approval.record.lands" | "approval.record.landsUnknown" | "approval.record.noUrl" | "approval.record.oneAction" | "approval.longTask.what" | "approval.longTask.signal" | "approval.shell.module" | "approval.shell.panel" | "approval.shell.bundle" | "approval.shell.dependency" | "approval.shell.plugin" | "approval.shell.workbench" | "approval.shell.itself" | "approval.shell.projectPanel" | "approval.shell.machineDefaults" | "approval.shell.thisMachine" | "approval.shell.config" | "approval.shell.page" | "approval.shell.addPanel" | "approval.shell.resetProject" | "approval.shell.resetMachine" | "approval.shell.followDefaults" | "approval.shell.moveFront" | "approval.shell.moveAt" | "approval.shell.uninstallModule" | "approval.shell.installBundle" | "approval.shell.updateLatest" | "approval.shell.uninstallPlugin" | "approval.shell.startDebug" | "approval.shell.resumeDebug" | "approval.shell.impactPanel" | "approval.shell.impactMove" | "approval.shell.impactReset" | "approval.shell.impactFollow" | "approval.shell.impactUninstallModule" | "approval.shell.impactInstallBundle" | "approval.shell.impactDependency" | "approval.shell.impactPlugin" | "approval.shell.impactUninstallPlugin" | "approval.shell.impactWorkbench" | "approval.shell.impactStartDebug" | "approval.shell.impactResumeDebug" | "approval.plugin.name" | "approval.plugin.command" | "approval.plugin.note" | "approval.supply.module" | "approval.supply.kind" | "approval.supply.plugin" | "approval.supply.lib" | "approval.supply.missing" | "approval.supply.none" | "approval.publish.module" | "approval.publish.target" | "approval.publish.version" | "approval.publish.author" | "approval.publish.authorMissing" | "approval.publish.labels" | "approval.publish.category" | "approval.publish.labelsNone" | "approval.publish.categoryMissing" | "approval.publish.categoryVocabulary" | "approval.publish.categoryVocabularyEmpty" | "approval.publish.owner" | "approval.publish.ownerUnowned" | "approval.publish.ownerTaken" | "approval.publish.unit" | "approval.publish.unitTaken" | "approval.publish.path" | "approval.publish.pathTaken" | "approval.publish.registry" | "approval.publish.repo" | "approval.publish.branch" | "approval.publish.defaultBranch" | "approval.publish.artifacts" | "approval.publish.index" | "approval.publish.commits" | "approval.publish.twoCommits" | "approval.publish.reading" | "approval.publish.changelog" | "approval.publish.changelogPending" | "approval.publish.changelogMissing" | "approval.publish.targetAuto" | "approval.publish.targetTeam" | "approval.publish.targetPublic" | "approval.publish.targetTarball" | "approval.publish.targetGit" | "approval.publish.targetMarket" | "approval.publish.targetLocal" | "approval.market.source" | "approval.market.url" | "approval.market.action" | "approval.market.policy" | "approval.market.enable" | "approval.market.disable" | "approval.market.writable" | "approval.market.readOnly" | "approval.market.reading" | "markdown.copy" | "markdown.copied" | "markdown.footnotes" | "card.chatFailed" | "longTask.act.open" | "longTask.act.copy" | "longTask.handled" | "longTask.submit" | "longTask.login" | "longTask.steps" | "longTask.stop" | "longTask.stopConfirm" | "longTask.stopArmed" | "longTask.stopPending" | "longTask.list.entry" | "longTask.list.title" | "longTask.state.running" | "longTask.state.needsHuman" | "longTask.state.needsLogin" | "longTask.state.stopped" | "longTask.state.ok" | "longTask.state.failed" | "longTask.duration.sec" | "longTask.duration.minSec" | "longTask.duration.hourMin", string>;
|
|
1107
|
+
en: Record<"diag.code.readFailed" | "diag.hint.readFailed" | "diag.code.configCorrupt" | "diag.code.moduleUnreadable" | "diag.code.manifestsGaveUp" | "diag.code.selfUpdateFailed" | "diag.code.supplyInstallFailed" | "diag.code.badParam" | "diag.code.sinkFailed" | "diag.code.unknownCode" | "time.now" | "time.ago" | "time.minutes" | "time.hours" | "time.days" | "askAgent.prompt.whereOnly" | "askAgent.prompt.where" | "askAgent.prompt.head" | "askAgent.prompt.why" | "askAgent.prompt.rows" | "askAgent.prompt.issue" | "askAgent.prompt.reason" | "askAgent.prompt.host" | "askAgent.prompt.deployment" | "askAgent.prompt.configDir" | "askAgent.prompt.logDir" | "askAgent.prompt.tried" | "askAgent.prompt.evidence" | "askAgent.prompt.ask" | "blocker.retry" | "blocker.copy" | "askAgent.copy" | "askAgent.screen.board" | "blocker.unknown.title" | "blocker.login.go" | "blocker.login.titleGeneric" | "blocker.login.title" | "blocker.login.manual" | "blocker.login.hint" | "blocker.forbidden.open" | "blocker.forbidden.titleGeneric" | "blocker.forbidden.title" | "blocker.forbidden.hint" | "blocker.timeout.hint" | "blocker.exec.hint" | "blocker.fix.install" | "blocker.market.open" | "env.unit.failed" | "env.unit.failedHint" | "env.unit.degraded" | "env.unit.unsupported" | "env.unit.degradedHint" | "env.unit.unsupportedHint" | "env.unit.unchecked" | "env.unit.uncheckedHint" | "profileCreate.nav" | "profileCreate.lead" | "profileCreate.name" | "profileCreate.nameHint" | "profileCreate.source" | "profileCreate.current" | "profileCreate.copy" | "profileCreate.settings" | "profileCreate.create" | "profileCreate.creating" | "profileCreate.created" | "profileCreate.command" | "profileCreate.commandUnsupported" | "profileCreate.copyCommand" | "profileCreate.copied" | "profileCreate.readFailed" | "profileCreate.retry" | "profileCreate.reading" | "profileCreate.noProfiles" | "profileCreate.failed" | "configSync.nav" | "configSync.lead" | "configSync.source" | "configSync.sourceBroken" | "configSync.sourceRows" | "configSync.sourceDead" | "configSync.refresh" | "configSync.loading" | "configSync.readHint" | "configSync.summary.loading" | "configSync.summary.ready" | "configSync.summary.none" | "configSync.summary.error" | "configSync.view" | "configSync.hide" | "configSync.pickHint" | "configSync.tag.new" | "configSync.tag.differs" | "configSync.conflictNote" | "configSync.code.lang" | "configSync.code.copy" | "configSync.code.copied" | "configSync.code.wrap" | "configSync.code.unwrap" | "configSync.code.collapse" | "configSync.code.collapseAria" | "configSync.code.expandAria" | "configSync.code.expand" | "configSync.missing" | "configSync.apply" | "configSync.applyNone" | "configSync.applying" | "configSync.applied" | "configSync.appliedUnverified" | "configSync.appliedIds" | "configSync.skippedIds" | "configSync.nothing" | "configSync.unreadable" | "configSync.noSource" | "configSync.emptyProviders" | "configSync.failed" | "diyPresetSource.nav" | "diyPresetSource.lead" | "diyPresetSource.standard" | "diyPresetSource.ptc" | "diyPresetSource.minimal" | "diyPresetSource.cordis" | "diyPresetSource.unusable" | "diyPresetSource.storedUnavailable" | "diyPresetSource.readFailed" | "diyPresetSource.reading" | "diyPresetSource.search" | "diyPresetSource.empty" | "diyPresetSource.failed" | "env.need.bin.missing" | "env.need.bin.hint" | "env.need.extension.missing" | "env.need.extension.outdated" | "env.need.extension.hint" | "env.need.lib.missing" | "env.need.lib.outdated" | "env.need.lib.unsatisfied" | "env.need.lib.hint" | "env.need.env.missing" | "env.need.env.hint" | "brand.name" | "toggle.open" | "toggle.collapse" | "project.label" | "workspace.section" | "project.none" | "project.empty" | "project.add" | "project.add.busy" | "project.add.failed" | "project.search.label" | "project.search.placeholder" | "project.search.empty" | "project.group.workspaces" | "project.group.defaultWorkspace" | "project.group.workshop" | "project.menu.row" | "project.menu.alias" | "project.menu.reveal.finder" | "project.menu.reveal.folder" | "project.menu.delete" | "project.alias.title" | "project.alias.description" | "project.alias.field" | "project.alias.placeholder" | "project.alias.hint" | "project.alias.save" | "project.alias.saving" | "project.alias.cancel" | "project.alias.failed" | "project.delete.title" | "project.delete.description" | "project.delete.confirm" | "project.delete.pending" | "project.delete.cancel" | "project.delete.failed" | "project.reveal.failed" | "session.new" | "session.new.label" | "session.empty" | "session.noProject" | "session.list.label" | "session.copy" | "session.pinned" | "session.actions" | "session.expand" | "session.collapse" | "session.search.label" | "session.search.results" | "session.search.placeholder" | "session.search.clear" | "session.search.pending" | "session.search.empty" | "session.search.hasMore" | "status.idle" | "status.running" | "status.longTask" | "status.longTaskWaiting" | "status.waitingApproval" | "status.planReview" | "status.waitingAnswer" | "status.compact.approval" | "status.compact.planReview" | "status.compact.answer" | "status.completed" | "status.subagentsRunning.one" | "status.subagentsRunning.other" | "project.attention.warning.one" | "project.attention.warning.other" | "project.attention.running.one" | "project.attention.running.other" | "project.attention.longTask.one" | "project.attention.longTask.other" | "project.attention.longTaskWaiting.one" | "project.attention.longTaskWaiting.other" | "project.attention.done.one" | "project.attention.done.other" | "project.attention.state.warning" | "project.attention.state.longTaskWaiting" | "project.attention.state.running" | "project.attention.state.done" | "hover.copied" | "time.short.minutes" | "time.short.hours" | "time.short.days" | "time.short.months" | "time.short.years" | "panels.title" | "panels.groupBackground" | "runtime.plugin" | "runtime.pluginOf" | "runtime.pluginThing" | "runtime.pluginArea" | "panels.market.defaultHint" | "panels.market.defaultLabel" | "panels.market.defaultNeedsDeps" | "panels.market.defaultLocked" | "panels.followAll" | "panels.followAllConfirmTitle" | "panels.followAllConfirmDetail" | "panels.followAllConfirmAck" | "panels.followAllConfirmYes" | "panels.followAllConfirmNo" | "panels.enabled" | "panels.disabled" | "panels.onBoard" | "panels.offBoard" | "panels.choose" | "panels.buildModule" | "panels.failed" | "panels.dragHint" | "panels.unknownStep" | "panels.labelWithHint" | "panels.hintJoin" | "panels.dep.failed" | "panels.dep.unchecked" | "panels.dep.missing" | "panels.dep.outdated" | "panels.dep.depsNewer" | "panels.dep.degraded" | "panels.dep.unsupported" | "panels.tab.modules" | "panels.tab.market" | "panels.browseMarket" | "panels.noneInstalled" | "panels.noneInstalledHint" | "panels.market.installed" | "panels.market.modulesReadFailed" | "panels.market.notActive" | "panels.market.notUsable" | "panels.market.broken" | "panels.market.pluginVersionMismatch" | "panels.market.runtimeVersionMismatch" | "panels.market.hasNew" | "panels.market.hasProblem" | "panels.market.missing" | "panels.market.unchecked" | "panels.market.uncheckedHint" | "panels.market.checking" | "market.listUnread" | "market.unreadable.badge.one" | "market.unreadable.badge.other" | "market.unreadable.title" | "market.unreadable.lead" | "market.unreadable.copy" | "market.unreadable.copied" | "market.unreadable.close" | "panels.market.sectionInstalled" | "panels.market.sectionPending" | "panels.market.sectionShared" | "panels.market.sharedUsedBy" | "panels.market.listSeparator" | "panels.market.sharedMissing" | "panels.market.sharedOutdated" | "panels.market.sharedUnsatisfied" | "panels.market.sharedOk" | "panels.market.versionArrow" | "panels.market.lead" | "panels.market.install" | "panels.market.installDeps" | "panels.market.update" | "panels.market.updateDeps" | "panels.market.depsHaveUpdate" | "panels.market.swapSlow" | "panels.market.removeSlow" | "panels.market.updateNoChange" | "panels.market.updateUnknownVersion" | "panels.market.updateGone" | "panels.market.updateRestored" | "panels.market.updateBehind" | "panels.market.updateStuck.title" | "panels.market.updateStuck.factNoChange" | "panels.market.updateStuck.copiedHint" | "panels.market.selfUpdateQueued" | "panels.market.selfUpdateMigration" | "panels.market.selfUpdatePendingRestart" | "panels.market.selfUpdateRetry" | "panels.market.selfUpdateNeedsHost" | "panels.market.selfUpdateBusy" | "panels.market.selfUpdateReinstallFailed" | "panels.market.selfUpdateReinstallStopped" | "panels.market.uninstall" | "panels.market.uninstallLabel" | "panels.market.installing" | "panels.market.installingDeps" | "panels.market.updating" | "panels.market.updatingDeps" | "panels.market.uninstalling" | "panels.market.confirmUninstallTitle" | "panels.market.confirmUninstallDetail" | "panels.market.confirmUninstallAck" | "panels.market.confirmYes" | "panels.market.confirmNo" | "panels.market.noMarketSource" | "panels.market.failed" | "panels.market.failure.permission" | "panels.market.failure.diskFull" | "panels.market.failure.auth" | "panels.market.failure.sandbox" | "panels.market.failure.retryAdvice" | "panels.market.failure.copyOutput" | "panels.market.failure.copyOutputHint" | "panels.market.failure.unknown" | "panels.market.failure.factOwner" | "panels.market.failure.factMode" | "panels.market.failure.factSpace" | "panels.market.failure.factAuth" | "panels.market.failure.title" | "panels.market.failure.factSummary" | "panels.market.failure.factUnknown" | "panels.market.failure.factStuck" | "panels.market.failure.thisSource" | "panels.market.failure.noReason" | "panels.market.failure.nowhere" | "panels.market.failure.copyFix" | "panels.market.failure.copied" | "panels.market.failure.copiedHint" | "panels.market.failure.askAgent" | "panels.market.failure.askAgentText" | "panels.market.failure.askAgentAuth" | "panels.market.failure.askAgentUnknown" | "panels.market.failure.recheck" | "panels.market.failure.showOutput" | "panels.market.failure.hideOutput" | "panels.market.failure.term.commandLine" | "panels.market.failure.term.signal" | "panels.market.failure.term.exitCode" | "panels.market.failure.term.noExitCode" | "panels.market.failure.term.running" | "panels.market.failure.term.failed" | "panels.market.failure.term.done" | "panels.market.failure.term.copy" | "panels.market.failure.term.copied" | "panels.market.failure.term.noOutput" | "panels.market.failure.term.collapse" | "panels.market.failure.term.expandAria" | "panels.market.failure.term.expand" | "panels.market.needEnv" | "panels.market.needBinary" | "panels.market.needLib" | "panels.market.localMark" | "panels.market.noSource" | "panels.market.needBuiltinMissing" | "panels.market.badSource" | "panels.market.empty" | "panels.market.updateAllPlugins" | "panels.market.updatingAll" | "panels.market.sectionPlugins" | "panels.market.openDetail" | "panels.market.detailBack" | "panels.market.depKindExtension" | "panels.market.depKindLib" | "panels.market.depKindBin" | "panels.market.depKindEnv" | "panels.market.depEnvNotSet" | "panels.market.depOptional" | "panels.market.detailDepsTitle" | "panels.market.detailDepsEmpty" | "panels.market.detailSourceTitle" | "panels.market.detailSource" | "panels.market.detailRegistry" | "panels.market.detailSpec" | "panels.market.detailUnit" | "panels.market.detailVersion" | "panels.market.detailLatest" | "panels.market.detailRuntime" | "panels.market.detailExtension" | "panels.market.detailExtensionValue" | "panels.market.detailBridge" | "panels.market.detailBridgeValue" | "panels.market.detailBridgeStale" | "panels.market.detailRuntimeMismatch" | "panels.market.detailRuntimeReady" | "panels.market.detailRuntimeUnknown" | "panels.market.detailPluginName" | "panels.market.detailInstalledAt" | "panels.market.detailMarket" | "panels.market.detailRepository" | "panels.market.detailCommit" | "panels.market.detailDirectory" | "panels.market.detailUpdateSource" | "panels.market.detailUpdateVersion" | "panels.market.detailLocalDirectory" | "panels.market.detailUnknown" | "panels.market.detailSharedTitle" | "panels.market.detailTabs" | "panels.market.detailSharedTabs" | "panels.market.detailTabOverview" | "panels.market.detailTabReadme" | "panels.market.detailTabChangelog" | "panels.market.detailAuthor" | "panels.market.detailHomepage" | "panels.market.detailKeywords" | "panels.market.detailKind" | "panels.market.sharedKindPlugin" | "panels.market.sharedKindLib" | "panels.market.detailSharedUsedBy" | "panels.market.moduleOutdated" | "panels.market.olderOnDisk" | "panels.market.configDriftedNote" | "panels.market.olderOnDiskNote" | "panels.market.updateNeedsWorkbench" | "panels.market.needsHostVersion" | "panels.market.needsHostAction.desktop" | "panels.market.needsHostAction.dsh" | "panels.market.updateIncompatible" | "panels.market.updateUnverified" | "panels.market.moduleRefused" | "panels.market.moduleRestartHint" | "panels.market.pendingRestart" | "panels.market.pendingFollowUp" | "panels.market.migrationHint" | "panels.market.migrateAction" | "panels.market.migrating" | "panels.market.working" | "panels.market.migrateConfirmTitle" | "panels.market.migrateConfirmDetail" | "panels.market.migrateConfirmAck" | "panels.market.migrateConfirmYes" | "panels.market.migrateDone" | "panels.market.migrateDoneNoCount" | "panels.market.dismissFollowUp" | "panels.market.dismissing" | "panels.market.dismissFollowUpTitle" | "panels.market.dismissFollowUpDetail" | "panels.market.dismissFollowUpAck" | "panels.market.dismissFollowUpYes" | "panels.market.dismissed" | "panels.market.workbenchName" | "panels.market.workbenchBroken" | "panels.market.workbenchBrokenNoFix" | "panels.market.pluginBroken" | "panels.market.restartNeeded" | "panels.market.foot" | "panels.market.checkUpdates" | "panels.market.checkAll" | "panels.market.checkingNow" | "panels.market.checkFailed" | "panels.market.notCheckedYet" | "panels.market.checkedAt" | "panels.market.latestPartial" | "panels.market.sourceUnreachable" | "panels.market.latestNoRegistry" | "panels.market.latestProbeFailed" | "panels.market.justNow" | "panels.market.minutesAgo" | "panels.market.hoursAgo" | "panels.market.add.description" | "panels.market.add.specPlaceholder" | "panels.market.add.guideToggle" | "panels.market.add.guideHide" | "panels.market.add.guideIdTitle" | "panels.market.add.guideIdExample" | "panels.market.add.guideIdHint" | "panels.market.add.guideGitTitle" | "panels.market.add.guideGitExample" | "panels.market.add.guideGitHint" | "panels.market.add.guidePathTitle" | "panels.market.add.guidePathExample" | "panels.market.add.guidePathHint" | "panels.market.add.guideExampleLabel" | "panels.market.add.guideFill" | "panels.market.add.guideSafety" | "panels.market.add.registryLegend" | "panels.market.add.registryOfficial" | "panels.market.add.registryMirror" | "panels.market.add.registryWithHost" | "panels.market.add.registryToggle" | "panels.market.add.installVersion" | "panels.market.add.origins" | "panels.market.add.registryDefault" | "panels.market.add.registryCustom" | "panels.market.add.registryCustomPlaceholder" | "panels.market.add.registryCustomHint" | "panels.market.add.registryCustomInvalid" | "panels.market.add.run" | "panels.market.add.edit" | "panels.market.add.changeRegistry" | "panels.market.add.installingTitle" | "panels.market.add.installedTitle" | "panels.market.add.failedTitle" | "panels.market.add.cancelledTitle" | "panels.market.add.failureNetworkHost" | "panels.market.add.problemInvalid" | "panels.market.add.problemInstalled" | "panels.market.add.problemNotFound" | "panels.market.add.problemNotPackage" | "panels.market.add.problemNotBundle" | "panels.market.add.problemNotWorkbenchModule" | "panels.market.add.problemNotModuleOrPlugin" | "panels.market.add.failureNotModuleOrPlugin" | "panels.market.add.installedPlugin" | "panels.market.add.unknownModule" | "panels.market.add.sourceRepo" | "panels.market.add.sourceRef" | "panels.market.add.sourceBranch" | "panels.market.add.sourceDirectory" | "panels.market.add.sourceDir" | "panels.market.add.pluginPreview" | "panels.market.add.pluginAlias" | "panels.market.add.problemNetwork" | "panels.market.add.problemUnknown" | "panels.market.add.failureNetwork" | "panels.market.add.failureNotFound" | "panels.market.add.failureNoMatchingVersion" | "panels.market.add.failureDiskFull" | "panels.market.add.failurePermission" | "panels.market.add.failureBuildBlocked" | "panels.market.add.failureIntegrity" | "panels.market.add.failureStopProfile" | "panels.market.add.failureCancelled" | "panels.market.add.failureTimeout" | "panels.market.add.failurePnpmMissing" | "panels.market.add.failureInstalled" | "panels.market.add.failureGeneric" | "panels.market.add.failureBundleList" | "panels.market.add.failureModuleRow" | "panels.market.add.failureModuleRowRemove" | "panels.market.add.failureNoProfileDir" | "panels.market.add.failureCredentials" | "panels.market.approve.title" | "panels.market.approve.caution" | "panels.market.approve.install" | "panels.market.approve.update" | "panels.market.add.restart" | "panels.market.add.tookEffect" | "panels.market.add.details" | "panels.market.add.open" | "panels.market.add.title" | "panels.market.add.intro" | "panels.market.add.specLabel" | "panels.market.add.specHint" | "panels.market.add.exampleTitle" | "panels.market.add.exampleFill" | "panels.market.add.registryLabel" | "panels.market.add.registryProfile" | "panels.market.add.registryPnpm" | "panels.market.add.check" | "panels.market.add.checking" | "panels.market.add.classifying" | "panels.market.add.change" | "panels.market.add.previewTitle" | "panels.market.add.fieldName" | "panels.market.add.fieldVersion" | "panels.market.add.fieldDescription" | "panels.market.add.fieldSource" | "panels.market.add.install" | "panels.market.add.installing" | "panels.market.add.cancel" | "panels.market.add.close" | "panels.market.add.retry" | "panels.market.add.changeSource" | "panels.market.tabInstalled" | "panels.market.tabs" | "panels.tab.discover" | "panels.discover.loading" | "panels.discover.slowHint" | "panels.discover.lead" | "panels.discover.addSource" | "panels.discover.addingSource" | "panels.discover.addFirstSource" | "panels.discover.removeSource" | "panels.discover.removeTitle" | "panels.discover.removeBody" | "panels.discover.sourceActions" | "panels.discover.sourceStateWritable" | "panels.discover.sourceStateReadOnly" | "panels.discover.sourceEnable" | "panels.discover.sourceDisable" | "panels.discover.sourceWorking" | "panels.discover.sourceEnabled" | "panels.discover.sourceReadOnly" | "panels.discover.refresh" | "panels.discover.search" | "panels.discover.clearSearch" | "panels.discover.all" | "panels.discover.sourceLabel" | "panels.discover.sourceKind" | "panels.discover.sourceKindHttp" | "panels.discover.sourceKindGit" | "panels.discover.sourceUrl" | "panels.discover.sourcePlaceholder" | "panels.discover.sourceRef" | "panels.discover.sourcePath" | "panels.discover.sourceLocal" | "panels.discover.sourceLocalHint" | "panels.discover.save" | "panels.discover.cancel" | "panels.discover.retry" | "panels.discover.noSource" | "panels.discover.noSourceHint" | "panels.discover.sourcesFailed" | "panels.discover.unreadable" | "panels.discover.sandbox" | "panels.discover.sourceAuth" | "panels.discover.invalid" | "panels.discover.emptyRepo" | "panels.discover.missingIndex" | "panels.discover.initTitle" | "panels.discover.initCta" | "panels.discover.initWhat" | "panels.discover.initBranch" | "panels.discover.initBranchHint" | "panels.discover.initBranchBad" | "panels.discover.initOk" | "panels.discover.initBusy" | "panels.discover.initDone" | "panels.discover.stale" | "panels.discover.empty" | "panels.discover.noMatch" | "panels.discover.notInstalled" | "panels.discover.installed" | "panels.discover.installedVersion" | "panels.discover.update" | "panels.discover.badShell" | "panels.discover.badShellDetail" | "panels.discover.unverified" | "panels.discover.failed" | "panels.discover.transportTitle" | "panels.discover.transportSsh" | "panels.discover.transportHttps" | "panels.discover.transportOk" | "panels.discover.transportAuth" | "panels.discover.transportUnreachable" | "panels.discover.transportUnknown" | "panels.discover.transportChecking" | "panels.discover.transportTest" | "panels.discover.transportPlaceholder" | "panels.discover.transportNeedsAuth" | "panels.discover.transportChange" | "panels.discover.transportChangeHide" | "panels.discover.transportNone" | "panels.discover.expand" | "panels.discover.collapse" | "panels.discover.versionCount" | "panels.discover.sourceNpm" | "panels.discover.sourceNpmDefault" | "panels.discover.sourceGit" | "panels.discover.installVersion" | "panels.discover.confirmTitle" | "panels.discover.confirmDetail" | "panels.discover.confirmAck" | "panels.discover.confirmOk" | "panels.discover.confirmCancel" | "panels.discover.marketMenu" | "panels.discover.manageSources" | "panels.discover.sourcesTitle" | "panels.discover.sourcesIntro" | "panels.discover.sourcesLabel" | "panels.discover.sourceTrust" | "panels.discover.sourceDuplicate" | "panels.discover.sourceBadUrl" | "panels.discover.close" | "panels.discover.labelsMenu" | "panels.discover.labelsCount" | "panels.discover.tagsAll" | "panels.discover.sort" | "panels.discover.sortWith" | "panels.discover.sortRelevance" | "panels.discover.sortDefault" | "panels.discover.sortPublished" | "panels.discover.categoriesLabel" | "panels.discover.showMore" | "panels.discover.entryMeta" | "panels.discover.entryMetaAuthor" | "panels.discover.openEntry" | "panels.discover.cardInstall" | "panels.discover.cardInstalled" | "panels.discover.cardUpdate" | "panels.discover.cardBlocked" | "panels.discover.installTitle" | "panels.discover.installVersionTitle" | "panels.discover.openInstalled" | "panels.discover.noCompatibleVersion" | "panels.discover.detailBack" | "panels.discover.publishedAt" | "panels.discover.detailMarket" | "panels.discover.detailIncompatible" | "panels.discover.detailUnknown" | "panels.discover.detailSource" | "panels.discover.authorUnknown" | "panels.discover.tabOverview" | "panels.discover.tabReadme" | "panels.discover.tabChangelog" | "panels.discover.docReadme" | "panels.discover.docChangelog" | "panels.discover.docLoading" | "panels.discover.docMissing" | "panels.discover.docUnavailable" | "panels.discover.docUnknownReason" | "panels.discover.detailTabs" | "panels.discover.factPackage" | "panels.discover.factRegistry" | "panels.discover.factRepository" | "panels.discover.factCommit" | "panels.discover.factDirectory" | "panels.discover.factPublished" | "panels.discover.factAuthor" | "panels.discover.factHomepage" | "panels.discover.factCategory" | "panels.discover.factLabels" | "panels.discover.factMarket" | "panels.discover.detailVersions" | "panels.discover.versionsLabel" | "panels.discover.tagRecommended" | "panels.discover.tagPrerelease" | "panels.discover.tagInstalled" | "panels.discover.tagIncompatible" | "panels.discover.tagUnknown" | "panels.discover.selected" | "panels.discover.done" | "panels.discover.installTrust" | "panels.discover.progress" | "panels.market.approve.hint" | "panels.market.add.doneApplied" | "panels.market.add.doneRestart" | "panels.market.add.restartWhy" | "panels.market.add.restartWhy.no-hmr" | "panels.market.add.restartWhy.package-moved" | "panels.market.add.restartWhy.host-module" | "panels.market.add.restartWhy.unmanaged-plugin" | "panels.market.add.restartWhy.module-comparison" | "panels.market.add.cancelled" | "panels.market.add.failed" | "panels.market.add.removed" | "panels.market.add.supplyPending" | "panels.market.add.supplyFailed" | "panels.market.add.problemBuiltinMissing" | "panels.market.add.notModule" | "panels.market.add.removedRestart" | "panels.market.add.remove" | "panels.market.add.problem.invalidSpec" | "panels.market.add.problem.alreadyInstalled" | "panels.market.add.problem.notFound" | "panels.market.add.problem.notAPackage" | "panels.market.add.problem.notABundle" | "panels.market.add.problem.network" | "panels.market.add.problem.unknown" | "panels.market.add.reason.invalidSpec" | "panels.market.add.reason.incompatible" | "panels.market.add.reason.notBundle" | "panels.market.add.reason.notRemovable" | "panels.market.add.reason.bundleInUse" | "panels.market.add.reason.stopProfile" | "panels.market.add.reason.staleApproval" | "panels.market.add.reason.operationError" | "panels.market.add.reason.buildBlocked" | "panels.market.add.reason.pnpmMissing" | "panels.market.add.reason.noMatchingVersion" | "panels.market.add.reason.diskFull" | "panels.market.add.reason.permission" | "panels.market.add.reason.integrity" | "panels.market.add.reason.timeout" | "panels.market.add.reason.network" | "panels.market.add.reason.notFound" | "panels.market.add.reason.unknown" | "blocker.fix.update" | "blocker.fix.running" | "blocker.fix.failed" | "blocker.retry.running" | "panels.reading" | "panels.staleNote" | "panels.boardReadFailed" | "panels.boardReadFailedHint" | "panels.retry" | "panels.cardBroken" | "panels.cardRetry" | "panels.empty" | "panels.emptyHint" | "env.title" | "env.checking" | "env.installing" | "env.installingToolchain" | "env.failed" | "env.stepFailed.install" | "env.stepFailed.path" | "env.stepFailed.shell" | "env.stepFailed.host" | "env.toolchain.ok" | "env.toolchain.warn" | "env.runtime.ok" | "env.bridge.ok" | "env.bridge.short" | "env.bridge.why" | "env.bridge.extensionOffline" | "env.bridge.extensionLocal" | "env.bridge.extensionIncompatible" | "env.bridge.extensionIncompatibleAny" | "env.bridge.hold" | "env.bridge.unknown" | "env.fix.title" | "env.fix.why" | "env.fix.whyPath" | "env.fix.whyShell" | "env.fix.whyHost" | "env.fix.step" | "env.fix.stepRetry" | "env.fix.stepPath" | "env.fix.stepShell" | "env.fix.stepHost" | "env.fix.permission" | "env.fix.network" | "env.fix.details" | "env.retry" | "env.failed.continue" | "env.wake" | "env.wake.opening" | "env.wake.browserOpen" | "env.wake.noBrowser" | "env.wake.failed" | "env.bridge.continue" | "env.diy.ok" | "env.diy.short" | "env.diy.hold" | "env.diy.older.why" | "env.diy.older.step" | "env.diy.broken.why" | "env.diy.broken.hint" | "env.diy.presetMissing.why" | "env.diy.presetMissing.hint" | "env.diy.continue" | "askAgent.title" | "askAgent.copied" | "askAgent.screen.workbench" | "entry.failed" | "askAgent.screen.settings" | "askAgent.deployment.desktop" | "askAgent.deployment.web" | "diag.code.preflightDiyRowBroken" | "diag.hint.preflightDiyRowBroken" | "diag.code.preflightDiyPresetMissing" | "diag.hint.preflightDiyPresetMissing" | "diag.code.preflightBridgeHold" | "diag.hint.preflightBridgeHold" | "diag.code.preflightHostOlder" | "diag.hint.preflightHostOlder" | "diag.code.preflightHostNewer" | "diag.hint.preflightHostNewer" | "env.step.hostVersion" | "env.hostVersion.newer" | "env.hostVersion.older" | "env.hostVersion.newer.why" | "env.hostVersion.older.why" | "env.hostVersion.older.step" | "env.hostVersion.recover" | "env.hostVersion.recover.detail" | "env.copyCommand" | "env.copied" | "env.step.toolchain" | "env.step.adapter" | "env.step.runtime" | "env.step.bridge" | "env.step.diy" | "env.step.warm" | "env.warm.done" | "env.warm.short" | "env.unit.hint" | "rightbar.label" | "rightbar.expand" | "rightbar.collapse" | "rightbar.column.label" | "rightbar.column.workbench" | "rightbar.column.dsh" | "rightbar.refresh" | "rightbar.refreshing" | "rightbar.updatedAt" | "rightbar.noProject" | "rightbar.openPlatform" | "error.unknown" | "board.title" | "panel.conversation" | "panels.label" | "panels.more" | "mcpOnDemand.nav" | "mcpOnDemand.lead" | "mcpOnDemand.failed" | "updatePrerelease.nav" | "updatePrerelease.lead" | "updatePrerelease.channel.rc" | "updatePrerelease.channel.beta" | "updatePrerelease.channel.alpha" | "updatePrerelease.none" | "updatePrerelease.separator" | "updatePrerelease.pick" | "updatePrerelease.failed" | "workbenchSettings.nav" | "workbenchSettings.readFailed" | "workbenchSettings.advanced" | "moduleModel.nav" | "moduleModel.lead" | "moduleModel.followDefault" | "moduleModel.followDefaultNamed" | "moduleModel.unavailable" | "moduleModel.reading" | "moduleModel.search" | "moduleModel.readFailed" | "moduleModel.failed" | "sidebarEdition.nav" | "sidebarEdition.official" | "sidebarEdition.officialHint" | "sidebarEdition.custom" | "sidebarEdition.customHint" | "sidebarEdition.saving" | "sidebarEdition.failed" | "debug.workspace" | "debug.status" | "debug.status.trouble" | "debug.stalled" | "debug.act.pause" | "debug.act.resume" | "debug.act.stop" | "debug.act.stop.ask" | "debug.card.here.title" | "debug.card.here.note" | "debug.card.away.note" | "debug.card.paused.note" | "debug.card.hidden.note" | "rightbar.flow.label" | "rightbar.record.label" | "rightbar.flow.done" | "rightbar.flow.active" | "rightbar.flow.pending" | "rightbar.flow.statusCompleted" | "rightbar.flow.statusInProgress" | "rightbar.flow.statusPending" | "rightbar.flow.steps" | "approval.plan.see" | "approval.plan.do" | "approval.plan.agent" | "approval.plan.data" | "approval.fact.object" | "approval.fact.change" | "approval.fact.target" | "approval.fact.impact" | "approval.missingDetail" | "approval.record.site" | "approval.record.what" | "approval.record.lands" | "approval.record.landsUnknown" | "approval.record.noUrl" | "approval.record.oneAction" | "approval.longTask.what" | "approval.longTask.signal" | "approval.shell.module" | "approval.shell.panel" | "approval.shell.bundle" | "approval.shell.dependency" | "approval.shell.plugin" | "approval.shell.workbench" | "approval.shell.itself" | "approval.shell.projectPanel" | "approval.shell.machineDefaults" | "approval.shell.thisMachine" | "approval.shell.config" | "approval.shell.page" | "approval.shell.addPanel" | "approval.shell.resetProject" | "approval.shell.resetMachine" | "approval.shell.followDefaults" | "approval.shell.moveFront" | "approval.shell.moveAt" | "approval.shell.uninstallModule" | "approval.shell.installBundle" | "approval.shell.updateLatest" | "approval.shell.uninstallPlugin" | "approval.shell.startDebug" | "approval.shell.resumeDebug" | "approval.shell.impactPanel" | "approval.shell.impactMove" | "approval.shell.impactReset" | "approval.shell.impactFollow" | "approval.shell.impactUninstallModule" | "approval.shell.impactInstallBundle" | "approval.shell.impactDependency" | "approval.shell.impactPlugin" | "approval.shell.impactUninstallPlugin" | "approval.shell.impactWorkbench" | "approval.shell.impactStartDebug" | "approval.shell.impactResumeDebug" | "approval.plugin.name" | "approval.plugin.command" | "approval.plugin.note" | "approval.supply.module" | "approval.supply.kind" | "approval.supply.plugin" | "approval.supply.lib" | "approval.supply.missing" | "approval.supply.none" | "approval.publish.module" | "approval.publish.target" | "approval.publish.version" | "approval.publish.author" | "approval.publish.authorMissing" | "approval.publish.labels" | "approval.publish.category" | "approval.publish.labelsNone" | "approval.publish.categoryMissing" | "approval.publish.categoryVocabulary" | "approval.publish.categoryVocabularyEmpty" | "approval.publish.owner" | "approval.publish.ownerUnowned" | "approval.publish.ownerTaken" | "approval.publish.unit" | "approval.publish.unitTaken" | "approval.publish.path" | "approval.publish.pathTaken" | "approval.publish.registry" | "approval.publish.repo" | "approval.publish.branch" | "approval.publish.defaultBranch" | "approval.publish.artifacts" | "approval.publish.index" | "approval.publish.commits" | "approval.publish.twoCommits" | "approval.publish.reading" | "approval.publish.changelog" | "approval.publish.changelogPending" | "approval.publish.changelogMissing" | "approval.publish.targetAuto" | "approval.publish.targetTeam" | "approval.publish.targetPublic" | "approval.publish.targetTarball" | "approval.publish.targetGit" | "approval.publish.targetMarket" | "approval.publish.targetLocal" | "approval.market.source" | "approval.market.url" | "approval.market.action" | "approval.market.policy" | "approval.market.enable" | "approval.market.disable" | "approval.market.writable" | "approval.market.readOnly" | "approval.market.reading" | "markdown.copy" | "markdown.copied" | "markdown.footnotes" | "card.chatFailed" | "longTask.act.open" | "longTask.act.copy" | "longTask.handled" | "longTask.submit" | "longTask.login" | "longTask.steps" | "longTask.stop" | "longTask.stopConfirm" | "longTask.stopArmed" | "longTask.stopPending" | "longTask.attempt" | "longTask.list.entry" | "longTask.list.count" | "longTask.list.title" | "longTask.state.running" | "longTask.state.needsHuman" | "longTask.state.needsLogin" | "longTask.state.stopped" | "longTask.state.ok" | "longTask.state.failed" | "longTask.duration.sec" | "longTask.duration.minSec" | "longTask.duration.hourMin", string>;
|
|
1106
1108
|
};
|
|
1107
1109
|
/** 中文词表的键类型(从 `zh.ts` 转出):`en` 与模块词表都得覆盖同一批键。 */
|
|
1108
1110
|
export type { WorkbenchMessages };
|
package/dist/i18n/zh.d.ts
CHANGED
|
@@ -1014,8 +1014,10 @@ export declare const zh: {
|
|
|
1014
1014
|
readonly 'longTask.stopConfirm': "确认停止";
|
|
1015
1015
|
readonly 'longTask.stopArmed': "再次点击确认停止";
|
|
1016
1016
|
readonly 'longTask.stopPending': "已请求停止,等模块确认";
|
|
1017
|
-
readonly 'longTask.
|
|
1018
|
-
readonly 'longTask.list.
|
|
1017
|
+
readonly 'longTask.attempt': "第 {attempt} 次";
|
|
1018
|
+
readonly 'longTask.list.entry': "工作台任务 {n}";
|
|
1019
|
+
readonly 'longTask.list.count': "{n} 个";
|
|
1020
|
+
readonly 'longTask.list.title': "工作台任务";
|
|
1019
1021
|
readonly 'longTask.state.running': "运行中";
|
|
1020
1022
|
readonly 'longTask.state.needsHuman': "等你处理";
|
|
1021
1023
|
readonly 'longTask.state.needsLogin': "需要登录";
|
package/dist/i18n/zh.js
CHANGED
|
@@ -1006,8 +1006,10 @@ export const zh = {
|
|
|
1006
1006
|
'longTask.stopConfirm': '确认停止',
|
|
1007
1007
|
'longTask.stopArmed': '再次点击确认停止',
|
|
1008
1008
|
'longTask.stopPending': '已请求停止,等模块确认',
|
|
1009
|
-
'longTask.
|
|
1010
|
-
'longTask.list.
|
|
1009
|
+
'longTask.attempt': '第 {attempt} 次',
|
|
1010
|
+
'longTask.list.entry': '工作台任务 {n}',
|
|
1011
|
+
'longTask.list.count': '{n} 个',
|
|
1012
|
+
'longTask.list.title': '工作台任务',
|
|
1011
1013
|
'longTask.state.running': '运行中',
|
|
1012
1014
|
'longTask.state.needsHuman': '等你处理',
|
|
1013
1015
|
'longTask.state.needsLogin': '需要登录',
|
package/package.json
CHANGED
|
@@ -6,11 +6,9 @@
|
|
|
6
6
|
gap: var(--wb-len-2);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.wb-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
gap: var(--wb-len-6);
|
|
13
|
-
margin: 0;
|
|
9
|
+
.wb-longTaskDense {
|
|
10
|
+
padding-top: 0;
|
|
11
|
+
border-top: 0;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
.wb-longTaskLink {
|
|
@@ -46,6 +44,15 @@
|
|
|
46
44
|
overflow: auto;
|
|
47
45
|
}
|
|
48
46
|
|
|
47
|
+
.wb-longTaskHeadEnd {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
flex: none;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: var(--wb-len-8);
|
|
52
|
+
min-width: 0;
|
|
53
|
+
margin-left: auto;
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
.wb-longTaskStop {
|
|
50
57
|
display: inline-flex;
|
|
51
58
|
flex: none;
|
|
@@ -55,7 +62,6 @@
|
|
|
55
62
|
width: var(--wb-len-20);
|
|
56
63
|
height: var(--wb-len-20);
|
|
57
64
|
padding: 0;
|
|
58
|
-
margin-left: auto;
|
|
59
65
|
border: 0.5px solid var(--dsw-alias-border-l2);
|
|
60
66
|
border-radius: var(--dsw-radius-sm);
|
|
61
67
|
background: var(--dsw-specific-menu);
|
|
@@ -182,6 +188,7 @@
|
|
|
182
188
|
|
|
183
189
|
.wb-longTaskMeta {
|
|
184
190
|
margin: 0;
|
|
191
|
+
min-width: 0;
|
|
185
192
|
font-size: var(--dsw-font-xxxs-11-font-size);
|
|
186
193
|
line-height: var(--wb-line-16);
|
|
187
194
|
color: var(--dsw-alias-label-tertiary);
|
|
@@ -230,4 +237,15 @@
|
|
|
230
237
|
|
|
231
238
|
.wb-longTaskStepLink {
|
|
232
239
|
flex: none;
|
|
240
|
+
font-size: inherit;
|
|
241
|
+
line-height: inherit;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.wb-longTaskStepDetail {
|
|
245
|
+
padding-left: calc(var(--wb-len-8) + var(--wb-len-6));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.wb-longTaskStepAttempt {
|
|
249
|
+
flex: none;
|
|
250
|
+
color: var(--dsw-alias-label-tertiary);
|
|
233
251
|
}
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
CodeBlock,
|
|
18
18
|
DisclosureRow,
|
|
19
19
|
IconCodeOutlineRegular,
|
|
20
|
-
IconFlatListOutlineRegular,
|
|
21
20
|
IconStopFillRegular,
|
|
22
21
|
StateDot,
|
|
23
22
|
} from '@deepseek-ai/dsh-client-ui-primitives';
|
|
@@ -96,6 +95,8 @@ export interface LongTaskRowProps {
|
|
|
96
95
|
readonly meta?: string | undefined;
|
|
97
96
|
readonly dot?: 'done' | 'ongoing' | 'error' | 'idle' | 'warning' | undefined;
|
|
98
97
|
readonly dotLabel?: string | undefined;
|
|
98
|
+
readonly attemptLabel?: ((attempt: number) => string) | undefined;
|
|
99
|
+
readonly dense?: boolean | undefined;
|
|
99
100
|
readonly problem?: string | undefined;
|
|
100
101
|
readonly links?: readonly LongTaskRowLink[] | undefined;
|
|
101
102
|
readonly steps?: readonly string[] | undefined;
|
|
@@ -130,19 +131,47 @@ const STEP_DOT: Readonly<
|
|
|
130
131
|
|
|
131
132
|
const HTTP_PATTERN = /^https?:\/\//i;
|
|
132
133
|
|
|
133
|
-
function StepRow({
|
|
134
|
+
function StepRow({
|
|
135
|
+
row,
|
|
136
|
+
live,
|
|
137
|
+
last,
|
|
138
|
+
attemptLabel,
|
|
139
|
+
}: {
|
|
140
|
+
readonly row: LongTaskStepRow;
|
|
141
|
+
readonly live: boolean;
|
|
142
|
+
readonly last: boolean;
|
|
143
|
+
readonly attemptLabel?: ((attempt: number) => string) | undefined;
|
|
144
|
+
}) {
|
|
134
145
|
const links = (row.links ?? [])
|
|
135
146
|
.filter((link) => HTTP_PATTERN.test(link.href))
|
|
136
147
|
.slice(0, LONG_TASK_LINK_MAX);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
148
|
+
const state = row.kind === 'start' ? (live && last ? 'ongoing' : 'idle') : STEP_DOT[row.kind];
|
|
149
|
+
const attempt =
|
|
150
|
+
row.attempt !== undefined && row.attempt > 1 && attemptLabel !== undefined
|
|
151
|
+
? attemptLabel(row.attempt)
|
|
152
|
+
: undefined;
|
|
153
|
+
const content = (
|
|
154
|
+
<Fragment>
|
|
140
155
|
<span className="wb-longTaskStepText">{row.text}</span>
|
|
141
156
|
{links.map((link) => (
|
|
142
157
|
<Link className="wb-longTaskStepLink" href={link.href} key={`${link.href}@${link.text}`}>
|
|
143
158
|
{link.text}
|
|
144
159
|
</Link>
|
|
145
160
|
))}
|
|
161
|
+
{attempt === undefined ? null : <span className="wb-longTaskStepAttempt">{attempt}</span>}
|
|
162
|
+
</Fragment>
|
|
163
|
+
);
|
|
164
|
+
if (row.kind === 'info') {
|
|
165
|
+
return (
|
|
166
|
+
<li className="wb-longTaskStepRow wb-longTaskStepDetail" data-kind="info">
|
|
167
|
+
{content}
|
|
168
|
+
</li>
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
return (
|
|
172
|
+
<li className="wb-longTaskStepRow" data-kind={row.kind}>
|
|
173
|
+
<StateDot state={state} size={8} />
|
|
174
|
+
{content}
|
|
146
175
|
</li>
|
|
147
176
|
);
|
|
148
177
|
}
|
|
@@ -332,59 +361,74 @@ export function LongTaskRow(props: LongTaskRowProps) {
|
|
|
332
361
|
if (failed) setStepsOpen(true);
|
|
333
362
|
}, [failed]);
|
|
334
363
|
|
|
364
|
+
const expandable = props.stepsTitle !== undefined && (history.length > 0 || steps.length > 0);
|
|
365
|
+
const stepShown = step !== '' && !props.headline.includes(step);
|
|
366
|
+
const dotNode =
|
|
367
|
+
props.dotLabel === undefined ? (
|
|
368
|
+
<StateDot state={dot} size={10} />
|
|
369
|
+
) : (
|
|
370
|
+
<span role="img" aria-label={props.dotLabel}>
|
|
371
|
+
<StateDot state={dot} size={10} />
|
|
372
|
+
</span>
|
|
373
|
+
);
|
|
374
|
+
|
|
335
375
|
return (
|
|
336
|
-
<div className=
|
|
337
|
-
<
|
|
338
|
-
{
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
376
|
+
<div className={props.dense === true ? 'wb-longTask wb-longTaskDense' : 'wb-longTask'}>
|
|
377
|
+
<DisclosureRow
|
|
378
|
+
icon={dotNode}
|
|
379
|
+
title={props.headline}
|
|
380
|
+
open={expandable && stepsOpen}
|
|
381
|
+
expandable={expandable}
|
|
382
|
+
expandOnRowClick
|
|
383
|
+
previewChevron
|
|
384
|
+
titleClassName="wb-longTaskHeadline"
|
|
385
|
+
onToggle={() => setStepsOpen((value) => !value)}
|
|
386
|
+
headerAccessory={
|
|
387
|
+
<span className="wb-longTaskHeadEnd">
|
|
388
|
+
{(props.links ?? []).map((link) => (
|
|
389
|
+
<RowLink href={link.href} key={`${link.text}@${link.href}`} text={link.text} />
|
|
390
|
+
))}
|
|
391
|
+
{props.login === undefined ? null : (
|
|
392
|
+
<Button type="button" size="sm" variant="outline" onClick={props.login.onOpen}>
|
|
393
|
+
{props.login.label}
|
|
394
|
+
</Button>
|
|
395
|
+
)}
|
|
396
|
+
{meta === '' ? null : <span className="wb-longTaskMeta">{meta}</span>}
|
|
397
|
+
{stop === undefined ? null : (
|
|
398
|
+
<StopControl stop={stop} onFired={() => setStopFired(true)} />
|
|
399
|
+
)}
|
|
343
400
|
</span>
|
|
401
|
+
}
|
|
402
|
+
>
|
|
403
|
+
{stepShown ? <p className="wb-longTaskStep">{step}</p> : null}
|
|
404
|
+
{history.length === 0 ? (
|
|
405
|
+
<CodeBlock
|
|
406
|
+
code={steps.join('\n')}
|
|
407
|
+
className="wb-longTaskDump"
|
|
408
|
+
showHeader={props.copyLabel !== undefined}
|
|
409
|
+
copyLabel={props.copyLabel ?? ''}
|
|
410
|
+
copiedLabel={props.copiedLabel ?? ''}
|
|
411
|
+
/>
|
|
412
|
+
) : (
|
|
413
|
+
<ul className="wb-longTaskSteps">
|
|
414
|
+
{history.map((row, index) => (
|
|
415
|
+
<StepRow
|
|
416
|
+
key={`${String(index)}:${row.text}`}
|
|
417
|
+
row={row}
|
|
418
|
+
live={live}
|
|
419
|
+
last={index === history.length - 1}
|
|
420
|
+
{...(props.attemptLabel === undefined ? {} : { attemptLabel: props.attemptLabel })}
|
|
421
|
+
/>
|
|
422
|
+
))}
|
|
423
|
+
</ul>
|
|
344
424
|
)}
|
|
345
|
-
|
|
346
|
-
{(props.links ?? []).map((link) => (
|
|
347
|
-
<RowLink href={link.href} key={`${link.text}@${link.href}`} text={link.text} />
|
|
348
|
-
))}
|
|
349
|
-
{props.login === undefined ? null : (
|
|
350
|
-
<Button type="button" size="sm" variant="outline" onClick={props.login.onOpen}>
|
|
351
|
-
{props.login.label}
|
|
352
|
-
</Button>
|
|
353
|
-
)}
|
|
354
|
-
{stop === undefined ? null : <StopControl stop={stop} onFired={() => setStopFired(true)} />}
|
|
355
|
-
</p>
|
|
356
|
-
{step === '' ? null : <p className="wb-longTaskStep">{step}</p>}
|
|
357
|
-
{meta === '' ? null : <p className="wb-longTaskMeta">{meta}</p>}
|
|
425
|
+
</DisclosureRow>
|
|
358
426
|
{stopPending === '' ? null : <p className="wb-longTaskStopPending">{stopPending}</p>}
|
|
359
427
|
{props.intervention === undefined ? null : (
|
|
360
428
|
<InterventionNeed intervention={props.intervention} />
|
|
361
429
|
)}
|
|
362
430
|
{problem === '' ? null : <p className="wb-longTaskProblem">{problem}</p>}
|
|
363
431
|
{stopWhy === '' ? null : <p className="wb-longTaskStopWhy">{stopWhy}</p>}
|
|
364
|
-
{props.stepsTitle === undefined || (history.length === 0 && steps.length === 0) ? null : (
|
|
365
|
-
<DumpBlock
|
|
366
|
-
icon={<IconFlatListOutlineRegular size={14} />}
|
|
367
|
-
title={props.stepsTitle}
|
|
368
|
-
open={stepsOpen}
|
|
369
|
-
onToggle={() => setStepsOpen(!stepsOpen)}
|
|
370
|
-
>
|
|
371
|
-
{history.length === 0 ? (
|
|
372
|
-
<CodeBlock
|
|
373
|
-
code={steps.join('\n')}
|
|
374
|
-
className="wb-longTaskDump"
|
|
375
|
-
showHeader={props.copyLabel !== undefined}
|
|
376
|
-
copyLabel={props.copyLabel ?? ''}
|
|
377
|
-
copiedLabel={props.copiedLabel ?? ''}
|
|
378
|
-
/>
|
|
379
|
-
) : (
|
|
380
|
-
<ul className="wb-longTaskSteps">
|
|
381
|
-
{history.map((row, index) => (
|
|
382
|
-
<StepRow key={`${String(index)}:${row.text}`} row={row} />
|
|
383
|
-
))}
|
|
384
|
-
</ul>
|
|
385
|
-
)}
|
|
386
|
-
</DumpBlock>
|
|
387
|
-
)}
|
|
388
432
|
{raw === '' || props.rawTitle === undefined ? null : (
|
|
389
433
|
<DumpBlock
|
|
390
434
|
icon={<IconCodeOutlineRegular size={14} />}
|
|
@@ -8,23 +8,23 @@ const ROW = read('LongTaskRow.tsx');
|
|
|
8
8
|
const CSS = read('LongTaskRow.css');
|
|
9
9
|
|
|
10
10
|
describe('两按停止钮:接线(这仓的组件测试是 node 环境,读源码断言)', () => {
|
|
11
|
-
it('★★ 不给 stop ⇒
|
|
12
|
-
const gate = ROW.indexOf('{stop === undefined ? null : <StopControl');
|
|
13
|
-
|
|
11
|
+
it('★★ 不给 stop ⇒ 那颗钮整个不出现(停止钮只有一处入口)', () => {
|
|
14
12
|
expect(ROW).toContain('const stop = props.stop;');
|
|
15
|
-
expect(
|
|
16
|
-
expect(ROW
|
|
13
|
+
expect(ROW).toContain('stop === undefined ? null : (');
|
|
14
|
+
expect(ROW).toContain('<StopControl');
|
|
15
|
+
expect(ROW.match(/<StopControl/g)).toHaveLength(1);
|
|
17
16
|
});
|
|
18
17
|
|
|
19
|
-
it('★★
|
|
20
|
-
const
|
|
21
|
-
const gate = ROW.indexOf('
|
|
22
|
-
const close = ROW.indexOf('</
|
|
18
|
+
it('★★ 右组走 headerAccessory、最右边那颗(右组 margin-left: auto)', () => {
|
|
19
|
+
const end = ROW.indexOf('className="wb-longTaskHeadEnd"');
|
|
20
|
+
const gate = ROW.indexOf('stop === undefined ? null : (');
|
|
21
|
+
const close = ROW.indexOf('</DisclosureRow>', end);
|
|
23
22
|
|
|
24
|
-
expect(
|
|
25
|
-
expect(gate).toBeGreaterThan(
|
|
23
|
+
expect(end).toBeGreaterThan(0);
|
|
24
|
+
expect(gate).toBeGreaterThan(end);
|
|
26
25
|
expect(close).toBeGreaterThan(gate);
|
|
27
26
|
expect(CSS).toContain('margin-left: auto');
|
|
27
|
+
expect(CSS).toContain('.wb-longTaskHeadEnd {');
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
it('★★ 两按只走 longTaskStopPress(longTaskStopStage({ armed, busy })):arm 上膛 / fire 落膛并 onStop / ignore 不动', () => {
|
|
@@ -74,7 +74,7 @@ describe('两按停止钮:接线(这仓的组件测试是 node 环境,读
|
|
|
74
74
|
it('★★ 没有 stop 的行一个像素都不变:既要的规则一个字没动,新规则也只在带钮的行上起作用', () => {
|
|
75
75
|
expect(CSS).toContain('.wb-longTaskHeadline {\n margin: 0;');
|
|
76
76
|
expect(CSS).toContain('.wb-longTaskLink {\n flex: none;\n}');
|
|
77
|
-
expect(CSS).toContain('.wb-longTaskHead {');
|
|
77
|
+
expect(CSS).not.toContain('.wb-longTaskHead {');
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
|
|
@@ -112,6 +112,45 @@ describe('两按停止钮:样式跟 dsh 那颗钮同款(组件自带,同
|
|
|
112
112
|
});
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
+
describe('步骤行:跑完就不再有 loading 环', () => {
|
|
116
|
+
it('★★ 只有「还活着且是最后一行」的 start 才画 ongoing,其余 start 都是 idle 灰点', () => {
|
|
117
|
+
expect(ROW).toContain(
|
|
118
|
+
"const state = row.kind === 'start' ? (live && last ? 'ongoing' : 'idle') : STEP_DOT[row.kind];",
|
|
119
|
+
);
|
|
120
|
+
expect(ROW).toContain('live={live}');
|
|
121
|
+
expect(ROW).toContain('last={index === history.length - 1}');
|
|
122
|
+
expect(ROW).toContain('<StateDot state={state} size={8} />');
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
describe('细节行与轮询次数:语义分层,链接字号跟正文一致', () => {
|
|
127
|
+
it('★★ info 走细节:无点、缩进;其余 kind 才有点', () => {
|
|
128
|
+
expect(ROW).toContain('className="wb-longTaskStepRow wb-longTaskStepDetail"');
|
|
129
|
+
expect(ROW).toContain("if (row.kind === 'info') {");
|
|
130
|
+
expect(CSS).toContain('.wb-longTaskStepDetail {');
|
|
131
|
+
expect(CSS).toContain('padding-left: calc(var(--wb-len-8) + var(--wb-len-6));');
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
it('★★ attempt > 1 才画「第 N 次」,文案由调用点给', () => {
|
|
135
|
+
expect(ROW).toContain('row.attempt !== undefined && row.attempt > 1');
|
|
136
|
+
expect(ROW).toContain(
|
|
137
|
+
'{attempt === undefined ? null : <span className="wb-longTaskStepAttempt">{attempt}</span>}',
|
|
138
|
+
);
|
|
139
|
+
expect(ROW).toContain('readonly attemptLabel?: ((attempt: number) => string) | undefined;');
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
it('★★ 菜单里用 dense:去掉行上那根分隔线和 12px 抬头', () => {
|
|
143
|
+
expect(ROW).toContain("props.dense === true ? 'wb-longTask wb-longTaskDense' : 'wb-longTask'");
|
|
144
|
+
expect(CSS).toContain('.wb-longTaskDense {');
|
|
145
|
+
expect(CSS).toMatch(/\.wb-longTaskDense\s*\{[^}]*padding-top:\s*0/);
|
|
146
|
+
expect(CSS).toMatch(/\.wb-longTaskDense\s*\{[^}]*border-top:\s*0/);
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
it('★★ 步骤行里的链接字号 / 行高继承正文(11px / 16px)', () => {
|
|
150
|
+
expect(CSS).toContain('.wb-longTaskStepLink {\n flex: none;\n font-size: inherit;\n line-height: inherit;');
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
|
|
115
154
|
describe('人工干预节点:结构化回执表单(fields + submit)', () => {
|
|
116
155
|
it('★★ fields 与 submit 都在才画表单:input 只长在表单子组件里,没有 fields 的旧行不碰它', () => {
|
|
117
156
|
const gate = ROW.indexOf('{fields.length === 0 || submit === undefined ? null : (');
|
|
@@ -207,8 +246,9 @@ describe('行内可读:当前步骤 / 状态 · 耗时 / 结构化步骤 / 停
|
|
|
207
246
|
it('★★ 不给 step / meta 时一行都不多,给了才画', () => {
|
|
208
247
|
expect(ROW).toContain("const step = props.step ?? '';");
|
|
209
248
|
expect(ROW).toContain("const meta = props.meta ?? '';");
|
|
210
|
-
expect(ROW).toContain('
|
|
211
|
-
expect(ROW).toContain('{
|
|
249
|
+
expect(ROW).toContain('const stepShown = step !== \'\' && !props.headline.includes(step);');
|
|
250
|
+
expect(ROW).toContain('{stepShown ? <p className="wb-longTaskStep">{step}</p> : null}');
|
|
251
|
+
expect(ROW).toContain('{meta === \'\' ? null : <span className="wb-longTaskMeta">{meta}</span>}');
|
|
212
252
|
});
|
|
213
253
|
|
|
214
254
|
it('★★ 点可以抬档(人待 warning),读屏有词', () => {
|
|
@@ -225,14 +265,26 @@ describe('行内可读:当前步骤 / 状态 · 耗时 / 结构化步骤 / 停
|
|
|
225
265
|
});
|
|
226
266
|
|
|
227
267
|
it('★★ 没有 history 回退旧 CodeBlock:旧模块一个像素不变', () => {
|
|
228
|
-
expect(ROW).toContain('
|
|
268
|
+
expect(ROW).toContain('history.length === 0 ? (');
|
|
229
269
|
expect(ROW).toContain('code={steps.join(');
|
|
230
270
|
});
|
|
231
271
|
|
|
232
272
|
it('★★ 步骤块的展开不再绑死失败:给 stepsTitle 且有内容就画,失败默认开', () => {
|
|
233
273
|
expect(ROW).toContain("useState(props.status === 'failed')");
|
|
234
274
|
expect(ROW).toContain('if (failed) setStepsOpen(true);');
|
|
235
|
-
expect(ROW).toContain('props.stepsTitle
|
|
275
|
+
expect(ROW).toContain('const expandable = props.stepsTitle !== undefined && (history.length > 0 || steps.length > 0);');
|
|
276
|
+
expect(ROW).toContain('open={expandable && stepsOpen}');
|
|
277
|
+
expect(ROW).toContain('expandable={expandable}');
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
it('★★ 标题行就是 DisclosureRow 的头:hover 出箭头、整行可点、点链接 / 按钮不切换', () => {
|
|
281
|
+
expect(ROW).toContain('<DisclosureRow');
|
|
282
|
+
expect(ROW).toContain('expandOnRowClick');
|
|
283
|
+
expect(ROW).toContain('previewChevron');
|
|
284
|
+
expect(ROW).toContain('titleClassName="wb-longTaskHeadline"');
|
|
285
|
+
expect(ROW).toContain('headerAccessory={');
|
|
286
|
+
expect(ROW).toContain('onToggle={() => setStepsOpen((value) => !value)}');
|
|
287
|
+
expect(CSS).not.toContain('.wb-longTaskHead {');
|
|
236
288
|
});
|
|
237
289
|
|
|
238
290
|
it('★★ 停止请求之后、模块确认之前,行上说一句;模块确认了就收', () => {
|
|
@@ -62,6 +62,8 @@ export interface LongTaskIntervention {
|
|
|
62
62
|
export interface LongTaskStep {
|
|
63
63
|
readonly kind: 'start' | 'succeed' | 'fail' | 'info' | 'warn';
|
|
64
64
|
readonly text: string;
|
|
65
|
+
readonly stepId?: string | undefined;
|
|
66
|
+
readonly attempt?: number | undefined;
|
|
65
67
|
readonly links?: readonly LongTaskLink[] | undefined;
|
|
66
68
|
readonly intervention?: LongTaskIntervention | undefined;
|
|
67
69
|
readonly loginUrl?: string | undefined;
|
|
@@ -74,6 +76,8 @@ export interface LongTaskStep {
|
|
|
74
76
|
export interface LongTaskStepRow {
|
|
75
77
|
readonly kind: LongTaskStep['kind'];
|
|
76
78
|
readonly text: string;
|
|
79
|
+
readonly stepId?: string | undefined;
|
|
80
|
+
readonly attempt?: number | undefined;
|
|
77
81
|
readonly links?: readonly LongTaskLink[] | undefined;
|
|
78
82
|
}
|
|
79
83
|
|
|
@@ -13,25 +13,34 @@ const eventOf = (status: FlowStepEvent['status'], extra: Partial<FlowStepEvent>
|
|
|
13
13
|
|
|
14
14
|
describe('longTaskStepOf:流程事件 → 长任务步骤的默认映射', () => {
|
|
15
15
|
it('running 记成 start,文字用 title', () => {
|
|
16
|
-
expect(longTaskStepOf(eventOf('running'))).toEqual({
|
|
16
|
+
expect(longTaskStepOf(eventOf('running'))).toEqual({
|
|
17
|
+
kind: 'start',
|
|
18
|
+
text: '读目录',
|
|
19
|
+
stepId: 'read',
|
|
20
|
+
});
|
|
17
21
|
});
|
|
18
22
|
|
|
19
23
|
it('ok 记成 succeed', () => {
|
|
20
|
-
expect(longTaskStepOf(eventOf('ok'))).toEqual({
|
|
24
|
+
expect(longTaskStepOf(eventOf('ok'))).toEqual({
|
|
25
|
+
kind: 'succeed',
|
|
26
|
+
text: '读目录',
|
|
27
|
+
stepId: 'read',
|
|
28
|
+
});
|
|
21
29
|
});
|
|
22
30
|
|
|
23
31
|
it('skipped 记成 info', () => {
|
|
24
|
-
expect(longTaskStepOf(eventOf('skipped'))).toEqual({ kind: 'info', text: '读目录' });
|
|
32
|
+
expect(longTaskStepOf(eventOf('skipped'))).toEqual({ kind: 'info', text: '读目录', stepId: 'read' });
|
|
25
33
|
});
|
|
26
34
|
|
|
27
35
|
it('failed 记成 fail', () => {
|
|
28
|
-
expect(longTaskStepOf(eventOf('failed'))).toEqual({ kind: 'fail', text: '读目录' });
|
|
36
|
+
expect(longTaskStepOf(eventOf('failed'))).toEqual({ kind: 'fail', text: '读目录', stepId: 'read' });
|
|
29
37
|
});
|
|
30
38
|
|
|
31
39
|
it('needs-login 带 loginUrl', () => {
|
|
32
40
|
expect(longTaskStepOf(eventOf('needs-login', { loginUrl: 'https://example.com/login' }))).toEqual({
|
|
33
41
|
kind: 'info',
|
|
34
42
|
text: '读目录',
|
|
43
|
+
stepId: 'read',
|
|
35
44
|
loginUrl: 'https://example.com/login',
|
|
36
45
|
});
|
|
37
46
|
});
|
|
@@ -40,6 +49,7 @@ describe('longTaskStepOf:流程事件 → 长任务步骤的默认映射', ()
|
|
|
40
49
|
expect(longTaskStepOf(eventOf('needs-login', { loginUrl: '' }))).toEqual({
|
|
41
50
|
kind: 'info',
|
|
42
51
|
text: '读目录',
|
|
52
|
+
stepId: 'read',
|
|
43
53
|
});
|
|
44
54
|
});
|
|
45
55
|
|
|
@@ -51,13 +61,14 @@ describe('longTaskStepOf:流程事件 → 长任务步骤的默认映射', ()
|
|
|
51
61
|
expect(longTaskStepOf(eventOf('needs-human', { intervention }))).toEqual({
|
|
52
62
|
kind: 'info',
|
|
53
63
|
text: '要登录腾讯云',
|
|
64
|
+
stepId: 'read',
|
|
54
65
|
intervention,
|
|
55
66
|
});
|
|
56
67
|
});
|
|
57
68
|
|
|
58
69
|
it('message 盖过 title;没有 loginUrl 就不带那个键', () => {
|
|
59
70
|
const step = longTaskStepOf(eventOf('running', { message: '正在读' }));
|
|
60
|
-
expect(step).toEqual({ kind: 'start', text: '正在读' });
|
|
71
|
+
expect(step).toEqual({ kind: 'start', text: '正在读', stepId: 'read' });
|
|
61
72
|
expect('loginUrl' in step).toBe(false);
|
|
62
73
|
});
|
|
63
74
|
|
|
@@ -66,18 +77,31 @@ describe('longTaskStepOf:流程事件 → 长任务步骤的默认映射', ()
|
|
|
66
77
|
expect(longTaskStepOf(eventOf('running', { links }))).toEqual({
|
|
67
78
|
kind: 'start',
|
|
68
79
|
text: '读目录',
|
|
80
|
+
stepId: 'read',
|
|
69
81
|
links,
|
|
70
82
|
});
|
|
71
83
|
expect(longTaskStepOf(eventOf('ok', { links }))).toEqual({
|
|
72
84
|
kind: 'succeed',
|
|
73
85
|
text: '读目录',
|
|
86
|
+
stepId: 'read',
|
|
74
87
|
links,
|
|
75
88
|
});
|
|
76
89
|
expect(longTaskStepOf(eventOf('failed', { links }))).toEqual({
|
|
77
90
|
kind: 'fail',
|
|
78
91
|
text: '读目录',
|
|
92
|
+
stepId: 'read',
|
|
79
93
|
links,
|
|
80
94
|
});
|
|
81
95
|
expect('links' in longTaskStepOf(eventOf('running', { links: [] }))).toBe(false);
|
|
82
96
|
});
|
|
97
|
+
|
|
98
|
+
it('★★ 步骤身份与轮询次数原样带上(外壳按 stepId 归并);空 stepId 不落键', () => {
|
|
99
|
+
expect(longTaskStepOf(eventOf('running', { attempt: 2 }))).toEqual({
|
|
100
|
+
kind: 'start',
|
|
101
|
+
text: '读目录',
|
|
102
|
+
stepId: 'read',
|
|
103
|
+
attempt: 2,
|
|
104
|
+
});
|
|
105
|
+
expect('stepId' in longTaskStepOf(eventOf('running', { stepId: '' }))).toBe(false);
|
|
106
|
+
});
|
|
83
107
|
});
|
package/src/host/flow/step.ts
CHANGED
|
@@ -5,22 +5,26 @@ import type { FlowStepEvent } from './types.js';
|
|
|
5
5
|
* 把流程的一步事件翻成长任务步骤流的默认一行。
|
|
6
6
|
* `running` → `start`、`ok` → `succeed`、`skipped` → `info`、`failed` → `fail`、
|
|
7
7
|
* `needs-login` → `info`(带 `loginUrl`)、`needs-human` → `info`(带 `intervention`);
|
|
8
|
-
* 文字取 `message ?? title`(人工干预节点取 `intervention.title
|
|
8
|
+
* 文字取 `message ?? title`(人工干预节点取 `intervention.title`);`stepId` / `attempt` 原样带上
|
|
9
|
+
* (外壳按 `stepId` 把同一步的进行中与结果收成一行),事件带 `links` 时每一行都跟着带。
|
|
9
10
|
* 要改文案或过滤步骤,就在模块里自己映射 —— 这只是默认值。
|
|
10
11
|
* @param event `flow.run({ onStep })` 收到的那条事件。
|
|
11
12
|
* @returns 能直接交给长任务 `run({ onStep })` 的一行。
|
|
12
13
|
*/
|
|
13
14
|
export function longTaskStepOf(event: FlowStepEvent): LongTaskStep {
|
|
14
15
|
const text = event.message ?? event.title;
|
|
15
|
-
const
|
|
16
|
-
event.
|
|
17
|
-
|
|
16
|
+
const base = {
|
|
17
|
+
...(event.stepId === '' ? {} : { stepId: event.stepId }),
|
|
18
|
+
...(event.attempt === undefined ? {} : { attempt: event.attempt }),
|
|
19
|
+
...(event.links === undefined || event.links.length === 0 ? {} : { links: event.links }),
|
|
20
|
+
};
|
|
21
|
+
if (event.status === 'failed') return { kind: 'fail', text, ...base };
|
|
18
22
|
if (event.status === 'needs-human') {
|
|
19
23
|
return {
|
|
20
24
|
kind: 'info',
|
|
21
25
|
text: event.intervention?.title ?? text,
|
|
22
26
|
...(event.intervention === undefined ? {} : { intervention: event.intervention }),
|
|
23
|
-
...
|
|
27
|
+
...base,
|
|
24
28
|
};
|
|
25
29
|
}
|
|
26
30
|
if (event.status === 'needs-login') {
|
|
@@ -30,10 +34,10 @@ export function longTaskStepOf(event: FlowStepEvent): LongTaskStep {
|
|
|
30
34
|
...(event.loginUrl === undefined || event.loginUrl === ''
|
|
31
35
|
? {}
|
|
32
36
|
: { loginUrl: event.loginUrl }),
|
|
33
|
-
...
|
|
37
|
+
...base,
|
|
34
38
|
};
|
|
35
39
|
}
|
|
36
|
-
if (event.status === 'ok') return { kind: 'succeed', text, ...
|
|
37
|
-
if (event.status === 'skipped') return { kind: 'info', text, ...
|
|
38
|
-
return { kind: 'start', text, ...
|
|
40
|
+
if (event.status === 'ok') return { kind: 'succeed', text, ...base };
|
|
41
|
+
if (event.status === 'skipped') return { kind: 'info', text, ...base };
|
|
42
|
+
return { kind: 'start', text, ...base };
|
|
39
43
|
}
|
|
@@ -859,3 +859,61 @@ describe('longTaskRowBase(外壳先铺这一层,view 只覆盖不遗漏)',
|
|
|
859
859
|
expect(row.steps).toEqual(['开始']);
|
|
860
860
|
});
|
|
861
861
|
});
|
|
862
|
+
|
|
863
|
+
describe('history 按 stepId 归并(同一步的进行中与结果只留一行)', () => {
|
|
864
|
+
it('★★ 同一 stepId 覆盖成一行:位置不动,kind / 文本 / attempt / links 取最新', async () => {
|
|
865
|
+
const h = harness();
|
|
866
|
+
const runs = createLongTaskRegistry(h.deps);
|
|
867
|
+
runs.start({ workspace: '/w/a', target: 'release' });
|
|
868
|
+
h.step({ kind: 'start', text: '检查合并状态...', stepId: 'merge', attempt: 1 });
|
|
869
|
+
h.step({ kind: 'start', text: '仍在检查', stepId: 'merge', attempt: 2 });
|
|
870
|
+
h.step({
|
|
871
|
+
kind: 'succeed',
|
|
872
|
+
text: '源分支已合并到目标分支',
|
|
873
|
+
stepId: 'merge',
|
|
874
|
+
attempt: 2,
|
|
875
|
+
links: [{ href: 'https://example.test/x', text: '打开' }],
|
|
876
|
+
});
|
|
877
|
+
await flush();
|
|
878
|
+
const [row] = runs.current('/w/a');
|
|
879
|
+
expect(row?.['history']).toEqual([
|
|
880
|
+
{
|
|
881
|
+
kind: 'succeed',
|
|
882
|
+
text: '源分支已合并到目标分支',
|
|
883
|
+
stepId: 'merge',
|
|
884
|
+
attempt: 2,
|
|
885
|
+
links: [{ href: 'https://example.test/x', text: '打开' }],
|
|
886
|
+
},
|
|
887
|
+
]);
|
|
888
|
+
expect(row?.['steps']).toEqual(['源分支已合并到目标分支']);
|
|
889
|
+
});
|
|
890
|
+
|
|
891
|
+
it('★★ 不带 stepId 的照旧逐条追加(旧模块一个字段都不多)', async () => {
|
|
892
|
+
const h = harness();
|
|
893
|
+
const runs = createLongTaskRegistry(h.deps);
|
|
894
|
+
runs.start({ workspace: '/w/a', target: 'release' });
|
|
895
|
+
h.step({ kind: 'start', text: '开始' });
|
|
896
|
+
h.step({ kind: 'succeed', text: '完成' });
|
|
897
|
+
await flush();
|
|
898
|
+
const [row] = runs.current('/w/a');
|
|
899
|
+
expect(row?.['history']).toEqual([
|
|
900
|
+
{ kind: 'start', text: '开始' },
|
|
901
|
+
{ kind: 'succeed', text: '完成' },
|
|
902
|
+
]);
|
|
903
|
+
});
|
|
904
|
+
|
|
905
|
+
it('★★ 不同 stepId 各起一行,顺序按第一次出现', async () => {
|
|
906
|
+
const h = harness();
|
|
907
|
+
const runs = createLongTaskRegistry(h.deps);
|
|
908
|
+
runs.start({ workspace: '/w/a', target: 'release' });
|
|
909
|
+
h.step({ kind: 'start', text: 'A 开始', stepId: 'a' });
|
|
910
|
+
h.step({ kind: 'start', text: 'B 开始', stepId: 'b' });
|
|
911
|
+
h.step({ kind: 'succeed', text: 'A 完成', stepId: 'a' });
|
|
912
|
+
await flush();
|
|
913
|
+
const [row] = runs.current('/w/a');
|
|
914
|
+
expect((row?.['history'] as readonly { text: string }[]).map((one) => one.text)).toEqual([
|
|
915
|
+
'A 完成',
|
|
916
|
+
'B 开始',
|
|
917
|
+
]);
|
|
918
|
+
});
|
|
919
|
+
});
|
|
@@ -16,6 +16,18 @@ function isLiveStatus(status: LongTaskStatus): boolean {
|
|
|
16
16
|
|
|
17
17
|
const RECENT_MS = 10 * 60 * 1000;
|
|
18
18
|
|
|
19
|
+
function mergeStepRow(
|
|
20
|
+
rows: readonly LongTaskStepRow[],
|
|
21
|
+
row: LongTaskStepRow,
|
|
22
|
+
): LongTaskStepRow[] {
|
|
23
|
+
if (row.stepId === undefined) return [...rows, row].slice(-LONG_TASK_HISTORY_MAX);
|
|
24
|
+
const at = rows.findIndex((one) => one.stepId === row.stepId);
|
|
25
|
+
if (at === -1) return [...rows, row].slice(-LONG_TASK_HISTORY_MAX);
|
|
26
|
+
const next = [...rows];
|
|
27
|
+
next[at] = row;
|
|
28
|
+
return next;
|
|
29
|
+
}
|
|
30
|
+
|
|
19
31
|
export interface LongTaskBase {
|
|
20
32
|
readonly id: string;
|
|
21
33
|
readonly workspace: string;
|
|
@@ -224,22 +236,28 @@ export function createLongTaskRegistry<S extends LongTaskBase>(deps: LongTaskDep
|
|
|
224
236
|
const onStep = (step: LongTaskStep): void => {
|
|
225
237
|
const current = live(id);
|
|
226
238
|
if (current === null) return;
|
|
227
|
-
const line = `${step.kind === 'fail' ? '✗ ' : ''}${step.text}`;
|
|
228
239
|
const repeated =
|
|
229
240
|
current.step === step.text &&
|
|
230
241
|
step.intervention !== undefined &&
|
|
231
242
|
current.intervention?.title === step.intervention.title;
|
|
232
|
-
const steps = repeated ? current.steps : [...current.steps, line].slice(-LONG_TASK_HISTORY_MAX);
|
|
233
243
|
const historyRow: LongTaskStepRow = {
|
|
234
244
|
kind: step.kind,
|
|
235
245
|
text: step.text,
|
|
236
|
-
...(
|
|
237
|
-
|
|
238
|
-
|
|
246
|
+
...pickDefined(
|
|
247
|
+
{
|
|
248
|
+
stepId: step.stepId,
|
|
249
|
+
attempt: step.attempt,
|
|
250
|
+
links: step.links?.slice(0, LONG_TASK_LINK_MAX),
|
|
251
|
+
},
|
|
252
|
+
['stepId', 'attempt', 'links'],
|
|
253
|
+
),
|
|
239
254
|
};
|
|
240
255
|
const history = repeated
|
|
241
256
|
? current.history ?? []
|
|
242
|
-
:
|
|
257
|
+
: mergeStepRow(current.history ?? [], historyRow);
|
|
258
|
+
const steps = history.map(
|
|
259
|
+
(row) => `${row.kind === 'fail' ? '✗ ' : ''}${row.text}`,
|
|
260
|
+
);
|
|
243
261
|
const extra = bound.step?.(step, current) ?? {};
|
|
244
262
|
if (step.intervention !== undefined) {
|
|
245
263
|
patch(
|
package/src/i18n/en.ts
CHANGED
|
@@ -1032,8 +1032,10 @@ export const en: Record<keyof WorkbenchMessages, string> = {
|
|
|
1032
1032
|
'longTask.stopConfirm': 'Confirm stop',
|
|
1033
1033
|
'longTask.stopArmed': 'Click again to stop',
|
|
1034
1034
|
'longTask.stopPending': 'Stop requested; waiting for the module',
|
|
1035
|
-
'longTask.
|
|
1036
|
-
'longTask.list.
|
|
1035
|
+
'longTask.attempt': 'Attempt {attempt}',
|
|
1036
|
+
'longTask.list.entry': 'Workbench tasks {n}',
|
|
1037
|
+
'longTask.list.count': '{n}',
|
|
1038
|
+
'longTask.list.title': 'Workbench tasks',
|
|
1037
1039
|
'longTask.state.running': 'Running',
|
|
1038
1040
|
'longTask.state.needsHuman': 'Waiting for you',
|
|
1039
1041
|
'longTask.state.needsLogin': 'Needs sign-in',
|
package/src/i18n/zh.ts
CHANGED
|
@@ -1026,8 +1026,10 @@ export const zh = {
|
|
|
1026
1026
|
'longTask.stopConfirm': '确认停止',
|
|
1027
1027
|
'longTask.stopArmed': '再次点击确认停止',
|
|
1028
1028
|
'longTask.stopPending': '已请求停止,等模块确认',
|
|
1029
|
-
'longTask.
|
|
1030
|
-
'longTask.list.
|
|
1029
|
+
'longTask.attempt': '第 {attempt} 次',
|
|
1030
|
+
'longTask.list.entry': '工作台任务 {n}',
|
|
1031
|
+
'longTask.list.count': '{n} 个',
|
|
1032
|
+
'longTask.list.title': '工作台任务',
|
|
1031
1033
|
'longTask.state.running': '运行中',
|
|
1032
1034
|
'longTask.state.needsHuman': '等你处理',
|
|
1033
1035
|
'longTask.state.needsLogin': '需要登录',
|