@maudecode/talaria-web-contracts 1.19.0 → 1.21.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 (84) hide show
  1. package/dist/checkpoint.d.ts +78 -0
  2. package/dist/checkpoint.js +16 -0
  3. package/dist/checkpoint.js.map +1 -0
  4. package/dist/context-detail.d.ts +75 -0
  5. package/dist/context-detail.js +18 -0
  6. package/dist/context-detail.js.map +1 -0
  7. package/dist/gateway-session.d.ts +412 -9
  8. package/dist/gateway-session.js +85 -3
  9. package/dist/gateway-session.js.map +1 -1
  10. package/dist/index.d.ts +5 -0
  11. package/dist/index.js +5 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/mcp-cost-policy.d.ts +110 -0
  14. package/dist/mcp-cost-policy.js +24 -0
  15. package/dist/mcp-cost-policy.js.map +1 -0
  16. package/dist/outbound-drafts.d.ts +114 -0
  17. package/dist/outbound-drafts.js +20 -0
  18. package/dist/outbound-drafts.js.map +1 -0
  19. package/dist/prompt-queue.d.ts +96 -0
  20. package/dist/prompt-queue.js +19 -0
  21. package/dist/prompt-queue.js.map +1 -0
  22. package/dist/router.d.ts +3677 -156
  23. package/dist/routes/automation.d.ts +323 -2
  24. package/dist/routes/automation.js +17 -3
  25. package/dist/routes/automation.js.map +1 -1
  26. package/dist/routes/chat.d.ts +776 -26
  27. package/dist/routes/chat.js +4 -3
  28. package/dist/routes/chat.js.map +1 -1
  29. package/dist/routes/core.d.ts +6 -6
  30. package/dist/routes/git.d.ts +59 -0
  31. package/dist/routes/git.js +9 -3
  32. package/dist/routes/git.js.map +1 -1
  33. package/dist/routes/raw.js +9 -5
  34. package/dist/routes/raw.js.map +1 -1
  35. package/dist/routes/sessions.d.ts +2215 -87
  36. package/dist/routes/sessions.js +11 -0
  37. package/dist/routes/sessions.js.map +1 -1
  38. package/dist/routes/settings.d.ts +29 -13
  39. package/dist/routes/settings.js +3 -2
  40. package/dist/routes/settings.js.map +1 -1
  41. package/dist/routes/tools.d.ts +825 -37
  42. package/dist/routes/tools.js +33 -5
  43. package/dist/routes/tools.js.map +1 -1
  44. package/dist/routes/workspaces.d.ts +49 -4
  45. package/dist/routes/workspaces.js +5 -4
  46. package/dist/routes/workspaces.js.map +1 -1
  47. package/dist/sidecar/methods.d.ts +1122 -25
  48. package/dist/sidecar/methods.js +2 -2
  49. package/dist/sidecar/methods.js.map +1 -1
  50. package/dist/sidecar/namespaces.d.ts +1292 -39
  51. package/dist/sidecar/namespaces.js +120 -14
  52. package/dist/sidecar/namespaces.js.map +1 -1
  53. package/dist/sidecar/rpc.d.ts +1 -0
  54. package/dist/sidecar/rpc.js +2 -0
  55. package/dist/sidecar/rpc.js.map +1 -1
  56. package/dist/sidecar/runtime.d.ts +56 -0
  57. package/dist/sidecar/runtime.js +21 -2
  58. package/dist/sidecar/runtime.js.map +1 -1
  59. package/dist/sidecar/version.d.ts +1 -1
  60. package/dist/sidecar/version.js +1 -1
  61. package/dist/sse.d.ts +199 -10
  62. package/dist/sse.js +15 -4
  63. package/dist/sse.js.map +1 -1
  64. package/dist/views.d.ts +1597 -86
  65. package/dist/views.js +106 -21
  66. package/dist/views.js.map +1 -1
  67. package/fixtures/sidecar/aux.json +8 -0
  68. package/fixtures/sidecar/chat.json +14 -0
  69. package/fixtures/sidecar/checkpoints.json +7 -2
  70. package/fixtures/sidecar/context-detail.json +77 -0
  71. package/fixtures/sidecar/cron.json +3 -1
  72. package/fixtures/sidecar/dashboard_plugins.json +59 -0
  73. package/fixtures/sidecar/gateway.json +208 -0
  74. package/fixtures/sidecar/kanban.json +197 -0
  75. package/fixtures/sidecar/managed-buffers.json +16 -0
  76. package/fixtures/sidecar/mcp.json +12 -0
  77. package/fixtures/sidecar/outbound-drafts.json +1 -0
  78. package/fixtures/sidecar/plugin-catalog.json +4 -0
  79. package/fixtures/sidecar/plugins.json +56 -1
  80. package/fixtures/sidecar/process.json +32 -0
  81. package/fixtures/sidecar/rpc.json +4 -0
  82. package/fixtures/sidecar/runtime.json +3 -3
  83. package/fixtures/sidecar/state_db.json +10 -0
  84. package/package.json +1 -1
@@ -237,8 +237,8 @@ export declare const CommandSchema: z.ZodObject<{
237
237
  gateway_only: z.ZodBoolean;
238
238
  exec: z.ZodBoolean;
239
239
  prompt: z.ZodNullable<z.ZodEnum<{
240
- expand: "expand";
241
240
  unsupported: "unsupported";
241
+ expand: "expand";
242
242
  }>>;
243
243
  }, z.core.$strip>;
244
244
  /**
@@ -270,6 +270,93 @@ export declare const PluginSettingFieldSchema: z.ZodObject<{
270
270
  has_value: z.ZodOptional<z.ZodBoolean>;
271
271
  }, z.core.$strip>;
272
272
  export type PluginSettingField = z.infer<typeof PluginSettingFieldSchema>;
273
+ /** Persistence succeeded; this separately describes application to live plugin MCP connections. */
274
+ export declare const PluginRuntimeApplicationSchema: z.ZodEnum<{
275
+ unknown: "unknown";
276
+ applied: "applied";
277
+ restart_required: "restart_required";
278
+ }>;
279
+ /** TAL-1276: one OAuth client a plugin manifest declares, its grant's state as `hermes auth status` maps it, and the hosts the code is approved at and exchanged at. */
280
+ export declare const PluginOAuthStateSchema: z.ZodEnum<{
281
+ signed_in: "signed_in";
282
+ sign_in_needed: "sign_in_needed";
283
+ revoked: "revoked";
284
+ logged_out: "logged_out";
285
+ }>;
286
+ export declare const PluginOAuthClientSchema: z.ZodObject<{
287
+ id: z.ZodString;
288
+ state: z.ZodEnum<{
289
+ signed_in: "signed_in";
290
+ sign_in_needed: "sign_in_needed";
291
+ revoked: "revoked";
292
+ logged_out: "logged_out";
293
+ }>;
294
+ authorize_host: z.ZodString;
295
+ token_host: z.ZodString;
296
+ }, z.core.$strip>;
297
+ export type PluginOAuthClient = z.infer<typeof PluginOAuthClientSchema>;
298
+ export declare const PluginUpdateResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
299
+ key: z.ZodString;
300
+ status: z.ZodLiteral<"updated">;
301
+ }, z.core.$strip>, z.ZodObject<{
302
+ key: z.ZodString;
303
+ status: z.ZodLiteral<"needs_consent">;
304
+ verdict: z.ZodLiteral<"caution">;
305
+ findings: z.ZodString;
306
+ consent_token: z.ZodString;
307
+ }, z.core.$strip>, z.ZodObject<{
308
+ key: z.ZodString;
309
+ status: z.ZodLiteral<"blocked">;
310
+ verdict: z.ZodString;
311
+ findings: z.ZodString;
312
+ }, z.core.$strip>], "status">;
313
+ export type PluginUpdateResult = z.infer<typeof PluginUpdateResultSchema>;
314
+ export declare const PluginCatalogQuerySchema: z.ZodObject<{
315
+ query: z.ZodDefault<z.ZodString>;
316
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
317
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
318
+ }, z.core.$strip>;
319
+ export declare const PluginInstallInputSchema: z.ZodObject<{
320
+ name: z.ZodString;
321
+ consent_token: z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strip>;
323
+ export declare const PluginCatalogSchema: z.ZodObject<{
324
+ supported: z.ZodBoolean;
325
+ read_only: z.ZodOptional<z.ZodBoolean>;
326
+ entries: z.ZodArray<z.ZodObject<{
327
+ name: z.ZodString;
328
+ title: z.ZodString;
329
+ description: z.ZodString;
330
+ repo: z.ZodString;
331
+ sha: z.ZodString;
332
+ tier: z.ZodString;
333
+ category: z.ZodString;
334
+ requirements: z.ZodArray<z.ZodString>;
335
+ installed_key: z.ZodNullable<z.ZodString>;
336
+ installed_sha: z.ZodNullable<z.ZodString>;
337
+ can_install: z.ZodBoolean;
338
+ refusal: z.ZodNullable<z.ZodString>;
339
+ }, z.core.$strip>>;
340
+ total: z.ZodNumber;
341
+ next_offset: z.ZodNullable<z.ZodNumber>;
342
+ }, z.core.$strip>;
343
+ export declare const PluginInstallResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ name: z.ZodString;
345
+ key: z.ZodString;
346
+ status: z.ZodLiteral<"installed">;
347
+ enabled: z.ZodLiteral<false>;
348
+ }, z.core.$strip>, z.ZodObject<{
349
+ name: z.ZodString;
350
+ status: z.ZodLiteral<"needs_consent">;
351
+ findings: z.ZodString;
352
+ consent_token: z.ZodString;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ name: z.ZodString;
355
+ status: z.ZodLiteral<"blocked">;
356
+ findings: z.ZodString;
357
+ }, z.core.$strip>], "status">;
358
+ export type PluginInstallResult = z.infer<typeof PluginInstallResultSchema>;
359
+ export type PluginCatalog = z.infer<typeof PluginCatalogSchema>;
273
360
  export declare const PluginProviderSchema: z.ZodObject<{
274
361
  name: z.ZodString;
275
362
  display_name: z.ZodString;
@@ -282,6 +369,21 @@ export declare const PluginProviderSchema: z.ZodObject<{
282
369
  not_loaded: "not_loaded";
283
370
  }>;
284
371
  }, z.core.$strip>;
372
+ /** Profile-owned Agent dashboards use Web protocol panels; native Desktop bundles need migration. */
373
+ export declare const AgentDashboardPluginSchema: z.ZodObject<{
374
+ name: z.ZodString;
375
+ label: z.ZodString;
376
+ version: z.ZodString;
377
+ description: z.ZodString;
378
+ enabled: z.ZodBoolean;
379
+ panel: z.ZodNullable<z.ZodString>;
380
+ has_api: z.ZodBoolean;
381
+ }, z.core.$strip>;
382
+ export declare const AgentDashboardResponseSchema: z.ZodObject<{
383
+ status: z.ZodNumber;
384
+ body: z.ZodString;
385
+ content_type: z.ZodString;
386
+ }, z.core.$strip>;
285
387
  /** A skill bundle: `/<name>` loads its `skill_count` skills in one message (TAL-265). */
