@molecule/app-ide-panel-logic 0.0.0-stage → 0.0.1-stage
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/LICENSE +202 -0
- package/README.md +2925 -2
- package/dist/chatTimelineOrdering.d.ts +50 -0
- package/dist/chatTimelineOrdering.d.ts.map +1 -0
- package/dist/chatTimelineOrdering.js +46 -0
- package/dist/chatTimelineOrdering.js.map +1 -0
- package/dist/command-metadata.d.ts +117 -0
- package/dist/command-metadata.d.ts.map +1 -0
- package/dist/command-metadata.js +271 -0
- package/dist/command-metadata.js.map +1 -0
- package/dist/components/activity-utilities.d.ts +107 -0
- package/dist/components/activity-utilities.d.ts.map +1 -0
- package/dist/components/activity-utilities.js +154 -0
- package/dist/components/activity-utilities.js.map +1 -0
- package/dist/components/chat-autocommit-utilities.d.ts +172 -0
- package/dist/components/chat-autocommit-utilities.d.ts.map +1 -0
- package/dist/components/chat-autocommit-utilities.js +185 -0
- package/dist/components/chat-autocommit-utilities.js.map +1 -0
- package/dist/components/chat-card-style.d.ts +81 -0
- package/dist/components/chat-card-style.d.ts.map +1 -0
- package/dist/components/chat-card-style.js +78 -0
- package/dist/components/chat-card-style.js.map +1 -0
- package/dist/components/chat-commands.d.ts +17 -0
- package/dist/components/chat-commands.d.ts.map +1 -0
- package/dist/components/chat-commands.js +17 -0
- package/dist/components/chat-commands.js.map +1 -0
- package/dist/components/chat-commit-utilities.d.ts +29 -0
- package/dist/components/chat-commit-utilities.d.ts.map +1 -0
- package/dist/components/chat-commit-utilities.js +31 -0
- package/dist/components/chat-commit-utilities.js.map +1 -0
- package/dist/components/chat-cost-utilities.d.ts +62 -0
- package/dist/components/chat-cost-utilities.d.ts.map +1 -0
- package/dist/components/chat-cost-utilities.js +66 -0
- package/dist/components/chat-cost-utilities.js.map +1 -0
- package/dist/components/chat-effort-utilities.d.ts +104 -0
- package/dist/components/chat-effort-utilities.d.ts.map +1 -0
- package/dist/components/chat-effort-utilities.js +99 -0
- package/dist/components/chat-effort-utilities.js.map +1 -0
- package/dist/components/chat-help-utilities.d.ts +89 -0
- package/dist/components/chat-help-utilities.d.ts.map +1 -0
- package/dist/components/chat-help-utilities.js +131 -0
- package/dist/components/chat-help-utilities.js.map +1 -0
- package/dist/components/chat-model-mode-utilities.d.ts +169 -0
- package/dist/components/chat-model-mode-utilities.d.ts.map +1 -0
- package/dist/components/chat-model-mode-utilities.js +221 -0
- package/dist/components/chat-model-mode-utilities.js.map +1 -0
- package/dist/components/chat-models-utilities.d.ts +162 -0
- package/dist/components/chat-models-utilities.d.ts.map +1 -0
- package/dist/components/chat-models-utilities.js +302 -0
- package/dist/components/chat-models-utilities.js.map +1 -0
- package/dist/components/chat-report-utilities.d.ts +149 -0
- package/dist/components/chat-report-utilities.d.ts.map +1 -0
- package/dist/components/chat-report-utilities.js +151 -0
- package/dist/components/chat-report-utilities.js.map +1 -0
- package/dist/components/chat-scripts-utilities.d.ts +185 -0
- package/dist/components/chat-scripts-utilities.d.ts.map +1 -0
- package/dist/components/chat-scripts-utilities.js +199 -0
- package/dist/components/chat-scripts-utilities.js.map +1 -0
- package/dist/components/chat-settings-utilities.d.ts +72 -0
- package/dist/components/chat-settings-utilities.d.ts.map +1 -0
- package/dist/components/chat-settings-utilities.js +56 -0
- package/dist/components/chat-settings-utilities.js.map +1 -0
- package/dist/components/chat-share-utilities.d.ts +110 -0
- package/dist/components/chat-share-utilities.d.ts.map +1 -0
- package/dist/components/chat-share-utilities.js +90 -0
- package/dist/components/chat-share-utilities.js.map +1 -0
- package/dist/components/chat-skills-utilities.d.ts +242 -0
- package/dist/components/chat-skills-utilities.d.ts.map +1 -0
- package/dist/components/chat-skills-utilities.js +433 -0
- package/dist/components/chat-skills-utilities.js.map +1 -0
- package/dist/components/chat-stream-utilities.d.ts +74 -0
- package/dist/components/chat-stream-utilities.d.ts.map +1 -0
- package/dist/components/chat-stream-utilities.js +103 -0
- package/dist/components/chat-stream-utilities.js.map +1 -0
- package/dist/components/chat-timestamps-utilities.d.ts +123 -0
- package/dist/components/chat-timestamps-utilities.d.ts.map +1 -0
- package/dist/components/chat-timestamps-utilities.js +177 -0
- package/dist/components/chat-timestamps-utilities.js.map +1 -0
- package/dist/components/chat-tips-utilities.d.ts +108 -0
- package/dist/components/chat-tips-utilities.d.ts.map +1 -0
- package/dist/components/chat-tips-utilities.js +137 -0
- package/dist/components/chat-tips-utilities.js.map +1 -0
- package/dist/components/device-cycle.d.ts +84 -0
- package/dist/components/device-cycle.d.ts.map +1 -0
- package/dist/components/device-cycle.js +77 -0
- package/dist/components/device-cycle.js.map +1 -0
- package/dist/components/fileExplorerPersistence.d.ts +50 -0
- package/dist/components/fileExplorerPersistence.d.ts.map +1 -0
- package/dist/components/fileExplorerPersistence.js +63 -0
- package/dist/components/fileExplorerPersistence.js.map +1 -0
- package/dist/components/search-utilities.d.ts +15 -0
- package/dist/components/search-utilities.d.ts.map +1 -0
- package/dist/components/search-utilities.js +26 -0
- package/dist/components/search-utilities.js.map +1 -0
- package/dist/components/tests-bar-utilities.d.ts +106 -0
- package/dist/components/tests-bar-utilities.d.ts.map +1 -0
- package/dist/components/tests-bar-utilities.js +167 -0
- package/dist/components/tests-bar-utilities.js.map +1 -0
- package/dist/components/tests-card-utilities.d.ts +280 -0
- package/dist/components/tests-card-utilities.d.ts.map +1 -0
- package/dist/components/tests-card-utilities.js +591 -0
- package/dist/components/tests-card-utilities.js.map +1 -0
- package/dist/components/tool-call-utilities.d.ts +256 -0
- package/dist/components/tool-call-utilities.d.ts.map +1 -0
- package/dist/components/tool-call-utilities.js +1004 -0
- package/dist/components/tool-call-utilities.js.map +1 -0
- package/dist/components/user-avatar-utilities.d.ts +41 -0
- package/dist/components/user-avatar-utilities.d.ts.map +1 -0
- package/dist/components/user-avatar-utilities.js +56 -0
- package/dist/components/user-avatar-utilities.js.map +1 -0
- package/dist/components/workspace-layout-utilities.d.ts +37 -0
- package/dist/components/workspace-layout-utilities.d.ts.map +1 -0
- package/dist/components/workspace-layout-utilities.js +58 -0
- package/dist/components/workspace-layout-utilities.js.map +1 -0
- package/dist/customEventCards.d.ts +147 -0
- package/dist/customEventCards.d.ts.map +1 -0
- package/dist/customEventCards.js +36 -0
- package/dist/customEventCards.js.map +1 -0
- package/dist/icon-names.d.ts +26 -0
- package/dist/icon-names.d.ts.map +1 -0
- package/dist/icon-names.js +14 -0
- package/dist/icon-names.js.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/keyboard-shortcut-utilities.d.ts +63 -0
- package/dist/keyboard-shortcut-utilities.d.ts.map +1 -0
- package/dist/keyboard-shortcut-utilities.js +100 -0
- package/dist/keyboard-shortcut-utilities.js.map +1 -0
- package/dist/panels.d.ts +26 -0
- package/dist/panels.d.ts.map +1 -0
- package/dist/panels.js +26 -0
- package/dist/panels.js.map +1 -0
- package/dist/settings-metadata.d.ts +78 -0
- package/dist/settings-metadata.d.ts.map +1 -0
- package/dist/settings-metadata.js +137 -0
- package/dist/settings-metadata.js.map +1 -0
- package/dist/types.d.ts +588 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/dist/viewport-queries.d.ts +19 -0
- package/dist/viewport-queries.d.ts.map +1 -0
- package/dist/viewport-queries.js +19 -0
- package/dist/viewport-queries.js.map +1 -0
- package/package.json +74 -4
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure state + grouping helpers for the {@link TestsCard}.
|
|
3
|
+
*
|
|
4
|
+
* Everything here is a plain function over plain data, so the card's behaviour
|
|
5
|
+
* (which rows a group runs, how a streamed event moves the run forward, what
|
|
6
|
+
* the collapsed summary says) is unit-testable without rendering anything.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import type { TestItem, TestKind, TestRunEvent, TestRunFeedEvent, TestRunOutcome, TestRunSource, TestStatus, TestWorkspace } from '../types.js';
|
|
11
|
+
/** The one test a file is on right now, named the way its runner names it. */
|
|
12
|
+
export interface TestCaseRef {
|
|
13
|
+
/** The runner's test title. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** Its enclosing group (`describe`), when it has one. */
|
|
16
|
+
describe?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* What one FILE is doing while it runs: which test is on screen, and how its
|
|
20
|
+
* own tests have gone so far. Discarded the moment the file reports a `result`
|
|
21
|
+
* — the row's verdict pill takes over from there.
|
|
22
|
+
*/
|
|
23
|
+
export interface TestCaseProgress {
|
|
24
|
+
/** The test running right now, or `null` between tests. */
|
|
25
|
+
current: TestCaseRef | null;
|
|
26
|
+
passed: number;
|
|
27
|
+
failed: number;
|
|
28
|
+
skipped: number;
|
|
29
|
+
}
|
|
30
|
+
/** One rendered group of rows: a kind within a project directory. */
|
|
31
|
+
export interface TestGroup {
|
|
32
|
+
kind: TestKind;
|
|
33
|
+
workspace: TestWorkspace;
|
|
34
|
+
/** The directory's name for the heading; `null` for the workspace root. */
|
|
35
|
+
label: string | null;
|
|
36
|
+
items: TestItem[];
|
|
37
|
+
}
|
|
38
|
+
/** What one test file ended as in the last run. */
|
|
39
|
+
export interface TestResultEntry {
|
|
40
|
+
status: TestStatus;
|
|
41
|
+
durationMs?: number;
|
|
42
|
+
passed: number;
|
|
43
|
+
failed: number;
|
|
44
|
+
skipped: number;
|
|
45
|
+
/** The runner's output, kept for a FAILURE so the row can keep showing it. */
|
|
46
|
+
output?: string;
|
|
47
|
+
}
|
|
48
|
+
/** Everything the card knows about the run it is showing. */
|
|
49
|
+
export interface TestsRunState {
|
|
50
|
+
runId: string | null;
|
|
51
|
+
running: boolean;
|
|
52
|
+
/** The ids the run on show covers, in run order (its private Skip candidates). */
|
|
53
|
+
queued: string[];
|
|
54
|
+
/** Files owed by ANY live covering run; row spinners use this aggregate, Skip never does. */
|
|
55
|
+
runningIds?: string[];
|
|
56
|
+
/** The id whose output is streaming right now, when the host says which. */
|
|
57
|
+
currentId: string | null;
|
|
58
|
+
/** The live output lines, newest last, capped at {@link MAX_OUTPUT_LINES}. */
|
|
59
|
+
output: string[];
|
|
60
|
+
/** Per-id outcome from this run (and from earlier runs, until re-run). */
|
|
61
|
+
results: Record<string, TestResultEntry>;
|
|
62
|
+
/**
|
|
63
|
+
* Per-id LIVE per-test progress, for the files that are running right now.
|
|
64
|
+
* An entry exists only between a file's first `case` event and its `result`.
|
|
65
|
+
*/
|
|
66
|
+
cases: Record<string, TestCaseProgress>;
|
|
67
|
+
/** A skip was asked for and the run has not answered it yet. */
|
|
68
|
+
skipPending: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Skipping is not on offer: the host wired no `skipCurrent`, or it answered
|
|
71
|
+
* that there was nothing left to skip. The control is dropped — never
|
|
72
|
+
* replaced by an error the person cannot act on.
|
|
73
|
+
*/
|
|
74
|
+
skipUnavailable: boolean;
|
|
75
|
+
/** How the run ended, once it has. */
|
|
76
|
+
outcome: TestRunOutcome | null;
|
|
77
|
+
/** A run-level failure message (timeout, transport error) shown in the card. */
|
|
78
|
+
error: string | null;
|
|
79
|
+
startedAt: number | null;
|
|
80
|
+
durationMs: number | null;
|
|
81
|
+
/**
|
|
82
|
+
* The run on show was NOT started by this panel (the agent, the platform, or
|
|
83
|
+
* another tab): it can be watched but not stopped or skipped from here.
|
|
84
|
+
* Absent on the panel's own runs.
|
|
85
|
+
*/
|
|
86
|
+
external?: boolean;
|
|
87
|
+
/** Who started the run, when the host said. */
|
|
88
|
+
source?: TestRunSource | null;
|
|
89
|
+
/** The command a run this panel did not start is running, when the host said. */
|
|
90
|
+
command?: string | null;
|
|
91
|
+
}
|
|
92
|
+
/** Live output lines retained — enough to read, bounded so a chatty run cannot grow forever. */
|
|
93
|
+
export declare const MAX_OUTPUT_LINES = 400;
|
|
94
|
+
/** A run that has not started. */
|
|
95
|
+
export declare const EMPTY_RUN_STATE: TestsRunState;
|
|
96
|
+
/**
|
|
97
|
+
* Group tests for display: by kind (end-to-end first), then by project
|
|
98
|
+
* directory (whatever directories are present — `app`, `my-app/app`,
|
|
99
|
+
* `packages/web`, the root last), with the files sorted inside each group.
|
|
100
|
+
*
|
|
101
|
+
* @param tests - Every discovered test.
|
|
102
|
+
* @returns The groups, in display order. Empty groups are never produced.
|
|
103
|
+
*/
|
|
104
|
+
export declare function groupTests(tests: readonly TestItem[]): TestGroup[];
|
|
105
|
+
/**
|
|
106
|
+
* How many tests there are of each kind.
|
|
107
|
+
*
|
|
108
|
+
* @param tests - Every discovered test.
|
|
109
|
+
* @returns The per-kind counts.
|
|
110
|
+
*/
|
|
111
|
+
export declare function countByKind(tests: readonly TestItem[]): Record<TestKind, number>;
|
|
112
|
+
/**
|
|
113
|
+
* The tallies of the last run, over the tests that are still listed. Counted
|
|
114
|
+
* per FILE (one row, one verdict) so the collapsed summary matches the rows.
|
|
115
|
+
*
|
|
116
|
+
* @param tests - The currently listed tests.
|
|
117
|
+
* @param results - The per-id outcomes.
|
|
118
|
+
* @returns Passed/failed/skipped file counts.
|
|
119
|
+
*/
|
|
120
|
+
export declare function summarizeResults(tests: readonly TestItem[], results: Record<string, TestResultEntry>): {
|
|
121
|
+
passed: number;
|
|
122
|
+
failed: number;
|
|
123
|
+
skipped: number;
|
|
124
|
+
reported: number;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Fold one streamed event into the run state.
|
|
128
|
+
*
|
|
129
|
+
* Deliberately total: an event for an id the card no longer lists is recorded
|
|
130
|
+
* anyway (a re-list may be in flight), a `case` that arrives out of order (after
|
|
131
|
+
* its file already reported a verdict) is dropped rather than resurrecting a
|
|
132
|
+
* finished row, and an unknown event type leaves the state untouched rather
|
|
133
|
+
* than throwing inside a stream handler.
|
|
134
|
+
*
|
|
135
|
+
* @param state - The current state.
|
|
136
|
+
* @param event - The event just received.
|
|
137
|
+
* @returns The next state (a new object whenever anything changed).
|
|
138
|
+
*/
|
|
139
|
+
export declare function applyTestRunEvent(state: TestsRunState, event: TestRunEvent): TestsRunState;
|
|
140
|
+
/**
|
|
141
|
+
* Incremental card state. A server id is applied once, in order; completed runs are compacted
|
|
142
|
+
* while per-file verdicts survive. No raw event history is retained or replayed into a fold.
|
|
143
|
+
*/
|
|
144
|
+
export declare class TestRunProjection {
|
|
145
|
+
private readonly runs;
|
|
146
|
+
private readonly results;
|
|
147
|
+
private readonly pending;
|
|
148
|
+
private lastEventId;
|
|
149
|
+
private order;
|
|
150
|
+
/** Apply one event and return the visible state. Missing ids support older custom hosts only. */
|
|
151
|
+
apply(event: TestRunFeedEvent, activeOwnRunId?: string | null): TestsRunState;
|
|
152
|
+
/** Keep every live run (including the active own run) and only the latest completed run. */
|
|
153
|
+
private compact;
|
|
154
|
+
/** Render current per-file state, with progress and controls selected independently. */
|
|
155
|
+
show(activeOwnRunId?: string | null): TestsRunState;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Record that the person asked to skip what is running. The state only says a
|
|
159
|
+
* request is OUT — the run's own `result` for the skipped file is what actually
|
|
160
|
+
* moves the row, so nothing here can make a skipped file read as anything else.
|
|
161
|
+
*
|
|
162
|
+
* @param state - The current state.
|
|
163
|
+
* @returns The next state, or the same one when there is nothing to skip.
|
|
164
|
+
*/
|
|
165
|
+
export declare function requestSkip(state: TestsRunState): TestsRunState;
|
|
166
|
+
/**
|
|
167
|
+
* Record that skipping is not on offer — either the host wired no `skipCurrent`
|
|
168
|
+
* or it answered that the run had already moved on. The control is dropped; the
|
|
169
|
+
* person is not shown an error about a race they did not cause.
|
|
170
|
+
*
|
|
171
|
+
* @param state - The current state.
|
|
172
|
+
* @returns The next state.
|
|
173
|
+
*/
|
|
174
|
+
export declare function markSkipUnavailable(state: TestsRunState): TestsRunState;
|
|
175
|
+
/**
|
|
176
|
+
* Whether the host can be asked to skip right now.
|
|
177
|
+
*
|
|
178
|
+
* @param state - The run state.
|
|
179
|
+
* @returns True when a Skip control belongs on screen.
|
|
180
|
+
*/
|
|
181
|
+
export declare function canSkipRun(state: TestsRunState): boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Which row the Skip acts on: the one the stream named as current, or — when it
|
|
184
|
+
* has not named one yet — the single row still awaiting a verdict, because with
|
|
185
|
+
* exactly one candidate there is nothing to be ambiguous about.
|
|
186
|
+
*
|
|
187
|
+
* @param state - The run state.
|
|
188
|
+
* @returns The row's id, or `null` when the run is not on an identifiable row.
|
|
189
|
+
*/
|
|
190
|
+
export declare function currentRunRowId(state: TestsRunState): string | null;
|
|
191
|
+
/**
|
|
192
|
+
* The one-line name of the test a file is on: its group and its title, or just
|
|
193
|
+
* its title when the runner gave it no group.
|
|
194
|
+
*
|
|
195
|
+
* @param current - The running test, or `null`.
|
|
196
|
+
* @returns The label, or `` when nothing is named.
|
|
197
|
+
*/
|
|
198
|
+
export declare function testCaseLabel(current: TestCaseRef | null | undefined): string;
|
|
199
|
+
/**
|
|
200
|
+
* The state after a run that never produced a `done` event — the host's stream
|
|
201
|
+
* died, or its request failed before the server could answer.
|
|
202
|
+
*
|
|
203
|
+
* @param state - The current state.
|
|
204
|
+
* @param message - What to show in the card.
|
|
205
|
+
* @returns The next state, no longer running.
|
|
206
|
+
*/
|
|
207
|
+
export declare function failRun(state: TestsRunState, message: string): TestsRunState;
|
|
208
|
+
/**
|
|
209
|
+
* Whether a row should render as "running": the run is live and either the host
|
|
210
|
+
* named this row as current, or it is in the queue and has no verdict yet.
|
|
211
|
+
*
|
|
212
|
+
* @param state - The run state.
|
|
213
|
+
* @param id - The row's test id.
|
|
214
|
+
* @returns True when the row is part of the live run and still undecided.
|
|
215
|
+
*/
|
|
216
|
+
export declare function isRowRunning(state: TestsRunState, id: string): boolean;
|
|
217
|
+
/**
|
|
218
|
+
* The label for a row: the host's title when it gave one, else the file path.
|
|
219
|
+
*
|
|
220
|
+
* @param item - The test.
|
|
221
|
+
* @returns The label to render.
|
|
222
|
+
*/
|
|
223
|
+
export declare function testRowLabel(item: TestItem): string;
|
|
224
|
+
/**
|
|
225
|
+
* Filters tests by a free-text query, matching (case-insensitively) against the
|
|
226
|
+
* file path, the row title, and the project directory. A blank query returns
|
|
227
|
+
* every test in input order — the same contract as `filterScripts`.
|
|
228
|
+
*
|
|
229
|
+
* @param tests - The tests to filter.
|
|
230
|
+
* @param query - The search query.
|
|
231
|
+
* @returns The matching tests, in input order.
|
|
232
|
+
*/
|
|
233
|
+
export declare function filterTests(tests: readonly TestItem[], query: string): TestItem[];
|
|
234
|
+
/**
|
|
235
|
+
* Parses a `/test [query | all]` command (`/tests` is the registered alias).
|
|
236
|
+
*
|
|
237
|
+
* `all` is the one argument that ACTS: it runs everything immediately. Every
|
|
238
|
+
* other argument only filters the list, exactly the way `/scripts <query>` seeds
|
|
239
|
+
* the scripts browser — running ONE test by name is what the per-row Run button
|
|
240
|
+
* is for, and giving the argument a second meaning would make `/test <thing>`
|
|
241
|
+
* sometimes list and sometimes execute.
|
|
242
|
+
*
|
|
243
|
+
* @param input - The raw chat input.
|
|
244
|
+
* @returns `{ query, runAll }` when it is a `/test` command, else `null`.
|
|
245
|
+
*/
|
|
246
|
+
export declare function parseTestCommand(input: string): {
|
|
247
|
+
query: string;
|
|
248
|
+
runAll: boolean;
|
|
249
|
+
} | null;
|
|
250
|
+
/** Output kept per failure when several are batched into one fix message. */
|
|
251
|
+
export declare const MAX_FIX_OUTPUT_CHARS = 2000;
|
|
252
|
+
/** Total output kept across a batched fix message, so one click cannot send a novel. */
|
|
253
|
+
export declare const MAX_FIX_MESSAGE_OUTPUT_CHARS = 12000;
|
|
254
|
+
/** One failing test and the output that explains it. */
|
|
255
|
+
export interface TestFailure {
|
|
256
|
+
item: TestItem;
|
|
257
|
+
output?: string | undefined;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Compose the ONE user message the card's “Fix with Synthase” action sends.
|
|
261
|
+
*
|
|
262
|
+
* It is a real turn the executor answers, so it reads like something a person
|
|
263
|
+
* would type: which test failed, where it lives, what the runner said, and to
|
|
264
|
+
* re-run it. This is a PROMPT, not UI copy — it is not translated, exactly like
|
|
265
|
+
* the auto-fix loop’s own `Fix these issues:` message.
|
|
266
|
+
*
|
|
267
|
+
* @param failures - The failing tests, in the order the card lists them.
|
|
268
|
+
* @returns The message, or `` when there is nothing to fix.
|
|
269
|
+
*/
|
|
270
|
+
export declare function buildTestFixMessage(failures: readonly TestFailure[]): string;
|
|
271
|
+
/**
|
|
272
|
+
* Every listed test whose last verdict was a failure, with its output — what
|
|
273
|
+
* the card's fix actions send.
|
|
274
|
+
*
|
|
275
|
+
* @param tests - The currently listed (and filtered) tests.
|
|
276
|
+
* @param results - The per-id outcomes.
|
|
277
|
+
* @returns The failures, in list order.
|
|
278
|
+
*/
|
|
279
|
+
export declare function failedTests(tests: readonly TestItem[], results: Record<string, TestResultEntry>): TestFailure[];
|
|
280
|
+
//# sourceMappingURL=tests-card-utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tests-card-utilities.d.ts","sourceRoot":"","sources":["../../src/components/tests-card-utilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB,8EAA8E;AAC9E,MAAM,WAAW,WAAW;IAC1B,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2DAA2D;IAC3D,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,qEAAqE;AACrE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAA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