@relayfx/sdk 0.2.15 → 0.2.16

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 (109) hide show
  1. package/dist/ai.js +2 -2
  2. package/dist/{index-z9xk02sv.js → index-5x686v8w.js} +1782 -1542
  3. package/dist/{index-gxskhyra.js → index-6dv1dqq1.js} +8 -8
  4. package/dist/{index-xbbfagnb.js → index-a6vwwhcp.js} +116 -105
  5. package/dist/{index-d8q4kfjy.js → index-per7tyzq.js} +12 -8
  6. package/dist/index.js +5 -5
  7. package/dist/mysql.js +24 -9
  8. package/dist/postgres.js +18 -13
  9. package/dist/sqlite.js +26 -29
  10. package/dist/types/ai/embedding-model/embedding-model-registration.d.ts +2 -2
  11. package/dist/types/relay/adapter-outbox.d.ts +1 -1
  12. package/dist/types/relay/client.d.ts +28 -28
  13. package/dist/types/relay/command.d.ts +10 -4
  14. package/dist/types/relay/database.d.ts +4 -4
  15. package/dist/types/relay/migration-errors.d.ts +8 -2
  16. package/dist/types/relay/mysql.d.ts +2 -2
  17. package/dist/types/relay/operation.d.ts +126 -126
  18. package/dist/types/relay/postgres.d.ts +2 -2
  19. package/dist/types/relay/runtime-capability-policy.d.ts +11 -5
  20. package/dist/types/relay/runtime-database.d.ts +1 -1
  21. package/dist/types/relay/runtime.d.ts +4 -4
  22. package/dist/types/relay/sqlite-migrations.d.ts +1 -1
  23. package/dist/types/relay/sqlite-runtime.d.ts +10 -5
  24. package/dist/types/relay/tool-worker.d.ts +6 -5
  25. package/dist/types/runtime/address/address-book-service.d.ts +3 -3
  26. package/dist/types/runtime/address/address-resolution-service.d.ts +41 -41
  27. package/dist/types/runtime/agent/agent-loop-service.d.ts +14 -5
  28. package/dist/types/runtime/agent/agent-registry-service.d.ts +2 -2
  29. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +1 -1
  30. package/dist/types/runtime/agent/relay-tool-output.d.ts +4 -1
  31. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +1 -1
  32. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +12 -8
  33. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +1 -1
  34. package/dist/types/runtime/child/child-run-service.d.ts +7 -4
  35. package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -2
  36. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +5 -4
  37. package/dist/types/runtime/cluster/execution-entity.d.ts +2 -2
  38. package/dist/types/runtime/content/artifact-store-service.d.ts +2 -2
  39. package/dist/types/runtime/content/blob-store-service.d.ts +1 -1
  40. package/dist/types/runtime/entity/entity-instance-service.d.ts +14 -5
  41. package/dist/types/runtime/entity/entity-registry-service.d.ts +2 -2
  42. package/dist/types/runtime/envelope/envelope-service.d.ts +2 -2
  43. package/dist/types/runtime/execution/active-execution-registry.d.ts +1 -1
  44. package/dist/types/runtime/execution/event-log-service.d.ts +5 -2
  45. package/dist/types/runtime/execution/execution-service.d.ts +1 -1
  46. package/dist/types/runtime/execution/execution-watch-service.d.ts +1 -1
  47. package/dist/types/runtime/execution/session-stream-service.d.ts +1 -1
  48. package/dist/types/runtime/inbox/inbox-service.d.ts +1 -1
  49. package/dist/types/runtime/memory/memory-service.d.ts +1 -1
  50. package/dist/types/runtime/model/embedding-model-service.d.ts +23 -10
  51. package/dist/types/runtime/model/language-model-service.d.ts +19 -6
  52. package/dist/types/runtime/model/model-call-policy.d.ts +1 -1
  53. package/dist/types/runtime/observability/runtime-metrics.d.ts +12 -3
  54. package/dist/types/runtime/presence/presence-service.d.ts +1 -1
  55. package/dist/types/runtime/presence/presence-tool.d.ts +1 -1
  56. package/dist/types/runtime/runner/runner-runtime-service.d.ts +19 -19
  57. package/dist/types/runtime/schedule/scheduler-service.d.ts +3 -3
  58. package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +2 -2
  59. package/dist/types/runtime/session/session-store-service.d.ts +13 -4
  60. package/dist/types/runtime/skill/skill-registry-service.d.ts +2 -2
  61. package/dist/types/runtime/state/execution-state-service.d.ts +5 -2
  62. package/dist/types/runtime/tool/tool-runtime-service.d.ts +42 -19
  63. package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +2 -2
  64. package/dist/types/runtime/topic/topic-service.d.ts +1 -1
  65. package/dist/types/runtime/wait/wait-service.d.ts +1 -1
  66. package/dist/types/runtime/wait/wait-signal.d.ts +12 -3
  67. package/dist/types/runtime/workflow/activity-version-registry.d.ts +7 -3
  68. package/dist/types/runtime/workflow/definition-runtime.d.ts +37 -22
  69. package/dist/types/runtime/workflow/execution-workflow.d.ts +105 -110
  70. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +6 -6
  71. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +11 -7
  72. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +1 -1
  73. package/dist/types/schema/agent-schema.d.ts +246 -246
  74. package/dist/types/schema/child-orchestration-schema.d.ts +64 -64
  75. package/dist/types/schema/execution-schema.d.ts +57 -57
  76. package/dist/types/schema/workflow-schema.d.ts +243 -243
  77. package/dist/types/schema/workspace-schema.d.ts +1 -1
  78. package/dist/types/store-sql/address/address-book-repository.d.ts +5 -5
  79. package/dist/types/store-sql/agent/agent-definition-repository.d.ts +7 -7
  80. package/dist/types/store-sql/chat/agent-chat-repository.d.ts +2 -2
  81. package/dist/types/store-sql/child/child-execution-repository.d.ts +4 -4
  82. package/dist/types/store-sql/child/child-fan-out-repository.d.ts +2 -2
  83. package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +5 -5
  84. package/dist/types/store-sql/compaction/compaction-repository.d.ts +3 -3
  85. package/dist/types/store-sql/database/database-service.d.ts +3 -3
  86. package/dist/types/store-sql/database/notification-bus.d.ts +1 -1
  87. package/dist/types/store-sql/database/sql-dialect.d.ts +4 -1
  88. package/dist/types/store-sql/entity/entity-repository.d.ts +2 -2
  89. package/dist/types/store-sql/envelope/envelope-repository.d.ts +13 -13
  90. package/dist/types/store-sql/execution/execution-event-repository.d.ts +4 -4
  91. package/dist/types/store-sql/execution/execution-repository.d.ts +8 -8
  92. package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +5 -5
  93. package/dist/types/store-sql/inbox/inbox-repository.d.ts +1 -1
  94. package/dist/types/store-sql/memory/memory-repository.d.ts +3 -3
  95. package/dist/types/store-sql/permission/permission-rule-repository.d.ts +2 -2
  96. package/dist/types/store-sql/presence/presence-repository.d.ts +2 -2
  97. package/dist/types/store-sql/schedule/schedule-repository.d.ts +9 -9
  98. package/dist/types/store-sql/schema/relay-schema.d.ts +257 -257
  99. package/dist/types/store-sql/session/context-epoch-repository.d.ts +2 -2
  100. package/dist/types/store-sql/session/session-repository.d.ts +5 -5
  101. package/dist/types/store-sql/skill/skill-definition-repository.d.ts +9 -9
  102. package/dist/types/store-sql/state/execution-state-repository.d.ts +2 -2
  103. package/dist/types/store-sql/steering/steering-repository.d.ts +5 -5
  104. package/dist/types/store-sql/tenant/tenant-id.d.ts +2 -2
  105. package/dist/types/store-sql/tool/tool-call-repository.d.ts +19 -16
  106. package/dist/types/store-sql/topic/topic-repository.d.ts +1 -1
  107. package/dist/types/store-sql/workflow/workflow-definition-repository.d.ts +16 -14
  108. package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +11 -11
  109. package/package.json +3 -3
