@fish-under-sea/dsh-client-ui-task-board-fish 2.2.3 → 2.3.0
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/README.en.md +4 -4
- package/package.json +1 -1
- package/README.i18n.yaml +0 -6
- package/README.md +0 -31
- package/README.zh.md +0 -31
- package/lib/client.js +0 -15861
- package/lib/client.js.map +0 -1
- package/lib/index.js +0 -12653
- package/lib/types/client/CardDefaultPresetField.d.ts +0 -35
- package/lib/types/client/PluginSettingsCard.d.ts +0 -255
- package/lib/types/client/RangeBubble.d.ts +0 -46
- package/lib/types/client/SegmentGroup.d.ts +0 -28
- package/lib/types/client/TaskBoardSettingsCard.d.ts +0 -155
- package/lib/types/client/apply-guard.d.ts +0 -25
- package/lib/types/client/board/AttachmentField.d.ts +0 -70
- package/lib/types/client/board/ClampedMarkdown.d.ts +0 -3
- package/lib/types/client/board/ConfirmDialog.d.ts +0 -15
- package/lib/types/client/board/EditTaskModal.d.ts +0 -17
- package/lib/types/client/board/ExecutionLog.d.ts +0 -24
- package/lib/types/client/board/LinkSubtaskModal.d.ts +0 -14
- package/lib/types/client/board/NewTaskModal.d.ts +0 -26
- package/lib/types/client/board/ReasoningEffortField.d.ts +0 -25
- package/lib/types/client/board/TagManagerModal.d.ts +0 -26
- package/lib/types/client/board/TaskBoard.d.ts +0 -26
- package/lib/types/client/board/TaskCard.d.ts +0 -36
- package/lib/types/client/board/TaskDetail.d.ts +0 -9
- package/lib/types/client/board/TaskForm.d.ts +0 -76
- package/lib/types/client/board/VerificationReport.d.ts +0 -10
- package/lib/types/client/board/card-view.d.ts +0 -113
- package/lib/types/client/board/icons.d.ts +0 -32
- package/lib/types/client/board/model-options.d.ts +0 -87
- package/lib/types/client/board/overlay.d.ts +0 -69
- package/lib/types/client/board/parse-model-pref.d.ts +0 -4
- package/lib/types/client/board/preset-label.d.ts +0 -43
- package/lib/types/client/board/preset-roster.d.ts +0 -45
- package/lib/types/client/board/source-group.d.ts +0 -27
- package/lib/types/client/board/status-key.d.ts +0 -19
- package/lib/types/client/board/task-markdown.d.ts +0 -19
- package/lib/types/client/body-mutations.d.ts +0 -45
- package/lib/types/client/host-api.d.ts +0 -88
- package/lib/types/client/index.d.ts +0 -128
- package/lib/types/client/locales.d.ts +0 -521
- package/lib/types/client/main-session.d.ts +0 -32
- package/lib/types/client/native-panel.d.ts +0 -48
- package/lib/types/client/pending-verify.d.ts +0 -47
- package/lib/types/client/plugin-card-seat.d.ts +0 -110
- package/lib/types/client/schedule-presets.d.ts +0 -10
- package/lib/types/client/schedule-zone.d.ts +0 -97
- package/lib/types/client/seats.d.ts +0 -18
- package/lib/types/client/service.d.ts +0 -35
- package/lib/types/client/settings-entry-form.d.ts +0 -49
- package/lib/types/client/settings-form.d.ts +0 -235
- package/lib/types/core/attachment.d.ts +0 -132
- package/lib/types/core/card-defaults.d.ts +0 -78
- package/lib/types/core/controller.d.ts +0 -422
- package/lib/types/core/degraded-reason.d.ts +0 -46
- package/lib/types/core/execution-summary.d.ts +0 -52
- package/lib/types/core/extension.d.ts +0 -399
- package/lib/types/core/freeze-snapshot.d.ts +0 -71
- package/lib/types/core/handover.d.ts +0 -70
- package/lib/types/core/issue-form.d.ts +0 -16
- package/lib/types/core/launch-width.d.ts +0 -31
- package/lib/types/core/package-name.d.ts +0 -9
- package/lib/types/core/poll-cadence.d.ts +0 -31
- package/lib/types/core/reasoning-effort.d.ts +0 -57
- package/lib/types/core/schedule.d.ts +0 -124
- package/lib/types/core/session-reuse.d.ts +0 -30
- package/lib/types/core/spend-budget.d.ts +0 -28
- package/lib/types/core/store.d.ts +0 -64
- package/lib/types/core/subtask.d.ts +0 -204
- package/lib/types/core/tasks.d.ts +0 -685
- package/lib/types/core/use-cases/task-archive.d.ts +0 -20
- package/lib/types/core/use-cases/task-create.d.ts +0 -32
- package/lib/types/core/use-cases/task-delete.d.ts +0 -27
- package/lib/types/core/use-cases/task-parent.d.ts +0 -21
- package/lib/types/core/use-cases/task-schedule.d.ts +0 -96
- package/lib/types/core/use-cases/task-tag.d.ts +0 -84
- package/lib/types/core/use-cases/task-update.d.ts +0 -77
- package/lib/types/core/verification-budget.d.ts +0 -52
- package/lib/types/core/verification.d.ts +0 -753
- package/lib/types/core/wire-projection.d.ts +0 -35
- package/lib/types/core/workspace-target.d.ts +0 -61
- package/lib/types/dsh-home.d.ts +0 -16
- package/lib/types/host/agent-tools.d.ts +0 -27
- package/lib/types/host/attachments.d.ts +0 -250
- package/lib/types/host/extension-registry.d.ts +0 -151
- package/lib/types/host/launch-admission.d.ts +0 -71
- package/lib/types/host/llm-dispatch.d.ts +0 -63
- package/lib/types/host/verification-gate.d.ts +0 -95
- package/lib/types/host/verification-runner.d.ts +0 -139
- package/lib/types/host/workspace-evidence.d.ts +0 -53
- package/lib/types/host-ai.d.ts +0 -51
- package/lib/types/host-ledger.d.ts +0 -452
- package/lib/types/host-routes.d.ts +0 -99
- package/lib/types/host-runner.d.ts +0 -401
- package/lib/types/host-service.d.ts +0 -517
- package/lib/types/host-spend.d.ts +0 -52
- package/lib/types/http.d.ts +0 -59
- package/lib/types/index.d.ts +0 -441
- package/lib/types/loopback.d.ts +0 -64
- package/lib/types/mount-once.d.ts +0 -55
- package/lib/types/power-inhibitor.d.ts +0 -73
- package/lib/types/protocol.d.ts +0 -253
- package/lib/types/tool-surface.d.ts +0 -72
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The default-agent-preset picker of the settings card's new-card-defaults
|
|
3
|
-
* topic.
|
|
4
|
-
*
|
|
5
|
-
* It renders the rows the create dialog's own mode picker renders — built-in
|
|
6
|
-
* presets first, then user presets, each labelled with its default and
|
|
7
|
-
* unavailable suffixes (board/preset-label.ts owns both) — and it renders a
|
|
8
|
-
* preset that cannot compose a session as a row that is visible but NOT
|
|
9
|
-
* selectable, so the board never stores a default no session could be composed
|
|
10
|
-
* from.
|
|
11
|
-
*
|
|
12
|
-
* The shared ChoiceField cannot express that: its choices carry no disabled
|
|
13
|
-
* state, and a stored pin the roster no longer serves would render as an empty
|
|
14
|
-
* trigger rather than as the unavailable preset it is. Both need a native
|
|
15
|
-
* `<select>` (the fallback the shared SelectField itself takes under an
|
|
16
|
-
* appearance skin), styled with the settings card's own field classes so the
|
|
17
|
-
* control stays a sibling of the fields beside it.
|
|
18
|
-
*/
|
|
19
|
-
import type { ExecutionPresetOption } from '../core/controller.ts';
|
|
20
|
-
import type { FieldProps } from './PluginSettingsCard.tsx';
|
|
21
|
-
/** Props of the default-preset field: the shared field contract plus the roster. */
|
|
22
|
-
export interface CardDefaultPresetFieldProps extends FieldProps {
|
|
23
|
-
/**
|
|
24
|
-
* The deployment's agent-preset roster, or undefined while its runtime read
|
|
25
|
-
* has not answered: an unread roster offers the inherit choice alone instead
|
|
26
|
-
* of calling every stored pin "removed".
|
|
27
|
-
*/
|
|
28
|
-
presets: readonly ExecutionPresetOption[] | undefined;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Render the default-preset select.
|
|
32
|
-
* @param props - the field contract and the roster to list.
|
|
33
|
-
* @returns the field.
|
|
34
|
-
*/
|
|
35
|
-
export declare function CardDefaultPresetField(props: CardDefaultPresetFieldProps): import("react").JSX.Element;
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Family-shared chrome for plugin settings cards: a disclosure header naming
|
|
3
|
-
* the plugin and what its settings govern, the controls inside, and the line
|
|
4
|
-
* that reports a refused write. A pick is written the moment it is made and a
|
|
5
|
-
* typed value after a pause, so the card has no save button and nothing waits
|
|
6
|
-
* on the reader. Renders nothing while the namespace is unavailable — a
|
|
7
|
-
* deployment that does not compose the owning plugin should show no trace of
|
|
8
|
-
* it. Inlined into each consumer's client bundle; mirrors the official
|
|
9
|
-
* ui-plugin-config PluginCard in a self-contained slice.
|
|
10
|
-
*
|
|
11
|
-
* Every field inside the body is one settings row: the label and its hint on
|
|
12
|
-
* the left, the control on the right, a hairline between two rows; a narrow
|
|
13
|
-
* card stacks the control under the text (settings-card.module.css).
|
|
14
|
-
*/
|
|
15
|
-
import { type ReactNode } from 'react';
|
|
16
|
-
import type { CardShell } from './settings-form.ts';
|
|
17
|
-
/** Copy keys the card chrome itself reads; every consumer locale carries this shared vocabulary. */
|
|
18
|
-
export declare const CARD_COPY_KEYS: readonly ["settings.collapse", "settings.expand", "settings.notExposed", "settings.readOnly", "settings.saveFailed"];
|
|
19
|
-
/** Copy key the card chrome itself reads. */
|
|
20
|
-
export type CardCopyKey = (typeof CARD_COPY_KEYS)[number];
|
|
21
|
-
/** Key domain for the plugin's own copy (inferred per consumer). */
|
|
22
|
-
export type SettingsCardKey<TKey extends string = string> = TKey | CardCopyKey;
|
|
23
|
-
/** Card chrome shared by every plugin settings card. */
|
|
24
|
-
export interface PluginSettingsCardProps<TKey extends string = string> {
|
|
25
|
-
/** Locale reader for this card's copy. */
|
|
26
|
-
t: (key: SettingsCardKey<TKey>, params?: Record<string, string | number>) => string;
|
|
27
|
-
/** Locale key of the plugin's name. */
|
|
28
|
-
titleKey: TKey;
|
|
29
|
-
/** Locale key of the line describing what this plugin's settings govern. */
|
|
30
|
-
descriptionKey: TKey;
|
|
31
|
-
/** Optional rich header description rendered instead of the plain t(descriptionKey) text (the plain text stays as the tooltip). */
|
|
32
|
-
descriptionNode?: ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* Locale key of the full sentence behind a shortened description: when
|
|
35
|
-
* present, the header's native `title` takes this text while the visible
|
|
36
|
-
* line keeps `descriptionKey`/`descriptionNode`, so a compact card can
|
|
37
|
-
* compress the sentence without keeping a second visible copy of it.
|
|
38
|
-
* Defaults to the description key.
|
|
39
|
-
*/
|
|
40
|
-
descriptionTitleKey?: TKey;
|
|
41
|
-
/**
|
|
42
|
-
* Optional leading mark identifying the plugin. A card without one keeps the
|
|
43
|
-
* plain official header shape, so the chrome stays a readable sibling of the
|
|
44
|
-
* built-in PluginCard wherever a family plugin lands in the official bundle
|
|
45
|
-
* seat.
|
|
46
|
-
*/
|
|
47
|
-
icon?: ReactNode;
|
|
48
|
-
/** The card's form state: availability, writability, and how the last write went. */
|
|
49
|
-
state: CardShell;
|
|
50
|
-
/** Write every pending draft now: a text field's Enter or blur. */
|
|
51
|
-
onSave: () => void;
|
|
52
|
-
/** Drop every pending draft: a text field's Escape. */
|
|
53
|
-
onDiscard: () => void;
|
|
54
|
-
/**
|
|
55
|
-
* Id applied to the card's title element, so a header control (an immediate
|
|
56
|
-
* toggle in `headerAction`) can name itself through `aria-labelledby`
|
|
57
|
-
* instead of repeating the title as a string.
|
|
58
|
-
*/
|
|
59
|
-
titleId?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Render the header only, with no body region. A card whose whole setting is
|
|
62
|
-
* the header control (a switch whose explanation is the description) has no
|
|
63
|
-
* controls to lay out below it, and an empty body would draw a divider line
|
|
64
|
-
* with nothing under it.
|
|
65
|
-
*/
|
|
66
|
-
headerOnly?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Render the controls expanded on arrival (still collapsible). Defaults to
|
|
69
|
-
* true: promoted first-level sections show their settings immediately.
|
|
70
|
-
*/
|
|
71
|
-
defaultOpen?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Render without the collapse affordance: a static header and an always
|
|
74
|
-
* visible body. Used by first-level settings sections whose nav entry
|
|
75
|
-
* already provides the selection.
|
|
76
|
-
*/
|
|
77
|
-
alwaysOpen?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Hide the line under the body that reports a refused write: a card whose
|
|
80
|
-
* body applies its own changes (an embedded external settings section)
|
|
81
|
-
* reports its own failures.
|
|
82
|
-
*/
|
|
83
|
-
hideFooter?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Optional control rendered at the header's trailing edge, before the
|
|
86
|
-
* chevron. A card whose setting is one immediate flip (it
|
|
87
|
-
* applies outside the card's form) puts its ToggleSwitch here, so the control
|
|
88
|
-
* is reachable without opening the card and matches a plugin card's shape.
|
|
89
|
-
*/
|
|
90
|
-
headerAction?: ReactNode;
|
|
91
|
-
/**
|
|
92
|
-
* Render children even when the settings namespace is not exposed by the
|
|
93
|
-
* host. The 'not exposed' notice still explains the card above them; a card
|
|
94
|
-
* that wants the rows alone hides it through `hideNotExposedNotice`.
|
|
95
|
-
*/
|
|
96
|
-
renderChildrenWhenNotExposed?: boolean;
|
|
97
|
-
/** Hide the 'not exposed' notice, whichever branch renders the card body. */
|
|
98
|
-
hideNotExposedNotice?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Compact chrome for a topic card rendered inside another card's body: a
|
|
101
|
-
* smaller title, a tighter header and body inset, and a one-line description
|
|
102
|
-
* whose full text stays on the header's own title. Defaults to the
|
|
103
|
-
* first-level chrome, which is unchanged.
|
|
104
|
-
*/
|
|
105
|
-
density?: 'nested';
|
|
106
|
-
/** The plugin's controls. */
|
|
107
|
-
children: ReactNode;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Render one plugin settings card.
|
|
111
|
-
* @param props - the plugin's copy keys, its form state, and its controls.
|
|
112
|
-
* @returns the card, or nothing while the namespace is still loading.
|
|
113
|
-
*/
|
|
114
|
-
export declare function PluginSettingsCard<TKey extends string = string>(props: PluginSettingsCardProps<TKey>): import("react").JSX.Element | null;
|
|
115
|
-
/** Props every field control needs regardless of its value type. */
|
|
116
|
-
export interface FieldProps {
|
|
117
|
-
/** Stable id associating the label with its control. */
|
|
118
|
-
id: string;
|
|
119
|
-
/** Visible label. */
|
|
120
|
-
label: string;
|
|
121
|
-
/** One-line explanation rendered under the control. */
|
|
122
|
-
hint: string;
|
|
123
|
-
/**
|
|
124
|
-
* Full sentence behind the visible hint, exposed as the paragraph's native
|
|
125
|
-
* `title` so a card can shorten the line without losing the text. Omitted:
|
|
126
|
-
* the paragraph carries no title attribute at all.
|
|
127
|
-
*/
|
|
128
|
-
hintTitle?: string;
|
|
129
|
-
/** Draft text this control renders. */
|
|
130
|
-
text: string;
|
|
131
|
-
/** True when the field holds a user-layer entry over the inherited value. */
|
|
132
|
-
overridden: boolean;
|
|
133
|
-
/** True when the draft is not a value this field accepts. */
|
|
134
|
-
invalid: boolean;
|
|
135
|
-
/** Copy for the overridden badge. */
|
|
136
|
-
overriddenLabel: string;
|
|
137
|
-
/** Copy for the reset control. */
|
|
138
|
-
resetLabel: string;
|
|
139
|
-
/** Copy shown in place of the hint while the draft is invalid. */
|
|
140
|
-
invalidLabel: string;
|
|
141
|
-
/** Disables every control (read-only document, or an unavailable namespace). */
|
|
142
|
-
disabled: boolean;
|
|
143
|
-
/** Take new draft text; the card writes it as the field's entry rule says. */
|
|
144
|
-
onEdit: (text: string) => void;
|
|
145
|
-
/** Clear the field at once so it re-inherits the composition layer. */
|
|
146
|
-
onReset: () => void;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* A typed value field. Its draft is written after a pause in typing, at once on
|
|
150
|
-
* Enter or when focus leaves, and Escape puts the stored value back. `numeric`
|
|
151
|
-
* only hints the keypad: which drafts a field accepts is decided by its spec.
|
|
152
|
-
* A field given a `range` also offers the coarse slider bubble: dragging fills
|
|
153
|
-
* the draft live and releasing writes it.
|
|
154
|
-
*/
|
|
155
|
-
export declare function ValueField(props: FieldProps & {
|
|
156
|
-
/** Hints a numeric keypad without narrowing what the control accepts. */
|
|
157
|
-
numeric?: boolean;
|
|
158
|
-
/** Placeholder shown while the draft is empty. */
|
|
159
|
-
placeholder?: string;
|
|
160
|
-
/** Bounds of a numeric field, for the coarse slider; the spec still judges every draft. */
|
|
161
|
-
range?: {
|
|
162
|
-
min: number;
|
|
163
|
-
max: number;
|
|
164
|
-
step: number;
|
|
165
|
-
};
|
|
166
|
-
}): import("react").JSX.Element;
|
|
167
|
-
interface SelectOption {
|
|
168
|
-
value: string;
|
|
169
|
-
label: string;
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* The shared dual-mode select control. While an appearance skin is active it
|
|
173
|
-
* renders the legacy native `<select>` untouched, so element-level skin
|
|
174
|
-
* selectors keep working; under the default appearance it renders a
|
|
175
|
-
* self-drawn `role="listbox"` popup whose open/close is transition-animated.
|
|
176
|
-
* Cards reach it through BooleanField/ChoiceField; editors outside a card
|
|
177
|
-
* (the side-card prefs) bind it directly through onEdit.
|
|
178
|
-
* 双模式下拉框:皮肤激活时用原生 select,默认外观用自绘动画弹层。
|
|
179
|
-
*/
|
|
180
|
-
export declare function SelectField(props: {
|
|
181
|
-
id: string;
|
|
182
|
-
options: ReadonlyArray<SelectOption>;
|
|
183
|
-
value: string;
|
|
184
|
-
disabled: boolean;
|
|
185
|
-
invalid: boolean;
|
|
186
|
-
onEdit: (text: string) => void;
|
|
187
|
-
}): import("react").JSX.Element;
|
|
188
|
-
/**
|
|
189
|
-
* A visible segmented group for a small set of mutually exclusive values.
|
|
190
|
-
* Every option stays on screen, so inherit/on/off and short enum fields take
|
|
191
|
-
* one click without opening a popup. The pressed option carries the group's
|
|
192
|
-
* sliding highlight and `aria-pressed`; the group takes the field label as its
|
|
193
|
-
* accessible name.
|
|
194
|
-
*/
|
|
195
|
-
export declare function SegmentField(props: {
|
|
196
|
-
id: string;
|
|
197
|
-
label: string;
|
|
198
|
-
options: ReadonlyArray<SelectOption>;
|
|
199
|
-
value: string;
|
|
200
|
-
disabled: boolean;
|
|
201
|
-
invalid: boolean;
|
|
202
|
-
onEdit: (text: string) => void;
|
|
203
|
-
}): import("react").JSX.Element;
|
|
204
|
-
/** How a small single-choice field presents its options. */
|
|
205
|
-
export type FieldPresentation = 'select' | 'segment';
|
|
206
|
-
/** A boolean field: 继承 / 开 / 关. */
|
|
207
|
-
export declare function BooleanField(props: FieldProps & {
|
|
208
|
-
/** Copy for the inherit option. */
|
|
209
|
-
inheritLabel: string;
|
|
210
|
-
/** Copy for the on option. */
|
|
211
|
-
onLabel: string;
|
|
212
|
-
/** Copy for the off option. */
|
|
213
|
-
offLabel: string;
|
|
214
|
-
/** Defaults to the visible segments: the three answers always fit on one row. */
|
|
215
|
-
presentation?: FieldPresentation;
|
|
216
|
-
}): import("react").JSX.Element;
|
|
217
|
-
/** An enumerated field, selecting or segmenting its small choice set. */
|
|
218
|
-
export declare function ChoiceField(props: FieldProps & {
|
|
219
|
-
/** Copy for the inherit option (draft text is the empty string). */
|
|
220
|
-
inheritLabel: string;
|
|
221
|
-
/** Choices rendered in order; `value` is the draft/stored text. */
|
|
222
|
-
choices: ReadonlyArray<{
|
|
223
|
-
value: string;
|
|
224
|
-
label: string;
|
|
225
|
-
}>;
|
|
226
|
-
/**
|
|
227
|
-
* Visible segmented options for a short fixed set; defaults to the compact
|
|
228
|
-
* select, which also suits a list whose length follows the deployment.
|
|
229
|
-
*/
|
|
230
|
-
presentation?: FieldPresentation;
|
|
231
|
-
}): import("react").JSX.Element;
|
|
232
|
-
/**
|
|
233
|
-
* A boolean toggle drawn as a switch track, for a setting that is only on or
|
|
234
|
-
* off and applies on flip. It is a real button with
|
|
235
|
-
* `role="switch"` and `aria-checked`, so keyboard and assistive activation
|
|
236
|
-
* arrive as a click and the state is announced instead of inferred from a
|
|
237
|
-
* checkbox tick.
|
|
238
|
-
*
|
|
239
|
-
* The thumb bounces across only once the reader has pressed this switch: the
|
|
240
|
-
* press writes the mark that arms the bounce, so a page opening, a TAB
|
|
241
|
-
* switching back or a value arriving from elsewhere draws every thumb at rest.
|
|
242
|
-
*/
|
|
243
|
-
export declare function ToggleSwitch(props: {
|
|
244
|
-
/** Id of the element naming the switch (the card's title). */
|
|
245
|
-
labelledBy?: string;
|
|
246
|
-
/** Accessible name when no element labels it. */
|
|
247
|
-
ariaLabel?: string;
|
|
248
|
-
/** Current state. */
|
|
249
|
-
checked: boolean;
|
|
250
|
-
/** Disables the switch while a write is in flight or the Host refuses writes. */
|
|
251
|
-
disabled?: boolean;
|
|
252
|
-
/** Called with the requested next state. */
|
|
253
|
-
onChange: (next: boolean) => void;
|
|
254
|
-
}): import("react").JSX.Element;
|
|
255
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Coarse adjustment for a bounded number: resting the pointer on the control
|
|
3
|
-
* (or moving focus into it) raises a small bubble holding a slider across the
|
|
4
|
-
* field's whole range, so a large change is one drag instead of many presses
|
|
5
|
-
* or a retyped value. The control itself stays the precise entry.
|
|
6
|
-
*
|
|
7
|
-
* The bubble belongs to the anchor's subtree, so moving from the control onto
|
|
8
|
-
* the bubble never counts as leaving. It opens after a short rest and closes a
|
|
9
|
-
* moment after the pointer and focus have both gone, so crossing the control
|
|
10
|
-
* on the way elsewhere does not flash it. While a drag is in progress the
|
|
11
|
-
* bubble stays put even if the pointer strays off it.
|
|
12
|
-
*
|
|
13
|
-
* Dragging reports each value through `onInput`, so the field shows it live;
|
|
14
|
-
* releasing the thumb, or a key press on it, reports `onCommit` once. The
|
|
15
|
-
* bubble opens on the side of the control that has room inside the nearest
|
|
16
|
-
* scrolling ancestor, so a row near the top of a settings page does not hang
|
|
17
|
-
* its bubble under the page edge.
|
|
18
|
-
*/
|
|
19
|
-
import { type ReactNode } from 'react';
|
|
20
|
-
/** Props of {@link RangeBubble}. */
|
|
21
|
-
export interface RangeBubbleProps {
|
|
22
|
-
/** Lowest value the slider reaches. */
|
|
23
|
-
min: number;
|
|
24
|
-
/** Highest value the slider reaches. */
|
|
25
|
-
max: number;
|
|
26
|
-
/** Slider granularity. */
|
|
27
|
-
step: number;
|
|
28
|
-
/** Current value; a value outside the range parks the thumb at the nearer end. */
|
|
29
|
-
value: number;
|
|
30
|
-
/** Accessible name of the slider. */
|
|
31
|
-
label: string;
|
|
32
|
-
/** Disables the bubble along with the control. */
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
/** Each value while the thumb moves. */
|
|
35
|
-
onInput: (value: number) => void;
|
|
36
|
-
/** The value the thumb was released on, once per drag or key press. */
|
|
37
|
-
onCommit: (value: number) => void;
|
|
38
|
-
/** The precise control the bubble hangs off. */
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Render the control with its coarse-adjustment bubble.
|
|
43
|
-
* @param props - the range, the value and the two report callbacks.
|
|
44
|
-
* @returns the anchor holding the control and the bubble.
|
|
45
|
-
*/
|
|
46
|
-
export declare function RangeBubble(props: RangeBubbleProps): ReactNode;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The family's segmented control: a quiet track whose options share one
|
|
3
|
-
* highlight that slides to the pressed option, instead of each option fading
|
|
4
|
-
* its own background out and the next one in. The settings fields' small
|
|
5
|
-
* choices and the Web Extensions TAB strip both render through it, so the two
|
|
6
|
-
* read as one control.
|
|
7
|
-
*
|
|
8
|
-
* The caller builds the option buttons and marks the pressed one with
|
|
9
|
-
* `data-active`; the group measures that button after every render and writes
|
|
10
|
-
* its box as four custom properties, and the stylesheet draws the highlight
|
|
11
|
-
* there (`.segmentGroup[data-pill]::before`). Attribute and first placement
|
|
12
|
-
* land in the same task, so the highlight appears in place and only later
|
|
13
|
-
* changes slide. A ResizeObserver re-measures when the group or an option
|
|
14
|
-
* changes size: a longer locale, a font arriving, a container growing, a
|
|
15
|
-
* strip wrapping onto a second line.
|
|
16
|
-
*/
|
|
17
|
-
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
18
|
-
/** Props of {@link SegmentGroup}: the track's own attributes and the option buttons. */
|
|
19
|
-
export interface SegmentGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
20
|
-
/** The option buttons; the pressed one carries `data-active`. */
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Render a segmented track around the caller's option buttons.
|
|
25
|
-
* @param props - the track's attributes (role, accessible name, key handler) and its options.
|
|
26
|
-
* @returns the track.
|
|
27
|
-
*/
|
|
28
|
-
export declare function SegmentGroup(props: SegmentGroupProps): ReactNode;
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task-board settings for availability, agent announcement, and optional Host
|
|
3
|
-
* idle-sleep protection. Registers into the `web-ui.plugin.item` child slot
|
|
4
|
-
* the Web UI plugin group renders, bound to the `task-board` namespace.
|
|
5
|
-
*/
|
|
6
|
-
import type { InjectFace, PropsLocale, PropsRenderSlots, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
7
|
-
import type { SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
8
|
-
import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client';
|
|
9
|
-
import type { TaskBoardExtensionDispatch } from '../core/extension.ts';
|
|
10
|
-
import type { ExecutionPresetOption } from '../core/controller.ts';
|
|
11
|
-
import { type CardActions, type CardShell, type FieldState as CardFieldState } from './settings-form.ts';
|
|
12
|
-
/** The task-board fields this card edits (the namespace's full schema). */
|
|
13
|
-
export interface TaskBoardSettings {
|
|
14
|
-
/** Master switch for the plugin. */
|
|
15
|
-
enabled?: boolean;
|
|
16
|
-
/** Whether the board announces itself in every agent's system prompt. */
|
|
17
|
-
announceToAgent?: boolean;
|
|
18
|
-
/** Prevent host idle sleep while sessions run or schedules are armed. */
|
|
19
|
-
preventIdleSleep?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Whether the operator's own reverse proxy or tunnel may speak for the
|
|
22
|
-
* browser (default off). Volatile, so the board's fence reads it per request.
|
|
23
|
-
*/
|
|
24
|
-
trustForwardedProxy?: boolean;
|
|
25
|
-
/** Subtask depth limit (1..3); 1 means a single level of subtasks. */
|
|
26
|
-
maxSubtaskDepth?: number;
|
|
27
|
-
/** Roster-poll cadence in seconds while the board has work to reconcile. */
|
|
28
|
-
sessionPollSeconds?: number;
|
|
29
|
-
/**
|
|
30
|
-
* How many run launches may be in flight at once (1..16, default 3). One run
|
|
31
|
-
* opens its whole subtree, so this bounds the burst of sessions a single run
|
|
32
|
-
* action creates; members enter the running column in batches, none is dropped.
|
|
33
|
-
*/
|
|
34
|
-
runLaunchWidth?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Daily token ceiling for the work this board dispatches; 0 means no gate.
|
|
37
|
-
* Tokens, not money: only DeepSeek's own routes are priced.
|
|
38
|
-
*/
|
|
39
|
-
spendBudgetTokens?: number;
|
|
40
|
-
/**
|
|
41
|
-
* GLOBAL native /goal switch (default off): the master control over whether
|
|
42
|
-
* this board starts a run with dsh's built-in /goal at all. Frozen per
|
|
43
|
-
* execution.
|
|
44
|
-
*/
|
|
45
|
-
goalRunEnabled?: boolean;
|
|
46
|
-
/** Goal acceptance for this board's executions (default on). */
|
|
47
|
-
goalVerification?: boolean;
|
|
48
|
-
/** Judge model route for goal acceptance; blank inherits the host default. */
|
|
49
|
-
goalVerificationModel?: string;
|
|
50
|
-
/** Judge reasoning effort; blank inherits the host default level. */
|
|
51
|
-
goalVerificationReasoningEffort?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Agent preset the create dialog of this board opens with. Blank pins
|
|
54
|
-
* nothing, so a new card follows the deployment default as before.
|
|
55
|
-
*/
|
|
56
|
-
cardDefaultMode?: string;
|
|
57
|
-
/** Permission the create dialog opens with; blank applies no default. */
|
|
58
|
-
cardDefaultPermission?: string;
|
|
59
|
-
/** Execution model route the create dialog opens with; blank applies none. */
|
|
60
|
-
cardDefaultModel?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Reasoning level bound to `cardDefaultModel`; it applies only while a
|
|
63
|
-
* card's final model IS that configured route, and is inert without one.
|
|
64
|
-
*/
|
|
65
|
-
cardDefaultReasoningEffort?: string;
|
|
66
|
-
}
|
|
67
|
-
/** What the task-board card renders. */
|
|
68
|
-
export interface TaskBoardSettingsCardState extends CardShell {
|
|
69
|
-
/** Master switch. */
|
|
70
|
-
enabled: CardFieldState;
|
|
71
|
-
/** System-prompt announcement flag. */
|
|
72
|
-
announceToAgent: CardFieldState;
|
|
73
|
-
/** Idle-system-sleep protection flag. */
|
|
74
|
-
preventIdleSleep: CardFieldState;
|
|
75
|
-
/** Forwarded-request trust flag. */
|
|
76
|
-
trustForwardedProxy: CardFieldState;
|
|
77
|
-
/** Subtask depth limit field. */
|
|
78
|
-
maxSubtaskDepth: CardFieldState;
|
|
79
|
-
/** Roster-poll cadence field. */
|
|
80
|
-
sessionPollSeconds: CardFieldState;
|
|
81
|
-
/** Run-launch admission width field. */
|
|
82
|
-
runLaunchWidth: CardFieldState;
|
|
83
|
-
/** Daily token cap field. */
|
|
84
|
-
spendBudgetTokens: CardFieldState;
|
|
85
|
-
/** GLOBAL native /goal switch. */
|
|
86
|
-
goalRunEnabled: CardFieldState;
|
|
87
|
-
/** Goal-acceptance switch. */
|
|
88
|
-
goalVerification: CardFieldState;
|
|
89
|
-
/** Judge model route field. */
|
|
90
|
-
goalVerificationModel: CardFieldState;
|
|
91
|
-
/** Judge reasoning-effort field. */
|
|
92
|
-
goalVerificationReasoningEffort: CardFieldState;
|
|
93
|
-
/** New-card default agent preset. */
|
|
94
|
-
cardDefaultMode: CardFieldState;
|
|
95
|
-
/** New-card default permission. */
|
|
96
|
-
cardDefaultPermission: CardFieldState;
|
|
97
|
-
/** New-card default model route. */
|
|
98
|
-
cardDefaultModel: CardFieldState;
|
|
99
|
-
/** New-card default reasoning level. */
|
|
100
|
-
cardDefaultReasoningEffort: CardFieldState;
|
|
101
|
-
/**
|
|
102
|
-
* The deployment's agent-preset roster, published by the runtime read the
|
|
103
|
-
* plugin wires; undefined until it answers, which leaves the default-preset
|
|
104
|
-
* field offering the inherit choice alone.
|
|
105
|
-
*/
|
|
106
|
-
presets?: readonly ExecutionPresetOption[];
|
|
107
|
-
}
|
|
108
|
-
/** The registration-side face the card's slot entry injects. */
|
|
109
|
-
export interface TaskBoardSettingsCardFace extends CardActions {
|
|
110
|
-
hooks: {
|
|
111
|
-
/** Card snapshot bound by the renderer as useTaskBoardSettingsCard. */
|
|
112
|
-
taskBoardSettingsCard: SnapshotStore<TaskBoardSettingsCardState>;
|
|
113
|
-
};
|
|
114
|
-
/** Deliver one provider action over the board's same-origin channel. */
|
|
115
|
-
dispatch: TaskBoardExtensionDispatch;
|
|
116
|
-
}
|
|
117
|
-
/** Bridges the `task-board` settings form onto the card's staged form. */
|
|
118
|
-
export declare class TaskBoardSettingsCardController {
|
|
119
|
-
private readonly dispatch;
|
|
120
|
-
private readonly form;
|
|
121
|
-
private readonly store;
|
|
122
|
-
/** The deployment's agent-preset roster, once its runtime read has answered. */
|
|
123
|
-
private presets;
|
|
124
|
-
/** @param scope - the bound configuration form for the `task-board` namespace. */
|
|
125
|
-
constructor(scope: ConfigForm<TaskBoardSettings>, dispatch: TaskBoardExtensionDispatch);
|
|
126
|
-
private projection;
|
|
127
|
-
/**
|
|
128
|
-
* Publish the deployment's agent-preset roster to the default-preset field.
|
|
129
|
-
* The roster is a runtime fact read outside this card (src/client/index.ts
|
|
130
|
-
* wires it once for both the board's pickers and this topic); it can arrive
|
|
131
|
-
* late or not at all, and until it does the field lists the inherit choice
|
|
132
|
-
* alone. This never blocks a save: a deployment that serves no roster still
|
|
133
|
-
* has a writable settings document.
|
|
134
|
-
* @param presets - the roster rows.
|
|
135
|
-
*/
|
|
136
|
-
setPresetRoster(presets: readonly ExecutionPresetOption[]): void;
|
|
137
|
-
/**
|
|
138
|
-
* Build the face the card's slot registration injects.
|
|
139
|
-
* @returns the card's snapshot and its form actions.
|
|
140
|
-
*/
|
|
141
|
-
inject(): TaskBoardSettingsCardFace;
|
|
142
|
-
/**
|
|
143
|
-
* Release the card's form subscription and bound stores; the slot
|
|
144
|
-
* disposer calls this on teardown.
|
|
145
|
-
*/
|
|
146
|
-
dispose(): void;
|
|
147
|
-
}
|
|
148
|
-
/** Props the renderer binds for the task-board card. */
|
|
149
|
-
export type TaskBoardSettingsCardProps = PropsRuntime<'web-ui.plugin.item'> & PropsLocale<'task-board'> & InjectFace<TaskBoardSettingsCardFace> & PropsRenderSlots<'task-board.settings.section'>;
|
|
150
|
-
/**
|
|
151
|
-
* Render the task-board card.
|
|
152
|
-
* @param props - locale copy, the card snapshot, and its form actions.
|
|
153
|
-
* @returns the card.
|
|
154
|
-
*/
|
|
155
|
-
export declare function TaskBoardSettingsCard(props: TaskBoardSettingsCardProps): import("react").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cross-module-instance apply guard for the task-board client bundle.
|
|
3
|
-
*
|
|
4
|
-
* The client factory can run more than once in a single page lifetime (for
|
|
5
|
-
* example when a stale bundle is mixed with a rebuilt one while `dsh web` is
|
|
6
|
-
* restarted). Without a guard, every factory run mounts its own sidebar entry
|
|
7
|
-
* and board view, so the shell ends up showing two "task board" rows.
|
|
8
|
-
*
|
|
9
|
-
* The flag lives on globalThis so separate module instances (independent
|
|
10
|
-
* factory runs) still share one guard. First claim wins; later claims become
|
|
11
|
-
* no-ops until the claim is released (fiber unload / hot-reload) or the page
|
|
12
|
-
* reloads.
|
|
13
|
-
*/
|
|
14
|
-
declare global {
|
|
15
|
-
var __dshTaskboardApplied: boolean | undefined;
|
|
16
|
-
}
|
|
17
|
-
/** Claims the plugin apply slot. Returns true when this call won the slot. */
|
|
18
|
-
export declare function claimTaskboardApply(): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Releases the claim. Called from the client fiber cleanup so that a
|
|
21
|
-
* hot-reloaded bundle (the loader unloads the old plugin fiber and invokes
|
|
22
|
-
* the rebuilt one in the same page) can claim again instead of being
|
|
23
|
-
* silently dropped.
|
|
24
|
-
*/
|
|
25
|
-
export declare function releaseTaskboardApply(): void;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { type TaskAttachment, type TaskAttachmentKind } from '../../core/attachment.ts';
|
|
2
|
-
/** One file the user staged locally; it is uploaded when the card is saved. */
|
|
3
|
-
export interface StagedAttachment {
|
|
4
|
-
/** Stable id of the staged row (a monotonic counter, never a clock reading). */
|
|
5
|
-
id: string;
|
|
6
|
-
/** The picked file. */
|
|
7
|
-
file: File;
|
|
8
|
-
/** Whether the file is uploaded as an image or as a verbatim file. */
|
|
9
|
-
kind: TaskAttachmentKind;
|
|
10
|
-
/** Display name of the file. */
|
|
11
|
-
name: string;
|
|
12
|
-
/** Byte length of the file. */
|
|
13
|
-
bytes: number;
|
|
14
|
-
/** Declared media type of the file. */
|
|
15
|
-
mediaType: string;
|
|
16
|
-
/** Local object URL of the preview; images only. */
|
|
17
|
-
previewUrl?: string;
|
|
18
|
-
/** True while the file is being uploaded. */
|
|
19
|
-
pending?: boolean;
|
|
20
|
-
/** Why the upload failed, when it did. */
|
|
21
|
-
error?: string;
|
|
22
|
-
}
|
|
23
|
-
/** What the card will carry once the form is saved. */
|
|
24
|
-
export interface AttachmentSelection {
|
|
25
|
-
/** The attachments already stored on the card and kept by the user. */
|
|
26
|
-
persisted: TaskAttachment[];
|
|
27
|
-
/** The files staged locally and uploaded on save. */
|
|
28
|
-
staged: StagedAttachment[];
|
|
29
|
-
}
|
|
30
|
-
/** The limits the deployment publishes for attachments. */
|
|
31
|
-
export interface AttachmentLimits {
|
|
32
|
-
maxAttachments: number;
|
|
33
|
-
maxBytes: number;
|
|
34
|
-
maxTotalBytes: number;
|
|
35
|
-
/** Maximum number of IMAGES one card may carry (the official per-message budget). */
|
|
36
|
-
maxImages: number;
|
|
37
|
-
/** Maximum byte length of one image. */
|
|
38
|
-
maxImageBytes: number;
|
|
39
|
-
/** Maximum byte length of all images of one card together. */
|
|
40
|
-
maxMessageImageBytes: number;
|
|
41
|
-
}
|
|
42
|
-
/** The board's own limits, used when the deployment publishes none. */
|
|
43
|
-
export declare const DEFAULT_ATTACHMENT_LIMITS: AttachmentLimits;
|
|
44
|
-
/** A human-readable byte size. */
|
|
45
|
-
export declare function formatAttachmentBytes(bytes: number): string;
|
|
46
|
-
/**
|
|
47
|
-
* Whether a picked file is uploaded as an image.
|
|
48
|
-
*
|
|
49
|
-
* Only the raster types the official image path accepts are images; every
|
|
50
|
-
* other file is stored verbatim.
|
|
51
|
-
*/
|
|
52
|
-
export declare function attachmentKindOf(file: File): TaskAttachmentKind;
|
|
53
|
-
/**
|
|
54
|
-
* The attachment field of a card form.
|
|
55
|
-
*
|
|
56
|
-
* The component owns the local staging only: the selection it reports is what
|
|
57
|
-
* the card will carry, and the parent uploads the staged files on save.
|
|
58
|
-
*/
|
|
59
|
-
export declare function AttachmentField({ selection, onChange, limits, disabled, onError, }: {
|
|
60
|
-
/** What the card currently carries and what is staged on top of it. */
|
|
61
|
-
selection: AttachmentSelection;
|
|
62
|
-
/** Receives the new selection after every change. */
|
|
63
|
-
onChange: (selection: AttachmentSelection) => void;
|
|
64
|
-
/** The deployment limits; the board's own limits are used when absent. */
|
|
65
|
-
limits?: AttachmentLimits;
|
|
66
|
-
/** Whether the field refuses new input. */
|
|
67
|
-
disabled?: boolean;
|
|
68
|
-
/** Receives the reason a selection was refused. */
|
|
69
|
-
onError?: (message: string) => void;
|
|
70
|
-
}): import("react").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type OverlayPhase } from './overlay.tsx';
|
|
2
|
-
/** Confirm overlay props. */
|
|
3
|
-
export interface ConfirmDialogProps {
|
|
4
|
-
title: string;
|
|
5
|
-
message: string;
|
|
6
|
-
confirmLabel: string;
|
|
7
|
-
/** Render the confirm button in the danger style. */
|
|
8
|
-
danger?: boolean;
|
|
9
|
-
/** Which leg of the enter/exit motion pair the surface is on. */
|
|
10
|
-
phase?: OverlayPhase;
|
|
11
|
-
onCancel: () => void;
|
|
12
|
-
onConfirm: () => void;
|
|
13
|
-
}
|
|
14
|
-
/** Small confirm overlay. */
|
|
15
|
-
export declare function ConfirmDialog({ title, message, confirmLabel, danger, phase, onCancel, onConfirm }: ConfirmDialogProps): import("react").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { BoardController } from '../../core/controller.ts';
|
|
2
|
-
import { type TaskRecord } from '../../core/tasks.ts';
|
|
3
|
-
import type { OverlayPhase } from './overlay.tsx';
|
|
4
|
-
/** Edit-task form overlay. */
|
|
5
|
-
export declare function EditTaskModal({ controller, task, onClose, phase }: {
|
|
6
|
-
controller: BoardController;
|
|
7
|
-
task: TaskRecord;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
phase?: OverlayPhase;
|
|
10
|
-
}): import("react").JSX.Element;
|
|
11
|
-
/** Edit-tags modal: edit labels only, shown for tasks after first execution. */
|
|
12
|
-
export declare function EditTagsModal({ controller, task, onClose, phase }: {
|
|
13
|
-
controller: BoardController;
|
|
14
|
-
task: TaskRecord;
|
|
15
|
-
onClose: () => void;
|
|
16
|
-
phase?: OverlayPhase;
|
|
17
|
-
}): import("react").JSX.Element;
|