@sedum-dev/core 0.1.0-alpha.6 → 0.1.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +231 -10
- package/dist/index.js +1800 -101
- package/dist/page-script/index.global.js +302 -18
- package/dist/run-result.schema.json +53 -0
- package/dist/{script-api-D3if59MQ.d.ts → script-api-DzYBsXzT.d.ts} +9 -0
- package/dist/script-api.d.ts +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -24,11 +24,11 @@ The loader reports `format` coverage and leaves `steps: not_checked`. `resolveFl
|
|
|
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
|
-
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.
|
|
27
|
+
The versioned `window.__sedum` protocol exposes `collect`, `digest`, `visibleText`, `pageVersion`, `quiet`, `findBySignals`, `clickTarget`, `readTarget`, `controlState`, `checkAim`, `hoverElement`, 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. `visibleText` uses the same readable-text projection as `digest` without its provider size limit; deterministic exact-text checks consume it locally.
|
|
28
28
|
|
|
29
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 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
|
|
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. For a CSS-hover-revealed target, discovery only inspects stylesheet rules whose winning author declarations it can prove; `clickRef` retrieves and hovers the exact snapshot host, waits for the exact target, and revalidates it before clicking. Once hover pointer dispatch starts, any failure is non-retryable because a page handler may already have caused an effect. 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 pointer or click dispatch started but did not safely complete, so the executor must not repeat it automatically.
|
|
32
32
|
|
|
33
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
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
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-
|
|
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-
|
|
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-DzYBsXzT.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-DzYBsXzT.js';
|
|
5
5
|
import { inspect } from 'node:util';
|
|
6
6
|
import 'playwright/test';
|
|
7
7
|
|
|
@@ -39,6 +39,7 @@ declare const ResultFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
39
39
|
reason: z.ZodString;
|
|
40
40
|
}, z.core.$strict>], "status">;
|
|
41
41
|
declare const ResultCallSchema: z.ZodObject<{
|
|
42
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
42
43
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
43
44
|
purpose: z.ZodEnum<{
|
|
44
45
|
classification: "classification";
|
|
@@ -144,6 +145,14 @@ declare const ResultStepSchema: z.ZodObject<{
|
|
|
144
145
|
sentence: z.ZodString;
|
|
145
146
|
detail: z.ZodString;
|
|
146
147
|
group: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
148
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
149
|
+
completion: z.ZodLiteral<"planner">;
|
|
150
|
+
text: z.ZodString;
|
|
151
|
+
actions: z.ZodNumber;
|
|
152
|
+
requests: z.ZodNumber;
|
|
153
|
+
reason: z.ZodString;
|
|
154
|
+
dataSeed: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
}, z.core.$strict>>;
|
|
147
156
|
sourceStack: z.ZodArray<z.ZodObject<{
|
|
148
157
|
file: z.ZodString;
|
|
149
158
|
line: z.ZodNumber;
|
|
@@ -243,6 +252,7 @@ declare const ResultStepSchema: z.ZodObject<{
|
|
|
243
252
|
timeoutReason: z.ZodNullable<z.ZodString>;
|
|
244
253
|
}, z.core.$strict>>;
|
|
245
254
|
calls: z.ZodArray<z.ZodObject<{
|
|
255
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
246
256
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
247
257
|
purpose: z.ZodEnum<{
|
|
248
258
|
classification: "classification";
|
|
@@ -372,6 +382,14 @@ declare const ResultAttemptSchema: z.ZodObject<{
|
|
|
372
382
|
sentence: z.ZodString;
|
|
373
383
|
detail: z.ZodString;
|
|
374
384
|
group: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
385
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
completion: z.ZodLiteral<"planner">;
|
|
387
|
+
text: z.ZodString;
|
|
388
|
+
actions: z.ZodNumber;
|
|
389
|
+
requests: z.ZodNumber;
|
|
390
|
+
reason: z.ZodString;
|
|
391
|
+
dataSeed: z.ZodOptional<z.ZodNumber>;
|
|
392
|
+
}, z.core.$strict>>;
|
|
375
393
|
sourceStack: z.ZodArray<z.ZodObject<{
|
|
376
394
|
file: z.ZodString;
|
|
377
395
|
line: z.ZodNumber;
|
|
@@ -471,6 +489,7 @@ declare const ResultAttemptSchema: z.ZodObject<{
|
|
|
471
489
|
timeoutReason: z.ZodNullable<z.ZodString>;
|
|
472
490
|
}, z.core.$strict>>;
|
|
473
491
|
calls: z.ZodArray<z.ZodObject<{
|
|
492
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
474
493
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
475
494
|
purpose: z.ZodEnum<{
|
|
476
495
|
classification: "classification";
|
|
@@ -528,6 +547,7 @@ declare const ResultAttemptSchema: z.ZodObject<{
|
|
|
528
547
|
}, z.core.$strict>>;
|
|
529
548
|
}, z.core.$strict>>;
|
|
530
549
|
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
550
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
531
551
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
532
552
|
purpose: z.ZodEnum<{
|
|
533
553
|
classification: "classification";
|
|
@@ -650,6 +670,14 @@ declare const ResultTestSchema: z.ZodObject<{
|
|
|
650
670
|
sentence: z.ZodString;
|
|
651
671
|
detail: z.ZodString;
|
|
652
672
|
group: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
673
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
674
|
+
completion: z.ZodLiteral<"planner">;
|
|
675
|
+
text: z.ZodString;
|
|
676
|
+
actions: z.ZodNumber;
|
|
677
|
+
requests: z.ZodNumber;
|
|
678
|
+
reason: z.ZodString;
|
|
679
|
+
dataSeed: z.ZodOptional<z.ZodNumber>;
|
|
680
|
+
}, z.core.$strict>>;
|
|
653
681
|
sourceStack: z.ZodArray<z.ZodObject<{
|
|
654
682
|
file: z.ZodString;
|
|
655
683
|
line: z.ZodNumber;
|
|
@@ -749,6 +777,7 @@ declare const ResultTestSchema: z.ZodObject<{
|
|
|
749
777
|
timeoutReason: z.ZodNullable<z.ZodString>;
|
|
750
778
|
}, z.core.$strict>>;
|
|
751
779
|
calls: z.ZodArray<z.ZodObject<{
|
|
780
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
752
781
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
753
782
|
purpose: z.ZodEnum<{
|
|
754
783
|
classification: "classification";
|
|
@@ -806,6 +835,7 @@ declare const ResultTestSchema: z.ZodObject<{
|
|
|
806
835
|
}, z.core.$strict>>;
|
|
807
836
|
}, z.core.$strict>>;
|
|
808
837
|
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
838
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
809
839
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
810
840
|
purpose: z.ZodEnum<{
|
|
811
841
|
classification: "classification";
|
|
@@ -953,6 +983,7 @@ declare const RunResultSchema: z.ZodObject<{
|
|
|
953
983
|
costComplete: z.ZodBoolean;
|
|
954
984
|
}, z.core.$strict>;
|
|
955
985
|
setupCalls: z.ZodArray<z.ZodObject<{
|
|
986
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
956
987
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
957
988
|
purpose: z.ZodEnum<{
|
|
958
989
|
classification: "classification";
|
|
@@ -1045,6 +1076,14 @@ declare const RunResultSchema: z.ZodObject<{
|
|
|
1045
1076
|
sentence: z.ZodString;
|
|
1046
1077
|
detail: z.ZodString;
|
|
1047
1078
|
group: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1079
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
1080
|
+
completion: z.ZodLiteral<"planner">;
|
|
1081
|
+
text: z.ZodString;
|
|
1082
|
+
actions: z.ZodNumber;
|
|
1083
|
+
requests: z.ZodNumber;
|
|
1084
|
+
reason: z.ZodString;
|
|
1085
|
+
dataSeed: z.ZodOptional<z.ZodNumber>;
|
|
1086
|
+
}, z.core.$strict>>;
|
|
1048
1087
|
sourceStack: z.ZodArray<z.ZodObject<{
|
|
1049
1088
|
file: z.ZodString;
|
|
1050
1089
|
line: z.ZodNumber;
|
|
@@ -1144,6 +1183,7 @@ declare const RunResultSchema: z.ZodObject<{
|
|
|
1144
1183
|
timeoutReason: z.ZodNullable<z.ZodString>;
|
|
1145
1184
|
}, z.core.$strict>>;
|
|
1146
1185
|
calls: z.ZodArray<z.ZodObject<{
|
|
1186
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1147
1187
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
1148
1188
|
purpose: z.ZodEnum<{
|
|
1149
1189
|
classification: "classification";
|
|
@@ -1201,6 +1241,7 @@ declare const RunResultSchema: z.ZodObject<{
|
|
|
1201
1241
|
}, z.core.$strict>>;
|
|
1202
1242
|
}, z.core.$strict>>;
|
|
1203
1243
|
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1244
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1204
1245
|
modality: z.ZodOptional<z.ZodLiteral<"vision">>;
|
|
1205
1246
|
purpose: z.ZodEnum<{
|
|
1206
1247
|
classification: "classification";
|
|
@@ -1453,6 +1494,8 @@ interface Aim {
|
|
|
1453
1494
|
readonly x: number;
|
|
1454
1495
|
readonly y: number;
|
|
1455
1496
|
};
|
|
1497
|
+
/** The control shows only while the pointer rests on it, so hover first. */
|
|
1498
|
+
readonly hover?: boolean;
|
|
1456
1499
|
readonly box?: {
|
|
1457
1500
|
readonly x: number;
|
|
1458
1501
|
readonly y: number;
|
|
@@ -1473,6 +1516,18 @@ type ReadTargetResult = {
|
|
|
1473
1516
|
} | {
|
|
1474
1517
|
readonly status: "stale" | "empty" | "too_long";
|
|
1475
1518
|
};
|
|
1519
|
+
/** A located control's state, for claims a person checks by looking at it. */
|
|
1520
|
+
type ControlStateResult = {
|
|
1521
|
+
readonly status: "ok";
|
|
1522
|
+
readonly disabled: boolean;
|
|
1523
|
+
/** Null when the control cannot be checked. */
|
|
1524
|
+
readonly checked: boolean | null;
|
|
1525
|
+
readonly focused: boolean;
|
|
1526
|
+
/** A text field's value; null for other controls and password fields. */
|
|
1527
|
+
readonly value: string | null;
|
|
1528
|
+
} | {
|
|
1529
|
+
readonly status: "stale";
|
|
1530
|
+
};
|
|
1476
1531
|
type AimResult = {
|
|
1477
1532
|
readonly actionable: true;
|
|
1478
1533
|
readonly aim: Aim;
|
|
@@ -1505,6 +1560,8 @@ interface PageBridge {
|
|
|
1505
1560
|
version?: PageVersion;
|
|
1506
1561
|
}): CandidatePage;
|
|
1507
1562
|
digest(): DigestResult;
|
|
1563
|
+
/** The digest's text without its size limit, for exact text checks. */
|
|
1564
|
+
visibleText(): DigestResult;
|
|
1508
1565
|
pageVersion(): PageVersion;
|
|
1509
1566
|
quiet(input: {
|
|
1510
1567
|
ms: number;
|
|
@@ -1518,8 +1575,11 @@ interface PageBridge {
|
|
|
1518
1575
|
}): CandidatePage;
|
|
1519
1576
|
clickTarget(ref: string): AimResult;
|
|
1520
1577
|
checkAim(aim: Aim): AimResult;
|
|
1578
|
+
/** The exact visible ancestor whose hover reveals an aimed control. */
|
|
1579
|
+
hoverElement(aim: Aim): Element | null;
|
|
1521
1580
|
fillElement(target: FillTarget): Element | null;
|
|
1522
1581
|
readTarget(target: FillTarget): ReadTargetResult;
|
|
1582
|
+
controlState(target: FillTarget): ControlStateResult;
|
|
1523
1583
|
clearRefs(): void;
|
|
1524
1584
|
}
|
|
1525
1585
|
declare global {
|
|
@@ -1577,6 +1637,7 @@ interface SettleOptions {
|
|
|
1577
1637
|
interface NavigationResult {
|
|
1578
1638
|
readonly url: string;
|
|
1579
1639
|
}
|
|
1640
|
+
type HistoryMove = "back" | "forward" | "reload";
|
|
1580
1641
|
interface SettleResult {
|
|
1581
1642
|
readonly settled: boolean;
|
|
1582
1643
|
readonly elapsedMs: number;
|
|
@@ -1618,6 +1679,7 @@ interface BrowserPage {
|
|
|
1618
1679
|
readonly context: BrowserContext;
|
|
1619
1680
|
};
|
|
1620
1681
|
goto(url: string, options?: NavigationOptions): Promise<NavigationResult>;
|
|
1682
|
+
history(move: HistoryMove, options?: NavigationOptions): Promise<NavigationResult>;
|
|
1621
1683
|
settle(options?: SettleOptions): Promise<SettleResult>;
|
|
1622
1684
|
text(): Promise<string>;
|
|
1623
1685
|
evaluate<T>(expression: string, argument?: unknown): Promise<T>;
|
|
@@ -1739,6 +1801,9 @@ declare function clearPageRefs(page: BrowserPage): Promise<void>;
|
|
|
1739
1801
|
declare function visualCandidates(page: BrowserPage): Promise<ReturnType<PageBridge["visualCandidates"]>>;
|
|
1740
1802
|
/** Match a store entry against every current candidate; the HMAC key never crosses the page bridge. */
|
|
1741
1803
|
declare function matchLiveEntry(page: BrowserPage, entry: CacheEntry | undefined, key: Uint8Array, operation: Operation, sentence: string, runtimeDependent?: boolean): Promise<MatchResult>;
|
|
1804
|
+
declare function controlState(page: BrowserPage, target: FillTarget): Promise<ControlStateResult>;
|
|
1805
|
+
/** Visible page text with no size limit; null when it cannot be read. */
|
|
1806
|
+
declare function visibleText(page: BrowserPage): Promise<string | null>;
|
|
1742
1807
|
|
|
1743
1808
|
type LocatorCacheLookup = {
|
|
1744
1809
|
readonly entry: CacheEntry;
|
|
@@ -1816,6 +1881,9 @@ type StepCommand = {
|
|
|
1816
1881
|
} | {
|
|
1817
1882
|
readonly op: "goto";
|
|
1818
1883
|
readonly url: RuntimeUrl;
|
|
1884
|
+
} | {
|
|
1885
|
+
readonly op: "history";
|
|
1886
|
+
readonly move: HistoryMove;
|
|
1819
1887
|
} | {
|
|
1820
1888
|
readonly op: "scroll";
|
|
1821
1889
|
readonly deltaY: number;
|
|
@@ -1898,6 +1966,8 @@ interface ProviderRate {
|
|
|
1898
1966
|
readonly checkedAt: string;
|
|
1899
1967
|
}
|
|
1900
1968
|
interface ProviderCall {
|
|
1969
|
+
/** Concrete provider identity; absent on legacy or genuinely unknown calls. */
|
|
1970
|
+
readonly provider?: string;
|
|
1901
1971
|
/** Set by the locator for visual fallback calls, independent of model name. */
|
|
1902
1972
|
readonly modality?: "vision";
|
|
1903
1973
|
readonly requestedModel: string;
|
|
@@ -1915,6 +1985,21 @@ interface ProviderCall {
|
|
|
1915
1985
|
/** Milliseconds spent waiting for a provider concurrency slot. */
|
|
1916
1986
|
readonly queueWaitMs?: number;
|
|
1917
1987
|
}
|
|
1988
|
+
/** One complete test projected for provider-neutral affected-test scoring. */
|
|
1989
|
+
interface RelevanceTest {
|
|
1990
|
+
readonly file: string;
|
|
1991
|
+
readonly source: string;
|
|
1992
|
+
readonly modules: readonly {
|
|
1993
|
+
readonly file: string;
|
|
1994
|
+
readonly source: string;
|
|
1995
|
+
}[];
|
|
1996
|
+
}
|
|
1997
|
+
interface RelevanceProvider {
|
|
1998
|
+
scoreRelevance(diff: string, tests: readonly RelevanceTest[], options?: ProviderCallOptions): Promise<{
|
|
1999
|
+
readonly probabilities: readonly number[];
|
|
2000
|
+
readonly calls: readonly ProviderCall[];
|
|
2001
|
+
}>;
|
|
2002
|
+
}
|
|
1918
2003
|
interface ResolverDecision {
|
|
1919
2004
|
readonly selection: {
|
|
1920
2005
|
readonly kind: "candidate";
|
|
@@ -1974,6 +2059,79 @@ declare class ProviderError extends Error {
|
|
|
1974
2059
|
/** A failed request may have been billed even when usage was not returned. */
|
|
1975
2060
|
declare function unknownCostCall(error: unknown): ProviderCall;
|
|
1976
2061
|
|
|
2062
|
+
/** One cooldown window never exceeds this, matching the SDK's `maxRetryAfterMs`. */
|
|
2063
|
+
declare const MAX_COOLDOWN_MS = 60000;
|
|
2064
|
+
/** Cumulative wait a call may spend after its first 429 before it gives up. */
|
|
2065
|
+
declare const RATE_LIMIT_BUDGET_MS = 300000;
|
|
2066
|
+
/** Fraction of each backoff delay randomly subtracted, as in the SDK policy. */
|
|
2067
|
+
declare const BACKOFF_JITTER = 0.25;
|
|
2068
|
+
declare const DEFAULT_PROVIDER_CONCURRENCY = 4;
|
|
2069
|
+
declare const MAX_PROVIDER_CONCURRENCY = 32;
|
|
2070
|
+
/**
|
|
2071
|
+
* Server-requested delay in milliseconds, following the TypeSafe SDK's
|
|
2072
|
+
* `RetryPolicy`: `retry-after-ms`, then `Retry-After` as seconds or an HTTP
|
|
2073
|
+
* date. Returns null when absent or malformed so the caller falls back to
|
|
2074
|
+
* backoff.
|
|
2075
|
+
*/
|
|
2076
|
+
declare function parseRetryAfter(headers: Headers | undefined, now: number): number | null;
|
|
2077
|
+
/** Exponential backoff with subtractive jitter, capped at one window. */
|
|
2078
|
+
declare function backoffDelay(failures: number, initialMs: number, random: number): number;
|
|
2079
|
+
/** The delay for one 429: the server's request when given, else backoff. */
|
|
2080
|
+
declare function cooldownDelay(retryAfterMs: number | null, rateLimitCount: number, initialMs: number, random: number): number;
|
|
2081
|
+
/**
|
|
2082
|
+
* Additive-increase ramp after a cooldown: one request first, one more per
|
|
2083
|
+
* success, back to one on any new 429.
|
|
2084
|
+
*/
|
|
2085
|
+
declare function nextConcurrency(current: number, cap: number, event: "success" | "rate-limited"): number;
|
|
2086
|
+
declare class GateWaitExceeded extends Error {
|
|
2087
|
+
constructor();
|
|
2088
|
+
}
|
|
2089
|
+
declare class GateAborted extends Error {
|
|
2090
|
+
constructor();
|
|
2091
|
+
}
|
|
2092
|
+
interface ProviderGateOptions {
|
|
2093
|
+
readonly concurrency?: number;
|
|
2094
|
+
readonly now?: () => number;
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* Admission control shared by every lane of a run: a concurrency cap on
|
|
2098
|
+
* in-flight provider requests plus one cooldown that pauses all of them after
|
|
2099
|
+
* a 429. Backed by p-queue.
|
|
2100
|
+
*/
|
|
2101
|
+
declare class ProviderGate {
|
|
2102
|
+
readonly cap: number;
|
|
2103
|
+
private readonly queue;
|
|
2104
|
+
private readonly now;
|
|
2105
|
+
private cooldownUntil;
|
|
2106
|
+
private timer;
|
|
2107
|
+
constructor(options?: ProviderGateOptions);
|
|
2108
|
+
/** Current admission limit; below the cap while ramping after a cooldown. */
|
|
2109
|
+
get concurrency(): number;
|
|
2110
|
+
get coolingDown(): boolean;
|
|
2111
|
+
get inFlight(): number;
|
|
2112
|
+
/**
|
|
2113
|
+
* Run `task` once a slot is free and no cooldown is active. Waiting ends
|
|
2114
|
+
* with `GateAborted` when `signal` aborts, or `GateWaitExceeded` after
|
|
2115
|
+
* `maxWaitMs`; neither consumes a slot.
|
|
2116
|
+
*/
|
|
2117
|
+
run<T>(task: () => Promise<T>, options?: {
|
|
2118
|
+
readonly signal?: AbortSignal;
|
|
2119
|
+
readonly maxWaitMs?: number;
|
|
2120
|
+
}): Promise<{
|
|
2121
|
+
readonly value: T;
|
|
2122
|
+
readonly waitedMs: number;
|
|
2123
|
+
}>;
|
|
2124
|
+
/** Pause admission for every lane until at least `until`; later requests extend it. */
|
|
2125
|
+
cooldown(until: number): void;
|
|
2126
|
+
/**
|
|
2127
|
+
* Release the pending cooldown timer when the run ends, so an interrupted
|
|
2128
|
+
* or timed-out run does not keep the process alive until the window closes.
|
|
2129
|
+
*/
|
|
2130
|
+
close(): void;
|
|
2131
|
+
/** One successful response widens admission by one, up to the cap. */
|
|
2132
|
+
succeeded(): void;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
1977
2135
|
declare const DEFAULT_VISION_MODEL = "google/gemini-3.8-flash";
|
|
1978
2136
|
interface VisionObservation {
|
|
1979
2137
|
readonly instruction: string;
|
|
@@ -2344,7 +2502,18 @@ interface ClassificationResult {
|
|
|
2344
2502
|
readonly calls: readonly ProviderCall[];
|
|
2345
2503
|
readonly metrics: ClassificationMetrics;
|
|
2346
2504
|
}
|
|
2505
|
+
/**
|
|
2506
|
+
* `wait until the reply is shown`, or `wait up to 90 seconds until …`: a
|
|
2507
|
+
* verify that judges the claim again as the page changes, until it holds.
|
|
2508
|
+
*/
|
|
2509
|
+
declare const WAIT_UNTIL: RegExp;
|
|
2347
2510
|
declare function canonicalSentence(sentence: string): string;
|
|
2511
|
+
/**
|
|
2512
|
+
* Whether a sentence has a statically recognizable claim shape. This is
|
|
2513
|
+
* intentionally narrower than natural language: an unreadable shape must not
|
|
2514
|
+
* let an authored action pass offline validation as an `ai.holds` claim.
|
|
2515
|
+
*/
|
|
2516
|
+
declare function isClaimSentence(sentence: string): boolean;
|
|
2348
2517
|
declare function preflightSentence(sentence: string): ClassificationDiagnosticCode | null;
|
|
2349
2518
|
declare function patternOperation(sentence: string): StepOperationKind | null;
|
|
2350
2519
|
/** Validate the lexical operands that cannot safely be guessed by execution. */
|
|
@@ -2369,12 +2538,13 @@ declare function classificationKey(sentence: string): string;
|
|
|
2369
2538
|
declare class FileClassificationCache implements ClassificationCache {
|
|
2370
2539
|
readonly path: string;
|
|
2371
2540
|
readonly requestedModel: string;
|
|
2541
|
+
readonly provider: string;
|
|
2372
2542
|
readonly loadReason: "ok" | "absent" | "corrupt" | "format_mismatch";
|
|
2373
2543
|
private readonly invalidKeys;
|
|
2374
2544
|
private readonly entries;
|
|
2375
2545
|
private dirty;
|
|
2376
2546
|
private constructor();
|
|
2377
|
-
static load(path: string, requestedModel: string): Promise<FileClassificationCache>;
|
|
2547
|
+
static load(path: string, requestedModel: string, provider?: string): Promise<FileClassificationCache>;
|
|
2378
2548
|
get(sentence: string): CacheLookup;
|
|
2379
2549
|
put(sentence: string, answer: CachedClassification): void;
|
|
2380
2550
|
save(): Promise<void>;
|
|
@@ -2639,6 +2809,15 @@ interface GoalState {
|
|
|
2639
2809
|
readonly declaredDataKeys?: readonly string[];
|
|
2640
2810
|
readonly completionCriteria?: readonly string[];
|
|
2641
2811
|
readonly operationInstructions?: string;
|
|
2812
|
+
readonly automaticData?: boolean;
|
|
2813
|
+
/** TypeScript goals stop at planner completion; YAML requests verification. */
|
|
2814
|
+
readonly completion?: "planner";
|
|
2815
|
+
}
|
|
2816
|
+
interface GoalValueState {
|
|
2817
|
+
readonly goal: string;
|
|
2818
|
+
readonly page: string;
|
|
2819
|
+
readonly field: string;
|
|
2820
|
+
readonly choices: Readonly<Record<string, string>>;
|
|
2642
2821
|
}
|
|
2643
2822
|
interface GoalChoice {
|
|
2644
2823
|
readonly choice: string;
|
|
@@ -2650,7 +2829,15 @@ interface GoalDecision {
|
|
|
2650
2829
|
readonly target?: GoalChoice;
|
|
2651
2830
|
readonly call: ProviderCall;
|
|
2652
2831
|
}
|
|
2832
|
+
declare const GOAL_NO_MATCH = "__sedum_no_match";
|
|
2653
2833
|
interface GoalPlanner {
|
|
2834
|
+
/** Optional for older providers; enables automatic synthetic data in goal mode. */
|
|
2835
|
+
chooseGoalValue?(state: GoalValueState, options?: ProviderCallOptions): Promise<{
|
|
2836
|
+
readonly value: GoalChoice;
|
|
2837
|
+
readonly call: ProviderCall;
|
|
2838
|
+
}>;
|
|
2839
|
+
/** Minimum target Choice cardinality required by this provider protocol. */
|
|
2840
|
+
readonly targetChoiceMinOptions?: 2;
|
|
2654
2841
|
/** Exactly one HTTP attempt; operation and speculative target heads share it. */
|
|
2655
2842
|
chooseGoal(state: GoalState, options?: ProviderCallOptions): Promise<GoalDecision>;
|
|
2656
2843
|
}
|
|
@@ -2666,7 +2853,13 @@ interface GoalOptions {
|
|
|
2666
2853
|
readonly timeoutMs?: number;
|
|
2667
2854
|
/** Experimental operation-only margin; target margin and confidence floors stay fixed. */
|
|
2668
2855
|
readonly operationMinMargin?: number;
|
|
2856
|
+
/** Reproduce the POC's local Faker sequence (English locale, pinned version). */
|
|
2857
|
+
readonly dataSeed?: number;
|
|
2669
2858
|
readonly signal?: AbortSignal;
|
|
2859
|
+
/** Redaction history, never offered as available fill bindings. */
|
|
2860
|
+
readonly opaqueEntries?: readonly ResolvedDataEntry[];
|
|
2861
|
+
/** Register generated text with the host's report redactor before any fill. */
|
|
2862
|
+
readonly onGeneratedValue?: (value: RuntimeValue) => void;
|
|
2670
2863
|
/** Awaited after each dispatched action; contains no typed values. */
|
|
2671
2864
|
readonly onAction?: (action: GoalAction) => Promise<void>;
|
|
2672
2865
|
}
|
|
@@ -2685,6 +2878,7 @@ interface GoalAction {
|
|
|
2685
2878
|
readonly calls: readonly ProviderCall[];
|
|
2686
2879
|
}
|
|
2687
2880
|
interface GoalResult {
|
|
2881
|
+
readonly dataSeed?: number;
|
|
2688
2882
|
readonly status: "passed" | "failed";
|
|
2689
2883
|
readonly reason: string;
|
|
2690
2884
|
readonly requests: number;
|
|
@@ -2698,6 +2892,17 @@ interface GoalResult {
|
|
|
2698
2892
|
* CLICK 0.46". Contains no typed values.
|
|
2699
2893
|
*/
|
|
2700
2894
|
readonly detail?: string;
|
|
2895
|
+
/** Safe terminal context for report metadata/evidence; never contains typed values. */
|
|
2896
|
+
readonly failure?: {
|
|
2897
|
+
readonly version: PageVersion;
|
|
2898
|
+
readonly operation?: "click" | "type";
|
|
2899
|
+
readonly targetName?: string;
|
|
2900
|
+
readonly targetRole?: string;
|
|
2901
|
+
readonly confidence?: number | null;
|
|
2902
|
+
readonly probability?: number;
|
|
2903
|
+
/** Allowlisted local generator identity; never the generated value. */
|
|
2904
|
+
readonly generator?: string;
|
|
2905
|
+
};
|
|
2701
2906
|
readonly verification: readonly {
|
|
2702
2907
|
claim: string;
|
|
2703
2908
|
verdict: string;
|
|
@@ -2709,7 +2914,7 @@ interface GoalResult {
|
|
|
2709
2914
|
declare function goalOperations(state: GoalState): Record<string, string>;
|
|
2710
2915
|
/** Same confidence and comparable-margin floor as Sedum's strict locator. */
|
|
2711
2916
|
declare function goalChoiceAccepted(answer: GoalChoice, ids: readonly string[], minMargin?: number): boolean;
|
|
2712
|
-
/**
|
|
2917
|
+
/** Only host-owned value generators; no model-authored text or executable code. */
|
|
2713
2918
|
declare function runGoal(page: BrowserPage, planner: GoalPlanner, judge: Judge, options: GoalOptions): Promise<GoalResult>;
|
|
2714
2919
|
|
|
2715
2920
|
/**
|
|
@@ -2827,6 +3032,11 @@ interface FlowRunnerDependencies {
|
|
|
2827
3032
|
readonly height: number;
|
|
2828
3033
|
};
|
|
2829
3034
|
readonly verifyPolicy?: VerifyPolicy;
|
|
3035
|
+
/**
|
|
3036
|
+
* How long a failing verify keeps judging the page while it changes, like
|
|
3037
|
+
* Playwright's expect. Omitted or 0 judges once.
|
|
3038
|
+
*/
|
|
3039
|
+
readonly verifyGraceMs?: number;
|
|
2830
3040
|
readonly baseUrl?: string;
|
|
2831
3041
|
readonly urlOverride?: string;
|
|
2832
3042
|
readonly slowMoMs?: number;
|
|
@@ -2884,9 +3094,17 @@ declare function closeQuietly(resource: {
|
|
|
2884
3094
|
interface SentencePresentation {
|
|
2885
3095
|
readonly group?: readonly string[];
|
|
2886
3096
|
readonly display?: string;
|
|
3097
|
+
/** A question the test branches on: judged once and never gating. */
|
|
3098
|
+
readonly check?: boolean;
|
|
2887
3099
|
}
|
|
2888
3100
|
/** @internal Execute one classified sentence and record it as one step. */
|
|
2889
3101
|
declare function executeSentence(page: BrowserPage, step: ClassifiedFlowSentence, dependencies: AttemptDependencies, data: Record<string, ResolvedDataEntry>, opaqueEntries: ResolvedDataEntry[], presentation?: SentencePresentation): Promise<"continue" | "failed" | FlowRunResult>;
|
|
3102
|
+
/** Goal replay frames show the resulting page, never a stale pre-action target box. */
|
|
3103
|
+
declare function recordGoalAction(page: BrowserPage, action: GoalAction, report: AttemptReport, repoRoot: string, source: FlowSource, group?: readonly string[], canceled?: boolean): Promise<void>;
|
|
3104
|
+
/** Capture the current safe page and selected target for a terminal goal failure. */
|
|
3105
|
+
declare function goalFailureArtifacts(page: BrowserPage, result: GoalResult, report: AttemptReport, id: string): Promise<Pick<ResultStep, "page" | "locator" | "evidence" | "targetBox"> & {
|
|
3106
|
+
readonly detail?: string;
|
|
3107
|
+
}>;
|
|
2890
3108
|
/** Run one validated attempt with setup, body, and exhaustive teardown. */
|
|
2891
3109
|
declare function runFlow(file: string, runDependencies: FlowRunnerDependencies): Promise<FlowRunResult>;
|
|
2892
3110
|
|
|
@@ -2930,10 +3148,12 @@ declare function scriptListingEntries(script: LoadedScriptFile): readonly {
|
|
|
2930
3148
|
interface ScriptSentence {
|
|
2931
3149
|
readonly text: string;
|
|
2932
3150
|
readonly source: FlowSource;
|
|
3151
|
+
/** The sentence is a claim passed to `ai.holds`, not a general step. */
|
|
3152
|
+
readonly check?: true;
|
|
2933
3153
|
}
|
|
2934
3154
|
interface ScriptSentenceScan {
|
|
2935
3155
|
readonly sentences: readonly ScriptSentence[];
|
|
2936
|
-
/**
|
|
3156
|
+
/** Static diagnostics, including run-time shapes that cannot be checked. */
|
|
2937
3157
|
readonly warnings: readonly FlowDiagnostic[];
|
|
2938
3158
|
/** Parameter names of the functions this file declares, by position. */
|
|
2939
3159
|
readonly functions: ReadonlyMap<string, readonly string[]>;
|
|
@@ -2970,10 +3190,11 @@ type Token = {
|
|
|
2970
3190
|
/** A small JavaScript lexer: enough to find string arguments of `ai` calls. */
|
|
2971
3191
|
declare function tokenize(source: string): Token[];
|
|
2972
3192
|
/**
|
|
2973
|
-
* Find the literal sentences passed to `ai(...)`, `ai([...])`,
|
|
2974
|
-
* `ai.group(name, [...])`. A sentence built with `${}` or
|
|
2975
|
-
* a warning: it defeats the classification cache and cannot
|
|
2976
|
-
* before a run. `ai.extract` takes a description, not a step, so it
|
|
3193
|
+
* Find the literal sentences passed to `ai(...)`, `ai([...])`,
|
|
3194
|
+
* `ai.group(name, [...])`, and `ai.holds(...)`. A sentence built with `${}` or
|
|
3195
|
+
* `+` is reported as a warning: it defeats the classification cache and cannot
|
|
3196
|
+
* be checked before a run. `ai.extract` takes a description, not a step, so it
|
|
3197
|
+
* is skipped.
|
|
2977
3198
|
*/
|
|
2978
3199
|
declare function scanScriptSentences(source: string, file: string): ScriptSentenceScan;
|
|
2979
3200
|
/**
|
|
@@ -3021,4 +3242,4 @@ interface ActionRequest {
|
|
|
3021
3242
|
readonly description: string;
|
|
3022
3243
|
}
|
|
3023
3244
|
|
|
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 };
|
|
3245
|
+
export { ACCEPTANCE_POLICY_VERSION, type ActionRequest, AiValues, type Aim, type AimResult, AssertionEngineError, type AssertionEngineErrorCode, type AssertionOptions, type AttemptDependencies, type AttemptReport, BACKOFF_JITTER, 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, type ControlStateResult, DEFAULT_BAND, DEFAULT_CONTRADICTION_CUTOFF, DEFAULT_MIN_P, DEFAULT_PROVIDER_CONCURRENCY, 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, GOAL_NO_MATCH, GateAborted, GateWaitExceeded, type GoalAction, type GoalChoice, type GoalDecision, type GoalOptions, type GoalPlanner, type GoalResult, type GoalState, type GoalValueState, type HelperCall, type HistoryMove, 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, MAX_COOLDOWN_MS, MAX_PROVIDER_CONCURRENCY, 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, ProviderGate, type ProviderGateOptions, type ProviderRate, type ProviderTokenUsage, RATE_LIMIT_BUDGET_MS, type ReadTargetResult, type RejectionOwner, RejectionRouter, type RelevanceProvider, type RelevanceTest, 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, WAIT_UNTIL, attributeRejection, backoffDelay, callExtent, canonicalSentence, captureVisionObservation, checkRegistrations, classificationKey, classifyParsedFlow, classifySentenceSteps, classifySteps, clearPageRefs, clickTarget, closeQuietly, codePoints, collectCandidates, compareDiagnostics, controlState, cooldownDelay, dedupeDiagnostics, describeRejection, discoverFlowFiles, discoverProjectFiles, displayPath, evaluateModelAnswer, evaluateVerifyScores, executeSentence, executeStep, findBrowserExecutable, findIdentityCollisions, firstDiagnostic, goalChoiceAccepted, goalFailureArtifacts, goalOperations, inlineValues, installChromium, isClaimSentence, isFlowScalar, isRunWideProviderError, isSafeRole, isScriptTestFile, isWeakPeer, keyedDigest, listTests, liveCandidates, loadFlowFile, loadListingEntries, loadScriptFile, matchEntry, matchLiveEntry, measure, navigationWhy, nextConcurrency, normalizeSignal, opaqueMatches, pageDigest, pageKey, pageVersion, parseDataTemplate, parseFlow, parseModule, parseRetryAfter, patternOperation, preflightSentence, probeOpenRouterKey, projectCandidates, projectDigest, quietPage, readTarget, recordGoalAction, 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, visibleText, visualCandidates, walkSuiteFiles };
|