@opencode/server 2.1.3 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/api.d.ts +854 -969
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/server-info-1gwc8nvb.js +69 -0
  5. package/dist/chunks/{service-status-z554rpg5.js → server-info-1v577ncx.js} +4 -2
  6. package/dist/chunks/{service-status-79n3507d.js → server-info-1wd9c1m3.js} +3 -3
  7. package/dist/chunks/{service-status-jwf0kwqx.js → server-info-2eaky32g.js} +12 -3
  8. package/dist/chunks/{service-status-a30hykaf.js → server-info-2h6qktqa.js} +24 -6
  9. package/dist/chunks/{service-status-6tj91hdj.js → server-info-4fy84009.js} +3 -3
  10. package/dist/chunks/{service-status-yzwm8eeq.js → server-info-4q6e7fh8.js} +2 -2
  11. package/dist/chunks/{service-status-gymtz25n.js → server-info-50bbk3b2.js} +3 -3
  12. package/dist/chunks/{service-status-rj8tbp10.js → server-info-5b42hxrf.js} +1 -1
  13. package/dist/chunks/{service-status-x2cwbfak.js → server-info-5pdfedjd.js} +7 -7
  14. package/dist/chunks/{service-status-1qc831kp.js → server-info-5s6gh8sx.js} +7 -3
  15. package/dist/chunks/{service-status-vg0x3zn0.js → server-info-6z9pvq7p.js} +1 -1
  16. package/dist/chunks/{service-status-6v4wsps6.js → server-info-7b9xm1qg.js} +3 -2
  17. package/dist/chunks/{service-status-7qrtcnv4.js → server-info-a8jcac9a.js} +1 -1
  18. package/dist/chunks/{service-status-5ewqf72w.js → server-info-az0609r6.js} +4 -2
  19. package/dist/chunks/server-info-b0f38s3n.js +105 -0
  20. package/dist/chunks/server-info-b105zy65.js +22 -0
  21. package/dist/chunks/{service-status-x74w7e1f.js → server-info-b3bmdkga.js} +1 -1
  22. package/dist/chunks/{service-status-erzfdgke.js → server-info-bd8755ek.js} +16 -1
  23. package/dist/chunks/server-info-bhbc7551.js +107 -0
  24. package/dist/chunks/{service-status-11d378s5.js → server-info-btahnm2b.js} +3 -3
  25. package/dist/chunks/{service-status-c2hv5jmf.js → server-info-cezwbsk5.js} +1 -1
  26. package/dist/chunks/{service-status-crt28xe4.js → server-info-d0edqfxx.js} +4 -11
  27. package/dist/chunks/{service-status-e6e4kz0w.js → server-info-e6e4kz0w.js} +1 -1
  28. package/dist/chunks/{service-status-5adf1am9.js → server-info-f559fakr.js} +2 -2
  29. package/dist/chunks/{service-status-pf9k0dqe.js → server-info-h29xjj1e.js} +2 -2
  30. package/dist/chunks/{service-status-3154e7fk.js → server-info-htyf2qs7.js} +5 -3
  31. package/dist/chunks/{service-status-5680j7c4.js → server-info-j2d131x1.js} +23 -20
  32. package/dist/chunks/{service-status-j4at0y5c.js → server-info-j4at0y5c.js} +1 -1
  33. package/dist/chunks/{service-status-r82dtfrk.js → server-info-j87xz9bt.js} +3 -3
  34. package/dist/chunks/{service-status-y89d99mz.js → server-info-kkdkqt8j.js} +2 -2
  35. package/dist/chunks/{service-status-vb61dkrm.js → server-info-kqr36gas.js} +8 -8
  36. package/dist/chunks/server-info-n321d8vm.js +46 -0
  37. package/dist/chunks/{service-status-rkmbbexc.js → server-info-nx6f5k7a.js} +4 -4
  38. package/dist/chunks/{service-status-0znmasm1.js → server-info-ny1j968n.js} +2 -2
  39. package/dist/chunks/server-info-qcg3sqtb.js +38 -0
  40. package/dist/chunks/{service-status-6e6jjne7.js → server-info-qd0r787n.js} +2 -2
  41. package/dist/chunks/{service-status-xcxwzp6z.js → server-info-rha2aq18.js} +4 -4
  42. package/dist/chunks/{service-status-6tjqh8g4.js → server-info-rw1dfckh.js} +8 -4
  43. package/dist/chunks/{service-status-2e16a9cc.js → server-info-s282vggx.js} +1 -1
  44. package/dist/chunks/{service-status-k6dz4enc.js → server-info-s802fzg1.js} +21 -20
  45. package/dist/chunks/{service-status-10kexchg.js → server-info-te8jwba1.js} +2 -2
  46. package/dist/chunks/{service-status-53jj3zgg.js → server-info-tjtyxt9h.js} +32 -12
  47. package/dist/chunks/server-info-xthc02cw.js +6 -0
  48. package/dist/chunks/server-info-yqhefp4s.js +83 -0
  49. package/dist/chunks/{service-status-7scj3y0h.js → server-info-yxw63vq5.js} +10 -8
  50. package/dist/chunks/{service-status-krqg3gd2.js → server-info-zcvan105.js} +1 -1
  51. package/dist/chunks/{service-status-q6jxy1hn.js → server-info-zpr61asr.js} +15 -38
  52. package/dist/cors.js +1 -1
  53. package/dist/event-feed.d.ts +1 -1
  54. package/dist/event-feed.js +3 -3
  55. package/dist/fetch.js +50 -48
  56. package/dist/handlers/agent.js +6 -6
  57. package/dist/handlers/command.js +6 -6
  58. package/dist/handlers/config.js +6 -6
  59. package/dist/handlers/credential.js +6 -6
  60. package/dist/handlers/debug.d.ts +2 -1
  61. package/dist/handlers/debug.js +6 -6
  62. package/dist/handlers/event.js +7 -7
  63. package/dist/handlers/form.js +6 -6
  64. package/dist/handlers/fs.d.ts +2 -1
  65. package/dist/handlers/fs.js +6 -6
  66. package/dist/handlers/generate.d.ts +1 -1
  67. package/dist/handlers/generate.js +6 -6
  68. package/dist/handlers/integration.js +6 -6
  69. package/dist/handlers/location.js +6 -6
  70. package/dist/handlers/mcp.d.ts +3 -1
  71. package/dist/handlers/mcp.js +8 -6
  72. package/dist/handlers/media.d.ts +6 -0
  73. package/dist/handlers/media.js +6 -0
  74. package/dist/handlers/message.js +7 -6
  75. package/dist/handlers/migration.js +6 -6
  76. package/dist/handlers/model.js +6 -6
  77. package/dist/handlers/permission.js +6 -6
  78. package/dist/handlers/persistent-pty.d.ts +1 -1
  79. package/dist/handlers/persistent-pty.js +9 -8
  80. package/dist/handlers/plugin.js +6 -6
  81. package/dist/handlers/project.d.ts +1 -1
  82. package/dist/handlers/project.js +6 -6
  83. package/dist/handlers/provider.js +6 -6
  84. package/dist/handlers/pty-socket.js +1 -1
  85. package/dist/handlers/pty.d.ts +1 -2
  86. package/dist/handlers/pty.js +8 -9
  87. package/dist/handlers/reference.js +6 -6
  88. package/dist/handlers/rpc.js +6 -6
  89. package/dist/handlers/server.js +9 -9
  90. package/dist/handlers/session-error.js +1 -1
  91. package/dist/handlers/session.d.ts +3 -1
  92. package/dist/handlers/session.js +7 -6
  93. package/dist/handlers/shell.js +6 -6
  94. package/dist/handlers/skill.js +6 -6
  95. package/dist/handlers/usage.d.ts +1 -0
  96. package/dist/handlers/usage.js +11 -0
  97. package/dist/handlers/vcs.js +6 -6
  98. package/dist/handlers/voice.d.ts +1 -1
  99. package/dist/handlers/voice.js +6 -6
  100. package/dist/handlers/websearch.js +6 -6
  101. package/dist/handlers/worktree.js +6 -6
  102. package/dist/handlers.d.ts +1 -1
  103. package/dist/handlers.js +46 -44
  104. package/dist/location.js +4 -4
  105. package/dist/media-uri.d.ts +6 -0
  106. package/dist/media-uri.js +6 -0
  107. package/dist/middleware/authorization.js +2 -2
  108. package/dist/middleware/form-location.js +3 -3
  109. package/dist/middleware/schema-error.js +1 -1
  110. package/dist/middleware/session-location.js +3 -3
  111. package/dist/pairing.js +5 -5
  112. package/dist/process.js +54 -51
  113. package/dist/request-tracing.js +1 -1
  114. package/dist/routes.d.ts +5 -3
  115. package/dist/routes.js +49 -47
  116. package/dist/server-info.js +5 -5
  117. package/dist/service-status.js +1 -1
  118. package/dist/workerd.js +51 -49
  119. package/package.json +12 -10
  120. package/dist/chunks/service-status-0f489yfb.js +0 -102
  121. package/dist/chunks/service-status-2f9g7rg2.js +0 -20
  122. package/dist/chunks/service-status-hwdnjend.js +0 -40
  123. package/dist/chunks/service-status-j3461ttv.js +0 -59
  124. package/dist/chunks/service-status-z9g9xjb3.js +0 -30
  125. package/dist/chunks/service-status-zy1wt1f8.js +0 -23
  126. package/dist/pty-environment.d.ts +0 -13
  127. package/dist/pty-environment.js +0 -12
  128. /package/dist/chunks/{service-status-9rqn6x4v.js → server-info-9rqn6x4v.js} +0 -0
  129. /package/dist/chunks/{service-status-h6rt5k9s.js → server-info-h6rt5k9s.js} +0 -0
  130. /package/dist/chunks/{service-status-q4bn6dy8.js → server-info-q4bn6dy8.js} +0 -0
  131. /package/dist/chunks/{service-status-smaf4a18.js → server-info-smaf4a18.js} +0 -0
  132. /package/dist/chunks/{service-status-yc7nft6q.js → server-info-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import { LocationMiddleware } from "./location";
2
2
  import { FormLocationMiddleware } from "./middleware/form-location";
3
3
  import { SessionLocationMiddleware } from "./middleware/session-location";
4
- export declare const Api: import("@opencode/protocol/api").Api<LocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, FormLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, SessionLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, import("effect/http-api/HttpApiGroup").HttpApiGroup<"server.event", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, never, never, never, import("effect/http-api/HttpApiSchema").StreamSse<import("effect/http-api/HttpApiSchema").SseEventFromData<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4
+ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, FormLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, SessionLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, import("effect/http-api/HttpApiGroup").HttpApiGroup<"server.event", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
5
+ readonly types: import("effect/Schema").optional<import("effect/Schema").ArrayEnsure<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ("agent.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated")[]>, import("effect/Schema").TemplateLiteral<readonly ["rpc.", import("effect/Schema").String]>]>>>;
6
+ }>>, never, never, import("effect/http-api/HttpApiSchema").StreamSse<import("effect/http-api/HttpApiSchema").SseEventFromData<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5
7
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
6
8
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
7
9
  };
@@ -301,7 +303,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
301
303
  readonly data: import("effect/Schema").Struct<{
302
304
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
303
305
  create: () => string & import("effect/Brand").Brand<"SessionID">;
304
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
305
306
  };
306
307
  readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
307
308
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -319,10 +320,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
319
320
  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
321
  readonly parentID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
321
322
  create: () => string & import("effect/Brand").Brand<"SessionID">;
322
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
323
323
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
324
324
  create: () => string & import("effect/Brand").Brand<"SessionID">;
325
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
326
325
  }>, never, never>;
327
326
  readonly slug: import("effect/Schema").String;
328
327
  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 +393,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
394
393
  data: import("effect/Schema").Struct<{
395
394
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
396
395
  create: () => string & import("effect/Brand").Brand<"SessionID">;
397
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
398
396
  };
399
397
  readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
400
398
  global: string & import("effect/Brand").Brand<"Project.ID">;
@@ -412,10 +410,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
412
410
  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
411
  readonly parentID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
414
412
  create: () => string & import("effect/Brand").Brand<"SessionID">;
415
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
416
413
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
417
414
  create: () => string & import("effect/Brand").Brand<"SessionID">;
418
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
419
415
  }>, never, never>;
420
416
  readonly slug: import("effect/Schema").String;
421
417
  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 +507,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
511
507
  readonly data: import("effect/Schema").Struct<{
512
508
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
513
509
  create: () => string & import("effect/Brand").Brand<"SessionID">;
514
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
515
510
  };
516
511
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
517
512
  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 +521,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
526
521
  data: import("effect/Schema").Struct<{
527
522
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
528
523
  create: () => string & import("effect/Brand").Brand<"SessionID">;
529
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
530
524
  };
531
525
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
532
526
  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 +559,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
565
559
  readonly data: import("effect/Schema").Struct<{
566
560
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
567
561
  create: () => string & import("effect/Brand").Brand<"SessionID">;
568
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
569
562
  };
570
563
  readonly model: import("effect/Schema").Struct<{
571
564
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
@@ -646,7 +639,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
646
639
  data: import("effect/Schema").Struct<{
647
640
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
648
641
  create: () => string & import("effect/Brand").Brand<"SessionID">;
649
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
650
642
  };
651
643
  readonly model: import("effect/Schema").Struct<{
652
644
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
@@ -765,7 +757,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
765
757
  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
758
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
767
759
  create: () => string & import("effect/Brand").Brand<"SessionID">;
768
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
769
760
  };
770
761
  }>;
771
762
  }> & {
@@ -792,7 +783,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
792
783
  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
784
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
794
785
  create: () => string & import("effect/Brand").Brand<"SessionID">;
795
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
796
786
  };
797
787
  }>;
798
788
  }, import("effect/Schema").Struct<{
@@ -829,7 +819,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
829
819
  readonly data: import("effect/Schema").Struct<{
830
820
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
831
821
  create: () => string & import("effect/Brand").Brand<"SessionID">;
832
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
833
822
  };
834
823
  readonly title: import("effect/Schema").String;
835
824
  }>;
@@ -843,7 +832,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
843
832
  data: import("effect/Schema").Struct<{
844
833
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
845
834
  create: () => string & import("effect/Brand").Brand<"SessionID">;
846
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
847
835
  };
848
836
  readonly title: import("effect/Schema").String;
849
837
  }>;
@@ -881,7 +869,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
881
869
  readonly data: import("effect/Schema").Struct<{
882
870
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
883
871
  create: () => string & import("effect/Brand").Brand<"SessionID">;
884
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
885
872
  };
886
873
  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
874
  }>;
@@ -895,7 +882,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
895
882
  data: import("effect/Schema").Struct<{
896
883
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
897
884
  create: () => string & import("effect/Brand").Brand<"SessionID">;
898
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
899
885
  };
900
886
  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
887
  }>;
@@ -933,7 +919,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
933
919
  readonly data: import("effect/Schema").Struct<{
934
920
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
935
921
  create: () => string & import("effect/Brand").Brand<"SessionID">;
936
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
937
922
  };
938
923
  readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
939
924
  readonly action: import("effect/Schema").String;
@@ -951,7 +936,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
951
936
  data: import("effect/Schema").Struct<{
952
937
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
953
938
  create: () => string & import("effect/Brand").Brand<"SessionID">;
954
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
955
939
  };
956
940
  readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
957
941
  readonly action: import("effect/Schema").String;
@@ -993,7 +977,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
993
977
  readonly data: import("effect/Schema").Struct<{
994
978
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
995
979
  create: () => string & import("effect/Brand").Brand<"SessionID">;
996
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
997
980
  };
998
981
  readonly idle: import("effect/Schema").Finite;
999
982
  }>;
@@ -1007,7 +990,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1007
990
  data: import("effect/Schema").Struct<{
1008
991
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1009
992
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1010
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1011
993
  };
1012
994
  readonly idle: import("effect/Schema").Finite;
