@xpert-ai/contracts 3.35.0 → 3.37.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.
Files changed (105) hide show
  1. package/context-event.cjs.default.js +1 -0
  2. package/context-event.cjs.js +26 -0
  3. package/context-event.cjs.mjs +2 -0
  4. package/context-event.d.ts +1 -0
  5. package/context-event.esm.js +24 -0
  6. package/index.cjs.default.js +1 -0
  7. package/index.cjs.js +1165 -805
  8. package/index.cjs.mjs +2 -0
  9. package/index.esm.js +1140 -801
  10. package/package.json +18 -2
  11. package/src/agent-plugin.d.ts +4 -29
  12. package/src/ai/agent-output-delivery.model.d.ts +22 -1
  13. package/src/ai/agent-runtime.model.d.ts +4 -4
  14. package/src/ai/assistant-capability.model.d.ts +0 -1
  15. package/src/ai/assistant-template-manifest.model.d.ts +272 -308
  16. package/src/ai/assistant-template-overview.model.d.ts +0 -4
  17. package/src/ai/assistant-template.model.d.ts +0 -4
  18. package/src/ai/bosi.model.d.ts +1 -1
  19. package/src/ai/chat-activity.model.d.ts +13 -0
  20. package/src/ai/chat-message.model.d.ts +0 -11
  21. package/src/ai/chat.model.d.ts +3 -0
  22. package/src/ai/cli-execution.model.d.ts +88 -0
  23. package/src/ai/conversation-trail.model.d.ts +274 -274
  24. package/src/ai/copilot-store.model.d.ts +0 -13
  25. package/src/ai/evolution/entities.d.ts +164 -0
  26. package/src/ai/evolution/evaluation.d.ts +7 -0
  27. package/src/ai/evolution/execution-review.d.ts +68 -0
  28. package/src/ai/evolution/index.d.ts +2 -0
  29. package/src/ai/evolution/provider.d.ts +1 -0
  30. package/src/ai/evolution/target.d.ts +5 -0
  31. package/src/ai/execution-activity.model.d.ts +362 -362
  32. package/src/ai/execution-control-evidence.schema.d.ts +26 -26
  33. package/src/ai/execution-observability.model.d.ts +160 -160
  34. package/src/ai/execution-source.model.d.ts +45 -0
  35. package/src/ai/index.d.ts +2 -0
  36. package/src/ai/middleware.model.d.ts +1 -0
  37. package/src/ai/model-execution.model.d.ts +5 -108
  38. package/src/ai/model-replacement.model.d.ts +12 -12
  39. package/src/ai/project-configuration-view.model.d.ts +1 -0
  40. package/src/ai/project-pipeline/analytics.d.ts +288 -288
  41. package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
  42. package/src/ai/project-pipeline/commands.schema.d.ts +519 -476
  43. package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
  44. package/src/ai/project-pipeline/configuration-form.d.ts +1903 -1759
  45. package/src/ai/project-pipeline/configuration.schema.d.ts +425 -388
  46. package/src/ai/project-pipeline/contribution.schema.d.ts +764 -612
  47. package/src/ai/project-pipeline/definition.schema.d.ts +382 -338
  48. package/src/ai/project-pipeline/execution-statistics.d.ts +30 -30
  49. package/src/ai/project-pipeline/graph.model.d.ts +7 -2
  50. package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
  51. package/src/ai/project-pipeline/index.d.ts +1 -0
  52. package/src/ai/project-pipeline/model-usage-statistics.d.ts +6 -6
  53. package/src/ai/project-pipeline/node.schema.d.ts +57 -44
  54. package/src/ai/project-pipeline/operation.schema.d.ts +378 -378
  55. package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
  56. package/src/ai/project-pipeline/portfolio.schema.d.ts +684 -684
  57. package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
  58. package/src/ai/project-pipeline/projection.schema.d.ts +674 -637
  59. package/src/ai/project-pipeline/provider-actions.schema.d.ts +120 -120
  60. package/src/ai/project-pipeline/queue-statistics.d.ts +34 -34
  61. package/src/ai/project-pipeline/runtime.schema.d.ts +89 -89
  62. package/src/ai/project-pipeline/statistics.d.ts +142 -142
  63. package/src/ai/project-task-runtime.model.d.ts +265 -789
  64. package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
  65. package/src/ai/template-installation.model.d.ts +13 -13
  66. package/src/ai/template-lifecycle.model.d.ts +4 -4
  67. package/src/ai/xpert-agent-execution.model.d.ts +33 -0
  68. package/src/ai/xpert-project.model.d.ts +2 -1
  69. package/src/ai/xpert-tool.model.d.ts +12 -0
  70. package/src/ai/xpert.model.d.ts +0 -34
  71. package/src/ai/xpert.utils.d.ts +0 -1
  72. package/src/always-on/agent-event.model.d.ts +121 -0
  73. package/src/always-on/agent-event.schema.d.ts +139 -0
  74. package/src/always-on/agent-output-reference.schema.d.ts +27 -0
  75. package/src/always-on/agent-output.model.d.ts +411 -0
  76. package/src/always-on/human-decision.model.d.ts +204 -0
  77. package/src/always-on/index.d.ts +3 -0
  78. package/src/always-on/output-workbench.schema.d.ts +154 -0
  79. package/src/analytics/analysis-evidence.model.d.ts +29 -0
  80. package/src/analytics/analytics-certification.model.d.ts +17 -0
  81. package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
  82. package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
  83. package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
  84. package/src/analytics/index.d.ts +7 -0
  85. package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
  86. package/src/app-platform.d.ts +14 -14
  87. package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
  88. package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
  89. package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
  90. package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
  91. package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +4 -2
  92. package/src/artifacts/index.d.ts +5 -0
  93. package/src/collaboration.model.d.ts +31 -11
  94. package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
  95. package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +7 -3
  96. package/src/content/content-transfer.model.d.ts +21 -0
  97. package/src/content/index.d.ts +4 -0
  98. package/src/execution-control-admission.schema.d.ts +2 -2
  99. package/src/icon-definition.schema.d.ts +6 -10
  100. package/src/index.d.ts +5 -14
  101. package/src/secret-token.model.d.ts +4 -4
  102. package/src/user-notification.schema.d.ts +1300 -471
  103. package/src/view-extension/client-commands.d.ts +24 -0
  104. /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
  105. /package/src/{content-reference.model.d.ts → content/content-reference.model.d.ts} +0 -0
@@ -9,11 +9,11 @@ export declare const templateFilesSchema: z.ZodEffects<z.ZodObject<{
9
9
  kind: z.ZodLiteral<"directory">;
10
10
  path: z.ZodEffects<z.ZodString, string, string>;
11
11
  }, "strict", z.ZodTypeAny, {
12
- kind?: "directory";
13
12
  path?: string;
14
- }, {
15
13
  kind?: "directory";
14
+ }, {
16
15
  path?: string;
16
+ kind?: "directory";
17
17
  }>, z.ZodObject<{
18
18
  kind: z.ZodLiteral<"file">;
19
19
  path: z.ZodEffects<z.ZodString, string, string>;
@@ -21,15 +21,15 @@ export declare const templateFilesSchema: z.ZodEffects<z.ZodObject<{
21
21
  contentVersion: z.ZodString;
22
22
  policy: z.ZodLiteral<"create-only">;
23
23
  }, "strict", z.ZodTypeAny, {
24
- kind?: "file";
25
24
  path?: string;
26
25
  policy?: "create-only";
26
+ kind?: "file";
27
27
  content?: string;
28
28
  contentVersion?: string;
29
29
  }, {
30
- kind?: "file";
31
30
  path?: string;
32
31
  policy?: "create-only";
32
+ kind?: "file";
33
33
  content?: string;
34
34
  contentVersion?: string;
35
35
  }>, z.ZodObject<{
@@ -41,122 +41,122 @@ export declare const templateFilesSchema: z.ZodEffects<z.ZodObject<{
41
41
  label: z.ZodString;
42
42
  type: z.ZodEnum<["string", "number", "boolean", "date"]>;
43
43
  }, "strict", z.ZodTypeAny, {
44
+ label?: string;
44
45
  type?: "string" | "number" | "boolean" | "date";
45
46
  key?: string;
46
- label?: string;
47
47
  }, {
48
+ label?: string;
48
49
  type?: "string" | "number" | "boolean" | "date";
49
50
  key?: string;
50
- label?: string;
51
51
  }>, "many">;
52
52
  policy: z.ZodLiteral<"create-only">;
53
53
  }, "strict", z.ZodTypeAny, {
54
- kind?: "ledger";
55
54
  path?: string;
56
55
  columns?: {
56
+ label?: string;
57
57
  type?: "string" | "number" | "boolean" | "date";
58
58
  key?: string;
59
- label?: string;
60
59
  }[];
61
60
  policy?: "create-only";
61
+ kind?: "ledger";
62
62
  structureVersion?: string;
63
63
  }, {
64
- kind?: "ledger";
65
64
  path?: string;
66
65
  columns?: {
66
+ label?: string;
67
67
  type?: "string" | "number" | "boolean" | "date";
68
68
  key?: string;
69
- label?: string;
70
69
  }[];
71
70
  policy?: "create-only";
71
+ kind?: "ledger";
72
72
  structureVersion?: string;
73
73
  }>]>, "many">;
