@qontinui/shared-types 2.4.1 → 3.0.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.
Files changed (57) hide show
  1. package/dist/scheduler.d.cts +81 -0
  2. package/dist/scheduler.d.ts +81 -0
  3. package/package.json +1 -1
  4. package/src/generated/ChangeTimeline.d.ts +484 -0
  5. package/src/generated/CriterionVerification.d.ts +11 -0
  6. package/src/generated/DetectedAnimation.d.ts +32 -0
  7. package/src/generated/EarsPattern.d.ts +20 -0
  8. package/src/generated/EdgeTiming.d.ts +156 -0
  9. package/src/generated/ExecutePlaybookStep.d.ts +5 -4
  10. package/src/generated/ExternalRef.d.ts +22 -0
  11. package/src/generated/InterfaceMappingFrontmatter.d.ts +21 -0
  12. package/src/generated/JourneyArrivalDoubt.d.ts +26 -0
  13. package/src/generated/JourneyCoverage.d.ts +91 -0
  14. package/src/generated/JourneyDeadEnds.d.ts +109 -0
  15. package/src/generated/JourneyEdgeObservation.d.ts +3 -2
  16. package/src/generated/JourneyEdgeTimingAnswer.d.ts +88 -0
  17. package/src/generated/JourneyFilter.d.ts +35 -0
  18. package/src/generated/JourneyFrontier.d.ts +51 -0
  19. package/src/generated/JourneyGraph.d.ts +165 -0
  20. package/src/generated/JourneyGraphEdge.d.ts +45 -0
  21. package/src/generated/JourneyPriorKnowledge.d.ts +112 -0
  22. package/src/generated/JourneyReachable.d.ts +64 -0
  23. package/src/generated/JourneySearchFrontier.d.ts +59 -0
  24. package/src/generated/JourneySearchFrontierNode.d.ts +37 -0
  25. package/src/generated/JourneySteps.d.ts +65 -0
  26. package/src/generated/JourneyUnmeasuredDepartures.d.ts +84 -0
  27. package/src/generated/ManagedBy.d.ts +45 -0
  28. package/src/generated/MappingRow.d.ts +23 -0
  29. package/src/generated/MetricDistribution.d.ts +54 -0
  30. package/src/generated/RecurringAgentDispatchRole.d.ts +11 -0
  31. package/src/generated/RecurringAgentExcludedValue.d.ts +20 -0
  32. package/src/generated/RecurringAgentOs.d.ts +11 -0
  33. package/src/generated/RecurringAgentOverride.d.ts +48 -0
  34. package/src/generated/RecurringAgentParamDef.d.ts +100 -0
  35. package/src/generated/RecurringAgentParamKind.d.ts +89 -0
  36. package/src/generated/RecurringAgentParamSchema.d.ts +16 -0
  37. package/src/generated/RecurringAgentSpec.d.ts +91 -0
  38. package/src/generated/RecurringAgentState.d.ts +13 -0
  39. package/src/generated/RecurringAgentStatus.d.ts +79 -0
  40. package/src/generated/RecurringAgentStatusReport.d.ts +48 -0
  41. package/src/generated/RecurringAgentTarget.d.ts +78 -0
  42. package/src/generated/RequestFrontmatter.d.ts +30 -0
  43. package/src/generated/RequirementFrontmatter.d.ts +31 -0
  44. package/src/generated/ScheduledTask.d.ts +15 -0
  45. package/src/generated/ScheduledTaskType.d.ts +21 -0
  46. package/src/generated/SourceCitation.d.ts +25 -0
  47. package/src/generated/SourceCitationKind.d.ts +12 -0
  48. package/src/generated/SpecAcceptanceCriterion.d.ts +28 -0
  49. package/src/generated/SpecFrontmatter.d.ts +36 -0
  50. package/src/generated/SpecLanguage.d.ts +11 -0
  51. package/src/generated/StoryFrontmatter.d.ts +26 -0
  52. package/src/generated/TemplateRef.d.ts +17 -0
  53. package/src/generated/UnknownCode.d.ts +8 -1
  54. package/src/generated/index.ts +45 -3
  55. package/src/generated/CapabilityState.d.ts +0 -25
  56. package/src/generated/CliProfile.d.ts +0 -492
  57. package/src/generated/SessionFailure.d.ts +0 -129
