@opencode/server 2.1.3 → 2.1.4

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 (113) hide show
  1. package/dist/api.d.ts +846 -968
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{service-status-j3461ttv.js → pairing-0dncng21.js} +6 -9
  5. package/dist/chunks/{service-status-6tj91hdj.js → pairing-2b2wekgg.js} +3 -3
  6. package/dist/chunks/{service-status-6e6jjne7.js → pairing-2yr2dq97.js} +2 -2
  7. package/dist/chunks/{service-status-3154e7fk.js → pairing-3154e7fk.js} +1 -1
  8. package/dist/chunks/{service-status-1qc831kp.js → pairing-31acg4hb.js} +2 -2
  9. package/dist/chunks/{service-status-e6e4kz0w.js → pairing-39nnfjx1.js} +4 -4
  10. package/dist/chunks/{service-status-x2cwbfak.js → pairing-3te71694.js} +7 -7
  11. package/dist/chunks/{service-status-jwf0kwqx.js → pairing-49c878v9.js} +2 -2
  12. package/dist/chunks/{service-status-0znmasm1.js → pairing-4b0899hb.js} +2 -2
  13. package/dist/chunks/{service-status-q6jxy1hn.js → pairing-4qjw9nya.js} +15 -38
  14. package/dist/chunks/{service-status-2e16a9cc.js → pairing-5w10ccet.js} +1 -1
  15. package/dist/chunks/{service-status-11d378s5.js → pairing-6xea6nhh.js} +3 -3
  16. package/dist/chunks/{service-status-pf9k0dqe.js → pairing-72ygafj3.js} +2 -2
  17. package/dist/chunks/{service-status-6v4wsps6.js → pairing-7b9xm1qg.js} +3 -2
  18. package/dist/chunks/{service-status-5adf1am9.js → pairing-91mt6ewz.js} +2 -2
  19. package/dist/chunks/pairing-9me4q8wt.js +107 -0
  20. package/dist/chunks/{service-status-6tjqh8g4.js → pairing-a6kxe6a7.js} +3 -3
  21. package/dist/chunks/{service-status-7scj3y0h.js → pairing-aj1jc7g7.js} +8 -8
  22. package/dist/chunks/{service-status-krqg3gd2.js → pairing-cfhthk6z.js} +1 -1
  23. package/dist/chunks/{service-status-xcxwzp6z.js → pairing-e4x9285j.js} +2 -2
  24. package/dist/chunks/{service-status-c2hv5jmf.js → pairing-e7pctymn.js} +1 -1
  25. package/dist/chunks/{service-status-rj8tbp10.js → pairing-f4b2q3tn.js} +1 -1
  26. package/dist/chunks/{service-status-z554rpg5.js → pairing-ga3m49sz.js} +2 -2
  27. package/dist/chunks/{service-status-gymtz25n.js → pairing-gymtz25n.js} +1 -1
  28. package/dist/chunks/{service-status-j4at0y5c.js → pairing-j4at0y5c.js} +1 -1
  29. package/dist/chunks/{service-status-7qrtcnv4.js → pairing-j5aeaa16.js} +1 -1
  30. package/dist/chunks/{service-status-k6dz4enc.js → pairing-k6dz4enc.js} +1 -1
  31. package/dist/chunks/{service-status-crt28xe4.js → pairing-kaqtndqt.js} +2 -2
  32. package/dist/chunks/{service-status-y89d99mz.js → pairing-kcjd09wg.js} +2 -2
  33. package/dist/chunks/{service-status-10kexchg.js → pairing-kd6vzpgq.js} +2 -2
  34. package/dist/chunks/{service-status-vb61dkrm.js → pairing-kqr36gas.js} +8 -8
  35. package/dist/chunks/{service-status-0f489yfb.js → pairing-kyxm98pg.js} +32 -32
  36. package/dist/chunks/{service-status-79n3507d.js → pairing-mte34432.js} +6 -6
  37. package/dist/chunks/{service-status-53jj3zgg.js → pairing-nv8hzzrz.js} +3 -3
  38. package/dist/chunks/{service-status-z9g9xjb3.js → pairing-pmjbkszz.js} +2 -2
  39. package/dist/chunks/pairing-q69f22pd.js +38 -0
  40. package/dist/chunks/{service-status-rkmbbexc.js → pairing-qvy2s3nb.js} +2 -2
  41. package/dist/chunks/{service-status-5ewqf72w.js → pairing-swdgbzpj.js} +2 -2
  42. package/dist/chunks/{service-status-r82dtfrk.js → pairing-t3j5ftv1.js} +3 -3
  43. package/dist/chunks/{service-status-vg0x3zn0.js → pairing-x0608mvx.js} +1 -1
  44. package/dist/chunks/{service-status-5680j7c4.js → pairing-x2dckmx1.js} +15 -17
  45. package/dist/chunks/{service-status-x74w7e1f.js → pairing-x74w7e1f.js} +1 -1
  46. package/dist/chunks/{service-status-a30hykaf.js → pairing-x9vr2ttf.js} +2 -2
  47. package/dist/chunks/{service-status-yzwm8eeq.js → pairing-xmwystkq.js} +2 -2
  48. package/dist/cors.js +1 -1
  49. package/dist/event-feed.js +1 -1
  50. package/dist/fetch.js +49 -50
  51. package/dist/handlers/agent.js +6 -6
  52. package/dist/handlers/command.js +6 -6
  53. package/dist/handlers/config.js +6 -6
  54. package/dist/handlers/credential.js +6 -6
  55. package/dist/handlers/debug.d.ts +2 -1
  56. package/dist/handlers/debug.js +6 -6
  57. package/dist/handlers/event.js +7 -7
  58. package/dist/handlers/form.js +6 -6
  59. package/dist/handlers/fs.js +6 -6
  60. package/dist/handlers/generate.js +6 -6
  61. package/dist/handlers/integration.js +6 -6
  62. package/dist/handlers/location.js +6 -6
  63. package/dist/handlers/mcp.d.ts +3 -1
  64. package/dist/handlers/mcp.js +8 -6
  65. package/dist/handlers/message.js +6 -6
  66. package/dist/handlers/migration.js +6 -6
  67. package/dist/handlers/model.js +6 -6
  68. package/dist/handlers/permission.js +6 -6
  69. package/dist/handlers/persistent-pty.js +8 -8
  70. package/dist/handlers/plugin.js +6 -6
  71. package/dist/handlers/project.js +6 -6
  72. package/dist/handlers/provider.js +6 -6
  73. package/dist/handlers/pty-socket.js +1 -1
  74. package/dist/handlers/pty.d.ts +1 -2
  75. package/dist/handlers/pty.js +8 -9
  76. package/dist/handlers/reference.js +6 -6
  77. package/dist/handlers/rpc.js +6 -6
  78. package/dist/handlers/server.js +9 -9
  79. package/dist/handlers/session-error.js +1 -1
  80. package/dist/handlers/session.js +6 -6
  81. package/dist/handlers/shell.js +6 -6
  82. package/dist/handlers/skill.js +6 -6
  83. package/dist/handlers/vcs.js +6 -6
  84. package/dist/handlers/voice.js +6 -6
  85. package/dist/handlers/websearch.js +6 -6
  86. package/dist/handlers/worktree.js +6 -6
  87. package/dist/handlers.d.ts +1 -1
  88. package/dist/handlers.js +43 -44
  89. package/dist/location.js +2 -2
  90. package/dist/middleware/authorization.js +2 -2
  91. package/dist/middleware/form-location.js +3 -3
  92. package/dist/middleware/schema-error.js +1 -1
  93. package/dist/middleware/session-location.js +3 -3
  94. package/dist/pairing.js +5 -5
  95. package/dist/process.js +53 -53
  96. package/dist/request-tracing.js +1 -1
  97. package/dist/routes.d.ts +3 -3
  98. package/dist/routes.js +46 -47
  99. package/dist/server-info.js +5 -5
  100. package/dist/service-status.js +3 -3
  101. package/dist/workerd.js +50 -51
  102. package/package.json +11 -10
  103. package/dist/chunks/service-status-2f9g7rg2.js +0 -20
  104. package/dist/chunks/service-status-hwdnjend.js +0 -40
  105. package/dist/chunks/service-status-zy1wt1f8.js +0 -23
  106. package/dist/pty-environment.d.ts +0 -13
  107. package/dist/pty-environment.js +0 -12
  108. /package/dist/chunks/{service-status-9rqn6x4v.js → pairing-9rqn6x4v.js} +0 -0
  109. /package/dist/chunks/{service-status-erzfdgke.js → pairing-erzfdgke.js} +0 -0
  110. /package/dist/chunks/{service-status-h6rt5k9s.js → pairing-h6rt5k9s.js} +0 -0
  111. /package/dist/chunks/{service-status-q4bn6dy8.js → pairing-q4bn6dy8.js} +0 -0
  112. /package/dist/chunks/{service-status-smaf4a18.js → pairing-smaf4a18.js} +0 -0
  113. /package/dist/chunks/{service-status-yc7nft6q.js → pairing-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -301,7 +301,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
301
301
  readonly data: import("effect/Schema").Struct<{
302
302
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
303
303
  create: () => string & import("effect/Brand").Brand<"SessionID">;
304
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
305
304
  };
306
305
  readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
307
306
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -319,10 +318,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
319
318
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
320
319
  readonly parentID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
321
320
  create: () => string & import("effect/Brand").Brand<"SessionID">;
322
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
323
321
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
324
322
  create: () => string & import("effect/Brand").Brand<"SessionID">;
325
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
326
323
  }>, never, never>;
327
324
  readonly slug: import("effect/Schema").String;
328
325
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -394,7 +391,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
394
391
  data: import("effect/Schema").Struct<{
395
392
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
396
393
  create: () => string & import("effect/Brand").Brand<"SessionID">;
397
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
398
394
  };
399
395
  readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
400
396
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -412,10 +408,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
412
408
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
413
409
  readonly parentID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
414
410
  create: () => string & import("effect/Brand").Brand<"SessionID">;
415
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
416
411
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
417
412
  create: () => string & import("effect/Brand").Brand<"SessionID">;
418
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
419
413
  }>, never, never>;
420
414
  readonly slug: import("effect/Schema").String;
421
415
  readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -511,7 +505,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
511
505
  readonly data: import("effect/Schema").Struct<{
512
506
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
513
507
  create: () => string & import("effect/Brand").Brand<"SessionID">;
514
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
515
508
  };
516
509
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
517
510
  readonly previous: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>, never, never>;
@@ -526,7 +519,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
526
519
  data: import("effect/Schema").Struct<{
527
520
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
528
521
  create: () => string & import("effect/Brand").Brand<"SessionID">;
529
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
530
522
  };
531
523
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
532
524
  readonly previous: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>, never, never>;
@@ -565,7 +557,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
565
557
  readonly data: import("effect/Schema").Struct<{
566
558
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
567
559
  create: () => string & import("effect/Brand").Brand<"SessionID">;
568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
569
560
  };
570
561
  readonly model: import("effect/Schema").Struct<{
571
562
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
@@ -646,7 +637,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
646
637
  data: import("effect/Schema").Struct<{
647
638
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
648
639
  create: () => string & import("effect/Brand").Brand<"SessionID">;
649
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
650
640
  };
651
641
  readonly model: import("effect/Schema").Struct<{
652
642
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
@@ -765,7 +755,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
765
755
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
766
756
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
767
757
  create: () => string & import("effect/Brand").Brand<"SessionID">;
768
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
769
758
  };
770
759
  }>;
771
760
  }> & {
@@ -792,7 +781,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
792
781
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
793
782
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
794
783
  create: () => string & import("effect/Brand").Brand<"SessionID">;
795
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
796
784
  };
797
785
  }>;
798
786
  }, import("effect/Schema").Struct<{
@@ -829,7 +817,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
829
817
  readonly data: import("effect/Schema").Struct<{
830
818
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
831
819
  create: () => string & import("effect/Brand").Brand<"SessionID">;
832
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
833
820
  };
834
821
  readonly title: import("effect/Schema").String;
835
822
  }>;
@@ -843,7 +830,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
843
830
  data: import("effect/Schema").Struct<{
844
831
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
845
832
  create: () => string & import("effect/Brand").Brand<"SessionID">;
846
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
847
833
  };
848
834
  readonly title: import("effect/Schema").String;
849
835
  }>;
@@ -881,7 +867,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
881
867
  readonly data: import("effect/Schema").Struct<{
882
868
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
883
869
  create: () => string & import("effect/Brand").Brand<"SessionID">;
884
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
885
870
  };
886
871
  readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
887
872
  }>;
@@ -895,7 +880,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
895
880
  data: import("effect/Schema").Struct<{
896
881
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
897
882
  create: () => string & import("effect/Brand").Brand<"SessionID">;
898
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
899
883
  };
900
884
  readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
901
885
  }>;
@@ -933,7 +917,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
933
917
  readonly data: import("effect/Schema").Struct<{
934
918
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
935
919
  create: () => string & import("effect/Brand").Brand<"SessionID">;
936
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
937
920
  };
938
921
  readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
939
922
  readonly action: import("effect/Schema").String;
@@ -951,7 +934,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
951
934
  data: import("effect/Schema").Struct<{
952
935
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
953
936
  create: () => string & import("effect/Brand").Brand<"SessionID">;
954
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
955
937
  };
956
938
  readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
957
939
  readonly action: import("effect/Schema").String;
@@ -993,7 +975,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
993
975
  readonly data: import("effect/Schema").Struct<{
994
976
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
995
977
  create: () => string & import("effect/Brand").Brand<"SessionID">;
996
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
997
978
  };
998
979
  readonly idle: import("effect/Schema").Finite;
999
980
  }>;
@@ -1007,7 +988,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1007
988
  data: import("effect/Schema").Struct<{
1008
989
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1009
990
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1010
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1011
991
  };
1012
992
  readonly idle: import("effect/Schema").Finite;
1013
993
  }>;
@@ -1045,7 +1025,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1045
1025
  readonly data: import("effect/Schema").Struct<{
1046
1026
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1047
1027
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1048
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1049
1028
  };
1050
1029
  }>;
1051
1030
  }> & {
@@ -1058,7 +1037,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1058
1037
  data: import("effect/Schema").Struct<{
1059
1038
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1060
1039
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1061
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1062
1040
  };
1063
1041
  }>;
1064
1042
  }, import("effect/Schema").Struct<{
@@ -1095,7 +1073,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1095
1073
  readonly data: import("effect/Schema").Struct<{
1096
1074
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1097
1075
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1098
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1099
1076
  };
1100
1077
  }>;
1101
1078
  }> & {
@@ -1108,7 +1085,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1108
1085
  data: import("effect/Schema").Struct<{
1109
1086
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1110
1087
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1111
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1112
1088
  };
1113
1089
  }>;
1114
1090
  }, import("effect/Schema").Struct<{
@@ -1140,7 +1116,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1140
1116
  readonly data: import("effect/Schema").Struct<{
1141
1117
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1142
1118
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1143
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1144
1119
  };
1145
1120
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1146
1121
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -1162,7 +1137,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1162
1137
  data: import("effect/Schema").Struct<{
1163
1138
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1164
1139
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1165
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1166
1140
  };
1167
1141
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1168
1142
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -1211,7 +1185,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1211
1185
  readonly data: import("effect/Schema").Struct<{
1212
1186
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1213
1187
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1214
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1215
1188
  };
1216
1189
  }>;
