@finalai/agent-provider 0.5.0 → 0.6.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/HOSTING.md +7 -7
- package/README.md +54 -0
- package/dist/modules/channel-socket.d.mts +8 -4
- package/dist/modules/channel-socket.mjs +39 -2
- package/dist/modules/channel-socket.mjs.map +2 -2
- package/dist/modules/channel.d.mts +323 -363
- package/dist/modules/channel.mjs +60 -145
- package/dist/modules/channel.mjs.map +3 -3
- package/dist/modules/credentials.mjs.map +2 -2
- package/dist/modules/index.d.mts +0 -1
- package/dist/modules/index.mjs +0 -1
- package/dist/modules/index.mjs.map +2 -2
- package/dist/modules/local-channel-context.d.mts +10 -0
- package/dist/modules/local-channel-context.mjs +55 -0
- package/dist/modules/local-channel-context.mjs.map +7 -0
- package/dist/modules/local-channel-socket.d.mts +8 -4
- package/dist/modules/local-channel-socket.mjs +1 -13
- package/dist/modules/local-channel-socket.mjs.map +2 -2
- package/dist/modules/manifest.d.mts +92 -4
- package/dist/modules/manifest.mjs +29 -9
- package/dist/modules/manifest.mjs.map +2 -2
- package/dist/modules/room-surface.d.mts +370 -0
- package/dist/modules/room-surface.mjs +156 -0
- package/dist/modules/room-surface.mjs.map +7 -0
- package/dist/modules/sandbox/networking.mjs +1 -0
- package/dist/modules/sandbox/networking.mjs.map +2 -2
- package/dist/modules/sandbox/types.d.mts +20 -0
- package/dist/modules/sandbox/types.mjs +6 -0
- package/dist/modules/sandbox/types.mjs.map +2 -2
- package/dist/modules/semantic-events.d.mts +69 -1
- package/dist/modules/semantic-events.mjs +14 -1
- package/dist/modules/semantic-events.mjs.map +2 -2
- package/package.json +14 -9
- package/dist/modules/channel-context.d.mts +0 -106
- package/dist/modules/channel-context.mjs +0 -45
- package/dist/modules/channel-context.mjs.map +0 -7
|
@@ -2,7 +2,7 @@ import * as z from 'zod';
|
|
|
2
2
|
import { DynamicEvent } from "./dynamic.mjs";
|
|
3
3
|
export { agentAvatarSchema, avatarMediaSchema } from '@finalai/agent-protocol';
|
|
4
4
|
export type { AgentAvatarIface, AvatarMedia, AvatarState } from '@finalai/agent-protocol';
|
|
5
|
-
export declare const MANIFEST_VERSION =
|
|
5
|
+
export declare const MANIFEST_VERSION = 4;
|
|
6
6
|
export declare enum BaseCapability {
|
|
7
7
|
Shell = "shell",
|
|
8
8
|
Files = "files",
|
|
@@ -239,6 +239,10 @@ export declare const mcpServerBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
239
239
|
dynamic: z.ZodOptional<z.ZodType<import("./json.mjs").JsonObject, unknown, z.core.$ZodTypeInternals<import("./json.mjs").JsonObject, unknown>>>;
|
|
240
240
|
}, z.core.$strip>>>;
|
|
241
241
|
}, z.core.$strip>], "kind">;
|
|
242
|
+
export declare const sandboxCredentialRefSchema: z.ZodObject<{
|
|
243
|
+
secretRef: z.ZodString;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
export type SandboxCredentialRefIface = z.infer<typeof sandboxCredentialRefSchema>;
|
|
242
246
|
export declare const sandboxBindingSchema: z.ZodObject<{
|
|
243
247
|
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
244
248
|
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Package>;
|
|
@@ -268,8 +272,30 @@ export declare const baseToolsSchema: z.ZodObject<{
|
|
|
268
272
|
}, z.core.$strip>>;
|
|
269
273
|
host: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof BaseCapability>>>;
|
|
270
274
|
}, z.core.$strip>;
|
|
275
|
+
export declare const channelCredentialsSchema: z.ZodObject<{
|
|
276
|
+
app: z.ZodNullable<z.ZodString>;
|
|
277
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
export declare const channelSurfaceSchema: z.ZodObject<{
|
|
280
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
281
|
+
method: z.ZodString;
|
|
282
|
+
path: z.ZodString;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
listeners: z.ZodArray<z.ZodString>;
|
|
285
|
+
placeKinds: z.ZodArray<z.ZodString>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
export declare const roomSurfaceBindingSchema: z.ZodObject<{
|
|
288
|
+
channel: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
|
+
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Package>;
|
|
290
|
+
specifier: z.ZodString;
|
|
291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Bundle>;
|
|
293
|
+
export: z.ZodString;
|
|
294
|
+
}, z.core.$strip>], "kind">;
|
|
295
|
+
config: z.ZodDefault<z.ZodType<import("./json.mjs").JsonObject, unknown, z.core.$ZodTypeInternals<import("./json.mjs").JsonObject, unknown>>>;
|
|
296
|
+
source: z.ZodOptional<z.ZodString>;
|
|
297
|
+
}, z.core.$strip>;
|
|
271
298
|
export declare const channelBindingSchema: z.ZodObject<{
|
|
272
|
-
key: z.ZodString;
|
|
273
299
|
channel: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
274
300
|
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Package>;
|
|
275
301
|
specifier: z.ZodString;
|
|
@@ -279,6 +305,20 @@ export declare const channelBindingSchema: z.ZodObject<{
|
|
|
279
305
|
}, z.core.$strip>], "kind">;
|
|
280
306
|
config: z.ZodDefault<z.ZodType<import("./json.mjs").JsonObject, unknown, z.core.$ZodTypeInternals<import("./json.mjs").JsonObject, unknown>>>;
|
|
281
307
|
source: z.ZodOptional<z.ZodString>;
|
|
308
|
+
key: z.ZodString;
|
|
309
|
+
credentials: z.ZodObject<{
|
|
310
|
+
app: z.ZodNullable<z.ZodString>;
|
|
311
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
surface: z.ZodObject<{
|
|
314
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
315
|
+
method: z.ZodString;
|
|
316
|
+
path: z.ZodString;
|
|
317
|
+
}, z.core.$strip>>;
|
|
318
|
+
listeners: z.ZodArray<z.ZodString>;
|
|
319
|
+
placeKinds: z.ZodArray<z.ZodString>;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
install: z.ZodOptional<z.ZodString>;
|
|
282
322
|
}, z.core.$strip>;
|
|
283
323
|
export declare const hookBindingSchema: z.ZodObject<{
|
|
284
324
|
slug: z.ZodString;
|
|
@@ -322,7 +362,7 @@ export declare const harnessBindingSchema: z.ZodObject<{
|
|
|
322
362
|
}, z.core.$strip>, z.ZodType<import("./json.mjs").JsonValue, unknown, z.core.$ZodTypeInternals<import("./json.mjs").JsonValue, unknown>>]>;
|
|
323
363
|
}, z.core.$strip>;
|
|
324
364
|
export declare const agentManifestSchema: z.ZodObject<{
|
|
325
|
-
version: z.
|
|
365
|
+
version: z.ZodLiteral<4>;
|
|
326
366
|
identity: z.ZodObject<{
|
|
327
367
|
name: z.ZodString;
|
|
328
368
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -471,7 +511,31 @@ export declare const agentManifestSchema: z.ZodObject<{
|
|
|
471
511
|
toolPolicy: z.ZodRecord<z.ZodString, z.ZodEnum<typeof ToolApproval>>;
|
|
472
512
|
secrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
473
513
|
channels: z.ZodArray<z.ZodObject<{
|
|
514
|
+
channel: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
515
|
+
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Package>;
|
|
516
|
+
specifier: z.ZodString;
|
|
517
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
518
|
+
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Bundle>;
|
|
519
|
+
export: z.ZodString;
|
|
520
|
+
}, z.core.$strip>], "kind">;
|
|
521
|
+
config: z.ZodDefault<z.ZodType<import("./json.mjs").JsonObject, unknown, z.core.$ZodTypeInternals<import("./json.mjs").JsonObject, unknown>>>;
|
|
522
|
+
source: z.ZodOptional<z.ZodString>;
|
|
474
523
|
key: z.ZodString;
|
|
524
|
+
credentials: z.ZodObject<{
|
|
525
|
+
app: z.ZodNullable<z.ZodString>;
|
|
526
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
527
|
+
}, z.core.$strip>;
|
|
528
|
+
surface: z.ZodObject<{
|
|
529
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
530
|
+
method: z.ZodString;
|
|
531
|
+
path: z.ZodString;
|
|
532
|
+
}, z.core.$strip>>;
|
|
533
|
+
listeners: z.ZodArray<z.ZodString>;
|
|
534
|
+
placeKinds: z.ZodArray<z.ZodString>;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
install: z.ZodOptional<z.ZodString>;
|
|
537
|
+
}, z.core.$strip>>;
|
|
538
|
+
roomSurface: z.ZodOptional<z.ZodObject<{
|
|
475
539
|
channel: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
476
540
|
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Package>;
|
|
477
541
|
specifier: z.ZodString;
|
|
@@ -509,7 +573,7 @@ export declare const agentManifestSchema: z.ZodObject<{
|
|
|
509
573
|
}, z.core.$strip>>;
|
|
510
574
|
}, z.core.$strip>;
|
|
511
575
|
export declare const resolvedAgentManifestSchema: z.ZodObject<{
|
|
512
|
-
version: z.
|
|
576
|
+
version: z.ZodLiteral<4>;
|
|
513
577
|
identity: z.ZodObject<{
|
|
514
578
|
name: z.ZodString;
|
|
515
579
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -524,7 +588,31 @@ export declare const resolvedAgentManifestSchema: z.ZodObject<{
|
|
|
524
588
|
toolPolicy: z.ZodRecord<z.ZodString, z.ZodEnum<typeof ToolApproval>>;
|
|
525
589
|
secrets: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
526
590
|
channels: z.ZodArray<z.ZodObject<{
|
|
591
|
+
channel: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
592
|
+
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Package>;
|
|
593
|
+
specifier: z.ZodString;
|
|
594
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
595
|
+
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Bundle>;
|
|
596
|
+
export: z.ZodString;
|
|
597
|
+
}, z.core.$strip>], "kind">;
|
|
598
|
+
config: z.ZodDefault<z.ZodType<import("./json.mjs").JsonObject, unknown, z.core.$ZodTypeInternals<import("./json.mjs").JsonObject, unknown>>>;
|
|
599
|
+
source: z.ZodOptional<z.ZodString>;
|
|
527
600
|
key: z.ZodString;
|
|
601
|
+
credentials: z.ZodObject<{
|
|
602
|
+
app: z.ZodNullable<z.ZodString>;
|
|
603
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
604
|
+
}, z.core.$strip>;
|
|
605
|
+
surface: z.ZodObject<{
|
|
606
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
607
|
+
method: z.ZodString;
|
|
608
|
+
path: z.ZodString;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
listeners: z.ZodArray<z.ZodString>;
|
|
611
|
+
placeKinds: z.ZodArray<z.ZodString>;
|
|
612
|
+
}, z.core.$strip>;
|
|
613
|
+
install: z.ZodOptional<z.ZodString>;
|
|
614
|
+
}, z.core.$strip>>;
|
|
615
|
+
roomSurface: z.ZodOptional<z.ZodObject<{
|
|
528
616
|
channel: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
529
617
|
kind: z.ZodLiteral<import("./provider-ref.mjs").ProviderRefKind.Package>;
|
|
530
618
|
specifier: z.ZodString;
|
|
@@ -4,7 +4,7 @@ import { containsDynamicSlot, DynamicEvent, maybeDynamic } from "./dynamic.mjs";
|
|
|
4
4
|
import { jsonObjectSchema, jsonSchemaSchema, jsonValueSchema } from "./json.mjs";
|
|
5
5
|
import { packageRef, providerRefSchema } from "./provider-ref.mjs";
|
|
6
6
|
import { agentAvatarSchema as agentAvatarSchema2, avatarMediaSchema } from "@finalai/agent-protocol";
|
|
7
|
-
const MANIFEST_VERSION =
|
|
7
|
+
const MANIFEST_VERSION = 4;
|
|
8
8
|
var BaseCapability = /* @__PURE__ */ ((BaseCapability2) => {
|
|
9
9
|
BaseCapability2["Shell"] = "shell";
|
|
10
10
|
BaseCapability2["Files"] = "files";
|
|
@@ -138,6 +138,9 @@ const mcpServerBindingSchema = z.discriminatedUnion("kind", [
|
|
|
138
138
|
workerMcpServerBindingSchema,
|
|
139
139
|
httpMcpServerBindingSchema
|
|
140
140
|
]);
|
|
141
|
+
const sandboxCredentialRefSchema = z.strictObject({
|
|
142
|
+
secretRef: z.string().min(1).max(256)
|
|
143
|
+
});
|
|
141
144
|
const sandboxBindingSchema = z.object({
|
|
142
145
|
provider: providerRefSchema,
|
|
143
146
|
// Provider-defined environment options (`computer`: a setup guide reference or
|
|
@@ -153,13 +156,26 @@ const baseToolsSchema = z.object({
|
|
|
153
156
|
// provides them natively (host-disableable, host-fixed) can serve them.
|
|
154
157
|
host: z.array(z.nativeEnum(BaseCapability)).optional()
|
|
155
158
|
});
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
const channelCredentialsSchema = z.object({
|
|
160
|
+
app: z.string().nullable(),
|
|
161
|
+
secrets: z.array(z.string()).optional()
|
|
162
|
+
});
|
|
163
|
+
const channelSurfaceSchema = z.object({
|
|
164
|
+
routes: z.array(z.object({ method: z.string(), path: z.string() })),
|
|
165
|
+
listeners: z.array(z.string()),
|
|
166
|
+
placeKinds: z.array(z.string())
|
|
167
|
+
});
|
|
168
|
+
const roomSurfaceBindingSchema = z.object({
|
|
159
169
|
channel: providerRefSchema,
|
|
160
170
|
config: jsonObjectSchema.default({}),
|
|
161
171
|
source: z.string().optional()
|
|
162
172
|
});
|
|
173
|
+
const channelBindingSchema = roomSurfaceBindingSchema.extend({
|
|
174
|
+
key: z.string().min(1),
|
|
175
|
+
credentials: channelCredentialsSchema,
|
|
176
|
+
surface: channelSurfaceSchema,
|
|
177
|
+
install: z.string().optional()
|
|
178
|
+
});
|
|
163
179
|
const hookBindingSchema = z.object({
|
|
164
180
|
slug: z.string().min(1),
|
|
165
181
|
export: z.string().min(1),
|
|
@@ -189,19 +205,19 @@ const harnessBindingSchema = z.object({
|
|
|
189
205
|
config: maybeDynamic(jsonValueSchema)
|
|
190
206
|
});
|
|
191
207
|
const agentManifestSchema = z.object({
|
|
192
|
-
//
|
|
193
|
-
version: z.
|
|
208
|
+
// v4 external-channel writers require a host supporting scoped people and places.
|
|
209
|
+
version: z.literal(MANIFEST_VERSION),
|
|
194
210
|
identity: identitySchema,
|
|
195
211
|
harness: harnessBindingSchema,
|
|
196
212
|
mcpServers: maybeDynamic(z.array(mcpServerBindingSchema)),
|
|
197
213
|
sandboxes: maybeDynamic(z.record(z.string(), sandboxBindingSchema)),
|
|
198
214
|
tools: baseToolsSchema,
|
|
199
215
|
toolPolicy: z.record(z.string(), z.nativeEnum(ToolApproval)),
|
|
200
|
-
//
|
|
201
|
-
//
|
|
202
|
-
// binding organization secrets requires an organization admin at publish.
|
|
216
|
+
// Secrets this agent may read, by name (`secrets.get`, MCP `secretKey`,
|
|
217
|
+
// `apiKey({ secret })`). Nothing else is readable.
|
|
203
218
|
secrets: z.array(z.string().min(1)).default([]),
|
|
204
219
|
channels: z.array(channelBindingSchema),
|
|
220
|
+
roomSurface: roomSurfaceBindingSchema.optional(),
|
|
205
221
|
channelSources: z.record(z.string(), z.object({ path: z.string(), source: z.string(), disabled: z.boolean() })).optional(),
|
|
206
222
|
hooks: z.array(hookBindingSchema),
|
|
207
223
|
schedules: z.array(scheduleDefinitionSchema),
|
|
@@ -270,6 +286,8 @@ export {
|
|
|
270
286
|
baseToolsSchema,
|
|
271
287
|
bundleSchema,
|
|
272
288
|
channelBindingSchema,
|
|
289
|
+
channelCredentialsSchema,
|
|
290
|
+
channelSurfaceSchema,
|
|
273
291
|
emptyManifest,
|
|
274
292
|
harnessBindingSchema,
|
|
275
293
|
hookBindingSchema,
|
|
@@ -281,8 +299,10 @@ export {
|
|
|
281
299
|
mcpServerBindingSchema,
|
|
282
300
|
narrowerSandboxAccess,
|
|
283
301
|
resolvedAgentManifestSchema,
|
|
302
|
+
roomSurfaceBindingSchema,
|
|
284
303
|
sandboxAccessAtLeast,
|
|
285
304
|
sandboxBindingSchema,
|
|
305
|
+
sandboxCredentialRefSchema,
|
|
286
306
|
scheduleDefinitionSchema,
|
|
287
307
|
skillBundleSchema,
|
|
288
308
|
skillFileSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/manifest.ts"],
|
|
4
|
-
"sourcesContent": ["import * as z from 'zod';\nimport { agentAvatarSchema } from '@finalai/agent-protocol';\nimport { containsDynamicSlot, DynamicEvent, maybeDynamic } from \"./dynamic.mjs\";\nimport { jsonObjectSchema, jsonSchemaSchema, jsonValueSchema } from \"./json.mjs\";\nimport { packageRef, providerRefSchema } from \"./provider-ref.mjs\";\n\nexport { agentAvatarSchema, avatarMediaSchema } from '@finalai/agent-protocol';\nexport type { AgentAvatarIface, AvatarMedia, AvatarState } from '@finalai/agent-protocol';\n\n// The Agent Manifest. It lives in the provider contract\n// package because it is what harnesses, sandboxes and channels receive;\n// @finalai/agent-definition compiles directories into it and re-exports it.\n//\n// A harness owns its loop, native tools, prompt assembly, models, permission\n// modes, memory and compaction: all of that is `harness.config`, typed by the\n// harness's own configSchema. What ACP standardizes (MCP servers, prompts,\n// permissions, cancellation) is session input, identical for every harness.\n\nexport const MANIFEST_VERSION = 3;\n\n// Base tool capability classes, one to one with sandbox handle capabilities.\nexport enum BaseCapability {\n Shell = 'shell',\n Files = 'files',\n Process = 'process',\n Ports = 'ports',\n Browser = 'browser',\n ComputerUse = 'computerUse',\n}\n\nexport enum ToolApproval {\n Allow = 'allow',\n Ask = 'ask',\n}\n\n// What a session may do on a sandbox target: read files; also run\n// processes (execute, without file writes); or everything (write).\nexport enum SandboxAccess {\n Read = 'read',\n Execute = 'execute',\n Write = 'write',\n}\n\nconst SANDBOX_ACCESS_RANK = {\n [SandboxAccess.Read]: 0,\n [SandboxAccess.Execute]: 1,\n [SandboxAccess.Write]: 2,\n} satisfies Record<SandboxAccess, number>;\n\n// Each access includes the ones before it: read < execute < write.\nexport const sandboxAccessAtLeast = (access: SandboxAccess, floor: SandboxAccess): boolean =>\n SANDBOX_ACCESS_RANK[access] >= SANDBOX_ACCESS_RANK[floor];\n\nexport const narrowerSandboxAccess = (a: SandboxAccess, b: SandboxAccess): SandboxAccess =>\n SANDBOX_ACCESS_RANK[a] <= SANDBOX_ACCESS_RANK[b] ? a : b;\n\nexport enum SandboxAttach {\n Lazy = 'lazy',\n OnPrompt = 'on-prompt',\n}\n\nexport enum McpServerBindingKind {\n // Authored tools, served from the agent's Worker isolate behind the MCP host.\n Worker = 'worker',\n Http = 'http',\n}\n\nexport enum ScheduleTarget {\n OwnerDirect = 'owner-direct',\n BoundConversation = 'bound-conversation',\n}\n\n// Whether a schedule's firing must get a visible reply. Values match the schedules API.\nexport enum ScheduleDelivery {\n Always = 'always',\n // The agent replies only when there is something to say; an empty turn posts nothing.\n IfNeeded = 'if_needed',\n}\n\nexport const identitySchema = z.object({\n name: z.string().min(1).max(120),\n description: z.string().max(2000).nullable(),\n avatar: agentAvatarSchema.optional(),\n});\n\nexport enum InputApprovalKind {\n Tool = 'tool',\n Connection = 'connection',\n}\n\nexport const inputApprovalSchema = z.object({\n kind: z.nativeEnum(InputApprovalKind),\n export: z.string().min(1),\n // Connection default when absent; otherwise tools.approval[policyKey].\n policyKey: z.string().min(1).optional(),\n dynamic: jsonObjectSchema.optional(),\n});\nexport type InputApprovalIface = z.infer<typeof inputApprovalSchema>;\n\n// Tool descriptors are stored statically so `tools/list` never needs the isolate.\nexport const toolDescriptorSchema = z.object({\n name: z.string().min(1),\n description: z.string(),\n inputSchema: jsonSchemaSchema,\n outputSchema: jsonSchemaSchema.optional(),\n annotations: z\n .object({\n title: z.string().optional(),\n readOnlyHint: z.boolean().optional(),\n destructiveHint: z.boolean().optional(),\n idempotentHint: z.boolean().optional(),\n openWorldHint: z.boolean().optional(),\n })\n .optional(),\n // Bundle export implementing it ('tools/lookup_release_notes').\n export: z.string().min(1).optional(),\n // Boundary snapshot used to reconstruct dynamic tools after isolate eviction.\n dynamic: jsonObjectSchema.optional(),\n inputApproval: inputApprovalSchema.optional(),\n});\n\nexport const mcpAuthSchema = z.union([\n z.object({ secretKey: z.string().min(1), headerName: z.string().min(1).nullable() }),\n // Resolved by the broker to a session-scoped grant (Final's own MCP server).\n z.object({ kind: z.literal('final-session') }),\n]);\n\nconst toolApprovalsSchema = z.record(z.string(), z.nativeEnum(ToolApproval)).nullable();\n\n// MCP tool annotation hints a connection policy selects on (./tool-annotations.ts).\nexport const toolAnnotationSelectorSchema = z\n .strictObject({\n readOnlyHint: z.boolean().optional(),\n destructiveHint: z.boolean().optional(),\n idempotentHint: z.boolean().optional(),\n openWorldHint: z.boolean().optional(),\n })\n .refine((selector) => Object.keys(selector).length > 0, 'Select at least one annotation');\n\n// Tools exposed because their annotations match, with the approval (and the\n// connection default's input predicate) they run under.\nexport const toolAnnotationRuleSchema = z.object({\n match: toolAnnotationSelectorSchema,\n approval: z.nativeEnum(ToolApproval),\n inputApproval: inputApprovalSchema.optional(),\n});\n\nexport const workerMcpServerBindingSchema = z.object({\n key: z.string().min(1),\n kind: z.literal(McpServerBindingKind.Worker),\n tools: z.array(toolDescriptorSchema),\n approvals: toolApprovalsSchema,\n});\n\nexport const httpMcpServerBindingSchema = z.object({\n key: z.string().min(1),\n kind: z.literal(McpServerBindingKind.Http),\n url: z.string().url(),\n auth: mcpAuthSchema.nullable(),\n headers: z.record(z.string(), z.string()).default({}),\n // Null allows every tool the server lists, each with the default approval.\n // Keys are tool names or `*` patterns (./tool-patterns.ts); the most\n // specific matching key governs a tool.\n approvals: toolApprovalsSchema,\n // Tool names or `*` patterns hidden even when `approvals` would expose them.\n deny: z.array(z.string().min(1)).optional(),\n // Exposed tools (names or `*` patterns) the harness lists up front. Absent\n // lists every exposed tool; otherwise the host keeps the rest reachable\n // through search (HOSTING.md).\n load: z.array(z.string().min(1)).optional(),\n // Tools also exposed by their MCP annotations; named tools keep `approvals`.\n allowAnnotations: z.array(toolAnnotationRuleSchema).optional(),\n // Tools hidden by their MCP annotations, whatever else exposes them.\n denyAnnotations: z.array(toolAnnotationSelectorSchema).optional(),\n // The authored resolver that produced this connection, for retained boundary values.\n dynamicResolver: z.string().min(1).optional(),\n inputApprovals: z.record(z.string(), inputApprovalSchema).optional(),\n});\n\nexport const mcpServerBindingSchema = z.discriminatedUnion('kind', [\n workerMcpServerBindingSchema,\n httpMcpServerBindingSchema,\n]);\n\nexport const sandboxBindingSchema = z.object({\n provider: providerRefSchema,\n // Provider-defined environment options (`computer`: a setup guide reference or\n // inline guide plus start-time parameters). Validated by the provider.\n environment: maybeDynamic(jsonValueSchema),\n access: z.nativeEnum(SandboxAccess).default(SandboxAccess.Write),\n attach: z.nativeEnum(SandboxAttach).default(SandboxAttach.Lazy),\n});\n\nexport const baseToolsSchema = z.object({\n base: z.partialRecord(z.nativeEnum(BaseCapability), z.object({ target: z.string().min(1) })),\n // Capabilities declared on the harness's own host with no sandbox target\n // (`baseTools({ shell: harnessHost })`): only a harness that\n // provides them natively (host-disableable, host-fixed) can serve them.\n host: z.array(z.nativeEnum(BaseCapability)).optional(),\n});\n\nexport const channelBindingSchema = z.object({\n // Stable within the definition; publish maps it to a binding id.\n key: z.string().min(1),\n channel: providerRefSchema,\n config: jsonObjectSchema.default({}),\n source: z.string().optional(),\n});\n\nexport const hookBindingSchema = z.object({\n slug: z.string().min(1),\n export: z.string().min(1),\n events: z.array(z.string().min(1)).min(1),\n});\n\nexport const scheduleDefinitionSchema = z.object({\n key: z.string().min(1),\n cron: z.string().min(1),\n timezone: z.string().min(1),\n prompt: z.string().min(1),\n target: z.nativeEnum(ScheduleTarget),\n});\n\nexport const bundleSchema = z.object({\n // Absent on historical revisions: the host must inspect their resources.\n hasPreparationFiles: z.boolean().optional(),\n hash: z.string().min(1),\n // Dynamic slot path \u2192 resolver export and events.\n resolvers: z.record(\n z.string(),\n z.object({ export: z.string().min(1), events: z.array(z.nativeEnum(DynamicEvent)).min(1) }),\n ),\n});\n\nexport const harnessBindingSchema = z.object({\n harness: providerRefSchema,\n // Validated against the harness's configSchema; may contain dynamic slots at\n // any depth (an instruction fragment, the model).\n config: maybeDynamic(jsonValueSchema),\n});\n\nexport const agentManifestSchema = z.object({\n // Read persisted v2 revisions; v3 writers require hosts enforcing hosted bindings.\n version: z.union([z.literal(2), z.literal(MANIFEST_VERSION)]),\n identity: identitySchema,\n harness: harnessBindingSchema,\n mcpServers: maybeDynamic(z.array(mcpServerBindingSchema)),\n sandboxes: maybeDynamic(z.record(z.string(), sandboxBindingSchema)),\n tools: baseToolsSchema,\n toolPolicy: z.record(z.string(), z.nativeEnum(ToolApproval)),\n // Organization secrets this agent may read, by name (`secrets.get`,\n // MCP `secretKey`, `apiKey({ secret })`). Nothing else is readable;\n // binding organization secrets requires an organization admin at publish.\n secrets: z.array(z.string().min(1)).default([]),\n channels: z.array(channelBindingSchema),\n channelSources: z\n .record(z.string(), z.object({ path: z.string(), source: z.string(), disabled: z.boolean() }))\n .optional(),\n hooks: z.array(hookBindingSchema),\n schedules: z.array(scheduleDefinitionSchema),\n bundle: bundleSchema.nullable(),\n});\n\n// What one session actually got: every dynamic slot replaced by its resolved\n// value (stored in agent.session_manifests).\nexport const resolvedAgentManifestSchema = agentManifestSchema\n .extend({\n harness: z.object({ harness: providerRefSchema, config: jsonValueSchema }),\n mcpServers: z.array(mcpServerBindingSchema),\n sandboxes: z.record(z.string(), sandboxBindingSchema.extend({ environment: jsonValueSchema })),\n })\n .superRefine((manifest, ctx) => {\n if (containsDynamicSlot(manifest)) {\n ctx.addIssue({\n code: 'custom',\n message: 'a resolved manifest must not contain dynamic slots',\n });\n }\n });\n\nexport type IdentityIface = z.infer<typeof identitySchema>;\nexport type ToolDescriptorIface = z.infer<typeof toolDescriptorSchema>;\nexport type McpAuth = z.infer<typeof mcpAuthSchema>;\nexport type WorkerMcpServerBindingIface = z.infer<typeof workerMcpServerBindingSchema>;\nexport type HttpMcpServerBindingIface = z.infer<typeof httpMcpServerBindingSchema>;\nexport type ToolAnnotationSelectorIface = z.infer<typeof toolAnnotationSelectorSchema>;\nexport type ToolAnnotationRuleIface = z.infer<typeof toolAnnotationRuleSchema>;\nexport type McpServerBinding = z.infer<typeof mcpServerBindingSchema>;\nexport type SandboxBindingIface = z.infer<typeof sandboxBindingSchema>;\nexport type BaseToolsIface = z.infer<typeof baseToolsSchema>;\nexport type ChannelBindingIface = z.infer<typeof channelBindingSchema>;\nexport type HookBindingIface = z.infer<typeof hookBindingSchema>;\nexport type ScheduleDefinitionIface = z.infer<typeof scheduleDefinitionSchema>;\nexport type BundleIface = z.infer<typeof bundleSchema>;\nexport type HarnessBindingIface = z.infer<typeof harnessBindingSchema>;\nexport type AgentManifestIface = z.infer<typeof agentManifestSchema>;\nexport type ResolvedAgentManifestIface = z.infer<typeof resolvedAgentManifestSchema>;\nexport type ResolvedSandboxBindingIface = ResolvedAgentManifestIface['sandboxes'][string];\n\n// The fields of a harness config the platform itself reads through the shared\n// schema fragments; everything else is opaque to the platform.\nexport enum InstructionRole {\n System = 'system',\n User = 'user',\n}\n\nexport const instructionFragmentSchema = z.object({\n role: z.nativeEnum(InstructionRole),\n content: z.string(),\n // Source file, for the compatibility report and Build.\n source: z.string().optional(),\n});\n\nexport const skillFileSchema = z.object({ path: z.string().min(1), content: z.string() });\nexport const skillBundleSchema = z.object({\n key: z.string().min(1),\n description: z.string().optional(),\n files: z.array(skillFileSchema),\n});\n\nexport type InstructionFragmentIface = z.infer<typeof instructionFragmentSchema>;\nexport type SkillBundleIface = z.infer<typeof skillBundleSchema>;\n\nexport const emptyManifest = (name: string): AgentManifestIface => ({\n version: MANIFEST_VERSION,\n identity: { name, description: null },\n harness: {\n harness: packageRef('@finalai/final-agent-provider/harnesses/serverless-final'),\n config: {},\n },\n mcpServers: [],\n sandboxes: {},\n tools: { base: {} },\n toolPolicy: {},\n secrets: [],\n channels: [],\n hooks: [],\n schedules: [],\n bundle: null,\n});\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,OAAO;AACnB,SAAS,yBAAyB;AAClC,SAAS,qBAAqB,cAAc,oBAAoB;AAChE,SAAS,kBAAkB,kBAAkB,uBAAuB;AACpE,SAAS,YAAY,yBAAyB;AAE9C,SAAS,qBAAAA,oBAAmB,yBAAyB;AAY9C,MAAM,mBAAmB;AAGzB,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,WAAQ;AACR,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,iBAAc;AANJ,SAAAA;AAAA,GAAA;AASL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,WAAQ;AACR,EAAAA,cAAA,SAAM;AAFI,SAAAA;AAAA,GAAA;AAOL,IAAK,gBAAL,kBAAKC,mBAAL;AACL,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,WAAQ;AAHE,SAAAA;AAAA,GAAA;AAMZ,MAAM,sBAAsB;AAAA,EAC1B,CAAC,iBAAkB,GAAG;AAAA,EACtB,CAAC,uBAAqB,GAAG;AAAA,EACzB,CAAC,mBAAmB,GAAG;AACzB;AAGO,MAAM,uBAAuB,CAAC,QAAuB,UAC1D,oBAAoB,MAAM,KAAK,oBAAoB,KAAK;AAEnD,MAAM,wBAAwB,CAAC,GAAkB,MACtD,oBAAoB,CAAC,KAAK,oBAA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AAM,EAAE,QAAQ,qBAA2B;AAAA,EAC3C,OAAO,EAAE,MAAM,oBAAoB;AAAA,EACnC,WAAW;AACb,CAAC;AAEM,MAAM,6BAA6B,EAAE,OAAO;AAAA,EACjD,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC;AAAA,EACrB,MAAM,EAAE,QAAQ,iBAAyB;AAAA,EACzC,KAAK,EAAE,OAAO,EAAE,IAAI;AAAA,EACpB,MAAM,cAAc,SAAS;AAAA,EAC7B,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA,EAIpD,WAAW;AAAA;AAAA,EAEX,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI1C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA,EAE1C,kBAAkB,EAAE,MAAM,wBAAwB,EAAE,SAAS;AAAA;AAAA,EAE7D,iBAAiB,EAAE,MAAM,4BAA4B,EAAE,SAAS;AAAA;AAAA,EAEhE,iBAAiB,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EAC5C,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,EAAE,SAAS;AACrE,CAAC;AAEM,MAAM,yBAAyB,EAAE,mBAAmB,QAAQ;AAAA,EACjE;AAAA,EACA;AACF,CAAC;
|
|
4
|
+
"sourcesContent": ["import * as z from 'zod';\nimport { agentAvatarSchema } from '@finalai/agent-protocol';\nimport { containsDynamicSlot, DynamicEvent, maybeDynamic } from \"./dynamic.mjs\";\nimport { jsonObjectSchema, jsonSchemaSchema, jsonValueSchema } from \"./json.mjs\";\nimport { packageRef, providerRefSchema } from \"./provider-ref.mjs\";\n\nexport { agentAvatarSchema, avatarMediaSchema } from '@finalai/agent-protocol';\nexport type { AgentAvatarIface, AvatarMedia, AvatarState } from '@finalai/agent-protocol';\n\n// The Agent Manifest. It lives in the provider contract\n// package because it is what harnesses, sandboxes and channels receive;\n// @finalai/agent-definition compiles directories into it and re-exports it.\n//\n// A harness owns its loop, native tools, prompt assembly, models, permission\n// modes, memory and compaction: all of that is `harness.config`, typed by the\n// harness's own configSchema. What ACP standardizes (MCP servers, prompts,\n// permissions, cancellation) is session input, identical for every harness.\n\nexport const MANIFEST_VERSION = 4;\n\n// Base tool capability classes, one to one with sandbox handle capabilities.\nexport enum BaseCapability {\n Shell = 'shell',\n Files = 'files',\n Process = 'process',\n Ports = 'ports',\n Browser = 'browser',\n ComputerUse = 'computerUse',\n}\n\nexport enum ToolApproval {\n Allow = 'allow',\n Ask = 'ask',\n}\n\n// What a session may do on a sandbox target: read files; also run\n// processes (execute, without file writes); or everything (write).\nexport enum SandboxAccess {\n Read = 'read',\n Execute = 'execute',\n Write = 'write',\n}\n\nconst SANDBOX_ACCESS_RANK = {\n [SandboxAccess.Read]: 0,\n [SandboxAccess.Execute]: 1,\n [SandboxAccess.Write]: 2,\n} satisfies Record<SandboxAccess, number>;\n\n// Each access includes the ones before it: read < execute < write.\nexport const sandboxAccessAtLeast = (access: SandboxAccess, floor: SandboxAccess): boolean =>\n SANDBOX_ACCESS_RANK[access] >= SANDBOX_ACCESS_RANK[floor];\n\nexport const narrowerSandboxAccess = (a: SandboxAccess, b: SandboxAccess): SandboxAccess =>\n SANDBOX_ACCESS_RANK[a] <= SANDBOX_ACCESS_RANK[b] ? a : b;\n\nexport enum SandboxAttach {\n Lazy = 'lazy',\n OnPrompt = 'on-prompt',\n}\n\nexport enum McpServerBindingKind {\n // Authored tools, served from the agent's Worker isolate behind the MCP host.\n Worker = 'worker',\n Http = 'http',\n}\n\nexport enum ScheduleTarget {\n OwnerDirect = 'owner-direct',\n BoundConversation = 'bound-conversation',\n}\n\n// Whether a schedule's firing must get a visible reply. Values match the schedules API.\nexport enum ScheduleDelivery {\n Always = 'always',\n // The agent replies only when there is something to say; an empty turn posts nothing.\n IfNeeded = 'if_needed',\n}\n\nexport const identitySchema = z.object({\n name: z.string().min(1).max(120),\n description: z.string().max(2000).nullable(),\n avatar: agentAvatarSchema.optional(),\n});\n\nexport enum InputApprovalKind {\n Tool = 'tool',\n Connection = 'connection',\n}\n\nexport const inputApprovalSchema = z.object({\n kind: z.nativeEnum(InputApprovalKind),\n export: z.string().min(1),\n // Connection default when absent; otherwise tools.approval[policyKey].\n policyKey: z.string().min(1).optional(),\n dynamic: jsonObjectSchema.optional(),\n});\nexport type InputApprovalIface = z.infer<typeof inputApprovalSchema>;\n\n// Tool descriptors are stored statically so `tools/list` never needs the isolate.\nexport const toolDescriptorSchema = z.object({\n name: z.string().min(1),\n description: z.string(),\n inputSchema: jsonSchemaSchema,\n outputSchema: jsonSchemaSchema.optional(),\n annotations: z\n .object({\n title: z.string().optional(),\n readOnlyHint: z.boolean().optional(),\n destructiveHint: z.boolean().optional(),\n idempotentHint: z.boolean().optional(),\n openWorldHint: z.boolean().optional(),\n })\n .optional(),\n // Bundle export implementing it ('tools/lookup_release_notes').\n export: z.string().min(1).optional(),\n // Boundary snapshot used to reconstruct dynamic tools after isolate eviction.\n dynamic: jsonObjectSchema.optional(),\n inputApproval: inputApprovalSchema.optional(),\n});\n\nexport const mcpAuthSchema = z.union([\n z.object({ secretKey: z.string().min(1), headerName: z.string().min(1).nullable() }),\n // Resolved by the broker to a session-scoped grant (Final's own MCP server).\n z.object({ kind: z.literal('final-session') }),\n]);\n\nconst toolApprovalsSchema = z.record(z.string(), z.nativeEnum(ToolApproval)).nullable();\n\n// MCP tool annotation hints a connection policy selects on (./tool-annotations.ts).\nexport const toolAnnotationSelectorSchema = z\n .strictObject({\n readOnlyHint: z.boolean().optional(),\n destructiveHint: z.boolean().optional(),\n idempotentHint: z.boolean().optional(),\n openWorldHint: z.boolean().optional(),\n })\n .refine((selector) => Object.keys(selector).length > 0, 'Select at least one annotation');\n\n// Tools exposed because their annotations match, with the approval (and the\n// connection default's input predicate) they run under.\nexport const toolAnnotationRuleSchema = z.object({\n match: toolAnnotationSelectorSchema,\n approval: z.nativeEnum(ToolApproval),\n inputApproval: inputApprovalSchema.optional(),\n});\n\nexport const workerMcpServerBindingSchema = z.object({\n key: z.string().min(1),\n kind: z.literal(McpServerBindingKind.Worker),\n tools: z.array(toolDescriptorSchema),\n approvals: toolApprovalsSchema,\n});\n\nexport const httpMcpServerBindingSchema = z.object({\n key: z.string().min(1),\n kind: z.literal(McpServerBindingKind.Http),\n url: z.string().url(),\n auth: mcpAuthSchema.nullable(),\n headers: z.record(z.string(), z.string()).default({}),\n // Null allows every tool the server lists, each with the default approval.\n // Keys are tool names or `*` patterns (./tool-patterns.ts); the most\n // specific matching key governs a tool.\n approvals: toolApprovalsSchema,\n // Tool names or `*` patterns hidden even when `approvals` would expose them.\n deny: z.array(z.string().min(1)).optional(),\n // Exposed tools (names or `*` patterns) the harness lists up front. Absent\n // lists every exposed tool; otherwise the host keeps the rest reachable\n // through search (HOSTING.md).\n load: z.array(z.string().min(1)).optional(),\n // Tools also exposed by their MCP annotations; named tools keep `approvals`.\n allowAnnotations: z.array(toolAnnotationRuleSchema).optional(),\n // Tools hidden by their MCP annotations, whatever else exposes them.\n denyAnnotations: z.array(toolAnnotationSelectorSchema).optional(),\n // The authored resolver that produced this connection, for retained boundary values.\n dynamicResolver: z.string().min(1).optional(),\n inputApprovals: z.record(z.string(), inputApprovalSchema).optional(),\n});\n\nexport const mcpServerBindingSchema = z.discriminatedUnion('kind', [\n workerMcpServerBindingSchema,\n httpMcpServerBindingSchema,\n]);\n\n// A sandbox provider's credential by reference: `secretRef` is the name of a secret,\n// never its value. Providers take it as `credential` in their environment options.\nexport const sandboxCredentialRefSchema = z.strictObject({\n secretRef: z.string().min(1).max(256),\n});\n\nexport type SandboxCredentialRefIface = z.infer<typeof sandboxCredentialRefSchema>;\n\nexport const sandboxBindingSchema = z.object({\n provider: providerRefSchema,\n // Provider-defined environment options (`computer`: a setup guide reference or\n // inline guide plus start-time parameters). Validated by the provider.\n environment: maybeDynamic(jsonValueSchema),\n access: z.nativeEnum(SandboxAccess).default(SandboxAccess.Write),\n attach: z.nativeEnum(SandboxAttach).default(SandboxAttach.Lazy),\n});\n\nexport const baseToolsSchema = z.object({\n base: z.partialRecord(z.nativeEnum(BaseCapability), z.object({ target: z.string().min(1) })),\n // Capabilities declared on the harness's own host with no sandbox target\n // (`baseTools({ shell: harnessHost })`): only a harness that\n // provides them natively (host-disableable, host-fixed) can serve them.\n host: z.array(z.nativeEnum(BaseCapability)).optional(),\n});\n\nexport const channelCredentialsSchema = z.object({\n app: z.string().nullable(),\n secrets: z.array(z.string()).optional(),\n});\nexport const channelSurfaceSchema = z.object({\n routes: z.array(z.object({ method: z.string(), path: z.string() })),\n listeners: z.array(z.string()),\n placeKinds: z.array(z.string()),\n});\nexport const roomSurfaceBindingSchema = z.object({\n channel: providerRefSchema,\n config: jsonObjectSchema.default({}),\n source: z.string().optional(),\n});\nexport const channelBindingSchema = roomSurfaceBindingSchema.extend({\n key: z.string().min(1),\n credentials: channelCredentialsSchema,\n surface: channelSurfaceSchema,\n install: z.string().optional(),\n});\n\nexport const hookBindingSchema = z.object({\n slug: z.string().min(1),\n export: z.string().min(1),\n events: z.array(z.string().min(1)).min(1),\n});\n\nexport const scheduleDefinitionSchema = z.object({\n key: z.string().min(1),\n cron: z.string().min(1),\n timezone: z.string().min(1),\n prompt: z.string().min(1),\n target: z.nativeEnum(ScheduleTarget),\n});\n\nexport const bundleSchema = z.object({\n // Absent on historical revisions: the host must inspect their resources.\n hasPreparationFiles: z.boolean().optional(),\n hash: z.string().min(1),\n // Dynamic slot path \u2192 resolver export and events.\n resolvers: z.record(\n z.string(),\n z.object({ export: z.string().min(1), events: z.array(z.nativeEnum(DynamicEvent)).min(1) }),\n ),\n});\n\nexport const harnessBindingSchema = z.object({\n harness: providerRefSchema,\n // Validated against the harness's configSchema; may contain dynamic slots at\n // any depth (an instruction fragment, the model).\n config: maybeDynamic(jsonValueSchema),\n});\n\nexport const agentManifestSchema = z.object({\n // v4 external-channel writers require a host supporting scoped people and places.\n version: z.literal(MANIFEST_VERSION),\n identity: identitySchema,\n harness: harnessBindingSchema,\n mcpServers: maybeDynamic(z.array(mcpServerBindingSchema)),\n sandboxes: maybeDynamic(z.record(z.string(), sandboxBindingSchema)),\n tools: baseToolsSchema,\n toolPolicy: z.record(z.string(), z.nativeEnum(ToolApproval)),\n // Secrets this agent may read, by name (`secrets.get`, MCP `secretKey`,\n // `apiKey({ secret })`). Nothing else is readable.\n secrets: z.array(z.string().min(1)).default([]),\n channels: z.array(channelBindingSchema),\n roomSurface: roomSurfaceBindingSchema.optional(),\n channelSources: z\n .record(z.string(), z.object({ path: z.string(), source: z.string(), disabled: z.boolean() }))\n .optional(),\n hooks: z.array(hookBindingSchema),\n schedules: z.array(scheduleDefinitionSchema),\n bundle: bundleSchema.nullable(),\n});\n\n// What one session actually got: every dynamic slot replaced by its resolved\n// value (stored in agent.session_manifests).\nexport const resolvedAgentManifestSchema = agentManifestSchema\n .extend({\n harness: z.object({ harness: providerRefSchema, config: jsonValueSchema }),\n mcpServers: z.array(mcpServerBindingSchema),\n sandboxes: z.record(z.string(), sandboxBindingSchema.extend({ environment: jsonValueSchema })),\n })\n .superRefine((manifest, ctx) => {\n if (containsDynamicSlot(manifest)) {\n ctx.addIssue({\n code: 'custom',\n message: 'a resolved manifest must not contain dynamic slots',\n });\n }\n });\n\nexport type IdentityIface = z.infer<typeof identitySchema>;\nexport type ToolDescriptorIface = z.infer<typeof toolDescriptorSchema>;\nexport type McpAuth = z.infer<typeof mcpAuthSchema>;\nexport type WorkerMcpServerBindingIface = z.infer<typeof workerMcpServerBindingSchema>;\nexport type HttpMcpServerBindingIface = z.infer<typeof httpMcpServerBindingSchema>;\nexport type ToolAnnotationSelectorIface = z.infer<typeof toolAnnotationSelectorSchema>;\nexport type ToolAnnotationRuleIface = z.infer<typeof toolAnnotationRuleSchema>;\nexport type McpServerBinding = z.infer<typeof mcpServerBindingSchema>;\nexport type SandboxBindingIface = z.infer<typeof sandboxBindingSchema>;\nexport type BaseToolsIface = z.infer<typeof baseToolsSchema>;\nexport type ChannelBindingIface = z.infer<typeof channelBindingSchema>;\nexport type HookBindingIface = z.infer<typeof hookBindingSchema>;\nexport type ScheduleDefinitionIface = z.infer<typeof scheduleDefinitionSchema>;\nexport type BundleIface = z.infer<typeof bundleSchema>;\nexport type HarnessBindingIface = z.infer<typeof harnessBindingSchema>;\nexport type AgentManifestIface = z.infer<typeof agentManifestSchema>;\nexport type ResolvedAgentManifestIface = z.infer<typeof resolvedAgentManifestSchema>;\nexport type ResolvedSandboxBindingIface = ResolvedAgentManifestIface['sandboxes'][string];\n\n// The fields of a harness config the platform itself reads through the shared\n// schema fragments; everything else is opaque to the platform.\nexport enum InstructionRole {\n System = 'system',\n User = 'user',\n}\n\nexport const instructionFragmentSchema = z.object({\n role: z.nativeEnum(InstructionRole),\n content: z.string(),\n // Source file, for the compatibility report and Build.\n source: z.string().optional(),\n});\n\nexport const skillFileSchema = z.object({ path: z.string().min(1), content: z.string() });\nexport const skillBundleSchema = z.object({\n key: z.string().min(1),\n description: z.string().optional(),\n files: z.array(skillFileSchema),\n});\n\nexport type InstructionFragmentIface = z.infer<typeof instructionFragmentSchema>;\nexport type SkillBundleIface = z.infer<typeof skillBundleSchema>;\n\nexport const emptyManifest = (name: string): AgentManifestIface => ({\n version: MANIFEST_VERSION,\n identity: { name, description: null },\n harness: {\n harness: packageRef('@finalai/final-agent-provider/harnesses/serverless-final'),\n config: {},\n },\n mcpServers: [],\n sandboxes: {},\n tools: { base: {} },\n toolPolicy: {},\n secrets: [],\n channels: [],\n hooks: [],\n schedules: [],\n bundle: null,\n});\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,OAAO;AACnB,SAAS,yBAAyB;AAClC,SAAS,qBAAqB,cAAc,oBAAoB;AAChE,SAAS,kBAAkB,kBAAkB,uBAAuB;AACpE,SAAS,YAA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,CAAC;AAAA,EACZ,QAAQ;AACV;",
|
|
6
6
|
"names": ["agentAvatarSchema", "BaseCapability", "ToolApproval", "SandboxAccess", "SandboxAttach", "McpServerBindingKind", "ScheduleTarget", "ScheduleDelivery", "InputApprovalKind", "InstructionRole"]
|
|
7
7
|
}
|