@mlola/browser-protocol 0.1.2 → 0.2.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.
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Daemon ↔ extension bridge protocol (PRD §47, §59, §60).
3
+ *
4
+ * The extension owns browser-local behaviour only: tab/window management, the
5
+ * page observation bridge, interaction, borrow/return and screenshots. All
6
+ * task logic, policy and model calls stay in the daemon — the extension never
7
+ * talks to a model and never decides anything.
8
+ *
9
+ * Transport: a WebSocket from the extension's service worker to the daemon
10
+ * (`/extension`), authenticated with the same local token as the HTTP API.
11
+ * Messages are request/response pairs plus one-way events; every payload that
12
+ * crosses this boundary is validated by the daemon before it is trusted.
13
+ */
14
+ import type { BrowserSnapshot, TabInfo, TypedAction } from "./index.ts";
15
+ import type { FailureClass } from "./errors.ts";
16
+ export declare const BRIDGE_PROTOCOL_VERSION: "1.1";
17
+ export interface BridgeHello {
18
+ type: "hello";
19
+ protocol: string;
20
+ extensionVersion: string;
21
+ browser: {
22
+ name: string;
23
+ version: string;
24
+ };
25
+ capabilities: ExtensionCapabilities;
26
+ }
27
+ export interface BridgePong {
28
+ type: "pong";
29
+ at: number;
30
+ }
31
+ export interface BridgeResultMessage {
32
+ type: "result";
33
+ requestId: string;
34
+ ok: boolean;
35
+ data?: unknown;
36
+ error?: {
37
+ code: FailureClass | "BRIDGE_TIMEOUT";
38
+ message: string;
39
+ detail?: string;
40
+ };
41
+ }
42
+ /** Browser-local events the daemon wants to know about without asking. */
43
+ export interface BridgeEventMessage {
44
+ type: "event";
45
+ event: "tab_created" | "tab_closed" | "tab_moved" | "tab_updated" | "window_closed" | "dialog_suppressed";
46
+ tabId?: string;
47
+ detail?: string;
48
+ at: number;
49
+ }
50
+ export type ExtensionToDaemonMessage = BridgeHello | BridgePong | BridgeResultMessage | BridgeEventMessage;
51
+ export interface BridgePing {
52
+ type: "ping";
53
+ }
54
+ export interface BridgeRequest {
55
+ type: "observe" | "preflight" | "execute" | "tabs.list" | "tabs.borrow" | "tabs.return" | "screenshot" | "session.start";
56
+ requestId: string;
57
+ }
58
+ export interface BridgeObserveRequest extends BridgeRequest {
59
+ type: "observe";
60
+ }
61
+ export interface BridgePreflightRequest extends BridgeRequest {
62
+ type: "preflight";
63
+ action: TypedAction;
64
+ /** Structural identity recorded at observation time (the extension cannot
65
+ * resolve a node id without knowing what it is looking for). */
66
+ tag?: string;
67
+ role?: string;
68
+ }
69
+ export interface BridgeExecuteRequest extends BridgeRequest {
70
+ type: "execute";
71
+ action: TypedAction;
72
+ /** Upload bytes, supplied by the daemon (the extension has no file access). */
73
+ uploadFile?: {
74
+ name: string;
75
+ type: string;
76
+ base64: string;
77
+ };
78
+ }
79
+ export interface BridgeTabsListRequest extends BridgeRequest {
80
+ type: "tabs.list";
81
+ scope: "agent" | "user" | "all";
82
+ }
83
+ export interface BridgeBorrowRequest extends BridgeRequest {
84
+ type: "tabs.borrow";
85
+ tabId: string;
86
+ }
87
+ export interface BridgeReturnRequest extends BridgeRequest {
88
+ type: "tabs.return";
89
+ tabId: string;
90
+ }
91
+ export interface BridgeScreenshotRequest extends BridgeRequest {
92
+ type: "screenshot";
93
+ }
94
+ export interface BridgeSessionStartRequest extends BridgeRequest {
95
+ type: "session.start";
96
+ /** Create an isolated Agent Window (grouped and marked) for this session. */
97
+ agentWindow?: boolean;
98
+ }
99
+ export type DaemonToExtensionMessage = BridgePing | BridgeObserveRequest | BridgePreflightRequest | BridgeExecuteRequest | BridgeTabsListRequest | BridgeBorrowRequest | BridgeReturnRequest | BridgeScreenshotRequest | BridgeSessionStartRequest;
100
+ export declare const isExtensionMessage: (value: unknown) => value is ExtensionToDaemonMessage;
101
+ export interface ExtensionCapabilities {
102
+ /** An isolated, visibly marked window for agent-created tabs (PRD §9.1). */
103
+ agent_window: boolean;
104
+ /** Moving a user tab into the agent window and back (PRD §10). */
105
+ borrow_tabs: boolean;
106
+ /** Visible tab grouping for agent-owned tabs. */
107
+ tab_groups: boolean;
108
+ screenshot: boolean;
109
+ /** Console/network diagnostics are not available through the extension. */
110
+ diagnostics: false;
111
+ /**
112
+ * True only when the extension drives the page through the DevTools protocol.
113
+ * The content-script bridge uses synthetic DOM events, which most sites
114
+ * accept but some frameworks ignore — the runtime advertises this honestly
115
+ * instead of pretending otherwise.
116
+ */
117
+ trusted_input: boolean;
118
+ /** Native dialogs: alerts are suppressed and recorded; confirm/prompt block. */
119
+ native_dialogs: "suppress_alerts" | "full" | "none";
120
+ }
121
+ export interface BridgeObservePayload {
122
+ snapshot: BrowserSnapshot;
123
+ }
124
+ export interface BridgePreflightPayload {
125
+ ok: boolean;
126
+ code?: FailureClass;
127
+ detail?: string;
128
+ evidence?: Record<string, unknown>;
129
+ }
130
+ export interface BridgeExecutePayload {
131
+ ok: boolean;
132
+ effect: string;
133
+ detail?: string;
134
+ urlBefore?: string;
135
+ urlAfter?: string;
136
+ pageTokenBefore?: string;
137
+ pageTokenAfter?: string;
138
+ unknownEffect?: boolean;
139
+ downloadedFile?: {
140
+ path: string;
141
+ suggestedName?: string;
142
+ url?: string;
143
+ completed: boolean;
144
+ failure?: string;
145
+ };
146
+ newTabId?: string;
147
+ }
148
+ export interface BridgeTabsPayload {
149
+ tabs: TabInfo[];
150
+ }
151
+ export interface BridgeScreenshotPayload {
152
+ dataUrl: string;
153
+ width: number;
154
+ height: number;
155
+ }
156
+ //# sourceMappingURL=bridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,uBAAuB,EAAG,KAAc,CAAC;AAItD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,C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CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB"}
package/dist/bridge.js ADDED
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Daemon ↔ extension bridge protocol (PRD §47, §59, §60).
3
+ *
4
+ * The extension owns browser-local behaviour only: tab/window management, the
5
+ * page observation bridge, interaction, borrow/return and screenshots. All
6
+ * task logic, policy and model calls stay in the daemon — the extension never
7
+ * talks to a model and never decides anything.
8
+ *
9
+ * Transport: a WebSocket from the extension's service worker to the daemon
10
+ * (`/extension`), authenticated with the same local token as the HTTP API.
11
+ * Messages are request/response pairs plus one-way events; every payload that
12
+ * crosses this boundary is validated by the daemon before it is trusted.
13
+ */
14
+ export const BRIDGE_PROTOCOL_VERSION = "1.1";
15
+ export const isExtensionMessage = (value) => {
16
+ if (typeof value !== "object" || value === null)
17
+ return false;
18
+ const type = value.type;
19
+ return type === "hello" || type === "pong" || type === "result" || type === "event";
20
+ };
21
+ //# sourceMappingURL=bridge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge.js","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAc,CAAC;AAuGtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAqC,EAAE;IACtF,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC9D,MAAM,IAAI,GAAI,KAA4B,CAAC,IAAI,CAAC;IAChD,OAAO,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,OAAO,CAAC;AACtF,CAAC,CAAC"}
@@ -4,8 +4,8 @@
4
4
  * Daemon ↔ SDK ↔ browser backend must agree explicitly. Unsupported features
