@dsh-workbench/shared 0.2.13 → 0.2.15
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/api/dsh.d.ts +1 -0
- package/dist/components/FormActions.css +13 -0
- package/dist/components/FormActions.d.ts +15 -0
- package/dist/components/FormActions.js +38 -0
- package/dist/components/FormRows.css +21 -5
- package/dist/components/SaveBar.d.ts +0 -1
- package/dist/components/SaveBar.js +13 -5
- package/dist/components/SelectField.css +20 -0
- package/dist/components/SelectField.d.ts +3 -1
- package/dist/components/SelectField.js +43 -25
- package/dist/components/SelectFieldNodes.d.ts +21 -0
- package/dist/components/SelectFieldNodes.js +17 -0
- package/dist/config/constants.d.ts +1 -0
- package/dist/config/constants.js +1 -0
- package/dist/host/tool-kit.d.ts +1 -0
- package/dist/host/tool-kit.js +4 -0
- package/dist/host.d.ts +1 -0
- package/dist/host.js +1 -0
- package/dist/i18n/en.js +17 -0
- package/dist/i18n/index.d.ts +18 -1
- package/dist/i18n/zh.d.ts +17 -0
- package/dist/i18n/zh.js +17 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/lib/diy-debug.d.ts +38 -0
- package/dist/lib/diy-debug.js +77 -0
- package/package.json +1 -1
- package/src/api/dsh.ts +6 -1
- package/src/components/FormActions.css +13 -0
- package/src/components/FormActions.test.tsx +157 -0
- package/src/components/FormActions.tsx +75 -0
- package/src/components/FormRows.css +21 -5
- package/src/components/FormRows.test.tsx +56 -0
- package/src/components/SaveBar.tsx +14 -18
- package/src/components/SelectField.css +20 -0
- package/src/components/SelectField.test.tsx +63 -0
- package/src/components/SelectField.tsx +56 -81
- package/src/components/SelectFieldNodes.tsx +77 -0
- package/src/config/constants.ts +2 -0
- package/src/host/tool-kit.ts +5 -0
- package/src/host.ts +1 -0
- package/src/i18n/en.ts +18 -0
- package/src/i18n/zh.ts +18 -0
- package/src/index.ts +2 -0
- package/src/lib/diy-debug.test.ts +103 -0
- package/src/lib/diy-debug.ts +122 -0
- package/src/components/SaveBar.css +0 -7
package/dist/api/dsh.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.wb-formActions {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: flex-end;
|
|
6
|
+
gap: var(--wb-len-8);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.wb-formActionDanger {
|
|
10
|
+
color: var(--dsw-alias-state-error-primary);
|
|
11
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary) 30%, transparent);
|
|
12
|
+
--dsw-alias-interactive-bg-hover: color-mix(in srgb, var(--dsw-alias-state-error-primary) 8%, transparent);
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from '../lib/react.js';
|
|
2
|
+
import './FormActions.css';
|
|
3
|
+
export type FormActionKind = 'default' | 'danger' | 'primary';
|
|
4
|
+
export interface FormAction {
|
|
5
|
+
readonly key: string;
|
|
6
|
+
readonly label: ReactNode;
|
|
7
|
+
readonly kind?: FormActionKind | undefined;
|
|
8
|
+
readonly onClick: () => void;
|
|
9
|
+
readonly disabled?: boolean | undefined;
|
|
10
|
+
readonly busy?: boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface FormActionsProps {
|
|
13
|
+
readonly actions: readonly FormAction[];
|
|
14
|
+
}
|
|
15
|
+
export declare function FormActions({ actions }: FormActionsProps): JSX.Element | null;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { h } from '../lib/react.js';
|
|
2
|
+
import { Button } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
3
|
+
import { Spinner } from './Spinner.js';
|
|
4
|
+
import './FormActions.css';
|
|
5
|
+
const RANK = { default: 0, danger: 1, primary: 2 };
|
|
6
|
+
function kindOf(action) {
|
|
7
|
+
return action.kind ?? 'default';
|
|
8
|
+
}
|
|
9
|
+
function ordered(actions) {
|
|
10
|
+
return actions
|
|
11
|
+
.map((action, index) => ({ action, index, rank: RANK[kindOf(action)] }))
|
|
12
|
+
.sort((left, right) => left.rank - right.rank || left.index - right.index)
|
|
13
|
+
.map((one) => one.action);
|
|
14
|
+
}
|
|
15
|
+
function reportExtraPrimaries(actions) {
|
|
16
|
+
const keys = actions.filter((one) => kindOf(one) === 'primary').map((one) => one.key);
|
|
17
|
+
if (keys.length < 2)
|
|
18
|
+
return;
|
|
19
|
+
console.error(`[dsh-workbench] FormActions 一个区里出现了 ${keys.length} 颗 primary(${keys.join('、')})—— ` +
|
|
20
|
+
'一个区只许一颗主操作(ADR-0054 §2 规则二):多余的这颗该改成 default');
|
|
21
|
+
}
|
|
22
|
+
function variantOf(kind) {
|
|
23
|
+
if (kind === 'primary')
|
|
24
|
+
return 'primary';
|
|
25
|
+
if (kind === 'danger')
|
|
26
|
+
return 'outline';
|
|
27
|
+
return 'ghost';
|
|
28
|
+
}
|
|
29
|
+
export function FormActions({ actions }) {
|
|
30
|
+
if (actions.length === 0)
|
|
31
|
+
return null;
|
|
32
|
+
reportExtraPrimaries(actions);
|
|
33
|
+
return (h("div", { className: "wb-formActions" }, ordered(actions).map((action) => {
|
|
34
|
+
const kind = kindOf(action);
|
|
35
|
+
const busy = action.busy === true;
|
|
36
|
+
return (h(Button, { key: action.key, type: "button", size: "sm", variant: variantOf(kind), className: kind === 'danger' ? 'wb-formActionDanger' : undefined, disabled: busy || action.disabled === true, icon: busy ? h(Spinner, { size: 12 }) : undefined, onClick: action.onClick }, action.label));
|
|
37
|
+
})));
|
|
38
|
+
}
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
.wb-formRows {
|
|
2
|
-
display:
|
|
3
|
-
|
|
4
|
-
gap: var(--wb-len-
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: minmax(72px, max-content) minmax(0, 1fr);
|
|
4
|
+
column-gap: var(--wb-len-8);
|
|
5
|
+
row-gap: var(--wb-len-12);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.wb-formRows > :not(.wb-formRow) {
|
|
9
|
+
grid-column: 1 / -1;
|
|
5
10
|
}
|
|
6
11
|
|
|
7
12
|
.wb-formRow {
|
|
8
13
|
display: grid;
|
|
9
|
-
grid-
|
|
14
|
+
grid-column: 1 / -1;
|
|
15
|
+
grid-template-columns: minmax(72px, max-content) minmax(0, 1fr);
|
|
10
16
|
align-items: center;
|
|
11
|
-
gap: var(--wb-len-8);
|
|
17
|
+
column-gap: var(--wb-len-8);
|
|
18
|
+
row-gap: var(--wb-len-8);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.wb-formRows > .wb-formRow {
|
|
22
|
+
grid-template-columns: subgrid;
|
|
12
23
|
}
|
|
13
24
|
|
|
14
25
|
.wb-formRow[data-layout='stacked'] {
|
|
@@ -22,6 +33,11 @@
|
|
|
22
33
|
font-size: var(--dsw-font-xs-13-font-size);
|
|
23
34
|
color: var(--dsw-alias-label-secondary);
|
|
24
35
|
overflow-wrap: anywhere;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.wb-formRow[data-layout='stacked'] .wb-formLabel {
|
|
40
|
+
white-space: normal;
|
|
25
41
|
}
|
|
26
42
|
|
|
27
43
|
.wb-formControl {
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import { Button } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
2
1
|
import { h } from '../lib/react.js';
|
|
3
|
-
import './
|
|
2
|
+
import { FormActions } from './FormActions.js';
|
|
4
3
|
export function SaveBar({ busy, disabled, labels, onCancel, onSave }) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const actions = [
|
|
5
|
+
{ key: 'cancel', label: labels.cancel, kind: 'default', onClick: onCancel, disabled: busy },
|
|
6
|
+
{
|
|
7
|
+
key: 'save',
|
|
8
|
+
label: busy ? labels.saving : labels.save,
|
|
9
|
+
kind: 'primary',
|
|
10
|
+
onClick: onSave,
|
|
11
|
+
disabled: busy || disabled === true,
|
|
12
|
+
busy,
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
return h(FormActions, { actions: actions });
|
|
8
16
|
}
|
|
@@ -61,6 +61,26 @@
|
|
|
61
61
|
box-shadow: none;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
.wb-selectIconOnly {
|
|
65
|
+
width: var(--wb-len-36);
|
|
66
|
+
height: var(--wb-len-36);
|
|
67
|
+
min-height: 0;
|
|
68
|
+
gap: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.wb-selectReveal {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.wb-selectIconOnly .wb-selectIcon {
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
64
84
|
.wb-selectAnchor {
|
|
65
85
|
display: block;
|
|
66
86
|
width: 100%;
|
|
@@ -42,6 +42,8 @@ export interface SelectFieldProps {
|
|
|
42
42
|
readonly onFooter?: (() => void) | undefined;
|
|
43
43
|
readonly selection?: 'check' | 'fill' | undefined;
|
|
44
44
|
readonly variant?: 'ghost' | 'boxed' | undefined;
|
|
45
|
+
readonly iconOnly?: boolean | undefined;
|
|
46
|
+
readonly revealId?: string | undefined;
|
|
45
47
|
readonly ariaLabel?: string | undefined;
|
|
46
48
|
readonly title?: string | undefined;
|
|
47
49
|
readonly id?: string | undefined;
|
|
@@ -54,5 +56,5 @@ export declare function defaultSelectFilter(option: SelectFieldOption, query: st
|
|
|
54
56
|
export declare function filterSelectOptions(options: readonly SelectFieldOption[], query: string, filter?: (option: SelectFieldOption, query: string) => boolean): readonly SelectFieldOption[];
|
|
55
57
|
export declare function selectCursorValue(shown: readonly SelectFieldOption[], cursor: number | null): string | null;
|
|
56
58
|
export declare function stepSelectCursor(shown: readonly SelectFieldOption[], cursor: number | null, step: 1 | -1): number | null;
|
|
57
|
-
export declare function selectEntries(shown: readonly SelectFieldOption[], emptyText: string | undefined): readonly MenuEntry[];
|
|
59
|
+
export declare function selectEntries(shown: readonly SelectFieldOption[], emptyText: string | undefined, revealId?: string | undefined): readonly MenuEntry[];
|
|
58
60
|
export declare function SelectField(props: SelectFieldProps): ReactNode;
|
|
@@ -1,35 +1,51 @@
|
|
|
1
1
|
import { h, useEffect, useMemo, useRef, useState } from '../lib/react.js';
|
|
2
|
-
import {
|
|
2
|
+
import { IconSearchOutlineRegular, Menu } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
3
|
+
import { selectLoadingNode, selectTriggerNode } from './SelectFieldNodes.js';
|
|
3
4
|
import { Field } from './Field.js';
|
|
4
5
|
import { TextField } from './TextField.js';
|
|
5
|
-
import { Spinner } from './Spinner.js';
|
|
6
6
|
import './SelectField.css';
|
|
7
7
|
const FOOTER_ID = '__wb-select-footer__';
|
|
8
8
|
const EMPTY_ID = '__wb-select-empty__';
|
|
9
9
|
function mergeClass(...parts) {
|
|
10
10
|
return parts.filter((one) => one !== undefined && one !== '').join(' ');
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function triggerClassOf(variantClass, iconOnly) {
|
|
13
|
+
return mergeClass('wb-selectTrigger', variantClass, iconOnly ? 'wb-selectIconOnly' : undefined);
|
|
14
|
+
}
|
|
15
|
+
function itemOf(option, revealId) {
|
|
16
|
+
const mark = option.value === revealId;
|
|
17
|
+
if (!mark) {
|
|
18
|
+
return {
|
|
19
|
+
id: option.value,
|
|
20
|
+
label: option.label,
|
|
21
|
+
...(option.icon === undefined ? {} : { icon: option.icon }),
|
|
22
|
+
...(option.disabled === true ? { disabled: true } : {}),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
const revealed = (node) => (h("span", { className: "wb-selectReveal", "data-wb-select-reveal": "" }, node));
|
|
13
26
|
return {
|
|
14
27
|
id: option.value,
|
|
15
|
-
label: option.label,
|
|
16
|
-
...(option.icon === undefined ? {} : { icon: option.icon }),
|
|
28
|
+
label: option.icon === undefined ? revealed(option.label) : option.label,
|
|
29
|
+
...(option.icon === undefined ? {} : { icon: revealed(option.icon) }),
|
|
17
30
|
...(option.disabled === true ? { disabled: true } : {}),
|
|
18
31
|
};
|
|
19
32
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
function revealNode() {
|
|
34
|
+
const found = document.querySelector('[data-wb-select-reveal]');
|
|
35
|
+
return found instanceof HTMLElement ? found : null;
|
|
36
|
+
}
|
|
37
|
+
function useRevealOnOpen(open, revealId) {
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (!open || revealId === undefined)
|
|
40
|
+
return;
|
|
41
|
+
revealNode()?.scrollIntoView({ block: 'nearest' });
|
|
42
|
+
}, [open, revealId]);
|
|
26
43
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
h("span", { className: "wb-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
h(Spinner, { size: 14 }))));
|
|
44
|
+
function selectValueNode(current, renderValue, placeholder) {
|
|
45
|
+
if (current === undefined) {
|
|
46
|
+
return h("span", { className: "wb-selectPlaceholder" }, placeholder ?? '—');
|
|
47
|
+
}
|
|
48
|
+
return renderValue === undefined ? current.label : renderValue(current);
|
|
33
49
|
}
|
|
34
50
|
function searchNode(args) {
|
|
35
51
|
return (h("span", { ref: args.boxRef, className: args.className },
|
|
@@ -80,7 +96,7 @@ export function stepSelectCursor(shown, cursor, step) {
|
|
|
80
96
|
return step === 1 ? 0 : shown.length - 1;
|
|
81
97
|
return (cursor + step + shown.length) % shown.length;
|
|
82
98
|
}
|
|
83
|
-
export function selectEntries(shown, emptyText) {
|
|
99
|
+
export function selectEntries(shown, emptyText, revealId) {
|
|
84
100
|
if (shown.length === 0) {
|
|
85
101
|
return emptyText === undefined ? [] : [{ type: 'label', id: EMPTY_ID, text: emptyText }];
|
|
86
102
|
}
|
|
@@ -91,7 +107,7 @@ export function selectEntries(shown, emptyText) {
|
|
|
91
107
|
out.push({ type: 'label', id: `__wb-select-group-${String(out.length)}`, text: option.group });
|
|
92
108
|
group = option.group;
|
|
93
109
|
}
|
|
94
|
-
out.push(itemOf(option));
|
|
110
|
+
out.push(itemOf(option, revealId));
|
|
95
111
|
}
|
|
96
112
|
return out;
|
|
97
113
|
}
|
|
@@ -155,18 +171,19 @@ function useSelectState(props) {
|
|
|
155
171
|
};
|
|
156
172
|
}
|
|
157
173
|
export function SelectField(props) {
|
|
158
|
-
const { value, options, onChange, label, hint, icon, renderValue, placeholder, search = true, searchLabel, searchPlaceholder, footer, onFooter, disabled = false, invalid = false, loading = false, loadingText, fallback, selection = 'fill', variant = 'boxed', ariaLabel, title, id, name, className, menuClassName, } = props;
|
|
174
|
+
const { value, options, onChange, label, hint, icon, renderValue, placeholder, search = true, searchLabel, searchPlaceholder, footer, onFooter, disabled = false, invalid = false, loading = false, loadingText, fallback, selection = 'fill', variant = 'boxed', iconOnly = false, revealId, ariaLabel, title, id, name, className, menuClassName, } = props;
|
|
159
175
|
const state = useSelectState(props);
|
|
160
176
|
const current = options.find((option) => option.value === value);
|
|
177
|
+
useRevealOnOpen(state.open, revealId);
|
|
161
178
|
const variantClass = variant === 'ghost' ? 'wb-selectGhost' : undefined;
|
|
162
|
-
const triggerClass =
|
|
179
|
+
const triggerClass = triggerClassOf(variantClass, iconOnly);
|
|
163
180
|
if (loading) {
|
|
164
|
-
return framed(label, hint, className,
|
|
181
|
+
return framed(label, hint, className, selectLoadingNode({ id, className: triggerClass, invalid, ariaLabel, loadingText }));
|
|
165
182
|
}
|
|
166
183
|
if (fallback !== undefined && options.length === 0) {
|
|
167
184
|
return framed(label, hint, className, h(TextField, { id: id, name: name, className: "wb-selectFallback", invalid: invalid, "aria-label": ariaLabel, value: fallback.value, onChange: (event) => fallback.onChange(event.currentTarget.value) }));
|
|
168
185
|
}
|
|
169
|
-
const trigger =
|
|
186
|
+
const trigger = selectTriggerNode({
|
|
170
187
|
id,
|
|
171
188
|
className: triggerClass,
|
|
172
189
|
disabled,
|
|
@@ -175,7 +192,8 @@ export function SelectField(props) {
|
|
|
175
192
|
ariaLabel,
|
|
176
193
|
title,
|
|
177
194
|
icon,
|
|
178
|
-
value: current
|
|
195
|
+
value: selectValueNode(current, renderValue, placeholder),
|
|
196
|
+
iconOnly,
|
|
179
197
|
onOpen: () => state.setOpen(true),
|
|
180
198
|
});
|
|
181
199
|
const anchor = state.open && search
|
|
@@ -215,7 +233,7 @@ export function SelectField(props) {
|
|
|
215
233
|
anchor,
|
|
216
234
|
selection,
|
|
217
235
|
selectedId: selectCursorValue(state.shown, state.cursor) ?? undefined,
|
|
218
|
-
items: selectEntries(state.shown, state.empty),
|
|
236
|
+
items: selectEntries(state.shown, state.empty, revealId),
|
|
219
237
|
footer: footer === undefined
|
|
220
238
|
? undefined
|
|
221
239
|
: [
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function selectTriggerNode(args: {
|
|
3
|
+
readonly id: string | undefined;
|
|
4
|
+
readonly className: string;
|
|
5
|
+
readonly disabled: boolean;
|
|
6
|
+
readonly invalid: boolean;
|
|
7
|
+
readonly open: boolean;
|
|
8
|
+
readonly ariaLabel: string | undefined;
|
|
9
|
+
readonly title: string | undefined;
|
|
10
|
+
readonly icon: ReactNode | undefined;
|
|
11
|
+
readonly value: ReactNode;
|
|
12
|
+
readonly iconOnly: boolean;
|
|
13
|
+
readonly onOpen: () => void;
|
|
14
|
+
}): ReactNode;
|
|
15
|
+
export declare function selectLoadingNode(args: {
|
|
16
|
+
readonly id: string | undefined;
|
|
17
|
+
readonly className: string;
|
|
18
|
+
readonly invalid: boolean;
|
|
19
|
+
readonly ariaLabel: string | undefined;
|
|
20
|
+
readonly loadingText: string | undefined;
|
|
21
|
+
}): ReactNode;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Fragment, h } from '../lib/react.js';
|
|
2
|
+
import { IconChevronDownOutlineRegular, TextShimmer, } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
3
|
+
import { Spinner } from './Spinner.js';
|
|
4
|
+
export function selectTriggerNode(args) {
|
|
5
|
+
return (h("button", { type: "button", id: args.id, className: args.className, disabled: args.disabled, "aria-haspopup": "listbox", "aria-expanded": args.open, "aria-invalid": args.invalid || undefined, "aria-label": args.ariaLabel, title: args.title, onClick: args.onOpen }, args.iconOnly ? (h("span", { className: "wb-selectIcon" }, args.icon)) : (h(Fragment, null,
|
|
6
|
+
args.icon === undefined ? null : h("span", { className: "wb-selectIcon" }, args.icon),
|
|
7
|
+
h("span", { className: "wb-selectValue" }, args.value),
|
|
8
|
+
h("span", { className: "wb-selectChevron" },
|
|
9
|
+
h(IconChevronDownOutlineRegular, { size: 14 }))))));
|
|
10
|
+
}
|
|
11
|
+
export function selectLoadingNode(args) {
|
|
12
|
+
return (h("button", { type: "button", id: args.id, className: `${args.className} wb-selectLoading`, disabled: true, "aria-busy": "true", "aria-invalid": args.invalid || undefined, "aria-label": args.ariaLabel, title: args.loadingText },
|
|
13
|
+
h("span", { className: "wb-selectValue" },
|
|
14
|
+
h(TextShimmer, { active: true }, args.loadingText ?? '…')),
|
|
15
|
+
h("span", { className: "wb-selectChevron" },
|
|
16
|
+
h(Spinner, { size: 14 }))));
|
|
17
|
+
}
|
|
@@ -12,6 +12,7 @@ export declare const CODING_ISSUES_SERVICE = "workbenchCodingIssues";
|
|
|
12
12
|
export declare const PANELS_SERVICE = "workbenchPanels";
|
|
13
13
|
export declare const UNITS_SERVICE = "workbenchUnits";
|
|
14
14
|
export declare const PANEL_STATE_SERVICE = "workbenchPanelState";
|
|
15
|
+
export declare const DIY_DEBUG_SERVICE = "workbenchDiyDebug";
|
|
15
16
|
export declare const PANEL_LIST_LIMIT = 50;
|
|
16
17
|
export declare const OPENCLI_TIMEOUT_MS = 120000;
|
|
17
18
|
export declare const OPENCLI_MAX_CONCURRENT = 4;
|
package/dist/config/constants.js
CHANGED
|
@@ -15,6 +15,7 @@ export const CODING_ISSUES_SERVICE = "workbenchCodingIssues";
|
|
|
15
15
|
export const PANELS_SERVICE = "workbenchPanels";
|
|
16
16
|
export const UNITS_SERVICE = "workbenchUnits";
|
|
17
17
|
export const PANEL_STATE_SERVICE = "workbenchPanelState";
|
|
18
|
+
export const DIY_DEBUG_SERVICE = "workbenchDiyDebug";
|
|
18
19
|
export const PANEL_LIST_LIMIT = 50;
|
|
19
20
|
export const OPENCLI_TIMEOUT_MS = 120_000;
|
|
20
21
|
export const OPENCLI_MAX_CONCURRENT = 4;
|
package/dist/host/tool-kit.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DshToolRunContext } from '../api/dsh.js';
|
|
2
2
|
export declare function sessionWorkspace(exec: DshToolRunContext | undefined): string | null;
|
|
3
|
+
export declare function sessionIdOf(exec: DshToolRunContext | undefined): string | null;
|
|
3
4
|
export declare function textOutput(text: string): Array<Record<string, unknown>>;
|
|
4
5
|
export declare function textRender(_args: unknown, value: unknown): Array<Record<string, unknown>>;
|
|
5
6
|
export declare const TEXT_OUTPUT: {
|
package/dist/host/tool-kit.js
CHANGED
|
@@ -3,6 +3,10 @@ export function sessionWorkspace(exec) {
|
|
|
3
3
|
const cwd = exec?.agent?.session?.header?.cwd;
|
|
4
4
|
return typeof cwd === 'string' && cwd.trim() !== '' ? cwd.trim() : null;
|
|
5
5
|
}
|
|
6
|
+
export function sessionIdOf(exec) {
|
|
7
|
+
const id = exec?.agent?.session?.id;
|
|
8
|
+
return typeof id === 'string' && id.trim() !== '' ? id.trim() : null;
|
|
9
|
+
}
|
|
6
10
|
export function textOutput(text) {
|
|
7
11
|
return [{ type: 'text', text }];
|
|
8
12
|
}
|
package/dist/host.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './api/long-task.js';
|
|
|
7
7
|
export * from './lib/text.js';
|
|
8
8
|
export * from './lib/ui.js';
|
|
9
9
|
export * from './lib/panel-state.js';
|
|
10
|
+
export * from './lib/diy-debug.js';
|
|
10
11
|
export * from './api/blocker-table.js';
|
|
11
12
|
export * from './host/browser-find.js';
|
|
12
13
|
export * from './host/browser-read.js';
|
package/dist/host.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './api/long-task.js';
|
|
|
7
7
|
export * from './lib/text.js';
|
|
8
8
|
export * from './lib/ui.js';
|
|
9
9
|
export * from './lib/panel-state.js';
|
|
10
|
+
export * from './lib/diy-debug.js';
|
|
10
11
|
export * from './api/blocker-table.js';
|
|
11
12
|
export * from './host/browser-find.js';
|
|
12
13
|
export * from './host/browser-read.js';
|
package/dist/i18n/en.js
CHANGED
|
@@ -45,6 +45,15 @@ export const en = {
|
|
|
45
45
|
'status.completed': 'Completed',
|
|
46
46
|
'status.subagentsRunning.one': '{n} subagent running',
|
|
47
47
|
'status.subagentsRunning.other': '{n} subagents running',
|
|
48
|
+
'project.attention.warning.one': '1 session waiting for you',
|
|
49
|
+
'project.attention.warning.other': '{n} sessions waiting for you',
|
|
50
|
+
'project.attention.running.one': '1 session running',
|
|
51
|
+
'project.attention.running.other': '{n} sessions running',
|
|
52
|
+
'project.attention.done.one': '1 session finished, unread',
|
|
53
|
+
'project.attention.done.other': '{n} sessions finished, unread',
|
|
54
|
+
'project.attention.state.warning': 'Approval',
|
|
55
|
+
'project.attention.state.running': 'Running',
|
|
56
|
+
'project.attention.state.done': 'New',
|
|
48
57
|
'hover.copied': 'Copied',
|
|
49
58
|
'time.now': 'just now',
|
|
50
59
|
'time.minutes': '{n} min ago',
|
|
@@ -397,4 +406,12 @@ export const en = {
|
|
|
397
406
|
'configSync.noSource': 'This machine has no other profile to sync from',
|
|
398
407
|
'configSync.emptyProviders': 'The workbench has no model provider yet — sync the llm- rows from some profile, or configure one under Models.',
|
|
399
408
|
'configSync.failed': 'The sync did not go through; try again.',
|
|
409
|
+
'debug.status': 'Debugging',
|
|
410
|
+
'debug.stalled': 'Debug stalled',
|
|
411
|
+
'debug.tip.active': 'Debugging {unit} on the workshop board ({since}) · click to go back · tell the agent to pause when done',
|
|
412
|
+
'debug.tip.stalled': 'The debug is stalled — go back to the 工作台DIY screen · click to return',
|
|
413
|
+
'debug.back': 'Back to the workshop screen',
|
|
414
|
+
'debug.strip.active': 'Debugging · {unit} · {since}',
|
|
415
|
+
'debug.strip.note': 'Tell the agent to pause when you are done',
|
|
416
|
+
'debug.stripStalled': 'Debug stalled — tell the agent to continue',
|
|
400
417
|
};
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -47,6 +47,15 @@ export declare const dictionaries: {
|
|
|
47
47
|
readonly 'status.completed': "已完成";
|
|
48
48
|
readonly 'status.subagentsRunning.one': "{n} 个子代理运行中";
|
|
49
49
|
readonly 'status.subagentsRunning.other': "{n} 个子代理运行中";
|
|
50
|
+
readonly 'project.attention.warning.one': "1 个会话在等你点头";
|
|
51
|
+
readonly 'project.attention.warning.other': "{n} 个会话在等你点头";
|
|
52
|
+
readonly 'project.attention.running.one': "1 个会话在跑";
|
|
53
|
+
readonly 'project.attention.running.other': "{n} 个会话在跑";
|
|
54
|
+
readonly 'project.attention.done.one': "1 个会话跑完没看";
|
|
55
|
+
readonly 'project.attention.done.other': "{n} 个会话跑完没看";
|
|
56
|
+
readonly 'project.attention.state.warning': "待审批";
|
|
57
|
+
readonly 'project.attention.state.running': "在跑";
|
|
58
|
+
readonly 'project.attention.state.done': "新消息";
|
|
50
59
|
readonly 'hover.copied': "已复制";
|
|
51
60
|
readonly 'time.now': "刚刚";
|
|
52
61
|
readonly 'time.minutes': "{n} 分钟前";
|
|
@@ -399,8 +408,16 @@ export declare const dictionaries: {
|
|
|
399
408
|
readonly 'configSync.noSource': "这台机器上只有工作台这一个 profile,没有可同步的来源";
|
|
400
409
|
readonly 'configSync.emptyProviders': "工作台还没有任何模型供应商 —— 去「配置同步」从某个 profile 把 llm- 那几行搬过来,或自己去「模型」里配。";
|
|
401
410
|
readonly 'configSync.failed': "同步没成功,再试一次。";
|
|
411
|
+
readonly 'debug.status': "调试中";
|
|
412
|
+
readonly 'debug.stalled': "调试搁置";
|
|
413
|
+
readonly 'debug.tip.active': "工坊那块板上正在调试 {unit}({since})· 点一下回到那一屏 · 要停就对 agent 说一句";
|
|
414
|
+
readonly 'debug.tip.stalled': "调试被搁置了 —— 要你回到工作台DIY 那一屏 · 点一下回去";
|
|
415
|
+
readonly 'debug.back': "回到工坊那一屏";
|
|
416
|
+
readonly 'debug.strip.active': "调试中 · {unit} · {since}";
|
|
417
|
+
readonly 'debug.strip.note': "要停就对 agent 说一句「暂停」";
|
|
418
|
+
readonly 'debug.stripStalled': "调试搁置 —— 对 agent 说一句「继续」";
|
|
402
419
|
};
|
|
403
|
-
en: Record<"time.now" | "time.ago" | "time.minutes" | "time.hours" | "time.days" | "blocker.retry" | "blocker.copy" | "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.fix.update" | "blocker.market.open" | "env.unit.failed" | "env.unit.failedHint" | "env.unit.missingPlugin" | "env.unit.hint" | "env.unit.missingCommands" | "env.unit.missingCommandsHint" | "env.unit.unchecked" | "env.unit.uncheckedHint" | "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.rename.row" | "project.rename.current" | "project.rename.title" | "project.rename.description" | "project.rename.field" | "project.rename.placeholder" | "project.rename.hint" | "project.rename.save" | "project.rename.saving" | "project.rename.cancel" | "project.rename.failed" | "session.new" | "session.new.label" | "session.empty" | "session.noProject" | "session.list.label" | "session.copy" | "session.pinned" | "session.actions" | "status.idle" | "status.running" | "status.waitingApproval" | "status.planReview" | "status.waitingAnswer" | "status.compact.approval" | "status.compact.planReview" | "status.compact.answer" | "status.completed" | "status.subagentsRunning.one" | "status.subagentsRunning.other" | "hover.copied" | "time.short.minutes" | "time.short.hours" | "time.short.days" | "time.short.months" | "time.short.years" | "panels.title" | "panels.groupBoardless" | "panels.groupPlugins" | "panels.market.defaultHint" | "panels.market.defaultLabel" | "panels.market.defaultLocked" | "panels.followAll" | "panels.followAllConfirmTitle" | "panels.followAllConfirmDetail" | "panels.followAllConfirmAck" | "panels.followAllConfirmYes" | "panels.followAllConfirmNo" | "panels.enabled" | "panels.disabled" | "panels.choose" | "panels.buildModule" | "panels.failed" | "panels.dragHint" | "panels.unknownStep" | "panels.labelWithHint" | "panels.dep.failed" | "panels.dep.missingPlugin" | "panels.dep.missingCommands" | "panels.dep.unchecked" | "panels.tab.modules" | "panels.tab.market" | "panels.browseMarket" | "panels.noneInstalled" | "panels.noneInstalledHint" | "panels.market.installed" | "panels.market.notActive" | "panels.market.notUsable" | "panels.market.broken" | "panels.market.hasNew" | "panels.market.missing" | "panels.market.unchecked" | "panels.market.checking" | "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.update" | "panels.market.swapSlow" | "panels.market.uninstall" | "panels.market.uninstallLabel" | "panels.market.installing" | "panels.market.updating" | "panels.market.uninstalling" | "panels.market.confirmUninstallTitle" | "panels.market.confirmUninstallDetail" | "panels.market.confirmUninstallAck" | "panels.market.confirmYes" | "panels.market.confirmNo" | "panels.market.failed" | "panels.market.needEnv" | "panels.market.needCommands" | "panels.market.localMark" | "panels.market.localHint" | "panels.market.noSource" | "panels.market.badSource" | "panels.market.empty" | "panels.market.sectionPlugins" | "panels.market.moduleOutdated" | "panels.market.moduleRefused" | "panels.market.moduleRefusedDetail" | "panels.market.moduleRestartHint" | "panels.market.pendingRestart" | "panels.market.workbenchName" | "panels.market.workbenchLocal" | "panels.market.pluginKeptInUse" | "panels.market.pluginKeptUnsure" | "panels.market.pluginKeptHeld" | "panels.market.pluginKeptUnnamed" | "panels.market.pluginBroken" | "panels.market.restartNeeded" | "panels.market.foot" | "panels.market.recheck" | "panels.market.checkUpdates" | "panels.market.checkedAt" | "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.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.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.failureTimeout" | "panels.market.add.failurePnpmMissing" | "panels.market.add.failureInstalled" | "panels.market.add.failureGeneric" | "panels.market.add.approveTitle" | "panels.market.add.approveCaution" | "panels.market.add.approveRun" | "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.add.approveBuilds" | "panels.market.add.approveHint" | "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.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.running" | "blocker.fix.failed" | "blocker.retry.running" | "panels.reading" | "panels.cardBroken" | "panels.cardRetry" | "panels.empty" | "panels.emptyHint" | "env.title" | "env.checking" | "env.installing" | "env.failed" | "env.elapsed" | "env.stepFailed.install" | "env.stepFailed.path" | "env.stepFailed.shell" | "env.bridge.ok" | "env.bridge.short" | "env.bridge.why" | "env.bridge.daemon" | "env.bridge.extension" | "env.bridge.extensionLink" | "env.bridge.profile" | "env.bridge.stale" | "env.bridge.unknown" | "env.fix.title" | "env.fix.why" | "env.fix.whyPath" | "env.fix.whyShell" | "env.fix.step" | "env.fix.stepPath" | "env.fix.stepShell" | "env.fix.permission" | "env.fix.network" | "env.fix.details" | "env.retry" | "env.copyCommand" | "env.copied" | "env.step.opencli" | "env.step.codingPlugin" | "env.step.bridge" | "env.step.warm" | "env.warm.done" | "env.warm.short" | "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" | "coding.notARepo.title" | "error.unknown" | "board.title" | "panel.conversation" | "panels.label" | "configSync.nav" | "configSync.lead" | "configSync.source" | "configSync.sourceBroken" | "configSync.sourceRows" | "configSync.sourceDead" | "configSync.refresh" | "configSync.loading" | "configSync.readHint" | "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.appliedIds" | "configSync.skippedIds" | "configSync.nothing" | "configSync.unreadable" | "configSync.noSource" | "configSync.emptyProviders" | "configSync.failed", string>;
|
|
420
|
+
en: Record<"time.now" | "time.ago" | "time.minutes" | "time.hours" | "time.days" | "blocker.retry" | "blocker.copy" | "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.fix.update" | "blocker.market.open" | "env.unit.failed" | "env.unit.failedHint" | "env.unit.missingPlugin" | "env.unit.hint" | "env.unit.missingCommands" | "env.unit.missingCommandsHint" | "env.unit.unchecked" | "env.unit.uncheckedHint" | "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.rename.row" | "project.rename.current" | "project.rename.title" | "project.rename.description" | "project.rename.field" | "project.rename.placeholder" | "project.rename.hint" | "project.rename.save" | "project.rename.saving" | "project.rename.cancel" | "project.rename.failed" | "session.new" | "session.new.label" | "session.empty" | "session.noProject" | "session.list.label" | "session.copy" | "session.pinned" | "session.actions" | "status.idle" | "status.running" | "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.done.one" | "project.attention.done.other" | "project.attention.state.warning" | "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.groupBoardless" | "panels.groupPlugins" | "panels.market.defaultHint" | "panels.market.defaultLabel" | "panels.market.defaultLocked" | "panels.followAll" | "panels.followAllConfirmTitle" | "panels.followAllConfirmDetail" | "panels.followAllConfirmAck" | "panels.followAllConfirmYes" | "panels.followAllConfirmNo" | "panels.enabled" | "panels.disabled" | "panels.choose" | "panels.buildModule" | "panels.failed" | "panels.dragHint" | "panels.unknownStep" | "panels.labelWithHint" | "panels.dep.failed" | "panels.dep.missingPlugin" | "panels.dep.missingCommands" | "panels.dep.unchecked" | "panels.tab.modules" | "panels.tab.market" | "panels.browseMarket" | "panels.noneInstalled" | "panels.noneInstalledHint" | "panels.market.installed" | "panels.market.notActive" | "panels.market.notUsable" | "panels.market.broken" | "panels.market.hasNew" | "panels.market.missing" | "panels.market.unchecked" | "panels.market.checking" | "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.update" | "panels.market.swapSlow" | "panels.market.uninstall" | "panels.market.uninstallLabel" | "panels.market.installing" | "panels.market.updating" | "panels.market.uninstalling" | "panels.market.confirmUninstallTitle" | "panels.market.confirmUninstallDetail" | "panels.market.confirmUninstallAck" | "panels.market.confirmYes" | "panels.market.confirmNo" | "panels.market.failed" | "panels.market.needEnv" | "panels.market.needCommands" | "panels.market.localMark" | "panels.market.localHint" | "panels.market.noSource" | "panels.market.badSource" | "panels.market.empty" | "panels.market.sectionPlugins" | "panels.market.moduleOutdated" | "panels.market.moduleRefused" | "panels.market.moduleRefusedDetail" | "panels.market.moduleRestartHint" | "panels.market.pendingRestart" | "panels.market.workbenchName" | "panels.market.workbenchLocal" | "panels.market.pluginKeptInUse" | "panels.market.pluginKeptUnsure" | "panels.market.pluginKeptHeld" | "panels.market.pluginKeptUnnamed" | "panels.market.pluginBroken" | "panels.market.restartNeeded" | "panels.market.foot" | "panels.market.recheck" | "panels.market.checkUpdates" | "panels.market.checkedAt" | "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.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.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.failureTimeout" | "panels.market.add.failurePnpmMissing" | "panels.market.add.failureInstalled" | "panels.market.add.failureGeneric" | "panels.market.add.approveTitle" | "panels.market.add.approveCaution" | "panels.market.add.approveRun" | "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.add.approveBuilds" | "panels.market.add.approveHint" | "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.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.running" | "blocker.fix.failed" | "blocker.retry.running" | "panels.reading" | "panels.cardBroken" | "panels.cardRetry" | "panels.empty" | "panels.emptyHint" | "env.title" | "env.checking" | "env.installing" | "env.failed" | "env.elapsed" | "env.stepFailed.install" | "env.stepFailed.path" | "env.stepFailed.shell" | "env.bridge.ok" | "env.bridge.short" | "env.bridge.why" | "env.bridge.daemon" | "env.bridge.extension" | "env.bridge.extensionLink" | "env.bridge.profile" | "env.bridge.stale" | "env.bridge.unknown" | "env.fix.title" | "env.fix.why" | "env.fix.whyPath" | "env.fix.whyShell" | "env.fix.step" | "env.fix.stepPath" | "env.fix.stepShell" | "env.fix.permission" | "env.fix.network" | "env.fix.details" | "env.retry" | "env.copyCommand" | "env.copied" | "env.step.opencli" | "env.step.codingPlugin" | "env.step.bridge" | "env.step.warm" | "env.warm.done" | "env.warm.short" | "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" | "coding.notARepo.title" | "error.unknown" | "board.title" | "panel.conversation" | "panels.label" | "configSync.nav" | "configSync.lead" | "configSync.source" | "configSync.sourceBroken" | "configSync.sourceRows" | "configSync.sourceDead" | "configSync.refresh" | "configSync.loading" | "configSync.readHint" | "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.appliedIds" | "configSync.skippedIds" | "configSync.nothing" | "configSync.unreadable" | "configSync.noSource" | "configSync.emptyProviders" | "configSync.failed" | "debug.status" | "debug.stalled" | "debug.tip.active" | "debug.tip.stalled" | "debug.back" | "debug.strip.active" | "debug.strip.note" | "debug.stripStalled", string>;
|
|
404
421
|
};
|
|
405
422
|
export type { WorkbenchMessages };
|
|
406
423
|
export interface Dictionaries {
|
package/dist/i18n/zh.d.ts
CHANGED
|
@@ -45,6 +45,15 @@ export declare const zh: {
|
|
|
45
45
|
readonly 'status.completed': "已完成";
|
|
46
46
|
readonly 'status.subagentsRunning.one': "{n} 个子代理运行中";
|
|
47
47
|
readonly 'status.subagentsRunning.other': "{n} 个子代理运行中";
|
|
48
|
+
readonly 'project.attention.warning.one': "1 个会话在等你点头";
|
|
49
|
+
readonly 'project.attention.warning.other': "{n} 个会话在等你点头";
|
|
50
|
+
readonly 'project.attention.running.one': "1 个会话在跑";
|
|
51
|
+
readonly 'project.attention.running.other': "{n} 个会话在跑";
|
|
52
|
+
readonly 'project.attention.done.one': "1 个会话跑完没看";
|
|
53
|
+
readonly 'project.attention.done.other': "{n} 个会话跑完没看";
|
|
54
|
+
readonly 'project.attention.state.warning': "待审批";
|
|
55
|
+
readonly 'project.attention.state.running': "在跑";
|
|
56
|
+
readonly 'project.attention.state.done': "新消息";
|
|
48
57
|
readonly 'hover.copied': "已复制";
|
|
49
58
|
readonly 'time.now': "刚刚";
|
|
50
59
|
readonly 'time.minutes': "{n} 分钟前";
|
|
@@ -397,5 +406,13 @@ export declare const zh: {
|
|
|
397
406
|
readonly 'configSync.noSource': "这台机器上只有工作台这一个 profile,没有可同步的来源";
|
|
398
407
|
readonly 'configSync.emptyProviders': "工作台还没有任何模型供应商 —— 去「配置同步」从某个 profile 把 llm- 那几行搬过来,或自己去「模型」里配。";
|
|
399
408
|
readonly 'configSync.failed': "同步没成功,再试一次。";
|
|
409
|
+
readonly 'debug.status': "调试中";
|
|
410
|
+
readonly 'debug.stalled': "调试搁置";
|
|
411
|
+
readonly 'debug.tip.active': "工坊那块板上正在调试 {unit}({since})· 点一下回到那一屏 · 要停就对 agent 说一句";
|
|
412
|
+
readonly 'debug.tip.stalled': "调试被搁置了 —— 要你回到工作台DIY 那一屏 · 点一下回去";
|
|
413
|
+
readonly 'debug.back': "回到工坊那一屏";
|
|
414
|
+
readonly 'debug.strip.active': "调试中 · {unit} · {since}";
|
|
415
|
+
readonly 'debug.strip.note': "要停就对 agent 说一句「暂停」";
|
|
416
|
+
readonly 'debug.stripStalled': "调试搁置 —— 对 agent 说一句「继续」";
|
|
400
417
|
};
|
|
401
418
|
export type WorkbenchMessages = typeof zh;
|
package/dist/i18n/zh.js
CHANGED
|
@@ -45,6 +45,15 @@ export const zh = {
|
|
|
45
45
|
'status.completed': '已完成',
|
|
46
46
|
'status.subagentsRunning.one': '{n} 个子代理运行中',
|
|
47
47
|
'status.subagentsRunning.other': '{n} 个子代理运行中',
|
|
48
|
+
'project.attention.warning.one': '1 个会话在等你点头',
|
|
49
|
+
'project.attention.warning.other': '{n} 个会话在等你点头',
|
|
50
|
+
'project.attention.running.one': '1 个会话在跑',
|
|
51
|
+
'project.attention.running.other': '{n} 个会话在跑',
|
|
52
|
+
'project.attention.done.one': '1 个会话跑完没看',
|
|
53
|
+
'project.attention.done.other': '{n} 个会话跑完没看',
|
|
54
|
+
'project.attention.state.warning': '待审批',
|
|
55
|
+
'project.attention.state.running': '在跑',
|
|
56
|
+
'project.attention.state.done': '新消息',
|
|
48
57
|
'hover.copied': '已复制',
|
|
49
58
|
'time.now': '刚刚',
|
|
50
59
|
'time.minutes': '{n} 分钟前',
|
|
@@ -397,4 +406,12 @@ export const zh = {
|
|
|
397
406
|
'configSync.noSource': '这台机器上只有工作台这一个 profile,没有可同步的来源',
|
|
398
407
|
'configSync.emptyProviders': '工作台还没有任何模型供应商 —— 去「配置同步」从某个 profile 把 llm- 那几行搬过来,或自己去「模型」里配。',
|
|
399
408
|
'configSync.failed': '同步没成功,再试一次。',
|
|
409
|
+
'debug.status': '调试中',
|
|
410
|
+
'debug.stalled': '调试搁置',
|
|
411
|
+
'debug.tip.active': '工坊那块板上正在调试 {unit}({since})· 点一下回到那一屏 · 要停就对 agent 说一句',
|
|
412
|
+
'debug.tip.stalled': '调试被搁置了 —— 要你回到工作台DIY 那一屏 · 点一下回去',
|
|
413
|
+
'debug.back': '回到工坊那一屏',
|
|
414
|
+
'debug.strip.active': '调试中 · {unit} · {since}',
|
|
415
|
+
'debug.strip.note': '要停就对 agent 说一句「暂停」',
|
|
416
|
+
'debug.stripStalled': '调试搁置 —— 对 agent 说一句「继续」',
|
|
400
417
|
};
|