@jackwener/browsermcp 0.0.42-embedded.0 → 0.0.43
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/CHANGELOG.md +3 -60
- package/README.md +0 -91
- package/dist/docs/api-use.md +2 -0
- package/dist/src/api/api.js +3 -1
- package/dist/src/api/api.js.map +1 -1
- package/dist/src/api/tab.js +70 -0
- package/dist/src/api/tab.js.map +1 -1
- package/dist/src/docs/manifest.js +3 -6
- package/dist/src/docs/manifest.js.map +1 -1
- package/dist/src/mcp/server.js +3 -2
- package/dist/src/mcp/server.js.map +1 -1
- package/dist/src/runtime/runtime.js +28 -2
- package/dist/src/runtime/runtime.js.map +1 -1
- package/docs/api-use.md +2 -0
- package/package.json +2 -11
- package/dist/src/api/action-input.d.ts +0 -87
- package/dist/src/api/agent.d.ts +0 -10
- package/dist/src/api/api.d.ts +0 -54
- package/dist/src/api/browser.d.ts +0 -93
- package/dist/src/api/commands.d.ts +0 -514
- package/dist/src/api/content-wait.d.ts +0 -18
- package/dist/src/api/context.d.ts +0 -7
- package/dist/src/api/diff.d.ts +0 -8
- package/dist/src/api/errors.d.ts +0 -14
- package/dist/src/api/network.d.ts +0 -10
- package/dist/src/api/observation.d.ts +0 -4
- package/dist/src/api/streams.d.ts +0 -13
- package/dist/src/api/tab.d.ts +0 -352
- package/dist/src/api/webmcp.d.ts +0 -19
- package/dist/src/backends/backend.d.ts +0 -14
- package/dist/src/backends/browser-helpers.d.ts +0 -17
- package/dist/src/backends/extension-page.d.ts +0 -5
- package/dist/src/backends/managed-page.d.ts +0 -50
- package/dist/src/backends/page-transport.d.ts +0 -10
- package/dist/src/backends/page-types.d.ts +0 -82
- package/dist/src/docs/embedded.d.ts +0 -2
- package/dist/src/docs/embedded.js +0 -40
- package/dist/src/docs/embedded.js.map +0 -1
- package/dist/src/docs/manifest.d.ts +0 -23
- package/dist/src/docs/surface.d.ts +0 -12
- package/dist/src/electron/backend.d.ts +0 -50
- package/dist/src/electron/backend.js +0 -377
- package/dist/src/electron/backend.js.map +0 -1
- package/dist/src/electron/chrome.d.ts +0 -24
- package/dist/src/electron/chrome.js +0 -133
- package/dist/src/electron/chrome.js.map +0 -1
- package/dist/src/electron/driver.d.ts +0 -70
- package/dist/src/electron/driver.js +0 -316
- package/dist/src/electron/driver.js.map +0 -1
- package/dist/src/electron/event-buffer.d.ts +0 -16
- package/dist/src/electron/event-buffer.js +0 -59
- package/dist/src/electron/event-buffer.js.map +0 -1
- package/dist/src/electron/page.js +0 -1030
- package/dist/src/electron/registry.d.ts +0 -104
- package/dist/src/electron/registry.js +0 -316
- package/dist/src/electron/registry.js.map +0 -1
- package/dist/src/electron/streams.d.ts +0 -16
- package/dist/src/electron/streams.js +0 -48
- package/dist/src/electron/streams.js.map +0 -1
- package/dist/src/embedded/index.d.ts +0 -49
- package/dist/src/embedded/index.js +0 -85
- package/dist/src/embedded/index.js.map +0 -1
- package/dist/src/host/bridge.d.ts +0 -50
- package/dist/src/host/doctor.d.ts +0 -34
- package/dist/src/host/extension.d.ts +0 -3
- package/dist/src/host/host.d.ts +0 -3
- package/dist/src/host/ipc.d.ts +0 -14
- package/dist/src/host/jsonc-config.d.ts +0 -1
- package/dist/src/host/launch.d.ts +0 -11
- package/dist/src/host/native-messaging.d.ts +0 -28
- package/dist/src/host/opencode.d.ts +0 -6
- package/dist/src/host/pi.d.ts +0 -6
- package/dist/src/host/registration.d.ts +0 -24
- package/dist/src/host/setup.d.ts +0 -7
- package/dist/src/host/socket.d.ts +0 -25
- package/dist/src/host/state.d.ts +0 -39
- package/dist/src/launcher/stdio.d.ts +0 -3
- package/dist/src/lib/paths.d.ts +0 -1
- package/dist/src/lib/sources.d.ts +0 -5
- package/dist/src/main.d.ts +0 -2
- package/dist/src/mcp/catalog.d.ts +0 -202
- package/dist/src/mcp/js-session.d.ts +0 -64
- package/dist/src/mcp/server.d.ts +0 -15
- package/dist/src/protocol.d.ts +0 -340
- package/dist/src/recon/analyzer.d.ts +0 -43
- package/dist/src/recon/discover.d.ts +0 -48
- package/dist/src/runtime/runtime.d.ts +0 -230
- package/dist/src/shared/api-contract.d.ts +0 -86
- package/dist/src/shared/aria-tree.d.ts +0 -2
- package/dist/src/shared/closed-shadow.d.ts +0 -10
- package/dist/src/shared/element-ref.d.ts +0 -4
- package/dist/src/shared/engine.d.ts +0 -62
- package/dist/src/shared/inflight.d.ts +0 -14
- package/dist/src/shared/injected-source.d.ts +0 -2
- package/dist/src/shared/page-contract.d.ts +0 -278
- package/dist/src/sites/define.d.ts +0 -28
- package/dist/src/sites/drafts.d.ts +0 -39
- package/dist/src/sites/executor.d.ts +0 -34
- package/dist/src/sites/loader.d.ts +0 -101
- package/dist/src/sites/manifest.d.ts +0 -5
- package/dist/src/sites/schema.d.ts +0 -11
- package/dist/src/version.d.ts +0 -2
package/dist/src/api/tab.d.ts
DELETED
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { type EvaluateOptions } from '../shared/api-contract.js';
|
|
2
|
-
import { type PageTool, type PageToolsUpdate } from './webmcp.js';
|
|
3
|
-
import type { StreamOptions, StreamReadOptions } from '../protocol.js';
|
|
4
|
-
/**
|
|
5
|
-
* Tab — one browser tab of a session: observe (aria snapshot + semantic diff), find, act, expect, evaluate, screenshot,
|
|
6
|
-
* network/console/dialog/webmcp/frames. A Tab owns the page object bound to its identity; operations are serialized per tab.
|
|
7
|
-
*/
|
|
8
|
-
import type { RuntimePage } from '../backends/page-types.js';
|
|
9
|
-
import { type ContentState } from './content-wait.js';
|
|
10
|
-
import type { Target, FindResult, QueryFindResult, ElementAtResult, Expectation, CheckResult, ReadTextResult, FrameOwner, DomSnapshot, ElementDetails } from '../shared/page-contract.js';
|
|
11
|
-
import type { DialogInfo, DownloadWaitResult, FrameStep } from '../protocol.js';
|
|
12
|
-
import type { SessionContext } from './context.js';
|
|
13
|
-
export type { Target } from '../shared/page-contract.js';
|
|
14
|
-
export type ActAction = 'click' | 'dblclick' | 'hover' | 'focus' | 'fill' | 'type' | 'press' | 'select' | 'check' | 'uncheck' | 'upload' | 'drag' | 'scroll' | 'back' | 'forward' | 'reload';
|
|
15
|
-
export interface ActOptions {
|
|
16
|
-
target?: Target;
|
|
17
|
-
action: ActAction;
|
|
18
|
-
value?: string;
|
|
19
|
-
files?: string[];
|
|
20
|
-
to?: Target;
|
|
21
|
-
direction?: 'up' | 'down' | 'left' | 'right';
|
|
22
|
-
amount?: number;
|
|
23
|
-
timeoutMs?: number;
|
|
24
|
-
settleMs?: number; /** click only. `dom` runs HTMLElement.click() and sends no mouse event. Default is a real mouse event. */
|
|
25
|
-
method?: 'cdp' | 'dom';
|
|
26
|
-
}
|
|
27
|
-
/** Input delivery and control verification are separate from completion of the site's task. */
|
|
28
|
-
export interface ActionOutcome {
|
|
29
|
-
action: ActAction;
|
|
30
|
-
delivery: 'applied' | 'received' | 'dispatched';
|
|
31
|
-
controlState: 'verified' | 'unverified';
|
|
32
|
-
network?: {
|
|
33
|
-
afterSequence: number;
|
|
34
|
-
cursor: number;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* What the page did in response, measured in the action's document (and the top document for a frame target):
|
|
38
|
-
* `navigated` (new document or URL), `changed` (DOM, form value or scroll changed), `none` (nothing changed: the
|
|
39
|
-
* input reached the page but it did not react), `unknown` (the page could not be read afterwards).
|
|
40
|
-
*/
|
|
41
|
-
effect?: 'navigated' | 'changed' | 'none' | 'unknown';
|
|
42
|
-
/** Present when the page was still changing or loading when the wait ended (default limit 1000 ms, `settleMs`). */
|
|
43
|
-
settled?: false;
|
|
44
|
-
/** Requests the action started that were still in flight when the wait ended. */
|
|
45
|
-
pendingRequests?: number;
|
|
46
|
-
matches_n?: number;
|
|
47
|
-
navigated?: boolean;
|
|
48
|
-
url?: string;
|
|
49
|
-
title?: string;
|
|
50
|
-
timedOut?: boolean;
|
|
51
|
-
ref?: string;
|
|
52
|
-
/** For fill/type, true only when the settled value matches the requested result. */
|
|
53
|
-
filled?: boolean;
|
|
54
|
-
verified?: boolean;
|
|
55
|
-
actual?: string;
|
|
56
|
-
checked?: boolean;
|
|
57
|
-
changed?: boolean;
|
|
58
|
-
selected?: string[];
|
|
59
|
-
files?: number;
|
|
60
|
-
openedTabs?: Array<{
|
|
61
|
-
tab?: string;
|
|
62
|
-
tabId: number;
|
|
63
|
-
url?: string;
|
|
64
|
-
title?: string;
|
|
65
|
-
pending?: true;
|
|
66
|
-
}>;
|
|
67
|
-
download?: {
|
|
68
|
-
tab: string;
|
|
69
|
-
afterSequence: number;
|
|
70
|
-
started: Array<{
|
|
71
|
-
seq: number;
|
|
72
|
-
guid?: string;
|
|
73
|
-
url: string;
|
|
74
|
-
suggestedFilename: string;
|
|
75
|
-
}>;
|
|
76
|
-
};
|
|
77
|
-
/** Present when the action used DOM activation or a native control setter. */
|
|
78
|
-
method?: 'dom';
|
|
79
|
-
}
|
|
80
|
-
export interface ObserveOptions {
|
|
81
|
-
/** Continue the previous immutable capture. Pass cursor alone; a fresh observation replaces it. */
|
|
82
|
-
cursor?: string;
|
|
83
|
-
mode?: 'state' | 'screenshot' | 'both';
|
|
84
|
-
/** ARIA overview (default) or independent visible controls and live DOM attributes. */
|
|
85
|
-
format?: 'aria' | 'dom';
|
|
86
|
-
/** Frame path from an observation; identical to target.frame in act/find/read. */
|
|
87
|
-
frame?: FrameStep | FrameStep[];
|
|
88
|
-
/** Return a diff only against this exact snapshot id; otherwise return full state. ARIA only. */
|
|
89
|
-
since?: string;
|
|
90
|
-
/** Default true: current viewport. Pass false for the entire rendered document. */
|
|
91
|
-
viewport?: boolean;
|
|
92
|
-
/** Open a branch in the selected frame. */
|
|
93
|
-
ref?: string;
|
|
94
|
-
/** Observe a known container using the same locator contract as read/act, without first obtaining a ref. */
|
|
95
|
-
target?: Target;
|
|
96
|
-
/** DOM pagination within the selected frame. The live page can change between calls. */
|
|
97
|
-
start?: number;
|
|
98
|
-
limit?: number;
|
|
99
|
-
/** Include child frames, without scrolling. Default true. */
|
|
100
|
-
includeFrames?: boolean;
|
|
101
|
-
/** Overlay main-frame ref labels on the screenshot. */
|
|
102
|
-
annotate?: boolean;
|
|
103
|
-
fullPage?: boolean;
|
|
104
|
-
}
|
|
105
|
-
export interface ObservedContent {
|
|
106
|
-
metadataTruncated?: boolean; /** A single oversized text line can span pages. Concatenate these fragments before interpreting it. */
|
|
107
|
-
stateContinued?: boolean;
|
|
108
|
-
stateContinues?: boolean;
|
|
109
|
-
state?: string;
|
|
110
|
-
dom?: DomSnapshot;
|
|
111
|
-
warnings?: string[];
|
|
112
|
-
diff?: boolean;
|
|
113
|
-
changed?: {
|
|
114
|
-
added: number;
|
|
115
|
-
removed: number;
|
|
116
|
-
changed?: number;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
export interface ObservedFrame extends ObservedContent {
|
|
120
|
-
frame: FrameStep[];
|
|
121
|
-
owner: FrameOwner;
|
|
122
|
-
unavailable?: string;
|
|
123
|
-
}
|
|
124
|
-
export interface ObserveResult extends ObservedContent {
|
|
125
|
-
/** Scope of this capture, not a claim that an infinite feed is exhausted. */
|
|
126
|
-
scope?: 'viewport' | 'document' | 'target';
|
|
127
|
-
/** Whether this is the final output page, not a claim that all dynamic page content was captured. */
|
|
128
|
-
complete?: boolean;
|
|
129
|
-
/** Page-provided tool catalog changes in the observed root frame; schemas are fetched explicitly. */
|
|
130
|
-
webmcp?: PageToolsUpdate;
|
|
131
|
-
/** Continue this captured state with observe({cursor: nextCursor}). */
|
|
132
|
-
nextCursor?: string;
|
|
133
|
-
/** Pass directly to tab.observe(result.next) to continue this capture. */
|
|
134
|
-
next?: {
|
|
135
|
-
cursor: string;
|
|
136
|
-
};
|
|
137
|
-
url: string | null;
|
|
138
|
-
title: string | null;
|
|
139
|
-
snapshotId?: string;
|
|
140
|
-
image?: ImageValue;
|
|
141
|
-
/** Child frames and explicit routes for semantic locators or document reads; refs route automatically. */
|
|
142
|
-
frames?: ObservedFrame[];
|
|
143
|
-
/** False if a discovered frame could not be captured or the bounded traversal stopped. */
|
|
144
|
-
framesComplete?: boolean;
|
|
145
|
-
}
|
|
146
|
-
export interface ReadOptions {
|
|
147
|
-
maxChars?: number; /** character offset returned as nextStart by a previous read */
|
|
148
|
-
start?: number; /** capture id returned by that same read */
|
|
149
|
-
readId?: string;
|
|
150
|
-
frame?: FrameStep | FrameStep[];
|
|
151
|
-
}
|
|
152
|
-
export interface DocumentReadResult extends ReadTextResult {
|
|
153
|
-
next?: ReadOptions;
|
|
154
|
-
}
|
|
155
|
-
export interface ReadElementOptions {
|
|
156
|
-
target: Target;
|
|
157
|
-
}
|
|
158
|
-
export interface ImageValue {
|
|
159
|
-
__image: true;
|
|
160
|
-
mimeType: string;
|
|
161
|
-
base64: string;
|
|
162
|
-
}
|
|
163
|
-
export declare class Tab {
|
|
164
|
-
private readonly initialId;
|
|
165
|
-
private readonly ctx;
|
|
166
|
-
private readonly bound?;
|
|
167
|
-
/** A Tab owns the page object bound to its identity; `bound` lets an adapter pass an existing page. */
|
|
168
|
-
/** `id` is the stable backend page handle; `tabId` is the numeric backend id when claimed from a user tab. */
|
|
169
|
-
readonly tabId?: number;
|
|
170
|
-
constructor(initialId: string, ctx: SessionContext, bound?: RuntimePage | undefined, tabId?: number);
|
|
171
|
-
get id(): string;
|
|
172
|
-
toJSON(): {
|
|
173
|
-
type: 'Tab';
|
|
174
|
-
id: string;
|
|
175
|
-
tabId?: number;
|
|
176
|
-
};
|
|
177
|
-
private closed;
|
|
178
|
-
/** Run `fn` on this tab's own page object. Operations are serialized per tab, never across tabs. */
|
|
179
|
-
use<T>(fn: (page: RuntimePage) => Promise<T>): Promise<T>;
|
|
180
|
-
/** Reuse the document namespace already present in refs; no second element-id system. */
|
|
181
|
-
private rememberRefs;
|
|
182
|
-
private routeTarget;
|
|
183
|
-
/** @internal After a load: wait until the page shows content (see content-wait.ts). */
|
|
184
|
-
waitForContentOn(page: RuntimePage): Promise<ContentState>;
|
|
185
|
-
/**
|
|
186
|
-
* Navigate and wait for the page's content, not only its load event. `content` is present when the page still had
|
|
187
|
-
* no text (`empty`) or only a loading placeholder (`placeholder`) after the bounded wait.
|
|
188
|
-
*/
|
|
189
|
-
goto(url: string, opts?: {
|
|
190
|
-
waitUntil?: 'load' | 'none';
|
|
191
|
-
settleMs?: number;
|
|
192
|
-
ready?: Expectation;
|
|
193
|
-
timeoutMs?: number;
|
|
194
|
-
}): Promise<{
|
|
195
|
-
url: string | null;
|
|
196
|
-
title: string | null;
|
|
197
|
-
content?: 'empty' | 'placeholder';
|
|
198
|
-
}>;
|
|
199
|
-
/**
|
|
200
|
-
* Pull captured requests into the session's bounded network log. Best effort — never fails a step.
|
|
201
|
-
*/
|
|
202
|
-
private harvest;
|
|
203
|
-
/** Requests the page's scripts made that the site answered with 429: the site is rate limiting this session. */
|
|
204
|
-
private detectIssues;
|
|
205
|
-
/** @internal After a navigation: an HTTP error status of the document itself (401 login, 403 blocked, 429, other 4xx/5xx) becomes an issue. */
|
|
206
|
-
checkDocumentOn(page: RuntimePage): Promise<void>;
|
|
207
|
-
/**
|
|
208
|
-
* Say this tab needs the user: a login wall, a block or an error page the HTTP status did not reveal.
|
|
209
|
-
* It is reported with this js call, and the embedding browser can show the user which tab to handle.
|
|
210
|
-
* The flag clears the next time a later js call uses this tab.
|
|
211
|
-
*/
|
|
212
|
-
reportIssue(code: 'auth_required' | 'blocked' | 'error_page', opts?: {
|
|
213
|
-
note?: string;
|
|
214
|
-
}): Promise<{
|
|
215
|
-
reported: 'auth_required' | 'blocked' | 'error_page';
|
|
216
|
-
tab: string;
|
|
217
|
-
}>;
|
|
218
|
-
private logNetwork;
|
|
219
|
-
private info;
|
|
220
|
-
/** Preserve this tab for the user when the session is finalized. */
|
|
221
|
-
markDeliverable(): Promise<void>;
|
|
222
|
-
/** Preserve this tab for a subsequent turn; the same session handle remains usable after finalization. */
|
|
223
|
-
markHandoff(): Promise<void>;
|
|
224
|
-
/** Restore default cleanup: close agent tabs, release borrowed user tabs. */
|
|
225
|
-
clearRetention(): Promise<void>;
|
|
226
|
-
private setRetention;
|
|
227
|
-
url(): Promise<string | null>;
|
|
228
|
-
title(): Promise<string | null>;
|
|
229
|
-
back(): Promise<void>;
|
|
230
|
-
forward(): Promise<void>;
|
|
231
|
-
reload(): Promise<void>;
|
|
232
|
-
/** Close this tab, whether it was opened or claimed by this session. */
|
|
233
|
-
close(): Promise<{
|
|
234
|
-
tabId: string;
|
|
235
|
-
closed: true;
|
|
236
|
-
}>;
|
|
237
|
-
/** Keep this tab open and give up this session's control of it. */
|
|
238
|
-
release(): Promise<void>;
|
|
239
|
-
/** ARIA overview by default; format:'dom' reveals visible controls and live attributes. Observed refs automatically route to their frame. */
|
|
240
|
-
observe(opts?: ObserveOptions): Promise<ObserveResult>;
|
|
241
|
-
screenshot(opts?: {
|
|
242
|
-
fullPage?: boolean;
|
|
243
|
-
annotate?: boolean;
|
|
244
|
-
format?: 'png' | 'jpeg';
|
|
245
|
-
quality?: number;
|
|
246
|
-
}): Promise<ImageValue>;
|
|
247
|
-
private screenshotOn;
|
|
248
|
-
find(target: (Target & {
|
|
249
|
-
limit?: number;
|
|
250
|
-
}) | {
|
|
251
|
-
query: string;
|
|
252
|
-
limit?: number;
|
|
253
|
-
frame?: FrameStep | FrameStep[];
|
|
254
|
-
}): Promise<FindResult | ElementAtResult | QueryFindResult>;
|
|
255
|
-
/**
|
|
256
|
-
* With target: exact current element text, attributes and live values, without scrolling.
|
|
257
|
-
* Otherwise: bounded document text scan (including open shadow roots), restores scroll; pass result.next to continue.
|
|
258
|
-
* A growing feed returns reason `unbounded`; the scan stops rather than chasing an endless bottom.
|
|
259
|
-
*/
|
|
260
|
-
read(opts: ReadElementOptions): Promise<ElementDetails>;
|
|
261
|
-
read(opts?: ReadOptions): Promise<DocumentReadResult>;
|
|
262
|
-
/** wait + act in one call at the runtime edge: locate → wait actionable → hit-test → real input → settle. `method:'dom'` skips the mouse event. */
|
|
263
|
-
act(opts: ActOptions): Promise<ActionOutcome>;
|
|
264
|
-
/** WebMCP: tools the page itself registers via navigator.modelContext (page-provided tool source). */
|
|
265
|
-
readonly webmcp: {
|
|
266
|
-
/** List names/descriptions, or fetch one full schema by name. Scoped to the requested frame. */
|
|
267
|
-
list: (options?: {
|
|
268
|
-
name?: string;
|
|
269
|
-
frame?: FrameStep | FrameStep[];
|
|
270
|
-
}) => Promise<PageTool[]>;
|
|
271
|
-
call: (name: string, input?: Record<string, unknown>, options?: {
|
|
272
|
-
frame?: FrameStep | FrameStep[];
|
|
273
|
-
}) => Promise<unknown>;
|
|
274
|
-
};
|
|
275
|
-
/** Assert what the page must show now (polled up to timeoutMs). */
|
|
276
|
-
expect(what: Expectation, opts?: {
|
|
277
|
-
timeoutMs?: number;
|
|
278
|
-
}): Promise<CheckResult>;
|
|
279
|
-
/** Main World page code; functions receive only opts.arg, never host closures. Dispatched scripts are never replayed. */
|
|
280
|
-
evaluate(script: string | ((arg: any) => any), opts?: EvaluateOptions): Promise<unknown>;
|
|
281
|
-
/** Native CDP on this Tab's shared debugger attachment. Parameters are not rewritten. */
|
|
282
|
-
readonly cdp: {
|
|
283
|
-
send: (method: string, params?: Record<string, unknown>, target?: {
|
|
284
|
-
frameId: string;
|
|
285
|
-
}) => Promise<unknown>;
|
|
286
|
-
watch: (event: string, options?: StreamOptions) => Promise<import("./streams.js").EventStream>;
|
|
287
|
-
};
|
|
288
|
-
/** Native alert/confirm/prompt dialogs block the page; commands fail with `dialog_open` until answered. */
|
|
289
|
-
readonly dialog: {
|
|
290
|
-
get: () => Promise<DialogInfo | null>;
|
|
291
|
-
accept: (text?: string) => Promise<DialogInfo | null>;
|
|
292
|
-
dismiss: () => Promise<DialogInfo | null>;
|
|
293
|
-
};
|
|
294
|
-
/** Console messages and uncaught exceptions since the tab was attached (the plugin's tab.dev.logs); cursor-paged like network.read. */
|
|
295
|
-
readonly console: {
|
|
296
|
-
read: (opts?: StreamReadOptions) => Promise<import("../protocol.js").StreamBatch>;
|
|
297
|
-
watch: (options?: StreamOptions) => Promise<import("./streams.js").EventStream>;
|
|
298
|
-
};
|
|
299
|
-
readonly network: {
|
|
300
|
-
start: (pattern?: string) => Promise<boolean>;
|
|
301
|
-
list: (opts?: {
|
|
302
|
-
filter?: string;
|
|
303
|
-
limit?: number;
|
|
304
|
-
afterSequence?: number;
|
|
305
|
-
}) => Promise<{
|
|
306
|
-
cursor: number;
|
|
307
|
-
entries: Record<string, unknown>[];
|
|
308
|
-
hasMore: boolean;
|
|
309
|
-
}>;
|
|
310
|
-
detail: (opts: {
|
|
311
|
-
seq?: number;
|
|
312
|
-
requestId?: string;
|
|
313
|
-
part?: "request" | "response";
|
|
314
|
-
start?: number;
|
|
315
|
-
maxChars?: number;
|
|
316
|
-
}) => Promise<Record<string, unknown>>;
|
|
317
|
-
/**
|
|
318
|
-
* Cursor-paged read: pass `afterSequence` from the previous result to get only new requests. Returns network rows
|
|
319
|
-
* only; endpoint candidates come from the explicit `recon.discover(tab)` (not a hidden side effect of reading).
|
|
320
|
-
*/
|
|
321
|
-
read: (opts?: {
|
|
322
|
-
pattern?: string;
|
|
323
|
-
limit?: number;
|
|
324
|
-
includeStatic?: boolean;
|
|
325
|
-
afterSequence?: number;
|
|
326
|
-
}) => Promise<{
|
|
327
|
-
cursor: number;
|
|
328
|
-
entries: unknown[];
|
|
329
|
-
hasMore: boolean;
|
|
330
|
-
}>;
|
|
331
|
-
};
|
|
332
|
-
cookies(domain: string): Promise<unknown[]>;
|
|
333
|
-
/**
|
|
334
|
-
* Read one cookie's value at run time — useful for per-request tokens an adapter needs (csrf/ct0/
|
|
335
|
-
* csrftoken/XSRF-TOKEN). Defaults to the current page's host. Returns undefined when the cookie is absent.
|
|
336
|
-
*/
|
|
337
|
-
cookie(name: string, opts?: {
|
|
338
|
-
domain?: string;
|
|
339
|
-
}): Promise<string | undefined>;
|
|
340
|
-
/** Fetch JSON through the page (its cookies and origin) after verifying the endpoint. */
|
|
341
|
-
fetchJson(url: string, opts?: Record<string, unknown>): Promise<unknown>;
|
|
342
|
-
frames(): Promise<Array<{
|
|
343
|
-
index: number;
|
|
344
|
-
frameId: string;
|
|
345
|
-
url: string;
|
|
346
|
-
name: string;
|
|
347
|
-
crossOrigin?: boolean;
|
|
348
|
-
oopif?: boolean;
|
|
349
|
-
}>>;
|
|
350
|
-
/** Wait for the page download begun after a tab.act cursor, then check Chrome's file state. */
|
|
351
|
-
download(download: NonNullable<ActionOutcome['download']>, timeoutMs?: number): Promise<DownloadWaitResult>;
|
|
352
|
-
}
|
package/dist/src/api/webmcp.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { RuntimePage } from '../backends/page-types.js';
|
|
2
|
-
import type { FrameStep } from '../protocol.js';
|
|
3
|
-
export interface PageTool {
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
inputSchema?: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface PageToolsUpdate {
|
|
9
|
-
status: 'ready' | 'unavailable';
|
|
10
|
-
frame: FrameStep[];
|
|
11
|
-
tools: Array<{
|
|
12
|
-
name: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
}>;
|
|
15
|
-
truncated?: boolean;
|
|
16
|
-
}
|
|
17
|
-
/** Discovery is read-only and bounded. Full schemas are returned only on explicit lookup. */
|
|
18
|
-
export declare function pageTools(page: RuntimePage, frame?: FrameStep[]): Promise<PageTool[]>;
|
|
19
|
-
export declare function pageToolsUpdate(page: RuntimePage, cache: Map<string, string>, key: string, frame: FrameStep[]): Promise<PageToolsUpdate | undefined>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BrowserEvent, BrowserFeature, Command } from '../protocol.js';
|
|
2
|
-
import type { PageOptions, ManagedRuntimePage } from './managed-page.js';
|
|
3
|
-
/** Host-owned browser access. No discovery, installation, or process lifecycle. */
|
|
4
|
-
export interface BrowserBackend {
|
|
5
|
-
readonly kind: 'electron' | 'extension';
|
|
6
|
-
readonly available: boolean;
|
|
7
|
-
features(): BrowserFeature[];
|
|
8
|
-
createPage(options: PageOptions): Promise<ManagedRuntimePage>;
|
|
9
|
-
subscribe(listener: (event: BrowserEvent) => void): () => void;
|
|
10
|
-
command?(action: Command['action'], params: Partial<Command>): Promise<{
|
|
11
|
-
data: unknown;
|
|
12
|
-
}>;
|
|
13
|
-
dispose(): Promise<void>;
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wrap JS code for CDP Runtime.evaluate:
|
|
3
|
-
* - Already an IIFE `(...)()` → send as-is
|
|
4
|
-
* - Arrow/function literal → wrap as IIFE `(code)()`
|
|
5
|
-
* - `new Promise(...)` or raw expression → send as-is (expression)
|
|
6
|
-
*/
|
|
7
|
-
export declare function wrapForEval(js: string): string;
|
|
8
|
-
/** Generate JS to read performance resource entries as network requests */
|
|
9
|
-
export declare function networkRequestsJs(includeStatic: boolean): string;
|
|
10
|
-
/**
|
|
11
|
-
* Generate JS to wait until the DOM stabilizes (no mutations for `quietMs`),
|
|
12
|
-
* with a hard cap at `maxMs`. Uses MutationObserver in the browser.
|
|
13
|
-
*
|
|
14
|
-
* Returns as soon as the page stops changing, avoiding unnecessary fixed waits.
|
|
15
|
-
* If document.body is not available, falls back to a fixed sleep of maxMs.
|
|
16
|
-
*/
|
|
17
|
-
export declare function waitForDomStableJs(maxMs: number, quietMs: number): string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** The page transport over the extension bridge; interactions use the shared act engine. */
|
|
2
|
-
import type { PageTransport } from './page-transport.js';
|
|
3
|
-
import type { PageOptions as ExtensionPageOptions, ManagedRuntimePage as ExtensionRuntimePage } from './managed-page.js';
|
|
4
|
-
export type { PageOptions as ExtensionPageOptions, ManagedRuntimePage as ExtensionRuntimePage, UserTabInfo } from './managed-page.js';
|
|
5
|
-
export declare function createExtensionPage(bridge: PageTransport, opts: ExtensionPageOptions): Promise<ExtensionRuntimePage>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { RuntimePage } from './page-types.js';
|
|
2
|
-
import type { CloseUserTabsResult } from '../protocol.js';
|
|
3
|
-
export interface PageOptions {
|
|
4
|
-
session: string;
|
|
5
|
-
surface: 'browser' | 'adapter';
|
|
6
|
-
/** bind this page object to one tab identity for its whole life (per-Tab pages); omitted = session-scope page with no tab */
|
|
7
|
-
page?: string;
|
|
8
|
-
}
|
|
9
|
-
export type { UserTabInfo } from '../shared/api-contract.js';
|
|
10
|
-
import type { TabDiscoveryOptions, TabDiscoveryResult } from '../shared/api-contract.js';
|
|
11
|
-
/** Page ownership and lifecycle operations shared by browser backends. */
|
|
12
|
-
export interface ManagedPageExtras {
|
|
13
|
-
nameSession(name: string): Promise<void>;
|
|
14
|
-
userTabs(options?: TabDiscoveryOptions): Promise<TabDiscoveryResult>;
|
|
15
|
-
claim(tab: {
|
|
16
|
-
tabId?: number;
|
|
17
|
-
active?: boolean;
|
|
18
|
-
title?: string;
|
|
19
|
-
url?: string;
|
|
20
|
-
expectedUrl?: string;
|
|
21
|
-
expectedTitle?: string;
|
|
22
|
-
}): Promise<{
|
|
23
|
-
page: string;
|
|
24
|
-
tabId: number;
|
|
25
|
-
url?: string;
|
|
26
|
-
title?: string;
|
|
27
|
-
}>;
|
|
28
|
-
closeUserTabs(tabIds: number[]): Promise<CloseUserTabsResult>;
|
|
29
|
-
mark(page: string, mark: 'deliverable' | 'handoff' | null): Promise<void>;
|
|
30
|
-
finalize(keep: Array<{
|
|
31
|
-
page: string;
|
|
32
|
-
status: 'deliverable' | 'handoff';
|
|
33
|
-
}>, options?: {
|
|
34
|
-
closing?: boolean;
|
|
35
|
-
}): Promise<{
|
|
36
|
-
closed: string[];
|
|
37
|
-
released: string[];
|
|
38
|
-
retained: string[];
|
|
39
|
-
failed: Array<{
|
|
40
|
-
page: string;
|
|
41
|
-
reason: string;
|
|
42
|
-
}>;
|
|
43
|
-
}>;
|
|
44
|
-
cursor(x: number, y: number, opts?: {
|
|
45
|
-
waitForArrival?: boolean;
|
|
46
|
-
}): Promise<void>;
|
|
47
|
-
setVisibility(visible: boolean): Promise<void>;
|
|
48
|
-
getVisibility(): Promise<boolean>;
|
|
49
|
-
}
|
|
50
|
-
export type ManagedRuntimePage = RuntimePage & ManagedPageExtras;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Command, BrowserFeature } from '../protocol.js';
|
|
2
|
-
export interface PageTransport {
|
|
3
|
-
readonly extensionFeatures: BrowserFeature[];
|
|
4
|
-
send(action: Command['action'], params?: Omit<Command, 'id' | 'action'>, opts?: {
|
|
5
|
-
timeoutMs?: number;
|
|
6
|
-
}): Promise<{
|
|
7
|
-
data: unknown;
|
|
8
|
-
page?: string;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/** The transport surface used by the browser object API. */
|
|
2
|
-
import type { ActSpec, ActResult, DialogInfo, StreamReadOptions, StreamBatch, DownloadWaitResult, FrameStep } from '../protocol.js';
|
|
3
|
-
import type { Expectation, CheckResult } from '../shared/page-contract.js';
|
|
4
|
-
export interface ScreenshotOptions {
|
|
5
|
-
format?: 'png' | 'jpeg';
|
|
6
|
-
quality?: number;
|
|
7
|
-
fullPage?: boolean;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface RuntimePage {
|
|
12
|
-
goto(url: string, options?: {
|
|
13
|
-
waitUntil?: 'load' | 'none';
|
|
14
|
-
settleMs?: number;
|
|
15
|
-
}): Promise<void>;
|
|
16
|
-
evaluate<T = unknown>(js: string, opts?: {
|
|
17
|
-
timeoutMs?: number;
|
|
18
|
-
}): Promise<T>;
|
|
19
|
-
fetchJson(url: string, opts?: {
|
|
20
|
-
method?: string;
|
|
21
|
-
headers?: Record<string, string>;
|
|
22
|
-
body?: unknown;
|
|
23
|
-
timeoutMs?: number;
|
|
24
|
-
}): Promise<unknown>;
|
|
25
|
-
getCookies(opts?: {
|
|
26
|
-
domain?: string;
|
|
27
|
-
url?: string;
|
|
28
|
-
}): Promise<unknown[]>;
|
|
29
|
-
tabs(): Promise<unknown[]>;
|
|
30
|
-
networkRequests(includeStatic?: boolean): Promise<unknown[]>;
|
|
31
|
-
getActivePage(): string | undefined;
|
|
32
|
-
cdp(method: string, params?: Record<string, unknown>, target?: {
|
|
33
|
-
frameId: string;
|
|
34
|
-
}): Promise<unknown>;
|
|
35
|
-
newTab(url?: string): Promise<string | undefined>;
|
|
36
|
-
closeTab(target?: string): Promise<void>;
|
|
37
|
-
releaseTab(target?: string): Promise<void>;
|
|
38
|
-
closeWindow(): Promise<void>;
|
|
39
|
-
screenshot(options?: ScreenshotOptions): Promise<string>;
|
|
40
|
-
startNetworkCapture(pattern?: string): Promise<boolean>;
|
|
41
|
-
readNetworkCapture(): Promise<unknown[]>;
|
|
42
|
-
waitForDownload(afterSequence: number, timeoutMs?: number): Promise<DownloadWaitResult>;
|
|
43
|
-
/** Child frames in document order; crossOrigin marks frames whose origin differs from the top document (data:/sandboxed count as cross-origin). */
|
|
44
|
-
frames(): Promise<Array<{
|
|
45
|
-
index: number;
|
|
46
|
-
frameId: string;
|
|
47
|
-
url: string;
|
|
48
|
-
name: string;
|
|
49
|
-
crossOrigin?: boolean;
|
|
50
|
-
oopif?: boolean;
|
|
51
|
-
}>>;
|
|
52
|
-
evaluateInFrame(js: string, frame: import('../protocol.js').FrameStep | import('../protocol.js').FrameStep[], timeoutMs?: number): Promise<unknown>;
|
|
53
|
-
getCurrentUrl(): Promise<string | null>;
|
|
54
|
-
evaluateWithArgs(js: string, args: Record<string, unknown>): Promise<unknown>;
|
|
55
|
-
/** browsermcp extras */
|
|
56
|
-
readonly session: string;
|
|
57
|
-
readonly surface: 'browser' | 'adapter';
|
|
58
|
-
/** The interaction engine at this backend's edge (locate → wait → hit-test → real input → settle). */
|
|
59
|
-
act(spec: ActSpec): Promise<ActResult>;
|
|
60
|
-
/** Console messages and uncaught exceptions captured while attached (cursor-paged). */
|
|
61
|
-
consoleLogs(opts?: StreamReadOptions): Promise<StreamBatch>;
|
|
62
|
-
/** Browser-driven reload / back / forward with a bounded load wait. */
|
|
63
|
-
history(op: 'reload' | 'back' | 'forward'): Promise<{
|
|
64
|
-
url?: string;
|
|
65
|
-
title?: string;
|
|
66
|
-
timedOut?: boolean;
|
|
67
|
-
}>;
|
|
68
|
-
dialog(op: 'get' | 'accept' | 'dismiss', text?: string): Promise<{
|
|
69
|
-
dialog: DialogInfo | null;
|
|
70
|
-
handled?: string;
|
|
71
|
-
}>;
|
|
72
|
-
/** Wait until an expectation about the page holds (text/url/title/selector/ref); throws expectation_failed with the failed checks and the page state. */
|
|
73
|
-
expect(what: Expectation, opts?: {
|
|
74
|
-
timeoutMs?: number;
|
|
75
|
-
}): Promise<CheckResult>;
|
|
76
|
-
/** Accessibility snapshot text for browser sessions and adapters. */
|
|
77
|
-
aria(opts?: {
|
|
78
|
-
viewport?: boolean;
|
|
79
|
-
}): Promise<string>;
|
|
80
|
-
/** Call one function of the page-side module (extension/src/page) in the main frame or a frame path, without scrolling. */
|
|
81
|
-
pageCall(fn: string, args?: unknown, timeoutMs?: number, frame?: FrameStep | FrameStep[]): Promise<unknown>;
|
|
82
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/** Backend-specific instructions: never send an embedded client through Chrome setup. */
|
|
2
|
-
export const EMBEDDED_DOCS = {
|
|
3
|
-
instructions: `# Embedded BrowserMCP
|
|
4
|
-
Use existing site adapters for matching site tasks: sites_search finds commands and arguments; site_run executes them directly. No enabling step is needed. Use js as a persistent workspace for tasks not covered by an adapter. Pre-bound: helper, browser, sites, tools, recon, agent, session, nodeRepl.
|
|
5
|
-
Bundled adapters are available by default; the host may override sources or pass [] to load only application-created adapters. New adapters are stored under the application dataDir/adapters, never a global home directory.
|
|
6
|
-
The host application owns pages, workspace/profile selection, login sessions, and storage. No setup or extension installation is needed.
|
|
7
|
-
Registered tabs can be dormant; listing them does not load them. claimTab loads a dormant tab before returning. active reflects the host-selected tab, not keyboard focus.
|
|
8
|
-
Use tabs_list to discover and reuse a session tab, or claim_tab to acquire a registered tab. navigate_tab changes its URL in place; only open_tab creates a new page. close_tab closes an explicit session tab; release_tab leaves it open. tab_observe and tab_act use the same tabId. All these commands are available with identical schemas through helper in js and session.api.helper in the host. Observe, act, and verify the actual result. Await API calls. Copy refs from current observations.
|
|
9
|
-
Use browser.chrome.describe(method) before a Chrome API call: this backend implements a subset with explicit Electron semantics.
|
|
10
|
-
Use tab.cdp.send for page-scoped Chromium protocol operations. Browser-wide Target/Browser commands are not available.
|
|
11
|
-
Create and update adapters with tools.define, tools.try and tools.activate. A draft is inactive until verified and activated. Existing adapter code remains shared; execution follows the calling session's profile.
|
|
12
|
-
Finish with session_finish. Borrowed user tabs stay open. Use await tab.markDeliverable() for results and await tab.markHandoff() for later work; clearRetention() removes a mark. Full tab.id is required in explicit keep entries; invalid entries abort all cleanup. WebContents replacement preserves logical tab identity, ownership and marks. Read URLs with await tab.url(); list rows have URL snapshot fields. Keep deliverables explicitly; handoff pages keep usable handles until the session closes. Cleanup returns closed, released, retained and failed separately.
|
|
13
|
-
js_reset stops the REPL but already dispatched operations can still finish. Inspect doctor and the page before retrying a mutation.
|
|
14
|
-
The host opted into trusted Node execution: REPL and adapter code are not a security sandbox.
|
|
15
|
-
Read docs_get for API signatures and recovery guidance.`,
|
|
16
|
-
'capabilities/chrome': `# Chrome API compatibility in Electron
|
|
17
|
-
browser.chrome.call(method, argsArray), describe(member), and watch(event, options) are available.
|
|
18
|
-
Supported calls: tabs.query/get/create/update/remove/reload; cookies.getAll/get/set/remove.
|
|
19
|
-
Supported events: tabs.onCreated/onUpdated/onRemoved/onActivated. Events cover this session's registered pages; activation requires a host callback.
|
|
20
|
-
Use describe for positional argument names, semantics and availability. Unimplemented methods/options fail with capability_unavailable.
|
|
21
|
-
Only registered tabs in the authorized workspace/profile are visible; another session's owned pages are excluded. Tab ids are stable BrowserMCP logical identities, not Electron webContents ids. windowId is -1 because application tab/window layout is host-owned.
|
|
22
|
-
Cookies use the authorized Electron Session. Unsupported Chrome fields such as storeId and partitionKey are rejected.
|
|
23
|
-
Use browser.tabs.new and browser.user.claimTab when you need a Tab handle. A raw Chrome call returns a Chrome-shaped value, not a Tab.
|
|
24
|
-
A watch handle supports read({cursor,limit}) and close(). Reads report dropped/reset information. js_reset and session finalization release subscriptions.
|
|
25
|
-
Extension installation, Native Messaging, Chrome profiles, tabGroups and extension service workers are not involved.`,
|
|
26
|
-
troubleshooting: `# Embedded recovery
|
|
27
|
-
Run doctor for runtime and JavaScript state. The host application supplies the backend; do not run CLI setup or install an extension.
|
|
28
|
-
tab_not_found: no registered tab matches. List browser.user.openTabs and use a reported tabId; active selection must be supplied by the host.
|
|
29
|
-
invalid_tab_id: malformed handle; use the full tab.id, not a variable name or numeric tabId.
|
|
30
|
-
page_released: claim the same tab again. tab_closed: the logical tab was removed. already_claimed: another session owns it. page_unavailable: the id is unknown or outside this session scope.
|
|
31
|
-
page_not_ready/stale_page: the host must restore or attach a live execution resource for this logical tab.
|
|
32
|
-
host_callback_failed/host_contract_violation: inspect the reported phase and tab state; correct the host callback.
|
|
33
|
-
load_cancelled/tab_load_timeout: loading was revoked or exceeded its deadline; inspect current ownership before retrying.
|
|
34
|
-
debugger_in_use: another debugger owns the target. Ask the host to release it; do not steal its attachment.
|
|
35
|
-
profile_mismatch: the host supplied a webContents from the wrong Electron Session. This requires a host integration fix.
|
|
36
|
-
capability_unavailable: inspect browser.chrome.describe or browser.capabilities.list; do not assume every Chrome API is implemented.
|
|
37
|
-
command_outcome_unknown: inspect current page/site state before repeating a write.
|
|
38
|
-
cleanup_failed: the host could not close an owned page. Retry service cleanup after correcting the host callback.`,
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=embedded.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"embedded.js","sourceRoot":"","sources":["../../../src/docs/embedded.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,CAAC,MAAM,aAAa,GAA2B;IACnD,YAAY,EAAE;;;;;;;;;;;;wDAYwC;IACtD,qBAAqB,EAAE;;;;;;;;;qHAS4F;IACnH,eAAe,EAAE;;;;;;;;;;;;kHAY+F;CACjH,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type DocMode = 'included' | 'model' | 'lookup';
|
|
2
|
-
export interface DocEntry {
|
|
3
|
-
name: string;
|
|
4
|
-
mode: DocMode;
|
|
5
|
-
description?: string;
|
|
6
|
-
when?: {
|
|
7
|
-
backends?: Array<'extension' | 'electron' | 'none'>;
|
|
8
|
-
capabilities?: string[];
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface DocContext {
|
|
12
|
-
backend: 'extension' | 'electron' | 'none';
|
|
13
|
-
capabilities: string[];
|
|
14
|
-
}
|
|
15
|
-
export declare const DOCS_MANIFEST: DocEntry[];
|
|
16
|
-
export declare function readDoc(name: string): string | null;
|
|
17
|
-
export declare function readDocForContext(name: string, ctx: DocContext, member?: string): string | null;
|
|
18
|
-
export declare function listDocs(ctx: DocContext): Array<DocEntry & {
|
|
19
|
-
available: boolean;
|
|
20
|
-
}>;
|
|
21
|
-
export declare function applies(d: DocEntry, ctx: DocContext): boolean;
|
|
22
|
-
/** Concatenate all `included` docs that apply → MCP server instructions (memoized per context). */
|
|
23
|
-
export declare function buildInstructions(ctx: DocContext): string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** Runtime capability catalog shared by browser discovery and model-facing API projection. */
|
|
2
|
-
import type { BrowserFeature } from '../protocol.js';
|
|
3
|
-
export declare const BROWSER_CAPABILITIES: Array<{
|
|
4
|
-
id: BrowserFeature;
|
|
5
|
-
description: string;
|
|
6
|
-
doc?: string;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const TAB_FEATURES: Record<string, BrowserFeature>;
|
|
9
|
-
/** Keep generated source documentation complete on disk; project only available members for an MCP client. */
|
|
10
|
-
export declare function projectApiReference(source: string, features: readonly BrowserFeature[]): string;
|
|
11
|
-
/** Slice the generated reference and include the value types needed by that member. */
|
|
12
|
-
export declare function selectApiReference(source: string, member: string): string | null;
|