@mlola/browser-backend 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MLola
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @mlola/browser-backend
2
+
3
+ The `BrowserBackend` interface and capability negotiation for the
4
+ [MLola Browser Runtime](https://mlola.com/browser-runtime).
5
+
6
+ Implement it to add a browser (extension, remote worker, harness); the
7
+ orchestrator routes only operations your backend advertises.
8
+
9
+ ```ts
10
+ import { BackendRegistry, type BrowserBackend } from "@mlola/browser-backend";
11
+ ```
@@ -0,0 +1,3 @@
1
+ export * from "./interface.ts";
2
+ export * from "./registry.ts";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./interface.js";
2
+ export * from "./registry.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Browser backend abstraction (PRD §8.2, §48).
3
+ *
4
+ * The orchestrator routes only operations the backend advertises. Backends own
5
+ * browser mechanics; they never make decisions and never see model output
6
+ * directly — they receive typed actions only.
7
+ */
8
+ import type { BrowserConfig, BrowserSnapshot, FailureClass, HumanHelpRequest, HumanHelpResult, RunId, SessionId, SnapshotDiagnostics, TabId, TabInfo, TypedAction } from "@mlola/browser-protocol";
9
+ import type { BackendCapability, RuntimeError } from "@mlola/browser-protocol";
10
+ export interface StartSessionInput {
11
+ runId: RunId;
12
+ sessionId: SessionId;
13
+ browser: BrowserConfig;
14
+ /** Download/artifact directory owned by the runtime for this run. */
15
+ artifactsDir: string;
16
+ /** Directory for screenshots (created on demand). */
17
+ screenshotsDir?: string;
18
+ }
19
+ export interface BrowserSession {
20
+ sessionId: SessionId;
21
+ runId: RunId;
22
+ backend: string;
23
+ capabilities: Partial<Record<BackendCapability, boolean>>;
24
+ agentWindowId?: number;
25
+ startedAt: number;
26
+ }
27
+ /** What an executed action changed, as observed by the backend (PRD §41). */
28
+ export type ActionEffect = "none" | "dom_mutated" | "navigated" | "dialog_opened" | "dialog_closed" | "new_tab" | "tab_switched" | "tab_closed" | "download_started" | "download_completed" | "upload_dispatched" | "scrolled" | "focus_changed" | "unknown";
29
+ export interface ActionOutcome {
30
+ ok: boolean;
31
+ effect: ActionEffect;
32
+ /** Stable, human-readable detail for traces. Never includes secrets. */
33
+ detail?: string;
34
+ latencyMs: number;
35
+ /** Pre/post identity for verification. */
36
+ urlBefore?: string;
37
+ urlAfter?: string;
38
+ pageTokenBefore?: string;
39
+ pageTokenAfter?: string;
40
+ /** Set when the backend cannot confirm the effect (PRD §29). */
41
+ unknownEffect?: boolean;
42
+ /** File captured by the backend; the runtime registers it as an artifact. */
43
+ downloadedFile?: DownloadedFile;
44
+ /** Newly opened tab, when the action opened one. */
45
+ newTabId?: TabId;
46
+ dialog?: {
47
+ kind: string;
48
+ title?: string;
49
+ text?: string;
50
+ };
51
+ }
52
+ export interface DownloadedFile {
53
+ path: string;
54
+ suggestedName?: string;
55
+ url?: string;
56
+ /** True when the browser reported the download as completed and successful. */
57
+ completed: boolean;
58
+ failure?: string;
59
+ }
60
+ export interface PreflightResult {
61
+ ok: boolean;
62
+ code?: FailureClass;
63
+ detail?: string;
64
+ evidence?: Record<string, unknown>;
65
+ }
66
+ export interface ScreenshotResult {
67
+ path: string;
68
+ captureId?: string;
69
+ width?: number;
70
+ height?: number;
71
+ }
72
+ export interface CleanupReport {
73
+ stoppedAt: number;
74
+ closedTabs: TabId[];
75
+ returnedTabs: {
76
+ tabId: TabId;
77
+ ok: boolean;
78
+ detail?: string;
79
+ }[];
80
+ orphanLocks: string[];
81
+ errors: string[];
82
+ }
83
+ export interface HumanHelpHandler {
84
+ requestHelp(request: HumanHelpRequest): Promise<HumanHelpResult>;
85
+ }
86
+ export interface BrowserBackend {
87
+ readonly name: string;
88
+ readonly capabilities: Partial<Record<BackendCapability, boolean>>;
89
+ startSession(input: StartSessionInput): Promise<BrowserSession>;
90
+ stopSession(sessionId: SessionId): Promise<CleanupReport>;
91
+ /** One atomic observation (PRD §12). */
92
+ observe(sessionId: SessionId): Promise<BrowserSnapshot>;
93
+ /** Runtime-owned navigation: initial URL, recovery, or a validated link. */
94
+ navigate(sessionId: SessionId, url: string): Promise<ActionOutcome>;
95
+ /** Freshness, visibility, enabled, geometry and occlusion checks (PRD §23, §24). */
96
+ preflight(sessionId: SessionId, action: TypedAction): Promise<PreflightResult>;
97
+ /** Execute a typed action. Model output never reaches this layer. */
98
+ execute(sessionId: SessionId, action: TypedAction): Promise<ActionOutcome>;
99
+ listTabs(sessionId: SessionId): Promise<TabInfo[]>;
100
+ switchTab(sessionId: SessionId, tabId: TabId): Promise<void>;
101
+ /** Optional read-only diagnostics (PRD §40). */
102
+ getDiagnostics?(sessionId: SessionId): Promise<SnapshotDiagnostics>;
103
+ /** Screenshot policy: off by default, on failure or visual fallback (PRD §43). */
104
+ screenshot?(sessionId: SessionId, reason: string): Promise<ScreenshotResult>;
105
+ /** Bridge to the human; the runtime decides when to use it (PRD §19). */
106
+ setHumanHelpHandler?(handler: HumanHelpHandler): void;
107
+ }
108
+ /** Helper for backends that legitimately cannot perform an operation. */
109
+ export declare class BackendNotSupportedError extends Error {
110
+ readonly capability: BackendCapability;
111
+ constructor(capability: BackendCapability);
112
+ }
113
+ export declare const isSupported: (backend: Pick<BrowserBackend, "capabilities">, capability: BackendCapability) => boolean;
114
+ export declare const assertSupported: (backend: Pick<BrowserBackend, "capabilities" | "name">, capability: BackendCapability) => void;
115
+ /** Narrowing helper for callers that already hold a RuntimeError. */
116
+ export type BackendFailure = {
117
+ error: RuntimeError;
118
+ code: FailureClass;
119
+ };
120
+ //# sourceMappingURL=interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAEV,aAAa,EACb,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,KAAK,EACL,SAAS,EACT,mBAAmB,EACnB,KAAK,EACL,OAAO,EACP,WAAW,EACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE/E,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,SAA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AAC;AAExD,eAAO,MAAM,eAAe,GAC1B,SAAS,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAAC,EACtD,YAAY,iBAAiB,KAC5B,IAEF,CAAC;AAEF,qEAAqE;AACrE,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Browser backend abstraction (PRD §8.2, §48).
3
+ *
4
+ * The orchestrator routes only operations the backend advertises. Backends own
5
+ * browser mechanics; they never make decisions and never see model output
6
+ * directly — they receive typed actions only.
7
+ */
8
+ /** Helper for backends that legitimately cannot perform an operation. */
9
+ export class BackendNotSupportedError extends Error {
10
+ capability;
11
+ constructor(capability) {
12
+ super(`backend does not support "${capability}"`);
13
+ this.name = "BackendNotSupportedError";
14
+ this.capability = capability;
15
+ }
16
+ }
17
+ export const isSupported = (backend, capability) => backend.capabilities[capability] === true;
18
+ export const assertSupported = (backend, capability) => {
19
+ if (!isSupported(backend, capability))
20
+ throw new BackendNotSupportedError(capability);
21
+ };
22
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.js","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA6IH,yEAAyE;AACzE,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IACxC,UAAU,CAAoB;IACvC,YAAY,UAA6B;QACvC,KAAK,CAAC,6BAA6B,UAAU,GAAG,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,OAA6C,EAC7C,UAA6B,EACpB,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;AAExD,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,OAAsD,EACtD,UAA6B,EACvB,EAAE;IACR,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,UAAU,CAAC;QAAE,MAAM,IAAI,wBAAwB,CAAC,UAAU,CAAC,CAAC;AACxF,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Backend registry (PRD §8.2, §48).
3
+ *
4
+ * The runtime resolves a backend by name at session start. Factories are
5
+ * registered by the SDK/CLI, never by the core engine, so new backends
6
+ * (Chrome extension, remote workers) plug in without touching orchestration.
7
+ */
8
+ import type { BrowserBackend } from "./interface.ts";
9
+ export interface BackendFactory {
10
+ readonly name: string;
11
+ create(config?: Record<string, unknown>): BrowserBackend;
12
+ }
13
+ export declare class BackendRegistry {
14
+ #private;
15
+ register(factory: BackendFactory): void;
16
+ has(name: string): boolean;
17
+ list(): string[];
18
+ create(name: string, config?: Record<string, unknown>): BrowserBackend;
19
+ }
20
+ export declare const defaultRegistry: () => BackendRegistry;
21
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,CAAC;CAC1D;AAED,qBAAa,eAAe;;IAG1B,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAIvC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI1B,IAAI,IAAI,MAAM,EAAE;IAIhB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc;CASvE;AAED,eAAO,MAAM,eAAe,QAAO,eAAwC,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Backend registry (PRD §8.2, §48).
3
+ *
4
+ * The runtime resolves a backend by name at session start. Factories are
5
+ * registered by the SDK/CLI, never by the core engine, so new backends
6
+ * (Chrome extension, remote workers) plug in without touching orchestration.
7
+ */
8
+ export class BackendRegistry {
9
+ #factories = new Map();
10
+ register(factory) {
11
+ this.#factories.set(factory.name, factory);
12
+ }
13
+ has(name) {
14
+ return this.#factories.has(name);
15
+ }
16
+ list() {
17
+ return [...this.#factories.keys()].sort();
18
+ }
19
+ create(name, config) {
20
+ const factory = this.#factories.get(name);
21
+ if (!factory) {
22
+ throw new Error(`unknown browser backend "${name}". Registered: ${this.list().join(", ") || "(none)"}`);
23
+ }
24
+ return factory.create(config);
25
+ }
26
+ }
27
+ export const defaultRegistry = () => new BackendRegistry();
28
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,MAAM,OAAO,eAAe;IAC1B,UAAU,GAAG,IAAI,GAAG,EAA0B,CAAC;IAE/C,QAAQ,CAAC,OAAuB;QAC9B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,GAAG,CAAC,IAAY;QACd,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,IAAI;QACF,OAAO,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,IAAY,EAAE,MAAgC;QACnD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CACb,4BAA4B,IAAI,kBAAkB,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,EAAE,CACvF,CAAC;QACJ,CAAC;QACD,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,GAAoB,EAAE,CAAC,IAAI,eAAe,EAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@mlola/browser-backend",
3
+ "version": "0.1.0",
4
+ "description": "BrowserBackend interface, capability negotiation and backend registry.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "development": "./src/index.ts",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "LICENSE",
19
+ "README.md"
20
+ ],
21
+ "sideEffects": false,
22
+ "engines": {
23
+ "node": ">=22.18"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/mlolahq/browser-runtime.git"
28
+ },
29
+ "homepage": "https://mlola.com/browser-runtime",
30
+ "bugs": {
31
+ "url": "https://github.com/mlolahq/browser-runtime.git/issues"
32
+ },
33
+ "keywords": [
34
+ "browser-automation",
35
+ "browser-agent",
36
+ "runtime",
37
+ "playwright",
38
+ "agent",
39
+ "jev",
40
+ "llm",
41
+ "automation"
42
+ ],
43
+ "scripts": {
44
+ "build": "tsc -b"
45
+ },
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "dependencies": {
50
+ "@mlola/browser-protocol": "0.1.0"
51
+ }
52
+ }