@sequenceholdings/agent-spec 0.1.1 → 0.1.3

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.
Files changed (72) hide show
  1. package/README.md +93 -0
  2. package/dist/agent-definition.d.ts +616 -0
  3. package/dist/agent-definition.js +240 -0
  4. package/dist/canonical-json.d.ts +2 -0
  5. package/dist/canonical-json.js +13 -0
  6. package/dist/index.d.ts +2 -117
  7. package/dist/index.js +2 -248
  8. package/dist/input-schema.d.ts +19 -0
  9. package/dist/input-schema.js +57 -0
  10. package/dist/voice-access.d.ts +40 -0
  11. package/dist/voice-access.js +34 -0
  12. package/dist/voice-actions-contracts.d.ts +423 -0
  13. package/dist/voice-actions-contracts.js +95 -0
  14. package/dist/voice-actions-transitions.d.ts +52 -0
  15. package/dist/voice-actions-transitions.js +170 -0
  16. package/dist/voice-actions.d.ts +2 -0
  17. package/dist/voice-actions.js +2 -0
  18. package/dist/voice-api.d.ts +1102 -0
  19. package/dist/voice-api.js +164 -0
  20. package/dist/voice-authoring.d.ts +463 -0
  21. package/dist/voice-authoring.js +132 -0
  22. package/dist/voice-authority-contracts.d.ts +247 -0
  23. package/dist/voice-authority-contracts.js +177 -0
  24. package/dist/voice-authority-evaluation.d.ts +29 -0
  25. package/dist/voice-authority-evaluation.js +80 -0
  26. package/dist/voice-authority-verification.d.ts +47 -0
  27. package/dist/voice-authority-verification.js +184 -0
  28. package/dist/voice-authority.d.ts +3 -0
  29. package/dist/voice-authority.js +3 -0
  30. package/dist/voice-common.d.ts +21 -0
  31. package/dist/voice-common.js +23 -0
  32. package/dist/voice-drafts.d.ts +441 -0
  33. package/dist/voice-drafts.js +75 -0
  34. package/dist/voice-grant.d.ts +19 -0
  35. package/dist/voice-grant.js +21 -0
  36. package/dist/voice-lifecycle-control.d.ts +130 -0
  37. package/dist/voice-lifecycle-control.js +138 -0
  38. package/dist/voice-lifecycle-session.d.ts +168 -0
  39. package/dist/voice-lifecycle-session.js +114 -0
  40. package/dist/voice-lifecycle-states.d.ts +96 -0
  41. package/dist/voice-lifecycle-states.js +139 -0
  42. package/dist/voice-lifecycle.d.ts +3 -0
  43. package/dist/voice-lifecycle.js +3 -0
  44. package/dist/voice-policy-duration.d.ts +46 -0
  45. package/dist/voice-policy-duration.js +166 -0
  46. package/dist/voice-policy-limits.d.ts +174 -0
  47. package/dist/voice-policy-limits.js +188 -0
  48. package/dist/voice-policy.d.ts +2 -0
  49. package/dist/voice-policy.js +2 -0
  50. package/dist/voice-provider-evidence.d.ts +80 -0
  51. package/dist/voice-provider-evidence.js +115 -0
  52. package/dist/voice-provider-publication.d.ts +319 -0
  53. package/dist/voice-provider-publication.js +117 -0
  54. package/dist/voice-provider-release.d.ts +386 -0
  55. package/dist/voice-provider-release.js +154 -0
  56. package/dist/voice-provider.d.ts +3 -0
  57. package/dist/voice-provider.js +3 -0
  58. package/dist/voice-release.d.ts +808 -0
  59. package/dist/voice-release.js +110 -0
  60. package/dist/voice-runs-audio.d.ts +157 -0
  61. package/dist/voice-runs-audio.js +85 -0
  62. package/dist/voice-runs-evidence.d.ts +183 -0
  63. package/dist/voice-runs-evidence.js +154 -0
  64. package/dist/voice-runs-model.d.ts +967 -0
  65. package/dist/voice-runs-model.js +199 -0
  66. package/dist/voice-runs-tooling.d.ts +88 -0
  67. package/dist/voice-runs-tooling.js +100 -0
  68. package/dist/voice-runs.d.ts +4 -0
  69. package/dist/voice-runs.js +4 -0
  70. package/dist/voice.d.ts +13 -0
  71. package/dist/voice.js +13 -0
  72. package/package.json +8 -3
