@wenathlan/extension 1.1.62 → 1.1.64
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 +5 -3
- package/dist/environments.d.ts +10 -0
- package/dist/environments.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +956 -1
- package/dist/index.js.map +4 -4
- package/dist/memory.d.ts +126 -1
- package/dist/memory.d.ts.map +1 -1
- package/dist/planreview.d.ts +87 -0
- package/dist/planreview.d.ts.map +1 -0
- package/dist/policy.d.ts +101 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/protocol.d.ts +135 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/sessioninterface.d.ts +213 -0
- package/dist/sessioninterface.d.ts.map +1 -0
- package/dist/surfaces.d.ts +59 -0
- package/dist/surfaces.d.ts.map +1 -0
- package/dist/types.d.ts +376 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/extension/dist/background.js +1394 -2
- package/extension/dist/background.js.map +4 -4
- package/extension/dist/dashboardpage.html +13 -0
- package/extension/dist/dashboardpage.js +129 -0
- package/extension/dist/dashboardpage.js.map +7 -0
- package/extension/dist/manifest.json +5 -2
- package/extension/dist/offscreen.js +5 -0
- package/extension/dist/offscreen.js.map +2 -2
- package/extension/dist/optionspage.html +14 -0
- package/extension/dist/optionspage.js +118 -0
- package/extension/dist/optionspage.js.map +7 -0
- package/extension/dist/pagebridge.js.map +1 -1
- package/extension/dist/popup.html +4 -1
- package/extension/dist/popup.js +193 -0
- package/extension/dist/popup.js.map +3 -3
- package/extension/dist/sidepanel.html +7 -2
- package/extension/dist/sidepanel.js +693 -219
- package/extension/dist/sidepanel.js.map +3 -3
- package/extension/dist/transparencypage.html +1 -0
- package/extension/dist/transparencypage.js +42 -0
- package/extension/dist/transparencypage.js.map +2 -2
- package/extension/manifest.json +5 -2
- package/package.json +1 -1
|
@@ -0,0 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K,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CAIvI;AAED,4KAA4K;AAC5K,wBAAgB,eAAe,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;IAAC,SAAS,EAAE,UAAU,EAAE,CAAC;IAAC,WAAW,EAAE,eAAe,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAAC,SAAS,EAAE,UAAU,EAAE,CAAC;IAAC,WAAW,EAAE,eAAe,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAEpQ;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CAClF"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { broadcastchannelkind, broadcastframe, onboardingstate, onboardingstep, paletteentry, palettematch, paletteuserecord, surfaceaction, surfaceroute, taskinputsubmission, uisurface } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Interface surface logic of the 1.1.64 family, part one.
|
|
4
|
+
* The popup, the sidepanel, the dashboardpage, the optionspage and the onboarding share this pure logic: the commandpalette registers its catalog from every module at startup, lists only the actions the current capability set allows and ranks fuzzy matches over ids, labels and keywords with the recent commands first; the taskinput builds submissions with the active origin and the page outline attached and routes them through the same proposal flow as the api; the onboarding walks its four steps once on first install, replays on demand and writes a single consent scoped event on completion; the command bus routes every surface action through the same policy gates; and the single broadcast channel frames every run state, logstream, session store and settings change the surfaces subscribe to.
|
|
5
|
+
* No window, limit or ranking depth is ever hardcoded: every bound stays the user's choice with no engine cap, and no surface action ever bypasses the human review.
|
|
6
|
+
*/
|
|
7
|
+
/** The commandpalette catalog registered from every module at startup: each entry routes through the command bus with the permission and session needs it declares. */
|
|
8
|
+
export declare function surfacepalette(): paletteentry[];
|
|
9
|
+
/** Lists only the palette actions the current capability set and session state allow: every command rides its existing permission gate before it lists. */
|
|
10
|
+
export declare function palettecommandsof(entries: paletteentry[], input: {
|
|
11
|
+
granted: string[];
|
|
12
|
+
sessionactive: boolean;
|
|
13
|
+
}): paletteentry[];
|
|
14
|
+
/** Ranks the fuzzy palette matches for one query: ids, labels and keywords match while the most recently used commands rank first among equal scores. */
|
|
15
|
+
export declare function palettequery(entries: paletteentry[], input: {
|
|
16
|
+
text: string;
|
|
17
|
+
usage: paletteuserecord[];
|
|
18
|
+
recentwindow?: number;
|
|
19
|
+
}): palettematch[];
|
|
20
|
+
/** Records one commandpalette use: the count grows and the last use time moves so the recent first ranking reads both. */
|
|
21
|
+
export declare function paletteuseafter(usage: paletteuserecord[], command: string, now: number): paletteuserecord[];
|
|
22
|
+
/** Builds one taskinput submission with the active origin and the page outline context attached; an empty text or origin refuses the submission. */
|
|
23
|
+
export declare function taskinputof(input: {
|
|
24
|
+
text: string;
|
|
25
|
+
context?: string;
|
|
26
|
+
origin: string;
|
|
27
|
+
surface: uisurface;
|
|
28
|
+
at: number;
|
|
29
|
+
}): taskinputsubmission;
|
|
30
|
+
/** Keeps the taskinput history per profile with the newest entry first; an absent retention window keeps every entry. */
|
|
31
|
+
export declare function taskhistoryafter(history: taskinputsubmission[], entry: taskinputsubmission, retention: number | undefined, now: number): taskinputsubmission[];
|
|
32
|
+
/** The four onboarding steps: the origin grants, the plan review, the run control and the log audit walkthrough of a first run. */
|
|
33
|
+
export declare function onboardingsteps(): onboardingstep[];
|
|
34
|
+
/** Starts the onboarding once on first install or on an explicit replay: a fresh walkthrough begins while an already done state resets. */
|
|
35
|
+
export declare function onboardingstart(previous: onboardingstate | undefined, now: number): onboardingstate;
|
|
36
|
+
/** Completes one onboarding step: the walkthrough records the step and a full completion writes exactly one consent scoped event. */
|
|
37
|
+
export declare function onboardingcomplete(state: onboardingstate, stepid: string, now: number): {
|
|
38
|
+
state: onboardingstate;
|
|
39
|
+
consentevent?: string;
|
|
40
|
+
};
|
|
41
|
+
/** Builds one broadcast frame of the single surface channel: every run state, logstream, session store and settings change rides the same channel. */
|
|
42
|
+
export declare function broadcastframeof(input: {
|
|
43
|
+
channel: broadcastchannelkind;
|
|
44
|
+
surface: uisurface | "background";
|
|
45
|
+
summary: string;
|
|
46
|
+
at: number;
|
|
47
|
+
}): broadcastframe;
|
|
48
|
+
/** Maps one audit kind onto the broadcast channel its frame rides: run control kinds carry run state, session store kinds carry session updates and the rest streams as logstream frames. */
|
|
49
|
+
export declare function broadcastchannelof(kind: string): broadcastchannelkind;
|
|
50
|
+
/** Routes one surface action through the command bus: every action rides the same policy gates before it dispatches and the verdict names the gate that decided. */
|
|
51
|
+
export declare function busrouteaction(action: surfaceaction, input: {
|
|
52
|
+
sessionactive: boolean;
|
|
53
|
+
granted: string[];
|
|
54
|
+
planreviewed: boolean;
|
|
55
|
+
planstate: string;
|
|
56
|
+
text?: string;
|
|
57
|
+
origin?: string;
|
|
58
|
+
}): surfaceroute;
|
|
59
|
+
//# sourceMappingURL=surfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surfaces.d.ts","sourceRoot":"","sources":["../surfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAInN;;;;GAIG;AAEH,uKAAuK;AACvK,wBAAgB,cAAc,IAAI,YAAY,EAAE,CAiB/C;AAED,2JAA2J;A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MAAM,GAAG;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CASzI;AAED,sJAAsJ;AACtJ,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,SAAS,GAAG,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAGzJ;AAED,6LAA6L;AAC7L,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAKrE;AAED,oKAAoK;AACpK,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE;IAAE,aAAa,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAclM"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const protocolversion: "1.1.
|
|
1
|
+
export declare const protocolversion: "1.1.64";
|
|
2
2
|
/** Every reviewed action kind. Read kinds observe, interaction kinds move focus, sensitive kinds change page or browser state. */
|
|
3
3
|
export type actionkind = "observe" | "inspect" | "extract" | "wait" | "waitfor" | "waittext" | "readattribute" | "readstyle" | "readgeometry" | "readvalue" | "readtext" | "readhtml" | "countelements" | "readtable" | "readlinks" | "readimages" | "readmeta" | "readforms" | "readstorage" | "highlight" | "tablist" | "windowlist" | "tabsnapshot" | "focus" | "scroll" | "hover" | "clickdeep" | "rightclick" | "doubleclick" | "scrollpage" | "scrollby" | "scrollend" | "scrolltop" | "fullscreen" | "zoomset" | "click" | "type" | "navigate" | "select" | "presskey" | "drag" | "drop" | "upload" | "clear" | "check" | "uncheck" | "toggle" | "submit" | "reload" | "back" | "forward" | "writestorage" | "setattribute" | "removeattribute" | "evaluate" | "tabcreate" | "tabactivate" | "tabclose" | "tabreload" | "windowcreate" | "windowclose" | "windowresize" | "downloadfile" | "movepointer" | "clickpoint" | "shiftclick" | "clicktext" | "clickaria" | "clickname" | "resolvexpath" | "typetime" | "appendtext" | "setvalue" | "typeedit" | "keyhold" | "keyrelease" | "submitsearch" | "selectmulti" | "chooseradio" | "setslider" | "setdate" | "setcolor" | "expanddetails" | "dismissdialog" | "pierceshadow" | "enterframe" | "retryaction" | "mapclicks" | "verifyvisible" | "verifyenabled" | "a11ytree" | "readvisible" | "readertree" | "detectlists" | "detecttables" | "readjson" | "watchmutate" | "waitquiet" | "watchbanner" | "detectinfinitescroll" | "detectvirtual" | "detectlazy" | "readscrollpos" | "readlang" | "readoutline" | "countpages" | "listshadow" | "listframes" | "classifypage" | "fingerprintsection" | "diffsnapshots" | "readselection" | "watchfocus" | "detectsticky" | "detectscrolllock" | "readopengraph" | "detectlanguage" | "deriveselector" | "openlink" | "openprivate" | "reloadcache" | "stopnav" | "waitload" | "waiturl" | "followlink" | "spanav" | "spawait" | "rewritequery" | "setfragment" | "navlist" | "navprofile" | "detecthttp" | "readredirects" | "readfinalurl" | "handleauth" | "printpdf" | "prefetch" | "preconnect" | "deeplink" | "reopentab" | "trailaudit" | "pausenav" | "navintent" | "navrate" | "openclipboard" | "checksafe" | "batchopen" | "querytabs" | "duplicatetab" | "closepattern" | "pintab" | "mutetab" | "movetab" | "movetabwindow" | "grouptabs" | "colorgroup" | "collapsegroup" | "discardtab" | "reloadtabs" | "zoomin" | "zoomout" | "watchtab" | "switchtab" | "maximizewindow" | "minimizewindow" | "restorewindow" | "focuswindow" | "scratchwindow" | "incognitowindow" | "restoretab" | "savelayout" | "restorelayout" | "findclones" | "searchtabs" | "badgetab" | "attachmeta" | "listaudio" | "reopenrun" | "snapshotsession" | "fillform" | "filllabel" | "fillplaceholder" | "detectfields" | "generatevalues" | "saveprofiles" | "asksubmit" | "submitform" | "readerrors" | "retryform" | "runwizard" | "selectchain" | "picktypeahead" | "pickdate" | "attachfile" | "handoffcaptcha" | "fillcard" | "fillcode" | "consentpassword" | "skiphoneypot" | "detectlogin" | "detecttemplate" | "scrapetable" | "exportcsv" | "exportjson" | "exportexcel" | "copytable" | "pushsheets" | "importcsv" | "looprows" | "transformvalues" | "deduperows" | "paginateextract" | "mergepages" | "stamplerows" | "previewgrid" | "streamdisk" | "resumeextract" | "logprovenance" | "batchdownload" | "pausedownload" | "resumedownload" | "verifydownload" | "interceptmime" | "exportnetlog" | "readclipboard" | "writeclipboard" | "copyscreen" | "quarantinedownload" | "scanvirus" | "namecaptures" | "cleanupartifacts" | "shotview" | "shotfullpage" | "shotelement" | "shotregion" | "contactsheet" | "capturepdf" | "recordscreen" | "captureaudio" | "captureframe" | "downloadimages" | "shotcanvas" | "probestream" | "readmedia" | "readassets" | "timelapse" | "convertimage" | "makethumbs" | "fetchurl" | "parsejson" | "parsehtml" | "callrest" | "callgraphql" | "opensocket" | "sendmessage" | "waitmessage" | "watchrequests" | "readheaders" | "capturebodies" | "subscribesse" | "longpoll" | "mapapi" | "extractapi" | "blockrequest" | "mockresponse" | "rewriteheaders" | "setcookies" | "readcookies" | "clearcookies" | "authflow" | "saveapikey" | "routeproxy" | "postform" | "postfiles" | "watchconsole" | "watcherrors" | "watchtasks" | "attachcdp" | "detachcdp" | "cdpcmd" | "watchcdp" | "setbreakpoint" | "stepcode" | "watchexpr" | "overridescript" | "measureflow" | "heapshot" | "trackmemory" | "profilecpu" | "watchshifts" | "traceload" | "annotatetrace" | "replaytrace" | "capturesourcemaps" | "emulatedevice" | "emulatenetwork" | "emulatelocate" | "setuseragent" | "overridepermission" | "blackboxscripts" | "persiststate" | "capturesession" | "restoresession" | "namedsessions" | "diffsessions" | "searchsessions" | "exportsessions" | "importsessions" | "composeworkflow" | "savetemplate" | "runworkflow" | "dryrun" | "delay" | "waitelement" | "compute" | "extractvars" | "listruns" | "condition" | "branch" | "loop" | "repeatuntil" | "whileloop" | "foreach" | "parallel" | "trycatch" | "visitrule" | "urlrule" | "menurule" | "keyrule" | "buttonrule" | "cronrule" | "intervalrule" | "urllistrule" | "webhookrule" | "eventrule";
|
|
4
4
|
export type actionrisk = "read" | "interaction" | "sensitive";
|
|
5
5
|
export type planstate = "draft" | "pending" | "approved" | "rejected" | "expired" | "completed" | "cancelled";
|
|
6
|
-
export type auditkind = "configure" | "session" | "observe" | "proposal" | "approval" | "action" | "error" | "stop" | "pause" | "resume" | "complete" | "capability" | "tab" | "window" | "download" | "pointer" | "dialog" | "hold" | "retry" | "observation" | "watch" | "diff" | "navigation" | "redirect" | "auth" | "prefetch" | "rate" | "group" | "layout" | "discard" | "badge" | "fill" | "submit" | "consent" | "handoff" | "scrape" | "export" | "stream" | "provenance" | "resume" | "intercept" | "clipboard" | "quarantine" | "cleanup" | "capture" | "media" | "call" | "socket" | "replay" | "control" | "timeline" | "debugger" | "profile" | "emulation" | "workflow" | "trigger" | "protocol" | "tool" | "model" | "swarm" | "environment" | "worker" | "sandbox" | "grant" | "expiry" | "revoke" | "deny" | "seal" | "mask" | "vault" | "gate" | "phish" | "defer" | "schema" | "inbound" | "transparency";
|
|
6
|
+
export type auditkind = "configure" | "session" | "observe" | "proposal" | "approval" | "action" | "error" | "stop" | "pause" | "resume" | "complete" | "capability" | "tab" | "window" | "download" | "pointer" | "dialog" | "hold" | "retry" | "observation" | "watch" | "diff" | "navigation" | "redirect" | "auth" | "prefetch" | "rate" | "group" | "layout" | "discard" | "badge" | "fill" | "submit" | "consent" | "handoff" | "scrape" | "export" | "stream" | "provenance" | "resume" | "intercept" | "clipboard" | "quarantine" | "cleanup" | "capture" | "media" | "call" | "socket" | "replay" | "control" | "timeline" | "debugger" | "profile" | "emulation" | "workflow" | "trigger" | "protocol" | "tool" | "model" | "swarm" | "environment" | "worker" | "sandbox" | "grant" | "expiry" | "revoke" | "deny" | "seal" | "mask" | "vault" | "gate" | "phish" | "defer" | "schema" | "inbound" | "transparency" | "notes" | "scratchpad" | "summary" | "recall" | "correction" | "consentmemory" | "cancel" | "search" | "palette" | "surface" | "onboarding" | "logstream";
|
|
7
7
|
/** Observation mode classes: passive capture, watched lifetimes and diffing passes. */
|
|
8
8
|
export type observationmode = "passive" | "watching" | "diffing";
|
|
9
9
|
export interface toolstep {
|
|
@@ -228,6 +228,32 @@ export interface runsettings {
|
|
|
228
228
|
phishfreshness?: number;
|
|
229
229
|
/** User configured mask shapes for sensitive field shapes beyond the documented password, token, card and secret families; per origin mask rules extend this list. */
|
|
230
230
|
maskshapes?: string[];
|
|
231
|
+
/** Retention window for stored site notes; an absent window keeps every note. */
|
|
232
|
+
noteretention?: number;
|
|
233
|
+
/** Retention window for scratchpad entries; an absent window keeps every entry. */
|
|
234
|
+
scratchpadretention?: number;
|
|
235
|
+
/** Retention window for stored run summaries; an absent window keeps every summary. */
|
|
236
|
+
summaryretention?: number;
|
|
237
|
+
/** Retention window for stored correction memory entries; an absent window keeps every correction. */
|
|
238
|
+
correctionretention?: number;
|
|
239
|
+
/** The semantic recall index window in milliseconds; an entry older than the window leaves the live index while its records stay. */
|
|
240
|
+
recallwindow?: number;
|
|
241
|
+
/** True when historysearch index building stays on; an absent value keeps the incremental index on. */
|
|
242
|
+
historyindex?: boolean;
|
|
243
|
+
/** The user cancelrun rollback preference: queued rolls the queued steps back while none stops the run without a rollback. */
|
|
244
|
+
cancelrollback?: "queued" | "none";
|
|
245
|
+
/** The runsummary length window in steps the distillation keeps; an absent window keeps every step with no fixed cap. */
|
|
246
|
+
summarywindow?: number;
|
|
247
|
+
/** The commandpalette recent window: the number of most used commands the ranking lifts first; an absent window ranks by match alone. */
|
|
248
|
+
paletterecents?: number;
|
|
249
|
+
/** The logstream live buffer bound: the number of newest events the live window keeps while the full history stays in memory; an absent bound keeps every event live. */
|
|
250
|
+
logstreambuffer?: number;
|
|
251
|
+
/** Retention window for stored taskinput history entries; an absent window keeps every entry. */
|
|
252
|
+
taskinputretention?: number;
|
|
253
|
+
/** The commandpalette keyboard shortcut every surface opens, such as "ctrl+."; an absent value keeps the documented default binding the surfaces ship. */
|
|
254
|
+
paletteshortcut?: string;
|
|
255
|
+
/** The byte ceiling above which diffpreview generation offloads to the offscreen worker pool when the user granted the offscreen capability; an absent ceiling keeps every diff inline. */
|
|
256
|
+
diffpreviewbytes?: number;
|
|
231
257
|
}
|
|
232
258
|
export interface proposalrequest {
|
|
233
259
|
objective: string;
|
|
@@ -4305,7 +4331,7 @@ export interface sealedrunstate {
|
|
|
4305
4331
|
/** The sensitive classes of the 1.1.61 family: payment, credential, delete and publish steps each need one fresh consent prompt per class per origin. */
|
|
4306
4332
|
export type sensitiveclass = "payment" | "credential" | "delete" | "publish";
|
|
4307
4333
|
/** The event kinds of the immutable run log: step transitions, grants, window expiries, revocations, denials, suspensions, resumes and the completion seal. */
|
|
4308
|
-
export type logeventkind = "step" | "grant" | "expiry" | "revoke" | "deny" | "suspend" | "resume" | "seal" | "gate" | "phish" | "schema" | "inbound";
|
|
4334
|
+
export type logeventkind = "step" | "grant" | "expiry" | "revoke" | "deny" | "suspend" | "resume" | "seal" | "gate" | "phish" | "schema" | "inbound" | "cancel" | "review";
|
|
4309
4335
|
/** The hash chain fields of one immutable log entry: the hash of its predecessor, the entry hash written at append time and the algorithm that derives both. */
|
|
4310
4336
|
export interface loghash {
|
|
4311
4337
|
previous: string;
|
|
@@ -4595,4 +4621,351 @@ export interface transparencygrant {
|
|
|
4595
4621
|
boundary: string;
|
|
4596
4622
|
grantedat: number;
|
|
4597
4623
|
}
|
|
4624
|
+
/**
|
|
4625
|
+
* Session interface contracts of the 1.1.63 family.
|
|
4626
|
+
* The session becomes the primary interface here: sitenotes keep one note record per origin with title, body and author provenance while sensitive bodies seal at rest, the scratchpad holds append only entries per task with step provenance, runsummary distills a completed run into the origins visited, the kinds executed and the per step outcomes inside the user configured window, semanticrecall embeds past extraction records into a local fingerprint indexed corpus ranked by text similarity with run and step provenance, correctionmemory captures every plan review edit and rejection per origin and kind, consentmemory keeps every grant, denial, expiry and revocation per origin as advisory history that never auto grants, sessiongrid rows derive from the existing session stores with no new state, historysearch indexes session metadata, notes and summaries into one incremental corpus, errorsurface classifies every failed step cause as page, network, policy or gate with a retry hint carrying the policy verdict, and cancelrun rolls the queued steps back only while the executed steps stay untouched in the sealed log.
|
|
4627
|
+
* The consent gates do not move: every interface action rides the same session, plan and origin review, and no interface surface ever bypasses the human review.
|
|
4628
|
+
*/
|
|
4629
|
+
/** One site note per origin: the title, the plain or sealed body, the author provenance and the timestamps; a sensitive note seals its body at rest so the plain text never persists. */
|
|
4630
|
+
export interface sitenote {
|
|
4631
|
+
id: string;
|
|
4632
|
+
origin: string;
|
|
4633
|
+
title: string;
|
|
4634
|
+
/** The plain body of a non sensitive note; a sensitive note carries its sealedbody instead. */
|
|
4635
|
+
body?: string;
|
|
4636
|
+
/** The locally sealed body of a sensitive note; the sealing stays an at rest measure and never replaces the user keychain. */
|
|
4637
|
+
sealedbody?: string;
|
|
4638
|
+
author: string;
|
|
4639
|
+
sensitive: boolean;
|
|
4640
|
+
createdat: number;
|
|
4641
|
+
updatedat: number;
|
|
4642
|
+
}
|
|
4643
|
+
/** One append only scratchpad entry of one task: the text, its optional step provenance and the timestamp. */
|
|
4644
|
+
export interface scratchpadentry {
|
|
4645
|
+
id: string;
|
|
4646
|
+
taskid: string;
|
|
4647
|
+
sessionid: string;
|
|
4648
|
+
text: string;
|
|
4649
|
+
/** The step the entry was written beside; an entry the user writes carries none. */
|
|
4650
|
+
stepid?: string;
|
|
4651
|
+
author: string;
|
|
4652
|
+
at: number;
|
|
4653
|
+
}
|
|
4654
|
+
/** One distilled run summary of a completed run: the origins visited, the kinds executed, the per step outcomes inside the user configured window and the distillation provenance that names the offscreen worker task. */
|
|
4655
|
+
export interface runsummary {
|
|
4656
|
+
runid: string;
|
|
4657
|
+
sessionid: string;
|
|
4658
|
+
origins: string[];
|
|
4659
|
+
kinds: string[];
|
|
4660
|
+
steps: Array<{
|
|
4661
|
+
stepid: string;
|
|
4662
|
+
kind: string;
|
|
4663
|
+
ok: boolean;
|
|
4664
|
+
summary: string;
|
|
4665
|
+
}>;
|
|
4666
|
+
/** The user configured step window the summary keeps; an absent window keeps every step with no fixed cap. */
|
|
4667
|
+
window?: number;
|
|
4668
|
+
task: "runsummary";
|
|
4669
|
+
/** The distillation provenance: the offscreen worker pool or the inline fallback beside the page. */
|
|
4670
|
+
provenance: "offscreenworker" | "inline";
|
|
4671
|
+
distilledat: number;
|
|
4672
|
+
}
|
|
4673
|
+
/** One semantic recall query: the text to recall and the optional origin scope that stays inside the run scope. */
|
|
4674
|
+
export interface recallquery {
|
|
4675
|
+
text: string;
|
|
4676
|
+
origin?: string;
|
|
4677
|
+
/** The user chosen match limit; an absent limit keeps every ranked match. */
|
|
4678
|
+
limit?: number;
|
|
4679
|
+
}
|
|
4680
|
+
/** One semantic recall index entry: the extraction fingerprint, the origin, the run and step provenance and the indexed text. */
|
|
4681
|
+
export interface recallindexentry {
|
|
4682
|
+
fingerprint: string;
|
|
4683
|
+
origin: string;
|
|
4684
|
+
runid: string;
|
|
4685
|
+
stepid: string;
|
|
4686
|
+
text: string;
|
|
4687
|
+
at: number;
|
|
4688
|
+
}
|
|
4689
|
+
/** One ranked semantic recall match: the indexed entry, the text similarity score and the plain language reason. */
|
|
4690
|
+
export interface recallmatch {
|
|
4691
|
+
entry: recallindexentry;
|
|
4692
|
+
score: number;
|
|
4693
|
+
reason: string;
|
|
4694
|
+
}
|
|
4695
|
+
/** One correction memory entry: the plan review edit or rejection captured per origin and kind, linking the step to its correction. */
|
|
4696
|
+
export interface correctionentry {
|
|
4697
|
+
id: string;
|
|
4698
|
+
origin: string;
|
|
4699
|
+
kind: string;
|
|
4700
|
+
stepid: string;
|
|
4701
|
+
source: "edited" | "rejected";
|
|
4702
|
+
/** The step shape before the correction. */
|
|
4703
|
+
original: string;
|
|
4704
|
+
/** The corrected step shape; a rejected step carries none. */
|
|
4705
|
+
corrected?: string;
|
|
4706
|
+
reason: string;
|
|
4707
|
+
at: number;
|
|
4708
|
+
}
|
|
4709
|
+
/** One consent memory entry per origin: the grant, denial, expiry or revocation decision with its boundary, its kinds and its optional expiry; the record stays advisory and never auto grants. */
|
|
4710
|
+
export interface consentmemoryentry {
|
|
4711
|
+
id: string;
|
|
4712
|
+
origin: string;
|
|
4713
|
+
decision: "grant" | "deny" | "expire" | "revoke";
|
|
4714
|
+
boundary: string;
|
|
4715
|
+
kinds: string[];
|
|
4716
|
+
at: number;
|
|
4717
|
+
/** The expiry the decision carried; an absent expiry keeps the record as history only. */
|
|
4718
|
+
expiresat?: number;
|
|
4719
|
+
}
|
|
4720
|
+
/** One session grid row derived from the session stores with no new state: the session and run ids, the origin set, the live or saved state, the outcome, the step counts, the per tab lock state, the seal hash link of the sealed log chain and the actions the row offers. */
|
|
4721
|
+
export interface sessiongridrow {
|
|
4722
|
+
sessionid: string;
|
|
4723
|
+
runid: string;
|
|
4724
|
+
origins: string[];
|
|
4725
|
+
state: "live" | "saved";
|
|
4726
|
+
outcome: string;
|
|
4727
|
+
steps: number;
|
|
4728
|
+
completed: number;
|
|
4729
|
+
lock: "held" | "free";
|
|
4730
|
+
tabid?: number;
|
|
4731
|
+
sealhash?: string;
|
|
4732
|
+
updatedat: number;
|
|
4733
|
+
actions: Array<"resume" | "cancelrun" | "reopen">;
|
|
4734
|
+
}
|
|
4735
|
+
/** One history search query: the text with the optional origin, time range and outcome filters. */
|
|
4736
|
+
export interface historysearchquery {
|
|
4737
|
+
text: string;
|
|
4738
|
+
origin?: string;
|
|
4739
|
+
from?: number;
|
|
4740
|
+
to?: number;
|
|
4741
|
+
outcome?: string;
|
|
4742
|
+
}
|
|
4743
|
+
/** The corpus sources historysearch indexes: session metadata, site notes and run summaries in one corpus. */
|
|
4744
|
+
export type historysource = "session" | "note" | "summary";
|
|
4745
|
+
/** One history search corpus entry written incrementally on each store write. */
|
|
4746
|
+
export interface historyindexentry {
|
|
4747
|
+
source: historysource;
|
|
4748
|
+
id: string;
|
|
4749
|
+
origin?: string;
|
|
4750
|
+
title: string;
|
|
4751
|
+
text: string;
|
|
4752
|
+
outcome?: string;
|
|
4753
|
+
at: number;
|
|
4754
|
+
}
|
|
4755
|
+
/** One history search hit with the matched terms highlighted and the sealed run link. */
|
|
4756
|
+
export interface historysearchhit {
|
|
4757
|
+
source: historysource;
|
|
4758
|
+
id: string;
|
|
4759
|
+
title: string;
|
|
4760
|
+
excerpt: string;
|
|
4761
|
+
highlights: string[];
|
|
4762
|
+
origin?: string;
|
|
4763
|
+
outcome?: string;
|
|
4764
|
+
at: number;
|
|
4765
|
+
}
|
|
4766
|
+
/** The cause classes of one error surface: the page, the network, the policy or a confirm gate. */
|
|
4767
|
+
export type errorcause = "page" | "network" | "policy" | "gate";
|
|
4768
|
+
/** One error surface payload of a failed step: the cause class, the message in plain language, the retry hint with its policy verdict and the context facts. */
|
|
4769
|
+
export interface errorsurface {
|
|
4770
|
+
stepid: string;
|
|
4771
|
+
runid: string;
|
|
4772
|
+
cause: errorcause;
|
|
4773
|
+
message: string;
|
|
4774
|
+
retry: {
|
|
4775
|
+
allowed: boolean;
|
|
4776
|
+
reason: string;
|
|
4777
|
+
};
|
|
4778
|
+
context: Record<string, string>;
|
|
4779
|
+
at: number;
|
|
4780
|
+
}
|
|
4781
|
+
/** The rollback option descriptor of a cancelrun action: the queued steps it rolls back while the executed steps stay untouched. */
|
|
4782
|
+
export interface rollbackdescriptor {
|
|
4783
|
+
scope: "queued" | "none";
|
|
4784
|
+
label: string;
|
|
4785
|
+
queuedstepids: string[];
|
|
4786
|
+
}
|
|
4787
|
+
/** The cancelrun action of one run: the run and the session it stops with its rollback option descriptor. */
|
|
4788
|
+
export interface cancelrunaction {
|
|
4789
|
+
runid: string;
|
|
4790
|
+
sessionid: string;
|
|
4791
|
+
rollback: rollbackdescriptor;
|
|
4792
|
+
}
|
|
4793
|
+
/** The empty state surfaces of the session interface: the session grid, the history search box, the site notes and the scratchpad. */
|
|
4794
|
+
export type emptystatesurface = "sessiongrid" | "historysearch" | "sitenotes" | "scratchpad";
|
|
4795
|
+
/** One per tab session reference that isolates parallel tabs: the tab, its session, its optional run and its origin. */
|
|
4796
|
+
export interface tabsessionref {
|
|
4797
|
+
tabid: number;
|
|
4798
|
+
sessionid: string;
|
|
4799
|
+
runid?: string;
|
|
4800
|
+
origin: string;
|
|
4801
|
+
updatedat: number;
|
|
4802
|
+
}
|
|
4803
|
+
/**
|
|
4804
|
+
* Interface surface contracts of the 1.1.64 family.
|
|
4805
|
+
* The interface becomes a family of five surfaces here: the popup grows into a command surface, the sidepanel becomes the workspace with plan, run and review tabs, the dashboardpage opens a full page view in a new tab, the optionspage gathers every setting in one place and the onboarding walks a first run. The commandpalette registers entries from every module at startup, lists only the actions the current capability set allows and ranks fuzzy matches with the recent commands first; the taskinput submits natural language goals through the same proposal flow as the api with the active origin and page outline attached; plancards render one card per proposed step with kind, risk class, environment and options grouped by risk class with the sensitive classes expanded by default; stepapprove resolves one step per human action with approve, reject and edit provenance written into the immutable log; diffpreview compares the observed before state with the predicted after state of write class steps only with masked values carrying their mask verdicts; the stepstimeline derives its nodes from progress records with no new state; and the logstream renders live events with level, source and step ref while the single broadcast channel carries run state to every surface.
|
|
4806
|
+
* The consent gates do not move: every surface action rides the same policy gates, the command bus records each routing in the audit trail, and no interface surface ever bypasses the human review.
|
|
4807
|
+
*/
|
|
4808
|
+
/** The five interface surfaces of the 1.1.64 family: the popup command surface, the sidepanel workspace, the dashboardpage, the optionspage and the onboarding walkthrough. */
|
|
4809
|
+
export type uisurface = "popup" | "sidepanel" | "dashboardpage" | "optionspage" | "onboarding";
|
|
4810
|
+
/** One commandpalette action: the command it routes, the surface it opens on, the optional permission it needs granted and whether it needs an active session. */
|
|
4811
|
+
export interface paletteaction {
|
|
4812
|
+
command: string;
|
|
4813
|
+
surface: uisurface;
|
|
4814
|
+
/** The optional capability the command needs granted before the palette lists it; an absent permission needs none. */
|
|
4815
|
+
permission?: string;
|
|
4816
|
+
/** True when the command needs an active browser session before the palette lists it. */
|
|
4817
|
+
session?: boolean;
|
|
4818
|
+
}
|
|
4819
|
+
/** One commandpalette entry: the id, the visible label, the keywords the fuzzy search matches and the action it routes through the command bus. */
|
|
4820
|
+
export interface paletteentry {
|
|
4821
|
+
id: string;
|
|
4822
|
+
label: string;
|
|
4823
|
+
keywords: string[];
|
|
4824
|
+
action: paletteaction;
|
|
4825
|
+
}
|
|
4826
|
+
/** One ranked commandpalette match: the entry, the fuzzy score and the plain language reason it ranked. */
|
|
4827
|
+
export interface palettematch {
|
|
4828
|
+
entry: paletteentry;
|
|
4829
|
+
score: number;
|
|
4830
|
+
reason: string;
|
|
4831
|
+
}
|
|
4832
|
+
/** One taskinput submission: the natural language goal, the page outline context, the active origin scope and the surface it came from. */
|
|
4833
|
+
export interface taskinputsubmission {
|
|
4834
|
+
id: string;
|
|
4835
|
+
text: string;
|
|
4836
|
+
context: string;
|
|
4837
|
+
origin: string;
|
|
4838
|
+
surface: uisurface;
|
|
4839
|
+
at: number;
|
|
4840
|
+
}
|
|
4841
|
+
/** The proposal status the taskinput shows while a plan generates: idle, generating, ready or failed. */
|
|
4842
|
+
export type proposalstatus = "idle" | "generating" | "ready" | "failed";
|
|
4843
|
+
/** One stepstimeline node derived from progress records with no new state: the status, the duration, the environment badge, the active mark, the deep link anchor and the step result summary. */
|
|
4844
|
+
export interface stepstimelinenode {
|
|
4845
|
+
stepid: string;
|
|
4846
|
+
kind: string;
|
|
4847
|
+
status: "pending" | "running" | "waiting" | "done" | "failed" | "halted";
|
|
4848
|
+
durationms?: number;
|
|
4849
|
+
environment?: environmentkind;
|
|
4850
|
+
active: boolean;
|
|
4851
|
+
anchor: string;
|
|
4852
|
+
resultsummary?: string;
|
|
4853
|
+
}
|
|
4854
|
+
/** One logstream event of a live run: the level, the source that emitted it, the origin, the summary in plain language, the optional step ref, the mask verdict of its source payload and the hash chain link written at append time. */
|
|
4855
|
+
export interface logstreamevent {
|
|
4856
|
+
id: string;
|
|
4857
|
+
level: loglevel;
|
|
4858
|
+
source: string;
|
|
4859
|
+
origin: string;
|
|
4860
|
+
summary: string;
|
|
4861
|
+
stepid?: string;
|
|
4862
|
+
masked: boolean;
|
|
4863
|
+
maskverdict: string;
|
|
4864
|
+
hash: loghash;
|
|
4865
|
+
at: number;
|
|
4866
|
+
}
|
|
4867
|
+
/** One logstream filter: the level, origin or step ref the live view keeps. */
|
|
4868
|
+
export interface logstreamfilter {
|
|
4869
|
+
level?: loglevel;
|
|
4870
|
+
origin?: string;
|
|
4871
|
+
stepid?: string;
|
|
4872
|
+
}
|
|
4873
|
+
/** One plancard of the plan review surface: the step id, the kind, the risk class, the execution environment, the reviewed options, the summary, the matching corrections from correctionmemory and the edit before approve offer. */
|
|
4874
|
+
export interface plancard {
|
|
4875
|
+
stepid: string;
|
|
4876
|
+
kind: string;
|
|
4877
|
+
risk: actionrisk;
|
|
4878
|
+
environment: environmentkind;
|
|
4879
|
+
options: string;
|
|
4880
|
+
summary: string;
|
|
4881
|
+
corrections: Array<{
|
|
4882
|
+
id: string;
|
|
4883
|
+
source: string;
|
|
4884
|
+
reason: string;
|
|
4885
|
+
}>;
|
|
4886
|
+
editable: boolean;
|
|
4887
|
+
}
|
|
4888
|
+
/** One plancard group of the plan review surface: the risk class of its cards and whether the group renders expanded; sensitive groups expand by default. */
|
|
4889
|
+
export interface plancardgroup {
|
|
4890
|
+
risk: actionrisk;
|
|
4891
|
+
cards: plancard[];
|
|
4892
|
+
expanded: boolean;
|
|
4893
|
+
}
|
|
4894
|
+
/** One stepapprove resolution: the step it resolves, the plan it belongs to, the origin it ran on, the approve, reject or edit decision, the surface the distinct human action came from and the edited step shape an edit carries. */
|
|
4895
|
+
export interface stepapproveresolution {
|
|
4896
|
+
stepid: string;
|
|
4897
|
+
planid: string;
|
|
4898
|
+
origin: string;
|
|
4899
|
+
resolution: "approve" | "reject" | "edit";
|
|
4900
|
+
surface: uisurface;
|
|
4901
|
+
edited?: string;
|
|
4902
|
+
at: number;
|
|
4903
|
+
}
|
|
4904
|
+
/** One diffpreview field change: the field name, the added, changed or removed class and the before and after values it carries. */
|
|
4905
|
+
export interface diffchange {
|
|
4906
|
+
field: string;
|
|
4907
|
+
kind: "added" | "changed" | "removed";
|
|
4908
|
+
before?: string;
|
|
4909
|
+
after?: string;
|
|
4910
|
+
}
|
|
4911
|
+
/** One diffpreview payload: the step it previews, the observed before state, the predicted after state, the field changes with added, changed and removed classes, the mask verdicts per field and the generation provenance. */
|
|
4912
|
+
export interface diffpreviewpayload {
|
|
4913
|
+
stepid: string;
|
|
4914
|
+
before: Record<string, string>;
|
|
4915
|
+
after: Record<string, string>;
|
|
4916
|
+
changes: diffchange[];
|
|
4917
|
+
/** The mask verdict reason per field; an absent field carries no masked value. */
|
|
4918
|
+
maskverdicts: Record<string, string>;
|
|
4919
|
+
provenance: "inline" | "offscreenworker";
|
|
4920
|
+
}
|
|
4921
|
+
/** One onboarding step: the surface it walks, the title, the body and the completion event name its finish records. */
|
|
4922
|
+
export interface onboardingstep {
|
|
4923
|
+
id: string;
|
|
4924
|
+
surface: uisurface;
|
|
4925
|
+
title: string;
|
|
4926
|
+
body: string;
|
|
4927
|
+
completion: string;
|
|
4928
|
+
}
|
|
4929
|
+
/** The onboarding state: the completed steps, the done mark, the single consent scoped event a full completion writes and the timestamps. */
|
|
4930
|
+
export interface onboardingstate {
|
|
4931
|
+
stepscompleted: string[];
|
|
4932
|
+
done: boolean;
|
|
4933
|
+
consentevent?: string;
|
|
4934
|
+
startedat?: number;
|
|
4935
|
+
completedat?: number;
|
|
4936
|
+
}
|
|
4937
|
+
/** One surface action of the command bus: the surface it came from, the command it routes and the optional step and payload it carries. */
|
|
4938
|
+
export interface surfaceaction {
|
|
4939
|
+
surface: uisurface;
|
|
4940
|
+
command: string;
|
|
4941
|
+
stepid?: string;
|
|
4942
|
+
payload?: string;
|
|
4943
|
+
}
|
|
4944
|
+
/** One command bus routing verdict: whether the action dispatched, the gate that decided and the plain language reason. */
|
|
4945
|
+
export interface surfaceroute {
|
|
4946
|
+
dispatched: boolean;
|
|
4947
|
+
gate: string;
|
|
4948
|
+
reason: string;
|
|
4949
|
+
}
|
|
4950
|
+
/** The broadcast channels of the single surface channel: run state, logstream events, session store updates and settings changes. */
|
|
4951
|
+
export type broadcastchannelkind = "runstate" | "logstream" | "sessions" | "settings";
|
|
4952
|
+
/** One broadcast frame of the single surface channel: the channel it rides, the emitting surface, the plain language summary and the time. */
|
|
4953
|
+
export interface broadcastframe {
|
|
4954
|
+
channel: broadcastchannelkind;
|
|
4955
|
+
surface: uisurface | "background";
|
|
4956
|
+
summary: string;
|
|
4957
|
+
at: number;
|
|
4958
|
+
}
|
|
4959
|
+
/** One per surface layout preference: the surface, the preference keys the user set and the update time; the preferences scope per profile workspace. */
|
|
4960
|
+
export interface surfacelayout {
|
|
4961
|
+
surface: uisurface;
|
|
4962
|
+
preferences: Record<string, string>;
|
|
4963
|
+
updatedat: number;
|
|
4964
|
+
}
|
|
4965
|
+
/** One commandpalette usage record: the command, its use count and the last use time the recent first ranking reads. */
|
|
4966
|
+
export interface paletteuserecord {
|
|
4967
|
+
command: string;
|
|
4968
|
+
count: number;
|
|
4969
|
+
lastusedat: number;
|
|
4970
|
+
}
|
|
4598
4971
|
//# sourceMappingURL=types.d.ts.map
|