1217
1190
  }> & {
@@ -1224,7 +1197,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1224
1197
  data: import("effect/Schema").Struct<{
1225
1198
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1226
1199
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1227
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1228
1200
  };
1229
1201
  }>;
1230
1202
  }, import("effect/Schema").Struct<{
@@ -1261,23 +1233,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1261
1233
  readonly data: import("effect/Schema").Struct<{
1262
1234
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1263
1235
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1264
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1265
1236
  };
1266
1237
  readonly parentID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1267
1238
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1268
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1269
1239
  };
1270
1240
  readonly boundary: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1271
1241
  readonly type: import("effect/Schema").Literal<"before">;
1272
1242
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1273
1243
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1274
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1244
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1275
1245
  };
1276
1246
  }>, import("effect/Schema").Struct<{
1277
1247
  readonly type: import("effect/Schema").Literal<"through">;
1278
1248
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1279
1249
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1280
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1250
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1281
1251
  };
1282
1252
  }>]>;
1283
1253
  readonly instructions: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Key">, import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Key">, import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">>>, never, never>;
@@ -1301,23 +1271,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1301
1271
  data: import("effect/Schema").Struct<{
1302
1272
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1303
1273
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1304
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1305
1274
  };
1306
1275
  readonly parentID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1307
1276
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1308
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1309
1277
  };
1310
1278
  readonly boundary: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1311
1279
  readonly type: import("effect/Schema").Literal<"before">;
1312
1280
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1313
1281
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1314
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1282
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1315
1283
  };
1316
1284
  }>, import("effect/Schema").Struct<{
1317
1285
  readonly type: import("effect/Schema").Literal<"through">;
1318
1286
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1319
1287
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1320
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1288
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1321
1289
  };
1322
1290
  }>]>;
1323
1291
  readonly instructions: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Key">, import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Key">, import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">>>, never, never>;
@@ -1365,11 +1333,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1365
1333
  readonly data: import("effect/Schema").Struct<{
1366
1334
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1367
1335
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1368
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1369
1336
  };
1370
1337
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1371
1338
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1372
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1339
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1373
1340
  };
1374
1341
  }>;
1375
1342
  }> & {
@@ -1382,11 +1349,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1382
1349
  data: import("effect/Schema").Struct<{
1383
1350
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1384
1351
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1385
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1386
1352
  };
1387
1353
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1388
1354
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1389
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1355
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1390
1356
  };
1391
1357
  }>;
1392
1358
  }, import("effect/Schema").Struct<{
@@ -1423,11 +1389,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1423
1389
  readonly data: import("effect/Schema").Struct<{
1424
1390
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1425
1391
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1426
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1427
1392
  };
1428
1393
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1429
1394
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1430
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1395
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1431
1396
  };
1432
1397
  readonly item: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1433
1398
  readonly type: import("effect/Schema").tag<"user">;
@@ -1606,11 +1571,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1606
1571
  data: import("effect/Schema").Struct<{
1607
1572
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1608
1573
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1609
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1610
1574
  };
1611
1575
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1612
1576
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1613
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1577
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1614
1578
  };
1615
1579
  readonly item: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1616
1580
  readonly type: import("effect/Schema").tag<"user">;
@@ -1813,11 +1777,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1813
1777
  readonly data: import("effect/Schema").Struct<{
1814
1778
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1815
1779
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1816
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1817
1780
  };
1818
1781
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1819
1782
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1820
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1783
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1821
1784
  };
1822
1785
  }>;
1823
1786
  }> & {
@@ -1830,11 +1793,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1830
1793
  data: import("effect/Schema").Struct<{
1831
1794
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1832
1795
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1833
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1834
1796
  };
1835
1797
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1836
1798
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1837
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1799
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1838
1800
  };
1839
1801
  }>;
1840
1802
  }, import("effect/Schema").Struct<{
@@ -1871,11 +1833,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1871
1833
  readonly data: import("effect/Schema").Struct<{
1872
1834
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1873
1835
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1874
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1875
1836
  };
1876
1837
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1877
1838
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1878
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1839
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1879
1840
  };
1880
1841
  readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
1881
1842
  }>;
@@ -1889,11 +1850,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1889
1850
  data: import("effect/Schema").Struct<{
1890
1851
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1891
1852
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1892
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1893
1853
  };
1894
1854
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1895
1855
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
1896
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1856
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1897
1857
  };
1898
1858
  readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
1899
1859
  }>;
@@ -1931,7 +1891,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1931
1891
  readonly data: import("effect/Schema").Struct<{
1932
1892
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1933
1893
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1934
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1935
1894
  };
1936
1895
  }>;
1937
1896
  }> & {
@@ -1944,7 +1903,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1944
1903
  data: import("effect/Schema").Struct<{
1945
1904
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1946
1905
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1947
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1948
1906
  };
1949
1907
  }>;
1950
1908
  }, import("effect/Schema").Struct<{
@@ -1981,7 +1939,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1981
1939
  readonly data: import("effect/Schema").Struct<{
1982
1940
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1983
1941
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1984
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1985
1942
  };
1986
1943
  }>;
1987
1944
  }> & {
@@ -1994,7 +1951,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1994
1951
  data: import("effect/Schema").Struct<{
1995
1952
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1996
1953
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1997
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1998
1954
  };
1999
1955
  }>;
2000
1956
  }, import("effect/Schema").Struct<{
@@ -2031,7 +1987,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2031
1987
  readonly data: import("effect/Schema").Struct<{
2032
1988
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2033
1989
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2034
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2035
1990
  };
2036
1991
  readonly error: import("effect/Schema").Struct<{
2037
1992
  readonly type: import("effect/Schema").String;
@@ -2055,7 +2010,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2055
2010
  data: import("effect/Schema").Struct<{
2056
2011
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2057
2012
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2058
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2059
2013
  };
2060
2014
  readonly error: import("effect/Schema").Struct<{
2061
2015
  readonly type: import("effect/Schema").String;
@@ -2103,7 +2057,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2103
2057
  readonly data: import("effect/Schema").Struct<{
2104
2058
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2105
2059
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2106
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2107
2060
  };
2108
2061
  readonly reason: import("effect/Schema").Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
2109
2062
  }>;
@@ -2117,7 +2070,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2117
2070
  data: import("effect/Schema").Struct<{
2118
2071
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2119
2072
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2120
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2121
2073
  };
2122
2074
  readonly reason: import("effect/Schema").Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
2123
2075
  }>;
@@ -2155,7 +2107,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2155
2107
  readonly data: import("effect/Schema").Struct<{
2156
2108
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2157
2109
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2158
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2159
2110
  };
2160
2111
  readonly delta: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">, import("effect/Schema").Literal<"removed">]>>;
2161
2112
  readonly text: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2170,7 +2121,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2170
2121
  data: import("effect/Schema").Struct<{
2171
2122
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2172
2123
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2173
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2174
2124
  };
2175
2125
  readonly delta: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">, import("effect/Schema").Literal<"removed">]>>;
2176
2126
  readonly text: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2209,7 +2159,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2209
2159
  readonly data: import("effect/Schema").Struct<{
2210
2160
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2211
2161
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2212
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2213
2162
  };
2214
2163
  readonly text: import("effect/Schema").String;
2215
2164
  readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2225,7 +2174,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2225
2174
  data: import("effect/Schema").Struct<{
2226
2175
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2227
2176
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2228
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2229
2177
  };
2230
2178
  readonly text: import("effect/Schema").String;
2231
2179
  readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2265,7 +2213,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2265
2213
  readonly data: import("effect/Schema").Struct<{
2266
2214
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2267
2215
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2268
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2269
2216
  };
2270
2217
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Skill.ID">;
2271
2218
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Skill.Name">;
@@ -2281,7 +2228,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2281
2228
  data: import("effect/Schema").Struct<{
2282
2229
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2283
2230
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2284
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2285
2231
  };
2286
2232
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Skill.ID">;
2287
2233
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Skill.Name">;
@@ -2321,7 +2267,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2321
2267
  readonly data: import("effect/Schema").Struct<{
2322
2268
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2323
2269
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2324
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2325
2270
  };
2326
2271
  readonly shell: import("effect/Schema").Struct<{
2327
2272
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2353,7 +2298,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2353
2298
  data: import("effect/Schema").Struct<{
2354
2299
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2355
2300
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2356
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2357
2301
  };
2358
2302
  readonly shell: import("effect/Schema").Struct<{
2359
2303
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2409,7 +2353,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2409
2353
  readonly data: import("effect/Schema").Struct<{
2410
2354
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2411
2355
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2412
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2413
2356
  };
2414
2357
  readonly shell: import("effect/Schema").Struct<{
2415
2358
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2447,7 +2390,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2447
2390
  data: import("effect/Schema").Struct<{
2448
2391
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2449
2392
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2450
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2451
2393
  };
2452
2394
  readonly shell: import("effect/Schema").Struct<{
2453
2395
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2509,11 +2451,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2509
2451
  readonly data: import("effect/Schema").Struct<{
2510
2452
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2511
2453
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2512
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2513
2454
  };
2514
2455
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2515
2456
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2516
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2457
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2517
2458
  };
2518
2459
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
2519
2460
  readonly model: import("effect/Schema").Struct<{
@@ -2552,11 +2493,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2552
2493
  data: import("effect/Schema").Struct<{
2553
2494
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2554
2495
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2555
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2556
2496
  };
2557
2497
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2558
2498
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2559
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2499
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2560
2500
  };
2561
2501
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
2562
2502
  readonly model: import("effect/Schema").Struct<{
@@ -2619,11 +2559,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2619
2559
  readonly data: import("effect/Schema").Struct<{
2620
2560
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2621
2561
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2622
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2623
2562
  };
2624
2563
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2625
2564
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2626
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2565
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2627
2566
  };
2628
2567
  }>;
2629
2568
  }> & {
@@ -2636,11 +2575,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2636
2575
  data: import("effect/Schema").Struct<{
2637
2576
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2638
2577
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2639
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2640
2578
  };
2641
2579
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2642
2580
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2643
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2581
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2644
2582
  };
2645
2583
  }>;
2646
2584
  }, import("effect/Schema").Struct<{
@@ -2677,11 +2615,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2677
2615
  readonly data: import("effect/Schema").Struct<{
2678
2616
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2679
2617
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2680
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2681
2618
  };
2682
2619
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2683
2620
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2684
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2621
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2685
2622
  };
2686
2623
  readonly finish: import("effect/Schema").Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2687
2624
  readonly rawFinish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2711,11 +2648,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2711
2648
  data: import("effect/Schema").Struct<{
2712
2649
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2713
2650
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2714
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2715
2651
  };
2716
2652
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2717
2653
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2718
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2654
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2719
2655
  };
2720
2656
  readonly finish: import("effect/Schema").Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2721
2657
  readonly rawFinish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
@@ -2769,11 +2705,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2769
2705
  readonly data: import("effect/Schema").Struct<{
2770
2706
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2771
2707
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2772
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2773
2708
  };
2774
2709
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2775
2710
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2776
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2711
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2777
2712
  };
2778
2713
  readonly error: import("effect/Schema").Struct<{
2779
2714
  readonly type: import("effect/Schema").String;
@@ -2824,11 +2759,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2824
2759
  data: import("effect/Schema").Struct<{
2825
2760
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2826
2761
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2827
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2828
2762
  };
2829
2763
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2830
2764
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2831
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2765
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2832
2766
  };
2833
2767
  readonly error: import("effect/Schema").Struct<{
2834
2768
  readonly type: import("effect/Schema").String;
@@ -2903,11 +2837,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2903
2837
  readonly data: import("effect/Schema").Struct<{
2904
2838
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2905
2839
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2906
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2907
2840
  };
2908
2841
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2909
2842
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2910
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2843
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2911
2844
  };
2912
2845
  readonly ordinal: import("effect/Schema").Int;
2913
2846
  }>;
@@ -2921,11 +2854,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2921
2854
  data: import("effect/Schema").Struct<{
2922
2855
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2923
2856
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2924
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2925
2857
  };
2926
2858
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2927
2859
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2928
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2860
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2929
2861
  };
2930
2862
  readonly ordinal: import("effect/Schema").Int;
2931
2863
  }>;
@@ -2958,11 +2890,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2958
2890
  readonly data: import("effect/Schema").Struct<{
2959
2891
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2960
2892
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2961
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2962
2893
  };
2963
2894
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2964
2895
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2965
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2896
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2966
2897
  };
2967
2898
  readonly ordinal: import("effect/Schema").Int;
2968
2899
  readonly delta: import("effect/Schema").String;
@@ -2974,11 +2905,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2974
2905
  data: import("effect/Schema").Struct<{
2975
2906
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2976
2907
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2977
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2978
2908
  };
2979
2909
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2980
2910
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2981
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2911
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2982
2912
  };
2983
2913
  readonly ordinal: import("effect/Schema").Int;
2984
2914
  readonly delta: import("effect/Schema").String;
@@ -3017,11 +2947,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3017
2947
  readonly data: import("effect/Schema").Struct<{
3018
2948
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3019
2949
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3020
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3021
2950
  };
3022
2951
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3023
2952
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3024
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2953
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3025
2954
  };
3026
2955
  readonly ordinal: import("effect/Schema").Int;
3027
2956
  readonly text: import("effect/Schema").String;
@@ -3037,11 +2966,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3037
2966
  data: import("effect/Schema").Struct<{
3038
2967
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3039
2968
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3040
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3041
2969
  };
3042
2970
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3043
2971
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3044
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2972
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3045
2973
  };
3046
2974
  readonly ordinal: import("effect/Schema").Int;
3047
2975
  readonly text: import("effect/Schema").String;
@@ -3081,11 +3009,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3081
3009
  readonly data: import("effect/Schema").Struct<{
3082
3010
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3083
3011
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3084
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3085
3012
  };
3086
3013
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3087
3014
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3088
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3015
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3089
3016
  };
3090
3017
  readonly ordinal: import("effect/Schema").Int;
3091
3018
  readonly native: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
@@ -3100,11 +3027,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3100
3027
  data: import("effect/Schema").Struct<{
3101
3028
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3102
3029
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3103
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3104
3030
  };
3105
3031
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3106
3032
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3107
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3033
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3108
3034
  };
3109
3035
  readonly ordinal: import("effect/Schema").Int;
3110
3036
  readonly native: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
@@ -3138,11 +3064,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3138
3064
  readonly data: import("effect/Schema").Struct<{
3139
3065
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3140
3066
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3141
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3142
3067
  };
3143
3068
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3144
3069
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3145
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3070
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3146
3071
  };
3147
3072
  readonly ordinal: import("effect/Schema").Int;
3148
3073
  readonly delta: import("effect/Schema").String;
@@ -3154,11 +3079,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3154
3079
  data: import("effect/Schema").Struct<{
3155
3080
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3156
3081
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3157
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3158
3082
  };
3159
3083
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3160
3084
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3161
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3085
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3162
3086
  };
3163
3087
  readonly ordinal: import("effect/Schema").Int;
3164
3088
  readonly delta: import("effect/Schema").String;
@@ -3197,11 +3121,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3197
3121
  readonly data: import("effect/Schema").Struct<{
3198
3122
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3199
3123
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3200
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3201
3124
  };
3202
3125
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3203
3126
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3204
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3127
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3205
3128
  };
3206
3129
  readonly ordinal: import("effect/Schema").Int;
3207
3130
  readonly text: import("effect/Schema").String;
@@ -3217,11 +3140,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3217
3140
  data: import("effect/Schema").Struct<{
3218
3141
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3219
3142
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3220
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3221
3143
  };