1013
995
  }>;
@@ -1045,7 +1027,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1045
1027
  readonly data: import("effect/Schema").Struct<{
1046
1028
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1047
1029
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1048
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1049
1030
  };
1050
1031
  }>;
1051
1032
  }> & {
@@ -1058,7 +1039,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1058
1039
  data: import("effect/Schema").Struct<{
1059
1040
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1060
1041
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1061
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1062
1042
  };
1063
1043
  }>;
1064
1044
  }, import("effect/Schema").Struct<{
@@ -1095,7 +1075,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1095
1075
  readonly data: import("effect/Schema").Struct<{
1096
1076
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1097
1077
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1098
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1099
1078
  };
1100
1079
  }>;
1101
1080
  }> & {
@@ -1108,7 +1087,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1108
1087
  data: import("effect/Schema").Struct<{
1109
1088
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1110
1089
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1111
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1112
1090
  };
1113
1091
  }>;
1114
1092
  }, import("effect/Schema").Struct<{
@@ -1140,7 +1118,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1140
1118
  readonly data: import("effect/Schema").Struct<{
1141
1119
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1142
1120
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1143
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1144
1121
  };
1145
1122
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1146
1123
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -1162,7 +1139,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1162
1139
  data: import("effect/Schema").Struct<{
1163
1140
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1164
1141
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1165
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1166
1142
  };
1167
1143
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
1168
1144
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -1211,7 +1187,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1211
1187
  readonly data: import("effect/Schema").Struct<{
1212
1188
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1213
1189
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1214
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1215
1190
  };
1216
1191
  }>;
1217
1192
  }> & {
@@ -1224,7 +1199,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1224
1199
  data: import("effect/Schema").Struct<{
1225
1200
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1226
1201
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1227
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1228
1202
  };
1229
1203
  }>;
1230
1204
  }, import("effect/Schema").Struct<{
@@ -1261,23 +1235,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1261
1235
  readonly data: import("effect/Schema").Struct<{
1262
1236
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1263
1237
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1264
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1265
1238
  };
1266
1239
  readonly parentID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1267
1240
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1268
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1269
1241
  };
1270
1242
  readonly boundary: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1271
1243
  readonly type: import("effect/Schema").Literal<"before">;
1272
1244
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1273
1245
  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">;
1246
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1275
1247
  };
1276
1248
  }>, import("effect/Schema").Struct<{
1277
1249
  readonly type: import("effect/Schema").Literal<"through">;
1278
1250
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1279
1251
  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">;
1252
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1281
1253
  };
1282
1254
  }>]>;
1283
1255
  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 +1273,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1301
1273
  data: import("effect/Schema").Struct<{
1302
1274
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1303
1275
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1304
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1305
1276
  };
1306
1277
  readonly parentID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1307
1278
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1308
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1309
1279
  };
1310
1280
  readonly boundary: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1311
1281
  readonly type: import("effect/Schema").Literal<"before">;
1312
1282
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1313
1283
  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">;
1284
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1315
1285
  };
1316
1286
  }>, import("effect/Schema").Struct<{
1317
1287
  readonly type: import("effect/Schema").Literal<"through">;
1318
1288
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1319
1289
  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">;
1290
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1321
1291
  };
1322
1292
  }>]>;
1323
1293
  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 +1335,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1365
1335
  readonly data: import("effect/Schema").Struct<{
1366
1336
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1367
1337
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1368
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1369
1338
  };
1370
1339
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1371
1340
  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">;
1341
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1373
1342
  };
1374
1343
  }>;
1375
1344
  }> & {
@@ -1382,11 +1351,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1382
1351
  data: import("effect/Schema").Struct<{
1383
1352
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1384
1353
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1385
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1386
1354
  };
1387
1355
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1388
1356
  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">;
1357
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1390
1358
  };
1391
1359
  }>;
1392
1360
  }, import("effect/Schema").Struct<{
@@ -1423,11 +1391,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1423
1391
  readonly data: import("effect/Schema").Struct<{
1424
1392
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1425
1393
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1426
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1427
1394
  };
1428
1395
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1429
1396
  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">;
1397
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1431
1398
  };
1432
1399
  readonly item: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1433
1400
  readonly type: import("effect/Schema").tag<"user">;
@@ -1606,11 +1573,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1606
1573
  data: import("effect/Schema").Struct<{
1607
1574
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1608
1575
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1609
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1610
1576
  };
1611
1577
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1612
1578
  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">;
1579
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1614
1580
  };
1615
1581
  readonly item: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
1616
1582
  readonly type: import("effect/Schema").tag<"user">;
@@ -1813,11 +1779,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1813
1779
  readonly data: import("effect/Schema").Struct<{
1814
1780
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1815
1781
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1816
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1817
1782
  };
1818
1783
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1819
1784
  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">;
1785
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1821
1786
  };
1822
1787
  }>;
1823
1788
  }> & {
@@ -1830,11 +1795,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1830
1795
  data: import("effect/Schema").Struct<{
1831
1796
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1832
1797
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1833
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1834
1798
  };
1835
1799
  inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1836
1800
  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">;
1801
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1838
1802
  };
1839
1803
  }>;
1840
1804
  }, import("effect/Schema").Struct<{
@@ -1871,11 +1835,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1871
1835
  readonly data: import("effect/Schema").Struct<{
1872
1836
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1873
1837
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1874
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1875
1838
  };
1876
1839
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1877
1840
  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">;
1841
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1879
1842
  };
1880
1843
  readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
1881
1844
  }>;
@@ -1889,11 +1852,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1889
1852
  data: import("effect/Schema").Struct<{
1890
1853
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1891
1854
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1892
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1893
1855
  };
1894
1856
  readonly inboxID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
1895
1857
  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">;
1858
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
1897
1859
  };
1898
1860
  readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
1899
1861
  }>;
@@ -1931,7 +1893,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1931
1893
  readonly data: import("effect/Schema").Struct<{
1932
1894
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1933
1895
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1934
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1935
1896
  };
1936
1897
  }>;
1937
1898
  }> & {
@@ -1944,7 +1905,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1944
1905
  data: import("effect/Schema").Struct<{
1945
1906
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1946
1907
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1947
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1948
1908
  };
1949
1909
  }>;
1950
1910
  }, import("effect/Schema").Struct<{
@@ -1981,7 +1941,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1981
1941
  readonly data: import("effect/Schema").Struct<{
1982
1942
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1983
1943
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1984
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1985
1944
  };
1986
1945
  }>;
1987
1946
  }> & {
@@ -1994,7 +1953,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1994
1953
  data: import("effect/Schema").Struct<{
1995
1954
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1996
1955
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1997
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1998
1956
  };
1999
1957
  }>;
2000
1958
  }, import("effect/Schema").Struct<{
@@ -2031,7 +1989,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2031
1989
  readonly data: import("effect/Schema").Struct<{
2032
1990
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2033
1991
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2034
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2035
1992
  };
2036
1993
  readonly error: import("effect/Schema").Struct<{
2037
1994
  readonly type: import("effect/Schema").String;
@@ -2055,7 +2012,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2055
2012
  data: import("effect/Schema").Struct<{
2056
2013
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2057
2014
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2058
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2059
2015
  };
2060
2016
  readonly error: import("effect/Schema").Struct<{
2061
2017
  readonly type: import("effect/Schema").String;
@@ -2103,7 +2059,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2103
2059
  readonly data: import("effect/Schema").Struct<{
2104
2060
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2105
2061
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2106
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2107
2062
  };
2108
2063
  readonly reason: import("effect/Schema").Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
2109
2064
  }>;
@@ -2117,7 +2072,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2117
2072
  data: import("effect/Schema").Struct<{
2118
2073
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2119
2074
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2120
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2121
2075
  };
2122
2076
  readonly reason: import("effect/Schema").Literals<readonly ["user", "shutdown", "superseded", "inactivity"]>;
2123
2077
  }>;
@@ -2155,7 +2109,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2155
2109
  readonly data: import("effect/Schema").Struct<{
2156
2110
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2157
2111
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2158
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2159
2112
  };
2160
2113
  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
2114
  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 +2123,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2170
2123
  data: import("effect/Schema").Struct<{
2171
2124
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2172
2125
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2173
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2174
2126
  };
2175
2127
  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
2128
  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 +2161,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2209
2161
  readonly data: import("effect/Schema").Struct<{
2210
2162
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2211
2163
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2212
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2213
2164
  };
2214
2165
  readonly text: import("effect/Schema").String;
2215
2166
  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 +2176,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2225
2176
  data: import("effect/Schema").Struct<{
2226
2177
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2227
2178
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2228
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2229
2179
  };
2230
2180
  readonly text: import("effect/Schema").String;
2231
2181
  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 +2215,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2265
2215
  readonly data: import("effect/Schema").Struct<{
2266
2216
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2267
2217
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2268
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2269
2218
  };
2270
2219
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Skill.ID">;
2271
2220
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Skill.Name">;
@@ -2281,7 +2230,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2281
2230
  data: import("effect/Schema").Struct<{
2282
2231
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2283
2232
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2284
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2285
2233
  };
2286
2234
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Skill.ID">;
2287
2235
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Skill.Name">;
@@ -2321,7 +2269,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2321
2269
  readonly data: import("effect/Schema").Struct<{
2322
2270
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2323
2271
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2324
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2325
2272
  };
2326
2273
  readonly shell: import("effect/Schema").Struct<{
2327
2274
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2353,7 +2300,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2353
2300
  data: import("effect/Schema").Struct<{
2354
2301
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2355
2302
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2356
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2357
2303
  };
2358
2304
  readonly shell: import("effect/Schema").Struct<{
2359
2305
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2409,7 +2355,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2409
2355
  readonly data: import("effect/Schema").Struct<{
2410
2356
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2411
2357
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2412
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2413
2358
  };
2414
2359
  readonly shell: import("effect/Schema").Struct<{
2415
2360
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2447,7 +2392,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2447
2392
  data: import("effect/Schema").Struct<{
2448
2393
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2449
2394
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2450
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2451
2395
  };
2452
2396
  readonly shell: import("effect/Schema").Struct<{
2453
2397
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Shell.ID"> & {
@@ -2509,11 +2453,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2509
2453
  readonly data: import("effect/Schema").Struct<{
2510
2454
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2511
2455
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2512
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2513
2456
  };
2514
2457
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2515
2458
  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">;
2459
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2517
2460
  };
2518
2461
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
2519
2462
  readonly model: import("effect/Schema").Struct<{
@@ -2552,11 +2495,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2552
2495
  data: import("effect/Schema").Struct<{
2553
2496
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2554
2497
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2555
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2556
2498
  };
2557
2499
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2558
2500
  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">;
2501
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2560
2502
  };
2561
2503
  readonly agent: import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">;
2562
2504
  readonly model: import("effect/Schema").Struct<{
@@ -2619,11 +2561,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2619
2561
  readonly data: import("effect/Schema").Struct<{
2620
2562
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2621
2563
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2622
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2623
2564
  };
2624
2565
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2625
2566
  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">;
2567
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2627
2568
  };
2628
2569
  }>;
2629
2570
  }> & {
@@ -2636,11 +2577,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2636
2577
  data: import("effect/Schema").Struct<{
2637
2578
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2638
2579
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2639
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2640
2580
  };
2641
2581
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2642
2582
  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">;
2583
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2644
2584
  };
2645
2585
  }>;
2646
2586
  }, import("effect/Schema").Struct<{
@@ -2677,11 +2617,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2677
2617
  readonly data: import("effect/Schema").Struct<{
2678
2618
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2679
2619
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2680
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2681
2620
  };
2682
2621
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2683
2622
  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">;
2623
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2685
2624
  };
2686
2625
  readonly finish: import("effect/Schema").Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2687
2626
  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 +2650,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2711
2650
  data: import("effect/Schema").Struct<{
2712
2651
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2713
2652
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2714
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2715
2653
  };
2716
2654
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2717
2655
  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">;
2656
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2719
2657
  };
2720
2658
  readonly finish: import("effect/Schema").Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2721
2659
  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 +2707,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2769
2707
  readonly data: import("effect/Schema").Struct<{
2770
2708
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2771
2709
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2772
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2773
2710
  };
2774
2711
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2775
2712
  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">;
2713
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2777
2714
  };
2778
2715
  readonly error: import("effect/Schema").Struct<{
2779
2716
  readonly type: import("effect/Schema").String;
@@ -2824,11 +2761,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2824
2761
  data: import("effect/Schema").Struct<{
2825
2762
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2826
2763
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2827
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2828
2764
  };
2829
2765
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2830
2766
  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">;
2767
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2832
2768
  };
2833
2769
  readonly error: import("effect/Schema").Struct<{
2834
2770
  readonly type: import("effect/Schema").String;
@@ -2903,11 +2839,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2903
2839
  readonly data: import("effect/Schema").Struct<{
2904
2840
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2905
2841
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2906
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2907
2842
  };
2908
2843
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2909
2844
  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">;
2845
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2911
2846
  };
2912
2847
  readonly ordinal: import("effect/Schema").Int;
2913
2848
  }>;
@@ -2921,11 +2856,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2921
2856
  data: import("effect/Schema").Struct<{
2922
2857
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2923
2858
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2924
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2925
2859
  };
2926
2860
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2927
2861
  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">;
2862
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2929
2863
  };
2930
2864
  readonly ordinal: import("effect/Schema").Int;
2931
2865
  }>;
@@ -2958,11 +2892,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2958
2892
  readonly data: import("effect/Schema").Struct<{
2959
2893
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2960
2894
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2961
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2962
2895
  };
2963
2896
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2964
2897
  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">;
2898
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2966
2899
  };
2967
2900
  readonly ordinal: import("effect/Schema").Int;
2968
2901
  readonly delta: import("effect/Schema").String;
@@ -2974,11 +2907,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2974
2907
  data: import("effect/Schema").Struct<{
2975
2908
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2976
2909
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2977
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2978
2910
  };
2979
2911
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2980
2912
  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">;
2913
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2982
2914
  };
2983
2915
  readonly ordinal: import("effect/Schema").Int;
2984
2916
  readonly delta: import("effect/Schema").String;
@@ -3017,11 +2949,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3017
2949
  readonly data: import("effect/Schema").Struct<{
3018
2950
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3019
2951
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3020
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3021
2952
  };
3022
2953
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3023
2954
  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">;
2955
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3025
2956
  };
3026
2957
  readonly ordinal: import("effect/Schema").Int;
3027
2958
  readonly text: import("effect/Schema").String;
@@ -3037,11 +2968,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3037
2968
  data: import("effect/Schema").Struct<{
3038
2969
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3039
2970
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3040
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3041
2971
  };
3042
2972
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3043
2973
  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">;
2974
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3045
2975
  };
3046
2976
  readonly ordinal: import("effect/Schema").Int;
3047
2977
  readonly text: import("effect/Schema").String;
@@ -3081,11 +3011,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3081
3011
  readonly data: import("effect/Schema").Struct<{
3082
3012
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3083
3013
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3084
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3085
3014
  };
3086
3015
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3087
3016
  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">;
3017
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3089
3018
  };
3090
3019
  readonly ordinal: import("effect/Schema").Int;
3091
3020
  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 +3029,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3100
3029
  data: import("effect/Schema").Struct<{
3101
3030
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3102
3031
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3103
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3104
3032
  };
3105
3033
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3106
3034
  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">;
3035
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3108
3036
  };
3109
3037
  readonly ordinal: import("effect/Schema").Int;
3110
3038
  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 +3066,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3138
3066
  readonly data: import("effect/Schema").Struct<{
3139
3067
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3140
3068
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3141
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3142
3069
  };
3143
3070
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3144
3071
  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">;
3072
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3146
3073
  };
3147
3074
  readonly ordinal: import("effect/Schema").Int;
3148
3075
  readonly delta: import("effect/Schema").String;
@@ -3154,11 +3081,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3154
3081
  data: import("effect/Schema").Struct<{
3155
3082
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3156
3083
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3157
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3158
3084
  };
