@nekro-nxt/contracts 0.2.0 → 0.4.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 +1149 -135
- package/dist/index.mjs.map +1 -1
- package/lib/types/community-personas.d.ts +139 -0
- package/lib/types/community-personas.d.ts.map +1 -0
- package/lib/types/community.d.ts +269 -148
- package/lib/types/community.d.ts.map +1 -1
- package/lib/types/extension-capabilities.d.ts +136 -8
- package/lib/types/extension-capabilities.d.ts.map +1 -1
- package/lib/types/extension-ui.d.ts +275 -5
- package/lib/types/extension-ui.d.ts.map +1 -1
- package/lib/types/host-api.d.ts +5070 -2265
- package/lib/types/host-api.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/community-personas.ts +81 -0
- package/src/community.ts +233 -169
- package/src/extension-capabilities.ts +204 -14
- package/src/extension-ui.ts +142 -15
- package/src/host-api.ts +753 -46
- package/src/index.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../src/community.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;GAGG;AACH,eAAO,MAAM,yBAAyB,iIAU5B,CAAA;AACV,eAAO,MAAM,2BAA2B;;;;;;;;;;EAAoC,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAEhF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../src/community.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;GAGG;AACH,eAAO,MAAM,yBAAyB,iIAU5B,CAAA;AACV,eAAO,MAAM,2BAA2B;;;;;;;;;;EAAoC,CAAA;AAC5E,MAAM,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/B,QAAQ,qBAAqB,KAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAmBvF,CAAA"}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Host capability level this build implements. A Revision that declares `requires.sdk` above it is rejected at
|
|
4
|
-
* import with an "upgrade NekroNXT" message instead of an opaque schema error. Bump
|
|
5
|
-
*
|
|
4
|
+
* import with an "upgrade NekroNXT" message instead of an opaque schema error. Bump when a Manifest capability
|
|
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
|
+
* images, the search index and host-layer model calls.
|
|
6
7
|
*/
|
|
7
|
-
export declare const EXTENSION_SDK_LEVEL =
|
|
8
|
+
export declare const EXTENSION_SDK_LEVEL = 8;
|
|
9
|
+
/**
|
|
10
|
+
* The first NekroNXT version of each capability level, so users read "needs NekroNXT 0.5.0" rather than a level
|
|
11
|
+
* number. Add the row for a new level in the change that raises EXTENSION_SDK_LEVEL; a test keeps the two in step.
|
|
12
|
+
*/
|
|
13
|
+
export declare const EXTENSION_SDK_RELEASES: readonly {
|
|
14
|
+
readonly level: number;
|
|
15
|
+
readonly version: string;
|
|
16
|
+
}[];
|
|
17
|
+
/** The oldest NekroNXT version that supports `level`; undefined for a level no release supports yet. */
|
|
18
|
+
export declare const extensionSdkVersion: (level: number) => string | undefined;
|
|
19
|
+
/** Manifest V7 itself; extensions that use nothing newer need this level. */
|
|
20
|
+
export declare const EXTENSION_SDK_BASE_LEVEL = 7;
|
|
8
21
|
export declare const ExtensionRequiresSchema: z.ZodObject<{
|
|
9
22
|
sdk: z.ZodNumber;
|
|
10
23
|
}, z.core.$strict>;
|
|
@@ -99,6 +112,56 @@ export declare const ExtensionPlatformCapabilitySchema: z.ZodObject<{
|
|
|
99
112
|
raw: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
100
113
|
}, z.core.$strict>;
|
|
101
114
|
export type ExtensionPlatformCapability = z.output<typeof ExtensionPlatformCapabilitySchema>;
|
|
115
|
+
export declare const EXTENSION_ASSET_LIBRARY_DEFAULT_QUOTA_BYTES: number;
|
|
116
|
+
export declare const EXTENSION_ASSET_LIBRARY_MAX_QUOTA_BYTES: number;
|
|
117
|
+
export declare const ExtensionAssetLibraryCapabilitySchema: z.ZodObject<{
|
|
118
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
}, z.core.$strict>;
|
|
120
|
+
export type ExtensionAssetLibraryCapability = z.output<typeof ExtensionAssetLibraryCapabilitySchema>;
|
|
121
|
+
/**
|
|
122
|
+
* `write` creates Assets in the current channel; `library` keeps Assets in the extension's own library so they can be
|
|
123
|
+
* used in any channel later.
|
|
124
|
+
*/
|
|
125
|
+
export declare const ExtensionAssetsCapabilitySchema: z.ZodObject<{
|
|
126
|
+
write: z.ZodOptional<z.ZodLiteral<true>>;
|
|
127
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
}, z.core.$strict>>;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
export type ExtensionAssetsCapability = z.output<typeof ExtensionAssetsCapabilitySchema>;
|
|
132
|
+
export declare const EXTENSION_INDEX_MAX_TEXT_FIELDS = 4;
|
|
133
|
+
export declare const EXTENSION_INDEX_MAX_FILTERS = 4;
|
|
134
|
+
/**
|
|
135
|
+
* One searchable collection. Text fields are matched by keywords (and vectors when the Host has them enabled); weights
|
|
136
|
+
* rank keyword matches. Filter fields hold short keyword values, possibly several per document.
|
|
137
|
+
*/
|
|
138
|
+
export declare const ExtensionIndexCollectionSchema: z.ZodObject<{
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
weight: z.ZodDefault<z.ZodNumber>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
145
|
+
}, z.core.$strict>;
|
|
146
|
+
export type ExtensionIndexCollection = z.output<typeof ExtensionIndexCollectionSchema>;
|
|
147
|
+
export declare const ExtensionIndexCapabilitySchema: z.ZodObject<{
|
|
148
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
weight: z.ZodDefault<z.ZodNumber>;
|
|
153
|
+
}, z.core.$strict>>;
|
|
154
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
155
|
+
}, z.core.$strict>>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
export type ExtensionIndexCapability = z.output<typeof ExtensionIndexCapabilitySchema>;
|
|
158
|
+
export declare const EXTENSION_MODEL_MAX_CALLS_PER_MINUTE = 120;
|
|
159
|
+
/** Calls to a model the user picks from the Host's configured models, with images allowed; host layer only. */
|
|
160
|
+
export declare const ExtensionModelsCapabilitySchema: z.ZodObject<{
|
|
161
|
+
maxCallsPerMinute: z.ZodNumber;
|
|
162
|
+
maxOutputTokens: z.ZodNumber;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
export type ExtensionModelsCapability = z.output<typeof ExtensionModelsCapabilitySchema>;
|
|
102
165
|
/** A header or environment value: literal text, or the current value of a `meta.role: 'secret'` config field. */
|
|
103
166
|
export declare const ExtensionMcpValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
104
167
|
secret: z.ZodString;
|
|
@@ -170,8 +233,8 @@ export type McpServerForm = z.output<typeof McpServerFormSchema>;
|
|
|
170
233
|
/** Secret config fields an MCP declaration reads. */
|
|
171
234
|
export declare const mcpSecretFields: (mcp: ExtensionMcpCapability | undefined) => readonly string[];
|
|
172
235
|
/**
|
|
173
|
-
*
|
|
174
|
-
* means the
|
|
236
|
+
* Agent-layer capabilities (`permissions.agent`): what the extension may do inside the agents it is enabled for. An
|
|
237
|
+
* absent field means the extension cannot use that capability.
|
|
175
238
|
*/
|
|
176
239
|
export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
177
240
|
network: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -194,7 +257,24 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
194
257
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
195
258
|
}, z.core.$strict>>;
|
|
196
259
|
assets: z.ZodOptional<z.ZodObject<{
|
|
197
|
-
write: z.ZodLiteral<true
|
|
260
|
+
write: z.ZodOptional<z.ZodLiteral<true>>;
|
|
261
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
}, z.core.$strict>>;
|
|
264
|
+
}, z.core.$strict>>;
|
|
265
|
+
index: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
267
|
+
name: z.ZodString;
|
|
268
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
269
|
+
name: z.ZodString;
|
|
270
|
+
weight: z.ZodDefault<z.ZodNumber>;
|
|
271
|
+
}, z.core.$strict>>;
|
|
272
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
273
|
+
}, z.core.$strict>>;
|
|
274
|
+
}, z.core.$strict>>;
|
|
275
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
276
|
+
maxCallsPerMinute: z.ZodNumber;
|
|
277
|
+
maxOutputTokens: z.ZodNumber;
|
|
198
278
|
}, z.core.$strict>>;
|
|
199
279
|
history: z.ZodOptional<z.ZodObject<{
|
|
200
280
|
read: z.ZodLiteral<true>;
|
|
@@ -258,6 +338,47 @@ export declare const ExtensionCapabilitiesSchema: z.ZodObject<{
|
|
|
258
338
|
}, z.core.$strict>>>;
|
|
259
339
|
}, z.core.$strict>;
|
|
260
340
|
export type ExtensionCapabilities = z.output<typeof ExtensionCapabilitiesSchema>;
|
|
341
|
+
/**
|
|
342
|
+
* Host-layer capabilities (`permissions.host`): what the extension's single host instance may do through the `nxt`
|
|
343
|
+
* service its factory receives. Host storage is the extension's `shared` partition.
|
|
344
|
+
*/
|
|
345
|
+
export declare const HostLayerCapabilitiesSchema: z.ZodObject<{
|
|
346
|
+
network: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
347
|
+
mode: z.ZodLiteral<"domains">;
|
|
348
|
+
domains: z.ZodArray<z.ZodString>;
|
|
349
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
350
|
+
mode: z.ZodLiteral<"config">;
|
|
351
|
+
fields: z.ZodArray<z.ZodString>;
|
|
352
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
353
|
+
mode: z.ZodLiteral<"unrestricted">;
|
|
354
|
+
purpose: z.ZodString;
|
|
355
|
+
}, z.core.$strict>], "mode">>;
|
|
356
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
357
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
}, z.core.$strict>>;
|
|
359
|
+
assets: z.ZodOptional<z.ZodObject<{
|
|
360
|
+
library: z.ZodObject<{
|
|
361
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
362
|
+
}, z.core.$strict>;
|
|
363
|
+
}, z.core.$strict>>;
|
|
364
|
+
index: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
366
|
+
name: z.ZodString;
|
|
367
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
weight: z.ZodDefault<z.ZodNumber>;
|
|
370
|
+
}, z.core.$strict>>;
|
|
371
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
372
|
+
}, z.core.$strict>>;
|
|
373
|
+
}, z.core.$strict>>;
|
|
374
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
maxCallsPerMinute: z.ZodNumber;
|
|
376
|
+
maxOutputTokens: z.ZodNumber;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
}, z.core.$strict>;
|
|
379
|
+
export type HostLayerCapabilities = z.output<typeof HostLayerCapabilitiesSchema>;
|
|
380
|
+
/** Host-layer capabilities in the agent-capability shape, so digests, expansion and summaries share one implementation. */
|
|
381
|
+
export declare const hostLayerAsCapabilities: (host: HostLayerCapabilities | undefined) => ExtensionCapabilities | undefined;
|
|
261
382
|
/**
|
|
262
383
|
* Whether `next` asks for something an approval of `previous` did not cover. Narrowing never needs approval;
|
|
263
384
|
* storage quota is bounded by the Host maximum and is not an expansion. Context contributions are capped text
|
|
@@ -272,6 +393,13 @@ export interface ExtensionCapabilitySummaryItem {
|
|
|
272
393
|
readonly label: string;
|
|
273
394
|
readonly detail?: string;
|
|
274
395
|
}
|
|
275
|
-
/**
|
|
276
|
-
|
|
396
|
+
/**
|
|
397
|
+
* User-facing summary of declared capabilities, in a stable order, for approval and inspection pages. `layer: 'host'`
|
|
398
|
+
* phrases host-layer capabilities (passed through {@link hostLayerAsCapabilities}) for the host instance.
|
|
399
|
+
*/
|
|
400
|
+
export declare const summarizeExtensionCapabilities: (capabilities: ExtensionCapabilities | undefined, options?: {
|
|
401
|
+
readonly layer?: "host" | "agent";
|
|
402
|
+
/** Display name of a config field, so `network.mode: 'config'` names the fields as the user knows them. */
|
|
403
|
+
readonly fieldTitle?: (key: string) => string;
|
|
404
|
+
}) => readonly ExtensionCapabilitySummaryItem[];
|
|
277
405
|
//# sourceMappingURL=extension-capabilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-capabilities.d.ts","sourceRoot":"","sources":["../../src/extension-capabilities.ts"],"names":[],"mappings":"AAAA,OA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C/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,EA0IzC,CAAA"}
|
|
@@ -137,8 +137,15 @@ export declare const HostPageContributionSchema: z.ZodObject<{
|
|
|
137
137
|
navigation: "navigation";
|
|
138
138
|
}>;
|
|
139
139
|
startPath: z.ZodString;
|
|
140
|
+
rail: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
}, z.core.$strict>>;
|
|
140
143
|
}, z.core.$strict>;
|
|
141
144
|
export type HostPageContribution = z.output<typeof HostPageContributionSchema>;
|
|
145
|
+
/** Rail position of a page that registers a rail entry without an explicit order. */
|
|
146
|
+
export declare const HOST_PAGE_DEFAULT_RAIL_ORDER = 100;
|
|
147
|
+
/** The stored rail position of a page; `null` when the page has no rail entry. */
|
|
148
|
+
export declare const hostPageRailOrder: (page: Pick<HostPageContribution, "rail">) => number | null;
|
|
142
149
|
export declare const HostUiNavigationItemSchema: z.ZodObject<{
|
|
143
150
|
id: z.ZodString;
|
|
144
151
|
label: z.ZodString;
|
|
@@ -263,6 +270,10 @@ export declare const HostUiNavigationModelSchema: z.ZodObject<{
|
|
|
263
270
|
}, z.core.$strict>;
|
|
264
271
|
export type HostUiNavigationModel = z.output<typeof HostUiNavigationModelSchema>;
|
|
265
272
|
export declare const HostUiNetworkOriginSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
273
|
+
/**
|
|
274
|
+
* One approval: browser-side permissions plus the capabilities of one layer. Grants, digests and the approval page
|
|
275
|
+
* use this shape for both the host approval and each agent approval.
|
|
276
|
+
*/
|
|
266
277
|
export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
267
278
|
permissions: z.ZodArray<z.ZodEnum<{
|
|
268
279
|
"agents.read": "agents.read";
|
|
@@ -303,7 +314,24 @@ export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
|
303
314
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
304
315
|
}, z.core.$strict>>;
|
|
305
316
|
assets: z.ZodOptional<z.ZodObject<{
|
|
306
|
-
write: z.ZodLiteral<true
|
|
317
|
+
write: z.ZodOptional<z.ZodLiteral<true>>;
|
|
318
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
}, z.core.$strict>>;
|
|
321
|
+
}, z.core.$strict>>;
|
|
322
|
+
index: z.ZodOptional<z.ZodObject<{
|
|
323
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
324
|
+
name: z.ZodString;
|
|
325
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
326
|
+
name: z.ZodString;
|
|
327
|
+
weight: z.ZodDefault<z.ZodNumber>;
|
|
328
|
+
}, z.core.$strict>>;
|
|
329
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
330
|
+
}, z.core.$strict>>;
|
|
331
|
+
}, z.core.$strict>>;
|
|
332
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
maxCallsPerMinute: z.ZodNumber;
|
|
334
|
+
maxOutputTokens: z.ZodNumber;
|
|
307
335
|
}, z.core.$strict>>;
|
|
308
336
|
history: z.ZodOptional<z.ZodObject<{
|
|
309
337
|
read: z.ZodLiteral<true>;
|
|
@@ -368,6 +396,171 @@ export declare const HostUiPermissionDeclarationSchema: z.ZodObject<{
|
|
|
368
396
|
}, z.core.$strict>>;
|
|
369
397
|
}, z.core.$strict>;
|
|
370
398
|
export type HostUiPermissionDeclaration = z.output<typeof HostUiPermissionDeclarationSchema>;
|
|
399
|
+
/**
|
|
400
|
+
* Manifest V7 `permissions`: browser-side permissions of pages and panels (`host.call`), host-layer capabilities used
|
|
401
|
+
* by the single host instance, and agent-layer capabilities used inside each enabled agent.
|
|
402
|
+
*/
|
|
403
|
+
export declare const ExtensionPermissionsSchema: z.ZodObject<{
|
|
404
|
+
permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
405
|
+
"agents.read": "agents.read";
|
|
406
|
+
"channels.read": "channels.read";
|
|
407
|
+
"connections.read": "connections.read";
|
|
408
|
+
"extensions.read": "extensions.read";
|
|
409
|
+
"dsh-plugins.read": "dsh-plugins.read";
|
|
410
|
+
"runtime.read": "runtime.read";
|
|
411
|
+
"messages.read": "messages.read";
|
|
412
|
+
"assets.read": "assets.read";
|
|
413
|
+
"agents.manage": "agents.manage";
|
|
414
|
+
"channels.manage": "channels.manage";
|
|
415
|
+
"connections.manage": "connections.manage";
|
|
416
|
+
"credentials.write": "credentials.write";
|
|
417
|
+
"messages.send": "messages.send";
|
|
418
|
+
"notifications.publish": "notifications.publish";
|
|
419
|
+
"network.request": "network.request";
|
|
420
|
+
}>>>;
|
|
421
|
+
networkOrigins: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
422
|
+
host: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
network: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
424
|
+
mode: z.ZodLiteral<"domains">;
|
|
425
|
+
domains: z.ZodArray<z.ZodString>;
|
|
426
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
427
|
+
mode: z.ZodLiteral<"config">;
|
|
428
|
+
fields: z.ZodArray<z.ZodString>;
|
|
429
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
430
|
+
mode: z.ZodLiteral<"unrestricted">;
|
|
431
|
+
purpose: z.ZodString;
|
|
432
|
+
}, z.core.$strict>], "mode">>;
|
|
433
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
434
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
}, z.core.$strict>>;
|
|
436
|
+
assets: z.ZodOptional<z.ZodObject<{
|
|
437
|
+
library: z.ZodObject<{
|
|
438
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
439
|
+
}, z.core.$strict>;
|
|
440
|
+
}, z.core.$strict>>;
|
|
441
|
+
index: z.ZodOptional<z.ZodObject<{
|
|
442
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
445
|
+
name: z.ZodString;
|
|
446
|
+
weight: z.ZodDefault<z.ZodNumber>;
|
|
447
|
+
}, z.core.$strict>>;
|
|
448
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
449
|
+
}, z.core.$strict>>;
|
|
450
|
+
}, z.core.$strict>>;
|
|
451
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
452
|
+
maxCallsPerMinute: z.ZodNumber;
|
|
453
|
+
maxOutputTokens: z.ZodNumber;
|
|
454
|
+
}, z.core.$strict>>;
|
|
455
|
+
}, z.core.$strict>>;
|
|
456
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
457
|
+
network: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
458
|
+
mode: z.ZodLiteral<"domains">;
|
|
459
|
+
domains: z.ZodArray<z.ZodString>;
|
|
460
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
461
|
+
mode: z.ZodLiteral<"config">;
|
|
462
|
+
fields: z.ZodArray<z.ZodString>;
|
|
463
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
464
|
+
mode: z.ZodLiteral<"unrestricted">;
|
|
465
|
+
purpose: z.ZodString;
|
|
466
|
+
}, z.core.$strict>], "mode">>;
|
|
467
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
468
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
469
|
+
channel: "channel";
|
|
470
|
+
agent: "agent";
|
|
471
|
+
member: "member";
|
|
472
|
+
shared: "shared";
|
|
473
|
+
}>>;
|
|
474
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
475
|
+
}, z.core.$strict>>;
|
|
476
|
+
assets: z.ZodOptional<z.ZodObject<{
|
|
477
|
+
write: z.ZodOptional<z.ZodLiteral<true>>;
|
|
478
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
479
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
480
|
+
}, z.core.$strict>>;
|
|
481
|
+
}, z.core.$strict>>;
|
|
482
|
+
index: z.ZodOptional<z.ZodObject<{
|
|
483
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
484
|
+
name: z.ZodString;
|
|
485
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
486
|
+
name: z.ZodString;
|
|
487
|
+
weight: z.ZodDefault<z.ZodNumber>;
|
|
488
|
+
}, z.core.$strict>>;
|
|
489
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
490
|
+
}, z.core.$strict>>;
|
|
491
|
+
}, z.core.$strict>>;
|
|
492
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
493
|
+
maxCallsPerMinute: z.ZodNumber;
|
|
494
|
+
maxOutputTokens: z.ZodNumber;
|
|
495
|
+
}, z.core.$strict>>;
|
|
496
|
+
history: z.ZodOptional<z.ZodObject<{
|
|
497
|
+
read: z.ZodLiteral<true>;
|
|
498
|
+
}, z.core.$strict>>;
|
|
499
|
+
inboundHook: z.ZodOptional<z.ZodObject<{
|
|
500
|
+
reads: z.ZodEnum<{
|
|
501
|
+
triggered: "triggered";
|
|
502
|
+
all: "all";
|
|
503
|
+
}>;
|
|
504
|
+
mayHide: z.ZodBoolean;
|
|
505
|
+
mayForceTrigger: z.ZodBoolean;
|
|
506
|
+
timeoutMs: z.ZodNumber;
|
|
507
|
+
}, z.core.$strict>>;
|
|
508
|
+
jobs: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
declared: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
510
|
+
id: z.ZodString;
|
|
511
|
+
label: z.ZodString;
|
|
512
|
+
cron: z.ZodString;
|
|
513
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
514
|
+
}, z.core.$strict>>>;
|
|
515
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
516
|
+
maxActive: z.ZodNumber;
|
|
517
|
+
}, z.core.$strict>>;
|
|
518
|
+
}, z.core.$strict>>;
|
|
519
|
+
platform: z.ZodOptional<z.ZodObject<{
|
|
520
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
521
|
+
adapter: z.ZodString;
|
|
522
|
+
action: z.ZodString;
|
|
523
|
+
}, z.core.$strict>>>;
|
|
524
|
+
raw: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
525
|
+
}, z.core.$strict>>;
|
|
526
|
+
llm: z.ZodOptional<z.ZodObject<{
|
|
527
|
+
maxCallsPerTurn: z.ZodNumber;
|
|
528
|
+
maxOutputTokens: z.ZodNumber;
|
|
529
|
+
}, z.core.$strict>>;
|
|
530
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
531
|
+
servers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
532
|
+
transport: z.ZodLiteral<"streamable-http">;
|
|
533
|
+
name: z.ZodString;
|
|
534
|
+
url: z.ZodString;
|
|
535
|
+
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
536
|
+
secret: z.ZodString;
|
|
537
|
+
}, z.core.$strict>]>>>;
|
|
538
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
539
|
+
transport: z.ZodLiteral<"stdio">;
|
|
540
|
+
name: z.ZodString;
|
|
541
|
+
command: z.ZodString;
|
|
542
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
543
|
+
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
544
|
+
secret: z.ZodString;
|
|
545
|
+
}, z.core.$strict>]>>>;
|
|
546
|
+
}, z.core.$strict>], "transport">>;
|
|
547
|
+
}, z.core.$strict>>;
|
|
548
|
+
context: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
549
|
+
name: z.ZodString;
|
|
550
|
+
kind: z.ZodEnum<{
|
|
551
|
+
dynamic: "dynamic";
|
|
552
|
+
static: "static";
|
|
553
|
+
}>;
|
|
554
|
+
maxChars: z.ZodNumber;
|
|
555
|
+
}, z.core.$strict>>>;
|
|
556
|
+
}, z.core.$strict>>;
|
|
557
|
+
}, z.core.$strict>;
|
|
558
|
+
export type ExtensionPermissions = z.output<typeof ExtensionPermissionsSchema>;
|
|
559
|
+
export declare const EMPTY_EXTENSION_PERMISSIONS: ExtensionPermissions;
|
|
560
|
+
/** What installing the extension on this machine asks the user to approve. */
|
|
561
|
+
export declare const hostPermissionDeclaration: (permissions: ExtensionPermissions) => HostUiPermissionDeclaration;
|
|
562
|
+
/** What enabling the extension for one agent asks the user to approve. */
|
|
563
|
+
export declare const agentPermissionDeclaration: (permissions: ExtensionPermissions) => HostUiPermissionDeclaration;
|
|
371
564
|
export declare const HostUiOwnerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
372
565
|
kind: z.ZodLiteral<"extension">;
|
|
373
566
|
extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
|
|
@@ -421,6 +614,9 @@ export declare const HostUiPageEntrySchema: z.ZodObject<{
|
|
|
421
614
|
startPath: z.ZodString;
|
|
422
615
|
visible: z.ZodBoolean;
|
|
423
616
|
sortOrder: z.ZodNumber;
|
|
617
|
+
rail: z.ZodOptional<z.ZodObject<{
|
|
618
|
+
order: z.ZodNumber;
|
|
619
|
+
}, z.core.$strict>>;
|
|
424
620
|
routeBase: z.ZodString;
|
|
425
621
|
client: z.ZodObject<{
|
|
426
622
|
moduleUrl: z.ZodString;
|
|
@@ -486,6 +682,9 @@ export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
|
486
682
|
navigation: "navigation";
|
|
487
683
|
}>;
|
|
488
684
|
startPath: z.ZodString;
|
|
685
|
+
rail: z.ZodOptional<z.ZodObject<{
|
|
686
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
687
|
+
}, z.core.$strict>>;
|
|
489
688
|
}, z.core.$strict>>;
|
|
490
689
|
permissions: z.ZodDefault<z.ZodObject<{
|
|
491
690
|
permissions: z.ZodArray<z.ZodEnum<{
|
|
@@ -527,7 +726,24 @@ export declare const DshNxtHostUiSchema: z.ZodObject<{
|
|
|
527
726
|
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
528
727
|
}, z.core.$strict>>;
|
|
529
728
|
assets: z.ZodOptional<z.ZodObject<{
|
|
530
|
-
write: z.ZodLiteral<true
|
|
729
|
+
write: z.ZodOptional<z.ZodLiteral<true>>;
|
|
730
|
+
library: z.ZodOptional<z.ZodObject<{
|
|
731
|
+
quotaBytes: z.ZodOptional<z.ZodNumber>;
|
|
732
|
+
}, z.core.$strict>>;
|
|
733
|
+
}, z.core.$strict>>;
|
|
734
|
+
index: z.ZodOptional<z.ZodObject<{
|
|
735
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
736
|
+
name: z.ZodString;
|
|
737
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
738
|
+
name: z.ZodString;
|
|
739
|
+
weight: z.ZodDefault<z.ZodNumber>;
|
|
740
|
+
}, z.core.$strict>>;
|
|
741
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
742
|
+
}, z.core.$strict>>;
|
|
743
|
+
}, z.core.$strict>>;
|
|
744
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
745
|
+
maxCallsPerMinute: z.ZodNumber;
|
|
746
|
+
maxOutputTokens: z.ZodNumber;
|
|
531
747
|
}, z.core.$strict>>;
|
|
532
748
|
history: z.ZodOptional<z.ZodObject<{
|
|
533
749
|
read: z.ZodLiteral<true>;
|
|
@@ -601,8 +817,17 @@ export declare const ExtensionPanelAnchorSchema: z.ZodEnum<{
|
|
|
601
817
|
connection: "connection";
|
|
602
818
|
}>;
|
|
603
819
|
export type ExtensionPanelAnchor = z.output<typeof ExtensionPanelAnchorSchema>;
|
|
604
|
-
|
|
605
|
-
|
|
820
|
+
/**
|
|
821
|
+
* Which layer a panel belongs to. Agent and channel panels follow the agents the extension is enabled for (a channel
|
|
822
|
+
* panel also shows on channels of the extension's own adapter); extension and connection panels belong to the host
|
|
823
|
+
* instance.
|
|
824
|
+
*/
|
|
825
|
+
export declare const PANEL_ANCHOR_LAYER: {
|
|
826
|
+
readonly agent: "agent";
|
|
827
|
+
readonly channel: "agent";
|
|
828
|
+
readonly extension: "host";
|
|
829
|
+
readonly connection: "host";
|
|
830
|
+
};
|
|
606
831
|
export declare const PanelDensitySchema: z.ZodEnum<{
|
|
607
832
|
compact: "compact";
|
|
608
833
|
full: "full";
|
|
@@ -716,7 +941,16 @@ export declare const MessageRendererContributionSchema: z.ZodObject<{
|
|
|
716
941
|
richKind: z.ZodString;
|
|
717
942
|
}, z.core.$strict>;
|
|
718
943
|
export type MessageRendererContribution = z.output<typeof MessageRendererContributionSchema>;
|
|
719
|
-
/**
|
|
944
|
+
/** What an extension provides, derived from its Manifest; for listing and filtering, never a lifecycle switch. */
|
|
945
|
+
export declare const EXTENSION_PROVIDES: readonly ["agent", "page", "adapter", "mcp"];
|
|
946
|
+
export declare const ExtensionProvideSchema: z.ZodEnum<{
|
|
947
|
+
agent: "agent";
|
|
948
|
+
adapter: "adapter";
|
|
949
|
+
mcp: "mcp";
|
|
950
|
+
page: "page";
|
|
951
|
+
}>;
|
|
952
|
+
export type ExtensionProvide = z.output<typeof ExtensionProvideSchema>;
|
|
953
|
+
/** One configuration form: a serialized Schemastery document. */
|
|
720
954
|
export declare const ExtensionConfigDeclarationSchema: z.ZodObject<{
|
|
721
955
|
schema: z.ZodType<import("./config-schema.js").ConfigSchemaNode, unknown, z.core.$ZodTypeInternals<import("./config-schema.js").ConfigSchemaNode, unknown>> & z.ZodType<{
|
|
722
956
|
readonly type: "object";
|
|
@@ -729,6 +963,33 @@ export declare const ExtensionConfigDeclarationSchema: z.ZodObject<{
|
|
|
729
963
|
}, unknown>>;
|
|
730
964
|
}, z.core.$strict>;
|
|
731
965
|
export type ExtensionConfigDeclaration = z.output<typeof ExtensionConfigDeclarationSchema>;
|
|
966
|
+
/** Manifest V7 `config`: the host instance's configuration and each enabled agent's configuration. */
|
|
967
|
+
export declare const ExtensionLayeredConfigSchema: z.ZodObject<{
|
|
968
|
+
host: z.ZodOptional<z.ZodObject<{
|
|
969
|
+
schema: z.ZodType<import("./config-schema.js").ConfigSchemaNode, unknown, z.core.$ZodTypeInternals<import("./config-schema.js").ConfigSchemaNode, unknown>> & z.ZodType<{
|
|
970
|
+
readonly type: "object";
|
|
971
|
+
readonly dict: Readonly<Record<string, import("./config-schema.js").ConfigSchemaNode>>;
|
|
972
|
+
readonly meta?: import("./config-schema.js").ConfigSchemaMeta | undefined;
|
|
973
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
974
|
+
readonly type: "object";
|
|
975
|
+
readonly dict: Readonly<Record<string, import("./config-schema.js").ConfigSchemaNode>>;
|
|
976
|
+
readonly meta?: import("./config-schema.js").ConfigSchemaMeta | undefined;
|
|
977
|
+
}, unknown>>;
|
|
978
|
+
}, z.core.$strict>>;
|
|
979
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
980
|
+
schema: z.ZodType<import("./config-schema.js").ConfigSchemaNode, unknown, z.core.$ZodTypeInternals<import("./config-schema.js").ConfigSchemaNode, unknown>> & z.ZodType<{
|
|
981
|
+
readonly type: "object";
|
|
982
|
+
readonly dict: Readonly<Record<string, import("./config-schema.js").ConfigSchemaNode>>;
|
|
983
|
+
readonly meta?: import("./config-schema.js").ConfigSchemaMeta | undefined;
|
|
984
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
985
|
+
readonly type: "object";
|
|
986
|
+
readonly dict: Readonly<Record<string, import("./config-schema.js").ConfigSchemaNode>>;
|
|
987
|
+
readonly meta?: import("./config-schema.js").ConfigSchemaMeta | undefined;
|
|
988
|
+
}, unknown>>;
|
|
989
|
+
}, z.core.$strict>>;
|
|
990
|
+
}, z.core.$strict>;
|
|
991
|
+
export type ExtensionLayeredConfig = z.output<typeof ExtensionLayeredConfigSchema>;
|
|
992
|
+
export type ExtensionConfigLayer = 'host' | 'agent';
|
|
732
993
|
/** Product projection of what one Revision contributes to the shell. */
|
|
733
994
|
export declare const ExtensionUiContributionsSchema: z.ZodObject<{
|
|
734
995
|
panels: z.ZodArray<z.ZodObject<{
|
|
@@ -786,4 +1047,13 @@ export declare const EXTENSION_DATA_HOOK_PERMISSIONS: {
|
|
|
786
1047
|
readonly useChannelRuntime: "runtime.read";
|
|
787
1048
|
};
|
|
788
1049
|
export type ExtensionDataHookName = keyof typeof EXTENSION_DATA_HOOK_PERMISSIONS;
|
|
1050
|
+
/**
|
|
1051
|
+
* The capability level a set of permissions needs: Manifest V7 itself, or the level that introduced the newest
|
|
1052
|
+
* capability it declares. Packaging and import compare it with `requires.sdk`, so an extension cannot claim a level
|
|
1053
|
+
* too old for what it uses.
|
|
1054
|
+
*/
|
|
1055
|
+
export declare const requiredExtensionSdkLevel: (permissions: ExtensionPermissions | undefined) => {
|
|
1056
|
+
readonly level: number;
|
|
1057
|
+
readonly capabilities: readonly string[];
|
|
1058
|
+
};
|
|
789
1059
|
//# sourceMappingURL=extension-ui.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-ui.d.ts","sourceRoot":"","sources":["../../src/extension-ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"extension-ui.d.ts","sourceRoot":"","sources":["../../src/extension-ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAUvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;EAgBjC,CAAA;AAEF,MAAM,MAAM,gBAA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