@opencode/server 2.1.2 → 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 (114) hide show
  1. package/dist/api.d.ts +535 -657
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{request-tracing-8t0ckx4f.js → pairing-0dncng21.js} +6 -9
  5. package/dist/chunks/{request-tracing-zfbzqd0e.js → pairing-2b2wekgg.js} +3 -3
  6. package/dist/chunks/{request-tracing-t4c683g8.js → pairing-2yr2dq97.js} +2 -2
  7. package/dist/chunks/{request-tracing-4gnb9897.js → pairing-3154e7fk.js} +1 -1
  8. package/dist/chunks/{request-tracing-gw6rc7x0.js → pairing-31acg4hb.js} +2 -2
  9. package/dist/chunks/{request-tracing-5w24ch67.js → pairing-39nnfjx1.js} +4 -4
  10. package/dist/chunks/{request-tracing-g0rzwe5g.js → pairing-3te71694.js} +7 -7
  11. package/dist/chunks/{request-tracing-jd2d9483.js → pairing-49c878v9.js} +2 -2
  12. package/dist/chunks/{request-tracing-547pgmmc.js → pairing-4b0899hb.js} +2 -2
  13. package/dist/chunks/{request-tracing-bs0wtx09.js → pairing-4qjw9nya.js} +15 -38
  14. package/dist/chunks/{request-tracing-w4e9jgda.js → pairing-5w10ccet.js} +1 -1
  15. package/dist/chunks/{request-tracing-emkxpff3.js → pairing-6xea6nhh.js} +3 -3
  16. package/dist/chunks/{request-tracing-jk5edc6h.js → pairing-72ygafj3.js} +2 -2
  17. package/dist/chunks/{request-tracing-yfz2nrjq.js → pairing-7b9xm1qg.js} +3 -2
  18. package/dist/chunks/{request-tracing-s0qm098c.js → pairing-91mt6ewz.js} +2 -2
  19. package/dist/chunks/pairing-9me4q8wt.js +107 -0
  20. package/dist/chunks/{request-tracing-sc3gatcy.js → pairing-a6kxe6a7.js} +3 -3
  21. package/dist/chunks/{request-tracing-5qadbb61.js → pairing-aj1jc7g7.js} +8 -8
  22. package/dist/chunks/{request-tracing-7xe5pzvy.js → pairing-cfhthk6z.js} +1 -1
  23. package/dist/chunks/{request-tracing-cpp0zjdy.js → pairing-e4x9285j.js} +2 -2
  24. package/dist/chunks/{request-tracing-hwqxzcvy.js → pairing-e7pctymn.js} +1 -1
  25. package/dist/chunks/{request-tracing-qx5ydgm0.js → pairing-f4b2q3tn.js} +1 -1
  26. package/dist/chunks/{request-tracing-g7sdbt1s.js → pairing-ga3m49sz.js} +2 -2
  27. package/dist/chunks/{request-tracing-50bbk3b2.js → pairing-gymtz25n.js} +3 -3
  28. package/dist/chunks/{request-tracing-anm12x33.js → pairing-j4at0y5c.js} +1 -1
  29. package/dist/chunks/{request-tracing-3d7qdbre.js → pairing-j5aeaa16.js} +1 -1
  30. package/dist/chunks/{request-tracing-5ybpxcad.js → pairing-k6dz4enc.js} +4 -4
  31. package/dist/chunks/pairing-kaqtndqt.js +41 -0
  32. package/dist/chunks/{request-tracing-wexwfee0.js → pairing-kcjd09wg.js} +2 -2
  33. package/dist/chunks/{request-tracing-z6z134jc.js → pairing-kd6vzpgq.js} +2 -2
  34. package/dist/chunks/{request-tracing-kr61w04k.js → pairing-kqr36gas.js} +8 -8
  35. package/dist/chunks/{request-tracing-xgbwf6ck.js → pairing-kyxm98pg.js} +34 -34
  36. package/dist/chunks/{request-tracing-rw96z9cx.js → pairing-mte34432.js} +6 -6
  37. package/dist/chunks/{request-tracing-nnsgc8by.js → pairing-nv8hzzrz.js} +3 -3
  38. package/dist/chunks/{request-tracing-gq8jw616.js → pairing-pmjbkszz.js} +2 -2
  39. package/dist/chunks/pairing-q69f22pd.js +38 -0
  40. package/dist/chunks/{request-tracing-1ya81ktr.js → pairing-qvy2s3nb.js} +2 -2
  41. package/dist/chunks/{request-tracing-fazm2c7b.js → pairing-swdgbzpj.js} +2 -2
  42. package/dist/chunks/{request-tracing-4nbah0zs.js → pairing-t3j5ftv1.js} +3 -3
  43. package/dist/chunks/{request-tracing-tp6qcw6t.js → pairing-x0608mvx.js} +1 -1
  44. package/dist/chunks/{request-tracing-eyzmgmqx.js → pairing-x2dckmx1.js} +17 -19
  45. package/dist/chunks/{request-tracing-b3bmdkga.js → pairing-x74w7e1f.js} +1 -1
  46. package/dist/chunks/{request-tracing-qcfps8nc.js → pairing-x9vr2ttf.js} +2 -2
  47. package/dist/chunks/{request-tracing-fysmzcya.js → pairing-xmwystkq.js} +2 -2
  48. package/dist/cors.js +1 -1
  49. package/dist/event-feed.js +3 -3
  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 +4 -4
  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 +12 -11
  103. package/dist/chunks/request-tracing-bkk2wfbz.js +0 -23
  104. package/dist/chunks/request-tracing-rhdada90.js +0 -20
  105. package/dist/chunks/request-tracing-xwnn9gpm.js +0 -30
  106. package/dist/chunks/request-tracing-yeebkdj0.js +0 -40
  107. package/dist/pty-environment.d.ts +0 -13
  108. package/dist/pty-environment.js +0 -12
  109. /package/dist/chunks/{request-tracing-9rqn6x4v.js → pairing-9rqn6x4v.js} +0 -0
  110. /package/dist/chunks/{request-tracing-erzfdgke.js → pairing-erzfdgke.js} +0 -0
  111. /package/dist/chunks/{request-tracing-h6rt5k9s.js → pairing-h6rt5k9s.js} +0 -0
  112. /package/dist/chunks/{request-tracing-q4bn6dy8.js → pairing-q4bn6dy8.js} +0 -0
  113. /package/dist/chunks/{request-tracing-smaf4a18.js → pairing-smaf4a18.js} +0 -0
  114. /package/dist/chunks/{request-tracing-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<{
@@ -6367,261 +6245,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6367
6245
  readonly type: import("effect/Schema").Literal<"server.connected">;
6368
6246
  readonly data: import("effect/Schema").Struct<{}>;
6369
6247
  }>[]]>>, import("effect/Schema").Never, {
6370
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6371
- readonly created: number;
6372
- readonly metadata?: {
6373
- readonly [x: string]: unknown;
6374
- } | undefined;
6375
- readonly type: "form.cancelled";
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
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6382
- readonly sessionID: string;
6383
- };
6384
- } | {
6385
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6386
- readonly created: number;
6387
- readonly metadata?: {
6388
- readonly [x: string]: unknown;
6389
- } | undefined;
6390
- readonly type: "form.created";
6391
- readonly location?: {
6392
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6393
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6394
- } | undefined;
6395
- readonly data: {
6396
- readonly form: {
6397
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6398
- readonly sessionID: string;
6399
- readonly title: string;
6400
- readonly metadata?: {
6401
- readonly [x: string]: unknown;
6402
- } | undefined;
6403
- readonly fields: readonly [{
6404
- readonly key: string;
6405
- readonly title?: string | undefined;
6406
- readonly description?: string | undefined;
6407
- readonly required?: boolean | undefined;
6408
- readonly hidden?: boolean | undefined;
6409
- readonly when?: readonly {
6410
- readonly key: string;
6411
- readonly op: "eq" | "neq";
6412
- readonly value: string | number | boolean;
6413
- }[] | undefined;
6414
- readonly type: "string";
6415
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
6416
- readonly minLength?: number | undefined;
6417
- readonly maxLength?: number | undefined;
6418
- readonly pattern?: string | undefined;
6419
- readonly placeholder?: string | undefined;
6420
- readonly default?: string | undefined;
6421
- readonly options?: readonly {
6422
- readonly value: string;
6423
- readonly label: string;
6424
- readonly description?: string | undefined;
6425
- }[] | undefined;
6426
- readonly custom?: boolean | undefined;
6427
- } | {
6428
- readonly key: string;
6429
- readonly title?: string | undefined;
6430
- readonly description?: string | undefined;
6431
- readonly required?: boolean | undefined;
6432
- readonly hidden?: boolean | undefined;
6433
- readonly when?: readonly {
6434
- readonly key: string;
6435
- readonly op: "eq" | "neq";
6436
- readonly value: string | number | boolean;
6437
- }[] | undefined;
6438
- readonly type: "number";
6439
- readonly minimum?: number | undefined;
6440
- readonly maximum?: number | undefined;
6441
- readonly default?: number | undefined;
6442
- } | {
6443
- readonly key: string;
6444
- readonly title?: string | undefined;
6445
- readonly description?: string | undefined;
6446
- readonly required?: boolean | undefined;
6447
- readonly hidden?: boolean | undefined;
6448
- readonly when?: readonly {
6449
- readonly key: string;
6450
- readonly op: "eq" | "neq";
6451
- readonly value: string | number | boolean;
6452
- }[] | undefined;
6453
- readonly type: "integer";
6454
- readonly minimum?: number | undefined;
6455
- readonly maximum?: number | undefined;
6456
- readonly default?: number | undefined;
6457
- } | {
6458
- readonly key: string;
6459
- readonly title?: string | undefined;
6460
- readonly description?: string | undefined;
6461
- readonly required?: boolean | undefined;
6462
- readonly hidden?: boolean | undefined;
6463
- readonly when?: readonly {
6464
- readonly key: string;
6465
- readonly op: "eq" | "neq";
6466
- readonly value: string | number | boolean;
6467
- }[] | undefined;
6468
- readonly type: "boolean";
6469
- readonly default?: boolean | undefined;
6470
- } | {
6471
- readonly key: string;
6472
- readonly title?: string | undefined;
6473
- readonly description?: string | undefined;
6474
- readonly required?: boolean | undefined;
6475
- readonly hidden?: boolean | undefined;
6476
- readonly when?: readonly {
6477
- readonly key: string;
6478
- readonly op: "eq" | "neq";
6479
- readonly value: string | number | boolean;
6480
- }[] | undefined;
6481
- readonly type: "multiselect";
6482
- readonly options: readonly {
6483
- readonly value: string;
6484
- readonly label: string;
6485
- readonly description?: string | undefined;
6486
- }[];
6487
- readonly minItems?: number | undefined;
6488
- readonly maxItems?: number | undefined;
6489
- readonly custom?: boolean | undefined;
6490
- readonly default?: readonly string[] | undefined;
6491
- } | {
6492
- readonly key: string;
6493
- readonly type: "external";
6494
- readonly url: string;
6495
- readonly title?: string | undefined;
6496
- readonly description?: string | undefined;
6497
- }, ...({
6498
- readonly key: string;
6499
- readonly title?: string | undefined;
6500
- readonly description?: string | undefined;
6501
- readonly required?: boolean | undefined;
6502
- readonly hidden?: boolean | undefined;
6503
- readonly when?: readonly {
6504
- readonly key: string;
6505
- readonly op: "eq" | "neq";
6506
- readonly value: string | number | boolean;
6507
- }[] | undefined;
6508
- readonly type: "string";
6509
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
6510
- readonly minLength?: number | undefined;
6511
- readonly maxLength?: number | undefined;
6512
- readonly pattern?: string | undefined;
6513
- readonly placeholder?: string | undefined;
6514
- readonly default?: string | undefined;
6515
- readonly options?: readonly {
6516
- readonly value: string;
6517
- readonly label: string;
6518
- readonly description?: string | undefined;
6519
- }[] | undefined;
6520
- readonly custom?: boolean | undefined;
6521
- } | {
6522
- readonly key: string;
6523
- readonly title?: string | undefined;
6524
- readonly description?: string | undefined;
6525
- readonly required?: boolean | undefined;
6526
- readonly hidden?: boolean | undefined;
6527
- readonly when?: readonly {
6528
- readonly key: string;
6529
- readonly op: "eq" | "neq";
6530
- readonly value: string | number | boolean;
6531
- }[] | undefined;
6532
- readonly type: "number";
6533
- readonly minimum?: number | undefined;
6534
- readonly maximum?: number | undefined;
6535
- readonly default?: number | undefined;
6536
- } | {
6537
- readonly key: string;
6538
- readonly title?: string | undefined;
6539
- readonly description?: string | undefined;
6540
- readonly required?: boolean | undefined;
6541
- readonly hidden?: boolean | undefined;
6542
- readonly when?: readonly {
6543
- readonly key: string;
6544
- readonly op: "eq" | "neq";
6545
- readonly value: string | number | boolean;
6546
- }[] | undefined;
6547
- readonly type: "integer";
6548
- readonly minimum?: number | undefined;
6549
- readonly maximum?: number | undefined;
6550
- readonly default?: number | undefined;
6551
- } | {
6552
- readonly key: string;
6553
- readonly title?: string | undefined;
6554
- readonly description?: string | undefined;
6555
- readonly required?: boolean | undefined;
6556
- readonly hidden?: boolean | undefined;
6557
- readonly when?: readonly {
6558
- readonly key: string;
6559
- readonly op: "eq" | "neq";
6560
- readonly value: string | number | boolean;
6561
- }[] | undefined;
6562
- readonly type: "boolean";
6563
- readonly default?: boolean | undefined;
6564
- } | {
6565
- readonly key: string;
6566
- readonly title?: string | undefined;
6567
- readonly description?: string | undefined;
6568
- readonly required?: boolean | undefined;
6569
- readonly hidden?: boolean | undefined;
6570
- readonly when?: readonly {
6571
- readonly key: string;
6572
- readonly op: "eq" | "neq";
6573
- readonly value: string | number | boolean;
6574
- }[] | undefined;
6575
- readonly type: "multiselect";
6576
- readonly options: readonly {
6577
- readonly value: string;
6578
- readonly label: string;
6579
- readonly description?: string | undefined;
6580
- }[];
6581
- readonly minItems?: number | undefined;
6582
- readonly maxItems?: number | undefined;
6583
- readonly custom?: boolean | undefined;
6584
- readonly default?: readonly string[] | undefined;
6585
- } | {
6586
- readonly key: string;
6587
- readonly type: "external";
6588
- readonly url: string;
6589
- readonly title?: string | undefined;
6590
- readonly description?: string | undefined;
6591
- })[]];
6592
- };
6593
- };
6594
- } | {
6595
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6596
- readonly created: number;
6597
- readonly metadata?: {
6598
- readonly [x: string]: unknown;
6599
- } | undefined;
6600
- readonly type: "form.replied";
6601
- readonly location?: {
6602
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6603
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6604
- } | undefined;
6605
- readonly data: {
6606
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6607
- readonly sessionID: string;
6608
- readonly answer: {
6609
- readonly [x: string]: string | number | boolean | readonly string[];
6610
- };
6611
- };
6612
- } | {
6613
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6614
- readonly created: number;
6615
- readonly metadata?: {
6616
- readonly [x: string]: unknown;
6617
- } | undefined;
6618
- readonly type: "agent.updated";
6619
- readonly location?: {
6620
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6621
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6622
- } | undefined;
6623
- readonly data: {};
6624
- } | {
6625
6248
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6626
6249
  readonly created: number;
6627
6250
  readonly metadata?: {
@@ -7907,14 +7530,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7907
7530
  readonly metadata?: {
7908
7531
  readonly [x: string]: unknown;
7909
7532
  } | undefined;
7910
- readonly type: "session.compaction.delta";
7533
+ readonly type: "worktree.resolved";
7534
+ readonly durable: {
7535
+ readonly aggregateID: string;
7536
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7537
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7538
+ };
7911
7539
  readonly location?: {
7912
7540
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7913
7541
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7914
7542
  } | undefined;
7915
7543
  readonly data: {
7916
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7917
- readonly text: string;
7544
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7545
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7546
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
7547
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
7918
7548
  };
7919
7549
  } | {
7920
7550
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7922,16 +7552,50 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7922
7552
  readonly metadata?: {
7923
7553
  readonly [x: string]: unknown;
7924
7554
  } | undefined;
7925
- readonly type: "session.reasoning.delta";
7555
+ readonly type: "agent.updated";
7556
+ readonly location?: {
7557
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7558
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7559
+ } | undefined;
7560
+ readonly data: {};
7561
+ } | {
7562
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7563
+ readonly created: number;
7564
+ readonly metadata?: {
7565
+ readonly [x: string]: unknown;
7566
+ } | undefined;
7567
+ readonly type: "command.updated";
7568
+ readonly location?: {
7569
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7570
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7571
+ } | undefined;
7572
+ readonly data: {};
7573
+ } | {
7574
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7575
+ readonly created: number;
7576
+ readonly metadata?: {
7577
+ readonly [x: string]: unknown;
7578
+ } | undefined;
7579
+ readonly type: "config.updated";
7580
+ readonly location?: {
7581
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7582
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7583
+ } | undefined;
7584
+ readonly data: {};
7585
+ } | {
7586
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7587
+ readonly created: number;
7588
+ readonly metadata?: {
7589
+ readonly [x: string]: unknown;
7590
+ } | undefined;
7591
+ readonly type: "credential.switched";
7926
7592
  readonly location?: {
7927
7593
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7928
7594
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7929
7595
  } | undefined;
7930
7596
  readonly data: {
7931
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7932
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7933
- readonly ordinal: number;
7934
- readonly delta: string;
7597
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
7598
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
7935
7599
  };
7936
7600
  } | {
7937
7601
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7939,16 +7603,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7939
7603
  readonly metadata?: {
7940
7604
  readonly [x: string]: unknown;
7941
7605
  } | undefined;
7942
- readonly type: "session.text.delta";
7606
+ readonly type: "credential.updated";
7607
+ readonly location?: {
7608
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7609
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7610
+ } | undefined;
7611
+ readonly data: {};
7612
+ } | {
7613
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7614
+ readonly created: number;
7615
+ readonly metadata?: {
7616
+ readonly [x: string]: unknown;
7617
+ } | undefined;
7618
+ readonly type: "filesystem.changed";
7943
7619
  readonly location?: {
7944
7620
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7945
7621
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7946
7622
  } | undefined;
7947
7623
  readonly data: {
7948
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7949
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7950
- readonly ordinal: number;
7951
- readonly delta: string;
7624
+ readonly file: string;
7625
+ readonly event: "add" | "change" | "unlink";
7952
7626
  };
7953
7627
  } | {
7954
7628
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7956,16 +7630,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7956
7630
  readonly metadata?: {
7957
7631
  readonly [x: string]: unknown;
7958
7632
  } | undefined;
7959
- readonly type: "session.tool.input.delta";
7633
+ readonly type: "form.cancelled";
7960
7634
  readonly location?: {
7961
7635
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7962
7636
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7963
7637
  } | undefined;
7964
7638
  readonly data: {
7965
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7966
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7967
- readonly id: string;
7968
- readonly delta: string;
7639
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
7640
+ readonly sessionID: string;
7969
7641
  };
7970
7642
  } | {
7971
7643
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7973,17 +7645,208 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7973
7645
  readonly metadata?: {
7974
7646
  readonly [x: string]: unknown;
7975
7647
  } | undefined;
7976
- readonly type: "session.tool.progress";
7648
+ readonly type: "form.created";
7977
7649
  readonly location?: {
7978
7650
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7979
7651
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7980
7652
  } | undefined;
7981
7653
  readonly data: {
7982
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7983
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7984
- readonly id: string;
7985
- readonly metadata: {
7986
- readonly [x: string]: import("effect/Schema").Json;
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
+ })[]];
7987
7850
  };
