@maudecode/talaria-web-contracts 1.17.2 → 1.19.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 (92) hide show
  1. package/dist/gateway-session.d.ts +229 -0
  2. package/dist/gateway-session.js +46 -0
  3. package/dist/gateway-session.js.map +1 -0
  4. package/dist/index.d.ts +4 -0
  5. package/dist/index.js +4 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/openapi.js +9 -1
  8. package/dist/openapi.js.map +1 -1
  9. package/dist/router.d.ts +8256 -1763
  10. package/dist/routes/automation.d.ts +130 -25
  11. package/dist/routes/automation.js +8 -4
  12. package/dist/routes/automation.js.map +1 -1
  13. package/dist/routes/chat.d.ts +2484 -41
  14. package/dist/routes/chat.js +10 -4
  15. package/dist/routes/chat.js.map +1 -1
  16. package/dist/routes/core.d.ts +28 -6
  17. package/dist/routes/core.js +5 -2
  18. package/dist/routes/core.js.map +1 -1
  19. package/dist/routes/git.d.ts +76 -1
  20. package/dist/routes/git.js +13 -3
  21. package/dist/routes/git.js.map +1 -1
  22. package/dist/routes/raw.d.ts +3 -1
  23. package/dist/routes/raw.js +30 -6
  24. package/dist/routes/raw.js.map +1 -1
  25. package/dist/routes/sessions.d.ts +5181 -744
  26. package/dist/routes/sessions.js +76 -8
  27. package/dist/routes/sessions.js.map +1 -1
  28. package/dist/routes/settings.d.ts +457 -8
  29. package/dist/routes/settings.js +2 -2
  30. package/dist/routes/settings.js.map +1 -1
  31. package/dist/routes/tools.d.ts +1001 -33
  32. package/dist/routes/tools.js +82 -6
  33. package/dist/routes/tools.js.map +1 -1
  34. package/dist/routes/workspaces.d.ts +82 -0
  35. package/dist/routes/workspaces.js +18 -1
  36. package/dist/routes/workspaces.js.map +1 -1
  37. package/dist/run-status.d.ts +39 -0
  38. package/dist/run-status.js +13 -0
  39. package/dist/run-status.js.map +1 -0
  40. package/dist/sidecar/methods.d.ts +1299 -109
  41. package/dist/sidecar/methods.js +10 -2
  42. package/dist/sidecar/methods.js.map +1 -1
  43. package/dist/sidecar/namespaces.d.ts +1736 -123
  44. package/dist/sidecar/namespaces.js +332 -32
  45. package/dist/sidecar/namespaces.js.map +1 -1
  46. package/dist/sidecar/runtime.d.ts +61 -0
  47. package/dist/sidecar/runtime.js +20 -0
  48. package/dist/sidecar/runtime.js.map +1 -1
  49. package/dist/sidecar/version.d.ts +1 -1
  50. package/dist/sidecar/version.js +1 -1
  51. package/dist/speed.d.ts +14 -0
  52. package/dist/speed.js +6 -0
  53. package/dist/speed.js.map +1 -0
  54. package/dist/sse.d.ts +833 -14
  55. package/dist/sse.js +25 -9
  56. package/dist/sse.js.map +1 -1
  57. package/dist/theme.d.ts +10 -0
  58. package/dist/theme.js +10 -0
  59. package/dist/theme.js.map +1 -0
  60. package/dist/transcribe-stream.d.ts +34 -0
  61. package/dist/transcribe-stream.js +23 -0
  62. package/dist/transcribe-stream.js.map +1 -0
  63. package/dist/views.d.ts +2900 -159
  64. package/dist/views.js +380 -55
  65. package/dist/views.js.map +1 -1
  66. package/fixtures/sidecar/aux.json +134 -0
  67. package/fixtures/sidecar/chat.json +14 -0
  68. package/fixtures/sidecar/checkpoints.json +50 -0
  69. package/fixtures/sidecar/commands.json +258 -99
  70. package/fixtures/sidecar/config.json +15 -0
  71. package/fixtures/sidecar/connectors.json +218 -0
  72. package/fixtures/sidecar/cron.json +1008 -55
  73. package/fixtures/sidecar/gateway.json +39 -0
  74. package/fixtures/sidecar/goals.json +10 -8
  75. package/fixtures/sidecar/kanban.json +181 -90
  76. package/fixtures/sidecar/memory.json +50 -0
  77. package/fixtures/sidecar/models.json +122 -0
  78. package/fixtures/sidecar/personalities.json +92 -0
  79. package/fixtures/sidecar/plugins.json +262 -174
  80. package/fixtures/sidecar/process.json +31 -0
  81. package/fixtures/sidecar/profiles.json +12 -2
  82. package/fixtures/sidecar/providers.json +39 -13
  83. package/fixtures/sidecar/rpc.json +50 -1
  84. package/fixtures/sidecar/runtime.json +131 -22
  85. package/fixtures/sidecar/skills.json +256 -13
  86. package/fixtures/sidecar/state_db.json +34 -2
  87. package/fixtures/sidecar/stt.json +62 -1
  88. package/fixtures/sidecar/text.json +20 -2
  89. package/fixtures/sidecar/toolsets.json +468 -0
  90. package/fixtures/sidecar/usage.json +24 -4
  91. package/fixtures/sidecar/write_approval.json +98 -0
  92. package/package.json +1 -1
@@ -1,4 +1,12 @@
1
1
  import { z } from 'zod';
2
+ /** Warnings and wording come from the Agent's selection guard registry, including future guard kinds. */
3
+ export declare const ModelSelectionWarningSchema: z.ZodObject<{
4
+ kind: z.ZodString;
5
+ title: z.ZodString;
6
+ model: z.ZodString;
7
+ provider: z.ZodString;
8
+ message: z.ZodString;
9
+ }, z.core.$strip>;
2
10
  /** Shared param shapes. */