3222
3144
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3223
3145
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3224
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3146
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3225
3147
  };
3226
3148
  readonly ordinal: import("effect/Schema").Int;
3227
3149
  readonly text: import("effect/Schema").String;
@@ -3261,11 +3183,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3261
3183
  readonly data: import("effect/Schema").Struct<{
3262
3184
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3263
3185
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3264
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3265
3186
  };
3266
3187
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3267
3188
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3268
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3189
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3269
3190
  };
3270
3191
  readonly id: import("effect/Schema").String;
3271
3192
  readonly name: import("effect/Schema").String;
@@ -3280,11 +3201,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3280
3201
  data: import("effect/Schema").Struct<{
3281
3202
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3282
3203
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3283
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3284
3204
  };
3285
3205
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3286
3206
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3287
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3207
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3288
3208
  };
3289
3209
  readonly id: import("effect/Schema").String;
3290
3210
  readonly name: import("effect/Schema").String;
@@ -3318,11 +3238,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3318
3238
  readonly data: import("effect/Schema").Struct<{
3319
3239
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3320
3240
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3321
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3322
3241
  };
3323
3242
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3324
3243
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3325
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3244
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3326
3245
  };
3327
3246
  readonly id: import("effect/Schema").String;
3328
3247
  readonly delta: import("effect/Schema").String;
@@ -3334,11 +3253,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3334
3253
  data: import("effect/Schema").Struct<{
3335
3254
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3336
3255
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3337
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3338
3256
  };
3339
3257
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3340
3258
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3341
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3259
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3342
3260
  };
3343
3261
  readonly id: import("effect/Schema").String;
3344
3262
  readonly delta: import("effect/Schema").String;
@@ -3377,11 +3295,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3377
3295
  readonly data: import("effect/Schema").Struct<{
3378
3296
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3379
3297
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3380
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3381
3298
  };
3382
3299
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3383
3300
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3384
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3301
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3385
3302
  };
3386
3303
  readonly id: import("effect/Schema").String;
3387
3304
  readonly text: import("effect/Schema").String;
@@ -3396,11 +3313,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3396
3313
  data: import("effect/Schema").Struct<{
3397
3314
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3398
3315
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3399
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3400
3316
  };
3401
3317
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3402
3318
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3403
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3319
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3404
3320
  };
3405
3321
  readonly id: import("effect/Schema").String;
3406
3322
  readonly text: import("effect/Schema").String;
@@ -3439,11 +3355,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3439
3355
  readonly data: import("effect/Schema").Struct<{
3440
3356
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3441
3357
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3442
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3443
3358
  };
3444
3359
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3445
3360
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3446
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3361
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3447
3362
  };
3448
3363
  readonly id: import("effect/Schema").String;
3449
3364
  readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
@@ -3460,11 +3375,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3460
3375
  data: import("effect/Schema").Struct<{
3461
3376
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3462
3377
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3463
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3464
3378
  };
3465
3379
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3466
3380
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3467
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3381
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3468
3382
  };
3469
3383
  readonly id: import("effect/Schema").String;
3470
3384
  readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
@@ -3500,11 +3414,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3500
3414
  readonly data: import("effect/Schema").Struct<{
3501
3415
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3502
3416
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3503
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3504
3417
  };
3505
3418
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3506
3419
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3507
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3420
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3508
3421
  };
3509
3422
  readonly id: import("effect/Schema").String;
3510
3423
  readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
@@ -3516,11 +3429,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3516
3429
  data: import("effect/Schema").Struct<{
3517
3430
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3518
3431
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3519
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3520
3432
  };
3521
3433
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3522
3434
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3523
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3435
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3524
3436
  };
3525
3437
  readonly id: import("effect/Schema").String;
3526
3438
  readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
@@ -3559,11 +3471,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3559
3471
  readonly data: import("effect/Schema").Struct<{
3560
3472
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3561
3473
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3562
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3563
3474
  };
3564
3475
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3565
3476
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3566
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3477
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3567
3478
  };
3568
3479
  readonly id: import("effect/Schema").String;
3569
3480
  readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
@@ -3589,11 +3500,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3589
3500
  data: import("effect/Schema").Struct<{
3590
3501
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3591
3502
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3592
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3593
3503
  };
3594
3504
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3595
3505
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3596
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3506
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3597
3507
  };
3598
3508
  readonly id: import("effect/Schema").String;
3599
3509
  readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
@@ -3643,11 +3553,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3643
3553
  readonly data: import("effect/Schema").Struct<{
3644
3554
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3645
3555
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3646
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3647
3556
  };
3648
3557
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3649
3558
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3650
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3559
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3651
3560
  };
3652
3561
  readonly id: import("effect/Schema").String;
3653
3562
  readonly error: import("effect/Schema").Struct<{
@@ -3692,11 +3601,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3692
3601
  data: import("effect/Schema").Struct<{
3693
3602
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3694
3603
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3695
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3696
3604
  };
3697
3605
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3698
3606
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3699
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3607
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3700
3608
  };
3701
3609
  readonly id: import("effect/Schema").String;
3702
3610
  readonly error: import("effect/Schema").Struct<{
@@ -3765,11 +3673,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3765
3673
  readonly data: import("effect/Schema").Struct<{
3766
3674
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3767
3675
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3768
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3769
3676
  };
3770
3677
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3771
3678
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3772
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3679
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3773
3680
  };
3774
3681
  readonly attempt: import("effect/Schema").Int;
3775
3682
  readonly at: import("effect/Schema").Int;
@@ -3795,11 +3702,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3795
3702
  data: import("effect/Schema").Struct<{
3796
3703
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3797
3704
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3798
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3799
3705
  };
3800
3706
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3801
3707
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3802
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3708
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3803
3709
  };
3804
3710
  readonly attempt: import("effect/Schema").Int;
3805
3711
  readonly at: import("effect/Schema").Int;
@@ -3849,15 +3755,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3849
3755
  readonly data: import("effect/Schema").Struct<{
3850
3756
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3851
3757
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3852
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3853
3758
  };
3854
3759
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3855
3760
  readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3856
3761
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3857
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3762
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3858
3763
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3859
3764
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3860
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3765
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3861
3766
  }>, never, never>;
3862
3767
  }>;
3863
3768
  }> & {
@@ -3870,15 +3775,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3870
3775
  data: import("effect/Schema").Struct<{
3871
3776
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3872
3777
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3873
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3874
3778
  };
3875
3779
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3876
3780
  readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3877
3781
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3878
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3782
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3879
3783
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3880
3784
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3881
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3785
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3882
3786
  }>, never, never>;
3883
3787
  }>;
3884
3788
  }, import("effect/Schema").Struct<{
@@ -3910,7 +3814,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3910
3814
  readonly data: import("effect/Schema").Struct<{
3911
3815
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3912
3816
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3913
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3914
3817
  };
3915
3818
  readonly text: import("effect/Schema").String;
3916
3819
  }>;
@@ -3921,7 +3824,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3921
3824
  data: import("effect/Schema").Struct<{
3922
3825
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3923
3826
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3924
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3925
3827
  };
3926
3828
  readonly text: import("effect/Schema").String;
3927
3829
  }>;
@@ -3959,7 +3861,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3959
3861
  readonly data: import("effect/Schema").Struct<{
3960
3862
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3961
3863
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3962
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3963
3864
  };
3964
3865
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3965
3866
  readonly model: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
@@ -4042,7 +3943,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4042
3943
  data: import("effect/Schema").Struct<{
4043
3944
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4044
3945
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4045
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4046
3946
  };
4047
3947
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4048
3948
  readonly model: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
@@ -4149,7 +4049,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4149
4049
  readonly data: import("effect/Schema").Struct<{
4150
4050
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4151
4051
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4152
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4153
4052
  };
4154
4053
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4155
4054
  readonly error: import("effect/Schema").Struct<{
@@ -4165,10 +4064,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4165
4064
  }>;
4166
4065
  readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4167
4066
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4168
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4067
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4169
4068
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4170
4069
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4171
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4070
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4172
4071
  }>, never, never>;
4173
4072
  readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
4174
4073
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -4203,7 +4102,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4203
4102
  data: import("effect/Schema").Struct<{
4204
4103
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4205
4104
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4206
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4207
4105
  };
4208
4106
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4209
4107
  readonly error: import("effect/Schema").Struct<{
@@ -4219,10 +4117,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4219
4117
  }>;
4220
4118
  readonly inputID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4221
4119
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4222
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4120
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4223
4121
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4224
4122
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4225
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4123
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4226
4124
  }>, never, never>;
4227
4125
  readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
4228
4126
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -4281,12 +4179,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4281
4179
  readonly data: import("effect/Schema").Struct<{
4282
4180
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4283
4181
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4284
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4285
4182
  };
4286
4183
  readonly revert: import("effect/Schema").Struct<{
4287
4184
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4288
4185
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4289
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4186
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4290
4187
  };
4291
4188
  readonly partID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
4292
4189
  readonly snapshot: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>, never, never>;
@@ -4315,12 +4212,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4315
4212
  data: import("effect/Schema").Struct<{
4316
4213
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4317
4214
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4318
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4319
4215
  };
4320
4216
  readonly revert: import("effect/Schema").Struct<{
4321
4217
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4322
4218
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4323
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4219
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4324
4220
  };
4325
4221
  readonly partID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
4326
4222
  readonly snapshot: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>, never, never>;
@@ -4373,7 +4269,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4373
4269
  readonly data: import("effect/Schema").Struct<{
4374
4270
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4375
4271
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4376
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4377
4272
  };
4378
4273
  }>;
4379
4274
  }> & {
@@ -4386,7 +4281,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4386
4281
  data: import("effect/Schema").Struct<{
4387
4282
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4388
4283
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4389
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4390
4284
  };
4391
4285
  }>;
4392
4286
  }, import("effect/Schema").Struct<{
@@ -4423,11 +4317,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4423
4317
  readonly data: import("effect/Schema").Struct<{
4424
4318
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4425
4319
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4426
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4427
4320
  };
4428
4321
  readonly to: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4429
4322
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4430
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4323
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4431
4324
  };
4432
4325
  }>;
4433
4326
  }> & {
@@ -4440,11 +4333,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4440
4333
  data: import("effect/Schema").Struct<{
4441
4334
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4442
4335
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4443
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4444
4336
  };
4445
4337
  readonly to: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4446
4338
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4447
- fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4339
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4448
4340
  };
4449
4341
  }>;