@@ -1,492 +0,0 @@
1
- /* eslint-disable */
2
- /**
3
- * This file was automatically generated.
4
- * DO NOT MODIFY IT BY HAND. Regenerate with
5
- * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
- */
7
-
8
- import type { CapabilityState } from "./CapabilityState";
9
-
10
- /**
11
- * How one account's CLI state is kept apart from another's.
12
- *
13
- * Wire shape (internally tagged with `"kind"`):
14
- * - `{ "kind": "env_var", "name": "CLAUDE_CONFIG_DIR" }`
15
- * - `{ "kind": "home_dir" }` / `{ "kind": "none" }` / `{ "kind": "unknown" }`
16
- */
17
- export type AccountIsolation =
18
- | {
19
- kind: "env_var";
20
- /**
21
- * The variable's name (`"CLAUDE_CONFIG_DIR"`).
22
- */
23
- name: string;
24
- [k: string]: unknown;
25
- }
26
- | {
27
- kind: "home_dir";
28
- [k: string]: unknown;
29
- }
30
- | {
31
- kind: "none";
32
- [k: string]: unknown;
33
- }
34
- | {
35
- kind: "unknown";
36
- [k: string]: unknown;
37
- };
38
- /**
39
- * One way a CLI can be authenticated.
40
- *
41
- * Wire shape (internally tagged with `"kind"`):
42
- * - `{ "kind": "cli_login", "args": ["login"] }`
43
- * - `{ "kind": "api_key_env", "vars": ["OPENAI_API_KEY"] }`
44
- *
45
- * No `unknown` arm: an unknown auth story is an empty
46
- * [`CliProfile::auth`] list.
47
- */
48
- export type AuthMethod =
49
- | {
50
- /**
51
- * Arguments after the program (`["login"]`, or `["/login"]` typed in
52
- * the TUI).
53
- */
54
- args: string[];
55
- kind: "cli_login";
56
- [k: string]: unknown;
57
- }
58
- | {
59
- kind: "api_key_env";
60
- /**
61
- * Variable names, in the CLI's precedence order.
62
- */
63
- vars: string[];
64
- [k: string]: unknown;
65
- };
66
- /**
67
- * How the CLI is launched without per-tool approval prompts.
68
- *
69
- * Wire shape (internally tagged with `"kind"`):
70
- * - `{ "kind": "flags", "argv": ["--permission-mode", "bypassPermissions"],
71
- * "detect": ["--dangerously-skip-permissions", "bypassPermissions"] }`
72
- * - `{ "kind": "none" }` / `{ "kind": "unknown" }`
73
- */
74
- export type AutoApprove =
75
- | {
76
- /**
77
- * The flags the runner appends to enable auto-approval.
78
- */
79
- argv: string[];
80
- /**
81
- * Tokens whose presence on an existing argv means auto-approval is
82
- * already on — every spelling the CLI accepts, not only the one the
83
- * runner writes.
84
- */
85
- detect: string[];
86
- kind: "flags";
87
- [k: string]: unknown;
88
- }
89
- | {
90
- kind: "none";
91
- [k: string]: unknown;
92
- }
93
- | {
94
- kind: "unknown";
95
- [k: string]: unknown;
96
- };
97
- /**
98
- * How the runner asks a live session to exit cleanly.
99
- *
100
- * Wire shape (internally tagged with `"kind"`):
101
- * - `{ "kind": "typed_command", "text": "/exit" }`
102
- * - `{ "kind": "signal" }` / `{ "kind": "unknown" }`
103
- *
104
- * `Unknown` means the runner must type nothing and report that it could not
105
- * exit the session gracefully.
106
- */
107
- export type GracefulExit =
108
- | {
109
- kind: "typed_command";
110
- /**
111
- * The command text (`"/exit"`).
112
- */
113
- text: string;
114
- [k: string]: unknown;
115
- }
116
- | {
117
- kind: "signal";
118
- [k: string]: unknown;
119
- }
120
- | {
121
- kind: "unknown";
122
- [k: string]: unknown;
123
- };
124
- /**
125
- * How the runner learns a CLI session's id.
126
- *
127
- * Wire shape (internally tagged with `"kind"`):
128
- * - `{ "kind": "pinned", "flag": "--session-id" }`
129
- * - `{ "kind": "read_back", "capture": "codex_session_file" }`
130
- * - `{ "kind": "unknown" }`
131
- */
132
- export type IdentitySource =
133
- | {
134
- /**
135
- * The flag that takes the id (`"--session-id"`).
136
- */
137
- flag: string;
138
- kind: "pinned";
139
- [k: string]: unknown;
140
- }
141
- | {
142
- /**
143
- * Name of the runner capture mechanism that recovers the id
144
- * (`"codex_session_file"`). The mechanism itself is runner behaviour.
145
- */
146
- capture: string;
147
- kind: "read_back";
148
- [k: string]: unknown;
149
- }
150
- | {
151
- kind: "unknown";
152
- [k: string]: unknown;
153
- };
154
- /**
155
- * What a restore of a CLI's session can honestly bring back.
156
- *
157
- * Serialized in the coord wire spelling the runner's `RestoreTier::wire_str`
158
- * already uses: `"full"` / `"terminal_only"`.
159
- *
160
- * Defaults to `TerminalOnly` — the conservative claim: a profile that has not
161
- * established resume must not promise the conversation back.
162
- */
163
- export type RestoreTier = "full" | "terminal_only";
164
- /**
165
- * How a session is resumed by id.
166
- *
167
- * Wire shape (internally tagged with `"kind"`):
168
- * - `{ "kind": "by_id_argv", "template": ["claude", "--resume", "{id}"] }`
169
- * - `{ "kind": "none" }` / `{ "kind": "unknown" }`
170
- */
171
- export type ResumeSpec =
172
- | {
173
- kind: "by_id_argv";
174
- /**
175
- * The argv template (`["codex", "resume", "{id}"]`).
176
- */
177
- template: string[];
178
- [k: string]: unknown;
179
- }
180
- | {
181
- kind: "none";
182
- [k: string]: unknown;
183
- }
184
- | {
185
- kind: "unknown";
186
- [k: string]: unknown;
187
- };
188
- /**
189
- * The machine-readable protocol a CLI offers besides its TUI.
190
- *
191
- * Wire shape (internally tagged with `"kind"` so an arm can gain data, e.g.
192
- * an adapter command for `acp`, without a breaking change):
193
- * `{ "kind": "claude_stream_json" }`, `{ "kind": "codex_app_server" }`,
194
- * `{ "kind": "acp" }`, `{ "kind": "none" }`, `{ "kind": "unknown" }`.
195
- */
196
- export type StructuredLane =
197
- | {
198
- kind: "claude_stream_json";
199
- [k: string]: unknown;
200
- }
201
- | {
202
- kind: "codex_app_server";
203
- [k: string]: unknown;
204
- }
205
- | {
206
- kind: "acp";
207
- [k: string]: unknown;
208
- }
209
- | {
210
- kind: "none";
211
- [k: string]: unknown;
212
- }
213
- | {
214
- kind: "unknown";
215
- [k: string]: unknown;
216
- };
217
- /**
218
- * Where the CLI writes its conversation transcript.
219
- *
220
- * Wire shape (internally tagged with `"kind"`):
221
- * - `{ "kind": "jsonl_under_config_dir", "subdir": "projects" }`
222
- * - `{ "kind": "session_file_glob", "glob": ".codex/sessions/** /rollout-*.jsonl" }`
223
- * - `{ "kind": "none" }` / `{ "kind": "unknown" }`
224
- */
225
- export type TranscriptSpec =
226
- | {
227
- kind: "jsonl_under_config_dir";
228
- /**
229
- * Subdirectory of the config dir holding transcripts (`"projects"`).
230
- */
231
- subdir: string;
232
- [k: string]: unknown;
233
- }
234
- | {
235
- /**
236
- * The glob (`".codex/sessions/** /rollout-*.jsonl"`).
237
- */
238
- glob: string;
239
- kind: "session_file_glob";
240
- [k: string]: unknown;
241
- }
242
- | {
243
- kind: "none";
244
- [k: string]: unknown;
245
- }
246
- | {
247
- kind: "unknown";
248
- [k: string]: unknown;
249
- };
250
- /**
251
- * Whether the CLI stops on a folder-trust prompt at first launch in a
252
- * directory.
253
- *
254
- * Wire shape (internally tagged with `"kind"`):
255
- * - `{ "kind": "prompt", "markers": ["Do you trust the files in this folder?"], "accept": "1" }`
256
- * - `{ "kind": "none" }` / `{ "kind": "unknown" }`
257
- */
258
- export type TrustDialog =
259
- | {
260
- /**
261
- * The keystroke text that accepts it (sent followed by Enter).
262
- */
263
- accept: string;
264
- kind: "prompt";
265
- /**
266
- * Case-insensitive substrings that identify the prompt on the
267
- * ANSI-stripped screen.
268
- */
269
- markers: string[];
270
- [k: string]: unknown;
271
- }
272
- | {
273
- kind: "none";
274
- [k: string]: unknown;
275
- }
276
- | {
277
- kind: "unknown";
278
- [k: string]: unknown;
279
- };
280
-
281
- /**
282
- * Everything the runner needs to know about one AI CLI's session behaviour.
283
- *
284
- * One instance per CLI (`claude`, `codex`, …), built by the runner as static
285
- * data and served to the frontend (`GET /terminals/cli-profiles`, Tauri
286
- * command `terminal_cli_profiles`) so no consumer holds a second copy.
287
- *
288
- * Every fact that can be unverified defaults to its `Unknown` arm; see the
289
- * module docs. Scraped facts ([`Self::handshake`], [`Self::usage_limit_phrases`],
290
- * [`TrustDialog::Prompt`]) break when the CLI changes its screens, which is
291
- * why [`Self::verified_version`] records the CLI version they were verified
292
- * against.
293
- */
294
- export interface CliProfile {
295
- /**
296
- * How one account's CLI state is kept apart from another's.
297
- */
298
- accountIsolation?: AccountIsolation & {};
299
- /**
300
- * The ways the CLI can be authenticated. Empty means none are recorded —
301
- * UNKNOWN, not "needs no authentication".
302
- */
303
- auth: AuthMethod[];
304
- /**
305
- * How the CLI is launched without per-tool approval prompts, and how an
306
- * existing argv is recognised as already doing so.
307
- */
308
- autoApprove?: AutoApprove & {};
309
- /**
310
- * Human-readable name for launch menus and zone labels (`"Claude Code"`).
311
- */
312
- displayName: string;
313
- /**
314
- * How the runner asks a live session to exit cleanly.
315
- */
316
- gracefulExit?: GracefulExit & {};
317
- /**
318
- * On-screen markers that decide whether a resume succeeded or failed.
319
- */
320
- handshake?: HandshakePatterns & {};
321
- /**
322
- * Stable provider id (`"claude"`, `"codex"`). The same string the runner
323
- * stores as a terminal session record's `provider`.
324
- */
325
- id: string;
326
- /**
327
- * How the runner learns the CLI's session id.
328
- */
329
- identity?: IdentitySource & {};
330
- /**
331
- * Per-OS install commands, shown beside a disabled launch entry when the
332
- * CLI's binary is absent.
333
- */
334
- install?: InstallCommands & {};
335
- /**
336
- * Free-form caveats a reader should see beside the profile (e.g. "macOS:
337
- * same code path, unverified on hardware").
338
- */
339
- notes?: string[];
340
- /**
341
- * Arguments that make the structured lane hand each tool approval to the
342
- * runner as a typed permission request instead of deciding it itself
343
- * (`["--permission-prompt-tool", "stdio"]`), verified against
344
- * [`Self::verified_version`]. Rendered only for a launch that asks to be
345
- * prompted, and never beside an auto-approve flag. Empty means no such
346
- * arguments are known, so a prompted structured launch is not offered.
347
- */
348
- permissionPromptArgs?: string[];
349
- /**
350
- * Program stems that identify this CLI on an argv head or in a process
351
- * census, without directory or extension (`["claude"]`). Matching strips
352
- * the path and a Windows `.exe`/`.cmd` suffix before comparing.
353
- */
354
- programs: string[];
355
- /**
356
- * Arguments the runner appends to every PTY-hosted (interactive TUI)
357
- * launch of this CLI, verified against [`Self::verified_version`]
358
- * (`["--teammate-mode", "in-process"]`, which keeps Claude Code agent
359
- * teams inside the session instead of splitting the caller's tmux window).
360
- * Empty means none.
361
- */
362
- ptyArgs?: string[];
363
- /**
364
- * Whether the structured lane emits a typed rate-limit event.
365
- */
366
- rateLimitEvent?: CapabilityState & string;
367
- /**
368
- * What a restore of this CLI's session can honestly bring back.
369
- */
370
- restoreTier?: RestoreTier & string;
371
- /**
372
- * How a session is resumed by id.
373
- */
374
- resume?: ResumeSpec & {};
375
- /**
376
- * Other spellings the CLI accepts for the resume flag of
377
- * [`ResumeSpec::ByIdArgv`] (`["-r"]`). Matched only as a whole argv
378
- * token followed by the id, and only when the argv's program is this
379
- * CLI: a short flag like `-r` means something else to most programs.
380
- * Empty means none are known.
381
- */
382
- resumeFlagAliases?: string[];
383
- /**
384
- * Argv tokens, besides the identity flag, the resume flag and its
385
- * aliases, by which the user picks the session themselves
386
- * (`["--continue", "-c"]` — continue the most recent session). Any of
387
- * them on a launch means the runner must not pin an id of its own. A token
388
- * matches a whole argv entry case-insensitively; a `--long` token also
389
- * matches `--long=…`. Empty means none are known.
390
- */
391
- sessionChoiceArgs?: string[];
392
- /**
393
- * The machine-readable protocol the CLI offers besides its TUI.
394
- */
395
- structuredLane?: StructuredLane & {};
396
- /**
397
- * Where the CLI writes its conversation transcript.
398
- */
399
- transcript?: TranscriptSpec & {};
400
- /**
401
- * Whether the CLI stops on a folder-trust prompt at first launch in a
402
- * directory, and how to recognise and answer it.
403
- */
404
- trustDialog?: TrustDialog & {};
405
- /**
406
- * Whether the structured lane emits an explicit end-of-turn event.
407
- */
408
- turnBoundaryEvent?: CapabilityState & string;
409
- /**
410
- * Whether the structured lane delivers a typed permission request (a
411
- * tool-use approval the runner answers) rather than bypassing approval.
412
- */
413
- typedPermission?: CapabilityState & string;
414
- /**
415
- * Case-insensitive phrases the CLI paints when an account's usage limit
416
- * is reached. A grid match is a `Hint`-confidence
417
- * [`FailureKind::QuotaExhausted`] signal, never a confirmed one. Empty
418
- * means no phrases are known.
419
- */
420
- usageLimitPhrases: string[];
421
- /**
422
- * CLI version the scraped facts in this profile were verified against
423
- * (`"2.1.285"`). `None` means no version was recorded — treat every
424
- * scraped fact as unverified.
425
- */
426
- verifiedVersion?: string | null;
427
- [k: string]: unknown;
428
- }
429
- /**
430
- * On-screen markers that decide whether a resume succeeded or failed.
431
- *
432
- * Substring lists match the ANSI-stripped screen case-insensitively; regex
433
- * lists are compiled by BOTH the Rust `regex` crate and JavaScript `RegExp`,
434
- * so a pattern must stay in the syntax both engines accept (no look-around,
435
- * no backreferences, no named-group syntax that differs between them).
436
- *
437
- * Regex sources are ALWAYS matched case-insensitively, like the substrings:
438
- * each engine compiles them with its own case-insensitive switch (Rust
439
- * `RegexBuilder::case_insensitive`, the JavaScript `i` flag). A source must
440
- * therefore not carry inline flags such as `(?i)`, which JavaScript rejects.
441
- *
442
- * All body lists empty means no markers are known, and a resume cannot be
443
- * verified from the screen.
444
- */
445
- export interface HandshakePatterns {
446
- /**
447
- * Substrings whose presence means the resume failed.
448
- */
449
- failure: string[];
450
- /**
451
- * Regex sources (matched case-insensitively) whose match means the
452
- * resume failed.
453
- */
454
- failureRegex: string[];
455
- /**
456
- * Substrings whose presence means the resumed session came up.
457
- */
458
- success: string[];
459
- /**
460
- * Regex sources (matched case-insensitively) whose match means the
461
- * resumed session came up.
462
- */
463
- successRegex: string[];
464
- /**
465
- * Regex sources (matched case-insensitively) matched against the pane's
466
- * CURRENT window title only, never its body, whose match means the
467
- * resumed session came up. A title the CLI sets at launch is evidence the
468
- * body cannot fake, provided the pattern is anchored to the CLI's own
469
- * title (the shell titles the window too). Empty means none are known.
470
- */
471
- titleRegex?: string[];
472
- [k: string]: unknown;
473
- }
474
- /**
475
- * Per-OS install commands for a CLI. `None` for an OS means no command is
476
- * recorded for it.
477
- */
478
- export interface InstallCommands {
479
- /**
480
- * Install command on Linux (`"npm i -g @openai/codex"`).
481
- */
482
- linux?: string | null;
483
- /**
484
- * Install command on macOS.
485
- */
486
- macos?: string | null;
487
- /**
488
- * Install command on Windows.
489
- */
490
- windows?: string | null;
491
- [k: string]: unknown;
492
- }
@@ -1,129 +0,0 @@
1
- /* eslint-disable */
2
- /**
3
- * This file was automatically generated.
4
- * DO NOT MODIFY IT BY HAND. Regenerate with
5
- * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
- */
7
-
8
- /**
9
- * An action a surface may offer for a failure. Serialized `snake_case`.
10
- */
11
- export type FailureAction =
12
- "retry" | "login" | "switch_account" | "new_session" | "resume" | "none";
13
-
14
- /**
15
- * One failure of an AI session, whichever lane noticed it.
16
- *
17
- * Emitted on the runner's `session-failure` event and readable from its
18
- * failures route, so a surface can render *why* a session stopped and which
19
- * actions are available, instead of an exit code or a bare banner. The
20
- * runner's classifier fills it from a signal and its recovery table chooses
21
- * [`Self::recovery_policy`]; neither lives in this crate.
22
- */
23
- export interface SessionFailure {
24
- /**
25
- * The account the session was running under, when known.
26
- */
27
- account?: string | null;
28
- /**
29
- * Actions a surface may offer the user, in display order.
30
- */
31
- actions: FailureAction[];
32
- /**
33
- * Coarse grouping of [`Self::kind`] for filtering and styling.
34
- */
35
- category:
36
- | "limit"
37
- | "context"
38
- | "auth"
39
- | "provider"
40
- | "process"
41
- | "session"
42
- | "request"
43
- | "unknown";
44
- /**
45
- * Longer human-readable explanation.
46
- */
47
- details?: string | null;
48
- evidence: FailureEvidence;
49
- /**
50
- * Unique id of this failure occurrence (UUID minted by the runner).
51
- */
52
- id: string;
53
- /**
54
- * What went wrong. [`FailureKind::Unknown`] is a real answer, not "fine".
55
- */
56
- kind:
57
- | "rate_limited"
58
- | "quota_exhausted"
59
- | "budget_exhausted"
60
- | "context_exhausted"
61
- | "auth_required"
62
- | "access_denied"
63
- | "overloaded"
64
- | "transport_lost"
65
- | "resume_failed"
66
- | "spawn_failed"
67
- | "process_exited"
68
- | "bad_request"
69
- | "internal_error"
70
- | "unknown";
71
- /**
72
- * The [`CliProfile::id`] of the CLI whose session failed.
73
- */
74
- provider: string;
75
- /**
76
- * The raw reason the source gave, verbatim (a provider error type, a
77
- * stderr line, the matched screen phrase), for diagnosis.
78
- */
79
- reason?: string | null;
80
- /**
81
- * What the runner does about it automatically.
82
- */
83
- recoveryPolicy:
84
- | "never"
85
- | "backoff_then_retry"
86
- | "wait_until_reset"
87
- | "migrate_account"
88
- | "login_then_resume"
89
- | "resume_same_id"
90
- | "handoff_new_session";
91
- /**
92
- * When a limit resets (RFC 3339), when the source states it.
93
- */
94
- resetAt?: string | null;
95
- /**
96
- * How serious the failure is for the session.
97
- */
98
- severity: "info" | "warning" | "error";
99
- /**
100
- * One-line human-readable summary.
101
- */
102
- title: string;
103
- /**
104
- * The turn that failed, when the source identifies one.
105
- */
106
- turnId?: string | null;
107
- [k: string]: unknown;
108
- }
109
- /**
110
- * Where the failure was observed and how sure the runner is of it.
111
- */
112
- export interface FailureEvidence {
113
- /**
114
- * Whether the source states the failure or merely suggests it.
115
- */
116
- confidence: "confirmed" | "hint";
117
- /**
118
- * The signal source.
119
- */
120
- source:
121
- | "structured_event"
122
- | "hook"
123
- | "stderr"
124
- | "grid_scrape"
125
- | "exit_status"
126
- | "transcript"
127
- | "handshake_timeout";
128
- [k: string]: unknown;
129
- }