74
74
  }, "strict", z.ZodTypeAny, {
75
75
  scope?: "user" | "shared";
76
76
  entries?: ({
77
- kind?: "directory";
78
77
  path?: string;
78
+ kind?: "directory";
79
79
  } | {
80
- kind?: "file";
81
80
  path?: string;
82
81
  policy?: "create-only";
82
+ kind?: "file";
83
83
  content?: string;
84
84
  contentVersion?: string;
85
85
  } | {
86
- kind?: "ledger";
87
86
  path?: string;
88
87
  columns?: {
88
+ label?: string;
89
89
  type?: "string" | "number" | "boolean" | "date";
90
90
  key?: string;
91
- label?: string;
92
91
  }[];
93
92
  policy?: "create-only";
93
+ kind?: "ledger";
94
94
  structureVersion?: string;
95
95
  })[];
96
96
  }, {
97
97
  scope?: "user" | "shared";
98
98
  entries?: ({
99
- kind?: "directory";
100
99
  path?: string;
100
+ kind?: "directory";
101
101
  } | {
102
- kind?: "file";
103
102
  path?: string;
104
103
  policy?: "create-only";
104
+ kind?: "file";
105
105
  content?: string;
106
106
  contentVersion?: string;
107
107
  } | {
108
- kind?: "ledger";
109
108
  path?: string;
110
109
  columns?: {
110
+ label?: string;
111
111
  type?: "string" | "number" | "boolean" | "date";
112
112
  key?: string;
113
- label?: string;
114
113
  }[];
115
114
  policy?: "create-only";
115
+ kind?: "ledger";
116
116
  structureVersion?: string;
117
117
  })[];
118
118
  }>, {
119
119
  scope?: "user" | "shared";
120
120
  entries?: ({
121
- kind?: "directory";
122
121
  path?: string;
122
+ kind?: "directory";
123
123
  } | {
124
- kind?: "file";
125
124
  path?: string;
126
125
  policy?: "create-only";
126
+ kind?: "file";
127
127
  content?: string;
128
128
  contentVersion?: string;
129
129
  } | {
130
- kind?: "ledger";
131
130
  path?: string;
132
131
  columns?: {
132
+ label?: string;
133
133
  type?: "string" | "number" | "boolean" | "date";
134
134
  key?: string;
135
- label?: string;
136
135
  }[];
137
136
  policy?: "create-only";
137
+ kind?: "ledger";
138
138
  structureVersion?: string;
139
139
  })[];
140
140
  }, {
141
141
  scope?: "user" | "shared";
142
142
  entries?: ({
143
- kind?: "directory";
144
143
  path?: string;
144
+ kind?: "directory";
145
145
  } | {
146
- kind?: "file";
147
146
  path?: string;
148
147
  policy?: "create-only";
148
+ kind?: "file";
149
149
  content?: string;
150
150
  contentVersion?: string;
151
151
  } | {
152
- kind?: "ledger";
153
152
  path?: string;
154
153
  columns?: {
154
+ label?: string;
155
155
  type?: "string" | "number" | "boolean" | "date";
156
156
  key?: string;
157
- label?: string;
158
157
  }[];
159
158
  policy?: "create-only";
159
+ kind?: "ledger";
160
160
  structureVersion?: string;
161
161
  })[];
162
162
  }>;