3159
3085
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3160
3086
  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">;
3087
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3162
3088
  };
3163
3089
  readonly ordinal: import("effect/Schema").Int;
3164
3090
  readonly delta: import("effect/Schema").String;
@@ -3197,11 +3123,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3197
3123
  readonly data: import("effect/Schema").Struct<{
3198
3124
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3199
3125
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3200
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3201
3126
  };
3202
3127
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3203
3128
  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">;
3129
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3205
3130
  };
3206
3131
  readonly ordinal: import("effect/Schema").Int;
3207
3132
  readonly text: import("effect/Schema").String;
@@ -3217,11 +3142,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3217
3142
  data: import("effect/Schema").Struct<{
3218
3143
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3219
3144
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3220
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3221
3145
  };
3222
3146
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3223
3147
  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">;
3148
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3225
3149
  };
3226
3150
  readonly ordinal: import("effect/Schema").Int;
3227
3151
  readonly text: import("effect/Schema").String;
@@ -3261,11 +3185,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3261
3185
  readonly data: import("effect/Schema").Struct<{
3262
3186
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3263
3187
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3264
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3265
3188
  };
3266
3189
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3267
3190
  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">;
3191
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3269
3192
  };
3270
3193
  readonly id: import("effect/Schema").String;
3271
3194
  readonly name: import("effect/Schema").String;
@@ -3280,11 +3203,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3280
3203
  data: import("effect/Schema").Struct<{
3281
3204
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3282
3205
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3283
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3284
3206
  };
3285
3207
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3286
3208
  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">;
3209
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3288
3210
  };
3289
3211
  readonly id: import("effect/Schema").String;
3290
3212
  readonly name: import("effect/Schema").String;
@@ -3318,11 +3240,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3318
3240
  readonly data: import("effect/Schema").Struct<{
3319
3241
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3320
3242
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3321
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3322
3243
  };
3323
3244
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3324
3245
  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">;
3246
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3326
3247
  };
3327
3248
  readonly id: import("effect/Schema").String;
3328
3249
  readonly delta: import("effect/Schema").String;
@@ -3334,11 +3255,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3334
3255
  data: import("effect/Schema").Struct<{
3335
3256
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3336
3257
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3337
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3338
3258
  };
3339
3259
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3340
3260
  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">;
3261
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3342
3262
  };
3343
3263
  readonly id: import("effect/Schema").String;
3344
3264
  readonly delta: import("effect/Schema").String;
@@ -3377,11 +3297,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3377
3297
  readonly data: import("effect/Schema").Struct<{
3378
3298
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3379
3299
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3380
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3381
3300
  };
3382
3301
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3383
3302
  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">;
3303
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3385
3304
  };
3386
3305
  readonly id: import("effect/Schema").String;
3387
3306
  readonly text: import("effect/Schema").String;
@@ -3396,11 +3315,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3396
3315
  data: import("effect/Schema").Struct<{
3397
3316
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3398
3317
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3399
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3400
3318
  };
3401
3319
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3402
3320
  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">;
3321
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3404
3322
  };
3405
3323
  readonly id: import("effect/Schema").String;
3406
3324
  readonly text: import("effect/Schema").String;
@@ -3439,11 +3357,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3439
3357
  readonly data: import("effect/Schema").Struct<{
3440
3358
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3441
3359
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3442
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3443
3360
  };
3444
3361
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3445
3362
  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">;
3363
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3447
3364
  };
3448
3365
  readonly id: import("effect/Schema").String;
3449
3366
  readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
@@ -3460,11 +3377,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3460
3377
  data: import("effect/Schema").Struct<{
3461
3378
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3462
3379
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3463
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3464
3380
  };
3465
3381
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3466
3382
  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">;
3383
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3468
3384
  };
3469
3385
  readonly id: import("effect/Schema").String;
3470
3386
  readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
@@ -3500,11 +3416,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3500
3416
  readonly data: import("effect/Schema").Struct<{
3501
3417
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3502
3418
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3503
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3504
3419
  };
3505
3420
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3506
3421
  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">;
3422
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3508
3423
  };
3509
3424
  readonly id: import("effect/Schema").String;
3510
3425
  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 +3431,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3516
3431
  data: import("effect/Schema").Struct<{
3517
3432
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3518
3433
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3519
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3520
3434
  };
3521
3435
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3522
3436
  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">;
3437
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3524
3438
  };
3525
3439
  readonly id: import("effect/Schema").String;
3526
3440
  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 +3473,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3559
3473
  readonly data: import("effect/Schema").Struct<{
3560
3474
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3561
3475
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3562
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3563
3476
  };
3564
3477
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3565
3478
  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">;
3479
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3567
3480
  };
3568
3481
  readonly id: import("effect/Schema").String;
3569
3482
  readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
@@ -3589,11 +3502,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3589
3502
  data: import("effect/Schema").Struct<{
3590
3503
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3591
3504
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3592
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3593
3505
  };
3594
3506
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3595
3507
  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">;
3508
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3597
3509
  };
3598
3510
  readonly id: import("effect/Schema").String;
3599
3511
  readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
@@ -3643,11 +3555,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3643
3555
  readonly data: import("effect/Schema").Struct<{
3644
3556
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3645
3557
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3646
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3647
3558
  };
3648
3559
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3649
3560
  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">;
3561
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3651
3562
  };
3652
3563
  readonly id: import("effect/Schema").String;
3653
3564
  readonly error: import("effect/Schema").Struct<{
@@ -3692,11 +3603,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3692
3603
  data: import("effect/Schema").Struct<{
3693
3604
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3694
3605
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3695
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3696
3606
  };
3697
3607
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3698
3608
  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">;
3609
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3700
3610
  };
3701
3611
  readonly id: import("effect/Schema").String;
3702
3612
  readonly error: import("effect/Schema").Struct<{
@@ -3765,11 +3675,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3765
3675
  readonly data: import("effect/Schema").Struct<{
3766
3676
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3767
3677
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3768
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3769
3678
  };
3770
3679
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3771
3680
  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">;
3681
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3773
3682
  };
3774
3683
  readonly attempt: import("effect/Schema").Int;
3775
3684
  readonly at: import("effect/Schema").Int;
@@ -3795,11 +3704,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3795
3704
  data: import("effect/Schema").Struct<{
3796
3705
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3797
3706
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3798
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3799
3707
  };
3800
3708
  readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3801
3709
  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">;
3710
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3803
3711
  };
3804
3712
  readonly attempt: import("effect/Schema").Int;
3805
3713
  readonly at: import("effect/Schema").Int;
@@ -3849,15 +3757,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3849
3757
  readonly data: import("effect/Schema").Struct<{
3850
3758
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3851
3759
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3852
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3853
3760
  };
3854
3761
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3855
3762
  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
3763
  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">;
3764
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3858
3765
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3859
3766
  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">;
3767
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3861
3768
  }>, never, never>;
3862
3769
  }>;
3863
3770
  }> & {
@@ -3870,15 +3777,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3870
3777
  data: import("effect/Schema").Struct<{
3871
3778
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3872
3779
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3873
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3874
3780
  };
3875
3781
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3876
3782
  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
3783
  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">;
3784
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3879
3785
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
3880
3786
  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">;
3787
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3882
3788
  }>, never, never>;
3883
3789
  }>;
3884
3790
  }, import("effect/Schema").Struct<{
@@ -3910,7 +3816,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3910
3816
  readonly data: import("effect/Schema").Struct<{
3911
3817
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3912
3818
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3913
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3914
3819
  };
3915
3820
  readonly text: import("effect/Schema").String;
3916
3821
  }>;
@@ -3921,7 +3826,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3921
3826
  data: import("effect/Schema").Struct<{
3922
3827
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3923
3828
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3924
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3925
3829
  };
3926
3830
  readonly text: import("effect/Schema").String;
3927
3831
  }>;
@@ -3959,7 +3863,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3959
3863
  readonly data: import("effect/Schema").Struct<{
3960
3864
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3961
3865
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3962
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3963
3866
  };
3964
3867
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3965
3868
  readonly model: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
@@ -4042,7 +3945,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4042
3945
  data: import("effect/Schema").Struct<{
4043
3946
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4044
3947
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4045
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4046
3948
  };
4047
3949
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4048
3950
  readonly model: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
@@ -4149,7 +4051,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4149
4051
  readonly data: import("effect/Schema").Struct<{
4150
4052
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4151
4053
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4152
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4153
4054
  };
4154
4055
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4155
4056
  readonly error: import("effect/Schema").Struct<{
@@ -4165,10 +4066,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4165
4066
  }>;
4166
4067
  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
4068
  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">;
4069
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4169
4070
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4170
4071
  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">;
4072
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4172
4073
  }>, never, never>;
4173
4074
  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
4075
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -4203,7 +4104,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4203
4104
  data: import("effect/Schema").Struct<{
4204
4105
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4205
4106
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4206
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4207
4107
  };
4208
4108
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
4209
4109
  readonly error: import("effect/Schema").Struct<{
@@ -4219,10 +4119,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4219
4119
  }>;
4220
4120
  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
4121
  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">;
4122
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4223
4123
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4224
4124
  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">;
4125
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4226
4126
  }>, never, never>;
4227
4127
  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
4128
  zero: number & import("effect/Brand").Brand<"Money.USD">;
@@ -4281,12 +4181,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4281
4181
  readonly data: import("effect/Schema").Struct<{
4282
4182
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4283
4183
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4284
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4285
4184
  };
4286
4185
  readonly revert: import("effect/Schema").Struct<{
4287
4186
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4288
4187
  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">;
4188
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4290
4189
  };
4291
4190
  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
4191
  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>;
@@ -4296,12 +4195,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4296
4195
  readonly additions: import("effect/Schema").Int;
4297
4196
  readonly deletions: import("effect/Schema").Int;
4298
4197
  readonly status: import("effect/Schema").Literals<readonly ["added", "deleted", "modified"]>;
4198
+ readonly more: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literal<true>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literal<true>>, never, never>;
4299
4199
  }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
4300
4200
  readonly file: import("effect/Schema").String;
4301
4201
  readonly patch: import("effect/Schema").String;
4302
4202
  readonly additions: import("effect/Schema").Int;
4303
4203
  readonly deletions: import("effect/Schema").Int;
4304
4204
  readonly status: import("effect/Schema").Literals<readonly ["added", "deleted", "modified"]>;
4205
+ readonly more: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literal<true>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literal<true>>, never, never>;
4305
4206
  }>>>, never, never>;
4306
4207
  }>;
4307
4208
  }>;
@@ -4315,12 +4216,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4315
4216
  data: import("effect/Schema").Struct<{
4316
4217
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4317
4218
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4318
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4319
4219
  };
4320
4220
  readonly revert: import("effect/Schema").Struct<{
4321
4221
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4322
4222
  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">;
4223
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4324
4224
  };
4325
4225
  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
4226
  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>;
@@ -4330,12 +4230,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4330
4230
  readonly additions: import("effect/Schema").Int;
4331
4231
  readonly deletions: import("effect/Schema").Int;
4332
4232
  readonly status: import("effect/Schema").Literals<readonly ["added", "deleted", "modified"]>;
4233
+ readonly more: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literal<true>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literal<true>>, never, never>;
4333
4234
  }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
4334
4235
  readonly file: import("effect/Schema").String;
4335
4236
  readonly patch: import("effect/Schema").String;
4336
4237
  readonly additions: import("effect/Schema").Int;
4337
4238
  readonly deletions: import("effect/Schema").Int;
4338
4239
  readonly status: import("effect/Schema").Literals<readonly ["added", "deleted", "modified"]>;
4240
+ readonly more: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literal<true>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literal<true>>, never, never>;
4339
4241
  }>>>, never, never>;
4340
4242
  }>;
4341
4243
  }>;
@@ -4373,7 +4275,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4373
4275
  readonly data: import("effect/Schema").Struct<{
4374
4276
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4375
4277
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4376
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4377
4278
  };
4378
4279
  }>;
4379
4280
  }> & {
@@ -4386,7 +4287,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4386
4287
  data: import("effect/Schema").Struct<{
4387
4288
  sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4388
4289
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4389
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4390
4290
  };
4391
4291
  }>;
4392
4292
  }, import("effect/Schema").Struct<{
@@ -4423,11 +4323,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4423
4323
  readonly data: import("effect/Schema").Struct<{
4424
4324
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4425
4325
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4426
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4427
4326
  };
4428
4327
  readonly to: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4429
4328
  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">;
4329
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4431
4330
  };
4432
4331
  }>;
4433
4332
  }> & {
@@ -4440,11 +4339,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4440
4339
  data: import("effect/Schema").Struct<{
4441
4340
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4442
4341
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4443
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4444
4342
  };
4445
4343
  readonly to: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4446
4344
  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">;
4345
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4448
4346
  };
4449
4347
  }>;
