@wenathlan/extension 1.1.55 → 1.1.57

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/llm.d.ts ADDED
@@ -0,0 +1,238 @@
1
+ import type { commandparse, costbudget, intentkind, localmodelconfig, modelmessage, modeloutput, parseguard, plandraft, providerconfig, protocolstyle, reflectnote, replanrecord, tokenstream, tooldef, toolbrief, usagerecord } from "./types.js";
2
+ import { type fetchtransport } from "./httpclient.js";
3
+ /**
4
+ * Llm integration logics of the 1.1.57 family.
5
+ * Every provider call concern lives in this file: the request shaping for the four protocol styles the user picks (the openai compatible chat completions shape, the openai responses shape, the anthropic messages shape and the google gemini shape — wire shapes for interoperability, never provider names), the response parsing per style, the completion call through the established fetch machinery with its reviewed retries and backoff, the local model calls that never leave the machine, the streaming token parse per style, the natural language command parsing with intent classification, the goal to plan drafting with the grammar lint, the replan of failed runs, the per step reflection with its running lessons, the openapi style tool briefs for model consumption, the parse guardrails that strip code fences and chatter, validate model text against the expected schema, retry malformed output and refuse after exhaustion, and the usage records with cost budget halts.
6
+ * Nothing is hardcoded: no endpoint, no model name, no key, no temperature and no token ceiling ever leaves the user configuration, page content never joins a call the user has not granted and every model drafted plan still passes the same human review.
7
+ */
8
+ /** The refusal markers reviewed by default; user configured markers always win and an empty configured list disables the marker scan. */
9
+ export declare const defaultrefusalmarkers: string[];
10
+ /** One shaped model request: the url, the method, the headers and the body text per protocol style. */
11
+ export interface shapedrequest {
12
+ url: string;
13
+ method: string;
14
+ headers: Record<string, string>;
15
+ body: string;
16
+ }
17
+ /** The usage a completion answer reports: prompt, completion and total token counts. */
18
+ export interface modelusage {
19
+ prompttokens: number;
20
+ completiontokens: number;
21
+ totaltokens: number;
22
+ }
23
+ /** Builds the completion request of one protocol style: the endpoint url, the headers with the key placed where the style expects it and the body envelope the style speaks. The user configured headers merge over the shape headers so any gateway works. */
24
+ export declare function buildrequest(input: {
25
+ provider: {
26
+ endpoint: string;
27
+ style: protocolstyle;
28
+ headers?: Record<string, string>;
29
+ };
30
+ model: string;
31
+ messages: modelmessage[];
32
+ apikey?: string;
33
+ temperature?: number;
34
+ maxtokens?: number;
35
+ stream?: boolean;
36
+ }): shapedrequest;
37
+ /** Parses one completion answer of the protocol style: the answer text and the usage counts; a malformed answer reports why nothing parsed. */
38
+ export declare function parsecompletion(style: protocolstyle, body: string): {
39
+ text?: string;
40
+ usage?: modelusage;
41
+ reason?: string;
42
+ };
43
+ /** Returns true when the url points at a local machine endpoint: a loopback host keeps the model call inside the machine. */
44
+ export declare function islocalorigin(url: string): boolean;
45
+ /** Sends one completion request to a user configured provider: the request shapes per protocol style, the page content stays stripped unless the user granted it, a configured auth reference without a resolved key refuses the call and the answer parses per style with its usage counts; retries and backoff ride the reviewed fetch options. */
46
+ export declare function callmodel(input: {
47
+ provider: providerconfig;
48
+ model: string;
49
+ messages: modelmessage[];
50
+ apikey?: string;
51
+ temperature?: number;
52
+ maxtokens?: number;
53
+ pagecontent?: string;
54
+ pagegrant?: boolean;
55
+ stream?: boolean;
56
+ options?: {
57
+ timeout?: number;
58
+ retries?: number;
59
+ backoff?: number;
60
+ follow?: number;
61
+ };
62
+ transport: fetchtransport;
63
+ sleep?: (milliseconds: number) => Promise<void>;
64
+ now?: () => number;
65
+ }): Promise<{
66
+ text: string;
67
+ usage?: modelusage;
68
+ request: shapedrequest;
69
+ }>;
70
+ /** Sends one completion request to the local model endpoint: the endpoint must stay local so the call never leaves the machine, the key stays optional because local runtimes need none and the answer parses per the configured style. */
71
+ export declare function calllocal(input: {
72
+ local: localmodelconfig;
73
+ messages: modelmessage[];
74
+ apikey?: string;
75
+ temperature?: number;
76
+ maxtokens?: number;
77
+ options?: {
78
+ timeout?: number;
79
+ retries?: number;
80
+ backoff?: number;
81
+ follow?: number;
82
+ };
83
+ transport: fetchtransport;
84
+ sleep?: (milliseconds: number) => Promise<void>;
85
+ now?: () => number;
86
+ }): Promise<{
87
+ text: string;
88
+ usage?: modelusage;
89
+ request: shapedrequest;
90
+ }>;
91
+ /** Parses one streaming event payload of the protocol style into its token text: the chat completions delta content, the responses output text delta, the messages content block text delta and the gemini candidate part text. */
92
+ export declare function streamdelta(style: protocolstyle, event: string): string;
93
+ /** Parses one server sent event body of the protocol style into the ordered token stream it carries; the done marker rides the last token of a finished stream. */
94
+ export declare function parsestream(style: protocolstyle, body: string): tokenstream[];
95
+ /** Streams one completion request when the provider supports it: the request carries the stream flag of its style, the transport seam returns the server sent event body and the ordered tokens assemble into the answer text with its token count. */
96
+ export declare function streammodel(input: {
97
+ provider: providerconfig;
98
+ model: string;
99
+ messages: modelmessage[];
100
+ apikey?: string;
101
+ temperature?: number;
102
+ maxtokens?: number;
103
+ pagecontent?: string;
104
+ pagegrant?: boolean;
105
+ options?: {
106
+ timeout?: number;
107
+ retries?: number;
108
+ backoff?: number;
109
+ follow?: number;
110
+ };
111
+ transport: fetchtransport;
112
+ sleep?: (milliseconds: number) => Promise<void>;
113
+ now?: () => number;
114
+ }): Promise<{
115
+ text: string;
116
+ tokens: number;
117
+ request: shapedrequest;
118
+ }>;
119
+ /** The command parse guard schema: the intent kind, the entities array and the confidence number the parsed command answer carries. */
120
+ export declare const commandguard: parseguard;
121
+ /** Classifies one natural language request into its intent kind with a confidence score: the deterministic keyword scan works without any provider, the confidence rides the matched keyword density and an unmatched request classifies as ask with a low score. */
122
+ export declare function classifyintent(text: string): {
123
+ intent: intentkind;
124
+ confidence: number;
125
+ };
126
+ /** Parses one natural language command into its structured result: the model call rides the routed provider, the answer passes the command guard with its retries and the parsed intent, entities and confidence land in the commandparse record; a model refusal reports why nothing parsed. */
127
+ export declare function parsecommand(input: {
128
+ provider: providerconfig;
129
+ model: string;
130
+ text: string;
131
+ apikey?: string;
132
+ transport: fetchtransport;
133
+ sleep?: (milliseconds: number) => Promise<void>;
134
+ now?: () => number;
135
+ guard?: parseguard;
136
+ }): Promise<{
137
+ parse?: commandparse;
138
+ output?: modeloutput;
139
+ reason?: string;
140
+ }>;
141
+ /** Builds one model drafted plan from a goal: the model call drafts the steps and open questions, the grammar lint checks every drafted step against the action grammar before review and the draft records its provider and model provenance; the draft never executes until the human review approves it. */
142
+ export declare function draftplan(input: {
143
+ provider: providerconfig;
144
+ model: string;
145
+ goal: string;
146
+ origin?: string;
147
+ lessons?: string[];
148
+ apikey?: string;
149
+ transport: fetchtransport;
150
+ sleep?: (milliseconds: number) => Promise<void>;
151
+ now?: () => number;
152
+ }): Promise<{
153
+ draft?: plandraft;
154
+ output?: modeloutput;
155
+ reason?: string;
156
+ }>;
157
+ /** Regenerates the tail of a failed plan: the completed steps stay untouched, the failed steps fall away and the model drafted tail steps carry the fresh review marker so the human review approves every revised step again; the replan record keeps the failure reason and the model provenance. */
158
+ export declare function replannonfail(input: {
159
+ provider: providerconfig;
160
+ model: string;
161
+ draft: plandraft;
162
+ completedstepids: string[];
163
+ failedstepids: string[];
164
+ reason: string;
165
+ lessons?: string[];
166
+ apikey?: string;
167
+ transport: fetchtransport;
168
+ sleep?: (milliseconds: number) => Promise<void>;
169
+ now?: () => number;
170
+ }): Promise<{
171
+ replan?: replanrecord;
172
+ output?: modeloutput;
173
+ reason?: string;
174
+ }>;
175
+ /** Reflects one executed step: the model call reads the step outcome with the running lessons of the earlier steps and answers the lesson learned plus the advice for the next step; the note records its run, step and model provenance. */
176
+ export declare function reflectstep(input: {
177
+ provider: providerconfig;
178
+ model: string;
179
+ runid: string;
180
+ stepid: string;
181
+ outcome: string;
182
+ lessons?: string[];
183
+ apikey?: string;
184
+ transport: fetchtransport;
185
+ sleep?: (milliseconds: number) => Promise<void>;
186
+ now?: () => number;
187
+ }): Promise<{
188
+ note?: reflectnote;
189
+ output?: modeloutput;
190
+ reason?: string;
191
+ }>;
192
+ /** Summarizes the running lessons of the reflection notes so the next prompt carries them; the newest lesson of every step rides the summary in step order. */
193
+ export declare function reflectionsummary(notes: reflectnote[]): string;
194
+ /** Strips the guardrail noise of one model answer before parsing: code fences open the payload, chatter lines around a json object fall away and a fenced block without a language tag keeps its inner text. */
195
+ export declare function stripguardrails(text: string): string;
196
+ /** Validates one stripped model answer against the guard schema: every required field must be present with its declared type while optional fields pass through; the verdict reports invalid with the reason otherwise. */
197
+ export declare function parseoutput(input: {
198
+ guard: parseguard;
199
+ text: string;
200
+ }): modeloutput;
201
+ /** Runs the parse guard over the model answer attempts: a valid attempt wins, a refusal marker refuses without retries, malformed answers retry up to the configured count and the exhaustion of every attempt refuses the output so nothing invalid ever executes. */
202
+ export declare function guardoutput(input: {
203
+ guard: parseguard;
204
+ attempts: string[];
205
+ }): modeloutput;
206
+ /** Builds the openapi style tool brief of one catalog tool: the name, the summary line, the description, the risk class and the typed parameter list with their required markers. */
207
+ export declare function toolbriefof(tool: tooldef): toolbrief;
208
+ /** Renders the tool briefs in openapi style for model consumption: every tool lists its name, summary, risk class and typed parameters so the model knows the surface it may propose; the consent notice states that side effects need the named approved step. */
209
+ export declare function rendertoolbriefs(tools: tooldef[]): string;
210
+ /** Records one usage entry of a model call: the run and step ids ride the record together with the provider, the endpoint, the model, the token counts and the cost; newer records prepend so the newest call reads first. */
211
+ export declare function addusage(records: usagerecord[], record: usagerecord): usagerecord[];
212
+ /** Aggregates the usage records per run, per step and per period: the prompt, completion and total token counts, the cost total and the call count of every record the filter keeps. */
213
+ export declare function usagetotals(records: usagerecord[], filter?: {
214
+ runid?: string;
215
+ stepid?: string;
216
+ since?: number;
217
+ until?: number;
218
+ }): {
219
+ prompttokens: number;
220
+ completiontokens: number;
221
+ totaltokens: number;
222
+ cost: number;
223
+ calls: number;
224
+ };
225
+ /** Checks the cost budget of a run: a reached token or currency ceiling halts the run and asks the user before anything else runs, while an absent ceiling stays unbounded because every ceiling is a user choice. */
226
+ export declare function budgetcheck(input: {
227
+ budget: costbudget | undefined;
228
+ totals: {
229
+ totaltokens: number;
230
+ cost: number;
231
+ };
232
+ }): {
233
+ allowed: boolean;
234
+ halted: boolean;
235
+ asksuser: boolean;
236
+ reason?: string;
237
+ };
238
+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B,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAG1O;AAED,sNAAsN;AACtN,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;IAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAK/L"}
@@ -1,4 +1,4 @@
1
- import { type agentplan, type agentsession, type capabilityset, type clientrecord, type jsonrpcframe, type mcpserverconfig, type methodentry, type rpcerror, type rpcerrorcode, type stdiobridge, type toolcatalog, type toolcallrecord, type toolnamespace, type toolresult, type toolstep, type transportkind } from "./types.js";
1
+ import { type agentplan, type agentsession, type callcontext, type capabilityset, type clientrecord, type jsonrpcframe, type mcpserverconfig, type methodentry, type rpcerror, type rpcerrorcode, type stdiobridge, type toolcatalog, type toolcallrecord, type toolnamespace, type toolresult, type toolstep, type transportkind } from "./types.js";
2
2
  /**
3
3
  * Mcp server of the 1.1.54 and 1.1.55 agent protocol family.
4
4
  * Every server, transport and frame routing concern lives in this file: the json rpc frame grammar with newline delimited and http post envelopes, the parse and serialize round trips, the frame validation that rejects malformed ids, unknown methods and bad params, the rpc error codes with their json rpc number mapping, the initialize handshake with the server info, the ping keepalive, the tools/list report of every tool with its json schema inputs and full consent metadata, the capability negotiation over protocol version, tool compatibility floor and transports, the per client tool floor negotiation, the client records with their pairing state, the per client request queue serialization under the user configured depth, the consent gated tool dispatch that checks the namespace first so unknown tools fail fast and never bypasses review, the localhost bind with its documented default, the stdio bridge that launches through the native messaging host manifest, relays frames in both directions and restarts a dead client process, and the framed logs that never leak payloads.
@@ -32,7 +32,7 @@ export declare function respond(input: {
32
32
  result?: unknown;
33
33
  error?: rpcerror;
34
34
  }): jsonrpcframe;
35
- /** The mcp server routing table: every json rpc method with its plain language description and the internal handler its frames route to. */
35
+ /** The mcp server routing table: every json rpc method with its plain language description and the internal handler its frames route to; the 1.1.56 family adds the prompt tools and the in flight cancellation. */
36
36
  export declare function servermethods(): methodentry[];