4450
4342
  }, import("effect/Schema").Struct<{
@@ -4546,7 +4438,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4546
4438
  readonly data: import("effect/Schema").Struct<{
4547
4439
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4548
4440
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4549
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4550
4441
  };
4551
4442
  readonly action: import("effect/Schema").String;
4552
4443
  readonly resources: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -4573,7 +4464,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4573
4464
  data: import("effect/Schema").Struct<{
4574
4465
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4575
4466
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4576
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4577
4467
  };
4578
4468
  readonly action: import("effect/Schema").String;
4579
4469
  readonly resources: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -4622,7 +4512,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4622
4512
  readonly data: import("effect/Schema").Struct<{
4623
4513
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4624
4514
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4625
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4626
4515
  };
4627
4516
  readonly requestID: import("effect/Schema").brand<import("effect/Schema").String, "Permission.ID"> & {
4628
4517
  create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
@@ -4636,7 +4525,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4636
4525
  data: import("effect/Schema").Struct<{
4637
4526
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4638
4527
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4639
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4640
4528
  };
4641
4529
  readonly requestID: import("effect/Schema").brand<import("effect/Schema").String, "Permission.ID"> & {
4642
4530
  create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
@@ -5200,7 +5088,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5200
5088
  readonly data: import("effect/Schema").Struct<{
5201
5089
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5202
5090
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5203
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5204
5091
  };
5205
5092
  readonly terminal: import("effect/Schema").Struct<{
5206
5093
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
@@ -5216,7 +5103,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5216
5103
  readonly exitCode: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
5217
5104
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5218
5105
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5219
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5220
5106
  };
5221
5107
  readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5222
5108
  readonly size: import("effect/Schema").Struct<{
@@ -5236,7 +5122,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5236
5122
  data: import("effect/Schema").Struct<{
5237
5123
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5238
5124
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5239
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5240
5125
  };
5241
5126
  readonly terminal: import("effect/Schema").Struct<{
5242
5127
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
@@ -5252,7 +5137,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5252
5137
  readonly exitCode: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
5253
5138
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5254
5139
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5255
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5256
5140
  };
5257
5141
  readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5258
5142
  readonly size: import("effect/Schema").Struct<{
@@ -5294,7 +5178,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5294
5178
  readonly data: import("effect/Schema").Struct<{
5295
5179
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5296
5180
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5297
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5298
5181
  };
5299
5182
  readonly ptyID: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
5300
5183
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -5308,7 +5191,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5308
5191
  data: import("effect/Schema").Struct<{
5309
5192
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5310
5193
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5311
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5312
5194
  };
5313
5195
  readonly ptyID: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
5314
5196
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -5910,7 +5792,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5910
5792
  readonly data: import("effect/Schema").Struct<{
5911
5793
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5912
5794
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5913
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5914
5795
  };
5915
5796
  readonly status: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5916
5797
  readonly type: import("effect/Schema").Literal<"idle">;
@@ -5945,7 +5826,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5945
5826
  data: import("effect/Schema").Struct<{
5946
5827
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5947
5828
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5948
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5949
5829
  };
5950
5830
  readonly status: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5951
5831
  readonly type: import("effect/Schema").Literal<"idle">;
@@ -6002,7 +5882,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6002
5882
  readonly data: import("effect/Schema").Struct<{
6003
5883
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
6004
5884
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6005
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6006
5885
  };
6007
5886
  }>;
6008
5887
  }> & {
@@ -6012,7 +5891,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6012
5891
  data: import("effect/Schema").Struct<{
6013
5892
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
6014
5893
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6015
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6016
5894
  };
6017
5895
  }>;
6018
5896
  }, import("effect/Schema").Struct<{
@@ -6372,26 +6250,20 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6372
6250
  readonly metadata?: {
6373
6251
  readonly [x: string]: unknown;
6374
6252
  } | undefined;
6375
- readonly type: "skill.updated";
6376
- readonly location?: {
6377
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6378
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6379
- } | undefined;
6380
- readonly data: {};
6381
- } | {
6382
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6383
- readonly created: number;
6384
- readonly metadata?: {
6385
- readonly [x: string]: unknown;
6386
- } | undefined;
6387
- readonly type: "credential.switched";
6253
+ readonly type: "session.agent.selected";
6254
+ readonly durable: {
6255
+ readonly aggregateID: string;
6256
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6257
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6258
+ };
6388
6259
  readonly location?: {
6389
6260
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6390
6261
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6391
6262
  } | undefined;
6392
6263
  readonly data: {
6393
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6394
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
6264
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6265
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6266
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6395
6267
  };
6396
6268
  } | {
6397
6269
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6399,19 +6271,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6399
6271
  readonly metadata?: {
6400
6272
  readonly [x: string]: unknown;
6401
6273
  } | undefined;
6402
- readonly type: "credential.updated";
6274
+ readonly type: "session.archived";
6275
+ readonly durable: {
6276
+ readonly aggregateID: string;
6277
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6278
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6279
+ };
6403
6280
  readonly location?: {
6404
6281
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6405
6282
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6406
6283
  } | undefined;
6407
- readonly data: {};
6284
+ readonly data: {
6285
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6286
+ };
6408
6287
  } | {
6409
6288
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6410
6289
  readonly created: number;
6411
6290
  readonly metadata?: {
6412
6291
  readonly [x: string]: unknown;
6413
6292
  } | undefined;
6414
- readonly type: "session.created";
6293
+ readonly type: "session.compaction.ended";
6415
6294
  readonly durable: {
6416
6295
  readonly aggregateID: string;
6417
6296
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6423,30 +6302,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6423
6302
  } | undefined;
6424
6303
  readonly data: {
6425
6304
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6426
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6427
- readonly location: {
6428
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6429
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6430
- };
6431
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6432
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6433
- readonly slug: string;
6434
- readonly title?: string | undefined;
6435
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6305
+ readonly reason: "auto" | "manual";
6436
6306
  readonly model?: {
6437
6307
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6438
6308
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6439
6309
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6440
6310
  } | undefined;
6441
- readonly metadata?: {
6442
- readonly [x: string]: import("effect/Schema").Json;
6311
+ readonly native?: {
6312
+ readonly [x: string]: unknown;
6313
+ } | undefined;
6314
+ readonly text: string;
6315
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6316
+ readonly tokens?: {
6317
+ readonly input: number;
6318
+ readonly output: number;
6319
+ readonly reasoning: number;
6320
+ readonly cache: {
6321
+ readonly read: number;
6322
+ readonly write: number;
6323
+ };
6443
6324
  } | undefined;
6444
- readonly permissions?: readonly {
6445
- readonly action: string;
6446
- readonly resource: string;
6447
- readonly effect: "allow" | "ask" | "deny";
6448
- }[] | undefined;
6449
- readonly version: string;
6450
6325
  };
6451
6326
  } | {
6452
6327
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6454,7 +6329,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6454
6329
  readonly metadata?: {
6455
6330
  readonly [x: string]: unknown;
6456
6331
  } | undefined;
6457
- readonly type: "session.agent.selected";
6332
+ readonly type: "session.compaction.failed";
6458
6333
  readonly durable: {
6459
6334
  readonly aggregateID: string;
6460
6335
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6466,8 +6341,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6466
6341
  } | undefined;
6467
6342
  readonly data: {
6468
6343
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6469
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6470
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6344
+ readonly reason: "auto" | "manual";
6345
+ readonly error: {
6346
+ readonly type: string;
6347
+ readonly message: string;
6348
+ readonly status?: number | undefined;
6349
+ readonly response?: {
6350
+ readonly body: string;
6351
+ } | undefined;
6352
+ readonly retryAfterMs?: number | undefined;
6353
+ };
6354
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6355
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6356
+ readonly tokens?: {
6357
+ readonly input: number;
6358
+ readonly output: number;
6359
+ readonly reasoning: number;
6360
+ readonly cache: {
6361
+ readonly read: number;
6362
+ readonly write: number;
6363
+ };
6364
+ } | undefined;
6471
6365
  };
6472
6366
  } | {
6473
6367
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6475,7 +6369,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6475
6369
  readonly metadata?: {
6476
6370
  readonly [x: string]: unknown;
6477
6371
  } | undefined;
6478
- readonly type: "session.model.selected";
6372
+ readonly type: "session.compaction.started";
6479
6373
  readonly durable: {
6480
6374
  readonly aggregateID: string;
6481
6375
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6487,16 +6381,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6487
6381
  } | undefined;
6488
6382
  readonly data: {
6489
6383
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6490
- readonly model: {
6491
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6492
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6493
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6494
- };
6495
- readonly previous?: {
6496
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6497
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6498
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6499
- } | undefined;
6384
+ readonly reason: "auto" | "manual";
6385
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6500
6386
  };
6501
6387
  } | {
6502
6388
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6504,7 +6390,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6504
6390
  readonly metadata?: {
6505
6391
  readonly [x: string]: unknown;
6506
6392
  } | undefined;
6507
- readonly type: "session.moved";
6393
+ readonly type: "session.created";
6508
6394
  readonly durable: {
6509
6395
  readonly aggregateID: string;
6510
6396
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6515,13 +6401,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6515
6401
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6516
6402
  } | undefined;
6517
6403
  readonly data: {
6404
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6405
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6518
6406
  readonly location: {
6519
6407
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6520
6408
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6521
6409
  };
6522
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6523
6410
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6524
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6411
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6412
+ readonly slug: string;
6413
+ readonly title?: string | undefined;
6414
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6415
+ readonly model?: {
6416
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6417
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6418
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6419
+ } | undefined;
6420
+ readonly metadata?: {
6421
+ readonly [x: string]: import("effect/Schema").Json;
6422
+ } | undefined;
6423
+ readonly permissions?: readonly {
6424
+ readonly action: string;
6425
+ readonly resource: string;
6426
+ readonly effect: "allow" | "ask" | "deny";
6427
+ }[] | undefined;
6428
+ readonly version: string;
6525
6429
  };
6526
6430
  } | {
6527
6431
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6529,7 +6433,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6529
6433
  readonly metadata?: {
6530
6434
  readonly [x: string]: unknown;
6531
6435
  } | undefined;
6532
- readonly type: "session.renamed";
6436
+ readonly type: "session.deleted";
6533
6437
  readonly durable: {
6534
6438
  readonly aggregateID: string;
6535
6439
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6541,7 +6445,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6541
6445
  } | undefined;
6542
6446
  readonly data: {
6543
6447
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6544
- readonly title: string;
6545
6448
  };
6546
6449
  } | {
6547
6450
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6549,7 +6452,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6549
6452
  readonly metadata?: {
6550
6453
  readonly [x: string]: unknown;
6551
6454
  } | undefined;
6552
- readonly type: "session.metadata.updated";
6455
+ readonly type: "session.execution.failed";
6553
6456
  readonly durable: {
6554
6457
  readonly aggregateID: string;
6555
6458
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6561,8 +6464,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6561
6464
  } | undefined;
6562
6465
  readonly data: {
6563
6466
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6564
- readonly metadata: {
6565
- readonly [x: string]: import("effect/Schema").Json;
6467
+ readonly error: {
6468
+ readonly type: string;
6469
+ readonly message: string;
6470
+ readonly status?: number | undefined;
6471
+ readonly response?: {
6472
+ readonly body: string;
6473
+ } | undefined;
6474
+ readonly retryAfterMs?: number | undefined;
6566
6475
  };
6567
6476
  };
6568
6477
  } | {
@@ -6571,7 +6480,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6571
6480
  readonly metadata?: {
6572
6481
  readonly [x: string]: unknown;
6573
6482
  } | undefined;
6574
- readonly type: "session.permissions";
6483
+ readonly type: "session.execution.interrupted";
6575
6484
  readonly durable: {
6576
6485
  readonly aggregateID: string;
6577
6486
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6583,11 +6492,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6583
6492
  } | undefined;
6584
6493
  readonly data: {
6585
6494
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6586
- readonly permissions: readonly {
6587
- readonly action: string;
6588
- readonly resource: string;
6589
- readonly effect: "allow" | "ask" | "deny";
6590
- }[];
6495
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
6591
6496
  };
6592
6497
  } | {
6593
6498
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6595,7 +6500,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6595
6500
  readonly metadata?: {
6596
6501
  readonly [x: string]: unknown;
6597
6502
  } | undefined;
6598
- readonly type: "session.viewed";
6503
+ readonly type: "session.execution.started";
6599
6504
  readonly durable: {
6600
6505
  readonly aggregateID: string;
6601
6506
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6607,7 +6512,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6607
6512
  } | undefined;
6608
6513
  readonly data: {
6609
6514
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6610
- readonly idle: number;
6611
6515
  };
6612
6516
  } | {
6613
6517
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6615,7 +6519,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6615
6519
  readonly metadata?: {
6616
6520
  readonly [x: string]: unknown;
6617
6521
  } | undefined;
6618
- readonly type: "session.archived";
6522
+ readonly type: "session.execution.succeeded";
6619
6523
  readonly durable: {
6620
6524
  readonly aggregateID: string;
6621
6525
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6634,7 +6538,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6634
6538
  readonly metadata?: {
6635
6539
  readonly [x: string]: unknown;
6636
6540
  } | undefined;
6637
- readonly type: "session.unarchived";
6541
+ readonly type: "session.forked";
6638
6542
  readonly durable: {
6639
6543
  readonly aggregateID: string;
6640
6544
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6646,30 +6550,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6646
6550
  } | undefined;
6647
6551
  readonly data: {
6648
6552
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6649
- };
6650
- } | {
6651
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6652
- readonly created: number;
6653
- readonly metadata?: {
6654
- readonly [x: string]: unknown;
6655
- } | undefined;
6656
- readonly type: "session.usage.updated";
6657
- readonly location?: {
6658
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6659
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6660
- } | undefined;
6661
- readonly data: {
6662
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6663
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
6664
- readonly tokens: {
6665
- readonly input: number;
6666
- readonly output: number;
6667
- readonly reasoning: number;
6668
- readonly cache: {
6669
- readonly read: number;
6670
- readonly write: number;
6671
- };
6553
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6554
+ readonly boundary: {
6555
+ readonly type: "before";
6556
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6557
+ } | {
6558
+ readonly type: "through";
6559
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6672
6560
  };
6561
+ readonly instructions?: {
6562
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
6563
+ } | undefined;
6564
+ readonly instructionEntries?: readonly {
6565
+ readonly key: string;
6566
+ readonly value: import("effect/Schema").Json;
6567
+ readonly removed: boolean;
6568
+ }[] | undefined;
6673
6569
  };
6674
6570
  } | {
6675
6571
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6677,7 +6573,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6677
6573
  readonly metadata?: {
6678
6574
  readonly [x: string]: unknown;
6679
6575
  } | undefined;
6680
- readonly type: "session.deleted";
6576
+ readonly type: "session.inbox.cancelled";
6681
6577
  readonly durable: {
6682
6578
  readonly aggregateID: string;
6683
6579
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6689,6 +6585,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6689
6585
  } | undefined;
6690
6586
  readonly data: {
6691
6587
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6588
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6692
6589
  };
6693
6590
  } | {
6694
6591
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6696,7 +6593,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6696
6593
  readonly metadata?: {
6697
6594
  readonly [x: string]: unknown;
6698
6595
  } | undefined;
6699
- readonly type: "session.forked";
6596
+ readonly type: "session.inbox.delivered";
6700
6597
  readonly durable: {
6701
6598
  readonly aggregateID: string;
6702
6599
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6708,22 +6605,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6708
6605
  } | undefined;
6709
6606
  readonly data: {
6710
6607
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6711
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6712
- readonly boundary: {
6713
- readonly type: "before";
6714
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6715
- } | {
6716
- readonly type: "through";
6717
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6718
- };
6719
- readonly instructions?: {
6720
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
6721
- } | undefined;
6722
- readonly instructionEntries?: readonly {
6723
- readonly key: string;
6724
- readonly value: import("effect/Schema").Json;
6725
- readonly removed: boolean;
6726
- }[] | undefined;
6608
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6727
6609
  };
6728
6610
  } | {
6729
6611
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6731,7 +6613,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6731
6613
  readonly metadata?: {
6732
6614
  readonly [x: string]: unknown;
6733
6615
  } | undefined;
6734
- readonly type: "session.inbox.delivered";
6616
+ readonly type: "session.inbox.delivery.changed";
6735
6617
  readonly durable: {
6736
6618
  readonly aggregateID: string;
6737
6619
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6744,6 +6626,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6744
6626
  readonly data: {
6745
6627
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6746
6628
  readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6629
+ readonly delivery: "queue" | "steer";
6747
6630
  };
6748
6631
  } | {
6749
6632
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6841,7 +6724,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6841
6724
  readonly metadata?: {
6842
6725
  readonly [x: string]: unknown;
6843
6726
  } | undefined;
6844
- readonly type: "session.inbox.cancelled";
6727
+ readonly type: "session.instructions.updated";
6845
6728
  readonly durable: {
6846
6729
  readonly aggregateID: string;
6847
6730
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6853,7 +6736,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6853
6736
  } | undefined;
6854
6737
  readonly data: {
6855
6738
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6856
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6739
+ readonly delta: {
6740
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
6741
+ };
6742
+ readonly text?: string | undefined;
6857
6743
  };
6858
6744
  } | {
6859
6745
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6861,7 +6747,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6861
6747
  readonly metadata?: {
6862
6748
  readonly [x: string]: unknown;
6863
6749
  } | undefined;
6864
- readonly type: "session.inbox.delivery.changed";
6750
+ readonly type: "session.metadata.updated";
6865
6751
  readonly durable: {
6866
6752
  readonly aggregateID: string;
6867
6753
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6873,8 +6759,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6873
6759
  } | undefined;
6874
6760
  readonly data: {
6875
6761
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6876
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6877
- readonly delivery: "queue" | "steer";
6762
+ readonly metadata: {
6763
+ readonly [x: string]: import("effect/Schema").Json;
6764
+ };
6878
6765
  };
6879
6766
  } | {
6880
6767
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6882,7 +6769,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6882
6769
  readonly metadata?: {
6883
6770
  readonly [x: string]: unknown;
6884
6771
  } | undefined;
6885
- readonly type: "session.execution.started";
6772
+ readonly type: "session.model.selected";
6886
6773
  readonly durable: {
6887
6774
  readonly aggregateID: string;
6888
6775
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6894,6 +6781,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6894
6781
  } | undefined;
6895
6782
  readonly data: {
6896
6783
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6784
+ readonly model: {
6785
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6786
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6787
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6788
+ };
6789
+ readonly previous?: {
6790
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6791
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6792
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6793
+ } | undefined;
6897
6794
  };
6898
6795
  } | {
6899
6796
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6901,7 +6798,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6901
6798
  readonly metadata?: {
6902
6799
  readonly [x: string]: unknown;
6903
6800
  } | undefined;
6904
- readonly type: "session.execution.succeeded";
6801
+ readonly type: "session.moved";
6905
6802
  readonly durable: {
6906
6803
  readonly aggregateID: string;
6907
6804
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6912,15 +6809,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6912
6809
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6913
6810
  } | undefined;
6914
6811
  readonly data: {
6915
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6916
- };
6917
- } | {
6812
+ readonly location: {
6813
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6814
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6815
+ };
6816
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6817
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6818
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6819
+ };
6820
+ } | {
6918
6821
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6919
6822
  readonly created: number;
6920
6823
  readonly metadata?: {
6921
6824
  readonly [x: string]: unknown;
6922
6825
  } | undefined;
6923
- readonly type: "session.execution.failed";
6826
+ readonly type: "session.permissions";
6924
6827
  readonly durable: {
6925
6828
  readonly aggregateID: string;
6926
6829
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6932,15 +6835,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6932
6835
  } | undefined;
6933
6836
  readonly data: {
6934
6837
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6935
- readonly error: {
6936
- readonly type: string;
6937
- readonly message: string;
6938
- readonly status?: number | undefined;
6939
- readonly response?: {
6940
- readonly body: string;
6941
- } | undefined;
6942
- readonly retryAfterMs?: number | undefined;
6943
- };
6838
+ readonly permissions: readonly {
6839
+ readonly action: string;
6840
+ readonly resource: string;
6841
+ readonly effect: "allow" | "ask" | "deny";
6842
+ }[];
6944
6843
  };
6945
6844
  } | {
6946
6845
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6948,7 +6847,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6948
6847
  readonly metadata?: {
6949
6848
  readonly [x: string]: unknown;
6950
6849
  } | undefined;
6951
- readonly type: "session.execution.interrupted";
6850
+ readonly type: "session.reasoning.ended";
6952
6851
  readonly durable: {
6953
6852
  readonly aggregateID: string;
6954
6853
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6960,7 +6859,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6960
6859
  } | undefined;
6961
6860
  readonly data: {
6962
6861
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6963
- readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
6862
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6863
+ readonly ordinal: number;
6864
+ readonly text: string;
6865
+ readonly native?: {
6866
+ readonly [x: string]: unknown;
6867
+ } | undefined;
6964
6868
  };
6965
6869
  } | {
6966
6870
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6968,7 +6872,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6968
6872
  readonly metadata?: {
6969
6873
  readonly [x: string]: unknown;
6970
6874
  } | undefined;
6971
- readonly type: "session.instructions.updated";
6875
+ readonly type: "session.reasoning.started";
6972
6876
  readonly durable: {
6973
6877
  readonly aggregateID: string;
6974
6878
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6980,10 +6884,62 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6980
6884
  } | undefined;
6981
6885
  readonly data: {
6982
6886
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6983
- readonly delta: {
6984
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
6887
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6888
+ readonly ordinal: number;
6889
+ readonly native?: {
6890
+ readonly [x: string]: unknown;
6891
+ } | undefined;
6892
+ };
6893
+ } | {
6894
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6895
+ readonly created: number;
6896
+ readonly metadata?: {
6897
+ readonly [x: string]: unknown;
6898
+ } | undefined;
6899
+ readonly type: "session.renamed";
6900
+ readonly durable: {
6901
+ readonly aggregateID: string;
6902
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6903
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6904
+ };
6905
+ readonly location?: {
6906
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6907
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6908
+ } | undefined;
6909
+ readonly data: {
6910
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6911
+ readonly title: string;
6912
+ };
6913
+ } | {
6914
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6915
+ readonly created: number;
6916
+ readonly metadata?: {
6917
+ readonly [x: string]: unknown;
6918
+ } | undefined;
6919
+ readonly type: "session.retry.scheduled";
6920
+ readonly durable: {
6921
+ readonly aggregateID: string;
6922
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6923
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6924
+ };
6925
+ readonly location?: {
6926
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6927
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6928
+ } | undefined;
6929
+ readonly data: {
6930
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6931
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6932
+ readonly attempt: number;
6933
+ readonly at: number;
6934
+ readonly error: {
6935
+ readonly type: string;
6936
+ readonly message: string;
6937
+ readonly status?: number | undefined;
6938
+ readonly response?: {
6939
+ readonly body: string;
6940
+ } | undefined;
6941
+ readonly retryAfterMs?: number | undefined;
6985
6942
  };
6986
- readonly text?: string | undefined;
6987
6943
  };
6988
6944
  } | {
6989
6945
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6991,7 +6947,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6991
6947
  readonly metadata?: {
6992
6948
  readonly [x: string]: unknown;
6993
6949
  } | undefined;
6994
- readonly type: "session.synthetic";
6950
+ readonly type: "session.revert.cleared";
6995
6951
  readonly durable: {
6996
6952
  readonly aggregateID: string;
6997
6953
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7003,11 +6959,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7003
6959
  } | undefined;
7004
6960
  readonly data: {
7005
6961
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7006
- readonly text: string;
7007
- readonly description?: string | undefined;
7008
- readonly metadata?: {
7009
- readonly [x: string]: unknown;
7010
- } | undefined;
7011
6962
  };
7012
6963
  } | {
7013
6964
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7015,7 +6966,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7015
6966
  readonly metadata?: {
7016
6967
  readonly [x: string]: unknown;
7017
6968
  } | undefined;
7018
- readonly type: "session.skill.activated";
6969
+ readonly type: "session.revert.committed";
7019
6970
  readonly durable: {
7020
6971
  readonly aggregateID: string;
7021
6972
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7027,9 +6978,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7027
6978
  } | undefined;
7028
6979
  readonly data: {
7029
6980
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7030
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7031
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7032
- readonly text: string;
6981
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7033
6982
  };
7034
6983
  } | {
7035
6984
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7037,7 +6986,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7037
6986
  readonly metadata?: {
7038
6987
  readonly [x: string]: unknown;
7039
6988
  } | undefined;
7040
- readonly type: "session.shell.started";
6989
+ readonly type: "session.revert.staged";
7041
6990
  readonly durable: {
7042
6991
  readonly aggregateID: string;
7043
6992
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7049,23 +6998,17 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7049
6998
  } | undefined;
7050
6999
  readonly data: {
7051
7000
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7052
- readonly shell: {
7053
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7054
- readonly status: "exited" | "killed" | "running" | "timeout";
7055
- readonly command: string;
7056
- readonly cwd: string;
7057
- readonly shell: string;
7058
- readonly file: string;
7059
- readonly pid?: number | undefined;
7060
- readonly exit?: number | undefined;
7061
- readonly signal?: string | undefined;
7062
- readonly metadata: {
7063
- readonly [x: string]: unknown;
7064
- };
7065
- readonly time: {
7066
- readonly started: number;
7067
- readonly completed?: number | undefined;
7068
- };
7001
+ readonly revert: {
7002
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7003
+ readonly partID?: string | undefined;
7004
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7005
+ readonly files?: readonly {
7006
+ readonly file: string;
7007
+ readonly patch: string;
7008
+ readonly additions: number;
7009
+ readonly deletions: number;
7010
+ readonly status: "added" | "deleted" | "modified";
7011
+ }[] | undefined;
7069
7012
  };
7070
7013
  };
7071
7014
  } | {
@@ -7117,7 +7060,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7117
7060
  readonly metadata?: {
7118
7061
  readonly [x: string]: unknown;
7119
7062
  } | undefined;
7120
- readonly type: "session.step.started";
7063
+ readonly type: "session.shell.started";
7121
7064
  readonly durable: {
7122
7065
  readonly aggregateID: string;
7123
7066
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7129,15 +7072,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7129
7072
  } | undefined;
7130
7073
  readonly data: {
7131
7074
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7132
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7133
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7134
- readonly model: {
7135
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7136
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7137
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7075
+ readonly shell: {
7076
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7077
+ readonly status: "exited" | "killed" | "running" | "timeout";
7078
+ readonly command: string;
7079
+ readonly cwd: string;
7080
+ readonly shell: string;
7081
+ readonly file: string;
7082
+ readonly pid?: number | undefined;
7083
+ readonly exit?: number | undefined;
7084
+ readonly signal?: string | undefined;
7085
+ readonly metadata: {
7086
+ readonly [x: string]: unknown;
7087
+ };
7088
+ readonly time: {
7089
+ readonly started: number;
7090
+ readonly completed?: number | undefined;
7091
+ };
7138
7092
  };
7139
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7140
- readonly started: number;
7141
7093
  };
7142
7094
  } | {
7143
7095
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7145,7 +7097,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7145
7097
  readonly metadata?: {
7146
7098
  readonly [x: string]: unknown;
7147
7099
  } | undefined;
7148
- readonly type: "session.step.streamed";
7100
+ readonly type: "session.skill.activated";
7149
7101
  readonly durable: {
7150
7102
  readonly aggregateID: string;
7151
7103
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7157,7 +7109,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7157
7109
  } | undefined;
7158
7110
  readonly data: {
7159
7111
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7160
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7112
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7113
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7114
+ readonly text: string;
7161
7115
  };
7162
7116
  } | {
7163
7117
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7248,7 +7202,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7248
7202
  readonly metadata?: {
7249
7203
  readonly [x: string]: unknown;
7250
7204
  } | undefined;
7251
- readonly type: "session.text.started";
7205
+ readonly type: "session.step.started";
7252
7206
  readonly durable: {
7253
7207
  readonly aggregateID: string;
7254
7208
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7261,7 +7215,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7261
7215
  readonly data: {
7262
7216
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7263
7217
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7264
- readonly ordinal: number;
7218
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7219
+ readonly model: {
7220
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7221
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7222
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7223
+ };
7224
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7225
+ readonly started: number;
7265
7226
  };
7266
7227
  } | {
7267
7228
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7269,7 +7230,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7269
7230
  readonly metadata?: {
7270
7231
  readonly [x: string]: unknown;
7271
7232
  } | undefined;
7272
- readonly type: "session.text.delta";
7233
+ readonly type: "session.step.streamed";
7234
+ readonly durable: {
7235
+ readonly aggregateID: string;
7236
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7237
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7238
+ };
7273
7239
  readonly location?: {
7274
7240
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7275
7241
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7277,8 +7243,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7277
7243
  readonly data: {
7278
7244
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7279
7245
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7280
- readonly ordinal: number;
7281
- readonly delta: string;
7282
7246
  };
7283
7247
  } | {
7284
7248
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7286,7 +7250,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7286
7250
  readonly metadata?: {
7287
7251
  readonly [x: string]: unknown;
7288
7252
  } | undefined;
7289
- readonly type: "session.text.ended";
7253
+ readonly type: "session.synthetic";
7290
7254
  readonly durable: {
7291
7255
  readonly aggregateID: string;
7292
7256
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7298,10 +7262,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7298
7262
  } | undefined;
7299
7263
  readonly data: {
7300
7264
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7301
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7302
- readonly ordinal: number;
7303
7265
  readonly text: string;
7304
- readonly native?: {
7266
+ readonly description?: string | undefined;
7267
+ readonly metadata?: {
7305
7268
  readonly [x: string]: unknown;
7306
7269
  } | undefined;
7307
7270
  };
@@ -7311,7 +7274,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7311
7274
  readonly metadata?: {
7312
7275
  readonly [x: string]: unknown;
7313
7276
  } | undefined;
7314
- readonly type: "session.reasoning.started";
7277
+ readonly type: "session.text.ended";
7315
7278
  readonly durable: {
7316
7279
  readonly aggregateID: string;
7317
7280
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7325,6 +7288,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7325
7288
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7326
7289
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7327
7290
  readonly ordinal: number;
7291
+ readonly text: string;
7328
7292
  readonly native?: {
7329
7293
  readonly [x: string]: unknown;
7330
7294
  } | undefined;
@@ -7335,7 +7299,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7335
7299
  readonly metadata?: {
7336
7300
  readonly [x: string]: unknown;
7337
7301
  } | undefined;
7338
- readonly type: "session.reasoning.delta";
7302
+ readonly type: "session.text.started";
7303
+ readonly durable: {
7304
+ readonly aggregateID: string;
7305
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7306
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7307
+ };
7339
7308
  readonly location?: {
7340
7309
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7341
7310
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7344,7 +7313,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7344
7313
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7345
7314
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7346
7315
  readonly ordinal: number;
7347
- readonly delta: string;
7348
7316
  };
7349
7317
  } | {
7350
7318
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7352,7 +7320,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7352
7320
  readonly metadata?: {
7353
7321
  readonly [x: string]: unknown;
7354
7322
  } | undefined;
7355
- readonly type: "session.reasoning.ended";
7323
+ readonly type: "session.tool.called";
7356
7324
  readonly durable: {
7357
7325
  readonly aggregateID: string;
7358
7326
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7365,8 +7333,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7365
7333
  readonly data: {
7366
7334
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7367
7335
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7368
- readonly ordinal: number;
7369
- readonly text: string;
7336
+ readonly id: string;
7337
+ readonly input: {
7338
+ readonly [x: string]: unknown;
7339
+ };
7340
+ readonly executed: boolean;
7370
7341
  readonly native?: {
7371
7342
  readonly [x: string]: unknown;
7372
7343
  } | undefined;
@@ -7377,7 +7348,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7377
7348
  readonly metadata?: {
7378
7349
  readonly [x: string]: unknown;
7379
7350
  } | undefined;
7380
- readonly type: "session.tool.input.started";
7351
+ readonly type: "session.tool.failed";
7381
7352
  readonly durable: {
7382
7353
  readonly aggregateID: string;
7383
7354
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7391,24 +7362,39 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7391
7362
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7392
7363
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7393
7364
  readonly id: string;
7394
- readonly name: string;
7395
- };
7396
- } | {
7397
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7398
- readonly created: number;
7399
- readonly metadata?: {
7400
- readonly [x: string]: unknown;
7401
- } | undefined;
7402
- readonly type: "session.tool.input.delta";
7403
- readonly location?: {
7404
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7405
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7406
- } | undefined;
7407
- readonly data: {
7408
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7409
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7410
- readonly id: string;
7411
- readonly delta: string;
7365
+ readonly error: {
7366
+ readonly type: string;
7367
+ readonly message: string;
7368
+ readonly status?: number | undefined;
7369
+ readonly response?: {
7370
+ readonly body: string;
7371
+ } | undefined;
7372
+ readonly retryAfterMs?: number | undefined;
7373
+ };
7374
+ readonly content?: readonly [{
7375
+ readonly type: "text";
7376
+ readonly text: string;
7377
+ } | {
7378
+ readonly type: "file";
7379
+ readonly uri: string;
7380
+ readonly mime: string;
7381
+ readonly name?: string | undefined;
7382
+ }, ...({
7383
+ readonly type: "text";
7384
+ readonly text: string;
7385
+ } | {
7386
+ readonly type: "file";
7387
+ readonly uri: string;
7388
+ readonly mime: string;
7389
+ readonly name?: string | undefined;
7390
+ })[]] | undefined;
7391
+ readonly metadata?: {
7392
+ readonly [x: string]: import("effect/Schema").Json;
7393
+ } | undefined;
7394
+ readonly executed: boolean;
7395
+ readonly native?: {
7396
+ readonly [x: string]: unknown;
7397
+ } | undefined;
7412
7398
  };
7413
7399
  } | {
7414
7400
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7438,7 +7424,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7438
7424
  readonly metadata?: {
7439
7425
  readonly [x: string]: unknown;
7440
7426
  } | undefined;
7441
- readonly type: "session.tool.called";
7427
+ readonly type: "session.tool.input.started";
7442
7428
  readonly durable: {
7443
7429
  readonly aggregateID: string;
7444
7430
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7452,32 +7438,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7452
7438
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7453
7439
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7454
7440
  readonly id: string;
7455
- readonly input: {
7456
- readonly [x: string]: unknown;
7457
- };
7458
- readonly executed: boolean;
7459
- readonly native?: {
7460
- readonly [x: string]: unknown;
7461
- } | undefined;
7462
- };
7463
- } | {
7464
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7465
- readonly created: number;
7466
- readonly metadata?: {
7467
- readonly [x: string]: unknown;
7468
- } | undefined;
7469
- readonly type: "session.tool.progress";
7470
- readonly location?: {
7471
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7472
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7473
- } | undefined;
7474
- readonly data: {
7475
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7476
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7477
- readonly id: string;
7478
- readonly metadata: {
7479
- readonly [x: string]: import("effect/Schema").Json;
7480
- };
7441
+ readonly name: string;
7481
7442
  };
7482
7443
  } | {
7483
7444
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7530,7 +7491,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7530
7491
  readonly metadata?: {
7531
7492
  readonly [x: string]: unknown;
7532
7493
  } | undefined;
7533
- readonly type: "session.tool.failed";
7494
+ readonly type: "session.unarchived";
7534
7495
  readonly durable: {
7535
7496
  readonly aggregateID: string;
7536
7497
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7542,41 +7503,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7542
7503
  } | undefined;
7543
7504
  readonly data: {
7544
7505
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7545
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7546
- readonly id: string;
7547
- readonly error: {
7548
- readonly type: string;
7549
- readonly message: string;
7550
- readonly status?: number | undefined;
7551
- readonly response?: {
7552
- readonly body: string;
7553
- } | undefined;
7554
- readonly retryAfterMs?: number | undefined;
7555
- };
7556
- readonly content?: readonly [{
7557
- readonly type: "text";
7558
- readonly text: string;
7559
- } | {
7560
- readonly type: "file";
7561
- readonly uri: string;
7562
- readonly mime: string;
7563
- readonly name?: string | undefined;
7564
- }, ...({
7565
- readonly type: "text";
7566
- readonly text: string;
7567
- } | {
7568
- readonly type: "file";
7569
- readonly uri: string;
7570
- readonly mime: string;
7571
- readonly name?: string | undefined;
7572
- })[]] | undefined;
7573
- readonly metadata?: {
7574
- readonly [x: string]: import("effect/Schema").Json;
7575
- } | undefined;
7576
- readonly executed: boolean;
7577
- readonly native?: {
7578
- readonly [x: string]: unknown;
7579
- } | undefined;
7580
7506
  };
7581
7507
  } | {
7582
7508
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7584,7 +7510,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7584
7510
  readonly metadata?: {
7585
7511
  readonly [x: string]: unknown;
7586
7512
  } | undefined;
7587
- readonly type: "session.retry.scheduled";
7513
+ readonly type: "session.viewed";
7588
7514
  readonly durable: {
7589
7515
  readonly aggregateID: string;
7590
7516
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7596,18 +7522,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7596
7522
  } | undefined;
7597
7523
  readonly data: {
7598
7524
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7599
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7600
- readonly attempt: number;
7601
- readonly at: number;
7602
- readonly error: {
7603
- readonly type: string;
7604
- readonly message: string;
7605
- readonly status?: number | undefined;
7606
- readonly response?: {
7607
- readonly body: string;
7608
- } | undefined;
7609
- readonly retryAfterMs?: number | undefined;
7610
- };
7525
+ readonly idle: number;
7611
7526
  };
7612
7527
  } | {
7613
7528
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7615,7 +7530,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7615
7530
  readonly metadata?: {
7616
7531
  readonly [x: string]: unknown;
7617
7532
  } | undefined;
7618
- readonly type: "session.compaction.started";
7533
+ readonly type: "worktree.resolved";
7619
7534
  readonly durable: {
7620
7535
  readonly aggregateID: string;
7621
7536
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7626,63 +7541,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7626
7541
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7627
7542
  } | undefined;
7628
7543
  readonly data: {
7629
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7630
- readonly reason: "auto" | "manual";
7631
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7632
- };
7633
- } | {
7634
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7635
- readonly created: number;
7636
- readonly metadata?: {
7637
- readonly [x: string]: unknown;
7638
- } | undefined;
7639
- readonly type: "session.compaction.delta";
7640
- readonly location?: {
7641
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7642
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7643
- } | undefined;
7644
- readonly data: {
7645
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7646
- readonly text: string;
7647
- };
7648
- } | {
7649
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7650
- readonly created: number;
7651
- readonly metadata?: {
7652
- readonly [x: string]: unknown;
7653
- } | undefined;
7654
- readonly type: "session.compaction.ended";
7655
- readonly durable: {
7656
- readonly aggregateID: string;
7657
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7658
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7659
- };
7660
- readonly location?: {
7544
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7661
7545
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7662
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7663
- } | undefined;
7664
- readonly data: {
7665
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7666
- readonly reason: "auto" | "manual";
7667
- readonly model?: {
7668
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7669
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7670
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7671
- } | undefined;
7672
- readonly native?: {
7673
- readonly [x: string]: unknown;
7674
- } | undefined;
7675
- readonly text: string;
7676
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7677
- readonly tokens?: {
7678
- readonly input: number;
7679
- readonly output: number;
7680
- readonly reasoning: number;
7681
- readonly cache: {
7682
- readonly read: number;
7683
- readonly write: number;
7684
- };
7685
- } | undefined;
7546
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
7547
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
7686
7548
  };
7687
7549
  } | {
7688
7550
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7690,109 +7552,50 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7690
7552
  readonly metadata?: {
7691
7553
  readonly [x: string]: unknown;
7692
7554
  } | undefined;
7693
- readonly type: "session.compaction.failed";
7694
- readonly durable: {
7695
- readonly aggregateID: string;
7696
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7697
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7698
- };
7555
+ readonly type: "agent.updated";
7699
7556
  readonly location?: {
7700
7557
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7701
7558
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7702
7559
  } | undefined;
7703
- readonly data: {
7704
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7705
- readonly reason: "auto" | "manual";
7706
- readonly error: {
7707
- readonly type: string;
7708
- readonly message: string;
7709
- readonly status?: number | undefined;
7710
- readonly response?: {
7711
- readonly body: string;
7712
- } | undefined;
7713
- readonly retryAfterMs?: number | undefined;
7714
- };
7715
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7716
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7717
- readonly tokens?: {
7718
- readonly input: number;
7719
- readonly output: number;
7720
- readonly reasoning: number;
7721
- readonly cache: {
7722
- readonly read: number;
7723
- readonly write: number;
7724
- };
7725
- } | undefined;
7726
- };
7560
+ readonly data: {};
7727
7561
  } | {
7728
7562
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7729
7563
  readonly created: number;
7730
7564
  readonly metadata?: {
7731
7565
  readonly [x: string]: unknown;
7732
7566
  } | undefined;
7733
- readonly type: "session.revert.cleared";
7734
- readonly durable: {
7735
- readonly aggregateID: string;
7736
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7737
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7738
- };
7567
+ readonly type: "command.updated";
7739
7568
  readonly location?: {
7740
7569
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7741
7570
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7742
7571
  } | undefined;
7743
- readonly data: {
7744
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7745
- };
7572
+ readonly data: {};
7746
7573
  } | {
7747
7574
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7748
7575
  readonly created: number;
7749
7576
  readonly metadata?: {
7750
7577
  readonly [x: string]: unknown;
7751
7578
  } | undefined;
7752
- readonly type: "session.revert.committed";
7753
- readonly durable: {
7754
- readonly aggregateID: string;
7755
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7756
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7757
- };
7579
+ readonly type: "config.updated";
7758
7580
  readonly location?: {
7759
7581
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7760
7582
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7761
7583
  } | undefined;
7762
- readonly data: {
7763
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7764
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7765
- };
7584
+ readonly data: {};
7766
7585
  } | {
7767
7586
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7768
7587
  readonly created: number;
7769
7588
  readonly metadata?: {
7770
7589
  readonly [x: string]: unknown;
7771
7590
  } | undefined;
7772
- readonly type: "session.revert.staged";
7773
- readonly durable: {
7774
- readonly aggregateID: string;
7775
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7776
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7777
- };
7591
+ readonly type: "credential.switched";
7778
7592
  readonly location?: {
7779
7593
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7780
7594
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7781
7595
  } | undefined;
7782
7596
  readonly data: {
7783
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7784
- readonly revert: {
7785
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7786
- readonly partID?: string | undefined;
7787
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7788
- readonly files?: readonly {
7789
- readonly file: string;
7790
- readonly patch: string;
7791
- readonly additions: number;
7792
- readonly deletions: number;
7793
- readonly status: "added" | "deleted" | "modified";
7794
- }[] | undefined;
7795
- };
7597
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
7598
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
7796
7599
  };
7797
7600
  } | {
7798
7601
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7800,7 +7603,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7800
7603
  readonly metadata?: {
7801
7604
  readonly [x: string]: unknown;
7802
7605
  } | undefined;
7803
- readonly type: "command.updated";
7606
+ readonly type: "credential.updated";
7804
7607
  readonly location?: {
7805
7608
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7806
7609
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7812,25 +7615,29 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7812
7615
  readonly metadata?: {
7813
7616
  readonly [x: string]: unknown;
7814
7617
  } | undefined;
7815
- readonly type: "config.updated";
7618
+ readonly type: "filesystem.changed";
7816
7619
  readonly location?: {
7817
7620
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7818
7621
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7819
7622
  } | undefined;
7820
- readonly data: {};
7623
+ readonly data: {
7624
+ readonly file: string;
7625
+ readonly event: "add" | "change" | "unlink";
7626
+ };
7821
7627
  } | {
7822
7628
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7823
7629
  readonly created: number;
7824
7630
  readonly metadata?: {
7825
7631
  readonly [x: string]: unknown;
7826
7632
  } | undefined;
7827
- readonly type: "mcp.resources.changed";
7633
+ readonly type: "form.cancelled";
7828
7634
  readonly location?: {
7829
7635
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7830
7636
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7831
7637
  } | undefined;
7832
7638
  readonly data: {
7833
- readonly server: string;
7639
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
7640
+ readonly sessionID: string;
7834
7641
  };
7835
7642
  } | {
7836
7643
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7838,39 +7645,209 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7838
7645
  readonly metadata?: {
7839
7646
  readonly [x: string]: unknown;
7840
7647
  } | undefined;
7841
- readonly type: "mcp.status.changed";
7648
+ readonly type: "form.created";
7842
7649
  readonly location?: {
7843
7650
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7844
7651
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7845
7652
  } | undefined;
7846
7653
  readonly data: {
7847
- readonly server: string;
7848
- };
7849
- } | {
7850
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7851
- readonly created: number;
7852
- readonly metadata?: {
7853
- readonly [x: string]: unknown;
7854
- } | undefined;
7855
- readonly type: "plugin.updated";
7856
- readonly location?: {
7857
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7858
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7859
- } | undefined;
7860
- readonly data: {};
7861
- } | {
7862
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7863
- readonly created: number;
7864
- readonly metadata?: {
7865
- readonly [x: string]: unknown;
7866
- } | undefined;
7867
- readonly type: "tui.command.execute";
7868
- readonly location?: {
7869
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7870
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7871
- } | undefined;
7872
- readonly data: {
7873
- readonly command: string;
7654
+ readonly form: {
7655
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
7656
+ readonly sessionID: string;
7657
+ readonly title: string;
7658
+ readonly metadata?: {
7659
+ readonly [x: string]: unknown;
7660
+ } | undefined;
7661
+ readonly fields: readonly [{
7662
+ readonly key: string;
7663
+ readonly title?: string | undefined;
7664
+ readonly description?: string | undefined;
7665
+ readonly required?: boolean | undefined;
7666
+ readonly hidden?: boolean | undefined;
7667
+ readonly when?: readonly {
7668
+ readonly key: string;
7669
+ readonly op: "eq" | "neq";
7670
+ readonly value: string | number | boolean;
7671
+ }[] | undefined;
7672
+ readonly type: "string";
7673
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
7674
+ readonly minLength?: number | undefined;
7675
+ readonly maxLength?: number | undefined;
7676
+ readonly pattern?: string | undefined;
7677
+ readonly placeholder?: string | undefined;
7678
+ readonly default?: string | undefined;
7679
+ readonly options?: readonly {
7680
+ readonly value: string;
7681
+ readonly label: string;
7682
+ readonly description?: string | undefined;
7683
+ }[] | undefined;
7684
+ readonly custom?: boolean | undefined;
7685
+ } | {
7686
+ readonly key: string;
7687
+ readonly title?: string | undefined;
7688
+ readonly description?: string | undefined;
7689
+ readonly required?: boolean | undefined;
7690
+ readonly hidden?: boolean | undefined;
7691
+ readonly when?: readonly {
7692
+ readonly key: string;
7693
+ readonly op: "eq" | "neq";
7694
+ readonly value: string | number | boolean;
7695
+ }[] | undefined;
7696
+ readonly type: "number";
7697
+ readonly minimum?: number | undefined;
7698
+ readonly maximum?: number | undefined;
7699
+ readonly default?: number | undefined;
7700
+ } | {
7701
+ readonly key: string;
7702
+ readonly title?: string | undefined;
7703
+ readonly description?: string | undefined;
7704
+ readonly required?: boolean | undefined;
7705
+ readonly hidden?: boolean | undefined;
7706
+ readonly when?: readonly {
7707
+ readonly key: string;
7708
+ readonly op: "eq" | "neq";
7709
+ readonly value: string | number | boolean;
7710
+ }[] | undefined;
7711
+ readonly type: "integer";
7712
+ readonly minimum?: number | undefined;
7713
+ readonly maximum?: number | undefined;
7714
+ readonly default?: number | undefined;
7715
+ } | {
7716
+ readonly key: string;
7717
+ readonly title?: string | undefined;
7718
+ readonly description?: string | undefined;
7719
+ readonly required?: boolean | undefined;
7720
+ readonly hidden?: boolean | undefined;
7721
+ readonly when?: readonly {
7722
+ readonly key: string;
7723
+ readonly op: "eq" | "neq";
7724
+ readonly value: string | number | boolean;
7725
+ }[] | undefined;
7726
+ readonly type: "boolean";
7727
+ readonly default?: boolean | undefined;
7728
+ } | {
7729
+ readonly key: string;
7730
+ readonly title?: string | undefined;
7731
+ readonly description?: string | undefined;
7732
+ readonly required?: boolean | undefined;
7733
+ readonly hidden?: boolean | undefined;
7734
+ readonly when?: readonly {
7735
+ readonly key: string;
7736
+ readonly op: "eq" | "neq";
7737
+ readonly value: string | number | boolean;
7738
+ }[] | undefined;
7739
+ readonly type: "multiselect";
7740
+ readonly options: readonly {
7741
+ readonly value: string;
7742
+ readonly label: string;
7743
+ readonly description?: string | undefined;
7744
+ }[];
7745
+ readonly minItems?: number | undefined;
7746
+ readonly maxItems?: number | undefined;
7747
+ readonly custom?: boolean | undefined;
7748
+ readonly default?: readonly string[] | undefined;
7749
+ } | {
7750
+ readonly key: string;
7751
+ readonly type: "external";
7752
+ readonly url: string;
7753
+ readonly title?: string | undefined;
7754
+ readonly description?: string | undefined;
7755
+ }, ...({
7756
+ readonly key: string;
7757
+ readonly title?: string | undefined;
7758
+ readonly description?: string | undefined;
7759
+ readonly required?: boolean | undefined;
7760
+ readonly hidden?: boolean | undefined;
7761
+ readonly when?: readonly {
7762
+ readonly key: string;
7763
+ readonly op: "eq" | "neq";
7764
+ readonly value: string | number | boolean;
7765
+ }[] | undefined;
7766
+ readonly type: "string";
7767
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
7768
+ readonly minLength?: number | undefined;
7769
+ readonly maxLength?: number | undefined;
7770
+ readonly pattern?: string | undefined;
7771
+ readonly placeholder?: string | undefined;
7772
+ readonly default?: string | undefined;
7773
+ readonly options?: readonly {
7774
+ readonly value: string;
7775
+ readonly label: string;
7776
+ readonly description?: string | undefined;
7777
+ }[] | undefined;
7778
+ readonly custom?: boolean | undefined;
7779
+ } | {
7780
+ readonly key: string;
7781
+ readonly title?: string | undefined;
7782
+ readonly description?: string | undefined;
7783
+ readonly required?: boolean | undefined;
7784
+ readonly hidden?: boolean | undefined;
7785
+ readonly when?: readonly {
7786
+ readonly key: string;
7787
+ readonly op: "eq" | "neq";
7788
+ readonly value: string | number | boolean;
7789
+ }[] | undefined;
7790
+ readonly type: "number";
7791
+ readonly minimum?: number | undefined;
7792
+ readonly maximum?: number | undefined;
7793
+ readonly default?: number | undefined;
7794
+ } | {
7795
+ readonly key: string;
7796
+ readonly title?: string | undefined;
7797
+ readonly description?: string | undefined;
7798
+ readonly required?: boolean | undefined;
7799
+ readonly hidden?: boolean | undefined;
7800
+ readonly when?: readonly {
7801
+ readonly key: string;
7802
+ readonly op: "eq" | "neq";
7803
+ readonly value: string | number | boolean;
7804
+ }[] | undefined;
7805
+ readonly type: "integer";
7806
+ readonly minimum?: number | undefined;
7807
+ readonly maximum?: number | undefined;
7808
+ readonly default?: number | undefined;
7809
+ } | {
7810
+ readonly key: string;
7811
+ readonly title?: string | undefined;
7812
+ readonly description?: string | undefined;
7813
+ readonly required?: boolean | undefined;
7814
+ readonly hidden?: boolean | undefined;
7815
+ readonly when?: readonly {
7816
+ readonly key: string;
7817
+ readonly op: "eq" | "neq";
7818
+ readonly value: string | number | boolean;
7819
+ }[] | undefined;
7820
+ readonly type: "boolean";
7821
+ readonly default?: boolean | undefined;
7822
+ } | {
7823
+ readonly key: string;
7824
+ readonly title?: string | undefined;
7825
+ readonly description?: string | undefined;
7826
+ readonly required?: boolean | undefined;
7827
+ readonly hidden?: boolean | undefined;
7828
+ readonly when?: readonly {
7829
+ readonly key: string;
7830
+ readonly op: "eq" | "neq";
7831
+ readonly value: string | number | boolean;
7832
+ }[] | undefined;
7833
+ readonly type: "multiselect";
7834
+ readonly options: readonly {
7835
+ readonly value: string;
7836
+ readonly label: string;
7837
+ readonly description?: string | undefined;
7838
+ }[];
7839
+ readonly minItems?: number | undefined;
7840
+ readonly maxItems?: number | undefined;
7841
+ readonly custom?: boolean | undefined;
7842
+ readonly default?: readonly string[] | undefined;
7843
+ } | {
7844
+ readonly key: string;
7845
+ readonly type: "external";
7846
+ readonly url: string;
7847
+ readonly title?: string | undefined;
7848
+ readonly description?: string | undefined;
7849
+ })[]];
7850
+ };
7874
7851
  };
7875
7852
  } | {
7876
7853
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7878,13 +7855,17 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7878
7855
  readonly metadata?: {
7879
7856
  readonly [x: string]: unknown;
7880
7857
  } | undefined;
7881
- readonly type: "tui.prompt.append";
7858
+ readonly type: "form.replied";
7882
7859
  readonly location?: {
7883
7860
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7884
7861
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7885
7862
  } | undefined;
7886
7863
  readonly data: {
7887
- readonly text: string;
7864
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
7865
+ readonly sessionID: string;
7866
+ readonly answer: {
7867
+ readonly [x: string]: string | number | boolean | readonly string[];
7868
+ };
7888
7869
  };
7889
7870
  } | {
7890
7871
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7892,13 +7873,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7892
7873
  readonly metadata?: {
7893
7874
  readonly [x: string]: unknown;
7894
7875
  } | undefined;
7895
- readonly type: "tui.session.select";
7876
+ readonly type: "installation.update-available";
7896
7877
  readonly location?: {
7897
7878
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7898
7879
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7899
7880
  } | undefined;
7900
7881
  readonly data: {
7901
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7882
+ readonly version: string;
7902
7883
  };
7903
7884
  } | {
7904
7885
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7906,16 +7887,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7906
7887
  readonly metadata?: {
7907
7888
  readonly [x: string]: unknown;
7908
7889
  } | undefined;
7909
- readonly type: "tui.toast.show";
7890
+ readonly type: "installation.updated";
7910
7891
  readonly location?: {
7911
7892
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7912
7893
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7913
7894
  } | undefined;
7914
7895
  readonly data: {
7915
- readonly title?: string | undefined;
7916
- readonly message: string;
7917
- readonly variant: "error" | "info" | "success" | "warning";
7918
- readonly duration: number;
7896
+ readonly version: string;
7919
7897
  };
7920
7898
  } | {
7921
7899
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7923,7 +7901,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7923
7901
  readonly metadata?: {
7924
7902
  readonly [x: string]: unknown;
7925
7903
  } | undefined;
7926
- readonly type: "location.shutdown";
7904
+ readonly type: "integration.updated";
7927
7905
  readonly location?: {
7928
7906
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7929
7907
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7935,7 +7913,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7935
7913
  readonly metadata?: {
7936
7914
  readonly [x: string]: unknown;
7937
7915
  } | undefined;
7938
- readonly type: "models-dev.refreshed";
7916
+ readonly type: "location.shutdown";
7939
7917
  readonly location?: {
7940
7918
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7941
7919
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7947,24 +7925,28 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7947
7925
  readonly metadata?: {
7948
7926
  readonly [x: string]: unknown;
7949
7927
  } | undefined;
7950
- readonly type: "integration.updated";
7928
+ readonly type: "mcp.resources.changed";
7951
7929
  readonly location?: {
7952
7930
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7953
7931
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7954
7932
  } | undefined;
7955
- readonly data: {};
7933
+ readonly data: {
7934
+ readonly server: string;
7935
+ };
7956
7936
  } | {
7957
7937
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7958
7938
  readonly created: number;
7959
7939
  readonly metadata?: {
7960
7940
  readonly [x: string]: unknown;
7961
7941
  } | undefined;
7962
- readonly type: "provider.updated";
7942
+ readonly type: "mcp.status.changed";
7963
7943
  readonly location?: {
7964
7944
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7965
7945
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7966
7946
  } | undefined;
7967
- readonly data: {};
7947
+ readonly data: {
7948
+ readonly server: string;
7949
+ };
7968
7950
  } | {
7969
7951
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7970
7952
  readonly created: number;
@@ -7983,7 +7965,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7983
7965
  readonly metadata?: {
7984
7966
  readonly [x: string]: unknown;
7985
7967
  } | undefined;
7986
- readonly type: "agent.updated";
7968
+ readonly type: "models-dev.refreshed";
7987
7969
  readonly location?: {
7988
7970
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7989
7971
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7995,14 +7977,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7995
7977
  readonly metadata?: {
7996
7978
  readonly [x: string]: unknown;
7997
7979
  } | undefined;
7998
- readonly type: "filesystem.changed";
7980
+ readonly type: "permission.asked";
7999
7981
  readonly location?: {
8000
7982
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8001
7983
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8002
7984
  } | undefined;
8003
7985
  readonly data: {
8004
- readonly file: string;
8005
- readonly event: "add" | "change" | "unlink";
7986
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7987
+ readonly action: string;
7988
+ readonly resources: readonly string[];
7989
+ readonly save?: readonly string[] | undefined;
7990
+ readonly metadata?: {
7991
+ readonly [x: string]: unknown;
7992
+ } | undefined;
7993
+ readonly source?: {
7994
+ readonly type: "tool";
7995
+ readonly messageID: string;
7996
+ readonly id: string;
7997
+ } | undefined;
7998
+ readonly message?: string | undefined;
7999
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8006
8000
  };
8007
8001
  } | {
8008
8002
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8010,38 +8004,49 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8010
8004
  readonly metadata?: {
8011
8005
  readonly [x: string]: unknown;
8012
8006
  } | undefined;
8013
- readonly type: "reference.updated";
8007
+ readonly type: "permission.replied";
8014
8008
  readonly location?: {
8015
8009
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8016
8010
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8017
8011
  } | undefined;
8018
- readonly data: {};
8012
+ readonly data: {
8013
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8014
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8015
+ readonly reply: "always" | "once" | "reject";
8016
+ };
8019
8017
  } | {
8020
8018
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8021
8019
  readonly created: number;
8022
8020
  readonly metadata?: {
8023
8021
  readonly [x: string]: unknown;
8024
8022
  } | undefined;
8025
- readonly type: "permission.asked";
8023
+ readonly type: "persistent-pty.added";
8026
8024
  readonly location?: {
8027
8025
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8028
8026
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8029
8027
  } | undefined;
8030
8028
  readonly data: {
8031
8029
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8032
- readonly action: string;
8033
- readonly resources: readonly string[];
8034
- readonly save?: readonly string[] | undefined;
8035
- readonly metadata?: {
8036
- readonly [x: string]: unknown;
8037
- } | undefined;
8038
- readonly source?: {
8039
- readonly type: "tool";
8040
- readonly messageID: string;
8041
- readonly id: string;
8042
- } | undefined;
8043
- readonly message?: string | undefined;
8044
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8030
+ readonly terminal: {
8031
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8032
+ readonly title: string;
8033
+ readonly command: string;
8034
+ readonly args: readonly string[];
8035
+ readonly cwd: string;
8036
+ readonly status: "exited" | "running";
8037
+ readonly pid: number;
8038
+ readonly exitCode?: number | undefined;
8039
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8040
+ readonly foregroundProcess: string | null;
8041
+ readonly size: {
8042
+ readonly cols: number;
8043
+ readonly rows: number;
8044
+ };
8045
+ readonly output: {
8046
+ readonly head: number;
8047
+ readonly tail: number;
8048
+ };
8049
+ };
8045
8050
  };
8046
8051
  } | {
8047
8052
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8049,16 +8054,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8049
8054
  readonly metadata?: {
8050
8055
  readonly [x: string]: unknown;
8051
8056
  } | undefined;
8052
- readonly type: "permission.replied";
8057
+ readonly type: "persistent-pty.removed";
8053
8058
  readonly location?: {
8054
8059
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8055
8060
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8056
8061
  } | undefined;
8057
8062
  readonly data: {
8058
8063
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8059
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8060
- readonly reply: "always" | "once" | "reject";
8064
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8061
8065
  };
8066
+ } | {
8067
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8068
+ readonly created: number;
8069
+ readonly metadata?: {
8070
+ readonly [x: string]: unknown;
8071
+ } | undefined;
8072
+ readonly type: "plugin.updated";
8073
+ readonly location?: {
8074
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8075
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8076
+ } | undefined;
8077
+ readonly data: {};
8062
8078
  } | {
8063
8079
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8064
8080
  readonly created: number;
@@ -8097,36 +8113,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8097
8113
  readonly metadata?: {
8098
8114
  readonly [x: string]: unknown;
8099
8115
  } | undefined;
8100
- readonly type: "worktree.resolved";
8101
- readonly durable: {
8102
- readonly aggregateID: string;
8103
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8104
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8105
- };
8106
- readonly location?: {
8107
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8108
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8109
- } | undefined;
8110
- readonly data: {
8111
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8112
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8113
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
8114
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
8115
- };
8116
- } | {
8117
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8118
- readonly created: number;
8119
- readonly metadata?: {
8120
- readonly [x: string]: unknown;
8121
- } | undefined;
8122
- readonly type: "worktree.updated";
8116
+ readonly type: "provider.updated";
8123
8117
  readonly location?: {
8124
8118
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8125
8119
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8126
8120
  } | undefined;
8127
- readonly data: {
8128
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8129
- };
8121
+ readonly data: {};
8130
8122
  } | {
8131
8123
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8132
8124
  readonly created: number;
@@ -8208,33 +8200,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8208
8200
  readonly metadata?: {
8209
8201
  readonly [x: string]: unknown;
8210
8202
  } | undefined;
8211
- readonly type: "persistent-pty.added";
8203
+ readonly type: "reference.updated";
8204
+ readonly location?: {
8205
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8206
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8207
+ } | undefined;
8208
+ readonly data: {};
8209
+ } | {
8210
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8211
+ readonly created: number;
8212
+ readonly metadata?: {
8213
+ readonly [x: string]: unknown;
8214
+ } | undefined;
8215
+ readonly type: "session.compaction.delta";
8212
8216
  readonly location?: {
8213
8217
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8214
8218
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8215
8219
  } | undefined;
8216
8220
  readonly data: {
8217
8221
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8218
- readonly terminal: {
8219
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8220
- readonly title: string;
8221
- readonly command: string;
8222
- readonly args: readonly string[];
8223
- readonly cwd: string;
8224
- readonly status: "exited" | "running";
8225
- readonly pid: number;
8226
- readonly exitCode?: number | undefined;
8227
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8228
- readonly foregroundProcess: string | null;
8229
- readonly size: {
8230
- readonly cols: number;
8231
- readonly rows: number;
8232
- };
8233
- readonly output: {
8234
- readonly head: number;
8235
- readonly tail: number;
8236
- };
8237
- };
8222
+ readonly text: string;
8238
8223
  };
8239
8224
  } | {
8240
8225
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8242,14 +8227,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8242
8227
  readonly metadata?: {
8243
8228
  readonly [x: string]: unknown;
8244
8229
  } | undefined;
8245
- readonly type: "persistent-pty.removed";
8230
+ readonly type: "session.idle";
8246
8231
  readonly location?: {
8247
8232
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8248
8233
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8249
8234
  } | undefined;
8250
8235
  readonly data: {
8251
8236
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8252
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8253
8237
  };
8254
8238
  } | {
8255
8239
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8257,29 +8241,47 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8257
8241
  readonly metadata?: {
8258
8242
  readonly [x: string]: unknown;
8259
8243
  } | undefined;
8260
- readonly type: "shell.created";
8244
+ readonly type: "session.reasoning.delta";
8261
8245
  readonly location?: {
8262
8246
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8263
8247
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8264
8248
  } | undefined;
8265
8249
  readonly data: {
8266
- readonly info: {
8267
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8268
- readonly status: "exited" | "killed" | "running" | "timeout";
8269
- readonly command: string;
8270
- readonly cwd: string;
8271
- readonly shell: string;
8272
- readonly file: string;
8273
- readonly pid?: number | undefined;
8274
- readonly exit?: number | undefined;
8275
- readonly signal?: string | undefined;
8276
- readonly metadata: {
8277
- readonly [x: string]: unknown;
8278
- };
8279
- readonly time: {
8280
- readonly started: number;
8281
- readonly completed?: number | undefined;
8282
- };
8250
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8251
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8252
+ readonly ordinal: number;
8253
+ readonly delta: string;
8254
+ };
8255
+ } | {
8256
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8257
+ readonly created: number;
8258
+ readonly metadata?: {
8259
+ readonly [x: string]: unknown;
8260
+ } | undefined;
8261
+ readonly type: "session.status";
8262
+ readonly location?: {
8263
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8264
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8265
+ } | undefined;
8266
+ readonly data: {
8267
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8268
+ readonly status: {
8269
+ readonly type: "idle";
8270
+ } | {
8271
+ readonly type: "busy";
8272
+ } | {
8273
+ readonly type: "retry";
8274
+ readonly attempt: number;
8275
+ readonly message: string;
8276
+ readonly action?: {
8277
+ readonly reason: string;
8278
+ readonly provider: string;
8279
+ readonly title: string;
8280
+ readonly message: string;
8281
+ readonly label: string;
8282
+ readonly link?: string | undefined;
8283
+ } | undefined;
8284
+ readonly next: number;
8283
8285
  };
8284
8286
  };
8285
8287
  } | {
@@ -8288,13 +8290,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8288
8290
  readonly metadata?: {
8289
8291
  readonly [x: string]: unknown;
8290
8292
  } | undefined;
8291
- readonly type: "shell.deleted";
8293
+ readonly type: "session.text.delta";
8292
8294
  readonly location?: {
8293
8295
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8294
8296
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8295
8297
  } | undefined;
8296
8298
  readonly data: {
8297
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8299
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8300
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8301
+ readonly ordinal: number;
8302
+ readonly delta: string;
8298
8303
  };
8299
8304
  } | {
8300
8305
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8302,15 +8307,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8302
8307
  readonly metadata?: {
8303
8308
  readonly [x: string]: unknown;
8304
8309
  } | undefined;
8305
- readonly type: "shell.exited";
8310
+ readonly type: "session.tool.input.delta";
8306
8311
  readonly location?: {
8307
8312
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8308
8313
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8309
8314
  } | undefined;
8310
8315
  readonly data: {
8311
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8312
- readonly exit?: number | undefined;
8313
- readonly status: "exited" | "killed" | "running" | "timeout";
8316
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8317
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8318
+ readonly id: string;
8319
+ readonly delta: string;
8314
8320
  };
8315
8321
  } | {
8316
8322
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8318,14 +8324,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8318
8324
  readonly metadata?: {
8319
8325
  readonly [x: string]: unknown;
8320
8326
  } | undefined;
8321
- readonly type: "form.cancelled";
8327
+ readonly type: "session.tool.progress";
8322
8328
  readonly location?: {
8323
8329
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8324
8330
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8325
8331
  } | undefined;
8326
8332
  readonly data: {
8327
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8328
- readonly sessionID: string;
8333
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8334
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8335
+ readonly id: string;
8336
+ readonly metadata: {
8337
+ readonly [x: string]: import("effect/Schema").Json;
8338
+ };
8329
8339
  };
8330
8340
  } | {
8331
8341
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8333,208 +8343,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8333
8343
  readonly metadata?: {
8334
8344
  readonly [x: string]: unknown;
8335
8345
  } | undefined;
8336
- readonly type: "form.created";
8346
+ readonly type: "session.usage.updated";
8337
8347
  readonly location?: {
8338
8348
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8339
8349
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8340
8350
  } | undefined;
8341
8351
  readonly data: {
8342
- readonly form: {
8343
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8344
- readonly sessionID: string;
8345
- readonly title: string;
8346
- readonly metadata?: {
8347
- readonly [x: string]: unknown;
8348
- } | undefined;
8349
- readonly fields: readonly [{
8350
- readonly key: string;
8351
- readonly title?: string | undefined;
8352
- readonly description?: string | undefined;
8353
- readonly required?: boolean | undefined;
8354
- readonly hidden?: boolean | undefined;
8355
- readonly when?: readonly {
8356
- readonly key: string;
8357
- readonly op: "eq" | "neq";
8358
- readonly value: string | number | boolean;
8359
- }[] | undefined;
8360
- readonly type: "string";
8361
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8362
- readonly minLength?: number | undefined;
8363
- readonly maxLength?: number | undefined;
8364
- readonly pattern?: string | undefined;
8365
- readonly placeholder?: string | undefined;
8366
- readonly default?: string | undefined;
8367
- readonly options?: readonly {
8368
- readonly value: string;
8369
- readonly label: string;
8370
- readonly description?: string | undefined;
8371
- }[] | undefined;
8372
- readonly custom?: boolean | undefined;
8373
- } | {
8374
- readonly key: string;
8375
- readonly title?: string | undefined;
8376
- readonly description?: string | undefined;
8377
- readonly required?: boolean | undefined;
8378
- readonly hidden?: boolean | undefined;
8379
- readonly when?: readonly {
8380
- readonly key: string;
8381
- readonly op: "eq" | "neq";
8382
- readonly value: string | number | boolean;
8383
- }[] | undefined;
8384
- readonly type: "number";
8385
- readonly minimum?: number | undefined;
8386
- readonly maximum?: number | undefined;
8387
- readonly default?: number | undefined;
8388
- } | {
8389
- readonly key: string;
8390
- readonly title?: string | undefined;
8391
- readonly description?: string | undefined;
8392
- readonly required?: boolean | undefined;
8393
- readonly hidden?: boolean | undefined;
8394
- readonly when?: readonly {
8395
- readonly key: string;
8396
- readonly op: "eq" | "neq";
8397
- readonly value: string | number | boolean;
8398
- }[] | undefined;
8399
- readonly type: "integer";
8400
- readonly minimum?: number | undefined;
8401
- readonly maximum?: number | undefined;
8402
- readonly default?: number | undefined;
8403
- } | {
8404
- readonly key: string;
8405
- readonly title?: string | undefined;
8406
- readonly description?: string | undefined;
8407
- readonly required?: boolean | undefined;
8408
- readonly hidden?: boolean | undefined;
8409
- readonly when?: readonly {
8410
- readonly key: string;
8411
- readonly op: "eq" | "neq";
8412
- readonly value: string | number | boolean;
8413
- }[] | undefined;
8414
- readonly type: "boolean";
8415
- readonly default?: boolean | undefined;
8416
- } | {
8417
- readonly key: string;
8418
- readonly title?: string | undefined;
8419
- readonly description?: string | undefined;
8420
- readonly required?: boolean | undefined;
8421
- readonly hidden?: boolean | undefined;
8422
- readonly when?: readonly {
8423
- readonly key: string;
8424
- readonly op: "eq" | "neq";
8425
- readonly value: string | number | boolean;
8426
- }[] | undefined;
8427
- readonly type: "multiselect";
8428
- readonly options: readonly {
8429
- readonly value: string;
8430
- readonly label: string;
8431
- readonly description?: string | undefined;
8432
- }[];
8433
- readonly minItems?: number | undefined;
8434
- readonly maxItems?: number | undefined;
8435
- readonly custom?: boolean | undefined;
8436
- readonly default?: readonly string[] | undefined;
8437
- } | {
8438
- readonly key: string;
8439
- readonly type: "external";
8440
- readonly url: string;
8441
- readonly title?: string | undefined;
8442
- readonly description?: string | undefined;
8443
- }, ...({
8444
- readonly key: string;
8445
- readonly title?: string | undefined;
8446
- readonly description?: string | undefined;
8447
- readonly required?: boolean | undefined;
8448
- readonly hidden?: boolean | undefined;
8449
- readonly when?: readonly {
8450
- readonly key: string;
8451
- readonly op: "eq" | "neq";
8452
- readonly value: string | number | boolean;
8453
- }[] | undefined;
8454
- readonly type: "string";
8455
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8456
- readonly minLength?: number | undefined;
8457
- readonly maxLength?: number | undefined;
8458
- readonly pattern?: string | undefined;
8459
- readonly placeholder?: string | undefined;
8460
- readonly default?: string | undefined;
8461
- readonly options?: readonly {
8462
- readonly value: string;
8463
- readonly label: string;
8464
- readonly description?: string | undefined;
8465
- }[] | undefined;
8466
- readonly custom?: boolean | undefined;
8467
- } | {
8468
- readonly key: string;
8469
- readonly title?: string | undefined;
8470
- readonly description?: string | undefined;
8471
- readonly required?: boolean | undefined;
8472
- readonly hidden?: boolean | undefined;
8473
- readonly when?: readonly {
8474
- readonly key: string;
8475
- readonly op: "eq" | "neq";
8476
- readonly value: string | number | boolean;
8477
- }[] | undefined;
8478
- readonly type: "number";
8479
- readonly minimum?: number | undefined;
8480
- readonly maximum?: number | undefined;
8481
- readonly default?: number | undefined;
8482
- } | {
8483
- readonly key: string;
8484
- readonly title?: string | undefined;
8485
- readonly description?: string | undefined;
8486
- readonly required?: boolean | undefined;
8487
- readonly hidden?: boolean | undefined;
8488
- readonly when?: readonly {
8489
- readonly key: string;
8490
- readonly op: "eq" | "neq";
8491
- readonly value: string | number | boolean;
8492
- }[] | undefined;
8493
- readonly type: "integer";
8494
- readonly minimum?: number | undefined;
8495
- readonly maximum?: number | undefined;
8496
- readonly default?: number | undefined;
8497
- } | {
8498
- readonly key: string;
8499
- readonly title?: string | undefined;
8500
- readonly description?: string | undefined;
8501
- readonly required?: boolean | undefined;
8502
- readonly hidden?: boolean | undefined;
8503
- readonly when?: readonly {
8504
- readonly key: string;
8505
- readonly op: "eq" | "neq";
8506
- readonly value: string | number | boolean;
8507
- }[] | undefined;
8508
- readonly type: "boolean";
8509
- readonly default?: boolean | undefined;
8510
- } | {
8511
- readonly key: string;
8512
- readonly title?: string | undefined;
8513
- readonly description?: string | undefined;
8514
- readonly required?: boolean | undefined;
8515
- readonly hidden?: boolean | undefined;
8516
- readonly when?: readonly {
8517
- readonly key: string;
8518
- readonly op: "eq" | "neq";
8519
- readonly value: string | number | boolean;
8520
- }[] | undefined;
8521
- readonly type: "multiselect";
8522
- readonly options: readonly {
8523
- readonly value: string;
8524
- readonly label: string;
8525
- readonly description?: string | undefined;
8526
- }[];
8527
- readonly minItems?: number | undefined;
8528
- readonly maxItems?: number | undefined;
8529
- readonly custom?: boolean | undefined;
8530
- readonly default?: readonly string[] | undefined;
8531
- } | {
8532
- readonly key: string;
8533
- readonly type: "external";
8534
- readonly url: string;
8535
- readonly title?: string | undefined;
8536
- readonly description?: string | undefined;
8537
- })[]];
8352
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8353
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8354
+ readonly tokens: {
8355
+ readonly input: number;
8356
+ readonly output: number;
8357
+ readonly reasoning: number;
8358
+ readonly cache: {
8359
+ readonly read: number;
8360
+ readonly write: number;
8361
+ };
8538
8362
  };
8539
8363
  };
8540
8364
  } | {
@@ -8543,16 +8367,29 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8543
8367
  readonly metadata?: {
8544
8368
  readonly [x: string]: unknown;
8545
8369
  } | undefined;
8546
- readonly type: "form.replied";
8370
+ readonly type: "shell.created";
8547
8371
  readonly location?: {
8548
8372
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8549
8373
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8550
8374
  } | undefined;
8551
8375
  readonly data: {
8552
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8553
- readonly sessionID: string;
8554
- readonly answer: {
8555
- readonly [x: string]: string | number | boolean | readonly string[];
8376
+ readonly info: {
8377
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8378
+ readonly status: "exited" | "killed" | "running" | "timeout";
8379
+ readonly command: string;
8380
+ readonly cwd: string;
8381
+ readonly shell: string;
8382
+ readonly file: string;
8383
+ readonly pid?: number | undefined;
8384
+ readonly exit?: number | undefined;
8385
+ readonly signal?: string | undefined;
8386
+ readonly metadata: {
8387
+ readonly [x: string]: unknown;
8388
+ };
8389
+ readonly time: {
8390
+ readonly started: number;
8391
+ readonly completed?: number | undefined;
8392
+ };
8556
8393
  };
8557
8394
  };
8558
8395
  } | {
@@ -8561,7 +8398,37 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8561
8398
  readonly metadata?: {
8562
8399
  readonly [x: string]: unknown;
8563
8400
  } | undefined;
8564
- readonly type: "websearch.updated";
8401
+ readonly type: "shell.deleted";
8402
+ readonly location?: {
8403
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8404
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8405
+ } | undefined;
8406
+ readonly data: {
8407
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8408
+ };
8409
+ } | {
8410
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8411
+ readonly created: number;
8412
+ readonly metadata?: {
8413
+ readonly [x: string]: unknown;
8414
+ } | undefined;
8415
+ readonly type: "shell.exited";
8416
+ readonly location?: {
8417
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8418
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8419
+ } | undefined;
8420
+ readonly data: {
8421
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8422
+ readonly exit?: number | undefined;
8423
+ readonly status: "exited" | "killed" | "running" | "timeout";
8424
+ };
8425
+ } | {
8426
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8427
+ readonly created: number;
8428
+ readonly metadata?: {
8429
+ readonly [x: string]: unknown;
8430
+ } | undefined;
8431
+ readonly type: "skill.updated";
8565
8432
  readonly location?: {
8566
8433
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8567
8434
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8573,13 +8440,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8573
8440
  readonly metadata?: {
8574
8441
  readonly [x: string]: unknown;
8575
8442
  } | undefined;
8576
- readonly type: "session.idle";
8443
+ readonly type: "tui.command.execute";
8577
8444
  readonly location?: {
8578
8445
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8579
8446
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8580
8447
  } | undefined;
8581
8448
  readonly data: {
8582
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8449
+ readonly command: string;
8583
8450
  };
8584
8451
  } | {
8585
8452
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8587,31 +8454,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8587
8454
  readonly metadata?: {
8588
8455
  readonly [x: string]: unknown;
8589
8456
  } | undefined;
8590
- readonly type: "session.status";
8457
+ readonly type: "tui.prompt.append";
8591
8458
  readonly location?: {
8592
8459
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8593
8460
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8594
8461
  } | undefined;
8595
8462
  readonly data: {
8596
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8597
- readonly status: {
8598
- readonly type: "idle";
8599
- } | {
8600
- readonly type: "retry";
8601
- readonly attempt: number;
8602
- readonly message: string;
8603
- readonly action?: {
8604
- readonly reason: string;
8605
- readonly provider: string;
8606
- readonly title: string;
8607
- readonly message: string;
8608
- readonly label: string;
8609
- readonly link?: string | undefined;
8610
- } | undefined;
8611
- readonly next: number;
8612
- } | {
8613
- readonly type: "busy";
8614
- };
8463
+ readonly text: string;
8615
8464
  };
8616
8465
  } | {
8617
8466
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8619,13 +8468,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8619
8468
  readonly metadata?: {
8620
8469
  readonly [x: string]: unknown;
8621
8470
  } | undefined;
8622
- readonly type: "installation.update-available";
8471
+ readonly type: "tui.session.select";
8623
8472
  readonly location?: {
8624
8473
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8625
8474
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8626
8475
  } | undefined;
8627
8476
  readonly data: {
8628
- readonly version: string;
8477
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8629
8478
  };
8630
8479
  } | {
8631
8480
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8633,13 +8482,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8633
8482
  readonly metadata?: {
8634
8483
  readonly [x: string]: unknown;
8635
8484
  } | undefined;
8636
- readonly type: "installation.updated";
8485
+ readonly type: "tui.toast.show";
8637
8486
  readonly location?: {
8638
8487
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8639
8488
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8640
8489
  } | undefined;
8641
8490
  readonly data: {
8642
- readonly version: string;
8491
+ readonly title?: string | undefined;
8492
+ readonly message: string;
8493
+ readonly variant: "error" | "info" | "success" | "warning";
8494
+ readonly duration: number;
8643
8495
  };
8644
8496
  } | {
8645
8497
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8655,6 +8507,32 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8655
8507
  readonly data: {
8656
8508
  readonly branch?: string | undefined;
8657
8509
  };
8510
+ } | {
8511
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8512
+ readonly created: number;
8513
+ readonly metadata?: {
8514
+ readonly [x: string]: unknown;
8515
+ } | undefined;
8516
+ readonly type: "websearch.updated";
8517
+ readonly location?: {
8518
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8519
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8520
+ } | undefined;
8521
+ readonly data: {};
8522
+ } | {
8523
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8524
+ readonly created: number;
8525
+ readonly metadata?: {
8526
+ readonly [x: string]: unknown;
8527
+ } | undefined;
8528
+ readonly type: "worktree.updated";
8529
+ readonly location?: {
8530
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8531
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8532
+ } | undefined;
8533
+ readonly data: {
8534
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8535
+ };
8658
8536
  } | {
8659
8537
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8660
8538
  readonly created: number;