@sedum-dev/core 0.1.0-alpha.0 → 0.1.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,43 +1,43 @@
1
1
  # Core browser observation boundary
2
2
 
3
- ## Flow format boundary (SED-27)
3
+ ## Test file parsing
4
4
 
5
- `parseFlow(source, file, { repoRoot })` parses one `*.test.yaml` definition with the `yaml` document AST and a strict v1 schema. `validateFlows` also detects duplicate explicit ids across files. Neither reads environment variables, opens a browser, calls a provider, nor changes the classification cache. A missing `sedum` marker means v1; `sedum: 1` is optional. Diagnostics include `file:line:col`, a code, and a suggested fix. `discoverFlowFiles` recursively finds sorted `*.test.yaml` paths; `loadFlowFile` is the filesystem edge.
5
+ `parseFlow(source, file, { repoRoot })` parses one `*.test.yaml` definition with the `yaml` document AST and a strict schema for format version 1. `validateFlows` also detects duplicate explicit ids across files. Neither reads environment variables, opens a browser, calls a provider, nor changes the classification cache. A missing `sedum` marker means format version 1; `sedum: 1` is optional. Diagnostics include `file:line:col`, a code, and a suggested fix. `discoverFlowFiles` recursively finds sorted `*.test.yaml` paths; `loadFlowFile` is the filesystem edge.
6
6
 
7
- The typed definition retains original sentence text, declared `data`, and AST positions. `resolveData(declared, env)` is a separate runtime operation. It supports `$VAR`, `${VAR}`, and `$$` and returns `RuntimeValue` instances with secret provenance. Env-sourced data stays opaque in logs and JSON; only the executor should call `reveal()`. `tokenizeStep` preserves placeholder and quoted-literal spans. After SED-28 classifies a sentence as `type`, it must call `validateTypeOperand` before the step can be considered checked or executed; `resolveTypeOperand` gives the executor an opaque value. The model receives the source sentence with placeholder names, never substituted data values.
7
+ The typed definition retains original sentence text, declared `data`, and AST positions. `resolveData(declared, env)` is a separate runtime operation. It supports `$VAR`, `${VAR}`, and `$$` and returns `RuntimeValue` instances with secret provenance. Env-sourced data stays opaque in logs and JSON; only the executor should call `reveal()`. `tokenizeStep` preserves placeholder and quoted-literal spans. After classification identifies a sentence as `type`, the caller must call `validateTypeOperand` before the step can be considered checked or executed; `resolveTypeOperand` gives the executor an opaque value. The model receives the source sentence with placeholder names, never substituted data values.
8
8
 
9
- ## Walking-skeleton runner (SED-19)
9
+ ## Runner
10
10
 
11
11
  `runFlow(file, dependencies)` is the narrow composition boundary behind `sedum
12
12
  run <file.test.yaml>`. It accepts injected browser, provider, classification
13
13
  cache, environment, and repository-root dependencies; it does not read process
14
- state or expose SDK/Playwright types. The initial slice supports a flow URL and
15
- ordinary `steps` classified as `type`, `click`, and `verify`. A failed verify
14
+ state or expose SDK/Playwright types. It opens the flow URL and runs the classified
15
+ steps. A failed verify
16
16
  is a test failure; invalid data, browser/provider/locator/action failures, and
17
- unsupported operations are `could_not_run`. The SED-29 lifecycle executes
17
+ unsupported operations are `could_not_run`. The runner executes
18
18
  `before`, conditional `steps`, and exhaustive `after` within one browser
19
19
  context. Reusable modules are validated as a complete contained graph before
20
20
  classification and browser launch. Their arguments resolve lazily in an
21
21
  attempt-local scope. Runtime values remain opaque outside the executor.
22
22
 
23
- The loader reports `format` coverage and leaves `steps: not_checked`. `resolveFlowModules` resolves every reachable `use`, checks exact parameter bindings, canonical containment, cycles, and depth, then marks modules `checked` or `incomplete`. `classifyParsedFlow` classifies every expanded sentence, validates type operands, and marks steps checked only when the whole graph succeeds. SED-37's `sedum validate` can compose those checks through `isFullyValidated`; a format-only check never claims full validation. The public format and hook contract are described in [docs/format.md](../../docs/format.md).
23
+ The loader reports `format` coverage and leaves `steps: not_checked`. `resolveFlowModules` resolves every reachable `use`, checks exact parameter bindings, canonical containment, cycles, and depth, then marks modules `checked` or `incomplete`. `classifyParsedFlow` classifies every expanded sentence, validates type operands, and marks steps checked only when the whole graph succeeds. `sedum validate` composes those checks through `isFullyValidated`; a format-only check never claims full validation. The public format and hook contract are described in [docs/format.md](../../docs/format.md).
24
24
 
