@vforsh/argus-core 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/auth/cookies.d.ts +20 -0
- package/dist/auth/cookies.d.ts.map +1 -1
- package/dist/auth/cookies.js +56 -0
- package/dist/auth/cookies.js.map +1 -1
- package/dist/auth/state.d.ts +31 -0
- package/dist/auth/state.d.ts.map +1 -0
- package/dist/auth/state.js +189 -0
- package/dist/auth/state.js.map +1 -0
- package/dist/http/fetch.d.ts +11 -0
- package/dist/http/fetch.d.ts.map +1 -0
- package/dist/http/fetch.js +80 -0
- package/dist/http/fetch.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/protocol/http/auth.d.ts +140 -0
- package/dist/protocol/http/auth.d.ts.map +1 -1
- package/dist/protocol/http/auth.js +2 -1
- package/dist/protocol/http/auth.js.map +1 -1
- package/dist/protocol/http/code.d.ts +11 -0
- package/dist/protocol/http/code.d.ts.map +1 -1
- package/dist/protocol/http/dialog.d.ts +28 -0
- package/dist/protocol/http/dialog.d.ts.map +1 -0
- package/dist/protocol/http/dialog.js +2 -0
- package/dist/protocol/http/dialog.js.map +1 -0
- package/dist/protocol/http/dom.d.ts +21 -12
- package/dist/protocol/http/dom.d.ts.map +1 -1
- package/dist/protocol/http/locate.d.ts +46 -0
- package/dist/protocol/http/locate.d.ts.map +1 -0
- package/dist/protocol/http/locate.js +2 -0
- package/dist/protocol/http/locate.js.map +1 -0
- package/dist/protocol/http/net.d.ts +91 -0
- package/dist/protocol/http/net.d.ts.map +1 -1
- package/dist/protocol/http/snapshot.d.ts +2 -0
- package/dist/protocol/http/snapshot.d.ts.map +1 -1
- package/dist/protocol/http/status.d.ts +2 -0
- package/dist/protocol/http/status.d.ts.map +1 -1
- package/dist/protocol/http/storage.d.ts +48 -25
- package/dist/protocol/http/storage.d.ts.map +1 -1
- package/dist/protocol/http.d.ts +3 -0
- package/dist/protocol/http.d.ts.map +1 -1
- package/dist/protocol/http.js +1 -1
- package/dist/protocol/http.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/** Stable element ref emitted by `snapshot` / `locate` and accepted by ref-aware commands. */
|
|
2
|
+
export type ElementRef = string;
|
|
3
|
+
/** Shared element-target shape for commands that can address a node by selector or ref. */
|
|
4
|
+
export type DomElementTarget = {
|
|
5
|
+
/** CSS selector to match element(s). */
|
|
6
|
+
selector?: string;
|
|
7
|
+
/** Stable element ref such as "e12". Mutually exclusive with selector. */
|
|
8
|
+
ref?: ElementRef;
|
|
9
|
+
};
|
|
1
10
|
/**
|
|
2
11
|
* A node in the DOM element tree.
|
|
3
12
|
* Only contains element nodes (nodeType === 1); text/comment nodes are filtered out.
|
|
@@ -18,6 +27,8 @@ export type DomNode = {
|
|
|
18
27
|
* Detailed info about a single DOM element.
|
|
19
28
|
*/
|
|
20
29
|
export type DomElementInfo = {
|
|
30
|
+
/** Stable element ref when the watcher can map this element back to a DOM-backed action target. */
|
|
31
|
+
ref?: ElementRef;
|
|
21
32
|
/** CDP node ID. */
|
|
22
33
|
nodeId: number;
|
|
23
34
|
/** Lowercased tag name. */
|
|
@@ -63,9 +74,7 @@ export type DomTreeResponse = {
|
|
|
63
74
|
/**
|
|
64
75
|
* Request payload for POST /dom/info.
|
|
65
76
|
*/
|
|
66
|
-
export type DomInfoRequest = {
|
|
67
|
-
/** CSS selector to match element(s). */
|
|
68
|
-
selector: string;
|
|
77
|
+
export type DomInfoRequest = DomElementTarget & {
|
|
69
78
|
/** Allow multiple matches. If false and >1 match, error. Default: false. */
|
|
70
79
|
all?: boolean;
|
|
71
80
|
/** Max characters for outerHTML. Default: 50000. */
|
|
@@ -86,9 +95,7 @@ export type DomInfoResponse = {
|
|
|
86
95
|
/**
|
|
87
96
|
* Request payload for POST /dom/hover.
|
|
88
97
|
*/
|
|
89
|
-
export type DomHoverRequest = {
|
|
90
|
-
/** CSS selector to match element(s). */
|
|
91
|
-
selector: string;
|
|
98
|
+
export type DomHoverRequest = DomElementTarget & {
|
|
92
99
|
/** Allow multiple matches. If false and >1 match, error. Default: false. */
|
|
93
100
|
all?: boolean;
|
|
94
101
|
/** Filter elements by trimmed textContent. Plain string = exact match. /regex/flags = regex test. */
|
|
@@ -112,6 +119,8 @@ export type MouseButton = 'left' | 'middle' | 'right';
|
|
|
112
119
|
export type DomClickRequest = {
|
|
113
120
|
/** CSS selector to match element(s). */
|
|
114
121
|
selector?: string;
|
|
122
|
+
/** Stable element ref to click. Mutually exclusive with selector. */
|
|
123
|
+
ref?: ElementRef;
|
|
115
124
|
/** Allow multiple matches. If false and >1 match, error. Default: false. */
|
|
116
125
|
all?: boolean;
|
|
117
126
|
/** Viewport x-coordinate, or x-offset from element top-left when selector is set. */
|
|
@@ -283,6 +292,8 @@ export type DomSetFileResponse = {
|
|
|
283
292
|
export type DomScrollToRequest = {
|
|
284
293
|
/** CSS selector to match element(s). */
|
|
285
294
|
selector?: string;
|
|
295
|
+
/** Stable element ref to scroll. Mutually exclusive with selector. */
|
|
296
|
+
ref?: ElementRef;
|
|
286
297
|
/** Allow multiple matches. If false and >1 match, error. Default: false. */
|
|
287
298
|
all?: boolean;
|
|
288
299
|
/** Filter elements by trimmed textContent. Plain string = exact match. /regex/flags = regex test. */
|
|
@@ -319,6 +330,8 @@ export type DomScrollToResponse = {
|
|
|
319
330
|
export type DomScrollRequest = {
|
|
320
331
|
/** CSS selector to match element(s) — scroll origin is element center. */
|
|
321
332
|
selector?: string;
|
|
333
|
+
/** Stable element ref — scroll origin is element center. Mutually exclusive with selector/x/y. */
|
|
334
|
+
ref?: ElementRef;
|
|
322
335
|
/** Allow multiple matches. If false and >1 match, error. Default: false. */
|
|
323
336
|
all?: boolean;
|
|
324
337
|
/** Filter elements by trimmed textContent. Plain string = exact match. /regex/flags = regex test. */
|
|
@@ -346,9 +359,7 @@ export type DomScrollResponse = {
|
|
|
346
359
|
/**
|
|
347
360
|
* Request payload for POST /dom/fill.
|
|
348
361
|
*/
|
|
349
|
-
export type DomFillRequest = {
|
|
350
|
-
/** CSS selector to match input/textarea/contenteditable element(s). */
|
|
351
|
-
selector: string;
|
|
362
|
+
export type DomFillRequest = DomElementTarget & {
|
|
352
363
|
/** Value to fill into the element. */
|
|
353
364
|
value: string;
|
|
354
365
|
/** Allow multiple matches. If false and >1 match, error. Default: false. */
|
|
@@ -371,9 +382,7 @@ export type DomFillResponse = {
|
|
|
371
382
|
/**
|
|
372
383
|
* Request payload for POST /dom/focus.
|
|
373
384
|
*/
|
|
374
|
-
export type DomFocusRequest = {
|
|
375
|
-
/** CSS selector to match element(s). */
|
|
376
|
-
selector: string;
|
|
385
|
+
export type DomFocusRequest = DomElementTarget & {
|
|
377
386
|
/** Allow multiple matches. If false and >1 match, error. Default: false. */
|
|
378
387
|
all?: boolean;
|
|
379
388
|
/** Filter elements by trimmed textContent. Plain string = exact match. /regex/flags = regex test. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/dom.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG;IACrB,mBAAmB;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAA;IACX,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,mBAAmB;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,iCAAiC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AG;IAC7B,EAAE,EAAE,IAAI,CAAA;IACR,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAA;IACf,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAChD,4EAA4E;IAC5E,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,qGAAqG;IACrG,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,IAAI,CAAA;IACR,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAA;IACf,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAA;CACf,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ElementRef } from './dom.js';
|
|
2
|
+
/** Common matching options for semantic element lookup commands. */
|
|
3
|
+
export type LocateMatchOptions = {
|
|
4
|
+
/** Allow multiple matches. If false and >1 match, the route returns an ambiguity error. */
|
|
5
|
+
all?: boolean;
|
|
6
|
+
/** Require an exact normalized string match instead of substring matching. */
|
|
7
|
+
exact?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/** Element summary returned by semantic locator routes. */
|
|
10
|
+
export type LocatedElement = {
|
|
11
|
+
/** Stable element ref that can be reused by ref-aware commands. */
|
|
12
|
+
ref: ElementRef;
|
|
13
|
+
/** Accessibility role used for semantic lookup. */
|
|
14
|
+
role: string;
|
|
15
|
+
/** Accessible name / label for the element. */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Current accessible value when relevant. */
|
|
18
|
+
value?: string;
|
|
19
|
+
/** Lower-cased DOM tag name when it can be resolved. */
|
|
20
|
+
tag?: string;
|
|
21
|
+
/** Selected DOM attributes useful for quick inspection. */
|
|
22
|
+
attributes?: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
export type LocateRoleRequest = LocateMatchOptions & {
|
|
25
|
+
/** Accessibility role to match (e.g. "button", "textbox", "link"). */
|
|
26
|
+
role: string;
|
|
27
|
+
/** Optional accessible name to match against the role result set. */
|
|
28
|
+
name?: string;
|
|
29
|
+
};
|
|
30
|
+
export type LocateTextRequest = LocateMatchOptions & {
|
|
31
|
+
/** Visible/accessible text to match against element names/values. */
|
|
32
|
+
text: string;
|
|
33
|
+
};
|
|
34
|
+
export type LocateLabelRequest = LocateMatchOptions & {
|
|
35
|
+
/** Form label / accessible name to match. */
|
|
36
|
+
label: string;
|
|
37
|
+
};
|
|
38
|
+
/** Shared response payload for `/locate/*` routes. */
|
|
39
|
+
export type LocateResponse = {
|
|
40
|
+
ok: true;
|
|
41
|
+
/** Number of matched semantic elements before any `all=false` truncation. */
|
|
42
|
+
matches: number;
|
|
43
|
+
/** Element summaries for the resolved matches. */
|
|
44
|
+
elements: LocatedElement[];
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=locate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locate.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/locate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C,oEAAoE;AACpE,MAAM,MAAM,kBAAkB,GAAG;IAChC,2FAA2F;IAC3F,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,8EAA8E;IAC9E,KAAK,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,2DAA2D;AAC3D,MAAM,MAAM,cAAc,GAAG;IAC5B,mEAAmE;IACnE,GAAG,EAAE,UAAU,CAAA;IACf,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAA;IACZ,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wDAAwD;IACxD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG;IACpD,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAA;IACZ,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG;IACpD,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,GAAG;IACrD,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,sDAAsD;AACtD,MAAM,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI,CAAA;IACR,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAA;IACf,kDAAkD;IAClD,QAAQ,EAAE,cAAc,EAAE,CAAA;CAC1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locate.js","sourceRoot":"","sources":["../../../src/protocol/http/locate.ts"],"names":[],"mappings":""}
|
|
@@ -5,20 +5,88 @@ export type NetworkRequestSummary = {
|
|
|
5
5
|
requestId: string;
|
|
6
6
|
url: string;
|
|
7
7
|
method: string;
|
|
8
|
+
documentUrl: string | null;
|
|
8
9
|
/** Captured auth-related request headers with sensitive values redacted. */
|
|
9
10
|
requestHeaders?: Record<string, string>;
|
|
10
11
|
resourceType: string | null;
|
|
12
|
+
mimeType: string | null;
|
|
13
|
+
frameId: string | null;
|
|
11
14
|
status: number | null;
|
|
12
15
|
encodedDataLength: number | null;
|
|
13
16
|
errorText: string | null;
|
|
14
17
|
durationMs: number | null;
|
|
15
18
|
};
|
|
19
|
+
/** Single stack frame from a network initiator trace. */
|
|
20
|
+
export type NetworkInitiatorStackFrame = {
|
|
21
|
+
functionName: string | null;
|
|
22
|
+
url: string;
|
|
23
|
+
lineNumber: number | null;
|
|
24
|
+
columnNumber: number | null;
|
|
25
|
+
};
|
|
26
|
+
/** Why a request started, when CDP can attribute it. */
|
|
27
|
+
export type NetworkInitiator = {
|
|
28
|
+
type: string | null;
|
|
29
|
+
url: string | null;
|
|
30
|
+
lineNumber: number | null;
|
|
31
|
+
columnNumber: number | null;
|
|
32
|
+
requestId: string | null;
|
|
33
|
+
stack: NetworkInitiatorStackFrame[];
|
|
34
|
+
};
|
|
35
|
+
/** Redirect hop observed before the final request URL. */
|
|
36
|
+
export type NetworkRedirectHop = {
|
|
37
|
+
fromUrl: string;
|
|
38
|
+
toUrl: string;
|
|
39
|
+
status: number | null;
|
|
40
|
+
statusText: string | null;
|
|
41
|
+
};
|
|
42
|
+
/** High-signal request timing breakdown derived from CDP response timing. */
|
|
43
|
+
export type NetworkTimingPhases = {
|
|
44
|
+
totalMs: number | null;
|
|
45
|
+
blockedMs: number | null;
|
|
46
|
+
dnsMs: number | null;
|
|
47
|
+
connectMs: number | null;
|
|
48
|
+
sslMs: number | null;
|
|
49
|
+
sendMs: number | null;
|
|
50
|
+
waitMs: number | null;
|
|
51
|
+
downloadMs: number | null;
|
|
52
|
+
};
|
|
53
|
+
/** Whether Argus expects request/response bodies to be fetchable for a buffered entry. */
|
|
54
|
+
export type NetworkBodyAvailability = {
|
|
55
|
+
request: boolean;
|
|
56
|
+
response: boolean;
|
|
57
|
+
};
|
|
58
|
+
/** Full request record used by `net show`. */
|
|
59
|
+
export type NetworkRequestDetail = NetworkRequestSummary & {
|
|
60
|
+
requestHeaders?: Record<string, string>;
|
|
61
|
+
responseHeaders?: Record<string, string>;
|
|
62
|
+
statusText: string | null;
|
|
63
|
+
loaderId: string | null;
|
|
64
|
+
initiator: NetworkInitiator | null;
|
|
65
|
+
redirects: NetworkRedirectHop[];
|
|
66
|
+
servedFromCache: boolean;
|
|
67
|
+
fromDiskCache: boolean;
|
|
68
|
+
fromPrefetchCache: boolean;
|
|
69
|
+
fromServiceWorker: boolean;
|
|
70
|
+
serviceWorkerResponseSource: string | null;
|
|
71
|
+
remoteAddress: string | null;
|
|
72
|
+
remotePort: number | null;
|
|
73
|
+
protocol: string | null;
|
|
74
|
+
priority: string | null;
|
|
75
|
+
timingPhases: NetworkTimingPhases | null;
|
|
76
|
+
body: NetworkBodyAvailability;
|
|
77
|
+
};
|
|
16
78
|
/** Response payload for GET /net. */
|
|
17
79
|
export type NetResponse = {
|
|
18
80
|
ok: true;
|
|
19
81
|
requests: NetworkRequestSummary[];
|
|
20
82
|
nextAfter: number;
|
|
21
83
|
};
|
|
84
|
+
/** Response payload for GET /net/requests. */
|
|
85
|
+
export type NetRequestsResponse = {
|
|
86
|
+
ok: true;
|
|
87
|
+
requests: NetworkRequestDetail[];
|
|
88
|
+
nextAfter: number;
|
|
89
|
+
};
|
|
22
90
|
/** Response payload for GET /net/tail. */
|
|
23
91
|
export type NetTailResponse = {
|
|
24
92
|
ok: true;
|
|
@@ -26,4 +94,27 @@ export type NetTailResponse = {
|
|
|
26
94
|
nextAfter: number;
|
|
27
95
|
timedOut: boolean;
|
|
28
96
|
};
|
|
97
|
+
/** Response payload for POST /net/clear. */
|
|
98
|
+
export type NetClearResponse = {
|
|
99
|
+
ok: true;
|
|
100
|
+
/** Number of buffered requests removed. */
|
|
101
|
+
cleared: number;
|
|
102
|
+
};
|
|
103
|
+
/** Response payload for GET /net/request. */
|
|
104
|
+
export type NetRequestResponse = {
|
|
105
|
+
ok: true;
|
|
106
|
+
request: NetworkRequestDetail;
|
|
107
|
+
};
|
|
108
|
+
/** Which body payload to fetch for a buffered request. */
|
|
109
|
+
export type NetRequestBodyPart = 'request' | 'response';
|
|
110
|
+
/** Response payload for GET /net/request/body. */
|
|
111
|
+
export type NetRequestBodyResponse = {
|
|
112
|
+
ok: true;
|
|
113
|
+
id: number;
|
|
114
|
+
requestId: string;
|
|
115
|
+
part: NetRequestBodyPart;
|
|
116
|
+
mimeType: string | null;
|
|
117
|
+
body: string;
|
|
118
|
+
base64Encoded: boolean;
|
|
119
|
+
};
|
|
29
120
|
//# sourceMappingURL=net.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"net.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/net.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,MAAM,MAAM,qBAAqB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACvC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAEzB,CAAA;AAED,qCAAqC;AACrC,MAAM,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,IAAI,CAAA;IACR,QAAQ,EAAE,qBAAqB,EAAE,CAAA;IACjC,SAAS,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,eAAe,GAAG;IAC7B,EAAE,EAAE,IAAI,CAAA;IACR,QAAQ,EAAE,qBAAqB,EAAE,CAAA;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
1
|
+
{"version":3,"file":"net.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/net.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,MAAM,MAAM,qBAAqB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,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5
|
export type AXTreeNode = {
|
|
6
|
+
/** Stable element ref for actionable DOM-backed nodes (e.g. "e12"). */
|
|
7
|
+
ref?: string;
|
|
6
8
|
/** Accessibility role (e.g. "button", "textbox", "heading", "link"). */
|
|
7
9
|
role: string;
|
|
8
10
|
/** Accessible name (visible label or aria-label). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/snapshot.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAA;IACZ,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;IACtD,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,IAAI,CAAA;IACR,4CAA4C;IAC5C,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,aAAa,EAAE,MAAM,CAAA;CACrB,CAAA"}
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/snapshot.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAA;IACZ,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;IACtD,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,IAAI,CAAA;IACR,4CAA4C;IAC5C,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,aAAa,EAAE,MAAM,CAAA;CACrB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { WatcherRecord } from '../../registry/types.js';
|
|
2
|
+
import type { DialogStatus } from './dialog.js';
|
|
2
3
|
import type { ArgusProtocolVersion } from '../version.js';
|
|
3
4
|
/** Response payload for GET /status. */
|
|
4
5
|
export type StatusResponse = {
|
|
@@ -10,6 +11,7 @@ export type StatusResponse = {
|
|
|
10
11
|
title: string | null;
|
|
11
12
|
url: string | null;
|
|
12
13
|
} | null;
|
|
14
|
+
dialog?: DialogStatus | null;
|
|
13
15
|
buffer: {
|
|
14
16
|
size: number;
|
|
15
17
|
count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAEzD,wCAAwC;AACxC,MAAM,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI,CAAA;IACR,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE;QACP,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;QACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;KAClB,GAAG,IAAI,CAAA;IACR,MAAM,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;QACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KACpB,CAAA;IACD,OAAO,EAAE,aAAa,CAAA;IACtB,kDAAkD;IAClD,eAAe,CAAC,EAAE,oBAAoB,CAAA;IACtC,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,2CAA2C;AAC3C,MAAM,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,IAAI,CAAA;CACR,CAAA;AAED,wCAAwC;AACxC,MAAM,MAAM,aAAa,GAAG;IAC3B,qDAAqD;IACrD,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,yCAAyC;AACzC,MAAM,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI,CAAA;CACR,CAAA"}
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAEzD,wCAAwC;AACxC,MAAM,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI,CAAA;IACR,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE;QACP,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;QACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;KAClB,GAAG,IAAI,CAAA;IACR,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAC5B,MAAM,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;QACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KACpB,CAAA;IACD,OAAO,EAAE,aAAa,CAAA;IACtB,kDAAkD;IAClD,eAAe,CAAC,EAAE,oBAAoB,CAAA;IACtC,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,2CAA2C;AAC3C,MAAM,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,IAAI,CAAA;CACR,CAAA;AAED,wCAAwC;AACxC,MAAM,MAAM,aAAa,GAAG;IAC3B,qDAAqD;IACrD,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,yCAAyC;AACzC,MAAM,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,IAAI,CAAA;CACR,CAAA"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
export type
|
|
1
|
+
/** Storage areas exposed by the watcher API. */
|
|
2
|
+
export type StorageArea = 'local' | 'session';
|
|
3
|
+
/** Supported operations for POST /storage/<area>. */
|
|
4
|
+
export type StorageAction = 'get' | 'set' | 'remove' | 'list' | 'clear';
|
|
5
|
+
/** Request payload for POST /storage/<area>. */
|
|
6
|
+
export type StorageRequest = {
|
|
3
7
|
/** The operation to perform. */
|
|
4
|
-
action:
|
|
8
|
+
action: StorageAction;
|
|
5
9
|
/** Key for get/set/remove operations. */
|
|
6
10
|
key?: string;
|
|
7
11
|
/** Value for set operation. */
|
|
@@ -9,38 +13,57 @@ export type StorageLocalRequest = {
|
|
|
9
13
|
/** Optional origin to validate against page's current origin. */
|
|
10
14
|
origin?: string;
|
|
11
15
|
};
|
|
12
|
-
|
|
13
|
-
export type StorageLocalGetResponse = {
|
|
16
|
+
type StorageResponseBase = {
|
|
14
17
|
ok: true;
|
|
15
18
|
origin: string;
|
|
19
|
+
};
|
|
20
|
+
/** Response payload for POST /storage/<area> (get). */
|
|
21
|
+
export type StorageGetResponse = StorageResponseBase & {
|
|
16
22
|
key: string;
|
|
17
23
|
exists: boolean;
|
|
18
24
|
value: string | null;
|
|
19
25
|
};
|
|
20
|
-
/** Response payload for POST /storage
|
|
21
|
-
export type
|
|
22
|
-
ok: true;
|
|
23
|
-
origin: string;
|
|
26
|
+
/** Response payload for POST /storage/<area> (set/remove). */
|
|
27
|
+
export type StorageKeyMutationResponse = StorageResponseBase & {
|
|
24
28
|
key: string;
|
|
25
29
|
};
|
|
26
|
-
/** Response payload for POST /storage
|
|
27
|
-
export type
|
|
28
|
-
ok: true;
|
|
29
|
-
origin: string;
|
|
30
|
-
key: string;
|
|
31
|
-
};
|
|
32
|
-
/** Response payload for POST /storage/local (list). */
|
|
33
|
-
export type StorageLocalListResponse = {
|
|
34
|
-
ok: true;
|
|
35
|
-
origin: string;
|
|
30
|
+
/** Response payload for POST /storage/<area> (list). */
|
|
31
|
+
export type StorageListResponse = StorageResponseBase & {
|
|
36
32
|
keys: string[];
|
|
37
33
|
};
|
|
38
|
-
/** Response payload for POST /storage
|
|
39
|
-
export type
|
|
40
|
-
ok: true;
|
|
41
|
-
origin: string;
|
|
34
|
+
/** Response payload for POST /storage/<area> (clear). */
|
|
35
|
+
export type StorageClearResponse = StorageResponseBase & {
|
|
42
36
|
cleared: number;
|
|
43
37
|
};
|
|
44
|
-
/** Union of all storage
|
|
45
|
-
export type
|
|
38
|
+
/** Union of all storage responses. */
|
|
39
|
+
export type StorageResponse = StorageGetResponse | StorageKeyMutationResponse | StorageListResponse | StorageClearResponse;
|
|
40
|
+
/** Back-compat alias for the localStorage endpoint request. */
|
|
41
|
+
export type StorageLocalRequest = StorageRequest;
|
|
42
|
+
/** Back-compat alias for the localStorage endpoint get response. */
|
|
43
|
+
export type StorageLocalGetResponse = StorageGetResponse;
|
|
44
|
+
/** Back-compat alias for the localStorage endpoint set response. */
|
|
45
|
+
export type StorageLocalSetResponse = StorageKeyMutationResponse;
|
|
46
|
+
/** Back-compat alias for the localStorage endpoint remove response. */
|
|
47
|
+
export type StorageLocalRemoveResponse = StorageKeyMutationResponse;
|
|
48
|
+
/** Back-compat alias for the localStorage endpoint list response. */
|
|
49
|
+
export type StorageLocalListResponse = StorageListResponse;
|
|
50
|
+
/** Back-compat alias for the localStorage endpoint clear response. */
|
|
51
|
+
export type StorageLocalClearResponse = StorageClearResponse;
|
|
52
|
+
/** Back-compat alias for the localStorage endpoint response union. */
|
|
53
|
+
export type StorageLocalResponse = StorageResponse;
|
|
54
|
+
/** Alias for the sessionStorage endpoint request. */
|
|
55
|
+
export type StorageSessionRequest = StorageRequest;
|
|
56
|
+
/** Alias for the sessionStorage endpoint get response. */
|
|
57
|
+
export type StorageSessionGetResponse = StorageGetResponse;
|
|
58
|
+
/** Alias for the sessionStorage endpoint set response. */
|
|
59
|
+
export type StorageSessionSetResponse = StorageKeyMutationResponse;
|
|
60
|
+
/** Alias for the sessionStorage endpoint remove response. */
|
|
61
|
+
export type StorageSessionRemoveResponse = StorageKeyMutationResponse;
|
|
62
|
+
/** Alias for the sessionStorage endpoint list response. */
|
|
63
|
+
export type StorageSessionListResponse = StorageListResponse;
|
|
64
|
+
/** Alias for the sessionStorage endpoint clear response. */
|
|
65
|
+
export type StorageSessionClearResponse = StorageClearResponse;
|
|
66
|
+
/** Alias for the sessionStorage endpoint response union. */
|
|
67
|
+
export type StorageSessionResponse = StorageResponse;
|
|
68
|
+
export {};
|
|
46
69
|
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/storage.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/protocol/http/storage.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,CAAA;AAE7C,qDAAqD;AACrD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEvE,gDAAgD;AAChD,MAAM,MAAM,cAAc,GAAG;IAC5B,gCAAgC;IAChC,MAAM,EAAE,aAAa,CAAA;IACrB,yCAAyC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,mBAAmB,GAAG;IAC1B,EAAE,EAAE,IAAI,CAAA;IACR,MAAM,EAAE,MAAM,CAAA;CACd,CAAA;AAED,uDAAuD;AACvD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IACtD,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB,CAAA;AAED,8DAA8D;AAC9D,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,GAAG;IAC9D,GAAG,EAAE,MAAM,CAAA;CACX,CAAA;AAED,wDAAwD;AACxD,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACvD,IAAI,EAAE,MAAM,EAAE,CAAA;CACd,CAAA;AAED,yDAAyD;AACzD,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG;IACxD,OAAO,EAAE,MAAM,CAAA;CACf,CAAA;AAED,sCAAsC;AACtC,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG,0BAA0B,GAAG,mBAAmB,GAAG,oBAAoB,CAAA;AAE1H,+DAA+D;AAC/D,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAA;AAEhD,oEAAoE;AACpE,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAA;AAExD,oEAAoE;AACpE,MAAM,MAAM,uBAAuB,GAAG,0BAA0B,CAAA;AAEhE,uEAAuE;AACvE,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,CAAA;AAEnE,qEAAqE;AACrE,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAA;AAE1D,sEAAsE;AACtE,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,CAAA;AAE5D,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAA;AAElD,qDAAqD;AACrD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAA;AAElD,0DAA0D;AAC1D,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CAAA;AAE1D,0DAA0D;AAC1D,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,CAAA;AAElE,6DAA6D;AAC7D,MAAM,MAAM,4BAA4B,GAAG,0BAA0B,CAAA;AAErE,2DAA2D;AAC3D,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAA;AAE5D,4DAA4D;AAC5D,MAAM,MAAM,2BAA2B,GAAG,oBAAoB,CAAA;AAE9D,4DAA4D;AAC5D,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAA"}
|
package/dist/protocol/http.d.ts
CHANGED
|
@@ -5,11 +5,14 @@ export type * from './http/eval.js';
|
|
|
5
5
|
export type * from './http/trace.js';
|
|
6
6
|
export type * from './http/screenshot.js';
|
|
7
7
|
export type * from './http/snapshot.js';
|
|
8
|
+
export type * from './http/locate.js';
|
|
8
9
|
export type * from './http/code.js';
|
|
9
10
|
export type * from './http/dom.js';
|
|
10
11
|
export type * from './http/storage.js';
|
|
11
12
|
export type * from './http/auth.js';
|
|
13
|
+
export { AUTH_STATE_METADATA_SCHEMA_VERSION } from './http/auth.js';
|
|
12
14
|
export type * from './http/emulation.js';
|
|
13
15
|
export type * from './http/throttle.js';
|
|
16
|
+
export type * from './http/dialog.js';
|
|
14
17
|
export type * from './http/errors.js';
|
|
15
18
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/protocol/http.ts"],"names":[],"mappings":"AACA,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,iBAAiB,CAAA;AACpC,mBAAmB,sBAAsB,CAAA;AACzC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,qBAAqB,CAAA;AACxC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/protocol/http.ts"],"names":[],"mappings":"AACA,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,iBAAiB,CAAA;AACpC,mBAAmB,sBAAsB,CAAA;AACzC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,mBAAmB,CAAA;AACtC,mBAAmB,gBAAgB,CAAA;AACnC,OAAO,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAA;AACnE,mBAAmB,qBAAqB,CAAA;AACxC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,kBAAkB,CAAA"}
|
package/dist/protocol/http.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { AUTH_STATE_METADATA_SCHEMA_VERSION } from './http/auth.js';
|
|
2
2
|
//# sourceMappingURL=http.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/protocol/http.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/protocol/http.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vforsh/argus-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/vforsh/argus.git",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"
|
|
25
|
+
"clean": "node ../../scripts/clean-dist.mjs",
|
|
26
|
+
"build": "npm run clean && tsc -b",
|
|
26
27
|
"typecheck": "tsc -b --pretty false --noEmit"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|