@nekro-nxt/contracts 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1433 -194
- package/dist/index.mjs.map +1 -1
- package/lib/types/community.d.ts +9 -0
- package/lib/types/community.d.ts.map +1 -1
- package/lib/types/config-schema.d.ts +16 -2
- package/lib/types/config-schema.d.ts.map +1 -1
- package/lib/types/credentials.d.ts +328 -0
- package/lib/types/credentials.d.ts.map +1 -0
- package/lib/types/domain.d.ts +11 -2
- package/lib/types/domain.d.ts.map +1 -1
- package/lib/types/extension-capabilities.d.ts +151 -5
- package/lib/types/extension-capabilities.d.ts.map +1 -1
- package/lib/types/extension-ui.d.ts +117 -6
- package/lib/types/extension-ui.d.ts.map +1 -1
- package/lib/types/host-api.d.ts +3494 -603
- package/lib/types/host-api.d.ts.map +1 -1
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/linked-accounts.d.ts +100 -0
- package/lib/types/linked-accounts.d.ts.map +1 -0
- package/lib/types/response-timing.d.ts +60 -0
- package/lib/types/response-timing.d.ts.map +1 -0
- package/lib/types/runtime-compatibility.d.ts +2 -2
- package/package.json +1 -1
- package/src/community.ts +7 -0
- package/src/config-schema.ts +33 -2
- package/src/credentials.ts +260 -0
- package/src/domain.ts +15 -2
- package/src/extension-capabilities.ts +260 -8
- package/src/extension-ui.ts +16 -1
- package/src/host-api.ts +911 -167
- package/src/index.ts +3 -0
- package/src/linked-accounts.ts +77 -0
- package/src/management-api.ts +1 -1
- package/src/response-timing.ts +77 -0
|
@@ -5,8 +5,17 @@ import { z } from 'zod';
|
|
|
5
5
|
* ships; never reuse a level for a different meaning. Level 7 is Manifest V7 (host instance + agent attachments); level 8 adds the asset library, image info, tool result
|
|
6
6
|
* images, the search index and host-layer model calls. Level 9 adds the structured logger and explicit chat commands. Level 10 adds version lineage, the data version with its
|
|
7
7
|
* migration hook and administrator-only commands. Level 11 lists the pictures of an inbound message to inbound hooks.
|
|
8
|
+
* Level 12 adds credential placeholders (`secrets.placeholder`) that `http.fetch` fills for the credential's domains.
|
|
9
|
+
* Level 13 adds outbound processing (`harness.onOutbound`, `permissions.agent.outbound`).
|
|
10
|
+
* Level 14 adds work files (`files`), reading Asset bytes (`assets.read`), high-detail tool images (`toolImages`),
|
|
11
|
+
* long-running tools (`timeoutSeconds`, `execute(args, { signal, progress })`), media processing (`media`), command
|
|
12
|
+
* profiles (`commands`) and speech to text (`speech`).
|
|
8
13
|
*/
|
|
9
|
-
export declare const EXTENSION_SDK_LEVEL =
|
|
14
|
+
export declare const EXTENSION_SDK_LEVEL = 14;
|
|
15
|
+
/** Work files, Asset reads, high-detail tool images, tool time limits, media, commands and speech need this level. */
|
|
16
|
+
export declare const EXTENSION_FILES_SDK_LEVEL = 14;
|
|
17
|
+
/** Outbound processing needs this level; packages that declare `permissions.agent.outbound` declare it. */
|
|
18
|
+
export declare const EXTENSION_OUTBOUND_SDK_LEVEL = 13;
|
|
10
19
|
/** Lineage, `dataVersion` and administrator-only commands need this level; packages that carry them declare it. */
|
|
11
20
|
export declare const EXTENSION_GOVERNANCE_SDK_LEVEL = 10;
|
|
12
21
|
/**
|
|
@@ -87,6 +96,25 @@ export declare const ExtensionInboundHookCapabilitySchema: z.ZodObject<{
|
|
|
87
96
|
timeoutMs: z.ZodNumber;
|
|
88
97
|
}, z.core.$strict>;
|
|
89
98
|
export type ExtensionInboundHookCapability = z.output<typeof ExtensionInboundHookCapabilitySchema>;
|
|
99
|
+
export declare const EXTENSION_OUTBOUND_MAX_TIMEOUT_MS = 15000;
|
|
100
|
+
/**
|
|
101
|
+
* Outbound processing of the agent's own messages. `read` sees each message after it was delivered; `transform` may
|
|
102
|
+
* replace its content or append messages before it is sent; `cancel` may stop it. `onTimeout` decides what happens
|
|
103
|
+
* when the handler times out or throws before sending: `send` (default) sends the message as it is.
|
|
104
|
+
*/
|
|
105
|
+
export declare const ExtensionOutboundCapabilitySchema: z.ZodObject<{
|
|
106
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
107
|
+
transform: z.ZodOptional<z.ZodLiteral<true>>;
|
|
108
|
+
cancel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
109
|
+
timeoutMs: z.ZodNumber;
|
|
110
|
+
onTimeout: z.ZodOptional<z.ZodEnum<{
|
|
111
|
+
cancel: "cancel";
|
|
112
|
+
send: "send";
|
|
113
|
+
}>>;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
export type ExtensionOutboundCapability = z.output<typeof ExtensionOutboundCapabilitySchema>;
|
|
116
|
+
/** Whether the extension takes part before sending (and so in the agent's processing order). */
|
|
117
|
+
export declare const outboundProcessesBeforeSend: (outbound: ExtensionOutboundCapability | undefined) => boolean;
|
|
90
118
|
export declare const EXTENSION_JOB_MAX_RUNTIME = 50;
|
|
91
119
|
export declare const ExtensionDeclaredJobSchema: z.ZodObject<{
|
|
92
120
|
id: z.ZodString;
|
|
@@ -123,15 +151,63 @@ export declare const ExtensionAssetLibraryCapabilitySchema: z.ZodObject<{
|
|
|
123
151
|
export type ExtensionAssetLibraryCapability = z.output<typeof ExtensionAssetLibraryCapabilitySchema>;
|
|
124
152
|
/**
|
|
125
153
|
* `write` creates Assets in the current channel; `library` keeps Assets in the extension's own library so they can be
|
|
126
|
-
* used in any channel later.
|
|
154
|
+
* used in any channel later; `read` reads the bytes of Assets the current channel can see or the library holds.
|
|
127
155
|
*/
|
|
128
156
|
export declare const ExtensionAssetsCapabilitySchema: z.ZodObject<{
|
|
129
157
|
write: z.ZodOptional<z.ZodLiteral<true>>;
|
|
130
158
|
library: z.ZodOptional<z.ZodObject<{
|
|
131
159
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
132
160
|
}, z.core.$strict>>;
|
|
161
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
133
162
|
}, z.core.$strict>;
|
|
134
163
|
export type ExtensionAssetsCapability = z.output<typeof ExtensionAssetsCapabilitySchema>;
|
|
164
|
+
export declare const EXTENSION_FILES_DEFAULT_TEMP_QUOTA_BYTES: number;
|
|
165
|
+
export declare const EXTENSION_FILES_DEFAULT_CACHE_QUOTA_BYTES: number;
|
|
166
|
+
export declare const EXTENSION_FILES_MAX_QUOTA_BYTES: number;
|
|
167
|
+
/**
|
|
168
|
+
* Work files passed between services by `fileId`. Temporary files expire a day after they are written; cache entries
|
|
169
|
+
* stay until the cache quota is full, then the least recently used go first.
|
|
170
|
+
*/
|
|
171
|
+
export declare const ExtensionFilesCapabilitySchema: z.ZodObject<{
|
|
172
|
+
tempQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
cacheQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
export type ExtensionFilesCapability = z.output<typeof ExtensionFilesCapabilitySchema>;
|
|
176
|
+
/** Tool result pictures with `detail: 'high'` reach the model at up to 2048 px on the long side. */
|
|
177
|
+
export declare const ExtensionToolImagesCapabilitySchema: z.ZodObject<{
|
|
178
|
+
highDetail: z.ZodLiteral<true>;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
export type ExtensionToolImagesCapability = z.output<typeof ExtensionToolImagesCapabilitySchema>;
|
|
181
|
+
/**
|
|
182
|
+
* Add-ons (附加功能) whose capability an extension can use. The ids match `AddonIdSchema` in host-api; they are
|
|
183
|
+
* repeated here so manifests validate without it.
|
|
184
|
+
*/
|
|
185
|
+
export type ExtensionAddonId = 'media' | 'speech';
|
|
186
|
+
/**
|
|
187
|
+
* Command profiles extensions may run (`nxt.commands`, 附加功能 F7), and the add-on that provides each program. A new
|
|
188
|
+
* program needs a profile on the server and a row here.
|
|
189
|
+
*/
|
|
190
|
+
export declare const ExtensionCommandProfileIdSchema: z.ZodEnum<{
|
|
191
|
+
ffmpeg: "ffmpeg";
|
|
192
|
+
ffprobe: "ffprobe";
|
|
193
|
+
}>;
|
|
194
|
+
export type ExtensionCommandProfileId = z.output<typeof ExtensionCommandProfileIdSchema>;
|
|
195
|
+
export declare const EXTENSION_COMMAND_PROFILES: Readonly<Record<ExtensionCommandProfileId, ExtensionAddonId>>;
|
|
196
|
+
/** Programs run through their command profiles: confined to the call's own files, without network. */
|
|
197
|
+
export declare const ExtensionCommandsCapabilitySchema: z.ZodObject<{
|
|
198
|
+
profiles: z.ZodArray<z.ZodEnum<{
|
|
199
|
+
ffmpeg: "ffmpeg";
|
|
200
|
+
ffprobe: "ffprobe";
|
|
201
|
+
}>>;
|
|
202
|
+
}, z.core.$strict>;
|
|
203
|
+
export type ExtensionCommandsCapability = z.output<typeof ExtensionCommandsCapabilitySchema>;
|
|
204
|
+
export declare const EXTENSION_SPEECH_MAX_CALLS_PER_MINUTE = 60;
|
|
205
|
+
export declare const EXTENSION_SPEECH_DEFAULT_CALLS_PER_MINUTE = 10;
|
|
206
|
+
/** Speech to text with the provider chosen in 设置 → 附加功能, which may be a cloud service. */
|
|
207
|
+
export declare const ExtensionSpeechCapabilitySchema: z.ZodObject<{
|
|
208
|
+
maxCallsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
export type ExtensionSpeechCapability = z.output<typeof ExtensionSpeechCapabilitySchema>;
|
|
135
211
|
export declare const EXTENSION_INDEX_MAX_TEXT_FIELDS = 4;
|
|
136
212
|
export declare const EXTENSION_INDEX_MAX_FILTERS = 4;
|
|
137
213
|
/**
|
|
@@ -165,9 +241,14 @@ export declare const ExtensionModelsCapabilitySchema: z.ZodObject<{
|
|
|
165
241
|
maxOutputTokens: z.ZodNumber;
|
|
166
242
|
}, z.core.$strict>;
|
|
167
243
|
export type ExtensionModelsCapability = z.output<typeof ExtensionModelsCapabilitySchema>;
|
|
168
|
-
/**
|
|
244
|
+
/**
|
|
245
|
+
* A header or environment value: literal text, the current value of a `meta.role: 'secret'` config field, or a named
|
|
246
|
+
* credential (by id or name) that the agent may use.
|
|
247
|
+
*/
|
|
169
248
|
export declare const ExtensionMcpValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
170
249
|
secret: z.ZodString;
|
|
250
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
251
|
+
credential: z.ZodString;
|
|
171
252
|
}, z.core.$strict>]>;
|
|
172
253
|
export type ExtensionMcpValue = z.output<typeof ExtensionMcpValueSchema>;
|
|
173
254
|
/** Becomes the model-facing tool prefix `mcp__<name>__`. */
|
|
@@ -178,6 +259,8 @@ export declare const ExtensionMcpServerSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
178
259
|
url: z.ZodString;
|
|
179
260
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
180
261
|
secret: z.ZodString;
|
|
262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
263
|
+
credential: z.ZodString;
|
|
181
264
|
}, z.core.$strict>]>>>;
|
|
182
265
|
}, z.core.$strict>, z.ZodObject<{
|
|
183
266
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -186,6 +269,8 @@ export declare const ExtensionMcpServerSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
186
269
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
187
270
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
188
271
|
secret: z.ZodString;
|
|
272
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
273
|
+
credential: z.ZodString;
|
|
189
274
|
}, z.core.$strict>]>>>;
|
|
190
275
|
}, z.core.$strict>], "transport">;
|
|
191
276
|
export type ExtensionMcpServer = z.output<typeof ExtensionMcpServerSchema>;
|
|
@@ -200,6 +285,8 @@ export declare const ExtensionMcpCapabilitySchema: z.ZodObject<{
|
|
|
200
285
|
url: z.ZodString;
|
|
201
286
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
202
287
|
secret: z.ZodString;
|
|
288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
289
|
+
credential: z.ZodString;
|
|
203
290
|
}, z.core.$strict>]>>>;
|
|
204
291
|
}, z.core.$strict>, z.ZodObject<{
|
|
205
292
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -208,6 +295,8 @@ export declare const ExtensionMcpCapabilitySchema: z.ZodObject<{
|
|
|
208
295
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
209
296
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
210
297
|
secret: z.ZodString;
|
|
298
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
299
|
+
credential: z.ZodString;
|
|
211
300
|
}, z.core.$strict>]>>>;
|
|
212
301
|
}, z.core.$strict>], "transport">>;
|
|
213
302
|
}, z.core.$strict>;
|
|
@@ -220,6 +309,7 @@ export declare const McpServerFormSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
220
309
|
name: z.ZodString;
|
|
221
310
|
value: z.ZodString;
|
|
222
311
|
secret: z.ZodDefault<z.ZodBoolean>;
|
|
312
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
223
313
|
}, z.core.$strict>>>;
|
|
224
314
|
}, z.core.$strict>, z.ZodObject<{
|
|
225
315
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -230,6 +320,7 @@ export declare const McpServerFormSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
230
320
|
name: z.ZodString;
|
|
231
321
|
value: z.ZodString;
|
|
232
322
|
secret: z.ZodDefault<z.ZodBoolean>;
|
|
323
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
233
324
|
}, z.core.$strict>>>;
|
|
234
325
|
}, z.core.$strict>], "transport">;
|
|
235
326
|
export type McpServerForm = z.output<typeof McpServerFormSchema>;
|
|
@@ -264,6 +355,24 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
264
355
|
library: z.ZodOptional<z.ZodObject<{
|
|
265
356
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
266
357
|
}, z.core.$strict>>;
|
|
358
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
359
|
+
}, z.core.$strict>>;
|
|
360
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
361
|
+
tempQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
362
|
+
cacheQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
363
|
+
}, z.core.$strict>>;
|
|
364
|
+
toolImages: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
highDetail: z.ZodLiteral<true>;
|
|
366
|
+
}, z.core.$strict>>;
|
|
367
|
+
media: z.ZodOptional<z.ZodLiteral<true>>;
|
|
368
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
369
|
+
profiles: z.ZodArray<z.ZodEnum<{
|
|
370
|
+
ffmpeg: "ffmpeg";
|
|
371
|
+
ffprobe: "ffprobe";
|
|
372
|
+
}>>;
|
|
373
|
+
}, z.core.$strict>>;
|
|
374
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
maxCallsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
267
376
|
}, z.core.$strict>>;
|
|
268
377
|
index: z.ZodOptional<z.ZodObject<{
|
|
269
378
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -291,6 +400,16 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
291
400
|
mayForceTrigger: z.ZodBoolean;
|
|
292
401
|
timeoutMs: z.ZodNumber;
|
|
293
402
|
}, z.core.$strict>>;
|
|
403
|
+
outbound: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
405
|
+
transform: z.ZodOptional<z.ZodLiteral<true>>;
|
|
406
|
+
cancel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
407
|
+
timeoutMs: z.ZodNumber;
|
|
408
|
+
onTimeout: z.ZodOptional<z.ZodEnum<{
|
|
409
|
+
cancel: "cancel";
|
|
410
|
+
send: "send";
|
|
411
|
+
}>>;
|
|
412
|
+
}, z.core.$strict>>;
|
|
294
413
|
jobs: z.ZodOptional<z.ZodObject<{
|
|
295
414
|
declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
296
415
|
id: z.ZodString;
|
|
@@ -320,6 +439,8 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
320
439
|
url: z.ZodString;
|
|
321
440
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
322
441
|
secret: z.ZodString;
|
|
442
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
443
|
+
credential: z.ZodString;
|
|
323
444
|
}, z.core.$strict>]>>>;
|
|
324
445
|
}, z.core.$strict>, z.ZodObject<{
|
|
325
446
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -328,6 +449,8 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
328
449
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
329
450
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
330
451
|
secret: z.ZodString;
|
|
452
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
453
|
+
credential: z.ZodString;
|
|
331
454
|
}, z.core.$strict>]>>>;
|
|
332
455
|
}, z.core.$strict>], "transport">>;
|
|
333
456
|
}, z.core.$strict>>;
|
|
@@ -360,9 +483,24 @@ export declare const HostLayerCapabilitiesSchema: z.ZodObject<{
|
|
|
360
483
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
361
484
|
}, z.core.$strict>>;
|
|
362
485
|
assets: z.ZodOptional<z.ZodObject<{
|
|
363
|
-
library: z.ZodObject<{
|
|
486
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
364
487
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
365
|
-
}, z.core.$strict
|
|
488
|
+
}, z.core.$strict>>;
|
|
489
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
490
|
+
}, z.core.$strict>>;
|
|
491
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
tempQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
493
|
+
cacheQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
}, z.core.$strict>>;
|
|
495
|
+
media: z.ZodOptional<z.ZodLiteral<true>>;
|
|
496
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
497
|
+
profiles: z.ZodArray<z.ZodEnum<{
|
|
498
|
+
ffmpeg: "ffmpeg";
|
|
499
|
+
ffprobe: "ffprobe";
|
|
500
|
+
}>>;
|
|
501
|
+
}, z.core.$strict>>;
|
|
502
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
maxCallsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
366
504
|
}, z.core.$strict>>;
|
|
367
505
|
index: z.ZodOptional<z.ZodObject<{
|
|
368
506
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -395,7 +533,15 @@ export interface ExtensionCapabilitySummaryItem {
|
|
|
395
533
|
readonly risk: ExtensionCapabilityRisk;
|
|
396
534
|
readonly label: string;
|
|
397
535
|
readonly detail?: string;
|
|
536
|
+
/** For a high-risk capability with limits: what it stays within, shown where the user accepts the risk. */
|
|
537
|
+
readonly scope?: string;
|
|
398
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* Add-ons the declared capabilities need (附加功能 F13), in a stable order: `media` needs 媒体处理, `speech` needs
|
|
541
|
+
* 语音识别, and each command profile needs the add-on that provides its program. Pass both layers, host-layer ones
|
|
542
|
+
* through {@link hostLayerAsCapabilities}.
|
|
543
|
+
*/
|
|
544
|
+
export declare const requiredExtensionAddons: (...layers: readonly (ExtensionCapabilities | undefined)[]) => readonly ExtensionAddonId[];
|
|
399
545
|
/**
|
|
400
546
|
* User-facing summary of declared capabilities, in a stable order, for approval and inspection pages. `layer: 'host'`
|
|
401
547
|
* phrases host-layer capabilities (passed through {@link hostLayerAsCapabilities}) for the host instance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-capabilities.d.ts","sourceRoot":"","sources":["../../src/extension-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB
|
|
1
|
+
{"version":3,"file":"extension-capabilities.d.ts","sourceRoot":"","sources":["../../src/extension-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC,sHAAsH;AACtH,eAAO,MAAM,yBAAyB,KAAK,CAAA;AAE3C,2GAA2G;AAC3G,eAAO,MAAM,4BAA4B,KAAK,CAAA;AAE9C,mHAAmH;AACnH,eAAO,MAAM,8BAA8B,KAAK,CAAA;AAEhD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAUjG,CAAA;AAED,wGAAwG;AACxG,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,MAAM,GAAG,SACc,CAAA;AAE3E,6EAA6E;AAC7E,eAAO,MAAM,wBAAwB,IAAI,CAAA;AAEzC,eAAO,MAAM,uBAAuB;;kBAAgE,CAAA;AACpG,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAExE,8GAA8G;AAC9G,eAAO,MAAM,4BAA4B,aAOrC,CAAA;AAEJ,eAAO,MAAM,gCAAgC;;;;;;;;;4BAqB3C,CAAA;AACF,MAAM,MAAM,0BAA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,CAAC,CAAA;AAEhF,2HAA2H;AAC3H,eAAO,MAAM,uBAAuB,GAAI,MAAM,qBAAqB,GAAG,SAAS,KAAG,qBAAqB,GAAG,SA2BnG,CAAA;AAsBP;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GACtC,UAAU,qBAAqB,GAAG,SAAS,EAC3C,MAAM,qBAAqB,GAAG,SAAS,KACtC,OAyEF,CAAA;AAOD,wFAAwF;AACxF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,CAAA;AAErE,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAA;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,2GAA2G;IAC3G,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,GAAG,QAAQ,SAAS,CAAC,qBAAqB,GAAG,SAAS,CAAC,EAAE,KACxD,SAAS,gBAAgB,EAQ3B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,8BAA8B,GACzC,cAAc,qBAAqB,GAAG,SAAS,EAC/C,UAAS;IACP,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACjC,2GAA2G;IAC3G,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;CACzC,KACL,SAAS,8BAA8B,EAoMzC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const HostUiPermissionSchema: z.ZodEnum<{
|
|
3
|
+
"assets.read": "assets.read";
|
|
3
4
|
"agents.read": "agents.read";
|
|
4
5
|
"channels.read": "channels.read";
|
|
5
6
|
"connections.read": "connections.read";
|
|
@@ -7,7 +8,6 @@ export declare const HostUiPermissionSchema: z.ZodEnum<{
|
|
|
7
8
|
"dsh-plugins.read": "dsh-plugins.read";
|
|
8
9
|
"runtime.read": "runtime.read";
|
|
9
10
|
"messages.read": "messages.read";
|
|
10
|
-
"assets.read": "assets.read";
|
|
11
11
|
"agents.manage": "agents.manage";
|
|
12
12
|
"channels.manage": "channels.manage";
|
|
13
13
|
"connections.manage": "connections.manage";
|
|
@@ -276,6 +276,7 @@ export declare const HostUiNetworkOriginSchema: z.ZodPipe<z.ZodString, z.ZodTran
|
|
|
276
276
|
*/
|
|
277
277
|
export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
278
278
|
permissions: z.ZodArray<z.ZodEnum<{
|
|
279
|
+
"assets.read": "assets.read";
|
|
279
280
|
"agents.read": "agents.read";
|
|
280
281
|
"channels.read": "channels.read";
|
|
281
282
|
"connections.read": "connections.read";
|
|
@@ -283,7 +284,6 @@ export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
|
283
284
|
"dsh-plugins.read": "dsh-plugins.read";
|
|
284
285
|
"runtime.read": "runtime.read";
|
|
285
286
|
"messages.read": "messages.read";
|
|
286
|
-
"assets.read": "assets.read";
|
|
287
287
|
"agents.manage": "agents.manage";
|
|
288
288
|
"channels.manage": "channels.manage";
|
|
289
289
|
"connections.manage": "connections.manage";
|
|
@@ -318,6 +318,24 @@ export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
|
318
318
|
library: z.ZodOptional<z.ZodObject<{
|
|
319
319
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
320
320
|
}, z.core.$strict>>;
|
|
321
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
322
|
+
}, z.core.$strict>>;
|
|
323
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
tempQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
325
|
+
cacheQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
}, z.core.$strict>>;
|
|
327
|
+
toolImages: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
highDetail: z.ZodLiteral<true>;
|
|
329
|
+
}, z.core.$strict>>;
|
|
330
|
+
media: z.ZodOptional<z.ZodLiteral<true>>;
|
|
331
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
332
|
+
profiles: z.ZodArray<z.ZodEnum<{
|
|
333
|
+
ffmpeg: "ffmpeg";
|
|
334
|
+
ffprobe: "ffprobe";
|
|
335
|
+
}>>;
|
|
336
|
+
}, z.core.$strict>>;
|
|
337
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
338
|
+
maxCallsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
321
339
|
}, z.core.$strict>>;
|
|
322
340
|
index: z.ZodOptional<z.ZodObject<{
|
|
323
341
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -345,6 +363,16 @@ export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
|
345
363
|
mayForceTrigger: z.ZodBoolean;
|
|
346
364
|
timeoutMs: z.ZodNumber;
|
|
347
365
|
}, z.core.$strict>>;
|
|
366
|
+
outbound: z.ZodOptional<z.ZodObject<{
|
|
367
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
368
|
+
transform: z.ZodOptional<z.ZodLiteral<true>>;
|
|
369
|
+
cancel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
370
|
+
timeoutMs: z.ZodNumber;
|
|
371
|
+
onTimeout: z.ZodOptional<z.ZodEnum<{
|
|
372
|
+
cancel: "cancel";
|
|
373
|
+
send: "send";
|
|
374
|
+
}>>;
|
|
375
|
+
}, z.core.$strict>>;
|
|
348
376
|
jobs: z.ZodOptional<z.ZodObject<{
|
|
349
377
|
declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
378
|
id: z.ZodString;
|
|
@@ -374,6 +402,8 @@ export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
|
374
402
|
url: z.ZodString;
|
|
375
403
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
376
404
|
secret: z.ZodString;
|
|
405
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
406
|
+
credential: z.ZodString;
|
|
377
407
|
}, z.core.$strict>]>>>;
|
|
378
408
|
}, z.core.$strict>, z.ZodObject<{
|
|
379
409
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -382,6 +412,8 @@ export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
|
382
412
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
383
413
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
384
414
|
secret: z.ZodString;
|
|
415
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
416
|
+
credential: z.ZodString;
|
|
385
417
|
}, z.core.$strict>]>>>;
|
|
386
418
|
}, z.core.$strict>], "transport">>;
|
|
387
419
|
}, z.core.$strict>>;
|
|
@@ -402,6 +434,7 @@ export type HostUiPermissionDeclaration = z.output<typeof HostUiPermissionDeclar
|
|
|
402
434
|
*/
|
|
403
435
|
export declare const ExtensionPermissionsSchema: z.ZodObject<{
|
|
404
436
|
permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
437
|
+
"assets.read": "assets.read";
|
|
405
438
|
"agents.read": "agents.read";
|
|
406
439
|
"channels.read": "channels.read";
|
|
407
440
|
"connections.read": "connections.read";
|
|
@@ -409,7 +442,6 @@ export declare const ExtensionPermissionsSchema: z.ZodObject<{
|
|
|
409
442
|
"dsh-plugins.read": "dsh-plugins.read";
|
|
410
443
|
"runtime.read": "runtime.read";
|
|
411
444
|
"messages.read": "messages.read";
|
|
412
|
-
"assets.read": "assets.read";
|
|
413
445
|
"agents.manage": "agents.manage";
|
|
414
446
|
"channels.manage": "channels.manage";
|
|
415
447
|
"connections.manage": "connections.manage";
|
|
@@ -434,9 +466,24 @@ export declare const ExtensionPermissionsSchema: z.ZodObject<{
|
|
|
434
466
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
435
467
|
}, z.core.$strict>>;
|
|
436
468
|
assets: z.ZodOptional<z.ZodObject<{
|
|
437
|
-
library: z.ZodObject<{
|
|
469
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
438
470
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
439
|
-
}, z.core.$strict
|
|
471
|
+
}, z.core.$strict>>;
|
|
472
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
473
|
+
}, z.core.$strict>>;
|
|
474
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
475
|
+
tempQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
cacheQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
477
|
+
}, z.core.$strict>>;
|
|
478
|
+
media: z.ZodOptional<z.ZodLiteral<true>>;
|
|
479
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
480
|
+
profiles: z.ZodArray<z.ZodEnum<{
|
|
481
|
+
ffmpeg: "ffmpeg";
|
|
482
|
+
ffprobe: "ffprobe";
|
|
483
|
+
}>>;
|
|
484
|
+
}, z.core.$strict>>;
|
|
485
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
486
|
+
maxCallsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
440
487
|
}, z.core.$strict>>;
|
|
441
488
|
index: z.ZodOptional<z.ZodObject<{
|
|
442
489
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -478,6 +525,24 @@ export declare const ExtensionPermissionsSchema: z.ZodObject<{
|
|
|
478
525
|
library: z.ZodOptional<z.ZodObject<{
|
|
479
526
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
480
527
|
}, z.core.$strict>>;
|
|
528
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
529
|
+
}, z.core.$strict>>;
|
|
530
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
531
|
+
tempQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
532
|
+
cacheQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
533
|
+
}, z.core.$strict>>;
|
|
534
|
+
toolImages: z.ZodOptional<z.ZodObject<{
|
|
535
|
+
highDetail: z.ZodLiteral<true>;
|
|
536
|
+
}, z.core.$strict>>;
|
|
537
|
+
media: z.ZodOptional<z.ZodLiteral<true>>;
|
|
538
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
539
|
+
profiles: z.ZodArray<z.ZodEnum<{
|
|
540
|
+
ffmpeg: "ffmpeg";
|
|
541
|
+
ffprobe: "ffprobe";
|
|
542
|
+
}>>;
|
|
543
|
+
}, z.core.$strict>>;
|
|
544
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
545
|
+
maxCallsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
481
546
|
}, z.core.$strict>>;
|
|
482
547
|
index: z.ZodOptional<z.ZodObject<{
|
|
483
548
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -505,6 +570,16 @@ export declare const ExtensionPermissionsSchema: z.ZodObject<{
|
|
|
505
570
|
mayForceTrigger: z.ZodBoolean;
|
|
506
571
|
timeoutMs: z.ZodNumber;
|
|
507
572
|
}, z.core.$strict>>;
|
|
573
|
+
outbound: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
575
|
+
transform: z.ZodOptional<z.ZodLiteral<true>>;
|
|
576
|
+
cancel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
577
|
+
timeoutMs: z.ZodNumber;
|
|
578
|
+
onTimeout: z.ZodOptional<z.ZodEnum<{
|
|
579
|
+
cancel: "cancel";
|
|
580
|
+
send: "send";
|
|
581
|
+
}>>;
|
|
582
|
+
}, z.core.$strict>>;
|
|
508
583
|
jobs: z.ZodOptional<z.ZodObject<{
|
|
509
584
|
declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
510
585
|
id: z.ZodString;
|
|
@@ -534,6 +609,8 @@ export declare const ExtensionPermissionsSchema: z.ZodObject<{
|
|
|
534
609
|
url: z.ZodString;
|
|
535
610
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
536
611
|
secret: z.ZodString;
|
|
612
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
613
|
+
credential: z.ZodString;
|
|
537
614
|
}, z.core.$strict>]>>>;
|
|
538
615
|
}, z.core.$strict>, z.ZodObject<{
|
|
539
616
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -542,6 +619,8 @@ export declare const ExtensionPermissionsSchema: z.ZodObject<{
|
|
|
542
619
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
543
620
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
544
621
|
secret: z.ZodString;
|
|
622
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
623
|
+
credential: z.ZodString;
|
|
545
624
|
}, z.core.$strict>]>>>;
|
|
546
625
|
}, z.core.$strict>], "transport">>;
|
|
547
626
|
}, z.core.$strict>>;
|
|
@@ -688,6 +767,7 @@ export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
|
688
767
|
}, z.core.$strict>>;
|
|
689
768
|
permissions: z.ZodDefault<z.ZodObject<{
|
|
690
769
|
permissions: z.ZodArray<z.ZodEnum<{
|
|
770
|
+
"assets.read": "assets.read";
|
|
691
771
|
"agents.read": "agents.read";
|
|
692
772
|
"channels.read": "channels.read";
|
|
693
773
|
"connections.read": "connections.read";
|
|
@@ -695,7 +775,6 @@ export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
|
695
775
|
"dsh-plugins.read": "dsh-plugins.read";
|
|
696
776
|
"runtime.read": "runtime.read";
|
|
697
777
|
"messages.read": "messages.read";
|
|
698
|
-
"assets.read": "assets.read";
|
|
699
778
|
"agents.manage": "agents.manage";
|
|
700
779
|
"channels.manage": "channels.manage";
|
|
701
780
|
"connections.manage": "connections.manage";
|
|
@@ -730,6 +809,24 @@ export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
|
730
809
|
library: z.ZodOptional<z.ZodObject<{
|
|
731
810
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
732
811
|
}, z.core.$strict>>;
|
|
812
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
813
|
+
}, z.core.$strict>>;
|
|
814
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
815
|
+
tempQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
816
|
+
cacheQuotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
817
|
+
}, z.core.$strict>>;
|
|
818
|
+
toolImages: z.ZodOptional<z.ZodObject<{
|
|
819
|
+
highDetail: z.ZodLiteral<true>;
|
|
820
|
+
}, z.core.$strict>>;
|
|
821
|
+
media: z.ZodOptional<z.ZodLiteral<true>>;
|
|
822
|
+
commands: z.ZodOptional<z.ZodObject<{
|
|
823
|
+
profiles: z.ZodArray<z.ZodEnum<{
|
|
824
|
+
ffmpeg: "ffmpeg";
|
|
825
|
+
ffprobe: "ffprobe";
|
|
826
|
+
}>>;
|
|
827
|
+
}, z.core.$strict>>;
|
|
828
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
829
|
+
maxCallsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
733
830
|
}, z.core.$strict>>;
|
|
734
831
|
index: z.ZodOptional<z.ZodObject<{
|
|
735
832
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -757,6 +854,16 @@ export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
|
757
854
|
mayForceTrigger: z.ZodBoolean;
|
|
758
855
|
timeoutMs: z.ZodNumber;
|
|
759
856
|
}, z.core.$strict>>;
|
|
857
|
+
outbound: z.ZodOptional<z.ZodObject<{
|
|
858
|
+
read: z.ZodOptional<z.ZodLiteral<true>>;
|
|
859
|
+
transform: z.ZodOptional<z.ZodLiteral<true>>;
|
|
860
|
+
cancel: z.ZodOptional<z.ZodLiteral<true>>;
|
|
861
|
+
timeoutMs: z.ZodNumber;
|
|
862
|
+
onTimeout: z.ZodOptional<z.ZodEnum<{
|
|
863
|
+
cancel: "cancel";
|
|
864
|
+
send: "send";
|
|
865
|
+
}>>;
|
|
866
|
+
}, z.core.$strict>>;
|
|
760
867
|
jobs: z.ZodOptional<z.ZodObject<{
|
|
761
868
|
declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
762
869
|
id: z.ZodString;
|
|
@@ -786,6 +893,8 @@ export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
|
786
893
|
url: z.ZodString;
|
|
787
894
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
788
895
|
secret: z.ZodString;
|
|
896
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
897
|
+
credential: z.ZodString;
|
|
789
898
|
}, z.core.$strict>]>>>;
|
|
790
899
|
}, z.core.$strict>, z.ZodObject<{
|
|
791
900
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -794,6 +903,8 @@ export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
|
794
903
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
795
904
|
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
796
905
|
secret: z.ZodString;
|
|
906
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
907
|
+
credential: z.ZodString;
|
|
797
908
|
}, z.core.$strict>]>>>;
|
|
798
909
|
}, z.core.$strict>], "transport">>;
|
|
799
910
|
}, z.core.$strict>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-ui.d.ts","sourceRoot":"","sources":["../../src/extension-ui.ts"],"names":[],"mappings":"AAAA,OAAO,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