25
25
  Build `@sedum-dev/core` before launching the Playwright driver. The package ships `./page-script.js` as a browser-only IIFE; `PlaywrightBrowserDriver` installs it as a context init script before pages are created. A missing asset produces `script-missing`; a missing or incompatible bridge produces `PageScriptError`.
26
26
 
27
27
  The versioned `window.__sedum` protocol exposes `collect`, `digest`, `pageVersion`, `quiet`, `findBySignals`, `clickTarget`, `checkAim`, and `clearRefs`. Use the typed functions exported from `@sedum-dev/core` rather than calling the global directly. A collection has a document/route/revision version, total count, and a continuation offset. An incomplete collection is not evidence of absence or a unique cache match. `findBySignals` rescans all eligible candidates; it does not pass an HMAC key into the page. Every rescan invalidates earlier refs. `quiet` reports an observation interval, not final page completion.
28
28
 
29
- `projectCandidates` and `projectDigest` are the SED-12 provider boundary: they only admit the approved fields and reject over-limit or incomplete content. The later provider adapter must enforce the 512-code-point sentence/claim limits and the 64-KiB UTF-8 serialized request limit immediately before the SDK call. Allowed visible text, including secret-looking text, is sent unchanged; do not describe this projection as redaction. Never include internal candidate signals, page versions/routes, selectors, editable values, or raw HTML in a provider request.
29
+ `projectCandidates` and `projectDigest` are the provider boundary: they only admit the approved fields and reject over-limit or incomplete content. The provider adapter must enforce the 512-code-point sentence/claim limits and the 64-KiB UTF-8 serialized request limit immediately before the SDK call. Allowed visible text, including secret-looking text, is sent unchanged; do not describe this projection as redaction. Never include internal candidate signals, page versions/routes, selectors, editable values, or raw HTML in a provider request.
30
30
 
31
- `stageEntry`, `pageKey`, and `matchLiveEntry` supply SED-14's transient cache-signal contract. The checkout key is supplied by the later CacheStore implementation; it must be a random 256-bit secret stored in worktree-resolved Git metadata, never in the page script or a provider payload. `stageEntry` requires the complete eligible candidate set, complete bounded item context with a target-specific word, and a unique match. It refuses caching when that evidence is unavailable, even if the page supplies a hook or ID. Call it only after a successful action. Store only `CacheEntry`'s keyed digests and bounded metadata. No entry is a hit until all current eligible candidates are checked. A hit still requires a fresh `clickTarget` aim and `BrowserPage.clickRef` action; a miss remains visible to the caller. `clickRef` asks Playwright to settle the exact snapshot target without dispatching pointer events, revalidates it after that wait, then delegates actionability, event dispatch, cancellation, and same-frame HTTP(S) navigation to Playwright and the browser. Sedum does not hold or replay a link's default action, and page code may change the result of a native click just as it can for a user. Download, new-tab, and non-HTTP(S) links remain non-actionable because they are outside the current single-page driver contract. A `clickRef` result with `reason: "action_started"` and `retryable: false` means the final click was handed to Playwright but failed, so a page handler may already have caused an effect and the executor must not repeat it automatically. SED-24 owns persistence and post-success staging, SED-23 the provider paging/ranking strategy, SED-26 action orchestration, and SED-65 observation retries.
31
+ `stageEntry`, `pageKey`, and `matchLiveEntry` supply the transient cache-signal contract. The checkout key is supplied by the cache store; it must be a random 256-bit secret stored in worktree-resolved Git metadata, never in the page script or a provider payload. `stageEntry` requires the complete eligible candidate set, complete bounded item context with a target-specific word, and a unique match. It refuses caching when that evidence is unavailable, even if the page supplies a hook or ID. Call it only after a successful action. Store only `CacheEntry`'s keyed digests and bounded metadata. No entry is a hit until all current eligible candidates are checked. A hit still requires a fresh `clickTarget` aim and `BrowserPage.clickRef` action; a miss remains visible to the caller. `clickRef` asks Playwright to settle the exact snapshot target without dispatching pointer events, revalidates it after that wait, then delegates actionability, event dispatch, cancellation, and same-frame HTTP(S) navigation to Playwright and the browser. Sedum does not hold or replay a link's default action, and page code may change the result of a native click just as it can for a user. Download, new-tab, and non-HTTP(S) links remain non-actionable because they are outside the current single-page driver contract. A `clickRef` result with `reason: "action_started"` and `retryable: false` means the final click was handed to Playwright but failed, so a page handler may already have caused an effect and the executor must not repeat it automatically.
32
32
 
