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