@eum-agent/plugin 1.0.0 → 1.0.1

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.
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
- import { $ as CoreFrame, Ca as ToolAwaitHumanResult, Da as ExecContext, Dn as PluginSummary, Ea as EffectHandler, Fa as HumanTarget, Gr as TriggerSummary, Ia as EffectKind, Ii as ImageMediaType, Ja as ModelChunk, Ka as SessionAddress, Kn as RequestMethod, Kt as ParamsOf, Na as HumanRequestInput, Nn as PluginSurfaceResource, Pn as PluginSurfaceStream, Qa as ModelRequestFields, Ra as ContextContributor, Sa as StoredEvent, Ta as ToolResult$1, To as FileRef, Ui as AuthorizationRecord, Ur as TriggerScopeItem, Ut as ModelRef, Va as Phase, Vi as AuthorizationInput, Wi as CommandTarget, Xa as ModelPort, Ya as ModelInspection, Yn as ResultOf, Za as ModelRequest, _o as WidgetInstance, ao as ContextOperationEvent, ar as SessionFrame, ba as projectContext, d as AsyncHumanRequest, da as createInterceptChain, ei as WatchSessionSummary, fa as Trigger, fo as RecordableEvent, ha as ModelMiddleware, hi as HistoryView, io as ContextMeasurement, ja as HumanReply, jt as InboxItem, ko as Message, la as Outcome, lt as Frame, ma as AssembleProjectedContext, ni as WorkspaceSummary, nt as CredentialStatus$1, ot as DirectoryListing, pa as effectiveHistory, ro as ContextCompactedEvent, s as AgentSummary, so as Event$1, va as ToolMiddleware, xr as SessionSummary, xt as HumanRequest, zi as MediaLimits } from "./index-Br0Y0fFq.js";
3
- import { G as AgentRevisionRows, I as CredentialRowInput, L as CredentialRows, O as InboxRows, P as TransactionalEventStore, R as AuthorizationCatalog, U as ApprovalGrants, c as SessionOrigins, g as SessionCatalog, j as FileRows, n as TriggerRows, p as SessionDelivery, st as ReadingStore, u as SessionHistoryRows, v as SessionParameterProjection, w as ScopeCatalog } from "./storage-nG0zpW52.js";
4
- import { a as Channel, i as SubprocessManagerOptions, l as Dispose$1, n as SecretBoxState, r as SubprocessManager, t as SecretBox } from "./platform-resources-Cyx3HWbC.js";
5
- import { a as FileStoreOptions, i as FileStore, l as ImageVariant, n as DetailedImageInfo, s as ImageInfo } from "./platform-files-pahy7W9H.js";
2
+ import { Bi as ImageMediaType, Ca as ModelMiddleware, Ct as HumanRequest, Dn as PluginSummary, Ea as ToolMiddleware, Eo as ContextOperationEvent, Gi as AuthorizationInput, Gn as RequestFrame, Ha as EffectKind, Ji as CommandTarget, Jt as ModelRef, Kn as RequestMethod, Kr as TriggerSummary, La as HumanReply, Ma as EffectHandler, Na as ExecContext, Nn as PluginSurfaceResource, No as RecordableEvent, Nt as InboxItem, Oa as projectContext, Oo as Event$1, Pn as PluginSurfaceStream, Qa as ContextContributor, Qo as Message, Ro as JsonValue$1, Rt as InputParamsOf, Sa as AssembleProjectedContext, To as ContextMeasurement, Ui as MediaLimits, Va as HumanTarget, Wr as TriggerScopeItem, Ya as Outcome, Yn as ResultOf, Zr as TurnSpan, _o as ModelFailure, aa as TelemetryStatus, ai as WorkspaceSummary, ao as SessionAddress, ar as SessionFrame, ba as Trigger, bo as StoredEvent, ct as DirectoryListing, d as AsyncHumanRequest, dt as Frame, fo as ModelPort, fs as Channel, g as AuthorizedDirectory, gs as Dispose$1, it as CredentialStatus$1, ja as ToolResult$1, ji as ReadingTurnHeader, ka as ToolAwaitHumanResult, mo as ModelRequestFields, na as TelemetryObservation, oo as OwnerContextEntry, po as ModelRequest, qi as AuthorizationRecord, qo as FileRef, rs as ToolResultDelivery, s as AgentSummary, so as ModelChunk, ti as WatchSessionSummary, to as Phase, ts as RequiredContextBlock, tt as CoreFrame, uo as ModelInspection, v as BatchResults, vi as HistoryView, vo as contextAnswerSource, w as CommittedOperation, wo as ContextCompactedEvent, xa as effectiveHistory, xr as SessionSummary, ya as createInterceptChain, za as HumanRequestInput, zo as WidgetInstance } from "./index-tFmlq6IE.js";
3
+ import { a as FileStoreOptions, i as FileStore, l as ImageVariant, n as DetailedImageInfo, s as ImageInfo } from "./platform-files-C4noBDDZ.js";
4
+ import { B as AgentRevisionRows, C as InboxRows, E as FileRows, M as CredentialRows, N as AuthorizationCatalog, R as ApprovalGrants, a as SessionHistoryRows, c as SessionDelivery, ct as TriggerHeaderPage, d as SessionCatalog, dt as TriggerRows, j as CredentialRowInput, k as TransactionalEventStore, nt as ReadingStore, p as SessionParameterProjection, r as SessionOrigins, y as ScopeCatalog } from "./storage-BfbsmvQp.js";
5
+ import { SecretBox, SecretBoxState, SubprocessManager, SubprocessManagerOptions } from "./platform-resources.js";
6
6
  import { ZodType } from "zod";
7
7
  import { EventEmitter } from "events";
8
8
  import { Agent, ClientRequest, ClientRequestArgs, IncomingMessage, OutgoingHttpHeaders, Server } from "http";
@@ -27,6 +27,331 @@ import { DatabaseSync } from "node:sqlite";
27
27
  */
28
28
  type PluginDependencies = Readonly<Record<string, string>>;
29
29
  //#endregion
