@sedum-dev/core 0.1.0-alpha.4 → 0.1.0-alpha.6

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/dist/index.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { z } from 'zod';
2
+ import { Page, BrowserContext } from 'playwright-core';
3
+ import { F as FlowSource, D as DeclaredDataValue, M as ModuleBinding, a as FlowToken, b as FlowScalar, S as SentenceStep, c as FlowDiagnostic, d as FlowDefinition, P as ParsedFlowResult, e as ParsedModuleResult, V as ValidationInput, f as FlowValidationResult, g as ModuleStep, R as ResolvedModuleCall, h as FullValidationCoverage, T as TestBody, i as ScriptRegistration, A as AiValues } from './script-api-D3if59MQ.js';
4
+ export { j as Ai, k as AiValue, l as FlowStep, m as FormatCoverage, n as ModuleDefinition, o as Parser, p as SecretValue, q as TestContext, r as TestInfo, s as TestOptions, t as formatFlowDiagnostic, u as isFullyValidated, v as isSecret, w as parseFrame, x as pathKey, y as revealSecret, z as samePath, B as scriptRegistry, C as secret, E as sourceInFile, G as test } from './script-api-D3if59MQ.js';
2
5
  import { inspect } from 'node:util';
6
+ import 'playwright/test';
3
7
 