5
5
  * fail loudly; they are never silently emulated with unsafe substitutes.
6
6
  */
7
- export declare const PROTOCOL_VERSION: "1.0";
8
- export declare const BACKEND_CAPABILITIES: readonly ["observe", "click", "type", "select", "scroll", "press", "history", "tabs", "open_tab", "close_tab", "borrow", "return_tab", "human_help", "download", "upload", "console", "network", "screenshot", "canvas", "dialog_handling", "clipboard"];
7
+ export declare const PROTOCOL_VERSION: "1.1";
8
+ export declare const BACKEND_CAPABILITIES: readonly ["observe", "click", "type", "select", "scroll", "press", "history", "tabs", "open_tab", "close_tab", "borrow", "return_tab", "human_help", "download", "upload", "console", "network", "screenshot", "canvas", "dialog_handling", "clipboard", "trusted_input", "tab_groups"];
9
9
  export type BackendCapability = (typeof BACKEND_CAPABILITIES)[number];
10
10
  export interface CapabilitySet {
11
11
  protocol: typeof PROTOCOL_VERSION;
@@ -19,6 +19,8 @@ export interface CapabilitySet {
19
19
  canvas_click: boolean;
20
20
  approvals: boolean;
21
21
  human_takeover: boolean;
22
+ /** The daemon can host the browser-extension bridge (PRD §59). */
23
+ protocol_bridge: boolean;
22
24
  };
23
25
  }