@@ -0,0 +1,616 @@
1
+ import { z } from 'zod';
2
+ export { canonicalJson } from './canonical-json.js';
3
+ export { voiceDeclarationSchema } from './voice-authoring.js';
4
+ export type { VoiceDeclaration, VoiceDeclarationInput } from './voice-authoring.js';
5
+ export type UnsupportedConstraint = {
6
+ path: string;
7
+ type: string;
8
+ keyword: string;
9
+ };
10
+ export declare function collectUnsupportedConstraints({ schema, path, }: {
11
+ schema: unknown;
12
+ path?: string;
13
+ }): UnsupportedConstraint[];
14
+ export declare const AGENT_PERMISSION_ROLES: readonly ["owner", "editor", "invoker", "outputs_viewer"];
15
+ export type AgentPermissionRole = (typeof AGENT_PERMISSION_ROLES)[number];
16
+ export declare const AGENT_REFERENCE_KINDS: readonly ["mcp_server", "skill", "subagent", "managed_function"];
17
+ export type AgentReferenceKind = (typeof AGENT_REFERENCE_KINDS)[number];
18
+ export declare const agentReferenceSchema: z.ZodObject<{
19
+ kind: z.ZodEnum<{
20
+ mcp_server: "mcp_server";
21
+ skill: "skill";
22
+ subagent: "subagent";
23
+ managed_function: "managed_function";
24
+ }>;
25
+ id: z.ZodString;
26
+ }, z.core.$strict>;
27
+ export type AgentReference = z.infer<typeof agentReferenceSchema>;
28
+ export declare const textAgentDefinitionSchema: z.ZodObject<{
29
+ id: z.ZodString;
30
+ name: z.ZodString;
31
+ description: z.ZodOptional<z.ZodString>;
32
+ framework: z.ZodOptional<z.ZodEnum<{
33
+ vercel: "vercel";
34
+ "claude-agent": "claude-agent";
35
+ }>>;
36
+ vmBackend: z.ZodOptional<z.ZodEnum<{
37
+ gce: "gce";
38
+ e2b: "e2b";
39
+ }>>;
40
+ idleTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
41
+ agentCapabilities: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
+ claudeToolSearch: z.ZodOptional<z.ZodEnum<{
43
+ enabled: "enabled";
44
+ disabled: "disabled";
45
+ auto: "auto";
46
+ }>>;
47
+ claudeBuiltInTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
48
+ openaiCodeInterpreter: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodObject<{
49
+ enabled: z.ZodBoolean;
50
+ containerId: z.ZodOptional<z.ZodString>;
51
+ fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
+ }, z.core.$strip>>>>;
53
+ model: z.ZodDefault<z.ZodObject<{
54
+ provider: z.ZodString;
55
+ name: z.ZodString;
56
+ }, z.core.$strip>>;
57
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
58
+ reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ systemPrompt: z.ZodOptional<z.ZodString>;
61
+ tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
62
+ mcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
63
+ requiredMcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
64
+ requiredReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
+ kind: z.ZodEnum<{
66
+ mcp_server: "mcp_server";
67
+ skill: "skill";
68
+ subagent: "subagent";
69
+ managed_function: "managed_function";
70
+ }>;
71
+ id: z.ZodString;
72
+ }, z.core.$strict>>>;
73
+ managedFunctions: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ excludedMcpTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
75
+ hideIntermediateText: z.ZodOptional<z.ZodBoolean>;
76
+ middleware: z.ZodDefault<z.ZodArray<z.ZodString>>;
77
+ subagents: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
78
+ id: z.ZodString;
79
+ forkContext: z.ZodOptional<z.ZodBoolean>;
80
+ }, z.core.$strip>]>>>;
81
+ skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
82
+ contextFileIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
83
+ structuredOutput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
84
+ inputSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
85
+ fields: z.ZodArray<z.ZodObject<{
86
+ name: z.ZodString;
87
+ label: z.ZodOptional<z.ZodString>;
88
+ description: z.ZodOptional<z.ZodString>;
89
+ type: z.ZodEnum<{
90
+ string: "string";
91
+ number: "number";
92
+ boolean: "boolean";
93
+ text: "text";
94
+ enum: "enum";
95
+ }>;
96
+ required: z.ZodOptional<z.ZodBoolean>;
97
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
98
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
+ placeholder: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>>;
101
+ }, z.core.$strip>>>;
102
+ promptTemplate: z.ZodOptional<z.ZodString>;
103
+ webhooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
104
+ mcpServerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
105
+ stubConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
106
+ maxTtlSeconds: z.ZodOptional<z.ZodNumber>;
107
+ agentPermissions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
108
+ apiPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
+ managedBy: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"automation">>>;
110
+ isPublic: z.ZodOptional<z.ZodBoolean>;
111
+ publicOutputs: z.ZodOptional<z.ZodBoolean>;
112
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
+ type: z.ZodEnum<{
114
+ user: "user";
115
+ group: "group";
116
+ }>;
117
+ id: z.ZodString;
118
+ role: z.ZodEnum<{
119
+ owner: "owner";
120
+ editor: "editor";
121
+ invoker: "invoker";
122
+ outputs_viewer: "outputs_viewer";
123
+ }>;
124
+ }, z.core.$strip>>>;
125
+ mode: z.ZodOptional<z.ZodLiteral<"text">>;
126
+ voice: z.ZodOptional<z.ZodNever>;
127
+ }, z.core.$strict>;
128
+ export declare const voiceAgentDefinitionSchema: z.ZodObject<{
129
+ name: z.ZodString;
130
+ description: z.ZodOptional<z.ZodString>;
131
+ id: z.ZodString;
132
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
+ type: z.ZodEnum<{
134
+ user: "user";
135
+ group: "group";
136
+ }>;
137
+ id: z.ZodString;
138
+ role: z.ZodEnum<{
139
+ owner: "owner";
140
+ editor: "editor";
141
+ invoker: "invoker";
142
+ outputs_viewer: "outputs_viewer";
143
+ }>;
144
+ }, z.core.$strip>>>;
145
+ mode: z.ZodLiteral<"voice">;
146
+ model: z.ZodObject<{
147
+ provider: z.ZodString;
148
+ name: z.ZodString;
149
+ }, z.core.$strict>;
150
+ systemPrompt: z.ZodString;
151
+ skills: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<string[], string[]>>;
152
+ voice: z.ZodPipe<z.ZodObject<{
153
+ schemaVersion: z.ZodLiteral<"1">;
154
+ voice: z.ZodString;
155
+ language: z.ZodString;
156
+ firstMessage: z.ZodString;
157
+ procedures: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
158
+ key: z.ZodString;
159
+ name: z.ZodString;
160
+ instructions: z.ZodString;
161
+ activationDescription: z.ZodString;
162
+ source: z.ZodObject<{
163
+ skillId: z.ZodString;
164
+ contentHash: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$strict>;
166
+ toolAliases: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
167
+ subprocedures: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
168
+ }, z.core.$strict>, z.ZodTransform<{
169
+ source: {
170
+ skillId: string;
171
+ contentHash: string;
172
+ };
173
+ key: string;
174
+ name: string;
175
+ instructions: string;
176
+ activationDescription: string;
177
+ toolAliases: string[];
178
+ subprocedures: string[];
179
+ }, {
180
+ key: string;
181
+ name: string;
182
+ instructions: string;
183
+ activationDescription: string;
184
+ source: {
185
+ skillId: string;
186
+ contentHash?: string | undefined;
187
+ };
188
+ toolAliases: string[];
189
+ subprocedures: string[];
190
+ }>>>>;
191
+ tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
192
+ alias: z.ZodString;
193
+ description: z.ZodString;
194
+ managedFunction: z.ZodObject<{
195
+ ref: z.ZodString;
196
+ operation: z.ZodString;
197
+ }, z.core.$strict>;
198
+ inputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
199
+ argument: z.ZodString;
200
+ parameter: z.ZodString;
201
+ }, z.core.$strict>>>;
202
+ outputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
203
+ field: z.ZodString;
204
+ result: z.ZodString;
205
+ }, z.core.$strict>>>;
206
+ }, z.core.$strict>, z.ZodTransform<{
207
+ inputMappings: {
208
+ argument: string;
209
+ parameter: string;
210
+ }[];
211
+ outputMappings: {
212
+ field: string;
213
+ result: string;
214
+ }[];
215
+ alias: string;
216
+ description: string;
217
+ managedFunction: {
218
+ ref: string;
219
+ operation: string;
220
+ };
221
+ }, {
222
+ alias: string;
223
+ description: string;
224
+ managedFunction: {
225
+ ref: string;
226
+ operation: string;
227
+ };
228
+ inputMappings: {
229
+ argument: string;
230
+ parameter: string;
231
+ }[];
232
+ outputMappings: {
233
+ field: string;
234
+ result: string;
235
+ }[];
236
+ }>>>>;
237
+ }, z.core.$strict>, z.ZodTransform<{
238
+ procedures: {
239
+ source: {
240
+ skillId: string;
241
+ contentHash: string;
242
+ };
243
+ key: string;
244
+ name: string;
245
+ instructions: string;
246
+ activationDescription: string;
247
+ toolAliases: string[];
248
+ subprocedures: string[];
249
+ }[];
250
+ tools: {
251
+ inputMappings: {
252
+ argument: string;
253
+ parameter: string;
254
+ }[];
255
+ outputMappings: {
256
+ field: string;
257
+ result: string;
258
+ }[];
259
+ alias: string;
260
+ description: string;
261
+ managedFunction: {
262
+ ref: string;
263
+ operation: string;
264
+ };
265
+ }[];
266
+ schemaVersion: "1";
267
+ voice: string;
268
+ language: string;
269
+ firstMessage: string;
270
+ }, {
271
+ schemaVersion: "1";
272
+ voice: string;
273
+ language: string;
274
+ firstMessage: string;
275
+ procedures: {
276
+ source: {
277
+ skillId: string;
278
+ contentHash: string;
279
+ };
280
+ key: string;
281
+ name: string;
282
+ instructions: string;
283
+ activationDescription: string;
284
+ toolAliases: string[];
285
+ subprocedures: string[];
286
+ }[];
287
+ tools: {
288
+ inputMappings: {
289
+ argument: string;
290
+ parameter: string;
291
+ }[];
292
+ outputMappings: {
293
+ field: string;
294
+ result: string;
295
+ }[];
296
+ alias: string;
297
+ description: string;
298
+ managedFunction: {
299
+ ref: string;
300
+ operation: string;
301
+ };
302
+ }[];
303
+ }>>;
304
+ isPublic: z.ZodOptional<z.ZodLiteral<false>>;
305
+ publicOutputs: z.ZodOptional<z.ZodLiteral<false>>;
306
+ }, z.core.$strict>;
307
+ export declare const agentDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ id: z.ZodString;
309
+ name: z.ZodString;
310
+ description: z.ZodOptional<z.ZodString>;
311
+ framework: z.ZodOptional<z.ZodEnum<{
312
+ vercel: "vercel";
313
+ "claude-agent": "claude-agent";
314
+ }>>;
315
+ vmBackend: z.ZodOptional<z.ZodEnum<{
316
+ gce: "gce";
317
+ e2b: "e2b";
318
+ }>>;
319
+ idleTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
320
+ agentCapabilities: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
321
+ claudeToolSearch: z.ZodOptional<z.ZodEnum<{
322
+ enabled: "enabled";
323
+ disabled: "disabled";
324
+ auto: "auto";
325
+ }>>;
326
+ claudeBuiltInTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
327
+ openaiCodeInterpreter: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodObject<{
328
+ enabled: z.ZodBoolean;
329
+ containerId: z.ZodOptional<z.ZodString>;
330
+ fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
331
+ }, z.core.$strip>>>>;
332
+ model: z.ZodDefault<z.ZodObject<{
333
+ provider: z.ZodString;
334
+ name: z.ZodString;
335
+ }, z.core.$strip>>;
336
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
337
+ reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
338
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
339
+ systemPrompt: z.ZodOptional<z.ZodString>;
340
+ tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
341
+ mcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
342
+ requiredMcpServers: z.ZodDefault<z.ZodArray<z.ZodString>>;
343
+ requiredReferences: z.ZodOptional<z.ZodArray<z.ZodObject<{
344
+ kind: z.ZodEnum<{
345
+ mcp_server: "mcp_server";
346
+ skill: "skill";
347
+ subagent: "subagent";
348
+ managed_function: "managed_function";
349
+ }>;
350
+ id: z.ZodString;
351
+ }, z.core.$strict>>>;
352
+ managedFunctions: z.ZodOptional<z.ZodArray<z.ZodString>>;
353
+ excludedMcpTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
354
+ hideIntermediateText: z.ZodOptional<z.ZodBoolean>;
355
+ middleware: z.ZodDefault<z.ZodArray<z.ZodString>>;
356
+ subagents: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
357
+ id: z.ZodString;
358
+ forkContext: z.ZodOptional<z.ZodBoolean>;
359
+ }, z.core.$strip>]>>>;
360
+ skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
361
+ contextFileIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
362
+ structuredOutput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
363
+ inputSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
364
+ fields: z.ZodArray<z.ZodObject<{
365
+ name: z.ZodString;
366
+ label: z.ZodOptional<z.ZodString>;
367
+ description: z.ZodOptional<z.ZodString>;
368
+ type: z.ZodEnum<{
369
+ string: "string";
370
+ number: "number";
371
+ boolean: "boolean";
372
+ text: "text";
373
+ enum: "enum";
374
+ }>;
375
+ required: z.ZodOptional<z.ZodBoolean>;
376
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
377
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
378
+ placeholder: z.ZodOptional<z.ZodString>;
379
+ }, z.core.$strip>>;
380
+ }, z.core.$strip>>>;
381
+ promptTemplate: z.ZodOptional<z.ZodString>;
382
+ webhooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
383
+ mcpServerConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
384
+ stubConfig: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
385
+ maxTtlSeconds: z.ZodOptional<z.ZodNumber>;
386
+ agentPermissions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
387
+ apiPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
+ managedBy: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"automation">>>;
389
+ isPublic: z.ZodOptional<z.ZodBoolean>;
390
+ publicOutputs: z.ZodOptional<z.ZodBoolean>;
391
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
392
+ type: z.ZodEnum<{
393
+ user: "user";
394
+ group: "group";
395
+ }>;
396
+ id: z.ZodString;
397
+ role: z.ZodEnum<{
398
+ owner: "owner";
399
+ editor: "editor";
400
+ invoker: "invoker";
401
+ outputs_viewer: "outputs_viewer";
402
+ }>;
403
+ }, z.core.$strip>>>;
404
+ mode: z.ZodOptional<z.ZodLiteral<"text">>;
405
+ voice: z.ZodOptional<z.ZodNever>;
406
+ }, z.core.$strict>, z.ZodObject<{
407
+ name: z.ZodString;
408
+ description: z.ZodOptional<z.ZodString>;
409
+ id: z.ZodString;
410
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
411
+ type: z.ZodEnum<{
412
+ user: "user";
413
+ group: "group";
414
+ }>;
415
+ id: z.ZodString;
416
+ role: z.ZodEnum<{
417
+ owner: "owner";
418
+ editor: "editor";
419
+ invoker: "invoker";
420
+ outputs_viewer: "outputs_viewer";
421
+ }>;
422
+ }, z.core.$strip>>>;
423
+ mode: z.ZodLiteral<"voice">;
424
+ model: z.ZodObject<{
425
+ provider: z.ZodString;
426
+ name: z.ZodString;
427
+ }, z.core.$strict>;
428
+ systemPrompt: z.ZodString;
429
+ skills: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<string[], string[]>>;
430
+ voice: z.ZodPipe<z.ZodObject<{
431
+ schemaVersion: z.ZodLiteral<"1">;
432
+ voice: z.ZodString;
433
+ language: z.ZodString;
434
+ firstMessage: z.ZodString;
435
+ procedures: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
436
+ key: z.ZodString;
437
+ name: z.ZodString;
438
+ instructions: z.ZodString;
439
+ activationDescription: z.ZodString;
440
+ source: z.ZodObject<{
441
+ skillId: z.ZodString;
442
+ contentHash: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$strict>;
444
+ toolAliases: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
445
+ subprocedures: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
446
+ }, z.core.$strict>, z.ZodTransform<{
447
+ source: {
448
+ skillId: string;
449
+ contentHash: string;
450
+ };
451
+ key: string;
452
+ name: string;
453
+ instructions: string;
454
+ activationDescription: string;
455
+ toolAliases: string[];
456
+ subprocedures: string[];
457
+ }, {
458
+ key: string;
459
+ name: string;
460
+ instructions: string;
461
+ activationDescription: string;
462
+ source: {
463
+ skillId: string;
464
+ contentHash?: string | undefined;
465
+ };
466
+ toolAliases: string[];
467
+ subprocedures: string[];
468
+ }>>>>;
469
+ tools: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
470
+ alias: z.ZodString;
471
+ description: z.ZodString;
472
+ managedFunction: z.ZodObject<{
473
+ ref: z.ZodString;
474
+ operation: z.ZodString;
475
+ }, z.core.$strict>;
476
+ inputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
477
+ argument: z.ZodString;
478
+ parameter: z.ZodString;
479
+ }, z.core.$strict>>>;
480
+ outputMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
481
+ field: z.ZodString;
482
+ result: z.ZodString;
483
+ }, z.core.$strict>>>;
484
+ }, z.core.$strict>, z.ZodTransform<{
485
+ inputMappings: {
486
+ argument: string;
487
+ parameter: string;
488
+ }[];
489
+ outputMappings: {
490
+ field: string;
491
+ result: string;
492
+ }[];
493
+ alias: string;
494
+ description: string;
495
+ managedFunction: {
496
+ ref: string;
497
+ operation: string;
498
+ };
499
+ }, {
500
+ alias: string;
501
+ description: string;
502
+ managedFunction: {
503
+ ref: string;
504
+ operation: string;
505
+ };
506
+ inputMappings: {
507
+ argument: string;
508
+ parameter: string;
509
+ }[];
510
+ outputMappings: {
511
+ field: string;
512
+ result: string;
513
+ }[];
514
+ }>>>>;
515
+ }, z.core.$strict>, z.ZodTransform<{
516
+ procedures: {
517
+ source: {
518
+ skillId: string;
519
+ contentHash: string;
520
+ };
521
+ key: string;
522
+ name: string;
523
+ instructions: string;
524
+ activationDescription: string;
525
+ toolAliases: string[];
526
+ subprocedures: string[];
527
+ }[];
528
+ tools: {
529
+ inputMappings: {
530
+ argument: string;
531
+ parameter: string;
532
+ }[];
533
+ outputMappings: {
534
+ field: string;
535
+ result: string;
536
+ }[];
537
+ alias: string;
538
+ description: string;
539
+ managedFunction: {
540
+ ref: string;
541
+ operation: string;
542
+ };
543
+ }[];
544
+ schemaVersion: "1";
545
+ voice: string;
546
+ language: string;
547
+ firstMessage: string;
548
+ }, {
549
+ schemaVersion: "1";
550
+ voice: string;
551
+ language: string;
552
+ firstMessage: string;
553
+ procedures: {
554
+ source: {
555
+ skillId: string;
556
+ contentHash: string;
557
+ };
558
+ key: string;
559
+ name: string;
560
+ instructions: string;
561
+ activationDescription: string;
562
+ toolAliases: string[];
563
+ subprocedures: string[];
564
+ }[];
565
+ tools: {
566
+ inputMappings: {
567
+ argument: string;
568
+ parameter: string;
569
+ }[];
570
+ outputMappings: {
571
+ field: string;
572
+ result: string;
573
+ }[];
574
+ alias: string;
575
+ description: string;
576
+ managedFunction: {
577
+ ref: string;
578
+ operation: string;
579
+ };
580
+ }[];
581
+ }>>;
582
+ isPublic: z.ZodOptional<z.ZodLiteral<false>>;
583
+ publicOutputs: z.ZodOptional<z.ZodLiteral<false>>;
584
+ }, z.core.$strict>], "mode">;
585
+ export type AgentDefinition = z.infer<typeof agentDefinitionSchema>;
586
+ export type AgentDefinitionInput = z.input<typeof agentDefinitionSchema>;
587
+ export type TextAgentDefinition = z.infer<typeof textAgentDefinitionSchema>;
588
+ export type VoiceAgentDefinition = z.infer<typeof voiceAgentDefinitionSchema>;
589
+ export type AgentMode = 'text' | 'voice';
590
+ export declare function defineAgent(input: z.input<typeof textAgentDefinitionSchema>): TextAgentDefinition;
591
+ export declare function defineAgent(input: z.input<typeof voiceAgentDefinitionSchema>): VoiceAgentDefinition;
592
+ export declare function defineAgent(input: AgentDefinitionInput): AgentDefinition;
593
+ export declare function getAgentMode({ definition }: {
594
+ definition: {
595
+ mode?: AgentMode;
596
+ };
597
+ }): AgentMode;
598
+ export declare function validateAgentModeUpdate({ existing, incoming }: {
599
+ existing: {
600
+ id: string;
601
+ mode?: AgentMode;
602
+ };
603
+ incoming: unknown;
604
+ }): AgentDefinition;
605
+ export declare function canonicalAgentJson(definition: AgentDefinition): string;
606
+ export declare function hashAgentBundle({ definitions, }: {
607
+ definitions: AgentDefinition[];
608
+ }): string;
609
+ export declare function formatAgentSource({ definition, exportName, }: {
610
+ definition: unknown;
611
+ exportName?: string;
612
+ }): string;
613
+ export declare function generateAgentSource({ definition, exportName, }: {
614
+ definition: AgentDefinition;
615
+ exportName?: string;
616
+ }): string;