4
8
  declare const ResultSourceSchema: z.ZodObject<{
5
9
  file: z.ZodString;
@@ -77,6 +81,7 @@ declare const ResultLocatorSchema: z.ZodObject<{
77
81
  abstained: "abstained";
78
82
  }>>;
79
83
  reason: z.ZodOptional<z.ZodString>;
84
+ abstentionReason: z.ZodOptional<z.ZodString>;
80
85
  elapsedMs: z.ZodNumber;
81
86
  failure: z.ZodOptional<z.ZodEnum<{
82
87
  unknown: "unknown";
@@ -88,6 +93,7 @@ declare const ResultLocatorSchema: z.ZodObject<{
88
93
  invalid_json: "invalid_json";
89
94
  invalid_selection: "invalid_selection";
90
95
  truncated_response: "truncated_response";
96
+ stale_page: "stale_page";
91
97
  }>>;
92
98
  httpStatus: z.ZodOptional<z.ZodNumber>;
93
99
  }, z.core.$strict>>;
@@ -137,6 +143,7 @@ declare const ResultStepSchema: z.ZodObject<{
137
143
  }>;
138
144
  sentence: z.ZodString;
139
145
  detail: z.ZodString;
146
+ group: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
147
  sourceStack: z.ZodArray<z.ZodObject<{
141
148
  file: z.ZodString;
142
149
  line: z.ZodNumber;
@@ -177,6 +184,7 @@ declare const ResultStepSchema: z.ZodObject<{
177
184
  abstained: "abstained";
178
185
  }>>;
179
186
  reason: z.ZodOptional<z.ZodString>;
187
+ abstentionReason: z.ZodOptional<z.ZodString>;
180
188
  elapsedMs: z.ZodNumber;
181
189
  failure: z.ZodOptional<z.ZodEnum<{
182
190
  unknown: "unknown";
@@ -188,6 +196,7 @@ declare const ResultStepSchema: z.ZodObject<{
188
196
  invalid_json: "invalid_json";
189
197
  invalid_selection: "invalid_selection";
190
198
  truncated_response: "truncated_response";
199
+ stale_page: "stale_page";
191
200
  }>>;
192
201
  httpStatus: z.ZodOptional<z.ZodNumber>;
193
202
  }, z.core.$strict>>;
@@ -334,6 +343,7 @@ declare const ResultAttemptSchema: z.ZodObject<{
334
343
  flags: z.ZodArray<z.ZodEnum<{
335
344
  low_confidence: "low_confidence";
336
345
  contradiction: "contradiction";
346
+ flaky: "flaky";
337
347
  }>>;
338
348
  startedAt: z.ZodString;
339
349
  finishedAt: z.ZodNullable<z.ZodString>;
@@ -361,6 +371,7 @@ declare const ResultAttemptSchema: z.ZodObject<{
361
371
  }>;
362
372
  sentence: z.ZodString;
363
373
  detail: z.ZodString;
374
+ group: z.ZodOptional<z.ZodArray<z.ZodString>>;
364
375
  sourceStack: z.ZodArray<z.ZodObject<{
365
376
  file: z.ZodString;
366
377
  line: z.ZodNumber;
@@ -401,6 +412,7 @@ declare const ResultAttemptSchema: z.ZodObject<{
401
412
  abstained: "abstained";
402
413
  }>>;
403
414
  reason: z.ZodOptional<z.ZodString>;
415
+ abstentionReason: z.ZodOptional<z.ZodString>;
404
416
  elapsedMs: z.ZodNumber;
405
417
  failure: z.ZodOptional<z.ZodEnum<{
406
418
  unknown: "unknown";
@@ -412,6 +424,7 @@ declare const ResultAttemptSchema: z.ZodObject<{
412
424
  invalid_json: "invalid_json";
413
425
  invalid_selection: "invalid_selection";
414
426
  truncated_response: "truncated_response";
427
+ stale_page: "stale_page";
415
428
  }>>;
416
429
  httpStatus: z.ZodOptional<z.ZodNumber>;
417
430
  }, z.core.$strict>>;
@@ -589,6 +602,7 @@ declare const ResultTestSchema: z.ZodObject<{
589
602
  flags: z.ZodArray<z.ZodEnum<{
590
603
  low_confidence: "low_confidence";
591
604
  contradiction: "contradiction";
605
+ flaky: "flaky";
592
606
  }>>;
593
607
  selectedAttemptId: z.ZodNullable<z.ZodString>;
594
608
  attempts: z.ZodArray<z.ZodObject<{
@@ -607,6 +621,7 @@ declare const ResultTestSchema: z.ZodObject<{
607
621
  flags: z.ZodArray<z.ZodEnum<{
608
622
  low_confidence: "low_confidence";
609
623
  contradiction: "contradiction";
624
+ flaky: "flaky";
610
625
  }>>;
611
626
  startedAt: z.ZodString;
612
627
  finishedAt: z.ZodNullable<z.ZodString>;
@@ -634,6 +649,7 @@ declare const ResultTestSchema: z.ZodObject<{
634
649
  }>;
635
650
  sentence: z.ZodString;
636
651
  detail: z.ZodString;
652
+ group: z.ZodOptional<z.ZodArray<z.ZodString>>;
637
653
  sourceStack: z.ZodArray<z.ZodObject<{
638
654
  file: z.ZodString;
639
655
  line: z.ZodNumber;
@@ -674,6 +690,7 @@ declare const ResultTestSchema: z.ZodObject<{
674
690
  abstained: "abstained";
675
691
  }>>;
676
692
  reason: z.ZodOptional<z.ZodString>;
693
+ abstentionReason: z.ZodOptional<z.ZodString>;
677
694
  elapsedMs: z.ZodNumber;
678
695
  failure: z.ZodOptional<z.ZodEnum<{
679
696
  unknown: "unknown";
@@ -685,6 +702,7 @@ declare const ResultTestSchema: z.ZodObject<{
685
702
  invalid_json: "invalid_json";
686
703
  invalid_selection: "invalid_selection";
687
704
  truncated_response: "truncated_response";
705
+ stale_page: "stale_page";
688
706
  }>>;
689
707
  httpStatus: z.ZodOptional<z.ZodNumber>;
690
708
  }, z.core.$strict>>;
@@ -867,6 +885,14 @@ declare const ResultExecutionSchema: z.ZodObject<{
867
885
  globalSelectedTests: z.ZodNumber;
868
886
  }, z.core.$strict>>;
869
887
  providerConcurrency: z.ZodNumber;
888
+ vision: z.ZodOptional<z.ZodObject<{
889
+ model: z.ZodString;
890
+ key: z.ZodEnum<{
891
+ accepted: "accepted";
892
+ rejected: "rejected";
893
+ unreachable: "unreachable";
894
+ }>;
895
+ }, z.core.$strict>>;
870
896
  }, z.core.$strict>;
871
897
  declare const RunResultSchema: z.ZodObject<{
872
898
  schemaVersion: z.ZodLiteral<1>;
@@ -884,6 +910,7 @@ declare const RunResultSchema: z.ZodObject<{
884
910
  flags: z.ZodArray<z.ZodEnum<{
885
911
  low_confidence: "low_confidence";
886
912
  contradiction: "contradiction";
913
+ flaky: "flaky";
887
914
  }>>;
888
915
  startedAt: z.ZodString;
889
916
  updatedAt: z.ZodString;
@@ -901,6 +928,14 @@ declare const RunResultSchema: z.ZodObject<{
901
928
  globalSelectedTests: z.ZodNumber;
902
929
  }, z.core.$strict>>;
903
930
  providerConcurrency: z.ZodNumber;
931
+ vision: z.ZodOptional<z.ZodObject<{
932
+ model: z.ZodString;
933
+ key: z.ZodEnum<{
934
+ accepted: "accepted";
935
+ rejected: "rejected";
936
+ unreachable: "unreachable";
937
+ }>;
938
+ }, z.core.$strict>>;
904
939
  }, z.core.$strict>>;
905
940
  totals: z.ZodObject<{
906
941
  selectedTests: z.ZodNumber;
@@ -962,6 +997,7 @@ declare const RunResultSchema: z.ZodObject<{
962
997
  flags: z.ZodArray<z.ZodEnum<{
963
998
  low_confidence: "low_confidence";
964
999
  contradiction: "contradiction";
1000
+ flaky: "flaky";
965
1001
  }>>;
966
1002
  selectedAttemptId: z.ZodNullable<z.ZodString>;
967
1003
  attempts: z.ZodArray<z.ZodObject<{
@@ -980,6 +1016,7 @@ declare const RunResultSchema: z.ZodObject<{
980
1016
  flags: z.ZodArray<z.ZodEnum<{
981
1017
  low_confidence: "low_confidence";
982
1018
  contradiction: "contradiction";
1019
+ flaky: "flaky";
983
1020
  }>>;
984
1021
  startedAt: z.ZodString;
985
1022
  finishedAt: z.ZodNullable<z.ZodString>;
@@ -1007,6 +1044,7 @@ declare const RunResultSchema: z.ZodObject<{
1007
1044
  }>;
1008
1045
  sentence: z.ZodString;
1009
1046
  detail: z.ZodString;
1047
+ group: z.ZodOptional<z.ZodArray<z.ZodString>>;
1010
1048
  sourceStack: z.ZodArray<z.ZodObject<{
1011
1049
  file: z.ZodString;
1012
1050
  line: z.ZodNumber;
@@ -1047,6 +1085,7 @@ declare const RunResultSchema: z.ZodObject<{
1047
1085
  abstained: "abstained";
1048
1086
  }>>;
1049
1087
  reason: z.ZodOptional<z.ZodString>;
1088
+ abstentionReason: z.ZodOptional<z.ZodString>;
1050
1089
  elapsedMs: z.ZodNumber;
1051
1090
  failure: z.ZodOptional<z.ZodEnum<{
1052
1091
  unknown: "unknown";
@@ -1058,6 +1097,7 @@ declare const RunResultSchema: z.ZodObject<{
1058
1097
  invalid_json: "invalid_json";
1059
1098
  invalid_selection: "invalid_selection";
1060
1099
  truncated_response: "truncated_response";
1100
+ stale_page: "stale_page";
1061
1101
  }>>;
1062
1102
  httpStatus: z.ZodOptional<z.ZodNumber>;
1063
1103
  }, z.core.$strict>>;
@@ -1278,6 +1318,8 @@ declare class TestRecording {
1278
1318
  addProblem(input: ProblemInput): Promise<void>;
1279
1319
  addAttemptCalls(calls: readonly ResultCall[]): Promise<void>;
1280
1320
  finishTest(verdict: "passed" | "failed"): Promise<void>;
1321
+ /** Ends a running attempt that could not run; the run itself continues. */
1322
+ errorTest(error: NonNullable<ResultAttempt["error"]>): Promise<void>;
1281
1323
  }
1282
1324
  /** One run owns the mutable journal; each published value is a validated copy. */
1283
1325
  declare class RunRecorder {
@@ -1326,6 +1368,8 @@ declare class RunRecorder {
1326
1368
  startAttempt(): Promise<void>;
1327
1369
  /** @internal Use `TestRecording.finishTest`. */
1328
1370
  finishTestFor(testId: string, verdict: "passed" | "failed"): Promise<void>;
1371
+ /** @internal Use `TestRecording.errorTest`. */
1372
+ errorTestFor(testId: string, error: NonNullable<ResultAttempt["error"]>): Promise<void>;
1329
1373
  finishTest(verdict: "passed" | "failed"): Promise<void>;
1330
1374
  finish(error?: RunResult["error"], terminalState?: "error" | "interrupted"): Promise<void>;
1331
1375
  }
@@ -1550,19 +1594,34 @@ declare class BrowserDriverError extends Error {
1550
1594
  readonly code: BrowserDriverErrorCode;
1551
1595
  constructor(code: BrowserDriverErrorCode, message: string, cause?: unknown);
1552
1596
  }
1597
+ /** A click on a native dropdown chooses one of its options instead. */
1598
+ interface ClickOptions {
1599
+ readonly timeoutMs?: number;
1600
+ /** Returns the option label to choose, or null when none is named. */
1601
+ readonly chooseOption?: (labels: readonly string[]) => string | null;
1602
+ }
1603
+ type ClickResult = AimResult | {
1604
+ readonly actionable: false;
1605
+ readonly reason: "option_not_named";
1606
+ /** The enabled options, so the step can say what to name. */
1607
+ readonly options: readonly string[];
1608
+ };
1553
1609
  interface BrowserPage {
1554
1610
  readonly url: string;
1555
1611
  readonly closed: boolean;
1556
1612
  /** Optional diagnostic effects; fake pages may leave them unavailable. */
1557
1613
  title?(): Promise<string>;
1558
1614
  captureFrame?(): Promise<Uint8Array>;
1615
+ /** The underlying Playwright objects, for code in `*.test.ts` bodies. */
1616
+ playwright?(): {
1617
+ readonly page: Page;
1618
+ readonly context: BrowserContext;
1619
+ };
1559
1620
  goto(url: string, options?: NavigationOptions): Promise<NavigationResult>;
1560
1621
  settle(options?: SettleOptions): Promise<SettleResult>;
1561
1622
  text(): Promise<string>;
1562
1623
  evaluate<T>(expression: string, argument?: unknown): Promise<T>;
1563
- clickRef(aim: Aim, options?: {
1564
- readonly timeoutMs?: number;
1565
- }): Promise<AimResult>;
1624
+ clickRef(aim: Aim, options?: ClickOptions): Promise<ClickResult>;
1566
1625
  fillRef(target: FillTarget, value: string, options?: {
1567
1626
  readonly timeoutMs?: number;
1568
1627
  }): Promise<FillResult>;
@@ -1595,128 +1654,6 @@ declare class PlaywrightBrowserDriver implements BrowserDriver {
1595
1654
  }
1596
1655
  declare function installChromium(withDeps?: boolean): BrowserInstallResult;
1597
1656
 
1598
- /** Source positions come from YAML nodes, never from searching the source text. */
1599
- interface FlowSource {
1600
- readonly file: string;
1601
- readonly line: number;
1602
- readonly col: number;
1603
- }
1604
- interface FlowDiagnostic {
1605
- readonly severity: "error" | "warning";
1606
- readonly code: string;
1607
- readonly source: FlowSource;
1608
- readonly message: string;
1609
- readonly fix: string;
1610
- }
1611
- type FlowScalar = string | number | boolean | null;
1612
- interface DeclaredDataValue {
1613
- readonly value: FlowScalar;
1614
- readonly source: FlowSource;
1615
- }
1616
- interface FlowToken {
1617
- readonly kind: "placeholder" | "quoted";
1618
- readonly start: number;
1619
- readonly end: number;
1620
- readonly text: string;
1621
- readonly key?: string;
1622
- }
1623
- interface SentenceStep {
1624
- readonly kind: "sentence";
1625
- readonly phase: "before" | "steps" | "after";
1626
- readonly text: string;
1627
- readonly tokens: readonly FlowToken[];
1628
- readonly source: FlowSource;
1629
- /** SED-29 adds module call sites before the sentence source. */
1630
- readonly sourceStack?: readonly FlowSource[];
1631
- }
1632
- interface ModuleBinding {
1633
- readonly value: FlowScalar;
1634
- readonly source: FlowSource;
1635
- }
1636
- interface ModuleStep {
1637
- readonly kind: "module";
1638
- readonly phase: "before" | "steps" | "after";
1639
- readonly use: string;
1640
- readonly with: Readonly<Record<string, FlowScalar>>;
1641
- readonly withSources: Readonly<Record<string, FlowSource>>;
1642
- readonly source: FlowSource;
1643
- /** SED-29 adds each resolved module source after this call site. */
1644
- readonly sourceStack: readonly FlowSource[];
1645
- /** Present only after the complete module graph has been resolved. */
1646
- readonly resolved?: ResolvedModuleCall;
1647
- }
1648
- interface ResolvedModuleCall {
1649
- readonly id: string;
1650
- readonly file: string;
1651
- readonly parameters: readonly string[];
1652
- readonly bindings: Readonly<Record<string, ModuleBinding>>;
1653
- readonly steps: readonly FlowStep[];
1654
- }
1655
- type FlowStep = SentenceStep | ModuleStep;
1656
- interface FlowDefinition {
1657
- readonly version: 1;
1658
- readonly file: string;
1659
- readonly identity: string;
1660
- readonly explicitId?: string;
1661
- readonly idSource?: FlowSource;
1662
- readonly description?: string;
1663
- readonly url?: string;
1664
- /** Position of the `url` value, for entry-URL diagnostics. */
1665
- readonly urlSource?: FlowSource;
1666
- readonly tags: readonly string[];
1667
- readonly meta: Readonly<Record<string, unknown>>;
1668
- readonly data: Readonly<Record<string, DeclaredDataValue>>;
1669
- readonly before: readonly FlowStep[];
1670
- readonly steps: readonly FlowStep[];
1671
- readonly after: readonly FlowStep[];
1672
- readonly goal?: {
1673
- readonly text: string;
1674
- readonly source: FlowSource;
1675
- readonly verify: string;
1676
- readonly verifySource: FlowSource;
1677
- };
1678
- }
1679
- interface ModuleDefinition {
1680
- readonly file: string;
1681
- readonly source: FlowSource;
1682
- readonly parameters: readonly string[];
1683
- readonly steps: readonly FlowStep[];
1684
- }
1685
- interface ParsedModuleResult {
1686
- readonly value?: ModuleDefinition;
1687
- readonly diagnostics: readonly FlowDiagnostic[];
1688
- }
1689
- /** A format-only result cannot be mistaken for full validation. */
1690
- interface FormatCoverage {
1691
- readonly format: "passed" | "failed";
1692
- readonly steps: "not_checked";
1693
- readonly modules: "not_needed" | "not_checked";
1694
- }
1695
- interface ParsedFlowResult {
1696
- readonly value?: FlowDefinition;
1697
- /** Parsed steps retained only for collecting later errors; never executable. */
1698
- readonly candidate?: FlowDefinition;
1699
- readonly diagnostics: readonly FlowDiagnostic[];
1700
- readonly coverage: FullValidationCoverage;
1701
- }
1702
- interface ValidationInput {
1703
- readonly source: string;
1704
- readonly path: string;
1705
- }
1706
- interface FlowValidationResult {
1707
- readonly files: readonly ParsedFlowResult[];
1708
- readonly diagnostics: readonly FlowDiagnostic[];
1709
- readonly coverage: FormatCoverage;
1710
- }
1711
- /** SED-28/29/37 may only mark checks complete after actually performing them. */
1712
- interface FullValidationCoverage {
1713
- readonly format: "passed" | "failed";
1714
- readonly steps: "not_checked" | "checked" | "incomplete";
1715
- readonly modules: "not_needed" | "not_checked" | "checked" | "incomplete";
1716
- }
1717
- declare function isFullyValidated(coverage: FullValidationCoverage, diagnostics: readonly FlowDiagnostic[]): boolean;
1718
- declare function formatFlowDiagnostic(diagnostic: FlowDiagnostic): string;
1719
-
1720
1657
  interface ReportPrivacy {
1721
1658
  readonly secretValues: string[];
1722
1659
  readonly sensitiveOrigins?: readonly string[];
@@ -1749,7 +1686,9 @@ declare class ReusableBrowserDriver implements BrowserDriver {
1749
1686
 
1750
1687
  declare const CACHE_FORMAT = 1;
1751
1688
  declare const MATCHER_VERSION = 1;
1752
- type CacheMissReason = "absent" | "disabled" | "ci_default" | "outside_git" | "runtime_dependent" | "format_mismatch" | "matcher_mismatch" | "corrupt" | "storage_error" | "conflict" | "target_missing" | "strong_signal_conflict" | "low_score" | "near_tie" | "candidate_set_incomplete" | "not_actionable";
1689
+ type CacheMissReason = "absent"
1690
+ /** The target has no signal that can safely find it again, such as an input button. */
1691
+ | "not_cacheable" | "disabled" | "ci_default" | "outside_git" | "runtime_dependent" | "format_mismatch" | "matcher_mismatch" | "corrupt" | "storage_error" | "conflict" | "target_missing" | "strong_signal_conflict" | "low_score" | "near_tie" | "candidate_set_incomplete" | "not_actionable";
1753
1692
  interface CacheEntry {
1754
1693
  readonly format: number;
1755
1694
  readonly matcher: number;
@@ -1865,6 +1804,8 @@ declare class ResolvedStepTarget {
1865
1804
  type StepCommand = {
1866
1805
  readonly op: "click";
1867
1806
  readonly target: ResolvedStepTarget;
1807
+ /** Picks the option to choose when the target is a native dropdown. */
1808
+ readonly chooseOption?: (labels: readonly string[]) => string | null;
1868
1809
  } | {
1869
1810
  readonly op: "type";
1870
1811
  readonly target: ResolvedStepTarget;
@@ -1898,7 +1839,9 @@ declare class StepExecutionError extends Error {
1898
1839
  readonly phase: StepFailurePhase;
1899
1840
  readonly retryable: boolean;
1900
1841
  readonly callLog: readonly string[];
1901
- constructor(op: StepOperation, code: StepFailureCode, phase: StepFailurePhase, callLog?: readonly string[]);
1842
+ constructor(op: StepOperation, code: StepFailureCode, phase: StepFailurePhase, callLog?: readonly string[],
1843
+ /** A reader-facing explanation that replaces the generic message. */
1844
+ detail?: string);
1902
1845
  toJSON(): object;
1903
1846
  }
1904
1847
  interface StepExecutionOptions {
@@ -2010,6 +1953,13 @@ interface Judge {
2010
1953
  holds(claim: string, pageDigest: JudgePageDigest, options?: ProviderCallOptions): Promise<JudgeDecision>;
2011
1954
  }
2012
1955
  type ProviderErrorCode = "configuration" | "authentication" | "unsupported-input" | "invalid-input" | "invalid-response" | "timeout" | "connection" | "retry-exhausted" | "rate-limited";
1956
+ /**
1957
+ * A provider failure that every later request will hit too: a rejected key,
1958
+ * a bad configuration, or rate limiting that outlasted its waits. Engines
1959
+ * pass these through instead of turning them into a step outcome, so the
1960
+ * run stops instead of failing each remaining test the same way.
1961
+ */
1962
+ declare function isRunWideProviderError(error: unknown): error is ProviderError;
2013
1963
  declare class ProviderError extends Error {
2014
1964
  readonly code: ProviderErrorCode;
2015
1965
  readonly attempts: number;
@@ -2085,6 +2035,15 @@ declare function captureVisionObservation(page: BrowserPage, candidates: readonl
2085
2035
  observation: VisionObservation;
2086
2036
  candidates: readonly Candidate[];
2087
2037
  } | null>;
2038
+ type VisionKeyProbe = "accepted" | "rejected" | "unreachable";
2039
+ /**
2040
+ * Checks OPEN_ROUTER_API_KEY without a model request: OpenRouter's key
2041
+ * endpoint answers 401 for an unknown key and is not billed.
2042
+ */
2043
+ declare function probeOpenRouterKey(apiKey: string, options?: {
2044
+ readonly timeoutMs?: number;
2045
+ readonly signal?: AbortSignal;
2046
+ }): Promise<VisionKeyProbe>;
2088
2047
 
2089
2048
  type LocatorFailure = "none" | "ambiguous" | "stale" | "no_candidates" | "incomplete" | "resource_limit" | "not_fillable" | "provider_error" | "request_too_large" | "invalid_input" | "timeout";
2090
2049
  interface LocatorOptionDiagnostic {
@@ -2096,8 +2055,9 @@ interface LocatorDiagnostic {
2096
2055
  readonly vision?: {
2097
2056
  readonly outcome?: "selected" | "abstained" | "failed";
2098
2057
  readonly reason?: string;
2058
+ readonly abstentionReason?: string;
2099
2059
  readonly elapsedMs: number;
2100
- readonly failure?: VisionFailure | "unknown";
2060
+ readonly failure?: VisionFailure | "unknown" | "stale_page";
2101
2061
  readonly httpStatus?: number;
2102
2062
  };
2103
2063
  readonly candidateCount: number;
@@ -2483,6 +2443,8 @@ interface ProjectFiles {
2483
2443
  readonly modules: readonly string[];
2484
2444
  readonly problems: readonly DiscoveryProblem[];
2485
2445
  }
2446
+ /** YAML tests and TypeScript tests; a `*.test.ts` file may declare several. */
2447
+ declare const TEST_SUFFIXES: readonly [".test.yaml", ".test.ts"];
2486
2448
  /**
2487
2449
  * Recursively list files with one of the suffixes, sorted by path. Symlinked
2488
2450
  * entries are not followed. Unreadable subdirectories are reported, not thrown.
@@ -2589,6 +2551,17 @@ declare function listTests(parsed: readonly {
2589
2551
  }[], options: {
2590
2552
  readonly repoRoot: string;
2591
2553
  }): TestListing;
2554
+ /**
2555
+ * Load test headers for listing and selection. A YAML file is one entry; a
2556
+ * `*.test.ts` file is imported and contributes one entry per `test()`.
2557
+ */
2558
+ declare function loadListingEntries(files: readonly string[], options: {
2559
+ readonly repoRoot: string;
2560
+ readonly rejectSymlinks?: boolean;
2561
+ }): Promise<{
2562
+ readonly file: string;
2563
+ readonly result: ParsedFlowResult;
2564
+ }[]>;
2592
2565
 
2593
2566
  declare const DEFAULT_MIN_P = 0.75;
2594
2567
  declare const DEFAULT_BAND = 0.15;
@@ -2719,6 +2692,12 @@ interface GoalResult {
2719
2692
  readonly elapsedMs: number;
2720
2693
  readonly calls: readonly ProviderCall[];
2721
2694
  readonly history: readonly string[];
2695
+ /**
2696
+ * For an abstention: which choice was uncertain, where, and its top
2697
+ * probabilities, e.g. "operation on …/inventory.html: BLOCKED 0.48,
2698
+ * CLICK 0.46". Contains no typed values.
2699
+ */
2700
+ readonly detail?: string;
2722
2701
  readonly verification: readonly {
2723
2702
  claim: string;
2724
2703
  verdict: string;
@@ -2733,6 +2712,86 @@ declare function goalChoiceAccepted(answer: GoalChoice, ids: readonly string[],
2733
2712
  /** No generated text, selectors, JavaScript, arbitrary keys, or navigation URLs. */
2734
2713
  declare function runGoal(page: BrowserPage, planner: GoalPlanner, judge: Judge, options: GoalOptions): Promise<GoalResult>;
2735
2714
 
2715
+ /**
2716
+ * Where a rejection that no code handled belongs. Test code can start work it
2717
+ * never awaits, such as `expect.poll` or an API call, and that work can reject
2718
+ * after its own test has finished, while another test runs.
2719
+ */
2720
+ type RejectionOwner = {
2721
+ readonly kind: "attempt";
2722
+ readonly index: number;
2723
+ } | {
2724
+ readonly kind: "run";
2725
+ readonly reason: StrayReason;
2726
+ readonly source?: FlowSource;
2727
+ /** The test whose lines hold the frame, when exactly one does. */
2728
+ readonly test?: string;
2729
+ };
2730
+ /**
2731
+ * Why no test could be blamed: its test had `finished`; the lines are
2732
+ * `shared` by several tests, as when tests are declared in a loop; project
2733
+ * code threw `outside` any test's lines; the stack has only Sedum or library
2734
+ * code (`internal`); or the value carries no stack (`unknown`).
2735
+ */
2736
+ type StrayReason = "finished" | "shared" | "outside" | "internal" | "unknown";
2737
+ /** The lines a `test()` covers: its declaration up to the next test's. */
2738
+ interface LineRange {
2739
+ readonly start: number;
2740
+ readonly end: number;
2741
+ /** The test's id, to name it when it leaves work behind. */
2742
+ readonly id?: string;
2743
+ }
2744
+ interface RunningTest {
2745
+ readonly file: string;
2746
+ readonly lines: LineRange;
2747
+ }
2748
+ /**
2749
+ * Attribute a rejection by its stack, innermost frame first. A test is blamed
2750
+ * only when a frame lies inside its lines, and no other test's, while it
2751
+ * runs. A frame inside the lines of a test that is not running means that
2752
+ * test left work behind. Lines several tests share, as when tests are
2753
+ * declared in a loop, cannot tell them apart, so nobody is blamed.
2754
+ * Anything else, such as a helper at the top of a file, which any test could
2755
+ * have called, is reported for the run rather than blamed on whichever test
2756
+ * happens to be running. `known` is keyed by `pathKey(file)`. Pure, so the
2757
+ * policy is testable without a listener.
2758
+ */
2759
+ declare function attributeRejection(reason: unknown, running: readonly RunningTest[], known: ReadonlyMap<string, readonly LineRange[]>, projectRoot: string): RejectionOwner;
2760
+ interface UnattributedRejection {
2761
+ readonly reason: StrayReason;
2762
+ readonly message: string;
2763
+ readonly source?: FlowSource;
2764
+ readonly test?: string;
2765
+ }
2766
+ /** One line naming a rejection's value, for a report or the terminal. */
2767
+ declare function describeRejection(reason: unknown): string;
2768
+ /**
2769
+ * One `unhandledRejection` listener for a whole run. Attempts register while
2770
+ * they run; a rejection is handed to the attempt that owns it or kept for the
2771
+ * run to report, so a stray promise never kills the process or blames an
2772
+ * unrelated test.
2773
+ */
2774
+ declare class RejectionRouter {
2775
+ #private;
2776
+ private readonly projectRoot;
2777
+ constructor(projectRoot: string);
2778
+ /**
2779
+ * Whether any router is listening. A process-wide fallback for rejections
2780
+ * that arrive after a run (the `sedum` binary installs one) stands aside
2781
+ * while a router owns them.
2782
+ */
2783
+ static get routing(): boolean;
2784
+ /** Rejections no running test could own, in arrival order. */
2785
+ get unattributed(): readonly UnattributedRejection[];
2786
+ install(): void;
2787
+ dispose(): void;
2788
+ /**
2789
+ * Route rejections from one running test to `receive` until released.
2790
+ * `lines` is that test's range; `fileTests` are all of its file's tests.
2791
+ */
2792
+ register(test: RunningTest, fileTests: readonly LineRange[], receive: (reason: unknown) => void): () => void;
2793
+ }
2794
+
2736
2795
  type FlowRunResult = {
2737
2796
  readonly status: "passed";
2738
2797
  readonly file: string;
@@ -2773,6 +2832,8 @@ interface FlowRunnerDependencies {
2773
2832
  readonly slowMoMs?: number;
2774
2833
  readonly headedOverlay?: boolean;
2775
2834
  readonly signal?: AbortSignal;
2835
+ /** Routes stray rejections from TypeScript test code; one per run. */
2836
+ readonly rejections?: RejectionRouter;
2776
2837
  readonly report?: {
2777
2838
  readonly recorder: RunRecorder;
2778
2839
  /**
@@ -2793,14 +2854,171 @@ interface FlowRunnerDependencies {
2793
2854
  }, frameId: string, bytes: Uint8Array) => Promise<ResultFrame>;
2794
2855
  };
2795
2856
  }
2857
+ type RunReport = NonNullable<FlowRunnerDependencies["report"]>;
2858
+ /** One attempt's report: its own test handle and its own privacy state. */
2859
+ /** @internal */
2860
+ type AttemptReport = Omit<RunReport, "recorder" | "slot"> & {
2861
+ readonly test: TestRecording;
2862
+ };
2863
+ /** @internal Shared with the script runner. */
2864
+ type AttemptDependencies = Omit<FlowRunnerDependencies, "report"> & {
2865
+ readonly report?: AttemptReport;
2866
+ };
2867
+ /** @internal */
2868
+ declare function resultCall(call: ProviderCall, purpose: ResultCall["purpose"], apiMs?: number | null): ResultCall;
2869
+ /** @internal */
2870
+ declare function firstDiagnostic(diagnostics: readonly FlowDiagnostic[]): FlowRunResult;
2871
+ /** @internal */
2872
+ declare function unsupported(file: string, source: FlowSource, message: string): FlowRunResult;
2873
+ /** A navigation failure, in words: which network problem stopped it. */
2874
+ declare function navigationWhy(error: StepExecutionError): string;
2875
+ /** @internal */
2876
+ declare function runtimeFailure(file: string, error: unknown): FlowRunResult;
2796
2877
  /** SED-10 entry URL semantics; SED-33 adds origin-preserving --url-override. */
2797
2878
  declare function resolveEntryUrl(testUrl?: string, baseUrl?: string, urlOverride?: string): string;
2879
+ /** @internal */
2880
+ declare function closeQuietly(resource: {
2881
+ close(): Promise<void>;
2882
+ } | undefined): Promise<void>;
2883
+ /** How a script step is shown: its group path and, for extracts, its words. */
2884
+ interface SentencePresentation {
2885
+ readonly group?: readonly string[];
2886
+ readonly display?: string;
2887
+ }
2888
+ /** @internal Execute one classified sentence and record it as one step. */
2889
+ declare function executeSentence(page: BrowserPage, step: ClassifiedFlowSentence, dependencies: AttemptDependencies, data: Record<string, ResolvedDataEntry>, opaqueEntries: ResolvedDataEntry[], presentation?: SentencePresentation): Promise<"continue" | "failed" | FlowRunResult>;
2798
2890
  /** Run one validated attempt with setup, body, and exhaustive teardown. */
2799
2891
  declare function runFlow(file: string, runDependencies: FlowRunnerDependencies): Promise<FlowRunResult>;
2800
2892
 
2893
+ declare const SCRIPT_TEST_SUFFIX = ".test.ts";
2894
+ interface ScriptTest {
2895
+ readonly file: string;
2896
+ readonly title: string;
2897
+ readonly identity: string;
2898
+ readonly explicitId?: string;
2899
+ readonly url?: string;
2900
+ readonly tags: readonly string[];
2901
+ readonly body: TestBody;
2902
+ readonly source: FlowSource;
2903
+ }
2904
+ interface LoadedScriptFile {
2905
+ readonly file: string;
2906
+ readonly tests: readonly ScriptTest[];
2907
+ readonly diagnostics: readonly FlowDiagnostic[];
2908
+ }
2909
+ declare function isScriptTestFile(file: string): boolean;
2910
+ /** Pure validation of what one file registered; exported for tests. */
2911
+ declare function checkRegistrations(file: string, registrations: readonly ScriptRegistration[], repoRoot: string): LoadedScriptFile;
2912
+ /**
2913
+ * Import a `*.test.ts` file once per process and collect its `test()` calls.
2914
+ * Imports run one at a time, because registration goes through one shared
2915
+ * list; the result is cached, as the module itself is.
2916
+ */
2917
+ declare function loadScriptFile(file: string, options: {
2918
+ readonly repoRoot: string;
2919
+ }): Promise<LoadedScriptFile>;
2920
+ /**
2921
+ * Listing and selection work on flow headers; each script test becomes one
2922
+ * header whose identity selects it inside its file.
2923
+ */
2924
+ declare function scriptListingEntries(script: LoadedScriptFile): readonly {
2925
+ readonly file: string;
2926
+ readonly result: ParsedFlowResult;
2927
+ }[];
2928
+
2929
+ /** A literal step sentence written in a `*.test.ts` file. */
2930
+ interface ScriptSentence {
2931
+ readonly text: string;
2932
+ readonly source: FlowSource;
2933
+ }
2934
+ interface ScriptSentenceScan {
2935
+ readonly sentences: readonly ScriptSentence[];
2936
+ /** Sentences built at run time; they cannot be checked before a run. */
2937
+ readonly warnings: readonly FlowDiagnostic[];
2938
+ /** Parameter names of the functions this file declares, by position. */
2939
+ readonly functions: ReadonlyMap<string, readonly string[]>;
2940
+ /**
2941
+ * `f(ai)` calls to a function this file does not declare. Validation
2942
+ * resolves them through imports: the parameter must be named `ai`.
2943
+ */
2944
+ readonly helperCalls: readonly HelperCall[];
2945
+ }
2946
+ interface HelperCall {
2947
+ readonly callee: string;
2948
+ readonly position: number;
2949
+ readonly source: FlowSource;
2950
+ /**
2951
+ * `ai`: the test's ai itself, so the parameter must be named `ai`.
2952
+ * `context`: the test's context or `{ ai }`, so the helper must be one
2953
+ * validation reads.
2954
+ */
2955
+ readonly passes: "ai" | "context";
2956
+ }
2957
+ type Token = {
2958
+ readonly kind: "ident" | "punct";
2959
+ readonly value: string;
2960
+ readonly line: number;
2961
+ readonly col: number;
2962
+ } | {
2963
+ readonly kind: "string";
2964
+ readonly value: string;
2965
+ /** A template literal with `${}` has no single value. */
2966
+ readonly dynamic: boolean;
2967
+ readonly line: number;
2968
+ readonly col: number;
2969
+ };
2970
+ /** A small JavaScript lexer: enough to find string arguments of `ai` calls. */
2971
+ declare function tokenize(source: string): Token[];
2972
+ /**
2973
+ * Find the literal sentences passed to `ai(...)`, `ai([...])`, and
2974
+ * `ai.group(name, [...])`. A sentence built with `${}` or `+` is reported as
2975
+ * a warning: it defeats the classification cache and cannot be checked
2976
+ * before a run. `ai.extract` takes a description, not a step, so it is skipped.
2977
+ */
2978
+ declare function scanScriptSentences(source: string, file: string): ScriptSentenceScan;
2979
+ /**
2980
+ * Relative module specifiers a file imports, such as `./support/login.js`.
2981
+ * Validation follows them to check the sentences in shared helpers.
2982
+ */
2983
+ declare function scanLocalImports(source: string): readonly string[];
2984
+ interface ImportBinding {
2985
+ readonly local: string;
2986
+ readonly imported: string;
2987
+ readonly specifier: string;
2988
+ }
2989
+ /** Named and default imports: `import login, { a, b as c } from "./x.js"`. */
2990
+ declare function scanImportBindings(source: string): readonly ImportBinding[];
2991
+ /**
2992
+ * The lines of the call expression that starts on `line`, such as a whole
2993
+ * `test("…", async () => { … })`, so a helper declared elsewhere in the file
2994
+ * is not mistaken for part of a test. The outermost call on the line wins.
2995
+ */
2996
+ declare function callExtent(source: string, line: number): {
2997
+ readonly start: number;
2998
+ readonly end: number;
2999
+ } | undefined;
3000
+
3001
+ /** A misuse of the `ai` API: the test cannot run as written. */
3002
+ declare class ScriptUsageError extends Error {
3003
+ readonly code: string;
3004
+ readonly fix: string;
3005
+ constructor(code: string, message: string, fix: string);
3006
+ }
3007
+ /** Convert `{{name}}` values to the runner's opaque data entries. */
3008
+ declare function valueEntries(values: AiValues | undefined): Record<string, ResolvedDataEntry>;
3009
+ /**
3010
+ * Inline plain values into the sentence the locator and Judge read, so
3011
+ * `click Add to cart for {{product}}` names the product. A `type` value and
3012
+ * secrets stay placeholders, as does a value that would change the sentence's
3013
+ * own quotes or placeholders.
3014
+ */
3015
+ declare function inlineValues(step: SentenceStep, op: string, values: Readonly<Record<string, ResolvedDataEntry>>): string;
3016
+ /** Run one `test()` from a `*.test.ts` file as one attempt. */
3017
+ declare function runScriptTest(file: string, identity: string | undefined, runDependencies: FlowRunnerDependencies): Promise<FlowRunResult>;
3018
+
2801
3019
  /** A browser action requested by a Sedum flow. */
2802
3020
  interface ActionRequest {
2803
3021
  readonly description: string;
2804
3022
  }
2805
3023
 
2806
- export { ACCEPTANCE_POLICY_VERSION, type ActionRequest, type Aim, type AimResult, AssertionEngineError, type AssertionEngineErrorCode, type AssertionOptions, type BrowserContextOptions, type BrowserContextSession, type BrowserDriver, BrowserDriverError, type BrowserDriverErrorCode, type BrowserInstallResult, type BrowserKind, type BrowserLaunchOptions, type BrowserPage, type BrowserSession, CACHE_FORMAT, CANDIDATE_LIMIT, CLASSIFICATION_PROMPT_VERSION, type CacheEntry, type CacheLookup, type CacheMissReason, type CacheStore, type CachedClassification, type Candidate, type CandidatePage, ClassificationBatchError, type ClassificationCache, type ClassificationDiagnostic, type ClassificationDiagnosticCode, type ClassificationInput, type ClassificationMetrics, type ClassificationProvider, type ClassificationResult, type ClassifiedFlowDefinition, type ClassifiedFlowSentence, type ClassifiedFlowStep, type ClassifiedModuleStep, type ClassifiedStep, type ClassifyFlowOptions, DEFAULT_BAND, DEFAULT_CONTRADICTION_CUTOFF, DEFAULT_MIN_P, DEFAULT_VISION_MODEL, DIGEST_LIMIT, DataResolutionError, type DeclaredDataValue, type DigestResult, type DiscoveryProblem, type DiscoveryProblemCode, FileClassificationCache, type FillResult, type FillTarget, type FlowClassificationDiagnostic, type FlowClassificationResult, type FlowDefinition, type FlowDiagnostic, type FlowRunResult, type FlowRunnerDependencies, type FlowScalar, type FlowSource, type FlowStep, type FlowToken, type FlowValidationResult, type FormatCoverage, type FullValidationCoverage, type GoalAction, type GoalChoice, type GoalDecision, type GoalOptions, type GoalPlanner, type GoalResult, type GoalState, type InvalidListEntry, type ItemVerdict, type Judge, type JudgeDecision, type JudgePageDigest, type ListedDiagnostic, type ListedTest, LocatorCacheConflict, type LocatorCacheDiagnostic, type LocatorCacheLookup, type LocatorCacheSeed, type LocatorDiagnostic, type LocatorFailure, type LocatorOptionDiagnostic, type LocatorOptions, type LocatorResult, MATCHER_VERSION, MIN_MODEL_MARGIN, MIN_MODEL_PROBABILITY, MODEL_CHOICES, type MatchResult, type MeasureResult, type ModelChoice, type ModelClassification, type ModuleBinding, ModuleBindingResolutionError, type ModuleDefinition, type ModuleStep, NAME_LIMIT, NOT_CHECKED_OFFLINE_CODE, type NavigationOptions, type NavigationResult, NoopCacheStore, NoopClassificationCache, OPERATIONS, OPERATION_SET_VERSION, OpenRouterVisionResolver, type Operation, PAGE_PROTOCOL, PEER_LIMIT, type PageBridge, PageScriptError, type PageVersion, type ParseFlowOptions, type ParsedFlowResult, type ParsedModuleResult, PlaywrightBrowserDriver, type ProjectFileValidation, type ProjectFiles, type ProjectValidationCounts, type ProjectValidationOptions, type ProjectValidationResult, type ProviderCall, type ProviderCallOptions, ProviderError, type ProviderErrorCode, type ProviderRate, type ProviderTokenUsage, type ReadTargetResult, type RepeatedMemberPolicy, type ReportPrivacy, type ResolveFlowModulesOptions, type ResolvedDataEntry, type ResolvedFlowResult, type ResolvedModuleCall, ResolvedStepTarget, type Resolver, type ResolverCandidate, type ResolverCandidates, type ResolverDecision, type ResolverItem, type ResolverOption, type ResultAttempt, ResultAttemptSchema, type ResultCall, ResultCallSchema, ResultErrorSchema, type ResultExecution, ResultExecutionSchema, type ResultFrame, ResultFrameSchema, ResultJudgementSchema, ResultLocatorSchema, ResultObservationSchema, type ResultPage, ResultPageSchema, type ResultProblem, ResultProblemSchema, type ResultSink, ResultSourceSchema, type ResultStep, ResultStepSchema, type ResultTest, ResultTestSchema, ResultTotalsSchema, ReusableBrowserDriver, RunRecorder, type RunResult, RunResultSchema, RuntimeUrl, RuntimeValue, type SentenceClassification, type SentenceStep, type SettleOptions, type SettleResult, type StepCommand, StepExecutionError, type StepExecutionOptions, type StepExecutionResult, type StepFailureCode, type StepFailurePhase, type StepOperation, type StepOperationKind, type StepOutcome, type StepSource, type StepTokenization, type TestListing, TestRecording, type TestStartInput, VISION_PROMPT, type ValidationInput, type VerifyDecision, type VerifyFlag, type VerifyOptions, type VerifyPolicy, type VerifyResult, type VisionFailure, type VisionObservation, VisionRequestError, type VisionResolver, canonicalSentence, captureVisionObservation, classificationKey, classifyParsedFlow, classifySentenceSteps, classifySteps, clearPageRefs, clickTarget, codePoints, collectCandidates, compareDiagnostics, dedupeDiagnostics, discoverFlowFiles, discoverProjectFiles, displayPath, evaluateModelAnswer, evaluateVerifyScores, executeStep, findBrowserExecutable, findIdentityCollisions, formatFlowDiagnostic, goalChoiceAccepted, goalOperations, installChromium, isFlowScalar, isFullyValidated, isSafeRole, isWeakPeer, keyedDigest, listTests, liveCandidates, loadFlowFile, matchEntry, matchLiveEntry, measure, normalizeSignal, opaqueMatches, pageDigest, pageKey, pageVersion, parseDataTemplate, parseFlow, parseModule, patternOperation, preflightSentence, projectCandidates, projectDigest, quietPage, readTarget, redactOpaqueText, reportPage, resolveData, resolveEntryUrl, resolveFlowModules, resolveModuleBindings, resolveTarget, resolveTypeOperand, resultTotals, runFlow, runGoal, runResultJsonSchema, safeSource, safeText, safeUrl, sameVisualVersion, stageEntry, tokenizeStep, unknownCostCall, validateFlows, validateOperand, validateProject, validateRunResult, validateTypeOperand, verify, visualCandidates, walkSuiteFiles };
3024
+ export { ACCEPTANCE_POLICY_VERSION, type ActionRequest, AiValues, type Aim, type AimResult, AssertionEngineError, type AssertionEngineErrorCode, type AssertionOptions, type AttemptDependencies, type AttemptReport, type BrowserContextOptions, type BrowserContextSession, type BrowserDriver, BrowserDriverError, type BrowserDriverErrorCode, type BrowserInstallResult, type BrowserKind, type BrowserLaunchOptions, type BrowserPage, type BrowserSession, CACHE_FORMAT, CANDIDATE_LIMIT, CLASSIFICATION_PROMPT_VERSION, type CacheEntry, type CacheLookup, type CacheMissReason, type CacheStore, type CachedClassification, type Candidate, type CandidatePage, ClassificationBatchError, type ClassificationCache, type ClassificationDiagnostic, type ClassificationDiagnosticCode, type ClassificationInput, type ClassificationMetrics, type ClassificationProvider, type ClassificationResult, type ClassifiedFlowDefinition, type ClassifiedFlowSentence, type ClassifiedFlowStep, type ClassifiedModuleStep, type ClassifiedStep, type ClassifyFlowOptions, type ClickOptions, type ClickResult, DEFAULT_BAND, DEFAULT_CONTRADICTION_CUTOFF, DEFAULT_MIN_P, DEFAULT_VISION_MODEL, DIGEST_LIMIT, DataResolutionError, DeclaredDataValue, type DigestResult, type DiscoveryProblem, type DiscoveryProblemCode, FileClassificationCache, type FillResult, type FillTarget, type FlowClassificationDiagnostic, type FlowClassificationResult, FlowDefinition, FlowDiagnostic, type FlowRunResult, type FlowRunnerDependencies, FlowScalar, FlowSource, FlowToken, FlowValidationResult, FullValidationCoverage, type GoalAction, type GoalChoice, type GoalDecision, type GoalOptions, type GoalPlanner, type GoalResult, type GoalState, type HelperCall, type ImportBinding, type InvalidListEntry, type ItemVerdict, type Judge, type JudgeDecision, type JudgePageDigest, type LineRange, type ListedDiagnostic, type ListedTest, type LoadedScriptFile, LocatorCacheConflict, type LocatorCacheDiagnostic, type LocatorCacheLookup, type LocatorCacheSeed, type LocatorDiagnostic, type LocatorFailure, type LocatorOptionDiagnostic, type LocatorOptions, type LocatorResult, MATCHER_VERSION, MIN_MODEL_MARGIN, MIN_MODEL_PROBABILITY, MODEL_CHOICES, type MatchResult, type MeasureResult, type ModelChoice, type ModelClassification, ModuleBinding, ModuleBindingResolutionError, ModuleStep, NAME_LIMIT, NOT_CHECKED_OFFLINE_CODE, type NavigationOptions, type NavigationResult, NoopCacheStore, NoopClassificationCache, OPERATIONS, OPERATION_SET_VERSION, OpenRouterVisionResolver, type Operation, PAGE_PROTOCOL, PEER_LIMIT, type PageBridge, PageScriptError, type PageVersion, type ParseFlowOptions, ParsedFlowResult, ParsedModuleResult, PlaywrightBrowserDriver, type ProjectFileValidation, type ProjectFiles, type ProjectValidationCounts, type ProjectValidationOptions, type ProjectValidationResult, type ProviderCall, type ProviderCallOptions, ProviderError, type ProviderErrorCode, type ProviderRate, type ProviderTokenUsage, type ReadTargetResult, type RejectionOwner, RejectionRouter, type RepeatedMemberPolicy, type ReportPrivacy, type ResolveFlowModulesOptions, type ResolvedDataEntry, type ResolvedFlowResult, ResolvedModuleCall, ResolvedStepTarget, type Resolver, type ResolverCandidate, type ResolverCandidates, type ResolverDecision, type ResolverItem, type ResolverOption, type ResultAttempt, ResultAttemptSchema, type ResultCall, ResultCallSchema, ResultErrorSchema, type ResultExecution, ResultExecutionSchema, type ResultFrame, ResultFrameSchema, ResultJudgementSchema, ResultLocatorSchema, ResultObservationSchema, type ResultPage, ResultPageSchema, type ResultProblem, ResultProblemSchema, type ResultSink, ResultSourceSchema, type ResultStep, ResultStepSchema, type ResultTest, ResultTestSchema, ResultTotalsSchema, ReusableBrowserDriver, RunRecorder, type RunResult, RunResultSchema, type RunningTest, RuntimeUrl, RuntimeValue, SCRIPT_TEST_SUFFIX, ScriptRegistration, type ScriptSentence, type ScriptSentenceScan, type ScriptTest, ScriptUsageError, type SentenceClassification, type SentencePresentation, SentenceStep, type SettleOptions, type SettleResult, type StepCommand, StepExecutionError, type StepExecutionOptions, type StepExecutionResult, type StepFailureCode, type StepFailurePhase, type StepOperation, type StepOperationKind, type StepOutcome, type StepSource, type StepTokenization, type StrayReason, TEST_SUFFIXES, TestBody, type TestListing, TestRecording, type TestStartInput, type UnattributedRejection, VISION_PROMPT, ValidationInput, type VerifyDecision, type VerifyFlag, type VerifyOptions, type VerifyPolicy, type VerifyResult, type VisionFailure, type VisionKeyProbe, type VisionObservation, VisionRequestError, type VisionResolver, attributeRejection, callExtent, canonicalSentence, captureVisionObservation, checkRegistrations, classificationKey, classifyParsedFlow, classifySentenceSteps, classifySteps, clearPageRefs, clickTarget, closeQuietly, codePoints, collectCandidates, compareDiagnostics, dedupeDiagnostics, describeRejection, discoverFlowFiles, discoverProjectFiles, displayPath, evaluateModelAnswer, evaluateVerifyScores, executeSentence, executeStep, findBrowserExecutable, findIdentityCollisions, firstDiagnostic, goalChoiceAccepted, goalOperations, inlineValues, installChromium, isFlowScalar, isRunWideProviderError, isSafeRole, isScriptTestFile, isWeakPeer, keyedDigest, listTests, liveCandidates, loadFlowFile, loadListingEntries, loadScriptFile, matchEntry, matchLiveEntry, measure, navigationWhy, normalizeSignal, opaqueMatches, pageDigest, pageKey, pageVersion, parseDataTemplate, parseFlow, parseModule, patternOperation, preflightSentence, probeOpenRouterKey, projectCandidates, projectDigest, quietPage, readTarget, redactOpaqueText, reportPage, resolveData, resolveEntryUrl, resolveFlowModules, resolveModuleBindings, resolveTarget, resolveTypeOperand, resultCall, resultTotals, runFlow, runGoal, runResultJsonSchema, runScriptTest, runtimeFailure, safeSource, safeText, safeUrl, sameVisualVersion, scanImportBindings, scanLocalImports, scanScriptSentences, scriptListingEntries, stageEntry, tokenize, tokenizeStep, unknownCostCall, unsupported, validateFlows, validateOperand, validateProject, validateRunResult, validateTypeOperand, valueEntries, verify, visualCandidates, walkSuiteFiles };