30
+ //#region ../../../node_modules/.pnpm/@types+ws@8.18.2/node_modules/@types/ws/index.d.mts
31
+ // can not get all overload of BufferConstructor['from'], need to copy all it's first arguments here
32
+ // https://github.com/microsoft/TypeScript/issues/32164
33
+ type BufferLike = string | Buffer | DataView | number | ArrayBufferView | Uint8Array | ArrayBuffer | SharedArrayBuffer | Blob | readonly any[] | readonly number[] | {
34
+ valueOf(): ArrayBuffer;
35
+ } | {
36
+ valueOf(): SharedArrayBuffer;
37
+ } | {
38
+ valueOf(): Uint8Array;
39
+ } | {
40
+ valueOf(): readonly number[];
41
+ } | {
42
+ valueOf(): string;
43
+ } | {
44
+ [Symbol.toPrimitive](hint: string): string;
45
+ };
46
+ // WebSocket socket.
47
+ declare class WebSocket extends EventEmitter {
48
+ /** The connection is not yet open. */
49
+ static readonly CONNECTING: 0;
50
+ /** The connection is open and ready to communicate. */
51
+ static readonly OPEN: 1;
52
+ /** The connection is in the process of closing. */
53
+ static readonly CLOSING: 2;
54
+ /** The connection is closed. */
55
+ static readonly CLOSED: 3;
56
+ binaryType: "nodebuffer" | "arraybuffer" | "fragments";
57
+ readonly bufferedAmount: number;
58
+ readonly extensions: string;
59
+ /** Indicates whether the websocket is paused */
60
+ readonly isPaused: boolean;
61
+ readonly protocol: string;
62
+ /** The current state of the connection */
63
+ readonly readyState: typeof WebSocket.CONNECTING | typeof WebSocket.OPEN | typeof WebSocket.CLOSING | typeof WebSocket.CLOSED;
64
+ readonly url: string;
65
+ /** The connection is not yet open. */
66
+ readonly CONNECTING: 0;
67
+ /** The connection is open and ready to communicate. */
68
+ readonly OPEN: 1;
69
+ /** The connection is in the process of closing. */
70
+ readonly CLOSING: 2;
71
+ /** The connection is closed. */
72
+ readonly CLOSED: 3;
73
+ onopen: ((event: WebSocket.Event) => void) | null;
74
+ onerror: ((event: WebSocket.ErrorEvent) => void) | null;
75
+ onclose: ((event: WebSocket.CloseEvent) => void) | null;
76
+ onmessage: ((event: WebSocket.MessageEvent) => void) | null;
77
+ constructor(address: null);
78
+ constructor(address: string | URL$1, options?: WebSocket.ClientOptions | ClientRequestArgs);
79
+ constructor(address: string | URL$1, protocols?: string | string[], options?: WebSocket.ClientOptions | ClientRequestArgs);
80
+ close(code?: number, data?: string | Buffer): void;
81
+ ping(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
82
+ pong(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
83
+ // https://github.com/websockets/ws/issues/2076#issuecomment-1250354722
84
+ send(data: BufferLike, cb?: (err?: Error) => void): void;
85
+ send(data: BufferLike, options: {
86
+ mask?: boolean | undefined;
87
+ binary?: boolean | undefined;
88
+ compress?: boolean | undefined;
89
+ fin?: boolean | undefined;
90
+ }, cb?: (err?: Error) => void): void;
91
+ terminate(): void;
92
+ /**
93
+ * Pause the websocket causing it to stop emitting events. Some events can still be
94
+ * emitted after this is called, until all buffered data is consumed. This method
95
+ * is a noop if the ready state is `CONNECTING` or `CLOSED`.
96
+ */
97
+ pause(): void;
98
+ /**
99
+ * Make a paused socket resume emitting events. This method is a noop if the ready
100
+ * state is `CONNECTING` or `CLOSED`.
101
+ */
102
+ resume(): void;
103
+ // HTML5 WebSocket events
104
+ addEventListener<K extends keyof WebSocket.WebSocketEventMap>(type: K, listener: ((event: WebSocket.WebSocketEventMap[K]) => void) | {
105
+ handleEvent(event: WebSocket.WebSocketEventMap[K]): void;
106
+ }, options?: WebSocket.EventListenerOptions): void;
107
+ removeEventListener<K extends keyof WebSocket.WebSocketEventMap>(type: K, listener: ((event: WebSocket.WebSocketEventMap[K]) => void) | {
108
+ handleEvent(event: WebSocket.WebSocketEventMap[K]): void;
109
+ }): void;
110
+ // Events
111
+ on(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
112
+ on(event: "error", listener: (this: WebSocket, error: Error) => void): this;
113
+ on(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
114
+ on(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
115
+ on(event: "open", listener: (this: WebSocket) => void): this;
116
+ on(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
117
+ on(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
118
+ on(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
119
+ on(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
120
+ once(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
121
+ once(event: "error", listener: (this: WebSocket, error: Error) => void): this;
122
+ once(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
123
+ once(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
124
+ once(event: "open", listener: (this: WebSocket) => void): this;
125
+ once(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
126
+ once(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
127
+ once(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
128
+ once(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
129
+ off(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
130
+ off(event: "error", listener: (this: WebSocket, error: Error) => void): this;
131
+ off(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
132
+ off(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
133
+ off(event: "open", listener: (this: WebSocket) => void): this;
134
+ off(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
135
+ off(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
136
+ off(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
137
+ off(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
138
+ addListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
139
+ addListener(event: "error", listener: (error: Error) => void): this;
140
+ addListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
141
+ addListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
142
+ addListener(event: "open", listener: () => void): this;
143
+ addListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
144
+ addListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
145
+ addListener(event: "unexpected-response", listener: (request: ClientRequest, response: IncomingMessage) => void): this;
146
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
147
+ removeListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
148
+ removeListener(event: "error", listener: (error: Error) => void): this;
149
+ removeListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
150
+ removeListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
151
+ removeListener(event: "open", listener: () => void): this;
152
+ removeListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
153
+ removeListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
154
+ removeListener(event: "unexpected-response", listener: (request: ClientRequest, response: IncomingMessage) => void): this;
155
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
156
+ }
157
+ declare namespace WebSocket {
158
+ /**
159
+ * Data represents the raw message payload received over the WebSocket.
160
+ */
161
+ type RawData = Buffer | ArrayBuffer | Buffer[];
162
+ /**
163
+ * Data represents the message payload received over the WebSocket.
164
+ */
165
+ type Data = string | Buffer | ArrayBuffer | Buffer[];
166
+ /**
167
+ * CertMeta represents the accepted types for certificate & key data.
168
+ */
169
+ type CertMeta = string | string[] | Buffer | Buffer[];
170
+ /**
171
+ * VerifyClientCallbackSync is a synchronous callback used to inspect the
172
+ * incoming message. The return value (boolean) of the function determines
173
+ * whether or not to accept the handshake.
174
+ */
175
+ type VerifyClientCallbackSync<Request extends IncomingMessage = IncomingMessage> = (info: {
176
+ origin: string;
177
+ secure: boolean;
178
+ req: Request;
179
+ }) => boolean;
180
+ /**
181
+ * VerifyClientCallbackAsync is an asynchronous callback used to inspect the
182
+ * incoming message. The return value (boolean) of the function determines
183
+ * whether or not to accept the handshake.
184
+ */
185
+ type VerifyClientCallbackAsync<Request extends IncomingMessage = IncomingMessage> = (info: {
186
+ origin: string;
187
+ secure: boolean;
188
+ req: Request;
189
+ }, callback: (res: boolean, code?: number, message?: string, headers?: OutgoingHttpHeaders) => void) => void;
190
+ /**
191
+ * FinishRequestCallback is a callback for last minute customization of the
192
+ * headers. If finishRequest is set, then it has the responsibility to call
193
+ * request.end() once it is done setting request headers.
194
+ */
195
+ type FinishRequestCallback = (request: ClientRequest, websocket: WebSocket) => void;
196
+ interface ClientOptions extends SecureContextOptions {
197
+ protocol?: string | undefined;
198
+ followRedirects?: boolean | undefined;
199
+ generateMask?(mask: Buffer): void;
200
+ handshakeTimeout?: number | undefined;
201
+ maxRedirects?: number | undefined;
202
+ perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
203
+ localAddress?: string | undefined;
204
+ protocolVersion?: number | undefined;
205
+ headers?: {
206
+ [key: string]: string;
207
+ } | undefined;
208
+ origin?: string | undefined;
209
+ agent?: Agent | undefined;
210
+ host?: string | undefined;
211
+ family?: number | undefined;
212
+ checkServerIdentity?(servername: string, cert: CertMeta): boolean;
213
+ rejectUnauthorized?: boolean | undefined;
214
+ allowSynchronousEvents?: boolean | undefined;
215
+ autoPong?: boolean | undefined;
216
+ maxPayload?: number | undefined;
217
+ maxBufferedChunks?: number | undefined;
218
+ maxFragments?: number | undefined;
219
+ skipUTF8Validation?: boolean | undefined;
220
+ createConnection?: typeof createConnection | undefined;
221
+ finishRequest?: FinishRequestCallback | undefined;
222
+ }
223
+ interface PerMessageDeflateOptions {
224
+ serverNoContextTakeover?: boolean | undefined;
225
+ clientNoContextTakeover?: boolean | undefined;
226
+ serverMaxWindowBits?: number | undefined;
227
+ clientMaxWindowBits?: number | undefined;
228
+ zlibDeflateOptions?: {
229
+ flush?: number | undefined;
230
+ finishFlush?: number | undefined;
231
+ chunkSize?: number | undefined;
232
+ windowBits?: number | undefined;
233
+ level?: number | undefined;
234
+ memLevel?: number | undefined;
235
+ strategy?: number | undefined;
236
+ dictionary?: Buffer | Buffer[] | DataView | undefined;
237
+ info?: boolean | undefined;
238
+ } | undefined;
239
+ zlibInflateOptions?: ZlibOptions | undefined;
240
+ threshold?: number | undefined;
241
+ concurrencyLimit?: number | undefined;
242
+ }
243
+ interface Event {
244
+ type: string;
245
+ target: WebSocket;
246
+ }
247
+ interface ErrorEvent {
248
+ error: any;
249
+ message: string;
250
+ type: string;
251
+ target: WebSocket;
252
+ }
253
+ interface CloseEvent {
254
+ wasClean: boolean;
255
+ code: number;
256
+ reason: string;
257
+ type: string;
258
+ target: WebSocket;
259
+ }
260
+ interface MessageEvent {
261
+ data: Data;
262
+ type: string;
263
+ target: WebSocket;
264
+ }
265
+ interface WebSocketEventMap {
266
+ open: Event;
267
+ error: ErrorEvent;
268
+ close: CloseEvent;
269
+ message: MessageEvent;
270
+ }
271
+ interface EventListenerOptions {
272
+ once?: boolean | undefined;
273
+ }
274
+ interface ServerOptions<U extends typeof WebSocket = typeof WebSocket, V extends typeof IncomingMessage = typeof IncomingMessage> {
275
+ host?: string | undefined;
276
+ port?: number | undefined;
277
+ backlog?: number | undefined;
278
+ server?: Server<V> | Server$1<V> | undefined;
279
+ verifyClient?: VerifyClientCallbackAsync<InstanceType<V>> | VerifyClientCallbackSync<InstanceType<V>> | undefined;
280
+ handleProtocols?: (protocols: Set<string>, request: InstanceType<V>) => string | false;
281
+ path?: string | undefined;
282
+ noServer?: boolean | undefined;
283
+ allowSynchronousEvents?: boolean | undefined;
284
+ autoPong?: boolean | undefined;
285
+ clientTracking?: boolean | undefined;
286
+ perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
287
+ maxPayload?: number | undefined;
288
+ maxBufferedChunks?: number | undefined;
289
+ maxFragments?: number | undefined;
290
+ skipUTF8Validation?: boolean | undefined;
291
+ WebSocket?: U | undefined;
292
+ }
293
+ interface AddressInfo {
294
+ address: string;
295
+ family: string;
296
+ port: number;
297
+ }
298
+ }
299
+ import CertMeta = WebSocket.CertMeta;
300
+ import CloseEvent = WebSocket.CloseEvent;
301
+ import Data = WebSocket.Data;
302
+ import ErrorEvent = WebSocket.ErrorEvent;
303
+ import Event = WebSocket.Event;
304
+ import FinishRequestCallback = WebSocket.FinishRequestCallback;
305
+ import MessageEvent = WebSocket.MessageEvent;
306
+ import PerMessageDeflateOptions = WebSocket.PerMessageDeflateOptions;
307
+ import ServerOptions = WebSocket.ServerOptions;
308
+ import VerifyClientCallbackAsync = WebSocket.VerifyClientCallbackAsync;
309
+ import VerifyClientCallbackSync = WebSocket.VerifyClientCallbackSync;
310
+ // WebSocket Server
311
+ declare class Server$2<T extends typeof WebSocket = typeof WebSocket, U extends typeof IncomingMessage = typeof IncomingMessage> extends EventEmitter {
312
+ options: WebSocket.ServerOptions<T, U>;
313
+ path: string;
314
+ clients: Set<InstanceType<T>>;
315
+ constructor(options?: WebSocket.ServerOptions<T, U>, callback?: () => void);
316
+ address(): WebSocket.AddressInfo | string | null;
317
+ close(cb?: (err?: Error) => void): void;
318
+ handleUpgrade(request: InstanceType<U>, socket: Duplex, upgradeHead: Buffer, callback: (client: InstanceType<T>, request: InstanceType<U>) => void): void;
319
+ shouldHandle(request: InstanceType<U>): boolean | Promise<boolean>;
320
+ // Events
321
+ on(event: "connection", cb: (this: Server$2<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
322
+ on(event: "error", cb: (this: Server$2<T>, error: Error) => void): this;
323
+ on(event: "headers", cb: (this: Server$2<T>, headers: string[], request: InstanceType<U>) => void): this;
324
+ on(event: "close" | "listening", cb: (this: Server$2<T>) => void): this;
325
+ on(event: "wsClientError", cb: (this: Server$2<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
326
+ on(event: string | symbol, listener: (this: Server$2<T>, ...args: any[]) => void): this;
327
+ once(event: "connection", cb: (this: Server$2<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
328
+ once(event: "error", cb: (this: Server$2<T>, error: Error) => void): this;
329
+ once(event: "headers", cb: (this: Server$2<T>, headers: string[], request: InstanceType<U>) => void): this;
330
+ once(event: "close" | "listening", cb: (this: Server$2<T>) => void): this;
331
+ once(event: "wsClientError", cb: (this: Server$2<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
332
+ once(event: string | symbol, listener: (this: Server$2<T>, ...args: any[]) => void): this;
333
+ off(event: "connection", cb: (this: Server$2<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
334
+ off(event: "error", cb: (this: Server$2<T>, error: Error) => void): this;
335
+ off(event: "headers", cb: (this: Server$2<T>, headers: string[], request: InstanceType<U>) => void): this;
336
+ off(event: "close" | "listening", cb: (this: Server$2<T>) => void): this;
337
+ off(event: "wsClientError", cb: (this: Server$2<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
338
+ off(event: string | symbol, listener: (this: Server$2<T>, ...args: any[]) => void): this;
339
+ addListener(event: "connection", cb: (websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
340
+ addListener(event: "error", cb: (error: Error) => void): this;
341
+ addListener(event: "headers", cb: (headers: string[], request: InstanceType<U>) => void): this;
342
+ addListener(event: "close" | "listening", cb: () => void): this;
343
+ addListener(event: "wsClientError", cb: (error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
344
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
345
+ removeListener(event: "connection", cb: (websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
346
+ removeListener(event: "error", cb: (error: Error) => void): this;
347
+ removeListener(event: "headers", cb: (headers: string[], request: InstanceType<U>) => void): this;
348
+ removeListener(event: "close" | "listening", cb: () => void): this;
349
+ removeListener(event: "wsClientError", cb: (error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
350
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
351
+ }
352
+ declare const WebSocketServer: typeof Server$2;
353
+ interface WebSocketServer extends Server$2 {} // eslint-disable-line @typescript-eslint/no-empty-interface
354
+ //#endregion
30
355
  //#region node_modules/.cache/dts/plugin/src/widgets.d.ts
31
356
  /** Immutable JSON values supported by widget snapshots. */
32
357
  type JsonValue = null | boolean | number | string | JsonValue[] | JsonObject;
@@ -55,6 +380,101 @@ interface WidgetRegistry {
55
380
  /** Pure readable rendering over an already authenticated effective history. */
56
381
  type MessageTextRenderer = (message: Message, transcript: readonly Message[]) => string;
57
382
  //#endregion
383
+ //#region node_modules/.cache/dts/plugin/src/tool-delivery.d.ts
384
+ /** Opaque handle which grants no authority by itself. */
385
+ interface ToolDeliveryTicket {
386
+ readonly id: string;
387
+ }
388
+ /** Host-issued proof bound to committed source positions and the surviving decision view. */
389
+ interface CommittedToolDelivery {
390
+ readonly ticket: ToolDeliveryTicket;
391
+ readonly owner: string;
392
+ readonly activationEpoch: number;
393
+ readonly sessionId: string;
394
+ readonly address: SessionAddress;
395
+ readonly turn: number;
396
+ readonly step: number;
397
+ readonly toolUseId: string;
398
+ readonly decisionTurn: number;
399
+ readonly decisionStep: number;
400
+ readonly sourceMessageId: string;
401
+ readonly sourcePartIndex: number;
402
+ readonly sourceSeq: number;
403
+ readonly compressionGeneration: number;
404
+ readonly dispatchId: string;
405
+ }
406
+ /** Tracks only exact successful content identities accepted after all tool middleware. */
407
+ interface ToolDeliveryObserver {
408
+ track(ctx: ToolExecContext, result: PluginToolContentResult): ToolDeliveryTicket;
409
+ dispose(): void;
410
+ }
411
+ /** Notifications remain isolated from transport and owner failures. */
412
+ interface ToolDelivery {
413
+ observe(listener: {
414
+ delivered(fact: CommittedToolDelivery): void;
415
+ released(fact: {
416
+ readonly sessionId: string;
417
+ readonly reason: 'session-disposed' | 'rewound' | 'owner-withdrawn';
418
+ }): void;
419
+ }): ToolDeliveryObserver;
420
+ }
421
+ /** Confirmed skill resources are read-only inputs to sandbox planning and refresh. */
422
+ interface SessionSkillReadables {
423
+ roots(caller: {
424
+ readonly sessionId: string;
425
+ readonly address: SessionAddress;
426
+ }): readonly string[];
427
+ }
428
+ //#endregion
429
+ //#region node_modules/.cache/dts/plugin/src/tool-discovery.d.ts
430
+ /** A callable definition without an implementation or registration authority. */
431
+ interface ToolCatalogEntry {
432
+ /** Unique callable tool name. */
433
+ readonly name: string;
434
+ /** Developer-owned functional description used for lexical discovery. */
435
+ readonly description: string;
436
+ /** Complete public JSON Schema, without execution authority. */
437
+ readonly inputSchema: unknown;
438
+ /** Developer recommendation; omitted registration values become true. */
439
+ readonly preloadDefault: boolean;
440
+ /** Effective exposure for this session's working Agent. */
441
+ readonly preload: boolean;
442
+ /** Whether catalogue quotas classify the definition as dynamic. */
443
+ readonly catalogKind?: 'fixed' | 'dynamic';
444
+ /** Applicable owner-declared usage instructions. */
445
+ readonly guidance?: readonly string[];
446
+ }
447
+ /** Immutable session-scoped definitions; a changed identity invalidates discovery cursors. */
448
+ interface ToolCatalogSnapshot {
449
+ /** Current full allowed directory, ordered by tool name. */
450
+ readonly tools: readonly ToolCatalogEntry[];
451
+ /** Binds allowed definitions, preferences, activation identities and history scope. */
452
+ readonly fingerprint: string;
453
+ }
454
+ /** Access requires the actual host-issued execution context, never a caller-selected session. */
455
+ interface ToolCatalog {
456
+ /** Rejects forged or expired contexts; performs no model call or registration. */
457
+ snapshot(ctx: ToolExecContext): ToolCatalogSnapshot;
458
+ }
459
+ /** Exposure preferences follow the executing definition, independently of address authorization. */
460
+ interface ToolExposureView {
461
+ /** Executing session whose allowed catalogue is projected. */
462
+ readonly sessionId: string;
463
+ /** Original address Agent A and workspace used for authorization. */
464
+ readonly address: SessionAddress;
465
+ /** Working Agent, including delegate B in a child session at Agent A's address. */
466
+ readonly agentId: string;
467
+ }
468
+ /** One owner supplies exposure preferences and owns every necessary discovery entrance. */
469
+ interface ToolExposurePolicy {
470
+ /** Necessary entrances owned by this activation; copied and frozen on registration. */
471
+ readonly essential: readonly string[];
472
+ /** Pure read; configuration changes affect the next model assembly. */
473
+ preload(tool: ToolCatalogEntry, view: ToolExposureView): boolean;
474
+ }
475
+ /** Activation-bound installation of the model exposure strategy. */
476
+ type ToolExposureRegistration = (policy: ToolExposurePolicy) => Dispose$1;
477
+ //#endregion
58
478
  //#region node_modules/.cache/dts/plugin/src/sandbox-readables.d.ts
59
479
  /** Owner contributions to shell sandbox reads; never file-tool, write, or network grants. */
60
480
  interface ReadableTarget {
@@ -134,9 +554,9 @@ type AgentExtensionData = Readonly<Record<string, unknown>>;
134
554
  interface PreparedAgentConfiguration {
135
555
  /** Applies validated writes synchronously; opens no independent transaction. */
136
556
  apply(): void;
137
- /** Releases staging or restores external artifacts after rollback. */
557
+ /** Releases staging or restores artifacts after rollback; failures retain retryable cleanup after withdrawal. */
138
558
  abort(): void;
139
- /** Releases rollback artifacts and announces the committed change. */
559
+ /** Releases committed artifacts, remaining callable after withdrawal; failures are retryable and never undo the business write. */
140
560
  settle(): void;
141
561
  }
142
562
  /** One active extension's complete Agent configuration contribution. */
@@ -169,6 +589,250 @@ interface AgentConfigurationStore {
169
589
  write(owner: string, agentId: string, value: unknown): void;
170
590
  }
171
591
  //#endregion
592
+ //#region node_modules/.cache/dts/plugin/src/logging.d.ts
593
+ /** Diagnostic severity; info is the default minimum level. */
594
+ type LogLevel = 'debug' | 'info' | 'warn' | 'error';
595
+ /** Observed completion; missing span-end records remain incomplete. */
596
+ type LogOutcome = 'ok' | 'error' | 'cancelled' | 'timeout' | 'unknown';
597
+ /** Safe failure facts; codes and stages are stable identifiers, never external text. */
598
+ interface LogFailure {
599
+ /** Stable failure code chosen by the reporting component. */
600
+ readonly code: string;
601
+ /** Verified stage identifier, when known. */
602
+ readonly stage?: string;
603
+ /** Verified HTTP status, when known. */
604
+ readonly status?: number;
605
+ /** Whether the reporting policy permits retry. */
606
+ readonly retryable?: boolean;
607
+ }
608
+ /** Bounded diagnostic facts. Content, credentials, paths and arbitrary objects are excluded. */
609
+ interface LogFields {
610
+ /** Actual collection mode when this performance record was admitted. */
611
+ readonly captureMode?: 'off' | 'normal' | 'diagnostic';
612
+ /** Elapsed aggregation window in milliseconds, independent of summed stage work. */
613
+ readonly windowMs?: number;
614
+ /** Start of this aggregation window on windowClockDomain, in monotonic milliseconds. */
615
+ readonly windowStartMs?: number;
616
+ /** Clock of the collector window; relayed worker durations retain their separate record clock. */
617
+ readonly windowClockDomain?: string;
618
+ /** Finite model measurement purpose, separate from its execution stage. */
619
+ readonly measurementPurpose?: string;
620
+ /** Product SemVer reported by the trusted startup composition. */
621
+ readonly producerVersion?: string;
622
+ /** Sum of observed item counts, separate from the duration sample denominator. */
623
+ readonly items?: number;
624
+ /** Finite operation label for grouped performance observations. */
625
+ readonly operation?: string;
626
+ /** Page foreground state when the observation was captured. */
627
+ readonly visibility?: string;
628
+ /** Cache condition captured at the observed operation. */
629
+ readonly cacheState?: string;
630
+ /** Same-clock start time in monotonic milliseconds. */
631
+ readonly monotonicStartMs?: number;
632
+ /** Smallest observed duration in the aggregation window. */
633
+ readonly minMs?: number;
634
+ /** Largest observed duration in the aggregation window. */
635
+ readonly maxMs?: number;
636
+ /** Number of durations above the fifteen millisecond analysis target. */
637
+ readonly aboveTarget?: number;
638
+ /** Fixed cumulative histogram counters using the performance manifest boundaries. */
639
+ readonly histogram?: readonly number[];
640
+ /** Cache hits observed in the window. */
641
+ readonly hits?: number;
642
+ /** Cache misses observed in the window. */
643
+ readonly misses?: number;
644
+ /** Cache removals observed in the window. */
645
+ readonly evictions?: number;
646
+ /** Input bytes considered by the observation. */
647
+ readonly inputBytes?: number;
648
+ /** Current retained cache bytes. */
649
+ readonly retainedBytes?: number;
650
+ /** Stable plugin-local event code, required for plugin.event. */
651
+ readonly localCode?: string;
652
+ /** Stable host diagnostic code. */
653
+ readonly code?: string;
654
+ /** Verified operation stage identifier. */
655
+ readonly stage?: string;
656
+ /** Stable reason identifier. */
657
+ readonly reason?: string;
658
+ /** Registered protocol identifier, when known. */
659
+ readonly protocol?: string;
660
+ /** Non-negative observed item count. */
661
+ readonly count?: number;
662
+ /** Non-negative observed byte count. */
663
+ readonly bytes?: number;
664
+ /** Non-negative observed message count. */
665
+ readonly messages?: number;
666
+ /** Non-negative observed tool count. */
667
+ readonly tools?: number;
668
+ /** Non-negative observed token count. */
669
+ readonly tokens?: number;
670
+ /** Non-negative observed attempt number. */
671
+ readonly attempt?: number;
672
+ /** Non-negative observed queue length. */
673
+ readonly pendingRecords?: number;
674
+ /** Non-negative observed buffered bytes. */
675
+ readonly pendingBytes?: number;
676
+ /** Non-negative monotonic duration in milliseconds. */
677
+ readonly durationMs?: number;
678
+ /** Non-negative observed processing duration in milliseconds. */
679
+ readonly elapsedMs?: number;
680
+ /** Verified HTTP status. */
681
+ readonly status?: number;
682
+ /** Observed completion, when known. */
683
+ readonly outcome?: LogOutcome;
684
+ /** Verified safe failure facts. */
685
+ readonly failure?: LogFailure;
686
+ }
687
+ /** Input facts; identities, dates and sequence numbers are supplied by the host. */
688
+ interface LogRecordInput {
689
+ /** Severity, filtered before validation and serialization. */
690
+ readonly level: LogLevel;
691
+ /** Stable host event identifier, or plugin.event for plugin-bound ports. */
692
+ readonly event: string;
693
+ /** Safe bounded facts validated before admission. */
694
+ readonly fields?: LogFields;
695
+ }
696
+ /** A synchronous observed stage; methods never await disk or affect business outcomes. */
697
+ interface LogSpan {
698
+ /** Port bound to this span for nested stages. */
699
+ readonly log: PluginLog;
700
+ /** Emits at most one completion with a monotonic duration. */
701
+ end(outcome: LogOutcome, fields?: LogFields): void;
702
+ }
703
+ /** Structured diagnostics bound to an owner; invalid inputs are discarded without throwing. */
704
+ interface PluginLog {
705
+ /** Admits a safe event; return does not indicate persistence. */
706
+ emit(record: LogRecordInput): void;
707
+ /** Appends a component scope; cannot replace owner or execution identities. */
708
+ child(binding: {
709
+ readonly component: string;
710
+ }): PluginLog;
711
+ /** Emits a start and returns an idempotent observed completion. */
712
+ startSpan(event: string, fields?: LogFields): LogSpan;
713
+ }
714
+ /** Actual execution identities supplied only by trusted host composition. */
715
+ interface LogBinding {
716
+ /** Observed span UUID supplied by a trusted performance producer. */
717
+ readonly spanId?: string;
718
+ /** Causal parent span UUID, when observed. */
719
+ readonly parentSpanId?: string;
720
+ /** Foreign trace UUID attached to the actual admitted request. */
721
+ readonly traceId?: string;
722
+ /** Actual wire request identifier, scoped by the connection. */
723
+ readonly requestId?: string;
724
+ /** Foreign interaction UUID carried by an admitted request. */
725
+ readonly interactionId?: string;
726
+ /** Actual authenticated transport connection UUID. */
727
+ readonly connectionId?: string;
728
+ /** Browser page UUID bound to its authenticated ingest connection. */
729
+ readonly pageId?: string;
730
+ /** Monotonic clock UUID; never implies synchronization with another clock. */
731
+ readonly clockDomain?: string;
732
+ /** Component scope; omitted bindings retain their parent's scope. */
733
+ readonly component?: string;
734
+ /** Actual owning extension identity. */
735
+ readonly ownerId?: string;
736
+ /** Actual session identity. */
737
+ readonly sessionId?: string;
738
+ /** Actual admitted run identity. */
739
+ readonly runId?: string;
740
+ /** Actual turn identity. */
741
+ readonly turnId?: string;
742
+ /** Actual model-call identity. */
743
+ readonly modelCallId?: string;
744
+ /** Actual tool-call identity. */
745
+ readonly toolCallId?: string;
746
+ }
747
+ /** Trusted composition port; never exposed as the plugin context log. */
748
+ interface HostLog extends PluginLog {
749
+ /** Binds verified execution identities without mutating the parent port. */
750
+ bind(binding: LogBinding): HostLog;
751
+ /** Creates an owner-bound restricted plugin.event port. */
752
+ forPlugin(ownerId: string): PluginLog;
753
+ /** Appends a trusted component scope. */
754
+ child(binding: {
755
+ readonly component: string;
756
+ }): HostLog;
757
+ }
758
+ /** Drain observation; a deadline never proves successful persistence or handle release. */
759
+ interface LogDrainResult {
760
+ /** True only after the requested drain completes without a terminal writer failure. */
761
+ readonly complete: boolean;
762
+ /** True only after the actual writer resources close; independent of record loss or failure. */
763
+ readonly resourcesClosed: boolean;
764
+ /** Admitted records not confirmed written. */
765
+ readonly pendingRecords: number;
766
+ /** Admitted bytes not confirmed written. */
767
+ readonly pendingBytes: number;
768
+ /** Cumulative discarded records in this writer lifetime. */
769
+ readonly lostRecords: number;
770
+ }
771
+ //#endregion
772
+ //#region node_modules/.cache/dts/plugin/src/performance.d.ts
773
+ /** Safe observed work; omitted clock facts use the receiving host's monotonic clock. */
774
+ type PerformanceObservation = Omit<TelemetryObservation, 'clockDomain' | 'monotonicStartMs'> & {
775
+ /** Clock identity; omit only when using the observer's own clock. */
776
+ readonly clockDomain?: string;
777
+ /** Monotonic start in milliseconds; defaults to now minus duration. */
778
+ readonly monotonicStartMs?: number;
779
+ };
780
+ /** No-throw bounded observation port; never waits for log persistence. */
781
+ interface PerformanceObserver {
782
+ /** Indicates whether new work should enable optional instrumentation; omission means enabled. */
783
+ enabled?(): boolean;
784
+ /** Identity of this process clock, unrelated to clocks in other processes. */
785
+ readonly clockDomain: string;
786
+ /** Reads the same monotonic clock used for omitted observation timestamps. */
787
+ now(): number;
788
+ /** Admits safe facts for aggregation; failures never change business outcomes. */
789
+ observe(observation: PerformanceObservation): void;
790
+ }
791
+ /** Trusted collection lifecycle owned by the host, never supplied to plugins. */
792
+ interface PerformanceTelemetry extends PerformanceObserver {
793
+ /** Reads current mode, bounded queue and cumulative loss counters. */
794
+ status(): TelemetryStatus;
795
+ /** Assigns a runtime-only mode; diagnostic collection expires automatically. */
796
+ configure(input: {
797
+ readonly mode: 'off' | 'normal' | 'diagnostic';
798
+ readonly durationSeconds?: number;
799
+ }): TelemetryStatus;
800
+ /** Admits one authenticated browser batch; duplicate IDs are scoped to the actual connection. */
801
+ ingest(connectionId: string, input: {
802
+ readonly batchId: string;
803
+ readonly pageId: string;
804
+ readonly observations: readonly TelemetryObservation[];
805
+ }): {
806
+ readonly accepted: number;
807
+ readonly dropped: number;
808
+ };
809
+ /** Releases connection-local deduplication and limiter state. */
810
+ release(connectionId: string): void;
811
+ /** Runs work with immutable causal identities isolated from concurrent requests. */
812
+ run<T>(binding: LogBinding, work: () => T): T;
813
+ /** Reads only the current asynchronous execution's causal identities. */
814
+ context(): LogBinding;
815
+ /** Supplies an owner-bound observer whose caller cannot forge execution identities. */
816
+ forOwner(ownerId: string): PerformanceObserver;
817
+ /** Aggregates a validated existing host span; performance events are ignored. */
818
+ recordLog(record: {
819
+ readonly event: string;
820
+ readonly kind: string;
821
+ readonly durationMs?: number;
822
+ readonly monotonicStartMs?: number;
823
+ readonly spanId?: string;
824
+ readonly parentSpanId?: string;
825
+ readonly fields?: {
826
+ readonly code?: string;
827
+ readonly count?: number;
828
+ readonly bytes?: number;
829
+ };
830
+ readonly outcome?: 'ok' | 'error' | 'cancelled' | 'timeout' | 'unknown';
831
+ } & LogBinding): void;
832
+ /** Flushes aggregate windows and joins the actual diagnostic writer lifecycle. */
833
+ close(): Promise<LogDrainResult>;
834
+ }
835
+ //#endregion
172
836
  //#region node_modules/.cache/dts/plugin/src/model-facts.d.ts
173
837
  /** One declared reasoning control; implementations decide its request meaning. */
174
838
  type ReasoningOption = {
@@ -196,6 +860,15 @@ interface CatalogGeneration {
196
860
  parameterSchema: Record<string, unknown>;
197
861
  }[];
198
862
  }
863
+ /** Output parameter support and per-call defaults; catalogue capacity is a separate fact. */
864
+ interface OutputLimitPolicy {
865
+ /** Whether the wire permits omission, requires a limit, or rejects it entirely. */
866
+ support: 'optional' | 'required' | 'unsupported';
867
+ /** Ordinary output default in tokens; required policies must declare it. */
868
+ ordinary?: number;
869
+ /** Total output default when thinking is active, including reasoning where the wire does. */
870
+ thinking?: number;
871
+ }
199
872
  /** Raw per-model facts supplied by a registration or its acquisition source. */
200
873
  interface CatalogEntry {
201
874
  id: string;
@@ -217,12 +890,14 @@ interface CatalogEntry {
217
890
  input?: number;
218
891
  output?: number;
219
892
  };
893
+ /** Owner-provided per-model output defaults, merged over endpoint and protocol policy. */
894
+ outputLimit?: Partial<OutputLimitPolicy>;
220
895
  release_date?: string;
221
896
  }
222
897
  /** Neutral request facts declared by a communication implementation. */
223
898
  interface StyleFacts {
224
- maxTokensRequired: boolean;
225
- maxTokensFallback: number;
899
+ /** The protocol output-parameter policy, independent of model capacity. */
900
+ outputLimit: OutputLimitPolicy;
226
901
  temperature: {
227
902
  min: number;
228
903
  max: number;
@@ -242,6 +917,8 @@ interface VendorEndpointFacts {
242
917
  baseUrl: string;
243
918
  thinkingSwitch?: boolean;
244
919
  outputLimitField?: 'max_tokens' | 'max_completion_tokens';
920
+ /** Endpoint output-policy overrides; required protocols cannot become unsupported. */
921
+ outputLimit?: Partial<OutputLimitPolicy>;
245
922
  promptCacheKey?: boolean;
246
923
  limits?: Partial<MediaLimits>;
247
924
  }
@@ -409,6 +1086,8 @@ interface GenerationModelSummary {
409
1086
  }
410
1087
  /** Public connection state read for each tool assembly and dispatch. */
411
1088
  interface ToolAvailabilityView {
1089
+ /** Host-owned generation of the readable session history; selection expires after rewind. */
1090
+ readonly historyGeneration?: number;
412
1091
  /** Session whose capabilities are being checked. */
413
1092
  readonly sessionId: string;
414
1093
  /** Agent and workspace identity. */
@@ -552,210 +1231,595 @@ interface ProviderCatalogContribution {
552
1231
  readonly source?: ModelCatalogueSource;
553
1232
  }
554
1233
  //#endregion
555
- //#region node_modules/.cache/dts/plugin/src/model-catalogue.d.ts
556
- /** One extension-owned catalogue acquisition and normalization implementation. */
557
- interface ModelCatalogueSource {
558
- /** Stable source identity used to coalesce an atomic refresh. */
1234
+ //#region node_modules/.cache/dts/plugin/src/model-catalogue.d.ts
1235
+ /** One extension-owned catalogue acquisition and normalization implementation. */
1236
+ interface ModelCatalogueSource {
1237
+ /** Stable source identity used to coalesce an atomic refresh. */
1238
+ readonly id: string;
1239
+ /** Loads normalized rows for the active contributions sharing this source. */
1240
+ load(vendors: readonly ProviderCatalogVendor[], signal: AbortSignal): Promise<Readonly<Record<string, Readonly<Record<string, CatalogEntry>>>>>;
1241
+ }
1242
+ /** An extension policy resolving facts from a normalized catalogue snapshot. */
1243
+ interface ModelEntryResolution {
1244
+ readonly providerId: string;
1245
+ readonly model: string;
1246
+ readonly catalog: ModelCatalogueSnapshot;
1247
+ }
1248
+ /** Extension-owned matching and merge policy over normalized facts. */
1249
+ interface ModelCataloguePolicy {
1250
+ /** Resolves one requested identifier in an explicitly associated row. */
1251
+ match(row: Readonly<Record<string, CatalogEntry>>, model: string): CatalogEntry | undefined;
1252
+ /** Combines raw official facts with a currently resolved catalogue entry. */
1253
+ merge(official: CatalogEntry, catalogued: CatalogEntry | undefined): CatalogEntry;
1254
+ }
1255
+ //#endregion
1256
+ //#region node_modules/.cache/dts/plugin/src/sandbox-diagnostics.d.ts
1257
+ /** Opaque physical identity usable only while its associated observation lease remains owned. */
1258
+ interface PathIdentityToken {
1259
+ readonly identity: symbol;
1260
+ }
1261
+ /** An observed ordinary target or the retained nearest existing parent of a missing write target. */
1262
+ type PathObservation = {
1263
+ readonly kind: 'existing';
1264
+ readonly path: string;
1265
+ readonly realPath: string;
1266
+ readonly targetType: 'file' | 'directory';
1267
+ readonly identity: string;
1268
+ readonly revision: string;
1269
+ } | {
1270
+ readonly kind: 'missing-target';
1271
+ readonly path: string;
1272
+ readonly realPath: string;
1273
+ readonly parentPath: string;
1274
+ readonly suffix: readonly string[];
1275
+ readonly identity: string;
1276
+ } | {
1277
+ readonly kind: 'unresolved';
1278
+ readonly path: string;
1279
+ readonly reason: string;
1280
+ };
1281
+ /** Closing awaits actual handles; failed close remains retryable and never proves release. */
1282
+ interface PathObservationLease {
1283
+ readonly observation: PathObservation;
1284
+ readonly token?: PathIdentityToken;
1285
+ verify(): boolean;
1286
+ /** Checks retained identity plus exact native size and modification/change metadata. */
1287
+ verifyRevision(): boolean;
1288
+ close(): Promise<void>;
1289
+ }
1290
+ /** A frozen bounded record tagged to one admitted physical command. */
1291
+ interface DenialSnapshot {
1292
+ readonly availability: 'available' | 'unavailable' | 'unsupported';
1293
+ readonly partial: boolean;
1294
+ readonly dropped: number;
1295
+ readonly records: readonly {
1296
+ readonly operation: 'read' | 'write' | 'unknown';
1297
+ readonly path?: string;
1298
+ readonly raw: string;
1299
+ readonly observedAt: number;
1300
+ }[];
1301
+ }
1302
+ /** Finishes within the bounded root-exit observation window; late logs do not reopen authority. */
1303
+ interface DenialCollector {
1304
+ finish(input: {
1305
+ readonly exitedAt: number;
1306
+ readonly code: number;
1307
+ }): Promise<DenialSnapshot>;
1308
+ release(): void;
1309
+ }
1310
+ /** One owner lease on the gateway's physical broker and observation acquisition ledger. */
1311
+ interface SandboxDiagnosticsLease {
1312
+ temporaryRoots(): {
1313
+ readonly platform: string;
1314
+ readonly userTemporaryRoot: string;
1315
+ };
1316
+ register(tag: string): DenialCollector;
1317
+ observe(path: string, operation: 'read' | 'write', options: {
1318
+ readonly signal: AbortSignal;
1319
+ }): Promise<PathObservationLease>;
1320
+ close(): Promise<void>;
1321
+ }
1322
+ /** Acquisition and all physical IO remain supplied by the explicit platform. */
1323
+ interface SandboxDiagnostics {
1324
+ acquire(options: {
1325
+ readonly log: (line: string) => void;
1326
+ }): SandboxDiagnosticsLease;
1327
+ }
1328
+ /** A bounded candidate distinguishes owned operating-system evidence from fallible host inference. */
1329
+ interface FailurePathCandidate {
1330
+ readonly path: string;
1331
+ readonly realPath?: string;
1332
+ readonly operation: 'read' | 'write' | 'unknown';
1333
+ readonly source: 'seatbelt' | 'host-inference' | 'keyword-only';
1334
+ readonly certainty: 'confirmed' | 'inferred' | 'uncertain';
1335
+ readonly evidenceRef?: {
1336
+ readonly stream: 'stdout' | 'stderr';
1337
+ readonly offset: number;
1338
+ readonly end: number;
1339
+ };
1340
+ readonly issue?: 'unresolved' | 'in-scope' | 'sealed' | 'unknown-operation';
1341
+ }
1342
+ /** Original exit facts and resource authorization settlement stay independent. */
1343
+ interface ProcessFailureSnapshot {
1344
+ readonly diagnostics: {
1345
+ readonly availability: 'available' | 'unavailable' | 'unsupported';
1346
+ readonly partial: boolean;
1347
+ readonly candidates: readonly FailurePathCandidate[];
1348
+ readonly omitted: number;
1349
+ };
1350
+ readonly authorization: {
1351
+ readonly state: 'not-needed' | 'pending' | 'settled';
1352
+ readonly items: readonly {
1353
+ readonly path: string;
1354
+ readonly operation: 'read' | 'write';
1355
+ readonly status: 'pending' | 'granted' | 'denied' | 'cancelled' | 'unavailable' | 'error';
1356
+ readonly source?: ApprovalSource | 'existing-grant';
1357
+ readonly duration?: 'once' | 'global';
1358
+ readonly reason?: string;
1359
+ }[];
1360
+ readonly receiptId?: string;
1361
+ readonly receiptState?: 'ready' | 'claimed' | 'consumed' | 'invalidated' | 'revoked';
1362
+ readonly settlementReason?: string;
1363
+ readonly cleanup?: {
1364
+ readonly state: 'complete' | 'pending' | 'failed';
1365
+ readonly reason?: string;
1366
+ };
1367
+ };
1368
+ }
1369
+ /** Read-only latest settlement for the original command; reads never ask or rerun. */
1370
+ interface FailureAuthorizationHandle {
1371
+ current(): ProcessFailureSnapshot;
1372
+ /** Observes later receipt and cleanup transitions without issuing another session notice. */
1373
+ onChanged(listener: () => void): () => void;
1374
+ /** Settles after bounded evidence freeze and host admission; never waits for a human answer. */
1375
+ readonly assessed: Promise<ProcessFailureSnapshot>;
1376
+ readonly settled: Promise<ProcessFailureSnapshot>;
1377
+ cancel(reason: 'cancelled' | 'session-ended' | 'owner-withdrawn'): void;
1378
+ }
1379
+ /** Final prepared scope is bound to its original authority and actual physical attempt. */
1380
+ interface PreparedLaunchScope {
1381
+ readonly authority: {
1382
+ readonly sessionId: string;
1383
+ readonly address: SessionAddress;
1384
+ };
1385
+ readonly issuerToolCallId: string;
1386
+ readonly operationId: string;
1387
+ readonly owner: string;
1388
+ readonly activationEpoch: number;
1389
+ readonly mode: 'sandboxed' | 'direct';
1390
+ readonly read: readonly string[];
1391
+ readonly write: readonly string[];
1392
+ readonly deny: readonly string[];
1393
+ readonly cwd: string;
1394
+ readonly tmp: string;
1395
+ }
1396
+ /** Input retains actual root exit and bounded output locations, never a guessed process identity. */
1397
+ interface ProcessFailureInput {
1398
+ readonly scopeId: string;
1399
+ readonly processId: string;
1400
+ readonly ending: SubprocessEnding;
1401
+ readonly exitedAt: number;
1402
+ readonly candidates?: readonly FailurePathCandidate[];
1403
+ readonly outputEvidence?: readonly {
1404
+ readonly stream: 'stdout' | 'stderr';
1405
+ readonly offset: number;
1406
+ readonly end: number;
1407
+ readonly text: string;
1408
+ }[];
1409
+ }
1410
+ //#endregion
1411
+ //#region node_modules/.cache/dts/plugin/src/resource-authorization.d.ts
1412
+ /** Ownership transfers to the host only after successful admission. */
1413
+ interface ResourceValidationLease {
1414
+ readonly identity: string;
1415
+ verify(): boolean;
1416
+ close(): Promise<void>;
1417
+ }
1418
+ /** Opens immutable host provenance and claims approved inputs for one physical start. */
1419
+ interface AuthorizationResourceReceipts {
1420
+ open(ctx: ToolExecContext): ResourceAuthorizationScope;
1421
+ /** Verifies exact ready resources without claiming them while a later command awaits approval. */
1422
+ inspect(ctx: ToolExecContext, input: {
1423
+ readonly receiptId: string;
1424
+ readonly inputs: readonly AuthorizationInput[];
1425
+ }): void;
1426
+ claim(ctx: ToolExecContext, input: {
1427
+ readonly receiptId: string;
1428
+ readonly consumerOperationId: string;
1429
+ readonly preparedPlanId: string;
1430
+ readonly inputs: readonly AuthorizationInput[];
1431
+ }): ResourceReceiptClaim;
1432
+ }
1433
+ /** A host-issued origin which retains process ownership beyond the original tool return. */
1434
+ interface ResourceAuthorizationScope {
559
1435
  readonly id: string;
560
- /** Loads normalized rows for the active contributions sharing this source. */
561
- load(vendors: readonly ProviderCatalogVendor[], signal: AbortSignal): Promise<Readonly<Record<string, Readonly<Record<string, CatalogEntry>>>>>;
1436
+ admit(input: {
1437
+ readonly issuerResourceId: string;
1438
+ readonly operationId: string;
1439
+ readonly inputs: readonly AuthorizationInput[];
1440
+ readonly validations: readonly ResourceValidationLease[];
1441
+ readonly approval: ApprovalRequest;
1442
+ }): ResourceAuthorizationAdmission;
1443
+ close(): Promise<void>;
562
1444
  }
563
- /** An extension policy resolving facts from a normalized catalogue snapshot. */
564
- interface ModelEntryResolution {
565
- readonly providerId: string;
566
- readonly model: string;
567
- readonly catalog: ModelCatalogueSnapshot;
1445
+ /** Pending and settled snapshots are read-only and reusable without granting new authority. */
1446
+ interface ResourceAuthorizationAdmission {
1447
+ current(): ResourceAuthorizationSnapshot;
1448
+ /** Observes actual authorization and cleanup transitions; callback failure cannot alter permission. */
1449
+ onChanged(listener: () => void): () => void;
1450
+ readonly settled: Promise<ResourceAuthorizationSnapshot>;
1451
+ cancel(reason: string): void;
1452
+ }
1453
+ /** Receipt cleanup is independent from whether permission was granted or consumed. */
1454
+ interface ResourceAuthorizationSnapshot {
1455
+ readonly state: 'pending' | 'settled';
1456
+ readonly items: readonly {
1457
+ readonly input: AuthorizationInput;
1458
+ readonly status: 'pending' | 'granted' | 'denied' | 'cancelled' | 'unavailable' | 'error';
1459
+ readonly source?: ApprovalSource | 'existing-grant';
1460
+ readonly duration?: 'once' | 'global';
1461
+ readonly reason?: string;
1462
+ }[];
1463
+ readonly receiptId?: string;
1464
+ readonly receiptState?: 'ready' | 'claimed' | 'consumed' | 'invalidated' | 'revoked';
1465
+ readonly cleanup: {
1466
+ readonly state: 'complete' | 'pending' | 'failed';
1467
+ readonly reason?: string;
1468
+ };
568
1469
  }
569
- /** Extension-owned matching and merge policy over normalized facts. */
570
- interface ModelCataloguePolicy {
571
- /** Resolves one requested identifier in an explicitly associated row. */
572
- match(row: Readonly<Record<string, CatalogEntry>>, model: string): CatalogEntry | undefined;
573
- /** Combines raw official facts with a currently resolved catalogue entry. */
574
- merge(official: CatalogEntry, catalogued: CatalogEntry | undefined): CatalogEntry;
1470
+ /** Every guard revalidates identities; only the same host launch attempt consumes idempotently. */
1471
+ interface ResourceReceiptClaim {
1472
+ beforeSpawn(launchAttemptId: string): void;
1473
+ launchSettled(launchAttemptId: string): void;
1474
+ /** Revokes a prepared claim when startup fails before any physical attempt guard. */
1475
+ cancel(reason: string): void;
575
1476
  }
576
- //#endregion
577
- //#region node_modules/.cache/dts/plugin/src/agent-execution.d.ts
578
- /** Current Agent identities; concrete capability settings remain owner-keyed opaque data. */
579
- interface AgentExecution {
580
- /** Content root absent in a runtime composed without physical workspace storage. */
581
- readonly workRoot?: string;
582
- /** Resolves the definition executing a session without changing its authority address. */
583
- agentOf(sessionId: string, address: SessionAddress): string;
584
- /** Reads the current framework definition, or undefined for an absent Agent. */
585
- agent(agentId: string): AgentSummary | undefined;
586
- /** Lists current framework definitions without opening a session. */
587
- agents(): readonly AgentSummary[];
588
- /** Resolves a persisted session's authority address; throws for an absent session. */
589
- address(sessionId: string): SessionAddress;
590
- /** Physical directories sealed against capability reads and writes. */
591
- sealed(): readonly string[];
1477
+ /** Generic workspace prose appended to the existing directory contribution. */
1478
+ interface WorkspaceDirectoryNote {
1479
+ forSession(caller: {
1480
+ readonly sessionId: string;
1481
+ readonly address: SessionAddress;
1482
+ }): string;
1483
+ }
1484
+ /** Committed preset names contain no readable path authority. */
1485
+ interface SandboxPresetSummary {
1486
+ current(): {
1487
+ readonly status: 'ready' | 'unavailable';
1488
+ readonly names: readonly string[];
1489
+ };
592
1490
  }
593
1491
  //#endregion
594
- //#region node_modules/.cache/dts/plugin/src/attachment-references.d.ts
595
- /** An explicit recorded attachment relationship; no current-chat identity is inferred. */
596
- interface AttachmentReference {
597
- /** Workspace that owns the managed original. */
598
- readonly workspaceId: string;
599
- /** Existing session that recorded use of this original. */
600
- readonly sessionId: string;
601
- /** Content digest of the trusted stored original. */
602
- readonly fileId: string;
1492
+ //#region node_modules/.cache/dts/plugin/src/extension-installation.d.ts
1493
+ /** Exact package admission and owner-bound installation coordination contracts. */
1494
+ /** Actual product version and physical target supplied by the embedding host. */
1495
+ interface HostIdentity {
1496
+ /** Complete product SemVer. */
1497
+ readonly version: string;
1498
+ /** Physical operating system and CPU architecture, never browser-derived. */
1499
+ readonly target: PlatformTarget;
603
1500
  }
604
- /** Read-only access to one validated managed original; never returns a host path or writer. */
605
- interface AttachmentReader {
606
- /** Trusted stored metadata, using the media default name because file rows retain no filename. */
607
- readonly metadata: FileRef;
608
- /** Reads at an explicit nonnegative offset; length is at most 1 MiB. */
609
- read(position: number, length: number): Promise<Uint8Array>;
610
- /** Releases retained bytes; idempotent on cancellation and completion. */
611
- close(): Promise<void>;
1501
+ /** One physical operating system and CPU architecture pair. */
1502
+ interface PlatformTarget {
1503
+ /** Host operating system identifier. */
1504
+ readonly os: string;
1505
+ /** Host CPU architecture identifier. */
1506
+ readonly arch: string;
612
1507
  }
613
- /** Existing recorded attachments, independent of Agent execution and file-source directories. */
614
- interface AttachmentReferences {
615
- /** Validates workspace/session membership and file use before returning trusted metadata. */
616
- metadata(reference: AttachmentReference): FileRef | undefined;
617
- /** Opens existing managed bytes after the same membership check; no copy is persisted. */
618
- open(reference: AttachmentReference, options?: {
619
- readonly signal?: AbortSignal;
620
- }): Promise<AttachmentReader>;
1508
+ /** Persistent generic requirements checked before backend or browser publication. */
1509
+ interface ActivationConstraints {
1510
+ /** Standard SemVer range accepted by the issuing owner. */
1511
+ readonly hostVersionRange: string;
1512
+ /** Explicit physical targets accepted by the issuing owner. */
1513
+ readonly platformTargets: readonly PlatformTarget[];
621
1514
  }
622
- //#endregion
623
- //#region node_modules/.cache/dts/plugin/src/client-io.d.ts
624
- /** A single inclusive byte range, or the requested number of trailing bytes. */
625
- type ResourceRangeRequest = {
626
- readonly kind: 'absolute';
627
- readonly start: number;
628
- readonly end?: number;
629
- } | {
630
- readonly kind: 'suffix';
631
- readonly length: number;
632
- };
633
- /** The authenticated resource operation; the host supplies cancellation and PUT bytes. */
634
- type ResourceCall = {
635
- readonly method: 'HEAD';
636
- readonly signal: AbortSignal;
637
- } | {
638
- readonly method: 'GET';
639
- readonly signal: AbortSignal;
640
- readonly range?: ResourceRangeRequest;
641
- } | {
642
- readonly method: 'PUT';
643
- readonly signal: AbortSignal;
644
- readonly body: AsyncIterable<Uint8Array>;
645
- };
646
- /** Validated response headers for an opened byte resource. Lengths and offsets are bytes. */
647
- interface ResourceByteMetadata {
648
- /** A media type without line breaks or control characters. */
649
- readonly contentType: string;
650
- /** The exact number of bytes returned, including a selected range. */
651
- readonly contentLength: number;
652
- /** A download filename and the requested browser disposition. */
653
- readonly contentDisposition: {
654
- readonly filename: string;
655
- readonly disposition: 'inline' | 'attachment';
1515
+ /** Exact public archive expectation; no dist-tags or inferred versions. */
1516
+ interface ArtifactRequest {
1517
+ /** Expected manifest package name. */
1518
+ readonly expectedName: string;
1519
+ /** Expected complete manifest version. */
1520
+ readonly expectedVersion: string;
1521
+ /** Exact public npm registry archive address for the expected name and version. */
1522
+ readonly tarballUrl: string;
1523
+ /** SHA512 subresource integrity value. */
1524
+ readonly integrity: string;
1525
+ /** Expected compressed byte count, when supplied. */
1526
+ readonly size?: number;
1527
+ }
1528
+ /** Verified archive identity returned by physical admission. */
1529
+ interface ArtifactIdentity {
1530
+ /** Actual public HTTPS archive address. */
1531
+ readonly tarballUrl: string;
1532
+ /** Verified SHA512 subresource integrity value. */
1533
+ readonly integrity: string;
1534
+ /** Actual compressed byte count. */
1535
+ readonly size: number;
1536
+ }
1537
+ /** A regular file in a complete sorted logical content inventory. */
1538
+ interface ContentEntry {
1539
+ /** Slash-separated path relative to its package root. */
1540
+ readonly path: string;
1541
+ /** Actual file length in bytes. */
1542
+ readonly size: number;
1543
+ /** SHA256 of the complete file bytes. */
1544
+ readonly sha256: string;
1545
+ /** POSIX mode, observed on disk or predicted for npm installation; absent on Windows. */
1546
+ readonly mode?: number;
1547
+ }
1548
+ /** Nonfatal metadata derived only from a completely verified regular file. */
1549
+ interface ArtifactWarning {
1550
+ /** A file exceeds the producing platform's advisory threshold. */
1551
+ readonly code: 'LARGE_FILE';
1552
+ /** Manifest name of the package containing the file. */
1553
+ readonly packageName: string;
1554
+ /** Slash-separated path relative to that package root; never a physical host path. */
1555
+ readonly path: string;
1556
+ /** Optional slash-separated package location within its shared installation prefix. */
1557
+ readonly location?: string;
1558
+ /** Complete verified file length in bytes. */
1559
+ readonly size: number;
1560
+ }
1561
+ /** Actual resolved ordinary dependency, including its complete content inventory. */
1562
+ interface DependencyNode {
1563
+ /** Slash-separated location relative to the shared installation prefix. */
1564
+ readonly location: string;
1565
+ /** Actual manifest name. */
1566
+ readonly name: string;
1567
+ /** Actual manifest version. */
1568
+ readonly version: string;
1569
+ /** Lockfile archive source, when reliably available. */
1570
+ readonly resolved?: string;
1571
+ /** Lockfile integrity, when reliably available. */
1572
+ readonly integrity?: string;
1573
+ /** Digest of the complete sorted content inventory. */
1574
+ readonly contentDigest: string;
1575
+ /** Complete regular-file inventory. */
1576
+ readonly entries: readonly ContentEntry[];
1577
+ /** Resolved dependency locations forming the ordinary dependency graph. */
1578
+ readonly dependencies: readonly string[];
1579
+ }
1580
+ /** Complete physical package contents and actual dependency resolution. */
1581
+ interface PackageContent {
1582
+ /** Advisory file metadata, independent of content digests and admission verdicts. */
1583
+ readonly warnings?: readonly ArtifactWarning[];
1584
+ /** Complete root inventory, excluding separately recorded node_modules. */
1585
+ readonly entries: readonly ContentEntry[];
1586
+ /** Root inventory digest. */
1587
+ readonly contentDigest: string;
1588
+ /** Complete resolved ordinary dependency graph. */
1589
+ readonly dependencies: readonly DependencyNode[];
1590
+ }
1591
+ /** A verified archive with its exact expected npm-installed inventory; target code is not evaluated. */
1592
+ interface PreparedArtifact extends Omit<PackageContent, 'dependencies'> {
1593
+ /** Verified archive facts. */
1594
+ readonly artifact: ArtifactIdentity;
1595
+ /** Persistent physical archive path retained while npm metadata references it. */
1596
+ readonly artifactPath: string;
1597
+ /** Full identity of the same ordinary archive object whose bytes were verified. */
1598
+ readonly archiveIdentity: PublicationObservation;
1599
+ /** Parsed manifest whose entry paths and metadata were validated physically. */
1600
+ readonly manifest: Readonly<Record<string, unknown>>;
1601
+ }
1602
+ /** Explicit physical artifact port; implementations own IO budgets and cleanup. */
1603
+ interface PackageArtifacts {
1604
+ /** Downloads and validates an exact archive and publishes its persistent source. */
1605
+ prepare(request: ArtifactRequest, signal: AbortSignal): Promise<PreparedArtifact>;
1606
+ /** Inspects every root file and actual ordinary dependency without evaluating code. */
1607
+ inspect(root: string, signal: AbortSignal): Promise<PackageContent>;
1608
+ }
1609
+ /** One exact root selection, with issuer-owned opaque bounded provenance. */
1610
+ interface ExtensionSelection extends ArtifactRequest {
1611
+ /** Issuer-owned JSON source evidence; the host does not interpret its business fields. */
1612
+ readonly sourceRecord: Readonly<Record<string, unknown>>;
1613
+ /** Persistent requirements independent of the issuer's continued availability. */
1614
+ readonly activationConstraints: ActivationConstraints;
1615
+ /** Neutral historical text, never a current qualification claim. */
1616
+ readonly display?: {
1617
+ readonly label: string;
1618
+ readonly detail?: string;
656
1619
  };
657
- /** Inclusive offsets and total object length for a partial GET. */
658
- readonly range?: {
659
- readonly start: number;
660
- readonly end: number;
661
- readonly total: number;
1620
+ }
1621
+ /** Complete exact extension closure approved by the user. */
1622
+ interface InstallationRequest extends ExtensionSelection {
1623
+ /** Exact missing extension dependencies; ordinary npm libraries are not selections. */
1624
+ readonly dependencies?: readonly ExtensionSelection[];
1625
+ /** Enables the target after admission unless explicitly false. */
1626
+ readonly enabled?: boolean;
1627
+ }
1628
+ /** One exact admission batch plus explicitly selected installed roots to enable without replacement. */
1629
+ interface InstallationBatchRequest {
1630
+ /** Exact roots selected for physical installation. At least one is required. */
1631
+ readonly roots: readonly ExtensionSelection[];
1632
+ /** Exact missing extension dependencies shared by the selected roots. */
1633
+ readonly dependencies?: readonly ExtensionSelection[];
1634
+ /** Enables installed roots after admission unless explicitly false. */
1635
+ readonly enabled?: boolean;
1636
+ /** Already installed roots to enable; their existing admission receipts are retained. */
1637
+ readonly enableNames?: readonly string[];
1638
+ }
1639
+ /** Immutable admission evidence signed with the actual consuming owner identity. */
1640
+ interface AdmissionReceipt extends Omit<PackageContent, 'warnings'> {
1641
+ /** Server-assigned immutable receipt UUID. */
1642
+ readonly receiptId: string;
1643
+ /** Acceptance time in UTC ISO 8601. */
1644
+ readonly acceptedAt: string;
1645
+ /** Admitted manifest name. */
1646
+ readonly packageName: string;
1647
+ /** Admitted exact manifest version. */
1648
+ readonly version: string;
1649
+ /** Actual consuming owner; never copied from sourceRecord. */
1650
+ readonly issuer: string;
1651
+ /** Issuer-owned opaque source evidence. */
1652
+ readonly record: Readonly<Record<string, unknown>>;
1653
+ /** Physically verified archive identity. */
1654
+ readonly artifact: ArtifactIdentity;
1655
+ /** Persistent generic host constraints. */
1656
+ readonly activationConstraints: ActivationConstraints;
1657
+ /** Neutral historical display text. */
1658
+ readonly display?: {
1659
+ readonly label: string;
1660
+ readonly detail?: string;
662
1661
  };
663
1662
  }
664
- /** HEAD returns headers, GET returns bytes, and PUT returns its declared JSON result. */
665
- type ResourceResult<R = unknown, M = unknown> = {
666
- readonly kind: 'head';
667
- readonly bytes: ResourceByteMetadata;
668
- readonly metadata?: M;
669
- } | {
670
- readonly kind: 'bytes';
671
- readonly bytes: ResourceByteMetadata;
672
- readonly metadata?: M;
673
- readonly body: AsyncIterable<Uint8Array>;
674
- /** Releases an opened source even when no body iteration began; invoked at most once. */
675
- close(): Promise<void> | void;
676
- } | {
677
- readonly kind: 'json';
678
- readonly result: R;
679
- readonly metadata?: M;
680
- };
681
- /** An owner-scoped HTTP resource; handlers receive validated params and return no arbitrary headers. */
682
- interface ClientResource<P = unknown, R = unknown, M = unknown> {
683
- /** A unique lower camel case segment within this owner's resources. */
684
- readonly name: string;
685
- /** A client-readable description of the resource. */
686
- readonly description?: string;
687
- /** The allowed HTTP operations; at least one, without duplicates. */
688
- readonly methods: readonly ResourceCall['method'][];
689
- /** The business parameters validated before dispatch. */
690
- readonly params: ZodType<P>;
691
- /** The successful PUT result shape, even for a resource that declares no PUT. */
692
- readonly result: ZodType<R>;
693
- /** The optional business metadata shape, validated for every response. */
694
- readonly metadata: ZodType<M>;
695
- /** Runs one operation; streaming bodies must release resources when cancelled or returned. */
696
- handle(params: P, call: ResourceCall): Promise<ResourceResult<R, M>> | ResourceResult<R, M>;
1663
+ /** Historical source evidence without duplicating complete content inventories in list results. */
1664
+ type AdmissionHistory = Pick<AdmissionReceipt, 'receiptId' | 'acceptedAt' | 'packageName' | 'version' | 'issuer' | 'record' | 'artifact' | 'activationConstraints' | 'display'>;
1665
+ /** One point-in-time generic host requirement decision. */
1666
+ interface HostRequirements {
1667
+ /** Unknown means no reliable constraints or no explicit host identity. */
1668
+ readonly state: 'satisfied' | 'unsatisfied' | 'unknown';
1669
+ /** Bounded human-readable reasons. */
1670
+ readonly reasons: readonly string[];
1671
+ /** Assessment time in UTC ISO 8601. */
1672
+ readonly checkedAt: string;
697
1673
  }
698
- /** The connection-bound host pipe, with validated output and transport backpressure. */
699
- interface ClientStreamContext<O = unknown> {
700
- /** Aborts on caller disconnect, registration disposal or owner withdrawal. */
701
- readonly signal: AbortSignal;
702
- /** Sends to this connection only; resolves when accepted into the bounded transport queue. */
703
- send(payload: O): Promise<void>;
704
- /** Initiates attachment cancellation and host cleanup; never closes the owner's business object. */
705
- close(): void;
1674
+ /** Current installation metadata and retained admission facts. */
1675
+ interface InstallationObservation {
1676
+ /** Nonfatal metadata from the current admitted or completely inspected contents. */
1677
+ readonly warnings?: readonly ArtifactWarning[];
1678
+ /** Complete deduplicated count retained by the non-authoritative revision diagnostic. */
1679
+ readonly warningCount?: number;
1680
+ /** Normal-host management summary; absent when this host deliberately defers activation. */
1681
+ readonly summary?: PluginSummary;
1682
+ /** Declaration choices retained even when this host intentionally does not execute an owner. */
1683
+ readonly declared: {
1684
+ readonly installed: boolean;
1685
+ readonly enabled: boolean;
1686
+ /** Retained declaration source; absent for a name without a declaration. */
1687
+ readonly origin?: string;
1688
+ /** Readonly installed manifest version, falling back to the admission receipt when unavailable. */
1689
+ readonly version?: string;
1690
+ };
1691
+ /** Deferred means admitted and enabled but not executed in this host; no fabricated summary. */
1692
+ readonly activation?: 'active' | 'deferred' | 'failed';
1693
+ /** Unique package name. */
1694
+ readonly packageName: string;
1695
+ /** Monotonic installation identity revision. */
1696
+ readonly revision: number;
1697
+ /** Current receipt, absent for a custom or uninstalled package. */
1698
+ readonly receipt: AdmissionReceipt | null;
1699
+ /** All retained immutable receipts, independent of current provenance. */
1700
+ readonly history: readonly string[];
1701
+ /** Most recent 64 source records; complete receipt identifiers remain in history. */
1702
+ readonly historicalReceipts: readonly AdmissionHistory[];
1703
+ /** Same generic host assessment used by backend and browser loading. */
1704
+ readonly hostRequirements: HostRequirements;
706
1705
  }
707
- /** A plugin's accepted stream; ready precedes every business output on the wire. */
708
- interface ClientStreamHandle<R = unknown, I = unknown> {
709
- /** The unique initial metadata carried by the opened reply. */
710
- readonly ready: R;
711
- /** Consumes one validated client payload; calls are serialized by the host. */
712
- input(payload: I): Promise<void> | void;
713
- /** Releases this attachment; the host invokes it at most once, including late opens. */
714
- close(): Promise<void> | void;
1706
+ /** A user-confirmable token bound to the exact graph, owner epoch and installations. */
1707
+ interface InstallationPreview {
1708
+ /** Selected installation roots and existing roots explicitly chosen for activation. */
1709
+ readonly rootNames: readonly string[];
1710
+ /** Opaque token, valid only in the issuing process and owner activation. */
1711
+ readonly token: string;
1712
+ /** Token expiry in UTC ISO 8601. */
1713
+ readonly expiresAt: string;
1714
+ /** Full installed graph and host selection fingerprint captured at preview. */
1715
+ readonly graphRevision: string;
1716
+ /** Exact root and extension closure. */
1717
+ readonly selections: readonly ExtensionSelection[];
1718
+ /** Installed declarations affected by shared prefix mutation. */
1719
+ readonly affectedOwners: readonly string[];
1720
+ /** Owners which the user has chosen to enable. */
1721
+ readonly willEnable: readonly string[];
1722
+ /** Currently installed targets being replaced. */
1723
+ readonly replacing: readonly string[];
715
1724
  }
716
- /** One dedicated duplex stream, with independent schemas for opening, ready, input and output. */
717
- interface ClientStream<P = unknown, R = unknown, I = unknown, O = unknown> {
718
- /** A unique lower camel case segment within this owner's streams. */
719
- readonly name: string;
720
- /** A client-readable description of the stream. */
721
- readonly description?: string;
722
- /** The opening business parameters; authentication and owner epoch remain host-owned. */
723
- readonly openParams: ZodType<P>;
724
- /** The unique opened metadata shape. */
725
- readonly ready: ZodType<R>;
726
- /** The business input payload shape. */
727
- readonly input: ZodType<I>;
728
- /** The business output payload shape. */
729
- readonly output: ZodType<O>;
730
- /** Attaches one authenticated connection; does not create a new caller identity. */
731
- open(params: P, context: ClientStreamContext<O>): Promise<ClientStreamHandle<R, I>> | ClientStreamHandle<R, I>;
1725
+ /** Persistent independently queryable installation attempt. */
1726
+ interface InstallationOperation {
1727
+ /** Up to three complete warning samples within the durable byte budget; paths are never truncated. */
1728
+ readonly warnings?: readonly ArtifactWarning[];
1729
+ /** Complete deduplicated warning count, including metadata omitted from warnings. */
1730
+ readonly warningCount?: number;
1731
+ /** Captured durable activation results; absence means no per-root verdict was recorded. */
1732
+ readonly rootResults?: readonly {
1733
+ readonly packageName: string;
1734
+ readonly status: 'pending' | 'active' | 'disabled' | 'deferred' | 'failed';
1735
+ readonly reason?: string;
1736
+ }[];
1737
+ /** Client-supplied deduplication UUID. */
1738
+ readonly operationId: string;
1739
+ /** Server-assigned attempt UUID. */
1740
+ readonly attemptId: string;
1741
+ /** Actual submitting owner. */
1742
+ readonly issuer: string;
1743
+ /** Digest binding issuer and original token bytes, retained after token expiry. */
1744
+ readonly submissionDigest: string;
1745
+ /** Digest of the complete resolved selection. */
1746
+ readonly requestDigest: string;
1747
+ /** First selected root; complete root results are recorded in rootResults. */
1748
+ readonly packageName: string;
1749
+ /** Durable execution position. */
1750
+ readonly phase: 'preparing' | 'installing' | 'admitted' | 'activating' | 'settled';
1751
+ /** Current bounded work step. */
1752
+ readonly currentStep: 'prepare' | 'download' | 'verify' | 'npm' | 'admission' | 'activation' | 'cleanup';
1753
+ /** Actual attempt result, independent of admission and cleanup. */
1754
+ readonly outcome: 'pending' | 'succeeded' | 'failed' | 'interrupted';
1755
+ /** Failed stage, when present. */
1756
+ readonly failureStage?: 'prepare' | 'download' | 'verify' | 'npm' | 'admission' | 'activation' | 'cleanup' | 'recovery';
1757
+ /** Bounded diagnostic reason without credentials or token plaintext. */
1758
+ readonly reason?: string;
1759
+ /** Cleanup ownership, independent of namespace publication success. */
1760
+ readonly cleanup: 'not-needed' | 'pending' | 'complete' | 'failed';
1761
+ /** Start time in UTC ISO 8601. */
1762
+ readonly startedAt: string;
1763
+ /** Settlement time in UTC ISO 8601, when the result is known. */
1764
+ readonly settledAt?: string;
1765
+ /** Actual per-package identity results. */
1766
+ readonly packages: readonly {
1767
+ readonly packageName: string;
1768
+ readonly beforeRevision: number;
1769
+ readonly receiptId: string | null;
1770
+ readonly diskChanged?: boolean;
1771
+ readonly ownerWithdrawn?: boolean;
1772
+ }[];
732
1773
  }
733
- /** Host resource lease; callers close it after completion or cancellation. */
734
- interface ClientResourceResponse {
735
- /** The validated response, with byte iteration bound to this lease. */
736
- readonly result: ResourceResult;
737
- /** Cancellation shared by owner, registration and request. */
1774
+ /** Fixed work budget and cancellation owned by one installation attempt, never its observers. */
1775
+ interface InstallationAttemptContext {
1776
+ /** Stops cancelable work for this attempt without withdrawing its issuer. */
738
1777
  readonly signal: AbortSignal;
739
- /** Cancels and releases active source and request-body iterators; idempotent. */
740
- close(): Promise<void>;
1778
+ /** Monotonic remaining work budget in milliseconds; cleanup is outside this budget. */
1779
+ readonly remainingWorkMs: () => number;
741
1780
  }
742
- /** Host stream lease; ready and all payloads have passed the owner's declared schemas. */
743
- interface ClientStreamConnection extends ClientStreamHandle {
744
- /** Cancellation shared by owner, registration and connection. */
745
- readonly signal: AbortSignal;
746
- /** Queues one validated input within the bounded connection budget and preserves call order. */
747
- input(payload: unknown): Promise<void>;
748
- /** Releases the plugin handle; idempotent. */
749
- close(): Promise<void>;
1781
+ /** Actual activation facts from the trusted embedding host. */
1782
+ interface ActivationBatchResult {
1783
+ /** Host observations after the ordered activation and restoration pass. */
1784
+ readonly summaries: readonly PluginSummary[];
1785
+ /** Enabled declarations retained without executing their owners in this host. */
1786
+ readonly deferredNames: readonly string[];
750
1787
  }
751
- /** A dispatch failure that transports can map without knowing extension business errors. */
752
- interface ClientIoError extends Error {
753
- /** A stable generic or extension-defined error code. */
754
- readonly code: string;
755
- /** The HTTP status used by resource transports. */
756
- readonly status: number;
757
- /** Optional JSON error context, without credentials or streamed content. */
758
- readonly details?: unknown;
1788
+ /** Owner-bound exact installer; handles reject after their activation lifetime ends. */
1789
+ interface ExtensionInstallation {
1790
+ /** Prepares an exact archive under the issuer lease and returns only its validated manifest. */
1791
+ inspect(request: ArtifactRequest, signal?: AbortSignal, attempt?: InstallationAttemptContext): Promise<Readonly<Record<string, unknown>>>;
1792
+ /**
1793
+ * Prepares one exact union, binding existing activation roots to the same final validator and token.
1794
+ * @param validateSelection Rechecks exact selection facts before and after admission. Runtime
1795
+ * retains it for accepted execution; issuer activation withdrawal must not cancel that execution.
1796
+ * The framework checks the requesting lease before admission and explicit attempt cancellation.
1797
+ */
1798
+ previewBatch(request: InstallationBatchRequest, validateSelection: () => void | Promise<void>, attempt?: InstallationAttemptContext): Promise<InstallationPreview>;
1799
+ /**
1800
+ * Prepares exact artifacts without imports or state mutation and binds a final selection validator.
1801
+ * @param validateSelection Rechecks exact selection facts before and after admission. Runtime
1802
+ * retains it for accepted execution; issuer activation withdrawal must not cancel that execution.
1803
+ * The framework checks the requesting lease before admission and explicit attempt cancellation.
1804
+ */
1805
+ preview(request: InstallationRequest, validateSelection: () => void | Promise<void>, attempt?: InstallationAttemptContext): Promise<InstallationPreview>;
1806
+ /** Persists preparing before returning; same owner and token retry never replays npm. */
1807
+ install(request: {
1808
+ readonly operationId: string;
1809
+ readonly token: string;
1810
+ }, attempt?: InstallationAttemptContext): Promise<InstallationOperation>;
1811
+ /** Joins accepted execution; returned cleanup facts may still require retryCleanup. Available while the issuer remains current, including after host admission closes. */
1812
+ join(operationId: string): Promise<InstallationOperation>;
1813
+ /** Returns the original attempt; rejects unknown IDs and another owner's attempts. */
1814
+ operation(operationId: string): Promise<InstallationOperation>;
1815
+ /** Retries only retained cleanup, never download or npm; remains available to a current issuer after host admission closes. */
1816
+ retryCleanup(operationId: string): Promise<InstallationOperation>;
1817
+ /** Subscribes to durable progress for this issuer; withdrawal removes the subscription. */
1818
+ onChanged(listener: (operation: InstallationOperation) => void): () => void;
1819
+ /** Reads retained installation metadata without inspecting installed package contents. */
1820
+ observe(names?: readonly string[]): Promise<readonly InstallationObservation[]>;
1821
+ /** Runs a short selection or snapshot commit in the same queue as all installation mutations. */
1822
+ coordinate<T>(callback: () => T | Promise<T>): Promise<T>;
759
1823
  }
760
1824
  //#endregion
761
1825
  //#region node_modules/.cache/dts/plugin/src/network-routing.d.ts
@@ -781,6 +1845,119 @@ interface NetworkRouting {
781
1845
  }>;
782
1846
  }
783
1847
  //#endregion
1848
+ //#region node_modules/.cache/dts/plugin/src/owner-operations.d.ts
1849
+ /** Durable owner-neutral operation facts and same-connection transaction participants. */
1850
+ /** Stable owner and scope identity retained across activation changes. */
1851
+ interface OwnerOperationKey {
1852
+ readonly owner: string;
1853
+ readonly scope: string;
1854
+ readonly operationId: string;
1855
+ }
1856
+ /** A bounded recoverable operation fact; payloads contain safe results rather than input secrets. */
1857
+ interface OwnerOperationRow extends OwnerOperationKey {
1858
+ readonly method: string;
1859
+ readonly requestHash: string;
1860
+ readonly state: 'admitted' | 'committed' | 'cleanup-pending' | 'failed';
1861
+ readonly result: unknown;
1862
+ readonly cleanup: readonly {
1863
+ readonly code: string;
1864
+ readonly message: string;
1865
+ }[];
1866
+ readonly admittedAt: number;
1867
+ readonly updatedAt: number;
1868
+ }
1869
+ /** Synchronous rows bound to the selected framework database connection. */
1870
+ interface OwnerOperationRows {
1871
+ readonly connectionIdentity: symbol;
1872
+ /** Reads and validates a complete durable fact, or returns undefined for true absence. */
1873
+ get(key: OwnerOperationKey): OwnerOperationRow | undefined;
1874
+ /** Stores a bounded fact; changing an existing method or request hash is refused. */
1875
+ put(row: OwnerOperationRow): void;
1876
+ /** Lists at most limit unsettled identities after a stable cursor, without decoding result bodies. */
1877
+ unsettled(limit: number, after?: {
1878
+ readonly updatedAt: number;
1879
+ readonly owner: string;
1880
+ readonly scope: string;
1881
+ readonly operationId: string;
1882
+ }): readonly OwnerOperationKey[];
1883
+ }
1884
+ /** A prepared write which must use the host connection and its current activation. */
1885
+ interface BulkTransactionParticipant<T = unknown> {
1886
+ readonly connectionIdentity: symbol;
1887
+ /** Refuses stale ownership, revisions or observed resources before any commit. */
1888
+ assertCurrent(): void;
1889
+ /** Writes synchronously under the host transaction; this must not start an independent transaction. */
1890
+ write(): T;
1891
+ /** Publishes committed final state after the outermost commit succeeds. */
1892
+ publish?(value: T): void;
1893
+ }
1894
+ /** Executes same-connection participants under the host rollback boundary. */
1895
+ interface BulkTransactions {
1896
+ readonly connectionIdentity: symbol;
1897
+ /** Rejects foreign connections, rolls every participant back on failure and publishes after commit. */
1898
+ commit<T>(participants: readonly BulkTransactionParticipant<T>[], scope?: UnitOfWorkScope): readonly T[];
1899
+ }
1900
+ /** Owner-provided input whose stable owner is fixed by the host service facade. */
1901
+ interface OwnerOperationInput {
1902
+ readonly scope: string;
1903
+ readonly method: string;
1904
+ readonly operationId: string;
1905
+ readonly params: unknown;
1906
+ readonly containsSecrets?: boolean;
1907
+ }
1908
+ /** A first-execution capability; only confirmed noncommit with complete cleanup may become failed. */
1909
+ interface ExternalOperationReceipt<T> {
1910
+ commit(value: T, cleanup?: readonly {
1911
+ readonly code: string;
1912
+ readonly message: string;
1913
+ }[], scope?: UnitOfWorkScope): CommittedOperation<T>;
1914
+ fail(failure: {
1915
+ readonly code: string;
1916
+ readonly message: string;
1917
+ readonly confirmedNotCommitted: true;
1918
+ readonly cleanupComplete: true;
1919
+ }): void;
1920
+ }
1921
+ /** Settles an observed external outcome on its admitted row; never grants first-execution permission. */
1922
+ interface ExternalOperationRecovery<T> extends ExternalOperationReceipt<T> {}
1923
+ /** Host-issued permission to clear one captured cleanup revision while preserving its business result. */
1924
+ interface OwnerOperationCleanup<T> {
1925
+ /** May finish after owner withdrawal; stale attempts or changed cleanup revisions reject. */
1926
+ settle(): CommittedOperation<T>;
1927
+ }
1928
+ /** Owner-bound atomic intents; retries replay original committed facts before new business validation. */
1929
+ interface OwnerOperations {
1930
+ /** Reads matching durable facts before asynchronous preflight; confirmed clean failure permits a new admission. */
1931
+ lookup<T>(input: OwnerOperationInput): CommittedOperation<T> | undefined;
1932
+ /** Retains admitted uncertainty before external IO; retries never obtain another execution capability. */
1933
+ admit<T>(input: OwnerOperationInput): {
1934
+ readonly kind: 'new';
1935
+ readonly receipt: ExternalOperationReceipt<T>;
1936
+ } | {
1937
+ readonly kind: 'replay';
1938
+ readonly receipt: CommittedOperation<T>;
1939
+ };
1940
+ /** Issues settlement only for an existing matching admitted attempt, without another admission. */
1941
+ recover<T>(input: OwnerOperationInput): ExternalOperationRecovery<T>;
1942
+ /** Captures an existing committed cleanup fact while the current owner is still live. */
1943
+ retainCleanup<T>(input: OwnerOperationInput): OwnerOperationCleanup<T>;
1944
+ /** Updates cleanup facts while preserving the original committed business value. */
1945
+ markCleanupPending<T>(input: OwnerOperationInput, cleanup: readonly {
1946
+ readonly code: string;
1947
+ readonly message: string;
1948
+ }[], scope?: UnitOfWorkScope): CommittedOperation<T>;
1949
+ /** Records actual completed cleanup without changing the original business value. */
1950
+ settleCleanup<T>(input: OwnerOperationInput, scope?: UnitOfWorkScope): CommittedOperation<T>;
1951
+ /** Commits business writes and the bounded result on the shared host scope; secret inputs use a keyed digest. */
1952
+ atomic<T>(input: {
1953
+ readonly scope: string;
1954
+ readonly method: string;
1955
+ readonly operationId: string;
1956
+ readonly params: unknown;
1957
+ readonly containsSecrets?: boolean;
1958
+ }, write: (scope: UnitOfWorkScope) => T, scope?: UnitOfWorkScope): CommittedOperation<T>;
1959
+ }
1960
+ //#endregion
784
1961
  //#region node_modules/.cache/dts/plugin/src/agent-runs.d.ts
785
1962
  /** Inert completion formatting; no extension callback remains after admission. */
786
1963
  interface AgentRunCompletion {
@@ -816,18 +1993,67 @@ interface AgentRun {
816
1993
  readonly text: string;
817
1994
  readonly truncated: boolean;
818
1995
  } | null;
1996
+ /** Immutable original text locations; bounded sparse offsets avoid rescanning prefixes. */
1997
+ readonly resultSource?: AgentRunResultSource | null;
819
1998
  readonly createdAt: number;
820
1999
  readonly updatedAt: number;
821
2000
  readonly revision: number;
822
2001
  }
2002
+ /** Original final-message text indexed during its authoritative append. */
2003
+ interface AgentRunResultSource {
2004
+ readonly messageId: string;
2005
+ readonly seq: number;
2006
+ readonly generation: number;
2007
+ readonly complete: boolean;
2008
+ readonly parts: readonly {
2009
+ readonly index: number;
2010
+ readonly codePoints: number;
2011
+ readonly bytes: number;
2012
+ readonly checkpoints: readonly number[];
2013
+ }[];
2014
+ }
2015
+ /** Bounded execution facts without original or clipped result bodies. */
2016
+ type AgentRunStatus = Omit<AgentRun, 'result' | 'resultSource'> & {
2017
+ readonly resultAvailable: boolean;
2018
+ };
2019
+ /** One original Unicode-code-point page; reading does not repeat the Agent task. */
2020
+ type AgentRunResultPage = {
2021
+ readonly ok: true;
2022
+ readonly text: string;
2023
+ readonly offset: number;
2024
+ readonly end: number;
2025
+ readonly total: number;
2026
+ readonly nextOffset?: number;
2027
+ readonly revision: number;
2028
+ readonly source: {
2029
+ readonly sessionId: string;
2030
+ readonly messageId: string;
2031
+ readonly seq: number;
2032
+ } | null;
2033
+ } | {
2034
+ readonly ok: false;
2035
+ readonly code: 'unavailable' | 'limit_exceeded';
2036
+ readonly message: string;
2037
+ };
823
2038
  /** The framework accepts immutable work and keeps its completion after capability withdrawal. */
824
2039
  interface AgentRuns {
2040
+ /** Measures exact durable public projections before callers load result bodies; unknown or foreign identities are omitted. */
2041
+ measure(runIds: readonly string[]): readonly {
2042
+ readonly runId: string;
2043
+ readonly bytes: number;
2044
+ }[];
825
2045
  /** Reserves an inert plan; its capability decides when to start it. */
826
- prepare(plan: AgentRunPlan): AgentRun;
2046
+ prepare(plan: AgentRunPlan, scope?: UnitOfWorkScope): AgentRun;
827
2047
  start(plan: AgentRunPlan): AgentRun;
828
2048
  /** Records a terminal completion for work that does not enter the driver. */
829
2049
  settle(plan: AgentRunPlan, outcome: Outcome): AgentRun;
830
2050
  get(runId: string): AgentRun | undefined;
2051
+ status(runId: string): AgentRunStatus | undefined;
2052
+ /** Reads 1..4096 original code points at a nonnegative offset through bounded physical ranges. */
2053
+ readResult(runId: string, input: {
2054
+ readonly offset?: number;
2055
+ readonly limit?: number;
2056
+ }): AgentRunResultPage;
831
2057
  list(sessionId?: string): readonly AgentRun[];
832
2058
  definition(sessionId: string): AgentRunPlan['definition'] | undefined;
833
2059
  subscribe(listener: (run: AgentRun) => void): Dispose$1;
@@ -840,6 +2066,21 @@ interface AgentRunRow {
840
2066
  }
841
2067
  /** Caller-owned persistence; adapters neither admit work nor interpret capability policy. */
842
2068
  interface AgentRunRows {
2069
+ /** Actual host-issued connection identity; paths cannot substitute for this binding. */
2070
+ readonly connectionIdentity: symbol;
2071
+ /** Reads only bounded byte counts and ownership metadata, without parsing accepted plans. */
2072
+ measure(runIds: readonly string[]): readonly {
2073
+ readonly runId: string;
2074
+ readonly bytes: number;
2075
+ }[];
2076
+ ownerOf(runId: string): string | undefined;
2077
+ /** Decodes only the public execution projection, without its admitted trigger body. */
2078
+ read(runId: string): AgentRun | undefined;
2079
+ /** Point-reads only bounded run control fields, excluding both result body projections. */
2080
+ status(runId: string): Omit<AgentRunStatus, 'resultAvailable'> | undefined;
2081
+ /** Reads only the bounded original-source index, without loading clipped completion text. */
2082
+ resultSource(runId: string): AgentRunResultSource | null | undefined;
2083
+ runs(sessionId?: string): readonly AgentRun[];
843
2084
  find(runId: string): AgentRunRow | undefined;
844
2085
  list(sessionId?: string): readonly AgentRunRow[];
845
2086
  save(row: AgentRunRow): void;
@@ -848,396 +2089,71 @@ interface AgentRunRows {
848
2089
  //#endregion
849
2090
  //#region node_modules/.cache/dts/plugin/src/background-task.d.ts
850
2091
  /** Trusted background execution supplied explicitly by the installation platform. */
851
- /** A bounded raw source descriptor; workers open physical handles outside core. */
852
- interface BackgroundByteSource {
853
- readonly databasePath: string;
854
- readonly sessionId: string;
855
- readonly kind: 'history' | 'summary' | 'operation';
856
- readonly scopeId: string;
857
- readonly buildId: string;
858
- readonly historyGeneration: number;
859
- readonly sourceToken: string;
860
- readonly seedEndSeq: number;
861
- readonly parameterSource?: {
862
- readonly sql: string;
863
- readonly parameters: readonly (string | number)[];
864
- };
865
- readonly summaryBase?: unknown;
866
- /** Streams bounded decoded physical source frames for cold execution restoration. */
867
- readonly executionRestore?: boolean;
868
- /** Private retained-prefix preparation bound to a real, already committed authority basis. */
869
- readonly rewindPreparation?: {
870
- /** Durable operation identity reserved by the caller. */
871
- readonly operationId: string;
872
- /** Hash of the normalized immutable request. */
873
- readonly requestHash: string;
874
- /** Caller-owned reservation binding for this private build. */
875
- readonly reservationToken: string;
876
- /** Already committed authority used to prepare the retained prefix. */
877
- readonly basis: {
878
- /** Old revision, generation and physical source head. */
879
- readonly view: HistoryView;
880
- /** Old namespace ownership token. */
881
- readonly sourceToken: string;
882
- /** Old source digest, when supplied by the namespace. */
883
- readonly sourceSha256: string;
884
- };
885
- /** Selected user message; the pure projector verifies its effective membership. */
886
- readonly beforeMessageId: string;
887
- /** Inclusive physical-source ceiling; workers never read facts after it. */
888
- readonly basisHead: number;
889
- };
890
- }
891
- /** A cancellable ordered stream of pure projection batches. */
892
- interface BackgroundTask {
893
- readonly output: AsyncIterable<unknown>;
894
- readonly finished: Promise<void>;
895
- cancel(): void;
896
- }
897
- /** Starts only an installation-provided trusted entry, with bounded queued bytes. */
898
- interface BackgroundTaskPort {
899
- start(input: {
900
- readonly trustedModuleUrl: URL;
901
- readonly projectionModuleUrl: URL;
902
- readonly source: BackgroundByteSource;
903
- readonly signal: AbortSignal;
904
- readonly maxQueuedBytes: number;
905
- }): BackgroundTask;
906
- }
907
- /** Executes pure owner-selected computation in the shared bounded worker pool. */
908
- interface BackgroundComputationPort {
909
- /** Settles only after its worker exits; cancellation never returns a late value. */
910
- execute(input: {
911
- readonly trustedModuleUrl: URL;
912
- readonly value: unknown;
913
- readonly signal: AbortSignal;
914
- }): Promise<unknown>;
915
- }
916
- //#endregion
917
- //#region ../../../node_modules/.pnpm/@types+ws@8.18.2/node_modules/@types/ws/index.d.mts
918
- // can not get all overload of BufferConstructor['from'], need to copy all it's first arguments here
919
- // https://github.com/microsoft/TypeScript/issues/32164
920
- type BufferLike = string | Buffer | DataView | number | ArrayBufferView | Uint8Array | ArrayBuffer | SharedArrayBuffer | Blob | readonly any[] | readonly number[] | {
921
- valueOf(): ArrayBuffer;
922
- } | {
923
- valueOf(): SharedArrayBuffer;
924
- } | {
925
- valueOf(): Uint8Array;
926
- } | {
927
- valueOf(): readonly number[];
928
- } | {
929
- valueOf(): string;
930
- } | {
931
- [Symbol.toPrimitive](hint: string): string;
932
- };
933
- // WebSocket socket.
934
- declare class WebSocket extends EventEmitter {
935
- /** The connection is not yet open. */
936
- static readonly CONNECTING: 0;
937
- /** The connection is open and ready to communicate. */
938
- static readonly OPEN: 1;
939
- /** The connection is in the process of closing. */
940
- static readonly CLOSING: 2;
941
- /** The connection is closed. */
942
- static readonly CLOSED: 3;
943
- binaryType: "nodebuffer" | "arraybuffer" | "fragments";
944
- readonly bufferedAmount: number;
945
- readonly extensions: string;
946
- /** Indicates whether the websocket is paused */
947
- readonly isPaused: boolean;
948
- readonly protocol: string;
949
- /** The current state of the connection */
950
- readonly readyState: typeof WebSocket.CONNECTING | typeof WebSocket.OPEN | typeof WebSocket.CLOSING | typeof WebSocket.CLOSED;
951
- readonly url: string;
952
- /** The connection is not yet open. */
953
- readonly CONNECTING: 0;
954
- /** The connection is open and ready to communicate. */
955
- readonly OPEN: 1;
956
- /** The connection is in the process of closing. */
957
- readonly CLOSING: 2;
958
- /** The connection is closed. */
959
- readonly CLOSED: 3;
960
- onopen: ((event: WebSocket.Event) => void) | null;
961
- onerror: ((event: WebSocket.ErrorEvent) => void) | null;
962
- onclose: ((event: WebSocket.CloseEvent) => void) | null;
963
- onmessage: ((event: WebSocket.MessageEvent) => void) | null;
964
- constructor(address: null);
965
- constructor(address: string | URL$1, options?: WebSocket.ClientOptions | ClientRequestArgs);
966
- constructor(address: string | URL$1, protocols?: string | string[], options?: WebSocket.ClientOptions | ClientRequestArgs);
967
- close(code?: number, data?: string | Buffer): void;
968
- ping(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
969
- pong(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
970
- // https://github.com/websockets/ws/issues/2076#issuecomment-1250354722
971
- send(data: BufferLike, cb?: (err?: Error) => void): void;
972
- send(data: BufferLike, options: {
973
- mask?: boolean | undefined;
974
- binary?: boolean | undefined;
975
- compress?: boolean | undefined;
976
- fin?: boolean | undefined;
977
- }, cb?: (err?: Error) => void): void;
978
- terminate(): void;
979
- /**
980
- * Pause the websocket causing it to stop emitting events. Some events can still be
981
- * emitted after this is called, until all buffered data is consumed. This method
982
- * is a noop if the ready state is `CONNECTING` or `CLOSED`.
983
- */
984
- pause(): void;
985
- /**
986
- * Make a paused socket resume emitting events. This method is a noop if the ready
987
- * state is `CONNECTING` or `CLOSED`.
988
- */
989
- resume(): void;
990
- // HTML5 WebSocket events
991
- addEventListener<K extends keyof WebSocket.WebSocketEventMap>(type: K, listener: ((event: WebSocket.WebSocketEventMap[K]) => void) | {
992
- handleEvent(event: WebSocket.WebSocketEventMap[K]): void;
993
- }, options?: WebSocket.EventListenerOptions): void;
994
- removeEventListener<K extends keyof WebSocket.WebSocketEventMap>(type: K, listener: ((event: WebSocket.WebSocketEventMap[K]) => void) | {
995
- handleEvent(event: WebSocket.WebSocketEventMap[K]): void;
996
- }): void;
997
- // Events
998
- on(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
999
- on(event: "error", listener: (this: WebSocket, error: Error) => void): this;
1000
- on(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
1001
- on(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
1002
- on(event: "open", listener: (this: WebSocket) => void): this;
1003
- on(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
1004
- on(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
1005
- on(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
1006
- on(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
1007
- once(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
1008
- once(event: "error", listener: (this: WebSocket, error: Error) => void): this;
1009
- once(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
1010
- once(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
1011
- once(event: "open", listener: (this: WebSocket) => void): this;
1012
- once(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
1013
- once(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
1014
- once(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
1015
- once(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
1016
- off(event: "close", listener: (this: WebSocket, code: number, reason: Buffer) => void): this;
1017
- off(event: "error", listener: (this: WebSocket, error: Error) => void): this;
1018
- off(event: "upgrade", listener: (this: WebSocket, request: IncomingMessage) => void): this;
1019
- off(event: "message", listener: (this: WebSocket, data: WebSocket.RawData, isBinary: boolean) => void): this;
1020
- off(event: "open", listener: (this: WebSocket) => void): this;
1021
- off(event: "ping" | "pong", listener: (this: WebSocket, data: Buffer) => void): this;
1022
- off(event: "redirect", listener: (this: WebSocket, url: string, request: ClientRequest) => void): this;
1023
- off(event: "unexpected-response", listener: (this: WebSocket, request: ClientRequest, response: IncomingMessage) => void): this;
1024
- off(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this;
1025
- addListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
1026
- addListener(event: "error", listener: (error: Error) => void): this;
1027
- addListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
1028
- addListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
1029
- addListener(event: "open", listener: () => void): this;
1030
- addListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
1031
- addListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
1032
- addListener(event: "unexpected-response", listener: (request: ClientRequest, response: IncomingMessage) => void): this;
1033
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
1034
- removeListener(event: "close", listener: (code: number, reason: Buffer) => void): this;
1035
- removeListener(event: "error", listener: (error: Error) => void): this;
1036
- removeListener(event: "upgrade", listener: (request: IncomingMessage) => void): this;
1037
- removeListener(event: "message", listener: (data: WebSocket.RawData, isBinary: boolean) => void): this;
1038
- removeListener(event: "open", listener: () => void): this;
1039
- removeListener(event: "ping" | "pong", listener: (data: Buffer) => void): this;
1040
- removeListener(event: "redirect", listener: (url: string, request: ClientRequest) => void): this;
1041
- removeListener(event: "unexpected-response", listener: (request: ClientRequest, response: IncomingMessage) => void): this;
1042
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
2092
+ /** A bounded raw source descriptor; workers open physical handles outside core. */
2093
+ interface BackgroundByteSource {
2094
+ readonly databasePath: string;
2095
+ readonly sessionId: string;
2096
+ readonly kind: 'history' | 'summary' | 'operation';
2097
+ readonly scopeId: string;
2098
+ readonly buildId: string;
2099
+ readonly historyGeneration: number;
2100
+ readonly sourceToken: string;
2101
+ readonly seedEndSeq: number;
2102
+ readonly parameterSource?: {
2103
+ readonly sql: string;
2104
+ readonly parameters: readonly (string | number)[];
2105
+ };
2106
+ readonly summaryBase?: unknown;
2107
+ /** Streams bounded decoded physical source frames for cold execution restoration. */
2108
+ readonly executionRestore?: boolean;
2109
+ /** Private retained-prefix preparation bound to a real, already committed authority basis. */
2110
+ readonly rewindPreparation?: {
2111
+ /** Durable operation identity reserved by the caller. */
2112
+ readonly operationId: string;
2113
+ /** Hash of the normalized immutable request. */
2114
+ readonly requestHash: string;
2115
+ /** Caller-owned reservation binding for this private build. */
2116
+ readonly reservationToken: string;
2117
+ /** Already committed authority used to prepare the retained prefix. */
2118
+ readonly basis: {
2119
+ /** Old revision, generation and physical source head. */
2120
+ readonly view: HistoryView;
2121
+ /** Old namespace ownership token. */
2122
+ readonly sourceToken: string;
2123
+ /** Old source digest, when supplied by the namespace. */
2124
+ readonly sourceSha256: string;
2125
+ };
2126
+ /** Selected user message; the pure projector verifies its effective membership. */
2127
+ readonly beforeMessageId: string;
2128
+ /** Inclusive physical-source ceiling; workers never read facts after it. */
2129
+ readonly basisHead: number;
2130
+ };
1043
2131
  }
1044
- declare namespace WebSocket {
1045
- /**
1046
- * Data represents the raw message payload received over the WebSocket.
1047
- */
1048
- type RawData = Buffer | ArrayBuffer | Buffer[];
1049
- /**
1050
- * Data represents the message payload received over the WebSocket.
1051
- */
1052
- type Data = string | Buffer | ArrayBuffer | Buffer[];
1053
- /**
1054
- * CertMeta represents the accepted types for certificate & key data.
1055
- */
1056
- type CertMeta = string | string[] | Buffer | Buffer[];
1057
- /**
1058
- * VerifyClientCallbackSync is a synchronous callback used to inspect the
1059
- * incoming message. The return value (boolean) of the function determines
1060
- * whether or not to accept the handshake.
1061
- */
1062
- type VerifyClientCallbackSync<Request extends IncomingMessage = IncomingMessage> = (info: {
1063
- origin: string;
1064
- secure: boolean;
1065
- req: Request;
1066
- }) => boolean;
1067
- /**
1068
- * VerifyClientCallbackAsync is an asynchronous callback used to inspect the
1069
- * incoming message. The return value (boolean) of the function determines
1070
- * whether or not to accept the handshake.
1071
- */
1072
- type VerifyClientCallbackAsync<Request extends IncomingMessage = IncomingMessage> = (info: {
1073
- origin: string;
1074
- secure: boolean;
1075
- req: Request;
1076
- }, callback: (res: boolean, code?: number, message?: string, headers?: OutgoingHttpHeaders) => void) => void;
1077
- /**
1078
- * FinishRequestCallback is a callback for last minute customization of the
1079
- * headers. If finishRequest is set, then it has the responsibility to call
1080
- * request.end() once it is done setting request headers.
1081
- */
1082
- type FinishRequestCallback = (request: ClientRequest, websocket: WebSocket) => void;
1083
- interface ClientOptions extends SecureContextOptions {
1084
- protocol?: string | undefined;
1085
- followRedirects?: boolean | undefined;
1086
- generateMask?(mask: Buffer): void;
1087
- handshakeTimeout?: number | undefined;
1088
- maxRedirects?: number | undefined;
1089
- perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
1090
- localAddress?: string | undefined;
1091
- protocolVersion?: number | undefined;
1092
- headers?: {
1093
- [key: string]: string;
1094
- } | undefined;
1095
- origin?: string | undefined;
1096
- agent?: Agent | undefined;
1097
- host?: string | undefined;
1098
- family?: number | undefined;
1099
- checkServerIdentity?(servername: string, cert: CertMeta): boolean;
1100
- rejectUnauthorized?: boolean | undefined;
1101
- allowSynchronousEvents?: boolean | undefined;
1102
- autoPong?: boolean | undefined;
1103
- maxPayload?: number | undefined;
1104
- maxBufferedChunks?: number | undefined;
1105
- maxFragments?: number | undefined;
1106
- skipUTF8Validation?: boolean | undefined;
1107
- createConnection?: typeof createConnection | undefined;
1108
- finishRequest?: FinishRequestCallback | undefined;
1109
- }
1110
- interface PerMessageDeflateOptions {
1111
- serverNoContextTakeover?: boolean | undefined;
1112
- clientNoContextTakeover?: boolean | undefined;
1113
- serverMaxWindowBits?: number | undefined;
1114
- clientMaxWindowBits?: number | undefined;
1115
- zlibDeflateOptions?: {
1116
- flush?: number | undefined;
1117
- finishFlush?: number | undefined;
1118
- chunkSize?: number | undefined;
1119
- windowBits?: number | undefined;
1120
- level?: number | undefined;
1121
- memLevel?: number | undefined;
1122
- strategy?: number | undefined;
1123
- dictionary?: Buffer | Buffer[] | DataView | undefined;
1124
- info?: boolean | undefined;
1125
- } | undefined;
1126
- zlibInflateOptions?: ZlibOptions | undefined;
1127
- threshold?: number | undefined;
1128
- concurrencyLimit?: number | undefined;
1129
- }
1130
- interface Event {
1131
- type: string;
1132
- target: WebSocket;
1133
- }
1134
- interface ErrorEvent {
1135
- error: any;
1136
- message: string;
1137
- type: string;
1138
- target: WebSocket;
1139
- }
1140
- interface CloseEvent {
1141
- wasClean: boolean;
1142
- code: number;
1143
- reason: string;
1144
- type: string;
1145
- target: WebSocket;
1146
- }
1147
- interface MessageEvent {
1148
- data: Data;
1149
- type: string;
1150
- target: WebSocket;
1151
- }
1152
- interface WebSocketEventMap {
1153
- open: Event;
1154
- error: ErrorEvent;
1155
- close: CloseEvent;
1156
- message: MessageEvent;
1157
- }
1158
- interface EventListenerOptions {
1159
- once?: boolean | undefined;
1160
- }
1161
- interface ServerOptions<U extends typeof WebSocket = typeof WebSocket, V extends typeof IncomingMessage = typeof IncomingMessage> {
1162
- host?: string | undefined;
1163
- port?: number | undefined;
1164
- backlog?: number | undefined;
1165
- server?: Server<V> | Server$1<V> | undefined;
1166
- verifyClient?: VerifyClientCallbackAsync<InstanceType<V>> | VerifyClientCallbackSync<InstanceType<V>> | undefined;
1167
- handleProtocols?: (protocols: Set<string>, request: InstanceType<V>) => string | false;
1168
- path?: string | undefined;
1169
- noServer?: boolean | undefined;
1170
- allowSynchronousEvents?: boolean | undefined;
1171
- autoPong?: boolean | undefined;
1172
- clientTracking?: boolean | undefined;
1173
- perMessageDeflate?: boolean | PerMessageDeflateOptions | undefined;
1174
- maxPayload?: number | undefined;
1175
- maxBufferedChunks?: number | undefined;
1176
- maxFragments?: number | undefined;
1177
- skipUTF8Validation?: boolean | undefined;
1178
- WebSocket?: U | undefined;
1179
- }
1180
- interface AddressInfo {
1181
- address: string;
1182
- family: string;
1183
- port: number;
1184
- }
2132
+ /** A cancellable ordered stream of pure projection batches. */
2133
+ interface BackgroundTask {
2134
+ readonly output: AsyncIterable<unknown>;
2135
+ readonly finished: Promise<void>;
2136
+ cancel(): void;
1185
2137
  }
1186
- import CertMeta = WebSocket.CertMeta;
1187
- import CloseEvent = WebSocket.CloseEvent;
1188
- import Data = WebSocket.Data;
1189
- import ErrorEvent = WebSocket.ErrorEvent;
1190
- import Event = WebSocket.Event;
1191
- import FinishRequestCallback = WebSocket.FinishRequestCallback;
1192
- import MessageEvent = WebSocket.MessageEvent;
1193
- import PerMessageDeflateOptions = WebSocket.PerMessageDeflateOptions;
1194
- import ServerOptions = WebSocket.ServerOptions;
1195
- import VerifyClientCallbackAsync = WebSocket.VerifyClientCallbackAsync;
1196
- import VerifyClientCallbackSync = WebSocket.VerifyClientCallbackSync;
1197
- // WebSocket Server
1198
- declare class Server$2<T extends typeof WebSocket = typeof WebSocket, U extends typeof IncomingMessage = typeof IncomingMessage> extends EventEmitter {
1199
- options: WebSocket.ServerOptions<T, U>;
1200
- path: string;
1201
- clients: Set<InstanceType<T>>;
1202
- constructor(options?: WebSocket.ServerOptions<T, U>, callback?: () => void);
1203
- address(): WebSocket.AddressInfo | string | null;
1204
- close(cb?: (err?: Error) => void): void;
1205
- handleUpgrade(request: InstanceType<U>, socket: Duplex, upgradeHead: Buffer, callback: (client: InstanceType<T>, request: InstanceType<U>) => void): void;
1206
- shouldHandle(request: InstanceType<U>): boolean | Promise<boolean>;
1207
- // Events
1208
- on(event: "connection", cb: (this: Server$2<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
1209
- on(event: "error", cb: (this: Server$2<T>, error: Error) => void): this;
1210
- on(event: "headers", cb: (this: Server$2<T>, headers: string[], request: InstanceType<U>) => void): this;
1211
- on(event: "close" | "listening", cb: (this: Server$2<T>) => void): this;
1212
- on(event: "wsClientError", cb: (this: Server$2<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
1213
- on(event: string | symbol, listener: (this: Server$2<T>, ...args: any[]) => void): this;
1214
- once(event: "connection", cb: (this: Server$2<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
1215
- once(event: "error", cb: (this: Server$2<T>, error: Error) => void): this;
1216
- once(event: "headers", cb: (this: Server$2<T>, headers: string[], request: InstanceType<U>) => void): this;
1217
- once(event: "close" | "listening", cb: (this: Server$2<T>) => void): this;
1218
- once(event: "wsClientError", cb: (this: Server$2<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
1219
- once(event: string | symbol, listener: (this: Server$2<T>, ...args: any[]) => void): this;
1220
- off(event: "connection", cb: (this: Server$2<T>, websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
1221
- off(event: "error", cb: (this: Server$2<T>, error: Error) => void): this;
1222
- off(event: "headers", cb: (this: Server$2<T>, headers: string[], request: InstanceType<U>) => void): this;
1223
- off(event: "close" | "listening", cb: (this: Server$2<T>) => void): this;
1224
- off(event: "wsClientError", cb: (this: Server$2<T>, error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
1225
- off(event: string | symbol, listener: (this: Server$2<T>, ...args: any[]) => void): this;
1226
- addListener(event: "connection", cb: (websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
1227
- addListener(event: "error", cb: (error: Error) => void): this;
1228
- addListener(event: "headers", cb: (headers: string[], request: InstanceType<U>) => void): this;
1229
- addListener(event: "close" | "listening", cb: () => void): this;
1230
- addListener(event: "wsClientError", cb: (error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
1231
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
1232
- removeListener(event: "connection", cb: (websocket: InstanceType<T>, request: InstanceType<U>) => void): this;
1233
- removeListener(event: "error", cb: (error: Error) => void): this;
1234
- removeListener(event: "headers", cb: (headers: string[], request: InstanceType<U>) => void): this;
1235
- removeListener(event: "close" | "listening", cb: () => void): this;
1236
- removeListener(event: "wsClientError", cb: (error: Error, socket: Duplex, request: InstanceType<U>) => void): this;
1237
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
2138
+ /** Starts only an installation-provided trusted entry, with bounded queued bytes. */
2139
+ interface BackgroundTaskPort {
2140
+ start(input: {
2141
+ readonly trustedModuleUrl: URL;
2142
+ readonly projectionModuleUrl: URL;
2143
+ readonly source: BackgroundByteSource;
2144
+ readonly signal: AbortSignal;
2145
+ readonly maxQueuedBytes: number;
2146
+ }): BackgroundTask;
2147
+ }
2148
+ /** Executes pure owner-selected computation in the shared bounded worker pool. */
2149
+ interface BackgroundComputationPort {
2150
+ /** Settles only after its worker exits; cancellation never returns a late value. */
2151
+ execute(input: {
2152
+ readonly trustedModuleUrl: URL;
2153
+ readonly value: unknown;
2154
+ readonly signal: AbortSignal;
2155
+ }): Promise<unknown>;
1238
2156
  }
1239
- declare const WebSocketServer: typeof Server$2;
1240
- interface WebSocketServer extends Server$2 {} // eslint-disable-line @typescript-eslint/no-empty-interface
1241
2157
  //#endregion
1242
2158
  //#region node_modules/.cache/dts/plugin/src/platform.d.ts
1243
2159
  /** Physical file operations; policy, scope and authorization belong to the caller. */
@@ -1281,6 +2197,8 @@ interface HostCommands {
1281
2197
  openUrl(url: string): Promise<void>;
1282
2198
  /** Resolves a physical directory and rejects missing or non-directory paths. */
1283
2199
  directory(path: string): Promise<string>;
2200
+ /** Pins an existing ordinary cwd directory; verify detects replacement and close joins handle release. */
2201
+ observeDirectory(path: string): Promise<PathObservationLease>;
1284
2202
  /** Inspects absolute paths or PATH names, omitting relative and empty search directories. */
1285
2203
  inspect(command: string, env?: Readonly<NodeJS.ProcessEnv>): Promise<HostCommandInspection>;
1286
2204
  /** Resolves npm, adapting only validated fixed Node/npm installation layouts on Windows. */
@@ -1448,13 +2366,17 @@ interface FilePublication {
1448
2366
  readonly expected: PublicationIdentity;
1449
2367
  readonly tombstone: string;
1450
2368
  readonly missing?: boolean;
2369
+ /** Deletes an owned ordinary directory tree, rejecting linked or replaced objects. */
2370
+ readonly recursive?: boolean;
1451
2371
  }): PublicationResult;
1452
2372
  }
1453
2373
  /** The machine sandbox dialect; authorization and plan derivation remain framework concerns. */
1454
2374
  interface SandboxBackend {
1455
2375
  /** Stable backend identity for diagnostics. */
1456
2376
  readonly name: string;
1457
- /** Reports physical availability without falling back to unconfined execution. */
2377
+ /** Performs optional asynchronous capability preparation before publishing this backend. */
2378
+ initialize?(signal?: AbortSignal): Promise<void>;
2379
+ /** Reports the established physical capability without running a process probe or falling back. */
1458
2380
  available(): {
1459
2381
  readonly ok: true;
1460
2382
  } | {
@@ -1466,6 +2388,8 @@ interface SandboxBackend {
1466
2388
  }
1467
2389
  /** One authorized and address-pinned HTTP hop. */
1468
2390
  interface HopRequest {
2391
+ /** Host-issued immutable routing snapshot for the admitted URL collection. */
2392
+ readonly route?: NetworkRoute;
1469
2393
  readonly url: string;
1470
2394
  readonly addresses: readonly string[];
1471
2395
  readonly headers: Readonly<Record<string, string>>;
@@ -1488,6 +2412,10 @@ interface PlatformNetwork extends Network {
1488
2412
  bindRoutingSource(source: () => NetworkRouting | undefined): void;
1489
2413
  /** Address-pinned transport used after the framework judges each hop. */
1490
2414
  readonly webTransport: Transport;
2415
+ /** Issues the physical route used by every hop of an admitted collection. */
2416
+ webRoute(): Promise<NetworkRoute>;
2417
+ /** Rejects forged snapshots or changed routing owner and revision. */
2418
+ assertWebRoute(route: NetworkRoute): void;
1491
2419
  /** Releases dispatchers after admitted work has drained. */
1492
2420
  close(): Promise<void>;
1493
2421
  }
@@ -1531,6 +2459,12 @@ interface PlatformStorage {
1531
2459
  createConfigurationPersistenceOn(db: import('node:sqlite').DatabaseSync): ConfigurationPersistence;
1532
2460
  /** Executes synchronous writes atomically; a named savepoint may join an open transaction. */
1533
2461
  transaction<T>(db: import('node:sqlite').DatabaseSync, work: () => T, savepoint?: string): T;
2462
+ /** Publishes only after the actual outermost commit; rollback discards queued publications. */
2463
+ afterCommit(db: import('node:sqlite').DatabaseSync, publish: () => void): void;
2464
+ /** Bounded durable operation facts sharing the selected connection. */
2465
+ createOwnerOperationRowsOn(db: import('node:sqlite').DatabaseSync): OwnerOperationRows;
2466
+ /** In-memory facts with the same identity and serialization constraints. */
2467
+ createMemoryOwnerOperationRows(identity?: symbol): OwnerOperationRows;
1534
2468
  /** Runs owner-scoped structured writes and mailbox updates in one synchronous transaction. */
1535
2469
  deliveryTransaction<T>(db: import('node:sqlite').DatabaseSync, owner: string, work: (view: DeliveryWrites) => T): T;
1536
2470
  /** Binds one activation to its namespaced cooperative database view. */
@@ -1603,6 +2537,7 @@ interface StdFs {
1603
2537
  /** Framework-owned validators for the generic persisted vocabulary. */
1604
2538
  interface PlatformValidation {
1605
2539
  agentRun(value: unknown): AgentRunRow;
2540
+ agentRunProjection(value: unknown): AgentRun;
1606
2541
  event(value: unknown): RecordableEvent;
1607
2542
  eventAddresses(events: readonly RecordableEvent[], existing?: SessionAddress): void;
1608
2543
  message(value: unknown): Message;
@@ -1636,337 +2571,264 @@ interface FoundationIdentity {
1636
2571
  readonly version: string;
1637
2572
  }
1638
2573
  //#endregion
1639
- //#region node_modules/.cache/dts/plugin/src/extension-installation.d.ts
1640
- /** Exact package admission and owner-bound installation coordination contracts. */
1641
- /** Actual product version and physical target supplied by the embedding host. */
1642
- interface HostIdentity {
1643
- /** Complete product SemVer. */
1644
- readonly version: string;
1645
- /** Physical operating system and CPU architecture, never browser-derived. */
1646
- readonly target: PlatformTarget;
1647
- }
1648
- /** One physical operating system and CPU architecture pair. */
1649
- interface PlatformTarget {
1650
- /** Host operating system identifier. */
1651
- readonly os: string;
1652
- /** Host CPU architecture identifier. */
1653
- readonly arch: string;
1654
- }
1655
- /** Persistent generic requirements checked before backend or browser publication. */
1656
- interface ActivationConstraints {
1657
- /** Standard SemVer range accepted by the issuing owner. */
1658
- readonly hostVersionRange: string;
1659
- /** Explicit physical targets accepted by the issuing owner. */
1660
- readonly platformTargets: readonly PlatformTarget[];
1661
- }
1662
- /** Exact public archive expectation; no dist-tags or inferred versions. */
1663
- interface ArtifactRequest {
1664
- /** Expected manifest package name. */
1665
- readonly expectedName: string;
1666
- /** Expected complete manifest version. */
1667
- readonly expectedVersion: string;
1668
- /** Exact public npm registry archive address for the expected name and version. */
1669
- readonly tarballUrl: string;
1670
- /** SHA512 subresource integrity value. */
1671
- readonly integrity: string;
1672
- /** Expected compressed byte count, when supplied. */
1673
- readonly size?: number;
1674
- }
1675
- /** Verified archive identity returned by physical admission. */
1676
- interface ArtifactIdentity {
1677
- /** Actual public HTTPS archive address. */
1678
- readonly tarballUrl: string;
1679
- /** Verified SHA512 subresource integrity value. */
1680
- readonly integrity: string;
1681
- /** Actual compressed byte count. */
1682
- readonly size: number;
1683
- }
1684
- /** A regular file in a complete sorted logical content inventory. */
1685
- interface ContentEntry {
1686
- /** Slash-separated path relative to its package root. */
1687
- readonly path: string;
1688
- /** Actual file length in bytes. */
1689
- readonly size: number;
1690
- /** SHA256 of the complete file bytes. */
1691
- readonly sha256: string;
1692
- /** POSIX mode, observed on disk or predicted for npm installation; absent on Windows. */
1693
- readonly mode?: number;
2574
+ //#region node_modules/.cache/dts/plugin/src/unit-of-work.d.ts
2575
+ /** Opaque scope valid only during its issuing host transaction. */
2576
+ interface UnitOfWorkScope {
2577
+ readonly connectionIdentity: symbol;
2578
+ /** Rejects a completed, foreign or poisoned scope. */
2579
+ assertCurrent(): void;
2580
+ /** Schedules publication after the actual outer commit; callback failures do not undo committed data. */
2581
+ afterCommit(publish: () => void): void;
2582
+ /** Schedules recovery cleanup after rollback; callback failures do not replace the transaction error. */
2583
+ afterRollback(recover: () => void): void;
1694
2584
  }
1695
- /** Nonfatal metadata derived only from a completely verified regular file. */
1696
- interface ArtifactWarning {
1697
- /** A file exceeds the producing platform's advisory threshold. */
1698
- readonly code: 'LARGE_FILE';
1699
- /** Manifest name of the package containing the file. */
1700
- readonly packageName: string;
1701
- /** Slash-separated path relative to that package root; never a physical host path. */
1702
- readonly path: string;
1703
- /** Optional slash-separated package location within its shared installation prefix. */
1704
- readonly location?: string;
1705
- /** Complete verified file length in bytes. */
1706
- readonly size: number;
2585
+ /** One coordinator owns admission, rollback and publication for a physical connection. */
2586
+ interface HostUnitOfWork {
2587
+ readonly connectionIdentity: symbol;
2588
+ /** Opens an outer synchronous transaction; refuses unmanaged transactions and asynchronous callbacks. */
2589
+ run<T>(work: (scope: UnitOfWorkScope) => T): T;
2590
+ /** Joins the issued scope with a current activation; any failure poisons the entire outer transaction. */
2591
+ join<T>(scope: UnitOfWorkScope, work: (scope: UnitOfWorkScope) => T, owner?: PlatformOwnerLease): T;
1707
2592
  }
1708
- /** Actual resolved ordinary dependency, including its complete content inventory. */
1709
- interface DependencyNode {
1710
- /** Slash-separated location relative to the shared installation prefix. */
1711
- readonly location: string;
1712
- /** Actual manifest name. */
1713
- readonly name: string;
1714
- /** Actual manifest version. */
1715
- readonly version: string;
1716
- /** Lockfile archive source, when reliably available. */
1717
- readonly resolved?: string;
1718
- /** Lockfile integrity, when reliably available. */
1719
- readonly integrity?: string;
1720
- /** Digest of the complete sorted content inventory. */
1721
- readonly contentDigest: string;
1722
- /** Complete regular-file inventory. */
1723
- readonly entries: readonly ContentEntry[];
1724
- /** Resolved dependency locations forming the ordinary dependency graph. */
1725
- readonly dependencies: readonly string[];
2593
+ //#endregion
2594
+ //#region node_modules/.cache/dts/plugin/src/credential-vault.d.ts
2595
+ /** Explicit bounded credential scope selection; empty names are refused. */
2596
+ type CredentialClearItem = {
2597
+ readonly scope: string;
2598
+ readonly mode: 'names';
2599
+ readonly names: readonly string[];
2600
+ } | {
2601
+ readonly scope: string;
2602
+ readonly mode: 'all';
2603
+ };
2604
+ /** Ciphertext operations share the host database transaction. */
2605
+ interface CredentialVaultRows {
2606
+ upsert(scope: string, row: CredentialRowInput): void;
2607
+ remove(scope: string, name: string): boolean;
2608
+ removeScope(scope: string): number;
2609
+ hints(scope: string): readonly {
2610
+ readonly name: string;
2611
+ readonly hint: string;
2612
+ }[];
2613
+ ciphertexts(scope: string): Readonly<Record<string, string>>;
1726
2614
  }
1727
- /** Complete physical package contents and actual dependency resolution. */
1728
- interface PackageContent {
1729
- /** Advisory file metadata, independent of content digests and admission verdicts. */
1730
- readonly warnings?: readonly ArtifactWarning[];
1731
- /** Complete root inventory, excluding separately recorded node_modules. */
1732
- readonly entries: readonly ContentEntry[];
1733
- /** Root inventory digest. */
1734
- readonly contentDigest: string;
1735
- /** Complete resolved ordinary dependency graph. */
1736
- readonly dependencies: readonly DependencyNode[];
2615
+ /** The requesting activation can address only its own sealed credentials. */
2616
+ interface CredentialVault {
2617
+ /** Opaque storage namespace bound by the host. */
2618
+ readonly owner: string;
2619
+ readonly rows: CredentialVaultRows;
2620
+ state(): SecretBoxState;
2621
+ seal(scope: string, name: string, value: string, options?: {
2622
+ readonly hint?: string;
2623
+ }): CredentialRowInput | null;
2624
+ openAll(scope: string): Record<string, string>;
2625
+ open(scope: string, name: string): string | undefined;
2626
+ status(scope: string): readonly CredentialStatus[];
2627
+ set(scope: string, name: string, value: string, options?: {
2628
+ readonly hint?: string;
2629
+ }): readonly CredentialStatus[];
2630
+ clear(scope: string, name?: string): readonly CredentialStatus[];
2631
+ /** Joins the supplied host scope or opens one outer intent; publishes the changed scope collection once. */
2632
+ clearMany(items: readonly CredentialClearItem[], scope?: UnitOfWorkScope): readonly {
2633
+ readonly scope: string;
2634
+ readonly credentials: readonly CredentialStatus[];
2635
+ }[];
2636
+ onChanged(listener: (scopes: readonly string[]) => void): Dispose$1;
1737
2637
  }
1738
- /** A verified archive with its exact expected npm-installed inventory; target code is not evaluated. */
1739
- interface PreparedArtifact extends Omit<PackageContent, 'dependencies'> {
1740
- /** Verified archive facts. */
1741
- readonly artifact: ArtifactIdentity;
1742
- /** Persistent physical archive path retained while npm metadata references it. */
1743
- readonly artifactPath: string;
1744
- /** Full identity of the same ordinary archive object whose bytes were verified. */
1745
- readonly archiveIdentity: PublicationObservation;
1746
- /** Parsed manifest whose entry paths and metadata were validated physically. */
1747
- readonly manifest: Readonly<Record<string, unknown>>;
2638
+ //#endregion
2639
+ //#region node_modules/.cache/dts/plugin/src/model-failure.d.ts
2640
+ /** Verified failure facts, excluding execution identities supplied only by the host. */
2641
+ type ModelFailureInput = Omit<ModelFailure, 'modelCallId' | 'turn' | 'step'>;
2642
+ /** Creates candidates from fixed facts; arbitrary text and invalid inputs are refused synchronously. */
2643
+ interface ModelFailureFactory {
2644
+ /** Validates input and returns a candidate with fixed display text and no external cause. */
2645
+ create(input: ModelFailureInput): Error & ModelFailure;
2646
+ /** Tests object identity, without trusting fields copied onto arbitrary exceptions. */
2647
+ owns(error: unknown): error is Error & ModelFailure;
1748
2648
  }
1749
- /** Explicit physical artifact port; implementations own IO budgets and cleanup. */
1750
- interface PackageArtifacts {
1751
- /** Downloads and validates an exact archive and publishes its persistent source. */
1752
- prepare(request: ArtifactRequest, signal: AbortSignal): Promise<PreparedArtifact>;
1753
- /** Inspects every root file and actual ordinary dependency without evaluating code. */
1754
- inspect(root: string, signal: AbortSignal): Promise<PackageContent>;
2649
+ //#endregion
2650
+ //#region node_modules/.cache/dts/plugin/src/agent-execution.d.ts
2651
+ /** Current Agent identities; concrete capability settings remain owner-keyed opaque data. */
2652
+ interface AgentExecution {
2653
+ /** Content root absent in a runtime composed without physical workspace storage. */
2654
+ readonly workRoot?: string;
2655
+ /** Resolves the definition executing a session without changing its authority address. */
2656
+ agentOf(sessionId: string, address: SessionAddress): string;
2657
+ /** Reads the current framework definition, or undefined for an absent Agent. */
2658
+ agent(agentId: string): AgentSummary | undefined;
2659
+ /** Lists current framework definitions without opening a session. */
2660
+ agents(): readonly AgentSummary[];
2661
+ /** Resolves a persisted session's authority address; throws for an absent session. */
2662
+ address(sessionId: string): SessionAddress;
2663
+ /** Physical directories sealed against capability reads and writes. */
2664
+ sealed(): readonly string[];
1755
2665
  }
1756
- /** One exact root selection, with issuer-owned opaque bounded provenance. */
1757
- interface ExtensionSelection extends ArtifactRequest {
1758
- /** Issuer-owned JSON source evidence; the host does not interpret its business fields. */
1759
- readonly sourceRecord: Readonly<Record<string, unknown>>;
1760
- /** Persistent requirements independent of the issuer's continued availability. */
1761
- readonly activationConstraints: ActivationConstraints;
1762
- /** Neutral historical text, never a current qualification claim. */
1763
- readonly display?: {
1764
- readonly label: string;
1765
- readonly detail?: string;
1766
- };
2666
+ //#endregion
2667
+ //#region node_modules/.cache/dts/plugin/src/attachment-references.d.ts
2668
+ /** An explicit recorded attachment relationship; no current-chat identity is inferred. */
2669
+ interface AttachmentReference {
2670
+ /** Workspace that owns the managed original. */
2671
+ readonly workspaceId: string;
2672
+ /** Existing session that recorded use of this original. */
2673
+ readonly sessionId: string;
2674
+ /** Content digest of the trusted stored original. */
2675
+ readonly fileId: string;
1767
2676
  }
1768
- /** Complete exact extension closure approved by the user. */
1769
- interface InstallationRequest extends ExtensionSelection {
1770
- /** Exact missing extension dependencies; ordinary npm libraries are not selections. */
1771
- readonly dependencies?: readonly ExtensionSelection[];
1772
- /** Enables the target after admission unless explicitly false. */
1773
- readonly enabled?: boolean;
2677
+ /** Read-only access to one validated managed original; never returns a host path or writer. */
2678
+ interface AttachmentReader {
2679
+ /** Trusted stored metadata, using the media default name because file rows retain no filename. */
2680
+ readonly metadata: FileRef;
2681
+ /** Reads at an explicit nonnegative offset; length is at most 1 MiB. */
2682
+ read(position: number, length: number): Promise<Uint8Array>;
2683
+ /** Releases retained bytes; idempotent on cancellation and completion. */
2684
+ close(): Promise<void>;
1774
2685
  }
1775
- /** One exact admission batch plus explicitly selected installed roots to enable without replacement. */
1776
- interface InstallationBatchRequest {
1777
- /** Exact roots selected for physical installation. At least one is required. */
1778
- readonly roots: readonly ExtensionSelection[];
1779
- /** Exact missing extension dependencies shared by the selected roots. */
1780
- readonly dependencies?: readonly ExtensionSelection[];
1781
- /** Enables installed roots after admission unless explicitly false. */
1782
- readonly enabled?: boolean;
1783
- /** Already installed roots to enable; their existing admission receipts are retained. */
1784
- readonly enableNames?: readonly string[];
2686
+ /** Existing recorded attachments, independent of Agent execution and file-source directories. */
2687
+ interface AttachmentReferences {
2688
+ /** Validates workspace/session membership and file use before returning trusted metadata. */
2689
+ metadata(reference: AttachmentReference): FileRef | undefined;
2690
+ /** Opens existing managed bytes after the same membership check; no copy is persisted. */
2691
+ open(reference: AttachmentReference, options?: {
2692
+ readonly signal?: AbortSignal;
2693
+ }): Promise<AttachmentReader>;
1785
2694
  }
1786
- /** Immutable admission evidence signed with the actual consuming owner identity. */
1787
- interface AdmissionReceipt extends Omit<PackageContent, 'warnings'> {
1788
- /** Server-assigned immutable receipt UUID. */
1789
- readonly receiptId: string;
1790
- /** Acceptance time in UTC ISO 8601. */
1791
- readonly acceptedAt: string;
1792
- /** Admitted manifest name. */
1793
- readonly packageName: string;
1794
- /** Admitted exact manifest version. */
1795
- readonly version: string;
1796
- /** Actual consuming owner; never copied from sourceRecord. */
1797
- readonly issuer: string;
1798
- /** Issuer-owned opaque source evidence. */
1799
- readonly record: Readonly<Record<string, unknown>>;
1800
- /** Physically verified archive identity. */
1801
- readonly artifact: ArtifactIdentity;
1802
- /** Persistent generic host constraints. */
1803
- readonly activationConstraints: ActivationConstraints;
1804
- /** Neutral historical display text. */
1805
- readonly display?: {
1806
- readonly label: string;
1807
- readonly detail?: string;
2695
+ //#endregion
2696
+ //#region node_modules/.cache/dts/plugin/src/client-io.d.ts
2697
+ /** A single inclusive byte range, or the requested number of trailing bytes. */
2698
+ type ResourceRangeRequest = {
2699
+ readonly kind: 'absolute';
2700
+ readonly start: number;
2701
+ readonly end?: number;
2702
+ } | {
2703
+ readonly kind: 'suffix';
2704
+ readonly length: number;
2705
+ };
2706
+ /** The authenticated resource operation; the host supplies cancellation and PUT bytes. */
2707
+ type ResourceCall = {
2708
+ readonly method: 'HEAD';
2709
+ readonly signal: AbortSignal;
2710
+ } | {
2711
+ readonly method: 'GET';
2712
+ readonly signal: AbortSignal;
2713
+ readonly range?: ResourceRangeRequest;
2714
+ } | {
2715
+ readonly method: 'PUT';
2716
+ readonly signal: AbortSignal;
2717
+ readonly body: AsyncIterable<Uint8Array>;
2718
+ };
2719
+ /** Validated response headers for an opened byte resource. Lengths and offsets are bytes. */
2720
+ interface ResourceByteMetadata {
2721
+ /** A media type without line breaks or control characters. */
2722
+ readonly contentType: string;
2723
+ /** The exact number of bytes returned, including a selected range. */
2724
+ readonly contentLength: number;
2725
+ /** A download filename and the requested browser disposition. */
2726
+ readonly contentDisposition: {
2727
+ readonly filename: string;
2728
+ readonly disposition: 'inline' | 'attachment';
2729
+ };
2730
+ /** Inclusive offsets and total object length for a partial GET. */
2731
+ readonly range?: {
2732
+ readonly start: number;
2733
+ readonly end: number;
2734
+ readonly total: number;
1808
2735
  };
1809
2736
  }
1810
- /** Historical source evidence without duplicating complete content inventories in list results. */
1811
- type AdmissionHistory = Pick<AdmissionReceipt, 'receiptId' | 'acceptedAt' | 'packageName' | 'version' | 'issuer' | 'record' | 'artifact' | 'activationConstraints' | 'display'>;
1812
- /** One point-in-time generic host requirement decision. */
1813
- interface HostRequirements {
1814
- /** Unknown means no reliable constraints or no explicit host identity. */
1815
- readonly state: 'satisfied' | 'unsatisfied' | 'unknown';
1816
- /** Bounded human-readable reasons. */
1817
- readonly reasons: readonly string[];
1818
- /** Assessment time in UTC ISO 8601. */
1819
- readonly checkedAt: string;
2737
+ /** HEAD returns headers, GET returns bytes, and PUT returns its declared JSON result. */
2738
+ type ResourceResult<R = unknown, M = unknown> = {
2739
+ readonly kind: 'head';
2740
+ readonly bytes: ResourceByteMetadata;
2741
+ readonly metadata?: M;
2742
+ } | {
2743
+ readonly kind: 'bytes';
2744
+ readonly bytes: ResourceByteMetadata;
2745
+ readonly metadata?: M;
2746
+ readonly body: AsyncIterable<Uint8Array>;
2747
+ /** Releases an opened source even when no body iteration began; invoked at most once. */
2748
+ close(): Promise<void> | void;
2749
+ } | {
2750
+ readonly kind: 'json';
2751
+ readonly result: R;
2752
+ readonly metadata?: M;
2753
+ };
2754
+ /** An owner-scoped HTTP resource; handlers receive validated params and return no arbitrary headers. */
2755
+ interface ClientResource<P = unknown, R = unknown, M = unknown> {
2756
+ /** A unique lower camel case segment within this owner's resources. */
2757
+ readonly name: string;
2758
+ /** A client-readable description of the resource. */
2759
+ readonly description?: string;
2760
+ /** The allowed HTTP operations; at least one, without duplicates. */
2761
+ readonly methods: readonly ResourceCall['method'][];
2762
+ /** The business parameters validated before dispatch. */
2763
+ readonly params: ZodType<P>;
2764
+ /** The successful PUT result shape, even for a resource that declares no PUT. */
2765
+ readonly result: ZodType<R>;
2766
+ /** The optional business metadata shape, validated for every response. */
2767
+ readonly metadata: ZodType<M>;
2768
+ /** Runs one operation; streaming bodies must release resources when cancelled or returned. */
2769
+ handle(params: P, call: ResourceCall): Promise<ResourceResult<R, M>> | ResourceResult<R, M>;
1820
2770
  }
1821
- /** Current installation metadata and retained admission facts. */
1822
- interface InstallationObservation {
1823
- /** Nonfatal metadata from the current admitted or completely inspected contents. */
1824
- readonly warnings?: readonly ArtifactWarning[];
1825
- /** Complete deduplicated count retained by the non-authoritative revision diagnostic. */
1826
- readonly warningCount?: number;
1827
- /** Normal-host management summary; absent when this host deliberately defers activation. */
1828
- readonly summary?: PluginSummary;
1829
- /** Declaration choices retained even when this host intentionally does not execute an owner. */
1830
- readonly declared: {
1831
- readonly installed: boolean;
1832
- readonly enabled: boolean;
1833
- /** Retained declaration source; absent for a name without a declaration. */
1834
- readonly origin?: string;
1835
- /** Readonly installed manifest version, falling back to the admission receipt when unavailable. */
1836
- readonly version?: string;
1837
- };
1838
- /** Deferred means admitted and enabled but not executed in this host; no fabricated summary. */
1839
- readonly activation?: 'active' | 'deferred' | 'failed';
1840
- /** Unique package name. */
1841
- readonly packageName: string;
1842
- /** Monotonic installation identity revision. */
1843
- readonly revision: number;
1844
- /** Current receipt, absent for a custom or uninstalled package. */
1845
- readonly receipt: AdmissionReceipt | null;
1846
- /** All retained immutable receipts, independent of current provenance. */
1847
- readonly history: readonly string[];
1848
- /** Most recent 64 source records; complete receipt identifiers remain in history. */
1849
- readonly historicalReceipts: readonly AdmissionHistory[];
1850
- /** Same generic host assessment used by backend and browser loading. */
1851
- readonly hostRequirements: HostRequirements;
2771
+ /** The connection-bound host pipe, with validated output and transport backpressure. */
2772
+ interface ClientStreamContext<O = unknown> {
2773
+ /** Aborts on caller disconnect, registration disposal or owner withdrawal. */
2774
+ readonly signal: AbortSignal;
2775
+ /** Sends to this connection only; resolves when accepted into the bounded transport queue. */
2776
+ send(payload: O): Promise<void>;
2777
+ /** Initiates attachment cancellation and host cleanup; never closes the owner's business object. */
2778
+ close(): void;
1852
2779
  }
1853
- /** A user-confirmable token bound to the exact graph, owner epoch and installations. */
1854
- interface InstallationPreview {
1855
- /** Selected installation roots and existing roots explicitly chosen for activation. */
1856
- readonly rootNames: readonly string[];
1857
- /** Opaque token, valid only in the issuing process and owner activation. */
1858
- readonly token: string;
1859
- /** Token expiry in UTC ISO 8601. */
1860
- readonly expiresAt: string;
1861
- /** Full installed graph and host selection fingerprint captured at preview. */
1862
- readonly graphRevision: string;
1863
- /** Exact root and extension closure. */
1864
- readonly selections: readonly ExtensionSelection[];
1865
- /** Installed declarations affected by shared prefix mutation. */
1866
- readonly affectedOwners: readonly string[];
1867
- /** Owners which the user has chosen to enable. */
1868
- readonly willEnable: readonly string[];
1869
- /** Currently installed targets being replaced. */
1870
- readonly replacing: readonly string[];
2780
+ /** A plugin's accepted stream; ready precedes every business output on the wire. */
2781
+ interface ClientStreamHandle<R = unknown, I = unknown> {
2782
+ /** The unique initial metadata carried by the opened reply. */
2783
+ readonly ready: R;
2784
+ /** Consumes one validated client payload; calls are serialized by the host. */
2785
+ input(payload: I): Promise<void> | void;
2786
+ /** Releases this attachment; the host invokes it at most once, including late opens. */
2787
+ close(): Promise<void> | void;
1871
2788
  }
1872
- /** Persistent independently queryable installation attempt. */
1873
- interface InstallationOperation {
1874
- /** Up to three complete warning samples within the durable byte budget; paths are never truncated. */
1875
- readonly warnings?: readonly ArtifactWarning[];
1876
- /** Complete deduplicated warning count, including metadata omitted from warnings. */
1877
- readonly warningCount?: number;
1878
- /** Captured durable activation results; absence means no per-root verdict was recorded. */
1879
- readonly rootResults?: readonly {
1880
- readonly packageName: string;
1881
- readonly status: 'pending' | 'active' | 'disabled' | 'deferred' | 'failed';
1882
- readonly reason?: string;
1883
- }[];
1884
- /** Client-supplied deduplication UUID. */
1885
- readonly operationId: string;
1886
- /** Server-assigned attempt UUID. */
1887
- readonly attemptId: string;
1888
- /** Actual submitting owner. */
1889
- readonly issuer: string;
1890
- /** Digest binding issuer and original token bytes, retained after token expiry. */
1891
- readonly submissionDigest: string;
1892
- /** Digest of the complete resolved selection. */
1893
- readonly requestDigest: string;
1894
- /** First selected root; complete root results are recorded in rootResults. */
1895
- readonly packageName: string;
1896
- /** Durable execution position. */
1897
- readonly phase: 'preparing' | 'installing' | 'admitted' | 'activating' | 'settled';
1898
- /** Current bounded work step. */
1899
- readonly currentStep: 'prepare' | 'download' | 'verify' | 'npm' | 'admission' | 'activation' | 'cleanup';
1900
- /** Actual attempt result, independent of admission and cleanup. */
1901
- readonly outcome: 'pending' | 'succeeded' | 'failed' | 'interrupted';
1902
- /** Failed stage, when present. */
1903
- readonly failureStage?: 'prepare' | 'download' | 'verify' | 'npm' | 'admission' | 'activation' | 'cleanup' | 'recovery';
1904
- /** Bounded diagnostic reason without credentials or token plaintext. */
1905
- readonly reason?: string;
1906
- /** Cleanup ownership, independent of namespace publication success. */
1907
- readonly cleanup: 'not-needed' | 'pending' | 'complete' | 'failed';
1908
- /** Start time in UTC ISO 8601. */
1909
- readonly startedAt: string;
1910
- /** Settlement time in UTC ISO 8601, when the result is known. */
1911
- readonly settledAt?: string;
1912
- /** Actual per-package identity results. */
1913
- readonly packages: readonly {
1914
- readonly packageName: string;
1915
- readonly beforeRevision: number;
1916
- readonly receiptId: string | null;
1917
- readonly diskChanged?: boolean;
1918
- readonly ownerWithdrawn?: boolean;
1919
- }[];
2789
+ /** One dedicated duplex stream, with independent schemas for opening, ready, input and output. */
2790
+ interface ClientStream<P = unknown, R = unknown, I = unknown, O = unknown> {
2791
+ /** A unique lower camel case segment within this owner's streams. */
2792
+ readonly name: string;
2793
+ /** A client-readable description of the stream. */
2794
+ readonly description?: string;
2795
+ /** The opening business parameters; authentication and owner epoch remain host-owned. */
2796
+ readonly openParams: ZodType<P>;
2797
+ /** The unique opened metadata shape. */
2798
+ readonly ready: ZodType<R>;
2799
+ /** The business input payload shape. */
2800
+ readonly input: ZodType<I>;
2801
+ /** The business output payload shape. */
2802
+ readonly output: ZodType<O>;
2803
+ /** Attaches one authenticated connection; does not create a new caller identity. */
2804
+ open(params: P, context: ClientStreamContext<O>): Promise<ClientStreamHandle<R, I>> | ClientStreamHandle<R, I>;
1920
2805
  }
1921
- /** Fixed work budget and cancellation owned by one installation attempt, never its observers. */
1922
- interface InstallationAttemptContext {
1923
- /** Stops cancelable work for this attempt without withdrawing its issuer. */
2806
+ /** Host resource lease; callers close it after completion or cancellation. */
2807
+ interface ClientResourceResponse {
2808
+ /** The validated response, with byte iteration bound to this lease. */
2809
+ readonly result: ResourceResult;
2810
+ /** Cancellation shared by owner, registration and request. */
1924
2811
  readonly signal: AbortSignal;
1925
- /** Monotonic remaining work budget in milliseconds; cleanup is outside this budget. */
1926
- readonly remainingWorkMs: () => number;
1927
- }
1928
- /** Actual activation facts from the trusted embedding host. */
1929
- interface ActivationBatchResult {
1930
- /** Host observations after the ordered activation and restoration pass. */
1931
- readonly summaries: readonly PluginSummary[];
1932
- /** Enabled declarations retained without executing their owners in this host. */
1933
- readonly deferredNames: readonly string[];
2812
+ /** Cancels and releases active source and request-body iterators; idempotent. */
2813
+ close(): Promise<void>;
1934
2814
  }
1935
- /** Owner-bound exact installer; handles reject after their activation lifetime ends. */
1936
- interface ExtensionInstallation {
1937
- /** Prepares an exact archive under the issuer lease and returns only its validated manifest. */
1938
- inspect(request: ArtifactRequest, signal?: AbortSignal, attempt?: InstallationAttemptContext): Promise<Readonly<Record<string, unknown>>>;
1939
- /**
1940
- * Prepares one exact union, binding existing activation roots to the same final validator and token.
1941
- * @param validateSelection Rechecks exact selection facts before and after admission. Runtime
1942
- * retains it for accepted execution; issuer activation withdrawal must not cancel that execution.
1943
- * The framework checks the requesting lease before admission and explicit attempt cancellation.
1944
- */
1945
- previewBatch(request: InstallationBatchRequest, validateSelection: () => void | Promise<void>, attempt?: InstallationAttemptContext): Promise<InstallationPreview>;
1946
- /**
1947
- * Prepares exact artifacts without imports or state mutation and binds a final selection validator.
1948
- * @param validateSelection Rechecks exact selection facts before and after admission. Runtime
1949
- * retains it for accepted execution; issuer activation withdrawal must not cancel that execution.
1950
- * The framework checks the requesting lease before admission and explicit attempt cancellation.
1951
- */
1952
- preview(request: InstallationRequest, validateSelection: () => void | Promise<void>, attempt?: InstallationAttemptContext): Promise<InstallationPreview>;
1953
- /** Persists preparing before returning; same owner and token retry never replays npm. */
1954
- install(request: {
1955
- readonly operationId: string;
1956
- readonly token: string;
1957
- }, attempt?: InstallationAttemptContext): Promise<InstallationOperation>;
1958
- /** Joins accepted execution; returned cleanup facts may still require retryCleanup. Available while the issuer remains current, including after host admission closes. */
1959
- join(operationId: string): Promise<InstallationOperation>;
1960
- /** Returns the original attempt; rejects unknown IDs and another owner's attempts. */
1961
- operation(operationId: string): Promise<InstallationOperation>;
1962
- /** Retries only retained cleanup, never download or npm; remains available to a current issuer after host admission closes. */
1963
- retryCleanup(operationId: string): Promise<InstallationOperation>;
1964
- /** Subscribes to durable progress for this issuer; withdrawal removes the subscription. */
1965
- onChanged(listener: (operation: InstallationOperation) => void): () => void;
1966
- /** Reads retained installation metadata without inspecting installed package contents. */
1967
- observe(names?: readonly string[]): Promise<readonly InstallationObservation[]>;
1968
- /** Runs a short selection or snapshot commit in the same queue as all installation mutations. */
1969
- coordinate<T>(callback: () => T | Promise<T>): Promise<T>;
2815
+ /** Host stream lease; ready and all payloads have passed the owner's declared schemas. */
2816
+ interface ClientStreamConnection extends ClientStreamHandle {
2817
+ /** Cancellation shared by owner, registration and connection. */
2818
+ readonly signal: AbortSignal;
2819
+ /** Queues one validated input within the bounded connection budget and preserves call order. */
2820
+ input(payload: unknown): Promise<void>;
2821
+ /** Releases the plugin handle; idempotent. */
2822
+ close(): Promise<void>;
2823
+ }
2824
+ /** A dispatch failure that transports can map without knowing extension business errors. */
2825
+ interface ClientIoError extends Error {
2826
+ /** A stable generic or extension-defined error code. */
2827
+ readonly code: string;
2828
+ /** The HTTP status used by resource transports. */
2829
+ readonly status: number;
2830
+ /** Optional JSON error context, without credentials or streamed content. */
2831
+ readonly details?: unknown;
1970
2832
  }
1971
2833
  //#endregion
1972
2834
  //#region node_modules/.cache/dts/plugin/src/client-files.d.ts
@@ -2045,7 +2907,11 @@ interface ClientFileDirectoryStage {
2045
2907
  * after any setter failure. Close restores temporary cleanup access only while unpublished.
2046
2908
  */
2047
2909
  setDirectoryMode(parts: readonly string[], mode: number): Promise<void>;
2048
- /** Publishes the tree after checking its parent and the selected target; returns the tree identity. */
2910
+ /**
2911
+ * Publishes after checking parent and target identity. Replacing a nonempty observed directory
2912
+ * retains its original tree for synchronous rollback and later cleanup. Close retries actual
2913
+ * rollback or committed backup removal after owner withdrawal; published is independent of cleanup.
2914
+ */
2049
2915
  publish(name: string, expectedTarget?: ClientFileObservation): Promise<ClientFileObservation>;
2050
2916
  /**
2051
2917
  * Drains dependent IO and removes unpublished staging through retained identities.
@@ -2068,6 +2934,11 @@ interface ClientFileSymlinkStage {
2068
2934
  close(): Promise<void>;
2069
2935
  }
2070
2936
  /** A directory pinned beneath one validated root; operations use anchored OS handles. */
2937
+ /** Owned native enumeration; end-of-stream and return await actual resource closure. */
2938
+ interface ClientDirectoryListing extends AsyncIterableIterator<ClientFileEntry> {
2939
+ /** Closes the enumeration; failures retain ownership for an explicit retry. */
2940
+ close(): Promise<void>;
2941
+ }
2071
2942
  interface ClientFileDirectory {
2072
2943
  /** The validated canonical root and selected directory path at admission. */
2073
2944
  readonly path: string;
@@ -2088,6 +2959,14 @@ interface ClientFileDirectory {
2088
2959
  list(limit?: number, options?: {
2089
2960
  readonly strict?: boolean;
2090
2961
  }): Promise<readonly ClientFileEntry[]>;
2962
+ /**
2963
+ * Opens a streaming enumeration over this admitted directory without collecting all names.
2964
+ * Native order is unspecified. Sealed and escaping entries follow the same strict semantics
2965
+ * as list; cancellation and directory release drain acquired enumeration resources.
2966
+ */
2967
+ iterate(options?: {
2968
+ readonly strict?: boolean;
2969
+ }): Promise<ClientDirectoryListing>;
2091
2970
  /** Opens a validated relative path; symlink targets must remain inside the same root. */
2092
2971
  openDirectory(segments: readonly string[]): Promise<ClientFileDirectory>;
2093
2972
  /** Opens a pinned regular file; symlink targets must remain inside the same root. */
@@ -2128,8 +3007,24 @@ type ClientFilesAvailability = {
2128
3007
  readonly available: false;
2129
3008
  readonly reason: string;
2130
3009
  };
3010
+ /** Seekable private temporary bytes; the owner retains cleanup responsibility until close succeeds. */
3011
+ interface ClientFileScratch {
3012
+ /** Appends a bounded chunk, returning its starting byte offset; exceeding maximumBytes refuses before writing. */
3013
+ append(bytes: Uint8Array): Promise<number>;
3014
+ /** Reads at most bufferBytes from an explicit nonnegative byte offset. */
3015
+ read(offset: number, length: number): Promise<Uint8Array>;
3016
+ /** Returns the current accepted byte length without loading the contents. */
3017
+ size(): Promise<number>;
3018
+ /** Joins admitted IO, closes the file and removes its private temporary directory; failures remain retryable. */
3019
+ close(): Promise<void>;
3020
+ }
2131
3021
  /** Physical file operations bound to one activation; scope and operation policy remain caller-owned. */
2132
3022
  interface ClientFiles {
3023
+ /** Creates private seekable temporary storage; both limits count bytes and must be positive integers. */
3024
+ createScratch(options: {
3025
+ readonly maximumBytes: number;
3026
+ readonly bufferBytes: number;
3027
+ }): Promise<ClientFileScratch>;
2133
3028
  /** Reports whether the packaged native backend is available. */
2134
3029
  availability(): ClientFilesAvailability;
2135
3030
  /**
@@ -2155,12 +3050,11 @@ type ClientFilesFactory = (lease: PlatformOwnerLease) => ClientFiles;
2155
3050
  interface FileReferenceFormatter {
2156
3051
  /** Computes the exact reference revision; a symlink includes the selected referent observation. */
2157
3052
  fingerprint(observation: ClientFileObservation, referent?: ClientFileObservation): string;
2158
- /** Formats an explicit current workspace file; missing support does not grant read access. */
3053
+ /** Formats an explicit complete native file path; missing support does not grant read access. */
2159
3054
  formatCurrent?(input: {
2160
3055
  readonly gatewayId: string;
2161
- readonly workspaceId: string;
2162
- readonly rootId: string;
2163
- readonly path: string;
3056
+ readonly pathStyle: 'posix' | 'windows';
3057
+ readonly absolutePath: string;
2164
3058
  }): {
2165
3059
  readonly uri: string;
2166
3060
  } | undefined;
@@ -2175,6 +3069,25 @@ interface FileReferenceFormatter {
2175
3069
  } | undefined;
2176
3070
  }
2177
3071
  //#endregion
3072
+ //#region node_modules/.cache/dts/plugin/src/owner-context-reading.d.ts
3073
+ /** Current immutable message or process stream identity. */
3074
+ type OwnerContextOrigin = {
3075
+ readonly kind: 'message';
3076
+ readonly sessionId: string;
3077
+ readonly historyGeneration: number;
3078
+ readonly messageId: string;
3079
+ } | {
3080
+ readonly kind: 'live';
3081
+ readonly sessionId: string;
3082
+ readonly processEpoch: string;
3083
+ readonly streamEpoch: string;
3084
+ };
3085
+ /** Readonly projection access; reading never restores an execution driver or grants file authority. */
3086
+ interface OwnerContextReading {
3087
+ /** Returns only the requesting owner's bounded metadata, rejecting obsolete history or live epochs. */
3088
+ read(origin: OwnerContextOrigin, signal: AbortSignal): Promise<readonly OwnerContextEntry[]>;
3089
+ }
3090
+ //#endregion
2178
3091
  //#region node_modules/.cache/dts/plugin/src/web-client.d.ts
2179
3092
  /** Observable transfer progress; transport completion does not establish server commit. */
2180
3093
  interface TransferProgress {
@@ -2580,7 +3493,7 @@ interface ToolPresentation {
2580
3493
  readonly label?: string;
2581
3494
  readonly icon?: IconName;
2582
3495
  readonly summary?: string;
2583
- readonly relatedSession?: RelatedSessionPresentation;
3496
+ readonly relatedSessions?: readonly RelatedSessionPresentation[];
2584
3497
  }
2585
3498
  /** Ordering and display facts for one group in a live tool selector. */
2586
3499
  interface ToolGroupPresentation {
@@ -2593,6 +3506,15 @@ interface ToolGroupPresentation {
2593
3506
  /** Opens this owner's group until the person changes its expansion state. */
2594
3507
  readonly defaultExpanded?: boolean;
2595
3508
  }
3509
+ /** Pure access to an owner's Agent tool-preload preferences; never saves or authorizes tools. */
3510
+ interface ToolPreloadConfiguration {
3511
+ /** Agent extensionData key belonging to the provider. */
3512
+ readonly owner: string;
3513
+ /** Reads sparse boolean overrides; absent data means defaults, malformed data throws. */
3514
+ readonly read: (value: unknown) => Readonly<Record<string, boolean>>;
3515
+ /** Replaces all overrides while preserving the owner's other fields; malformed inputs throw. */
3516
+ readonly replace: (value: unknown, overrides: Readonly<Record<string, boolean>>) => unknown;
3517
+ }
2596
3518
  /**
2597
3519
  * What a section of a run is handed: the session, the tool calls the run made
2598
3520
  * in order with their answers so far, where the run stands, and where the
@@ -2872,9 +3794,9 @@ interface ShellSlots {
2872
3794
  /** Notifies the host when a fresh list would differ; returns an unsubscribe function. */
2873
3795
  readonly watch?: (onChange: () => void) => () => void;
2874
3796
  /** Deletes one instance, rejecting with a message the host may show. */
2875
- readonly remove: (id: string) => Promise<void>;
3797
+ readonly remove: (ids: readonly string[]) => Promise<BatchResults<void>>;
2876
3798
  /** Retests one instance; resolves when a fresh list can report its state. */
2877
- readonly test?: (id: string) => Promise<void>;
3799
+ readonly test?: (ids: readonly string[]) => Promise<BatchResults<void>>;
2878
3800
  /** Owns authentication and initial configuration inside the host's add dialog. */
2879
3801
  readonly add: ComponentType<ChannelAddProps>;
2880
3802
  /** One or more detail tabs; first is selected by default. */
@@ -2927,6 +3849,12 @@ interface ShellSlots {
2927
3849
  }, 'many'>;
2928
3850
  /** Resolves images for one private URI scheme. The host owns the object URL
2929
3851
  * and releases the result on source change, withdrawal or unmount. */
3852
+ /** Readonly file formats are coordinated by the file-reference owner and rendered by their producer. */
3853
+ /** Maps parsed document destinations using host-verifiable immutable origins. */
3854
+ 'shell.document.references': Slot<NoProps, {
3855
+ readonly resolve: (origin: MarkdownReferenceOrigin, items: readonly FileReferenceResolveItem[], signal: AbortSignal) => Promise<FileReferenceResolveResult>;
3856
+ }, 'one'>;
3857
+ 'shell.file.preview': Slot<FilePreviewProps, Omit<FilePreviewContribution, 'id'>, 'many'>;
2930
3858
  'shell.image.resolver': Slot<NoProps, {
2931
3859
  /** Lowercase private scheme, without the colon; http and https remain host-owned. */
2932
3860
  readonly scheme: string;
@@ -3024,6 +3952,8 @@ type ReadonlyFileViewerContent = {
3024
3952
  };
3025
3953
  /** Display-only file viewer props. Loading, transport and resource lifetimes belong to its caller. */
3026
3954
  interface ReadonlyFileViewerProps {
3955
+ /** Owner-rendered content outlet, shared by arbitrary readonly preview formats. */
3956
+ readonly children?: ReactNode;
3027
3957
  /** File name shown in the dialog title. */
3028
3958
  readonly name: string;
3029
3959
  /** Current display state, with no filesystem or transport identity. */
@@ -3262,14 +4192,17 @@ interface ChatSlots {
3262
4192
  readonly namespace: string;
3263
4193
  readonly label: SlotLabel;
3264
4194
  readonly items: (ctx: ComposerContext, query: string) => Promise<readonly AttachmentItem[]>;
3265
- readonly read: (id: string, ctx: ComposerContext) => Promise<{
4195
+ /** Reads a bounded nonempty collection once; failures remain associated with the input index. */
4196
+ readonly read: (ids: readonly string[], ctx: ComposerContext, limits: {
4197
+ readonly maxTotalBytes: number;
4198
+ }) => Promise<BatchResults<{
3266
4199
  readonly text: string;
3267
4200
  } | {
3268
4201
  readonly file: {
3269
4202
  readonly name: string;
3270
4203
  readonly data: Blob;
3271
4204
  };
3272
- }>;
4205
+ }>>;
3273
4206
  readonly subscribe?: ComposerSubscribe;
3274
4207
  }, 'many'>;
3275
4208
  /**
@@ -3303,11 +4236,11 @@ interface ChatSlots {
3303
4236
  /** Channel type matching this plugin's shell.settings.channel registration. */
3304
4237
  readonly type: string;
3305
4238
  /** Returns the bound instance, including paused/broken bindings; null means unbound. */
3306
- readonly binding: (target: SessionActionTarget) => Promise<string | null>;
4239
+ readonly bindings: (targets: readonly SessionActionTarget[]) => Promise<BatchResults<string | null, SessionActionTarget>>;
3307
4240
  /** Reports binding changes; subscribers must reload the binding. */
3308
4241
  readonly watch: (target: SessionActionTarget, changed: () => void) => () => void;
3309
4242
  /** Ends synchronization before the person creates a replacement binding. */
3310
- readonly unbind: (target: SessionActionTarget) => Promise<void>;
4243
+ readonly unbind: (targets: readonly SessionActionTarget[]) => Promise<BatchResults<void, SessionActionTarget>>;
3311
4244
  /** Owns prebinding confirmation, binding details and member controls. */
3312
4245
  readonly component: ComponentType<SessionChannelProps>;
3313
4246
  }, 'many'>;
@@ -4119,6 +5052,8 @@ interface DataTableSelection<T> {
4119
5052
  keys: ReadonlySet<string>;
4120
5053
  /** Called only for an explicit user selection change. */
4121
5054
  onChange: (next: ReadonlySet<string>) => void;
5055
+ /** Uses enablement labels and omits selection summaries when checkboxes configure row availability. */
5056
+ mode?: 'selection' | 'enablement';
4122
5057
  /** Disables every selection control. */
4123
5058
  disabled?: boolean;
4124
5059
  /** Rows whose existing selected state is preserved but cannot be changed by table controls. */
@@ -4149,6 +5084,8 @@ interface DataTableProps<T> {
4149
5084
  onClearFilters?: () => void;
4150
5085
  /** Group identity and display text; omitted for a flat table. */
4151
5086
  groupOf?: (item: T) => DataTableGroup;
5087
+ /** Group selection includes all members by default; matching limits changes to visible matches. */
5088
+ groupSelectionScope?: 'all' | 'matching';
4152
5089
  /** Choices after the implicit All filter. */
4153
5090
  filters?: readonly DataTableFilter<T>[];
4154
5091
  /** Paginates flat rows; grouped layouts always show complete groups and ignore this option. */
@@ -4538,6 +5475,12 @@ interface WidgetRendererRegistry {
4538
5475
  register<D extends JsonObject>(definition: WidgetRendererRegistration<D>): Dispose;
4539
5476
  }
4540
5477
  interface WebContext {
5478
+ /** Active preview contributions; owner withdrawal and faults update this readonly registry. */
5479
+ readonly filePreviews: FilePreviewRegistry;
5480
+ /** Transfers completion observation to the host; failed or pending cleanup outlives withdrawal. */
5481
+ readonly cleanup: {
5482
+ retain(finished: Promise<void>): void;
5483
+ };
4541
5484
  /** Registers this module's immutable snapshot renderers. */
4542
5485
  readonly widgets: WidgetRendererRegistry;
4543
5486
  /** Public browser controller used for framework session watches and atomic requests. */
@@ -4617,7 +5560,7 @@ interface WebContext {
4617
5560
  };
4618
5561
  /** A local method name; the host puts this plugin's owner segment in front,
4619
5562
  * which is why one plugin cannot reach another's method. */
4620
- invoke<R = unknown>(method: string, params?: unknown): Promise<R>;
5563
+ invoke<R = unknown>(method: string, params?: unknown, options?: BrowserCallOptions): Promise<R>;
4621
5564
  /**
4622
5565
  * One of the product's own methods, by its full name.
4623
5566
  *
@@ -4651,8 +5594,20 @@ interface WebContext {
4651
5594
  */
4652
5595
  readonly credentials: {
4653
5596
  status(scope: string): Promise<readonly CredentialStatus$1[]>;
4654
- set(scope: string, name: string, value: string): Promise<readonly CredentialStatus$1[]>;
4655
- clear(scope: string, name?: string): Promise<readonly CredentialStatus$1[]>;
5597
+ /** Writes one complete owner-bound intent and preserves uncertain/cleanup operation states. */
5598
+ set(scope: string, items: readonly {
5599
+ readonly name: string;
5600
+ readonly value: string;
5601
+ }[], operationId: string): Promise<ResultOf<'config.credential.set'>>;
5602
+ /** Clears explicit names or complete scopes under one stable operation identity. */
5603
+ clear(items: readonly ({
5604
+ readonly scope: string;
5605
+ readonly mode: 'names';
5606
+ readonly names: readonly string[];
5607
+ } | {
5608
+ readonly scope: string;
5609
+ readonly mode: 'all';
5610
+ })[], operationId: string): Promise<ResultOf<'config.credential.clear'>>;
4656
5611
  };
4657
5612
  /** Subscribe to a core event as an invalidation signal. Plugin payloads use on().
4658
5613
  * The disposer and plugin unload both stop delivery. */
@@ -4848,18 +5803,21 @@ interface ConnectionState {
4848
5803
  }
4849
5804
  /** Client wait options; cancellation never cancels or retries server work. */
4850
5805
  interface BrowserCallOptions {
5806
+ /** Correlates this request with a page interaction without including user content. */
5807
+ readonly trace?: RequestFrame['trace'];
5808
+ /** Finite user intent label for performance grouping. */
5809
+ readonly operation?: TelemetryObservation['operation'];
4851
5810
  /** Ends client waiting when aborted. */
4852
5811
  readonly signal?: AbortSignal;
4853
5812
  /** Maximum client wait in milliseconds; selected options default to 5000 ms. */
4854
5813
  readonly timeoutMs?: number;
4855
5814
  }
4856
5815
  /** Required method parameters with optional client wait options. */
4857
- type CallParams<M extends RequestMethod> = undefined extends ParamsOf<M> ? [params?: ParamsOf<M>, options?: BrowserCallOptions] : [params: ParamsOf<M>, options?: BrowserCallOptions];
5816
+ type CallParams<M extends RequestMethod> = undefined extends InputParamsOf<M> ? [params?: InputParamsOf<M>, options?: BrowserCallOptions] : [params: InputParamsOf<M>, options?: BrowserCallOptions];
4858
5817
  interface BrowserGateway {
4859
5818
  /** Sends a cancellable reading request; abort removes pending handlers and timers. Timeout defaults to 5000 ms. */
4860
- read<M extends RequestMethod>(method: M, params: ParamsOf<M>, options: {
5819
+ read<M extends RequestMethod>(method: M, params: InputParamsOf<M>, options: BrowserCallOptions & {
4861
5820
  readonly signal: AbortSignal;
4862
- readonly timeoutMs?: number;
4863
5821
  }): Promise<ResultOf<M>>;
4864
5822
  /**
4865
5823
  * Sends one request and resolves with its own answer.
@@ -4898,20 +5856,155 @@ interface WorkspaceSelectionState {
4898
5856
  readonly activeId: string | null;
4899
5857
  readonly select: (id: string) => void;
4900
5858
  }
5859
+ /** A local transcript span bound to an authoritative stable turn identity. */
5860
+ type TranscriptTurn = TurnSpan & Pick<ReadingTurnHeader, 'turnId' | 'status' | 'reason' | 'failure' | 'stop'>;
5861
+ //#endregion
5862
+ //#region node_modules/.cache/dts/plugin/src/host-file-reader.d.ts
5863
+ /** Actual cleanup completion is distinct from a bounded observation deadline. */
5864
+ type FileReaderCloseResult = {
5865
+ readonly status: 'closed';
5866
+ } | {
5867
+ readonly status: 'pending' | 'failed';
5868
+ readonly cleanupId: string;
5869
+ readonly code: 'cleanup-timeout' | 'cleanup-failed';
5870
+ };
5871
+ /** One supervised opened object, bound to its initial physical version. */
5872
+ interface HostFileReadHandle {
5873
+ readonly pathStyle: 'posix' | 'windows';
5874
+ readonly observation: ClientFileObservation;
5875
+ readonly size: number;
5876
+ readonly mediaType: string;
5877
+ /** Resolves only after the actual worker exit releases its file handles. */
5878
+ readonly finished: Promise<void>;
5879
+ /** Explicit bounded access, at most 256 KiB per call; version changes refuse with stale. */
5880
+ readRange(offset: number, length: number, signal: AbortSignal): Promise<Uint8Array>;
5881
+ /** Cancels reads, closes cooperatively for 5s, terminates, and observes actual exit through 10s. */
5882
+ close(): Promise<FileReaderCloseResult>;
5883
+ }
5884
+ /** Owner-leased reader; no implicit process cwd and no Agent authorization or workspace scope. */
5885
+ interface HostFileReader {
5886
+ readonly pathStyle: 'posix' | 'windows';
5887
+ /** Admits at most four active or cleaning tasks per installation; full capacity refuses immediately. */
5888
+ open(absolutePath: string, signal: AbortSignal): Promise<HostFileReadHandle>;
5889
+ }
5890
+ //#endregion
5891
+ //#region node_modules/.cache/dts/plugin/src/file-preview.d.ts
5892
+ /** Complete-file admission and deterministic format declarations, without transport access. */
5893
+ interface FilePreviewContribution {
5894
+ readonly id: string;
5895
+ readonly label: SlotLabel;
5896
+ readonly match: {
5897
+ readonly mediaTypes: readonly string[];
5898
+ readonly extensions: readonly string[];
5899
+ };
5900
+ readonly priority?: number;
5901
+ /** Complete-file and cumulative delivery ceiling, 1..50 MiB. */
5902
+ readonly maxBytes: number;
5903
+ readonly component: ComponentType<FilePreviewProps>;
5904
+ }
5905
+ /** Host-stamped active registration; generation changes on each actual registration. */
5906
+ interface FilePreviewRegistration {
5907
+ readonly owner: string;
5908
+ readonly id: string;
5909
+ readonly generation: number;
5910
+ readonly contribution: FilePreviewContribution;
5911
+ }
5912
+ /** Readonly cross-owner discovery. Components must be mounted through the host's owner outlet. */
5913
+ interface FilePreviewRegistry {
5914
+ list(): readonly FilePreviewRegistration[];
5915
+ subscribe(listener: () => void): () => void;
5916
+ }
5917
+ /** Bounded destination conversion; callers cannot choose a different document base. */
5918
+ interface FileReferenceResolveItem {
5919
+ readonly id: string;
5920
+ readonly destination: string;
5921
+ readonly usage: 'link' | 'image';
5922
+ }
5923
+ /** Ordered syntax results; errors never imply a filesystem probe. */
5924
+ interface FileReferenceResolveResult {
5925
+ readonly items: readonly ({
5926
+ readonly id: string;
5927
+ readonly kind: 'file';
5928
+ readonly uri: string;
5929
+ readonly fragment?: string;
5930
+ } | {
5931
+ readonly id: string;
5932
+ readonly kind: 'passthrough';
5933
+ } | {
5934
+ readonly id: string;
5935
+ readonly kind: 'error';
5936
+ readonly code: string;
5937
+ readonly message: string;
5938
+ })[];
5939
+ }
5940
+ /** Immutable facts for one observed file version. */
5941
+ interface FilePreviewMetadata {
5942
+ readonly name: string;
5943
+ readonly mediaType: string;
5944
+ readonly size: number;
5945
+ readonly fingerprint: string;
5946
+ }
5947
+ /** Only the coordinator controls IO budgets, cancellation and cleanup; no credentials or raw URLs. */
5948
+ interface FilePreviewProps {
5949
+ readonly metadata: FilePreviewMetadata;
5950
+ readonly signal: AbortSignal;
5951
+ /** Safe nonnegative offsets; 1..256 KiB, at most four concurrent reads, cumulative maxBytes. */
5952
+ readRange(offset: number, length: number): Promise<Uint8Array>;
5953
+ createObjectURL(blob: Blob): string;
5954
+ revokeObjectURL(url: string): void;
5955
+ onDispose(cleanup: () => void | Promise<void>): void;
5956
+ resolveReferences(items: readonly FileReferenceResolveItem[]): Promise<FileReferenceResolveResult>;
5957
+ resolveImage(uri: string): Promise<{
5958
+ readonly url: string;
5959
+ release(): void;
5960
+ }>;
5961
+ openReference(uri: string): Promise<void>;
5962
+ report(state: 'ready' | 'unsupported' | 'failed', message?: string): void;
5963
+ }
5964
+ /** Content result and cleanup observation are independent axes. */
5965
+ interface FilePreviewState {
5966
+ readonly status: 'loading' | 'ready' | 'unsupported' | 'failed' | 'stale' | 'unavailable';
5967
+ readonly lifecycle: 'active' | 'closing' | 'closed' | 'cleanup-pending' | 'cleanup-failed';
5968
+ readonly metadata?: FilePreviewMetadata;
5969
+ readonly message?: string;
5970
+ readonly canDownload: boolean;
5971
+ }
5972
+ /** One independently owned view; retries never overlap unfinished cleanup of the previous attempt. */
5973
+ interface FilePreviewHandle {
5974
+ get(): FilePreviewState;
5975
+ subscribe(listener: () => void): () => void;
5976
+ retry(options?: {
5977
+ readonly asText?: boolean;
5978
+ }): Promise<void>;
5979
+ close(): Promise<FileReaderCloseResult>;
5980
+ }
5981
+ /** The host verifies this exact registration before entering its owner's rendering boundary. */
5982
+ interface FilePreviewOutletProps {
5983
+ readonly registration: Pick<FilePreviewRegistration, 'owner' | 'id' | 'generation'>;
5984
+ readonly props: FilePreviewProps;
5985
+ }
5986
+ /** Trusted message/stream identity or explicit parent-document reference; no browser cwd. */
5987
+ type MarkdownReferenceOrigin = OwnerContextOrigin | {
5988
+ readonly kind: 'document';
5989
+ readonly uri: string;
5990
+ };
5991
+ /** Neutral document conversion supplied by an owner or by a bounded parent preview instance. */
5992
+ interface MarkdownReferenceResolver {
5993
+ resolve(items: readonly FileReferenceResolveItem[], signal: AbortSignal): Promise<FileReferenceResolveResult>;
5994
+ resolveImage?(uri: string): Promise<{
5995
+ readonly url: string;
5996
+ release(): void;
5997
+ }>;
5998
+ }
4901
5999
  //#endregion
4902
6000
  //#region node_modules/.cache/dts/plugin/src/file-reference-reader.d.ts
4903
6001
  /** Validated source identity; recorded attachments never acquire a current filesystem path. */
4904
6002
  type FileReferenceSource = {
4905
- /** An ordinary file selected through its current workspace root. */
4906
- readonly kind: 'workspace-file';
4907
- /** Installation identity validated by the producing reader. */
6003
+ /** An ordinary file addressed on the Gateway host. */
6004
+ readonly kind: 'gateway-file';
4908
6005
  readonly gatewayId: string;
4909
- /** Explicit workspace containing the selected root. */
4910
- readonly workspaceId: string;
4911
- /** Stable identifier of the configured root. */
4912
- readonly rootId: string;
4913
- /** Literal slash-separated relative path; empty selects the root itself. */
4914
- readonly path: string;
6006
+ readonly pathStyle: 'posix' | 'windows';
6007
+ readonly absolutePath: string;
4915
6008
  } | {
4916
6009
  /** Original media retained through a recorded session relationship. */
4917
6010
  readonly kind: 'recorded-attachment';
@@ -4941,6 +6034,17 @@ interface FileReferenceDescription {
4941
6034
  }
4942
6035
  /** Optional UI consumers use this service without implementing private reference syntax. */
4943
6036
  interface FileReferenceReader {
6037
+ /** Independent bounded preview; metadata loading starts immediately and rendering uses PreviewContent. */
6038
+ createPreview(input: {
6039
+ readonly uri: string;
6040
+ readonly expectedFingerprint?: string;
6041
+ }): FilePreviewHandle;
6042
+ /** Shared content coordinator used in dialogs and sidebars, with producer-owned rendering boundaries. */
6043
+ readonly PreviewContent: ComponentType<{
6044
+ readonly handle: FilePreviewHandle;
6045
+ }>;
6046
+ /** Maps only complete parsed destinations against authenticated immutable origins. */
6047
+ resolveReferences(origin: MarkdownReferenceOrigin, items: readonly FileReferenceResolveItem[], signal: AbortSignal): Promise<FileReferenceResolveResult>;
4944
6048
  /** Formats an explicit source identity without reading bytes or granting access. */
4945
6049
  format(source: FileReferenceSource): string;
4946
6050
  /** Opens bounded readonly content in the owner's shared document viewer. */
@@ -5109,6 +6213,51 @@ interface PtyService {
5109
6213
  /** Constructs a physical adapter leased to one owner activation. */
5110
6214
  type PtyServiceFactory = (lease: PlatformOwnerLease) => PtyService;
5111
6215
  //#endregion
6216
+ //#region node_modules/.cache/dts/plugin/src/owner-session-context.d.ts
6217
+ /** A compare-and-set command; operation identity binds the entire request. */
6218
+ interface OwnerStateCommit {
6219
+ /** Local owner key. */
6220
+ readonly key: string;
6221
+ /** Null requires an absent value. */
6222
+ readonly expectedRevision: number | null;
6223
+ /** Stable retry identity; tool staging uses the actual tool call id. */
6224
+ readonly operationId: string;
6225
+ /** Complete replacement, never a patch. */
6226
+ readonly data: JsonValue$1;
6227
+ }
6228
+ /** Host-issued preparation context for one ordinary model decision. */
6229
+ interface OwnerContextPreparation {
6230
+ readonly sessionId: string;
6231
+ readonly address: SessionAddress;
6232
+ readonly signal: AbortSignal;
6233
+ /** Already prepared contributions, ordered by declared order then owner/key. */
6234
+ readonly snapshot: readonly OwnerContextEntry[];
6235
+ /** Reads this owner's effective local state without restoring another session. */
6236
+ read(key: string): OwnerContextEntry | undefined;
6237
+ /** Commits initialization or repair before the decision snapshot freezes. */
6238
+ commit(input: OwnerStateCommit): Promise<OwnerContextEntry>;
6239
+ }
6240
+ /** Host-bound owner state service. It never grants filesystem or tool authorization. */
6241
+ interface OwnerSessionContext {
6242
+ /** Registers one local provenance contribution; withdrawal cancels its preparations. */
6243
+ register(input: {
6244
+ readonly key: string;
6245
+ readonly order?: number;
6246
+ prepare(context: OwnerContextPreparation): Promise<{
6247
+ readonly revision: number;
6248
+ readonly data: JsonValue$1;
6249
+ } | undefined>;
6250
+ }): () => void;
6251
+ /** Loads execution state explicitly and returns this owner's effective value. */
6252
+ read(sessionId: string, key: string): Promise<OwnerContextEntry | undefined>;
6253
+ /** Initializes one registered contribution while holding the session's maintenance reservation. */
6254
+ prepareInitial(sessionId: string, key: string, signal: AbortSignal): Promise<OwnerContextEntry | undefined>;
6255
+ /** Authenticated management commit; a busy session refuses before preparation. */
6256
+ change(sessionId: string, input: OwnerStateCommit, prepare: (context: OwnerContextPreparation) => Promise<JsonValue$1>, signal: AbortSignal): Promise<OwnerContextEntry>;
6257
+ /** Stages state beside the exact successful tool result; failed recording commits neither. */
6258
+ stage(ctx: ToolExecContext, input: Omit<OwnerStateCommit, 'operationId'>, render: (entry: OwnerContextEntry) => PluginToolContentResult): PluginToolContentResult;
6259
+ }
6260
+ //#endregion
5112
6261
  //#region node_modules/.cache/dts/plugin/src/context.d.ts
5113
6262
  /** A bounded directory, literal keyword search, or neighboring-history lookup. */
5114
6263
  interface ContextSearchInput {
@@ -5207,8 +6356,17 @@ type ContextRestoreResult = ContextHistoryFailure | (Omit<ContextHistoryEntry, '
5207
6356
  });
5208
6357
  /** Host service `session-context-history`; scope comes only from the executing tool context. */
5209
6358
  interface SessionContextHistory {
6359
+ /** Reserves the normalized collection against this step's shared quota before reading any history body. */
6360
+ preflightRestore(ctx: ToolExecContext, pages: readonly ContextRestoreInput[], maxTotalBytes: number): {
6361
+ readonly ok: true;
6362
+ } | ContextHistoryFailure;
5210
6363
  /** Searches this session's persisted visible parts with shared per-batch output limits. */
5211
6364
  search(ctx: ToolExecContext, input: ContextSearchInput): ContextSearchResult;
6365
+ /**
6366
+ * Prepares a bounded immutable page without quota consumption, yielding during source indexing.
6367
+ * Optional sources declare up to 64 references sharing this call's bounded source index.
6368
+ */
6369
+ previewRestore?(ctx: ToolExecContext, input: ContextRestoreInput, sources?: readonly string[]): Promise<ContextRestoreResult>;
5212
6370
  /** Reads a bounded exact page and reserves its share of the next-request budget. */
5213
6371
  restore(ctx: ToolExecContext, input: ContextRestoreInput): ContextRestoreResult;
5214
6372
  }
@@ -5275,10 +6433,37 @@ interface AgentDefinitionPatch {
5275
6433
  /** Controls new direct conversations without stopping existing sessions. */
5276
6434
  readonly startsSessions?: boolean;
5277
6435
  }
6436
+ /** A readable definition without prompt bodies or retained extension configuration. */
6437
+ interface AgentDefinitionSummary {
6438
+ /** Identity accepted by explicit definition reads. */
6439
+ readonly agentId: string;
6440
+ /** Current display name. */
6441
+ readonly name: string;
6442
+ /** Short purpose text, without prompt or extension bodies. */
6443
+ readonly description: string;
6444
+ /** Whether the definition admits new direct conversations. */
6445
+ readonly startsSessions: boolean;
6446
+ /** Content fingerprint including prompt edits, without delivering those bodies. */
6447
+ readonly revision: string;
6448
+ }
5278
6449
  /** Host-resolved target and common approval over the ordinary save path. */
5279
6450
  interface AgentDefinition {
5280
6451
  /** Reads the definition executing this session, including delegates. */
5281
- read(ctx: ToolExecContext): AgentDefinitionSnapshot;
6452
+ read(ctx: ToolExecContext, agentId?: string): AgentDefinitionSnapshot;
6453
+ /** Lists summaries in stable identity order within the same readable scope as read. */
6454
+ page(ctx: ToolExecContext, options: {
6455
+ readonly after?: string;
6456
+ readonly limit: number;
6457
+ }): {
6458
+ /** Metadata only; this read does not acquire prompt files. */
6459
+ readonly items: readonly AgentDefinitionSummary[];
6460
+ /** Changes when readable identity or committed content changes. */
6461
+ readonly queryVersion: string;
6462
+ /** Last delivered identity; null means no continuation. */
6463
+ readonly after: string | null;
6464
+ /** True only when the readable collection has ended. */
6465
+ readonly complete: boolean;
6466
+ };
5282
6467
  /** Requests ordinary approval and saves only the approved, current content. */
5283
6468
  update(ctx: ToolExecContext, patch: AgentDefinitionPatch, expectedRevision?: string): Promise<ToolResult>;
5284
6469
  }
@@ -5298,11 +6483,15 @@ interface AgentCreation {
5298
6483
  //#region node_modules/.cache/dts/plugin/src/agent-definition-management.d.ts
5299
6484
  /** A checked Agent change staged for the caller's shared host transaction. */
5300
6485
  interface PreparedAgentConfigurationSave {
6486
+ /** Actual selected host connection shared by the prepared owner and framework writes. */
6487
+ readonly connectionIdentity: symbol;
6488
+ /** Refuses a stale owner activation or already settled preparation before any write. */
6489
+ assertCurrent(): void;
5301
6490
  /** Applies all participant and framework writes inside the caller's transaction. */
5302
6491
  apply(): void;
5303
6492
  /** Restores staged files after the caller rolls its transaction back. */
5304
6493
  abort(): void;
5305
- /** Releases rollback materials and publishes after the caller commits. */
6494
+ /** Publishes once after commit and releases rollback materials; failed cleanup remains retryable after owner withdrawal. */
5306
6495
  settle(): void;
5307
6496
  }
5308
6497
  /** Current revision fingerprints and atomic revision publication across owner data. */
@@ -5321,20 +6510,49 @@ interface AgentDefinitionManagement {
5321
6510
  }
5322
6511
  //#endregion
5323
6512
  //#region node_modules/.cache/dts/plugin/src/agent-sessions.d.ts
5324
- /** Creates ordinary Agent sessions; capability policies supply immutable initial state. */
6513
+ /** Complete synchronous creation input; initializer writes join the host-issued scope. */
6514
+ interface SessionCreateOptions {
6515
+ readonly agentId: string;
6516
+ readonly workspaceId: string;
6517
+ readonly title?: string;
6518
+ readonly snapshot?: {
6519
+ readonly model: ModelRef | null;
6520
+ readonly params: Readonly<Record<string, unknown>>;
6521
+ };
6522
+ /** Authentic parent tool context; only its immutable owner data is inherited, never grants. */
6523
+ readonly inheritFrom?: ToolExecContext;
6524
+ readonly deferLoad?: boolean;
6525
+ readonly ancestry?: {
6526
+ readonly parentSessionId: string;
6527
+ readonly rootSessionId: string;
6528
+ readonly depth: number;
6529
+ };
6530
+ readonly scope?: UnitOfWorkScope;
6531
+ readonly initialize?: {
6532
+ readonly connectionIdentity: symbol;
6533
+ readonly write: (sessionId: string, scope: UnitOfWorkScope) => void;
6534
+ };
6535
+ }
6536
+ /** Staged creates cannot be exposed as accepted work until their actual outer commit succeeds. */
6537
+ type SessionCreationReceipt = {
6538
+ readonly commitState: 'staged';
6539
+ readonly sessionId: string;
6540
+ readonly summary: SessionSummary;
6541
+ } | {
6542
+ readonly commitState: 'committed';
6543
+ readonly sessionId: string;
6544
+ readonly summary: SessionSummary;
6545
+ readonly runtimeState: 'ready' | 'reload-required';
6546
+ };
6547
+ /** Creates ordinary sessions using immutable inputs and same-connection owner initializers. */
5325
6548
  interface AgentSessions {
5326
6549
  listSessions(): readonly SessionSummary[];
5327
- createSession(input: {
5328
- readonly agentId: string;
5329
- readonly workspaceId: string;
5330
- readonly title?: string;
5331
- readonly snapshot?: {
5332
- readonly model: ModelRef | null;
5333
- readonly params: Readonly<Record<string, unknown>>;
5334
- };
5335
- readonly deferLoad?: boolean;
5336
- }): SessionSummary;
5337
- cancel(sessionId: string): Promise<void>;
6550
+ /** Returns the original staged or committed identity; post-commit installation failure requests a reload. */
6551
+ createSession(input: SessionCreateOptions): SessionCreationReceipt;
6552
+ /** Cancels a bounded unique session collection and awaits each actual settlement in input order. */
6553
+ cancelMany(sessionIds: readonly string[]): Promise<BatchResults<{
6554
+ readonly cancelled: boolean;
6555
+ }>>;
5338
6556
  }
5339
6557
  //#endregion
5340
6558
  //#region node_modules/.cache/dts/plugin/src/capability-interactions.d.ts
@@ -5397,6 +6615,12 @@ interface SessionContextMaintenance {
5397
6615
  }
5398
6616
  /** Public task summary sufficient for channel status and descendant observation. */
5399
6617
  interface DelegatedSessionTask {
6618
+ /** Immutable authoritative direct parent and root identities. */
6619
+ readonly parentSessionId: string;
6620
+ readonly rootSessionId: string;
6621
+ /** Owner revision and UTC millisecond creation time for authoritative refresh. */
6622
+ readonly revision: number;
6623
+ readonly createdAt: number;
5400
6624
  /** Stable task identity; a retained child session may execute several tasks. */
5401
6625
  readonly taskId: string;
5402
6626
  /** Retained child session to watch for this task’s conversation activity. */
@@ -5421,10 +6645,17 @@ interface DelegatedSessionChange {
5421
6645
  }
5422
6646
  /** Read-only channel projection; it neither admits tasks nor grants Agent execution. */
5423
6647
  interface SessionDelegationObserver {
5424
- /** Lists tasks visible from this parent under the delegation owner's policy. */
5425
- list(parentSessionId: string): readonly DelegatedSessionTask[];
6648
+ /** Reads ordered bounded parent projections after validating the complete declared budget. */
6649
+ listByParents(input: {
6650
+ readonly parentSessionIds: readonly string[];
6651
+ readonly maxItemBytes?: number;
6652
+ readonly maxTotalBytes?: number;
6653
+ }): BatchResults<readonly DelegatedSessionTask[]>;
5426
6654
  /** Accepts only the delegation owner's declared frame kind and validates its payload. */
5427
- project(frame: SessionFrame): DelegatedSessionChange | undefined;
6655
+ project(frame: SessionFrame): {
6656
+ readonly entries: readonly DelegatedSessionChange[];
6657
+ readonly invalidated: boolean;
6658
+ } | undefined;
5428
6659
  }
5429
6660
  //#endregion
5430
6661
  //#region node_modules/.cache/dts/plugin/src/capability-registries.d.ts
@@ -5467,6 +6698,8 @@ interface AgentContextControl {
5467
6698
  source(sessionId: string): {
5468
6699
  readonly sourceSeq: number;
5469
6700
  readonly historyGeneration: number;
6701
+ /** Opaque identity of the committed selected model and its parameters. */
6702
+ readonly measurementIdentity: string;
5470
6703
  };
5471
6704
  /** Point-reads committed control and usage; a missing reading projection reports preparing. */
5472
6705
  reading(sessionId: string): {
@@ -5481,10 +6714,131 @@ interface AgentContextControl {
5481
6714
  cancel(sessionId: string, operationId: string): void;
5482
6715
  }
5483
6716
  //#endregion
6717
+ //#region node_modules/.cache/dts/plugin/src/query-resources.d.ts
6718
+ /** Nonnegative retained quantities; scratch is included in total bytes. */
6719
+ interface QueryResourceHeld {
6720
+ /** Total owned memory and scratch bytes. */
6721
+ readonly bytes: number;
6722
+ /** Scratch storage bytes, no greater than total bytes. */
6723
+ readonly scratchBytes: number;
6724
+ }
6725
+ /** Capability-owned ceilings; every field is required and the host supplies no fallback. */
6726
+ interface QueryResourcePolicy {
6727
+ /** Maximum total bytes for one query. */
6728
+ readonly queryBytes: number;
6729
+ /** Maximum total bytes for one session. */
6730
+ readonly sessionBytes: number;
6731
+ /** Maximum total bytes for the resident. */
6732
+ readonly residentBytes: number;
6733
+ /** Maximum live root queries per session. */
6734
+ readonly sessionQueries: number;
6735
+ /** Maximum scratch bytes for one query. */
6736
+ readonly queryScratchBytes: number;
6737
+ /** Maximum scratch bytes for one session. */
6738
+ readonly sessionScratchBytes: number;
6739
+ /** Maximum scratch bytes for the resident. */
6740
+ readonly residentScratchBytes: number;
6741
+ }
6742
+ /** Owner-visible cleanup triggers; a successful turn does not invalidate retained cursors. */
6743
+ type QueryCleanupCause = 'completed' | 'failed' | 'cancelled' | 'expired' | 'abandoned' | 'history-replaced' | 'session-removed' | 'owner-withdrawn' | 'pressure';
6744
+ /** Physical cleanup truth; incomplete reports retain the slot and remaining quantities. */
6745
+ type QueryCleanupReport = {
6746
+ readonly status: 'complete';
6747
+ } | {
6748
+ readonly status: 'incomplete';
6749
+ readonly held: QueryResourceHeld;
6750
+ readonly code: 'cleanup_failed';
6751
+ readonly retryable: boolean;
6752
+ };
6753
+ /** One idempotent cleanup attempt issued by the host. */
6754
+ interface QueryCleanupRequest {
6755
+ /** Stable root identity. */
6756
+ readonly resourceId: string;
6757
+ /** Monotonically increasing attempt number. */
6758
+ readonly attempt: number;
6759
+ /** Why cleanup was requested. */
6760
+ readonly cause: QueryCleanupCause;
6761
+ }
6762
+ /** Reservation installed before allocation; cleanup closes objects subsequently acquired by the owner. */
6763
+ interface QueryResourceReservation extends QueryResourceHeld {
6764
+ /** Reports completion only after all physical ownership has ended. */
6765
+ cleanup(request: QueryCleanupRequest): Promise<QueryCleanupReport>;
6766
+ }
6767
+ /** Lifecycle record projected without source text, physical paths or exceptions. */
6768
+ interface QueryResourceItem {
6769
+ /** Stable root identity. */
6770
+ readonly id: string;
6771
+ /** Current lifecycle phase. */
6772
+ readonly state: 'active' | 'retained' | 'eligible' | 'cleaning' | 'cleanup-failed' | 'released';
6773
+ /** Actual remaining quantities. */
6774
+ readonly held: QueryResourceHeld;
6775
+ /** Latest cleanup attempt number. */
6776
+ readonly attempt: number;
6777
+ /** Latest cleanup trigger. */
6778
+ readonly cause?: QueryCleanupCause;
6779
+ /** Whether the owner allows cleanup retry. */
6780
+ readonly retryable: boolean;
6781
+ }
6782
+ /** Bounded owner-local inspection with shared session/resident totals. */
6783
+ interface QueryResourceSnapshot {
6784
+ /** Session occupancy across owners. */
6785
+ readonly session: QueryResourceHeld & {
6786
+ readonly queries: number;
6787
+ };
6788
+ /** Resident occupancy across owners. */
6789
+ readonly resident: QueryResourceHeld;
6790
+ /** Current capability-owned ceilings. */
6791
+ readonly policy: QueryResourcePolicy;
6792
+ /** Records owned by the authenticated activation. */
6793
+ readonly items: readonly QueryResourceItem[];
6794
+ /** Opaque continuation bound to this snapshot and caller. */
6795
+ readonly next?: string;
6796
+ }
6797
+ /** Host lease shared by one root query and all of its public successor/replay cursors. */
6798
+ interface QueryResourceLease {
6799
+ /** Stable root identity. */
6800
+ readonly id: string;
6801
+ /** Initial total-byte ceiling. */
6802
+ readonly maximumBytes: number;
6803
+ /** Initial scratch ceiling. */
6804
+ readonly maximumScratchBytes: number;
6805
+ /** Session, generation and owner invalidation; retained resources detach the original call. */
6806
+ readonly signal: AbortSignal;
6807
+ /** Reserves additional quantities before allocation under a current authenticated call. */
6808
+ grow(ctx: ToolExecContext, delta: QueryResourceHeld): Promise<void>;
6809
+ /** Reports quantities already physically freed; remains available during cleanup. */
6810
+ reduce(released: QueryResourceHeld): void;
6811
+ /** Declares owner retention; idle refresh never extends the root maximum age. */
6812
+ retain(input: {
6813
+ readonly reason: string;
6814
+ readonly idleMs: number;
6815
+ readonly maxAgeMs: number;
6816
+ }): void;
6817
+ /** Serializes actual operations and prevents cleanup before the operation settles. */
6818
+ withUse<T>(ctx: ToolExecContext, work: () => Promise<T>): Promise<T>;
6819
+ /** Merges concurrent cleanup requests; quota releases only after a complete physical report. */
6820
+ close(cause: QueryCleanupCause): Promise<QueryCleanupReport>;
6821
+ /** Retries an incomplete owner-authorized cleanup without resetting its occupancy. */
6822
+ retryCleanup(): Promise<QueryCleanupReport>;
6823
+ }
6824
+ /** Authenticated owner-bound lifecycle service. */
6825
+ interface QueryResources {
6826
+ /** Grants and accounts a root slot before physical allocation. */
6827
+ reserve(ctx: ToolExecContext, input: QueryResourceReservation): Promise<QueryResourceLease>;
6828
+ /** Reads bounded owner records and cross-owner totals; limit defaults to 64. */
6829
+ inspect(ctx: ToolExecContext, input?: {
6830
+ readonly cursor?: string;
6831
+ readonly limit?: number;
6832
+ }): QueryResourceSnapshot;
6833
+ /** Recognizes this host's original admission errors, which broad catches must rethrow. */
6834
+ isAdmissionFailure(error: unknown): boolean;
6835
+ }
6836
+ //#endregion
5484
6837
  //#region node_modules/.cache/dts/plugin/src/context-runtime.d.ts
5485
6838
  /** Generic validated projection and middleware execution, implemented by the framework. */
5486
6839
  interface ContextFramework {
5487
6840
  readonly project: typeof projectContext;
6841
+ readonly answerSource?: typeof contextAnswerSource;
5488
6842
  readonly history: typeof effectiveHistory;
5489
6843
  readonly intercept: typeof createInterceptChain;
5490
6844
  }
@@ -5509,6 +6863,7 @@ interface ContextSession {
5509
6863
  readonly read: () => readonly StoredEvent[];
5510
6864
  readonly normalTokensUsed: () => number;
5511
6865
  readonly usageStartSeq?: number;
6866
+ /** Stable session dispatcher that resolves the live model and parameters on each call. */
5512
6867
  readonly port: () => ModelPort;
5513
6868
  readonly middleware: () => readonly ModelMiddleware[];
5514
6869
  readonly model: () => ModelRef | undefined;
@@ -5531,6 +6886,17 @@ interface ContextSessionPolicy {
5531
6886
  compact(assemble: AssembleProjectedContext, signal?: AbortSignal): Promise<unknown>;
5532
6887
  cancel(operationId: string): void;
5533
6888
  restoreAllowance(): number;
6889
+ /** Bounded incremental system contribution quota, available before the first request. */
6890
+ contributionAllowance?(): {
6891
+ readonly tokens: number;
6892
+ readonly maximumTokens?: number;
6893
+ readonly requestTokens?: number;
6894
+ measure(text: string): number;
6895
+ };
6896
+ /** Current capability budget for the next tool batch; absent before a measured request. */
6897
+ toolOutputPolicy(): ToolOutputPolicySnapshot | undefined;
6898
+ /** Shared numeric ceilings for capability-owned resident query resources. */
6899
+ queryResourcePolicy?(): QueryResourcePolicy | undefined;
5534
6900
  observe(measurement: ContextMeasurement, shown?: ContextRequestObservation): void;
5535
6901
  observeReported(inputTokens: number): void;
5536
6902
  readonly activeOperation: {
@@ -5541,7 +6907,7 @@ interface ContextSessionPolicy {
5541
6907
  /** A withdrawn owner provides no new maintenance or preparation callbacks. */
5542
6908
  interface ContextRuntime {
5543
6909
  /** Validates the final request after framework file transforms. */
5544
- assertRequest(inspection: ModelInspection): void;
6910
+ assertRequest(inspection: ModelInspection, request?: ModelRequest): void;
5545
6911
  /** Validates a selected model against existing transcript content before persistence. */
5546
6912
  assertSwitch(port: ModelPort, request: ModelRequest, hasHistory: boolean): void;
5547
6913
  acceptsPreviewHint(tokens: number): boolean;
@@ -5558,35 +6924,63 @@ interface ContextRuntime {
5558
6924
  }, signal: AbortSignal): Promise<ContextRequestObservation>;
5559
6925
  }
5560
6926
  //#endregion
5561
- //#region node_modules/.cache/dts/plugin/src/credential-vault.d.ts
5562
- /** Ciphertext operations share the host database transaction. */
5563
- interface CredentialVaultRows {
5564
- upsert(scope: string, row: CredentialRowInput): void;
5565
- remove(scope: string, name: string): boolean;
5566
- removeScope(scope: string): number;
5567
- hints(scope: string): readonly {
5568
- readonly name: string;
5569
- readonly hint: string;
5570
- }[];
5571
- ciphertexts(scope: string): Readonly<Record<string, string>>;
6927
+ //#region node_modules/.cache/dts/plugin/src/fence.d.ts
6928
+ /** One intended access; inputDigest binds content and other operation parameters to approval. */
6929
+ interface FenceManyInput {
6930
+ readonly path: string;
6931
+ readonly access: 'read' | 'write';
6932
+ readonly inputDigest?: string;
5572
6933
  }
5573
- /** The requesting activation can address only its own sealed credentials. */
5574
- interface CredentialVault {
5575
- /** Opaque storage namespace bound by the host. */
5576
- readonly owner: string;
5577
- readonly rows: CredentialVaultRows;
5578
- state(): SecretBoxState;
5579
- seal(scope: string, name: string, value: string, options?: {
5580
- readonly hint?: string;
5581
- }): CredentialRowInput | null;
5582
- openAll(scope: string): Record<string, string>;
5583
- open(scope: string, name: string): string | undefined;
5584
- status(scope: string): readonly CredentialStatus[];
5585
- set(scope: string, name: string, value: string, options?: {
5586
- readonly hint?: string;
5587
- }): readonly CredentialStatus[];
5588
- clear(scope: string, name?: string): readonly CredentialStatus[];
5589
- onChanged(listener: (scope: string) => void): Dispose$1;
6934
+ /** Complete physical anchor observed for an existing object or its nearest existing parent. */
6935
+ interface FencePathIdentity {
6936
+ readonly path: string;
6937
+ readonly identity: PublicationIdentity;
6938
+ }
6939
+ /** One canonical path permission, refusal or the single shared pending approval. */
6940
+ type FenceVerdict = {
6941
+ readonly allowed: true;
6942
+ readonly path: string;
6943
+ readonly sealed: readonly string[];
6944
+ readonly sealedDirectories: readonly string[];
6945
+ readonly identity?: FencePathIdentity;
6946
+ } | {
6947
+ readonly allowed: false;
6948
+ readonly reason: 'not-absolute' | 'sealed' | 'denied-by-policy' | 'rejected-by-human';
6949
+ readonly message: string;
6950
+ } | {
6951
+ readonly allowed: false;
6952
+ readonly reason: 'ask';
6953
+ readonly ask: ToolResult;
6954
+ };
6955
+ /** Verdict positions match the input; ask suspends the entire tool before any member performs IO. */
6956
+ interface FenceManyVerdict {
6957
+ readonly verdicts: readonly FenceVerdict[];
6958
+ readonly ask?: ToolResult;
6959
+ }
6960
+ /** Owner-neutral mixed file permissions; callers revalidate returned identities through physical IO ports. */
6961
+ interface FenceMany {
6962
+ readonly platform: NodeJS.Platform;
6963
+ /** Resolves bounded physical aliases without granting resource permission or reading file bodies. */
6964
+ canonicalPaths(paths: readonly string[]): readonly string[];
6965
+ /** Returns current workspace trees and the complete sealed set for search and rule location facts. */
6966
+ roots(workspaceId: string): FenceRoots;
6967
+ allowsMany(ctx: ToolExecContext, items: readonly FenceManyInput[]): Promise<FenceManyVerdict>;
6968
+ }
6969
+ /** Authoritative workspace directory facts; a refusal never implies an empty authorized catalogue. */
6970
+ type FenceRoots = {
6971
+ readonly allowed: true;
6972
+ readonly roots: readonly AuthorizedDirectory[];
6973
+ readonly sealed: readonly string[];
6974
+ readonly sealedDirectories: readonly string[];
6975
+ } | {
6976
+ readonly allowed: false;
6977
+ readonly reason: 'not-absolute' | 'sealed' | 'denied-by-policy' | 'rejected-by-human';
6978
+ readonly message: string;
6979
+ };
6980
+ /** Passive path authority; never opens an approval or creates a resource grant. */
6981
+ interface FileAccessInspection {
6982
+ /** Only authentic tool contexts are accepted; sealed paths always refuse. */
6983
+ inspect(ctx: ToolExecContext, path: string, access: 'read' | 'write'): FenceVerdict;
5590
6984
  }
5591
6985
  //#endregion
5592
6986
  //#region node_modules/.cache/dts/plugin/src/file-media.d.ts
@@ -5622,6 +7016,44 @@ interface FileVariantPolicy {
5622
7016
  prepare(bytes: Uint8Array, info: ImageResourceInfo): Promise<ImageResourceVariant | undefined>;
5623
7017
  }
5624
7018
  //#endregion
7019
+ //#region node_modules/.cache/dts/plugin/src/file-observations.d.ts
7020
+ /** Version and complete-line reading facts; these records grant no resource permission. */
7021
+ interface FileObservation {
7022
+ readonly token: string;
7023
+ readonly step: number;
7024
+ readonly complete?: boolean;
7025
+ }
7026
+ /** A closed one-based interval of complete lines actually delivered from one read handle. */
7027
+ interface ReadLineRange {
7028
+ readonly first: number;
7029
+ readonly last: number;
7030
+ }
7031
+ /** EOF makes totalLines authoritative; cutLine excludes last from the complete range. */
7032
+ interface FileReadObservation extends FileObservation {
7033
+ readonly first: number;
7034
+ readonly last: number;
7035
+ readonly atEof: boolean;
7036
+ readonly totalLines?: number;
7037
+ readonly cutLine: boolean;
7038
+ }
7039
+ /** Detached bounded reading facts, independent from required-context delivery confirmation. */
7040
+ interface ReadCoverage {
7041
+ readonly coveredRanges: readonly ReadLineRange[];
7042
+ readonly missingRanges: readonly ReadLineRange[];
7043
+ readonly totalLines?: number;
7044
+ readonly complete: boolean;
7045
+ readonly completeAtStep?: number;
7046
+ }
7047
+ /** One host-owned registry keyed by session and resolved physical path. */
7048
+ interface FileObservations {
7049
+ record(sessionId: string, realPath: string, observation: FileObservation): void;
7050
+ /** Records only stable, successfully delivered complete lines; a new version clears old coverage. */
7051
+ recordRead(sessionId: string, realPath: string, observation: FileReadObservation): ReadCoverage;
7052
+ get(sessionId: string, realPath: string): FileObservation | undefined;
7053
+ forget(sessionId: string, realPath: string): void;
7054
+ clear(sessionId: string): void;
7055
+ }
7056
+ //#endregion
5625
7057
  //#region node_modules/.cache/dts/plugin/src/host-identity.d.ts
5626
7058
  /** Owner-leased embedding facts without filesystem, environment or state-root access. */
5627
7059
  interface HostIdentityService {
@@ -5833,6 +7265,10 @@ interface StoredParams {
5833
7265
  readonly temperature?: number;
5834
7266
  /** Optional output token ceiling. */
5835
7267
  readonly maxTokens?: number;
7268
+ /** Endpoint-native output field; mutually exclusive with the neutral field. */
7269
+ readonly max_tokens?: number;
7270
+ /** Combined output field when explicitly declared by the endpoint. */
7271
+ readonly max_completion_tokens?: number;
5836
7272
  /** Local capacity override for a model absent from or correcting the catalogue. */
5837
7273
  readonly contextWindow?: number;
5838
7274
  /** The effort levels a person says this endpoint takes, in their order,
@@ -5886,9 +7322,9 @@ interface FailureVerdict {
5886
7322
  /** One cancellable chat attempt loop with a finite retry budget. */
5887
7323
  interface CallWithRetryOptions {
5888
7324
  /** Starts one attempt; reportProgress marks bytes or protocol activity before content mapping. */
5889
- readonly attempt: (signal: AbortSignal, reportProgress: () => void) => AsyncIterable<ModelChunk>;
7325
+ readonly attempt: (signal: AbortSignal, reportProgress: () => void, attempt: number) => AsyncIterable<ModelChunk>;
5890
7326
  /** Reads an adapter's own errors; a `StreamFailure` never reaches it. */
5891
- readonly classify: (error: unknown) => FailureVerdict;
7327
+ readonly classify: (error: unknown, attemptCount: number) => FailureVerdict;
5892
7328
  /** The caller's cancellation. */
5893
7329
  readonly signal: AbortSignal;
5894
7330
  /** Retries after the first attempt; defaults to three. */
@@ -5900,6 +7336,8 @@ interface CallWithRetryOptions {
5900
7336
  }
5901
7337
  /** Shared engines read catalogue facts on every call and never choose a vendor endpoint. */
5902
7338
  interface ModelSupportService {
7339
+ /** Host identity factory shared by protocol and retry producers. */
7340
+ readonly failures: ModelFailureFactory;
5903
7341
  /** Creates a shared extension-owned catalogue loader for an anonymous source. */
5904
7342
  catalogueSource(url: string, key: string): ModelCatalogueSource;
5905
7343
  /** Normalizes an official listing according to LLM catalogue policy. */
@@ -5928,17 +7366,16 @@ interface ModelSupportService {
5928
7366
  }): MediaContext;
5929
7367
  /** Estimates and fingerprints an already rendered request without exposing its values. */
5930
7368
  inspect(input: InspectionInput): ModelInspection;
7369
+ /** Counts unchanged complete text with o200k_base; bounded exact-text results share this owner's lifetime. */
7370
+ measureText(text: string): number;
7371
+ /** Projects supported protocol text fields; unknown content fails without counting opaque bytes. */
7372
+ requestText(protocol: 'responses' | 'chat-completions' | 'messages', body: unknown): string;
5931
7373
  /** Hashes neutral request facts without exposing their values. */
5932
7374
  inspectionFingerprint(value: unknown): string;
5933
7375
  /** Refuses host-owned fields before forwarding opaque parameters. */
5934
7376
  extraParams(params: Readonly<Record<string, unknown>>): Readonly<Record<string, unknown>>;
5935
7377
  /** Creates a retryable interruption error for an incomplete response. */
5936
- interruptedFailure(): Error & {
5937
- readonly category: 'network';
5938
- readonly retryable: boolean;
5939
- readonly authored: true;
5940
- readonly status: number | undefined;
5941
- };
7378
+ interruptedFailure(): Error & ModelFailure;
5942
7379
  /** Maps an HTTP failure to the neutral kernel category, if known. */
5943
7380
  failureKindOf(status: number | undefined): FailureKind | undefined;
5944
7381
  /** Runs chat attempts with cancellation, idle deadlines and partial-output retraction. */
@@ -5987,6 +7424,53 @@ interface NetworkProxyHost {
5987
7424
  windows(): Promise<WindowsProxyFacts>;
5988
7425
  }
5989
7426
  //#endregion
7427
+ //#region node_modules/.cache/dts/plugin/src/project-instructions.d.ts
7428
+ /** A fence-authorized target accompanied by the complete sealed root set. */
7429
+ interface RuleLocation {
7430
+ readonly path: string;
7431
+ readonly kind: 'file' | 'directory';
7432
+ readonly authorizedRoots: readonly string[];
7433
+ readonly sealedDirectories: readonly string[];
7434
+ }
7435
+ /** The exact bounded rule body acquired through an observed file identity. */
7436
+ interface RuleAttachment {
7437
+ readonly realpath: string;
7438
+ readonly directory: string;
7439
+ readonly version: string;
7440
+ readonly body: string;
7441
+ readonly originalBytes: number;
7442
+ readonly deliveredBytes: number;
7443
+ readonly lineRange: readonly [number, number] | null;
7444
+ readonly truncated: boolean;
7445
+ readonly nextOffset: number | null;
7446
+ }
7447
+ /** A short acquisition diagnostic never counts as successful rule delivery. */
7448
+ interface RuleFailure {
7449
+ readonly path: string;
7450
+ readonly code: string;
7451
+ readonly message: string;
7452
+ }
7453
+ /** One step-wide reservation; duplicate in-flight rules are deferred before body reads. */
7454
+ interface RuleContact {
7455
+ readonly attachments: readonly RuleAttachment[];
7456
+ readonly failures: readonly RuleFailure[];
7457
+ readonly deferred: readonly {
7458
+ readonly path: string;
7459
+ readonly nextStep: true;
7460
+ }[];
7461
+ readonly blocked: boolean;
7462
+ readonly reservationId: string;
7463
+ }
7464
+ /** Supplies mandatory rule context and confirms only host-issued model delivery facts. */
7465
+ interface ProjectInstructions {
7466
+ contact(ctx: ToolExecContext, locations: readonly RuleLocation[]): Promise<RuleContact>;
7467
+ /** Measures the complete candidate with pending rules without consuming its reservation. */
7468
+ measure(ctx: ToolExecContext, contact: RuleContact, result: PluginToolContentResult): number;
7469
+ attach(ctx: ToolExecContext, contact: RuleContact, result: PluginToolContentResult): PluginToolContentResult;
7470
+ confirm(fact: CommittedToolDelivery): void;
7471
+ forget(sessionId: string): void;
7472
+ }
7473
+ //#endregion
5990
7474
  //#region node_modules/.cache/dts/plugin/src/resource-security.d.ts
5991
7475
  /** The address judgment performed before host permission is considered. */
5992
7476
  type AddressVerdict = {
@@ -6111,6 +7595,7 @@ interface SandboxHost {
6111
7595
  readonly allowed: true;
6112
7596
  readonly roots: readonly {
6113
7597
  readonly path: string;
7598
+ readonly access: 'read' | 'read-write';
6114
7599
  }[];
6115
7600
  readonly sealed: readonly string[];
6116
7601
  } | {
@@ -6156,6 +7641,18 @@ interface SessionAdmission {
6156
7641
  relation(sessionId: string): SessionRelation | undefined;
6157
7642
  }
6158
7643
  //#endregion
7644
+ //#region node_modules/.cache/dts/plugin/src/session-working-directory.d.ts
7645
+ /** Immutable native directory for one model decision; not a file authorization. */
7646
+ interface SessionWorkingDirectory {
7647
+ /** Missing data returns undefined; never reads mutable state or accesses the filesystem. */
7648
+ readSnapshot(snapshot: readonly OwnerContextEntry[] | undefined): {
7649
+ readonly gatewayId: string;
7650
+ readonly pathStyle: 'posix' | 'windows';
7651
+ readonly absolutePath: string;
7652
+ readonly revision: number;
7653
+ } | undefined;
7654
+ }
7655
+ //#endregion
6159
7656
  //#region node_modules/.cache/dts/plugin/src/tool-context.d.ts
6160
7657
  /** The host authenticates execution authority before releasing transcript references. */
6161
7658
  interface AgentToolContexts {
@@ -6207,12 +7704,15 @@ interface Plugin<C = unknown> {
6207
7704
  * through the things it registers.
6208
7705
  */
6209
7706
  interface PluginContext {
7707
+ /** Host-issued activation identity; prepared capabilities cannot survive another activation. */
7708
+ readonly activationEpoch: number;
6210
7709
  /** This plugin's name — the owner of everything registered here. */
6211
7710
  readonly pluginName: string;
6212
7711
  /** Aborts when this plugin is deactivated. Long-running work watches it. */
6213
7712
  readonly signal: AbortSignal;
6214
- /** Runs on deactivation, after the registrations are undone. Failures are
6215
- * logged under this plugin's name and stop nothing. */
7713
+ /** Runs on deactivation, after registrations are undone. Failures are logged and
7714
+ * retained for host cleanup retry; callbacks must preserve partial cleanup state.
7715
+ * Successful callbacks are never replayed. */
6216
7716
  onDispose(fn: () => void | Promise<void>): void;
6217
7717
  /** The same plugin, registering into one agent's view only: what is
6218
7718
  * registered through the derived handle is invisible to sessions of
@@ -6227,7 +7727,13 @@ interface PluginContext {
6227
7727
  forAgents(visible: (agentId: string) => boolean): PluginContext;
6228
7728
  /** Types produced by this owner; disposed with its activation. */
6229
7729
  readonly widgets: WidgetRegistry;
7730
+ /** Tracks exact result snapshots until actual normal model dispatch. */
7731
+ readonly toolDelivery: ToolDelivery;
6230
7732
  readonly tools: {
7733
+ /** Authenticated snapshot of the complete allowed tool directory. */
7734
+ readonly catalog: ToolCatalog;
7735
+ /** Installs one owner-bound model exposure strategy. */
7736
+ exposure: ToolExposureRegistration;
6231
7737
  /** Announces a tool to the model and implements it in one object.
6232
7738
  * Names are unique across the whole container, whatever their
6233
7739
  * visibility, so a name in a session's log points at exactly one
@@ -6342,6 +7848,8 @@ interface PluginContext {
6342
7848
  open(): PluginStorage;
6343
7849
  };
6344
7850
  readonly models: {
7851
+ /** Host identity factory for bounded protocol failure facts. */
7852
+ readonly failures: ModelFailureFactory;
6345
7853
  /** Declares a kind of model endpoint. Owned like every other
6346
7854
  * registration: it goes when this plugin is deactivated, and the
6347
7855
  * instances a person configured against it stay in the database and
@@ -6382,6 +7890,8 @@ interface PluginContext {
6382
7890
  * completion of its own rather than one inside a session's turn. */
6383
7891
  readonly model: HostModelPort;
6384
7892
  readonly log: PluginLog;
7893
+ /** Optional owner-bound bounded performance observations, without persistence authority. */
7894
+ readonly performance?: PerformanceObserver;
6385
7895
  }
6386
7896
  /**
6387
7897
  * One wire method, declared and implemented in the same object — the same
@@ -6482,12 +7992,63 @@ type ToolFile = {
6482
7992
  readonly fileId: string;
6483
7993
  readonly name?: string;
6484
7994
  };
7995
+ /** Host-issued per-call output allowance; copied JSON never authorizes an exact page. */
7996
+ /** Separate definition quota, measured with the same active protocol as delivery. */
7997
+ interface ToolCatalogAllowance {
7998
+ /** Maximum cost of the complete mandatory catalog. */
7999
+ readonly tokens: number;
8000
+ /** Maximum combined cost of dynamic definitions. */
8001
+ readonly dynamicTokens: number;
8002
+ /** Maximum cost of one dynamic definition. */
8003
+ readonly definitionTokens: number;
8004
+ /** Pure measurement of complete definitions; partial schemas cannot be admitted. */
8005
+ measure(definitions: unknown): number;
8006
+ }
8007
+ interface ToolOutputAllowance {
8008
+ /** Total tokens available to this call, including wrappers and required context. */
8009
+ readonly outputTokens: number;
8010
+ /** Largest complete result a subsequent independent call can reserve under this policy. */
8011
+ readonly maximumTokens: number;
8012
+ /** Full safe request input ceiling; final dispatch still accounts for every other field. */
8013
+ readonly requestTokens?: number;
8014
+ /** Separate definition allowance used by dynamic discovery; absent means unavailable. */
8015
+ readonly catalog?: ToolCatalogAllowance;
8016
+ /** Measures the complete candidate without performing IO or changing its contents. */
8017
+ measure(result: unknown): number;
8018
+ /** Reserves this exact object as a complete page, rejecting candidates over the allowance. */
8019
+ acceptExact(result: unknown): void;
8020
+ }
8021
+ /** Capability-owned numeric policy; Runtime allocates it without embedding product defaults. */
8022
+ interface ToolOutputPolicySnapshot {
8023
+ /** Desired tokens for an ordinary call without an explicit hint. */
8024
+ readonly defaultTokens: number;
8025
+ /** Maximum allowance for one call, irrespective of its desired budget. */
8026
+ readonly maximumTokens: number;
8027
+ /** Total tokens available to the complete next tool batch. */
8028
+ readonly stepTokens: number;
8029
+ /** Maximum calls admitted before any body or side effect starts. */
8030
+ readonly maximumCalls: number;
8031
+ /** Full safe input ceiling used for whole mandatory-contribution admission. */
8032
+ readonly requestTokens?: number;
8033
+ /** Separate definition limits copied into actual call authority. */
8034
+ readonly catalog?: ToolCatalogAllowance;
8035
+ /** Maximum accepted original UTF-8 text bytes per call. */
8036
+ readonly sourceBytes: number;
8037
+ /** Maximum original text bytes retained for the complete step. */
8038
+ readonly stepSourceBytes: number;
8039
+ /** Maximum encoded result bytes accepted across the step before event wrapping. */
8040
+ readonly encodedSourceBytes: number;
8041
+ /** Pure measurement of the actual result representation. */
8042
+ measure(result: unknown): number;
8043
+ }
6485
8044
  /** What a tool answers the model with: text, and the files it hands back. */
6486
8045
  interface PluginToolContentResult {
8046
+ /** Original mandatory context is preserved independently of the ordinary result. */
8047
+ readonly requiredContext?: readonly RequiredContextBlock[];
6487
8048
  /** Immutable presentation candidates; accepted only on successful content results. */
6488
8049
  readonly widgets?: readonly WidgetInput[];
6489
- /** Keep mandatory instructions whole on first delivery; final request budget still applies. */
6490
- readonly previewProtected?: boolean;
8050
+ /** Source and execution metadata; the host stamps delivery kind and actual allowance. */
8051
+ readonly delivery?: ToolResultDelivery;
6491
8052
  /** Requested preview tokens, 1–8000; host may allocate less. */
6492
8053
  readonly previewTokens?: number;
6493
8054
  readonly content: string;
@@ -6506,27 +8067,57 @@ type ToolResult = PluginToolResult;
6506
8067
  * half of it is what this shape exists to make impossible: a tool the
6507
8068
  * model is told about but cannot call, or one that can run but is never
6508
8069
  * offered, were two separate mistakes before. */
6509
- interface ToolRegistration<I = unknown> {
8070
+ interface ToolRegistrationFields<I = unknown> {
8071
+ /** Developer preload recommendation; absent means true. */
8072
+ readonly preload?: boolean;
6510
8073
  readonly name: string;
6511
8074
  readonly description: string;
6512
8075
  /** The arguments, as zod. The container derives the JSON Schema the
6513
8076
  * model is shown from it and validates every call against it before
6514
8077
  * `execute` runs, so `input` is already the declared shape. */
6515
8078
  readonly inputSchema: ZodType<I>;
8079
+ /** Validates decoded result.content JSON, or plain text when content is not JSON. */
8080
+ readonly outputSchema?: ZodType;
8081
+ /** Default delivery mode; exact pages require acceptance through the current allowance. */
8082
+ readonly deliveryKind?: 'receipt' | 'preview' | 'exact-page';
8083
+ /** The host binds accepted human reply events as the receipt's historical source. */
8084
+ readonly historySource?: 'human-answer';
8085
+ /** Dynamic definitions are charged against the independent discovery catalog quota. */
8086
+ readonly catalogKind?: 'fixed' | 'dynamic';
6516
8087
  /** The JSON Schema the model is shown, when the tool has one of its own —
6517
8088
  * an MCP server's, for instance. `inputSchema` still validates every call;
6518
8089
  * absent, the schema is derived from `inputSchema`. */
6519
8090
  readonly jsonSchema?: Readonly<Record<string, unknown>>;
6520
8091
  /** Read on every assembly and dispatch; false or a thrown error hides this tool. */
6521
8092
  available?(view: ToolAvailabilityView): boolean;
6522
- execute(input: I, ctx: ToolExecContext): Promise<PluginToolResult>;
6523
8093
  }
8094
+ /** A registration executes directly or resolves one pure, nonrecursive target. */
8095
+ type ExecutableToolRegistration<I = unknown> = ToolRegistrationFields<I> & {
8096
+ execute(input: I, ctx: ToolExecContext): Promise<PluginToolResult>;
8097
+ readonly resolveCall?: never;
8098
+ };
8099
+ /** Pure one-level routing declaration; it performs no execution itself. */
8100
+ type RoutedToolRegistration<I = unknown> = ToolRegistrationFields<I> & {
8101
+ readonly execute?: never;
8102
+ resolveCall(input: I): {
8103
+ readonly name: string;
8104
+ readonly input: unknown;
8105
+ };
8106
+ };
8107
+ /** Exactly one execution mode is permitted for a registration. */
8108
+ type ToolRegistration<I = unknown> = ExecutableToolRegistration<I> | RoutedToolRegistration<I>;
6524
8109
  /** What a tool call knows about where it is running. Narrower than the
6525
8110
  * kernel's own execution context on purpose: no transcript and no control
6526
8111
  * state, so a tool cannot read the conversation it was called from. */
6527
8112
  interface ToolExecContext {
8113
+ /** Host-frozen provenance for the admitting decision; changing session state never rewrites it. */
8114
+ readonly ownerContext?: readonly OwnerContextEntry[];
6528
8115
  /** Stable identity of this exact tool call, including approval re-entry. */
6529
8116
  readonly toolCallId: string;
8117
+ /** Effective-history generation; rewind invalidates native query cursors. */
8118
+ readonly historyGeneration: number;
8119
+ /** Authenticated allowance for this call, shared by all of its collection members. */
8120
+ readonly output: ToolOutputAllowance;
6530
8121
  readonly sessionId: string;
6531
8122
  readonly address: SessionAddress;
6532
8123
  /** Which model call of this turn the tool is running in. Every call in
@@ -6768,6 +8359,8 @@ interface ModelProviderConnection {
6768
8359
  * and is waiting. It carries a signal of its own because, unlike a model
6769
8360
  * call, there is no `stream(request, signal)` to carry one. */
6770
8361
  interface ModelProviderProbe extends ModelProviderConnection {
8362
+ /** Raw response byte ceiling enforced during download, before decoding or parsing provider content. */
8363
+ readonly maxResponseBytes?: number;
6771
8364
  readonly signal: AbortSignal;
6772
8365
  /** A model to probe with, when a person picked one. Endpoints without a
6773
8366
  * model listing can only be verified by asking for a completion. */
@@ -6924,6 +8517,8 @@ type ApprovalResult = {
6924
8517
  };
6925
8518
  /** Host-owned execution plans and approval; subprocess owns spawn and lifecycle. */
6926
8519
  interface Sandbox {
8520
+ /** Single-flight assessment of an actually admitted nonzero command exit. */
8521
+ beginFailure(input: ProcessFailureInput): FailureAuthorizationHandle;
6927
8522
  /** Starts an owner-tracked prepared command; owner withdrawal cancels and drains every admitted launch. */
6928
8523
  start(spec: SubprocessStartSpec, onExit: (ending: SubprocessEnding) => boolean | void | Promise<boolean | void>): Promise<SubprocessHandle>;
6929
8524
  /** Native backend availability, independent of the installation shell switch. */
@@ -6941,7 +8536,7 @@ interface Sandbox {
6941
8536
  planSandboxed(ctx: ExecutionAuthority, input: SandboxRequest): Promise<SandboxPlanResult>;
6942
8537
  /** Prepares exact argv without changing the planned mode; backend failure never retries directly.
6943
8538
  * The launch guard binds configuration, backend capability, command and cancellation. */
6944
- prepare(plan: SandboxPlan, command: readonly string[]): PreparedShellExecution;
8539
+ prepare(plan: SandboxPlan, command: readonly string[], ctx?: ToolExecContext): PreparedShellExecution;
6945
8540
  /**
6946
8541
  * Authorizes complete argv and real cwd; confined plans also authorize resource access.
6947
8542
  * Direct plans ignore resource declarations and record only command permissions.
@@ -6983,6 +8578,11 @@ interface LocalNetworkPermission {
6983
8578
  readonly port: number | 'any';
6984
8579
  }
6985
8580
  interface SandboxRequest {
8581
+ /** Stable originating capability operation; required when failure authorization is admitted. */
8582
+ readonly operationId?: string;
8583
+ readonly authorizationScope?: ResourceAuthorizationScope;
8584
+ /** Installation lifetime persists beyond the originating tool turn. */
8585
+ readonly originLifetime?: AbortSignal;
6986
8586
  /** Exact command arguments; the planner resolves cwd into execution. */
6987
8587
  readonly argv: readonly string[];
6988
8588
  /** Where the command runs; absolute, inside a readable root. Absent means
@@ -7000,6 +8600,8 @@ interface SandboxRequest {
7000
8600
  * rules: read paths, write paths and outbound hosts, all beyond what the
7001
8601
  * fence and the readable list already allow. */
7002
8602
  interface SandboxPermissions {
8603
+ /** Original host once receipt, consumed only by an explicit next physical start. */
8604
+ readonly receipt?: string;
7003
8605
  readonly read?: readonly string[];
7004
8606
  readonly write?: readonly string[];
7005
8607
  /** Declared purpose only: external networking is all-or-nothing. */
@@ -7035,6 +8637,10 @@ interface DirectShellPlan {
7035
8637
  type SandboxPlan = SandboxedPlan | DirectShellPlan;
7036
8638
  /** Prepared argv and environment facts fixed for one launch. */
7037
8639
  interface PreparedShellExecution {
8640
+ readonly scopeId: string;
8641
+ readonly launchScope: PreparedLaunchScope;
8642
+ /** Revalidates and locks the first actual host launch attempt; different attempts refuse reuse. */
8643
+ beforeSpawn(launchAttemptId: string): void;
7038
8644
  readonly mode: 'sandboxed' | 'direct';
7039
8645
  /** Unavailable-backend explanation retained from a direct plan. */
7040
8646
  readonly fallbackReason?: string;
@@ -7043,9 +8649,13 @@ interface PreparedShellExecution {
7043
8649
  readonly proxyEnvironment: Readonly<Record<string, string>>;
7044
8650
  /** Throws before spawn if configuration or selected capability changed, or the call was cancelled. */
7045
8651
  assertCurrent(): void;
8652
+ /** Releases an unstarted prepared scope and its collectors/claims without restoring permission. */
8653
+ release(): Promise<void>;
7046
8654
  }
7047
8655
  /** Confined operating-system resources for one host-owned execution. */
7048
8656
  interface SandboxedPlan {
8657
+ /** Internal random ASCII tag attached only to physical denial rules. */
8658
+ readonly diagnosticTag?: string;
7049
8659
  readonly mode: 'sandboxed';
7050
8660
  /** Allowed local TCP ports, independent of external network permission. */
7051
8661
  readonly connectAllow: readonly (number | 'any')[];
@@ -7103,6 +8713,8 @@ interface Subprocess {
7103
8713
  * limit.
7104
8714
  */
7105
8715
  start(spec: SubprocessStartSpec, onExit: (ending: SubprocessEnding) => boolean | void | Promise<boolean | void>): Promise<SubprocessHandle>;
8716
+ /** Iterates retained metadata without allocating a full history array; ordering is unspecified. */
8717
+ records(sessionId?: string): Iterable<SubprocessRecord>;
7106
8718
  /** The processes this caller started, newest first. */
7107
8719
  list(sessionId?: string): readonly SubprocessRecord[];
7108
8720
  /** The signal ladder, whoever asks: SIGTERM, three seconds, SIGKILL.
@@ -7139,7 +8751,9 @@ interface SubprocessStartSpec {
7139
8751
  * call had. */
7140
8752
  readonly timeoutMs?: number;
7141
8753
  /** Synchronous host validation immediately before spawn; a throw starts no process. */
7142
- readonly beforeSpawn?: () => void;
8754
+ readonly beforeSpawn?: (launchAttemptId: string) => void;
8755
+ /** Host-issued origin scope; physical receipt binding is installed by Runtime. */
8756
+ readonly authorizationScope?: ResourceAuthorizationScope;
7143
8757
  }
7144
8758
  /** Why `start` rejected, carried on the `Error` it rejects with.
7145
8759
  *
@@ -7173,6 +8787,8 @@ interface SubprocessHandle {
7173
8787
  readonly command: Promise<{
7174
8788
  readonly code: number | null;
7175
8789
  readonly signal: string | null;
8790
+ /** Monotonic host time captured at actual root exit/error, before stream drain. */
8791
+ readonly exitedAt: number;
7176
8792
  /** Present when the program itself never started — a missing binary, a
7177
8793
  * directory that is not there. The command did not run, which is a
7178
8794
  * different answer from a command that ran and failed. */
@@ -7309,6 +8925,8 @@ interface SearchProviderCall extends SearchProviderConnection {
7309
8925
  readonly signal: AbortSignal;
7310
8926
  }
7311
8927
  interface SearchProviderProbe extends SearchProviderConnection {
8928
+ /** Owner collection cap applied while streaming raw HTTP bytes, before allocating or decoding JSON. */
8929
+ readonly maxResponseBytes?: number;
7312
8930
  readonly signal: AbortSignal;
7313
8931
  }
7314
8932
  /** One result, as every search endpoint is asked to describe it. Three
@@ -7352,106 +8970,60 @@ interface SearchRequest {
7352
8970
  * before the first byte goes out, and a service that did both would have
7353
8971
  * to return the tool's `awaitHuman` for it.
7354
8972
  */
8973
+ /** Address and routing facts issued by the host for one complete URL collection. */
8974
+ interface WebObservation {
8975
+ /** Approval fingerprint binds every initial URL, resolved address and route revision. */
8976
+ readonly fingerprint: string;
8977
+ }
8978
+ /** Owner-leased HTTP admission and streaming against exact observed network facts. */
7355
8979
  interface Web {
7356
- /** Judges one URL: the scheme, the addresses it resolves to, then the
7357
- * allowed-host list. Sends nothing. */
7358
- check(ctx: ExecutionAuthority, url: string): Promise<WebCheck>;
7359
- /** Records an installation-wide host/port grant after human approval.
7360
- * The security configuration owns persistence and change notifications.
7361
- * Invalid hosts or TCP ports are refused without recording a grant. */
7362
- allowHost(ctx: ExecutionAuthority, host: string, port: number): void;
7363
- /** Performs the request, judging every hop. Redirects are followed by
7364
- * this method rather than by the platform, so that each one is checked;
7365
- * a hop to a host that is not allowed ends the call instead of asking,
7366
- * because by then bytes have already gone out. */
8980
+ /** Observes 1..64 URLs together without sending an HTTP request. */
8981
+ checkMany(ctx: ExecutionAuthority, urls: readonly string[]): Promise<readonly WebCheck[]>;
8982
+ /** Validates the observed collection again and publishes one durable host-grant change. */
8983
+ allowHosts(ctx: ExecutionAuthority, observations: readonly WebObservation[]): Promise<void>;
8984
+ /** Opens one observed URL; redirects may use this collection's approved hosts. */
7367
8985
  open(ctx: ExecutionAuthority, request: WebOpenRequest, signal: AbortSignal): Promise<WebOpenResult>;
7368
8986
  }
7369
- type WebCheck =
7370
- /** In the list, or the list is not consulted because nothing forbids it. */
7371
- {
7372
- readonly kind: 'allowed';
7373
- readonly host: string;
7374
- readonly port: number;
7375
- } |
7376
- /** Not in the list, and nothing forbids asking about it. */
7377
- {
7378
- readonly kind: 'needs-approval';
8987
+ /** Positional admission outcome; only safe public addresses carry an observation. */
8988
+ type WebCheck = {
8989
+ readonly kind: 'allowed' | 'needs-approval';
7379
8990
  readonly host: string;
7380
8991
  readonly port: number;
7381
- } |
7382
- /** The scheme or the address forbids it. No permission can cover this,
7383
- * and nobody is asked. */
7384
- {
7385
- readonly kind: 'refused';
7386
- readonly host: string;
7387
- readonly message: string;
7388
- } |
7389
- /** The name does not resolve. Its own answer rather than a refusal,
7390
- * because a person should not be asked to allow a host that does not
7391
- * exist — the model mistyped it, and the answer it needs is "that name
7392
- * does not resolve" rather than a question somebody has to dismiss. */
7393
- {
7394
- readonly kind: 'unresolved';
8992
+ readonly observation: WebObservation;
8993
+ } | {
8994
+ readonly kind: 'refused' | 'unresolved';
7395
8995
  readonly host: string;
7396
8996
  readonly message: string;
7397
8997
  };
8998
+ /** One bounded HTTP request joined to its original host-issued observation. */
7398
8999
  interface WebOpenRequest {
7399
9000
  readonly url: string;
7400
- /** The host this call is permitted to reach, from the `check` that
7401
- * preceded it: the one on the list, or the one a person just allowed.
7402
- * Passing it is what makes the allowed-host list enforced rather than
7403
- * advisory — without it the first hop could only be judged by address,
7404
- * and any public host would be reachable by skipping `check`. Every
7405
- * later hop is judged against the list as well. */
7406
- readonly approvedHost: string;
7407
- /** Effective TCP port covered by this call's approval. */
7408
- readonly approvedPort: number;
7409
- /** Bytes of response body to read before stopping. */
9001
+ readonly observation: WebObservation;
9002
+ readonly approved: readonly WebObservation[];
9003
+ /** Maximum decoded response bytes; exceeding it cancels the response. */
7410
9004
  readonly maxBytes: number;
7411
9005
  readonly timeoutMs: number;
7412
9006
  }
9007
+ /** Complete bounded response or an explicit refusal; partial bodies are never successful. */
7413
9008
  type WebOpenResult = {
7414
9009
  readonly ok: true;
7415
- /** Where the chain ended — the URL the bytes actually came from. */
7416
9010
  readonly url: string;
7417
9011
  readonly host: string;
7418
9012
  readonly status: number;
7419
9013
  readonly contentType: string;
7420
9014
  readonly body: Uint8Array;
7421
- /** Bytes the server had more of than `maxBytes` allowed. */
7422
- readonly dropped: number;
7423
- /** `dropped` is a lower bound rather than the whole of what was there.
7424
- *
7425
- * Counting the rest exactly means reading the rest, and a response
7426
- * that decompresses without end makes that unbounded — it does not
7427
- * even stop at the call's own deadline, because the work keeps the
7428
- * loop busy and the timer never gets a turn. So the read stops at a
7429
- * multiple of `maxBytes`, and this says the number is a floor. A
7430
- * caller renders "at least N bytes" rather than "N bytes"; the
7431
- * distinction is not the service's to phrase. */
7432
- readonly droppedIsFloor: boolean;
7433
9015
  } | {
7434
9016
  readonly ok: false;
7435
9017
  readonly reason: WebFailureReason;
7436
9018
  readonly message: string;
7437
9019
  };
7438
- /** The failures a caller can act on differently. `address-denied` and
7439
- * `redirect-blocked` are this service's own judgement; the rest are the
7440
- * network's. */
7441
- type WebFailureReason = 'address-denied' | 'redirect-blocked' | 'too-many-redirects' | 'http-status' | 'timeout' | 'dns' | 'network';
9020
+ /** Distinguishes admission, redirect, response budget and transport failures. */
9021
+ type WebFailureReason = 'address-denied' | 'redirect-blocked' | 'too-many-redirects' | 'http-status' | 'read-limit' | 'timeout' | 'dns' | 'network';
7442
9022
  /** The five effect kinds a plugin may handle. `record` and `publish` are
7443
9023
  * the core's: the loop's own log and its fan-out cannot be replaced
7444
9024
  * without making "an event is recorded before it is published" someone
7445
9025
  * else's promise. */
7446
9026
  type PluginEffectKind = Exclude<EffectKind, 'record' | 'publish'>;
7447
- /** Where a plugin's own diagnostics go. Every line is prefixed with the
7448
- * plugin's name, so a misbehaving plugin is identifiable in the gateway
7449
- * log without it having to name itself. */
7450
- interface PluginLog {
7451
- info(message: string): void;
7452
- warn(message: string): void;
7453
- error(message: string, error?: unknown): void;
7454
- }
7455
9027
  /** A plugin's sessionless model call; the host assigns one call ID per stream. */
7456
9028
  interface HostModelPort {
7457
9029
  inspect?: (request: ModelRequestFields) => ModelInspection;
@@ -7500,6 +9072,10 @@ interface ExecutionAuthority {
7500
9072
  }
7501
9073
  /** Trusted session lookup for independently installed delegation plugins. */
7502
9074
  interface SessionContext {
9075
+ /** Reads at most 64 ordered existence facts without restoring a driver or reading message content. */
9076
+ existsMany(sessionIds: readonly string[]): readonly boolean[];
9077
+ /** Permanent invalidation withdraws retained resource authority; ordinary idle does not. */
9078
+ onInvalidated(listener: (sessionId: string) => void): () => void;
7503
9079
  /** Resolves immutable ancestry; an unknown session is an error. */
7504
9080
  resolve(sessionId: string): {
7505
9081
  readonly address: SessionAddress;
@@ -7613,9 +9189,10 @@ interface TriggerSourceRegistration {
7613
9189
  readonly label: string;
7614
9190
  /** Validates a definition's `config`. */
7615
9191
  readonly configSchema: ZodType;
7616
- /** Called once the source is registered; what it returns is called when
7617
- * the source is withdrawn. */
7618
- start(host: TriggerSourceHost): void | Dispose$1;
9192
+ /** Called once the source is registered. Cleanup must synchronously stop new work;
9193
+ * its optional promise joins admitted work before runtime storage closes. The host
9194
+ * calls cleanup once on withdrawal or shutdown and reports cleanup failures. */
9195
+ start(host: TriggerSourceHost): void | (() => void | Promise<void>);
7619
9196
  }
7620
9197
  /** What a definition an agent creates says, for one of the calling plugin's
7621
9198
  * own sources; the host fills in the agent, workspace and creator from the
@@ -7654,12 +9231,24 @@ type TriggerOutcome = {
7654
9231
  * An agent changes and removes only what it created.
7655
9232
  */
7656
9233
  interface TriggersService {
9234
+ /** Counts this agent's creations within the bound owner/workspace scope. */
9235
+ countCreated(ctx: ToolExecContext): number;
9236
+ /** Bounded metadata-only keyset page within the same scope as list. */
9237
+ page(ctx: ToolExecContext, options: {
9238
+ readonly after?: string;
9239
+ readonly limit: number;
9240
+ }): TriggerHeaderPage & {
9241
+ readonly queryVersion: string;
9242
+ };
9243
+ /** Reads one accessible definition body without scanning the catalogue. */
9244
+ get(ctx: ToolExecContext, id: string): TriggerSummary | undefined;
7657
9245
  create(ctx: ToolExecContext, input: TriggerDefinitionInput): TriggerOutcome;
7658
9246
  list(ctx: ToolExecContext): readonly TriggerSummary[];
7659
9247
  update(ctx: ToolExecContext, id: string, patch: Partial<Omit<TriggerDefinitionInput, 'kind'>>): TriggerOutcome;
7660
- remove(ctx: ToolExecContext, id: string): TriggerOutcome | {
7661
- readonly kind: 'removed';
7662
- };
9248
+ /** Deletes a complete owner/source collection under one durable host operation receipt. */
9249
+ removeMany(ctx: ToolExecContext, ids: readonly string[], operationId: string): CommittedOperation<{
9250
+ readonly removed: readonly string[];
9251
+ }>;
7663
9252
  }
7664
9253
  /** What one participant call did. */
7665
9254
  type ParticipantChange = {
@@ -7761,7 +9350,7 @@ interface ProtocolProcesses {
7761
9350
  * and never begin with `YAOGUANG_`. */
7762
9351
  readonly configuredEnv?: Readonly<Record<string, string>>;
7763
9352
  /** Revalidates the approved launch immediately before releasing the gated target. */
7764
- readonly beforeSpawn?: () => void;
9353
+ readonly beforeSpawn?: (launchAttemptId: string) => void;
7765
9354
  /** Transfers a caller resource lease; awaited only after physical and record cleanup succeeds. */
7766
9355
  readonly release?: () => void | Promise<void>;
7767
9356
  }): ProtocolProcessStart;
@@ -7821,15 +9410,21 @@ interface CredentialsService {
7821
9410
  * plugin removing an instance calls it inside the same transaction as
7822
9411
  * its own delete. */
7823
9412
  clear(scope: string, name?: string): void;
9413
+ /** Clears a complete explicit scope collection in the actual host transaction. */
9414
+ clearMany(items: readonly CredentialClearItem[], scope?: UnitOfWorkScope): void;
7824
9415
  /** Writes a credential this plugin obtained itself — an OAuth token, a
7825
9416
  * dynamically registered client. Only names beginning with `oauth.` are
7826
9417
  * accepted; a person's credentials enter through `WebContext.credentials`,
7827
9418
  * which refuses those names, so the two never collide. Same write rules as
7828
9419
  * every credential. */
7829
9420
  set(scope: string, name: string, value: string): void;
7830
- /** Called with the scope after any write or clear of this plugin's
7831
- * credentials, so a plugin drops a connection built with the old value. */
7832
- onChanged(listener: (scope: string) => void): Dispose$1;
9421
+ /** Seals all machine credentials before writing them in one shared host transaction. */
9422
+ setMany(scope: string, items: readonly {
9423
+ readonly name: string;
9424
+ readonly value: string;
9425
+ }[], transaction?: UnitOfWorkScope): void;
9426
+ /** Called once with the complete scope collection after a committed write or clear. */
9427
+ onChanged(listener: (scopes: readonly string[]) => void): Dispose$1;
7833
9428
  }
7834
9429
  //#endregion
7835
- export { ProviderField as $, ProgressProps as $a, GenerationCapability as $c, ConnectionStatus as $i, ImageResourceVariant as $n, WidgetProps as $o, FileReferenceDescription as $r, HostCommands as $s, TriggerSourceHost as $t, ModelProtocolType as A, IconProps as Aa, NetworkRouting as Ac, ChannelTab as Ai, AgentExtensionData as Al, MediaContext as An, StatusBarAreaProps as Ao, AgentDataSchemas as Ar, DependencyNode as As, Subprocess as At, PluginEffectKind as B, NotificationPayload as Ba, ResourceRangeRequest as Bc, CommandInput as Bi, JsonValue as Bl, ModelSessionPolicy as Bn, ToolCall as Bo, PtyAvailability as Br, InstallationRequest as Bs, SubprocessState as Bt, LocalNetworkPermission as C, FieldBinding as Ca, AgentRun as Cc, BrowserStore as Ci, ProviderLoginState as Cl, NetworkProxyHost as Cn, SkeletonShape as Co, PreparedAgentConfigurationSave as Cr, ActivationConstraints as Cs, SessionDeliveryInput as Ct, LoginFailureCode as D, HostState as Da, AgentRunRows as Dc, Catalogues as Di, AgentConfigurationParticipant as Dl, FailureKind as Dn, SlotProps as Do, AgentDefinitionPatch as Dr, ArtifactRequest as Ds, SessionNotesService as Dt, LoginFailure as E, FilterChipsProps as Ea, AgentRunRow as Ec, CallParams as Ei, VendorEndpointFacts as El, EffortLevel as En, SlotName as Eo, AgentDefinition as Er, ArtifactIdentity as Es, SessionNotesResult as Et, ModelProviderType as F, LinkOpenResult as Fa, ClientStreamConnection as Fc, ColorTone as Fi, ReadableSourceView as Fl, PlannedFile as Fn, ThemeColorPickerProps as Fo, ContextRestoreInput as Fr, InstallationAttemptContext as Fs, SubprocessLogs as Ft, PrepareModelConnectionInput as G, PaginationProps as Ga, AgentExecution as Gc, ComposerDraftDocument as Gi, PluginDependencies as Gl, ContextMeasurementService as Gn, TooltipHintProps as Go, PtyOutput as Gr, ConfigurationPersistence as Gs, ToolGuidance as Gt, PluginStorage as H, NotificationState as Ha, AttachmentReader as Hc, ComposerCommand as Hi, WidgetInput as Hl, GenerationRuntime as Hn, ToolGroupPresentation as Ho, PtyCleanupScope as Hr, PackageContent as Hs, SubprocessWindow as Ht, Network as I, MessageActionTarget as Ia, ClientStreamContext as Ic, ColorValue as Ii, ReadableTarget as Il, ResolveParamsInput as In, TimeOfDay as Io, ContextRestoreResult as Ir, InstallationBatchRequest as Is, SubprocessRead as It, PreparedModelParams as J, PathInputProps as Ja, ModelEntryResolution as Jc, ComposerFilePolicy as Ji, McpSelectionStorage as Jn, WebContext as Jo, PtySpawnOptions as Jr, GatewayPlatform as Js, ToolResult as Jt, PrepareModelParamsInput as K, PaletteChoice as Ka, ModelCataloguePolicy as Kc, ComposerDraftModel as Ki, ModelInputs as Kn, TranscriptToolProps as Ko, PtyService as Kr, FilePublication as Ks, ToolGuidanceEntry as Kt, ParticipantChange as L, NativeClientFeatures as La, ClientStreamHandle as Lc, ComboboxOption as Li, SandboxReadableView as Ll, ResolvedParams as Ln, ToastControls as Lo, ContextSearchInput as Lr, InstallationObservation as Ls, SubprocessRecord as Lt, ModelProviderConnection as M, InputGroupProps as Ma, ClientResource as Mc, ChatSlots as Mi, ReadableRejection as Ml, MediaPlan as Mn, StepperProps as Mo, ContextHistoryEntry as Mr, ExtensionSelection as Ms, SubprocessEnding as Mt, ModelProviderEndpoint as N, InputNumberProps as Na, ClientResourceResponse as Nc, Chord as Ni, ReadableSource as Nl, ModelCapacity as Nn, SurfaceVariant as No, ContextHistoryFailure as Nr, HostIdentity as Ns, SubprocessHandle as Nt, LoginResult as O, HostView as Oa, AgentRuns as Oc, ChannelAddProps as Oi, AgentConfigurationRegistration as Ol, FailureVerdict as On, Slots as Oo, AgentDefinitionSnapshot as Or, ArtifactWarning as Os, SessionNotice as Ot, ModelProviderProbe as P, KeybindingStorage as Pa, ClientStream as Pc, ColorPickerProps as Pi, ReadableSourceHandle as Pl, ModelSupportService as Pn, TableProps as Po, ContextHistoryFile as Pr, HostRequirements as Ps, SubprocessHeld as Pt, ProtocolProcesses as Q, PresenceState as Qa, GenerationArtifactAuthorization as Qc, ConnectionState as Qi, ImageResourceInfo as Qn, Weekday as Qo, FileReferenceActions as Qr, HostCommandInspection as Qs, TriggerRunKind as Qt, Plugin as R, NoProps as Ra, ResourceByteMetadata as Rc, ComboboxProps as Ri, SandboxReadables as Rl, StoredParams as Rn, ToastOptions as Ro, ContextSearchResult as Rr, InstallationOperation as Rs, SubprocessStartFailure as Rt, InboxNotifier as S, ExternalLinkProps as Sa, BackgroundTaskPort as Sc, BrowserServices as Si, ModelCatalogueSnapshot as Sl, ResourceSecurity as Sn, SkeletonProps as So, AgentDefinitionManagement as Sr, ActivationBatchResult as Ss, SessionContext as St, LoginCredential as T, FilterChipOption as Ta, AgentRunPlan as Tc, CalendarDate as Ti, StyleFacts as Tl, CallWithRetryOptions as Tn, SlotLabel as To, AgentCreationInput as Tr, AdmissionReceipt as Ts, SessionFrameHandle as Tt, PluginToolContentResult as U, OperationProgressProps as Ua, AttachmentReference as Uc, ComposerContext as Ui, WidgetRegistration as Ul, ModelRuntime as Un, ToolPresentation as Uo, PtyExit as Ur, PlatformTarget as Us, ToolExecContext as Ut, PluginLog as V, NotificationPermission as Va, ResourceResult as Vc, ComposerAttachedItem as Vi, MessageTextRenderer as Vl, ModelPortSecurity as Vn, ToolCallResult as Vo, PtyCleanupResult as Vr, PackageArtifacts as Vs, SubprocessStreamWindow as Vt, PluginToolResult as W, PaginationLabels as Wa, AttachmentReferences as Wc, ComposerControlsProps as Wi, WidgetRegistry as Wl, ModelDeclarationViews as Wn, ToolPresentationProps as Wo, PtyHandle as Wr, PreparedArtifact as Ws, ToolFile as Wt, ProtocolProcess as X, PendingRequestPresentation as Xa, ChatCapability as Xc, ComposerStartPolicySource as Xi, FileMediaService as Xn, WebRuntimeVersion as Xo, WorkspaceRootSnapshot as Xr, HopResponse as Xs, TriggerDefinitionView as Xt, PreparedShellExecution as Y, PendingLink as Ya, ArtifactReader as Yc, ComposerFilePolicySource as Yi, HostIdentityService as Yn, WebModule as Yo, WorkspaceRoot as Yr, HopRequest as Ys, TriggerDefinitionInput as Yt, ProtocolProcessStart as Z, PluginFrameEvent as Za, GeneratedAsset as Zc, ComposerSubscribe as Zi, FileVariantPolicy as Zn, WebShellLauncher as Zo, WorkspaceRoots as Zr, HostAsyncFiles as Zs, TriggerOutcome as Zt, DeliveryWrites as _, ExtensionEnablePreparation as _a, StdFs as _c, BreadcrumbItem as _i, ProviderCatalogContribution as _l, SettingsParticipant as _n, SessionProps as _o, SessionContextMaintenanceResult as _r, ClientFileStage as _s, SearchProviderConnection as _t, ApprovalResult as a, DataTableCategory as aa, PlatformNetwork as ac, AgentIdentityProps as ai, GenerationInputSelectors as al, WebOpenRequest as an, ResolvedMarkdownImage as ao, ContextSession as ar, ClientSaveTarget as as, SandboxAvailability as at, HostModelPort as b, ExtensionSectionProps as ba, BackgroundComputationPort as bc, BrowserGateway as bi, CatalogEntry as bl, AddressVerdict as bn, ShellSlots as bo, SessionModelControls as br, ClientFilesAvailability as bs, SearchRequest as bt, BroadcastClientFrame as c, DataTableGroup as ca, PlatformValidation as cc, AttachmentItem as ci, GenerationModelSummary as cl, AgentToolContexts as cn, RunItemState as co, AgentContextControl as cr, StreamTransport as cs, SandboxPlan as ct, ClientFrame as d, DataTableSelection as da, PublicationObservation as dc, AvatarProps as di, GenerationPort as dl, AuthorizationResources as dn, SecretInputProps as do, CapabilityRegistries as dr, FileReferenceFormatter as ds, SandboxRequest as dt, ContentItem as ea, HostEnvironmentPolicy as ec, FileReferenceReader as ei, GenerationConnection as el, TriggerSourceRegistration as en, ReadonlyFileViewerContent as eo, CredentialVault as er, WidgetRendererRegistration as es, ProviderFieldKind as et, ClientFrameHandle as f, DesktopPresenceHost as fa, PublicationResult as fc, AvatarShape as fi, GenerationPreparation as fl, AuthorizationStrategy as fn, SelectProps as fo, CapabilityRegistry as fr, ClientFileDirectory as fs, SandboxedPlan as ft, CredentialsService as g, EmptyStateProps as ga, SqliteStorageResources as gc, BaselineStatus as gi, PreparedGenerationInputs as gl, SandboxPhysicalHost as gn, SessionChannelProps as go, SessionContextMaintenance as gr, ClientFileReader as gs, SearchProviderCall as gt, CredentialStatus as h, DrawerProps as ha, SandboxBackend as hc, BaselineReadiness as hi, GenerationService as hl, SandboxHost as hn, SessionActionTarget as ho, DelegatedSessionTask as hr, ClientFileObservation as hs, SearchHit as ht, ApprovalRequest as i, ControlSize as ia, LocalInfrastructure as ic, AgentIdentityPresentation as ii, GenerationInputFile as il, WebFailureReason as in, RelatedSessionTarget as io, ContextRuntime as ir, ByteTransport as is, SandboxAuthorization as it, ModelProviderCall as j, InputAccessibleName as ja, ClientIoError as jc, ChannelTabProps as ji, PreparedAgentConfiguration as jl, MediaFate as jn, StatusBarContentProps as jo, AgentCapabilityHost as jr, ExtensionInstallation as js, SubprocessBytes as jt, ModelOffer as k, IconName as ka, NetworkRoute as kc, ChannelInstance as ki, AgentConfigurationStore as kl, InspectionInput as kn, SpinnerProps as ko, AgentPromptTexts as kr, ContentEntry as ks, SessionParticipantsService as kt, BroadcastFrameHandle as l, DataTablePagination as la, PublicationFailure as lc, AuthenticationFailure as li, GenerationOperation as ll, SessionAdmission as ln, RunSectionCall as lo, ContextHistoryPolicy as lr, TransferOptions as ls, SandboxPlanResult as lt, ClientUi as m, Dispose as ma, RuntimePlatform as mc, BadgeVariant as mi, GenerationResultState as ml, PreparedSettingsWrite as mn, SessionActionProps as mo, DelegatedSessionChange as mr, ClientFileEntry as ms, SearchAvailability as mt, ApprovalChoice as n, Contribution as na, HostParsedCommand as nc, AgentConfigurationEditor as ni, GenerationFailure as nl, Web as nn, RelatedSessionActions as no, ContextFramework as nr, WorkspaceSelectionState as ns, ProviderLoginMethod as nt, ApprovalSource as o, DataTableColumn as oa, PlatformOwnerLease as oc, AgentRunSettingsProps as oi, GenerationInputsService as ol, WebOpenResult as on, RunItemAction as oo, ContextSessionPolicy as or, ResourceMetadata as os, SandboxExecution as ot, ClientMethod as p, DesktopPresenceService as pa, PublicationTarget as pc, BadgeShape as pi, GenerationRequest as pl, ConfigurationTransactions as pn, SeparatorProps as po, AgentModelConfiguration as pr, ClientFileDirectoryStage as ps, Search as pt, PreparedModelConnection as q, PaletteContext as qa, ModelCatalogueSource as qc, ComposerDraftNode as qi, McpAgentConfig as qn, UIComponents as qo, PtyServiceFactory as qr, FoundationIdentity as qs, ToolRegistration as qt, ApprovalDecision as r, ControlOrientation as ra, HostPlatform as rc, AgentFieldProps as ri, GenerationFailureCode as rl, WebCheck as rn, RelatedSessionPresentation as ro, ContextRequestObservation as rr, ByteRead as rs, Sandbox as rt, AsyncHumanRequestInput as s, DataTableFilter as sa, PlatformStorage as sc, AgentTabProps as si, GenerationModel as sl, WorkLifecycle as sn, RunItemProps as so, PromptCategoryBytes as sr, StreamConnection as ss, SandboxPermissions as st, Approval as t, ContentMatch as ta, HostFiles as tc, FileReferenceSource as ti, GenerationCurrent as tl, TriggersService as tn, ReadonlyFileViewerProps as to, CredentialVaultRows as tr, WidgetRendererRegistry as ts, ProviderLogin as tt, ClientCallContext as u, DataTableProps as ua, PublicationIdentity as uc, AvatarAlgorithm as ui, GenerationOutputKind as ul, SessionRelation as un, RunSectionProps as uo, CapabilityRegistration as ur, TransferProgress as us, SandboxRefusalReason as ut, DirectShellPlan as v, ExtensionManagementProjection as va, Transport as vc, BreadcrumbProps as vi, ProviderCatalogVendor as vl, SandboxPathLocator as vn, SettingsCategoryProps as vo, SessionDelegationObserver as vr, ClientFileSymlinkStage as vs, SearchProviderProbe as vt, LoginChallenge as w, FieldProps as wa, AgentRunCompletion as wc, ButtonVariant as wi, ReasoningOption as wl, WindowsProxyFacts as wn, Slot as wo, AgentCreation as wr, AdmissionHistory as ws, SessionDeliveryService as wt, InboxNotice as x, ExtensionSelectionActionOptions as xa, BackgroundTask as xc, BrowserPendingRequest as xi, CatalogGeneration as xl, BatchFileVerdict as xn, SingleOccupantSlot as xo, AgentSessions as xr, ClientFilesFactory as xs, SessionClientFrame as xt, ExecutionAuthority as y, ExtensionRowActionOptions as ya, BackgroundByteSource as yc, BrowserCallOptions as yi, ToolAvailabilityView as yl, AddressLookup as yn, ShellDialogProps as yo, SessionModelChoices as yr, ClientFiles as ys, SearchProviderType as yt, PluginContext as z, NotificationHost as za, ResourceCall as zc, CommandArgument as zi, JsonObject as zl, ModelDispatchPolicy as zn, ToastProviderProps as zo, SessionContextHistory as zr, InstallationPreview as zs, SubprocessStartSpec as zt };
9430
+ export { ProviderField as $, ContentItem as $a, HopRequest as $c, ToolDeliveryTicket as $d, HostFileReadHandle as $i, ArtifactRequest as $l, ModelPortSecurity as $n, ReadonlyFileViewerContent as $o, AgentSessions as $r, Weekday as $s, ToolResult as $t, GenerationModelSummary as $u, ModelOffer as A, ChannelTabProps as Aa, ClientStream as Ac, LogSpan as Ad, PtyService as Ai, AgentRunResultPage as Al, ProjectInstructions as An, InputAccessibleName as Ao, QueryCleanupCause as Ar, StatusBarContentProps as As, SessionParticipantsService as At, PathObservation as Au, PluginContext as B, ComposerAttachedItem as Ba, AttachmentReferences as Bc, ReadableSourceView as Bd, FilePreviewContribution as Bi, OwnerOperationCleanup as Bl, FailureVerdict as Bn, NotificationPermission as Bo, AgentContextControl as Br, ToolCallResult as Bs, SubprocessStartSpec as Bt, ArtifactReader as Bu, InboxNotifier as C, ButtonVariant as Ca, ClientFileSymlinkStage as Cc, LogBinding as Cd, OwnerStateCommit as Ci, BackgroundByteSource as Cl, SandboxPhysicalHost as Cn, FieldProps as Co, FileAccessInspection as Cr, Slot as Cs, SessionContext as Ct, SandboxPresetSummary as Cu, LoginFailure as D, ChannelAddProps as Da, ClientIoError as Dc, LogLevel as Dd, PtyExit as Di, AgentRun as Dl, AddressVerdict as Dn, HostView as Do, ContextSession as Dr, Slots as Ds, SessionNotesResult as Dt, FailureAuthorizationHandle as Du, LoginCredential as E, Catalogues as Ea, ClientFilesFactory as Ec, LogFields as Ed, PtyCleanupScope as Ei, BackgroundTaskPort as El, AddressLookup as En, HostState as Eo, ContextRuntime as Er, SlotProps as Es, SessionFrameHandle as Et, DenialSnapshot as Eu, ModelProviderProbe as F, ColorValue as Fa, ResourceCall as Fc, AgentExtensionData as Fd, WorkspaceRoots as Fi, AgentRuns as Fl, NetworkProxyHost as Fn, MessageActionTarget as Fo, QueryResourceLease as Fr, TimeOfDay as Fs, SubprocessHeld as Ft, SandboxDiagnostics as Fu, PrepareModelConnectionInput as G, ComposerDraftModel as Ga, CredentialVault as Gc, ToolCatalogEntry as Gd, FilePreviewRegistration as Gi, OwnerOperations as Gl, ModelCapacity as Gn, PaletteChoice as Go, AgentModelConfiguration as Gr, TooltipHintProps as Gs, ToolExecContext as Gt, GenerationConnection as Gu, PluginStorage as H, ComposerContext as Ha, ModelFailureFactory as Hc, SandboxReadableView as Hd, FilePreviewMetadata as Hi, OwnerOperationKey as Hl, MediaContext as Hn, OperationProgressProps as Ho, CapabilityRegistration as Hr, ToolPreloadConfiguration as Hs, SubprocessStreamWindow as Ht, GeneratedAsset as Hu, ModelProviderType as I, ComboboxOption as Ia, ResourceRangeRequest as Ic, PreparedAgentConfiguration as Id, FileReferenceActions as Ii, BulkTransactionParticipant as Il, WindowsProxyFacts as In, NativeClientFeatures as Io, QueryResourcePolicy as Ir, ToastControls as Is, SubprocessLogs as It, SandboxDiagnosticsLease as Iu, PreparedModelParams as J, ComposerFilePolicySource as Ja, UnitOfWorkScope as Jc, ToolExposureView as Jd, FileReferenceResolveItem as Ji, ActivationBatchResult as Jl, ResolveParamsInput as Jn, PendingLink as Jo, SessionContextMaintenance as Jr, UIComponents as Js, ToolGuidanceEntry as Jt, GenerationFailureCode as Ju, PrepareModelParamsInput as K, ComposerDraftNode as Ka, CredentialVaultRows as Kc, ToolCatalogSnapshot as Kd, FilePreviewRegistry as Ki, NetworkRoute as Kl, ModelSupportService as Kn, PaletteContext as Ko, DelegatedSessionChange as Kr, TranscriptToolProps as Ks, ToolFile as Kt, GenerationCurrent as Ku, Network as L, ComboboxProps as La, ResourceResult as Lc, ReadableRejection as Ld, FileReferenceDescription as Li, BulkTransactions as Ll, CallWithRetryOptions as Ln, NoProps as Lo, QueryResourceReservation as Lr, ToastOptions as Ls, SubprocessRead as Lt, ModelCataloguePolicy as Lu, ModelProviderCall as M, Chord as Ma, ClientStreamContext as Mc, AgentConfigurationParticipant as Md, PtySpawnOptions as Mi, AgentRunRow as Ml, RuleContact as Mn, InputNumberProps as Mo, QueryCleanupRequest as Mr, SurfaceVariant as Ms, SubprocessBytes as Mt, PreparedLaunchScope as Mu, ModelProviderConnection as N, ColorPickerProps as Na, ClientStreamHandle as Nc, AgentConfigurationRegistration as Nd, WorkspaceRoot as Ni, AgentRunRows as Nl, RuleFailure as Nn, KeybindingStorage as No, QueryResourceHeld as Nr, TableProps as Ns, SubprocessEnding as Nt, ProcessFailureInput as Nu, LoginFailureCode as O, ChannelInstance as Oa, ClientResource as Oc, LogOutcome as Od, PtyHandle as Oi, AgentRunCompletion as Ol, BatchFileVerdict as On, IconName as Oo, ContextSessionPolicy as Or, SpinnerProps as Os, SessionNotesService as Ot, FailurePathCandidate as Ou, ModelProviderEndpoint as P, ColorTone as Pa, ResourceByteMetadata as Pc, AgentConfigurationStore as Pd, WorkspaceRootSnapshot as Pi, AgentRunStatus as Pl, RuleLocation as Pn, LinkOpenResult as Po, QueryResourceItem as Pr, ThemeColorPickerProps as Ps, SubprocessHandle as Pt, ProcessFailureSnapshot as Pu, ProtocolProcesses as Q, ConnectionStatus as Qa, GatewayPlatform as Qc, ToolDeliveryObserver as Qd, FileReaderCloseResult as Qi, ArtifactIdentity as Ql, ModelSessionPolicy as Qn, ProgressProps as Qo, SessionModelControls as Qr, WebShellLauncher as Qs, ToolRegistrationFields as Qt, GenerationModel as Qu, ParticipantChange as R, CommandArgument as Ra, AttachmentReader as Rc, ReadableSource as Rd, FileReferenceReader as Ri, ExternalOperationReceipt as Rl, EffortLevel as Rn, NotificationHost as Ro, QueryResourceSnapshot as Rr, ToastProviderProps as Rs, SubprocessRecord as Rt, ModelCatalogueSource as Ru, InboxNotice as S, BrowserStore as Sa, ClientFileStage as Sc, HostLog as Sd, OwnerSessionContext as Si, Transport as Sl, SandboxHost as Sn, FieldBinding as So, FenceVerdict as Sr, SkeletonShape as Ss, SessionClientFrame as St, ResourceValidationLease as Su, LoginChallenge as T, CallParams as Ta, ClientFilesAvailability as Tc, LogFailure as Td, PtyCleanupResult as Ti, BackgroundTask as Tl, SandboxPathLocator as Tn, FilterChipsProps as To, ContextRequestObservation as Tr, SlotName as Ts, SessionDeliveryService as Tt, DenialCollector as Tu, PluginToolContentResult as U, ComposerControlsProps as Ua, ModelFailureInput as Uc, SandboxReadables as Ud, FilePreviewOutletProps as Ui, OwnerOperationRow as Ul, MediaFate as Un, PaginationLabels as Uo, CapabilityRegistries as Ur, ToolPresentation as Us, SubprocessWindow as Ut, GenerationArtifactAuthorization as Uu, PluginEffectKind as V, ComposerCommand as Va, AgentExecution as Vc, ReadableTarget as Vd, FilePreviewHandle as Vi, OwnerOperationInput as Vl, InspectionInput as Vn, NotificationState as Vo, ContextHistoryPolicy as Vr, ToolGroupPresentation as Vs, SubprocessState as Vt, ChatCapability as Vu, PluginToolResult as W, ComposerDraftDocument as Wa, CredentialClearItem as Wc, ToolCatalog as Wd, FilePreviewProps as Wi, OwnerOperationRows as Wl, MediaPlan as Wn, PaginationProps as Wo, CapabilityRegistry as Wr, ToolPresentationProps as Ws, ToolCatalogAllowance as Wt, GenerationCapability as Wu, ProtocolProcess as X, ComposerSubscribe as Xa, FilePublication as Xc, SessionSkillReadables as Xd, MarkdownReferenceOrigin as Xi, AdmissionHistory as Xl, StoredParams as Xn, PluginFrameEvent as Xo, SessionDelegationObserver as Xr, WebModule as Xs, ToolOutputPolicySnapshot as Xt, GenerationInputSelectors as Xu, PreparedShellExecution as Y, ComposerStartPolicySource as Ya, ConfigurationPersistence as Yc, CommittedToolDelivery as Yd, FileReferenceResolveResult as Yi, ActivationConstraints as Yl, ResolvedParams as Yn, PendingRequestPresentation as Yo, SessionContextMaintenanceResult as Yr, WebContext as Ys, ToolOutputAllowance as Yt, GenerationInputFile as Yu, ProtocolProcessStart as Z, ConnectionState as Za, FoundationIdentity as Zc, ToolDelivery as Zd, MarkdownReferenceResolver as Zi, AdmissionReceipt as Zl, ModelDispatchPolicy as Zn, PresenceState as Zo, SessionModelChoices as Zr, WebRuntimeVersion as Zs, ToolRegistration as Zt, GenerationInputsService as Zu, DeliveryWrites as _, BreadcrumbProps as _a, ClientFileDirectoryStage as _c, StyleFacts as _d, ContextRestoreResult as _i, PublicationTarget as _l, SessionRelation as _n, ExtensionManagementProjection as _o, FenceMany as _r, SettingsCategoryProps as _s, SearchProviderCall as _t, AuthorizationResourceReceipts as _u, ApprovalResult as a, AgentRunSettingsProps as aa, ByteTransport as ac, GenerationResultState as ad, WidgetRegistry as af, AgentCreationInput as ai, HostFiles as al, TriggerSourceRegistration as an, DataTableColumn as ao, McpAgentConfig as ar, RunItemAction as as, SandboxAuthorization as at, HostIdentity as au, ExecutionAuthority as b, BrowserPendingRequest as ba, ClientFileReader as bc, PerformanceObserver as bd, SessionContextHistory as bi, SqliteStorageResources as bl, ConfigurationTransactions as bn, ExtensionSelectionActionOptions as bo, FencePathIdentity as br, SingleOccupantSlot as bs, SearchProviderType as bt, ResourceAuthorizationSnapshot as bu, BroadcastClientFrame as c, AuthenticationFailure as ca, StreamConnection as cc, ProviderCatalogContribution as cd, AgentDefinitionSnapshot as ci, LocalInfrastructure as cl, WebCheck as cn, DataTablePagination as co, FileObservation as cr, RunSectionCall as cs, SandboxPermissions as ct, InstallationBatchRequest as cu, ClientFrame as d, AvatarShape as da, TransferProgress as dc, CatalogEntry as dd, AgentDataSchemas as di, PlatformStorage as dl, WebOpenRequest as dn, DesktopPresenceHost as do, ReadCoverage as dr, SelectProps as ds, SandboxRefusalReason as dt, InstallationPreview as du, HostFileReader as ea, WidgetProps as ec, GenerationOperation as ed, JsonObject as ef, SessionCreateOptions as ei, HopResponse as el, TriggerDefinitionInput as en, ContentMatch as eo, GenerationRuntime as er, ReadonlyFileViewerProps as es, ProviderFieldKind as et, ArtifactWarning as eu, ClientFrameHandle as f, BadgeShape as fa, OwnerContextOrigin as fc, CatalogGeneration as fd, AgentCapabilityHost as fi, PlatformValidation as fl, WebOpenResult as fn, DesktopPresenceService as fo, ReadLineRange as fr, SeparatorProps as fs, SandboxRequest as ft, InstallationRequest as fu, CredentialsService as g, BreadcrumbItem as ga, ClientFileDirectory as gc, ReasoningOption as gd, ContextRestoreInput as gi, PublicationResult as gl, SessionAdmission as gn, ExtensionEnablePreparation as go, ImageResourceVariant as gr, SessionProps as gs, SearchHit as gt, PreparedArtifact as gu, CredentialStatus as h, BaselineStatus as ha, ClientDirectoryListing as hc, ProviderLoginState as hd, ContextHistoryFile as hi, PublicationObservation as hl, SessionWorkingDirectory as hn, EmptyStateProps as ho, ImageResourceInfo as hr, SessionChannelProps as hs, SearchAvailability as ht, PlatformTarget as hu, ApprovalRequest as i, AgentIdentityProps as ia, ByteRead as ic, GenerationRequest as id, WidgetRegistration as if, AgentCreation as ii, HostEnvironmentPolicy as il, TriggerSourceHost as in, DataTableCategory as io, ModelInputs as ir, ResolvedMarkdownImage as is, Sandbox as it, ExtensionSelection as iu, ModelProtocolType as j, ChatSlots as ja, ClientStreamConnection as jc, PluginLog as jd, PtyServiceFactory as ji, AgentRunResultSource as jl, RuleAttachment as jn, InputGroupProps as jo, QueryCleanupReport as jr, StepperProps as js, Subprocess as jt, PathObservationLease as ju, LoginResult as k, ChannelTab as ka, ClientResourceResponse as kc, LogRecordInput as kd, PtyOutput as ki, AgentRunPlan as kl, ResourceSecurity as kn, IconProps as ko, PromptCategoryBytes as kr, StatusBarAreaProps as ks, SessionNotice as kt, PathIdentityToken as ku, BroadcastFrameHandle as l, AvatarAlgorithm as la, StreamTransport as lc, ProviderCatalogVendor as ld, AgentDefinitionSummary as li, PlatformNetwork as ll, WebFailureReason as ln, DataTableProps as lo, FileObservations as lr, RunSectionProps as ls, SandboxPlan as lt, InstallationObservation as lu, ClientUi as m, BaselineReadiness as ma, FileReferenceFormatter as mc, OutputLimitPolicy as md, ContextHistoryFailure as mi, PublicationIdentity as ml, AgentToolContexts as mn, DrawerProps as mo, FileVariantPolicy as mr, SessionActionTarget as ms, Search as mt, PackageContent as mu, ApprovalChoice as n, AgentFieldProps as na, WidgetRendererRegistry as nc, GenerationPort as nd, MessageTextRenderer as nf, AgentDefinitionManagement as ni, HostCommandInspection as nl, TriggerOutcome as nn, ControlOrientation as no, ModelDeclarationViews as nr, RelatedSessionPresentation as ns, ProviderLoginMethod as nt, DependencyNode as nu, ApprovalSource as o, AgentTabProps as oa, ClientSaveTarget as oc, GenerationService as od, PluginDependencies as of, AgentDefinition as oi, HostParsedCommand as ol, TriggersService as on, DataTableFilter as oo, McpSelectionStorage as or, RunItemProps as os, SandboxAvailability as ot, HostRequirements as ou, ClientMethod as p, BadgeVariant as pa, OwnerContextReading as pc, ModelCatalogueSnapshot as pd, ContextHistoryEntry as pi, PublicationFailure as pl, WorkLifecycle as pn, Dispose as po, FileMediaService as pr, SessionActionProps as ps, SandboxedPlan as pt, PackageArtifacts as pu, PreparedModelConnection as q, ComposerFilePolicy as qa, HostUnitOfWork as qc, ToolExposurePolicy as qd, FilePreviewState as qi, NetworkRouting as ql, PlannedFile as qn, PathInputProps as qo, DelegatedSessionTask as qr, TranscriptTurn as qs, ToolGuidance as qt, GenerationFailure as qu, ApprovalDecision as r, AgentIdentityPresentation as ra, WorkspaceSelectionState as rc, GenerationPreparation as rd, WidgetInput as rf, PreparedAgentConfigurationSave as ri, HostCommands as rl, TriggerRunKind as rn, ControlSize as ro, ContextMeasurementService as rr, RelatedSessionTarget as rs, RoutedToolRegistration as rt, ExtensionInstallation as ru, AsyncHumanRequestInput as s, AttachmentItem as sa, ResourceMetadata as sc, PreparedGenerationInputs as sd, AgentDefinitionPatch as si, HostPlatform as sl, Web as sn, DataTableGroup as so, HostIdentityService as sr, RunItemState as ss, SandboxExecution as st, InstallationAttemptContext as su, Approval as t, AgentConfigurationEditor as ta, WidgetRendererRegistration as tc, GenerationOutputKind as td, JsonValue as tf, SessionCreationReceipt as ti, HostAsyncFiles as tl, TriggerDefinitionView as tn, Contribution as to, ModelRuntime as tr, RelatedSessionActions as ts, ProviderLogin as tt, ContentEntry as tu, ClientCallContext as u, AvatarProps as ua, TransferOptions as uc, ToolAvailabilityView as ud, AgentPromptTexts as ui, PlatformOwnerLease as ul, WebObservation as un, DataTableSelection as uo, FileReadObservation as ur, SecretInputProps as us, SandboxPlanResult as ut, InstallationOperation as uu, DirectShellPlan as v, BrowserCallOptions as va, ClientFileEntry as vc, VendorEndpointFacts as vd, ContextSearchInput as vi, RuntimePlatform as vl, AuthorizationResources as vn, ExtensionRowActionOptions as vo, FenceManyInput as vr, ShellDialogProps as vs, SearchProviderConnection as vt, ResourceAuthorizationAdmission as vu, LocalNetworkPermission as w, CalendarDate as wa, ClientFiles as wc, LogDrainResult as wd, PtyAvailability as wi, BackgroundComputationPort as wl, SettingsParticipant as wn, FilterChipOption as wo, ContextFramework as wr, SlotLabel as ws, SessionDeliveryInput as wt, WorkspaceDirectoryNote as wu, HostModelPort as x, BrowserServices as xa, ClientFileScratch as xc, PerformanceTelemetry as xd, OwnerContextPreparation as xi, StdFs as xl, PreparedSettingsWrite as xn, ExternalLinkProps as xo, FenceRoots as xr, SkeletonProps as xs, SearchRequest as xt, ResourceReceiptClaim as xu, ExecutableToolRegistration as y, BrowserGateway as ya, ClientFileObservation as yc, PerformanceObservation as yd, ContextSearchResult as yi, SandboxBackend as yl, AuthorizationStrategy as yn, ExtensionSectionProps as yo, FenceManyVerdict as yr, ShellSlots as ys, SearchProviderProbe as yt, ResourceAuthorizationScope as yu, Plugin as z, CommandInput as za, AttachmentReference as zc, ReadableSourceHandle as zd, FileReferenceSource as zi, ExternalOperationRecovery as zl, FailureKind as zn, NotificationPayload as zo, QueryResources as zr, ToolCall as zs, SubprocessStartFailure as zt, ModelEntryResolution as zu };