33
- `executeStep` is SED-26's narrow action boundary. It takes a classified operation and a snapshot-scoped target from the later resolver; it never classifies or re-resolves itself. `type` replaces text with Playwright `fill` on the exact element from a `fill` candidate snapshot, while click reuses PR #2's aim and `clickRef`. Press is page-level and scroll emits one vertical wheel event. A stale target or failed pre-dispatch action is retryable; once browser dispatch may have begun, failure is non-retryable. A click or press compares the immediate page version and settles only a change already observed. SED-65 owns delayed content, fresh observation, and whole-test retry policy. Keep substituted values in `RuntimeValue`/`RuntimeUrl` and route-bearing targets in `ResolvedStepTarget` rather than interpolating them into a command sentence or literal URL; only trusted URL segments and placeholder labels are displayable. Public executor results and errors contain no raw runtime value, full route, Playwright cause, or stack. `goto` uses the driver's safe-diagnostics option, and all uncertain Playwright call-log lines are replaced wholesale.
33
+ `executeStep` is the narrow action boundary. It takes a classified operation and a snapshot-scoped target from the resolver; it never classifies or re-resolves itself. `type` replaces text with Playwright `fill` on the exact element from a `fill` candidate snapshot, while click reuses the `clickTarget` aim and `clickRef`. Press is page-level and scroll emits one vertical wheel event. A stale target or failed pre-dispatch action is retryable; once browser dispatch may have begun, failure is non-retryable. A click or press compares the immediate page version and settles only a change already observed. Keep substituted values in `RuntimeValue`/`RuntimeUrl` and route-bearing targets in `ResolvedStepTarget` rather than interpolating them into a command sentence or literal URL; only trusted URL segments and placeholder labels are displayable. Public executor results and errors contain no raw runtime value, full route, Playwright cause, or stack. `goto` uses the driver's safe-diagnostics option, and all uncertain Playwright call-log lines are replaced wholesale.
34
34
 
35
35
  ## Sentence locator
36
36
 
37
- `resolveTarget(page, resolver, { operation, sentence, signal?, timeoutMs? })` accepts `click`, `fill`, or `read` and returns either a `ResolvedStepTarget` or a typed unresolved reason. It performs no browser action. The caller passes its remaining step deadline; SED-65 decides when to retry a stale or incomplete observation. The locator follows every 128-candidate cursor page, requires one stable document/route/revision and an exact total, and stops above 4,096 candidates. Fill first scans only enabled text inputs, textareas, and contenteditable controls that `fillRef` can execute. If that set is empty, a complete click scan supplies diagnostic candidates; a selected label or nonfillable control returns `not_fillable` and is never handed to the fill executor.
37
+ `resolveTarget(page, resolver, { operation, sentence, signal?, timeoutMs? })` accepts `click`, `fill`, or `read` and returns either a `ResolvedStepTarget` or a typed unresolved reason. It performs no browser action. The caller passes its remaining step deadline and decides when to retry a stale or incomplete observation. The locator follows every 128-candidate cursor page, requires one stable document/route/revision and an exact total, and stops above 4,096 candidates. Fill first scans only enabled text inputs, textareas, and contenteditable controls that `fillRef` can execute. If that set is empty, a complete click scan supplies diagnostic candidates; a selected label or nonfillable control returns `not_fillable` and is never handed to the fill executor.
38
38
 