@@ -164,16 +164,6 @@ export declare const templateFilesSchema: z.ZodEffects<z.ZodObject<{
164
164
  export declare const templateManifestV1Schema: z.ZodObject<{
165
165
  schemaVersion: z.ZodLiteral<1>;
166
166
  version: z.ZodString;
167
- memory: z.ZodOptional<z.ZodObject<{
168
- seed: z.ZodBoolean;
169
- preferences: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
170
- }, "strict", z.ZodTypeAny, {
171
- preferences?: string[];
172
- seed?: boolean;
173
- }, {
174
- preferences?: string[];
175
- seed?: boolean;
176
- }>>;
177
167
  skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
178
168
  pluginName: z.ZodOptional<z.ZodString>;
179
169
  componentKey: z.ZodString;
@@ -190,11 +180,11 @@ export declare const templateManifestV1Schema: z.ZodObject<{
190
180
  kind: z.ZodLiteral<"directory">;
191
181
  path: z.ZodEffects<z.ZodString, string, string>;
192
182
  }, "strict", z.ZodTypeAny, {
193
- kind?: "directory";
194
183
  path?: string;
195
- }, {
196
184
  kind?: "directory";
185
+ }, {
197
186
  path?: string;
187
+ kind?: "directory";
198
188
  }>, z.ZodObject<{
199
189
  kind: z.ZodLiteral<"file">;
200
190
  path: z.ZodEffects<z.ZodString, string, string>;
@@ -202,15 +192,15 @@ export declare const templateManifestV1Schema: z.ZodObject<{
202
192
  contentVersion: z.ZodString;
203
193
  policy: z.ZodLiteral<"create-only">;
204
194
  }, "strict", z.ZodTypeAny, {
205
- kind?: "file";
206
195
  path?: string;
207
196
  policy?: "create-only";
197
+ kind?: "file";
208
198
  content?: string;
209
199
  contentVersion?: string;
210
200
  }, {
211
- kind?: "file";
212
201
  path?: string;
213
202
  policy?: "create-only";
203
+ kind?: "file";
214
204
  content?: string;
215
205
  contentVersion?: string;
216
206
  }>, z.ZodObject<{
@@ -222,122 +212,122 @@ export declare const templateManifestV1Schema: z.ZodObject<{
222
212
  label: z.ZodString;
223
213
  type: z.ZodEnum<["string", "number", "boolean", "date"]>;
224
214
  }, "strict", z.ZodTypeAny, {
215
+ label?: string;
225
216
  type?: "string" | "number" | "boolean" | "date";
226
217
  key?: string;
227
- label?: string;
228
218
  }, {
219
+ label?: string;
229
220
  type?: "string" | "number" | "boolean" | "date";
230
221
  key?: string;
231
- label?: string;
232
222
  }>, "many">;
233
223
  policy: z.ZodLiteral<"create-only">;
234
224
  }, "strict", z.ZodTypeAny, {
235
- kind?: "ledger";
236
225
  path?: string;
237
226
  columns?: {
227
+ label?: string;
238
228
  type?: "string" | "number" | "boolean" | "date";
239
229
  key?: string;
240
- label?: string;
241
230
  }[];
242
231
  policy?: "create-only";
232
+ kind?: "ledger";
243
233
  structureVersion?: string;
244
234
  }, {
245
- kind?: "ledger";
246
235
  path?: string;
247
236
  columns?: {
237
+ label?: string;
248
238
  type?: "string" | "number" | "boolean" | "date";
249
239
  key?: string;
250
- label?: string;
251
240
  }[];
252
241
  policy?: "create-only";
242
+ kind?: "ledger";
253
243
  structureVersion?: string;
254
244
  }>]>, "many">;
255
245
  }, "strict", z.ZodTypeAny, {
256
246
  scope?: "user" | "shared";
257
247
  entries?: ({
258
- kind?: "directory";
259
248
  path?: string;
249
+ kind?: "directory";
260
250
  } | {
261
- kind?: "file";
262
251
  path?: string;
263
252
  policy?: "create-only";
253
+ kind?: "file";
264
254
  content?: string;
265
255
  contentVersion?: string;
266
256
  } | {
267
- kind?: "ledger";
268
257
  path?: string;
269
258
  columns?: {
259
+ label?: string;
270
260
  type?: "string" | "number" | "boolean" | "date";
271
261
  key?: string;
272
- label?: string;
273
262
  }[];
274
263
  policy?: "create-only";
264
+ kind?: "ledger";
275
265
  structureVersion?: string;
276
266
  })[];
277
267
  }, {
278
268
  scope?: "user" | "shared";
279
269
  entries?: ({
280
- kind?: "directory";
281
270
  path?: string;
271
+ kind?: "directory";
282
272
  } | {
283
- kind?: "file";
284
273
  path?: string;
285
274
  policy?: "create-only";
275
+ kind?: "file";
286
276
  content?: string;
287
277
  contentVersion?: string;
288
278
  } | {
289
- kind?: "ledger";
290
279
  path?: string;
291
280
  columns?: {
281
+ label?: string;
292
282
  type?: "string" | "number" | "boolean" | "date";
293
283
  key?: string;
294
- label?: string;
295
284
  }[];
296
285
  policy?: "create-only";
286
+ kind?: "ledger";
297
287
  structureVersion?: string;
298
288
  })[];
299
289
  }>, {
300
290
  scope?: "user" | "shared";
301
291
  entries?: ({
302
- kind?: "directory";
303
292
  path?: string;
293
+ kind?: "directory";
304
294
  } | {
305
- kind?: "file";
306
295
  path?: string;
307
296
  policy?: "create-only";
297
+ kind?: "file";
308
298
  content?: string;
309
299
  contentVersion?: string;
310
300
  } | {
311
- kind?: "ledger";
312
301
  path?: string;
313
302
  columns?: {
303
+ label?: string;
314
304
  type?: "string" | "number" | "boolean" | "date";
315
305
  key?: string;
316
- label?: string;
317
306
  }[];
318
307
  policy?: "create-only";
308
+ kind?: "ledger";
319
309
  structureVersion?: string;
320
310
  })[];
321
311
  }, {
322
312
  scope?: "user" | "shared";
323
313
  entries?: ({
324
- kind?: "directory";
325
314
  path?: string;
315
+ kind?: "directory";
326
316
  } | {
327
- kind?: "file";
328
317
  path?: string;
329
318
  policy?: "create-only";
319
+ kind?: "file";
330
320
  content?: string;
331
321
  contentVersion?: string;
332
322
  } | {
333
- kind?: "ledger";
334
323
  path?: string;
335
324
  columns?: {
325
+ label?: string;
336
326
  type?: "string" | "number" | "boolean" | "date";
337
327
  key?: string;
338
- label?: string;
339
328
  }[];
340
329
  policy?: "create-only";
330
+ kind?: "ledger";
341
331
  structureVersion?: string;
342
332
  })[];
343
333
  }>>;
@@ -364,39 +354,39 @@ export declare const templateManifestV1Schema: z.ZodObject<{
364
354
  purpose: z.ZodString;
365
355
  permissions: z.ZodArray<z.ZodString, "many">;
366
356
  }, "strict", z.ZodTypeAny, {
367
- key?: string;
368
357
  provider?: string;
369
358
  required?: boolean;
359
+ key?: string;
370
360
  permissions?: string[];
371
361
  purpose?: string;
372
362
  }, {
373
- key?: string;
374
363
  provider?: string;
375
364
  required?: boolean;
365
+ key?: string;
376
366
  permissions?: string[];
377
367
  purpose?: string;
378
368
  }>, "many">, {
379
- key?: string;
380
369
  provider?: string;
381
370
  required?: boolean;
371
+ key?: string;
382
372
  permissions?: string[];
383
373
  purpose?: string;
384
374
  }[], {
385
- key?: string;
386
375
  provider?: string;
387
376
  required?: boolean;
377
+ key?: string;
388
378
  permissions?: string[];
389
379
  purpose?: string;
390
380
  }[]>, {
391
- key?: string;
392
381
  provider?: string;
393
382
  required?: boolean;
383
+ key?: string;
394
384
  permissions?: string[];
395
385
  purpose?: string;
396
386
  }[], {
397
- key?: string;
398
387
  provider?: string;
399
388
  required?: boolean;
389
+ key?: string;
400
390
  permissions?: string[];
401
391
  purpose?: string;
402
392
  }[]>>;
@@ -411,37 +401,37 @@ export declare const templateManifestV1Schema: z.ZodObject<{
411
401
  enabled: z.ZodDefault<z.ZodLiteral<false>>;
412
402
  }, "strict", z.ZodTypeAny, {
413
403
  skill?: string;
414
- key?: string;
415
404
  enabled?: false;
416
405
  output?: string;
417
406
  required?: boolean;
407
+ key?: string;
418
408
  trigger?: "schedule" | "event";
419
409
  expression?: string;
420
410
  timezone?: "organization" | "user";
421
411
  }, {
422
412
  skill?: string;
423
- key?: string;
424
413
  enabled?: false;
425
414
  output?: string;
426
415
  required?: boolean;
416
+ key?: string;
427
417
  trigger?: "schedule" | "event";
428
418
  expression?: string;
429
419
  timezone?: "organization" | "user";
430
420
  }>, "many">, {
431
421
  skill?: string;
432
- key?: string;
433
422
  enabled?: false;
434
423
  output?: string;
435
424
  required?: boolean;
425
+ key?: string;
436
426
  trigger?: "schedule" | "event";
437
427
  expression?: string;
438
428
  timezone?: "organization" | "user";
439
429
  }[], {
440
430
  skill?: string;
441
- key?: string;
442
431
  enabled?: false;
443
432
  output?: string;
444
433
  required?: boolean;
434
+ key?: string;
445
435
  trigger?: "schedule" | "event";
446
436
  expression?: string;
447
437
  timezone?: "organization" | "user";
@@ -463,52 +453,48 @@ export declare const templateManifestV1Schema: z.ZodObject<{
463
453
  offline?: "requires-online" | "local-only";
464
454
  }>>;
465
455
  }, "strict", z.ZodTypeAny, {
466
- version?: string;
467
- execution?: {
468
- sandbox?: "server" | "cloud-computer";
469
- modelFeatures?: ModelFeature[];
470
- localCapabilities?: string[];
471
- offline?: "requires-online" | "local-only";
472
- };
473
456
  skills?: {
474
457
  pluginName?: string;
475
458
  componentKey?: string;
476
459
  }[];
477
460
  connectors?: {
478
- key?: string;
479
461
  provider?: string;
480
462
  required?: boolean;
463
+ key?: string;
481
464
  permissions?: string[];
482
465
  purpose?: string;
483
466
  }[];
467
+ version?: string;
468
+ execution?: {
469
+ sandbox?: "server" | "cloud-computer";
470
+ modelFeatures?: ModelFeature[];
471
+ localCapabilities?: string[];
472
+ offline?: "requires-online" | "local-only";
473
+ };
484
474
  schemaVersion?: 1;
485
475
  files?: {
486
476
  scope?: "user" | "shared";
487
477
  entries?: ({
488
- kind?: "directory";
489
478
  path?: string;
479
+ kind?: "directory";
490
480
  } | {
491
- kind?: "file";
492
481
  path?: string;
493
482
  policy?: "create-only";
483
+ kind?: "file";
494
484
  content?: string;
495
485
  contentVersion?: string;
496
486
  } | {
497
- kind?: "ledger";
498
487
  path?: string;
499
488
  columns?: {
489
+ label?: string;
500
490
  type?: "string" | "number" | "boolean" | "date";
501
491
  key?: string;
502
- label?: string;
503
492
  }[];
504
493
  policy?: "create-only";
494
+ kind?: "ledger";
505
495
  structureVersion?: string;
506
496
  })[];
507
497
  };
508
- memory?: {
509
- preferences?: string[];
510
- seed?: boolean;
511
- };
512
498
  onboarding?: {
513
499
  skill?: string;
514
500
  preferences?: string[];
@@ -517,61 +503,57 @@ export declare const templateManifestV1Schema: z.ZodObject<{
517
503
  };
518
504
  routines?: {
519
505
  skill?: string;
520
- key?: string;
521
506
  enabled?: false;
522
507
  output?: string;
523
508
  required?: boolean;
509
+ key?: string;
524
510
  trigger?: "schedule" | "event";
525
511
  expression?: string;
526
512
  timezone?: "organization" | "user";
527
513
  }[];
528
514
  }, {
529
- version?: string;
530
- execution?: {
531
- sandbox?: "server" | "cloud-computer";
532
- modelFeatures?: ModelFeature[];
533
- localCapabilities?: string[];
534
- offline?: "requires-online" | "local-only";
535
- };
536
515
  skills?: {
537
516
  pluginName?: string;
538
517
  componentKey?: string;
539
518
  }[];
540
519
  connectors?: {
541
- key?: string;
542
520
  provider?: string;
543
521
  required?: boolean;
522
+ key?: string;
544
523
  permissions?: string[];
545
524
  purpose?: string;
546
525
  }[];
526
+ version?: string;
527
+ execution?: {
528
+ sandbox?: "server" | "cloud-computer";
529
+ modelFeatures?: ModelFeature[];
530
+ localCapabilities?: string[];
531
+ offline?: "requires-online" | "local-only";
532
+ };
547
533
  schemaVersion?: 1;
548
534
  files?: {
549
535
  scope?: "user" | "shared";
550
536
  entries?: ({
551
- kind?: "directory";
552
537
  path?: string;
538
+ kind?: "directory";
553
539
  } | {
554
- kind?: "file";
555
540
  path?: string;
556
541
  policy?: "create-only";
542
+ kind?: "file";
557
543
  content?: string;
558
544
  contentVersion?: string;
559
545
  } | {
560
- kind?: "ledger";
561
546
  path?: string;
562
547
  columns?: {
548
+ label?: string;
563
549
  type?: "string" | "number" | "boolean" | "date";
564
550
  key?: string;
565
- label?: string;
566
551
  }[];
567
552
  policy?: "create-only";
553
+ kind?: "ledger";
568
554
  structureVersion?: string;
569
555
  })[];
570
556
  };
571
- memory?: {
572
- preferences?: string[];
573
- seed?: boolean;
574
- };
575
557
  onboarding?: {
576
558
  skill?: string;
577
559
  preferences?: string[];
@@ -580,10 +562,10 @@ export declare const templateManifestV1Schema: z.ZodObject<{
580
562
  };
581
563
  routines?: {
582
564
  skill?: string;
583
- key?: string;
584
565
  enabled?: false;
585
566
  output?: string;
586
567
  required?: boolean;
568
+ key?: string;
587
569
  trigger?: "schedule" | "event";
588
570
  expression?: string;
589
571
  timezone?: "organization" | "user";
@@ -591,7 +573,6 @@ export declare const templateManifestV1Schema: z.ZodObject<{
591
573
  }>;
592
574
  /** V2 keeps only initialization and requirements that the DSL cannot express. */
593
575
  export declare const assistantTemplateManifestSchema: z.ZodObject<{
594
- version: z.ZodString;
595
576
  connectors: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
596
577
  key: z.ZodString;
597
578
  provider: z.ZodString;
@@ -599,53 +580,54 @@ export declare const assistantTemplateManifestSchema: z.ZodObject<{
599
580
  purpose: z.ZodString;
600
581
  permissions: z.ZodArray<z.ZodString, "many">;
601
582
  }, "strict", z.ZodTypeAny, {
602
- key?: string;
603
583
  provider?: string;
604
584
  required?: boolean;
585
+ key?: string;
605
586
  permissions?: string[];
606
587
  purpose?: string;
607
588
  }, {
608
- key?: string;
609
589
  provider?: string;
610
590
  required?: boolean;
591
+ key?: string;
611
592
  permissions?: string[];
612
593
  purpose?: string;
613
594
  }>, "many">, {
614
- key?: string;
615
595
  provider?: string;
616
596
  required?: boolean;
597
+ key?: string;
617
598
  permissions?: string[];
618
599
  purpose?: string;
619
600
  }[], {
620
- key?: string;
621
601
  provider?: string;
622
602
  required?: boolean;
603
+ key?: string;
623
604
  permissions?: string[];
624
605
  purpose?: string;
625
606
  }[]>, {
626
- key?: string;
627
607
  provider?: string;
628
608
  required?: boolean;
609
+ key?: string;
629
610
  permissions?: string[];
630
611
  purpose?: string;
631
612
  }[], {
632
- key?: string;
633
613
  provider?: string;
634
614
  required?: boolean;
615
+ key?: string;
635
616
  permissions?: string[];
636
617
  purpose?: string;
637
618
  }[]>>;
619
+ version: z.ZodString;
638
620
  files: z.ZodOptional<z.ZodEffects<z.ZodObject<{
639
621
  scope: z.ZodEnum<["shared", "user"]>;
640
622
  entries: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
641
623
  kind: z.ZodLiteral<"directory">;
642
624
  path: z.ZodEffects<z.ZodString, string, string>;
643
625
  }, "strict", z.ZodTypeAny, {
644
- kind?: "directory";
645
626
  path?: string;
646
- }, {
647
627
  kind?: "directory";
628
+ }, {
648
629
  path?: string;
630
+ kind?: "directory";
649
631
  }>, z.ZodObject<{
650
632
  kind: z.ZodLiteral<"file">;
651
633
  path: z.ZodEffects<z.ZodString, string, string>;
@@ -653,15 +635,15 @@ export declare const assistantTemplateManifestSchema: z.ZodObject<{
653
635
  contentVersion: z.ZodString;
654
636
  policy: z.ZodLiteral<"create-only">;
655
637
  }, "strict", z.ZodTypeAny, {
656
- kind?: "file";
657
638
  path?: string;
658
639
  policy?: "create-only";
640
+ kind?: "file";
659
641
  content?: string;
660
642
  contentVersion?: string;
661
643
  }, {
662
- kind?: "file";
663
644
  path?: string;
664
645
  policy?: "create-only";
646
+ kind?: "file";
665
647
  content?: string;
666
648
  contentVersion?: string;
667
649
  }>, z.ZodObject<{
@@ -673,122 +655,122 @@ export declare const assistantTemplateManifestSchema: z.ZodObject<{
673
655
  label: z.ZodString;
674
656
  type: z.ZodEnum<["string", "number", "boolean", "date"]>;
675
657
  }, "strict", z.ZodTypeAny, {
658
+ label?: string;
676
659
  type?: "string" | "number" | "boolean" | "date";
677
660
  key?: string;
678
- label?: string;
679
661
  }, {
662
+ label?: string;
680
663
  type?: "string" | "number" | "boolean" | "date";
681
664
  key?: string;
682
- label?: string;
683
665
  }>, "many">;
684
666
  policy: z.ZodLiteral<"create-only">;
685
667
  }, "strict", z.ZodTypeAny, {
686
- kind?: "ledger";
687
668
  path?: string;
688
669
  columns?: {
670
+ label?: string;
689
671
  type?: "string" | "number" | "boolean" | "date";
690
672
  key?: string;
691
- label?: string;
692
673
  }[];
693
674
  policy?: "create-only";
675
+ kind?: "ledger";
694
676
  structureVersion?: string;
695
677
  }, {
696
- kind?: "ledger";
697
678
  path?: string;
698
679
  columns?: {
680
+ label?: string;
699
681
  type?: "string" | "number" | "boolean" | "date";
700
682
  key?: string;
701
- label?: string;
702
683
  }[];
703
684
  policy?: "create-only";
685
+ kind?: "ledger";
704
686
  structureVersion?: string;
705
687
  }>]>, "many">;
706
688
  }, "strict", z.ZodTypeAny, {
707
689
  scope?: "user" | "shared";
708
690
  entries?: ({
709
- kind?: "directory";
710
691
  path?: string;
692
+ kind?: "directory";
711
693
  } | {
712
- kind?: "file";
713
694
  path?: string;
714
695
  policy?: "create-only";
696
+ kind?: "file";
715
697
  content?: string;
716
698
  contentVersion?: string;
717
699
  } | {
718
- kind?: "ledger";
719
700
  path?: string;
720
701
  columns?: {
702
+ label?: string;
721
703
  type?: "string" | "number" | "boolean" | "date";
722
704
  key?: string;
723
- label?: string;
724
705
  }[];
725
706
  policy?: "create-only";
707
+ kind?: "ledger";
726
708
  structureVersion?: string;
727
709
  })[];
728
710
  }, {
729
711
  scope?: "user" | "shared";
730
712
  entries?: ({
731
- kind?: "directory";
732
713
  path?: string;
714
+ kind?: "directory";
733
715
  } | {
734
- kind?: "file";
735
716
  path?: string;
736
717
  policy?: "create-only";
718
+ kind?: "file";
737
719
  content?: string;
738
720
  contentVersion?: string;
739
721
  } | {
740
- kind?: "ledger";
741
722
  path?: string;
742
723
  columns?: {
724
+ label?: string;
743
725
  type?: "string" | "number" | "boolean" | "date";
744
726
  key?: string;
745
- label?: string;
746
727
  }[];
747
728
  policy?: "create-only";
729
+ kind?: "ledger";
748
730
  structureVersion?: string;
749
731
  })[];
750
732
  }>, {
751
733
  scope?: "user" | "shared";
752
734
  entries?: ({
753
- kind?: "directory";
754
735
  path?: string;
736
+ kind?: "directory";
755
737
  } | {
756
- kind?: "file";
757
738
  path?: string;
758
739
  policy?: "create-only";
740
+ kind?: "file";
759
741
  content?: string;
760
742
  contentVersion?: string;
761
743
  } | {
762
- kind?: "ledger";
763
744
  path?: string;
764
745
  columns?: {
746
+ label?: string;
765
747
  type?: "string" | "number" | "boolean" | "date";
766
748
  key?: string;
767
- label?: string;
768
749
  }[];
769
750
  policy?: "create-only";
751
+ kind?: "ledger";
770
752
  structureVersion?: string;
771
753
  })[];
772
754
  }, {
773
755
  scope?: "user" | "shared";
774
756
  entries?: ({
775
- kind?: "directory";
776
757
  path?: string;
758
+ kind?: "directory";
777
759
  } | {
778
- kind?: "file";
779
760
  path?: string;
780
761
  policy?: "create-only";
762
+ kind?: "file";
781
763
  content?: string;
782
764
  contentVersion?: string;
783
765
  } | {
784
- kind?: "ledger";
785
766
  path?: string;
786
767
  columns?: {
768
+ label?: string;
787
769
  type?: "string" | "number" | "boolean" | "date";
788
770
  key?: string;
789
- label?: string;
790
771
  }[];
791
772
  policy?: "create-only";
773
+ kind?: "ledger";
792
774
  structureVersion?: string;
793
775
  })[];
794
776
  }>>;
@@ -819,37 +801,37 @@ export declare const assistantTemplateManifestSchema: z.ZodObject<{
819
801
  enabled: z.ZodDefault<z.ZodLiteral<false>>;
820
802
  }, "strict", z.ZodTypeAny, {
821
803
  skill?: string;
822
- key?: string;
823
804
  enabled?: false;
824
805
  output?: string;
825
806
  required?: boolean;
807
+ key?: string;
826
808
  trigger?: "schedule" | "event";
827
809
  expression?: string;
828
810
  timezone?: "organization" | "user";
829
811
  }, {
830
812
  skill?: string;
831
- key?: string;
832
813
  enabled?: false;
833
814
  output?: string;
834
815
  required?: boolean;
816
+ key?: string;
835
817
  trigger?: "schedule" | "event";
836
818
  expression?: string;
837
819
  timezone?: "organization" | "user";
838
820
  }>, "many">, {
839
821
  skill?: string;
840
- key?: string;
841
822
  enabled?: false;
842
823
  output?: string;
843
824
  required?: boolean;
825
+ key?: string;
844
826
  trigger?: "schedule" | "event";
845
827
  expression?: string;
846
828
  timezone?: "organization" | "user";
847
829
  }[], {
848
830
  skill?: string;
849
- key?: string;
850
831
  enabled?: false;
851
832
  output?: string;
852
833
  required?: boolean;
834
+ key?: string;
853
835
  trigger?: "schedule" | "event";
854
836
  expression?: string;
855
837
  timezone?: "organization" | "user";
@@ -871,40 +853,40 @@ export declare const assistantTemplateManifestSchema: z.ZodObject<{
871
853
  offline?: "requires-online" | "local-only";
872
854
  }>>;
873
855
  }, "strict", z.ZodTypeAny, {
874
- version?: string;
875
- execution?: {
876
- modelFeatures?: ModelFeature[];
877
- localCapabilities?: string[];
878
- offline?: "requires-online" | "local-only";
879
- };
880
856
  connectors?: {
881
- key?: string;
882
857
  provider?: string;
883
858
  required?: boolean;
859
+ key?: string;
884
860
  permissions?: string[];
885
861
  purpose?: string;
886
862
  }[];
863
+ version?: string;
864
+ execution?: {
865
+ modelFeatures?: ModelFeature[];
866
+ localCapabilities?: string[];
867
+ offline?: "requires-online" | "local-only";
868
+ };
887
869
  schemaVersion?: 2;
888
870
  files?: {
889
871
  scope?: "user" | "shared";
890
872
  entries?: ({
891
- kind?: "directory";
892
873
  path?: string;
874
+ kind?: "directory";
893
875
  } | {
894
- kind?: "file";
895
876
  path?: string;
896
877
  policy?: "create-only";
878
+ kind?: "file";
897
879
  content?: string;
898
880
  contentVersion?: string;
899
881
  } | {
900
- kind?: "ledger";
901
882
  path?: string;
902
883
  columns?: {
884
+ label?: string;
903
885
  type?: "string" | "number" | "boolean" | "date";
904
886
  key?: string;
905
- label?: string;
906
887
  }[];
907
888
  policy?: "create-only";
889
+ kind?: "ledger";
908
890
  structureVersion?: string;
909
891
  })[];
910
892
  };
@@ -916,49 +898,49 @@ export declare const assistantTemplateManifestSchema: z.ZodObject<{
916
898
  };
917
899
  routines?: {
918
900
  skill?: string;
919
- key?: string;
920
901
  enabled?: false;
921
902
  output?: string;
922
903
  required?: boolean;
904
+ key?: string;
923
905
  trigger?: "schedule" | "event";
924
906
  expression?: string;
925
907
  timezone?: "organization" | "user";
926
908
  }[];
927
909
  }, {
928
- version?: string;
929
- execution?: {
930
- modelFeatures?: ModelFeature[];
931
- localCapabilities?: string[];
932
- offline?: "requires-online" | "local-only";
933
- };
934
910
  connectors?: {
935
- key?: string;
936
911
  provider?: string;
937
912
  required?: boolean;
913
+ key?: string;
938
914
  permissions?: string[];
939
915
  purpose?: string;
940
916
  }[];
917
+ version?: string;
918
+ execution?: {
919
+ modelFeatures?: ModelFeature[];
920
+ localCapabilities?: string[];
921
+ offline?: "requires-online" | "local-only";
922
+ };
941
923
  schemaVersion?: 2;
942
924
  files?: {
943
925
  scope?: "user" | "shared";
944
926
  entries?: ({
945
- kind?: "directory";
946
927
  path?: string;
928
+ kind?: "directory";
947
929
  } | {
948
- kind?: "file";
949
930
  path?: string;
950
931
  policy?: "create-only";
932
+ kind?: "file";
951
933
  content?: string;
952
934
  contentVersion?: string;
953
935
  } | {
954
- kind?: "ledger";
955
936
  path?: string;
956
937
  columns?: {
938
+ label?: string;
957
939
  type?: "string" | "number" | "boolean" | "date";
958
940
  key?: string;
959
- label?: string;
960
941
  }[];
961
942
  policy?: "create-only";
943
+ kind?: "ledger";
962
944
  structureVersion?: string;
963
945
  })[];
964
946
  };
@@ -970,10 +952,10 @@ export declare const assistantTemplateManifestSchema: z.ZodObject<{
970
952
  };
971
953
  routines?: {
972
954
  skill?: string;
973
- key?: string;
974
955
  enabled?: false;
975
956
  output?: string;
976
957
  required?: boolean;
958
+ key?: string;
977
959
  trigger?: "schedule" | "event";
978
960
  expression?: string;
979
961
  timezone?: "organization" | "user";
@@ -982,16 +964,6 @@ export declare const assistantTemplateManifestSchema: z.ZodObject<{
982
964
  export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVersion", [z.ZodObject<{
983
965
  schemaVersion: z.ZodLiteral<1>;
984
966
  version: z.ZodString;
985
- memory: z.ZodOptional<z.ZodObject<{
986
- seed: z.ZodBoolean;
987
- preferences: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
988
- }, "strict", z.ZodTypeAny, {
989
- preferences?: string[];
990
- seed?: boolean;
991
- }, {
992
- preferences?: string[];
993
- seed?: boolean;
994
- }>>;
995
967
  skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
996
968
  pluginName: z.ZodOptional<z.ZodString>;
997
969
  componentKey: z.ZodString;
@@ -1008,11 +980,11 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1008
980
  kind: z.ZodLiteral<"directory">;
1009
981
  path: z.ZodEffects<z.ZodString, string, string>;
1010
982
  }, "strict", z.ZodTypeAny, {
1011
- kind?: "directory";
1012
983
  path?: string;
1013
- }, {
1014
984
  kind?: "directory";
985
+ }, {
1015
986
  path?: string;
987
+ kind?: "directory";
1016
988
  }>, z.ZodObject<{
1017
989
  kind: z.ZodLiteral<"file">;
1018
990
  path: z.ZodEffects<z.ZodString, string, string>;
@@ -1020,15 +992,15 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1020
992
  contentVersion: z.ZodString;
1021
993
  policy: z.ZodLiteral<"create-only">;
1022
994
  }, "strict", z.ZodTypeAny, {
1023
- kind?: "file";
1024
995
  path?: string;
1025
996
  policy?: "create-only";
997
+ kind?: "file";
1026
998
  content?: string;
1027
999
  contentVersion?: string;
1028
1000
  }, {
1029
- kind?: "file";
1030
1001
  path?: string;
1031
1002
  policy?: "create-only";
1003
+ kind?: "file";
1032
1004
  content?: string;
1033
1005
  contentVersion?: string;
1034
1006
  }>, z.ZodObject<{
@@ -1040,122 +1012,122 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1040
1012
  label: z.ZodString;
1041
1013
  type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1042
1014
  }, "strict", z.ZodTypeAny, {
1015
+ label?: string;
1043
1016
  type?: "string" | "number" | "boolean" | "date";
1044
1017
  key?: string;
1045
- label?: string;
1046
1018
  }, {
1019
+ label?: string;
1047
1020
  type?: "string" | "number" | "boolean" | "date";
1048
1021
  key?: string;
1049
- label?: string;
1050
1022
  }>, "many">;
1051
1023
  policy: z.ZodLiteral<"create-only">;
1052
1024
  }, "strict", z.ZodTypeAny, {
1053
- kind?: "ledger";
1054
1025
  path?: string;
1055
1026
  columns?: {
1027
+ label?: string;
1056
1028
  type?: "string" | "number" | "boolean" | "date";
1057
1029
  key?: string;
1058
- label?: string;
1059
1030
  }[];
1060
1031
  policy?: "create-only";
1032
+ kind?: "ledger";
1061
1033
  structureVersion?: string;
1062
1034
  }, {
1063
- kind?: "ledger";
1064
1035
  path?: string;
1065
1036
  columns?: {
1037
+ label?: string;
1066
1038
  type?: "string" | "number" | "boolean" | "date";
1067
1039
  key?: string;
1068
- label?: string;
1069
1040
  }[];
1070
1041
  policy?: "create-only";
1042
+ kind?: "ledger";
1071
1043
  structureVersion?: string;
1072
1044
  }>]>, "many">;
1073
1045
  }, "strict", z.ZodTypeAny, {
1074
1046
  scope?: "user" | "shared";
1075
1047
  entries?: ({
1076
- kind?: "directory";
1077
1048
  path?: string;
1049
+ kind?: "directory";
1078
1050
  } | {
1079
- kind?: "file";
1080
1051
  path?: string;
1081
1052
  policy?: "create-only";
1053
+ kind?: "file";
1082
1054
  content?: string;
1083
1055
  contentVersion?: string;
1084
1056
  } | {
1085
- kind?: "ledger";
1086
1057
  path?: string;
1087
1058
  columns?: {
1059
+ label?: string;
1088
1060
  type?: "string" | "number" | "boolean" | "date";
1089
1061
  key?: string;
1090
- label?: string;
1091
1062
  }[];
1092
1063
  policy?: "create-only";
1064
+ kind?: "ledger";
1093
1065
  structureVersion?: string;
1094
1066
  })[];
1095
1067
  }, {
1096
1068
  scope?: "user" | "shared";
1097
1069
  entries?: ({
1098
- kind?: "directory";
1099
1070
  path?: string;
1071
+ kind?: "directory";
1100
1072
  } | {
1101
- kind?: "file";
1102
1073
  path?: string;
1103
1074
  policy?: "create-only";
1075
+ kind?: "file";
1104
1076
  content?: string;
1105
1077
  contentVersion?: string;
1106
1078
  } | {
1107
- kind?: "ledger";
1108
1079
  path?: string;
1109
1080
  columns?: {
1081
+ label?: string;
1110
1082
  type?: "string" | "number" | "boolean" | "date";
1111
1083
  key?: string;
1112
- label?: string;
1113
1084
  }[];
1114
1085
  policy?: "create-only";
1086
+ kind?: "ledger";
1115
1087
  structureVersion?: string;
1116
1088
  })[];
1117
1089
  }>, {
1118
1090
  scope?: "user" | "shared";
1119
1091
  entries?: ({
1120
- kind?: "directory";
1121
1092
  path?: string;
1093
+ kind?: "directory";
1122
1094
  } | {
1123
- kind?: "file";
1124
1095
  path?: string;
1125
1096
  policy?: "create-only";
1097
+ kind?: "file";
1126
1098
  content?: string;
1127
1099
  contentVersion?: string;
1128
1100
  } | {
1129
- kind?: "ledger";
1130
1101
  path?: string;
1131
1102
  columns?: {
1103
+ label?: string;
1132
1104
  type?: "string" | "number" | "boolean" | "date";
1133
1105
  key?: string;
1134
- label?: string;
1135
1106
  }[];
1136
1107
  policy?: "create-only";
1108
+ kind?: "ledger";
1137
1109
  structureVersion?: string;
1138
1110
  })[];
1139
1111
  }, {
1140
1112
  scope?: "user" | "shared";
1141
1113
  entries?: ({
1142
- kind?: "directory";
1143
1114
  path?: string;
1115
+ kind?: "directory";
1144
1116
  } | {
1145
- kind?: "file";
1146
1117
  path?: string;
1147
1118
  policy?: "create-only";
1119
+ kind?: "file";
1148
1120
  content?: string;
1149
1121
  contentVersion?: string;
1150
1122
  } | {
1151
- kind?: "ledger";
1152
1123
  path?: string;
1153
1124
  columns?: {
1125
+ label?: string;
1154
1126
  type?: "string" | "number" | "boolean" | "date";
1155
1127
  key?: string;
1156
- label?: string;
1157
1128
  }[];
1158
1129
  policy?: "create-only";
1130
+ kind?: "ledger";
1159
1131
  structureVersion?: string;
1160
1132
  })[];
1161
1133
  }>>;
@@ -1182,39 +1154,39 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1182
1154
  purpose: z.ZodString;
1183
1155
  permissions: z.ZodArray<z.ZodString, "many">;
1184
1156
  }, "strict", z.ZodTypeAny, {
1185
- key?: string;
1186
1157
  provider?: string;
1187
1158
  required?: boolean;
1159
+ key?: string;
1188
1160
  permissions?: string[];
1189
1161
  purpose?: string;
1190
1162
  }, {
1191
- key?: string;
1192
1163
  provider?: string;
1193
1164
  required?: boolean;
1165
+ key?: string;
1194
1166
  permissions?: string[];
1195
1167
  purpose?: string;
1196
1168
  }>, "many">, {
1197
- key?: string;
1198
1169
  provider?: string;
1199
1170
  required?: boolean;
1171
+ key?: string;
1200
1172
  permissions?: string[];
1201
1173
  purpose?: string;
1202
1174
  }[], {
1203
- key?: string;
1204
1175
  provider?: string;
1205
1176
  required?: boolean;
1177
+ key?: string;
1206
1178
  permissions?: string[];
1207
1179
  purpose?: string;
1208
1180
  }[]>, {
1209
- key?: string;
1210
1181
  provider?: string;
1211
1182
  required?: boolean;
1183
+ key?: string;
1212
1184
  permissions?: string[];
1213
1185
  purpose?: string;
1214
1186
  }[], {
1215
- key?: string;
1216
1187
  provider?: string;
1217
1188
  required?: boolean;
1189
+ key?: string;
1218
1190
  permissions?: string[];
1219
1191
  purpose?: string;
1220
1192
  }[]>>;
@@ -1229,37 +1201,37 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1229
1201
  enabled: z.ZodDefault<z.ZodLiteral<false>>;
1230
1202
  }, "strict", z.ZodTypeAny, {
1231
1203
  skill?: string;
1232
- key?: string;
1233
1204
  enabled?: false;
1234
1205
  output?: string;
1235
1206
  required?: boolean;
1207
+ key?: string;
1236
1208
  trigger?: "schedule" | "event";
1237
1209
  expression?: string;
1238
1210
  timezone?: "organization" | "user";
1239
1211
  }, {
1240
1212
  skill?: string;
1241
- key?: string;
1242
1213
  enabled?: false;
1243
1214
  output?: string;
1244
1215
  required?: boolean;
1216
+ key?: string;
1245
1217
  trigger?: "schedule" | "event";
1246
1218
  expression?: string;
1247
1219
  timezone?: "organization" | "user";
1248
1220
  }>, "many">, {
1249
1221
  skill?: string;
1250
- key?: string;
1251
1222
  enabled?: false;
1252
1223
  output?: string;
1253
1224
  required?: boolean;
1225
+ key?: string;
1254
1226
  trigger?: "schedule" | "event";
1255
1227
  expression?: string;
1256
1228
  timezone?: "organization" | "user";
1257
1229
  }[], {
1258
1230
  skill?: string;
1259
- key?: string;
1260
1231
  enabled?: false;
1261
1232
  output?: string;
1262
1233
  required?: boolean;
1234
+ key?: string;
1263
1235
  trigger?: "schedule" | "event";
1264
1236
  expression?: string;
1265
1237
  timezone?: "organization" | "user";
@@ -1281,52 +1253,48 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1281
1253
  offline?: "requires-online" | "local-only";
1282
1254
  }>>;
1283
1255
  }, "strict", z.ZodTypeAny, {
1284
- version?: string;
1285
- execution?: {
1286
- sandbox?: "server" | "cloud-computer";
1287
- modelFeatures?: ModelFeature[];
1288
- localCapabilities?: string[];
1289
- offline?: "requires-online" | "local-only";
1290
- };
1291
1256
  skills?: {
1292
1257
  pluginName?: string;
1293
1258
  componentKey?: string;
1294
1259
  }[];
1295
1260
  connectors?: {
1296
- key?: string;
1297
1261
  provider?: string;
1298
1262
  required?: boolean;
1263
+ key?: string;
1299
1264
  permissions?: string[];
1300
1265
  purpose?: string;
1301
1266
  }[];
1267
+ version?: string;
1268
+ execution?: {
1269
+ sandbox?: "server" | "cloud-computer";
1270
+ modelFeatures?: ModelFeature[];
1271
+ localCapabilities?: string[];
1272
+ offline?: "requires-online" | "local-only";
1273
+ };
1302
1274
  schemaVersion?: 1;
1303
1275
  files?: {
1304
1276
  scope?: "user" | "shared";
1305
1277
  entries?: ({
1306
- kind?: "directory";
1307
1278
  path?: string;
1279
+ kind?: "directory";
1308
1280
  } | {
1309
- kind?: "file";
1310
1281
  path?: string;
1311
1282
  policy?: "create-only";
1283
+ kind?: "file";
1312
1284
  content?: string;
1313
1285
  contentVersion?: string;
1314
1286
  } | {
1315
- kind?: "ledger";
1316
1287
  path?: string;
1317
1288
  columns?: {
1289
+ label?: string;
1318
1290
  type?: "string" | "number" | "boolean" | "date";
1319
1291
  key?: string;
1320
- label?: string;
1321
1292
  }[];
1322
1293
  policy?: "create-only";
1294
+ kind?: "ledger";
1323
1295
  structureVersion?: string;
1324
1296
  })[];
1325
1297
  };
1326
- memory?: {
1327
- preferences?: string[];
1328
- seed?: boolean;
1329
- };
1330
1298
  onboarding?: {
1331
1299
  skill?: string;
1332
1300
  preferences?: string[];
@@ -1335,61 +1303,57 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1335
1303
  };
1336
1304
  routines?: {
1337
1305
  skill?: string;
1338
- key?: string;
1339
1306
  enabled?: false;
1340
1307
  output?: string;
1341
1308
  required?: boolean;
1309
+ key?: string;
1342
1310
  trigger?: "schedule" | "event";
1343
1311
  expression?: string;
1344
1312
  timezone?: "organization" | "user";
1345
1313
  }[];
1346
1314
  }, {
1347
- version?: string;
1348
- execution?: {
1349
- sandbox?: "server" | "cloud-computer";
1350
- modelFeatures?: ModelFeature[];
1351
- localCapabilities?: string[];
1352
- offline?: "requires-online" | "local-only";
1353
- };
1354
1315
  skills?: {
1355
1316
  pluginName?: string;
1356
1317
  componentKey?: string;
1357
1318
  }[];
1358
1319
  connectors?: {
1359
- key?: string;
1360
1320
  provider?: string;
1361
1321
  required?: boolean;
1322
+ key?: string;
1362
1323
  permissions?: string[];
1363
1324
  purpose?: string;
1364
1325
  }[];
1326
+ version?: string;
1327
+ execution?: {
1328
+ sandbox?: "server" | "cloud-computer";
1329
+ modelFeatures?: ModelFeature[];
1330
+ localCapabilities?: string[];
1331
+ offline?: "requires-online" | "local-only";
1332
+ };
1365
1333
  schemaVersion?: 1;
1366
1334
  files?: {
1367
1335
  scope?: "user" | "shared";
1368
1336
  entries?: ({
1369
- kind?: "directory";
1370
1337
  path?: string;
1338
+ kind?: "directory";
1371
1339
  } | {
1372
- kind?: "file";
1373
1340
  path?: string;
1374
1341
  policy?: "create-only";
1342
+ kind?: "file";
1375
1343
  content?: string;
1376
1344
  contentVersion?: string;
1377
1345
  } | {
1378
- kind?: "ledger";
1379
1346
  path?: string;
1380
1347
  columns?: {
1348
+ label?: string;
1381
1349
  type?: "string" | "number" | "boolean" | "date";
1382
1350
  key?: string;
1383
- label?: string;
1384
1351
  }[];
1385
1352
  policy?: "create-only";
1353
+ kind?: "ledger";
1386
1354
  structureVersion?: string;
1387
1355
  })[];
1388
1356
  };
1389
- memory?: {
1390
- preferences?: string[];
1391
- seed?: boolean;
1392
- };
1393
1357
  onboarding?: {
1394
1358
  skill?: string;
1395
1359
  preferences?: string[];
@@ -1398,16 +1362,15 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1398
1362
  };
1399
1363
  routines?: {
1400
1364
  skill?: string;
1401
- key?: string;
1402
1365
  enabled?: false;
1403
1366
  output?: string;
1404
1367
  required?: boolean;
1368
+ key?: string;
1405
1369
  trigger?: "schedule" | "event";
1406
1370
  expression?: string;
1407
1371
  timezone?: "organization" | "user";
1408
1372
  }[];
1409
1373
  }>, z.ZodObject<{
1410
- version: z.ZodString;
1411
1374
  connectors: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
1412
1375
  key: z.ZodString;
1413
1376
  provider: z.ZodString;
@@ -1415,53 +1378,54 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1415
1378
  purpose: z.ZodString;
1416
1379
  permissions: z.ZodArray<z.ZodString, "many">;
1417
1380
  }, "strict", z.ZodTypeAny, {
1418
- key?: string;
1419
1381
  provider?: string;
1420
1382
  required?: boolean;
1383
+ key?: string;
1421
1384
  permissions?: string[];
1422
1385
  purpose?: string;
1423
1386
  }, {
1424
- key?: string;
1425
1387
  provider?: string;
1426
1388
  required?: boolean;
1389
+ key?: string;
1427
1390
  permissions?: string[];
1428
1391
  purpose?: string;
1429
1392
  }>, "many">, {
1430
- key?: string;
1431
1393
  provider?: string;
1432
1394
  required?: boolean;
1395
+ key?: string;
1433
1396
  permissions?: string[];
1434
1397
  purpose?: string;
1435
1398
  }[], {
1436
- key?: string;
1437
1399
  provider?: string;
1438
1400
  required?: boolean;
1401
+ key?: string;
1439
1402
  permissions?: string[];
1440
1403
  purpose?: string;
1441
1404
  }[]>, {
1442
- key?: string;
1443
1405
  provider?: string;
1444
1406
  required?: boolean;
1407
+ key?: string;
1445
1408
  permissions?: string[];
1446
1409
  purpose?: string;
1447
1410
  }[], {
1448
- key?: string;
1449
1411
  provider?: string;
1450
1412
  required?: boolean;
1413
+ key?: string;
1451
1414
  permissions?: string[];
1452
1415
  purpose?: string;
1453
1416
  }[]>>;
1417
+ version: z.ZodString;
1454
1418
  files: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1455
1419
  scope: z.ZodEnum<["shared", "user"]>;
1456
1420
  entries: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1457
1421
  kind: z.ZodLiteral<"directory">;
1458
1422
  path: z.ZodEffects<z.ZodString, string, string>;
1459
1423
  }, "strict", z.ZodTypeAny, {
1460
- kind?: "directory";
1461
1424
  path?: string;
1462
- }, {
1463
1425
  kind?: "directory";
1426
+ }, {
1464
1427
  path?: string;
1428
+ kind?: "directory";
1465
1429
  }>, z.ZodObject<{
1466
1430
  kind: z.ZodLiteral<"file">;
1467
1431
  path: z.ZodEffects<z.ZodString, string, string>;
@@ -1469,15 +1433,15 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1469
1433
  contentVersion: z.ZodString;
1470
1434
  policy: z.ZodLiteral<"create-only">;
1471
1435
  }, "strict", z.ZodTypeAny, {
1472
- kind?: "file";
1473
1436
  path?: string;
1474
1437
  policy?: "create-only";
1438
+ kind?: "file";
1475
1439
  content?: string;
1476
1440
  contentVersion?: string;
1477
1441
  }, {
1478
- kind?: "file";
1479
1442
  path?: string;
1480
1443
  policy?: "create-only";
1444
+ kind?: "file";
1481
1445
  content?: string;
1482
1446
  contentVersion?: string;
1483
1447
  }>, z.ZodObject<{
@@ -1489,122 +1453,122 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1489
1453
  label: z.ZodString;
1490
1454
  type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1491
1455
  }, "strict", z.ZodTypeAny, {
1456
+ label?: string;
1492
1457
  type?: "string" | "number" | "boolean" | "date";
1493
1458
  key?: string;
1494
- label?: string;
1495
1459
  }, {
1460
+ label?: string;
1496
1461
  type?: "string" | "number" | "boolean" | "date";
1497
1462
  key?: string;
1498
- label?: string;
1499
1463
  }>, "many">;