286
388
  export declare const CommandBundleSchema: z.ZodObject<{
287
389
  name: z.ZodString;
@@ -297,7 +399,67 @@ export declare const CommandBundleInvocationSchema: z.ZodObject<{
297
399
  loaded_skills: z.ZodArray<z.ZodString>;
298
400
  missing_skills: z.ZodArray<z.ZodString>;
299
401
  }, z.core.$strip>;
402
+ export declare const MAX_MANAGED_BUFFER_BYTES: number;
300
403
  export declare const COMMANDS_METHODS: {
404
+ readonly 'drafts.review': {
405
+ readonly params: z.ZodObject<{
406
+ draft_id: z.ZodString;
407
+ card: z.ZodNumber;
408
+ profile_home: z.ZodString;
409
+ session_id: z.ZodString;
410
+ action: z.ZodEnum<{
411
+ edit: "edit";
412
+ approve: "approve";
413
+ read: "read";
414
+ }>;
415
+ version: z.ZodOptional<z.ZodNumber>;
416
+ revision: z.ZodOptional<z.ZodString>;
417
+ fields: z.ZodOptional<z.ZodObject<{
418
+ from: z.ZodString;
419
+ to: z.ZodArray<z.ZodString>;
420
+ cc: z.ZodArray<z.ZodString>;
421
+ bcc: z.ZodArray<z.ZodString>;
422
+ subject: z.ZodString;
423
+ body: z.ZodString;
424
+ }, z.core.$strip>>;
425
+ }, z.core.$strip>;
426
+ readonly result: z.ZodObject<{
427
+ draft: z.ZodNullable<z.ZodObject<{
428
+ draft_id: z.ZodString;
429
+ card: z.ZodNumber;
430
+ producer: z.ZodLiteral<"draft-cards">;
431
+ producer_revision: z.ZodString;
432
+ kind: z.ZodEnum<{
433
+ message: "message";
434
+ email: "email";
435
+ }>;
436
+ platform: z.ZodString;
437
+ version: z.ZodNumber;
438
+ revision: z.ZodString;
439
+ fields: z.ZodObject<{
440
+ from: z.ZodString;
441
+ to: z.ZodArray<z.ZodString>;
442
+ cc: z.ZodArray<z.ZodString>;
443
+ bcc: z.ZodArray<z.ZodString>;
444
+ subject: z.ZodString;
445
+ body: z.ZodString;
446
+ }, z.core.$strip>;
447
+ state: z.ZodEnum<{
448
+ unavailable: "unavailable";
449
+ draft: "draft";
450
+ approved: "approved";
451
+ sent: "sent";
452
+ saved: "saved";
453
+ failed: "failed";
454
+ discarded: "discarded";
455
+ superseded: "superseded";
456
+ }>;
457
+ can_edit: z.ZodBoolean;
458
+ can_approve: z.ZodBoolean;
459
+ masked: z.ZodBoolean;
460
+ }, z.core.$strip>>;
461
+ }, z.core.$strip>;
462
+ };
301
463
  readonly 'commands.registry': {
302
464
  readonly params: z.ZodObject<{
303
465
  profile_home: z.ZodString;
@@ -314,13 +476,16 @@ export declare const COMMANDS_METHODS: {
314
476
  gateway_only: z.ZodBoolean;
315
477
  exec: z.ZodBoolean;
316
478
  prompt: z.ZodNullable<z.ZodEnum<{
317
- expand: "expand";
318
479
  unsupported: "unsupported";
480
+ expand: "expand";
319
481
  }>>;
320
482
  }, z.core.$strip>>;
321
483
  }, z.core.$strip>;
322
484
  };
323
- /** With `session_id`, a plugin command runs under that chat's session binding and `workspace` (TAL-904). */
485
+ /**
486
+ * With `session_id`, a plugin command runs under that chat's session binding and `workspace` (TAL-904) and receives the session
487
+ * as its handler declares it; every recognised command fires the Agent's `pre_command` hook with that session (TAL-1267).
488
+ */
324
489
  readonly 'commands.exec': {
325
490
  readonly params: z.ZodObject<{
326
491
  profile_home: z.ZodString;
@@ -339,12 +504,13 @@ export declare const COMMANDS_METHODS: {
339
504
  /**
340
505
  * `/<prompt built-in> [args]` as the turn text (`message`) the Agent's builder writes for the session's profile, workspace and toolsets.
341
506
  * `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`.
507
+ * A failing builder errors `prompt_expand_failed`. Every built-in fires the Agent's `pre_command` hook with `session_id` (TAL-1279).
343
508
  */
344
509
  readonly 'commands.expand_prompt': {
345
510
  readonly params: z.ZodObject<{
346
511
  profile_home: z.ZodString;
347
512
  command: z.ZodString;
513
+ session_id: z.ZodOptional<z.ZodString>;
348
514
  workspace: z.ZodString;
349
515
  enabled_toolsets: z.ZodNullable<z.ZodArray<z.ZodString>>;
350
516
  }, z.core.$strip>;
@@ -388,6 +554,90 @@ export declare const COMMANDS_METHODS: {
388
554
  moa: z.ZodRecord<z.ZodString, z.ZodUnknown>;
389
555
  }, z.core.$strip>;
390
556
  };
557
+ /** Fixed devkit buffer adapter. No arbitrary HTTP paths, promotion or cleanup. Native saves are unconditional. */
558
+ readonly 'plugins.buffers': {
559
+ readonly params: z.ZodObject<{
560
+ profile_home: z.ZodString;
561
+ action: z.ZodEnum<{
562
+ read: "read";
563
+ list: "list";
564
+ save: "save";
565
+ }>;
566
+ session_id: z.ZodString;
567
+ name: z.ZodOptional<z.ZodString>;
568
+ content: z.ZodOptional<z.ZodString>;
569
+ }, z.core.$strip>;
570
+ readonly result: z.ZodObject<{
571
+ supported: z.ZodBoolean;
572
+ buffers: z.ZodArray<z.ZodObject<{
573
+ name: z.ZodString;
574
+ size: z.ZodNumber;
575
+ read_only: z.ZodBoolean;
576
+ }, z.core.$strip>>;
577
+ content: z.ZodOptional<z.ZodString>;
578
+ size: z.ZodOptional<z.ZodNumber>;
579
+ read_only: z.ZodOptional<z.ZodBoolean>;
580
+ write_semantics: z.ZodLiteral<"unconditional">;
581
+ }, z.core.$strip>;
582
+ };
583
+ readonly 'plugins.dashboard_list': {
584
+ readonly params: z.ZodObject<{
585
+ profile_home: z.ZodString;
586
+ }, z.core.$strip>;
587
+ readonly result: z.ZodObject<{
588
+ supported: z.ZodBoolean;
589
+ plugins: z.ZodArray<z.ZodObject<{
590
+ name: z.ZodString;
591
+ label: z.ZodString;
592
+ version: z.ZodString;
593
+ description: z.ZodString;
594
+ enabled: z.ZodBoolean;
595
+ panel: z.ZodNullable<z.ZodString>;
596
+ has_api: z.ZodBoolean;
597
+ }, z.core.$strip>>;
598
+ }, z.core.$strip>;
599
+ };
600
+ readonly 'plugins.dashboard_toggle': {
601
+ readonly params: z.ZodObject<{
602
+ profile_home: z.ZodString;
603
+ name: z.ZodString;
604
+ enabled: z.ZodBoolean;
605
+ }, z.core.$strip>;
606
+ readonly result: z.ZodObject<{
607
+ ok: z.ZodLiteral<true>;
608
+ }, z.core.$strip>;
609
+ };
610
+ readonly 'plugins.dashboard_asset': {
611
+ readonly params: z.ZodObject<{
612
+ profile_home: z.ZodString;
613
+ name: z.ZodString;
614
+ path: z.ZodString;
615
+ }, z.core.$strip>;
616
+ readonly result: z.ZodObject<{
617
+ status: z.ZodNumber;
618
+ body: z.ZodString;
619
+ content_type: z.ZodString;
620
+ }, z.core.$strip>;
621
+ };
622
+ /** Buffered HTTP only. Cancellation abandons the result; the Agent has no handler-cancel operation. */
623
+ readonly 'plugins.dashboard_request': {
624
+ readonly params: z.ZodObject<{
625
+ profile_home: z.ZodString;
626
+ name: z.ZodString;
627
+ path: z.ZodString;
628
+ method: z.ZodString;
629
+ query: z.ZodString;
630
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
631
+ body: z.ZodString;
632
+ authenticated: z.ZodBoolean;
633
+ websocket: z.ZodBoolean;
634
+ }, z.core.$strip>;
635
+ readonly result: z.ZodObject<{
636
+ status: z.ZodNumber;
637
+ body: z.ZodString;
638
+ content_type: z.ZodString;
639
+ }, z.core.$strip>;
640
+ };
391
641
  readonly 'plugins.providers': {
392
642
  readonly params: z.ZodObject<{
393
643
  profile_home: z.ZodString;
@@ -423,10 +673,85 @@ export declare const COMMANDS_METHODS: {
423
673
  activation: z.ZodString;
424
674
  hooks: z.ZodArray<z.ZodString>;
425
675
  is_active_provider: z.ZodOptional<z.ZodBoolean>;
676
+ update_available: z.ZodOptional<z.ZodBoolean>;
677
+ latest_revision: z.ZodOptional<z.ZodString>;
426
678
  }, z.core.$strip>>;
427
679
  supported_hooks: z.ZodArray<z.ZodString>;
428
680
  }, z.core.$strip>;
429
681
  };
682
+ readonly 'plugins.catalog': {
683
+ readonly params: z.ZodObject<{
684
+ profile_home: z.ZodString;
685
+ query: z.ZodDefault<z.ZodString>;
686
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
687
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
688
+ }, z.core.$strip>;
689
+ readonly result: z.ZodObject<{
690
+ supported: z.ZodBoolean;
691
+ read_only: z.ZodOptional<z.ZodBoolean>;
692
+ entries: z.ZodArray<z.ZodObject<{
693
+ name: z.ZodString;
694
+ title: z.ZodString;
695
+ description: z.ZodString;
696
+ repo: z.ZodString;
697
+ sha: z.ZodString;
698
+ tier: z.ZodString;
699
+ category: z.ZodString;
700
+ requirements: z.ZodArray<z.ZodString>;
701
+ installed_key: z.ZodNullable<z.ZodString>;
702
+ installed_sha: z.ZodNullable<z.ZodString>;
703
+ can_install: z.ZodBoolean;
704
+ refusal: z.ZodNullable<z.ZodString>;
705
+ }, z.core.$strip>>;
706
+ total: z.ZodNumber;
707
+ next_offset: z.ZodNullable<z.ZodNumber>;
708
+ }, z.core.$strip>;
709
+ };
710
+ readonly 'plugins.install': {
711
+ readonly params: z.ZodObject<{
712
+ profile_home: z.ZodString;
713
+ name: z.ZodString;
714
+ consent_token: z.ZodOptional<z.ZodString>;
715
+ }, z.core.$strip>;
716
+ readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
717
+ name: z.ZodString;
718
+ key: z.ZodString;
719
+ status: z.ZodLiteral<"installed">;
720
+ enabled: z.ZodLiteral<false>;
721
+ }, z.core.$strip>, z.ZodObject<{
722
+ name: z.ZodString;
723
+ status: z.ZodLiteral<"needs_consent">;
724
+ findings: z.ZodString;
725
+ consent_token: z.ZodString;
726
+ }, z.core.$strip>, z.ZodObject<{
727
+ name: z.ZodString;
728
+ status: z.ZodLiteral<"blocked">;
729
+ findings: z.ZodString;
730
+ }, z.core.$strip>], "status">;
731
+ };
732
+ readonly 'plugins.update': {
733
+ readonly params: z.ZodObject<{
734
+ profile_home: z.ZodString;
735
+ key: z.ZodString;
736
+ accept_caution: z.ZodOptional<z.ZodBoolean>;
737
+ consent_token: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$strip>;
739
+ readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{
740
+ key: z.ZodString;
741
+ status: z.ZodLiteral<"updated">;
742
+ }, z.core.$strip>, z.ZodObject<{
743
+ key: z.ZodString;
744
+ status: z.ZodLiteral<"needs_consent">;
745
+ verdict: z.ZodLiteral<"caution">;
746
+ findings: z.ZodString;
747
+ consent_token: z.ZodString;
748
+ }, z.core.$strip>, z.ZodObject<{
749
+ key: z.ZodString;
750
+ status: z.ZodLiteral<"blocked">;
751
+ verdict: z.ZodString;
752
+ findings: z.ZodString;
753
+ }, z.core.$strip>], "status">;
754
+ };
430
755
  /** TAL-820: each profile's `plugins.isolation` and installed third-party plugin count, read without loading a plugin. */
431
756
  readonly 'plugins.isolation': {
432
757
  readonly params: z.ZodObject<{
@@ -474,6 +799,46 @@ export declare const COMMANDS_METHODS: {
474
799
  }, z.core.$strip>>;
475
800
  }, z.core.$strip>;
476
801
  };
802
+ /**
803
+ * TAL-1276: plugins whose manifest declares OAuth clients (Agent v0.22.3+), each client's sign-in state as
804
+ * `hermes auth status <plugin>:<id>` reports it, and the hosts the CLI names before signing in: the code is approved
805
+ * at `authorize_host` and exchanged at `token_host`. `supported` is false on an Agent without the plugin OAuth helpers.
806
+ */
807
+ readonly 'plugins.oauth_status': {
808
+ readonly params: z.ZodObject<{
809
+ profile_home: z.ZodString;
810
+ }, z.core.$strip>;
811
+ readonly result: z.ZodObject<{
812
+ supported: z.ZodBoolean;
813
+ plugins: z.ZodArray<z.ZodObject<{
814
+ key: z.ZodString;
815
+ clients: z.ZodArray<z.ZodObject<{
816
+ id: z.ZodString;
817
+ state: z.ZodEnum<{
818
+ signed_in: "signed_in";
819
+ sign_in_needed: "sign_in_needed";
820
+ revoked: "revoked";
821
+ logged_out: "logged_out";
822
+ }>;
823
+ authorize_host: z.ZodString;
824
+ token_host: z.ZodString;
825
+ }, z.core.$strip>>;
826
+ }, z.core.$strip>>;
827
+ }, z.core.$strip>;
828
+ };
829
+ /** TAL-1276: `hermes auth logout <plugin>:<id>`; `removed` is false when no grant was stored. Errors `oauth_unsupported` on older Agents. */
830
+ readonly 'plugins.oauth_logout': {
831
+ readonly params: z.ZodObject<{
832
+ profile_home: z.ZodString;
833
+ key: z.ZodString;
834
+ id: z.ZodString;
835
+ }, z.core.$strip>;
836
+ readonly result: z.ZodObject<{
837
+ key: z.ZodString;
838
+ id: z.ZodString;
839
+ removed: z.ZodBoolean;
840
+ }, z.core.$strip>;
841
+ };
477
842
  /**
478
843
  * TAL-806: write non-secret `values` through the Agent's locked plugin-state writer and return the refreshed fields.
479
844
  * An undeclared key, a secret or a type mismatch is invalid params; a managed install or key errors `plugin_settings_managed`.
@@ -509,6 +874,11 @@ export declare const COMMANDS_METHODS: {
509
874
  env: z.ZodOptional<z.ZodString>;
510
875
  has_value: z.ZodOptional<z.ZodBoolean>;
511
876
  }, z.core.$strip>>;
877
+ runtime_application: z.ZodOptional<z.ZodEnum<{
878
+ unknown: "unknown";
879
+ applied: "applied";
880
+ restart_required: "restart_required";
881
+ }>>;
512
882
  }, z.core.$strip>;
513
883
  };
514
884
  };
@@ -587,7 +957,81 @@ export declare const KanbanBoardMetaSchema: z.ZodObject<{
587
957
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
958
  archived: z.ZodOptional<z.ZodBoolean>;
589
959
  }, z.core.$catchall<z.ZodUnknown>>;
960
+ export declare const KanbanInspectionEdgeSchema: z.ZodObject<{
961
+ source: z.ZodString;
962
+ target: z.ZodString;
963
+ }, z.core.$strip>;
964
+ export declare const KanbanInspectionNodeSchema: z.ZodObject<{
965
+ key: z.ZodString;
966
+ board: z.ZodString;
967
+ board_name: z.ZodString;
968
+ task: z.ZodObject<{
969
+ id: z.ZodString;
970
+ title: z.ZodString;
971
+ status: z.ZodString;
972
+ priority: z.ZodNumber;
973
+ claim_live: z.ZodBoolean;
974
+ has_completion_evidence: z.ZodBoolean;
975
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
976
+ current_run_started_at: z.ZodNullable<z.ZodNumber>;
977
+ }, z.core.$catchall<z.ZodUnknown>>;
978
+ }, z.core.$strip>;
979
+ export declare const KanbanInspectionSnapshotSchema: z.ZodObject<{
980
+ nodes: z.ZodArray<z.ZodObject<{
981
+ key: z.ZodString;
982
+ board: z.ZodString;
983
+ board_name: z.ZodString;
984
+ task: z.ZodObject<{
985
+ id: z.ZodString;
986
+ title: z.ZodString;
987
+ status: z.ZodString;
988
+ priority: z.ZodNumber;
989
+ claim_live: z.ZodBoolean;
990
+ has_completion_evidence: z.ZodBoolean;
991
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
992
+ current_run_started_at: z.ZodNullable<z.ZodNumber>;
993
+ }, z.core.$catchall<z.ZodUnknown>>;
994
+ }, z.core.$strip>>;
995
+ edges: z.ZodArray<z.ZodObject<{
996
+ source: z.ZodString;
997
+ target: z.ZodString;
998
+ }, z.core.$strip>>;
999
+ generated_at: z.ZodNumber;
1000
+ truncated: z.ZodBoolean;
1001
+ read_only: z.ZodBoolean;
1002
+ }, z.core.$strip>;
590
1003
  export declare const KANBAN_METHODS: {
1004
+ readonly 'kanban.inspection': {
1005
+ readonly params: z.ZodObject<{
1006
+ profile_home: z.ZodString;
1007
+ board: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1008
+ include_archived: z.ZodOptional<z.ZodBoolean>;
1009
+ }, z.core.$strip>;
1010
+ readonly result: z.ZodObject<{
1011
+ nodes: z.ZodArray<z.ZodObject<{
1012
+ key: z.ZodString;
1013
+ board: z.ZodString;
1014
+ board_name: z.ZodString;
1015
+ task: z.ZodObject<{
1016
+ id: z.ZodString;
1017
+ title: z.ZodString;
1018
+ status: z.ZodString;
1019
+ priority: z.ZodNumber;
1020
+ claim_live: z.ZodBoolean;
1021
+ has_completion_evidence: z.ZodBoolean;
1022
+ agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
1023
+ current_run_started_at: z.ZodNullable<z.ZodNumber>;
1024
+ }, z.core.$catchall<z.ZodUnknown>>;
1025
+ }, z.core.$strip>>;
1026
+ edges: z.ZodArray<z.ZodObject<{
1027
+ source: z.ZodString;
1028
+ target: z.ZodString;
1029
+ }, z.core.$strip>>;
1030
+ generated_at: z.ZodNumber;
1031
+ truncated: z.ZodBoolean;
1032
+ read_only: z.ZodBoolean;
1033
+ }, z.core.$strip>;
1034
+ };
591
1035
  readonly 'kanban.board': {
592
1036
  readonly params: z.ZodObject<{
593
1037
  profile_home: z.ZodString;
@@ -1035,6 +1479,21 @@ export declare const STATE_DB_METHODS: {
1035
1479
  ok: z.ZodBoolean;
1036
1480
  }, z.core.$strip>;
1037
1481
  };
1482
+ /**
1483
+ * TAL-1274: the Agent's low-disk session auto-prune question for the profile (Agent v0.22.3 `hermes_cli.prune_advisor`), as the
1484
+ * Agent's own `lines` naming `/autoprune on|off|later`; null while the Agent would not ask (disk not low, `sessions.auto_prune`
1485
+ * set, or snoozed) or has no advisor. May measure state.db, which takes seconds on a large store.
1486
+ */
1487
+ readonly 'state_db.prune_advice': {
1488
+ readonly params: z.ZodObject<{
1489
+ profile_home: z.ZodString;
1490
+ }, z.core.$strip>;
1491
+ readonly result: z.ZodObject<{
1492
+ advice: z.ZodNullable<z.ZodObject<{
1493
+ lines: z.ZodArray<z.ZodString>;
1494
+ }, z.core.$strip>>;
1495
+ }, z.core.$strip>;
1496
+ };
1038
1497
  };
1039
1498
  /** TAL-213: the profile's canonical Bot Chat (its session titled exactly "Bot Chat") and that chat's live compression tip. */
1040
1499
  export declare const CanonicalBotChatSchema: z.ZodObject<{
@@ -1186,9 +1645,9 @@ export declare const SkillCatalogIdentitySchema: z.ZodObject<{
1186
1645
  load_name: z.ZodOptional<z.ZodString>;
1187
1646
  declared_name: z.ZodOptional<z.ZodString>;
1188
1647
  status: z.ZodOptional<z.ZodEnum<{
1648
+ shadowed: "shadowed";
1189
1649
  unique: "unique";
1190
1650
  ambiguous: "ambiguous";
1191
- shadowed: "shadowed";
1192
1651
  }>>;
1193
1652
  tier: z.ZodOptional<z.ZodNumber>;
1194
1653
  }, z.core.$strip>;
@@ -1196,9 +1655,9 @@ export declare const SkillRowSchema: z.ZodObject<{
1196
1655
  load_name: z.ZodOptional<z.ZodString>;
1197
1656
  declared_name: z.ZodOptional<z.ZodString>;
1198
1657
  status: z.ZodOptional<z.ZodEnum<{
1658
+ shadowed: "shadowed";
1199
1659
  unique: "unique";
1200
1660
  ambiguous: "ambiguous";
1201
- shadowed: "shadowed";
1202
1661
  }>>;
1203
1662
  tier: z.ZodOptional<z.ZodNumber>;
1204
1663
  name: z.ZodString;
@@ -1237,9 +1696,9 @@ export declare const SKILLS_METHODS: {
1237
1696
  load_name: z.ZodOptional<z.ZodString>;
1238
1697
  declared_name: z.ZodOptional<z.ZodString>;
1239
1698
  status: z.ZodOptional<z.ZodEnum<{
1699
+ shadowed: "shadowed";
1240
1700
  unique: "unique";
1241
1701
  ambiguous: "ambiguous";
1242
- shadowed: "shadowed";
1243
1702
  }>>;
1244
1703
  tier: z.ZodOptional<z.ZodNumber>;
1245
1704
  name: z.ZodString;
@@ -1293,6 +1752,61 @@ export declare const SKILLS_METHODS: {
1293
1752
  };
1294
1753
  };
1295
1754
  export declare const MCP_METHODS: {
1755
+ readonly 'mcp.cost_policies': {
1756
+ readonly params: z.ZodObject<{
1757
+ profile_home: z.ZodString;
1758
+ servers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1759
+ }, z.core.$strip>;
1760
+ readonly result: z.ZodObject<{
1761
+ supported: z.ZodBoolean;
1762
+ policies: z.ZodArray<z.ZodObject<{
1763
+ name: z.ZodString;
1764
+ source: z.ZodEnum<{
1765
+ native: "native";
1766
+ package: "package";
1767
+ native_override: "native_override";
1768
+ }>;
1769
+ valid: z.ZodBoolean;
1770
+ can_edit: z.ZodBoolean;
1771
+ error: z.ZodNullable<z.ZodString>;
1772
+ package_revision: z.ZodString;
1773
+ overrides: z.ZodObject<{
1774
+ tool_costs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>, z.ZodObject<{
1775
+ credits: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
1776
+ note: z.ZodOptional<z.ZodString>;
1777
+ }, z.core.$strict>]>>>;
1778
+ spend_limit: z.ZodNullable<z.ZodNumber>;
1779
+ cost_unit: z.ZodNullable<z.ZodString>;
1780
+ }, z.core.$strip>;
1781
+ tool_costs: z.ZodArray<z.ZodObject<{
1782
+ name: z.ZodString;
1783
+ low: z.ZodNumber;
1784
+ high: z.ZodNumber;
1785
+ note: z.ZodString;
1786
+ }, z.core.$strip>>;
1787
+ spend_limit: z.ZodNumber;
1788
+ cost_unit: z.ZodString;
1789
+ budget_enabled: z.ZodBoolean;
1790
+ field_sources: z.ZodObject<{
1791
+ tool_costs: z.ZodEnum<{
1792
+ default: "default";
1793
+ native: "native";
1794
+ package: "package";
1795
+ }>;
1796
+ spend_limit: z.ZodEnum<{
1797
+ default: "default";
1798
+ native: "native";
1799
+ package: "package";
1800
+ }>;
1801
+ cost_unit: z.ZodEnum<{
1802
+ default: "default";
1803
+ native: "native";
1804
+ package: "package";
1805
+ }>;
1806
+ }, z.core.$strip>;
1807
+ }, z.core.$strip>>;
1808
+ }, z.core.$strip>;
1809
+ };
1296
1810
  readonly 'mcp.status': {
1297
1811
  readonly params: z.ZodObject<{
1298
1812
  profile_home: z.ZodString;
@@ -1348,11 +1862,11 @@ export declare const ConnectorOperationTargetSchema: z.ZodObject<{
1348
1862
  kind: z.ZodString;
1349
1863
  state: z.ZodEnum<{
1350
1864
  pending: "pending";
1865
+ expired: "expired";
1351
1866
  skipped: "skipped";
1867
+ failed: "failed";
1352
1868
  initiated: "initiated";
1353
1869
  connected: "connected";
1354
- failed: "failed";
1355
- expired: "expired";
1356
1870
  not_connected: "not_connected";
1357
1871
  }>;
1358
1872
  detail: z.ZodString;
@@ -1378,11 +1892,11 @@ export declare const ConnectorOperationSnapshotSchema: z.ZodObject<{
1378
1892
  kind: z.ZodString;
1379
1893
  state: z.ZodEnum<{
1380
1894
  pending: "pending";
1895
+ expired: "expired";
1381
1896
  skipped: "skipped";
1897
+ failed: "failed";
1382
1898
  initiated: "initiated";
1383
1899
  connected: "connected";
1384
- failed: "failed";
1385
- expired: "expired";
1386
1900
  not_connected: "not_connected";
1387
1901
  }>;
1388
1902
  detail: z.ZodString;
@@ -1555,11 +2069,11 @@ export declare const CONNECTORS_METHODS: {
1555
2069
  kind: z.ZodString;
1556
2070
  state: z.ZodEnum<{
1557
2071
  pending: "pending";
2072
+ expired: "expired";
1558
2073
  skipped: "skipped";
2074
+ failed: "failed";
1559
2075
  initiated: "initiated";
1560
2076
  connected: "connected";
1561
- failed: "failed";
1562
- expired: "expired";
1563
2077
  not_connected: "not_connected";
1564
2078
  }>;
1565
2079
  detail: z.ZodString;
@@ -1591,11 +2105,11 @@ export declare const CONNECTORS_METHODS: {
1591
2105
  kind: z.ZodString;
1592
2106
  state: z.ZodEnum<{
1593
2107
  pending: "pending";
2108
+ expired: "expired";
1594
2109
  skipped: "skipped";
2110
+ failed: "failed";
1595
2111
  initiated: "initiated";
1596
2112
  connected: "connected";
1597
- failed: "failed";
1598
- expired: "expired";
1599
2113
  not_connected: "not_connected";
1600
2114
  }>;
1601
2115
  detail: z.ZodString;
@@ -1615,8 +2129,8 @@ export declare const CONNECTORS_METHODS: {
1615
2129
  op_id: z.ZodString;
1616
2130
  action: z.ZodEnum<{
1617
2131
  retry: "retry";
1618
- skip: "skip";
1619
2132
  approve: "approve";
2133
+ skip: "skip";
1620
2134
  continue: "continue";
1621
2135
  }>;
1622
2136
  target: z.ZodOptional<z.ZodString>;
@@ -1635,11 +2149,11 @@ export declare const CONNECTORS_METHODS: {
1635
2149
  kind: z.ZodString;
1636
2150
  state: z.ZodEnum<{
1637
2151
  pending: "pending";
2152
+ expired: "expired";
1638
2153
  skipped: "skipped";
2154
+ failed: "failed";
1639
2155
  initiated: "initiated";
1640
2156
  connected: "connected";
1641
- failed: "failed";
1642
- expired: "expired";
1643
2157
  not_connected: "not_connected";
1644
2158
  }>;
1645
2159
  detail: z.ZodString;
@@ -2068,7 +2582,9 @@ export declare const CRON_METHODS: {
2068
2582
  }, z.core.$strip>;
2069
2583
  };
2070
2584
  readonly 'cron.delivery_options': {
2071
- readonly params: z.ZodObject<{}, z.core.$strip>;
2585
+ readonly params: z.ZodObject<{
2586
+ profile_home: z.ZodString;
2587
+ }, z.core.$strip>;
2072
2588
  readonly result: z.ZodObject<{
2073
2589
  platforms: z.ZodArray<z.ZodObject<{
2074
2590
  value: z.ZodString;
@@ -2238,12 +2754,18 @@ export declare const PROVIDERS_METHODS: {
2238
2754
  * `oauth.start` answers the code to show; a sidecar thread polls the provider and writes the credential through the
2239
2755
  * Agent's own auth store. A flow belongs to the profile home that started it: poll and cancel from another home do not
2240
2756
  * find it. `error` is the Agent's reason for a flow that ended without a credential.
2757
+ *
2758
+ * TAL-1276: provider `plugin:<key>:<id>` is the browser sign-in of a plugin-declared OAuth client. Its start has no
2759
+ * `user_code`; `verification_url` is the authorize link, `redirect_uri` the loopback address the browser is sent back
2760
+ * to, and `authorize_host`/`token_host` the hosts the code goes to. It finishes when that redirect reaches the sidecar's
2761
+ * listener or through `oauth.submit_redirect` with the address the browser showed (`oauth_redirect_invalid` for any
2762
+ * other address, `oauth_flow_ended` once the flow ended).
2241
2763
  */
2242
2764
  export declare const OAuthFlowStatusSchema: z.ZodEnum<{
2243
2765
  error: "error";
2244
2766
  pending: "pending";
2245
- cancelled: "cancelled";
2246
2767
  expired: "expired";
2768
+ cancelled: "cancelled";
2247
2769
  approved: "approved";
2248
2770
  denied: "denied";
2249
2771
  }>;
@@ -2257,10 +2779,13 @@ export declare const OAUTH_METHODS: {
2257
2779
  flow_id: z.ZodString;
2258
2780
  provider: z.ZodString;
2259
2781
  status: z.ZodLiteral<"pending">;
2260
- user_code: z.ZodString;
2782
+ user_code: z.ZodOptional<z.ZodString>;
2261
2783
  verification_url: z.ZodString;
2262
2784
  expires_in: z.ZodNumber;
2263
2785
  interval: z.ZodNumber;
2786
+ redirect_uri: z.ZodOptional<z.ZodString>;
2787
+ authorize_host: z.ZodOptional<z.ZodString>;
2788
+ token_host: z.ZodOptional<z.ZodString>;
2264
2789
  }, z.core.$strip>;
2265
2790
  };
2266
2791
  readonly 'oauth.poll': {
@@ -2274,18 +2799,38 @@ export declare const OAUTH_METHODS: {
2274
2799
  status: z.ZodEnum<{
2275
2800
  error: "error";
2276
2801
  pending: "pending";
2277
- cancelled: "cancelled";
2278
2802
  expired: "expired";
2803
+ cancelled: "cancelled";
2804
+ approved: "approved";
2805
+ denied: "denied";
2806
+ }>;
2807
+ error: z.ZodNullable<z.ZodString>;
2808
+ }, z.core.$strip>;
2809
+ };
2810
+ readonly 'oauth.cancel': {
2811
+ readonly params: z.ZodObject<{
2812
+ profile_home: z.ZodString;
2813
+ flow_id: z.ZodString;
2814
+ }, z.core.$strip>;
2815
+ readonly result: z.ZodObject<{
2816
+ flow_id: z.ZodString;
2817
+ provider: z.ZodString;
2818
+ status: z.ZodEnum<{
2819
+ error: "error";
2820
+ pending: "pending";
2821
+ expired: "expired";
2822
+ cancelled: "cancelled";
2279
2823
  approved: "approved";
2280
2824
  denied: "denied";
2281
2825
  }>;
2282
2826
  error: z.ZodNullable<z.ZodString>;
2283
2827
  }, z.core.$strip>;
2284
2828
  };
2285
- readonly 'oauth.cancel': {
2829
+ readonly 'oauth.submit_redirect': {
2286
2830
  readonly params: z.ZodObject<{
2287
2831
  profile_home: z.ZodString;
2288
2832
  flow_id: z.ZodString;
2833
+ url: z.ZodString;
2289
2834
  }, z.core.$strip>;
2290
2835
  readonly result: z.ZodObject<{
2291
2836
  flow_id: z.ZodString;
@@ -2293,8 +2838,8 @@ export declare const OAUTH_METHODS: {
2293
2838
  status: z.ZodEnum<{
2294
2839
  error: "error";
2295
2840
  pending: "pending";
2296
- cancelled: "cancelled";
2297
2841
  expired: "expired";
2842
+ cancelled: "cancelled";
2298
2843
  approved: "approved";
2299
2844
  denied: "denied";
2300
2845
  }>;
@@ -2668,6 +3213,20 @@ export declare const PROCESS_METHODS: {
2668
3213
  text: z.ZodString;
2669
3214
  }, z.core.$strip>;
2670
3215
  };
3216
+ readonly 'process.stop': {
3217
+ readonly params: z.ZodObject<{
3218
+ profile_home: z.ZodString;
3219
+ session_id: z.ZodString;
3220
+ process_id: z.ZodString;
3221
+ }, z.core.$strip>;
3222
+ readonly result: z.ZodObject<{
3223
+ outcome: z.ZodEnum<{
3224
+ stopped: "stopped";
3225
+ not_running: "not_running";
3226
+ not_found: "not_found";
3227
+ }>;
3228
+ }, z.core.$strip>;
3229
+ };
2671
3230
  readonly 'process.list': {
2672
3231
  readonly params: z.ZodObject<{
2673
3232
  profile_home: z.ZodString;
@@ -2993,6 +3552,23 @@ export declare const WORKTREE_METHODS: {
2993
3552
  base: z.ZodNullable<z.ZodString>;
2994
3553
  }, z.core.$strip>;
2995
3554
  };
3555
+ /**
3556
+ * TAL-1254: relock Talaria's worktrees for this sidecar (`hermes pid=<pid>`) so the Agent's worktree sweep reads them as
3557
+ * live. `foreign_lock`: a lock that is not a `hermes pid=` one holds the tree and stays. A tree this sidecar does not
3558
+ * hold yet (a running process's `hermes pid=` lock, or a git failure) is absent from `results`; the caller retries it.
3559
+ */
3560
+ readonly 'worktree.retain': {
3561
+ readonly params: z.ZodObject<{
3562
+ paths: z.ZodArray<z.ZodString>;
3563
+ }, z.core.$strip>;
3564
+ readonly result: z.ZodObject<{
3565
+ results: z.ZodRecord<z.ZodString, z.ZodEnum<{
3566
+ retained: "retained";
3567
+ missing: "missing";
3568
+ foreign_lock: "foreign_lock";
3569
+ }>>;
3570
+ }, z.core.$strip>;
3571
+ };
2996
3572
  };
2997
3573
  export declare const AgentCheckpointSchema: z.ZodObject<{
2998
3574
  hash: z.ZodString;
@@ -3034,15 +3610,24 @@ export declare const CHECKPOINTS_METHODS: {
3034
3610
  diff: z.ZodString;
3035
3611
  }, z.core.$strip>;
3036
3612
  };
3613
+ /**
3614
+ * Safe unless `all` (TAL-1260): only files still as the Agent last wrote them are reverted, and `kept_user_edits` names the
3615
+ * hand-edited ones left in place. `restored_files` is what a safe restore acted on; null when the whole tree was checked out.
3616
+ */
3037
3617
  readonly 'checkpoints.restore': {
3038
3618
  readonly params: z.ZodObject<{
3039
3619
  profile_home: z.ZodString;
3040
3620
  workspace: z.ZodString;
3041
3621
  checkpoint: z.ZodString;
3622
+ all: z.ZodOptional<z.ZodBoolean>;
3042
3623
  }, z.core.$strip>;
3043
3624
  readonly result: z.ZodObject<{
3044
3625
  restored_to: z.ZodString;
3045
3626
  reason: z.ZodString;
3627
+ restored_files: z.ZodNullable<z.ZodArray<z.ZodString>>;
3628
+ kept_user_edits: z.ZodArray<z.ZodString>;
3629
+ skipped_oversize: z.ZodArray<z.ZodString>;
3630
+ failed_deletes: z.ZodArray<z.ZodString>;
3046
3631
  }, z.core.$strip>;
3047
3632
  };
3048
3633
  };
@@ -3126,6 +3711,15 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3126
3711
  tid: z.ZodOptional<z.ZodString>;
3127
3712
  is_error: z.ZodOptional<z.ZodBoolean>;
3128
3713
  }, z.core.$catchall<z.ZodUnknown>>;
3714
+ }, z.core.$strip>, z.ZodObject<{
3715
+ event: z.ZodLiteral<"tool_progress">;
3716
+ data: z.ZodObject<{
3717
+ tool_call_id: z.ZodString;
3718
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3719
+ progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3720
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3721
+ percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3722
+ }, z.core.$strip>;
3129
3723
  }, z.core.$strip>, z.ZodObject<{
3130
3724
  event: z.ZodLiteral<"tool_complete">;
3131
3725
  data: z.ZodObject<{
@@ -3160,11 +3754,11 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3160
3754
  kind: z.ZodString;
3161
3755
  state: z.ZodEnum<{
3162
3756
  pending: "pending";
3757
+ expired: "expired";
3163
3758
  skipped: "skipped";
3759
+ failed: "failed";
3164
3760
  initiated: "initiated";
3165
3761
  connected: "connected";
3166
- failed: "failed";
3167
- expired: "expired";
3168
3762
  not_connected: "not_connected";
3169
3763
  }>;
3170
3764
  detail: z.ZodString;
@@ -3335,6 +3929,15 @@ export declare const CHAT_METHODS: {
3335
3929
  tid: z.ZodOptional<z.ZodString>;
3336
3930
  is_error: z.ZodOptional<z.ZodBoolean>;
3337
3931
  }, z.core.$catchall<z.ZodUnknown>>;
3932
+ }, z.core.$strip>, z.ZodObject<{
3933
+ event: z.ZodLiteral<"tool_progress">;
3934
+ data: z.ZodObject<{
3935
+ tool_call_id: z.ZodString;
3936
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3937
+ progress: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3938
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3939
+ percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3940
+ }, z.core.$strip>;
3338
3941
  }, z.core.$strip>, z.ZodObject<{
3339
3942
  event: z.ZodLiteral<"tool_complete">;
3340
3943
  data: z.ZodObject<{
@@ -3369,11 +3972,11 @@ export declare const CHAT_METHODS: {
3369
3972
  kind: z.ZodString;
3370
3973
  state: z.ZodEnum<{
3371
3974
  pending: "pending";
3975
+ expired: "expired";
3372
3976
  skipped: "skipped";
3977
+ failed: "failed";
3373
3978
  initiated: "initiated";
3374
3979
  connected: "connected";
3375
- failed: "failed";
3376
- expired: "expired";
3377
3980
  not_connected: "not_connected";
3378
3981
  }>;
3379
3982
  detail: z.ZodString;
@@ -3501,8 +4104,8 @@ export declare const CHAT_METHODS: {
3501
4104
  redirected: z.ZodBoolean;
3502
4105
  withdrawn: z.ZodBoolean;
3503
4106
  delivery: z.ZodOptional<z.ZodEnum<{
3504
- redirect: "redirect";
3505
4107
  steer: "steer";
4108
+ redirect: "redirect";
3506
4109
  }>>;
3507
4110
  requeued: z.ZodOptional<z.ZodEnum<{
3508
4111
  kept: "kept";
@@ -3548,6 +4151,77 @@ export declare const CHAT_METHODS: {
3548
4151
  commit_token: z.ZodNullable<z.ZodString>;
3549
4152
  }, z.core.$strip>;
3550
4153
  };
4154
+ /** TAL-1333: safe metadata from the existing matching resident Agent, never a new Agent. */
4155
+ readonly 'chat.context_detail': {
4156
+ readonly params: z.ZodObject<{
4157
+ profile_home: z.ZodString;
4158
+ session_id: z.ZodString;
4159
+ model: z.ZodNullable<z.ZodString>;
4160
+ model_provider: z.ZodNullable<z.ZodString>;
4161
+ workspace: z.ZodNullable<z.ZodString>;
4162
+ }, z.core.$strip>;
4163
+ readonly result: z.ZodObject<{
4164
+ available: z.ZodBoolean;
4165
+ reason: z.ZodNullable<z.ZodEnum<{
4166
+ not_built: "not_built";
4167
+ unsupported: "unsupported";
4168
+ changed: "changed";
4169
+ unavailable: "unavailable";
4170
+ }>>;
4171
+ used_tokens: z.ZodNullable<z.ZodNumber>;
4172
+ window_tokens: z.ZodNullable<z.ZodNumber>;
4173
+ estimated_total: z.ZodNullable<z.ZodNumber>;
4174
+ source: z.ZodNullable<z.ZodEnum<{
4175
+ local_estimate: "local_estimate";
4176
+ provider_usage: "provider_usage";
4177
+ provider_usage_plus_estimate: "provider_usage_plus_estimate";
4178
+ }>>;
4179
+ estimated: z.ZodNullable<z.ZodBoolean>;
4180
+ categories: z.ZodArray<z.ZodObject<{
4181
+ id: z.ZodEnum<{
4182
+ system_prompt: "system_prompt";
4183
+ tool_definitions: "tool_definitions";
4184
+ rules: "rules";
4185
+ skills: "skills";
4186
+ mcp: "mcp";
4187
+ subagent_definitions: "subagent_definitions";
4188
+ memory: "memory";
4189
+ conversation: "conversation";
4190
+ }>;
4191
+ tokens: z.ZodNumber;
4192
+ percent: z.ZodNullable<z.ZodNumber>;
4193
+ estimated: z.ZodLiteral<true>;
4194
+ }, z.core.$strip>>;
4195
+ files: z.ZodArray<z.ZodObject<{
4196
+ label: z.ZodEnum<{
4197
+ "AGENTS.md": "AGENTS.md";
4198
+ "SOUL.md": "SOUL.md";
4199
+ ".hermes.md": ".hermes.md";
4200
+ "CLAUDE.md": "CLAUDE.md";
4201
+ "GEMINI.md": "GEMINI.md";
4202
+ "CONTEXT.md": "CONTEXT.md";
4203
+ "Context file": "Context file";
4204
+ }>;
4205
+ characters: z.ZodNullable<z.ZodNumber>;
4206
+ tokens: z.ZodNullable<z.ZodNumber>;
4207
+ status: z.ZodEnum<{
4208
+ truncated: "truncated";
4209
+ unknown: "unknown";
4210
+ loaded: "loaded";
4211
+ flagged: "flagged";
4212
+ shadowed: "shadowed";
4213
+ blocked: "blocked";
4214
+ empty: "empty";
4215
+ unreadable: "unreadable";
4216
+ suppressed: "suppressed";
4217
+ }>;
4218
+ loaded: z.ZodNullable<z.ZodBoolean>;
4219
+ }, z.core.$strip>>;
4220
+ truncated: z.ZodBoolean;
4221
+ current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4222
+ last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4223
+ }, z.core.$strip>;
4224
+ };
3551
4225
  /** TAL-255: second phase of `chat.compress`; `finalized: false` when the token is unknown or already expired. */
3552
4226
  readonly 'chat.compress_finalize': {
3553
4227
  readonly params: z.ZodObject<{
@@ -3558,14 +4232,17 @@ export declare const CHAT_METHODS: {
3558
4232
  finalized: z.ZodBoolean;
3559
4233
  }, z.core.$strip>;
3560
4234
  };
4235
+ /** Archive only emits on_session_delete for the committed local transition; it never closes the Agent session. */
3561
4236
  readonly 'chat.finalize_session': {
3562
4237
  readonly params: z.ZodObject<{
3563
4238
  profile_home: z.ZodString;
3564
4239
  session_id: z.ZodString;
3565
4240
  reason: z.ZodEnum<{
4241
+ archive: "archive";
3566
4242
  delete: "delete";
3567
4243
  clear: "clear";
3568
4244
  }>;
4245
+ lineage: z.ZodOptional<z.ZodArray<z.ZodString>>;
3569
4246
  }, z.core.$strip>;
3570
4247
  readonly result: z.ZodObject<{
3571
4248
  messages: z.ZodArray<z.ZodString>;
@@ -3674,17 +4351,46 @@ export declare const GATEWAY_METHODS: {
3674
4351
  action: z.ZodEnum<{
3675
4352
  snapshot: "snapshot";
3676
4353
  receipt: "receipt";
4354
+ context_detail: "context_detail";
4355
+ export: "export";
4356
+ checkpoint_diff: "checkpoint_diff";
3677
4357
  watch: "watch";
3678
4358
  submit: "submit";
3679
4359
  cancel: "cancel";
4360
+ steer_queued: "steer_queued";
4361
+ replace_queued: "replace_queued";
3680
4362
  interrupt: "interrupt";
3681
4363
  approval: "approval";
3682
4364
  clarify: "clarify";
4365
+ clarify_lock: "clarify_lock";
3683
4366
  discard: "discard";
3684
4367
  mutate: "mutate";
4368
+ terminal_info: "terminal_info";
4369
+ shell_exec: "shell_exec";
4370
+ react: "react";
3685
4371
  }>;
4372
+ row_id: z.ZodOptional<z.ZodNumber>;
4373
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4374
+ "\uD83D\uDC4D": "👍";
4375
+ "\uD83D\uDC4E": "👎";
4376
+ "\u2764\uFE0F": "❤️";
4377
+ "\uD83D\uDE02": "😂";
4378
+ "\uD83D\uDE2E": "😮";
4379
+ "\uD83C\uDF89": "🎉";
4380
+ }>>>;
4381
+ format: z.ZodOptional<z.ZodEnum<{
4382
+ json: "json";
4383
+ markdown: "markdown";
4384
+ html: "html";
4385
+ }>>;
4386
+ redact: z.ZodOptional<z.ZodBoolean>;
4387
+ command: z.ZodOptional<z.ZodString>;
4388
+ authority_epoch: z.ZodOptional<z.ZodNumber>;
4389
+ replay_epoch: z.ZodOptional<z.ZodString>;
3686
4390
  request_id: z.ZodOptional<z.ZodString>;
3687
4391
  text: z.ZodOptional<z.ZodString>;
4392
+ submission_id: z.ZodOptional<z.ZodString>;
4393
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
3688
4394
  admission_id: z.ZodOptional<z.ZodString>;
3689
4395
  execution_generation: z.ZodOptional<z.ZodNumber>;
3690
4396
  prompt_id: z.ZodOptional<z.ZodString>;
@@ -3694,8 +4400,12 @@ export declare const GATEWAY_METHODS: {
3694
4400
  always: "always";
3695
4401
  deny: "deny";
3696
4402
  }>>;
4403
+ question_id: z.ZodOptional<z.ZodString>;
4404
+ answer: z.ZodOptional<z.ZodString>;
3697
4405
  expected_revision: z.ZodOptional<z.ZodNumber>;
3698
4406
  operation: z.ZodOptional<z.ZodEnum<{
4407
+ workspace: "workspace";
4408
+ model: "model";
3699
4409
  rename: "rename";
3700
4410
  archive: "archive";
3701
4411
  sidebar: "sidebar";
@@ -3703,19 +4413,17 @@ export declare const GATEWAY_METHODS: {
3703
4413
  delete: "delete";
3704
4414
  rewind: "rewind";
3705
4415
  reset: "reset";
3706
- model: "model";
3707
- workspace: "workspace";
3708
4416
  compress: "compress";
3709
4417
  }>>;
3710
4418
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3711
4419
  }, z.core.$strip>;
3712
4420
  readonly result: z.ZodObject<{
3713
4421
  state: z.ZodEnum<{
4422
+ unavailable: "unavailable";
4423
+ refused: "refused";
3714
4424
  attached: "attached";
3715
4425
  stopped: "stopped";
3716
- unavailable: "unavailable";
3717
4426
  incompatible: "incompatible";
3718
- refused: "refused";
3719
4427
  }>;
3720
4428
  reason: z.ZodNullable<z.ZodString>;
3721
4429
  replay_gap: z.ZodOptional<z.ZodBoolean>;
@@ -3731,6 +4439,7 @@ export declare const GATEWAY_METHODS: {
3731
4439
  subscription_id: z.ZodString;
3732
4440
  revision: z.ZodNumber;
3733
4441
  execution_generation: z.ZodNumber;
4442
+ reactions_supported: z.ZodOptional<z.ZodBoolean>;
3734
4443
  pending: z.ZodArray<z.ZodObject<{
3735
4444
  admission_id: z.ZodString;
3736
4445
  sequence: z.ZodNumber;
@@ -3743,13 +4452,15 @@ export declare const GATEWAY_METHODS: {
3743
4452
  outcome: z.ZodNullable<z.ZodString>;
3744
4453
  authority_epoch: z.ZodNumber;
3745
4454
  execution_generation: z.ZodNullable<z.ZodNumber>;
4455
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4456
+ steering: z.ZodOptional<z.ZodBoolean>;
3746
4457
  text: z.ZodOptional<z.ZodString>;
3747
4458
  input_id: z.ZodOptional<z.ZodString>;
3748
4459
  }, z.core.$strip>>;
3749
4460
  prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3750
4461
  info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3751
4462
  }, z.core.$strip>>;
3752
- receipt: z.ZodNullable<z.ZodObject<{
4463
+ receipt: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
3753
4464
  admission_id: z.ZodString;
3754
4465
  sequence: z.ZodNumber;
3755
4466
  status: z.ZodEnum<{
@@ -3761,21 +4472,560 @@ export declare const GATEWAY_METHODS: {
3761
4472
  outcome: z.ZodNullable<z.ZodString>;
3762
4473
  authority_epoch: z.ZodNumber;
3763
4474
  execution_generation: z.ZodNullable<z.ZodNumber>;
4475
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4476
+ steering: z.ZodOptional<z.ZodBoolean>;
3764
4477
  text: z.ZodOptional<z.ZodString>;
3765
4478
  input_id: z.ZodOptional<z.ZodString>;
4479
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4480
+ }, z.core.$strip>, z.ZodObject<{
4481
+ operation: z.ZodString;
4482
+ status: z.ZodOptional<z.ZodString>;
4483
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4484
+ }, z.core.$loose>, z.ZodObject<{
4485
+ voice_stopped: z.ZodLiteral<true>;
4486
+ }, z.core.$strict>]>>;
4487
+ model_change: z.ZodOptional<z.ZodObject<{
4488
+ state: z.ZodEnum<{
4489
+ applied: "applied";
4490
+ deferred: "deferred";
4491
+ confirmation_required: "confirmation_required";
4492
+ refused: "refused";
4493
+ }>;
4494
+ message: z.ZodOptional<z.ZodString>;
4495
+ confirm: z.ZodOptional<z.ZodString>;
4496
+ model: z.ZodOptional<z.ZodString>;
4497
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4498
+ }, z.core.$strip>>;
4499
+ context_detail: z.ZodOptional<z.ZodObject<{
4500
+ available: z.ZodBoolean;
4501
+ reason: z.ZodNullable<z.ZodEnum<{
4502
+ not_built: "not_built";
4503
+ unsupported: "unsupported";
4504
+ changed: "changed";
4505
+ unavailable: "unavailable";
4506
+ }>>;
4507
+ used_tokens: z.ZodNullable<z.ZodNumber>;
4508
+ window_tokens: z.ZodNullable<z.ZodNumber>;
4509
+ estimated_total: z.ZodNullable<z.ZodNumber>;
4510
+ source: z.ZodNullable<z.ZodEnum<{
4511
+ local_estimate: "local_estimate";
4512
+ provider_usage: "provider_usage";
4513
+ provider_usage_plus_estimate: "provider_usage_plus_estimate";
4514
+ }>>;
4515
+ estimated: z.ZodNullable<z.ZodBoolean>;
4516
+ categories: z.ZodArray<z.ZodObject<{
4517
+ id: z.ZodEnum<{
4518
+ system_prompt: "system_prompt";
4519
+ tool_definitions: "tool_definitions";
4520
+ rules: "rules";
4521
+ skills: "skills";
4522
+ mcp: "mcp";
4523
+ subagent_definitions: "subagent_definitions";
4524
+ memory: "memory";
4525
+ conversation: "conversation";
4526
+ }>;
4527
+ tokens: z.ZodNumber;
4528
+ percent: z.ZodNullable<z.ZodNumber>;
4529
+ estimated: z.ZodLiteral<true>;
4530
+ }, z.core.$strip>>;
4531
+ files: z.ZodArray<z.ZodObject<{
4532
+ label: z.ZodEnum<{
4533
+ "AGENTS.md": "AGENTS.md";
4534
+ "SOUL.md": "SOUL.md";
4535
+ ".hermes.md": ".hermes.md";
4536
+ "CLAUDE.md": "CLAUDE.md";
4537
+ "GEMINI.md": "GEMINI.md";
4538
+ "CONTEXT.md": "CONTEXT.md";
4539
+ "Context file": "Context file";
4540
+ }>;
4541
+ characters: z.ZodNullable<z.ZodNumber>;
4542
+ tokens: z.ZodNullable<z.ZodNumber>;
4543
+ status: z.ZodEnum<{
4544
+ truncated: "truncated";
4545
+ unknown: "unknown";
4546
+ loaded: "loaded";
4547
+ flagged: "flagged";
4548
+ shadowed: "shadowed";
4549
+ blocked: "blocked";
4550
+ empty: "empty";
4551
+ unreadable: "unreadable";
4552
+ suppressed: "suppressed";
4553
+ }>;
4554
+ loaded: z.ZodNullable<z.ZodBoolean>;
4555
+ }, z.core.$strip>>;
4556
+ truncated: z.ZodBoolean;
4557
+ current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4558
+ last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4559
+ }, z.core.$strip>>;
4560
+ export: z.ZodOptional<z.ZodObject<{
4561
+ format: z.ZodEnum<{
4562
+ json: "json";
4563
+ markdown: "markdown";
4564
+ html: "html";
4565
+ }>;
4566
+ filename: z.ZodString;
4567
+ content: z.ZodString;
4568
+ }, z.core.$strip>>;
4569
+ checkpoint_diff: z.ZodOptional<z.ZodObject<{
4570
+ diff: z.ZodString;
4571
+ stat: z.ZodString;
4572
+ comparison: z.ZodObject<{
4573
+ provenance: z.ZodEnum<{
4574
+ native_owner: "native_owner";
4575
+ direct_workspace: "direct_workspace";
4576
+ }>;
4577
+ baseline: z.ZodEnum<{
4578
+ earliest_retained_project_checkpoint: "earliest_retained_project_checkpoint";
4579
+ selected_checkpoint: "selected_checkpoint";
4580
+ }>;
4581
+ available: z.ZodBoolean;
4582
+ reason: z.ZodNullable<z.ZodEnum<{
4583
+ checkpoints_disabled: "checkpoints_disabled";
4584
+ no_baseline: "no_baseline";
4585
+ checkpoint_unavailable: "checkpoint_unavailable";
4586
+ payload_too_large: "payload_too_large";
4587
+ invalid_payload: "invalid_payload";
4588
+ owner_unavailable: "owner_unavailable";
4589
+ }>>;
4590
+ truncated: z.ZodBoolean;
4591
+ }, z.core.$strip>;
4592
+ }, z.core.$strip>>;
4593
+ shell: z.ZodOptional<z.ZodObject<{
4594
+ stdout: z.ZodString;
4595
+ stderr: z.ZodString;
4596
+ code: z.ZodNumber;
4597
+ }, z.core.$strip>>;
4598
+ restarting: z.ZodOptional<z.ZodBoolean>;
4599
+ lock: z.ZodOptional<z.ZodObject<{
4600
+ status: z.ZodEnum<{
4601
+ ok: "ok";
4602
+ expired: "expired";
4603
+ }>;
4604
+ remaining: z.ZodOptional<z.ZodArray<z.ZodString>>;
3766
4605
  }, z.core.$strip>>;
3767
4606
  }, z.core.$strip>;
3768
- readonly stream: z.ZodObject<{
3769
- event: z.ZodEnum<{
3770
- snapshot: "snapshot";
3771
- event: "event";
3772
- }>;
4607
+ readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
4608
+ event: z.ZodLiteral<"snapshot">;
4609
+ data: z.ZodObject<{
4610
+ state: z.ZodEnum<{
4611
+ unavailable: "unavailable";
4612
+ refused: "refused";
4613
+ attached: "attached";
4614
+ stopped: "stopped";
4615
+ incompatible: "incompatible";
4616
+ }>;
4617
+ reason: z.ZodNullable<z.ZodString>;
4618
+ replay_gap: z.ZodOptional<z.ZodBoolean>;
4619
+ snapshot: z.ZodNullable<z.ZodObject<{
4620
+ session_id: z.ZodString;
4621
+ stored_session_id: z.ZodString;
4622
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4623
+ message_count: z.ZodNumber;
4624
+ running: z.ZodBoolean;
4625
+ authority_epoch: z.ZodNumber;
4626
+ replay_epoch: z.ZodString;
4627
+ last_sequence: z.ZodNumber;
4628
+ subscription_id: z.ZodString;
4629
+ revision: z.ZodNumber;
4630
+ execution_generation: z.ZodNumber;
4631
+ reactions_supported: z.ZodOptional<z.ZodBoolean>;
4632
+ pending: z.ZodArray<z.ZodObject<{
4633
+ admission_id: z.ZodString;
4634
+ sequence: z.ZodNumber;
4635
+ status: z.ZodEnum<{
4636
+ unknown: "unknown";
4637
+ queued: "queued";
4638
+ started: "started";
4639
+ terminal: "terminal";
4640
+ }>;
4641
+ outcome: z.ZodNullable<z.ZodString>;
4642
+ authority_epoch: z.ZodNumber;
4643
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4644
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4645
+ steering: z.ZodOptional<z.ZodBoolean>;
4646
+ text: z.ZodOptional<z.ZodString>;
4647
+ input_id: z.ZodOptional<z.ZodString>;
4648
+ }, z.core.$strip>>;
4649
+ prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4650
+ info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4651
+ }, z.core.$strip>>;
4652
+ receipt: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
4653
+ admission_id: z.ZodString;
4654
+ sequence: z.ZodNumber;
4655
+ status: z.ZodEnum<{
4656
+ unknown: "unknown";
4657
+ queued: "queued";
4658
+ started: "started";
4659
+ terminal: "terminal";
4660
+ }>;
4661
+ outcome: z.ZodNullable<z.ZodString>;
4662
+ authority_epoch: z.ZodNumber;
4663
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4664
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4665
+ steering: z.ZodOptional<z.ZodBoolean>;
4666
+ text: z.ZodOptional<z.ZodString>;
4667
+ input_id: z.ZodOptional<z.ZodString>;
4668
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4669
+ }, z.core.$strip>, z.ZodObject<{
4670
+ operation: z.ZodString;
4671
+ status: z.ZodOptional<z.ZodString>;
4672
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4673
+ }, z.core.$loose>, z.ZodObject<{
4674
+ voice_stopped: z.ZodLiteral<true>;
4675
+ }, z.core.$strict>]>>;
4676
+ model_change: z.ZodOptional<z.ZodObject<{
4677
+ state: z.ZodEnum<{
4678
+ applied: "applied";
4679
+ deferred: "deferred";
4680
+ confirmation_required: "confirmation_required";
4681
+ refused: "refused";
4682
+ }>;
4683
+ message: z.ZodOptional<z.ZodString>;
4684
+ confirm: z.ZodOptional<z.ZodString>;
4685
+ model: z.ZodOptional<z.ZodString>;
4686
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4687
+ }, z.core.$strip>>;
4688
+ context_detail: z.ZodOptional<z.ZodObject<{
4689
+ available: z.ZodBoolean;
4690
+ reason: z.ZodNullable<z.ZodEnum<{
4691
+ not_built: "not_built";
4692
+ unsupported: "unsupported";
4693
+ changed: "changed";
4694
+ unavailable: "unavailable";
4695
+ }>>;
4696
+ used_tokens: z.ZodNullable<z.ZodNumber>;
4697
+ window_tokens: z.ZodNullable<z.ZodNumber>;
4698
+ estimated_total: z.ZodNullable<z.ZodNumber>;
4699
+ source: z.ZodNullable<z.ZodEnum<{
4700
+ local_estimate: "local_estimate";
4701
+ provider_usage: "provider_usage";
4702
+ provider_usage_plus_estimate: "provider_usage_plus_estimate";
4703
+ }>>;
4704
+ estimated: z.ZodNullable<z.ZodBoolean>;
4705
+ categories: z.ZodArray<z.ZodObject<{
4706
+ id: z.ZodEnum<{
4707
+ system_prompt: "system_prompt";
4708
+ tool_definitions: "tool_definitions";
4709
+ rules: "rules";
4710
+ skills: "skills";
4711
+ mcp: "mcp";
4712
+ subagent_definitions: "subagent_definitions";
4713
+ memory: "memory";
4714
+ conversation: "conversation";
4715
+ }>;
4716
+ tokens: z.ZodNumber;
4717
+ percent: z.ZodNullable<z.ZodNumber>;
4718
+ estimated: z.ZodLiteral<true>;
4719
+ }, z.core.$strip>>;
4720
+ files: z.ZodArray<z.ZodObject<{
4721
+ label: z.ZodEnum<{
4722
+ "AGENTS.md": "AGENTS.md";
4723
+ "SOUL.md": "SOUL.md";
4724
+ ".hermes.md": ".hermes.md";
4725
+ "CLAUDE.md": "CLAUDE.md";
4726
+ "GEMINI.md": "GEMINI.md";
4727
+ "CONTEXT.md": "CONTEXT.md";
4728
+ "Context file": "Context file";
4729
+ }>;
4730
+ characters: z.ZodNullable<z.ZodNumber>;
4731
+ tokens: z.ZodNullable<z.ZodNumber>;
4732
+ status: z.ZodEnum<{
4733
+ truncated: "truncated";
4734
+ unknown: "unknown";
4735
+ loaded: "loaded";
4736
+ flagged: "flagged";
4737
+ shadowed: "shadowed";
4738
+ blocked: "blocked";
4739
+ empty: "empty";
4740
+ unreadable: "unreadable";
4741
+ suppressed: "suppressed";
4742
+ }>;
4743
+ loaded: z.ZodNullable<z.ZodBoolean>;
4744
+ }, z.core.$strip>>;
4745
+ truncated: z.ZodBoolean;
4746
+ current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4747
+ last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4748
+ }, z.core.$strip>>;
4749
+ export: z.ZodOptional<z.ZodObject<{
4750
+ format: z.ZodEnum<{
4751
+ json: "json";
4752
+ markdown: "markdown";
4753
+ html: "html";
4754
+ }>;
4755
+ filename: z.ZodString;
4756
+ content: z.ZodString;
4757
+ }, z.core.$strip>>;
4758
+ checkpoint_diff: z.ZodOptional<z.ZodObject<{
4759
+ diff: z.ZodString;
4760
+ stat: z.ZodString;
4761
+ comparison: z.ZodObject<{
4762
+ provenance: z.ZodEnum<{
4763
+ native_owner: "native_owner";
4764
+ direct_workspace: "direct_workspace";
4765
+ }>;
4766
+ baseline: z.ZodEnum<{
4767
+ earliest_retained_project_checkpoint: "earliest_retained_project_checkpoint";
4768
+ selected_checkpoint: "selected_checkpoint";
4769
+ }>;
4770
+ available: z.ZodBoolean;
4771
+ reason: z.ZodNullable<z.ZodEnum<{
4772
+ checkpoints_disabled: "checkpoints_disabled";
4773
+ no_baseline: "no_baseline";
4774
+ checkpoint_unavailable: "checkpoint_unavailable";
4775
+ payload_too_large: "payload_too_large";
4776
+ invalid_payload: "invalid_payload";
4777
+ owner_unavailable: "owner_unavailable";
4778
+ }>>;
4779
+ truncated: z.ZodBoolean;
4780
+ }, z.core.$strip>;
4781
+ }, z.core.$strip>>;
4782
+ shell: z.ZodOptional<z.ZodObject<{
4783
+ stdout: z.ZodString;
4784
+ stderr: z.ZodString;
4785
+ code: z.ZodNumber;
4786
+ }, z.core.$strip>>;
4787
+ restarting: z.ZodOptional<z.ZodBoolean>;
4788
+ lock: z.ZodOptional<z.ZodObject<{
4789
+ status: z.ZodEnum<{
4790
+ ok: "ok";
4791
+ expired: "expired";
4792
+ }>;
4793
+ remaining: z.ZodOptional<z.ZodArray<z.ZodString>>;
4794
+ }, z.core.$strip>>;
4795
+ replaying: z.ZodOptional<z.ZodBoolean>;
4796
+ reaction_only: z.ZodOptional<z.ZodBoolean>;
4797
+ }, z.core.$strip>;
4798
+ }, z.core.$strip>, z.ZodObject<{
4799
+ event: z.ZodLiteral<"event">;
3773
4800
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4801
+ }, z.core.$strip>, z.ZodObject<{
4802
+ event: z.ZodLiteral<"replay_complete">;
4803
+ data: z.ZodObject<{}, z.core.$strip>;
4804
+ }, z.core.$strip>, z.ZodObject<{
4805
+ event: z.ZodLiteral<"clarify_batch">;
4806
+ data: z.ZodObject<{
4807
+ request_id: z.ZodString;
4808
+ questions: z.ZodArray<z.ZodObject<{
4809
+ qid: z.ZodString;
4810
+ question: z.ZodString;
4811
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
4812
+ multi_select: z.ZodOptional<z.ZodBoolean>;
4813
+ }, z.core.$strip>>;
4814
+ }, z.core.$strip>;
4815
+ }, z.core.$strip>, z.ZodObject<{
4816
+ event: z.ZodLiteral<"restarting">;
4817
+ data: z.ZodObject<{
4818
+ restarting: z.ZodLiteral<true>;
4819
+ }, z.core.$strip>;
4820
+ }, z.core.$strip>], "event">;
4821
+ };
4822
+ readonly 'gateway.create': {
4823
+ readonly params: z.ZodObject<{
4824
+ profile_home: z.ZodString;
4825
+ probe: z.ZodOptional<z.ZodBoolean>;
4826
+ request_id: z.ZodOptional<z.ZodString>;
4827
+ execution_mode: z.ZodOptional<z.ZodEnum<{
4828
+ ignore_config: "ignore_config";
4829
+ safe: "safe";
4830
+ }>>;
4831
+ cwd: z.ZodOptional<z.ZodString>;
4832
+ model: z.ZodOptional<z.ZodString>;
4833
+ provider: z.ZodOptional<z.ZodString>;
4834
+ base_url: z.ZodOptional<z.ZodString>;
4835
+ toolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
4836
+ }, z.core.$strip>;
4837
+ readonly result: z.ZodObject<{
4838
+ state: z.ZodEnum<{
4839
+ unavailable: "unavailable";
4840
+ refused: "refused";
4841
+ attached: "attached";
4842
+ stopped: "stopped";
4843
+ incompatible: "incompatible";
4844
+ }>;
4845
+ reason: z.ZodNullable<z.ZodString>;
4846
+ replay_gap: z.ZodOptional<z.ZodBoolean>;
4847
+ snapshot: z.ZodNullable<z.ZodObject<{
4848
+ session_id: z.ZodString;
4849
+ stored_session_id: z.ZodString;
4850
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4851
+ message_count: z.ZodNumber;
4852
+ running: z.ZodBoolean;
4853
+ authority_epoch: z.ZodNumber;
4854
+ replay_epoch: z.ZodString;
4855
+ last_sequence: z.ZodNumber;
4856
+ subscription_id: z.ZodString;
4857
+ revision: z.ZodNumber;
4858
+ execution_generation: z.ZodNumber;
4859
+ reactions_supported: z.ZodOptional<z.ZodBoolean>;
4860
+ pending: z.ZodArray<z.ZodObject<{
4861
+ admission_id: z.ZodString;
4862
+ sequence: z.ZodNumber;
4863
+ status: z.ZodEnum<{
4864
+ unknown: "unknown";
4865
+ queued: "queued";
4866
+ started: "started";
4867
+ terminal: "terminal";
4868
+ }>;
4869
+ outcome: z.ZodNullable<z.ZodString>;
4870
+ authority_epoch: z.ZodNumber;
4871
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4872
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4873
+ steering: z.ZodOptional<z.ZodBoolean>;
4874
+ text: z.ZodOptional<z.ZodString>;
4875
+ input_id: z.ZodOptional<z.ZodString>;
4876
+ }, z.core.$strip>>;
4877
+ prompts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4878
+ info: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4879
+ }, z.core.$strip>>;
4880
+ receipt: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
4881
+ admission_id: z.ZodString;
4882
+ sequence: z.ZodNumber;
4883
+ status: z.ZodEnum<{
4884
+ unknown: "unknown";
4885
+ queued: "queued";
4886
+ started: "started";
4887
+ terminal: "terminal";
4888
+ }>;
4889
+ outcome: z.ZodNullable<z.ZodString>;
4890
+ authority_epoch: z.ZodNumber;
4891
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4892
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
4893
+ steering: z.ZodOptional<z.ZodBoolean>;
4894
+ text: z.ZodOptional<z.ZodString>;
4895
+ input_id: z.ZodOptional<z.ZodString>;
4896
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4897
+ }, z.core.$strip>, z.ZodObject<{
4898
+ operation: z.ZodString;
4899
+ status: z.ZodOptional<z.ZodString>;
4900
+ voice_stopped: z.ZodOptional<z.ZodNever>;
4901
+ }, z.core.$loose>, z.ZodObject<{
4902
+ voice_stopped: z.ZodLiteral<true>;
4903
+ }, z.core.$strict>]>>;
4904
+ model_change: z.ZodOptional<z.ZodObject<{
4905
+ state: z.ZodEnum<{
4906
+ applied: "applied";
4907
+ deferred: "deferred";
4908
+ confirmation_required: "confirmation_required";
4909
+ refused: "refused";
4910
+ }>;
4911
+ message: z.ZodOptional<z.ZodString>;
4912
+ confirm: z.ZodOptional<z.ZodString>;
4913
+ model: z.ZodOptional<z.ZodString>;
4914
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4915
+ }, z.core.$strip>>;
4916
+ context_detail: z.ZodOptional<z.ZodObject<{
4917
+ available: z.ZodBoolean;
4918
+ reason: z.ZodNullable<z.ZodEnum<{
4919
+ not_built: "not_built";
4920
+ unsupported: "unsupported";
4921
+ changed: "changed";
4922
+ unavailable: "unavailable";
4923
+ }>>;
4924
+ used_tokens: z.ZodNullable<z.ZodNumber>;
4925
+ window_tokens: z.ZodNullable<z.ZodNumber>;
4926
+ estimated_total: z.ZodNullable<z.ZodNumber>;
4927
+ source: z.ZodNullable<z.ZodEnum<{
4928
+ local_estimate: "local_estimate";
4929
+ provider_usage: "provider_usage";
4930
+ provider_usage_plus_estimate: "provider_usage_plus_estimate";
4931
+ }>>;
4932
+ estimated: z.ZodNullable<z.ZodBoolean>;
4933
+ categories: z.ZodArray<z.ZodObject<{
4934
+ id: z.ZodEnum<{
4935
+ system_prompt: "system_prompt";
4936
+ tool_definitions: "tool_definitions";
4937
+ rules: "rules";
4938
+ skills: "skills";
4939
+ mcp: "mcp";
4940
+ subagent_definitions: "subagent_definitions";
4941
+ memory: "memory";
4942
+ conversation: "conversation";
4943
+ }>;
4944
+ tokens: z.ZodNumber;
4945
+ percent: z.ZodNullable<z.ZodNumber>;
4946
+ estimated: z.ZodLiteral<true>;
4947
+ }, z.core.$strip>>;
4948
+ files: z.ZodArray<z.ZodObject<{
4949
+ label: z.ZodEnum<{
4950
+ "AGENTS.md": "AGENTS.md";
4951
+ "SOUL.md": "SOUL.md";
4952
+ ".hermes.md": ".hermes.md";
4953
+ "CLAUDE.md": "CLAUDE.md";
4954
+ "GEMINI.md": "GEMINI.md";
4955
+ "CONTEXT.md": "CONTEXT.md";
4956
+ "Context file": "Context file";
4957
+ }>;
4958
+ characters: z.ZodNullable<z.ZodNumber>;
4959
+ tokens: z.ZodNullable<z.ZodNumber>;
4960
+ status: z.ZodEnum<{
4961
+ truncated: "truncated";
4962
+ unknown: "unknown";
4963
+ loaded: "loaded";
4964
+ flagged: "flagged";
4965
+ shadowed: "shadowed";
4966
+ blocked: "blocked";
4967
+ empty: "empty";
4968
+ unreadable: "unreadable";
4969
+ suppressed: "suppressed";
4970
+ }>;
4971
+ loaded: z.ZodNullable<z.ZodBoolean>;
4972
+ }, z.core.$strip>>;
4973
+ truncated: z.ZodBoolean;
4974
+ current_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4975
+ last_turn_output_tokens: z.ZodNullable<z.ZodNumber>;
4976
+ }, z.core.$strip>>;
4977
+ export: z.ZodOptional<z.ZodObject<{
4978
+ format: z.ZodEnum<{
4979
+ json: "json";
4980
+ markdown: "markdown";
4981
+ html: "html";
4982
+ }>;
4983
+ filename: z.ZodString;
4984
+ content: z.ZodString;
4985
+ }, z.core.$strip>>;
4986
+ checkpoint_diff: z.ZodOptional<z.ZodObject<{
4987
+ diff: z.ZodString;
4988
+ stat: z.ZodString;
4989
+ comparison: z.ZodObject<{
4990
+ provenance: z.ZodEnum<{
4991
+ native_owner: "native_owner";
4992
+ direct_workspace: "direct_workspace";
4993
+ }>;
4994
+ baseline: z.ZodEnum<{
4995
+ earliest_retained_project_checkpoint: "earliest_retained_project_checkpoint";
4996
+ selected_checkpoint: "selected_checkpoint";
4997
+ }>;
4998
+ available: z.ZodBoolean;
4999
+ reason: z.ZodNullable<z.ZodEnum<{
5000
+ checkpoints_disabled: "checkpoints_disabled";
5001
+ no_baseline: "no_baseline";
5002
+ checkpoint_unavailable: "checkpoint_unavailable";
5003
+ payload_too_large: "payload_too_large";
5004
+ invalid_payload: "invalid_payload";
5005
+ owner_unavailable: "owner_unavailable";
5006
+ }>>;
5007
+ truncated: z.ZodBoolean;
5008
+ }, z.core.$strip>;
5009
+ }, z.core.$strip>>;
5010
+ shell: z.ZodOptional<z.ZodObject<{
5011
+ stdout: z.ZodString;
5012
+ stderr: z.ZodString;
5013
+ code: z.ZodNumber;
5014
+ }, z.core.$strip>>;
5015
+ restarting: z.ZodOptional<z.ZodBoolean>;
5016
+ lock: z.ZodOptional<z.ZodObject<{
5017
+ status: z.ZodEnum<{
5018
+ ok: "ok";
5019
+ expired: "expired";
5020
+ }>;
5021
+ remaining: z.ZodOptional<z.ZodArray<z.ZodString>>;
5022
+ }, z.core.$strip>>;
3774
5023
  }, z.core.$strip>;
3775
5024
  };
3776
5025
  readonly 'gateway.control': {
3777
5026
  readonly params: z.ZodObject<{
3778
5027
  profile_home: z.ZodString;
5028
+ interrupt: z.ZodOptional<z.ZodBoolean>;
3779
5029
  cli_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3780
5030
  quick_timeout_seconds: z.ZodOptional<z.ZodNumber>;
3781
5031
  background_wait_seconds: z.ZodOptional<z.ZodNumber>;
@@ -3790,6 +5040,7 @@ export declare const GATEWAY_METHODS: {
3790
5040
  failed: "failed";
3791
5041
  completed: "completed";
3792
5042
  busy: "busy";
5043
+ busy_live_work: "busy_live_work";
3793
5044
  }>;
3794
5045
  message: z.ZodString;
3795
5046
  detail: z.ZodOptional<z.ZodString>;
@@ -3810,6 +5061,7 @@ export declare const GATEWAY_METHODS: {
3810
5061
  readonly 'gateway.restart': {
3811
5062
  readonly params: z.ZodObject<{
3812
5063
  profile_home: z.ZodString;
5064
+ interrupt: z.ZodOptional<z.ZodBoolean>;
3813
5065
  cli_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3814
5066
  quick_timeout_seconds: z.ZodOptional<z.ZodNumber>;
3815
5067
  background_wait_seconds: z.ZodOptional<z.ZodNumber>;
@@ -3819,6 +5071,7 @@ export declare const GATEWAY_METHODS: {
3819
5071
  failed: "failed";
3820
5072
  completed: "completed";
3821
5073
  busy: "busy";
5074
+ busy_live_work: "busy_live_work";
3822
5075
  }>;
3823
5076
  message: z.ZodString;
3824
5077
  detail: z.ZodOptional<z.ZodString>;