@linxin666/dsh-client-ui-task-board 0.4.16 → 0.4.18
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.i18n.yaml +2 -2
- package/README.md +16 -36
- package/README.zh.md +16 -36
- package/lib/client.js +107 -1354
- package/lib/client.js.map +1 -1
- package/lib/index.js +138 -2537
- package/lib/types/client/TaskBoardSettingsCard.d.ts +0 -20
- package/lib/types/client/board/status-key.d.ts +0 -15
- package/lib/types/client/locales.d.ts +1 -110
- package/lib/types/client/settings-entry-form.d.ts +1 -1
- package/lib/types/core/controller.d.ts +1 -1
- package/lib/types/core/extension.d.ts +4 -5
- package/lib/types/core/model-catalog.d.ts +58 -0
- package/lib/types/core/reasoning-effort.d.ts +1 -1
- package/lib/types/core/tasks.d.ts +0 -45
- package/lib/types/core/use-cases/task-update.d.ts +1 -1
- package/lib/types/host/llm-dispatch.d.ts +8 -10
- package/lib/types/host-ledger.d.ts +0 -28
- package/lib/types/host-runner.d.ts +6 -71
- package/lib/types/host-service.d.ts +17 -89
- package/lib/types/index.d.ts +0 -78
- package/lib/types/protocol.d.ts +6 -23
- package/package.json +26 -26
- package/src/client/TaskBoardSettingsCard.tsx +13 -201
- package/src/client/board/ExecutionLog.tsx +2 -5
- package/src/client/board/NewTaskModal.tsx +1 -42
- package/src/client/board/TaskBoard.tsx +2 -2
- package/src/client/board/TaskCard.tsx +2 -7
- package/src/client/board/TaskDetail.tsx +2 -37
- package/src/client/board/status-key.ts +0 -30
- package/src/client/board-settings.module.css +3 -22
- package/src/client/board.module.css +1 -104
- package/src/client/index.ts +2 -2
- package/src/client/locales.ts +6 -224
- package/src/client/settings-entry-form.ts +1 -1
- package/src/core/attachment.ts +1 -0
- package/src/core/controller.ts +1 -3
- package/src/core/extension.ts +4 -5
- package/src/core/freeze-snapshot.ts +3 -3
- package/src/core/model-catalog.ts +114 -0
- package/src/core/reasoning-effort.ts +1 -1
- package/src/core/store.ts +22 -17
- package/src/core/tasks.ts +0 -53
- package/src/core/use-cases/task-update.ts +1 -8
- package/src/host/agent-tools.ts +1 -15
- package/src/host/extension-registry.ts +2 -2
- package/src/host/llm-dispatch.ts +8 -10
- package/src/host-ledger.ts +3 -89
- package/src/host-routes.ts +4 -4
- package/src/host-runner.ts +13 -139
- package/src/host-service.ts +51 -266
- package/src/index.ts +9 -163
- package/src/protocol.ts +9 -44
- package/lib/types/client/board/VerificationReport.d.ts +0 -10
- package/lib/types/core/verification-budget.d.ts +0 -52
- package/lib/types/core/verification.d.ts +0 -753
- 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/src/client/board/VerificationReport.tsx +0 -361
- package/src/core/verification-budget.ts +0 -115
- package/src/core/verification.ts +0 -1594
- package/src/host/verification-gate.ts +0 -487
- package/src/host/verification-runner.ts +0 -702
- package/src/host/workspace-evidence.ts +0 -176
|
@@ -7,33 +7,9 @@ import type { CardDefaults } from './core/card-defaults.ts';
|
|
|
7
7
|
import { TaskBoardExtensionRegistry } from './host/extension-registry.ts';
|
|
8
8
|
import type { TaskBoardExtension } from './core/extension.ts';
|
|
9
9
|
import { type ScheduleMode } from './core/tasks.ts';
|
|
10
|
-
import {
|
|
10
|
+
import type { ModelCatalogView } from './core/model-catalog.ts';
|
|
11
11
|
import type { TaskPermission } from './core/handover.ts';
|
|
12
12
|
import { type ModelInfoResolver, type TaskBoardAttachmentStore } from './host/attachments.ts';
|
|
13
|
-
/**
|
|
14
|
-
* Why an enforced goal execution settled failed while its acceptance DID run:
|
|
15
|
-
* attempts were recorded and none of them passed. The judge answered about the
|
|
16
|
-
* work and the work did not pass.
|
|
17
|
-
*/
|
|
18
|
-
export declare const NO_MATCHING_PASS_VERIFICATION_REASON = "goal \u9A8C\u6536\uFF1A\u672C\u6B21\u6267\u884C\u6CA1\u6709\u5339\u914D\u7684\u9A8C\u6536\u901A\u8FC7\u8BB0\u5F55\uFF08\u9A8C\u6536\u672A\u8FD0\u884C\u3001\u672A\u901A\u8FC7\u6216\u62A5\u544A\u6765\u81EA\u5176\u4ED6\u6267\u884C\uFF09\uFF0C\u6309\u672A\u9A8C\u6536\u5224\u5931\u8D25\u3002";
|
|
19
|
-
/**
|
|
20
|
-
* Why an enforced goal execution settled failed with ZERO acceptance records:
|
|
21
|
-
* the gate was never opened, so the judge never ran and nothing was ever judged
|
|
22
|
-
* (issue #1837). The root cause is a session that declared completion in prose
|
|
23
|
-
* instead of calling `update_goal(action: complete)` — a tool-adherence problem,
|
|
24
|
-
* NOT a quality verdict on the delivery — so this reason says so and keeps the
|
|
25
|
-
* two investigation directions apart.
|
|
26
|
-
*/
|
|
27
|
-
export declare const NEVER_INVOKED_VERIFICATION_REASON = "goal \u9A8C\u6536\u672A\u89E6\u53D1\uFF1A\u672C\u6B21\u6267\u884C\u6CA1\u6709\u4EFB\u4F55\u9A8C\u6536\u8BB0\u5F55\uFF0C\u9A8C\u6536\u95E8\u4ECE\u672A\u6253\u5F00\u2014\u2014\u6267\u884C\u4F1A\u8BDD\u6CA1\u6709\u8C03\u7528 update_goal(action: complete) \u6765\u5B8C\u6210\u76EE\u6807\uFF08\u5E38\u89C1\u4E8E\u53EA\u5728\u56DE\u590D\u91CC\u5BA3\u544A\u5B8C\u6210\uFF09\u3002\u8FD9\u4E0D\u662F\u8D28\u91CF\u5224\u8D1F\uFF1A\u4EA4\u4ED8\u4ECE\u672A\u88AB\u88C1\u5224\u8BC4\u4F30\u3002";
|
|
28
|
-
/**
|
|
29
|
-
* Why an enforced goal execution settled failed while its ONLY acceptance
|
|
30
|
-
* records are INVALID: the judge answered but could not locate its own
|
|
31
|
-
* rejection, so the board stopped calling it. This is NOT an evidence-backed
|
|
32
|
-
* quality veto — the requirement is explicit that such a run must not be
|
|
33
|
-
* described as one — but the execution still has no matching pass, so it ends
|
|
34
|
-
* for lack of one, and the reason names that precisely.
|
|
35
|
-
*/
|
|
36
|
-
export declare const INVALID_ONLY_VERIFICATION_REASON = "goal \u9A8C\u6536\u65E0\u6548\uFF1A\u672C\u6B21\u6267\u884C\u53EA\u8BB0\u5F55\u4E86\u65E0\u6548\u9A8C\u6536\uFF08\u88C1\u5224\u672A\u80FD\u7ED9\u51FA\u4E0E\u4EFB\u52A1\u8981\u6C42\u5BF9\u5E94\u3001\u4E14\u53EF\u5B9A\u4F4D\u5230\u672C\u6B21\u8BC1\u636E\u7684\u5426\u51B3\u4F9D\u636E\uFF09\uFF0C\u770B\u677F\u5DF2\u505C\u6B62\u8C03\u7528\u88C1\u5224\u3002\u8FD9**\u4E0D\u662F**\u6709\u8BC1\u636E\u7684\u8D28\u91CF\u5224\u8D1F\uFF1A\u9A8C\u6536\u672C\u8EAB\u4E0D\u53EF\u7528\uFF0C\u672C\u6B21\u8FD0\u884C\u56E0\u6CA1\u6709\u5339\u914D\u7684\u901A\u8FC7\u8BB0\u5F55\u800C\u7ED3\u675F\u3002\u8BF7\u68C0\u67E5\u9A8C\u6536\u73AF\u5883\u4E0E\u8BC1\u636E\u53EF\u89C1\u6027\uFF0C\u6216\u7528 task_board_manage(action=reset-verification) \u6E05\u9664\u8BB0\u5F55\u7684\u65E0\u6548\u9A8C\u6536\u540E\u91CD\u65B0\u5B8C\u6210\u76EE\u6807\u3002";
|
|
37
13
|
/**
|
|
38
14
|
* Provenance of one cron-triggered run: when the rule fired and the zone
|
|
39
15
|
* its wall clock was read in. Passed into every launched prompt of that run so
|
|
@@ -93,11 +69,9 @@ export declare class TaskBoardHostService {
|
|
|
93
69
|
*/
|
|
94
70
|
private readonly unreadablePolls;
|
|
95
71
|
private preventIdleSleep;
|
|
96
|
-
|
|
97
|
-
private readonly
|
|
72
|
+
/** Live reader of the host model catalog; frozen per run group. */
|
|
73
|
+
private readonly modelCatalog;
|
|
98
74
|
private readonly timers;
|
|
99
|
-
/** Live reader of the global native-/goal switch; frozen per execution. */
|
|
100
|
-
private readonly goalRunEnabled;
|
|
101
75
|
/** Live reader of the deployment's new-card defaults (published and applied per create). */
|
|
102
76
|
private readonly cardDefaults;
|
|
103
77
|
/**
|
|
@@ -151,21 +125,12 @@ export declare class TaskBoardHostService {
|
|
|
151
125
|
cardDefaults?: () => CardDefaults;
|
|
152
126
|
timers?: HostTimerFace;
|
|
153
127
|
/**
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* default for every deployment that never configured it.
|
|
159
|
-
*/
|
|
160
|
-
goalRunEnabled?: () => boolean;
|
|
161
|
-
/**
|
|
162
|
-
* Live acceptance settings (volatile config reads). Absent keeps goal
|
|
163
|
-
* acceptance OFF for every execution this service opens, which is what a
|
|
164
|
-
* programmatic mount without the settings domain gets.
|
|
128
|
+
* The host model catalog the card routes and reasoning levels resolve
|
|
129
|
+
* against, read live so a deployment that mounts the model service after the
|
|
130
|
+
* board still gains it. Absent means "no capability evidence": a pinned
|
|
131
|
+
* effort is then not sent at all.
|
|
165
132
|
*/
|
|
166
|
-
|
|
167
|
-
/** The host model catalog the acceptance contract resolves its route from. */
|
|
168
|
-
verificationCatalog?: () => Promise<ModelCatalogView | undefined>;
|
|
133
|
+
modelCatalog?: () => Promise<ModelCatalogView | undefined>;
|
|
169
134
|
/**
|
|
170
135
|
* Live admission width for run launches: the number of launches (one
|
|
171
136
|
* session creation and its prompt each) that may be in flight at once. Read
|
|
@@ -233,17 +198,11 @@ export declare class TaskBoardHostService {
|
|
|
233
198
|
*/
|
|
234
199
|
registerExtension(extension: TaskBoardExtension): () => void;
|
|
235
200
|
/**
|
|
236
|
-
* The
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
* The card shows the RESOLVED route, not the raw configuration, so "inherit
|
|
240
|
-
* host" reads as the concrete model and reasoning level the next execution
|
|
241
|
-
* will actually freeze, including any recorded effort fallback.
|
|
242
|
-
* @returns the resolved acceptance options.
|
|
201
|
+
* The host model catalog the settings card's model and reasoning-level
|
|
202
|
+
* choices come from.
|
|
203
|
+
* @returns the catalog, or an empty one when this deployment serves none.
|
|
243
204
|
*/
|
|
244
|
-
|
|
245
|
-
settings: VerificationSettings;
|
|
246
|
-
contract: VerificationContract;
|
|
205
|
+
modelCatalogOptions(): Promise<{
|
|
247
206
|
catalog: ModelCatalogView;
|
|
248
207
|
}>;
|
|
249
208
|
/** SSE frame payload; deliberately skips the tasks deep-clone of {@link snapshot}. */
|
|
@@ -320,18 +279,16 @@ export declare class TaskBoardHostService {
|
|
|
320
279
|
dispose(): void;
|
|
321
280
|
private launch;
|
|
322
281
|
/**
|
|
323
|
-
* Read the
|
|
324
|
-
*
|
|
325
|
-
* switch, then the model catalog that both resolves the contract's route and
|
|
326
|
-
* decides the reasoning effort the session may be given.
|
|
282
|
+
* Read the model catalog one run group freezes. The catalog is what decides
|
|
283
|
+
* whether a card's pinned reasoning level may be sent to the session.
|
|
327
284
|
*/
|
|
328
|
-
private
|
|
285
|
+
private readRunCatalog;
|
|
329
286
|
/**
|
|
330
|
-
* A {@link
|
|
287
|
+
* A {@link RunCatalogFreezer} that reads once and hands the SAME value to
|
|
331
288
|
* every later caller of one run group. A read that fails is not cached: the
|
|
332
289
|
* next member reads again, exactly as a per-execution read would have.
|
|
333
290
|
*/
|
|
334
|
-
private
|
|
291
|
+
private catalogFreezerForRunGroup;
|
|
335
292
|
/**
|
|
336
293
|
* Give back the occurrence a launch consumed, for a launch that never reached
|
|
337
294
|
* a session: a failed launch, or one the Host abandoned while it was still
|
|
@@ -393,30 +350,6 @@ export declare class TaskBoardHostService {
|
|
|
393
350
|
* each streak is logged, so the Host log names the session.
|
|
394
351
|
*/
|
|
395
352
|
private settleAndNotify;
|
|
396
|
-
/**
|
|
397
|
-
* Remove one execution's acceptance-only detail after it PASSED and settled.
|
|
398
|
-
*
|
|
399
|
-
* Deliberately narrow: only the acceptance mechanism's own per-attempt
|
|
400
|
-
* material (findings, invalid diagnostics, the bulky judge side) is removed,
|
|
401
|
-
* and only for THIS execution, keyed by its own id in the ledger it belongs
|
|
402
|
-
* to. No user file, task artifact, raw session history or other execution's
|
|
403
|
-
* record is read or written. Idempotent by the record's own state, and it
|
|
404
|
-
* clearly never touches a run that did not pass (the caller's guard) — a
|
|
405
|
-
* failed or invalid execution keeps everything a repair or a review needs.
|
|
406
|
-
* @param taskId - the task whose execution settled.
|
|
407
|
-
* @param executionId - the settled execution.
|
|
408
|
-
*/
|
|
409
|
-
private cleanupAcceptanceDetail;
|
|
410
|
-
/**
|
|
411
|
-
* Catch-up pass: clean the acceptance detail of every execution that PASSED
|
|
412
|
-
* and settled but whose cleanup did not finish (a crash, a failed write, a
|
|
413
|
-
* Host killed mid-cleanup).
|
|
414
|
-
*
|
|
415
|
-
* The same bounds as any other cleanup apply — only a real pass record on a
|
|
416
|
-
* settled execution is touched — so this can never delete material belonging
|
|
417
|
-
* to an execution that did not pass, and never a user file.
|
|
418
|
-
*/
|
|
419
|
-
private cleanupPendingAcceptanceDetail;
|
|
420
353
|
private noteUnreadableInspection;
|
|
421
354
|
/** Drop the armed schedule timer and forget its target. */
|
|
422
355
|
private clearScheduleTimer;
|
|
@@ -455,11 +388,6 @@ export declare class TaskBoardHostService {
|
|
|
455
388
|
* concurrent runs rather than across the members of one run.
|
|
456
389
|
*/
|
|
457
390
|
private dispatchRuns;
|
|
458
|
-
/**
|
|
459
|
-
* Move one execution's applicability without touching its frozen contract or
|
|
460
|
-
* its recorded attempts (used when the run's goal form becomes known).
|
|
461
|
-
*/
|
|
462
|
-
private setApplicability;
|
|
463
391
|
private scheduleLaunch;
|
|
464
392
|
/**
|
|
465
393
|
* Hand one launch to the admission queue, or abandon it on the spot when the
|
package/lib/types/index.d.ts
CHANGED
|
@@ -104,22 +104,6 @@ export interface Config {
|
|
|
104
104
|
* is skipped onto the scheduler with its run budget untouched.
|
|
105
105
|
*/
|
|
106
106
|
spendBudgetTokens?: Volatile<number>;
|
|
107
|
-
/**
|
|
108
|
-
* GLOBAL native /goal switch (default OFF), the master control over whether
|
|
109
|
-
* this board starts a run with dsh's built-in /goal at all. A run uses native
|
|
110
|
-
* /goal only when THIS is on AND the task's own `goalRun` is not off; while
|
|
111
|
-
* it is off every task runs one plain turn.
|
|
112
|
-
*
|
|
113
|
-
* The value is frozen when an execution starts, so toggling it only affects
|
|
114
|
-
* executions that begin afterwards and never re-writes a task's stored
|
|
115
|
-
* `goalRun` preference. A run that consequently does not execute native
|
|
116
|
-
* /goal is marked as such (its acceptance applicability is `goal-disabled`)
|
|
117
|
-
* and is never reported as a passed goal acceptance or failed for lacking a
|
|
118
|
-
* completion call. Independent of `goalVerification`; acceptance governs the
|
|
119
|
-
* completing call of a goal-form run, this switch governs whether the run
|
|
120
|
-
* becomes a goal run.
|
|
121
|
-
*/
|
|
122
|
-
goalRunEnabled?: Volatile<boolean>;
|
|
123
107
|
/**
|
|
124
108
|
* Agent preset a NEW card starts from (volatile, default blank = not set).
|
|
125
109
|
* A prefill, never a pin: the create dialog opens with it selected, the
|
|
@@ -147,48 +131,6 @@ export interface Config {
|
|
|
147
131
|
* model, and a blank `cardDefaultModel` makes it inert.
|
|
148
132
|
*/
|
|
149
133
|
cardDefaultReasoningEffort?: Volatile<string>;
|
|
150
|
-
/**
|
|
151
|
-
* Goal acceptance for executions this board starts (default ON). When on,
|
|
152
|
-
* update_goal(action: complete) inside a task execution is refused until an
|
|
153
|
-
* acceptance pass is recorded for that execution: the three coding criteria,
|
|
154
|
-
* a 0.65 threshold, two rounds per criterion with the A/B slots swapped, and
|
|
155
|
-
* at most two acceptances per execution — the first failure returns its
|
|
156
|
-
* findings to the fixing agent, the second ends the cycle. The switch only
|
|
157
|
-
* affects goal-form executions of the board; plain chat and a task pinned to
|
|
158
|
-
* goalRun: false are untouched. When a separate third-party verifier also
|
|
159
|
-
* runs its own automatic acceptance, both judges score independently: this
|
|
160
|
-
* one gates completion, the other only steers, and no public interface lets
|
|
161
|
-
* the two share a verdict.
|
|
162
|
-
*/
|
|
163
|
-
goalVerification?: Volatile<boolean>;
|
|
164
|
-
/**
|
|
165
|
-
* Judge model for goal acceptance as provider/model. Blank inherits the HOST's
|
|
166
|
-
* own model catalog default — never the card's pinned execution model.
|
|
167
|
-
*/
|
|
168
|
-
goalVerificationModel?: Volatile<string>;
|
|
169
|
-
/**
|
|
170
|
-
* Reasoning effort for the judge. Blank inherits the host default level; an
|
|
171
|
-
* effort the resolved model does not declare is dropped instead of being
|
|
172
|
-
* sent, and the fallback to the model's own default is reported.
|
|
173
|
-
*/
|
|
174
|
-
goalVerificationReasoningEffort?: Volatile<string>;
|
|
175
|
-
/**
|
|
176
|
-
* Ceiling of ONE judge request of a goal acceptance, in seconds
|
|
177
|
-
* (30..600, default 150). One acceptance issues six judge requests (three
|
|
178
|
-
* criteria times two rounds), so a ceiling that is too small turns a slow but
|
|
179
|
-
* healthy judge route into a wall of timeouts, and every timeout was charged
|
|
180
|
-
* as an acceptance anomaly. Raise it for a reasoning model reading a long
|
|
181
|
-
* trace.
|
|
182
|
-
*/
|
|
183
|
-
goalVerificationCallTimeoutSeconds?: Volatile<number>;
|
|
184
|
-
/**
|
|
185
|
-
* Total ceiling of ONE goal acceptance attempt, in seconds (120..1800,
|
|
186
|
-
* default eight times the per-call default). Keep it at or above
|
|
187
|
-
* `goalVerificationCallTimeoutSeconds` times six or an acceptance can never
|
|
188
|
-
* finish: the attempt then ends early with a budget stop that judges nothing
|
|
189
|
-
* and spends no acceptance budget.
|
|
190
|
-
*/
|
|
191
|
-
goalVerificationBudgetSeconds?: Volatile<number>;
|
|
192
134
|
}
|
|
193
135
|
/**
|
|
194
136
|
* Profile-patch shape of {@link Config}: what the Host validates the row's
|
|
@@ -223,8 +165,6 @@ export interface ConfigInput {
|
|
|
223
165
|
runLaunchWidth?: number;
|
|
224
166
|
/** Daily token ceiling for board runs; 0 disables the gate. */
|
|
225
167
|
spendBudgetTokens?: number;
|
|
226
|
-
/** Global native /goal switch; default off, frozen per execution. */
|
|
227
|
-
goalRunEnabled?: boolean;
|
|
228
168
|
/** Agent preset a new card starts from; blank = not set. */
|
|
229
169
|
cardDefaultMode?: string;
|
|
230
170
|
/** Permission a new card starts from; blank = not set. */
|
|
@@ -233,26 +173,8 @@ export interface ConfigInput {
|
|
|
233
173
|
cardDefaultModel?: string;
|
|
234
174
|
/** Reasoning level a new card starts from; blank = not set. */
|
|
235
175
|
cardDefaultReasoningEffort?: string;
|
|
236
|
-
/** Goal acceptance switch. */
|
|
237
|
-
goalVerification?: boolean;
|
|
238
|
-
/** Judge model route for goal acceptance; blank inherits the host default. */
|
|
239
|
-
goalVerificationModel?: string;
|
|
240
|
-
/** Judge reasoning effort; blank inherits the host default. */
|
|
241
|
-
goalVerificationReasoningEffort?: string;
|
|
242
|
-
/** Ceiling of one judge request of a goal acceptance, in seconds. */
|
|
243
|
-
goalVerificationCallTimeoutSeconds?: number;
|
|
244
|
-
/** Total ceiling of one goal acceptance attempt, in seconds. */
|
|
245
|
-
goalVerificationBudgetSeconds?: number;
|
|
246
176
|
}
|
|
247
177
|
export declare const Config: z<ConfigInput, Config>;
|
|
248
|
-
/** Schema default for the goal-acceptance switch, re-read for hand-built contexts. */
|
|
249
|
-
export declare const DEFAULT_GOAL_VERIFICATION = true;
|
|
250
|
-
/**
|
|
251
|
-
* Schema default for the GLOBAL native-/goal switch, re-read for hand-built
|
|
252
|
-
* contexts. Deliberately false: a deployment that never configured it (and
|
|
253
|
-
* every card written before the option existed) runs plain single turns.
|
|
254
|
-
*/
|
|
255
|
-
export declare const DEFAULT_GOAL_RUN = false;
|
|
256
178
|
declare module '@deepseek-ai/cordis' {
|
|
257
179
|
interface Events {
|
|
258
180
|
/**
|
package/lib/types/protocol.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { TaskUpdatePatch } from './core/use-cases/task-update.ts';
|
|
|
2
2
|
import type { SetSchedulePatch } from './core/use-cases/task-schedule.ts';
|
|
3
3
|
import { type NewTaskInput, type TaskPermission, type TaskRecord, type TaskStatus } from './core/tasks.ts';
|
|
4
4
|
import { type TaskBoardExtensionPayload } from './core/extension.ts';
|
|
5
|
-
import {
|
|
5
|
+
import type { ModelCatalogView } from './core/model-catalog.ts';
|
|
6
6
|
export declare const TASK_BOARD_SCHEMA_VERSION: 7;
|
|
7
7
|
/** Ledger documents written before v7; loaded once and migrated on startup. */
|
|
8
8
|
export declare const TASK_BOARD_LEGACY_SCHEMA_VERSION: 6;
|
|
@@ -64,14 +64,6 @@ export interface TaskBoardSnapshot {
|
|
|
64
64
|
* disable the subtask controls; the Host ledger is the authority.
|
|
65
65
|
*/
|
|
66
66
|
maxSubtaskDepth?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Live GLOBAL native-/goal switch. The browser uses it to disable the
|
|
69
|
-
* task-level option (and explain that the global switch must be turned on
|
|
70
|
-
* first) WITHOUT rewriting anyone's stored per-task preference; the Host
|
|
71
|
-
* freezes its own read per execution, so this mirror never governs a run in
|
|
72
|
-
* flight.
|
|
73
|
-
*/
|
|
74
|
-
goalRunEnabled?: boolean;
|
|
75
67
|
/**
|
|
76
68
|
* New-card defaults this deployment configures: what the create dialog opens
|
|
77
69
|
* with, and what the create path fills an omitted target from when the caller
|
|
@@ -112,16 +104,12 @@ export interface TaskBoardSnapshot {
|
|
|
112
104
|
};
|
|
113
105
|
}
|
|
114
106
|
/**
|
|
115
|
-
* Body of `GET {TASK_BOARD_API_PREFIX}/
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* credential material — model routes and level ids only.
|
|
107
|
+
* Body of `GET {TASK_BOARD_API_PREFIX}/model-catalog`: the host model catalog the
|
|
108
|
+
* board's model and reasoning-level choices come from. Served through the same
|
|
109
|
+
* loopback / authenticated-proxy guard as the rest of the board API, and it
|
|
110
|
+
* carries no credential material — model routes and level ids only.
|
|
120
111
|
*/
|
|
121
|
-
export interface
|
|
122
|
-
settings: VerificationSettings;
|
|
123
|
-
/** The RESOLVED contract, so the card can show what the next execution freezes. */
|
|
124
|
-
contract: VerificationContract;
|
|
112
|
+
export interface TaskBoardModelCatalog {
|
|
125
113
|
catalog: ModelCatalogView;
|
|
126
114
|
}
|
|
127
115
|
/** SSE event frame: revision/scheduler/power only, never the task list. */
|
|
@@ -178,11 +166,6 @@ export type TaskBoardAction = {
|
|
|
178
166
|
kind: 'settle';
|
|
179
167
|
taskId: string;
|
|
180
168
|
}
|
|
181
|
-
/** Clear the acceptance anomalies recorded on a card's open execution (issue #1828). */
|
|
182
|
-
| {
|
|
183
|
-
kind: 'reset-verification';
|
|
184
|
-
taskId: string;
|
|
185
|
-
}
|
|
186
169
|
/**
|
|
187
170
|
* Record an outcome an agent OUTSIDE the Host produced (issue #1826).
|
|
188
171
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linxin666/dsh-client-ui-task-board",
|
|
3
3
|
"description": "Host-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.18",
|
|
5
5
|
"icon": "icon.svg",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dsh": {
|
|
24
24
|
"engines": {
|
|
25
|
-
"dsh": ">=0.2.2-rc.
|
|
25
|
+
"dsh": ">=0.2.2-rc.2"
|
|
26
26
|
},
|
|
27
27
|
"bundle": {
|
|
28
28
|
"patch": "./cordis.patch.yml"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@deepseek-ai/dsh": ">=0.2.2-rc.
|
|
45
|
+
"@deepseek-ai/dsh": ">=0.2.2-rc.2",
|
|
46
46
|
"react": "^18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
@@ -51,29 +51,29 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@deepseek-ai/cordis": "^4.1.0",
|
|
54
|
-
"@deepseek-ai/dsh-agent": "^0.2.2-rc.
|
|
55
|
-
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.2-rc.
|
|
56
|
-
"@deepseek-ai/dsh-attachment": "^0.2.2-rc.
|
|
57
|
-
"@deepseek-ai/dsh-api-gateway": "^0.2.2-rc.
|
|
58
|
-
"@deepseek-ai/dsh-api-remotes": "^0.2.2-rc.
|
|
59
|
-
"@deepseek-ai/dsh-api-session-controller": "^0.2.2-rc.
|
|
60
|
-
"@deepseek-ai/dsh-api-workspace-controller": "^0.2.2-rc.
|
|
61
|
-
"@deepseek-ai/dsh-client-connection": "^0.2.2-rc.
|
|
62
|
-
"@deepseek-ai/dsh-client-locale": "^0.2.2-rc.
|
|
63
|
-
"@deepseek-ai/dsh-client-store": "^0.2.2-rc.
|
|
64
|
-
"@deepseek-ai/dsh-client-ui-layout": "^0.2.2-rc.
|
|
65
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.2.2-rc.
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "^0.2.2-rc.
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-workspace": "^0.2.2-rc.
|
|
70
|
-
"@deepseek-ai/dsh-commands": "^0.2.2-rc.
|
|
71
|
-
"@deepseek-ai/dsh-host-webserver": "^0.2.2-rc.
|
|
72
|
-
"@deepseek-ai/dsh-llm": "^0.2.2-rc.
|
|
73
|
-
"@deepseek-ai/dsh-settings": "^0.2.2-rc.
|
|
74
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.
|
|
75
|
-
"@deepseek-ai/dsh-tools": "^0.2.2-rc.
|
|
76
|
-
"@deepseek-ai/dsh-workspace": "^0.2.2-rc.
|
|
54
|
+
"@deepseek-ai/dsh-agent": "^0.2.2-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.2-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-attachment": "^0.2.2-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-api-gateway": "^0.2.2-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-api-remotes": "^0.2.2-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.2.2-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-api-workspace-controller": "^0.2.2-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-client-connection": "^0.2.2-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-client-locale": "^0.2.2-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-store": "^0.2.2-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-layout": "^0.2.2-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.2.2-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "^0.2.2-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-workspace": "^0.2.2-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-commands": "^0.2.2-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-host-webserver": "^0.2.2-rc.2",
|
|
72
|
+
"@deepseek-ai/dsh-llm": "^0.2.2-rc.2",
|
|
73
|
+
"@deepseek-ai/dsh-settings": "^0.2.2-rc.2",
|
|
74
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.2",
|
|
75
|
+
"@deepseek-ai/dsh-tools": "^0.2.2-rc.2",
|
|
76
|
+
"@deepseek-ai/dsh-workspace": "^0.2.2-rc.2",
|
|
77
77
|
"@types/node": "^22.20.0",
|
|
78
78
|
"@types/react": "~18.3.1",
|
|
79
79
|
"@types/react-dom": "^18.3.5",
|