1500
1464
  policy: z.ZodLiteral<"create-only">;
1501
1465
  }, "strict", z.ZodTypeAny, {
1502
- kind?: "ledger";
1503
1466
  path?: string;
1504
1467
  columns?: {
1468
+ label?: string;
1505
1469
  type?: "string" | "number" | "boolean" | "date";
1506
1470
  key?: string;
1507
- label?: string;
1508
1471
  }[];
1509
1472
  policy?: "create-only";
1473
+ kind?: "ledger";
1510
1474
  structureVersion?: string;
1511
1475
  }, {
1512
- kind?: "ledger";
1513
1476
  path?: string;
1514
1477
  columns?: {
1478
+ label?: string;
1515
1479
  type?: "string" | "number" | "boolean" | "date";
1516
1480
  key?: string;
1517
- label?: string;
1518
1481
  }[];
1519
1482
  policy?: "create-only";
1483
+ kind?: "ledger";
1520
1484
  structureVersion?: string;
1521
1485
  }>]>, "many">;
1522
1486
  }, "strict", z.ZodTypeAny, {
1523
1487
  scope?: "user" | "shared";
1524
1488
  entries?: ({
1525
- kind?: "directory";
1526
1489
  path?: string;
1490
+ kind?: "directory";
1527
1491
  } | {
1528
- kind?: "file";
1529
1492
  path?: string;
1530
1493
  policy?: "create-only";
1494
+ kind?: "file";
1531
1495
  content?: string;
1532
1496
  contentVersion?: string;
1533
1497
  } | {
1534
- kind?: "ledger";
1535
1498
  path?: string;
1536
1499
  columns?: {
1500
+ label?: string;
1537
1501
  type?: "string" | "number" | "boolean" | "date";
1538
1502
  key?: string;
1539
- label?: string;
1540
1503
  }[];
1541
1504
  policy?: "create-only";
1505
+ kind?: "ledger";
1542
1506
  structureVersion?: string;
1543
1507
  })[];
1544
1508
  }, {
1545
1509
  scope?: "user" | "shared";
1546
1510
  entries?: ({
1547
- kind?: "directory";
1548
1511
  path?: string;
1512
+ kind?: "directory";
1549
1513
  } | {
1550
- kind?: "file";
1551
1514
  path?: string;
1552
1515
  policy?: "create-only";
1516
+ kind?: "file";
1553
1517
  content?: string;
1554
1518
  contentVersion?: string;
1555
1519
  } | {
1556
- kind?: "ledger";
1557
1520
  path?: string;
1558
1521
  columns?: {
1522
+ label?: string;
1559
1523
  type?: "string" | "number" | "boolean" | "date";
1560
1524
  key?: string;
1561
- label?: string;
1562
1525
  }[];
1563
1526
  policy?: "create-only";
1527
+ kind?: "ledger";
1564
1528
  structureVersion?: string;
1565
1529
  })[];
1566
1530
  }>, {
1567
1531
  scope?: "user" | "shared";
1568
1532
  entries?: ({
1569
- kind?: "directory";
1570
1533
  path?: string;
1534
+ kind?: "directory";
1571
1535
  } | {
1572
- kind?: "file";
1573
1536
  path?: string;
1574
1537
  policy?: "create-only";
1538
+ kind?: "file";
1575
1539
  content?: string;
1576
1540
  contentVersion?: string;
1577
1541
  } | {
1578
- kind?: "ledger";
1579
1542
  path?: string;
1580
1543
  columns?: {
1544
+ label?: string;
1581
1545
  type?: "string" | "number" | "boolean" | "date";
1582
1546
  key?: string;
1583
- label?: string;
1584
1547
  }[];
1585
1548
  policy?: "create-only";
1549
+ kind?: "ledger";
1586
1550
  structureVersion?: string;
1587
1551
  })[];
1588
1552
  }, {
1589
1553
  scope?: "user" | "shared";
1590
1554
  entries?: ({
1591
- kind?: "directory";
1592
1555
  path?: string;
1556
+ kind?: "directory";
1593
1557
  } | {
1594
- kind?: "file";
1595
1558
  path?: string;
1596
1559
  policy?: "create-only";
1560
+ kind?: "file";
1597
1561
  content?: string;
1598
1562
  contentVersion?: string;
1599
1563
  } | {
1600
- kind?: "ledger";
1601
1564
  path?: string;
1602
1565
  columns?: {
1566
+ label?: string;
1603
1567
  type?: "string" | "number" | "boolean" | "date";
1604
1568
  key?: string;
1605
- label?: string;
1606
1569
  }[];
1607
1570
  policy?: "create-only";
1571
+ kind?: "ledger";
1608
1572
  structureVersion?: string;
1609
1573
  })[];
1610
1574
  }>>;
