@intentic/sandbox-contract 1.230.3 → 1.232.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 (72) hide show
  1. package/README.md +11 -0
  2. package/dist/contracts/agent.contract.d.ts +53 -6
  3. package/dist/contracts/agent.contract.d.ts.map +1 -1
  4. package/dist/contracts/agent.contract.js +10 -1
  5. package/dist/contracts/agent.contract.js.map +1 -1
  6. package/dist/contracts/agents.contract.d.ts +6 -1
  7. package/dist/contracts/agents.contract.d.ts.map +1 -1
  8. package/dist/contracts/capabilities.contract.d.ts +293 -0
  9. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  10. package/dist/contracts/capabilities.contract.js +10 -1
  11. package/dist/contracts/capabilities.contract.js.map +1 -1
  12. package/dist/contracts/extensions.contract.d.ts +15 -0
  13. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  14. package/dist/contracts/git.contract.d.ts +12 -2
  15. package/dist/contracts/git.contract.d.ts.map +1 -1
  16. package/dist/contracts/history.contract.d.ts +6 -1
  17. package/dist/contracts/history.contract.d.ts.map +1 -1
  18. package/dist/contracts/host.contract.d.ts +4 -0
  19. package/dist/contracts/host.contract.d.ts.map +1 -1
  20. package/dist/contracts/panels.contract.d.ts +1 -0
  21. package/dist/contracts/panels.contract.d.ts.map +1 -1
  22. package/dist/contracts/runner.contract.d.ts +876 -0
  23. package/dist/contracts/runner.contract.d.ts.map +1 -0
  24. package/dist/contracts/runner.contract.js +17 -0
  25. package/dist/contracts/runner.contract.js.map +1 -0
  26. package/dist/contracts/system.contract.d.ts +6 -3
  27. package/dist/contracts/system.contract.d.ts.map +1 -1
  28. package/dist/definition.d.ts +961 -0
  29. package/dist/definition.d.ts.map +1 -0
  30. package/dist/definition.js +71 -0
  31. package/dist/definition.js.map +1 -0
  32. package/dist/documents.d.ts +7 -0
  33. package/dist/documents.d.ts.map +1 -0
  34. package/dist/documents.js +27 -0
  35. package/dist/documents.js.map +1 -0
  36. package/dist/events.d.ts +66 -6
  37. package/dist/events.d.ts.map +1 -1
  38. package/dist/events.js +17 -1
  39. package/dist/events.js.map +1 -1
  40. package/dist/history-state.d.ts.map +1 -1
  41. package/dist/history-state.js +3 -0
  42. package/dist/history-state.js.map +1 -1
  43. package/dist/index.d.ts +396 -13
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +4 -0
  46. package/dist/index.js.map +1 -1
  47. package/dist/runner-protocol.d.ts +134 -0
  48. package/dist/runner-protocol.d.ts.map +1 -0
  49. package/dist/runner-protocol.js +95 -0
  50. package/dist/runner-protocol.js.map +1 -0
  51. package/dist/schemas.d.ts +194 -32
  52. package/dist/schemas.d.ts.map +1 -1
  53. package/dist/schemas.js +80 -25
  54. package/dist/schemas.js.map +1 -1
  55. package/dist/workspace-state.d.ts +9 -0
  56. package/dist/workspace-state.d.ts.map +1 -1
  57. package/dist/workspace-state.js +2 -0
  58. package/dist/workspace-state.js.map +1 -1
  59. package/package.json +6 -6
  60. package/src/contracts/agent.contract.ts +19 -0
  61. package/src/contracts/capabilities.contract.ts +16 -0
  62. package/src/contracts/runner.contract.ts +49 -0
  63. package/src/definition.ts +171 -0
  64. package/src/documents.test.ts +66 -0
  65. package/src/documents.ts +71 -0
  66. package/src/events.ts +88 -2
  67. package/src/history-state.ts +7 -0
  68. package/src/index.ts +5 -0
  69. package/src/runner-protocol.ts +209 -0
  70. package/src/schemas.ts +225 -65
  71. package/src/workspace-state.test.ts +4 -0
  72. package/src/workspace-state.ts +19 -0