39
- Every model Choice includes `none`. Sets larger than 128 are divided into bounded heats; each heat retains its top two non-`none` candidates, including when `none` wins. The locator repeats bounded heats until one final Choice fits, including when valid long Unicode candidate text makes the finalist set too large for one request. Scores from separate heats are never compared. The model request contains only SED-12's approved candidate fields. An over-limit name or peer excerpt returns `request_too_large` before any model call; candidate text is never silently clipped. The adapter remains the final 64-KiB request-size authority.
39
+ Every model Choice includes `none`. Sets larger than 128 are divided into bounded heats; each heat retains its top two non-`none` candidates, including when `none` wins. The locator repeats bounded heats until one final Choice fits, including when valid long Unicode candidate text makes the finalist set too large for one request. Scores from separate heats are never compared. The model request contains only the approved candidate fields. An over-limit name or peer excerpt returns `request_too_large` before any model call; candidate text is never silently clipped. The adapter remains the final 64-KiB request-size authority.
40
40
 
41
- A selected candidate must clear the confidence and probability-margin gate. Repeated labels or destinations require a distinguishing candidate name or peer phrase in the sentence even when model confidence is high; a generic category or control word alone cannot establish identity. A first-story rank combined with a uniquely matching link purpose can distinguish repeated story links. Low-confidence groups get at most one narrower Choice. Explicit “article body” and “first story” requests require local region/rank evidence even when model confidence is high. After the decision, a full rescan must identify exactly one equivalent live target on the same document and route; a changed route, incomplete scan, or duplicate match returns stale. SED-26 rechecks the returned exact snapshot target immediately before action and never replays an uncertain action. Diagnostics expose only a bounded top-four name/role/probability list, gate reason, candidate count, round count, and provider call metadata; they omit routes, selectors, DOM signals, request bodies, and input values. SED-24 owns cache persistence and SED-39 owns result persistence.
41
+ A selected candidate must clear the confidence and probability-margin gate. Repeated labels or destinations require a distinguishing candidate name or peer phrase in the sentence even when model confidence is high; a generic category or control word alone cannot establish identity. A first-story rank combined with a uniquely matching link purpose can distinguish repeated story links. Low-confidence groups get at most one narrower Choice. Explicit “article body” and “first story” requests require local region/rank evidence even when model confidence is high. After the decision, a full rescan must identify exactly one equivalent live target on the same document and route; a changed route, incomplete scan, or duplicate match returns stale. The executor rechecks the returned exact snapshot target immediately before action and never replays an uncertain action. Diagnostics expose only a bounded top-four name/role/probability list, gate reason, candidate count, round count, and provider call metadata; they omit routes, selectors, DOM signals, request bodies, and input values.
42
42
 
43
- The recorded locator tests run in normal CI. After `pnpm build`, run browser fixtures with `SEDUM_BROWSER_INTEGRATION=1 pnpm exec vitest run packages/core/src/page-script.integration.test.ts`. The optional live target suite uses `SEDUM_LOCATOR_LIVE=1` and `TYPESAFE_API_KEY` to check Saucedemo login and Hacker News with real model calls, and strict candidate-text rejection on Saucedemo's product page and Wikipedia's current Ada Lovelace page. The Wikipedia page currently has over-limit citation text and several indistinguishable article-body Charles Babbage links, so the original PoC sentence is not an actionable target under this contract. The suite prints bounded target and usage evidence without printing the key.
43
+ The recorded locator tests run in normal CI. After `pnpm build`, run browser fixtures with `SEDUM_BROWSER_INTEGRATION=1 pnpm exec vitest run packages/core/src/page-script.integration.test.ts`. The optional live target suite uses `SEDUM_LOCATOR_LIVE=1` and `TYPESAFE_API_KEY` to check Saucedemo login and Hacker News with real model calls, and strict candidate-text rejection on Saucedemo's product page and Wikipedia's current Ada Lovelace page. The Wikipedia page currently has over-limit citation text and several indistinguishable article-body Charles Babbage links, so a sentence naming one of those links is not an actionable target. The suite prints bounded target and usage evidence without printing the key.
package/dist/index.d.ts CHANGED
@@ -1215,6 +1215,8 @@ interface Candidate {
1215
1215
  readonly role: string;
1216
1216
  readonly name: string;
1217
1217
  readonly peers: readonly string[];
1218
+ /** Landmark and nearest heading, e.g. "footer · Company". Sent to the model. */
1219
+ readonly location?: string;
1218
1220
  readonly editable: boolean;
1219
1221
  readonly disabled: boolean;
1220
1222
  readonly inputType: string;
@@ -1228,6 +1230,22 @@ interface Candidate {
1228
1230
  readonly path: string;
1229
1231
  /** True only when the first peer contains the entire non-interactive item context. */
1230
1232
  readonly contextComplete?: boolean;
1233
+ /** Local: the text of the list item, card, or row around the control. Never projected. */
1234
+ readonly item?: string;
1235
+ /** Local: labels of the containers around the control, innermost first. Never projected. */
1236
+ readonly section?: string;
1237
+ /**
1238
+ * Local: what a person sees that the name leaves out (visible text beside
1239
+ * an aria-label, placeholder, logo, icon kind). Projected only when the
1240
+ * locator's nameHints option is on.
1241
+ */
1242
+ readonly nameHint?: string;
1243
+ /** Local signal: the model sees only a visibly shortened accessible name. */
1244
+ readonly nameTruncated?: boolean;
1245
+ /** Full name for same-target checks; never included in provider projection. */
1246
+ readonly rawName?: string;
1247
+ /** Stable document-local element identity; never included in provider projection. */
1248
+ readonly nodeId?: string;
1231
1249
  };
1232
1250
  }
