@abubakarsiddiik/substrate 0.0.0-stage → 0.1.1

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/chrome.js ADDED
@@ -0,0 +1,24 @@
1
+ import { existsSync } from "node:fs";
2
+ const CANDIDATES = [
3
+ "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
4
+ "/Applications/Chromium.app/Contents/MacOS/Chromium",
5
+ "/usr/bin/google-chrome",
6
+ "/usr/bin/google-chrome-stable",
7
+ "/usr/bin/chromium",
8
+ "/usr/bin/chromium-browser",
9
+ ];
10
+ /**
11
+ * Find a Chrome or Chromium binary.
12
+ *
13
+ * `playwright-core` does not download a browser, so the adapter needs one on
14
+ * the machine. `CHROME_PATH` wins when set; otherwise the usual install
15
+ * locations are tried. Tests skip when this returns undefined.
16
+ */
17
+ export function findChrome() {
18
+ const configured = process.env.CHROME_PATH;
19
+ if (configured !== undefined && configured.length > 0) {
20
+ return existsSync(configured) ? configured : undefined;
21
+ }
22
+ return CANDIDATES.find((path) => existsSync(path));
23
+ }
24
+ //# sourceMappingURL=chrome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chrome.js","sourceRoot":"","sources":["../src/chrome.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,UAAU,GAAG;IACjB,8DAA8D;IAC9D,oDAAoD;IACpD,wBAAwB;IACxB,+BAA+B;IAC/B,mBAAmB;IACnB,2BAA2B;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,UAAU;IACxB,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;IAC3C,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtD,OAAO,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;IACzD,CAAC;IAED,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC"}
@@ -0,0 +1,132 @@
1
+ export type NavigateResult = {
2
+ url: string;
3
+ title: string;
4
+ status: number | null;
5
+ };
6
+ export type Bounds = {
7
+ /** CSS pixels, in document coordinates. */
8
+ x: number;
9
+ y: number;
10
+ width: number;
11
+ height: number;
12
+ };
13
+ export type SemanticNode = {
14
+ nodeId: string;
15
+ role: string;
16
+ name: string;
17
+ /** CDP backend node id, used to dispatch an action. */
18
+ backendNodeId?: number;
19
+ /** The author's stable automation hook, when the node has one. */
20
+ test_id?: string;
21
+ /** DOM attributes for this node, when it has a layout box. */
22
+ attributes?: Record<string, string>;
23
+ ignored: boolean;
24
+ /** False when ignored, unstyled, zero-sized, or hidden by CSS. */
25
+ visible: boolean;
26
+ bounds?: Bounds;
27
+ properties: Record<string, string | number | boolean>;
28
+ childIds: string[];
29
+ };
30
+ export type Snapshot = {
31
+ /** Document epoch. Increments on every committed main-frame navigation. */
32
+ doc: number;
33
+ /** Mutation counter. Increments on every dispatched action. */
34
+ v: number;
35
+ url: string;
36
+ title: string;
37
+ nodes: SemanticNode[];
38
+ };
39
+ export type NetworkEffect = {
40
+ kind: "network";
41
+ method: string;
42
+ url: string;
43
+ status?: number;
44
+ resource_type?: string;
45
+ mime_type?: string;
46
+ /** Parsed JSON request body, when the request had one. */
47
+ request_body?: unknown;
48
+ /** Parsed JSON response body, when the response had one. */
49
+ response_body?: unknown;
50
+ };
51
+ export type NavigationEffect = {
52
+ kind: "navigation";
53
+ from: string;
54
+ to: string;
55
+ doc: number;
56
+ };
57
+ export type ValueEffect = {
58
+ kind: "value";
59
+ backendNodeId: number;
60
+ value: string;
61
+ };
62
+ export type Effect = NetworkEffect | NavigationEffect | ValueEffect;
63
+ export type Action = {
64
+ do: "click" | "check" | "uncheck";
65
+ backendNodeId: number;
66
+ } | {
67
+ do: "fill" | "select";
68
+ backendNodeId: number;
69
+ value: string;
70
+ } | {
71
+ do: "press";
72
+ key: string;
73
+ backendNodeId?: number;
74
+ };
75
+ export type DownloadInfo = {
76
+ /** Server-local path the download was saved to. */
77
+ path: string;
78
+ /** The filename the site suggested. */
79
+ filename: string;
80
+ };
81
+ export type DispatchResult = {
82
+ ok: true;
83
+ doc: number;
84
+ v: number;
85
+ url: string;
86
+ title: string;
87
+ effects: Effect[];
88
+ download?: DownloadInfo;
89
+ };
90
+ export type EngineErrorCode = "navigation_failed" | "not_found" | "not_interactive" | "disabled" | "option_not_found" | "file_input_not_found" | "evaluate_failed";
91
+ export declare class EngineError extends Error {
92
+ readonly code: EngineErrorCode;
93
+ readonly details: Record<string, unknown>;
94
+ constructor(code: EngineErrorCode, message: string, options?: {
95
+ cause?: unknown;
96
+ details?: Record<string, unknown>;
97
+ });
98
+ }
99
+ /**
100
+ * The four-method browser adapter.
101
+ *
102
+ * This is the only place the runtime touches a rendering engine. Chromium is
103
+ * the first implementation; Lightpanda or a remote CDP endpoint can implement
104
+ * the same interface without changing the runtime.
105
+ *
106
+ * `snapshot` returns the accessibility tree merged with layout: role, name,
107
+ * document bounds, and visibility. Ranking and refs are the next layer.
108
+ *
109
+ * `navigate` and `dispatch` resolve after the action's *direct* effects: a
110
+ * committed navigation, captured response bodies, a started download. They
111
+ **do not** wait out SPA hydration or fetch-rendered content — tier ops
112
+ * navigate per call and hold a p50 budget. Waiting for a quiet page is the
113
+ * substrate's job; see the quiescence contract on {@link Substrate}. A
114
+ * snapshot taken immediately after these calls may therefore be early; take
115
+ * it through the substrate verbs unless you want the raw page.
116
+ */
117
+ export interface Engine {
118
+ /** Navigate and resolve once the navigation has committed. */
119
+ navigate(url: string): Promise<NavigateResult>;
120
+ snapshot(): Promise<Snapshot>;
121
+ /** Dispatch an action and resolve once its direct effects are captured. */
122
+ dispatch(action: Action): Promise<DispatchResult>;
123
+ /** Set files on a file input, or on the nearest file input to a trigger. */
124
+ setFiles(backendNodeId: number, files: string[]): Promise<void>;
125
+ /** The current value of a form control, or undefined when it has none. */
126
+ readValue(backendNodeId: number): Promise<string | undefined>;
127
+ evaluate<T>(expression: string): Promise<T>;
128
+ /** A PNG of the viewport, when the engine can capture one. */
129
+ screenshot?(): Promise<Uint8Array>;
130
+ close(): Promise<void>;
131
+ }
132
+ //# sourceMappingURL=engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../src/engine.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,2CAA2C;IAC3C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,kEAAkE;IAClE,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACtD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;I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EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,0EAA0E;IAC1E,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9D,QAAQ,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC5C,8DAA8D;IAC9D,UAAU,CAAC,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IACnC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB"}
package/dist/engine.js ADDED
@@ -0,0 +1,11 @@
1
+ export class EngineError extends Error {
2
+ code;
3
+ details;
4
+ constructor(code, message, options) {
5
+ super(message, options);
6
+ this.name = "EngineError";
7
+ this.code = code;
8
+ this.details = options?.details ?? {};
9
+ }
10
+ }
11
+ //# sourceMappingURL=engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.js","sourceRoot":"","sources":["../src/engine.ts"],"names":[],"mappings":"AAqGA,MAAM,OAAO,WAAY,SAAQ,KAAK;IAC3B,IAAI,CAAkB;IACtB,OAAO,CAA0B;IAE1C,YACE,IAAqB,EACrB,OAAe,EACf,OAAgE;QAEhE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,EAAE,CAAC;IACxC,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ export * from "./affordances.js";
2
+ export * from "./chrome.js";
3
+ export * from "./engine.js";
4
+ export * from "./playwright-engine.js";
5
+ export * from "./policy.js";
6
+ export * from "./reaper.js";
7
+ export * from "./refs.js";
8
+ export * from "./substrate.js";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ export * from "./affordances.js";
2
+ export * from "./chrome.js";
3
+ export * from "./engine.js";
4
+ export * from "./playwright-engine.js";
5
+ export * from "./policy.js";
6
+ export * from "./reaper.js";
7
+ export * from "./refs.js";
8
+ export * from "./substrate.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,124 @@
1
+ import { type BrowserContext, type BrowserContextOptions } from "playwright-core";
2
+ import { type Action, type DispatchResult, type Engine, type NavigateResult, type Snapshot } from "./engine.js";
3
+ export type PlaywrightEngineOptions = {
4
+ executablePath: string;
5
+ headless?: boolean;
6
+ timeoutMs?: number;
7
+ /** Extra Chromium flags, e.g. --no-sandbox in a container. */
8
+ launchArgs?: string[];
9
+ /**
10
+ * Cookies and localStorage from a signed-in session, as a Playwright storage
11
+ * state file or object. The user signs in once; Portolan never sees the
12
+ * password.
13
+ */
14
+ storageState?: BrowserContextOptions["storageState"];
15
+ /**
16
+ * Tags the browser's command line so `reapOrphans` can find it after this
17
+ * process dies without a graceful close.
18
+ */
19
+ instanceId?: string;
20
+ };
21
+ export declare class PlaywrightEngine implements Engine {
22
+ private readonly browser;
23
+ private readonly context;
24
+ private readonly page;
25
+ private readonly cdp;
26
+ private readonly timeoutMs;
27
+ private doc;
28
+ private v;
29
+ private readonly network;
30
+ private networkOrder;
31
+ private readonly networkSeqOf;
32
+ private networkSeq;
33
+ private readonly requestCaptures;
34
+ private readonly responseCaptures;
35
+ private downloadStarted;
36
+ private downloadPromise;
37
+ private lastDownload;
38
+ private downloadWaiters;
39
+ private constructor();
40
+ static launch(options: PlaywrightEngineOptions): Promise<PlaywrightEngine>;
41
+ /** Save the signed-in session so another run can reuse it. */
42
+ /** The current main-frame URL, without a snapshot. */
43
+ url(): string;
44
+ storageState(path?: string): Promise<Awaited<ReturnType<BrowserContext["storageState"]>>>;
45
+ navigate(url: string): Promise<NavigateResult>;
46
+ snapshot(): Promise<Snapshot>;
47
+ dispatch(action: Action): Promise<DispatchResult>;
48
+ evaluate<T>(expression: string): Promise<T>;
49
+ screenshot(): Promise<Uint8Array>;
50
+ close(): Promise<void>;
51
+ private resolveObject;
52
+ private callOn;
53
+ private effectsSince;
54
+ private recordRequest;
55
+ private recordResponse;
56
+ /**
57
+ * CDP only inlines a small request body in `requestWillBeSent`; a larger one
58
+ * has to be asked for by id. This is the body a lifted write needs to replay.
59
+ */
60
+ private captureRequestBody;
61
+ /**
62
+ * Fetch a JSON response body while CDP still holds it.
63
+ *
64
+ * `loadingFinished` is the last moment the body is guaranteed to be
65
+ * available, so the capture starts there and the action awaits it before
66
+ * returning effects.
67
+ */
68
+ private captureBody;
69
+ /** Wait for the body captures that belong to the action starting at `mark`. */
70
+ private finishNetwork;
71
+ /** Focus a node before a key press. */
72
+ private focus;
73
+ /**
74
+ * A disabled control is not clickable.
75
+ *
76
+ * Tailwind's `disabled:pointer-events-none` makes the hit-test land on the
77
+ * element behind the button, so without this check a disabled button is
78
+ * reported as "covered" by an opaque node id. The caller needs to know the
79
+ * control is disabled, not that something covers it.
80
+ */
81
+ private assertEnabled;
82
+ private click;
83
+ /**
84
+ * Run an action that may navigate, and wait for the new document.
85
+ *
86
+ * The navigation waiter is installed *before* the action: a click can start
87
+ * and commit a navigation before a listener installed afterwards runs, and
88
+ * then the caller snapshots the old page. A non-navigating click (a modal,
89
+ * a menu) resolves after a short cap instead of the full timeout. We do not
90
+ * wait for networkidle: Playwright defines it as 500ms of quiet, which adds
91
+ * half a second to every click. `dispatch` awaits the requests it captured,
92
+ * and an op that needs a later state declares `await_state`.
93
+ */
94
+ private settleAction;
95
+ /** DOM facts about a node, for a blocker that has no semantic ref. */
96
+ private describeBackend;
97
+ private contains;
98
+ private ancestorsOf;
99
+ /**
100
+ * Set files on a file input.
101
+ *
102
+ * A styled "Choose file" control is usually a button or label, with the
103
+ * real `<input type="file">` hidden nearby. Setting files on the button does
104
+ * nothing, so fall back to the first file input on the page.
105
+ */
106
+ setFiles(backendNodeId: number, files: string[]): Promise<void>;
107
+ /** Wait for a download that starts after the action returns. */
108
+ private waitForDownload;
109
+ /** The current value of a form control, for a ref read. */
110
+ readValue(backendNodeId: number): Promise<string | undefined>;
111
+ private fill;
112
+ private select;
113
+ /**
114
+ * Choose an option in a custom combobox.
115
+ *
116
+ * React component libraries (Radix, shadcn, Headless UI) render a button
117
+ * with `role="combobox"` and a portal listbox, not a native `<select>`.
118
+ * Setting `.value` does nothing there. Open the control, find the option by
119
+ * its visible text, and click its centre.
120
+ */
121
+ private selectCustom;
122
+ private setChecked;
123
+ }
124
+ //# sourceMappingURL=playwright-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playwright-engine.d.ts","sourceRoot":"","sources":["../src/playwright-engine.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAK3B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,cAAc,EAGnB,KAAK,MAAM,EAEX,KAAK,cAAc,EAGnB,KAAK,QAAQ,EACd,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,u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