@@ -0,0 +1,961 @@
1
+ import { z } from "zod";
2
+ export declare const DefinitionRepositorySchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ remote: z.ZodString;
5
+ ref: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ export type DefinitionRepository = z.infer<typeof DefinitionRepositorySchema>;
8
+ export declare const DefinitionEnvironmentSchema: z.ZodObject<{
9
+ baseImage: z.ZodOptional<z.ZodString>;
10
+ dockerfile: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ export type DefinitionEnvironment = z.infer<typeof DefinitionEnvironmentSchema>;
13
+ export declare const SandboxDefinitionSchema: z.ZodObject<{
14
+ schemaVersion: z.ZodLiteral<1>;
15
+ name: z.ZodOptional<z.ZodString>;
16
+ environment: z.ZodPrefault<z.ZodObject<{
17
+ baseImage: z.ZodOptional<z.ZodString>;
18
+ dockerfile: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ repositories: z.ZodPrefault<z.ZodArray<z.ZodObject<{
21
+ id: z.ZodString;
22
+ remote: z.ZodString;
23
+ ref: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>>>;
25
+ capabilities: z.ZodPrefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
26
+ id: z.ZodString;
27
+ kind: z.ZodLiteral<"devops">;
28
+ config: z.ZodObject<{}, z.core.$strip>;
29
+ }, z.core.$strip>, z.ZodObject<{
30
+ id: z.ZodString;
31
+ kind: z.ZodLiteral<"monorepo">;
32
+ config: z.ZodObject<{}, z.core.$strip>;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ id: z.ZodString;
35
+ kind: z.ZodLiteral<"mcp">;
36
+ config: z.ZodObject<{
37
+ url: z.ZodURL;
38
+ token: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ id: z.ZodString;
42
+ kind: z.ZodLiteral<"service">;
43
+ config: z.ZodObject<{
44
+ service: z.ZodEnum<{
45
+ infisical: "infisical";
46
+ invoiceninja: "invoiceninja";
47
+ openproject: "openproject";
48
+ outline: "outline";
49
+ paperless: "paperless";
50
+ signoz: "signoz";
51
+ }>;
52
+ domain: z.ZodString;
53
+ on: z.ZodString;
54
+ expose: z.ZodString;
55
+ }, z.core.$strip>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ id: z.ZodString;
58
+ kind: z.ZodLiteral<"integration">;
59
+ config: z.ZodObject<{
60
+ provider: z.ZodLiteral<"stripe">;
61
+ }, z.core.$strip>;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ id: z.ZodString;
64
+ kind: z.ZodLiteral<"cli">;
65
+ config: z.ZodObject<{
66
+ provider: z.ZodString;
67
+ }, z.core.$catchall<z.ZodString>>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ id: z.ZodString;
70
+ kind: z.ZodLiteral<"plugin">;
71
+ config: z.ZodObject<{
72
+ url: z.ZodURL;
73
+ ref: z.ZodOptional<z.ZodString>;
74
+ path: z.ZodOptional<z.ZodString>;
75
+ token: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ id: z.ZodString;
79
+ kind: z.ZodLiteral<"extension">;
80
+ config: z.ZodObject<{
81
+ url: z.ZodURL;
82
+ ref: z.ZodString;
83
+ path: z.ZodOptional<z.ZodString>;
84
+ token: z.ZodOptional<z.ZodString>;
85
+ tier: z.ZodOptional<z.ZodEnum<{
86
+ free: "free";
87
+ premium: "premium";
88
+ }>>;
89
+ registry: z.ZodOptional<z.ZodURL>;
90
+ }, z.core.$strip>;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ id: z.ZodString;
93
+ kind: z.ZodLiteral<"ssh">;
94
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
95
+ auth: z.ZodLiteral<"key">;
96
+ host: z.ZodString;
97
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
98
+ user: z.ZodString;
99
+ privateKey: z.ZodString;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ auth: z.ZodLiteral<"password">;
102
+ host: z.ZodString;
103
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
104
+ user: z.ZodString;
105
+ password: z.ZodString;
106
+ }, z.core.$strip>], "auth">;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ id: z.ZodString;
109
+ kind: z.ZodLiteral<"vpn">;
110
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
111
+ provider: z.ZodLiteral<"wireguard">;
112
+ config: z.ZodString;
113
+ autoConnect: z.ZodDefault<z.ZodEnum<{
114
+ off: "off";
115
+ on: "on";
116
+ }>>;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ provider: z.ZodLiteral<"fortinet">;
119
+ server: z.ZodString;
120
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
121
+ username: z.ZodString;
122
+ password: z.ZodString;
123
+ trustedCert: z.ZodOptional<z.ZodString>;
124
+ realm: z.ZodOptional<z.ZodString>;
125
+ autoConnect: z.ZodDefault<z.ZodEnum<{
126
+ off: "off";
127
+ on: "on";
128
+ }>>;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ provider: z.ZodLiteral<"ipsec">;
131
+ server: z.ZodString;
132
+ presharedKey: z.ZodString;
133
+ localId: z.ZodOptional<z.ZodString>;
134
+ remoteId: z.ZodOptional<z.ZodString>;
135
+ username: z.ZodOptional<z.ZodString>;
136
+ password: z.ZodOptional<z.ZodString>;
137
+ ikeVersion: z.ZodDefault<z.ZodEnum<{
138
+ 1: "1";
139
+ 2: "2";
140
+ }>>;
141
+ pfs: z.ZodDefault<z.ZodEnum<{
142
+ off: "off";
143
+ on: "on";
144
+ }>>;
145
+ dhGroup: z.ZodDefault<z.ZodEnum<{
146
+ 14: "14";
147
+ 15: "15";
148
+ 16: "16";
149
+ 19: "19";
150
+ 2: "2";
151
+ 20: "20";
152
+ 5: "5";
153
+ }>>;
154
+ aggressive: z.ZodDefault<z.ZodEnum<{
155
+ off: "off";
156
+ on: "on";
157
+ }>>;
158
+ routedNetworks: z.ZodDefault<z.ZodString>;
159
+ autoConnect: z.ZodDefault<z.ZodEnum<{
160
+ off: "off";
161
+ on: "on";
162
+ }>>;
163
+ }, z.core.$strip>], "provider">;
164
+ }, z.core.$strip>, z.ZodObject<{
165
+ id: z.ZodString;
166
+ kind: z.ZodLiteral<"exit">;
167
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
168
+ provider: z.ZodLiteral<"tor">;
169
+ country: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
170
+ autoStart: z.ZodDefault<z.ZodEnum<{
171
+ off: "off";
172
+ on: "on";
173
+ }>>;
174
+ }, z.core.$strip>, z.ZodObject<{
175
+ provider: z.ZodLiteral<"vpngate">;
176
+ country: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
177
+ autoStart: z.ZodDefault<z.ZodEnum<{
178
+ off: "off";
179
+ on: "on";
180
+ }>>;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ provider: z.ZodLiteral<"wireguard">;
183
+ config: z.ZodString;
184
+ country: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
185
+ autoStart: z.ZodDefault<z.ZodEnum<{
186
+ off: "off";
187
+ on: "on";
188
+ }>>;
189
+ }, z.core.$strip>], "provider">;
190
+ }, z.core.$strip>, z.ZodObject<{
191
+ id: z.ZodString;
192
+ kind: z.ZodLiteral<"docker">;
193
+ config: z.ZodObject<{
194
+ gpu: z.ZodDefault<z.ZodEnum<{
195
+ off: "off";
196
+ on: "on";
197
+ }>>;
198
+ registryMirror: z.ZodOptional<z.ZodURL>;
199
+ insecureRegistries: z.ZodOptional<z.ZodString>;
200
+ addressPool: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ id: z.ZodString;
204
+ kind: z.ZodLiteral<"browser">;
205
+ config: z.ZodObject<{
206
+ platform: z.ZodString;
207
+ username: z.ZodOptional<z.ZodString>;
208
+ password: z.ZodOptional<z.ZodString>;
209
+ identity: z.ZodOptional<z.ZodString>;
210
+ purpose: z.ZodOptional<z.ZodString>;
211
+ openedAt: z.ZodOptional<z.ZodString>;
212
+ exit: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$catchall<z.ZodString>>;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ id: z.ZodString;
216
+ kind: z.ZodLiteral<"identity">;
217
+ config: z.ZodObject<{
218
+ email: z.ZodString;
219
+ password: z.ZodOptional<z.ZodString>;
220
+ mailbox: z.ZodOptional<z.ZodString>;
221
+ loginUrl: z.ZodOptional<z.ZodURL>;
222
+ openAccounts: z.ZodDefault<z.ZodEnum<{
223
+ off: "off";
224
+ on: "on";
225
+ }>>;
226
+ exit: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$strip>;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ id: z.ZodString;
230
+ kind: z.ZodLiteral<"host">;
231
+ config: z.ZodObject<{
232
+ shell: z.ZodDefault<z.ZodEnum<{
233
+ off: "off";
234
+ on: "on";
235
+ }>>;
236
+ write: z.ZodDefault<z.ZodEnum<{
237
+ off: "off";
238
+ on: "on";
239
+ }>>;
240
+ screen: z.ZodDefault<z.ZodEnum<{
241
+ off: "off";
242
+ on: "on";
243
+ }>>;
244
+ control: z.ZodDefault<z.ZodEnum<{
245
+ off: "off";
246
+ on: "on";
247
+ }>>;
248
+ sandboxes: z.ZodDefault<z.ZodEnum<{
249
+ off: "off";
250
+ on: "on";
251
+ }>>;
252
+ sandboxRemove: z.ZodDefault<z.ZodEnum<{
253
+ off: "off";
254
+ on: "on";
255
+ }>>;
256
+ roots: z.ZodOptional<z.ZodString>;
257
+ platform: z.ZodString;
258
+ }, z.core.$strip>;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ id: z.ZodString;
261
+ kind: z.ZodLiteral<"agent">;
262
+ config: z.ZodObject<{
263
+ command: z.ZodString;
264
+ name: z.ZodOptional<z.ZodString>;
265
+ env: z.ZodOptional<z.ZodString>;
266
+ loginCommand: z.ZodOptional<z.ZodString>;
267
+ }, z.core.$strip>;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ id: z.ZodString;
270
+ kind: z.ZodLiteral<"endpoint">;
271
+ config: z.ZodObject<{
272
+ baseUrl: z.ZodURL;
273
+ protocol: z.ZodDefault<z.ZodEnum<{
274
+ anthropic: "anthropic";
275
+ openai: "openai";
276
+ }>>;
277
+ apiKey: z.ZodOptional<z.ZodString>;
278
+ headers: z.ZodOptional<z.ZodString>;
279
+ }, z.core.$strip>;
280
+ }, z.core.$strip>, z.ZodObject<{
281
+ id: z.ZodString;
282
+ kind: z.ZodLiteral<"localmodel">;
283
+ config: z.ZodObject<{
284
+ model: z.ZodString;
285
+ gpu: z.ZodDefault<z.ZodEnum<{
286
+ off: "off";
287
+ on: "on";
288
+ }>>;
289
+ url: z.ZodOptional<z.ZodURL>;
290
+ context: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
291
+ 131072: "131072";
292
+ 16384: "16384";
293
+ 32768: "32768";
294
+ 65536: "65536";
295
+ }>, z.ZodLiteral<"custom">]>>;
296
+ contextTokens: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
297
+ }, z.core.$strip>;
298
+ }, z.core.$strip>, z.ZodObject<{
299
+ id: z.ZodString;
300
+ kind: z.ZodLiteral<"wallet">;
301
+ config: z.ZodObject<{
302
+ network: z.ZodDefault<z.ZodEnum<{
303
+ "eip155:8453": "eip155:8453";
304
+ "eip155:84532": "eip155:84532";
305
+ }>>;
306
+ address: z.ZodOptional<z.ZodString>;
307
+ perPaymentMaxUsd: z.ZodDefault<z.ZodString>;
308
+ autoApproveUnderUsd: z.ZodDefault<z.ZodString>;
309
+ dailyCapUsd: z.ZodDefault<z.ZodString>;
310
+ allow: z.ZodOptional<z.ZodString>;
311
+ deny: z.ZodOptional<z.ZodString>;
312
+ }, z.core.$strip>;
313
+ }, z.core.$strip>], "kind">>>;
314
+ secrets: z.ZodPrefault<z.ZodArray<z.ZodString>>;
315
+ settings: z.ZodType<Partial<{
316
+ stableSystemPrompt: boolean;
317
+ skills: string[];
318
+ hashlineEdits: boolean;
319
+ terseOutput: boolean;
320
+ terseHoldout: number;
321
+ systemPromptMode: "claude" | "custom" | "intentic";
322
+ systemPrompt: string;
323
+ iqSearch: boolean;
324
+ iqSearchHoldout: number;
325
+ workspaceMap: boolean;
326
+ outputCleaners: string;
327
+ outputHoldout: number;
328
+ quickModel: string[];
329
+ changelogRepos: string[];
330
+ agentRunModels: string[];
331
+ agentRunEffort: string;
332
+ autoTier: "off" | "on" | "shadow";
333
+ autoTierEagerness: "balanced" | "cautious" | "eager";
334
+ autoFastModels: string[];
335
+ agentRetentionDays: number;
336
+ resumeAfterOutage: boolean;
337
+ autoResumeOnRestart: boolean;
338
+ rules: {
339
+ id: string;
340
+ label: string;
341
+ moment: "agent.finished" | "push.starting" | "turn.ending";
342
+ when?: {
343
+ repo?: string | undefined;
344
+ paths?: string[] | undefined;
345
+ outcome?: ("clean" | "conflict" | "error")[] | undefined;
346
+ } | undefined;
347
+ action: {
348
+ kind: "command";
349
+ command: string;
350
+ timeoutMs: number;
351
+ } | {
352
+ kind: "instruct";
353
+ text: string;
354
+ } | {
355
+ kind: "verdict";
356
+ verdict: "allow" | "hold";
357
+ } | {
358
+ kind: "builtin";
359
+ name: "verify-edits";
360
+ };
361
+ enabled: boolean;
362
+ }[];
363
+ automationFailureLimit: number;
364
+ admission: {
365
+ schedule: "allow" | "deny" | "hold";
366
+ event: "allow" | "deny" | "hold";
367
+ listener: "allow" | "deny" | "hold";
368
+ webchat: "allow" | "deny" | "hold";
369
+ workspace: "allow" | "deny" | "hold";
370
+ workflow: "allow" | "deny";
371
+ };
372
+ actionRules: Record<string, "allow" | "deny" | "hold">;
373
+ commandRules: Partial<Record<"files.destructive" | "git.destructive" | "network.outbound" | "package.publish" | "secrets.access", "allow" | "deny" | "hold">>;
374
+ subagentsAtOnce: number;
375
+ subagentsPerTurn: number;
376
+ subagentDepth: number;
377
+ }>, unknown, z.core.$ZodTypeInternals<Partial<{
378
+ stableSystemPrompt: boolean;
379
+ skills: string[];
380
+ hashlineEdits: boolean;
381
+ terseOutput: boolean;
382
+ terseHoldout: number;
383
+ systemPromptMode: "claude" | "custom" | "intentic";
384
+ systemPrompt: string;
385
+ iqSearch: boolean;
386
+ iqSearchHoldout: number;
387
+ workspaceMap: boolean;
388
+ outputCleaners: string;
389
+ outputHoldout: number;
390
+ quickModel: string[];
391
+ changelogRepos: string[];
392
+ agentRunModels: string[];
393
+ agentRunEffort: string;
394
+ autoTier: "off" | "on" | "shadow";
395
+ autoTierEagerness: "balanced" | "cautious" | "eager";
396
+ autoFastModels: string[];
397
+ agentRetentionDays: number;
398
+ resumeAfterOutage: boolean;
399
+ autoResumeOnRestart: boolean;
400
+ rules: {
401
+ id: string;
402
+ label: string;
403
+ moment: "agent.finished" | "push.starting" | "turn.ending";
404
+ when?: {
405
+ repo?: string | undefined;
406
+ paths?: string[] | undefined;
407
+ outcome?: ("clean" | "conflict" | "error")[] | undefined;
408
+ } | undefined;
409
+ action: {
410
+ kind: "command";
411
+ command: string;
412
+ timeoutMs: number;
413
+ } | {
414
+ kind: "instruct";
415
+ text: string;
416
+ } | {
417
+ kind: "verdict";
418
+ verdict: "allow" | "hold";
419
+ } | {
420
+ kind: "builtin";
421
+ name: "verify-edits";
422
+ };
423
+ enabled: boolean;
424
+ }[];
425
+ automationFailureLimit: number;
426
+ admission: {
427
+ schedule: "allow" | "deny" | "hold";
428
+ event: "allow" | "deny" | "hold";
429
+ listener: "allow" | "deny" | "hold";
430
+ webchat: "allow" | "deny" | "hold";
431
+ workspace: "allow" | "deny" | "hold";
432
+ workflow: "allow" | "deny";
433
+ };
434
+ actionRules: Record<string, "allow" | "deny" | "hold">;
435
+ commandRules: Partial<Record<"files.destructive" | "git.destructive" | "network.outbound" | "package.publish" | "secrets.access", "allow" | "deny" | "hold">>;
436
+ subagentsAtOnce: number;
437
+ subagentsPerTurn: number;
438
+ subagentDepth: number;
439
+ }>, unknown>>;
440
+ }, z.core.$strip>;
441
+ export type SandboxDefinition = z.infer<typeof SandboxDefinitionSchema>;
442
+ export declare const DefinitionActionSchema: z.ZodObject<{
443
+ subject: z.ZodString;
444
+ detail: z.ZodString;
445
+ }, z.core.$strip>;
446
+ export type DefinitionAction = z.infer<typeof DefinitionActionSchema>;
447
+ export declare const DefinitionExportSchema: z.ZodObject<{
448
+ toml: z.ZodString;
449
+ omitted: z.ZodArray<z.ZodObject<{
450
+ subject: z.ZodString;
451
+ detail: z.ZodString;
452
+ }, z.core.$strip>>;
453
+ }, z.core.$strip>;
454
+ export type DefinitionExport = z.infer<typeof DefinitionExportSchema>;
455
+ export declare const DefinitionItemSchema: z.ZodObject<{
456
+ id: z.ZodString;
457
+ kind: z.ZodEnum<{
458
+ capability: "capability";
459
+ environment: "environment";
460
+ repo: "repo";
461
+ settings: "settings";
462
+ }>;
463
+ label: z.ZodString;
464
+ detail: z.ZodOptional<z.ZodString>;
465
+ applicable: z.ZodBoolean;
466
+ reason: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$strip>;
468
+ export type DefinitionItem = z.infer<typeof DefinitionItemSchema>;
469
+ export declare const DefinitionPlanSchema: z.ZodObject<{
470
+ token: z.ZodString;
471
+ name: z.ZodOptional<z.ZodString>;
472
+ items: z.ZodArray<z.ZodObject<{
473
+ id: z.ZodString;
474
+ kind: z.ZodEnum<{
475
+ capability: "capability";
476
+ environment: "environment";
477
+ repo: "repo";
478
+ settings: "settings";
479
+ }>;
480
+ label: z.ZodString;
481
+ detail: z.ZodOptional<z.ZodString>;
482
+ applicable: z.ZodBoolean;
483
+ reason: z.ZodOptional<z.ZodString>;
484
+ }, z.core.$strip>>;
485
+ needsAction: z.ZodArray<z.ZodObject<{
486
+ subject: z.ZodString;
487
+ detail: z.ZodString;
488
+ }, z.core.$strip>>;
489
+ }, z.core.$strip>;
490
+ export type DefinitionPlan = z.infer<typeof DefinitionPlanSchema>;
491
+ export declare const DefinitionApplySchema: z.ZodObject<{
492
+ token: z.ZodString;
493
+ items: z.ZodArray<z.ZodString>;
494
+ }, z.core.$strip>;
495
+ export type DefinitionApply = z.infer<typeof DefinitionApplySchema>;
496
+ export declare const DefinitionReportSchema: z.ZodObject<{
497
+ applied: z.ZodArray<z.ZodObject<{
498
+ id: z.ZodString;
499
+ label: z.ZodString;
500
+ }, z.core.$strip>>;
501
+ failed: z.ZodArray<z.ZodObject<{
502
+ id: z.ZodString;
503
+ label: z.ZodString;
504
+ error: z.ZodString;
505
+ }, z.core.$strip>>;
506
+ needsAction: z.ZodArray<z.ZodObject<{
507
+ subject: z.ZodString;
508
+ detail: z.ZodString;
509
+ }, z.core.$strip>>;
510
+ }, z.core.$strip>;
511
+ export type DefinitionReport = z.infer<typeof DefinitionReportSchema>;
512
+ export declare const DefinitionDiffSchema: z.ZodObject<{
513
+ differences: z.ZodArray<z.ZodObject<{
514
+ subject: z.ZodString;
515
+ detail: z.ZodString;
516
+ }, z.core.$strip>>;
517
+ }, z.core.$strip>;
518
+ export type DefinitionDiff = z.infer<typeof DefinitionDiffSchema>;
519
+ export declare const BundleManifestSchema: z.ZodObject<{
520
+ version: z.ZodLiteral<2>;
521
+ sandbox: z.ZodOptional<z.ZodObject<{
522
+ name: z.ZodString;
523
+ }, z.core.$strip>>;
524
+ createdAt: z.ZodNumber;
525
+ secrets: z.ZodBoolean;
526
+ definition: z.ZodObject<{
527
+ schemaVersion: z.ZodLiteral<1>;
528
+ name: z.ZodOptional<z.ZodString>;
529
+ environment: z.ZodPrefault<z.ZodObject<{
530
+ baseImage: z.ZodOptional<z.ZodString>;
531
+ dockerfile: z.ZodOptional<z.ZodString>;
532
+ }, z.core.$strip>>;
533
+ repositories: z.ZodPrefault<z.ZodArray<z.ZodObject<{
534
+ id: z.ZodString;
535
+ remote: z.ZodString;
536
+ ref: z.ZodOptional<z.ZodString>;
537
+ }, z.core.$strip>>>;
538
+ capabilities: z.ZodPrefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
539
+ id: z.ZodString;
540
+ kind: z.ZodLiteral<"devops">;
541
+ config: z.ZodObject<{}, z.core.$strip>;
542
+ }, z.core.$strip>, z.ZodObject<{
543
+ id: z.ZodString;
544
+ kind: z.ZodLiteral<"monorepo">;
545
+ config: z.ZodObject<{}, z.core.$strip>;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ id: z.ZodString;
548
+ kind: z.ZodLiteral<"mcp">;
549
+ config: z.ZodObject<{
550
+ url: z.ZodURL;
551
+ token: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strip>;
553
+ }, z.core.$strip>, z.ZodObject<{
554
+ id: z.ZodString;
555
+ kind: z.ZodLiteral<"service">;
556
+ config: z.ZodObject<{
557
+ service: z.ZodEnum<{
558
+ infisical: "infisical";
559
+ invoiceninja: "invoiceninja";
560
+ openproject: "openproject";
561
+ outline: "outline";
562
+ paperless: "paperless";
563
+ signoz: "signoz";
564
+ }>;
565
+ domain: z.ZodString;
566
+ on: z.ZodString;
567
+ expose: z.ZodString;
568
+ }, z.core.$strip>;
569
+ }, z.core.$strip>, z.ZodObject<{
570
+ id: z.ZodString;
571
+ kind: z.ZodLiteral<"integration">;
572
+ config: z.ZodObject<{
573
+ provider: z.ZodLiteral<"stripe">;
574
+ }, z.core.$strip>;
575
+ }, z.core.$strip>, z.ZodObject<{
576
+ id: z.ZodString;
577
+ kind: z.ZodLiteral<"cli">;
578
+ config: z.ZodObject<{
579
+ provider: z.ZodString;
580
+ }, z.core.$catchall<z.ZodString>>;
581
+ }, z.core.$strip>, z.ZodObject<{
582
+ id: z.ZodString;
583
+ kind: z.ZodLiteral<"plugin">;
584
+ config: z.ZodObject<{
585
+ url: z.ZodURL;
586
+ ref: z.ZodOptional<z.ZodString>;
587
+ path: z.ZodOptional<z.ZodString>;
588
+ token: z.ZodOptional<z.ZodString>;
589
+ }, z.core.$strip>;
590
+ }, z.core.$strip>, z.ZodObject<{
591
+ id: z.ZodString;
592
+ kind: z.ZodLiteral<"extension">;
593
+ config: z.ZodObject<{
594
+ url: z.ZodURL;
595
+ ref: z.ZodString;
596
+ path: z.ZodOptional<z.ZodString>;
597
+ token: z.ZodOptional<z.ZodString>;
598
+ tier: z.ZodOptional<z.ZodEnum<{
599
+ free: "free";
600
+ premium: "premium";
601
+ }>>;
602
+ registry: z.ZodOptional<z.ZodURL>;
603
+ }, z.core.$strip>;
604
+ }, z.core.$strip>, z.ZodObject<{
605
+ id: z.ZodString;
606
+ kind: z.ZodLiteral<"ssh">;
607
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
608
+ auth: z.ZodLiteral<"key">;
609
+ host: z.ZodString;
610
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
611
+ user: z.ZodString;
612
+ privateKey: z.ZodString;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ auth: z.ZodLiteral<"password">;
615
+ host: z.ZodString;
616
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
617
+ user: z.ZodString;
618
+ password: z.ZodString;
619
+ }, z.core.$strip>], "auth">;
620
+ }, z.core.$strip>, z.ZodObject<{
621
+ id: z.ZodString;
622
+ kind: z.ZodLiteral<"vpn">;
623
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
624
+ provider: z.ZodLiteral<"wireguard">;
625
+ config: z.ZodString;
626
+ autoConnect: z.ZodDefault<z.ZodEnum<{
627
+ off: "off";
628
+ on: "on";
629
+ }>>;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ provider: z.ZodLiteral<"fortinet">;
632
+ server: z.ZodString;
633
+ port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
634
+ username: z.ZodString;
635
+ password: z.ZodString;
636
+ trustedCert: z.ZodOptional<z.ZodString>;
637
+ realm: z.ZodOptional<z.ZodString>;
638
+ autoConnect: z.ZodDefault<z.ZodEnum<{
639
+ off: "off";
640
+ on: "on";
641
+ }>>;
642
+ }, z.core.$strip>, z.ZodObject<{
643
+ provider: z.ZodLiteral<"ipsec">;
644
+ server: z.ZodString;
645
+ presharedKey: z.ZodString;
646
+ localId: z.ZodOptional<z.ZodString>;
647
+ remoteId: z.ZodOptional<z.ZodString>;
648
+ username: z.ZodOptional<z.ZodString>;
649
+ password: z.ZodOptional<z.ZodString>;
650
+ ikeVersion: z.ZodDefault<z.ZodEnum<{
651
+ 1: "1";
652
+ 2: "2";
653
+ }>>;
654
+ pfs: z.ZodDefault<z.ZodEnum<{
655
+ off: "off";
656
+ on: "on";
657
+ }>>;
658
+ dhGroup: z.ZodDefault<z.ZodEnum<{
659
+ 14: "14";
660
+ 15: "15";
661
+ 16: "16";
662
+ 19: "19";
663
+ 2: "2";
664
+ 20: "20";
665
+ 5: "5";
666
+ }>>;
667
+ aggressive: z.ZodDefault<z.ZodEnum<{
668
+ off: "off";
669
+ on: "on";
670
+ }>>;
671
+ routedNetworks: z.ZodDefault<z.ZodString>;
672
+ autoConnect: z.ZodDefault<z.ZodEnum<{
673
+ off: "off";
674
+ on: "on";
675
+ }>>;
676
+ }, z.core.$strip>], "provider">;
677
+ }, z.core.$strip>, z.ZodObject<{
678
+ id: z.ZodString;
679
+ kind: z.ZodLiteral<"exit">;
680
+ config: z.ZodDiscriminatedUnion<[z.ZodObject<{
681
+ provider: z.ZodLiteral<"tor">;
682
+ country: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
683
+ autoStart: z.ZodDefault<z.ZodEnum<{
684
+ off: "off";
685
+ on: "on";
686
+ }>>;
687
+ }, z.core.$strip>, z.ZodObject<{
688
+ provider: z.ZodLiteral<"vpngate">;
689
+ country: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
690
+ autoStart: z.ZodDefault<z.ZodEnum<{
691
+ off: "off";
692
+ on: "on";
693
+ }>>;
694
+ }, z.core.$strip>, z.ZodObject<{
695
+ provider: z.ZodLiteral<"wireguard">;
696
+ config: z.ZodString;
697
+ country: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
698
+ autoStart: z.ZodDefault<z.ZodEnum<{
699
+ off: "off";
700
+ on: "on";
701
+ }>>;
702
+ }, z.core.$strip>], "provider">;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ id: z.ZodString;
705
+ kind: z.ZodLiteral<"docker">;
706
+ config: z.ZodObject<{
707
+ gpu: z.ZodDefault<z.ZodEnum<{
708
+ off: "off";
709
+ on: "on";
710
+ }>>;
711
+ registryMirror: z.ZodOptional<z.ZodURL>;
712
+ insecureRegistries: z.ZodOptional<z.ZodString>;
713
+ addressPool: z.ZodOptional<z.ZodString>;
714
+ }, z.core.$strip>;
715
+ }, z.core.$strip>, z.ZodObject<{
716
+ id: z.ZodString;
717
+ kind: z.ZodLiteral<"browser">;
718
+ config: z.ZodObject<{
719
+ platform: z.ZodString;
720
+ username: z.ZodOptional<z.ZodString>;
721
+ password: z.ZodOptional<z.ZodString>;
722
+ identity: z.ZodOptional<z.ZodString>;
723
+ purpose: z.ZodOptional<z.ZodString>;
724
+ openedAt: z.ZodOptional<z.ZodString>;
725
+ exit: z.ZodOptional<z.ZodString>;
726
+ }, z.core.$catchall<z.ZodString>>;
727
+ }, z.core.$strip>, z.ZodObject<{
728
+ id: z.ZodString;
729
+ kind: z.ZodLiteral<"identity">;
730
+ config: z.ZodObject<{
731
+ email: z.ZodString;
732
+ password: z.ZodOptional<z.ZodString>;
733
+ mailbox: z.ZodOptional<z.ZodString>;
734
+ loginUrl: z.ZodOptional<z.ZodURL>;
735
+ openAccounts: z.ZodDefault<z.ZodEnum<{
736
+ off: "off";
737
+ on: "on";
738
+ }>>;
739
+ exit: z.ZodOptional<z.ZodString>;
740
+ }, z.core.$strip>;
741
+ }, z.core.$strip>, z.ZodObject<{
742
+ id: z.ZodString;
743
+ kind: z.ZodLiteral<"host">;
744
+ config: z.ZodObject<{
745
+ shell: z.ZodDefault<z.ZodEnum<{
746
+ off: "off";
747
+ on: "on";
748
+ }>>;
749
+ write: z.ZodDefault<z.ZodEnum<{
750
+ off: "off";
751
+ on: "on";
752
+ }>>;
753
+ screen: z.ZodDefault<z.ZodEnum<{
754
+ off: "off";
755
+ on: "on";
756
+ }>>;
757
+ control: z.ZodDefault<z.ZodEnum<{
758
+ off: "off";
759
+ on: "on";
760
+ }>>;
761
+ sandboxes: z.ZodDefault<z.ZodEnum<{
762
+ off: "off";
763
+ on: "on";
764
+ }>>;
765
+ sandboxRemove: z.ZodDefault<z.ZodEnum<{
766
+ off: "off";
767
+ on: "on";
768
+ }>>;
769
+ roots: z.ZodOptional<z.ZodString>;
770
+ platform: z.ZodString;
771
+ }, z.core.$strip>;
772
+ }, z.core.$strip>, z.ZodObject<{
773
+ id: z.ZodString;
774
+ kind: z.ZodLiteral<"agent">;
775
+ config: z.ZodObject<{
776
+ command: z.ZodString;
777
+ name: z.ZodOptional<z.ZodString>;
778
+ env: z.ZodOptional<z.ZodString>;
779
+ loginCommand: z.ZodOptional<z.ZodString>;
780
+ }, z.core.$strip>;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ id: z.ZodString;
783
+ kind: z.ZodLiteral<"endpoint">;
784
+ config: z.ZodObject<{
785
+ baseUrl: z.ZodURL;
786
+ protocol: z.ZodDefault<z.ZodEnum<{
787
+ anthropic: "anthropic";
788
+ openai: "openai";
789
+ }>>;
790
+ apiKey: z.ZodOptional<z.ZodString>;
791
+ headers: z.ZodOptional<z.ZodString>;
792
+ }, z.core.$strip>;
793
+ }, z.core.$strip>, z.ZodObject<{
794
+ id: z.ZodString;
795
+ kind: z.ZodLiteral<"localmodel">;
796
+ config: z.ZodObject<{
797
+ model: z.ZodString;
798
+ gpu: z.ZodDefault<z.ZodEnum<{
799
+ off: "off";
800
+ on: "on";
801
+ }>>;
802
+ url: z.ZodOptional<z.ZodURL>;
803
+ context: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
804
+ 131072: "131072";
805
+ 16384: "16384";
806
+ 32768: "32768";
807
+ 65536: "65536";
808
+ }>, z.ZodLiteral<"custom">]>>;
809
+ contextTokens: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
810
+ }, z.core.$strip>;
811
+ }, z.core.$strip>, z.ZodObject<{
812
+ id: z.ZodString;
813
+ kind: z.ZodLiteral<"wallet">;
814
+ config: z.ZodObject<{
815
+ network: z.ZodDefault<z.ZodEnum<{
816
+ "eip155:8453": "eip155:8453";
817
+ "eip155:84532": "eip155:84532";
818
+ }>>;
819
+ address: z.ZodOptional<z.ZodString>;
820
+ perPaymentMaxUsd: z.ZodDefault<z.ZodString>;
821
+ autoApproveUnderUsd: z.ZodDefault<z.ZodString>;
822
+ dailyCapUsd: z.ZodDefault<z.ZodString>;
823
+ allow: z.ZodOptional<z.ZodString>;
824
+ deny: z.ZodOptional<z.ZodString>;
825
+ }, z.core.$strip>;
826
+ }, z.core.$strip>], "kind">>>;
827
+ secrets: z.ZodPrefault<z.ZodArray<z.ZodString>>;
828
+ settings: z.ZodType<Partial<{
829
+ stableSystemPrompt: boolean;
830
+ skills: string[];
831
+ hashlineEdits: boolean;
832
+ terseOutput: boolean;
833
+ terseHoldout: number;
834
+ systemPromptMode: "claude" | "custom" | "intentic";
835
+ systemPrompt: string;
836
+ iqSearch: boolean;
837
+ iqSearchHoldout: number;
838
+ workspaceMap: boolean;
839
+ outputCleaners: string;
840
+ outputHoldout: number;
841
+ quickModel: string[];
842
+ changelogRepos: string[];
843
+ agentRunModels: string[];
844
+ agentRunEffort: string;
845
+ autoTier: "off" | "on" | "shadow";
846
+ autoTierEagerness: "balanced" | "cautious" | "eager";
847
+ autoFastModels: string[];
848
+ agentRetentionDays: number;
849
+ resumeAfterOutage: boolean;
850
+ autoResumeOnRestart: boolean;
851
+ rules: {
852
+ id: string;
853
+ label: string;
854
+ moment: "agent.finished" | "push.starting" | "turn.ending";
855
+ when?: {
856
+ repo?: string | undefined;
857
+ paths?: string[] | undefined;
858
+ outcome?: ("clean" | "conflict" | "error")[] | undefined;
859
+ } | undefined;
860
+ action: {
861
+ kind: "command";
862
+ command: string;
863
+ timeoutMs: number;
864
+ } | {
865
+ kind: "instruct";
866
+ text: string;
867
+ } | {
868
+ kind: "verdict";
869
+ verdict: "allow" | "hold";
870
+ } | {
871
+ kind: "builtin";
872
+ name: "verify-edits";
873
+ };
874
+ enabled: boolean;
875
+ }[];
876
+ automationFailureLimit: number;
877
+ admission: {
878
+ schedule: "allow" | "deny" | "hold";
879
+ event: "allow" | "deny" | "hold";
880
+ listener: "allow" | "deny" | "hold";
881
+ webchat: "allow" | "deny" | "hold";
882
+ workspace: "allow" | "deny" | "hold";
883
+ workflow: "allow" | "deny";
884
+ };
885
+ actionRules: Record<string, "allow" | "deny" | "hold">;
886
+ commandRules: Partial<Record<"files.destructive" | "git.destructive" | "network.outbound" | "package.publish" | "secrets.access", "allow" | "deny" | "hold">>;
887
+ subagentsAtOnce: number;
888
+ subagentsPerTurn: number;
889
+ subagentDepth: number;
890
+ }>, unknown, z.core.$ZodTypeInternals<Partial<{
891
+ stableSystemPrompt: boolean;
892
+ skills: string[];
893
+ hashlineEdits: boolean;
894
+ terseOutput: boolean;
895
+ terseHoldout: number;
896
+ systemPromptMode: "claude" | "custom" | "intentic";
897
+ systemPrompt: string;
898
+ iqSearch: boolean;
899
+ iqSearchHoldout: number;
900
+ workspaceMap: boolean;
901
+ outputCleaners: string;
902
+ outputHoldout: number;
903
+ quickModel: string[];
904
+ changelogRepos: string[];
905
+ agentRunModels: string[];
906
+ agentRunEffort: string;
907
+ autoTier: "off" | "on" | "shadow";
908
+ autoTierEagerness: "balanced" | "cautious" | "eager";
909
+ autoFastModels: string[];
910
+ agentRetentionDays: number;
911
+ resumeAfterOutage: boolean;
912
+ autoResumeOnRestart: boolean;
913
+ rules: {
914
+ id: string;
915
+ label: string;
916
+ moment: "agent.finished" | "push.starting" | "turn.ending";
917
+ when?: {
918
+ repo?: string | undefined;
919
+ paths?: string[] | undefined;
920
+ outcome?: ("clean" | "conflict" | "error")[] | undefined;
921
+ } | undefined;
922
+ action: {
923
+ kind: "command";
924
+ command: string;
925
+ timeoutMs: number;
926
+ } | {
927
+ kind: "instruct";
928
+ text: string;
929
+ } | {
930
+ kind: "verdict";
931
+ verdict: "allow" | "hold";
932
+ } | {
933
+ kind: "builtin";
934
+ name: "verify-edits";
935
+ };
936
+ enabled: boolean;
937
+ }[];
938
+ automationFailureLimit: number;
939
+ admission: {
940
+ schedule: "allow" | "deny" | "hold";
941
+ event: "allow" | "deny" | "hold";
942
+ listener: "allow" | "deny" | "hold";
943
+ webchat: "allow" | "deny" | "hold";
944
+ workspace: "allow" | "deny" | "hold";
945
+ workflow: "allow" | "deny";
946
+ };
947
+ actionRules: Record<string, "allow" | "deny" | "hold">;
948
+ commandRules: Partial<Record<"files.destructive" | "git.destructive" | "network.outbound" | "package.publish" | "secrets.access", "allow" | "deny" | "hold">>;
949
+ subagentsAtOnce: number;
950
+ subagentsPerTurn: number;
951
+ subagentDepth: number;
952
+ }>, unknown>>;
953
+ }, z.core.$strip>;
954
+ excluded: z.ZodArray<z.ZodObject<{
955
+ path: z.ZodString;
956
+ portability: z.ZodString;
957
+ note: z.ZodOptional<z.ZodString>;
958
+ }, z.core.$strip>>;
959
+ }, z.core.$strip>;
960
+ export type BundleManifest = z.infer<typeof BundleManifestSchema>;
961
+ //# sourceMappingURL=definition.d.ts.map