1233
1251
  interface CandidatePage {
@@ -1326,6 +1344,7 @@ declare function projectCandidates(page: CandidatePage): readonly {
1326
1344
  role: string;
1327
1345
  name: string;
1328
1346
  peers: readonly string[];
1347
+ location?: string;
1329
1348
  editable: boolean;
1330
1349
  disabled: boolean;
1331
1350
  }[];
@@ -1737,6 +1756,8 @@ interface ResolverCandidate {
1737
1756
  readonly role: string;
1738
1757
  readonly name: string;
1739
1758
  readonly peers: readonly string[];
1759
+ /** Where the element sits: landmark and nearest heading. */
1760
+ readonly location?: string;
1740
1761
  readonly editable: boolean;
1741
1762
  readonly disabled: boolean;
1742
1763
  }
@@ -1802,8 +1823,23 @@ interface JudgeDecision {
1802
1823
  readonly contradicted: number;
1803
1824
  readonly call: ProviderCall;
1804
1825
  }
1826
+ /** One repeated member's surrounding item text, for per-item verification. */
1827
+ interface ResolverItem {
1828
+ readonly id: string;
1829
+ readonly text: string;
1830
+ }
1831
+ interface ItemVerdict {
1832
+ /** Per item id: the probability that the sentence refers to that item. */
1833
+ readonly scores: Readonly<Record<string, number>>;
1834
+ readonly call: ProviderCall;
1835
+ }
1805
1836
  interface Resolver {
1806
1837
  choose(sentence: string, candidates: ResolverCandidates, options?: ProviderCallOptions): Promise<ResolverDecision>;
1838
+ /**
1839
+ * Experimental: judge each item independently ("is this the one the
1840
+ * sentence describes?"), one yes/no question per item in one request.
1841
+ */
1842
+ verifyItems?(sentence: string, items: readonly ResolverItem[], options?: ProviderCallOptions): Promise<ItemVerdict>;
1807
1843
  }
1808
1844
  interface Judge {
1809
1845
  holds(claim: string, pageDigest: JudgePageDigest, options?: ProviderCallOptions): Promise<JudgeDecision>;
@@ -1876,6 +1912,64 @@ interface LocatorOptions {
1876
1912
  readonly runtimeDependent?: boolean;
1877
1913
  /** Redact sensitive page-derived text only at the Resolver boundary. */
1878
1914
  readonly projectText?: (text: string) => string;
1915
+ /**
1916
+ * Experimental: act on the model's top pick even when its probability or
1917
+ * lead is low, so the locator gives up only when the model answers none.
1918
+ */
1919
+ readonly acceptLowConfidence?: boolean;
1920
+ /**
1921
+ * When to accept the model's pick among repeated elements (same name or
1922
+ * destination) whose sentence words do not single it out. Unset acts on
1923
+ * the model's pick ({ modelPick: true }): a vague step clicks the likely
1924
+ * element, and the test author can add detail. Pass {} for the strict
1925
+ * lexical rule.
1926
+ */
1927
+ readonly repeatedMember?: RepeatedMemberPolicy;
1928
+ /**
1929
+ * When the sentence names a section ("under Most popular", "in the See
1930
+ * also box"), act on the one same-name member whose local section labels
1931
+ * hold every qualifying word. On unless set to false.
1932
+ */
1933
+ readonly sectionMatch?: boolean;
1934
+ /**
1935
+ * Show the model what a person sees that the accessible name leaves out
1936
+ * (visible text beside an aria-label, a placeholder, a logo, an icon's
1937
+ * kind). On unless set to false.
1938
+ */
1939
+ readonly nameHints?: boolean;
1940
+ /**
1941
+ * When the sentence refers to an item ("on the post about DNS") and code
1942
+ * cannot match it, ask the Resolver one yes/no question per same-name
1943
+ * member's item and act on a clear winner. Needs Resolver.verifyItems.
1944
+ * On unless set to false.
1945
+ */
1946
+ readonly verifyItems?: boolean;
1947
+ /**
1948
+ * Looser code rules for ordinals and item references (counts masked in
1949
+ * names, prepositions ignored), also applied when the model answers none.
1950
+ * On unless set to false.
1951
+ */
1952
+ readonly codeFallback?: boolean;
1953
+ }
1954
+ interface RepeatedMemberPolicy {
1955
+ /** Accept any member when every member links to the same address. */
1956
+ readonly sameDestination?: boolean;
1957
+ /**
1958
+ * Accept a pick among at most three links to one address whose names are
1959
+ * the same text, or one inside the other, such as a header and a footer
1960
+ * Pricing link, when the sentence names only that text.
1961
+ */
1962
+ readonly duplicateLinks?: boolean;
1963
+ /**
1964
+ * Act on the model's pick among repeated elements with no further gate:
1965
+ * no sentence evidence, no group or member confidence, no narrowing call.
1966
+ */
1967
+ readonly modelPick?: boolean;
1968
+ /** Accept the model's pick at or above this probability and lead. */
1969
+ readonly trust?: {
1970
+ readonly minProbability: number;
1971
+ readonly minLead: number;
1972
+ };
1879
1973
  }
1880
1974
  /** Resolve a sentence to one fresh page target. No browser action occurs here. */
1881
1975
  declare function resolveTarget(page: BrowserPage, resolver: Resolver, options: LocatorOptions): Promise<LocatorResult>;
@@ -2393,4 +2487,4 @@ interface ActionRequest {
2393
2487
  readonly description: string;
2394
2488
  }
2395
2489
 
2396
- 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, 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 InvalidListEntry, 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, 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 ReportPrivacy, type ResolveFlowModulesOptions, type ResolvedDataEntry, type ResolvedFlowResult, type ResolvedModuleCall, ResolvedStepTarget, type Resolver, type ResolverCandidate, type ResolverCandidates, type ResolverDecision, 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, type ValidationInput, type VerifyDecision, type VerifyFlag, type VerifyOptions, type VerifyPolicy, type VerifyResult, canonicalSentence, classificationKey, classifyParsedFlow, classifySentenceSteps, classifySteps, clearPageRefs, clickTarget, codePoints, collectCandidates, compareDiagnostics, dedupeDiagnostics, discoverFlowFiles, discoverProjectFiles, displayPath, evaluateModelAnswer, evaluateVerifyScores, executeStep, findBrowserExecutable, findIdentityCollisions, formatFlowDiagnostic, 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, runResultJsonSchema, safeSource, safeText, safeUrl, stageEntry, tokenizeStep, unknownCostCall, validateFlows, validateOperand, validateProject, validateRunResult, validateTypeOperand, verify, walkSuiteFiles };
2490
+ 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, 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 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, 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, type ValidationInput, type VerifyDecision, type VerifyFlag, type VerifyOptions, type VerifyPolicy, type VerifyResult, canonicalSentence, classificationKey, classifyParsedFlow, classifySentenceSteps, classifySteps, clearPageRefs, clickTarget, codePoints, collectCandidates, compareDiagnostics, dedupeDiagnostics, discoverFlowFiles, discoverProjectFiles, displayPath, evaluateModelAnswer, evaluateVerifyScores, executeStep, findBrowserExecutable, findIdentityCollisions, formatFlowDiagnostic, 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, runResultJsonSchema, safeSource, safeText, safeUrl, stageEntry, tokenizeStep, unknownCostCall, validateFlows, validateOperand, validateProject, validateRunResult, validateTypeOperand, verify, walkSuiteFiles };