7988
7851
  };
7989
7852
  } | {
@@ -7992,22 +7855,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7992
7855
  readonly metadata?: {
7993
7856
  readonly [x: string]: unknown;
7994
7857
  } | undefined;
7995
- readonly type: "session.usage.updated";
7858
+ readonly type: "form.replied";
7996
7859
  readonly location?: {
7997
7860
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7998
7861
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7999
7862
  } | undefined;
8000
7863
  readonly data: {
8001
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8002
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8003
- readonly tokens: {
8004
- readonly input: number;
8005
- readonly output: number;
8006
- readonly reasoning: number;
8007
- readonly cache: {
8008
- readonly read: number;
8009
- readonly write: number;
8010
- };
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[];
8011
7868
  };
8012
7869
  };
8013
7870
  } | {
@@ -8016,33 +7873,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8016
7873
  readonly metadata?: {
8017
7874
  readonly [x: string]: unknown;
8018
7875
  } | undefined;
8019
- readonly type: "websearch.updated";
7876
+ readonly type: "installation.update-available";
8020
7877
  readonly location?: {
8021
7878
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8022
7879
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8023
7880
  } | undefined;
8024
- readonly data: {};
7881
+ readonly data: {
7882
+ readonly version: string;
7883
+ };
8025
7884
  } | {
8026
7885
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8027
7886
  readonly created: number;
8028
7887
  readonly metadata?: {
8029
7888
  readonly [x: string]: unknown;
8030
7889
  } | undefined;
8031
- readonly type: "worktree.resolved";
8032
- readonly durable: {
8033
- readonly aggregateID: string;
8034
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8035
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8036
- };
7890
+ readonly type: "installation.updated";
8037
7891
  readonly location?: {
8038
7892
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8039
7893
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8040
7894
  } | undefined;
8041
7895
  readonly data: {
8042
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8043
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8044
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
8045
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
7896
+ readonly version: string;
8046
7897
  };
8047
7898
  } | {
8048
7899
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8050,36 +7901,37 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8050
7901
  readonly metadata?: {
8051
7902
  readonly [x: string]: unknown;
8052
7903
  } | undefined;
8053
- readonly type: "worktree.updated";
7904
+ readonly type: "integration.updated";
8054
7905
  readonly location?: {
8055
7906
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8056
7907
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8057
7908
  } | undefined;
8058
- readonly data: {
8059
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8060
- };
7909
+ readonly data: {};
8061
7910
  } | {
8062
7911
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8063
7912
  readonly created: number;
8064
7913
  readonly metadata?: {
8065
7914
  readonly [x: string]: unknown;
8066
7915
  } | undefined;
8067
- readonly type: "pty.created";
7916
+ readonly type: "location.shutdown";
7917
+ readonly location?: {
7918
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7919
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7920
+ } | undefined;
7921
+ readonly data: {};
7922
+ } | {
7923
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7924
+ readonly created: number;
7925
+ readonly metadata?: {
7926
+ readonly [x: string]: unknown;
7927
+ } | undefined;
7928
+ readonly type: "mcp.resources.changed";
8068
7929
  readonly location?: {
8069
7930
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8070
7931
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8071
7932
  } | undefined;
8072
7933
  readonly data: {
8073
- readonly info: {
8074
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8075
- readonly title: string;
8076
- readonly command: string;
8077
- readonly args: readonly string[];
8078
- readonly cwd: string;
8079
- readonly status: "exited" | "running";
8080
- readonly pid: number;
8081
- readonly exitCode?: number | undefined;
8082
- };
7934
+ readonly server: string;
8083
7935
  };
8084
7936
  } | {
8085
7937
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8087,13 +7939,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8087
7939
  readonly metadata?: {
8088
7940
  readonly [x: string]: unknown;
8089
7941
  } | undefined;
8090
- readonly type: "pty.deleted";
7942
+ readonly type: "mcp.status.changed";
8091
7943
  readonly location?: {
8092
7944
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8093
7945
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8094
7946
  } | undefined;
8095
7947
  readonly data: {
8096
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
7948
+ readonly server: string;
8097
7949
  };
8098
7950
  } | {
8099
7951
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8101,14 +7953,50 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8101
7953
  readonly metadata?: {
8102
7954
  readonly [x: string]: unknown;
8103
7955
  } | undefined;
8104
- readonly type: "pty.exited";
7956
+ readonly type: "model.updated";
7957
+ readonly location?: {
7958
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7959
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7960
+ } | undefined;
7961
+ readonly data: {};
7962
+ } | {
7963
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7964
+ readonly created: number;
7965
+ readonly metadata?: {
7966
+ readonly [x: string]: unknown;
7967
+ } | undefined;
7968
+ readonly type: "models-dev.refreshed";
7969
+ readonly location?: {
7970
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7971
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7972
+ } | undefined;
7973
+ readonly data: {};
7974
+ } | {
7975
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7976
+ readonly created: number;
7977
+ readonly metadata?: {
7978
+ readonly [x: string]: unknown;
7979
+ } | undefined;
7980
+ readonly type: "permission.asked";
8105
7981
  readonly location?: {
8106
7982
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8107
7983
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8108
7984
  } | undefined;
8109
7985
  readonly data: {
8110
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8111
- readonly exitCode: number;
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">;
8112
8000
  };
8113
8001
  } | {
8114
8002
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8116,22 +8004,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8116
8004
  readonly metadata?: {
8117
8005
  readonly [x: string]: unknown;
8118
8006
  } | undefined;
8119
- readonly type: "pty.updated";
8007
+ readonly type: "permission.replied";
8120
8008
  readonly location?: {
8121
8009
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8122
8010
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8123
8011
  } | undefined;
8124
8012
  readonly data: {
8125
- readonly info: {
8126
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8127
- readonly title: string;
8128
- readonly command: string;
8129
- readonly args: readonly string[];
8130
- readonly cwd: string;
8131
- readonly status: "exited" | "running";
8132
- readonly pid: number;
8133
- readonly exitCode?: number | undefined;
8134
- };
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";
8135
8016
  };
8136
8017
  } | {
8137
8018
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8188,7 +8069,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8188
8069
  readonly metadata?: {
8189
8070
  readonly [x: string]: unknown;
8190
8071
  } | undefined;
8191
- readonly type: "location.shutdown";
8072
+ readonly type: "plugin.updated";
8192
8073
  readonly location?: {
8193
8074
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8194
8075
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8200,7 +8081,39 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8200
8081
  readonly metadata?: {
8201
8082
  readonly [x: string]: unknown;
8202
8083
  } | undefined;
8203
- readonly type: "models-dev.refreshed";
8084
+ readonly type: "project.updated";
8085
+ readonly location?: {
8086
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8087
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8088
+ } | undefined;
8089
+ readonly data: {
8090
+ readonly id: string & import("effect/Brand").Brand<"Project.ID">;
8091
+ readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
8092
+ readonly vcs?: string | undefined;
8093
+ readonly name?: string | undefined;
8094
+ readonly icon?: {
8095
+ readonly url?: string | undefined;
8096
+ readonly override?: string | undefined;
8097
+ readonly color?: string | undefined;
8098
+ } | undefined;
8099
+ readonly commands?: {
8100
+ readonly start?: string | undefined;
8101
+ } | undefined;
8102
+ readonly time: {
8103
+ readonly created: number;
8104
+ readonly updated: number;
8105
+ readonly active: number;
8106
+ readonly archived?: number | undefined;
8107
+ };
8108
+ readonly sandboxes: readonly string[];
8109
+ };
8110
+ } | {
8111
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8112
+ readonly created: number;
8113
+ readonly metadata?: {
8114
+ readonly [x: string]: unknown;
8115
+ } | undefined;
8116
+ readonly type: "provider.updated";
8204
8117
  readonly location?: {
8205
8118
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8206
8119
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8212,14 +8125,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8212
8125
  readonly metadata?: {
8213
8126
  readonly [x: string]: unknown;
8214
8127
  } | undefined;
8215
- readonly type: "credential.switched";
8128
+ readonly type: "pty.created";
8216
8129
  readonly location?: {
8217
8130
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8218
8131
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8219
8132
  } | undefined;
8220
8133
  readonly data: {
8221
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
8222
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
8134
+ readonly info: {
8135
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8136
+ readonly title: string;
8137
+ readonly command: string;
8138
+ readonly args: readonly string[];
8139
+ readonly cwd: string;
8140
+ readonly status: "exited" | "running";
8141
+ readonly pid: number;
8142
+ readonly exitCode?: number | undefined;
8143
+ };
8223
8144
  };
8224
8145
  } | {
8225
8146
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8227,43 +8148,59 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8227
8148
  readonly metadata?: {
8228
8149
  readonly [x: string]: unknown;
8229
8150
  } | undefined;
8230
- readonly type: "credential.updated";
8151
+ readonly type: "pty.deleted";
8231
8152
  readonly location?: {
8232
8153
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8233
8154
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8234
8155
  } | undefined;
8235
- readonly data: {};
8156
+ readonly data: {
8157
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8158
+ };
8236
8159
  } | {
8237
8160
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8238
8161
  readonly created: number;
8239
8162
  readonly metadata?: {
8240
8163
  readonly [x: string]: unknown;
8241
8164
  } | undefined;
8242
- readonly type: "integration.updated";
8165
+ readonly type: "pty.exited";
8243
8166
  readonly location?: {
8244
8167
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8245
8168
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8246
8169
  } | undefined;
8247
- readonly data: {};
8170
+ readonly data: {
8171
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8172
+ readonly exitCode: number;
8173
+ };
8248
8174
  } | {
8249
8175
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8250
8176
  readonly created: number;
8251
8177
  readonly metadata?: {
8252
8178
  readonly [x: string]: unknown;
8253
8179
  } | undefined;
8254
- readonly type: "provider.updated";
8180
+ readonly type: "pty.updated";
8255
8181
  readonly location?: {
8256
8182
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8257
8183
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8258
8184
  } | undefined;
8259
- readonly data: {};
8185
+ readonly data: {
8186
+ readonly info: {
8187
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8188
+ readonly title: string;
8189
+ readonly command: string;
8190
+ readonly args: readonly string[];
8191
+ readonly cwd: string;
8192
+ readonly status: "exited" | "running";
8193
+ readonly pid: number;
8194
+ readonly exitCode?: number | undefined;
8195
+ };
8196
+ };
8260
8197
  } | {
8261
8198
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8262
8199
  readonly created: number;
8263
8200
  readonly metadata?: {
8264
8201
  readonly [x: string]: unknown;
8265
8202
  } | undefined;
8266
- readonly type: "model.updated";
8203
+ readonly type: "reference.updated";
8267
8204
  readonly location?: {
8268
8205
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8269
8206
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8275,14 +8212,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8275
8212
  readonly metadata?: {
8276
8213
  readonly [x: string]: unknown;
8277
8214
  } | undefined;
8278
- readonly type: "filesystem.changed";
8215
+ readonly type: "session.compaction.delta";
8279
8216
  readonly location?: {
8280
8217
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8281
8218
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8282
8219
  } | undefined;
8283
8220
  readonly data: {
8284
- readonly file: string;
8285
- readonly event: "add" | "change" | "unlink";
8221
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8222
+ readonly text: string;
8286
8223
  };
8287
8224
  } | {
8288
8225
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8290,38 +8227,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8290
8227
  readonly metadata?: {
8291
8228
  readonly [x: string]: unknown;
8292
8229
  } | undefined;
8293
- readonly type: "reference.updated";
8294
- readonly location?: {
8295
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8296
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8297
- } | undefined;
8298
- readonly data: {};
8299
- } | {
8300
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8301
- readonly created: number;
8302
- readonly metadata?: {
8303
- readonly [x: string]: unknown;
8304
- } | undefined;
8305
- readonly type: "permission.asked";
8230
+ readonly type: "session.idle";
8306
8231
  readonly location?: {
8307
8232
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8308
8233
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8309
8234
  } | undefined;
8310
8235
  readonly data: {
8311
8236
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8312
- readonly action: string;
8313
- readonly resources: readonly string[];
8314
- readonly save?: readonly string[] | undefined;
8315
- readonly metadata?: {
8316
- readonly [x: string]: unknown;
8317
- } | undefined;
8318
- readonly source?: {
8319
- readonly type: "tool";
8320
- readonly messageID: string;
8321
- readonly id: string;
8322
- } | undefined;
8323
- readonly message?: string | undefined;
8324
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8325
8237
  };
8326
8238
  } | {
8327
8239
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8329,15 +8241,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8329
8241
  readonly metadata?: {
8330
8242
  readonly [x: string]: unknown;
8331
8243
  } | undefined;
8332
- readonly type: "permission.replied";
8244
+ readonly type: "session.reasoning.delta";
8333
8245
  readonly location?: {
8334
8246
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8335
8247
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8336
8248
  } | undefined;
8337
8249
  readonly data: {
8338
8250
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8339
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8340
- readonly reply: "always" | "once" | "reject";
8251
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8252
+ readonly ordinal: number;
8253
+ readonly delta: string;
8341
8254
  };
8342
8255
  } | {
8343
8256
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8345,43 +8258,48 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8345
8258
  readonly metadata?: {
8346
8259
  readonly [x: string]: unknown;
8347
8260
  } | undefined;
8348
- readonly type: "plugin.updated";
8261
+ readonly type: "session.status";
8349
8262
  readonly location?: {
8350
8263
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8351
8264
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8352
8265
  } | undefined;
8353
- readonly data: {};
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;
8285
+ };
8286
+ };
8354
8287
  } | {
8355
8288
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8356
8289
  readonly created: number;
8357
8290
  readonly metadata?: {
8358
8291
  readonly [x: string]: unknown;
8359
8292
  } | undefined;
8360
- readonly type: "project.updated";
8293
+ readonly type: "session.text.delta";
8361
8294
  readonly location?: {
8362
8295
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8363
8296
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8364
8297
  } | undefined;
8365
8298
  readonly data: {
8366
- readonly id: string & import("effect/Brand").Brand<"Project.ID">;
8367
- readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
8368
- readonly vcs?: string | undefined;
8369
- readonly name?: string | undefined;
8370
- readonly icon?: {
8371
- readonly url?: string | undefined;
8372
- readonly override?: string | undefined;
8373
- readonly color?: string | undefined;
8374
- } | undefined;
8375
- readonly commands?: {
8376
- readonly start?: string | undefined;
8377
- } | undefined;
8378
- readonly time: {
8379
- readonly created: number;
8380
- readonly updated: number;
8381
- readonly active: number;
8382
- readonly archived?: number | undefined;
8383
- };
8384
- readonly sandboxes: readonly string[];
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;
8385
8303
  };
8386
8304
  } | {
8387
8305
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8389,36 +8307,60 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8389
8307
  readonly metadata?: {
8390
8308
  readonly [x: string]: unknown;
8391
8309
  } | undefined;
8392
- readonly type: "command.updated";
8310
+ readonly type: "session.tool.input.delta";
8393
8311
  readonly location?: {
8394
8312
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8395
8313
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8396
8314
  } | undefined;
8397
- readonly data: {};
8315
+ readonly data: {
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;
8320
+ };
8398
8321
  } | {
8399
8322
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8400
8323
  readonly created: number;
8401
8324
  readonly metadata?: {
8402
8325
  readonly [x: string]: unknown;
8403
8326
  } | undefined;
8404
- readonly type: "config.updated";
8327
+ readonly type: "session.tool.progress";
8405
8328
  readonly location?: {
8406
8329
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8407
8330
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8408
8331
  } | undefined;
8409
- readonly data: {};
8332
+ readonly data: {
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
+ };
8339
+ };
8410
8340
  } | {
8411
8341
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8412
8342
  readonly created: number;
8413
8343
  readonly metadata?: {
8414
8344
  readonly [x: string]: unknown;
8415
8345
  } | undefined;
8416
- readonly type: "skill.updated";
8346
+ readonly type: "session.usage.updated";
8417
8347
  readonly location?: {
8418
8348
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8419
8349
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8420
8350
  } | undefined;
8421
- readonly data: {};
8351
+ readonly data: {
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
+ };
8362
+ };
8363
+ };
8422
8364
  } | {
8423
8365
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8424
8366
  readonly created: number;
@@ -8486,46 +8428,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8486
8428
  readonly metadata?: {
8487
8429
  readonly [x: string]: unknown;
8488
8430
  } | undefined;
8489
- readonly type: "session.idle";
8490
- readonly location?: {
8491
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8492
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8493
- } | undefined;
8494
- readonly data: {
8495
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8496
- };
8497
- } | {
8498
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8499
- readonly created: number;
8500
- readonly metadata?: {
8501
- readonly [x: string]: unknown;
8502
- } | undefined;
8503
- readonly type: "session.status";
8431
+ readonly type: "skill.updated";
8504
8432
  readonly location?: {
8505
8433
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8506
8434
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8507
8435
  } | undefined;
8508
- readonly data: {
8509
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8510
- readonly status: {
8511
- readonly type: "idle";
8512
- } | {
8513
- readonly type: "retry";
8514
- readonly attempt: number;
8515
- readonly message: string;
8516
- readonly action?: {
8517
- readonly reason: string;
8518
- readonly provider: string;
8519
- readonly title: string;
8520
- readonly message: string;
8521
- readonly label: string;
8522
- readonly link?: string | undefined;
8523
- } | undefined;
8524
- readonly next: number;
8525
- } | {
8526
- readonly type: "busy";
8527
- };
8528
- };
8436
+ readonly data: {};
8529
8437
  } | {
8530
8438
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8531
8439
  readonly created: number;
@@ -8585,34 +8493,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8585
8493
  readonly variant: "error" | "info" | "success" | "warning";
8586
8494
  readonly duration: number;
8587
8495
  };