@@ -1635,37 +1599,37 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1635
1599
  enabled: z.ZodDefault<z.ZodLiteral<false>>;
1636
1600
  }, "strict", z.ZodTypeAny, {
1637
1601
  skill?: string;
1638
- key?: string;
1639
1602
  enabled?: false;
1640
1603
  output?: string;
1641
1604
  required?: boolean;
1605
+ key?: string;
1642
1606
  trigger?: "schedule" | "event";
1643
1607
  expression?: string;
1644
1608
  timezone?: "organization" | "user";
1645
1609
  }, {
1646
1610
  skill?: string;
1647
- key?: string;
1648
1611
  enabled?: false;
1649
1612
  output?: string;
1650
1613
  required?: boolean;
1614
+ key?: string;
1651
1615
  trigger?: "schedule" | "event";
1652
1616
  expression?: string;
1653
1617
  timezone?: "organization" | "user";
1654
1618
  }>, "many">, {
1655
1619
  skill?: string;
1656
- key?: string;
1657
1620
  enabled?: false;
1658
1621
  output?: string;
1659
1622
  required?: boolean;
1623
+ key?: string;
1660
1624
  trigger?: "schedule" | "event";
1661
1625
  expression?: string;
1662
1626
  timezone?: "organization" | "user";
1663
1627
  }[], {
1664
1628
  skill?: string;
1665
- key?: string;
1666
1629
  enabled?: false;
1667
1630
  output?: string;
1668
1631
  required?: boolean;
1632
+ key?: string;
1669
1633
  trigger?: "schedule" | "event";
1670
1634
  expression?: string;
1671
1635
  timezone?: "organization" | "user";
@@ -1687,40 +1651,40 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1687
1651
  offline?: "requires-online" | "local-only";
1688
1652
  }>>;
