@liyuera/dsh-chrome-browser 0.2.0 → 0.4.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/README.md +270 -20
- package/extension/manifest.json +4 -3
- package/extension/service-worker.js +721 -68
- package/lib/activity.d.ts +65 -0
- package/lib/activity.d.ts.map +1 -0
- package/lib/activity.js +111 -0
- package/lib/activity.js.map +1 -0
- package/lib/backend.d.ts +193 -11
- package/lib/backend.d.ts.map +1 -1
- package/lib/backend.js +344 -39
- package/lib/backend.js.map +1 -1
- package/lib/cdp.d.ts +7 -1
- package/lib/cdp.d.ts.map +1 -1
- package/lib/cdp.js +17 -1
- package/lib/cdp.js.map +1 -1
- package/lib/chrome.d.ts +8 -0
- package/lib/chrome.d.ts.map +1 -1
- package/lib/chrome.js +20 -0
- package/lib/chrome.js.map +1 -1
- package/lib/client/BrowserActivity.d.ts +22 -0
- package/lib/client/BrowserActivity.d.ts.map +1 -0
- package/lib/client/BrowserActivity.js +100 -0
- package/lib/client/BrowserActivity.js.map +1 -0
- package/lib/client/activity.d.ts +27 -0
- package/lib/client/activity.d.ts.map +1 -0
- package/lib/client/activity.js +57 -0
- package/lib/client/activity.js.map +1 -0
- package/lib/client/index.d.ts +4 -6
- package/lib/client/index.d.ts.map +1 -1
- package/lib/client/index.js +13 -19
- package/lib/client/index.js.map +1 -1
- package/lib/client/tab-catalog.d.ts +11 -1
- package/lib/client/tab-catalog.d.ts.map +1 -1
- package/lib/client/tab-catalog.js.map +1 -1
- package/lib/client/tab-source.d.ts +8 -2
- package/lib/client/tab-source.d.ts.map +1 -1
- package/lib/client/tab-source.js.map +1 -1
- package/lib/client.js +177 -13
- package/lib/client.js.map +1 -1
- package/lib/console-events.d.ts +32 -0
- package/lib/console-events.d.ts.map +1 -0
- package/lib/console-events.js +106 -0
- package/lib/console-events.js.map +1 -0
- package/lib/console-log.d.ts +107 -0
- package/lib/console-log.d.ts.map +1 -0
- package/lib/console-log.js +158 -0
- package/lib/console-log.js.map +1 -0
- package/lib/expressions.d.ts +71 -2
- package/lib/expressions.d.ts.map +1 -1
- package/lib/expressions.js +277 -14
- package/lib/expressions.js.map +1 -1
- package/lib/extension-package.d.ts +33 -0
- package/lib/extension-package.d.ts.map +1 -0
- package/lib/extension-package.js +133 -0
- package/lib/extension-package.js.map +1 -0
- package/lib/help.d.ts +89 -0
- package/lib/help.d.ts.map +1 -0
- package/lib/help.js +94 -0
- package/lib/help.js.map +1 -0
- package/lib/index.d.ts +4 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +30 -9
- package/lib/index.js.map +1 -1
- package/lib/presentation.d.ts +130 -0
- package/lib/presentation.d.ts.map +1 -0
- package/lib/presentation.js +361 -0
- package/lib/presentation.js.map +1 -0
- package/lib/routes.d.ts +3 -8
- package/lib/routes.d.ts.map +1 -1
- package/lib/routes.js +38 -99
- package/lib/routes.js.map +1 -1
- package/lib/skill.d.ts +50 -0
- package/lib/skill.d.ts.map +1 -0
- package/lib/skill.js +163 -0
- package/lib/skill.js.map +1 -0
- package/lib/text.d.ts +21 -0
- package/lib/text.d.ts.map +1 -1
- package/lib/text.js +18 -0
- package/lib/text.js.map +1 -1
- package/lib/tools.d.ts +22 -4
- package/lib/tools.d.ts.map +1 -1
- package/lib/tools.js +467 -75
- package/lib/tools.js.map +1 -1
- package/lib/ws.d.ts +9 -2
- package/lib/ws.d.ts.map +1 -1
- package/lib/ws.js +49 -19
- package/lib/ws.js.map +1 -1
- package/package.json +4 -3
- package/lib/bindings.d.ts +0 -23
- package/lib/bindings.d.ts.map +0 -1
- package/lib/bindings.js +0 -49
- package/lib/bindings.js.map +0 -1
- package/lib/client/TabPicker.d.ts +0 -54
- package/lib/client/TabPicker.d.ts.map +0 -1
- package/lib/client/TabPicker.js +0 -329
- package/lib/client/TabPicker.js.map +0 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the plugin is doing right now, for the in-page status strip.
|
|
3
|
+
*
|
|
4
|
+
* The host half is the only place that knows a call is in flight, so it records
|
|
5
|
+
* every tool execution here and serves the snapshot over its own route; the
|
|
6
|
+
* browser half polls that route and renders a strip only while something is
|
|
7
|
+
* running. Nothing is persisted, and nothing crosses into the model's request.
|
|
8
|
+
* @module @liyuera/dsh-chrome-browser/activity
|
|
9
|
+
*/
|
|
10
|
+
import type { ToolDefinition } from '@deepseek-ai/dsh-tools';
|
|
11
|
+
/** What one in-flight (or most recent) call looks like to the UI. */
|
|
12
|
+
export interface ActivitySnapshot {
|
|
13
|
+
/** Whether a call is running right now. */
|
|
14
|
+
readonly active: boolean;
|
|
15
|
+
/** Name of the running call, when one is running. */
|
|
16
|
+
readonly tool?: string;
|
|
17
|
+
/** Tab the running call named, when it named one. */
|
|
18
|
+
readonly tabId?: string;
|
|
19
|
+
/** Epoch milliseconds the running call started. */
|
|
20
|
+
readonly startedAt?: number;
|
|
21
|
+
/** Name of the most recently finished call, when one has finished. */
|
|
22
|
+
readonly lastTool?: string;
|
|
23
|
+
/** Epoch milliseconds the most recent call finished. */
|
|
24
|
+
readonly lastAt?: number;
|
|
25
|
+
}
|
|
26
|
+
/** Route-facing view of one snapshot. */
|
|
27
|
+
export type ActivityAnswer = Record<string, string | number | boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* In-flight and last-finished browser calls, keyed by session when the caller
|
|
30
|
+
* has one. A session that has never called anything reports inactive, which is
|
|
31
|
+
* what the strip needs: absence of a call, not absence of a plugin.
|
|
32
|
+
*/
|
|
33
|
+
export declare class ActivityTracker {
|
|
34
|
+
private readonly running;
|
|
35
|
+
private readonly finished;
|
|
36
|
+
/** Session key for a caller with no session identity. */
|
|
37
|
+
private static readonly ANONYMOUS;
|
|
38
|
+
/**
|
|
39
|
+
* Record one call as started.
|
|
40
|
+
* @param tool - the tool name.
|
|
41
|
+
* @param tabId - the tab the call named, when it named one.
|
|
42
|
+
* @param sessionId - the calling session, when the execution carried one.
|
|
43
|
+
* @returns the disposer that records the call as finished; idempotent.
|
|
44
|
+
*/
|
|
45
|
+
begin(tool: string, tabId: string | undefined, sessionId: string | undefined): () => void;
|
|
46
|
+
/**
|
|
47
|
+
* The current state for one session.
|
|
48
|
+
* @param sessionId - the session to report on; omit for the most recent call in any session.
|
|
49
|
+
* @returns the snapshot the strip renders from.
|
|
50
|
+
*/
|
|
51
|
+
snapshot(sessionId?: string): ActivitySnapshot;
|
|
52
|
+
/** Drop every record; the plugin calls this on unload. */
|
|
53
|
+
clear(): void;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Wrap one tool definition so its execution is visible to the status strip.
|
|
57
|
+
*
|
|
58
|
+
* Every other member is carried over untouched: this adds observation, it does
|
|
59
|
+
* not change what the tool declares or returns.
|
|
60
|
+
* @param definition - the registered definition.
|
|
61
|
+
* @param activity - the tracker the browser half reads.
|
|
62
|
+
* @returns an equivalent definition that reports the call.
|
|
63
|
+
*/
|
|
64
|
+
export declare function withActivity(definition: ToolDefinition, activity: ActivityTracker): ToolDefinition;
|
|
65
|
+
//# sourceMappingURL=activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../src/activity.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAE5D,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,2CAA2C;IAC3C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,qDAAqD;IACrD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,mDAAmD;IACnD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB;AAUD,yCAAyC;AACzC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;AAEtE;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkD;IAE3E,yDAAyD;IACzD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAK;IAEtC;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,IAAI;IAkBzF;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,gBAAgB;IAoB9C,0DAA0D;IAC1D,KAAK,IAAI,IAAI;CAId;AAeD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,GAAG,cAAc,CAalG"}
|
package/lib/activity.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the plugin is doing right now, for the in-page status strip.
|
|
3
|
+
*
|
|
4
|
+
* The host half is the only place that knows a call is in flight, so it records
|
|
5
|
+
* every tool execution here and serves the snapshot over its own route; the
|
|
6
|
+
* browser half polls that route and renders a strip only while something is
|
|
7
|
+
* running. Nothing is persisted, and nothing crosses into the model's request.
|
|
8
|
+
* @module @liyuera/dsh-chrome-browser/activity
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* In-flight and last-finished browser calls, keyed by session when the caller
|
|
12
|
+
* has one. A session that has never called anything reports inactive, which is
|
|
13
|
+
* what the strip needs: absence of a call, not absence of a plugin.
|
|
14
|
+
*/
|
|
15
|
+
export class ActivityTracker {
|
|
16
|
+
running = [];
|
|
17
|
+
finished = new Map();
|
|
18
|
+
/** Session key for a caller with no session identity. */
|
|
19
|
+
static ANONYMOUS = '';
|
|
20
|
+
/**
|
|
21
|
+
* Record one call as started.
|
|
22
|
+
* @param tool - the tool name.
|
|
23
|
+
* @param tabId - the tab the call named, when it named one.
|
|
24
|
+
* @param sessionId - the calling session, when the execution carried one.
|
|
25
|
+
* @returns the disposer that records the call as finished; idempotent.
|
|
26
|
+
*/
|
|
27
|
+
begin(tool, tabId, sessionId) {
|
|
28
|
+
const entry = {
|
|
29
|
+
tool,
|
|
30
|
+
startedAt: Date.now(),
|
|
31
|
+
...(tabId === undefined ? {} : { tabId }),
|
|
32
|
+
...(sessionId === undefined ? {} : { sessionId }),
|
|
33
|
+
};
|
|
34
|
+
this.running.push(entry);
|
|
35
|
+
let ended = false;
|
|
36
|
+
return () => {
|
|
37
|
+
if (ended)
|
|
38
|
+
return;
|
|
39
|
+
ended = true;
|
|
40
|
+
const at = this.running.indexOf(entry);
|
|
41
|
+
if (at >= 0)
|
|
42
|
+
this.running.splice(at, 1);
|
|
43
|
+
this.finished.set(sessionId ?? ActivityTracker.ANONYMOUS, { tool, at: Date.now() });
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The current state for one session.
|
|
48
|
+
* @param sessionId - the session to report on; omit for the most recent call in any session.
|
|
49
|
+
* @returns the snapshot the strip renders from.
|
|
50
|
+
*/
|
|
51
|
+
snapshot(sessionId) {
|
|
52
|
+
const key = sessionId ?? ActivityTracker.ANONYMOUS;
|
|
53
|
+
// A call that named no session belongs to whoever is asking: the plugin has
|
|
54
|
+
// one browser, so an unidentified call is still this caller's call.
|
|
55
|
+
const running = [...this.running].reverse()
|
|
56
|
+
.find(entry => entry.sessionId === undefined || sessionId === undefined || entry.sessionId === key);
|
|
57
|
+
const last = this.finished.get(key);
|
|
58
|
+
return {
|
|
59
|
+
active: running !== undefined,
|
|
60
|
+
...(running === undefined
|
|
61
|
+
? {}
|
|
62
|
+
: {
|
|
63
|
+
tool: running.tool,
|
|
64
|
+
startedAt: running.startedAt,
|
|
65
|
+
...(running.tabId === undefined ? {} : { tabId: running.tabId }),
|
|
66
|
+
}),
|
|
67
|
+
...(last === undefined ? {} : { lastTool: last.tool, lastAt: last.at }),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/** Drop every record; the plugin calls this on unload. */
|
|
71
|
+
clear() {
|
|
72
|
+
this.running.length = 0;
|
|
73
|
+
this.finished.clear();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/** The tab a call named, as the tracker reads it from frozen arguments. */
|
|
77
|
+
function tabIdOf(args) {
|
|
78
|
+
const value = args?.tabId;
|
|
79
|
+
return typeof value === 'string' && value !== '' ? value : undefined;
|
|
80
|
+
}
|
|
81
|
+
/** The executing session id, as the tracker reads it from the execution. */
|
|
82
|
+
function sessionIdOf(exec) {
|
|
83
|
+
const session = exec?.agent?.session;
|
|
84
|
+
const id = session?.id;
|
|
85
|
+
return typeof id === 'string' && id !== '' ? id : undefined;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Wrap one tool definition so its execution is visible to the status strip.
|
|
89
|
+
*
|
|
90
|
+
* Every other member is carried over untouched: this adds observation, it does
|
|
91
|
+
* not change what the tool declares or returns.
|
|
92
|
+
* @param definition - the registered definition.
|
|
93
|
+
* @param activity - the tracker the browser half reads.
|
|
94
|
+
* @returns an equivalent definition that reports the call.
|
|
95
|
+
*/
|
|
96
|
+
export function withActivity(definition, activity) {
|
|
97
|
+
const run = definition.execute;
|
|
98
|
+
return {
|
|
99
|
+
...definition,
|
|
100
|
+
async execute(args, exec) {
|
|
101
|
+
const end = activity.begin(definition.name, tabIdOf(args), sessionIdOf(exec));
|
|
102
|
+
try {
|
|
103
|
+
return await run(args, exec);
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
end();
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110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KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAA;AACtE,CAAC;AAED,4EAA4E;AAC5E,SAAS,WAAW,CAAC,IAAa;IAChC,MAAM,OAAO,GAAI,IAAsE,EAAE,KAAK,EAAE,OAAO,CAAA;IACvG,MAAM,EAAE,GAAG,OAAO,EAAE,EAAE,CAAA;IACtB,OAAO,OAAO,EAAE,KAAK,QAAQ,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;AAC7D,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAC,UAA0B,EAAE,QAAyB;IAChF,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,CAAA;IAC9B,OAAO;QACL,GAAG,UAAU;QACb,KAAK,CAAC,OAAO,CAAC,IAAa,EAAE,IAAa;YACxC,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAA;YAC7E,IAAI,CAAC;gBACH,OAAO,MAAM,GAAG,CAAC,IAAI,EAAE,IAAa,CAAC,CAAA;YACvC,CAAC;oBAAS,CAAC;gBACT,GAAG,EAAE,CAAA;YACP,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC"}
|
package/lib/backend.d.ts
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* @module @liyuera/dsh-chrome-browser/backend
|
|
10
10
|
*/
|
|
11
11
|
import type { Duplex } from 'node:stream';
|
|
12
|
+
import type { CapturedMessage } from './console-events.ts';
|
|
13
|
+
import type { WaitState } from './expressions.ts';
|
|
12
14
|
import { Chrome } from './chrome.ts';
|
|
13
15
|
import type { ResolvedChromeConfig } from './chrome.ts';
|
|
14
16
|
/** One tab as tools and the picker see it. */
|
|
@@ -26,6 +28,89 @@ export interface BackendRead {
|
|
|
26
28
|
text: string;
|
|
27
29
|
html: string;
|
|
28
30
|
}
|
|
31
|
+
/** One interactive element, as the page reports it. */
|
|
32
|
+
export interface InteractiveElement {
|
|
33
|
+
/** Selector that addresses this element from the document root. */
|
|
34
|
+
selector: string;
|
|
35
|
+
/** ARIA role, or the tag name when the element declares none. */
|
|
36
|
+
role: string;
|
|
37
|
+
/** Label, text, value or placeholder — whichever the element offers first. */
|
|
38
|
+
name: string;
|
|
39
|
+
/** Whether the element's centre lies inside the viewport. */
|
|
40
|
+
inView: boolean;
|
|
41
|
+
/** Natively disabled, or marked `aria-disabled="true"`. */
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
/** Another element sits at the element's centre, so a real click would miss it. */
|
|
44
|
+
covered: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** What one page's interactive elements are, and how many were left out. */
|
|
47
|
+
export interface BackendInventory {
|
|
48
|
+
/** Page title when the listing was taken. */
|
|
49
|
+
title: string;
|
|
50
|
+
/** Page URL when the listing was taken. */
|
|
51
|
+
url: string;
|
|
52
|
+
/** Elements the inventory selector matched, before the cap. */
|
|
53
|
+
matched: number;
|
|
54
|
+
/** The reported elements, in document order. */
|
|
55
|
+
items: InteractiveElement[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* What one click actually did. `clicked` counts elements that received a
|
|
59
|
+
* dispatched click event — never merely elements the selector matched, which is
|
|
60
|
+
* the distinction a caller needs to tell "the page ignored it" from "nothing
|
|
61
|
+
* was there". The remaining counters explain clicks that were refused or that a
|
|
62
|
+
* real pointer could not have delivered.
|
|
63
|
+
*/
|
|
64
|
+
export interface ClickOutcome {
|
|
65
|
+
/** Elements the selector matched. */
|
|
66
|
+
matched: number;
|
|
67
|
+
/** Elements that received a dispatched click event. */
|
|
68
|
+
clicked: number;
|
|
69
|
+
/** Matched elements whose native `disabled` state suppresses the click event. */
|
|
70
|
+
disabled: number;
|
|
71
|
+
/** Clicked elements with no layout box, or `display:none` / `visibility:hidden`. */
|
|
72
|
+
invisible: number;
|
|
73
|
+
/** Clicked elements whose centre lies outside the viewport. */
|
|
74
|
+
offscreen: number;
|
|
75
|
+
/** Clicked elements where a hit test at their centre lands on another element. */
|
|
76
|
+
covered: number;
|
|
77
|
+
/** Clicked elements carrying `aria-disabled="true"`, which dispatches but asks consumers to ignore it. */
|
|
78
|
+
ariaDisabled: number;
|
|
79
|
+
}
|
|
80
|
+
/** Where captured console messages go: the host's bounded per-tab buffer. */
|
|
81
|
+
export type ConsoleSink = (tabId: string, message: CapturedMessage) => void;
|
|
82
|
+
/** What one key press did. */
|
|
83
|
+
export interface PressOutcome {
|
|
84
|
+
/** Whether a target existed: the selector's match, or whatever had focus. */
|
|
85
|
+
found: boolean;
|
|
86
|
+
/** Whether the key events were dispatched. */
|
|
87
|
+
pressed: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the owning form was submitted explicitly. Synthetic key events
|
|
90
|
+
* trigger no browser default action, so Enter would otherwise do nothing.
|
|
91
|
+
*/
|
|
92
|
+
submitted: boolean;
|
|
93
|
+
}
|
|
94
|
+
/** What one `<select>` assignment did. */
|
|
95
|
+
export interface SelectOutcome {
|
|
96
|
+
/** Elements the selector matched. */
|
|
97
|
+
matched: number;
|
|
98
|
+
/** Whether the value actually changed; false means the control was left alone. */
|
|
99
|
+
changed: boolean;
|
|
100
|
+
/** The value in effect after the attempt. */
|
|
101
|
+
value: string;
|
|
102
|
+
/** Values the control offered, so a failed match can name them. */
|
|
103
|
+
options: string[];
|
|
104
|
+
/** Why the control could not be selected, when it is not a `<select>`. */
|
|
105
|
+
reason?: string;
|
|
106
|
+
}
|
|
107
|
+
/** What one hover did. */
|
|
108
|
+
export interface HoverOutcome {
|
|
109
|
+
/** Elements the selector matched. */
|
|
110
|
+
matched: number;
|
|
111
|
+
/** Whether the first match received the hover events. */
|
|
112
|
+
hovered: boolean;
|
|
113
|
+
}
|
|
29
114
|
/** The face every chrome_* tool speaks to. */
|
|
30
115
|
export interface BrowserBackend {
|
|
31
116
|
/** Bring the browser online; throws a user-actionable error when impossible. */
|
|
@@ -34,18 +119,71 @@ export interface BrowserBackend {
|
|
|
34
119
|
activeTabId(): Promise<string>;
|
|
35
120
|
listTabs(): Promise<BackendTab[]>;
|
|
36
121
|
openTab(url: string): Promise<BackendTab>;
|
|
122
|
+
/** Close one tab. Closing the last tab of a window closes that window. */
|
|
123
|
+
closeTab(tabId: string): Promise<void>;
|
|
37
124
|
read(tabId: string, includeHtml: boolean): Promise<BackendRead>;
|
|
125
|
+
/** List one tab's interactive elements with what a reader must know before acting on them. */
|
|
126
|
+
inventory(tabId: string): Promise<BackendInventory>;
|
|
38
127
|
navigate(tabId: string, url: string, waitLoad: boolean, waitLoadMs: number): Promise<void>;
|
|
128
|
+
/** Wait for one tab to reach `readyState === "complete"`, or the bound to elapse. */
|
|
129
|
+
waitForLoad(tabId: string, waitLoadMs: number): Promise<void>;
|
|
39
130
|
evaluate(tabId: string, expression: string): Promise<unknown>;
|
|
40
|
-
|
|
131
|
+
/**
|
|
132
|
+
* How the most recent `evaluate` reached the page. `'main'` is the page's own
|
|
133
|
+
* world, where its JavaScript globals live. `'debugger'` is the debugger
|
|
134
|
+
* protocol, taken when the page's Content-Security-Policy forbids `eval` —
|
|
135
|
+
* same semantics, different mechanism, and it shows the debugger infobar on
|
|
136
|
+
* that tab. `chrome_eval` reports the non-default route. Undefined before the
|
|
137
|
+
* first evaluation, and on backends that have only the one route.
|
|
138
|
+
*/
|
|
139
|
+
readonly lastEvalWorld: 'main' | 'debugger' | undefined;
|
|
140
|
+
click(tabId: string, selector: string, all: boolean): Promise<ClickOutcome>;
|
|
141
|
+
/** Dispatch hover input on the first element matching the selector. */
|
|
142
|
+
hover(tabId: string, selector: string): Promise<HoverOutcome>;
|
|
143
|
+
/** Press one key on the selector's match, or on whatever currently has focus. */
|
|
144
|
+
press(tabId: string, key: string, selector?: string): Promise<PressOutcome>;
|
|
145
|
+
/** Set a `<select>`'s value. */
|
|
146
|
+
select(tabId: string, selector: string, value: string): Promise<SelectOutcome>;
|
|
147
|
+
/**
|
|
148
|
+
* Poll one element condition until it holds or the bound elapses.
|
|
149
|
+
* @returns whether it held; false means the bound passed, not that the page failed.
|
|
150
|
+
*/
|
|
151
|
+
waitFor(tabId: string, selector: string, state: WaitState, timeoutMs: number): Promise<boolean>;
|
|
41
152
|
type(tabId: string, selector: string, text: string, clear: boolean): Promise<void>;
|
|
42
153
|
screenshot(tabId: string): Promise<{
|
|
43
154
|
data: string;
|
|
44
155
|
path?: string;
|
|
45
156
|
mime?: string;
|
|
46
157
|
}>;
|
|
158
|
+
/** Begin forwarding one tab's console output to the sink; idempotent. */
|
|
159
|
+
startConsole(tabId: string): Promise<void>;
|
|
160
|
+
/** Stop forwarding one tab's console output; idempotent. */
|
|
161
|
+
stopConsole(tabId: string): Promise<void>;
|
|
47
162
|
dispose(): void;
|
|
48
163
|
}
|
|
164
|
+
/** Read a hover result from the page or the bridge. */
|
|
165
|
+
export declare function mapHover(value: unknown): HoverOutcome;
|
|
166
|
+
/** Read a press result from the page or the bridge. */
|
|
167
|
+
export declare function mapPress(value: unknown): PressOutcome;
|
|
168
|
+
/** Read a select result from the page or the bridge. */
|
|
169
|
+
export declare function mapSelect(value: unknown): SelectOutcome;
|
|
170
|
+
/**
|
|
171
|
+
* Map a click result onto {@link ClickOutcome}. A bare number is accepted as the
|
|
172
|
+
* pre-0.4 bridge's "matched and clicked" count, so a Chrome extension still
|
|
173
|
+
* loaded from an older package keeps working until it is reloaded.
|
|
174
|
+
* @param value - the evaluated page value or the bridge's reply payload.
|
|
175
|
+
* @returns the outcome, with every field defaulted.
|
|
176
|
+
*/
|
|
177
|
+
export declare function mapClickOutcome(value: unknown): ClickOutcome;
|
|
178
|
+
/**
|
|
179
|
+
* Map an inventory result from the page or the bridge onto
|
|
180
|
+
* {@link BackendInventory}. An unusable reply becomes an empty inventory rather
|
|
181
|
+
* than an error: the caller asked what it can act on, and "nothing reported" is
|
|
182
|
+
* a truthful answer for a page that would not answer.
|
|
183
|
+
* @param value - the evaluated page value or the bridge's reply payload.
|
|
184
|
+
* @returns the inventory, with unreadable entries dropped.
|
|
185
|
+
*/
|
|
186
|
+
export declare function mapInventory(value: unknown): BackendInventory;
|
|
49
187
|
/**
|
|
50
188
|
* Extension bridge backend: commands are queued, sent over the bridge
|
|
51
189
|
* WebSocket, and resolved when the extension replies. The socket is attached
|
|
@@ -53,12 +191,17 @@ export interface BrowserBackend {
|
|
|
53
191
|
*/
|
|
54
192
|
export declare class ExtensionBackend implements BrowserBackend {
|
|
55
193
|
private readonly config;
|
|
194
|
+
private readonly onConsole;
|
|
195
|
+
/** @inheritdoc BrowserBackend.lastEvalWorld */
|
|
196
|
+
lastEvalWorld: 'main' | 'debugger' | undefined;
|
|
56
197
|
/**
|
|
57
198
|
* Ops a disconnect may transparently retry on the next reconnect: they are
|
|
58
|
-
* side-effect free, so a lost result is safe to recompute.
|
|
59
|
-
* ops (open/navigate/click/type) are NEVER auto-resent — the
|
|
60
|
-
* the disconnect error and the model retries explicitly (no
|
|
61
|
-
* tabs/clicks/typing from hidden replays).
|
|
199
|
+
* side-effect free or idempotent, so a lost result is safe to recompute.
|
|
200
|
+
* Side-effectful ops (open/navigate/click/type) are NEVER auto-resent — the
|
|
201
|
+
* caller gets the disconnect error and the model retries explicitly (no
|
|
202
|
+
* duplicate tabs/clicks/typing from hidden replays). Console capture is
|
|
203
|
+
* idempotent and the extension re-arms it on reconnect, so retrying it is
|
|
204
|
+
* how a restarted service worker gets its capture back.
|
|
62
205
|
*/
|
|
63
206
|
private static readonly SAFE_RETRY_OPS;
|
|
64
207
|
/**
|
|
@@ -77,7 +220,8 @@ export declare class ExtensionBackend implements BrowserBackend {
|
|
|
77
220
|
*/
|
|
78
221
|
private readonly pending;
|
|
79
222
|
private pingTimer;
|
|
80
|
-
|
|
223
|
+
/** Where console messages from the bridge land. */
|
|
224
|
+
constructor(config: ResolvedChromeConfig, onConsole?: ConsoleSink);
|
|
81
225
|
/** The WS upgrade route calls this after a successful handshake. */
|
|
82
226
|
attach(socket: Duplex, head: Buffer): void;
|
|
83
227
|
detach(): void;
|
|
@@ -90,44 +234,82 @@ export declare class ExtensionBackend implements BrowserBackend {
|
|
|
90
234
|
listTabs(): Promise<BackendTab[]>;
|
|
91
235
|
openTab(url: string): Promise<BackendTab>;
|
|
92
236
|
read(tabId: string, includeHtml: boolean): Promise<BackendRead>;
|
|
237
|
+
inventory(tabId: string): Promise<BackendInventory>;
|
|
238
|
+
closeTab(tabId: string): Promise<void>;
|
|
93
239
|
navigate(tabId: string, url: string, waitLoad: boolean, waitLoadMs: number): Promise<void>;
|
|
240
|
+
waitForLoad(tabId: string, waitLoadMs: number): Promise<void>;
|
|
94
241
|
evaluate(tabId: string, expression: string): Promise<unknown>;
|
|
95
|
-
click(tabId: string, selector: string, all: boolean): Promise<
|
|
242
|
+
click(tabId: string, selector: string, all: boolean): Promise<ClickOutcome>;
|
|
243
|
+
hover(tabId: string, selector: string): Promise<HoverOutcome>;
|
|
244
|
+
press(tabId: string, key: string, selector?: string): Promise<PressOutcome>;
|
|
245
|
+
select(tabId: string, selector: string, value: string): Promise<SelectOutcome>;
|
|
246
|
+
waitFor(tabId: string, selector: string, state: WaitState, timeoutMs: number): Promise<boolean>;
|
|
96
247
|
type(tabId: string, selector: string, text: string, clear: boolean): Promise<void>;
|
|
97
248
|
screenshot(tabId: string): Promise<{
|
|
98
249
|
data: string;
|
|
99
250
|
path?: string;
|
|
100
251
|
mime?: string;
|
|
101
252
|
}>;
|
|
253
|
+
startConsole(tabId: string): Promise<void>;
|
|
254
|
+
stopConsole(tabId: string): Promise<void>;
|
|
102
255
|
dispose(): void;
|
|
103
256
|
private push;
|
|
104
257
|
private onFrame;
|
|
258
|
+
/**
|
|
259
|
+
* One pushed console batch. Anything unrecognized is dropped rather than
|
|
260
|
+
* throwing: this is a wire boundary, and a malformed event must not kill the
|
|
261
|
+
* connection that carries the commands.
|
|
262
|
+
*/
|
|
263
|
+
private onEventFrame;
|
|
105
264
|
private flush;
|
|
106
265
|
}
|
|
107
266
|
/** CDP backend: the Chrome class plus per-tab endpoint operations. */
|
|
108
267
|
export declare class CdpBackend implements BrowserBackend {
|
|
268
|
+
private readonly onConsole;
|
|
269
|
+
/** @inheritdoc BrowserBackend.lastEvalWorld */
|
|
270
|
+
lastEvalWorld: 'main' | 'debugger' | undefined;
|
|
109
271
|
private readonly chrome;
|
|
110
|
-
|
|
272
|
+
/**
|
|
273
|
+
* Long-lived sessions held open for console capture, one per capturing tab.
|
|
274
|
+
* Every other operation opens and closes its own session; capture cannot,
|
|
275
|
+
* because the events arrive between calls.
|
|
276
|
+
*/
|
|
277
|
+
private readonly captures;
|
|
278
|
+
constructor(chrome: Chrome, onConsole?: ConsoleSink);
|
|
111
279
|
ensure(): Promise<void>;
|
|
112
280
|
activeTabId(): Promise<string>;
|
|
113
281
|
listTabs(): Promise<BackendTab[]>;
|
|
114
282
|
openTab(url: string): Promise<BackendTab>;
|
|
115
283
|
read(tabId: string, includeHtml: boolean): Promise<BackendRead>;
|
|
284
|
+
inventory(tabId: string): Promise<BackendInventory>;
|
|
285
|
+
closeTab(tabId: string): Promise<void>;
|
|
116
286
|
navigate(tabId: string, url: string, waitLoad: boolean, waitLoadMs: number): Promise<void>;
|
|
287
|
+
waitForLoad(tabId: string, waitLoadMs: number): Promise<void>;
|
|
117
288
|
evaluate(tabId: string, expression: string): Promise<unknown>;
|
|
118
|
-
click(tabId: string, selector: string, all: boolean): Promise<
|
|
289
|
+
click(tabId: string, selector: string, all: boolean): Promise<ClickOutcome>;
|
|
290
|
+
hover(tabId: string, selector: string): Promise<HoverOutcome>;
|
|
291
|
+
press(tabId: string, key: string, selector?: string): Promise<PressOutcome>;
|
|
292
|
+
select(tabId: string, selector: string, value: string): Promise<SelectOutcome>;
|
|
293
|
+
waitFor(tabId: string, selector: string, state: WaitState, timeoutMs: number): Promise<boolean>;
|
|
119
294
|
type(tabId: string, selector: string, text: string, clear: boolean): Promise<void>;
|
|
120
295
|
screenshot(tabId: string): Promise<{
|
|
121
296
|
data: string;
|
|
122
297
|
path?: string;
|
|
123
298
|
mime?: string;
|
|
124
299
|
}>;
|
|
300
|
+
startConsole(tabId: string): Promise<void>;
|
|
301
|
+
stopConsole(tabId: string): Promise<void>;
|
|
125
302
|
dispose(): void;
|
|
126
303
|
private withTab;
|
|
127
304
|
private evaluatePage;
|
|
128
305
|
}
|
|
129
|
-
/**
|
|
130
|
-
|
|
306
|
+
/**
|
|
307
|
+
* Build the configured backend.
|
|
308
|
+
* @param config - the resolved plugin configuration.
|
|
309
|
+
* @param onConsole - where captured console messages land.
|
|
310
|
+
* @returns the backend, plus the `Chrome` instance the CDP path owns.
|
|
311
|
+
*/
|
|
312
|
+
export declare function buildBackend(config: ResolvedChromeConfig, onConsole?: ConsoleSink): {
|
|
131
313
|
backend: BrowserBackend;
|
|
132
314
|
chrome?: Chrome;
|
|
133
315
|
};
|
package/lib/backend.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAa1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAGvD,8CAA8C;AAC9C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CA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