24
26
  export declare const RUNTIME_CAPABILITIES: CapabilitySet["runtime"];
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,gBAAgB,EAAG,KAAc,CAAC;AAE/C,eAAO,MAAM,oBAAoB,0PAsBvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,OAAO,gBAAgB,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,2DAA2D;IAC3D,OAAO,EAAE;QACP,WAAW,EAAE,OAAO,CAAC;QACr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,OAAO,EAAE,OAAO,CAAC;QACjB,YAAY,EAAE,OAAO,CAAC;QACtB,SAAS,EAAE,OAAO,CAAC;QACnB,cAAc,EAAE,OAAO,CAAC;QACxB,kEAAkE;QAClE,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;CACH;AAED,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,SAAS,CASzD,CAAC;AAEF,qBAAa,0BAA2B,SAAQ,KAAK;IACnD,QAAQ,CAAC,UAAU,EAAE,iBAAiB,GAAG,MAAM,CAAC;gBACpC,UAAU,EAAE,iBAAiB,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;CAQpE;AAED,eAAO,MAAM,QAAQ,GACnB,MAAM,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,EACjD,YAAY,iBAAiB,KAC5B,OAAoC,CAAC;AAExC,eAAO,MAAM,iBAAiB,GAC5B,MAAM,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,EACjD,YAAY,iBAAiB,KAC5B,IAEF,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * Daemon ↔ SDK ↔ browser backend must agree explicitly. Unsupported features
5
5
  * fail loudly; they are never silently emulated with unsafe substitutes.
6
6
  */
7
- export const PROTOCOL_VERSION = "1.0";
7
+ export const PROTOCOL_VERSION = "1.1";
8
8
  export const BACKEND_CAPABILITIES = [
9
9
  "observe",
10
10
  "click",
@@ -27,9 +27,12 @@ export const BACKEND_CAPABILITIES = [
27
27
  "canvas",
28
28
  "dialog_handling",
29
29
  "clipboard",
30
+ "trusted_input",
31
+ "tab_groups",
30
32
  ];
31
33
  export const RUNTIME_CAPABILITIES = {
32
34
  borrow_tabs: true,
35
+ protocol_bridge: true,
33
36
  request_help: true,
34
37
  downloads: true,
35
38
  uploads: true,
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA;;;;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,CAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;QAAE,MAAM,IAAI,0BAA0B,CAAC,UAAU,CAAC,CAAC;AACpF,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  export * from "./ids.ts";
11
11
  export * from "./provenance.ts";
12
12
  export * from "./capabilities.ts";
13
+ export * from "./bridge.ts";
13
14
  export * from "./errors.ts";
14
15
  export * from "./budget.ts";
15
16
  export * from "./memory.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -10,6 +10,7 @@
10
10
  export * from "./ids.js";
11
11
  export * from "./provenance.js";
12
12
  export * from "./capabilities.js";
13
+ export * from "./bridge.js";
13
14
  export * from "./errors.js";
14
15
  export * from "./budget.js";
15
16
  export * from "./memory.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlola/browser-protocol",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "description": "Typed action protocol, observation, decision, verification, capability and event schemas.",
5
5
  "type": "module",
6
6
  "license": "MIT",