1689
1653
  }, "strict", z.ZodTypeAny, {
1690
- version?: string;
1691
- execution?: {
1692
- modelFeatures?: ModelFeature[];
1693
- localCapabilities?: string[];
1694
- offline?: "requires-online" | "local-only";
1695
- };
1696
1654
  connectors?: {
1697
- key?: string;
1698
1655
  provider?: string;
1699
1656
  required?: boolean;
1657
+ key?: string;
1700
1658
  permissions?: string[];
1701
1659
  purpose?: string;
1702
1660
  }[];
1661
+ version?: string;
1662
+ execution?: {
1663
+ modelFeatures?: ModelFeature[];
1664
+ localCapabilities?: string[];
1665
+ offline?: "requires-online" | "local-only";
1666
+ };
1703
1667
  schemaVersion?: 2;
1704
1668
  files?: {
1705
1669
  scope?: "user" | "shared";
1706
1670
  entries?: ({
1707
- kind?: "directory";
1708
1671
  path?: string;
1672
+ kind?: "directory";
1709
1673
  } | {
1710
- kind?: "file";
1711
1674
  path?: string;
1712
1675
  policy?: "create-only";
1676
+ kind?: "file";
1713
1677
  content?: string;
1714
1678
  contentVersion?: string;
1715
1679
  } | {
1716
- kind?: "ledger";
1717
1680
  path?: string;
1718
1681
  columns?: {
1682
+ label?: string;
1719
1683
  type?: "string" | "number" | "boolean" | "date";
1720
1684
  key?: string;
1721
- label?: string;
1722
1685
  }[];
1723
1686
  policy?: "create-only";
1687
+ kind?: "ledger";
1724
1688
  structureVersion?: string;
1725
1689
  })[];
1726
1690
  };
@@ -1732,49 +1696,49 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1732
1696
  };