37
37
  /** Builds the capability set the server offers: the protocol version, the server identity, the tool compatibility floor, the tool count, the namespaces and the allowed transports. */
38
38
  export declare function servercapabilities(input: {
@@ -124,7 +124,7 @@ export declare function dispatchtool(input: {
124
124
  error?: rpcerror;
125
125
  step?: toolstep;
126
126
  }>;
127
- /** Parses, validates and routes one json rpc frame: parse failures answer with the parse error, validation failures echo the same id with their error, and clean frames reach the handler the routing table names; every response keeps the request id. */
127
+ /** Parses, validates and routes one json rpc frame: parse failures answer with the parse error, validation failures echo the same id with their error, and clean frames reach the handler the routing table names — the 1.1.56 family routes the prompt tool listing, the prompt rendering and the in flight cancellation while the stateful subscription, resource, sampling and batch methods route through the frame intake with their persisted state; every response keeps the request id. */
128
128
  export declare function handleframe(input: {
129
129
  raw?: string;
130
130
  frame?: jsonrpcframe;
@@ -137,6 +137,7 @@ export declare function handleframe(input: {
137
137
  tabid: number;
138
138
  now: number;
139
139
  scopes?: toolnamespace[];
140
+ contexts?: callcontext[];
140
141
  execute: (step: toolstep) => toolresult | Promise<toolresult>;
141
142
  }): Promise<jsonrpcframe>;
142
143
  /** Normalizes the http listener bind of one server config: an absent bind keeps the documented localhost default and the report states whether the bind stays local. */
@@ -167,7 +168,7 @@ export declare function restartbridge(input: {
167
168
  }): stdiobridge;
168
169
  /** Emits one framed log line for local debugging: only the event, the time and scalar fields ride the line so params, results and payloads never leak into logs. */
169
170
  export declare function framedlog(event: string, at: number, fields?: Record<string, string | number | boolean>): string;
170
- /** Builds one mcp tool call record for the audit trail and the recent calls view: the client, the tool, the origin and the outcome without any payload. */
171
+ /** Builds one mcp tool call record for the audit trail and the recent calls view: the client, the tool, the origin and the outcome without any payload; the 1.1.56 family adds the call id, the idempotency key and the dry run, mock, batch and replay markers. */
171
172
  export declare function toolcallevent(input: {
172
173
  id: string;
173
174
  clientid: string;
@@ -176,5 +177,11 @@ export declare function toolcallevent(input: {
176
177
  ok: boolean;
177
178
  now: number;
178
179
  code?: rpcerrorcode;
180
+ callid?: string;
181
+ idempotencykey?: string;
182
+ dryrun?: boolean;
183
+ mocked?: boolean;
184
+ batchid?: string;
185
+ replayed?: boolean;
179
186
  }): toolcallrecord;
180
187
  //# sourceMappingURL=mcpserver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mcpserver.d.ts","sourceRoot":"","sources":["../mcpserver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAIrV;;;;GAIG;AAEH,gFAAgF;AAChF,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC,uFAAuF;AACvF,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC,mLAAmL;AACnL,eAAO,MAAM,eAAe,EAAE,MAAM,CA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CAAC;IAAC,EAAE,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,YAAY,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,cAAc,CAEtR"}
package/dist/memory.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { a11ycapture, agentplan, agentsession, agentpreset, allowlistentry, apikeyentry, apimapentry, artifactinventoryentry, artifactrecord, approvalexec, approvalrequest, auditevent, authhandshakeevent, authrecord, autosnapshotstate, bannerreport, blackboxrule, blockrule, bodyrecord, bridgelaunch, breakpointspec, branchoutcome, callrecord, capabilityreport, capabilityset, captchahandoff, capturecounter, cdpcommand, cdpeventrule, cdpsession, channelrecord, clientidentity, clientrecord, clipboardconsentrecord, cleanuprule, cleanuprun, clipentry, clickablemap, closedtab, consolediff, consoleconsentrecord, controlflowdecision, cookieoperation, controltabstate, cpuprofile, curatedlist, dataset, debuggergrant, derivedselector, detectionrecord, devicepreset, diagnosticreport, dialogdecision, dialogpolicy, downloadrecord, emulationlayer, emulationstate, endpointconfig, endpointrecord, errorrecord, errorreport, eventsubscription, exchangerecord, exportedartifact, extractsession, fetchconsent, flowmetric, focusevent, formprofile, growsample, headerule, heaprecord, imagebatch, keyholdstate, levelsummary, locationconsent, locationpreset, loglevel, longtaskentry, mcpserverconfig, mcpserverstate, manualrun, mediarecord, memorytrend, messageenvelope, mockspec, mimefilter, mutationevent, navcontrol, navintentrecord, navqueues, navrecord, netlogrecord, networkpreset, observationrecord, pagesignals, pairingcode, pausestate, permissionoverriderecord, planprogress, provenancerecord, proxyroute, quarantineentry, ratelimitread, ratelimitstate, readercapture, recenttab, recordingconsentrecord, recordingrecord, rejectionrecord, resolutionsummary, retryoutcome, rotationtargetrecord, runsettings, safetyverdict, scanhookconfig, scriptoverride, sessiondiff, sessionevent, sessionfolder, sessionmatch, sessionrecord, sessionsnapshot, searchquery, sessiontoken, sheetendpoint, shiftentry, shotpair, shotrecord, snapshotdiff, sourcemapconsent, sourcemapref, stepoutcome, streamchannel, streamstate, submitticket, tabbadge, tabgrouprecord, tablayout, tabmeta, tabwatchevent, taskrules, taskstate, templateprofile, timelineentry, tokenrecord, toolcallrecord, tracerecord, trailentry, triggerfire, triggerule, typeaheadpick, waitprofilerecord, watchexpression, watchregistration, wizardstate, workflowprovenance, workflowrecord, workflowrun, runlogentry, steptemplate, variablescope, editorlayout, runhistoryentry, siteoverride, watchdogrecord, workflowimport, workflowversion, versiondiff } from "./types.js";
1
+ import type { a11ycapture, commandparse, costbudget, agentplan, agentsession, agentpreset, allowlistentry, apikeyentry, apimapentry, artifactinventoryentry, artifactrecord, approvalexec, approvalrequest, auditevent, authhandshakeevent, authrecord, autosnapshotstate, bannerreport, blackboxrule, blockrule, bodyrecord, bridgelaunch, breakpointspec, branchoutcome, batchcall, callcontext, callratelimit, callrecord, capabilityreport, capabilityset, captchahandoff, capturecounter, cdpcommand, cdpeventrule, cdpsession, channelrecord, clientidentity, clientrecord, clipboardconsentrecord, cleanuprule, cleanuprun, clipentry, clickablemap, closedtab, consolediff, consoleconsentrecord, controlflowdecision, cookieoperation, controltabstate, cpuprofile, curatedlist, dataset, debuggergrant, derivedselector, detectionrecord, devicepreset, diagnosticreport, dialogdecision, dialogpolicy, downloadrecord, emulationlayer, emulationstate, endpointconfig, endpointrecord, errorrecord, errorreport, eventsubscription, exchangerecord, exportedartifact, extractsession, fetchconsent, flowmetric, focusevent, formprofile, growsample, headerule, heaprecord, idempotencyrecord, imagebatch, keyholdstate, levelsummary, localmodelconfig, modeloutput, modelroute, plandraft, prompttemplate, providerconfig, reflectnote, replanrecord, locationconsent, locationpreset, loglevel, longtaskentry, mcpserverconfig, mcpserverstate, manualrun, mediarecord, memorytrend, messageenvelope, mockspec, mimefilter, mutationevent, navcontrol, navintentrecord, navqueues, navrecord, netlogrecord, networkpreset, observationrecord, pagesignals, pairingcode, pausestate, permissionoverriderecord, planprogress, progressnotice, protocoleventsubscription, provenancerecord, proxyroute, quarantineentry, ratelimitread, ratelimitstate, readercapture, recenttab, recordingconsentrecord, recordingrecord, rejectionrecord, resolutionsummary, resourcewatch, retryoutcome, rotationtargetrecord, runsettings, safetyverdict, samplingrequest, scanhookconfig, scriptoverride, sessiondiff, sessionevent, sessionfolder, sessionmatch, sessionrecord, sessionsnapshot, searchquery, sessiontoken, sheetendpoint, shiftentry, shotpair, shotrecord, snapshotdiff, sourcemapconsent, sourcemapref, stepoutcome, streamchannel, streamchunk, streamstate, submitticket, tabbadge, tabgrouprecord, tablayout, tabmeta, tabwatchevent, taskrules, taskstate, templateprofile, timelineentry, tokenrecord, toolcallrecord, toolmock, tracerecord, usagerecord, trailentry, triggerfire, triggerule, typeaheadpick, waitprofilerecord, watchexpression, watchregistration, wizardstate, workflowprovenance, workflowrecord, workflowrun, runlogentry, steptemplate, variablescope, editorlayout, runhistoryentry, siteoverride, watchdogrecord, workflowimport, workflowversion, versiondiff } 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>;
@@ -850,6 +850,127 @@ export declare class sessionmemory {
850
850
  getstreamchannels(): Promise<streamchannel[]>;
851
851
  /** Replaces the stored stream channel set after one open, heartbeat or close sweep. */
852
852
  setstreamchannels(channels: streamchannel[]): Promise<void>;
853
+ /** Returns every client event subscription with its kinds and filters, newest first. */
854
+ geteventsubscriptions(): Promise<protocoleventsubscription[]>;
855
+ /** Replaces the stored event subscription set after one subscribe, unsubscribe or delivery sweep. */
856
+ seteventsubscriptions(subscriptions: protocoleventsubscription[]): Promise<void>;
857
+ /** Returns every page state resource watcher with its baseline, newest first. */
858
+ getresourcewatches(): Promise<resourcewatch[]>;
859
+ /** Replaces the stored resource watcher set after one watch, unwatch or delta push. */
860
+ setresourcewatches(watches: resourcewatch[]): Promise<void>;
861
+ /** Returns every sampling request with its provenance, newest first. */
862
+ getsamplingrequests(): Promise<samplingrequest[]>;
863
+ /** Replaces the stored sampling request set after one request or answer. */
864
+ setsamplingrequests(requests: samplingrequest[]): Promise<void>;
865
+ /** Returns every stored idempotency record for replay, newest first. */
866
+ getidempotencyrecords(): Promise<idempotencyrecord[]>;
867
+ /** Replaces the stored idempotency record set after one store or expiry sweep. */
868
+ setidempotencyrecords(records: idempotencyrecord[]): Promise<void>;
869
+ /** Returns every per client rate limit counter with its window and budget. */
870
+ getcallratelimits(): Promise<callratelimit[]>;
871
+ /** Replaces the stored per client rate limit set after one configuration or counted call. */
872
+ setcallratelimits(limits: callratelimit[]): Promise<void>;
873
+ /** Returns every stored batch call with its per item outcomes, newest first. */
874
+ getbatchcalls(): Promise<batchcall[]>;
875
+ /** Upserts one batch call by its id with the per item outcomes riding the record. */
876
+ setbatchcall(batch: batchcall): Promise<void>;
877
+ /** Returns every call context of the call runtime, newest first. */
878
+ getcallcontexts(): Promise<callcontext[]>;
879
+ /** Replaces the stored call context set after one begin, end or cancellation. */
880
+ setcallcontexts(contexts: callcontext[]): Promise<void>;
881
+ /** Returns every stored tool mock for client testing. */
882
+ gettoolmocks(): Promise<toolmock[]>;
883
+ /** Upserts one tool mock by its tool name or removes it when the canned result is absent. */
884
+ settoolmock(mock: toolmock): Promise<void>;
885
+ /** Removes one tool mock so its tool returns to the real gates. */
886
+ removetoolmock(tool: string): Promise<void>;
887
+ /** Stores one stream chunk of a progressive tool result under the recent chunk window of 25 records. */
888
+ addstreamchunk(chunk: streamchunk): Promise<void>;
889
+ /** Returns the recent stream chunks of progressive tool results, newest first. */
890
+ getstreamchunks(): Promise<streamchunk[]>;
891
+ /** Replaces the recent stream chunk window after one streaming sweep. */
892
+ setstreamchunks(chunks: streamchunk[]): Promise<void>;
893
+ /** Returns the audited tool call log under the requested filters: the client, the tool, the outcome, the time floor and the newest bound, all optional. */
894
+ getcalllog(filters?: {
895
+ clientid?: string;
896
+ tool?: string;
897
+ ok?: boolean;
898
+ since?: number;
899
+ limit?: number;
900
+ }): Promise<toolcallrecord[]>;
901
+ /** Stores one progress notice of a long tool call under the recent notice window of 25 records. */
902
+ addprogressnotice(notice: progressnotice): Promise<void>;
903
+ /** Returns the recent progress notices of long tool calls, newest first. */
904
+ getprogressnotices(): Promise<progressnotice[]>;
905
+ /** Returns the tool dry run toggle of the next call: true once the user armed the dry run in the panel. */
906
+ getdryruntoggle(): Promise<boolean>;
907
+ /** Arms or disarms the tool dry run of the next call. */
908
+ setdryruntoggle(enabled: boolean): Promise<void>;
909
+ /** Returns every user configured provider config of the 1.1.57 llm integration; the api keys stay behind their storage id references, never inside these records. */
910
+ getproviders(): Promise<providerconfig[]>;
911
+ /** Replaces the stored provider config set after one save, test or removal. */
912
+ setproviders(providers: providerconfig[]): Promise<void>;
913
+ /** Returns the user configured local model endpoint of the browser reachable inference. */
914
+ getlocalmodel(): Promise<localmodelconfig | undefined>;
915
+ /** Stores the local model endpoint config after one save or health check. */
916
+ setlocalmodel(config: localmodelconfig): Promise<void>;
917
+ /** Returns every model route entry of the routing table, newest update first. */
918
+ getmodelroutes(): Promise<modelroute[]>;
919
+ /** Replaces the stored routing table after one route edit. */
920
+ setmodelroutes(routes: modelroute[]): Promise<void>;
921
+ /** Appends one revision entry to the model route revision history so every routing change stays queryable for audit. */
922
+ addmodelrouterevision(route: modelroute): Promise<void>;
923
+ /** Returns the model route revision history, newest first. */
924
+ getmodelroutehistory(): Promise<modelroute[]>;
925
+ /** Records one usage entry of a model call with its run and step ids; the newest call reads first and an absent retention keeps every record. */
926
+ addusagerecord(record: usagerecord): Promise<void>;
927
+ /** Returns every stored usage record of model calls, newest first. */
928
+ getusagerecords(): Promise<usagerecord[]>;
929
+ /** Returns the token and cost totals per period: the run, the step, the since floor and the until ceiling stay optional filters over the stored usage records. */
930
+ getusage(filter?: {
931
+ runid?: string;
932
+ stepid?: string;
933
+ since?: number;
934
+ until?: number;
935
+ }): Promise<{
936
+ prompttokens: number;
937
+ completiontokens: number;
938
+ totaltokens: number;
939
+ cost: number;
940
+ calls: number;
941
+ }>;
942
+ /** Stores one model drafted plan for review and audit; newer drafts read first. */
943
+ addplandraft(draft: plandraft): Promise<void>;
944
+ /** Replaces the stored draft set after one review decision. */
945
+ setplandrafts(drafts: plandraft[]): Promise<void>;
946
+ /** Returns every stored model drafted plan, newest first. */
947
+ getplandrafts(): Promise<plandraft[]>;
948
+ /** Stores one replan record for the fresh review and the audit history; newer replans read first. */
949
+ addreplan(replan: replanrecord): Promise<void>;
950
+ /** Replaces the stored replan set after one fresh review decision. */
951
+ setreplans(replans: replanrecord[]): Promise<void>;
952
+ /** Returns every stored replan record, newest first. */
953
+ getreplans(): Promise<replanrecord[]>;
954
+ /** Stores one reflection note of an executed step under the recent note window of 100 records. */
955
+ addreflectnote(note: reflectnote): Promise<void>;
956
+ /** Returns the stored reflection notes, newest first. */
957
+ getreflectnotes(): Promise<reflectnote[]>;
958
+ /** Replaces the stored prompt template library after one save or removal; every version with its change notes stays stored. */
959
+ setprompttemplates(templates: prompttemplate[]): Promise<void>;
960
+ /** Returns the stored prompt template library with every version, newest first. */
961
+ getprompttemplates(): Promise<prompttemplate[]>;
962
+ /** Returns the stored cost budget of the runs; the run scoped budget wins over the shared one when both exist. */
963
+ getcostbudget(runid?: string): Promise<costbudget | undefined>;
964
+ /** Stores one cost budget; a run scoped budget replaces the earlier budget of its run while the shared budget replaces the shared one. */
965
+ setcostbudget(budget: costbudget): Promise<void>;
966
+ /** Returns the latest parsed natural language command with its intent badge payload. */
967
+ getcommandparse(): Promise<commandparse | undefined>;
968
+ /** Stores the latest parsed natural language command. */
969
+ setcommandparse(parse: commandparse): Promise<void>;
970
+ /** Returns the recent guard refusal notices of invalid or refused model output, newest first under a window of 50. */
971
+ getguardnotices(): Promise<modeloutput[]>;
972
+ /** Records one guard refusal notice for the panel; the verdict reason explains the parse failure and its retries. */
973
+ addguardnotice(output: modeloutput): Promise<void>;
853
974
  }
854
975
  /** Creates identifiers locally without a network dependency. */
855
976
  export declare function randomid(): string;