4450
4348
  }, import("effect/Schema").Struct<{
@@ -4546,7 +4444,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4546
4444
  readonly data: import("effect/Schema").Struct<{
4547
4445
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4548
4446
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4549
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4550
4447
  };
4551
4448
  readonly action: import("effect/Schema").String;
4552
4449
  readonly resources: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -4573,7 +4470,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4573
4470
  data: import("effect/Schema").Struct<{
4574
4471
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4575
4472
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4576
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4577
4473
  };
4578
4474
  readonly action: import("effect/Schema").String;
4579
4475
  readonly resources: import("effect/Schema").$Array<import("effect/Schema").String>;
@@ -4622,7 +4518,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4622
4518
  readonly data: import("effect/Schema").Struct<{
4623
4519
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4624
4520
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4625
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4626
4521
  };
4627
4522
  readonly requestID: import("effect/Schema").brand<import("effect/Schema").String, "Permission.ID"> & {
4628
4523
  create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
@@ -4636,7 +4531,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4636
4531
  data: import("effect/Schema").Struct<{
4637
4532
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4638
4533
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4639
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4640
4534
  };
4641
4535
  readonly requestID: import("effect/Schema").brand<import("effect/Schema").String, "Permission.ID"> & {
4642
4536
  create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
@@ -5200,7 +5094,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5200
5094
  readonly data: import("effect/Schema").Struct<{
5201
5095
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5202
5096
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5203
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5204
5097
  };
5205
5098
  readonly terminal: import("effect/Schema").Struct<{
5206
5099
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
@@ -5216,7 +5109,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5216
5109
  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
5110
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5218
5111
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5219
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5220
5112
  };
5221
5113
  readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5222
5114
  readonly size: import("effect/Schema").Struct<{
@@ -5236,7 +5128,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5236
5128
  data: import("effect/Schema").Struct<{
5237
5129
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5238
5130
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5239
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5240
5131
  };
5241
5132
  readonly terminal: import("effect/Schema").Struct<{
5242
5133
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
@@ -5252,7 +5143,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5252
5143
  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
5144
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5254
5145
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5255
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5256
5146
  };
5257
5147
  readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5258
5148
  readonly size: import("effect/Schema").Struct<{
@@ -5294,7 +5184,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5294
5184
  readonly data: import("effect/Schema").Struct<{
5295
5185
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5296
5186
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5297
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5298
5187
  };
5299
5188
  readonly ptyID: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
5300
5189
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -5308,7 +5197,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5308
5197
  data: import("effect/Schema").Struct<{
5309
5198
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5310
5199
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5311
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5312
5200
  };
5313
5201
  readonly ptyID: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
5314
5202
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -5910,7 +5798,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5910
5798
  readonly data: import("effect/Schema").Struct<{
5911
5799
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5912
5800
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5913
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5914
5801
  };
5915
5802
  readonly status: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5916
5803
  readonly type: import("effect/Schema").Literal<"idle">;
@@ -5945,7 +5832,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5945
5832
  data: import("effect/Schema").Struct<{
5946
5833
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5947
5834
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5948
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5949
5835
  };
5950
5836
  readonly status: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
5951
5837
  readonly type: import("effect/Schema").Literal<"idle">;
@@ -6002,7 +5888,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6002
5888
  readonly data: import("effect/Schema").Struct<{
6003
5889
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
6004
5890
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6005
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6006
5891
  };
6007
5892
  }>;
6008
5893
  }> & {
@@ -6012,7 +5897,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6012
5897
  data: import("effect/Schema").Struct<{
6013
5898
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
6014
5899
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6015
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6016
5900
  };
6017
5901
  }>;
6018
5902
  }, import("effect/Schema").Struct<{
@@ -6372,26 +6256,20 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6372
6256
  readonly metadata?: {
6373
6257
  readonly [x: string]: unknown;
6374
6258
  } | undefined;
6375
- readonly type: "skill.updated";
6376
- readonly location?: {
6377
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6378
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6379
- } | undefined;
6380
- readonly data: {};
6381
- } | {
6382
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6383
- readonly created: number;
6384
- readonly metadata?: {
6385
- readonly [x: string]: unknown;
6386
- } | undefined;
6387
- readonly type: "credential.switched";
6259
+ readonly type: "session.agent.selected";
6260
+ readonly durable: {
6261
+ readonly aggregateID: string;
6262
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6263
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6264
+ };
6388
6265
  readonly location?: {
6389
6266
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6390
6267
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6391
6268
  } | undefined;
6392
6269
  readonly data: {
6393
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6394
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
6270
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6271
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6272
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6395
6273
  };
6396
6274
  } | {
6397
6275
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6399,19 +6277,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6399
6277
  readonly metadata?: {
6400
6278
  readonly [x: string]: unknown;
6401
6279
  } | undefined;
6402
- readonly type: "credential.updated";
6280
+ readonly type: "session.archived";
6281
+ readonly durable: {
6282
+ readonly aggregateID: string;
6283
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6284
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6285
+ };
6403
6286
  readonly location?: {
6404
6287
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6405
6288
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6406
6289
  } | undefined;
6407
- readonly data: {};
6290
+ readonly data: {
6291
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6292
+ };
6408
6293
  } | {
6409
6294
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6410
6295
  readonly created: number;
6411
6296
  readonly metadata?: {
6412
6297
  readonly [x: string]: unknown;
6413
6298
  } | undefined;
6414
- readonly type: "session.created";
6299
+ readonly type: "session.compaction.ended";
6415
6300
  readonly durable: {
6416
6301
  readonly aggregateID: string;
6417
6302
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6423,30 +6308,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6423
6308
  } | undefined;
6424
6309
  readonly data: {
6425
6310
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6426
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6427
- readonly location: {
6428
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6429
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6430
- };
6431
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6432
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6433
- readonly slug: string;
6434
- readonly title?: string | undefined;
6435
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6311
+ readonly reason: "auto" | "manual";
6436
6312
  readonly model?: {
6437
6313
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6438
6314
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6439
6315
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6440
6316
  } | undefined;
6441
- readonly metadata?: {
6442
- readonly [x: string]: import("effect/Schema").Json;
6317
+ readonly native?: {
6318
+ readonly [x: string]: unknown;
6319
+ } | undefined;
6320
+ readonly text: string;
6321
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6322
+ readonly tokens?: {
6323
+ readonly input: number;
6324
+ readonly output: number;
6325
+ readonly reasoning: number;
6326
+ readonly cache: {
6327
+ readonly read: number;
6328
+ readonly write: number;
6329
+ };
6443
6330
  } | undefined;
6444
- readonly permissions?: readonly {
6445
- readonly action: string;
6446
- readonly resource: string;
6447
- readonly effect: "allow" | "ask" | "deny";
6448
- }[] | undefined;
6449
- readonly version: string;
6450
6331
  };
6451
6332
  } | {
6452
6333
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6454,7 +6335,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6454
6335
  readonly metadata?: {
6455
6336
  readonly [x: string]: unknown;
6456
6337
  } | undefined;
6457
- readonly type: "session.agent.selected";
6338
+ readonly type: "session.compaction.failed";
6458
6339
  readonly durable: {
6459
6340
  readonly aggregateID: string;
6460
6341
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6466,8 +6347,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6466
6347
  } | undefined;
6467
6348
  readonly data: {
6468
6349
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6469
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6470
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6350
+ readonly reason: "auto" | "manual";
6351
+ readonly error: {
6352
+ readonly type: string;
6353
+ readonly message: string;
6354
+ readonly status?: number | undefined;
6355
+ readonly response?: {
6356
+ readonly body: string;
6357
+ } | undefined;
6358
+ readonly retryAfterMs?: number | undefined;
6359
+ };
6360
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6361
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6362
+ readonly tokens?: {
6363
+ readonly input: number;
6364
+ readonly output: number;
6365
+ readonly reasoning: number;
6366
+ readonly cache: {
6367
+ readonly read: number;
6368
+ readonly write: number;
6369
+ };
6370
+ } | undefined;
6471
6371
  };
6472
6372
  } | {
6473
6373
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6475,7 +6375,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6475
6375
  readonly metadata?: {
6476
6376
  readonly [x: string]: unknown;
6477
6377
  } | undefined;
6478
- readonly type: "session.model.selected";
6378
+ readonly type: "session.compaction.started";
6479
6379
  readonly durable: {
6480
6380
  readonly aggregateID: string;
6481
6381
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6487,16 +6387,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6487
6387
  } | undefined;
6488
6388
  readonly data: {
6489
6389
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6490
- readonly model: {
6491
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6492
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6493
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6494
- };
6495
- readonly previous?: {
6496
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6497
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6498
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6499
- } | undefined;
6390
+ readonly reason: "auto" | "manual";
6391
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6500
6392
  };
6501
6393
  } | {
6502
6394
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6504,7 +6396,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6504
6396
  readonly metadata?: {
6505
6397
  readonly [x: string]: unknown;
6506
6398
  } | undefined;
6507
- readonly type: "session.moved";
6399
+ readonly type: "session.created";
6508
6400
  readonly durable: {
6509
6401
  readonly aggregateID: string;
6510
6402
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6515,13 +6407,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6515
6407
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6516
6408
  } | undefined;
6517
6409
  readonly data: {
6410
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6411
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6518
6412
  readonly location: {
6519
6413
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6520
6414
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6521
6415
  };
6522
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6523
6416
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6524
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6417
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6418
+ readonly slug: string;
6419
+ readonly title?: string | undefined;
6420
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6421
+ readonly model?: {
6422
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6423
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6424
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6425
+ } | undefined;
6426
+ readonly metadata?: {
6427
+ readonly [x: string]: import("effect/Schema").Json;
6428
+ } | undefined;
6429
+ readonly permissions?: readonly {
6430
+ readonly action: string;
6431
+ readonly resource: string;
6432
+ readonly effect: "allow" | "ask" | "deny";
6433
+ }[] | undefined;
6434
+ readonly version: string;
6525
6435
  };
6526
6436
  } | {
6527
6437
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6529,7 +6439,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6529
6439
  readonly metadata?: {
6530
6440
  readonly [x: string]: unknown;
6531
6441
  } | undefined;
6532
- readonly type: "session.renamed";
6442
+ readonly type: "session.deleted";
6533
6443
  readonly durable: {
6534
6444
  readonly aggregateID: string;
6535
6445
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6541,7 +6451,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6541
6451
  } | undefined;
6542
6452
  readonly data: {
6543
6453
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6544
- readonly title: string;
6545
6454
  };
6546
6455
  } | {
6547
6456
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6549,7 +6458,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6549
6458
  readonly metadata?: {
6550
6459
  readonly [x: string]: unknown;
6551
6460
  } | undefined;
6552
- readonly type: "session.metadata.updated";
6461
+ readonly type: "session.execution.failed";
6553
6462
  readonly durable: {
6554
6463
  readonly aggregateID: string;
6555
6464
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6561,8 +6470,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6561
6470
  } | undefined;
6562
6471
  readonly data: {
6563
6472
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6564
- readonly metadata: {
6565
- readonly [x: string]: import("effect/Schema").Json;
6473
+ readonly error: {
6474
+ readonly type: string;
6475
+ readonly message: string;
6476
+ readonly status?: number | undefined;
6477
+ readonly response?: {
6478
+ readonly body: string;
6479
+ } | undefined;
6480
+ readonly retryAfterMs?: number | undefined;
6566
6481
  };
6567
6482
  };
6568
6483
  } | {
@@ -6571,7 +6486,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6571
6486
  readonly metadata?: {
6572
6487
  readonly [x: string]: unknown;
6573
6488
  } | undefined;
6574
- readonly type: "session.permissions";
6489
+ readonly type: "session.execution.interrupted";
6575
6490
  readonly durable: {
6576
6491
  readonly aggregateID: string;
6577
6492
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6583,11 +6498,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6583
6498
  } | undefined;
6584
6499
  readonly data: {
6585
6500
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6586
- readonly permissions: readonly {
6587
- readonly action: string;
6588
- readonly resource: string;
6589
- readonly effect: "allow" | "ask" | "deny";
6590
- }[];
6501
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
6591
6502
  };
6592
6503
  } | {
6593
6504
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6595,7 +6506,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6595
6506
  readonly metadata?: {
6596
6507
  readonly [x: string]: unknown;
6597
6508
  } | undefined;
6598
- readonly type: "session.viewed";
6509
+ readonly type: "session.execution.started";
6599
6510
  readonly durable: {
6600
6511
  readonly aggregateID: string;
6601
6512
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6607,7 +6518,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6607
6518
  } | undefined;
6608
6519
  readonly data: {
6609
6520
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6610
- readonly idle: number;
6611
6521
  };
6612
6522
  } | {
6613
6523
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6615,7 +6525,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6615
6525
  readonly metadata?: {
6616
6526
  readonly [x: string]: unknown;
6617
6527
  } | undefined;
6618
- readonly type: "session.archived";
6528
+ readonly type: "session.execution.succeeded";
6619
6529
  readonly durable: {
6620
6530
  readonly aggregateID: string;
6621
6531
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6634,7 +6544,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6634
6544
  readonly metadata?: {
6635
6545
  readonly [x: string]: unknown;
6636
6546
  } | undefined;
6637
- readonly type: "session.unarchived";
6547
+ readonly type: "session.forked";
6638
6548
  readonly durable: {
6639
6549
  readonly aggregateID: string;
6640
6550
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6646,30 +6556,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6646
6556
  } | undefined;
6647
6557
  readonly data: {
6648
6558
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6649
- };
6650
- } | {
6651
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6652
- readonly created: number;
6653
- readonly metadata?: {
6654
- readonly [x: string]: unknown;
6655
- } | undefined;
6656
- readonly type: "session.usage.updated";
6657
- readonly location?: {
6658
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6659
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6660
- } | undefined;
6661
- readonly data: {
6662
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6663
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
6664
- readonly tokens: {
6665
- readonly input: number;
6666
- readonly output: number;
6667
- readonly reasoning: number;
6668
- readonly cache: {
6669
- readonly read: number;
6670
- readonly write: number;
6671
- };
6559
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6560
+ readonly boundary: {
6561
+ readonly type: "before";
6562
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6563
+ } | {
6564
+ readonly type: "through";
6565
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6672
6566
  };
6567
+ readonly instructions?: {
6568
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
6569
+ } | undefined;
6570
+ readonly instructionEntries?: readonly {
6571
+ readonly key: string;
6572
+ readonly value: import("effect/Schema").Json;
6573
+ readonly removed: boolean;
6574
+ }[] | undefined;
6673
6575
  };
6674
6576
  } | {
6675
6577
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6677,7 +6579,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6677
6579
  readonly metadata?: {
6678
6580
  readonly [x: string]: unknown;
6679
6581
  } | undefined;
6680
- readonly type: "session.deleted";
6582
+ readonly type: "session.inbox.cancelled";
6681
6583
  readonly durable: {
6682
6584
  readonly aggregateID: string;
6683
6585
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6689,6 +6591,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6689
6591
  } | undefined;
6690
6592
  readonly data: {
6691
6593
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6594
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6692
6595
  };
6693
6596
  } | {
6694
6597
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6696,7 +6599,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6696
6599
  readonly metadata?: {
6697
6600
  readonly [x: string]: unknown;
6698
6601
  } | undefined;
6699
- readonly type: "session.forked";
6602
+ readonly type: "session.inbox.delivered";
6700
6603
  readonly durable: {
6701
6604
  readonly aggregateID: string;
6702
6605
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6708,22 +6611,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6708
6611
  } | undefined;
6709
6612
  readonly data: {
6710
6613
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6711
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6712
- readonly boundary: {
6713
- readonly type: "before";
6714
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6715
- } | {
6716
- readonly type: "through";
6717
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6718
- };
6719
- readonly instructions?: {
6720
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
6721
- } | undefined;
6722
- readonly instructionEntries?: readonly {
6723
- readonly key: string;
6724
- readonly value: import("effect/Schema").Json;
6725
- readonly removed: boolean;
6726
- }[] | undefined;
6614
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6727
6615
  };
6728
6616
  } | {
6729
6617
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6731,7 +6619,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6731
6619
  readonly metadata?: {
6732
6620
  readonly [x: string]: unknown;
6733
6621
  } | undefined;
6734
- readonly type: "session.inbox.delivered";
6622
+ readonly type: "session.inbox.delivery.changed";
6735
6623
  readonly durable: {
6736
6624
  readonly aggregateID: string;
6737
6625
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6744,6 +6632,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6744
6632
  readonly data: {
6745
6633
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6746
6634
  readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6635
+ readonly delivery: "queue" | "steer";
6747
6636
  };
6748
6637
  } | {
6749
6638
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6841,7 +6730,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6841
6730
  readonly metadata?: {
6842
6731
  readonly [x: string]: unknown;
6843
6732
  } | undefined;
6844
- readonly type: "session.inbox.cancelled";
6733
+ readonly type: "session.instructions.updated";
6845
6734
  readonly durable: {
6846
6735
  readonly aggregateID: string;
6847
6736
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6853,7 +6742,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6853
6742
  } | undefined;
6854
6743
  readonly data: {
6855
6744
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6856
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6745
+ readonly delta: {
6746
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
6747
+ };
6748
+ readonly text?: string | undefined;
6857
6749
  };
6858
6750
  } | {
6859
6751
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6861,7 +6753,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6861
6753
  readonly metadata?: {
6862
6754
  readonly [x: string]: unknown;
6863
6755
  } | undefined;
6864
- readonly type: "session.inbox.delivery.changed";
6756
+ readonly type: "session.metadata.updated";
6865
6757
  readonly durable: {
6866
6758
  readonly aggregateID: string;
6867
6759
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6873,8 +6765,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6873
6765
  } | undefined;
6874
6766
  readonly data: {
6875
6767
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6876
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6877
- readonly delivery: "queue" | "steer";
6768
+ readonly metadata: {
6769
+ readonly [x: string]: import("effect/Schema").Json;
6770
+ };
6878
6771
  };
6879
6772
  } | {
6880
6773
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6882,7 +6775,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6882
6775
  readonly metadata?: {
6883
6776
  readonly [x: string]: unknown;
6884
6777
  } | undefined;
6885
- readonly type: "session.execution.started";
6778
+ readonly type: "session.model.selected";
6886
6779
  readonly durable: {
6887
6780
  readonly aggregateID: string;
6888
6781
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6894,6 +6787,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6894
6787
  } | undefined;
6895
6788
  readonly data: {
6896
6789
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6790
+ readonly model: {
6791
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6792
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6793
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6794
+ };
6795
+ readonly previous?: {
6796
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6797
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6798
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6799
+ } | undefined;
6897
6800
  };
6898
6801
  } | {
6899
6802
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6901,7 +6804,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6901
6804
  readonly metadata?: {
6902
6805
  readonly [x: string]: unknown;
6903
6806
  } | undefined;
6904
- readonly type: "session.execution.succeeded";
6807
+ readonly type: "session.moved";
6905
6808
  readonly durable: {
6906
6809
  readonly aggregateID: string;
6907
6810
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6912,15 +6815,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6912
6815
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6913
6816
  } | undefined;
6914
6817
  readonly data: {
6915
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6916
- };
6917
- } | {
6818
+ readonly location: {
6819
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6820
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6821
+ };
6822
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6823
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6824
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6825
+ };
6826
+ } | {
6918
6827
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6919
6828
  readonly created: number;
6920
6829
  readonly metadata?: {
6921
6830
  readonly [x: string]: unknown;
6922
6831
  } | undefined;
6923
- readonly type: "session.execution.failed";
6832
+ readonly type: "session.permissions";
6924
6833
  readonly durable: {
6925
6834
  readonly aggregateID: string;
6926
6835
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6932,15 +6841,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6932
6841
  } | undefined;
6933
6842
  readonly data: {
6934
6843
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6935
- readonly error: {
6936
- readonly type: string;
6937
- readonly message: string;
6938
- readonly status?: number | undefined;
6939
- readonly response?: {
6940
- readonly body: string;
6941
- } | undefined;
6942
- readonly retryAfterMs?: number | undefined;
6943
- };
6844
+ readonly permissions: readonly {
6845
+ readonly action: string;
6846
+ readonly resource: string;
6847
+ readonly effect: "allow" | "ask" | "deny";
6848
+ }[];
6944
6849
  };
6945
6850
  } | {
6946
6851
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6948,7 +6853,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6948
6853
  readonly metadata?: {
6949
6854
  readonly [x: string]: unknown;
6950
6855
  } | undefined;
6951
- readonly type: "session.execution.interrupted";
6856
+ readonly type: "session.reasoning.ended";
6952
6857
  readonly durable: {
6953
6858
  readonly aggregateID: string;
6954
6859
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6960,7 +6865,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6960
6865
  } | undefined;
6961
6866
  readonly data: {
6962
6867
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6963
- readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
6868
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6869
+ readonly ordinal: number;
6870
+ readonly text: string;
6871
+ readonly native?: {
6872
+ readonly [x: string]: unknown;
6873
+ } | undefined;
6964
6874
  };
6965
6875
  } | {
6966
6876
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6968,7 +6878,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6968
6878
  readonly metadata?: {
6969
6879
  readonly [x: string]: unknown;
6970
6880
  } | undefined;
6971
- readonly type: "session.instructions.updated";
6881
+ readonly type: "session.reasoning.started";
6972
6882
  readonly durable: {
6973
6883
  readonly aggregateID: string;
6974
6884
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6980,10 +6890,62 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6980
6890
  } | undefined;
6981
6891
  readonly data: {
6982
6892
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6983
- readonly delta: {
6984
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
6893
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6894
+ readonly ordinal: number;
6895
+ readonly native?: {
6896
+ readonly [x: string]: unknown;
6897
+ } | undefined;
6898
+ };
6899
+ } | {
6900
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6901
+ readonly created: number;
6902
+ readonly metadata?: {
6903
+ readonly [x: string]: unknown;
6904
+ } | undefined;
6905
+ readonly type: "session.renamed";
6906
+ readonly durable: {
6907
+ readonly aggregateID: string;
6908
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6909
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6910
+ };
6911
+ readonly location?: {
6912
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6913
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6914
+ } | undefined;
6915
+ readonly data: {
6916
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6917
+ readonly title: string;
6918
+ };
6919
+ } | {
6920
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6921
+ readonly created: number;
6922
+ readonly metadata?: {
6923
+ readonly [x: string]: unknown;
6924
+ } | undefined;
6925
+ readonly type: "session.retry.scheduled";
6926
+ readonly durable: {
6927
+ readonly aggregateID: string;
6928
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6929
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6930
+ };
6931
+ readonly location?: {
6932
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6933
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6934
+ } | undefined;
6935
+ readonly data: {
6936
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6937
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6938
+ readonly attempt: number;
6939
+ readonly at: number;
6940
+ readonly error: {
6941
+ readonly type: string;
6942
+ readonly message: string;
6943
+ readonly status?: number | undefined;
6944
+ readonly response?: {
6945
+ readonly body: string;
6946
+ } | undefined;
6947
+ readonly retryAfterMs?: number | undefined;
6985
6948
  };
6986
- readonly text?: string | undefined;
6987
6949
  };
6988
6950
  } | {
6989
6951
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6991,7 +6953,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6991
6953
  readonly metadata?: {
6992
6954
  readonly [x: string]: unknown;
6993
6955
  } | undefined;
6994
- readonly type: "session.synthetic";
6956
+ readonly type: "session.revert.cleared";
6995
6957
  readonly durable: {
6996
6958
  readonly aggregateID: string;
6997
6959
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7003,11 +6965,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7003
6965
  } | undefined;
7004
6966
  readonly data: {
7005
6967
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7006
- readonly text: string;
7007
- readonly description?: string | undefined;
7008
- readonly metadata?: {
7009
- readonly [x: string]: unknown;
7010
- } | undefined;
7011
6968
  };
7012
6969
  } | {
7013
6970
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7015,7 +6972,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7015
6972
  readonly metadata?: {
7016
6973
  readonly [x: string]: unknown;
7017
6974
  } | undefined;
7018
- readonly type: "session.skill.activated";
6975
+ readonly type: "session.revert.committed";
7019
6976
  readonly durable: {
7020
6977
  readonly aggregateID: string;
7021
6978
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7027,9 +6984,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7027
6984
  } | undefined;
7028
6985
  readonly data: {
7029
6986
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7030
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7031
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7032
- readonly text: string;
6987
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7033
6988
  };
7034
6989
  } | {
7035
6990
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7037,7 +6992,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7037
6992
  readonly metadata?: {
7038
6993
  readonly [x: string]: unknown;
7039
6994
  } | undefined;
7040
- readonly type: "session.shell.started";
6995
+ readonly type: "session.revert.staged";
7041
6996
  readonly durable: {
7042
6997
  readonly aggregateID: string;
7043
6998
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7049,23 +7004,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7049
7004
  } | undefined;
7050
7005
  readonly data: {
7051
7006
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7052
- readonly shell: {
7053
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7054
- readonly status: "exited" | "killed" | "running" | "timeout";
7055
- readonly command: string;
7056
- readonly cwd: string;
7057
- readonly shell: string;
7058
- readonly file: string;
7059
- readonly pid?: number | undefined;
7060
- readonly exit?: number | undefined;
7061
- readonly signal?: string | undefined;
7062
- readonly metadata: {
7063
- readonly [x: string]: unknown;
7064
- };
7065
- readonly time: {
7066
- readonly started: number;
7067
- readonly completed?: number | undefined;
7068
- };
7007
+ readonly revert: {
7008
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7009
+ readonly partID?: string | undefined;
7010
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7011
+ readonly files?: readonly {
7012
+ readonly file: string;
7013
+ readonly patch: string;
7014
+ readonly additions: number;
7015
+ readonly deletions: number;
7016
+ readonly status: "added" | "deleted" | "modified";
7017
+ readonly more?: true | undefined;
7018
+ }[] | undefined;
7069
7019
  };
7070
7020
  };
7071
7021
  } | {
@@ -7117,7 +7067,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7117
7067
  readonly metadata?: {
7118
7068
  readonly [x: string]: unknown;
7119
7069
  } | undefined;
7120
- readonly type: "session.step.started";
7070
+ readonly type: "session.shell.started";
7121
7071
  readonly durable: {
7122
7072
  readonly aggregateID: string;
7123
7073
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7129,15 +7079,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7129
7079
  } | undefined;
7130
7080
  readonly data: {
7131
7081
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7132
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7133
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7134
- readonly model: {
7135
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7136
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7137
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7082
+ readonly shell: {
7083
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7084
+ readonly status: "exited" | "killed" | "running" | "timeout";
7085
+ readonly command: string;
7086
+ readonly cwd: string;
7087
+ readonly shell: string;
7088
+ readonly file: string;
7089
+ readonly pid?: number | undefined;
7090
+ readonly exit?: number | undefined;
7091
+ readonly signal?: string | undefined;
7092
+ readonly metadata: {
7093
+ readonly [x: string]: unknown;
7094
+ };
7095
+ readonly time: {
7096
+ readonly started: number;
7097
+ readonly completed?: number | undefined;
7098
+ };
7138
7099
  };
7139
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7140
- readonly started: number;
7141
7100
  };
7142
7101
  } | {
7143
7102
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7145,7 +7104,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7145
7104
  readonly metadata?: {
7146
7105
  readonly [x: string]: unknown;
7147
7106
  } | undefined;
7148
- readonly type: "session.step.streamed";
7107
+ readonly type: "session.skill.activated";
7149
7108
  readonly durable: {
7150
7109
  readonly aggregateID: string;
7151
7110
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7157,7 +7116,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7157
7116
  } | undefined;
7158
7117
  readonly data: {
7159
7118
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7160
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7119
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7120
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7121
+ readonly text: string;
7161
7122
  };
7162
7123
  } | {
7163
7124
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7248,7 +7209,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7248
7209
  readonly metadata?: {
7249
7210
  readonly [x: string]: unknown;
7250
7211
  } | undefined;
7251
- readonly type: "session.text.started";
7212
+ readonly type: "session.step.started";
7252
7213
  readonly durable: {
7253
7214
  readonly aggregateID: string;
7254
7215
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7261,7 +7222,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7261
7222
  readonly data: {
7262
7223
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7263
7224
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7264
- readonly ordinal: number;
7225
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7226
+ readonly model: {
7227
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7228
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7229
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7230
+ };
7231
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7232
+ readonly started: number;
7265
7233
  };
7266
7234
  } | {
7267
7235
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7269,7 +7237,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7269
7237
  readonly metadata?: {
7270
7238
  readonly [x: string]: unknown;
7271
7239
  } | undefined;
7272
- readonly type: "session.text.delta";
7240
+ readonly type: "session.step.streamed";
7241
+ readonly durable: {
7242
+ readonly aggregateID: string;
7243
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7244
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7245
+ };
7273
7246
  readonly location?: {
7274
7247
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7275
7248
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7277,8 +7250,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7277
7250
  readonly data: {
7278
7251
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7279
7252
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7280
- readonly ordinal: number;
7281
- readonly delta: string;
7282
7253
  };
7283
7254
  } | {
7284
7255
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7286,7 +7257,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7286
7257
  readonly metadata?: {
7287
7258
  readonly [x: string]: unknown;
7288
7259
  } | undefined;
7289
- readonly type: "session.text.ended";
7260
+ readonly type: "session.synthetic";
7290
7261
  readonly durable: {
7291
7262
  readonly aggregateID: string;
7292
7263
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7298,10 +7269,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7298
7269
  } | undefined;
7299
7270
  readonly data: {
7300
7271
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7301
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7302
- readonly ordinal: number;
7303
7272
  readonly text: string;
7304
- readonly native?: {
7273
+ readonly description?: string | undefined;
7274
+ readonly metadata?: {
7305
7275
  readonly [x: string]: unknown;
7306
7276
  } | undefined;
7307
7277
  };
@@ -7311,7 +7281,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7311
7281
  readonly metadata?: {
7312
7282
  readonly [x: string]: unknown;
7313
7283
  } | undefined;
7314
- readonly type: "session.reasoning.started";
7284
+ readonly type: "session.text.ended";
7315
7285
  readonly durable: {
7316
7286
  readonly aggregateID: string;
7317
7287
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7325,6 +7295,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7325
7295
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7326
7296
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7327
7297
  readonly ordinal: number;
7298
+ readonly text: string;
7328
7299
  readonly native?: {
7329
7300
  readonly [x: string]: unknown;
7330
7301
  } | undefined;
@@ -7335,7 +7306,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7335
7306
  readonly metadata?: {
7336
7307
  readonly [x: string]: unknown;
7337
7308
  } | undefined;
7338
- readonly type: "session.reasoning.delta";
7309
+ readonly type: "session.text.started";
7310
+ readonly durable: {
7311
+ readonly aggregateID: string;
7312
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7313
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7314
+ };
7339
7315
  readonly location?: {
7340
7316
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7341
7317
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7344,7 +7320,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7344
7320
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7345
7321
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7346
7322
  readonly ordinal: number;
7347
- readonly delta: string;
7348
7323
  };
7349
7324
  } | {
7350
7325
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7352,7 +7327,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7352
7327
  readonly metadata?: {
7353
7328
  readonly [x: string]: unknown;
7354
7329
  } | undefined;
7355
- readonly type: "session.reasoning.ended";
7330
+ readonly type: "session.tool.called";
7356
7331
  readonly durable: {
7357
7332
  readonly aggregateID: string;
7358
7333
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7365,8 +7340,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7365
7340
  readonly data: {
7366
7341
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7367
7342
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7368
- readonly ordinal: number;
7369
- readonly text: string;
7343
+ readonly id: string;
7344
+ readonly input: {
7345
+ readonly [x: string]: unknown;
7346
+ };
7347
+ readonly executed: boolean;
7370
7348
  readonly native?: {
7371
7349
  readonly [x: string]: unknown;
7372
7350
  } | undefined;
@@ -7377,7 +7355,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7377
7355
  readonly metadata?: {
7378
7356
  readonly [x: string]: unknown;
7379
7357
  } | undefined;
7380
- readonly type: "session.tool.input.started";
7358
+ readonly type: "session.tool.failed";
7381
7359
  readonly durable: {
7382
7360
  readonly aggregateID: string;
7383
7361
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7391,24 +7369,39 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7391
7369
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7392
7370
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7393
7371
  readonly id: string;
7394
- readonly name: string;
7395
- };
7396
- } | {
7397
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7398
- readonly created: number;
7399
- readonly metadata?: {
7400
- readonly [x: string]: unknown;
7401
- } | undefined;
7402
- readonly type: "session.tool.input.delta";
7403
- readonly location?: {
7404
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7405
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7406
- } | undefined;
7407
- readonly data: {
7408
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7409
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7410
- readonly id: string;
7411
- readonly delta: string;
7372
+ readonly error: {
7373
+ readonly type: string;
7374
+ readonly message: string;
7375
+ readonly status?: number | undefined;
7376
+ readonly response?: {
7377
+ readonly body: string;
7378
+ } | undefined;
7379
+ readonly retryAfterMs?: number | undefined;
7380
+ };
7381
+ readonly content?: readonly [{
7382
+ readonly type: "text";
7383
+ readonly text: string;
7384
+ } | {
7385
+ readonly type: "file";
7386
+ readonly uri: string;
7387
+ readonly mime: string;
7388
+ readonly name?: string | undefined;
7389
+ }, ...({
7390
+ readonly type: "text";
7391
+ readonly text: string;
7392
+ } | {
7393
+ readonly type: "file";
7394
+ readonly uri: string;
7395
+ readonly mime: string;
7396
+ readonly name?: string | undefined;
7397
+ })[]] | undefined;
7398
+ readonly metadata?: {
7399
+ readonly [x: string]: import("effect/Schema").Json;
7400
+ } | undefined;
7401
+ readonly executed: boolean;
7402
+ readonly native?: {
7403
+ readonly [x: string]: unknown;
7404
+ } | undefined;
7412
7405
  };
7413
7406
  } | {
7414
7407
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7438,7 +7431,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7438
7431
  readonly metadata?: {
7439
7432
  readonly [x: string]: unknown;
7440
7433
  } | undefined;
7441
- readonly type: "session.tool.called";
7434
+ readonly type: "session.tool.input.started";
7442
7435
  readonly durable: {
7443
7436
  readonly aggregateID: string;
7444
7437
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7452,32 +7445,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7452
7445
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7453
7446
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7454
7447
  readonly id: string;
7455
- readonly input: {
7456
- readonly [x: string]: unknown;
7457
- };
7458
- readonly executed: boolean;
7459
- readonly native?: {
7460
- readonly [x: string]: unknown;
7461
- } | undefined;
7462
- };
7463
- } | {
7464
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7465
- readonly created: number;
7466
- readonly metadata?: {
7467
- readonly [x: string]: unknown;
7468
- } | undefined;
7469
- readonly type: "session.tool.progress";
7470
- readonly location?: {
7471
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7472
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7473
- } | undefined;
7474
- readonly data: {
7475
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7476
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7477
- readonly id: string;
7478
- readonly metadata: {
7479
- readonly [x: string]: import("effect/Schema").Json;
7480
- };
7448
+ readonly name: string;
7481
7449
  };
7482
7450
  } | {
7483
7451
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7530,7 +7498,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7530
7498
  readonly metadata?: {
7531
7499
  readonly [x: string]: unknown;
7532
7500
  } | undefined;
7533
- readonly type: "session.tool.failed";
7501
+ readonly type: "session.unarchived";
7534
7502
  readonly durable: {
7535
7503
  readonly aggregateID: string;
7536
7504
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7542,41 +7510,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7542
7510
  } | undefined;
7543
7511
  readonly data: {
7544
7512
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7545
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7546
- readonly id: string;
7547
- readonly error: {
7548
- readonly type: string;
7549
- readonly message: string;
7550
- readonly status?: number | undefined;
7551
- readonly response?: {
7552
- readonly body: string;
7553
- } | undefined;
7554
- readonly retryAfterMs?: number | undefined;
7555
- };
7556
- readonly content?: readonly [{
7557
- readonly type: "text";
7558
- readonly text: string;
7559
- } | {
7560
- readonly type: "file";
7561
- readonly uri: string;
7562
- readonly mime: string;
7563
- readonly name?: string | undefined;
7564
- }, ...({
7565
- readonly type: "text";
7566
- readonly text: string;
7567
- } | {
7568
- readonly type: "file";
7569
- readonly uri: string;
7570
- readonly mime: string;
7571
- readonly name?: string | undefined;
7572
- })[]] | undefined;
7573
- readonly metadata?: {
7574
- readonly [x: string]: import("effect/Schema").Json;
7575
- } | undefined;
7576
- readonly executed: boolean;
7577
- readonly native?: {
7578
- readonly [x: string]: unknown;
7579
- } | undefined;
7580
7513
  };
7581
7514
  } | {
7582
7515
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7584,7 +7517,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7584
7517
  readonly metadata?: {
7585
7518
  readonly [x: string]: unknown;
7586
7519
  } | undefined;
7587
- readonly type: "session.retry.scheduled";
7520
+ readonly type: "session.viewed";
7588
7521
  readonly durable: {
7589
7522
  readonly aggregateID: string;
7590
7523
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7596,18 +7529,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7596
7529
  } | undefined;
7597
7530
  readonly data: {
7598
7531
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7599
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7600
- readonly attempt: number;
7601
- readonly at: number;
7602
- readonly error: {
7603
- readonly type: string;
7604
- readonly message: string;
7605
- readonly status?: number | undefined;
7606
- readonly response?: {
7607
- readonly body: string;
7608
- } | undefined;
7609
- readonly retryAfterMs?: number | undefined;
7610
- };
7532
+ readonly idle: number;
7611
7533
  };
7612
7534
  } | {
7613
7535
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7615,7 +7537,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7615
7537
  readonly metadata?: {
7616
7538
  readonly [x: string]: unknown;
7617
7539
  } | undefined;
7618
- readonly type: "session.compaction.started";
7540
+ readonly type: "worktree.resolved";
7619
7541
  readonly durable: {
7620
7542
  readonly aggregateID: string;
7621
7543
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7626,63 +7548,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7626
7548
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7627
7549
  } | undefined;
7628
7550
  readonly data: {
7629
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7630
- readonly reason: "auto" | "manual";
7631
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7632
- };
7633
- } | {
7634
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7635
- readonly created: number;
7636
- readonly metadata?: {
7637
- readonly [x: string]: unknown;
7638
- } | undefined;
7639
- readonly type: "session.compaction.delta";
7640
- readonly location?: {
7641
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7642
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7643
- } | undefined;
7644
- readonly data: {
7645
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7646
- readonly text: string;
7647
- };
7648
- } | {
7649
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7650
- readonly created: number;
7651
- readonly metadata?: {
7652
- readonly [x: string]: unknown;
7653
- } | undefined;
7654
- readonly type: "session.compaction.ended";
7655
- readonly durable: {
7656
- readonly aggregateID: string;
7657
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7658
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7659
- };
7660
- readonly location?: {
7551
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7661
7552
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7662
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7663
- } | undefined;
7664
- readonly data: {
7665
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7666
- readonly reason: "auto" | "manual";
7667
- readonly model?: {
7668
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7669
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7670
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7671
- } | undefined;
7672
- readonly native?: {
7673
- readonly [x: string]: unknown;
7674
- } | undefined;
7675
- readonly text: string;
7676
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7677
- readonly tokens?: {
7678
- readonly input: number;
7679
- readonly output: number;
7680
- readonly reasoning: number;
7681
- readonly cache: {
7682
- readonly read: number;
7683
- readonly write: number;
7684
- };
7685
- } | undefined;
7553
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
7554
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
7686
7555
  };
7687
7556
  } | {
7688
7557
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7690,109 +7559,50 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7690
7559
  readonly metadata?: {
7691
7560
  readonly [x: string]: unknown;
7692
7561
  } | undefined;
7693
- readonly type: "session.compaction.failed";
7694
- readonly durable: {
7695
- readonly aggregateID: string;
7696
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7697
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7698
- };
7562
+ readonly type: "agent.updated";
7699
7563
  readonly location?: {
7700
7564
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7701
7565
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7702
7566
  } | undefined;
7703
- readonly data: {
7704
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7705
- readonly reason: "auto" | "manual";
7706
- readonly error: {
7707
- readonly type: string;
7708
- readonly message: string;
7709
- readonly status?: number | undefined;
7710
- readonly response?: {
7711
- readonly body: string;
7712
- } | undefined;
7713
- readonly retryAfterMs?: number | undefined;
7714
- };
7715
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7716
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7717
- readonly tokens?: {
7718
- readonly input: number;
7719
- readonly output: number;
7720
- readonly reasoning: number;
7721
- readonly cache: {
7722
- readonly read: number;
7723
- readonly write: number;
7724
- };
7725
- } | undefined;
7726
- };
7567
+ readonly data: {};
7727
7568
  } | {
7728
7569
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7729
7570
  readonly created: number;
7730
7571
  readonly metadata?: {
7731
7572
  readonly [x: string]: unknown;
7732
7573
  } | undefined;
7733
- readonly type: "session.revert.cleared";
7734
- readonly durable: {
7735
- readonly aggregateID: string;
7736
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7737
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7738
- };
7574
+ readonly type: "command.updated";
7739
7575
  readonly location?: {
7740
7576
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7741
7577
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7742
7578
  } | undefined;
7743
- readonly data: {
7744
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7745
- };
7579
+ readonly data: {};
7746
7580
  } | {
7747
7581
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7748
7582
  readonly created: number;
7749
7583
  readonly metadata?: {
7750
7584
  readonly [x: string]: unknown;
7751
7585
  } | undefined;
7752
- readonly type: "session.revert.committed";
7753
- readonly durable: {
7754
- readonly aggregateID: string;
7755
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7756
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7757
- };
7586
+ readonly type: "config.updated";
7758
7587
  readonly location?: {
7759
7588
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7760
7589
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7761
7590
  } | undefined;
7762
- readonly data: {
7763
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7764
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7765
- };
7591
+ readonly data: {};
7766
7592
  } | {
7767
7593
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7768
7594
  readonly created: number;
7769
7595
  readonly metadata?: {
7770
7596
  readonly [x: string]: unknown;
7771
7597
  } | undefined;
7772
- readonly type: "session.revert.staged";
7773
- readonly durable: {
7774
- readonly aggregateID: string;
7775
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7776
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7777
- };
7598
+ readonly type: "credential.switched";
7778
7599
  readonly location?: {
7779
7600
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7780
7601
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7781
7602
  } | undefined;
7782
7603
  readonly data: {
7783
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7784
- readonly revert: {
7785
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7786
- readonly partID?: string | undefined;
7787
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7788
- readonly files?: readonly {
7789
- readonly file: string;
7790
- readonly patch: string;
7791
- readonly additions: number;
7792
- readonly deletions: number;
7793
- readonly status: "added" | "deleted" | "modified";
7794
- }[] | undefined;
7795
- };
7604
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
7605
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
7796
7606
  };
7797
7607
  } | {
7798
7608
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7800,7 +7610,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7800
7610
  readonly metadata?: {
7801
7611
  readonly [x: string]: unknown;
7802
7612
  } | undefined;
7803
- readonly type: "command.updated";
7613
+ readonly type: "credential.updated";
7804
7614
  readonly location?: {
7805
7615
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7806
7616
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7812,25 +7622,29 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7812
7622
  readonly metadata?: {
7813
7623
  readonly [x: string]: unknown;
7814
7624
  } | undefined;
7815
- readonly type: "config.updated";
7625
+ readonly type: "filesystem.changed";
7816
7626
  readonly location?: {
7817
7627
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7818
7628
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7819
7629
  } | undefined;
7820
- readonly data: {};
7630
+ readonly data: {
7631
+ readonly file: string;
7632
+ readonly event: "add" | "change" | "unlink";
7633
+ };
7821
7634
  } | {
7822
7635
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7823
7636
  readonly created: number;
7824
7637
  readonly metadata?: {
7825
7638
  readonly [x: string]: unknown;
7826
7639
  } | undefined;
7827
- readonly type: "mcp.resources.changed";
7640
+ readonly type: "form.cancelled";
7828
7641
  readonly location?: {
7829
7642
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7830
7643
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7831
7644
  } | undefined;
7832
7645
  readonly data: {
7833
- readonly server: string;
7646
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
7647
+ readonly sessionID: string;
7834
7648
  };
7835
7649
  } | {
7836
7650
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7838,39 +7652,209 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7838
7652
  readonly metadata?: {
7839
7653
  readonly [x: string]: unknown;
7840
7654
  } | undefined;
7841
- readonly type: "mcp.status.changed";
7655
+ readonly type: "form.created";
7842
7656
  readonly location?: {
7843
7657
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7844
7658
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7845
7659
  } | undefined;
7846
7660
  readonly data: {
7847
- readonly server: string;
7848
- };
7849
- } | {
7850
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7851
- readonly created: number;
7852
- readonly metadata?: {
7853
- readonly [x: string]: unknown;
7854
- } | undefined;
7855
- readonly type: "plugin.updated";
7856
- readonly location?: {
7857
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7858
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7859
- } | undefined;
7860
- readonly data: {};
7861
- } | {
7862
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7863
- readonly created: number;
7864
- readonly metadata?: {
7865
- readonly [x: string]: unknown;
7866
- } | undefined;
7867
- readonly type: "tui.command.execute";
7868
- readonly location?: {
7869
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7870
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7871
- } | undefined;
7872
- readonly data: {
7873
- readonly command: string;
7661
+ readonly form: {
7662
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
7663
+ readonly sessionID: string;
7664
+ readonly title: string;
7665
+ readonly metadata?: {
7666
+ readonly [x: string]: unknown;
7667
+ } | undefined;
7668
+ readonly fields: readonly [{
7669
+ readonly key: string;
7670
+ readonly title?: string | undefined;
7671
+ readonly description?: string | undefined;
7672
+ readonly required?: boolean | undefined;
7673
+ readonly hidden?: boolean | undefined;
7674
+ readonly when?: readonly {
7675
+ readonly key: string;
7676
+ readonly op: "eq" | "neq";
7677
+ readonly value: string | number | boolean;
7678
+ }[] | undefined;
7679
+ readonly type: "string";
7680
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
7681
+ readonly minLength?: number | undefined;
7682
+ readonly maxLength?: number | undefined;
7683
+ readonly pattern?: string | undefined;
7684
+ readonly placeholder?: string | undefined;
7685
+ readonly default?: string | undefined;
7686
+ readonly options?: readonly {
7687
+ readonly value: string;
7688
+ readonly label: string;
7689
+ readonly description?: string | undefined;
7690
+ }[] | undefined;
7691
+ readonly custom?: boolean | undefined;
7692
+ } | {
7693
+ readonly key: string;
7694
+ readonly title?: string | undefined;
7695
+ readonly description?: string | undefined;
7696
+ readonly required?: boolean | undefined;
7697
+ readonly hidden?: boolean | undefined;
7698
+ readonly when?: readonly {
7699
+ readonly key: string;
7700
+ readonly op: "eq" | "neq";
7701
+ readonly value: string | number | boolean;
7702
+ }[] | undefined;
7703
+ readonly type: "number";
7704
+ readonly minimum?: number | undefined;
7705
+ readonly maximum?: number | undefined;
7706
+ readonly default?: number | undefined;
7707
+ } | {
7708
+ readonly key: string;
7709
+ readonly title?: string | undefined;
7710
+ readonly description?: string | undefined;
7711
+ readonly required?: boolean | undefined;
7712
+ readonly hidden?: boolean | undefined;
7713
+ readonly when?: readonly {
7714
+ readonly key: string;
7715
+ readonly op: "eq" | "neq";
7716
+ readonly value: string | number | boolean;
7717
+ }[] | undefined;
7718
+ readonly type: "integer";
7719
+ readonly minimum?: number | undefined;
7720
+ readonly maximum?: number | undefined;
7721
+ readonly default?: number | undefined;
7722
+ } | {
7723
+ readonly key: string;
7724
+ readonly title?: string | undefined;
7725
+ readonly description?: string | undefined;
7726
+ readonly required?: boolean | undefined;
7727
+ readonly hidden?: boolean | undefined;
7728
+ readonly when?: readonly {
7729
+ readonly key: string;
7730
+ readonly op: "eq" | "neq";
7731
+ readonly value: string | number | boolean;
7732
+ }[] | undefined;
7733
+ readonly type: "boolean";
7734
+ readonly default?: boolean | undefined;
7735
+ } | {
7736
+ readonly key: string;
7737
+ readonly title?: string | undefined;
7738
+ readonly description?: string | undefined;
7739
+ readonly required?: boolean | undefined;
7740
+ readonly hidden?: boolean | undefined;
7741
+ readonly when?: readonly {
7742
+ readonly key: string;
7743
+ readonly op: "eq" | "neq";
7744
+ readonly value: string | number | boolean;
7745
+ }[] | undefined;
7746
+ readonly type: "multiselect";
7747
+ readonly options: readonly {
7748
+ readonly value: string;
7749
+ readonly label: string;
7750
+ readonly description?: string | undefined;
7751
+ }[];
7752
+ readonly minItems?: number | undefined;
7753
+ readonly maxItems?: number | undefined;
7754
+ readonly custom?: boolean | undefined;
7755
+ readonly default?: readonly string[] | undefined;
7756
+ } | {
7757
+ readonly key: string;
7758
+ readonly type: "external";
7759
+ readonly url: string;
7760
+ readonly title?: string | undefined;
7761
+ readonly description?: string | undefined;
7762
+ }, ...({
7763
+ readonly key: string;
7764
+ readonly title?: string | undefined;
7765
+ readonly description?: string | undefined;
7766
+ readonly required?: boolean | undefined;
7767
+ readonly hidden?: boolean | undefined;
7768
+ readonly when?: readonly {
7769
+ readonly key: string;
7770
+ readonly op: "eq" | "neq";
7771
+ readonly value: string | number | boolean;
7772
+ }[] | undefined;
7773
+ readonly type: "string";
7774
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
7775
+ readonly minLength?: number | undefined;
7776
+ readonly maxLength?: number | undefined;
7777
+ readonly pattern?: string | undefined;
7778
+ readonly placeholder?: string | undefined;
7779
+ readonly default?: string | undefined;
7780
+ readonly options?: readonly {
7781
+ readonly value: string;
7782
+ readonly label: string;
7783
+ readonly description?: string | undefined;
7784
+ }[] | undefined;
7785
+ readonly custom?: boolean | undefined;
7786
+ } | {
7787
+ readonly key: string;
7788
+ readonly title?: string | undefined;
7789
+ readonly description?: string | undefined;
7790
+ readonly required?: boolean | undefined;
7791
+ readonly hidden?: boolean | undefined;
7792
+ readonly when?: readonly {
7793
+ readonly key: string;
7794
+ readonly op: "eq" | "neq";
7795
+ readonly value: string | number | boolean;
7796
+ }[] | undefined;
7797
+ readonly type: "number";
7798
+ readonly minimum?: number | undefined;
7799
+ readonly maximum?: number | undefined;
7800
+ readonly default?: number | undefined;
7801
+ } | {
7802
+ readonly key: string;
7803
+ readonly title?: string | undefined;
7804
+ readonly description?: string | undefined;
7805
+ readonly required?: boolean | undefined;
7806
+ readonly hidden?: boolean | undefined;
7807
+ readonly when?: readonly {
7808
+ readonly key: string;
7809
+ readonly op: "eq" | "neq";
7810
+ readonly value: string | number | boolean;
7811
+ }[] | undefined;
7812
+ readonly type: "integer";
7813
+ readonly minimum?: number | undefined;
7814
+ readonly maximum?: number | undefined;
7815
+ readonly default?: number | undefined;
7816
+ } | {
7817
+ readonly key: string;
7818
+ readonly title?: string | undefined;
7819
+ readonly description?: string | undefined;
7820
+ readonly required?: boolean | undefined;
7821
+ readonly hidden?: boolean | undefined;
7822
+ readonly when?: readonly {
7823
+ readonly key: string;
7824
+ readonly op: "eq" | "neq";
7825
+ readonly value: string | number | boolean;
7826
+ }[] | undefined;
7827
+ readonly type: "boolean";
7828
+ readonly default?: boolean | undefined;
7829
+ } | {
7830
+ readonly key: string;
7831
+ readonly title?: string | undefined;
7832
+ readonly description?: string | undefined;
7833
+ readonly required?: boolean | undefined;
7834
+ readonly hidden?: boolean | undefined;
7835
+ readonly when?: readonly {
7836
+ readonly key: string;
7837
+ readonly op: "eq" | "neq";
7838
+ readonly value: string | number | boolean;
7839
+ }[] | undefined;
7840
+ readonly type: "multiselect";
7841
+ readonly options: readonly {
7842
+ readonly value: string;
7843
+ readonly label: string;
7844
+ readonly description?: string | undefined;
7845
+ }[];
7846
+ readonly minItems?: number | undefined;
7847
+ readonly maxItems?: number | undefined;
7848
+ readonly custom?: boolean | undefined;
7849
+ readonly default?: readonly string[] | undefined;
7850
+ } | {
7851
+ readonly key: string;
7852
+ readonly type: "external";
7853
+ readonly url: string;
7854
+ readonly title?: string | undefined;
7855
+ readonly description?: string | undefined;
7856
+ })[]];
7857
+ };
7874
7858
  };
7875
7859
  } | {
7876
7860
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7878,13 +7862,17 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7878
7862
  readonly metadata?: {
7879
7863
  readonly [x: string]: unknown;
7880
7864
  } | undefined;
7881
- readonly type: "tui.prompt.append";
7865
+ readonly type: "form.replied";
7882
7866
  readonly location?: {
7883
7867
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7884
7868
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7885
7869
  } | undefined;
7886
7870
  readonly data: {
7887
- readonly text: string;
7871
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
7872
+ readonly sessionID: string;
7873
+ readonly answer: {
7874
+ readonly [x: string]: string | number | boolean | readonly string[];
7875
+ };
7888
7876
  };
7889
7877
  } | {
7890
7878
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7892,13 +7880,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7892
7880
  readonly metadata?: {
7893
7881
  readonly [x: string]: unknown;
7894
7882
  } | undefined;
7895
- readonly type: "tui.session.select";
7883
+ readonly type: "installation.update-available";
7896
7884
  readonly location?: {
7897
7885
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7898
7886
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7899
7887
  } | undefined;
7900
7888
  readonly data: {
7901
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7889
+ readonly version: string;
7902
7890
  };
7903
7891
  } | {
7904
7892
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7906,16 +7894,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7906
7894
  readonly metadata?: {
7907
7895
  readonly [x: string]: unknown;
7908
7896
  } | undefined;
7909
- readonly type: "tui.toast.show";
7897
+ readonly type: "installation.updated";
7910
7898
  readonly location?: {
7911
7899
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7912
7900
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7913
7901
  } | undefined;
7914
7902
  readonly data: {
7915
- readonly title?: string | undefined;
7916
- readonly message: string;
7917
- readonly variant: "error" | "info" | "success" | "warning";
7918
- readonly duration: number;
7903
+ readonly version: string;
7919
7904
  };
7920
7905
  } | {
7921
7906
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7923,7 +7908,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7923
7908
  readonly metadata?: {
7924
7909
  readonly [x: string]: unknown;
7925
7910
  } | undefined;
7926
- readonly type: "location.shutdown";
7911
+ readonly type: "integration.updated";
7927
7912
  readonly location?: {
7928
7913
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7929
7914
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7935,7 +7920,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7935
7920
  readonly metadata?: {
7936
7921
  readonly [x: string]: unknown;
7937
7922
  } | undefined;
7938
- readonly type: "models-dev.refreshed";
7923
+ readonly type: "location.shutdown";
7939
7924
  readonly location?: {
7940
7925
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7941
7926
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7947,24 +7932,28 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7947
7932
  readonly metadata?: {
7948
7933
  readonly [x: string]: unknown;
7949
7934
  } | undefined;
7950
- readonly type: "integration.updated";
7935
+ readonly type: "mcp.resources.changed";
7951
7936
  readonly location?: {
7952
7937
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7953
7938
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7954
7939
  } | undefined;
7955
- readonly data: {};
7940
+ readonly data: {
7941
+ readonly server: string;
7942
+ };
7956
7943
  } | {
7957
7944
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7958
7945
  readonly created: number;
7959
7946
  readonly metadata?: {
7960
7947
  readonly [x: string]: unknown;
7961
7948
  } | undefined;
7962
- readonly type: "provider.updated";
7949
+ readonly type: "mcp.status.changed";
7963
7950
  readonly location?: {
7964
7951
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7965
7952
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7966
7953
  } | undefined;
7967
- readonly data: {};
7954
+ readonly data: {
7955
+ readonly server: string;
7956
+ };
7968
7957
  } | {
7969
7958
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7970
7959
  readonly created: number;
@@ -7983,7 +7972,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7983
7972
  readonly metadata?: {
7984
7973
  readonly [x: string]: unknown;
7985
7974
  } | undefined;
7986
- readonly type: "agent.updated";
7975
+ readonly type: "models-dev.refreshed";
7987
7976
  readonly location?: {
7988
7977
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7989
7978
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7995,14 +7984,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7995
7984
  readonly metadata?: {
7996
7985
  readonly [x: string]: unknown;
7997
7986
  } | undefined;
7998
- readonly type: "filesystem.changed";
7987
+ readonly type: "permission.asked";
7999
7988
  readonly location?: {
8000
7989
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8001
7990
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8002
7991
  } | undefined;
8003
7992
  readonly data: {
8004
- readonly file: string;
8005
- readonly event: "add" | "change" | "unlink";
7993
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7994
+ readonly action: string;
7995
+ readonly resources: readonly string[];
7996
+ readonly save?: readonly string[] | undefined;
7997
+ readonly metadata?: {
7998
+ readonly [x: string]: unknown;
7999
+ } | undefined;
8000
+ readonly source?: {
8001
+ readonly type: "tool";
8002
+ readonly messageID: string;
8003
+ readonly id: string;
8004
+ } | undefined;
8005
+ readonly message?: string | undefined;
8006
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8006
8007
  };
8007
8008
  } | {
8008
8009
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8010,38 +8011,49 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8010
8011
  readonly metadata?: {
8011
8012
  readonly [x: string]: unknown;
8012
8013
  } | undefined;
8013
- readonly type: "reference.updated";
8014
+ readonly type: "permission.replied";
8014
8015
  readonly location?: {
8015
8016
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8016
8017
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8017
8018
  } | undefined;
8018
- readonly data: {};
8019
+ readonly data: {
8020
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8021
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8022
+ readonly reply: "always" | "once" | "reject";
8023
+ };
8019
8024
  } | {
8020
8025
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8021
8026
  readonly created: number;
8022
8027
  readonly metadata?: {
8023
8028
  readonly [x: string]: unknown;
8024
8029
  } | undefined;
8025
- readonly type: "permission.asked";
8030
+ readonly type: "persistent-pty.added";
8026
8031
  readonly location?: {
8027
8032
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8028
8033
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8029
8034
  } | undefined;
8030
8035
  readonly data: {
8031
8036
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8032
- readonly action: string;
8033
- readonly resources: readonly string[];
8034
- readonly save?: readonly string[] | undefined;
8035
- readonly metadata?: {
8036
- readonly [x: string]: unknown;
8037
- } | undefined;
8038
- readonly source?: {
8039
- readonly type: "tool";
8040
- readonly messageID: string;
8041
- readonly id: string;
8042
- } | undefined;
8043
- readonly message?: string | undefined;
8044
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
8037
+ readonly terminal: {
8038
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8039
+ readonly title: string;
8040
+ readonly command: string;
8041
+ readonly args: readonly string[];
8042
+ readonly cwd: string;
8043
+ readonly status: "exited" | "running";
8044
+ readonly pid: number;
8045
+ readonly exitCode?: number | undefined;
8046
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8047
+ readonly foregroundProcess: string | null;
8048
+ readonly size: {
8049
+ readonly cols: number;
8050
+ readonly rows: number;
8051
+ };
8052
+ readonly output: {
8053
+ readonly head: number;
8054
+ readonly tail: number;
8055
+ };
8056
+ };
8045
8057
  };
8046
8058
  } | {
8047
8059
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8049,16 +8061,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8049
8061
  readonly metadata?: {
8050
8062
  readonly [x: string]: unknown;
8051
8063
  } | undefined;
8052
- readonly type: "permission.replied";
8064
+ readonly type: "persistent-pty.removed";
8053
8065
  readonly location?: {
8054
8066
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8055
8067
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8056
8068
  } | undefined;
8057
8069
  readonly data: {
8058
8070
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8059
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
8060
- readonly reply: "always" | "once" | "reject";
8071
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8061
8072
  };
8073
+ } | {
8074
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8075
+ readonly created: number;
8076
+ readonly metadata?: {
8077
+ readonly [x: string]: unknown;
8078
+ } | undefined;
8079
+ readonly type: "plugin.updated";
8080
+ readonly location?: {
8081
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8082
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8083
+ } | undefined;
8084
+ readonly data: {};
8062
8085
  } | {
8063
8086
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8064
8087
  readonly created: number;
@@ -8097,36 +8120,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8097
8120
  readonly metadata?: {
8098
8121
  readonly [x: string]: unknown;
8099
8122
  } | undefined;
8100
- readonly type: "worktree.resolved";
8101
- readonly durable: {
8102
- readonly aggregateID: string;
8103
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8104
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8105
- };
8106
- readonly location?: {
8107
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8108
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8109
- } | undefined;
8110
- readonly data: {
8111
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8112
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8113
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
8114
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
8115
- };
8116
- } | {
8117
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8118
- readonly created: number;
8119
- readonly metadata?: {
8120
- readonly [x: string]: unknown;
8121
- } | undefined;
8122
- readonly type: "worktree.updated";
8123
+ readonly type: "provider.updated";
8123
8124
  readonly location?: {
8124
8125
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8125
8126
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8126
8127
  } | undefined;
8127
- readonly data: {
8128
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8129
- };
8128
+ readonly data: {};
8130
8129
  } | {
8131
8130
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8132
8131
  readonly created: number;
@@ -8208,33 +8207,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8208
8207
  readonly metadata?: {
8209
8208
  readonly [x: string]: unknown;
8210
8209
  } | undefined;
8211
- readonly type: "persistent-pty.added";
8210
+ readonly type: "reference.updated";
8211
+ readonly location?: {
8212
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8213
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8214
+ } | undefined;
8215
+ readonly data: {};
8216
+ } | {
8217
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8218
+ readonly created: number;
8219
+ readonly metadata?: {
8220
+ readonly [x: string]: unknown;
8221
+ } | undefined;
8222
+ readonly type: "session.compaction.delta";
8212
8223
  readonly location?: {
8213
8224
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8214
8225
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8215
8226
  } | undefined;
8216
8227
  readonly data: {
8217
8228
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8218
- readonly terminal: {
8219
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
8220
- readonly title: string;
8221
- readonly command: string;
8222
- readonly args: readonly string[];
8223
- readonly cwd: string;
8224
- readonly status: "exited" | "running";
8225
- readonly pid: number;
8226
- readonly exitCode?: number | undefined;
8227
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8228
- readonly foregroundProcess: string | null;
8229
- readonly size: {
8230
- readonly cols: number;
8231
- readonly rows: number;
8232
- };
8233
- readonly output: {
8234
- readonly head: number;
8235
- readonly tail: number;
8236
- };
8237
- };
8229
+ readonly text: string;
8238
8230
  };
8239
8231
  } | {
8240
8232
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8242,14 +8234,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8242
8234
  readonly metadata?: {
8243
8235
  readonly [x: string]: unknown;
8244
8236
  } | undefined;
8245
- readonly type: "persistent-pty.removed";
8237
+ readonly type: "session.idle";
8246
8238
  readonly location?: {
8247
8239
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8248
8240
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8249
8241
  } | undefined;
8250
8242
  readonly data: {
8251
8243
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8252
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8253
8244
  };
8254
8245
  } | {
8255
8246
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8257,29 +8248,47 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8257
8248
  readonly metadata?: {
8258
8249
  readonly [x: string]: unknown;
8259
8250
  } | undefined;
8260
- readonly type: "shell.created";
8251
+ readonly type: "session.reasoning.delta";
8261
8252
  readonly location?: {
8262
8253
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8263
8254
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8264
8255
  } | undefined;
8265
8256
  readonly data: {
8266
- readonly info: {
8267
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8268
- readonly status: "exited" | "killed" | "running" | "timeout";
8269
- readonly command: string;
8270
- readonly cwd: string;
8271
- readonly shell: string;
8272
- readonly file: string;
8273
- readonly pid?: number | undefined;
8274
- readonly exit?: number | undefined;
8275
- readonly signal?: string | undefined;
8276
- readonly metadata: {
8277
- readonly [x: string]: unknown;
8278
- };
8279
- readonly time: {
8280
- readonly started: number;
8281
- readonly completed?: number | undefined;
8282
- };
8257
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8258
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8259
+ readonly ordinal: number;
8260
+ readonly delta: string;
8261
+ };
8262
+ } | {
8263
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8264
+ readonly created: number;
8265
+ readonly metadata?: {
8266
+ readonly [x: string]: unknown;
8267
+ } | undefined;
8268
+ readonly type: "session.status";
8269
+ readonly location?: {
8270
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8271
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8272
+ } | undefined;
8273
+ readonly data: {
8274
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8275
+ readonly status: {
8276
+ readonly type: "idle";
8277
+ } | {
8278
+ readonly type: "busy";
8279
+ } | {
8280
+ readonly type: "retry";
8281
+ readonly attempt: number;
8282
+ readonly message: string;
8283
+ readonly action?: {
8284
+ readonly reason: string;
8285
+ readonly provider: string;
8286
+ readonly title: string;
8287
+ readonly message: string;
8288
+ readonly label: string;
8289
+ readonly link?: string | undefined;
8290
+ } | undefined;
8291
+ readonly next: number;
8283
8292
  };
8284
8293
  };
8285
8294
  } | {
@@ -8288,13 +8297,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8288
8297
  readonly metadata?: {
8289
8298
  readonly [x: string]: unknown;
8290
8299
  } | undefined;
8291
- readonly type: "shell.deleted";
8300
+ readonly type: "session.text.delta";
8292
8301
  readonly location?: {
8293
8302
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8294
8303
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8295
8304
  } | undefined;
8296
8305
  readonly data: {
8297
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8306
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8307
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8308
+ readonly ordinal: number;
8309
+ readonly delta: string;
8298
8310
  };
8299
8311
  } | {
8300
8312
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8302,15 +8314,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8302
8314
  readonly metadata?: {
8303
8315
  readonly [x: string]: unknown;
8304
8316
  } | undefined;
8305
- readonly type: "shell.exited";
8317
+ readonly type: "session.tool.input.delta";
8306
8318
  readonly location?: {
8307
8319
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8308
8320
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8309
8321
  } | undefined;
8310
8322
  readonly data: {
8311
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8312
- readonly exit?: number | undefined;
8313
- readonly status: "exited" | "killed" | "running" | "timeout";
8323
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8324
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8325
+ readonly id: string;
8326
+ readonly delta: string;
8314
8327
  };
8315
8328
  } | {
8316
8329
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8318,14 +8331,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8318
8331
  readonly metadata?: {
8319
8332
  readonly [x: string]: unknown;
8320
8333
  } | undefined;
8321
- readonly type: "form.cancelled";
8334
+ readonly type: "session.tool.progress";
8322
8335
  readonly location?: {
8323
8336
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8324
8337
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8325
8338
  } | undefined;
8326
8339
  readonly data: {
8327
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8328
- readonly sessionID: string;
8340
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8341
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8342
+ readonly id: string;
8343
+ readonly metadata: {
8344
+ readonly [x: string]: import("effect/Schema").Json;
8345
+ };
8329
8346
  };
8330
8347
  } | {
8331
8348
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8333,208 +8350,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8333
8350
  readonly metadata?: {
8334
8351
  readonly [x: string]: unknown;
8335
8352
  } | undefined;
8336
- readonly type: "form.created";
8353
+ readonly type: "session.usage.updated";
8337
8354
  readonly location?: {
8338
8355
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8339
8356
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8340
8357
  } | undefined;
8341
8358
  readonly data: {
8342
- readonly form: {
8343
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8344
- readonly sessionID: string;
8345
- readonly title: string;
8346
- readonly metadata?: {
8347
- readonly [x: string]: unknown;
8348
- } | undefined;
8349
- readonly fields: readonly [{
8350
- readonly key: string;
8351
- readonly title?: string | undefined;
8352
- readonly description?: string | undefined;
8353
- readonly required?: boolean | undefined;
8354
- readonly hidden?: boolean | undefined;
8355
- readonly when?: readonly {
8356
- readonly key: string;
8357
- readonly op: "eq" | "neq";
8358
- readonly value: string | number | boolean;
8359
- }[] | undefined;
8360
- readonly type: "string";
8361
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8362
- readonly minLength?: number | undefined;
8363
- readonly maxLength?: number | undefined;
8364
- readonly pattern?: string | undefined;
8365
- readonly placeholder?: string | undefined;
8366
- readonly default?: string | undefined;
8367
- readonly options?: readonly {
8368
- readonly value: string;
8369
- readonly label: string;
8370
- readonly description?: string | undefined;
8371
- }[] | undefined;
8372
- readonly custom?: boolean | undefined;
8373
- } | {
8374
- readonly key: string;
8375
- readonly title?: string | undefined;
8376
- readonly description?: string | undefined;
8377
- readonly required?: boolean | undefined;
8378
- readonly hidden?: boolean | undefined;
8379
- readonly when?: readonly {
8380
- readonly key: string;
8381
- readonly op: "eq" | "neq";
8382
- readonly value: string | number | boolean;
8383
- }[] | undefined;
8384
- readonly type: "number";
8385
- readonly minimum?: number | undefined;
8386
- readonly maximum?: number | undefined;
8387
- readonly default?: number | undefined;
8388
- } | {
8389
- readonly key: string;
8390
- readonly title?: string | undefined;
8391
- readonly description?: string | undefined;
8392
- readonly required?: boolean | undefined;
8393
- readonly hidden?: boolean | undefined;
8394
- readonly when?: readonly {
8395
- readonly key: string;
8396
- readonly op: "eq" | "neq";
8397
- readonly value: string | number | boolean;
8398
- }[] | undefined;
8399
- readonly type: "integer";
8400
- readonly minimum?: number | undefined;
8401
- readonly maximum?: number | undefined;
8402
- readonly default?: number | undefined;
8403
- } | {
8404
- readonly key: string;
8405
- readonly title?: string | undefined;
8406
- readonly description?: string | undefined;
8407
- readonly required?: boolean | undefined;
8408
- readonly hidden?: boolean | undefined;
8409
- readonly when?: readonly {
8410
- readonly key: string;
8411
- readonly op: "eq" | "neq";
8412
- readonly value: string | number | boolean;
8413
- }[] | undefined;
8414
- readonly type: "boolean";
8415
- readonly default?: boolean | undefined;
8416
- } | {
8417
- readonly key: string;
8418
- readonly title?: string | undefined;
8419
- readonly description?: string | undefined;
8420
- readonly required?: boolean | undefined;
8421
- readonly hidden?: boolean | undefined;
8422
- readonly when?: readonly {
8423
- readonly key: string;
8424
- readonly op: "eq" | "neq";
8425
- readonly value: string | number | boolean;
8426
- }[] | undefined;
8427
- readonly type: "multiselect";
8428
- readonly options: readonly {
8429
- readonly value: string;
8430
- readonly label: string;
8431
- readonly description?: string | undefined;
8432
- }[];
8433
- readonly minItems?: number | undefined;
8434
- readonly maxItems?: number | undefined;
8435
- readonly custom?: boolean | undefined;
8436
- readonly default?: readonly string[] | undefined;
8437
- } | {
8438
- readonly key: string;
8439
- readonly type: "external";
8440
- readonly url: string;
8441
- readonly title?: string | undefined;
8442
- readonly description?: string | undefined;
8443
- }, ...({
8444
- readonly key: string;
8445
- readonly title?: string | undefined;
8446
- readonly description?: string | undefined;
8447
- readonly required?: boolean | undefined;
8448
- readonly hidden?: boolean | undefined;
8449
- readonly when?: readonly {
8450
- readonly key: string;
8451
- readonly op: "eq" | "neq";
8452
- readonly value: string | number | boolean;
8453
- }[] | undefined;
8454
- readonly type: "string";
8455
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8456
- readonly minLength?: number | undefined;
8457
- readonly maxLength?: number | undefined;
8458
- readonly pattern?: string | undefined;
8459
- readonly placeholder?: string | undefined;
8460
- readonly default?: string | undefined;
8461
- readonly options?: readonly {
8462
- readonly value: string;
8463
- readonly label: string;
8464
- readonly description?: string | undefined;
8465
- }[] | undefined;
8466
- readonly custom?: boolean | undefined;
8467
- } | {
8468
- readonly key: string;
8469
- readonly title?: string | undefined;
8470
- readonly description?: string | undefined;
8471
- readonly required?: boolean | undefined;
8472
- readonly hidden?: boolean | undefined;
8473
- readonly when?: readonly {
8474
- readonly key: string;
8475
- readonly op: "eq" | "neq";
8476
- readonly value: string | number | boolean;
8477
- }[] | undefined;
8478
- readonly type: "number";
8479
- readonly minimum?: number | undefined;
8480
- readonly maximum?: number | undefined;
8481
- readonly default?: number | undefined;
8482
- } | {
8483
- readonly key: string;
8484
- readonly title?: string | undefined;
8485
- readonly description?: string | undefined;
8486
- readonly required?: boolean | undefined;
8487
- readonly hidden?: boolean | undefined;
8488
- readonly when?: readonly {
8489
- readonly key: string;
8490
- readonly op: "eq" | "neq";
8491
- readonly value: string | number | boolean;
8492
- }[] | undefined;
8493
- readonly type: "integer";
8494
- readonly minimum?: number | undefined;
8495
- readonly maximum?: number | undefined;
8496
- readonly default?: number | undefined;
8497
- } | {
8498
- readonly key: string;
8499
- readonly title?: string | undefined;
8500
- readonly description?: string | undefined;
8501
- readonly required?: boolean | undefined;
8502
- readonly hidden?: boolean | undefined;
8503
- readonly when?: readonly {
8504
- readonly key: string;
8505
- readonly op: "eq" | "neq";
8506
- readonly value: string | number | boolean;
8507
- }[] | undefined;
8508
- readonly type: "boolean";
8509
- readonly default?: boolean | undefined;
8510
- } | {
8511
- readonly key: string;
8512
- readonly title?: string | undefined;
8513
- readonly description?: string | undefined;
8514
- readonly required?: boolean | undefined;
8515
- readonly hidden?: boolean | undefined;
8516
- readonly when?: readonly {
8517
- readonly key: string;
8518
- readonly op: "eq" | "neq";
8519
- readonly value: string | number | boolean;
8520
- }[] | undefined;
8521
- readonly type: "multiselect";
8522
- readonly options: readonly {
8523
- readonly value: string;
8524
- readonly label: string;
8525
- readonly description?: string | undefined;
8526
- }[];
8527
- readonly minItems?: number | undefined;
8528
- readonly maxItems?: number | undefined;
8529
- readonly custom?: boolean | undefined;
8530
- readonly default?: readonly string[] | undefined;
8531
- } | {
8532
- readonly key: string;
8533
- readonly type: "external";
8534
- readonly url: string;
8535
- readonly title?: string | undefined;
8536
- readonly description?: string | undefined;
8537
- })[]];
8359
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8360
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8361
+ readonly tokens: {
8362
+ readonly input: number;
8363
+ readonly output: number;
8364
+ readonly reasoning: number;
8365
+ readonly cache: {
8366
+ readonly read: number;
8367
+ readonly write: number;
8368
+ };
8538
8369
  };
8539
8370
  };
8540
8371
  } | {
@@ -8543,16 +8374,29 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8543
8374
  readonly metadata?: {
8544
8375
  readonly [x: string]: unknown;
8545
8376
  } | undefined;
8546
- readonly type: "form.replied";
8377
+ readonly type: "shell.created";
8547
8378
  readonly location?: {
8548
8379
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8549
8380
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8550
8381
  } | undefined;
8551
8382
  readonly data: {
8552
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8553
- readonly sessionID: string;
8554
- readonly answer: {
8555
- readonly [x: string]: string | number | boolean | readonly string[];
8383
+ readonly info: {
8384
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8385
+ readonly status: "exited" | "killed" | "running" | "timeout";
8386
+ readonly command: string;
8387
+ readonly cwd: string;
8388
+ readonly shell: string;
8389
+ readonly file: string;
8390
+ readonly pid?: number | undefined;
8391
+ readonly exit?: number | undefined;
8392
+ readonly signal?: string | undefined;
8393
+ readonly metadata: {
8394
+ readonly [x: string]: unknown;
8395
+ };
8396
+ readonly time: {
8397
+ readonly started: number;
8398
+ readonly completed?: number | undefined;
8399
+ };
8556
8400
  };
8557
8401
  };
8558
8402
  } | {
@@ -8561,7 +8405,37 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8561
8405
  readonly metadata?: {
8562
8406
  readonly [x: string]: unknown;
8563
8407
  } | undefined;
8564
- readonly type: "websearch.updated";
8408
+ readonly type: "shell.deleted";
8409
+ readonly location?: {
8410
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8411
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8412
+ } | undefined;
8413
+ readonly data: {
8414
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8415
+ };
8416
+ } | {
8417
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8418
+ readonly created: number;
8419
+ readonly metadata?: {
8420
+ readonly [x: string]: unknown;
8421
+ } | undefined;
8422
+ readonly type: "shell.exited";
8423
+ readonly location?: {
8424
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8425
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8426
+ } | undefined;
8427
+ readonly data: {
8428
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8429
+ readonly exit?: number | undefined;
8430
+ readonly status: "exited" | "killed" | "running" | "timeout";
8431
+ };
8432
+ } | {
8433
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8434
+ readonly created: number;
8435
+ readonly metadata?: {
8436
+ readonly [x: string]: unknown;
8437
+ } | undefined;
8438
+ readonly type: "skill.updated";
8565
8439
  readonly location?: {
8566
8440
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8567
8441
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8573,13 +8447,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8573
8447
  readonly metadata?: {
8574
8448
  readonly [x: string]: unknown;
8575
8449
  } | undefined;
8576
- readonly type: "session.idle";
8450
+ readonly type: "tui.command.execute";
8577
8451
  readonly location?: {
8578
8452
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8579
8453
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8580
8454
  } | undefined;
8581
8455
  readonly data: {
8582
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8456
+ readonly command: string;
8583
8457
  };
8584
8458
  } | {
8585
8459
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8587,31 +8461,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8587
8461
  readonly metadata?: {
8588
8462
  readonly [x: string]: unknown;
8589
8463
  } | undefined;
8590
- readonly type: "session.status";
8464
+ readonly type: "tui.prompt.append";
8591
8465
  readonly location?: {
8592
8466
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8593
8467
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8594
8468
  } | undefined;
8595
8469
  readonly data: {
8596
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8597
- readonly status: {
8598
- readonly type: "idle";
8599
- } | {
8600
- readonly type: "retry";
8601
- readonly attempt: number;
8602
- readonly message: string;
8603
- readonly action?: {
8604
- readonly reason: string;
8605
- readonly provider: string;
8606
- readonly title: string;
8607
- readonly message: string;
8608
- readonly label: string;
8609
- readonly link?: string | undefined;
8610
- } | undefined;
8611
- readonly next: number;
8612
- } | {
8613
- readonly type: "busy";
8614
- };
8470
+ readonly text: string;
8615
8471
  };
8616
8472
  } | {
8617
8473
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8619,13 +8475,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8619
8475
  readonly metadata?: {
8620
8476
  readonly [x: string]: unknown;
8621
8477
  } | undefined;
8622
- readonly type: "installation.update-available";
8478
+ readonly type: "tui.session.select";
8623
8479
  readonly location?: {
8624
8480
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8625
8481
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8626
8482
  } | undefined;
8627
8483
  readonly data: {
8628
- readonly version: string;
8484
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8629
8485
  };
8630
8486
  } | {
8631
8487
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8633,13 +8489,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8633
8489
  readonly metadata?: {
8634
8490
  readonly [x: string]: unknown;
8635
8491
  } | undefined;
8636
- readonly type: "installation.updated";
8492
+ readonly type: "tui.toast.show";
8637
8493
  readonly location?: {
8638
8494
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8639
8495
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8640
8496
  } | undefined;
8641
8497
  readonly data: {
8642
- readonly version: string;
8498
+ readonly title?: string | undefined;
8499
+ readonly message: string;
8500
+ readonly variant: "error" | "info" | "success" | "warning";
8501
+ readonly duration: number;
8643
8502
  };
8644
8503
  } | {
8645
8504
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8655,6 +8514,32 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8655
8514
  readonly data: {
8656
8515
  readonly branch?: string | undefined;
8657
8516
  };
8517
+ } | {
8518
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8519
+ readonly created: number;
8520
+ readonly metadata?: {
8521
+ readonly [x: string]: unknown;
8522
+ } | undefined;
8523
+ readonly type: "websearch.updated";
8524
+ readonly location?: {
8525
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8526
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8527
+ } | undefined;
8528
+ readonly data: {};
8529
+ } | {
8530
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8531
+ readonly created: number;
8532
+ readonly metadata?: {
8533
+ readonly [x: string]: unknown;
8534
+ } | undefined;
8535
+ readonly type: "worktree.updated";
8536
+ readonly location?: {
8537
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8538
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8539
+ } | undefined;
8540
+ readonly data: {
8541
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
8542
+ };
8658
8543
  } | {
8659
8544
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8660
8545
  readonly created: number;