1733
1697
  routines?: {
1734
1698
  skill?: string;
1735
- key?: string;
1736
1699
  enabled?: false;
1737
1700
  output?: string;
1738
1701
  required?: boolean;
1702
+ key?: string;
1739
1703
  trigger?: "schedule" | "event";
1740
1704
  expression?: string;
1741
1705
  timezone?: "organization" | "user";
1742
1706
  }[];
1743
1707
  }, {
1744
- version?: string;
1745
- execution?: {
1746
- modelFeatures?: ModelFeature[];
1747
- localCapabilities?: string[];
1748
- offline?: "requires-online" | "local-only";
1749
- };
1750
1708
  connectors?: {
1751
- key?: string;
1752
1709
  provider?: string;
1753
1710
  required?: boolean;
1711
+ key?: string;
1754
1712
  permissions?: string[];
1755
1713
  purpose?: string;
1756
1714
  }[];
1715
+ version?: string;
1716
+ execution?: {
1717
+ modelFeatures?: ModelFeature[];
1718
+ localCapabilities?: string[];
1719
+ offline?: "requires-online" | "local-only";
1720
+ };
1757
1721
  schemaVersion?: 2;
1758
1722
  files?: {
1759
1723
  scope?: "user" | "shared";
1760
1724
  entries?: ({
1761
- kind?: "directory";
1762
1725
  path?: string;
1726
+ kind?: "directory";
1763
1727
  } | {
1764
- kind?: "file";
1765
1728
  path?: string;
1766
1729
  policy?: "create-only";
1730
+ kind?: "file";
1767
1731
  content?: string;
1768
1732
  contentVersion?: string;
1769
1733
  } | {
1770
- kind?: "ledger";
1771
1734
  path?: string;
1772
1735
  columns?: {
1736
+ label?: string;
1773
1737
  type?: "string" | "number" | "boolean" | "date";
1774
1738
  key?: string;
1775
- label?: string;
1776
1739
  }[];
1777
1740
  policy?: "create-only";
1741
+ kind?: "ledger";
1778
1742
  structureVersion?: string;
1779
1743
  })[];
1780
1744
  };
@@ -1786,10 +1750,10 @@ export declare const templateManifestSchema: z.ZodDiscriminatedUnion<"schemaVers
1786
1750
  };
1787
1751
  routines?: {
1788
1752
  skill?: string;
1789
- key?: string;
1790
1753
  enabled?: false;
1791
1754
  output?: string;
1792
1755
  required?: boolean;
1756
+ key?: string;
1793
1757
  trigger?: "schedule" | "event";
1794
1758
  expression?: string;
1795
1759
  timezone?: "organization" | "user";