@wenathlan/extension 1.1.41 → 1.1.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/README.md +6 -4
- package/dist/httpclient.d.ts +158 -0
- package/dist/httpclient.d.ts.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1358 -10
- package/dist/index.js.map +4 -4
- package/dist/memory.d.ts +73 -1
- package/dist/memory.d.ts.map +1 -1
- package/dist/netwatch.d.ts +92 -0
- package/dist/netwatch.d.ts.map +1 -0
- package/dist/policy.d.ts +40 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/protocol.d.ts +41 -4
- package/dist/protocol.d.ts.map +1 -1
- package/dist/socketbus.d.ts +134 -0
- package/dist/socketbus.d.ts.map +1 -0
- package/dist/types.d.ts +311 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/extension/dist/background.js +2090 -16
- package/extension/dist/background.js.map +4 -4
- package/extension/dist/manifest.json +1 -1
- package/extension/dist/pagebridge.js +29 -4
- package/extension/dist/pagebridge.js.map +2 -2
- package/extension/dist/popup.html +1 -1
- package/extension/dist/popup.js +19 -3
- package/extension/dist/popup.js.map +2 -2
- package/extension/dist/sidepanel.html +1 -1
- package/extension/dist/sidepanel.js +281 -3
- package/extension/dist/sidepanel.js.map +3 -3
- package/extension/dist/style.css +2 -0
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
package/dist/memory.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { a11ycapture, agentplan, agentsession, artifactinventoryentry, artifactrecord, auditevent, authrecord, bannerreport, capabilityreport, captchahandoff, capturecounter, clipboardconsentrecord, cleanuprule, cleanuprun, clipentry, clickablemap, closedtab, controltabstate, curatedlist, dataset, derivedselector, detectionrecord, diagnosticreport, dialogdecision, dialogpolicy, downloadrecord, endpointconfig, errorreport, exportedartifact, extractsession, focusevent, formprofile, imagebatch, keyholdstate, mediarecord, mimefilter, mutationevent, navcontrol, navintentrecord, navqueues, navrecord, netlogrecord, observationrecord, pagesignals, planprogress, provenancerecord, quarantineentry, ratelimitstate, readercapture, recenttab, recordingconsentrecord, recordingrecord, resolutionsummary, retryoutcome, runsettings, safetyverdict, scanhookconfig, sessionsnapshot, sheetendpoint, shotpair, shotrecord, snapshotdiff, stepoutcome, streamstate, submitticket, tabbadge, tabgrouprecord, tablayout, tabmeta, tabwatchevent, taskrules, templateprofile, trailentry, typeaheadpick, waitprofilerecord, watchregistration, wizardstate } from "./types.js";
|
|
1
|
+
import type { a11ycapture, agentplan, agentsession, apikeyref, apimapentry, artifactinventoryentry, artifactrecord, auditevent, authrecord, bannerreport, bodyrecord, callrecord, capabilityreport, captchahandoff, capturecounter, channelrecord, clipboardconsentrecord, cleanuprule, cleanuprun, clipentry, clickablemap, closedtab, controltabstate, curatedlist, dataset, derivedselector, detectionrecord, diagnosticreport, dialogdecision, dialogpolicy, downloadrecord, endpointconfig, endpointrecord, errorreport, eventsubscription, exchangerecord, exportedartifact, extractsession, fetchconsent, focusevent, formprofile, imagebatch, keyholdstate, mediarecord, messageenvelope, mimefilter, mutationevent, navcontrol, navintentrecord, navqueues, navrecord, netlogrecord, observationrecord, pagesignals, planprogress, provenancerecord, quarantineentry, ratelimitstate, readercapture, recenttab, recordingconsentrecord, recordingrecord, resolutionsummary, retryoutcome, runsettings, safetyverdict, scanhookconfig, sessionsnapshot, sheetendpoint, shotpair, shotrecord, snapshotdiff, stepoutcome, streamstate, submitticket, tabbadge, tabgrouprecord, tablayout, tabmeta, tabwatchevent, taskrules, templateprofile, trailentry, typeaheadpick, waitprofilerecord, watchregistration, wizardstate } from "./types.js";
|
|
2
2
|
/** Provides a small storage seam that works in browser, tests and future adapters. */
|
|
3
3
|
export interface memoryadapter {
|
|
4
4
|
get<T>(key: string): Promise<T | undefined>;
|
|
@@ -356,6 +356,78 @@ export declare class sessionmemory {
|
|
|
356
356
|
setrecordingconsent(record: recordingconsentrecord): Promise<void>;
|
|
357
357
|
/** Returns every recording consent decision with its prompt and origin, newest first. */
|
|
358
358
|
getrecordingconsents(): Promise<recordingconsentrecord[]>;
|
|
359
|
+
/** Stores one outbound call record with its transport facts and body, replacing the previous record of that id; the user configured call retention window expires the oldest bodies while the metadata always survives. */
|
|
360
|
+
addcall(record: callrecord): Promise<void>;
|
|
361
|
+
/** Returns every stored outbound call record, newest first. */
|
|
362
|
+
getcalls(): Promise<callrecord[]>;
|
|
363
|
+
/** Returns one outbound call record with its body by its id. */
|
|
364
|
+
getcall(id: string): Promise<callrecord | undefined>;
|
|
365
|
+
/** Returns the outbound call records filtered by run and origin; an absent filter returns every call. */
|
|
366
|
+
listcalls(filter: {
|
|
367
|
+
runid?: string;
|
|
368
|
+
origin?: string;
|
|
369
|
+
}): Promise<callrecord[]>;
|
|
370
|
+
/** Stores one typed endpoint definition version, appending to the version history of that endpoint name. */
|
|
371
|
+
setendpoint(record: endpointrecord): Promise<void>;
|
|
372
|
+
/** Returns the newest endpointrecord definition of one name with its payload schema and version. */
|
|
373
|
+
getendpoint(name: string): Promise<endpointrecord | undefined>;
|
|
374
|
+
/** Returns the newest definition of every typed endpoint name with its schema and version history. */
|
|
375
|
+
getendpoints(): Promise<endpointrecord[]>;
|
|
376
|
+
/** Stores one fetch consent decision per origin with its reviewed header names and values and its expiry window. */
|
|
377
|
+
setfetchconsent(consent: fetchconsent): Promise<void>;
|
|
378
|
+
/** Returns every fetch consent decision with its origin, header names and expiry window, newest first. */
|
|
379
|
+
getfetchconsents(): Promise<fetchconsent[]>;
|
|
380
|
+
/** Stores one api key reference record without any key material; the secret value stays behind its storage id. */
|
|
381
|
+
setapikey(ref: apikeyref): Promise<void>;
|
|
382
|
+
/** Returns every stored api key reference with its origin scope, header name and storage id; key material never loads here. */
|
|
383
|
+
getapikeys(): Promise<apikeyref[]>;
|
|
384
|
+
/** Removes one api key reference and its stored secret together. */
|
|
385
|
+
removeapikey(name: string): Promise<void>;
|
|
386
|
+
/** Stores one api key secret under its storage id; the value never appears in reports, outcomes or the audit trail. */
|
|
387
|
+
setsecret(storageid: string, value: string): Promise<void>;
|
|
388
|
+
/** Loads one api key secret under its storage id for the executor only. */
|
|
389
|
+
getsecret(storageid: string): Promise<string | undefined>;
|
|
390
|
+
/** Stores one channel record of a socket or event stream, replacing the previous record of that id. */
|
|
391
|
+
addchannel(record: channelrecord): Promise<void>;
|
|
392
|
+
/** Returns every stored channel record, newest first. */
|
|
393
|
+
getchannels(): Promise<channelrecord[]>;
|
|
394
|
+
/** Returns one channel record by its id. */
|
|
395
|
+
getchannel(id: string): Promise<channelrecord | undefined>;
|
|
396
|
+
/** Queues one message envelope of a channel stream, keeping the arrival order for the waitmessage matchers. */
|
|
397
|
+
addmessage(envelope: messageenvelope): Promise<void>;
|
|
398
|
+
/** Returns every queued message envelope, oldest first, optionally filtered by channel and stream. */
|
|
399
|
+
getmessages(channelid?: string, stream?: string): Promise<messageenvelope[]>;
|
|
400
|
+
/** Drops the matched message envelopes of one channel from the queue once a waitmessage step consumed them. */
|
|
401
|
+
drainmessages(sequences: Array<{
|
|
402
|
+
channelid: string;
|
|
403
|
+
sequence: number;
|
|
404
|
+
}>): Promise<void>;
|
|
405
|
+
/** Stores one observed exchange record, replacing the previous record of that id. */
|
|
406
|
+
addexchange(record: exchangerecord): Promise<void>;
|
|
407
|
+
/** Returns every stored exchange record, newest first. */
|
|
408
|
+
getexchanges(): Promise<exchangerecord[]>;
|
|
409
|
+
/** Returns one exchange record by its id. */
|
|
410
|
+
getexchange(id: string): Promise<exchangerecord | undefined>;
|
|
411
|
+
/** Returns the exchange records filtered by run, origin and status; the status filter accepts one code or the failed class of every exchange with an error class. */
|
|
412
|
+
listexchanges(filter: {
|
|
413
|
+
runid?: string;
|
|
414
|
+
origin?: string;
|
|
415
|
+
status?: number | "failed";
|
|
416
|
+
}): Promise<exchangerecord[]>;
|
|
417
|
+
/** Stores one captured response body with its mime type and byte size; the user configured body retention window expires the oldest bodies while the exchange metadata always survives. */
|
|
418
|
+
addbody(record: bodyrecord): Promise<void>;
|
|
419
|
+
/** Returns every captured body record, newest first. */
|
|
420
|
+
getbodies(): Promise<bodyrecord[]>;
|
|
421
|
+
/** Returns one captured body record with its stored text by its reference. */
|
|
422
|
+
getbody(ref: string): Promise<bodyrecord | undefined>;
|
|
423
|
+
/** Stores the page api map of one origin, replacing the previous map of that origin. */
|
|
424
|
+
setapimap(origin: string, entries: apimapentry[]): Promise<void>;
|
|
425
|
+
/** Returns every stored page api map entry, newest first. */
|
|
426
|
+
getapimap(): Promise<apimapentry[]>;
|
|
427
|
+
/** Stores one event stream subscription record, replacing the previous record of that id. */
|
|
428
|
+
setsubscription(record: eventsubscription): Promise<void>;
|
|
429
|
+
/** Returns every stored event stream subscription, newest first. */
|
|
430
|
+
getsubscriptions(): Promise<eventsubscription[]>;
|
|
359
431
|
}
|
|
360
432
|
/** Creates identifiers locally without a network dependency. */
|
|
361
433
|
export declare function randomid(): string;
|
package/dist/memory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAe,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAgB,cAAc,EAAE,cAAc,EAAE,sBAAsB,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAe,UAAU,EAAE,YAAY,EAAE,WAAW,EAAa,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,eAA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AAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAoE;IAE7G,6FAA6F;IACvF,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAG9D;IAED,oEAAoE;IAC9D,gBAAgB,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAiF;CACxI;AAkDD,gEAAgE;AAChE,wBAAgB,QAAQ,IAAI,MAAM,CAEjC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { apimapentry, apireplayspec, bodyfilter, bodyrecord, exchangerecord, headerfilter, responseentry } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Network observation part two watch logics for the 1.1.43 family.
|
|
4
|
+
* Every correlated rule for the derived request observation of the run tab, the correlation ids that join request and response pairs, the header reading with allowlists and redaction, the response body capture inside reviewed byte ceilings, the page api mapping with frequency, json share and payload stability ranking and the api replay extraction paths lives in this file.
|
|
5
|
+
* The page observation derives from the timing and navigation buffers the page itself exposes, so request and response headers and bodies exist only for exchanges captured through the extension context; header values are redacted before storage and body bytes never enter any audit summary.
|
|
6
|
+
*/
|
|
7
|
+
/** The netwatch kinds, listed among the available capabilities of every proposal request. */
|
|
8
|
+
export declare const netwatchkinds: string[];
|
|
9
|
+
/** One derived request fact of the page timing buffers: url, initiator, timing, transfer size, protocol and the status a navigation entry exposes. */
|
|
10
|
+
export interface resourcefact {
|
|
11
|
+
url: string;
|
|
12
|
+
initiator: string;
|
|
13
|
+
entrytype: string;
|
|
14
|
+
start: number;
|
|
15
|
+
duration: number;
|
|
16
|
+
transfer: number;
|
|
17
|
+
protocol: string;
|
|
18
|
+
status?: number;
|
|
19
|
+
/** Explicit failure flag a navigation buffer reports, for example a net error. */
|
|
20
|
+
failed?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** Normalizes raw timing buffer entries into derived request facts; navigation entries contribute the response status they expose. */
|
|
23
|
+
export declare function resourcefacts(entries: Array<Record<string, unknown>>): resourcefact[];
|
|
24
|
+
/** Classifies one derived request failure: an exposed status of four hundred or more is an http error and an explicit failure flag or a zero transfer fetch without a protocol is a network error; everything else reports no error class. */
|
|
25
|
+
export declare function failureclass(fact: resourcefact): {
|
|
26
|
+
errorclass?: "httperror" | "networkerror";
|
|
27
|
+
status: number;
|
|
28
|
+
};
|
|
29
|
+
/** Assigns one correlation id per run request, ordered by first observation. */
|
|
30
|
+
export declare function correlationid(runid: string, index: number): string;
|
|
31
|
+
/** Creates one observed exchange record from a derived request fact: the method stays honest with a question mark for fetch initiators the timing buffers cannot name, and the status and error class come from what the buffers expose. */
|
|
32
|
+
export declare function newexchange(input: {
|
|
33
|
+
id: string;
|
|
34
|
+
runid: string;
|
|
35
|
+
stepid: string;
|
|
36
|
+
correlationid: string;
|
|
37
|
+
fact: resourcefact;
|
|
38
|
+
at: number;
|
|
39
|
+
}): exchangerecord;
|
|
40
|
+
/** Joins one captured response entry onto its exchange through the shared correlation id; a mismatching correlation id is refused instead of paired. */
|
|
41
|
+
export declare function pairexchange(exchange: exchangerecord, response: responseentry): exchangerecord;
|
|
42
|
+
/** Filters observed exchanges by run, origin and status; the status filter accepts one status code or the failed class of every exchange with an error class. */
|
|
43
|
+
export declare function filterexchanges(exchanges: exchangerecord[], filter: {
|
|
44
|
+
runid?: string;
|
|
45
|
+
origin?: string;
|
|
46
|
+
status?: number | "failed";
|
|
47
|
+
}): exchangerecord[];
|
|
48
|
+
/** Normalizes a reviewed header filter: the name allowlist and the redaction list, both lowercased; the redaction list is required before any header value is stored. */
|
|
49
|
+
export declare function headerfilterof(value: unknown): headerfilter;
|
|
50
|
+
/** Applies one header filter to captured headers: only allowlisted names survive and redaction listed names keep their name with the value replaced by the redaction marker before storage. */
|
|
51
|
+
export declare function capturedheaders(headers: Record<string, string>, filter: headerfilter): Record<string, string>;
|
|
52
|
+
/** Normalizes a reviewed body filter: url pattern, mime list and the byte ceiling of one captured body; the ceiling stays a user configured value with no code ceiling. */
|
|
53
|
+
export declare function bodyfilterof(value: unknown): bodyfilter;
|
|
54
|
+
/** True when one exchange matches the reviewed body filter: the url pattern appears inside the exchange url and the mime list, when reviewed, carries the exchange mime. */
|
|
55
|
+
export declare function bodymatches(filter: bodyfilter, exchange: {
|
|
56
|
+
url: string;
|
|
57
|
+
mime?: string;
|
|
58
|
+
}): boolean;
|
|
59
|
+
/** True when a mime type carries private document or data payloads instead of public static assets. */
|
|
60
|
+
export declare function privatemime(mime: string): boolean;
|
|
61
|
+
/** Captures one response body inside the reviewed byte ceiling: the stored body truncates at the ceiling and the record keeps the stored byte size with its correlation linkage. */
|
|
62
|
+
export declare function capturebody(input: {
|
|
63
|
+
ref: string;
|
|
64
|
+
runid: string;
|
|
65
|
+
exchange: exchangerecord;
|
|
66
|
+
body: string;
|
|
67
|
+
mime: string;
|
|
68
|
+
filter: bodyfilter;
|
|
69
|
+
at: number;
|
|
70
|
+
}): {
|
|
71
|
+
record: bodyrecord;
|
|
72
|
+
truncated: boolean;
|
|
73
|
+
} | {
|
|
74
|
+
refused: string;
|
|
75
|
+
};
|
|
76
|
+
/** Reads the payload shape of one captured body: the field names of a json object in first seen order, with array bodies reporting the shape of their first element. */
|
|
77
|
+
export declare function payloadshapeof(body: string | undefined): string[];
|
|
78
|
+
/** Builds the page api map of the run from observed exchanges and captured bodies: endpoint, method, mime, frequency, json share and payload stability with their correlation ids. */
|
|
79
|
+
export declare function apientries(exchanges: exchangerecord[], bodies: bodyrecord[]): apimapentry[];
|
|
80
|
+
/** Ranks page api entries by frequency, json share and payload stability so the most used stable json endpoints surface first. */
|
|
81
|
+
export declare function rankapis(entries: apimapentry[]): apimapentry[];
|
|
82
|
+
/** Normalizes a reviewed api replay spec: the captured endpoint, the replay verb, the parameter overrides and the dotted extraction paths. */
|
|
83
|
+
export declare function apireplayspecof(value: unknown): apireplayspec | undefined;
|
|
84
|
+
/** Builds the replay url of one captured endpoint with the reviewed parameter overrides applied as query parameters. */
|
|
85
|
+
export declare function replayurl(spec: apireplayspec): string;
|
|
86
|
+
/** Maps one replayed response body onto the reviewed dotted extraction paths, reporting a miss instead of crashing when a path finds nothing. */
|
|
87
|
+
export declare function extractvalues(body: string, paths: string[]): Array<{
|
|
88
|
+
path: string;
|
|
89
|
+
value?: unknown;
|
|
90
|
+
missing?: boolean;
|
|
91
|
+
}>;
|
|
92
|
+
//# sourceMappingURL=netwatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"netwatch.d.ts","sourceRoot":"","sources":["../netwatch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGlI;;;;GAIG;AAEH,6FAA6F;AAC7F,eAAO,MAAM,aAAa,EAAE,MAAM,EAA8E,CAAC;AAEjH,sJAAsJ;AACtJ,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,sIAAsI;AACtI,wBAAgB,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,YAAY,EAAE,CAoBrF;AAED,8OAA8O;AAC9O,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG;IAAE,UAAU,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAK9G;AAED,gFAAgF;AAChF,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,K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AAW,CAAC,KAAK,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAKzN;AAED,wKAAwK;AACxK,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAUjE;AASD,sLAAsL;AACtL,wBAAgB,UAAU,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,EAAE,CA6B3F;AAED,kIAAkI;AAClI,wBAAgB,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CAG9D;AAED,8IAA8I;AAC9I,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAezE;AAED,wHAAwH;AACxH,wBAAgB,SAAS,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAIrD;AAED,iJAAiJ;AACjJ,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAKxH"}
|
package/dist/policy.d.ts
CHANGED
|
@@ -101,8 +101,47 @@ export declare function validateurlpattern(value: unknown): policyevaluation;
|
|
|
101
101
|
export declare function validatetabquery(value: unknown): policyevaluation;
|
|
102
102
|
/** True when the kind belongs to the media capture family of pdf documents, recordings, images, canvases, streams, assets, lapses, conversions and thumbnails. */
|
|
103
103
|
export declare function ismediakind(kind: actionkind): boolean;
|
|
104
|
+
/** True when the kind belongs to the network observation family of fetching, parsing and typed calls. */
|
|
105
|
+
export declare function ishttpkind(kind: actionkind): boolean;
|
|
106
|
+
/** True when the kind belongs to the socket and stream family of channels, messages, subscriptions and poll loops. */
|
|
107
|
+
export declare function issocketkind(kind: actionkind): boolean;
|
|
108
|
+
/** True when the kind belongs to the request observation family of watches, headers, bodies and page api discovery. */
|
|
109
|
+
export declare function isnetwatchkind(kind: actionkind): boolean;
|
|
110
|
+
/** Resolves the reviewed risk of one step: capturebodies grades sensitive when the reviewed mime list carries private payload types and extractapi grades sensitive when the replay verb mutates, while every other kind keeps its risk table grade. */
|
|
111
|
+
export declare function resolvedrisk(step: toolstep): "read" | "interaction" | "sensitive";
|
|
112
|
+
/** Restricts every outbound channel to a granted origin: wss websocket and https event stream urls map onto their https origin, carry no embedded credentials and stay inside the session origin grants. */
|
|
113
|
+
export declare function socketgate(session: agentsession | undefined, url: string): policyevaluation;
|
|
114
|
+
/** Requires the user granted request watching before any watchrequests step runs; the observation derives from the page timing buffers and the grant adds no manifest permission. */
|
|
115
|
+
export declare function watchgate(session: agentsession | undefined, settings: runsettings | undefined, now: number): policyevaluation;
|
|
116
|
+
/** Requires the host grant for every observed origin before header reads, body captures and endpoint replays touch an exchange. */
|
|
117
|
+
export declare function observedorigingranted(session: agentsession | undefined, url: string): policyevaluation;
|
|
118
|
+
/** Restricts every outbound request to a granted origin: the url must be a reviewed HTTPS url inside the session origin grants. */
|
|
119
|
+
export declare function origincheck(session: agentsession | undefined, url: string): policyevaluation;
|
|
120
|
+
/** True when a header name carries credentials and therefore needs the explicit consent that names it. */
|
|
121
|
+
export declare function credentialheadername(name: string): boolean;
|
|
122
|
+
/** Requires a reviewed consent ref before any custom header leaves the extension; requests without custom headers need no prompt. */
|
|
123
|
+
export declare function fetchconsentrefgranted(step: toolstep): policyevaluation;
|
|
124
|
+
/** True when one stored fetch consent still covers the origin and every header name inside its expiry window. */
|
|
125
|
+
export declare function fetchconsentcovers(consent: {
|
|
126
|
+
origin: string;
|
|
127
|
+
headers: Array<{
|
|
128
|
+
name: string;
|
|
129
|
+
}>;
|
|
130
|
+
approved?: boolean;
|
|
131
|
+
expiresat: number;
|
|
132
|
+
}, origin: string, headernames: string[], now: number): boolean;
|
|
133
|
+
/** True when the reviewed call mutates: rest verbs beyond get, head and options or a graphql mutation; mutating calls grade sensitive. */
|
|
134
|
+
export declare function mutationcallof(step: toolstep): boolean;
|
|
135
|
+
/** Keeps the reviewed fetch waits inside the reviewed wait budget: the worst case of every timeout plus every backoff wait must fit; every bound itself stays a user choice with no code ceiling. */
|
|
136
|
+
export declare function fetchbudgetallowed(timeout: number | undefined, retries: number | undefined, backoff: number | undefined, wait: number | undefined): policyevaluation;
|
|
137
|
+
/** Resolves the outbound url of an http step at review time: the fetch request url of a fetchurl step and nothing for typed calls whose endpoints resolve at execution. */
|
|
138
|
+
export declare function outboundtarget(step: toolstep): string | undefined;
|
|
139
|
+
/** Validates one reviewed typed endpoint definition: name, method, HTTPS url template with variables, header allowlist with non-empty names and a payload schema with kinds, required flags and defaults. */
|
|
140
|
+
export declare function validateendpointrecord(value: unknown): policyevaluation;
|
|
104
141
|
/** True when the kind records user activity and needs the reviewed recording consent before it starts. */
|
|
105
142
|
export declare function isrecordingkind(kind: actionkind): boolean;
|
|
143
|
+
/** Resolves the reviewed channel url of a socket step at review time: the socket url of opensocket, the event stream url of subscribesse and the poll url of longpoll. */
|
|
144
|
+
export declare function sockettarget(step: toolstep): string | undefined;
|
|
106
145
|
/** Requires the active tab grant of the live session for every media kind: the session tab and origin must match and the origin grant must cover the active origin. */
|
|
107
146
|
export declare function mediagate(session: agentsession | undefined, tabid: number, origin: string, now: number): policyevaluation;
|
|
108
147
|
/** Requires an approved recording consent prompt before any recording of user activity starts; every start consumes its own prompt. */
|
|
@@ -122,6 +161,7 @@ export declare function canexecute(input: {
|
|
|
122
161
|
origin: string;
|
|
123
162
|
now?: number;
|
|
124
163
|
verdicts?: safetyverdict[];
|
|
164
|
+
settings?: runsettings;
|
|
125
165
|
}): policyevaluation;
|
|
126
166
|
/** Allows a non-mutating, temporary target preview during plan review. */
|
|
127
167
|
export declare function canpreview(input: {
|
package/dist/policy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAA2E,cAAc,EAAa,WAAW,EAAc,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAc,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAA2E,cAAc,EAAa,WAAW,EAAc,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAc,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAC;AAqCvU,uFAAuF;AACvF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAK/D;AAED,uEAAuE;AACvE,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAErD;AAED,mGAAmG;AACnG,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,eAAe,CAInE;AAED,0DAA0D;AAC1D,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,aAAa,GAAG,WAAW,CAIjF;AAED,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,IAAI,EAA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;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,gBAAgB,CAUnL"}
|
package/dist/protocol.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { protocolversion, type agentplan, type bannerreport, type clickablemap, type dataset, type downloadrecord, type errorreport, type extractsession, type focusevent, type formreport, type imagebatch, type keyholdstate, type mediarecord, type mutationevent, type navstate, type netlogrecord, type observation, type pagesignals, type planproposal, type proposalrequest, type provenancerecord, type quarantineentry, type resolvedtarget, type safetyverdict, type selectorcandidate, type shotpair, type shotrecord, type snapshotdiff, type stepoutcome, type tablayout, type tabreport, type trailentry, type transformrule, type typeaheadpick, type wizardstate } from "./types.js";
|
|
1
|
+
import { protocolversion, type agentplan, type apimapentry, type bannerreport, type callrecord, type channelrecord, type clickablemap, type dataset, type downloadrecord, type errorreport, type eventsubscription, type exchangerecord, type extractsession, type focusevent, type formreport, type imagebatch, type keyholdstate, type mediarecord, type mutationevent, type navstate, type netlogrecord, type observation, type pagesignals, type planproposal, type proposalrequest, type provenancerecord, type quarantineentry, type resolvedtarget, type safetyverdict, type selectorcandidate, type shotpair, type shotrecord, type snapshotdiff, type stepoutcome, type tablayout, type tabreport, type trailentry, type transformrule, type typeaheadpick, type wizardstate } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Reviewed options grammar shared by every step kind.
|
|
4
4
|
*
|
|
@@ -31,14 +31,18 @@ import { protocolversion, type agentplan, type bannerreport, type clickablemap,
|
|
|
31
31
|
* - capture steps attach structured evidence to step details: shotrecords with record id, run, step, kind, format, geometry and byte size, the stitch tile count of full page captures, shotpair ids of before and after state captures with their action kind, target selector and dom snapshot id, and contact sheet cells with selector labels; the response envelope gains a capture block with the record id, format and byte size, and the capture report carries every stored record and pair.
|
|
32
32
|
* - the media capture part two family adds its parameter grammar: `capturepdf` carries reviewed `pdf` options of `paperwidth` and `paperheight` inches (positive, never capped in code), `margins` of `top`, `right`, `bottom` and `left` inches (negative margins are refused), a positive `scale`, `landscape` and `paginate` flags, optional reviewed break point `selectors` and an `exporttarget` of memory or download; `recordscreen` and `captureaudio` carry reviewed `recording` options of `scope` (`tab` or `run`), positive `fps` and `bitrate` values with no code ceilings, an `audio` flag, a positive `duration` window and a reviewed `consentref` of an approved recording consent prompt; `captureframe` addresses a video element through the step target with an optional `timestamp` in seconds and a `poster` flag; `downloadimages` carries a reviewed `imagefilter` of `selector` scope, `minwidth` and `minheight` thresholds and a `formats` list plus an optional `naming` rule; `shotcanvas` addresses a canvas element through the step target with reviewed capture options; `probestream` carries an optional scope `selector`; `readmedia` and `readassets` carry no parameters; `timelapse` carries a reviewed `lapse` plan of positive `interval` and `duration` windows with a `format` and the lapse duration kept inside the reviewed `wait` budget; `convertimage` carries reviewed `capture` or `captures` ids plus a `convert` directive of `source`, `target` (png, jpeg or webp) and `quality`; and `makethumbs` carries the same capture ids plus a `thumb` directive of positive `size`, `fit` (cover or contain) and `suffix`.
|
|
33
33
|
* - media steps attach structured evidence to step details: pdf records with page count, paper size, margins and byte size, recording records with ids, durations, frame counts and file refs, image batches with filter match counts and deduplicated url lists, frame records with source, timestamp and poster flag, canvas records with context kind, stream probe results with track details, asset lists and ordered lapse frame ids; the response envelope gains a media block with the record id, kind and byte size, and the media report carries every stored media record and image batch.
|
|
34
|
+
* - the network observation family adds its parameter grammar: `fetchurl` carries a reviewed `fetch` request of `url`, `method` (a known HTTP verb), a custom header `allowlist` object whose names must be non-empty (empty header names are refused), an optional string `body` and a `mode` of `cors`, `no-cors` or `same-origin`, plus a reviewed `fetchoptions` object of `timeout`, `retries`, `backoff` and the redirect `follow` limit (every bound a user choice with no code ceiling) whose worst case must fit the reviewed `wait` budget, an optional `stream` window with its byte `budget` ceiling and a reviewed `consentref` required before any custom header leaves the extension; `parsejson` carries a reviewed stored `call` id and `fields` json path rules of `{ name, path, kind, default }` with dotted paths of non-empty segments; `parsehtml` carries the same `call` id and `queries` of `{ selector, attribute, multi }`; `callrest` carries a reviewed typed `endpoint` name, an optional `payload` object, an optional method `override` and a reviewed `success` status list; `callgraphql` carries the same `endpoint` name and a reviewed `graphql` request of `query` text, `operationkind` (`query` or `mutation`, unknown kinds are refused), optional `variables` and `operationname`; both typed calls accept reviewed `apikeys` references to stored key records.
|
|
35
|
+
* - the network observation part two family adds its parameter grammar: `opensocket` carries a reviewed `socket` of `url` (wss for websockets, https for streams), optional `protocols`, an integer `reconnect` budget, a `backoff` base, a `backoffceiling` where exponential growth stops and an optional `lifetime` window (every bound a user choice with no code ceiling); `sendmessage` carries a reviewed `message` of the open `channel` id, an optional named `stream` and the reviewed `payload` string; `waitmessage` carries a reviewed `filter` of `stream`, a dotted json `path` and the `limit` match count plus the `wait` budget it stops on; `subscribesse` carries a reviewed `subscription` of the event stream `url`, an optional resume `lasteventid`, an optional `lifetime` and the required `cancel` cancellation path; `longpoll` carries a reviewed `poll` cursor of `url`, `cursorfield`, positive `interval`, the required `stop` condition of `{ field, equals }`, an optional `maxpolls` ceiling and the cursor `param` name, with the interval kept inside the reviewed `wait` budget; `watchrequests` carries an optional `watch` window and a user configured match `limit`; `readheaders` carries a reviewed `headers` filter whose `allow` allowlist and `redact` redaction list are both required non-empty before any header value is stored; `capturebodies` carries a reviewed `body` filter of `urlpattern`, `mimes` and the byte `ceiling`; `mapapi` carries an optional match `limit`; and `extractapi` carries a reviewed `replay` spec of the captured `endpoint`, the replay `verb`, parameter `overrides` and dotted extraction `paths`.
|
|
36
|
+
* - network observation part two steps attach structured evidence to step details: the network block with the exchange count and channel state, matched message envelopes with their channel scoped sequence numbers and event counts of stream subscriptions, poll loop iterations with cursor values and stop reasons, observed exchanges with correlation ids, request lifecycle timings and error classes, redacted header views, captured body records with mime types and byte sizes inside the reviewed ceiling, ranked api map entries with frequency, json share and payload stability, and replayed endpoint fields mapped onto extraction paths; the response envelope gains a network block, and the exchanges report carries every exchange, channel, subscription and api map entry of the run.
|
|
37
|
+
* - http steps attach structured evidence to step details: the transport block with status, response header names, byte size and duration, retry counts and stream byte counts, parsedfield values extracted by dotted paths with miss flags, html query results with attribute values, text and element counts, the endpoint name of rest and graphql results, structured json error bodies and every graphql error mapped beside the step that produced it; the response envelope gains a transport block, and the calls report carries every stored call record with the bodies held back.
|
|
34
38
|
*
|
|
35
39
|
* Ambiguous text, aria or name resolutions are refused at execution time with the candidate list so the user can choose.
|
|
36
40
|
*/
|
|
37
|
-
/** Validates agent output before it becomes a locally reviewable plan. Plans may carry any number of steps. */
|
|
38
|
-
export declare function parseproposal(value: unknown, origin: string): planproposal;
|
|
41
|
+
/** Validates agent output before it becomes a locally reviewable plan. Plans may carry any number of steps. Fetch requests must target granted origins, channel urls must target granted origins with cancellation paths and bounded lifetimes, and header allowlists must carry non-empty names. */
|
|
42
|
+
export declare function parseproposal(value: unknown, origin: string, grants?: string[]): planproposal;
|
|
39
43
|
/** Shapes the only data that may be sent to a user-configured agent endpoint. */
|
|
40
44
|
export declare function requestbody(input: proposalrequest): string;
|
|
41
|
-
/** Wraps one executed step outcome in the versioned response envelope for callers, attaching the matched element summary, the capture block of capture steps
|
|
45
|
+
/** Wraps one executed step outcome in the versioned response envelope for callers, attaching the matched element summary, the capture block of capture steps, the media block of media steps, the transport block of outbound calls and the network block of observed exchanges and channels for review. */
|
|
42
46
|
export declare function outcomeresponse(input: {
|
|
43
47
|
outcome: stepoutcome;
|
|
44
48
|
plan: agentplan;
|
|
@@ -53,6 +57,17 @@ export declare function outcomeresponse(input: {
|
|
|
53
57
|
kind: string;
|
|
54
58
|
bytes: number;
|
|
55
59
|
};
|
|
60
|
+
transport?: {
|
|
61
|
+
status: number;
|
|
62
|
+
headers: string[];
|
|
63
|
+
bytes: number;
|
|
64
|
+
duration: number;
|
|
65
|
+
};
|
|
66
|
+
network?: {
|
|
67
|
+
exchanges: number;
|
|
68
|
+
channelstate: string;
|
|
69
|
+
messages: number;
|
|
70
|
+
};
|
|
56
71
|
}): string;
|
|
57
72
|
/** Wraps a clickable map payload with numbered entries in the versioned response envelope. */
|
|
58
73
|
export declare function mapresponse(input: {
|
|
@@ -209,4 +224,26 @@ export declare function mediareport(input: {
|
|
|
209
224
|
records: mediarecord[];
|
|
210
225
|
images: imagebatch[];
|
|
211
226
|
};
|
|
227
|
+
/** Carries every outbound call record of the run in the session context envelope with the response bodies held back; the metadata keeps method, origin, status class, retries and byte counts. */
|
|
228
|
+
export declare function callsreport(input: {
|
|
229
|
+
calls: callrecord[];
|
|
230
|
+
}): {
|
|
231
|
+
version: typeof protocolversion;
|
|
232
|
+
calls: Array<Omit<callrecord, "body"> & {
|
|
233
|
+
body?: undefined;
|
|
234
|
+
}>;
|
|
235
|
+
};
|
|
236
|
+
/** Carries every observed exchange, channel, stream subscription and api map entry of the run in the session context envelope with correlation ids kept and captured body bytes held back. */
|
|
237
|
+
export declare function exchangesreport(input: {
|
|
238
|
+
exchanges: exchangerecord[];
|
|
239
|
+
channels: channelrecord[];
|
|
240
|
+
subscriptions: eventsubscription[];
|
|
241
|
+
apimap: apimapentry[];
|
|
242
|
+
}): {
|
|
243
|
+
version: typeof protocolversion;
|
|
244
|
+
exchanges: exchangerecord[];
|
|
245
|
+
channels: channelrecord[];
|
|
246
|
+
subscriptions: eventsubscription[];
|
|
247
|
+
apimap: apimapentry[];
|
|
248
|
+
};
|
|
212
249
|
//# sourceMappingURL=protocol.d.ts.map
|
package/dist/protocol.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../protocol.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,KAAK,QAA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|
|
|
1
|
+
import type { channelrecord, messageenvelope, messagefilter, pollcursor, socketoptions } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Network observation part two socket logics for the 1.1.43 family.
|
|
4
|
+
* Every correlated rule for the websocket channel lifecycle with reconnection backoff, the multiplexing of named message streams over one channel with channel scoped sequence numbers, the message filter matching of waitmessage steps, the server sent events parsing with last event id resume and the long polling cursor loop with its stop conditions lives in this file.
|
|
5
|
+
* Message payloads are opaque reviewed text; no payload value enters any audit summary built from these results.
|
|
6
|
+
*/
|
|
7
|
+
/** The socket and stream kinds, listed among the available capabilities of every proposal request. */
|
|
8
|
+
export declare const socketkinds: string[];
|
|
9
|
+
/** Connect seam signature: one reviewed channel url with its protocols; the extension executor wires the browser websocket, tests wire plain fixtures. */
|
|
10
|
+
export type socketconnect = (url: string, protocols: string[]) => Promise<{
|
|
11
|
+
open: boolean;
|
|
12
|
+
code?: number;
|
|
13
|
+
error?: string;
|
|
14
|
+
}>;
|
|
15
|
+
/** Resolves the reviewed https origin behind a channel url: wss channels map onto their https origin so the origin grants cover both. */
|
|
16
|
+
export declare function channelorigin(url: string): string;
|
|
17
|
+
/** Normalizes reviewed channel open options: url plus the socket options of protocols, reconnect budget, backoff base and backoff ceiling; every bound stays a user choice with no code ceiling. */
|
|
18
|
+
export declare function channeloptionsof(value: unknown): {
|
|
19
|
+
url: string;
|
|
20
|
+
options: socketoptions;
|
|
21
|
+
} | undefined;
|
|
22
|
+
/** Creates one channel record in the connecting state with its origin, protocols and zeroed message counters. */
|
|
23
|
+
export declare function newchannel(input: {
|
|
24
|
+
id: string;
|
|
25
|
+
runid: string;
|
|
26
|
+
stepid: string;
|
|
27
|
+
kind: "websocket" | "sse";
|
|
28
|
+
url: string;
|
|
29
|
+
protocols?: string[];
|
|
30
|
+
at: number;
|
|
31
|
+
}): channelrecord;
|
|
32
|
+
/** Builds the exponential backoff waits of the reviewed reconnect budget: each wait doubles the base and growth stops at the user configured ceiling, so the budget bounds the growth and no code ceiling exists. */
|
|
33
|
+
export declare function reconnectwaits(attempts: number, base: number, ceiling: number | undefined): number[];
|
|
34
|
+
/**
|
|
35
|
+
* Opens one reviewed channel through the connect seam with the reviewed reconnect budget and backoff: failed attempts wait the exponential backoff before the retry, the channel opens on the first success and a budget exhausted without a connection fails the channel with the last error class.
|
|
36
|
+
*/
|
|
37
|
+
export declare function openchannel(input: {
|
|
38
|
+
record: channelrecord;
|
|
39
|
+
options: socketoptions;
|
|
40
|
+
connect: socketconnect;
|
|
41
|
+
sleep?: (milliseconds: number) => Promise<void>;
|
|
42
|
+
now?: () => number;
|
|
43
|
+
}): Promise<channelrecord>;
|
|
44
|
+
/** Closes one channel record cleanly with its close time and an optional error class, keeping every counter for the audit trail. */
|
|
45
|
+
export declare function closechannel(record: channelrecord, at: number, error?: string): channelrecord;
|
|
46
|
+
/** Live multiplexing state of one run: the per channel sequence counters and the inbound message queue. */
|
|
47
|
+
export interface busstate {
|
|
48
|
+
sequences: Record<string, number>;
|
|
49
|
+
queue: messageenvelope[];
|
|
50
|
+
}
|
|
51
|
+
/** Publishes one reviewed payload on a named stream of an open channel and returns the tagged envelope. */
|
|
52
|
+
export declare function publishmessage(state: busstate, channelid: string, stream: string, payload: string, at: number): {
|
|
53
|
+
state: busstate;
|
|
54
|
+
envelope: messageenvelope;
|
|
55
|
+
};
|
|
56
|
+
/** Receives one inbound channel message on a named stream, tags it with the next channel sequence and queues it for the waitmessage matchers. */
|
|
57
|
+
export declare function receivemessage(state: busstate, channelid: string, stream: string, payload: string, at: number): {
|
|
58
|
+
state: busstate;
|
|
59
|
+
envelope: messageenvelope;
|
|
60
|
+
};
|
|
61
|
+
/** True when one message envelope matches the reviewed filter: the stream name when reviewed, the dotted json path when reviewed and always the sequence integrity of the channel. */
|
|
62
|
+
export declare function matchmessage(filter: messagefilter | undefined, envelope: messageenvelope): boolean;
|
|
63
|
+
/** Collects the queued messages of one channel matching the reviewed filter up to the reviewed match limit, removing the matched envelopes from the queue. */
|
|
64
|
+
export declare function collectmessages(state: busstate, channelid: string, filter: messagefilter | undefined): {
|
|
65
|
+
state: busstate;
|
|
66
|
+
matched: messageenvelope[];
|
|
67
|
+
};
|
|
68
|
+
/** Verifies the sequence integrity of a message stream: per channel the sequences must form one strictly increasing run from one with no gaps. */
|
|
69
|
+
export declare function sequenceintegrity(envelopes: messageenvelope[]): {
|
|
70
|
+
ok: boolean;
|
|
71
|
+
gaps: Array<{
|
|
72
|
+
channelid: string;
|
|
73
|
+
expected: number;
|
|
74
|
+
found: number;
|
|
75
|
+
}>;
|
|
76
|
+
};
|
|
77
|
+
/** Normalizes a reviewed message filter: stream name, dotted json path and the reviewed match limit with no code ceiling. */
|
|
78
|
+
export declare function messagefilterof(value: unknown): messagefilter;
|
|
79
|
+
/** One parsed server sent event: id, event name, joined data lines and the reviewed retry hint. */
|
|
80
|
+
export interface sseevent {
|
|
81
|
+
id?: string;
|
|
82
|
+
event?: string;
|
|
83
|
+
data: string;
|
|
84
|
+
retry?: number;
|
|
85
|
+
}
|
|
86
|
+
/** Parses one server sent events text chunk into complete events with id, event name, data and retry fields, returning the incomplete trailing block as the rest buffer; comment lines stay ignored. */
|
|
87
|
+
export declare function parsessetext(text: string): {
|
|
88
|
+
events: sseevent[];
|
|
89
|
+
rest: string;
|
|
90
|
+
};
|
|
91
|
+
/** Builds the request headers of one server sent events subscription, resuming from the last event id after a reconnect. */
|
|
92
|
+
export declare function sserequestheaders(record: {
|
|
93
|
+
lasteventid?: string;
|
|
94
|
+
}): Record<string, string>;
|
|
95
|
+
/** Normalizes reviewed subscription options: the event stream url, the lifetime window, the resume point and the reviewed cancellation path. */
|
|
96
|
+
export declare function subscriptionoptionsof(value: unknown): {
|
|
97
|
+
url: string;
|
|
98
|
+
lifetime?: number;
|
|
99
|
+
lasteventid?: string;
|
|
100
|
+
cancel: {
|
|
101
|
+
kind: "stop" | "lifetime";
|
|
102
|
+
value: string | number;
|
|
103
|
+
};
|
|
104
|
+
} | undefined;
|
|
105
|
+
/** Normalizes a reviewed long poll cursor: url, cursor field, interval, stop condition, optional poll ceiling and the cursor query parameter; every bound stays a user choice with no code ceiling. */
|
|
106
|
+
export declare function pollcursorof(value: unknown): pollcursor | undefined;
|
|
107
|
+
/** Reads one cursor value from a polled response body by its dotted field path. */
|
|
108
|
+
export declare function cursorfrom(response: unknown, field: string): string | undefined;
|
|
109
|
+
/** Builds the next poll url of a cursor loop: the cursor rides the reviewed query parameter when one is set and posts inside the request body otherwise. */
|
|
110
|
+
export declare function pollurl(cursor: pollcursor, value: string | undefined): {
|
|
111
|
+
url: string;
|
|
112
|
+
body?: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Decides one long poll iteration: the loop stops on the reviewed stop condition, the cancellation flag, the plan expiry or the reviewed poll ceiling, and otherwise returns the next poll url with the reviewed interval wait.
|
|
116
|
+
*/
|
|
117
|
+
export declare function polldecision(input: {
|
|
118
|
+
cursor: pollcursor;
|
|
119
|
+
polls: number;
|
|
120
|
+
response: unknown;
|
|
121
|
+
cancelled?: () => boolean;
|
|
122
|
+
expiresat?: number;
|
|
123
|
+
now: number;
|
|
124
|
+
}): {
|
|
125
|
+
continue: boolean;
|
|
126
|
+
reason: string;
|
|
127
|
+
cursor?: string;
|
|
128
|
+
next?: {
|
|
129
|
+
url: string;
|
|
130
|
+
body?: string;
|
|
131
|
+
wait: number;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
//# sourceMappingURL=socketbus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socketbus.d.ts","sourceRoot":"","sources":["../socketbus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAgB,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzH;;;;GAIG;AAEH,sGAAsG;AACtG,eAAO,MAAM,WAAW,EAAE,MAAM,EAA6E,CAAC;AAE9G,0JAA0J;AAC1J,MAAM,MAA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