8588
- } | {
8589
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8590
- readonly created: number;
8591
- readonly metadata?: {
8592
- readonly [x: string]: unknown;
8593
- } | undefined;
8594
- readonly type: "installation.update-available";
8595
- readonly location?: {
8596
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8597
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8598
- } | undefined;
8599
- readonly data: {
8600
- readonly version: string;
8601
- };
8602
- } | {
8603
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8604
- readonly created: number;
8605
- readonly metadata?: {
8606
- readonly [x: string]: unknown;
8607
- } | undefined;
8608
- readonly type: "installation.updated";
8609
- readonly location?: {
8610
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8611
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8612
- } | undefined;
8613
- readonly data: {
8614
- readonly version: string;
8615
- };
8616
8496
  } | {
8617
8497
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8618
8498
  readonly created: number;
@@ -8633,27 +8513,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8633
8513
  readonly metadata?: {
8634
8514
  readonly [x: string]: unknown;
8635
8515
  } | undefined;
8636
- readonly type: "mcp.resources.changed";
8516
+ readonly type: "websearch.updated";
8637
8517
  readonly location?: {
8638
8518
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8639
8519
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8640
8520
  } | undefined;
8641
- readonly data: {
8642
- readonly server: string;
8643
- };
8521
+ readonly data: {};
8644
8522
  } | {
8645
8523
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8646
8524
  readonly created: number;
8647
8525
  readonly metadata?: {
8648
8526
  readonly [x: string]: unknown;
8649
8527
  } | undefined;
8650
- readonly type: "mcp.status.changed";
8528
+ readonly type: "worktree.updated";
8651
8529
  readonly location?: {
8652
8530
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8653
8531
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8654
8532
  } | undefined;
8655
8533
  readonly data: {
8656
- readonly server: string;
8534
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8657
8535
  };
8658
8536
  } | {
8659
8537
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;