@@ -14,9 +14,9 @@ export declare const ModelSelection: Schema.Struct<{
14
14
  export interface ModelSelection extends Schema.Schema.Type<typeof ModelSelection> {
15
15
  }
16
16
  export declare const CompactionPolicy: Schema.Struct<{
17
- readonly context_window: Schema.Number;
18
- readonly reserve_tokens: Schema.Number;
19
- readonly keep_recent_tokens: Schema.Number;
17
+ readonly context_window: Schema.Finite;
18
+ readonly reserve_tokens: Schema.Finite;
19
+ readonly keep_recent_tokens: Schema.Finite;
20
20
  readonly summary_model: Schema.optionalKey<Schema.Struct<{
21
21
  readonly provider: Schema.String;
22
22
  readonly model: Schema.String;
@@ -43,9 +43,9 @@ export declare const ChildRunPreset: Schema.Struct<{
43
43
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
44
44
  }>>;
45
45
  readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
46
- readonly context_window: Schema.Number;
47
- readonly reserve_tokens: Schema.Number;
48
- readonly keep_recent_tokens: Schema.Number;
46
+ readonly context_window: Schema.Finite;
47
+ readonly reserve_tokens: Schema.Finite;
48
+ readonly keep_recent_tokens: Schema.Finite;
49
49
  readonly summary_model: Schema.optionalKey<Schema.Struct<{
50
50
  readonly provider: Schema.String;
51
51
  readonly model: Schema.String;
@@ -141,9 +141,9 @@ declare const DefinitionSchema: Schema.Struct<{
141
141
  }>>;
142
142
  readonly turn_policy: Schema.optionalKey<Schema.Codec<TurnPolicySnapshot, TurnPolicySnapshot, never, never>>;
143
143
  readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
144
- readonly context_window: Schema.Number;
145
- readonly reserve_tokens: Schema.Number;
146
- readonly keep_recent_tokens: Schema.Number;
144
+ readonly context_window: Schema.Finite;
145
+ readonly reserve_tokens: Schema.Finite;
146
+ readonly keep_recent_tokens: Schema.Finite;
147
147
  readonly summary_model: Schema.optionalKey<Schema.Struct<{
148
148
  readonly provider: Schema.String;
149
149
  readonly model: Schema.String;
@@ -165,9 +165,9 @@ declare const DefinitionSchema: Schema.Struct<{
165
165
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
166
166
  }>>;
167
167
  readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
168
- readonly context_window: Schema.Number;
169
- readonly reserve_tokens: Schema.Number;
170
- readonly keep_recent_tokens: Schema.Number;
168
+ readonly context_window: Schema.Finite;
169
+ readonly reserve_tokens: Schema.Finite;
170
+ readonly keep_recent_tokens: Schema.Finite;
171
171
  readonly summary_model: Schema.optionalKey<Schema.Struct<{
172
172
  readonly provider: Schema.String;
173
173
  readonly model: Schema.String;
@@ -227,29 +227,36 @@ export declare const DefinitionRecord: Schema.Struct<{
227
227
  readonly current_revision: Schema.Int;
228
228
  readonly definition: Schema.Codec<Definition, {
229
229
  readonly name: string;
230
- readonly permissions: readonly {
231
- readonly name: string;
232
- readonly value: Schema.Json;
233
- readonly metadata?: {
234
- readonly [x: string]: Schema.Json;
235
- };
236
- }[];
230
+ readonly instructions?: string;
237
231
  readonly model: {
238
232
  readonly provider: string;
239
233
  readonly model: string;
240
- readonly metadata?: {
241
- readonly [x: string]: Schema.Json;
242
- };
243
234
  readonly registration_key?: string;
244
235
  readonly request_options?: {
245
236
  readonly [x: string]: Schema.Json;
246
237
  };
238
+ readonly metadata?: {
239
+ readonly [x: string]: Schema.Json;
240
+ };
247
241
  };
248
242
  readonly tool_names: readonly string[];
249
- readonly metadata?: {
250
- readonly [x: string]: Schema.Json;
243
+ readonly permissions: readonly {
244
+ readonly name: string;
245
+ readonly value: Schema.Json;
246
+ readonly metadata?: {
247
+ readonly [x: string]: Schema.Json;
248
+ };
249
+ }[];
250
+ readonly skill_definition_ids?: readonly string[];
251
+ readonly permission_rules?: {
252
+ readonly rules: readonly {
253
+ readonly pattern: string;
254
+ readonly level: "allow" | "ask" | "deny";
255
+ readonly reason?: string;
256
+ }[];
257
+ readonly fallback?: "allow" | "ask" | "deny";
251
258
  };
252
- readonly instructions?: string;
259
+ readonly turn_policy?: TurnPolicySnapshot;
253
260
  readonly compaction_policy?: {
254
261
  readonly context_window: number;
255
262
  readonly reserve_tokens: number;
@@ -257,47 +264,32 @@ export declare const DefinitionRecord: Schema.Struct<{
257
264
  readonly summary_model?: {
258
265
  readonly provider: string;
259
266
  readonly model: string;
260
- readonly metadata?: {
261
- readonly [x: string]: Schema.Json;
262
- };
263
267
  readonly registration_key?: string;
264
268
  readonly request_options?: {
265
269
  readonly [x: string]: Schema.Json;
266
270
  };
271
+ readonly metadata?: {
272
+ readonly [x: string]: Schema.Json;
273
+ };
267
274
  };
268
275
  };
269
- readonly output_schema_ref?: string;
270
- readonly skill_definition_ids?: readonly string[];
271
- readonly permission_rules?: {
272
- readonly rules: readonly {
273
- readonly pattern: string;
274
- readonly level: "allow" | "deny" | "ask";
275
- readonly reason?: string;
276
- }[];
277
- readonly fallback?: "allow" | "deny" | "ask";
278
- };
279
- readonly turn_policy?: TurnPolicySnapshot;
280
276
  readonly max_tool_turns?: number;
281
277
  readonly max_wait_turns?: number;
282
278
  readonly token_budget?: number;
283
279
  readonly child_run_presets?: {
284
280
  readonly [x: string]: {
285
- readonly metadata?: {
286
- readonly [x: string]: Schema.Json;
287
- };
288
- readonly permissions?: readonly string[];
281
+ readonly instructions?: string;
289
282
  readonly model?: {
290
283
  readonly provider: string;
291
284
  readonly model: string;
292
- readonly metadata?: {
293
- readonly [x: string]: Schema.Json;
294
- };
295
285
  readonly registration_key?: string;
296
286
  readonly request_options?: {
297
287
  readonly [x: string]: Schema.Json;
298
288
  };
289
+ readonly metadata?: {
290
+ readonly [x: string]: Schema.Json;
291
+ };
299
292
  };
300
- readonly instructions?: string;
301
293
  readonly compaction_policy?: {
302
294
  readonly context_window: number;
303
295
  readonly reserve_tokens: number;
@@ -305,27 +297,35 @@ export declare const DefinitionRecord: Schema.Struct<{
305
297
  readonly summary_model?: {
306
298
  readonly provider: string;
307
299
  readonly model: string;
308
- readonly metadata?: {
309
- readonly [x: string]: Schema.Json;
310
- };
311
300
  readonly registration_key?: string;
312
301
  readonly request_options?: {
313
302
  readonly [x: string]: Schema.Json;
314
303
  };
304
+ readonly metadata?: {
305
+ readonly [x: string]: Schema.Json;
306
+ };
315
307
  };
316
308
  };
317
309
  readonly tool_names?: readonly string[];
310
+ readonly permissions?: readonly string[];
318
311
  readonly workspace_policy?: {
319
- readonly mode: "share" | "fork";
312
+ readonly mode: "fork" | "share";
320
313
  readonly fallback?: "fail" | "fresh";
321
314
  };
322
315
  readonly output_schema_ref?: string;
316
+ readonly metadata?: {
317
+ readonly [x: string]: Schema.Json;
318
+ };
323
319
  };
324
320
  };
325
321
  readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
326
322
  readonly name: Schema.String;
327
323
  readonly preset_name: Schema.String;
328
324
  }, "Encoded">[];
325
+ readonly output_schema_ref?: string;
326
+ readonly metadata?: {
327
+ readonly [x: string]: Schema.Json;
328
+ };
329
329
  }, never, never>;
330
330
  readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
331
331
  readonly created_at: Schema.Int;
@@ -340,29 +340,36 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
340
340
  readonly revision: Schema.Int;
341
341
  readonly definition: Schema.Codec<Definition, {
342
342
  readonly name: string;
343
- readonly permissions: readonly {
344
- readonly name: string;
345
- readonly value: Schema.Json;
346
- readonly metadata?: {
347
- readonly [x: string]: Schema.Json;
348
- };
349
- }[];
343
+ readonly instructions?: string;
350
344
  readonly model: {
351
345
  readonly provider: string;
352
346
  readonly model: string;
353
- readonly metadata?: {
354
- readonly [x: string]: Schema.Json;
355
- };
356
347
  readonly registration_key?: string;
357
348
  readonly request_options?: {
358
349
  readonly [x: string]: Schema.Json;
359
350
  };
351
+ readonly metadata?: {
352
+ readonly [x: string]: Schema.Json;
353
+ };
360
354
  };
361
355
  readonly tool_names: readonly string[];
362
- readonly metadata?: {
363
- readonly [x: string]: Schema.Json;
356
+ readonly permissions: readonly {
357
+ readonly name: string;
358
+ readonly value: Schema.Json;
359
+ readonly metadata?: {
360
+ readonly [x: string]: Schema.Json;
361
+ };
362
+ }[];
363
+ readonly skill_definition_ids?: readonly string[];
364
+ readonly permission_rules?: {
365
+ readonly rules: readonly {
366
+ readonly pattern: string;
367
+ readonly level: "allow" | "ask" | "deny";
368
+ readonly reason?: string;
369
+ }[];
370
+ readonly fallback?: "allow" | "ask" | "deny";
364
371
  };
365
- readonly instructions?: string;
372
+ readonly turn_policy?: TurnPolicySnapshot;
366
373
  readonly compaction_policy?: {
367
374
  readonly context_window: number;
368
375
  readonly reserve_tokens: number;
@@ -370,47 +377,32 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
370
377
  readonly summary_model?: {
371
378
  readonly provider: string;
372
379
  readonly model: string;
373
- readonly metadata?: {
374
- readonly [x: string]: Schema.Json;
375
- };
376
380
  readonly registration_key?: string;
377
381
  readonly request_options?: {
378
382
  readonly [x: string]: Schema.Json;
379
383
  };
384
+ readonly metadata?: {
385
+ readonly [x: string]: Schema.Json;
386
+ };
380
387
  };
381
388
  };
382
- readonly output_schema_ref?: string;
383
- readonly skill_definition_ids?: readonly string[];
384
- readonly permission_rules?: {
385
- readonly rules: readonly {
386
- readonly pattern: string;
387
- readonly level: "allow" | "deny" | "ask";
388
- readonly reason?: string;
389
- }[];
390
- readonly fallback?: "allow" | "deny" | "ask";
391
- };
392
- readonly turn_policy?: TurnPolicySnapshot;
393
389
  readonly max_tool_turns?: number;
394
390
  readonly max_wait_turns?: number;
395
391
  readonly token_budget?: number;
396
392
  readonly child_run_presets?: {
397
393
  readonly [x: string]: {
398
- readonly metadata?: {
399
- readonly [x: string]: Schema.Json;
400
- };
401
- readonly permissions?: readonly string[];
394
+ readonly instructions?: string;
402
395
  readonly model?: {
403
396
  readonly provider: string;
404
397
  readonly model: string;
405
- readonly metadata?: {
406
- readonly [x: string]: Schema.Json;
407
- };
408
398
  readonly registration_key?: string;
409
399
  readonly request_options?: {
410
400
  readonly [x: string]: Schema.Json;
411
401
  };
402
+ readonly metadata?: {
403
+ readonly [x: string]: Schema.Json;
404
+ };
412
405
  };
413
- readonly instructions?: string;
414
406
  readonly compaction_policy?: {
415
407
  readonly context_window: number;
416
408
  readonly reserve_tokens: number;
@@ -418,27 +410,35 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
418
410
  readonly summary_model?: {
419
411
  readonly provider: string;
420
412
  readonly model: string;
421
- readonly metadata?: {
422
- readonly [x: string]: Schema.Json;
423
- };
424
413
  readonly registration_key?: string;
425
414
  readonly request_options?: {
426
415
  readonly [x: string]: Schema.Json;
427
416
  };
417
+ readonly metadata?: {
418
+ readonly [x: string]: Schema.Json;
419
+ };
428
420
  };
429
421
  };
430
422
  readonly tool_names?: readonly string[];
423
+ readonly permissions?: readonly string[];
431
424
  readonly workspace_policy?: {
432
- readonly mode: "share" | "fork";
425
+ readonly mode: "fork" | "share";
433
426
  readonly fallback?: "fail" | "fresh";
434
427
  };
435
428
  readonly output_schema_ref?: string;
429
+ readonly metadata?: {
430
+ readonly [x: string]: Schema.Json;
431
+ };
436
432
  };
437
433
  };
438
434
  readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
439
435
  readonly name: Schema.String;
440
436
  readonly preset_name: Schema.String;
441
437
  }, "Encoded">[];
438
+ readonly output_schema_ref?: string;
439
+ readonly metadata?: {
440
+ readonly [x: string]: Schema.Json;
441
+ };
442
442
  }, never, never>;
443
443
  readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
444
444
  readonly created_at: Schema.Int;
@@ -451,29 +451,36 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
451
451
  };
452
452
  readonly definition: Schema.Codec<Definition, {
453
453
  readonly name: string;
454
- readonly permissions: readonly {
455
- readonly name: string;
456
- readonly value: Schema.Json;
457
- readonly metadata?: {
458
- readonly [x: string]: Schema.Json;
459
- };
460
- }[];
454
+ readonly instructions?: string;
461
455
  readonly model: {
462
456
  readonly provider: string;
463
457
  readonly model: string;
464
- readonly metadata?: {
465
- readonly [x: string]: Schema.Json;
466
- };
467
458
  readonly registration_key?: string;
468
459
  readonly request_options?: {
469
460
  readonly [x: string]: Schema.Json;
470
461
  };
462
+ readonly metadata?: {
463
+ readonly [x: string]: Schema.Json;
464
+ };
471
465
  };
472
466
  readonly tool_names: readonly string[];
473
- readonly metadata?: {
474
- readonly [x: string]: Schema.Json;
467
+ readonly permissions: readonly {
468
+ readonly name: string;
469
+ readonly value: Schema.Json;
470
+ readonly metadata?: {
471
+ readonly [x: string]: Schema.Json;
472
+ };
473
+ }[];
474
+ readonly skill_definition_ids?: readonly string[];
475
+ readonly permission_rules?: {
476
+ readonly rules: readonly {
477
+ readonly pattern: string;
478
+ readonly level: "allow" | "ask" | "deny";
479
+ readonly reason?: string;
480
+ }[];
481
+ readonly fallback?: "allow" | "ask" | "deny";
475
482
  };
476
- readonly instructions?: string;
483
+ readonly turn_policy?: TurnPolicySnapshot;
477
484
  readonly compaction_policy?: {
478
485
  readonly context_window: number;
479
486
  readonly reserve_tokens: number;
@@ -481,47 +488,32 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
481
488
  readonly summary_model?: {
482
489
  readonly provider: string;
483
490
  readonly model: string;
484
- readonly metadata?: {
485
- readonly [x: string]: Schema.Json;
486
- };
487
491
  readonly registration_key?: string;
488
492
  readonly request_options?: {
489
493
  readonly [x: string]: Schema.Json;
490
494
  };
495
+ readonly metadata?: {
496
+ readonly [x: string]: Schema.Json;
497
+ };
491
498
  };
492
499
  };
493
- readonly output_schema_ref?: string;
494
- readonly skill_definition_ids?: readonly string[];
495
- readonly permission_rules?: {
496
- readonly rules: readonly {
497
- readonly pattern: string;
498
- readonly level: "allow" | "deny" | "ask";
499
- readonly reason?: string;
500
- }[];
501
- readonly fallback?: "allow" | "deny" | "ask";
502
- };
503
- readonly turn_policy?: TurnPolicySnapshot;
504
500
  readonly max_tool_turns?: number;
505
501
  readonly max_wait_turns?: number;
506
502
  readonly token_budget?: number;
507
503
  readonly child_run_presets?: {
508
504
  readonly [x: string]: {
509
- readonly metadata?: {
510
- readonly [x: string]: Schema.Json;
511
- };
512
- readonly permissions?: readonly string[];
505
+ readonly instructions?: string;
513
506
  readonly model?: {
514
507
  readonly provider: string;
515
508
  readonly model: string;
516
- readonly metadata?: {
517
- readonly [x: string]: Schema.Json;
518
- };
519
509
  readonly registration_key?: string;
520
510
  readonly request_options?: {
521
511
  readonly [x: string]: Schema.Json;
522
512
  };
513
+ readonly metadata?: {
514
+ readonly [x: string]: Schema.Json;
515
+ };
523
516
  };
524
- readonly instructions?: string;
525
517
  readonly compaction_policy?: {
526
518
  readonly context_window: number;
527
519
  readonly reserve_tokens: number;
@@ -529,27 +521,35 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
529
521
  readonly summary_model?: {
530
522
  readonly provider: string;
531
523
  readonly model: string;
532
- readonly metadata?: {
533
- readonly [x: string]: Schema.Json;
534
- };
535
524
  readonly registration_key?: string;
536
525
  readonly request_options?: {
537
526
  readonly [x: string]: Schema.Json;
538
527
  };
528
+ readonly metadata?: {
529
+ readonly [x: string]: Schema.Json;
530
+ };
539
531
  };
540
532
  };
541
533
  readonly tool_names?: readonly string[];
534
+ readonly permissions?: readonly string[];
542
535
  readonly workspace_policy?: {
543
- readonly mode: "share" | "fork";
536
+ readonly mode: "fork" | "share";
544
537
  readonly fallback?: "fail" | "fresh";
545
538
  };
546
539
  readonly output_schema_ref?: string;
540
+ readonly metadata?: {
541
+ readonly [x: string]: Schema.Json;
542
+ };
547
543
  };
548
544
  };
549
545
  readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
550
546
  readonly name: Schema.String;
551
547
  readonly preset_name: Schema.String;
552
548
  }, "Encoded">[];
549
+ readonly output_schema_ref?: string;
550
+ readonly metadata?: {
551
+ readonly [x: string]: Schema.Json;
552
+ };
553
553
  }, never, never>;
554
554
  }>;
555
555
  export interface RegisterDefinitionPayload extends Schema.Schema.Type<typeof RegisterDefinitionPayload> {
@@ -562,29 +562,36 @@ export declare const DefinitionRegistered: Schema.Struct<{
562
562
  readonly current_revision: Schema.Int;
563
563
  readonly definition: Schema.Codec<Definition, {
564
564
  readonly name: string;
565
- readonly permissions: readonly {
566
- readonly name: string;
567
- readonly value: Schema.Json;
568
- readonly metadata?: {
569
- readonly [x: string]: Schema.Json;
570
- };
571
- }[];
565
+ readonly instructions?: string;
572
566
  readonly model: {
573
567
  readonly provider: string;
574
568
  readonly model: string;
575
- readonly metadata?: {
576
- readonly [x: string]: Schema.Json;
577
- };
578
569
  readonly registration_key?: string;
579
570
  readonly request_options?: {
580
571
  readonly [x: string]: Schema.Json;
581
572
  };
573
+ readonly metadata?: {
574
+ readonly [x: string]: Schema.Json;
575
+ };
582
576
  };
583
577
  readonly tool_names: readonly string[];
584
- readonly metadata?: {
585
- readonly [x: string]: Schema.Json;
578
+ readonly permissions: readonly {
579
+ readonly name: string;
580
+ readonly value: Schema.Json;
581
+ readonly metadata?: {
582
+ readonly [x: string]: Schema.Json;
583
+ };
584
+ }[];
585
+ readonly skill_definition_ids?: readonly string[];
586
+ readonly permission_rules?: {
587
+ readonly rules: readonly {
588
+ readonly pattern: string;
589
+ readonly level: "allow" | "ask" | "deny";
590
+ readonly reason?: string;
591
+ }[];
592
+ readonly fallback?: "allow" | "ask" | "deny";
586
593
  };
587
- readonly instructions?: string;
594
+ readonly turn_policy?: TurnPolicySnapshot;
588
595
  readonly compaction_policy?: {
589
596
  readonly context_window: number;
590
597
  readonly reserve_tokens: number;
@@ -592,47 +599,32 @@ export declare const DefinitionRegistered: Schema.Struct<{
592
599
  readonly summary_model?: {
593
600
  readonly provider: string;
594
601
  readonly model: string;
595
- readonly metadata?: {
596
- readonly [x: string]: Schema.Json;
597
- };
598
602
  readonly registration_key?: string;
599
603
  readonly request_options?: {
600
604
  readonly [x: string]: Schema.Json;
601
605
  };
606
+ readonly metadata?: {
607
+ readonly [x: string]: Schema.Json;
608
+ };
602
609
  };
603
610
  };
604
- readonly output_schema_ref?: string;
605
- readonly skill_definition_ids?: readonly string[];
606
- readonly permission_rules?: {
607
- readonly rules: readonly {
608
- readonly pattern: string;
609
- readonly level: "allow" | "deny" | "ask";
610
- readonly reason?: string;
611
- }[];
612
- readonly fallback?: "allow" | "deny" | "ask";
613
- };
614
- readonly turn_policy?: TurnPolicySnapshot;
615
611
  readonly max_tool_turns?: number;
616
612
  readonly max_wait_turns?: number;
617
613
  readonly token_budget?: number;
618
614
  readonly child_run_presets?: {
619
615
  readonly [x: string]: {
620
- readonly metadata?: {
621
- readonly [x: string]: Schema.Json;
622
- };
623
- readonly permissions?: readonly string[];
616
+ readonly instructions?: string;
624
617
  readonly model?: {
625
618
  readonly provider: string;
626
619
  readonly model: string;
627
- readonly metadata?: {
628
- readonly [x: string]: Schema.Json;
629
- };
630
620
  readonly registration_key?: string;
631
621
  readonly request_options?: {
632
622
  readonly [x: string]: Schema.Json;
633
623
  };
624
+ readonly metadata?: {
625
+ readonly [x: string]: Schema.Json;
626
+ };
634
627
  };
635
- readonly instructions?: string;
636
628
  readonly compaction_policy?: {
637
629
  readonly context_window: number;
638
630
  readonly reserve_tokens: number;
@@ -640,27 +632,35 @@ export declare const DefinitionRegistered: Schema.Struct<{
640
632
  readonly summary_model?: {
641
633
  readonly provider: string;
642
634
  readonly model: string;
643
- readonly metadata?: {
644
- readonly [x: string]: Schema.Json;
645
- };
646
635
  readonly registration_key?: string;
647
636
  readonly request_options?: {
648
637
  readonly [x: string]: Schema.Json;
649
638
  };
639
+ readonly metadata?: {
640
+ readonly [x: string]: Schema.Json;
641
+ };
650
642
  };
651
643
  };
652
644
  readonly tool_names?: readonly string[];
645
+ readonly permissions?: readonly string[];
653
646
  readonly workspace_policy?: {
654
- readonly mode: "share" | "fork";
647
+ readonly mode: "fork" | "share";
655
648
  readonly fallback?: "fail" | "fresh";
656
649
  };
657
650
  readonly output_schema_ref?: string;
651
+ readonly metadata?: {
652
+ readonly [x: string]: Schema.Json;
653
+ };
658
654
  };
659
655
  };
660
656
  readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
661
657
  readonly name: Schema.String;
662
658
  readonly preset_name: Schema.String;
663
659
  }, "Encoded">[];
660
+ readonly output_schema_ref?: string;
661
+ readonly metadata?: {
662
+ readonly [x: string]: Schema.Json;
663
+ };
664
664
  }, never, never>;
665
665
  readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
666
666
  readonly created_at: Schema.Int;
@@ -677,29 +677,36 @@ export declare const DefinitionList: Schema.Struct<{
677
677
  readonly current_revision: Schema.Int;
678
678
  readonly definition: Schema.Codec<Definition, {
679
679
  readonly name: string;
680
- readonly permissions: readonly {
681
- readonly name: string;
682
- readonly value: Schema.Json;
683
- readonly metadata?: {
684
- readonly [x: string]: Schema.Json;
685
- };
686
- }[];
680
+ readonly instructions?: string;
687
681
  readonly model: {
688
682
  readonly provider: string;
689
683
  readonly model: string;
690
- readonly metadata?: {
691
- readonly [x: string]: Schema.Json;
692
- };
693
684
  readonly registration_key?: string;
694
685
  readonly request_options?: {
695
686
  readonly [x: string]: Schema.Json;
696
687
  };
688
+ readonly metadata?: {
689
+ readonly [x: string]: Schema.Json;
690
+ };
697
691
  };
698
692
  readonly tool_names: readonly string[];
699
- readonly metadata?: {
700
- readonly [x: string]: Schema.Json;
693
+ readonly permissions: readonly {
694
+ readonly name: string;
695
+ readonly value: Schema.Json;
696
+ readonly metadata?: {
697
+ readonly [x: string]: Schema.Json;
698
+ };
699
+ }[];
700
+ readonly skill_definition_ids?: readonly string[];
701
+ readonly permission_rules?: {
702
+ readonly rules: readonly {
703
+ readonly pattern: string;
704
+ readonly level: "allow" | "ask" | "deny";
705
+ readonly reason?: string;
706
+ }[];
707
+ readonly fallback?: "allow" | "ask" | "deny";
701
708
  };
702
- readonly instructions?: string;
709
+ readonly turn_policy?: TurnPolicySnapshot;
703
710
  readonly compaction_policy?: {
704
711
  readonly context_window: number;
705
712
  readonly reserve_tokens: number;
@@ -707,47 +714,32 @@ export declare const DefinitionList: Schema.Struct<{
707
714
  readonly summary_model?: {
708
715
  readonly provider: string;
709
716
  readonly model: string;
710
- readonly metadata?: {
711
- readonly [x: string]: Schema.Json;
712
- };
713
717
  readonly registration_key?: string;
714
718
  readonly request_options?: {
715
719
  readonly [x: string]: Schema.Json;
716
720
  };
721
+ readonly metadata?: {
722
+ readonly [x: string]: Schema.Json;
723
+ };
717
724
  };
718
725
  };
719
- readonly output_schema_ref?: string;
720
- readonly skill_definition_ids?: readonly string[];
721
- readonly permission_rules?: {
722
- readonly rules: readonly {
723
- readonly pattern: string;
724
- readonly level: "allow" | "deny" | "ask";
725
- readonly reason?: string;
726
- }[];
727
- readonly fallback?: "allow" | "deny" | "ask";
728
- };
729
- readonly turn_policy?: TurnPolicySnapshot;
730
726
  readonly max_tool_turns?: number;
731
727
  readonly max_wait_turns?: number;
732
728
  readonly token_budget?: number;
733
729
  readonly child_run_presets?: {
734
730
  readonly [x: string]: {
735
- readonly metadata?: {
736
- readonly [x: string]: Schema.Json;
737
- };
738
- readonly permissions?: readonly string[];
731
+ readonly instructions?: string;
739
732
  readonly model?: {
740
733
  readonly provider: string;
741
734
  readonly model: string;
742
- readonly metadata?: {
743
- readonly [x: string]: Schema.Json;
744
- };
745
735
  readonly registration_key?: string;
746
736
  readonly request_options?: {
747
737
  readonly [x: string]: Schema.Json;
748
738
  };
739
+ readonly metadata?: {
740
+ readonly [x: string]: Schema.Json;
741
+ };
749
742
  };
750
- readonly instructions?: string;
751
743
  readonly compaction_policy?: {
752
744
  readonly context_window: number;
753
745
  readonly reserve_tokens: number;
@@ -755,27 +747,35 @@ export declare const DefinitionList: Schema.Struct<{
755
747
  readonly summary_model?: {
756
748
  readonly provider: string;
757
749
  readonly model: string;
758
- readonly metadata?: {
759
- readonly [x: string]: Schema.Json;
760
- };
761
750
  readonly registration_key?: string;
762
751
  readonly request_options?: {
763
752
  readonly [x: string]: Schema.Json;
764
753
  };
754
+ readonly metadata?: {
755
+ readonly [x: string]: Schema.Json;
756
+ };
765
757
  };
766
758
  };
767
759
  readonly tool_names?: readonly string[];
760
+ readonly permissions?: readonly string[];
768
761
  readonly workspace_policy?: {
769
- readonly mode: "share" | "fork";
762
+ readonly mode: "fork" | "share";
770
763
  readonly fallback?: "fail" | "fresh";
771
764
  };
772
765
  readonly output_schema_ref?: string;
766
+ readonly metadata?: {
767
+ readonly [x: string]: Schema.Json;
768
+ };
773
769
  };
774
770
  };
775
771
  readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
776
772
  readonly name: Schema.String;
777
773
  readonly preset_name: Schema.String;
778
774
  }, "Encoded">[];
775
+ readonly output_schema_ref?: string;
776
+ readonly metadata?: {
777
+ readonly [x: string]: Schema.Json;
778
+ };
779
779
  }, never, never>;
780
780
  readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
781
781
  readonly created_at: Schema.Int;
@@ -792,29 +792,36 @@ export declare const DefinitionRevisionList: Schema.Struct<{
792
792
  readonly revision: Schema.Int;
793
793
  readonly definition: Schema.Codec<Definition, {
794
794
  readonly name: string;
795
- readonly permissions: readonly {
796
- readonly name: string;
797
- readonly value: Schema.Json;
798
- readonly metadata?: {
799
- readonly [x: string]: Schema.Json;
800
- };
801
- }[];
795
+ readonly instructions?: string;
802
796
  readonly model: {
803
797
  readonly provider: string;
804
798
  readonly model: string;
805
- readonly metadata?: {
806
- readonly [x: string]: Schema.Json;
807
- };
808
799
  readonly registration_key?: string;
809
800
  readonly request_options?: {
810
801
  readonly [x: string]: Schema.Json;
811
802
  };
803
+ readonly metadata?: {
804
+ readonly [x: string]: Schema.Json;
805
+ };
812
806
  };
813
807
  readonly tool_names: readonly string[];
814
- readonly metadata?: {
815
- readonly [x: string]: Schema.Json;
808
+ readonly permissions: readonly {
809
+ readonly name: string;
810
+ readonly value: Schema.Json;
811
+ readonly metadata?: {
812
+ readonly [x: string]: Schema.Json;
813
+ };
814
+ }[];
815
+ readonly skill_definition_ids?: readonly string[];
816
+ readonly permission_rules?: {
817
+ readonly rules: readonly {
818
+ readonly pattern: string;
819
+ readonly level: "allow" | "ask" | "deny";
820
+ readonly reason?: string;
821
+ }[];
822
+ readonly fallback?: "allow" | "ask" | "deny";
816
823
  };
817
- readonly instructions?: string;
824
+ readonly turn_policy?: TurnPolicySnapshot;
818
825
  readonly compaction_policy?: {
819
826
  readonly context_window: number;
820
827
  readonly reserve_tokens: number;
@@ -822,47 +829,32 @@ export declare const DefinitionRevisionList: Schema.Struct<{
822
829
  readonly summary_model?: {
823
830
  readonly provider: string;
824
831
  readonly model: string;
825
- readonly metadata?: {
826
- readonly [x: string]: Schema.Json;
827
- };
828
832
  readonly registration_key?: string;
829
833
  readonly request_options?: {
830
834
  readonly [x: string]: Schema.Json;
831
835
  };
836
+ readonly metadata?: {
837
+ readonly [x: string]: Schema.Json;
838
+ };
832
839
  };
833
840
  };
834
- readonly output_schema_ref?: string;
835
- readonly skill_definition_ids?: readonly string[];
836
- readonly permission_rules?: {
837
- readonly rules: readonly {
838
- readonly pattern: string;
839
- readonly level: "allow" | "deny" | "ask";
840
- readonly reason?: string;
841
- }[];
842
- readonly fallback?: "allow" | "deny" | "ask";
843
- };
844
- readonly turn_policy?: TurnPolicySnapshot;
845
841
  readonly max_tool_turns?: number;
846
842
  readonly max_wait_turns?: number;
847
843
  readonly token_budget?: number;
848
844
  readonly child_run_presets?: {
849
845
  readonly [x: string]: {
850
- readonly metadata?: {
851
- readonly [x: string]: Schema.Json;
852
- };
853
- readonly permissions?: readonly string[];
846
+ readonly instructions?: string;
854
847
  readonly model?: {
855
848
  readonly provider: string;
856
849
  readonly model: string;
857
- readonly metadata?: {
858
- readonly [x: string]: Schema.Json;
859
- };
860
850
  readonly registration_key?: string;
861
851
  readonly request_options?: {
862
852
  readonly [x: string]: Schema.Json;
863
853
  };
854
+ readonly metadata?: {
855
+ readonly [x: string]: Schema.Json;
856
+ };
864
857
  };
865
- readonly instructions?: string;
866
858
  readonly compaction_policy?: {
867
859
  readonly context_window: number;
868
860
  readonly reserve_tokens: number;
@@ -870,27 +862,35 @@ export declare const DefinitionRevisionList: Schema.Struct<{
870
862
  readonly summary_model?: {
871
863
  readonly provider: string;
872
864
  readonly model: string;
873
- readonly metadata?: {
874
- readonly [x: string]: Schema.Json;
875
- };
876
865
  readonly registration_key?: string;
877
866
  readonly request_options?: {
878
867
  readonly [x: string]: Schema.Json;
879
868
  };
869
+ readonly metadata?: {
870
+ readonly [x: string]: Schema.Json;
871
+ };
880
872
  };
881
873
  };
882
874
  readonly tool_names?: readonly string[];
875
+ readonly permissions?: readonly string[];
883
876
  readonly workspace_policy?: {
884
- readonly mode: "share" | "fork";
877
+ readonly mode: "fork" | "share";
885
878
  readonly fallback?: "fail" | "fresh";
886
879
  };
887
880
  readonly output_schema_ref?: string;
881
+ readonly metadata?: {
882
+ readonly [x: string]: Schema.Json;
883
+ };
888
884
  };
889
885
  };
890
886
  readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
891
887
  readonly name: Schema.String;
892
888
  readonly preset_name: Schema.String;
893
889
  }, "Encoded">[];
890
+ readonly output_schema_ref?: string;
891
+ readonly metadata?: {
892
+ readonly [x: string]: Schema.Json;
893
+ };
894
894
  }, never, never>;
895
895
  readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
896
896
  readonly created_at: Schema.Int;