@linxin666/dsh-client-ui-task-board 0.4.8 → 0.4.9
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 +28 -22
- package/README.zh.md +28 -22
- package/lib/client.js +1435 -682
- package/lib/client.js.map +1 -1
- package/lib/index.js +356 -366
- package/lib/types/client/PluginSettingsCard.d.ts +21 -0
- package/lib/types/client/TaskBoardSettingsCard.d.ts +7 -0
- package/lib/types/client/board/ExecutionLog.d.ts +16 -0
- package/lib/types/client/board/TaskForm.d.ts +4 -0
- package/lib/types/client/board/VerificationReport.d.ts +2 -15
- package/lib/types/client/body-mutations.d.ts +45 -0
- package/lib/types/client/locales.d.ts +42 -6
- package/lib/types/client/suppress-schedule-row.d.ts +86 -0
- package/lib/types/core/controller.d.ts +1 -1
- package/lib/types/core/subtask.d.ts +59 -49
- package/lib/types/core/tasks.d.ts +5 -8
- package/lib/types/core/use-cases/task-update.d.ts +1 -1
- package/lib/types/core/workspace-target.d.ts +23 -3
- package/lib/types/host/launch-admission.d.ts +8 -9
- package/lib/types/host-ledger.d.ts +72 -48
- package/lib/types/host-routes.d.ts +49 -0
- package/lib/types/host-runner.d.ts +20 -10
- package/lib/types/host-service.d.ts +7 -50
- package/lib/types/index.d.ts +61 -63
- package/lib/types/loopback.d.ts +21 -0
- package/lib/types/protocol.d.ts +0 -5
- package/lib/types/tool-surface.d.ts +1 -0
- package/package.json +25 -25
- package/src/client/CardDefaultPresetField.tsx +1 -1
- package/src/client/PluginSettingsCard.tsx +78 -18
- package/src/client/TaskBoardSettingsCard.tsx +68 -25
- package/src/client/board/ExecutionLog.tsx +140 -0
- package/src/client/board/LinkSubtaskModal.tsx +1 -9
- package/src/client/board/NewTaskModal.tsx +2 -11
- package/src/client/board/TaskCard.tsx +45 -23
- package/src/client/board/TaskDetail.tsx +407 -261
- package/src/client/board/TaskForm.tsx +19 -4
- package/src/client/board/VerificationReport.tsx +143 -104
- package/src/client/board/task-markdown.module.css +11 -8
- package/src/client/board-settings.module.css +35 -7
- package/src/client/board.module.css +855 -115
- package/src/client/body-mutations.ts +133 -0
- package/src/client/index.ts +10 -0
- package/src/client/locales.ts +97 -24
- package/src/client/settings-card.module.css +71 -10
- package/src/client/suppress-schedule-row.ts +198 -0
- package/src/core/controller.ts +1 -3
- package/src/core/subtask.ts +81 -76
- package/src/core/tasks.ts +5 -9
- package/src/core/use-cases/task-update.ts +1 -3
- package/src/core/workspace-target.ts +27 -3
- package/src/host/agent-tools.ts +14 -15
- package/src/host/launch-admission.ts +8 -9
- package/src/host-ledger.ts +158 -125
- package/src/host-routes.ts +65 -2
- package/src/host-runner.ts +53 -28
- package/src/host-service.ts +42 -127
- package/src/index.ts +84 -106
- package/src/loopback.ts +32 -0
- package/src/protocol.ts +2 -9
- package/src/tool-surface.ts +1 -0
- package/lib/types/client/board/team-run-promotion.d.ts +0 -26
- package/src/client/board/team-run-promotion.ts +0 -39
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* NewTaskModal and the EditTaskModal. State stays in the owning modal; these
|
|
5
5
|
* are controlled components.
|
|
6
6
|
*/
|
|
7
|
-
import { useState, type ReactNode } from 'react'
|
|
7
|
+
import { useId, useState, type ReactNode } from 'react'
|
|
8
8
|
import { TAG_NAME_MAX_LENGTH, TAG_PROMPT_MAX_LENGTH, TASK_TAG_LIMIT, normalizeTags, type TaskTag } from '../../core/tasks.ts'
|
|
9
9
|
import { t } from '../locales.ts'
|
|
10
10
|
import css from '../board.module.css'
|
|
11
11
|
import { IconClose, IconPlus } from './icons.tsx'
|
|
12
|
-
import { useDialog, type OverlayPhase } from './overlay.tsx'
|
|
12
|
+
import { useDialog, usePresence, type OverlayPhase } from './overlay.tsx'
|
|
13
13
|
|
|
14
14
|
/** DOM id shared by the tag-name inputs and their datalist (one board at a time). */
|
|
15
15
|
const TAG_NAME_LIST_ID = 'dsh-task-board-tag-names'
|
|
@@ -88,6 +88,10 @@ export function ModalShell({
|
|
|
88
88
|
* region keeps a one-line summary of the values it holds, so nothing is hidden
|
|
89
89
|
* without a trace; a region holding a blocking error is forced open by its
|
|
90
90
|
* owner (forceOpen) rather than reporting the error out of sight.
|
|
91
|
+
*
|
|
92
|
+
* The body is the panel fold's body under another name: it enters and leaves on
|
|
93
|
+
* the same animation pair, and `usePresence` keeps it mounted through the exit
|
|
94
|
+
* leg so collapsing never snaps.
|
|
91
95
|
*/
|
|
92
96
|
export function CollapsibleSection({
|
|
93
97
|
title,
|
|
@@ -106,13 +110,20 @@ export function CollapsibleSection({
|
|
|
106
110
|
children: ReactNode
|
|
107
111
|
}) {
|
|
108
112
|
const [open, setOpen] = useState(defaultOpen)
|
|
113
|
+
const panelId = useId()
|
|
109
114
|
const expanded = forceOpen || open
|
|
115
|
+
const presence = usePresence(expanded)
|
|
116
|
+
// The one-line preview is also the row's title, so the line that ellipsizes
|
|
117
|
+
// in the header stays readable in full (same rule as the panel's folds).
|
|
118
|
+
const fullLine = summary ?? ''
|
|
110
119
|
return (
|
|
111
120
|
<section className={css.formSection} data-dsh-part="form-section" data-open={expanded ? 'true' : undefined}>
|
|
112
121
|
<button
|
|
113
122
|
type="button"
|
|
114
123
|
className={css.formSectionHeader}
|
|
115
124
|
aria-expanded={expanded}
|
|
125
|
+
aria-controls={panelId}
|
|
126
|
+
title={fullLine === '' ? undefined : fullLine}
|
|
116
127
|
onClick={() => { setOpen(value => !value) }}
|
|
117
128
|
>
|
|
118
129
|
<span className={css.formSectionChevron} aria-hidden="true" />
|
|
@@ -121,7 +132,11 @@ export function CollapsibleSection({
|
|
|
121
132
|
<span className={css.formSectionSummary}>{summary}</span>
|
|
122
133
|
)}
|
|
123
134
|
</button>
|
|
124
|
-
{
|
|
135
|
+
{presence.mounted && (
|
|
136
|
+
<div className={css.formSectionBody} id={panelId} data-state={presence.phase}>
|
|
137
|
+
{children}
|
|
138
|
+
</div>
|
|
139
|
+
)}
|
|
125
140
|
</section>
|
|
126
141
|
)
|
|
127
142
|
}
|
|
@@ -231,7 +246,7 @@ export function TaskTagFields({
|
|
|
231
246
|
/>
|
|
232
247
|
<button
|
|
233
248
|
type="button"
|
|
234
|
-
className={css.
|
|
249
|
+
className={css.iconButton}
|
|
235
250
|
aria-label={t('new.tagRemove', { name: tag.name })}
|
|
236
251
|
onClick={() => { onChange(tags.filter((_, position) => position !== index)) }}
|
|
237
252
|
>
|
|
@@ -3,15 +3,18 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Rendered inside the execution-history row, so a rerun or a scheduled run
|
|
5
5
|
* keeps its OWN report and a later cycle never overwrites an earlier verdict.
|
|
6
|
-
*
|
|
7
|
-
* the
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* The row itself only carries the verdict: the judge route, the acceptance
|
|
7
|
+
* count, the per-criterion scores and their threshold, the findings, the
|
|
8
|
+
* evidence scope and the token usage sit behind one disclosure, because the
|
|
9
|
+
* same machine explanation repeated on all thirty-four rows of a card was what
|
|
10
|
+
* buried the row a reader needed. Expanding it shows every field the board
|
|
11
|
+
* decided on — nothing is dropped, only folded.
|
|
10
12
|
*
|
|
11
13
|
* Deliberately adds no new `data-dsh-part` value: the part enum is owned by the
|
|
12
14
|
* cross-repository semantic-attribute contract, and this report reuses the
|
|
13
15
|
* execution row's existing markup instead of extending that enum.
|
|
14
16
|
*/
|
|
17
|
+
import { useId, useState } from 'react'
|
|
15
18
|
import {
|
|
16
19
|
MAX_INVALID_ATTEMPTS,
|
|
17
20
|
MAX_QUALITY_ATTEMPTS,
|
|
@@ -29,6 +32,7 @@ import {
|
|
|
29
32
|
import { t } from '../locales.ts'
|
|
30
33
|
import type { TaskBoardKey } from '../locales.ts'
|
|
31
34
|
import css from '../board.module.css'
|
|
35
|
+
import { usePresence } from './overlay.tsx'
|
|
32
36
|
|
|
33
37
|
/** Render one 0..1 score as a percentage. */
|
|
34
38
|
function percent(value: number): string {
|
|
@@ -54,6 +58,22 @@ const PHASE_STATUS_KEY: Record<ReturnType<typeof verificationPhase>, TaskBoardKe
|
|
|
54
58
|
invalid: 'verify.status.invalidHeld',
|
|
55
59
|
}
|
|
56
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Board phase → the badge's colour slot. One slot per meaning instead of one
|
|
63
|
+
* per phase: a phase that is still running reads as a warning, a refused
|
|
64
|
+
* acceptance reads as a failure, and an acceptance that never applied reads as
|
|
65
|
+
* neutral — never as a pass.
|
|
66
|
+
*/
|
|
67
|
+
const PHASE_TONE: Record<ReturnType<typeof verificationPhase>, 'success' | 'error' | 'warn' | 'neutral'> = {
|
|
68
|
+
off: 'neutral',
|
|
69
|
+
executing: 'warn',
|
|
70
|
+
verifying: 'warn',
|
|
71
|
+
repairing: 'error',
|
|
72
|
+
passed: 'success',
|
|
73
|
+
failed: 'error',
|
|
74
|
+
invalid: 'error',
|
|
75
|
+
}
|
|
76
|
+
|
|
57
77
|
/** Evidence location → locale key, for one structured finding's citation. */
|
|
58
78
|
const LOCATION_KEY: Record<VerificationCriterionFinding['location'], TaskBoardKey> = {
|
|
59
79
|
task: 'verify.location.task',
|
|
@@ -83,6 +103,11 @@ const AUDIT_STAGE_KEY: Record<AcceptanceAuditRecord['stage'], TaskBoardKey> = {
|
|
|
83
103
|
budget: 'verify.cleanup.stage.budget',
|
|
84
104
|
}
|
|
85
105
|
|
|
106
|
+
/** Stable key for one finding row. */
|
|
107
|
+
function findingKey(attempt: VerificationAttempt, index: number): string {
|
|
108
|
+
return attempt.at.toString(36) + '-' + String(index)
|
|
109
|
+
}
|
|
110
|
+
|
|
86
111
|
/** One recorded attempt: a quality verdict, an invalid veto, an anomaly, or a budget stop. */
|
|
87
112
|
function AttemptRow({ attempt, detailRemoved }: { attempt: VerificationAttempt, detailRemoved: boolean }) {
|
|
88
113
|
// Everything that is not a quality verdict renders as an anomaly row: a
|
|
@@ -94,19 +119,21 @@ function AttemptRow({ attempt, detailRemoved }: { attempt: VerificationAttempt,
|
|
|
94
119
|
const exception = attempt.stage !== 'quality' && !invalid
|
|
95
120
|
const result = exception ? 'failed' : attempt.passed ? 'succeeded' : 'failed'
|
|
96
121
|
return (
|
|
97
|
-
<li className={css.
|
|
98
|
-
<
|
|
99
|
-
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
122
|
+
<li className={css.attemptRow} data-result={result}>
|
|
123
|
+
<div className={css.attemptHead}>
|
|
124
|
+
<span className={css.executionBadge} data-result={result}>
|
|
125
|
+
{invalid ? t('verify.status.invalid') : exception ? t('verify.status.exception') : attempt.passed ? t('verify.status.passed') : t('verify.status.failed')}
|
|
126
|
+
</span>
|
|
127
|
+
<span className={css.executionTimes}>
|
|
128
|
+
{invalid
|
|
129
|
+
? t('verify.attemptInvalid', { index: String(attempt.index) })
|
|
130
|
+
: exception
|
|
131
|
+
? t('verify.attemptException', { index: String(attempt.index) })
|
|
132
|
+
: t('verify.attempt', { index: String(attempt.index) })}
|
|
133
|
+
{' · '}{routeLabel(attempt)}
|
|
134
|
+
{!exception && !invalid && ' · ' + t('verify.rounds', { rounds: String(attempt.rounds) })}
|
|
135
|
+
</span>
|
|
136
|
+
</div>
|
|
110
137
|
{invalid && (
|
|
111
138
|
<span className={css.executionTimes}>
|
|
112
139
|
{t('verify.invalidDetail', { reason: t(invalidReasonKey(attempt)) })}
|
|
@@ -195,93 +222,6 @@ function AttemptRow({ attempt, detailRemoved }: { attempt: VerificationAttempt,
|
|
|
195
222
|
)
|
|
196
223
|
}
|
|
197
224
|
|
|
198
|
-
/** Stable key for one finding row. */
|
|
199
|
-
function findingKey(attempt: VerificationAttempt, index: number): string {
|
|
200
|
-
return attempt.at.toString(36) + '-' + String(index)
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Render one execution's acceptance report.
|
|
205
|
-
* @param props - the execution's persisted acceptance block.
|
|
206
|
-
* @returns the report, or nothing when acceptance never applied.
|
|
207
|
-
*/
|
|
208
|
-
export function VerificationReport({ verification }: { verification: ExecutionVerification }) {
|
|
209
|
-
const phase = verificationPhase(verification)
|
|
210
|
-
if (phase === 'off' && verification.contract.enabled === false && verification.applicability !== 'skipped') return null
|
|
211
|
-
const totals = verificationTotals(verification)
|
|
212
|
-
const route = verification.contract.route
|
|
213
|
-
const applicabilityKey: TaskBoardKey | undefined = verification.applicability === 'disabled'
|
|
214
|
-
? 'verify.applicability.disabled'
|
|
215
|
-
: verification.applicability === 'skipped'
|
|
216
|
-
? 'verify.applicability.skipped'
|
|
217
|
-
: verification.applicability === 'goal-unavailable'
|
|
218
|
-
? 'verify.applicability.goalUnavailable'
|
|
219
|
-
: verification.applicability === 'goal-disabled'
|
|
220
|
-
? 'verify.applicability.goalDisabled'
|
|
221
|
-
: verification.applicability === 'team-member' ? 'verify.applicability.teamMember' : undefined
|
|
222
|
-
return (
|
|
223
|
-
<div className={css.executionTimes}>
|
|
224
|
-
<span className={css.executionBadge} data-result={phase === 'passed' ? 'succeeded' : phase === 'failed' ? 'failed' : undefined}>
|
|
225
|
-
{t('verify.title')} · {t(PHASE_STATUS_KEY[phase])}
|
|
226
|
-
</span>
|
|
227
|
-
<span className={css.executionTimes}>
|
|
228
|
-
{t('verify.invalidCounts', {
|
|
229
|
-
quality: String(qualityAttempts(verification).length),
|
|
230
|
-
max: String(MAX_QUALITY_ATTEMPTS),
|
|
231
|
-
invalid: String(invalidAttempts(verification).length),
|
|
232
|
-
maxInvalid: String(MAX_INVALID_ATTEMPTS),
|
|
233
|
-
exceptions: String(exceptionAttempts(verification).length),
|
|
234
|
-
})}
|
|
235
|
-
</span>
|
|
236
|
-
{route !== undefined && (
|
|
237
|
-
<span className={css.executionTimes}>
|
|
238
|
-
{verification.contract.modelSource === 'inherit'
|
|
239
|
-
? t('verify.judgeInherited', { model: route.provider + '/' + route.model })
|
|
240
|
-
: t(route.reasoningEffort === undefined || route.reasoningEffort === '' ? 'verify.judgeNoEffort' : 'verify.judge', {
|
|
241
|
-
model: route.provider + '/' + route.model,
|
|
242
|
-
...(route.reasoningEffort === undefined ? {} : { effort: route.reasoningEffort }),
|
|
243
|
-
})}
|
|
244
|
-
</span>
|
|
245
|
-
)}
|
|
246
|
-
{verification.contract.effortFallback !== undefined && (
|
|
247
|
-
<span className={css.executionTimes}>
|
|
248
|
-
{t('verify.effortFallback', {
|
|
249
|
-
requested: verification.contract.effortFallback.requested,
|
|
250
|
-
resolved: verification.contract.effortFallback.resolved ?? t('settings.goalVerificationResolvedNoEffort'),
|
|
251
|
-
})}
|
|
252
|
-
</span>
|
|
253
|
-
)}
|
|
254
|
-
{applicabilityKey !== undefined && <span className={css.executionTimes}>{t(applicabilityKey)}</span>}
|
|
255
|
-
{verification.failedReason !== undefined && (
|
|
256
|
-
<span className={css.executionTimes}>{t('verify.finalFailure', { reason: verification.failedReason })}</span>
|
|
257
|
-
)}
|
|
258
|
-
{totals.calls > 0 && (
|
|
259
|
-
<span className={css.executionTimes}>
|
|
260
|
-
{t('verify.usage', {
|
|
261
|
-
calls: String(totals.calls),
|
|
262
|
-
input: String(totals.inputTokens),
|
|
263
|
-
output: String(totals.outputTokens),
|
|
264
|
-
reasoning: String(totals.reasoningTokens),
|
|
265
|
-
})}
|
|
266
|
-
{totals.usageIncomplete ? t('verify.usageIncomplete') : ''}
|
|
267
|
-
</span>
|
|
268
|
-
)}
|
|
269
|
-
{verification.attempts.length > 0 && (
|
|
270
|
-
<ul className={css.executionList}>
|
|
271
|
-
{[...verification.attempts].reverse().map(attempt => (
|
|
272
|
-
<AttemptRow
|
|
273
|
-
key={attempt.at.toString(36) + '-' + attempt.stage + '-' + String(attempt.index)}
|
|
274
|
-
attempt={attempt}
|
|
275
|
-
detailRemoved={verification.cleanup?.state === 'cleaned'}
|
|
276
|
-
/>
|
|
277
|
-
))}
|
|
278
|
-
</ul>
|
|
279
|
-
)}
|
|
280
|
-
{verification.cleanup !== undefined && <CleanupNotice cleanup={verification.cleanup} />}
|
|
281
|
-
</div>
|
|
282
|
-
)
|
|
283
|
-
}
|
|
284
|
-
|
|
285
225
|
/**
|
|
286
226
|
* Retention notice of one execution's acceptance detail.
|
|
287
227
|
*
|
|
@@ -320,3 +260,102 @@ function CleanupNotice({ cleanup }: { cleanup: AcceptanceCleanupRecord }) {
|
|
|
320
260
|
</>
|
|
321
261
|
)
|
|
322
262
|
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Render one execution's acceptance report.
|
|
266
|
+
* @param props - the execution's persisted acceptance block.
|
|
267
|
+
* @returns the verdict badge with its fold-out detail, or nothing when
|
|
268
|
+
* acceptance never applied.
|
|
269
|
+
*/
|
|
270
|
+
export function VerificationReport({ verification }: { verification: ExecutionVerification }) {
|
|
271
|
+
const [expanded, setExpanded] = useState(false)
|
|
272
|
+
const presence = usePresence(expanded)
|
|
273
|
+
const panelId = useId()
|
|
274
|
+
const phase = verificationPhase(verification)
|
|
275
|
+
if (phase === 'off' && verification.contract.enabled === false && verification.applicability !== 'skipped') return null
|
|
276
|
+
const totals = verificationTotals(verification)
|
|
277
|
+
const route = verification.contract.route
|
|
278
|
+
const applicabilityKey: TaskBoardKey | undefined = verification.applicability === 'disabled'
|
|
279
|
+
? 'verify.applicability.disabled'
|
|
280
|
+
: verification.applicability === 'skipped'
|
|
281
|
+
? 'verify.applicability.skipped'
|
|
282
|
+
: verification.applicability === 'goal-unavailable'
|
|
283
|
+
? 'verify.applicability.goalUnavailable'
|
|
284
|
+
: verification.applicability === 'goal-disabled'
|
|
285
|
+
? 'verify.applicability.goalDisabled'
|
|
286
|
+
: verification.applicability === 'team-member' ? 'verify.applicability.teamMember' : undefined
|
|
287
|
+
return (
|
|
288
|
+
<div className={css.verifyReport}>
|
|
289
|
+
<button
|
|
290
|
+
type="button"
|
|
291
|
+
className={css.verifyBadge}
|
|
292
|
+
data-tone={PHASE_TONE[phase]}
|
|
293
|
+
aria-expanded={expanded}
|
|
294
|
+
aria-controls={panelId}
|
|
295
|
+
onClick={() => { setExpanded(!expanded) }}
|
|
296
|
+
>
|
|
297
|
+
{t('verify.title')}
|
|
298
|
+
<span className={css.verifyVerdict}>{t(PHASE_STATUS_KEY[phase])}</span>
|
|
299
|
+
<span className={css.disclosureChevron} data-open={expanded} aria-hidden="true" />
|
|
300
|
+
</button>
|
|
301
|
+
{presence.mounted && (
|
|
302
|
+
<div className={css.verifyPanel} id={panelId} data-state={presence.phase}>
|
|
303
|
+
<span className={css.executionTimes}>
|
|
304
|
+
{t('verify.invalidCounts', {
|
|
305
|
+
quality: String(qualityAttempts(verification).length),
|
|
306
|
+
max: String(MAX_QUALITY_ATTEMPTS),
|
|
307
|
+
invalid: String(invalidAttempts(verification).length),
|
|
308
|
+
maxInvalid: String(MAX_INVALID_ATTEMPTS),
|
|
309
|
+
exceptions: String(exceptionAttempts(verification).length),
|
|
310
|
+
})}
|
|
311
|
+
</span>
|
|
312
|
+
{route !== undefined && (
|
|
313
|
+
<span className={css.executionTimes}>
|
|
314
|
+
{verification.contract.modelSource === 'inherit'
|
|
315
|
+
? t('verify.judgeInherited', { model: route.provider + '/' + route.model })
|
|
316
|
+
: t(route.reasoningEffort === undefined || route.reasoningEffort === '' ? 'verify.judgeNoEffort' : 'verify.judge', {
|
|
317
|
+
model: route.provider + '/' + route.model,
|
|
318
|
+
...(route.reasoningEffort === undefined ? {} : { effort: route.reasoningEffort }),
|
|
319
|
+
})}
|
|
320
|
+
</span>
|
|
321
|
+
)}
|
|
322
|
+
{verification.contract.effortFallback !== undefined && (
|
|
323
|
+
<span className={css.executionTimes}>
|
|
324
|
+
{t('verify.effortFallback', {
|
|
325
|
+
requested: verification.contract.effortFallback.requested,
|
|
326
|
+
resolved: verification.contract.effortFallback.resolved ?? t('settings.goalVerificationResolvedNoEffort'),
|
|
327
|
+
})}
|
|
328
|
+
</span>
|
|
329
|
+
)}
|
|
330
|
+
{applicabilityKey !== undefined && <span className={css.executionTimes}>{t(applicabilityKey)}</span>}
|
|
331
|
+
{verification.failedReason !== undefined && (
|
|
332
|
+
<span className={css.executionTimes}>{t('verify.finalFailure', { reason: verification.failedReason })}</span>
|
|
333
|
+
)}
|
|
334
|
+
{totals.calls > 0 && (
|
|
335
|
+
<span className={css.executionTimes}>
|
|
336
|
+
{t('verify.usage', {
|
|
337
|
+
calls: String(totals.calls),
|
|
338
|
+
input: String(totals.inputTokens),
|
|
339
|
+
output: String(totals.outputTokens),
|
|
340
|
+
reasoning: String(totals.reasoningTokens),
|
|
341
|
+
})}
|
|
342
|
+
{totals.usageIncomplete ? t('verify.usageIncomplete') : ''}
|
|
343
|
+
</span>
|
|
344
|
+
)}
|
|
345
|
+
{verification.attempts.length > 0 && (
|
|
346
|
+
<ul className={css.executionList}>
|
|
347
|
+
{[...verification.attempts].reverse().map(attempt => (
|
|
348
|
+
<AttemptRow
|
|
349
|
+
key={attempt.at.toString(36) + '-' + attempt.stage + '-' + String(attempt.index)}
|
|
350
|
+
attempt={attempt}
|
|
351
|
+
detailRemoved={verification.cleanup?.state === 'cleaned'}
|
|
352
|
+
/>
|
|
353
|
+
))}
|
|
354
|
+
</ul>
|
|
355
|
+
)}
|
|
356
|
+
{verification.cleanup !== undefined && <CleanupNotice cleanup={verification.cleanup} />}
|
|
357
|
+
</div>
|
|
358
|
+
)}
|
|
359
|
+
</div>
|
|
360
|
+
)
|
|
361
|
+
}
|
|
@@ -35,12 +35,15 @@
|
|
|
35
35
|
line-height: 1.35;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
.
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
.
|
|
43
|
-
.
|
|
38
|
+
/* Two steps only: h1 and h2 are 16px and every level below is the body's
|
|
39
|
+
13px. What separates the levels is weight and the label colour role, never a
|
|
40
|
+
fourth size. */
|
|
41
|
+
.heading1 { font-size: 16px; font-weight: 700; }
|
|
42
|
+
.heading2 { font-size: 16px; font-weight: 600; }
|
|
43
|
+
.heading3 { font-size: 13px; font-weight: 600; }
|
|
44
|
+
.heading4 { font-size: 13px; font-weight: 600; color: var(--dsw-alias-label-secondary); }
|
|
45
|
+
.heading5 { font-size: 13px; font-weight: 500; color: var(--dsw-alias-label-secondary); }
|
|
46
|
+
.heading6 { font-size: 13px; font-weight: 500; color: var(--dsw-alias-label-tertiary); }
|
|
44
47
|
|
|
45
48
|
.list {
|
|
46
49
|
margin: 0 0 8px;
|
|
@@ -103,7 +106,7 @@
|
|
|
103
106
|
.imagePlaceholder {
|
|
104
107
|
display: inline-block;
|
|
105
108
|
padding: 2px 6px;
|
|
106
|
-
font-size:
|
|
109
|
+
font-size: 12px;
|
|
107
110
|
color: var(--dsw-alias-label-secondary, #666);
|
|
108
111
|
background: var(--dsw-alias-bg-subtle, rgba(0, 0, 0, 0.04));
|
|
109
112
|
border: 1px dashed var(--dsw-alias-border-l1, rgba(0, 0, 0, 0.15));
|
|
@@ -121,7 +124,7 @@
|
|
|
121
124
|
border-collapse: collapse;
|
|
122
125
|
width: 100%;
|
|
123
126
|
margin: 8px 0;
|
|
124
|
-
font-size:
|
|
127
|
+
font-size: 12px;
|
|
125
128
|
}
|
|
126
129
|
|
|
127
130
|
.table th,
|
|
@@ -26,18 +26,46 @@
|
|
|
26
26
|
color: var(--dsw-alias-label-secondary);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/* One spacing step for this card's own blocks: the topic list and the power
|
|
30
|
+
facts under it read the same value instead of each hard-coding one. */
|
|
31
|
+
.nestedCards,
|
|
32
|
+
.power {
|
|
33
|
+
--task-board-settings-gap: 8px;
|
|
34
|
+
}
|
|
35
|
+
|
|
29
36
|
/* Live power facts plus the battery caveat, below the topic cards: quiet
|
|
30
|
-
small print that follows the disclosures instead of competing with them.
|
|
31
|
-
No rule of its own — the last topic card already closes with its border. */
|
|
37
|
+
small print that follows the disclosures instead of competing with them. */
|
|
32
38
|
.power {
|
|
33
39
|
display: flex;
|
|
34
40
|
flex-direction: column;
|
|
35
|
-
gap:
|
|
36
|
-
margin-top:
|
|
41
|
+
gap: var(--task-board-settings-gap);
|
|
42
|
+
margin-top: calc(var(--task-board-settings-gap) * 2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* The facts themselves: a two-column label/value grid whose labels form one
|
|
46
|
+
quiet column, so the four values start on one left edge. */
|
|
47
|
+
.powerFacts {
|
|
48
|
+
display: grid;
|
|
49
|
+
grid-template-columns: max-content 1fr;
|
|
50
|
+
column-gap: calc(var(--task-board-settings-gap) * 2);
|
|
51
|
+
row-gap: 2px;
|
|
52
|
+
margin: 0;
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
line-height: 1.5;
|
|
55
|
+
color: var(--dsw-alias-label-secondary);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.powerTerm,
|
|
59
|
+
.powerValue {
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.powerTerm {
|
|
64
|
+
color: var(--dsw-alias-label-tertiary);
|
|
37
65
|
}
|
|
38
66
|
|
|
39
|
-
/*
|
|
40
|
-
|
|
67
|
+
/* The battery caveat: secondary ink at the small size the 12-13px roles use,
|
|
68
|
+
so it does not compete with the topic cards above it. */
|
|
41
69
|
.powerLine {
|
|
42
70
|
margin: 0;
|
|
43
71
|
font-size: 12px;
|
|
@@ -59,7 +87,7 @@
|
|
|
59
87
|
.nestedCards {
|
|
60
88
|
display: flex;
|
|
61
89
|
flex-direction: column;
|
|
62
|
-
gap:
|
|
90
|
+
gap: var(--task-board-settings-gap);
|
|
63
91
|
list-style: none;
|
|
64
92
|
margin: 0;
|
|
65
93
|
padding: 0;
|