3
11
  export declare const ProfileHomeParams: z.ZodObject<{
4
12
  profile_home: z.ZodString;
@@ -6,6 +14,43 @@ export declare const ProfileHomeParams: z.ZodObject<{
6
14
  export declare const BaseHomeParams: z.ZodObject<{
7
15
  base_home: z.ZodString;
8
16
  }, z.core.$strip>;
17
+ /** Profile-scoped toolset choices; clients render policy and selection without deriving them. */
18
+ export declare const ToolsetsCatalogSchema: z.ZodObject<{
19
+ toolsets: z.ZodArray<z.ZodObject<{
20
+ name: z.ZodString;
21
+ description: z.ZodString;
22
+ available: z.ZodBoolean;
23
+ selected: z.ZodBoolean;
24
+ unavailable_reason: z.ZodNullable<z.ZodEnum<{
25
+ unavailable: "unavailable";
26
+ disabled: "disabled";
27
+ }>>;
28
+ }, z.core.$strip>>;
29
+ selected_toolsets: z.ZodArray<z.ZodString>;
30
+ using_defaults: z.ZodBoolean;
31
+ }, z.core.$strip>;
32
+ export declare const TOOLSETS_METHODS: {
33
+ readonly 'toolsets.catalog': {
34
+ readonly params: z.ZodObject<{
35
+ profile_home: z.ZodString;
36
+ enabled_toolsets: z.ZodNullable<z.ZodArray<z.ZodString>>;
37
+ }, z.core.$strip>;
38
+ readonly result: z.ZodObject<{
39
+ toolsets: z.ZodArray<z.ZodObject<{
40
+ name: z.ZodString;
41
+ description: z.ZodString;
42
+ available: z.ZodBoolean;
43
+ selected: z.ZodBoolean;
44
+ unavailable_reason: z.ZodNullable<z.ZodEnum<{
45
+ unavailable: "unavailable";
46
+ disabled: "disabled";
47
+ }>>;
48
+ }, z.core.$strip>>;
49
+ selected_toolsets: z.ZodArray<z.ZodString>;
50
+ using_defaults: z.ZodBoolean;
51
+ }, z.core.$strip>;
52
+ };
53
+ };
9
54
  export declare const GoalStateSchema: z.ZodObject<{
10
55
  goal: z.ZodString;
11
56
  status: z.ZodString;
@@ -15,6 +60,11 @@ export declare const GoalStateSchema: z.ZodObject<{
15
60
  last_reason: z.ZodNullable<z.ZodString>;
16
61
  paused_reason: z.ZodNullable<z.ZodString>;
17
62
  }, z.core.$strip>;
63
+ /** TAL-808: `parked` is an active goal's live wait barrier: its reason and, for a timed wait, the Unix-seconds deadline. */
64
+ export declare const GoalParkedSchema: z.ZodObject<{
65
+ reason: z.ZodNullable<z.ZodString>;
66
+ until: z.ZodNullable<z.ZodNumber>;
67
+ }, z.core.$strip>;
18
68
  export declare const GoalStatusSchema: z.ZodObject<{
19
69
  goal: z.ZodNullable<z.ZodObject<{
20
70
  goal: z.ZodString;
@@ -26,6 +76,10 @@ export declare const GoalStatusSchema: z.ZodObject<{
26
76
  paused_reason: z.ZodNullable<z.ZodString>;
27
77
  }, z.core.$strip>>;
28
78
  active: z.ZodBoolean;
79
+ parked: z.ZodNullable<z.ZodObject<{
80
+ reason: z.ZodNullable<z.ZodString>;
81
+ until: z.ZodNullable<z.ZodNumber>;
82
+ }, z.core.$strip>>;
29
83
  message: z.ZodString;
30
84
  message_key: z.ZodOptional<z.ZodString>;
31
85
  message_args: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
@@ -76,6 +130,10 @@ export declare const GOALS_METHODS: {
76
130
  paused_reason: z.ZodNullable<z.ZodString>;
77
131
  }, z.core.$strip>>;
78
132
  active: z.ZodBoolean;
133
+ parked: z.ZodNullable<z.ZodObject<{
134
+ reason: z.ZodNullable<z.ZodString>;
135
+ until: z.ZodNullable<z.ZodNumber>;
136
+ }, z.core.$strip>>;
79
137
  message: z.ZodString;
80
138
  message_key: z.ZodOptional<z.ZodString>;
81
139
  message_args: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
@@ -88,6 +146,7 @@ export declare const GOALS_METHODS: {
88
146
  default_max_turns: z.ZodOptional<z.ZodNumber>;
89
147
  args: z.ZodString;
90
148
  stream_running: z.ZodOptional<z.ZodBoolean>;
149
+ workspace: z.ZodOptional<z.ZodString>;
91
150
  }, z.core.$strip>;
92
151
  readonly result: z.ZodObject<{
93
152
  ok: z.ZodBoolean;
@@ -153,6 +212,7 @@ export declare const GOALS_METHODS: {
153
212
  default_max_turns: z.ZodOptional<z.ZodNumber>;
154
213
  last_response: z.ZodString;
155
214
  user_initiated: z.ZodOptional<z.ZodBoolean>;
215
+ workspace: z.ZodOptional<z.ZodString>;
156
216
  }, z.core.$strip>;
157
217
  readonly result: z.ZodObject<{
158
218
  status: z.ZodNullable<z.ZodString>;
@@ -176,24 +236,67 @@ export declare const CommandSchema: z.ZodObject<{
176
236
  cli_only: z.ZodBoolean;
177
237
  gateway_only: z.ZodBoolean;
178
238
  exec: z.ZodBoolean;
239
+ prompt: z.ZodNullable<z.ZodEnum<{
240
+ expand: "expand";
241
+ unsupported: "unsupported";
242
+ }>>;
179
243
  }, z.core.$strip>;
180
244
  /**
181
245
  * A model-provider plugin installed and enabled in the profile (TAL-288); bundled providers are built-ins. `setup` is the Agent's
182
246
  * own verdict without spawning the plugin's CLI: `not_loaded` means the installed plugin could not be loaded (import failure, or its
183
247
  * provider id or directory name is taken by another profile's plugin in this process-wide registry).
184
248
  */
249
+ /**
250
+ * TAL-806: one field of a plugin manifest's `config_schema` (Agent `plugin_settings_fields`) with its current value from
251
+ * `plugins.entries.<key>.settings`, else `default`. A `secret` field carries its `.env` name and `has_value`, never a value.
252
+ */
253
+ export declare const PluginSettingFieldSchema: z.ZodObject<{
254
+ key: z.ZodString;
255
+ type: z.ZodEnum<{
256
+ string: "string";
257
+ number: "number";
258
+ boolean: "boolean";
259
+ enum: "enum";
260
+ json: "json";
261
+ secret: "secret";
262
+ }>;
263
+ label: z.ZodString;
264
+ description: z.ZodString;
265
+ required: z.ZodBoolean;
266
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
267
+ default: z.ZodOptional<z.ZodUnknown>;
268
+ value: z.ZodOptional<z.ZodUnknown>;
269
+ env: z.ZodOptional<z.ZodString>;
270
+ has_value: z.ZodOptional<z.ZodBoolean>;
271
+ }, z.core.$strip>;
272
+ export type PluginSettingField = z.infer<typeof PluginSettingFieldSchema>;
185
273
  export declare const PluginProviderSchema: z.ZodObject<{
186
274
  name: z.ZodString;
187
275
  display_name: z.ZodString;
188
276
  auth_type: z.ZodString;
189
277
  setup: z.ZodEnum<{
278
+ unavailable: "unavailable";
190
279
  ready: "ready";
191
280
  missing_cli: "missing_cli";
192
281
  needs_setup: "needs_setup";
193
282
  not_loaded: "not_loaded";
194
- unavailable: "unavailable";
195
283
  }>;
196
284
  }, z.core.$strip>;
285
+ /** A skill bundle: `/<name>` loads its `skill_count` skills in one message (TAL-265). */
286
+ export declare const CommandBundleSchema: z.ZodObject<{
287
+ name: z.ZodString;
288
+ description: z.ZodString;
289
+ skill_count: z.ZodNumber;
290
+ source: z.ZodLiteral<"bundle">;
291
+ }, z.core.$strip>;
292
+ /** `message` is the user message that loads the bundle's skills; members not installed or disabled are in `missing_skills` or left out. */
293
+ export declare const CommandBundleInvocationSchema: z.ZodObject<{
294
+ name: z.ZodString;
295
+ source: z.ZodLiteral<"bundle">;
296
+ message: z.ZodString;
297
+ loaded_skills: z.ZodArray<z.ZodString>;
298
+ missing_skills: z.ZodArray<z.ZodString>;
299
+ }, z.core.$strip>;
197
300
  export declare const COMMANDS_METHODS: {
198
301
  readonly 'commands.registry': {
199
302
  readonly params: z.ZodObject<{
@@ -210,13 +313,20 @@ export declare const COMMANDS_METHODS: {
210
313
  cli_only: z.ZodBoolean;
211
314
  gateway_only: z.ZodBoolean;
212
315
  exec: z.ZodBoolean;
316
+ prompt: z.ZodNullable<z.ZodEnum<{
317
+ expand: "expand";
318
+ unsupported: "unsupported";
319
+ }>>;
213
320
  }, z.core.$strip>>;
214
321
  }, z.core.$strip>;
215
322
  };
323
+ /** With `session_id`, a plugin command runs under that chat's session binding and `workspace` (TAL-904). */
216
324
  readonly 'commands.exec': {
217
325
  readonly params: z.ZodObject<{
218
326
  profile_home: z.ZodString;
219
327
  command: z.ZodString;
328
+ session_id: z.ZodOptional<z.ZodString>;
329
+ workspace: z.ZodOptional<z.ZodString>;
220
330
  }, z.core.$strip>;
221
331
  readonly result: z.ZodObject<{
222
332
  output: z.ZodString;
@@ -226,6 +336,49 @@ export declare const COMMANDS_METHODS: {
226
336
  }>;
227
337
  }, z.core.$strip>;
228
338
  };
339
+ /**
340
+ * `/<prompt built-in> [args]` as the turn text (`message`) the Agent's builder writes for the session's profile, workspace and toolsets.
341
+ * `name` is the built-in's canonical name, null when the command is not one; `message` is null when this Agent has no builder for it.
342
+ * A failing builder errors `prompt_expand_failed`.
343
+ */
344
+ readonly 'commands.expand_prompt': {
345
+ readonly params: z.ZodObject<{
346
+ profile_home: z.ZodString;
347
+ command: z.ZodString;
348
+ workspace: z.ZodString;
349
+ enabled_toolsets: z.ZodNullable<z.ZodArray<z.ZodString>>;
350
+ }, z.core.$strip>;
351
+ readonly result: z.ZodObject<{
352
+ name: z.ZodNullable<z.ZodString>;
353
+ message: z.ZodNullable<z.ZodString>;
354
+ }, z.core.$strip>;
355
+ };
356
+ readonly 'commands.bundles': {
357
+ readonly params: z.ZodObject<{
358
+ profile_home: z.ZodString;
359
+ }, z.core.$strip>;
360
+ readonly result: z.ZodObject<{
361
+ bundles: z.ZodArray<z.ZodObject<{
362
+ name: z.ZodString;
363
+ description: z.ZodString;
364
+ skill_count: z.ZodNumber;
365
+ source: z.ZodLiteral<"bundle">;
366
+ }, z.core.$strip>>;
367
+ }, z.core.$strip>;
368
+ };
369
+ readonly 'commands.bundle_resolve': {
370
+ readonly params: z.ZodObject<{
371
+ profile_home: z.ZodString;
372
+ command: z.ZodString;
373
+ }, z.core.$strip>;
374
+ readonly result: z.ZodObject<{
375
+ name: z.ZodString;
376
+ source: z.ZodLiteral<"bundle">;
377
+ message: z.ZodString;
378
+ loaded_skills: z.ZodArray<z.ZodString>;
379
+ missing_skills: z.ZodArray<z.ZodString>;
380
+ }, z.core.$strip>;
381
+ };
229
382
  readonly 'commands.moa_preset': {
230
383
  readonly params: z.ZodObject<{
231
384
  profile_home: z.ZodString;
@@ -245,11 +398,11 @@ export declare const COMMANDS_METHODS: {
245
398
  display_name: z.ZodString;
246
399
  auth_type: z.ZodString;
247
400
  setup: z.ZodEnum<{
401
+ unavailable: "unavailable";
248
402
  ready: "ready";
249
403
  missing_cli: "missing_cli";
250
404
  needs_setup: "needs_setup";
251
405
  not_loaded: "not_loaded";
252
- unavailable: "unavailable";
253
406
  }>;
254
407
  }, z.core.$strip>>;
255
408
  }, z.core.$strip>;
@@ -274,8 +427,93 @@ export declare const COMMANDS_METHODS: {
274
427
  supported_hooks: z.ZodArray<z.ZodString>;
275
428
  }, z.core.$strip>;
276
429
  };
430
+ /** TAL-820: each profile's `plugins.isolation` and installed third-party plugin count, read without loading a plugin. */
431
+ readonly 'plugins.isolation': {
432
+ readonly params: z.ZodObject<{
433
+ base_home: z.ZodString;
434
+ }, z.core.$strip>;
435
+ readonly result: z.ZodObject<{
436
+ profiles: z.ZodArray<z.ZodObject<{
437
+ name: z.ZodString;
438
+ isolation: z.ZodEnum<{
439
+ in_process: "in_process";
440
+ host: "host";
441
+ }>;
442
+ third_party_plugins: z.ZodNumber;
443
+ }, z.core.$strip>>;
444
+ }, z.core.$strip>;
445
+ };
446
+ /** TAL-806: plugins whose manifest declares settings; `supported` is false on an Agent without `hermes_cli.plugins_settings`. */
447
+ readonly 'plugins.settings': {
448
+ readonly params: z.ZodObject<{
449
+ profile_home: z.ZodString;
450
+ }, z.core.$strip>;
451
+ readonly result: z.ZodObject<{
452
+ supported: z.ZodBoolean;
453
+ plugins: z.ZodArray<z.ZodObject<{
454
+ key: z.ZodString;
455
+ fields: z.ZodArray<z.ZodObject<{
456
+ key: z.ZodString;
457
+ type: z.ZodEnum<{
458
+ string: "string";
459
+ number: "number";
460
+ boolean: "boolean";
461
+ enum: "enum";
462
+ json: "json";
463
+ secret: "secret";
464
+ }>;
465
+ label: z.ZodString;
466
+ description: z.ZodString;
467
+ required: z.ZodBoolean;
468
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
469
+ default: z.ZodOptional<z.ZodUnknown>;
470
+ value: z.ZodOptional<z.ZodUnknown>;
471
+ env: z.ZodOptional<z.ZodString>;
472
+ has_value: z.ZodOptional<z.ZodBoolean>;
473
+ }, z.core.$strip>>;
474
+ }, z.core.$strip>>;
475
+ }, z.core.$strip>;
476
+ };
477
+ /**
478
+ * TAL-806: write non-secret `values` through the Agent's locked plugin-state writer and return the refreshed fields.
479
+ * An undeclared key, a secret or a type mismatch is invalid params; a managed install or key errors `plugin_settings_managed`.
480
+ * `secret_envs` (secret key → `.env` name the caller wrote) is checked against the current manifest before anything is
481
+ * written; a key that is no longer a secret stored under that name errors `plugin_settings_changed`.
482
+ */
483
+ readonly 'plugins.settings_save': {
484
+ readonly params: z.ZodObject<{
485
+ profile_home: z.ZodString;
486
+ key: z.ZodString;
487
+ values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
488
+ secret_envs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
489
+ }, z.core.$strip>;
490
+ readonly result: z.ZodObject<{
491
+ key: z.ZodString;
492
+ written: z.ZodArray<z.ZodString>;
493
+ fields: z.ZodArray<z.ZodObject<{
494
+ key: z.ZodString;
495
+ type: z.ZodEnum<{
496
+ string: "string";
497
+ number: "number";
498
+ boolean: "boolean";
499
+ enum: "enum";
500
+ json: "json";
501
+ secret: "secret";
502
+ }>;
503
+ label: z.ZodString;
504
+ description: z.ZodString;
505
+ required: z.ZodBoolean;
506
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
507
+ default: z.ZodOptional<z.ZodUnknown>;
508
+ value: z.ZodOptional<z.ZodUnknown>;
509
+ env: z.ZodOptional<z.ZodString>;
510
+ has_value: z.ZodOptional<z.ZodBoolean>;
511
+ }, z.core.$strip>>;
512
+ }, z.core.$strip>;
513
+ };
277
514
  };
278
- /** `claim_live`: a running task's worker still holds its claim. `has_completion_evidence`: the task stores a result, which the Agent requires to complete it (TAL-557). */
515
+ /** `claim_live`: a running task's worker still holds its claim. `has_completion_evidence`: the task stores a result, which the Agent requires to complete it (TAL-557).
516
+ * `agent_move_targets`: the Agent workflow's manual moves from the task's status, `null` before Agent 0.21.6 (TAL-796). */
279
517
  export declare const KanbanTaskSchema: z.ZodObject<{
280
518
  id: z.ZodString;
281
519
  title: z.ZodString;
@@ -283,7 +521,23 @@ export declare const KanbanTaskSchema: z.ZodObject<{
283
521
  priority: z.ZodNumber;
284
522
  claim_live: z.ZodBoolean;
285
523
  has_completion_evidence: z.ZodBoolean;
524
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
286
525
  }, z.core.$catchall<z.ZodUnknown>>;
526
+ /** Task detail's links (TAL-809): `link_tasks` names each linked task that still exists; `current_run_started_at` is the active run's start, `null` without one (`started_at` is the first-ever start). */
527
+ export declare const KanbanTaskLinksShape: {
528
+ links: z.ZodObject<{
529
+ parents: z.ZodArray<z.ZodString>;
530
+ children: z.ZodArray<z.ZodString>;
531
+ }, z.core.$strip>;
532
+ link_tasks: z.ZodArray<z.ZodObject<{
533
+ id: z.ZodString;
534
+ title: z.ZodString;
535
+ status: z.ZodString;
536
+ }, z.core.$strip>>;
537
+ };
538
+ export declare const KanbanRunStartShape: {
539
+ current_run_started_at: z.ZodNullable<z.ZodNumber>;
540
+ };
287
541
  export declare const KanbanBoardSchema: z.ZodUnion<readonly [z.ZodObject<{
288
542
  changed: z.ZodLiteral<false>;
289
543
  latest_event_id: z.ZodNumber;
@@ -292,6 +546,7 @@ export declare const KanbanBoardSchema: z.ZodUnion<readonly [z.ZodObject<{
292
546
  changed: z.ZodLiteral<true>;
293
547
  columns: z.ZodArray<z.ZodObject<{
294
548
  name: z.ZodString;
549
+ label: z.ZodString;
295
550
  tasks: z.ZodArray<z.ZodObject<{
296
551
  id: z.ZodString;
297
552
  title: z.ZodString;
@@ -299,6 +554,7 @@ export declare const KanbanBoardSchema: z.ZodUnion<readonly [z.ZodObject<{
299
554
  priority: z.ZodNumber;
300
555
  claim_live: z.ZodBoolean;
301
556
  has_completion_evidence: z.ZodBoolean;
557
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
302
558
  }, z.core.$catchall<z.ZodUnknown>>>;
303
559
  }, z.core.$strip>>;
304
560
  tenants: z.ZodArray<z.ZodString>;
@@ -351,6 +607,7 @@ export declare const KANBAN_METHODS: {
351
607
  changed: z.ZodLiteral<true>;
352
608
  columns: z.ZodArray<z.ZodObject<{
353
609
  name: z.ZodString;
610
+ label: z.ZodString;
354
611
  tasks: z.ZodArray<z.ZodObject<{
355
612
  id: z.ZodString;
356
613
  title: z.ZodString;
@@ -358,6 +615,7 @@ export declare const KANBAN_METHODS: {
358
615
  priority: z.ZodNumber;
359
616
  claim_live: z.ZodBoolean;
360
617
  has_completion_evidence: z.ZodBoolean;
618
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
361
619
  }, z.core.$catchall<z.ZodUnknown>>>;
362
620
  }, z.core.$strip>>;
363
621
  tenants: z.ZodArray<z.ZodString>;
@@ -450,6 +708,17 @@ export declare const KANBAN_METHODS: {
450
708
  task_id: z.ZodString;
451
709
  }, z.core.$strip>;
452
710
  readonly result: z.ZodObject<{
711
+ runs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
712
+ read_only: z.ZodBoolean;
713
+ links: z.ZodObject<{
714
+ parents: z.ZodArray<z.ZodString>;
715
+ children: z.ZodArray<z.ZodString>;
716
+ }, z.core.$strip>;
717
+ link_tasks: z.ZodArray<z.ZodObject<{
718
+ id: z.ZodString;
719
+ title: z.ZodString;
720
+ status: z.ZodString;
721
+ }, z.core.$strip>>;
453
722
  task: z.ZodObject<{
454
723
  id: z.ZodString;
455
724
  title: z.ZodString;
@@ -457,15 +726,11 @@ export declare const KANBAN_METHODS: {
457
726
  priority: z.ZodNumber;
458
727
  claim_live: z.ZodBoolean;
459
728
  has_completion_evidence: z.ZodBoolean;
729
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
730
+ current_run_started_at: z.ZodNullable<z.ZodNumber>;
460
731
  }, z.core.$catchall<z.ZodUnknown>>;
461
732
  comments: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
462
733
  events: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
463
- links: z.ZodObject<{
464
- parents: z.ZodArray<z.ZodString>;
465
- children: z.ZodArray<z.ZodString>;
466
- }, z.core.$strip>;
467
- runs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
468
- read_only: z.ZodBoolean;
469
734
  }, z.core.$strip>;
470
735
  };
471
736
  readonly 'kanban.create_task': {
@@ -482,6 +747,7 @@ export declare const KANBAN_METHODS: {
482
747
  priority: z.ZodNumber;
483
748
  claim_live: z.ZodBoolean;
484
749
  has_completion_evidence: z.ZodBoolean;
750
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
485
751
  }, z.core.$catchall<z.ZodUnknown>>;
486
752
  read_only: z.ZodBoolean;
487
753
  }, z.core.$strip>;
@@ -501,6 +767,7 @@ export declare const KANBAN_METHODS: {
501
767
  priority: z.ZodNumber;
502
768
  claim_live: z.ZodBoolean;
503
769
  has_completion_evidence: z.ZodBoolean;
770
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
504
771
  }, z.core.$catchall<z.ZodUnknown>>;
505
772
  read_only: z.ZodBoolean;
506
773
  }, z.core.$strip>;
@@ -525,6 +792,7 @@ export declare const KANBAN_METHODS: {
525
792
  priority: z.ZodNumber;
526
793
  claim_live: z.ZodBoolean;
527
794
  has_completion_evidence: z.ZodBoolean;
795
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
528
796
  }, z.core.$catchall<z.ZodUnknown>>;
529
797
  read_only: z.ZodBoolean;
530
798
  }, z.core.$strip>;
@@ -621,12 +889,15 @@ export declare const KANBAN_METHODS: {
621
889
  read_only: z.ZodBoolean;
622
890
  }, z.core.$strip>;
623
891
  };
892
+ /** `column_order`: the Agent workflow's column keys in board order (TAL-796). */
624
893
  readonly 'kanban.stats': {
625
894
  readonly params: z.ZodObject<{
626
895
  profile_home: z.ZodString;
627
896
  board: z.ZodOptional<z.ZodNullable<z.ZodString>>;
628
897
  }, z.core.$strip>;
629
- readonly result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
898
+ readonly result: z.ZodObject<{
899
+ column_order: z.ZodArray<z.ZodString>;
900
+ }, z.core.$catchall<z.ZodUnknown>>;
630
901
  };
631
902
  readonly 'kanban.assignees': {
632
903
  readonly params: z.ZodObject<{
@@ -682,6 +953,12 @@ export declare const KANBAN_METHODS: {
682
953
  readonly result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
683
954
  };
684
955
  };
956
+ /** Busy Agent work, or retained canonical history that this Agent cannot safely retire. */
957
+ export declare const SessionDeleteRefusedSchema: z.ZodEnum<{
958
+ active_turn: "active_turn";
959
+ runtime_history_unsupported: "runtime_history_unsupported";
960
+ }>;
961
+ export type SessionDeleteRefused = z.infer<typeof SessionDeleteRefusedSchema>;
685
962
  export declare const STATE_DB_METHODS: {
686
963
  readonly 'state_db.sync_start': {
687
964
  readonly params: z.ZodObject<{
@@ -711,26 +988,73 @@ export declare const STATE_DB_METHODS: {
711
988
  ok: z.ZodBoolean;
712
989
  }, z.core.$strip>;
713
990
  };
991
+ /** TAL-574: `manual` writes a user-requested title (rename or regenerate) with `user` provenance; otherwise it is an `llm` auto title. */
714
992
  readonly 'state_db.sync_title': {
715
993
  readonly params: z.ZodObject<{
716
994
  profile_home: z.ZodString;
717
995
  session_id: z.ZodString;
718
996
  title: z.ZodString;
997
+ manual: z.ZodOptional<z.ZodBoolean>;
719
998
  }, z.core.$strip>;
720
999
  readonly result: z.ZodObject<{
721
1000
  ok: z.ZodBoolean;
722
1001
  }, z.core.$strip>;
723
1002
  };
1003
+ /**
1004
+ * TAL-792: `include_compression_lineage` also removes the session's compression continuations, resolved and removed in the
1005
+ * same transaction (tip first). `refused` when another Agent process holds a live turn lease or compression lock on any
1006
+ * row the delete would remove, or the Agent lacks retirement APIs for retained canonical history; nothing is removed. `deleted_ids` is the transaction's committed target set,
1007
+ * including continuations/delegates; it remains present when only post-commit artifact cleanup failed.
1008
+ */
724
1009
  readonly 'state_db.delete_cli_session': {
725
1010
  readonly params: z.ZodObject<{
726
1011
  profile_home: z.ZodString;
727
1012
  session_id: z.ZodString;
1013
+ include_compression_lineage: z.ZodOptional<z.ZodBoolean>;
1014
+ }, z.core.$strip>;
1015
+ readonly result: z.ZodObject<{
1016
+ ok: z.ZodBoolean;
1017
+ refused: z.ZodOptional<z.ZodEnum<{
1018
+ active_turn: "active_turn";
1019
+ runtime_history_unsupported: "runtime_history_unsupported";
1020
+ }>>;
1021
+ deleted_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1022
+ }, z.core.$strip>;
1023
+ };
1024
+ /** TAL-258: append one row through the Agent's `SessionDB.append_message` (bumps `message_count`); `ok` is false without a state.db. */
1025
+ readonly 'state_db.append_message': {
1026
+ readonly params: z.ZodObject<{
1027
+ profile_home: z.ZodString;
1028
+ session_id: z.ZodString;
1029
+ role: z.ZodString;
1030
+ content: z.ZodString;
1031
+ tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1032
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
728
1033
  }, z.core.$strip>;
729
1034
  readonly result: z.ZodObject<{
730
1035
  ok: z.ZodBoolean;
731
1036
  }, z.core.$strip>;
732
1037
  };
733
1038
  };
1039
+ /** TAL-213: the profile's canonical Bot Chat (its session titled exactly "Bot Chat") and that chat's live compression tip. */
1040
+ export declare const CanonicalBotChatSchema: z.ZodObject<{
1041
+ session_id: z.ZodString;
1042
+ tip_session_id: z.ZodString;
1043
+ }, z.core.$strip>;
1044
+ /**
1045
+ * TAL-805: a profile's gateway under the host multiplexer. `own` runs its own gateway process, `served` is served by the
1046
+ * live host gateway, `parked` was stopped through the host (`hermes -p X gateway stop`) and nothing runs, `standalone` opted out of the host
1047
+ * and is not running, `stopped` is none of these. Only `own` and `served` are running; Agents without the multiplexer
1048
+ * helpers report `own` or `stopped`.
1049
+ */
1050
+ export declare const GatewayModeSchema: z.ZodEnum<{
1051
+ stopped: "stopped";
1052
+ parked: "parked";
1053
+ own: "own";
1054
+ served: "served";
1055
+ standalone: "standalone";
1056
+ }>;
1057
+ export type GatewayMode = z.infer<typeof GatewayModeSchema>;
734
1058
  export declare const ProfileRowSchema: z.ZodObject<{
735
1059
  name: z.ZodString;
736
1060
  path: z.ZodString;
@@ -743,6 +1067,20 @@ export declare const ProfileRowSchema: z.ZodObject<{
743
1067
  skill_count: z.ZodNumber;
744
1068
  enabled_skills: z.ZodNumber;
745
1069
  total_skills: z.ZodNumber;
1070
+ gateway_mode: z.ZodDefault<z.ZodEnum<{
1071
+ stopped: "stopped";
1072
+ parked: "parked";
1073
+ own: "own";
1074
+ served: "served";
1075
+ standalone: "standalone";
1076
+ }>>;
1077
+ display_name: z.ZodDefault<z.ZodString>;
1078
+ description: z.ZodDefault<z.ZodString>;
1079
+ has_avatar: z.ZodDefault<z.ZodBoolean>;
1080
+ canonical_session: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1081
+ session_id: z.ZodString;
1082
+ tip_session_id: z.ZodString;
1083
+ }, z.core.$strip>>>;
746
1084
  }, z.core.$strip>;
747
1085
  export declare const PROFILES_METHODS: {
748
1086
  readonly 'profiles.list': {
@@ -762,6 +1100,20 @@ export declare const PROFILES_METHODS: {
762
1100
  skill_count: z.ZodNumber;
763
1101
  enabled_skills: z.ZodNumber;
764
1102
  total_skills: z.ZodNumber;
1103
+ gateway_mode: z.ZodDefault<z.ZodEnum<{
1104
+ stopped: "stopped";
1105
+ parked: "parked";
1106
+ own: "own";
1107
+ served: "served";
1108
+ standalone: "standalone";
1109
+ }>>;
1110
+ display_name: z.ZodDefault<z.ZodString>;
1111
+ description: z.ZodDefault<z.ZodString>;
1112
+ has_avatar: z.ZodDefault<z.ZodBoolean>;
1113
+ canonical_session: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1114
+ session_id: z.ZodString;
1115
+ tip_session_id: z.ZodString;
1116
+ }, z.core.$strip>>>;
765
1117
  }, z.core.$strip>>;
766
1118
  }, z.core.$strip>;
767
1119
  };
@@ -785,6 +1137,20 @@ export declare const PROFILES_METHODS: {
785
1137
  skill_count: z.ZodNumber;
786
1138
  enabled_skills: z.ZodNumber;
787
1139
  total_skills: z.ZodNumber;
1140
+ gateway_mode: z.ZodDefault<z.ZodEnum<{
1141
+ stopped: "stopped";
1142
+ parked: "parked";
1143
+ own: "own";
1144
+ served: "served";
1145
+ standalone: "standalone";
1146
+ }>>;
1147
+ display_name: z.ZodDefault<z.ZodString>;
1148
+ description: z.ZodDefault<z.ZodString>;
1149
+ has_avatar: z.ZodDefault<z.ZodBoolean>;
1150
+ canonical_session: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1151
+ session_id: z.ZodString;
1152
+ tip_session_id: z.ZodString;
1153
+ }, z.core.$strip>>>;
788
1154
  }, z.core.$strip>;
789
1155
  }, z.core.$strip>;
790
1156
  };
@@ -816,7 +1182,25 @@ export declare const PROFILES_METHODS: {
816
1182
  }, z.core.$strip>;
817
1183
  };
818
1184
  };
1185
+ export declare const SkillCatalogIdentitySchema: z.ZodObject<{
1186
+ load_name: z.ZodOptional<z.ZodString>;
1187
+ declared_name: z.ZodOptional<z.ZodString>;
1188
+ status: z.ZodOptional<z.ZodEnum<{
1189
+ unique: "unique";
1190
+ ambiguous: "ambiguous";
1191
+ shadowed: "shadowed";
1192
+ }>>;
1193
+ tier: z.ZodOptional<z.ZodNumber>;
1194
+ }, z.core.$strip>;
819
1195
  export declare const SkillRowSchema: z.ZodObject<{
1196
+ load_name: z.ZodOptional<z.ZodString>;
1197
+ declared_name: z.ZodOptional<z.ZodString>;
1198
+ status: z.ZodOptional<z.ZodEnum<{
1199
+ unique: "unique";
1200
+ ambiguous: "ambiguous";
1201
+ shadowed: "shadowed";
1202
+ }>>;
1203
+ tier: z.ZodOptional<z.ZodNumber>;
820
1204
  name: z.ZodString;
821
1205
  description: z.ZodString;
822
1206
  category: z.ZodNullable<z.ZodString>;
@@ -832,6 +1216,7 @@ export declare const SkillViewSchema: z.ZodUnion<readonly [z.ZodObject<{
832
1216
  path: z.ZodString;
833
1217
  skill_dir: z.ZodNullable<z.ZodString>;
834
1218
  linked_files: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1219
+ editable: z.ZodOptional<z.ZodBoolean>;
835
1220
  }, z.core.$strip>, z.ZodObject<{
836
1221
  success: z.ZodLiteral<false>;
837
1222
  error: z.ZodString;
@@ -849,6 +1234,14 @@ export declare const SKILLS_METHODS: {
849
1234
  readonly result: z.ZodObject<{
850
1235
  success: z.ZodOptional<z.ZodBoolean>;
851
1236
  skills: z.ZodArray<z.ZodObject<{
1237
+ load_name: z.ZodOptional<z.ZodString>;
1238
+ declared_name: z.ZodOptional<z.ZodString>;
1239
+ status: z.ZodOptional<z.ZodEnum<{
1240
+ unique: "unique";
1241
+ ambiguous: "ambiguous";
1242
+ shadowed: "shadowed";
1243
+ }>>;
1244
+ tier: z.ZodOptional<z.ZodNumber>;
852
1245
  name: z.ZodString;
853
1246
  description: z.ZodString;
854
1247
  category: z.ZodNullable<z.ZodString>;
@@ -874,6 +1267,7 @@ export declare const SKILLS_METHODS: {
874
1267
  path: z.ZodString;
875
1268
  skill_dir: z.ZodNullable<z.ZodString>;
876
1269
  linked_files: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1270
+ editable: z.ZodOptional<z.ZodBoolean>;
877
1271
  }, z.core.$strip>, z.ZodObject<{
878
1272
  success: z.ZodLiteral<false>;
879
1273
  error: z.ZodString;
@@ -892,6 +1286,9 @@ export declare const SKILLS_METHODS: {
892
1286
  found: z.ZodBoolean;
893
1287
  skill_dir: z.ZodNullable<z.ZodString>;
894
1288
  skill_md: z.ZodNullable<z.ZodString>;
1289
+ load_name: z.ZodOptional<z.ZodString>;
1290
+ declared_name: z.ZodOptional<z.ZodString>;
1291
+ sibling_load_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
895
1292
  }, z.core.$strip>;
896
1293
  };
897
1294
  };
@@ -927,114 +1324,618 @@ export declare const MCP_METHODS: {
927
1324
  }, z.core.$strip>;
928
1325
  };
929
1326
  };
930
- export declare const STT_METHODS: {
931
- readonly 'stt.capability': {
1327
+ /** One portal policy layer's rules (the Agent's `PolicyBody`): `allow` names the apps that stay on, `deny` the ones off; `tools` turns single tools off. */
1328
+ export declare const ConnectorPolicyBodySchema: z.ZodObject<{
1329
+ mode: z.ZodEnum<{
1330
+ deny: "deny";
1331
+ unrestricted: "unrestricted";
1332
+ "deny-all": "deny-all";
1333
+ allow: "allow";
1334
+ }>;
1335
+ connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1336
+ disabled_connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1337
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1338
+ disable: z.ZodArray<z.ZodString>;
1339
+ }, z.core.$strip>>>;
1340
+ tags: z.ZodOptional<z.ZodObject<{
1341
+ enable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1342
+ disable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1343
+ }, z.core.$strip>>;
1344
+ }, z.core.$strip>;
1345
+ /** A connection operation's target (`tools/connectors/operation.py`): a hosted app account, or an MCP server the card approves. */
1346
+ export declare const ConnectorOperationTargetSchema: z.ZodObject<{
1347
+ name: z.ZodString;
1348
+ kind: z.ZodString;
1349
+ state: z.ZodEnum<{
1350
+ pending: "pending";
1351
+ skipped: "skipped";
1352
+ initiated: "initiated";
1353
+ connected: "connected";
1354
+ failed: "failed";
1355
+ expired: "expired";
1356
+ not_connected: "not_connected";
1357
+ }>;
1358
+ detail: z.ZodString;
1359
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1360
+ required_env: z.ZodArray<z.ZodObject<{
1361
+ name: z.ZodString;
1362
+ prompt: z.ZodString;
1363
+ required: z.ZodBoolean;
1364
+ secret: z.ZodBoolean;
1365
+ }, z.core.$strip>>;
1366
+ }, z.core.$strip>;
1367
+ /** `owner`: `account` for the Connectors page's connect, `session` for a chat card, which `tool_call_id` opened. */
1368
+ export declare const ConnectorOperationSnapshotSchema: z.ZodObject<{
1369
+ op_id: z.ZodString;
1370
+ settled: z.ZodBoolean;
1371
+ owner: z.ZodEnum<{
1372
+ session: "session";
1373
+ account: "account";
1374
+ }>;
1375
+ tool_call_id: z.ZodNullable<z.ZodString>;
1376
+ targets: z.ZodArray<z.ZodObject<{
1377
+ name: z.ZodString;
1378
+ kind: z.ZodString;
1379
+ state: z.ZodEnum<{
1380
+ pending: "pending";
1381
+ skipped: "skipped";
1382
+ initiated: "initiated";
1383
+ connected: "connected";
1384
+ failed: "failed";
1385
+ expired: "expired";
1386
+ not_connected: "not_connected";
1387
+ }>;
1388
+ detail: z.ZodString;
1389
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1390
+ required_env: z.ZodArray<z.ZodObject<{
1391
+ name: z.ZodString;
1392
+ prompt: z.ZodString;
1393
+ required: z.ZodBoolean;
1394
+ secret: z.ZodBoolean;
1395
+ }, z.core.$strip>>;
1396
+ }, z.core.$strip>>;
1397
+ }, z.core.$strip>;
1398
+ /**
1399
+ * Failures carry `data.condition`: `connectors_unavailable`, `connectors_sign_in`, `connectors_forbidden`, `connectors_org_required`,
1400
+ * `connector_not_found`, `connection_not_found`, `policy_conflict` (the member rules changed since `expected_revision`), `policy_invalid`,
1401
+ * `operation_not_found`, `operation_settled`, `operation_refused`, `connectors_failed`.
1402
+ */
1403
+ export declare const CONNECTORS_METHODS: {
1404
+ /** The Agent's `connectors_available()`; never creates an identity. */
1405
+ readonly 'connectors.available': {
932
1406
  readonly params: z.ZodObject<{
933
1407
  profile_home: z.ZodString;
934
1408
  }, z.core.$strip>;
935
1409
  readonly result: z.ZodObject<{
936
1410
  available: z.ZodBoolean;
937
- provider: z.ZodString;
938
1411
  }, z.core.$strip>;
939
1412
  };
940
- readonly 'stt.transcribe': {
1413
+ readonly 'connectors.catalog': {
941
1414
  readonly params: z.ZodObject<{
942
1415
  profile_home: z.ZodString;
943
- audio_b64: z.ZodString;
944
- suffix: z.ZodOptional<z.ZodString>;
945
1416
  }, z.core.$strip>;
946
1417
  readonly result: z.ZodObject<{
947
- transcript: z.ZodString;
1418
+ connectors: z.ZodArray<z.ZodObject<{
1419
+ slug: z.ZodString;
1420
+ name: z.ZodString;
1421
+ description: z.ZodString;
1422
+ category: z.ZodString;
1423
+ logo_url: z.ZodNullable<z.ZodString>;
1424
+ }, z.core.$strip>>;
948
1425
  }, z.core.$strip>;
949
1426
  };
950
- };
951
- export declare const CronJobSchema: z.ZodObject<{
952
- id: z.ZodString;
953
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
954
- profile: z.ZodNullable<z.ZodString>;
955
- toast_notifications: z.ZodBoolean;
956
- monitor: z.ZodString;
957
- continuity: z.ZodBoolean;
958
- }, z.core.$catchall<z.ZodUnknown>>;
959
- export declare const CronUsageSchema: z.ZodObject<{
960
- model: z.ZodOptional<z.ZodString>;
961
- provider: z.ZodOptional<z.ZodString>;
962
- estimated_cost_usd: z.ZodOptional<z.ZodNumber>;
963
- duration_seconds: z.ZodOptional<z.ZodNumber>;
964
- input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
965
- output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
966
- total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
967
- }, z.core.$strip>;
968
- export declare const CRON_METHODS: {
969
- readonly 'cron.list': {
1427
+ readonly 'connectors.accounts': {
970
1428
  readonly params: z.ZodObject<{
971
1429
  profile_home: z.ZodString;
972
1430
  }, z.core.$strip>;
973
1431
  readonly result: z.ZodObject<{
974
- jobs: z.ZodArray<z.ZodObject<{
975
- id: z.ZodString;
976
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
- profile: z.ZodNullable<z.ZodString>;
978
- toast_notifications: z.ZodBoolean;
979
- monitor: z.ZodString;
980
- continuity: z.ZodBoolean;
981
- }, z.core.$catchall<z.ZodUnknown>>>;
1432
+ accounts: z.ZodArray<z.ZodObject<{
1433
+ connection_id: z.ZodString;
1434
+ connector: z.ZodString;
1435
+ status: z.ZodString;
1436
+ status_reason: z.ZodNullable<z.ZodString>;
1437
+ label: z.ZodString;
1438
+ alias: z.ZodNullable<z.ZodString>;
1439
+ active: z.ZodBoolean;
1440
+ disabled: z.ZodBoolean;
1441
+ created_at: z.ZodString;
1442
+ }, z.core.$strip>>;
982
1443
  }, z.core.$strip>;
983
1444
  };
984
- readonly 'cron.get': {
1445
+ readonly 'connectors.remove': {
985
1446
  readonly params: z.ZodObject<{
986
1447
  profile_home: z.ZodString;
987
- job_id: z.ZodString;
1448
+ connection_id: z.ZodString;
988
1449
  }, z.core.$strip>;
989
1450
  readonly result: z.ZodObject<{
990
- job: z.ZodNullable<z.ZodObject<{
991
- id: z.ZodString;
992
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
993
- profile: z.ZodNullable<z.ZodString>;
994
- toast_notifications: z.ZodBoolean;
995
- monitor: z.ZodString;
996
- continuity: z.ZodBoolean;
997
- }, z.core.$catchall<z.ZodUnknown>>>;
1451
+ connection_id: z.ZodString;
1452
+ connector: z.ZodString;
1453
+ status: z.ZodLiteral<"removed">;
998
1454
  }, z.core.$strip>;
999
1455
  };
1000
- readonly 'cron.create': {
1456
+ readonly 'connectors.tools': {
1001
1457
  readonly params: z.ZodObject<{
1002
1458
  profile_home: z.ZodString;
1003
- job: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1004
- execution_home: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1459
+ connector: z.ZodString;
1460
+ refresh: z.ZodOptional<z.ZodBoolean>;
1005
1461
  }, z.core.$strip>;
1006
1462
  readonly result: z.ZodObject<{
1007
- job: z.ZodObject<{
1008
- id: z.ZodString;
1009
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
- profile: z.ZodNullable<z.ZodString>;
1011
- toast_notifications: z.ZodBoolean;
1012
- monitor: z.ZodString;
1013
- continuity: z.ZodBoolean;
1014
- }, z.core.$catchall<z.ZodUnknown>>;
1463
+ connector: z.ZodString;
1464
+ tools: z.ZodArray<z.ZodObject<{
1465
+ slug: z.ZodString;
1466
+ name: z.ZodString;
1467
+ description: z.ZodString;
1468
+ facet: z.ZodString;
1469
+ hints: z.ZodArray<z.ZodString>;
1470
+ categories: z.ZodArray<z.ZodString>;
1471
+ deprecated: z.ZodBoolean;
1472
+ }, z.core.$strip>>;
1015
1473
  }, z.core.$strip>;
1016
1474
  };
1017
- readonly 'cron.update': {
1475
+ readonly 'connectors.policy.get': {
1018
1476
  readonly params: z.ZodObject<{
1019
1477
  profile_home: z.ZodString;
1020
- job_id: z.ZodString;
1021
- updates: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1022
1478
  }, z.core.$strip>;
1023
1479
  readonly result: z.ZodObject<{
1024
- job: z.ZodObject<{
1025
- id: z.ZodString;
1026
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1027
- profile: z.ZodNullable<z.ZodString>;
1028
- toast_notifications: z.ZodBoolean;
1029
- monitor: z.ZodString;
1030
- continuity: z.ZodBoolean;
1031
- }, z.core.$catchall<z.ZodUnknown>>;
1480
+ layers: z.ZodArray<z.ZodObject<{
1481
+ kind: z.ZodEnum<{
1482
+ role: "role";
1483
+ org: "org";
1484
+ member: "member";
1485
+ }>;
1486
+ revision: z.ZodString;
1487
+ body: z.ZodObject<{
1488
+ mode: z.ZodEnum<{
1489
+ deny: "deny";
1490
+ unrestricted: "unrestricted";
1491
+ "deny-all": "deny-all";
1492
+ allow: "allow";
1493
+ }>;
1494
+ connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1495
+ disabled_connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1496
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1497
+ disable: z.ZodArray<z.ZodString>;
1498
+ }, z.core.$strip>>>;
1499
+ tags: z.ZodOptional<z.ZodObject<{
1500
+ enable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1501
+ disable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1502
+ }, z.core.$strip>>;
1503
+ }, z.core.$strip>;
1504
+ }, z.core.$strip>>;
1505
+ effective: z.ZodObject<{
1506
+ mode: z.ZodEnum<{
1507
+ deny: "deny";
1508
+ unrestricted: "unrestricted";
1509
+ "deny-all": "deny-all";
1510
+ allow: "allow";
1511
+ }>;
1512
+ connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1513
+ disabled_connectors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1514
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1515
+ disable: z.ZodArray<z.ZodString>;
1516
+ }, z.core.$strip>>>;
1517
+ tags: z.ZodOptional<z.ZodObject<{
1518
+ enable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1519
+ disable: z.ZodOptional<z.ZodArray<z.ZodString>>;
1520
+ }, z.core.$strip>>;
1521
+ revision: z.ZodString;
1522
+ }, z.core.$strip>;
1032
1523
  }, z.core.$strip>;
1033
1524
  };
1034
- readonly 'cron.delete': {
1525
+ /** One member-rule change: `enabled` turns the app on or off; `tool` with `tool_enabled` turns one of its tools on or off. */
1526
+ readonly 'connectors.policy.set': {
1035
1527
  readonly params: z.ZodObject<{
1036
1528
  profile_home: z.ZodString;
1037
- job_id: z.ZodString;
1529
+ connector: z.ZodString;
1530
+ expected_revision: z.ZodString;
1531
+ enabled: z.ZodOptional<z.ZodBoolean>;
1532
+ tool: z.ZodOptional<z.ZodString>;
1533
+ tool_enabled: z.ZodOptional<z.ZodBoolean>;
1534
+ }, z.core.$strip>;
1535
+ readonly result: z.ZodObject<{
1536
+ revision: z.ZodString;
1537
+ }, z.core.$strip>;
1538
+ };
1539
+ /** Starts (or rejoins) the account-owned connect and waits for its authorization link. */
1540
+ readonly 'connectors.connect': {
1541
+ readonly params: z.ZodObject<{
1542
+ profile_home: z.ZodString;
1543
+ connector: z.ZodString;
1544
+ }, z.core.$strip>;
1545
+ readonly result: z.ZodObject<{
1546
+ op_id: z.ZodString;
1547
+ settled: z.ZodBoolean;
1548
+ owner: z.ZodEnum<{
1549
+ session: "session";
1550
+ account: "account";
1551
+ }>;
1552
+ tool_call_id: z.ZodNullable<z.ZodString>;
1553
+ targets: z.ZodArray<z.ZodObject<{
1554
+ name: z.ZodString;
1555
+ kind: z.ZodString;
1556
+ state: z.ZodEnum<{
1557
+ pending: "pending";
1558
+ skipped: "skipped";
1559
+ initiated: "initiated";
1560
+ connected: "connected";
1561
+ failed: "failed";
1562
+ expired: "expired";
1563
+ not_connected: "not_connected";
1564
+ }>;
1565
+ detail: z.ZodString;
1566
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1567
+ required_env: z.ZodArray<z.ZodObject<{
1568
+ name: z.ZodString;
1569
+ prompt: z.ZodString;
1570
+ required: z.ZodBoolean;
1571
+ secret: z.ZodBoolean;
1572
+ }, z.core.$strip>>;
1573
+ }, z.core.$strip>>;
1574
+ }, z.core.$strip>;
1575
+ };
1576
+ readonly 'connectors.operation': {
1577
+ readonly params: z.ZodObject<{
1578
+ profile_home: z.ZodString;
1579
+ op_id: z.ZodString;
1580
+ }, z.core.$strip>;
1581
+ readonly result: z.ZodObject<{
1582
+ op_id: z.ZodString;
1583
+ settled: z.ZodBoolean;
1584
+ owner: z.ZodEnum<{
1585
+ session: "session";
1586
+ account: "account";
1587
+ }>;
1588
+ tool_call_id: z.ZodNullable<z.ZodString>;
1589
+ targets: z.ZodArray<z.ZodObject<{
1590
+ name: z.ZodString;
1591
+ kind: z.ZodString;
1592
+ state: z.ZodEnum<{
1593
+ pending: "pending";
1594
+ skipped: "skipped";
1595
+ initiated: "initiated";
1596
+ connected: "connected";
1597
+ failed: "failed";
1598
+ expired: "expired";
1599
+ not_connected: "not_connected";
1600
+ }>;
1601
+ detail: z.ZodString;
1602
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1603
+ required_env: z.ZodArray<z.ZodObject<{
1604
+ name: z.ZodString;
1605
+ prompt: z.ZodString;
1606
+ required: z.ZodBoolean;
1607
+ secret: z.ZodBoolean;
1608
+ }, z.core.$strip>>;
1609
+ }, z.core.$strip>>;
1610
+ }, z.core.$strip>;
1611
+ };
1612
+ readonly 'connectors.respond': {
1613
+ readonly params: z.ZodObject<{
1614
+ profile_home: z.ZodString;
1615
+ op_id: z.ZodString;
1616
+ action: z.ZodEnum<{
1617
+ retry: "retry";
1618
+ skip: "skip";
1619
+ approve: "approve";
1620
+ continue: "continue";
1621
+ }>;
1622
+ target: z.ZodOptional<z.ZodString>;
1623
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1624
+ }, z.core.$strip>;
1625
+ readonly result: z.ZodObject<{
1626
+ op_id: z.ZodString;
1627
+ settled: z.ZodBoolean;
1628
+ owner: z.ZodEnum<{
1629
+ session: "session";
1630
+ account: "account";
1631
+ }>;
1632
+ tool_call_id: z.ZodNullable<z.ZodString>;
1633
+ targets: z.ZodArray<z.ZodObject<{
1634
+ name: z.ZodString;
1635
+ kind: z.ZodString;
1636
+ state: z.ZodEnum<{
1637
+ pending: "pending";
1638
+ skipped: "skipped";
1639
+ initiated: "initiated";
1640
+ connected: "connected";
1641
+ failed: "failed";
1642
+ expired: "expired";
1643
+ not_connected: "not_connected";
1644
+ }>;
1645
+ detail: z.ZodString;
1646
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1647
+ required_env: z.ZodArray<z.ZodObject<{
1648
+ name: z.ZodString;
1649
+ prompt: z.ZodString;
1650
+ required: z.ZodBoolean;
1651
+ secret: z.ZodBoolean;
1652
+ }, z.core.$strip>>;
1653
+ }, z.core.$strip>>;
1654
+ }, z.core.$strip>;
1655
+ };
1656
+ };
1657
+ export declare const STT_METHODS: {
1658
+ /**
1659
+ * `streaming` (TAL-802): `stt.streaming` is on and the provider has a live wire with credentials, so `stt.stream` would open.
1660
+ * `warm_supported` (TAL-916): the available provider is the local engine and the Agent can pre-load it (`tools.stt_lease`),
1661
+ * so `stt.warm` does real work.
1662
+ */
1663
+ readonly 'stt.capability': {
1664
+ readonly params: z.ZodObject<{
1665
+ profile_home: z.ZodString;
1666
+ }, z.core.$strip>;
1667
+ readonly result: z.ZodObject<{
1668
+ available: z.ZodBoolean;
1669
+ provider: z.ZodString;
1670
+ streaming: z.ZodBoolean;
1671
+ warm_supported: z.ZodBoolean;
1672
+ }, z.core.$strip>;
1673
+ };
1674
+ /**
1675
+ * TAL-916: pre-load the profile's local engine (first-use download and model load) so the next `stt.transcribe` starts
1676
+ * hot. Blocks until loaded; a no-op (`warmed: false`) for remote providers, and `action: 'unsupported'` on an Agent
1677
+ * without the warmer.
1678
+ */
1679
+ readonly 'stt.warm': {
1680
+ readonly params: z.ZodObject<{
1681
+ profile_home: z.ZodString;
1682
+ }, z.core.$strip>;
1683
+ readonly result: z.ZodObject<{
1684
+ provider: z.ZodString;
1685
+ warmed: z.ZodBoolean;
1686
+ action: z.ZodString;
1687
+ error: z.ZodOptional<z.ZodString>;
1688
+ }, z.core.$strip>;
1689
+ };
1690
+ readonly 'stt.transcribe': {
1691
+ readonly params: z.ZodObject<{
1692
+ profile_home: z.ZodString;
1693
+ audio_b64: z.ZodString;
1694
+ suffix: z.ZodOptional<z.ZodString>;
1695
+ }, z.core.$strip>;
1696
+ readonly result: z.ZodObject<{
1697
+ transcript: z.ZodString;
1698
+ filtered: z.ZodBoolean;
1699
+ }, z.core.$strip>;
1700
+ };
1701
+ /**
1702
+ * TAL-802: one live dictation. Opens the profile's streaming session for s16le mono PCM at `sample_rate` (the sidecar
1703
+ * resamples), emits `ready` with the `stream_id` that `stt.stream_audio` feeds, then `partial` text as the provider
1704
+ * recognizes it, and returns the session's final transcript once audio ends. Cancelling the call cancels the session.
1705
+ */
1706
+ readonly 'stt.stream': {
1707
+ readonly params: z.ZodObject<{
1708
+ profile_home: z.ZodString;
1709
+ sample_rate: z.ZodNumber;
1710
+ }, z.core.$strip>;
1711
+ readonly result: z.ZodObject<{
1712
+ transcript: z.ZodString;
1713
+ filtered: z.ZodBoolean;
1714
+ provider: z.ZodString;
1715
+ }, z.core.$strip>;
1716
+ readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
1717
+ event: z.ZodLiteral<"ready">;
1718
+ data: z.ZodObject<{
1719
+ stream_id: z.ZodString;
1720
+ }, z.core.$strip>;
1721
+ }, z.core.$strip>, z.ZodObject<{
1722
+ event: z.ZodLiteral<"partial">;
1723
+ data: z.ZodObject<{
1724
+ text: z.ZodString;
1725
+ }, z.core.$strip>;
1726
+ }, z.core.$strip>], "event">;
1727
+ };
1728
+ /** TAL-802: feed one PCM chunk to an open `stt.stream`, in order; `end` marks the end of speech. */
1729
+ readonly 'stt.stream_audio': {
1730
+ readonly params: z.ZodObject<{
1731
+ stream_id: z.ZodString;
1732
+ audio_b64: z.ZodOptional<z.ZodString>;
1733
+ end: z.ZodOptional<z.ZodBoolean>;
1734
+ }, z.core.$strip>;
1735
+ readonly result: z.ZodObject<{
1736
+ ok: z.ZodLiteral<true>;
1737
+ }, z.core.$strip>;
1738
+ };
1739
+ };
1740
+ /** `running_elsewhere`: a live execution owner. `recovery_only`: a retained snapshot, not a source for new task context. */
1741
+ export declare const CronJobSchema: z.ZodObject<{
1742
+ id: z.ZodString;
1743
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1744
+ profile: z.ZodNullable<z.ZodString>;
1745
+ toast_notifications: z.ZodBoolean;
1746
+ monitor: z.ZodString;
1747
+ continuity: z.ZodBoolean;
1748
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
1749
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1750
+ }, z.core.$catchall<z.ZodUnknown>>;
1751
+ export declare const CronUsageSchema: z.ZodObject<{
1752
+ model: z.ZodOptional<z.ZodString>;
1753
+ provider: z.ZodOptional<z.ZodString>;
1754
+ estimated_cost_usd: z.ZodOptional<z.ZodNumber>;
1755
+ duration_seconds: z.ZodOptional<z.ZodNumber>;
1756
+ input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1757
+ output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1758
+ total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1759
+ }, z.core.$strip>;
1760
+ export declare const CronBlueprintSlotSchema: z.ZodObject<{
1761
+ name: z.ZodString;
1762
+ type: z.ZodString;
1763
+ label: z.ZodString;
1764
+ default: z.ZodNullable<z.ZodString>;
1765
+ options: z.ZodArray<z.ZodString>;
1766
+ optional: z.ZodBoolean;
1767
+ strict: z.ZodBoolean;
1768
+ help: z.ZodString;
1769
+ }, z.core.$strip>;
1770
+ export declare const CronBlueprintsSchema: z.ZodObject<{
1771
+ blueprints: z.ZodArray<z.ZodObject<{
1772
+ key: z.ZodString;
1773
+ title: z.ZodString;
1774
+ description: z.ZodString;
1775
+ category: z.ZodString;
1776
+ source: z.ZodEnum<{
1777
+ plugin: "plugin";
1778
+ builtin: "builtin";
1779
+ }>;
1780
+ plugin: z.ZodNullable<z.ZodString>;
1781
+ schedule_label: z.ZodString;
1782
+ slots: z.ZodArray<z.ZodObject<{
1783
+ name: z.ZodString;
1784
+ type: z.ZodString;
1785
+ label: z.ZodString;
1786
+ default: z.ZodNullable<z.ZodString>;
1787
+ options: z.ZodArray<z.ZodString>;
1788
+ optional: z.ZodBoolean;
1789
+ strict: z.ZodBoolean;
1790
+ help: z.ZodString;
1791
+ }, z.core.$strip>>;
1792
+ }, z.core.$strip>>;
1793
+ }, z.core.$strip>;
1794
+ export declare const CronBlueprintFillInputSchema: z.ZodObject<{
1795
+ key: z.ZodString;
1796
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
1797
+ }, z.core.$strip>;
1798
+ export declare const CronBlueprintFillSchema: z.ZodObject<{
1799
+ draft: z.ZodObject<{
1800
+ name: z.ZodString;
1801
+ prompt: z.ZodString;
1802
+ schedule: z.ZodString;
1803
+ deliver: z.ZodString;
1804
+ skills: z.ZodArray<z.ZodString>;
1805
+ }, z.core.$strip>;
1806
+ }, z.core.$strip>;
1807
+ export type CronBlueprint = z.infer<typeof CronBlueprintsSchema>['blueprints'][number];
1808
+ export declare const CRON_METHODS: {
1809
+ readonly 'cron.blueprints': {
1810
+ readonly params: z.ZodObject<{
1811
+ profile_home: z.ZodString;
1812
+ }, z.core.$strip>;
1813
+ readonly result: z.ZodObject<{
1814
+ blueprints: z.ZodArray<z.ZodObject<{
1815
+ key: z.ZodString;
1816
+ title: z.ZodString;
1817
+ description: z.ZodString;
1818
+ category: z.ZodString;
1819
+ source: z.ZodEnum<{
1820
+ plugin: "plugin";
1821
+ builtin: "builtin";
1822
+ }>;
1823
+ plugin: z.ZodNullable<z.ZodString>;
1824
+ schedule_label: z.ZodString;
1825
+ slots: z.ZodArray<z.ZodObject<{
1826
+ name: z.ZodString;
1827
+ type: z.ZodString;
1828
+ label: z.ZodString;
1829
+ default: z.ZodNullable<z.ZodString>;
1830
+ options: z.ZodArray<z.ZodString>;
1831
+ optional: z.ZodBoolean;
1832
+ strict: z.ZodBoolean;
1833
+ help: z.ZodString;
1834
+ }, z.core.$strip>>;
1835
+ }, z.core.$strip>>;
1836
+ }, z.core.$strip>;
1837
+ };
1838
+ readonly 'cron.blueprint_fill': {
1839
+ readonly params: z.ZodObject<{
1840
+ key: z.ZodString;
1841
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
1842
+ profile_home: z.ZodOptional<z.ZodString>;
1843
+ }, z.core.$strip>;
1844
+ readonly result: z.ZodObject<{
1845
+ draft: z.ZodObject<{
1846
+ name: z.ZodString;
1847
+ prompt: z.ZodString;
1848
+ schedule: z.ZodString;
1849
+ deliver: z.ZodString;
1850
+ skills: z.ZodArray<z.ZodString>;
1851
+ }, z.core.$strip>;
1852
+ }, z.core.$strip>;
1853
+ };
1854
+ /** `probe_store` adds the store's write probe (TAL-810): null when writes land or the Agent predates the probe. */
1855
+ readonly 'cron.list': {
1856
+ readonly params: z.ZodObject<{
1857
+ profile_home: z.ZodString;
1858
+ probe_store: z.ZodOptional<z.ZodBoolean>;
1859
+ }, z.core.$strip>;
1860
+ readonly result: z.ZodObject<{
1861
+ jobs: z.ZodArray<z.ZodObject<{
1862
+ id: z.ZodString;
1863
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1864
+ profile: z.ZodNullable<z.ZodString>;
1865
+ toast_notifications: z.ZodBoolean;
1866
+ monitor: z.ZodString;
1867
+ continuity: z.ZodBoolean;
1868
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
1869
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1870
+ }, z.core.$catchall<z.ZodUnknown>>>;
1871
+ store_health: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1872
+ store: z.ZodString;
1873
+ error: z.ZodString;
1874
+ since: z.ZodString;
1875
+ fix: z.ZodString;
1876
+ }, z.core.$strip>>>;
1877
+ }, z.core.$strip>;
1878
+ };
1879
+ readonly 'cron.get': {
1880
+ readonly params: z.ZodObject<{
1881
+ profile_home: z.ZodString;
1882
+ job_id: z.ZodString;
1883
+ }, z.core.$strip>;
1884
+ readonly result: z.ZodObject<{
1885
+ job: z.ZodNullable<z.ZodObject<{
1886
+ id: z.ZodString;
1887
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1888
+ profile: z.ZodNullable<z.ZodString>;
1889
+ toast_notifications: z.ZodBoolean;
1890
+ monitor: z.ZodString;
1891
+ continuity: z.ZodBoolean;
1892
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
1893
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1894
+ }, z.core.$catchall<z.ZodUnknown>>>;
1895
+ }, z.core.$strip>;
1896
+ };
1897
+ readonly 'cron.create': {
1898
+ readonly params: z.ZodObject<{
1899
+ profile_home: z.ZodString;
1900
+ job: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1901
+ execution_home: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1902
+ }, z.core.$strip>;
1903
+ readonly result: z.ZodObject<{
1904
+ job: z.ZodObject<{
1905
+ id: z.ZodString;
1906
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1907
+ profile: z.ZodNullable<z.ZodString>;
1908
+ toast_notifications: z.ZodBoolean;
1909
+ monitor: z.ZodString;
1910
+ continuity: z.ZodBoolean;
1911
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
1912
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1913
+ }, z.core.$catchall<z.ZodUnknown>>;
1914
+ }, z.core.$strip>;
1915
+ };
1916
+ readonly 'cron.update': {
1917
+ readonly params: z.ZodObject<{
1918
+ profile_home: z.ZodString;
1919
+ job_id: z.ZodString;
1920
+ updates: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1921
+ }, z.core.$strip>;
1922
+ readonly result: z.ZodObject<{
1923
+ job: z.ZodObject<{
1924
+ id: z.ZodString;
1925
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1926
+ profile: z.ZodNullable<z.ZodString>;
1927
+ toast_notifications: z.ZodBoolean;
1928
+ monitor: z.ZodString;
1929
+ continuity: z.ZodBoolean;
1930
+ running_elsewhere: z.ZodOptional<z.ZodBoolean>;
1931
+ recovery_only: z.ZodOptional<z.ZodBoolean>;
1932
+ }, z.core.$catchall<z.ZodUnknown>>;
1933
+ }, z.core.$strip>;
1934
+ };
1935
+ readonly 'cron.delete': {
1936
+ readonly params: z.ZodObject<{
1937
+ profile_home: z.ZodString;
1938
+ job_id: z.ZodString;
1038
1939
  }, z.core.$strip>;
1039
1940
  readonly result: z.ZodObject<{
1040
1941
  ok: z.ZodLiteral<true>;
@@ -1077,8 +1978,8 @@ export declare const CRON_METHODS: {
1077
1978
  }, z.core.$strip>, z.ZodObject<{
1078
1979
  job_id: z.ZodString;
1079
1980
  status: z.ZodEnum<{
1080
- completed: "completed";
1081
1981
  failed: "failed";
1982
+ completed: "completed";
1082
1983
  }>;
1083
1984
  success: z.ZodBoolean;
1084
1985
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1176,6 +2077,11 @@ export declare const CRON_METHODS: {
1176
2077
  }, z.core.$strip>;
1177
2078
  };
1178
2079
  };
2080
+ /**
2081
+ * `providers.model_ids` `fallback` (TAL-799): the Agent served its curated list because the live catalog was unreachable.
2082
+ * `providers.local_models` (TAL-798): the GGUFs staged for the Agent's managed llama.cpp provider `provider_id`, and the
2083
+ * running server's base URL (`current_endpoint`, null while it is off).
2084
+ */
1179
2085
  export declare const PROVIDERS_METHODS: {
1180
2086
  readonly 'providers.registry': {
1181
2087
  readonly params: z.ZodObject<{
@@ -1209,6 +2115,17 @@ export declare const PROVIDERS_METHODS: {
1209
2115
  readonly result: z.ZodObject<{
1210
2116
  provider: z.ZodString;
1211
2117
  model_ids: z.ZodArray<z.ZodString>;
2118
+ fallback: z.ZodDefault<z.ZodBoolean>;
2119
+ }, z.core.$strip>;
2120
+ };
2121
+ readonly 'providers.local_models': {
2122
+ readonly params: z.ZodObject<{
2123
+ profile_home: z.ZodString;
2124
+ }, z.core.$strip>;
2125
+ readonly result: z.ZodObject<{
2126
+ provider_id: z.ZodString;
2127
+ models: z.ZodArray<z.ZodString>;
2128
+ current_endpoint: z.ZodNullable<z.ZodString>;
1212
2129
  }, z.core.$strip>;
1213
2130
  };
1214
2131
  readonly 'providers.resolve_runtime': {
@@ -1234,6 +2151,55 @@ export declare const PROVIDERS_METHODS: {
1234
2151
  entries: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1235
2152
  }, z.core.$strip>;
1236
2153
  };
2154
+ readonly 'models.selection_warnings': {
2155
+ readonly params: z.ZodObject<{
2156
+ profile_home: z.ZodString;
2157
+ session_id: z.ZodString;
2158
+ model: z.ZodString;
2159
+ provider: z.ZodNullable<z.ZodString>;
2160
+ current_model: z.ZodNullable<z.ZodString>;
2161
+ current_provider: z.ZodNullable<z.ZodString>;
2162
+ context_tokens: z.ZodNullable<z.ZodNumber>;
2163
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2164
+ }, z.core.$strip>;
2165
+ readonly result: z.ZodObject<{
2166
+ warnings: z.ZodArray<z.ZodObject<{
2167
+ kind: z.ZodString;
2168
+ title: z.ZodString;
2169
+ model: z.ZodString;
2170
+ provider: z.ZodString;
2171
+ message: z.ZodString;
2172
+ }, z.core.$strip>>;
2173
+ context_tokens: z.ZodNullable<z.ZodNumber>;
2174
+ provider: z.ZodString;
2175
+ base_url: z.ZodString;
2176
+ }, z.core.$strip>;
2177
+ };
2178
+ readonly 'models.speed_tiers': {
2179
+ readonly params: z.ZodObject<{
2180
+ profile_home: z.ZodString;
2181
+ routes: z.ZodArray<z.ZodObject<{
2182
+ model: z.ZodString;
2183
+ provider: z.ZodString;
2184
+ base_url: z.ZodOptional<z.ZodString>;
2185
+ }, z.core.$strip>>;
2186
+ }, z.core.$strip>;
2187
+ readonly result: z.ZodObject<{
2188
+ tiers: z.ZodArray<z.ZodArray<z.ZodObject<{
2189
+ id: z.ZodEnum<{
2190
+ standard: "standard";
2191
+ priority: "priority";
2192
+ ultrafast: "ultrafast";
2193
+ fast: "fast";
2194
+ }>;
2195
+ service_tier: z.ZodEnum<{
2196
+ default: "default";
2197
+ priority: "priority";
2198
+ ultrafast: "ultrafast";
2199
+ }>;
2200
+ }, z.core.$strip>>>;
2201
+ }, z.core.$strip>;
2202
+ };
1237
2203
  readonly 'models.context_length': {
1238
2204
  readonly params: z.ZodObject<{
1239
2205
  profile_home: z.ZodString;
@@ -1275,11 +2241,11 @@ export declare const PROVIDERS_METHODS: {
1275
2241
  */
1276
2242
  export declare const OAuthFlowStatusSchema: z.ZodEnum<{
1277
2243
  error: "error";
1278
- cancelled: "cancelled";
1279
2244
  pending: "pending";
2245
+ cancelled: "cancelled";
2246
+ expired: "expired";
1280
2247
  approved: "approved";
1281
2248
  denied: "denied";
1282
- expired: "expired";
1283
2249
  }>;
1284
2250
  export declare const OAUTH_METHODS: {
1285
2251
  readonly 'oauth.start': {
@@ -1307,11 +2273,11 @@ export declare const OAUTH_METHODS: {
1307
2273
  provider: z.ZodString;
1308
2274
  status: z.ZodEnum<{
1309
2275
  error: "error";
1310
- cancelled: "cancelled";
1311
2276
  pending: "pending";
2277
+ cancelled: "cancelled";
2278
+ expired: "expired";
1312
2279
  approved: "approved";
1313
2280
  denied: "denied";
1314
- expired: "expired";
1315
2281
  }>;
1316
2282
  error: z.ZodNullable<z.ZodString>;
1317
2283
  }, z.core.$strip>;
@@ -1326,11 +2292,11 @@ export declare const OAUTH_METHODS: {
1326
2292
  provider: z.ZodString;
1327
2293
  status: z.ZodEnum<{
1328
2294
  error: "error";
1329
- cancelled: "cancelled";
1330
2295
  pending: "pending";
2296
+ cancelled: "cancelled";
2297
+ expired: "expired";
1331
2298
  approved: "approved";
1332
2299
  denied: "denied";
1333
- expired: "expired";
1334
2300
  }>;
1335
2301
  error: z.ZodNullable<z.ZodString>;
1336
2302
  }, z.core.$strip>;
@@ -1342,6 +2308,10 @@ export declare const AuxUsageSchema: z.ZodObject<{
1342
2308
  total_tokens: z.ZodOptional<z.ZodNumber>;
1343
2309
  }, z.core.$strip>;
1344
2310
  export declare const AUX_METHODS: {
2311
+ /**
2312
+ * One auxiliary completion. TAL-258: `model` (with `provider`) asks that model itself, reasoning off and no tools, instead
2313
+ * of the task's auxiliary route; `credential_missing` means it has no credential. `finish_reason` is the provider's, when known.
2314
+ */
1345
2315
  readonly 'aux.complete': {
1346
2316
  readonly params: z.ZodObject<{
1347
2317
  profile_home: z.ZodString;
@@ -1351,6 +2321,8 @@ export declare const AUX_METHODS: {
1351
2321
  main_fallback: z.ZodOptional<z.ZodBoolean>;
1352
2322
  max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1353
2323
  temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2324
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2325
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1354
2326
  }, z.core.$strip>;
1355
2327
  readonly result: z.ZodObject<{
1356
2328
  model: z.ZodString;
@@ -1360,6 +2332,7 @@ export declare const AUX_METHODS: {
1360
2332
  completion_tokens: z.ZodOptional<z.ZodNumber>;
1361
2333
  total_tokens: z.ZodOptional<z.ZodNumber>;
1362
2334
  }, z.core.$strip>>;
2335
+ finish_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1363
2336
  }, z.core.$strip>;
1364
2337
  readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
1365
2338
  event: z.ZodLiteral<"token">;
@@ -1368,45 +2341,218 @@ export declare const AUX_METHODS: {
1368
2341
  }, z.core.$strip>;
1369
2342
  }, z.core.$strip>], "event">;
1370
2343
  };
2344
+ /**
2345
+ * TAL-800: the profile's auxiliary slots in Agent order (built-ins, then the profile's plugin tasks). `reasoning_effort`
2346
+ * is the slot's resolved effort (`''` = provider default); `effective` is the route an `inherit_from` task resolves to now.
2347
+ * `reserved`: the Agent's other `auxiliary.*` keys (settings and unlisted routes); a reset never touches them.
2348
+ */
2349
+ readonly 'aux.tasks': {
2350
+ readonly params: z.ZodObject<{
2351
+ profile_home: z.ZodString;
2352
+ }, z.core.$strip>;
2353
+ readonly result: z.ZodObject<{
2354
+ tasks: z.ZodArray<z.ZodObject<{
2355
+ key: z.ZodString;
2356
+ label: z.ZodString;
2357
+ description: z.ZodString;
2358
+ inherit_from: z.ZodNullable<z.ZodString>;
2359
+ reasoning_effort: z.ZodString;
2360
+ effective: z.ZodNullable<z.ZodObject<{
2361
+ provider: z.ZodString;
2362
+ model: z.ZodString;
2363
+ base_url: z.ZodString;
2364
+ }, z.core.$strip>>;
2365
+ }, z.core.$strip>>;
2366
+ reserved: z.ZodArray<z.ZodString>;
2367
+ }, z.core.$strip>;
2368
+ };
1371
2369
  readonly 'aux.resolve': {
1372
2370
  readonly params: z.ZodObject<{
1373
2371
  profile_home: z.ZodString;
1374
- task: z.ZodString;
1375
- main_runtime: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2372
+ task: z.ZodString;
2373
+ main_runtime: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2374
+ }, z.core.$strip>;
2375
+ readonly result: z.ZodObject<{
2376
+ configured: z.ZodBoolean;
2377
+ model: z.ZodNullable<z.ZodString>;
2378
+ error: z.ZodOptional<z.ZodString>;
2379
+ }, z.core.$strip>;
2380
+ };
2381
+ };
2382
+ export declare const TEXT_METHODS: {
2383
+ readonly 'text.image_mode': {
2384
+ readonly params: z.ZodObject<{
2385
+ profile_home: z.ZodString;
2386
+ provider: z.ZodString;
2387
+ model: z.ZodString;
2388
+ cfg: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2389
+ requested_provider: z.ZodOptional<z.ZodString>;
2390
+ }, z.core.$strip>;
2391
+ readonly result: z.ZodObject<{
2392
+ mode: z.ZodEnum<{
2393
+ text: "text";
2394
+ native: "native";
2395
+ }>;
2396
+ reason: z.ZodString;
2397
+ supports_vision: z.ZodNullable<z.ZodBoolean>;
2398
+ }, z.core.$strip>;
2399
+ };
2400
+ readonly 'text.portal_tags': {
2401
+ readonly params: z.ZodObject<{
2402
+ profile_home: z.ZodString;
2403
+ }, z.core.$strip>;
2404
+ readonly result: z.ZodObject<{
2405
+ client_tag: z.ZodNullable<z.ZodString>;
2406
+ conversation_tag: z.ZodNullable<z.ZodString>;
2407
+ tags: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2408
+ }, z.core.$strip>;
2409
+ };
2410
+ /** TAL-906: the Agent's read-aloud script (`prepare_spoken_text`); `text` as written on an Agent without it. */
2411
+ readonly 'text.spoken': {
2412
+ readonly params: z.ZodObject<{
2413
+ text: z.ZodString;
2414
+ }, z.core.$strip>;
2415
+ readonly result: z.ZodObject<{
2416
+ spoken_text: z.ZodString;
2417
+ }, z.core.$strip>;
2418
+ };
2419
+ };
2420
+ /**
2421
+ * TAL-886: the Agent's `MemoryStore` reading of a MEMORY.md / USER.md body: its char count and the profile's limit for that store.
2422
+ * TAL-784: `memory.write` replaces a memory page file with `content` only while its bytes still hash (SHA-256 hex) to `base`,
2423
+ * holding the Agent's per-file lock (`<file>.lock`); `written: false` means the file changed and is untouched.
2424
+ */
2425
+ export declare const MEMORY_METHODS: {
2426
+ readonly 'memory.check': {
2427
+ readonly params: z.ZodObject<{
2428
+ profile_home: z.ZodString;
2429
+ target: z.ZodEnum<{
2430
+ memory: "memory";
2431
+ user: "user";
2432
+ }>;
2433
+ content: z.ZodString;
2434
+ }, z.core.$strip>;
2435
+ readonly result: z.ZodObject<{
2436
+ count: z.ZodNumber;
2437
+ limit: z.ZodNumber;
2438
+ }, z.core.$strip>;
2439
+ };
2440
+ readonly 'memory.write': {
2441
+ readonly params: z.ZodObject<{
2442
+ profile_home: z.ZodString;
2443
+ section: z.ZodEnum<{
2444
+ memory: "memory";
2445
+ user: "user";
2446
+ soul: "soul";
2447
+ }>;
2448
+ base: z.ZodString;
2449
+ content: z.ZodString;
2450
+ }, z.core.$strip>;
2451
+ readonly result: z.ZodObject<{
2452
+ written: z.ZodBoolean;
2453
+ }, z.core.$strip>;
2454
+ };
2455
+ };
2456
+ /**
2457
+ * TAL-819: one write the Agent staged for approval (`skills.write_approval` / `memory.write_approval`). `target` is the skill
2458
+ * name(s), or `memory` / `user` for the memory store; `op` the staged action; `diff` the unified diff an approval would apply
2459
+ * (a skill create shows the new file, a write that would fail says why); `revision` is the SHA-256 of that diff, which an approval
2460
+ * must send back. `approvable` is false when no diff could be built or the Agent would refuse the write (`diff` says why;
2461
+ * `revision` is empty); such a write can only be rejected.
2462
+ */
2463
+ export declare const PendingWriteSchema: z.ZodObject<{
2464
+ id: z.ZodString;
2465
+ kind: z.ZodEnum<{
2466
+ skills: "skills";
2467
+ memory: "memory";
2468
+ }>;
2469
+ target: z.ZodString;
2470
+ op: z.ZodString;
2471
+ summary: z.ZodString;
2472
+ origin: z.ZodString;
2473
+ created_at: z.ZodNumber;
2474
+ diff: z.ZodString;
2475
+ approvable: z.ZodBoolean;
2476
+ revision: z.ZodString;
2477
+ }, z.core.$strip>;
2478
+ export type PendingWrite = z.infer<typeof PendingWriteSchema>;
2479
+ export declare const PendingWriteRefSchema: z.ZodObject<{
2480
+ id: z.ZodString;
2481
+ revision: z.ZodString;
2482
+ }, z.core.$strip>;
2483
+ /**
2484
+ * TAL-819: the profile's staged writes of `kind`, oldest first, and whether its gate is on; `supported` is false on an Agent
2485
+ * without the review handlers. `approve` / `reject` run the Agent's `/skills` or `/memory` handler per write; `done` is true
2486
+ * once the record is gone (applied or dropped) and `message` is the handler's text. An approval whose diff no longer has the
2487
+ * reviewed `revision` is refused (`done: false`) without applying.
2488
+ */
2489
+ export declare const WRITE_APPROVAL_METHODS: {
2490
+ readonly 'write_approval.pending': {
2491
+ readonly params: z.ZodObject<{
2492
+ profile_home: z.ZodString;
2493
+ kind: z.ZodEnum<{
2494
+ skills: "skills";
2495
+ memory: "memory";
2496
+ }>;
1376
2497
  }, z.core.$strip>;
1377
2498
  readonly result: z.ZodObject<{
1378
- configured: z.ZodBoolean;
1379
- model: z.ZodNullable<z.ZodString>;
1380
- error: z.ZodOptional<z.ZodString>;
2499
+ supported: z.ZodBoolean;
2500
+ enabled: z.ZodBoolean;
2501
+ items: z.ZodArray<z.ZodObject<{
2502
+ id: z.ZodString;
2503
+ kind: z.ZodEnum<{
2504
+ skills: "skills";
2505
+ memory: "memory";
2506
+ }>;
2507
+ target: z.ZodString;
2508
+ op: z.ZodString;
2509
+ summary: z.ZodString;
2510
+ origin: z.ZodString;
2511
+ created_at: z.ZodNumber;
2512
+ diff: z.ZodString;
2513
+ approvable: z.ZodBoolean;
2514
+ revision: z.ZodString;
2515
+ }, z.core.$strip>>;
1381
2516
  }, z.core.$strip>;
1382
2517
  };
1383
- };
1384
- export declare const TEXT_METHODS: {
1385
- readonly 'text.image_mode': {
2518
+ readonly 'write_approval.approve': {
1386
2519
  readonly params: z.ZodObject<{
1387
2520
  profile_home: z.ZodString;
1388
- provider: z.ZodString;
1389
- model: z.ZodString;
1390
- cfg: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1391
- requested_provider: z.ZodOptional<z.ZodString>;
2521
+ kind: z.ZodEnum<{
2522
+ skills: "skills";
2523
+ memory: "memory";
2524
+ }>;
2525
+ writes: z.ZodArray<z.ZodObject<{
2526
+ id: z.ZodString;
2527
+ revision: z.ZodString;
2528
+ }, z.core.$strip>>;
1392
2529
  }, z.core.$strip>;
1393
2530
  readonly result: z.ZodObject<{
1394
- mode: z.ZodEnum<{
1395
- text: "text";
1396
- native: "native";
1397
- }>;
1398
- reason: z.ZodString;
1399
- supports_vision: z.ZodNullable<z.ZodBoolean>;
2531
+ results: z.ZodArray<z.ZodObject<{
2532
+ id: z.ZodString;
2533
+ done: z.ZodBoolean;
2534
+ message: z.ZodString;
2535
+ }, z.core.$strip>>;
1400
2536
  }, z.core.$strip>;
1401
2537
  };
1402
- readonly 'text.portal_tags': {
2538
+ readonly 'write_approval.reject': {
1403
2539
  readonly params: z.ZodObject<{
1404
2540
  profile_home: z.ZodString;
2541
+ kind: z.ZodEnum<{
2542
+ skills: "skills";
2543
+ memory: "memory";
2544
+ }>;
2545
+ writes: z.ZodArray<z.ZodObject<{
2546
+ id: z.ZodString;
2547
+ revision: z.ZodString;
2548
+ }, z.core.$strip>>;
1405
2549
  }, z.core.$strip>;
1406
2550
  readonly result: z.ZodObject<{
1407
- client_tag: z.ZodNullable<z.ZodString>;
1408
- conversation_tag: z.ZodNullable<z.ZodString>;
1409
- tags: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2551
+ results: z.ZodArray<z.ZodObject<{
2552
+ id: z.ZodString;
2553
+ done: z.ZodBoolean;
2554
+ message: z.ZodString;
2555
+ }, z.core.$strip>>;
1410
2556
  }, z.core.$strip>;
1411
2557
  };
1412
2558
  };
@@ -1416,6 +2562,8 @@ export declare const ProcessEventSchema: z.ZodObject<{
1416
2562
  type: z.ZodOptional<z.ZodString>;
1417
2563
  session_key: z.ZodOptional<z.ZodString>;
1418
2564
  origin_ui_session_id: z.ZodOptional<z.ZodString>;
2565
+ child_process: z.ZodOptional<z.ZodBoolean>;
2566
+ reconciliation_profile_home: z.ZodOptional<z.ZodString>;
1419
2567
  }, z.core.$catchall<z.ZodUnknown>>;
1420
2568
  export declare const PROCESS_METHODS: {
1421
2569
  readonly 'process.drain': {
@@ -1430,6 +2578,8 @@ export declare const PROCESS_METHODS: {
1430
2578
  type: z.ZodOptional<z.ZodString>;
1431
2579
  session_key: z.ZodOptional<z.ZodString>;
1432
2580
  origin_ui_session_id: z.ZodOptional<z.ZodString>;
2581
+ child_process: z.ZodOptional<z.ZodBoolean>;
2582
+ reconciliation_profile_home: z.ZodOptional<z.ZodString>;
1433
2583
  }, z.core.$catchall<z.ZodUnknown>>>;
1434
2584
  }, z.core.$strip>;
1435
2585
  };
@@ -1476,6 +2626,7 @@ export declare const PROCESS_METHODS: {
1476
2626
  }, z.core.$strip>;
1477
2627
  readonly result: z.ZodObject<{
1478
2628
  claim_id: z.ZodNullable<z.ZodString>;
2629
+ retryable: z.ZodOptional<z.ZodBoolean>;
1479
2630
  }, z.core.$strip>;
1480
2631
  };
1481
2632
  readonly 'process.complete_delivery': {
@@ -1581,7 +2732,7 @@ export declare const AccountUsageSnapshotSchema: z.ZodObject<{
1581
2732
  }, z.core.$catchall<z.ZodUnknown>>;
1582
2733
  /**
1583
2734
  * TAL-548: one credential-pool entry's local state (no network, no secrets); the server derives a quota source per entry.
1584
- * `matches_api_key`: the entry's key is the server-resolved `api_key` passed to `usage.pool`.
2735
+ * `matches_api_key`: the entry's key is the configured key, passed as `api_key` or resolved from `env_vars` in the profile's secret scope.
1585
2736
  */
1586
2737
  export declare const PoolEntrySchema: z.ZodObject<{
1587
2738
  credential_id: z.ZodString;
@@ -1596,14 +2747,14 @@ export declare const PoolEntrySchema: z.ZodObject<{
1596
2747
  matches_api_key: z.ZodBoolean;
1597
2748
  }, z.core.$strip>;
1598
2749
  /**
1599
- * TAL-548: one key-based balance read. The key is the pool entry's (`credential_id`) or the server-resolved `api_key`.
2750
+ * TAL-548: one key-based balance read. The key is the pool entry's (`credential_id`), a raw `api_key`, or resolved from `env_vars` in the profile's secret scope.
1600
2751
  * `ok` carries the provider's sanitised fields: OpenRouter `quota`/`label`, DeepSeek `balances`/`is_available`, OpenCode Go
1601
2752
  * `windows`; `http_error` carries the status code.
1602
2753
  */
1603
2754
  export declare const BalanceResultSchema: z.ZodObject<{
1604
2755
  status: z.ZodEnum<{
1605
- ok: "ok";
1606
2756
  unavailable: "unavailable";
2757
+ ok: "ok";
1607
2758
  no_key: "no_key";
1608
2759
  http_error: "http_error";
1609
2760
  }>;
@@ -1635,6 +2786,14 @@ export declare const BalanceResultSchema: z.ZodObject<{
1635
2786
  rate_limited: z.ZodBoolean;
1636
2787
  }, z.core.$strip>>;
1637
2788
  }, z.core.$strip>;
2789
+ /** TAL-807: the Agent's `CredentialPool.limit_state`: every live account benched until `resets_at`, else the given models no usable account serves until their ISO reset. */
2790
+ export declare const PoolLimitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2791
+ scope: z.ZodLiteral<"account">;
2792
+ resets_at: z.ZodString;
2793
+ }, z.core.$strip>, z.ZodObject<{
2794
+ scope: z.ZodLiteral<"models">;
2795
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
2796
+ }, z.core.$strip>], "scope">;
1638
2797
  export declare const USAGE_METHODS: {
1639
2798
  readonly 'usage.account': {
1640
2799
  readonly params: z.ZodObject<{
@@ -1659,6 +2818,7 @@ export declare const USAGE_METHODS: {
1659
2818
  profile_home: z.ZodString;
1660
2819
  provider: z.ZodString;
1661
2820
  api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2821
+ env_vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
1662
2822
  }, z.core.$strip>;
1663
2823
  readonly result: z.ZodObject<{
1664
2824
  entries: z.ZodArray<z.ZodObject<{
@@ -1673,15 +2833,40 @@ export declare const USAGE_METHODS: {
1673
2833
  retry_after: z.ZodNullable<z.ZodString>;
1674
2834
  matches_api_key: z.ZodBoolean;
1675
2835
  }, z.core.$strip>>;
2836
+ has_api_key: z.ZodOptional<z.ZodBoolean>;
1676
2837
  }, z.core.$strip>;
1677
2838
  };
1678
2839
  /** TAL-548: the providers whose persisted credential pool holds an account the user added, keyed or not. */
1679
2840
  readonly 'usage.pool_providers': {
1680
2841
  readonly params: z.ZodObject<{
1681
2842
  profile_home: z.ZodString;
2843
+ key_envs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1682
2844
  }, z.core.$strip>;
1683
2845
  readonly result: z.ZodObject<{
1684
2846
  providers: z.ZodArray<z.ZodString>;
2847
+ keys: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
2848
+ present: z.ZodBoolean;
2849
+ revision: z.ZodNullable<z.ZodString>;
2850
+ }, z.core.$strip>>>;
2851
+ }, z.core.$strip>;
2852
+ };
2853
+ /** TAL-807: pool rate limits by provider slug, only for pooled providers that are limited; `models` are bare ids. */
2854
+ readonly 'usage.limits': {
2855
+ readonly params: z.ZodObject<{
2856
+ profile_home: z.ZodString;
2857
+ providers: z.ZodArray<z.ZodObject<{
2858
+ slug: z.ZodString;
2859
+ models: z.ZodArray<z.ZodString>;
2860
+ }, z.core.$strip>>;
2861
+ }, z.core.$strip>;
2862
+ readonly result: z.ZodObject<{
2863
+ limits: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2864
+ scope: z.ZodLiteral<"account">;
2865
+ resets_at: z.ZodString;
2866
+ }, z.core.$strip>, z.ZodObject<{
2867
+ scope: z.ZodLiteral<"models">;
2868
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
2869
+ }, z.core.$strip>], "scope">>;
1685
2870
  }, z.core.$strip>;
1686
2871
  };
1687
2872
  readonly 'usage.balance': {
@@ -1694,11 +2879,12 @@ export declare const USAGE_METHODS: {
1694
2879
  }>;
1695
2880
  credential_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1696
2881
  api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2882
+ env_vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
1697
2883
  }, z.core.$strip>;
1698
2884
  readonly result: z.ZodObject<{
1699
2885
  status: z.ZodEnum<{
1700
- ok: "ok";
1701
2886
  unavailable: "unavailable";
2887
+ ok: "ok";
1702
2888
  no_key: "no_key";
1703
2889
  http_error: "http_error";
1704
2890
  }>;
@@ -1755,6 +2941,17 @@ export declare const CONFIG_METHODS: {
1755
2941
  path: z.ZodString;
1756
2942
  }, z.core.$strip>;
1757
2943
  };
2944
+ /** TAL-797: `.env` edits through the Agent's locked writer; `null` removes a key, an empty value is skipped; line breaks, spaces, quotes, `#` and non-ASCII are refused. */
2945
+ readonly 'config.env_write': {
2946
+ readonly params: z.ZodObject<{
2947
+ profile_home: z.ZodString;
2948
+ updates: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
2949
+ }, z.core.$strip>;
2950
+ readonly result: z.ZodObject<{
2951
+ ok: z.ZodLiteral<true>;
2952
+ path: z.ZodString;
2953
+ }, z.core.$strip>;
2954
+ };
1758
2955
  readonly 'models.reasoning_efforts': {
1759
2956
  readonly params: z.ZodObject<{
1760
2957
  profile_home: z.ZodString;
@@ -1766,6 +2963,22 @@ export declare const CONFIG_METHODS: {
1766
2963
  supports_reasoning: z.ZodNullable<z.ZodBoolean>;
1767
2964
  }, z.core.$strip>;
1768
2965
  };
2966
+ /**
2967
+ * TAL-901: the Agent's personalities for `config` (its built-ins, then the top-level `personalities:` block, then
2968
+ * `agent.personalities`), by case-folded name in the Agent's order; `prompt` is the rendered overlay text.
2969
+ */
2970
+ readonly 'personalities.list': {
2971
+ readonly params: z.ZodObject<{
2972
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2973
+ }, z.core.$strip>;
2974
+ readonly result: z.ZodObject<{
2975
+ personalities: z.ZodArray<z.ZodObject<{
2976
+ name: z.ZodString;
2977
+ description: z.ZodString;
2978
+ prompt: z.ZodString;
2979
+ }, z.core.$strip>>;
2980
+ }, z.core.$strip>;
2981
+ };
1769
2982
  };
1770
2983
  export declare const WORKTREE_METHODS: {
1771
2984
  readonly 'worktree.create': {
@@ -1781,6 +2994,58 @@ export declare const WORKTREE_METHODS: {
1781
2994
  }, z.core.$strip>;
1782
2995
  };
1783
2996
  };
2997
+ export declare const AgentCheckpointSchema: z.ZodObject<{
2998
+ hash: z.ZodString;
2999
+ short_hash: z.ZodString;
3000
+ timestamp: z.ZodString;
3001
+ reason: z.ZodString;
3002
+ files_changed: z.ZodNumber;
3003
+ insertions: z.ZodNumber;
3004
+ deletions: z.ZodNumber;
3005
+ }, z.core.$strip>;
3006
+ export declare const CHECKPOINTS_METHODS: {
3007
+ readonly 'checkpoints.list': {
3008
+ readonly params: z.ZodObject<{
3009
+ profile_home: z.ZodString;
3010
+ workspace: z.ZodString;
3011
+ }, z.core.$strip>;
3012
+ readonly result: z.ZodObject<{
3013
+ checkpoints: z.ZodArray<z.ZodObject<{
3014
+ hash: z.ZodString;
3015
+ short_hash: z.ZodString;
3016
+ timestamp: z.ZodString;
3017
+ reason: z.ZodString;
3018
+ files_changed: z.ZodNumber;
3019
+ insertions: z.ZodNumber;
3020
+ deletions: z.ZodNumber;
3021
+ }, z.core.$strip>>;
3022
+ store: z.ZodString;
3023
+ }, z.core.$strip>;
3024
+ };
3025
+ /** `diff` is `git diff <checkpoint> --cached` over the workspace: `a/` is the checkpoint, `b/` the files now. */
3026
+ readonly 'checkpoints.diff': {
3027
+ readonly params: z.ZodObject<{
3028
+ profile_home: z.ZodString;
3029
+ workspace: z.ZodString;
3030
+ checkpoint: z.ZodString;
3031
+ }, z.core.$strip>;
3032
+ readonly result: z.ZodObject<{
3033
+ stat: z.ZodString;
3034
+ diff: z.ZodString;
3035
+ }, z.core.$strip>;
3036
+ };
3037
+ readonly 'checkpoints.restore': {
3038
+ readonly params: z.ZodObject<{
3039
+ profile_home: z.ZodString;
3040
+ workspace: z.ZodString;
3041
+ checkpoint: z.ZodString;
3042
+ }, z.core.$strip>;
3043
+ readonly result: z.ZodObject<{
3044
+ restored_to: z.ZodString;
3045
+ reason: z.ZodString;
3046
+ }, z.core.$strip>;
3047
+ };
3048
+ };
1784
3049
  export declare const ChatUsageSchema: z.ZodObject<{
1785
3050
  prompt_tokens: z.ZodNumber;
1786
3051
  completion_tokens: z.ZodNumber;
@@ -1788,13 +3053,6 @@ export declare const ChatUsageSchema: z.ZodObject<{
1788
3053
  cache_write_tokens: z.ZodNumber;
1789
3054
  estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
1790
3055
  }, z.core.$strip>;
1791
- /**
1792
- * `failed`, `partial`, and `compression_exhausted` are the Agent's own turn-result flags, forwarded as sent; `failed` also sets `status: 'error'`.
1793
- * `max_iterations_summary_request` is the Agent's text for the user row it appends to ask for a summary once its tool budget runs out
1794
- * (`tool_limit_reached`); the server drops that trailing row of an exhausted turn from the transcript and the model context (TAL-537).
1795
- * A completed `compressed` turn also carries `context_messages`, its `messages` with tool output pruned and capped for the model (row for row),
1796
- * and `post_compression_context_tokens_estimate`, the next request's estimated size (TAL-539); both are null otherwise.
1797
- */
1798
3056
  export declare const ChatStartResultSchema: z.ZodObject<{
1799
3057
  status: z.ZodEnum<{
1800
3058
  error: "error";
@@ -1818,7 +3076,9 @@ export declare const ChatStartResultSchema: z.ZodObject<{
1818
3076
  cache_write_tokens: z.ZodNumber;
1819
3077
  estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
1820
3078
  }, z.core.$strip>;
1821
- context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3079
+ context: z.ZodObject<{
3080
+ next_turn_threshold_tokens: z.ZodOptional<z.ZodNumber>;
3081
+ }, z.core.$loose>;
1822
3082
  model: z.ZodString;
1823
3083
  provider: z.ZodString;
1824
3084
  compressed: z.ZodBoolean;
@@ -1885,6 +3145,38 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1885
3145
  }, z.core.$strip>, z.ZodObject<{
1886
3146
  event: z.ZodLiteral<"clarify_resolved">;
1887
3147
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3148
+ }, z.core.$strip>, z.ZodObject<{
3149
+ event: z.ZodLiteral<"connection">;
3150
+ data: z.ZodObject<{
3151
+ op_id: z.ZodString;
3152
+ settled: z.ZodBoolean;
3153
+ owner: z.ZodEnum<{
3154
+ session: "session";
3155
+ account: "account";
3156
+ }>;
3157
+ tool_call_id: z.ZodNullable<z.ZodString>;
3158
+ targets: z.ZodArray<z.ZodObject<{
3159
+ name: z.ZodString;
3160
+ kind: z.ZodString;
3161
+ state: z.ZodEnum<{
3162
+ pending: "pending";
3163
+ skipped: "skipped";
3164
+ initiated: "initiated";
3165
+ connected: "connected";
3166
+ failed: "failed";
3167
+ expired: "expired";
3168
+ not_connected: "not_connected";
3169
+ }>;
3170
+ detail: z.ZodString;
3171
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3172
+ required_env: z.ZodArray<z.ZodObject<{
3173
+ name: z.ZodString;
3174
+ prompt: z.ZodString;
3175
+ required: z.ZodBoolean;
3176
+ secret: z.ZodBoolean;
3177
+ }, z.core.$strip>>;
3178
+ }, z.core.$strip>>;
3179
+ }, z.core.$strip>;
1888
3180
  }, z.core.$strip>, z.ZodObject<{
1889
3181
  event: z.ZodLiteral<"approval_resolved">;
1890
3182
  data: z.ZodObject<{
@@ -1895,12 +3187,52 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1895
3187
  }, z.core.$strip>, z.ZodObject<{
1896
3188
  event: z.ZodLiteral<"compressing">;
1897
3189
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3190
+ }, z.core.$strip>, z.ZodObject<{
3191
+ event: z.ZodLiteral<"compression_finished">;
3192
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1898
3193
  }, z.core.$strip>, z.ZodObject<{
1899
3194
  event: z.ZodLiteral<"warning">;
1900
3195
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1901
3196
  }, z.core.$strip>, z.ZodObject<{
1902
3197
  event: z.ZodLiteral<"status">;
1903
3198
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3199
+ }, z.core.$strip>, z.ZodObject<{
3200
+ event: z.ZodLiteral<"notice">;
3201
+ data: z.ZodObject<{
3202
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3203
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3204
+ level: z.ZodString;
3205
+ kind: z.ZodString;
3206
+ ttl_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3207
+ text: z.ZodString;
3208
+ lapses_with_agent: z.ZodOptional<z.ZodBoolean>;
3209
+ }, z.core.$loose>;
3210
+ }, z.core.$strip>, z.ZodObject<{
3211
+ event: z.ZodLiteral<"notice_clear">;
3212
+ data: z.ZodObject<{
3213
+ key: z.ZodString;
3214
+ }, z.core.$loose>;
3215
+ }, z.core.$strip>, z.ZodObject<{
3216
+ event: z.ZodLiteral<"notices_reset">;
3217
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3218
+ }, z.core.$strip>, z.ZodObject<{
3219
+ event: z.ZodLiteral<"provider_phase">;
3220
+ data: z.ZodObject<{
3221
+ phase: z.ZodNullable<z.ZodObject<{
3222
+ phase: z.ZodLiteral<"prompt_reading">;
3223
+ progress_percent: z.ZodNullable<z.ZodNumber>;
3224
+ }, z.core.$strip>>;
3225
+ }, z.core.$strip>;
3226
+ }, z.core.$strip>, z.ZodObject<{
3227
+ event: z.ZodLiteral<"rate_limit_wait">;
3228
+ data: z.ZodObject<{
3229
+ provider: z.ZodNullable<z.ZodString>;
3230
+ until: z.ZodNullable<z.ZodNumber>;
3231
+ until_kind: z.ZodOptional<z.ZodEnum<{
3232
+ reset: "reset";
3233
+ retry: "retry";
3234
+ }>>;
3235
+ }, z.core.$loose>;
1904
3236
  }, z.core.$strip>], "event">;
1905
3237
  export declare const CHAT_METHODS: {
1906
3238
  readonly 'chat.start': {
@@ -1925,6 +3257,10 @@ export declare const CHAT_METHODS: {
1925
3257
  ephemeral_system_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1926
3258
  persist_user_message: z.ZodOptional<z.ZodString>;
1927
3259
  ephemeral: z.ZodOptional<z.ZodBoolean>;
3260
+ voice_turn: z.ZodOptional<z.ZodBoolean>;
3261
+ connect_card: z.ZodOptional<z.ZodBoolean>;
3262
+ skill_secret: z.ZodOptional<z.ZodBoolean>;
3263
+ workspace_local: z.ZodOptional<z.ZodBoolean>;
1928
3264
  }, z.core.$strip>;
1929
3265
  readonly result: z.ZodObject<{
1930
3266
  status: z.ZodEnum<{
@@ -1949,7 +3285,9 @@ export declare const CHAT_METHODS: {
1949
3285
  cache_write_tokens: z.ZodNumber;
1950
3286
  estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
1951
3287
  }, z.core.$strip>;
1952
- context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3288
+ context: z.ZodObject<{
3289
+ next_turn_threshold_tokens: z.ZodOptional<z.ZodNumber>;
3290
+ }, z.core.$loose>;
1953
3291
  model: z.ZodString;
1954
3292
  provider: z.ZodString;
1955
3293
  compressed: z.ZodBoolean;
@@ -2016,6 +3354,38 @@ export declare const CHAT_METHODS: {
2016
3354
  }, z.core.$strip>, z.ZodObject<{
2017
3355
  event: z.ZodLiteral<"clarify_resolved">;
2018
3356
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3357
+ }, z.core.$strip>, z.ZodObject<{
3358
+ event: z.ZodLiteral<"connection">;
3359
+ data: z.ZodObject<{
3360
+ op_id: z.ZodString;
3361
+ settled: z.ZodBoolean;
3362
+ owner: z.ZodEnum<{
3363
+ session: "session";
3364
+ account: "account";
3365
+ }>;
3366
+ tool_call_id: z.ZodNullable<z.ZodString>;
3367
+ targets: z.ZodArray<z.ZodObject<{
3368
+ name: z.ZodString;
3369
+ kind: z.ZodString;
3370
+ state: z.ZodEnum<{
3371
+ pending: "pending";
3372
+ skipped: "skipped";
3373
+ initiated: "initiated";
3374
+ connected: "connected";
3375
+ failed: "failed";
3376
+ expired: "expired";
3377
+ not_connected: "not_connected";
3378
+ }>;
3379
+ detail: z.ZodString;
3380
+ connect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3381
+ required_env: z.ZodArray<z.ZodObject<{
3382
+ name: z.ZodString;
3383
+ prompt: z.ZodString;
3384
+ required: z.ZodBoolean;
3385
+ secret: z.ZodBoolean;
3386
+ }, z.core.$strip>>;
3387
+ }, z.core.$strip>>;
3388
+ }, z.core.$strip>;
2019
3389
  }, z.core.$strip>, z.ZodObject<{
2020
3390
  event: z.ZodLiteral<"approval_resolved">;
2021
3391
  data: z.ZodObject<{
@@ -2026,12 +3396,52 @@ export declare const CHAT_METHODS: {
2026
3396
  }, z.core.$strip>, z.ZodObject<{
2027
3397
  event: z.ZodLiteral<"compressing">;
2028
3398
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3399
+ }, z.core.$strip>, z.ZodObject<{
3400
+ event: z.ZodLiteral<"compression_finished">;
3401
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2029
3402
  }, z.core.$strip>, z.ZodObject<{
2030
3403
  event: z.ZodLiteral<"warning">;
2031
3404
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2032
3405
  }, z.core.$strip>, z.ZodObject<{
2033
3406
  event: z.ZodLiteral<"status">;
2034
3407
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3408
+ }, z.core.$strip>, z.ZodObject<{
3409
+ event: z.ZodLiteral<"notice">;
3410
+ data: z.ZodObject<{
3411
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3412
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3413
+ level: z.ZodString;
3414
+ kind: z.ZodString;
3415
+ ttl_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3416
+ text: z.ZodString;
3417
+ lapses_with_agent: z.ZodOptional<z.ZodBoolean>;
3418
+ }, z.core.$loose>;
3419
+ }, z.core.$strip>, z.ZodObject<{
3420
+ event: z.ZodLiteral<"notice_clear">;
3421
+ data: z.ZodObject<{
3422
+ key: z.ZodString;
3423
+ }, z.core.$loose>;
3424
+ }, z.core.$strip>, z.ZodObject<{
3425
+ event: z.ZodLiteral<"notices_reset">;
3426
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3427
+ }, z.core.$strip>, z.ZodObject<{
3428
+ event: z.ZodLiteral<"provider_phase">;
3429
+ data: z.ZodObject<{
3430
+ phase: z.ZodNullable<z.ZodObject<{
3431
+ phase: z.ZodLiteral<"prompt_reading">;
3432
+ progress_percent: z.ZodNullable<z.ZodNumber>;
3433
+ }, z.core.$strip>>;
3434
+ }, z.core.$strip>;
3435
+ }, z.core.$strip>, z.ZodObject<{
3436
+ event: z.ZodLiteral<"rate_limit_wait">;
3437
+ data: z.ZodObject<{
3438
+ provider: z.ZodNullable<z.ZodString>;
3439
+ until: z.ZodNullable<z.ZodNumber>;
3440
+ until_kind: z.ZodOptional<z.ZodEnum<{
3441
+ reset: "reset";
3442
+ retry: "retry";
3443
+ }>>;
3444
+ }, z.core.$loose>;
2035
3445
  }, z.core.$strip>], "event">;
2036
3446
  };
2037
3447
  readonly 'chat.interrupt': {
@@ -2078,7 +3488,7 @@ export declare const CHAT_METHODS: {
2078
3488
  /**
2079
3489
  * TAL-424: deliver `pending[index]` now with the Agent's `redirect`: `delivery: redirect` restarts the model request with
2080
3490
  * it, `delivery: steer` puts it last on the slot while tools yield. Not redirected: it stays pending, `requeued` in its
2081
- * place (`kept`) or last (`last`); `withdrawn: false` when the Agent already took it.
3491
+ * place (`kept`) or last (`last`); `withdrawn: false` when the Agent already took it, or `reason: not_running` when the run or Agent is absent.
2082
3492
  */
2083
3493
  readonly 'chat.steer_now': {
2084
3494
  readonly params: z.ZodObject<{
@@ -2098,6 +3508,9 @@ export declare const CHAT_METHODS: {
2098
3508
  kept: "kept";
2099
3509
  last: "last";
2100
3510
  }>>;
3511
+ reason: z.ZodOptional<z.ZodEnum<{
3512
+ not_running: "not_running";
3513
+ }>>;
2101
3514
  }, z.core.$strip>;
2102
3515
  };
2103
3516
  /**
@@ -2145,6 +3558,19 @@ export declare const CHAT_METHODS: {
2145
3558
  finalized: z.ZodBoolean;
2146
3559
  }, z.core.$strip>;
2147
3560
  };
3561
+ readonly 'chat.finalize_session': {
3562
+ readonly params: z.ZodObject<{
3563
+ profile_home: z.ZodString;
3564
+ session_id: z.ZodString;
3565
+ reason: z.ZodEnum<{
3566
+ delete: "delete";
3567
+ clear: "clear";
3568
+ }>;
3569
+ }, z.core.$strip>;
3570
+ readonly result: z.ZodObject<{
3571
+ messages: z.ZodArray<z.ZodString>;
3572
+ }, z.core.$strip>;
3573
+ };
2148
3574
  readonly 'chat.evict_agent': {
2149
3575
  readonly params: z.ZodObject<{
2150
3576
  session_id: z.ZodString;
@@ -2163,6 +3589,33 @@ export declare const CHAT_METHODS: {
2163
3589
  committed: z.ZodBoolean;
2164
3590
  }, z.core.$strip>;
2165
3591
  };
3592
+ /**
3593
+ * TAL-902: `/refine [focus]`, the Agent's on-demand memory/skill review of `messages` (the session's model context) on the
3594
+ * session's cached agent, else one built from the turn parameters and cached like a turn's. `output` is the Agent's
3595
+ * wording: the review started, or why not (a turn is running, the conversation is empty).
3596
+ */
3597
+ readonly 'chat.refine': {
3598
+ readonly params: z.ZodObject<{
3599
+ profile_home: z.ZodString;
3600
+ session_id: z.ZodString;
3601
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3602
+ focus: z.ZodString;
3603
+ model: z.ZodString;
3604
+ model_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3605
+ enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3606
+ max_iterations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3607
+ max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3608
+ reasoning_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3609
+ enabled: z.ZodBoolean;
3610
+ effort: z.ZodOptional<z.ZodString>;
3611
+ }, z.core.$strip>>>;
3612
+ workspace: z.ZodOptional<z.ZodString>;
3613
+ workspace_local: z.ZodOptional<z.ZodBoolean>;
3614
+ }, z.core.$strip>;
3615
+ readonly result: z.ZodObject<{
3616
+ output: z.ZodString;
3617
+ }, z.core.$strip>;
3618
+ };
2166
3619
  readonly 'approval.respond': {
2167
3620
  readonly params: z.ZodObject<{
2168
3621
  profile_home: z.ZodString;
@@ -2212,23 +3665,166 @@ export declare const CHAT_METHODS: {
2212
3665
  }, z.core.$strip>;
2213
3666
  };
2214
3667
  };
3668
+ export declare const GATEWAY_ACTIONS: readonly ["start", "stop", "restart"];
2215
3669
  export declare const GATEWAY_METHODS: {
2216
- readonly 'gateway.restart': {
3670
+ readonly 'gateway.session': {
3671
+ readonly params: z.ZodObject<{
3672
+ profile_home: z.ZodString;
3673
+ session_id: z.ZodString;
3674
+ action: z.ZodEnum<{
3675
+ snapshot: "snapshot";
3676
+ receipt: "receipt";
3677
+ watch: "watch";
3678
+ submit: "submit";
3679
+ cancel: "cancel";
3680
+ interrupt: "interrupt";
3681
+ approval: "approval";
3682
+ clarify: "clarify";
3683
+ discard: "discard";
3684
+ mutate: "mutate";
3685
+ }>;
3686
+ request_id: z.ZodOptional<z.ZodString>;
3687
+ text: z.ZodOptional<z.ZodString>;
3688
+ admission_id: z.ZodOptional<z.ZodString>;
3689
+ execution_generation: z.ZodOptional<z.ZodNumber>;
3690
+ prompt_id: z.ZodOptional<z.ZodString>;
3691
+ choice: z.ZodOptional<z.ZodEnum<{
3692
+ once: "once";
3693
+ session: "session";
3694
+ always: "always";
3695
+ deny: "deny";
3696
+ }>>;
3697
+ expected_revision: z.ZodOptional<z.ZodNumber>;
3698
+ operation: z.ZodOptional<z.ZodEnum<{
3699
+ rename: "rename";
3700
+ archive: "archive";
3701
+ sidebar: "sidebar";
3702
+ branch: "branch";
3703
+ delete: "delete";
3704
+ rewind: "rewind";
3705
+ reset: "reset";
3706
+ model: "model";
3707
+ workspace: "workspace";
3708
+ compress: "compress";
3709
+ }>>;
3710
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3711
+ }, z.core.$strip>;
3712
+ readonly result: z.ZodObject<{
3713
+ state: z.ZodEnum<{
3714
+ attached: "attached";
3715
+ stopped: "stopped";
3716
+ unavailable: "unavailable";
3717
+ incompatible: "incompatible";
3718
+ refused: "refused";
3719
+ }>;
3720
+ reason: z.ZodNullable<z.ZodString>;
3721
+ replay_gap: z.ZodOptional<z.ZodBoolean>;
3722
+ snapshot: z.ZodNullable<z.ZodObject<{
3723
+ session_id: z.ZodString;
3724
+ stored_session_id: z.ZodString;
3725
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3726
+ message_count: z.ZodNumber;
3727
+ running: z.ZodBoolean;
3728
+ authority_epoch: z.ZodNumber;
3729
+ replay_epoch: z.ZodString;
3730
+ last_sequence: z.ZodNumber;
3731
+ subscription_id: z.ZodString;
3732
+ revision: z.ZodNumber;
3733
+ execution_generation: z.ZodNumber;
3734
+ pending: z.ZodArray<z.ZodObject<{
3735
+ admission_id: z.ZodString;
3736
+ sequence: z.ZodNumber;
3737
+ status: z.ZodEnum<{
3738
+ unknown: "unknown";
3739
+ queued: "queued";
3740
+ started: "started";
3741
+ terminal: "terminal";
3742
+ }>;
3743
+ outcome: z.ZodNullable<z.ZodString>;
3744
+ authority_epoch: z.ZodNumber;
3745
+ execution_generation: z.ZodNullable<z.ZodNumber>;
3746
+ text: z.ZodOptional<z.ZodString>;
3747
+ input_id: z.ZodOptional<z.ZodString>;
3748
+ }, z.core.$strip>>;
3749
+ prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3750
+ info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3751
+ }, z.core.$strip>>;
3752
+ receipt: z.ZodNullable<z.ZodObject<{
3753
+ admission_id: z.ZodString;
3754
+ sequence: z.ZodNumber;
3755
+ status: z.ZodEnum<{
3756
+ unknown: "unknown";
3757
+ queued: "queued";
3758
+ started: "started";
3759
+ terminal: "terminal";
3760
+ }>;
3761
+ outcome: z.ZodNullable<z.ZodString>;
3762
+ authority_epoch: z.ZodNumber;
3763
+ execution_generation: z.ZodNullable<z.ZodNumber>;
3764
+ text: z.ZodOptional<z.ZodString>;
3765
+ input_id: z.ZodOptional<z.ZodString>;
3766
+ }, z.core.$strip>>;
3767
+ }, z.core.$strip>;
3768
+ readonly stream: z.ZodObject<{
3769
+ event: z.ZodEnum<{
3770
+ snapshot: "snapshot";
3771
+ event: "event";
3772
+ }>;
3773
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3774
+ }, z.core.$strip>;
3775
+ };
3776
+ readonly 'gateway.control': {
2217
3777
  readonly params: z.ZodObject<{
2218
3778
  profile_home: z.ZodString;
2219
3779
  cli_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2220
3780
  quick_timeout_seconds: z.ZodOptional<z.ZodNumber>;
2221
3781
  background_wait_seconds: z.ZodOptional<z.ZodNumber>;
3782
+ action: z.ZodEnum<{
3783
+ start: "start";
3784
+ stop: "stop";
3785
+ restart: "restart";
3786
+ }>;
2222
3787
  }, z.core.$strip>;
2223
3788
  readonly result: z.ZodObject<{
2224
3789
  status: z.ZodEnum<{
3790
+ failed: "failed";
2225
3791
  completed: "completed";
3792
+ busy: "busy";
3793
+ }>;
3794
+ message: z.ZodString;
3795
+ detail: z.ZodOptional<z.ZodString>;
3796
+ returncode: z.ZodOptional<z.ZodNumber>;
3797
+ reason: z.ZodOptional<z.ZodString>;
3798
+ timed_out: z.ZodOptional<z.ZodBoolean>;
3799
+ }, z.core.$strip>;
3800
+ readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
3801
+ event: z.ZodLiteral<"progress">;
3802
+ data: z.ZodObject<{
3803
+ phase: z.ZodEnum<{
3804
+ started: "started";
3805
+ draining: "draining";
3806
+ }>;
3807
+ }, z.core.$strip>;
3808
+ }, z.core.$strip>], "event">;
3809
+ };
3810
+ readonly 'gateway.restart': {
3811
+ readonly params: z.ZodObject<{
3812
+ profile_home: z.ZodString;
3813
+ cli_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3814
+ quick_timeout_seconds: z.ZodOptional<z.ZodNumber>;
3815
+ background_wait_seconds: z.ZodOptional<z.ZodNumber>;
3816
+ }, z.core.$strip>;
3817
+ readonly result: z.ZodObject<{
3818
+ status: z.ZodEnum<{
2226
3819
  failed: "failed";
3820
+ completed: "completed";
2227
3821
  busy: "busy";
2228
3822
  }>;
2229
3823
  message: z.ZodString;
2230
3824
  detail: z.ZodOptional<z.ZodString>;
2231
3825
  returncode: z.ZodOptional<z.ZodNumber>;
3826
+ reason: z.ZodOptional<z.ZodString>;
3827
+ timed_out: z.ZodOptional<z.ZodBoolean>;
2232
3828
  }, z.core.$strip>;
2233
3829
  readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
2234
3830
  event: z.ZodLiteral<"progress">;
@@ -2240,4 +3836,21 @@ export declare const GATEWAY_METHODS: {
2240
3836
  }, z.core.$strip>;
2241
3837
  }, z.core.$strip>], "event">;
2242
3838
  };
3839
+ /** TAL-805: the gateway mode of the profile `name` at `profile_home`; the root profile (`is_default`) is the host itself. */
3840
+ readonly 'gateway.mode': {
3841
+ readonly params: z.ZodObject<{
3842
+ profile_home: z.ZodString;
3843
+ name: z.ZodString;
3844
+ is_default: z.ZodBoolean;
3845
+ }, z.core.$strip>;
3846
+ readonly result: z.ZodObject<{
3847
+ gateway_mode: z.ZodEnum<{
3848
+ stopped: "stopped";
3849
+ parked: "parked";
3850
+ own: "own";
3851
+ served: "served";
3852
+ standalone: "standalone";
3853
+ }>;
3854
+ }, z.core.$strip>;
3855
+ };
2243
3856
  };