@opencode/server 0.0.0-dev-21269 → 0.0.0-dev-21286

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 (82) hide show
  1. package/dist/api.d.ts +876 -988
  2. package/dist/api.js +2 -2
  3. package/dist/chunks/{cors-1h29v6ew.js → cors-027ecbgg.js} +7 -7
  4. package/dist/chunks/{cors-wv5twc2g.js → cors-0d9kah4z.js} +7 -7
  5. package/dist/chunks/{cors-k8rzy6d4.js → cors-3d7qdbre.js} +1 -1
  6. package/dist/chunks/{cors-7j4237sy.js → cors-4x9ztr5s.js} +1 -1
  7. package/dist/chunks/{cors-krpsczf8.js → cors-547pgmmc.js} +1 -1
  8. package/dist/chunks/{cors-rjpqaa8h.js → cors-54sczv30.js} +6 -6
  9. package/dist/chunks/{cors-xsrtpxyd.js → cors-5w24ch67.js} +3 -3
  10. package/dist/chunks/{cors-3aej5azy.js → cors-7xe5pzvy.js} +1 -1
  11. package/dist/chunks/{cors-3atcw39t.js → cors-8t0ckx4f.js} +1 -1
  12. package/dist/chunks/{cors-wm8t00a5.js → cors-8whnk5q4.js} +4 -4
  13. package/dist/chunks/{cors-3kd9ar2c.js → cors-aj0vv6jw.js} +2 -2
  14. package/dist/chunks/{cors-4t8kzarx.js → cors-b03akjwk.js} +4 -4
  15. package/dist/chunks/{cors-x6486bry.js → cors-byt4hbw9.js} +3 -3
  16. package/dist/chunks/{cors-yv9sxhn9.js → cors-cpp0zjdy.js} +1 -1
  17. package/dist/chunks/{cors-9mfgjndz.js → cors-emkxpff3.js} +1 -1
  18. package/dist/chunks/{cors-gx9nwmym.js → cors-fazm2c7b.js} +1 -1
  19. package/dist/chunks/{cors-mahm5rvs.js → cors-fysmzcya.js} +1 -1
  20. package/dist/chunks/{cors-mk2mz66m.js → cors-g7sdbt1s.js} +1 -1
  21. package/dist/chunks/{cors-6s7h2yy2.js → cors-g8c3hzte.js} +4 -4
  22. package/dist/chunks/{cors-w0jn068c.js → cors-gq8jw616.js} +1 -1
  23. package/dist/chunks/{cors-rc3nk1bx.js → cors-gw6rc7x0.js} +1 -1
  24. package/dist/chunks/{cors-ez8kk7rt.js → cors-hwqxzcvy.js} +1 -1
  25. package/dist/chunks/{cors-0cppk2bc.js → cors-jd2d9483.js} +1 -1
  26. package/dist/chunks/{cors-mhfbkkb7.js → cors-jk5edc6h.js} +1 -1
  27. package/dist/chunks/{cors-dr1f0hkr.js → cors-nnsgc8by.js} +1 -1
  28. package/dist/chunks/{cors-1sk4hpsr.js → cors-q3sr9xwh.js} +34 -34
  29. package/dist/chunks/{cors-j1p3e665.js → cors-qcfps8nc.js} +1 -1
  30. package/dist/chunks/{cors-n60r5keb.js → cors-qx5ydgm0.js} +1 -1
  31. package/dist/chunks/{cors-esbdfpyn.js → cors-rhdada90.js} +1 -1
  32. package/dist/chunks/{cors-gsqctp76.js → cors-s0qm098c.js} +1 -1
  33. package/dist/chunks/{cors-6ypp9np2.js → cors-t4c683g8.js} +1 -1
  34. package/dist/chunks/{cors-vbanrv0z.js → cors-tp6qcw6t.js} +1 -1
  35. package/dist/chunks/{cors-7b00qdf6.js → cors-w4e9jgda.js} +1 -1
  36. package/dist/chunks/{cors-vdtx70fv.js → cors-wexwfee0.js} +1 -1
  37. package/dist/chunks/{cors-jqrn6kzd.js → cors-xwnn9gpm.js} +1 -1
  38. package/dist/chunks/{cors-p6ct2ak8.js → cors-yeebkdj0.js} +1 -1
  39. package/dist/chunks/{cors-eaxk76q8.js → cors-z6z134jc.js} +1 -1
  40. package/dist/chunks/{cors-tp1rntzw.js → cors-zfbzqd0e.js} +1 -1
  41. package/dist/event-feed.js +5 -5
  42. package/dist/fetch.js +44 -44
  43. package/dist/handlers/agent.js +3 -3
  44. package/dist/handlers/command.js +3 -3
  45. package/dist/handlers/config.js +3 -3
  46. package/dist/handlers/credential.js +3 -3
  47. package/dist/handlers/debug.js +3 -3
  48. package/dist/handlers/event.js +4 -4
  49. package/dist/handlers/form.js +3 -3
  50. package/dist/handlers/fs.js +3 -3
  51. package/dist/handlers/generate.js +3 -3
  52. package/dist/handlers/integration.js +3 -3
  53. package/dist/handlers/location.js +3 -3
  54. package/dist/handlers/mcp.js +3 -3
  55. package/dist/handlers/message.js +3 -3
  56. package/dist/handlers/migration.js +3 -3
  57. package/dist/handlers/model.js +3 -3
  58. package/dist/handlers/permission.js +3 -3
  59. package/dist/handlers/persistent-pty.js +4 -4
  60. package/dist/handlers/plugin.js +3 -3
  61. package/dist/handlers/project.js +3 -3
  62. package/dist/handlers/provider.js +3 -3
  63. package/dist/handlers/pty.js +5 -5
  64. package/dist/handlers/reference.js +3 -3
  65. package/dist/handlers/rpc.js +3 -3
  66. package/dist/handlers/server.js +5 -5
  67. package/dist/handlers/session.js +3 -3
  68. package/dist/handlers/shell.js +3 -3
  69. package/dist/handlers/skill.js +3 -3
  70. package/dist/handlers/vcs.js +3 -3
  71. package/dist/handlers/voice.js +3 -3
  72. package/dist/handlers/websearch.js +3 -3
  73. package/dist/handlers/worktree.js +3 -3
  74. package/dist/handlers.js +39 -39
  75. package/dist/pairing.js +3 -3
  76. package/dist/process.js +40 -40
  77. package/dist/pty-environment.js +7 -7
  78. package/dist/routes.js +41 -41
  79. package/dist/service-status.js +3 -3
  80. package/dist/workerd.js +40 -40
  81. package/package.json +8 -8
  82. /package/dist/chunks/{cors-q8n44kky.js → cors-4nbah0zs.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -2683,7 +2683,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2683
2683
  };
2684
2684
  readonly finish: import("effect/Schema").Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2685
2685
  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>;
2686
- readonly providerState: 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>;
2686
+ 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>;
2687
2687
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2688
2688
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2689
2689
  };
@@ -2717,7 +2717,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2717
2717
  };
2718
2718
  readonly finish: import("effect/Schema").Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
2719
2719
  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>;
2720
- readonly providerState: 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>;
2720
+ 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>;
2721
2721
  readonly cost: import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2722
2722
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2723
2723
  };
@@ -2785,7 +2785,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2785
2785
  }>;
2786
2786
  readonly finish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["content-filter"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["content-filter"]>>, never, never>;
2787
2787
  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>;
2788
- readonly providerState: 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>;
2788
+ 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>;
2789
2789
  readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2790
2790
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2791
2791
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
@@ -2839,7 +2839,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2839
2839
  }>;
2840
2840
  readonly finish: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["content-filter"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["content-filter"]>>, never, never>;
2841
2841
  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>;
2842
- readonly providerState: 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>;
2842
+ 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>;
2843
2843
  readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
2844
2844
  zero: number & import("effect/Brand").Brand<"Money.USD">;
2845
2845
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
@@ -3021,7 +3021,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3021
3021
  };
3022
3022
  readonly ordinal: import("effect/Schema").Int;
3023
3023
  readonly text: import("effect/Schema").String;
3024
- readonly state: 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>;
3024
+ 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>;
3025
3025
  }>;
3026
3026
  }> & {
3027
3027
  type: "session.text.ended";
@@ -3041,7 +3041,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3041
3041
  };
3042
3042
  readonly ordinal: import("effect/Schema").Int;
3043
3043
  readonly text: import("effect/Schema").String;
3044
- readonly state: 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>;
3044
+ 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>;
3045
3045
  }>;
3046
3046
  }, import("effect/Schema").Struct<{
3047
3047
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -3084,7 +3084,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3084
3084
  fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3085
3085
  };
3086
3086
  readonly ordinal: import("effect/Schema").Int;
3087
- readonly state: 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>;
3087
+ 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>;
3088
3088
  }>;
3089
3089
  }> & {
3090
3090
  type: "session.reasoning.started";
@@ -3103,7 +3103,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3103
3103
  fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3104
3104
  };
3105
3105
  readonly ordinal: import("effect/Schema").Int;
3106
- readonly state: 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>;
3106
+ 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>;
3107
3107
  }>;
3108
3108
  }, import("effect/Schema").Struct<{
3109
3109
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -3201,7 +3201,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3201
3201
  };
3202
3202
  readonly ordinal: import("effect/Schema").Int;
3203
3203
  readonly text: import("effect/Schema").String;
3204
- readonly state: 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>;
3204
+ 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>;
3205
3205
  }>;
3206
3206
  }> & {
3207
3207
  type: "session.reasoning.ended";
@@ -3221,7 +3221,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3221
3221
  };
3222
3222
  readonly ordinal: import("effect/Schema").Int;
3223
3223
  readonly text: import("effect/Schema").String;
3224
- readonly state: 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>;
3224
+ 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>;
3225
3225
  }>;
3226
3226
  }, import("effect/Schema").Struct<{
3227
3227
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -3444,7 +3444,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3444
3444
  readonly id: import("effect/Schema").String;
3445
3445
  readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
3446
3446
  readonly executed: import("effect/Schema").Boolean;
3447
- readonly state: 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>;
3447
+ 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>;
3448
3448
  }>;
3449
3449
  }> & {
3450
3450
  type: "session.tool.called";
@@ -3465,7 +3465,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3465
3465
  readonly id: import("effect/Schema").String;
3466
3466
  readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
3467
3467
  readonly executed: import("effect/Schema").Boolean;
3468
- readonly state: 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>;
3468
+ 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>;
3469
3469
  }>;
3470
3470
  }, import("effect/Schema").Struct<{
3471
3471
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -3573,7 +3573,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3573
3573
  }>]>>;
3574
3574
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
3575
3575
  readonly executed: import("effect/Schema").Boolean;
3576
- readonly resultState: 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>;
3576
+ 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>;
3577
3577
  }>;
3578
3578
  }> & {
3579
3579
  type: "session.tool.success";
@@ -3603,7 +3603,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3603
3603
  }>]>>;
3604
3604
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
3605
3605
  readonly executed: import("effect/Schema").Boolean;
3606
- readonly resultState: 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>;
3606
+ 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>;
3607
3607
  }>;
3608
3608
  }, import("effect/Schema").Struct<{
3609
3609
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -3675,7 +3675,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3675
3675
  }>]>>>, never, never>;
3676
3676
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
3677
3677
  readonly executed: import("effect/Schema").Boolean;
3678
- readonly resultState: 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>;
3678
+ 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>;
3679
3679
  }>;
3680
3680
  }> & {
3681
3681
  type: "session.tool.failed";
@@ -3723,7 +3723,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3723
3723
  }>]>>>, never, never>;
3724
3724
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
3725
3725
  readonly executed: import("effect/Schema").Boolean;
3726
- readonly resultState: 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>;
3726
+ 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>;
3727
3727
  }>;
3728
3728
  }, import("effect/Schema").Struct<{
3729
3729
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
@@ -3844,7 +3844,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3844
3844
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3845
3845
  };
3846
3846
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3847
- readonly recent: import("effect/Schema").String;
3848
3847
  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"> & {
3849
3848
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3850
3849
  fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -3866,7 +3865,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3866
3865
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3867
3866
  };
3868
3867
  readonly reason: import("effect/Schema").Literals<readonly ["auto", "manual"]>;
3869
- readonly recent: import("effect/Schema").String;
3870
3868
  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"> & {
3871
3869
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3872
3870
  fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -4001,56 +3999,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4001
3999
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
4002
4000
  };
4003
4001
  }>, never, never>;
4004
- readonly providerState: 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>;
4005
- readonly providerContext: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
4006
- readonly version: import("effect/Schema").Literal<1>;
4007
- readonly provenance: import("effect/Schema").Struct<{
4008
- readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
4009
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
4010
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
4011
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
4012
- google: string & import("effect/Brand").Brand<"Provider.ID">;
4013
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
4014
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
4015
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
4016
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
4017
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
4018
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
4019
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
4020
- };
4021
- readonly provider: import("effect/Schema").String;
4022
- readonly modelID: import("effect/Schema").String;
4023
- readonly route: import("effect/Schema").String;
4024
- readonly protocol: import("effect/Schema").String;
4025
- readonly endpoint: import("effect/Schema").String;
4026
- }>;
4027
- readonly messages: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
4028
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
4029
- readonly version: import("effect/Schema").Literal<1>;
4030
- readonly provenance: import("effect/Schema").Struct<{
4031
- readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
4032
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
4033
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
4034
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
4035
- google: string & import("effect/Brand").Brand<"Provider.ID">;
4036
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
4037
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
4038
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
4039
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
4040
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
4041
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
4042
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
4043
- };
4044
- readonly provider: import("effect/Schema").String;
4045
- readonly modelID: import("effect/Schema").String;
4046
- readonly route: import("effect/Schema").String;
4047
- readonly protocol: import("effect/Schema").String;
4048
- readonly endpoint: import("effect/Schema").String;
4049
- }>;
4050
- readonly messages: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
4051
- }>>, never, never>;
4002
+ 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>;
4052
4003
  readonly text: import("effect/Schema").String;
4053
- readonly recent: import("effect/Schema").String;
4054
4004
  readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
4055
4005
  zero: number & import("effect/Brand").Brand<"Money.USD">;
4056
4006
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
@@ -4132,56 +4082,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4132
4082
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
4133
4083
  };
4134
4084
  }>, never, never>;
4135
- readonly providerState: 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>;
4136
- readonly providerContext: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
4137
- readonly version: import("effect/Schema").Literal<1>;
4138
- readonly provenance: import("effect/Schema").Struct<{
4139
- readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
4140
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
4141
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
4142
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
4143
- google: string & import("effect/Brand").Brand<"Provider.ID">;
4144
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
4145
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
4146
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
4147
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
4148
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
4149
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
4150
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
4151
- };
4152
- readonly provider: import("effect/Schema").String;
4153
- readonly modelID: import("effect/Schema").String;
4154
- readonly route: import("effect/Schema").String;
4155
- readonly protocol: import("effect/Schema").String;
4156
- readonly endpoint: import("effect/Schema").String;
4157
- }>;
4158
- readonly messages: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
4159
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
4160
- readonly version: import("effect/Schema").Literal<1>;
4161
- readonly provenance: import("effect/Schema").Struct<{
4162
- readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
4163
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
4164
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
4165
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
4166
- google: string & import("effect/Brand").Brand<"Provider.ID">;
4167
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
4168
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
4169
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
4170
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
4171
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
4172
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
4173
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
4174
- };
4175
- readonly provider: import("effect/Schema").String;
4176
- readonly modelID: import("effect/Schema").String;
4177
- readonly route: import("effect/Schema").String;
4178
- readonly protocol: import("effect/Schema").String;
4179
- readonly endpoint: import("effect/Schema").String;
4180
- }>;
4181
- readonly messages: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
4182
- }>>, never, never>;
4085
+ 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>;
4183
4086
  readonly text: import("effect/Schema").String;
4184
- readonly recent: import("effect/Schema").String;
4185
4087
  readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
4186
4088
  zero: number & import("effect/Brand").Brand<"Money.USD">;
4187
4089
  }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
@@ -6472,14 +6374,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6472
6374
  readonly metadata?: {
6473
6375
  readonly [x: string]: unknown;
6474
6376
  } | undefined;
6475
- readonly type: "form.cancelled";
6377
+ readonly type: "credential.switched";
6476
6378
  readonly location?: {
6477
6379
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6478
6380
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6479
6381
  } | undefined;
6480
6382
  readonly data: {
6481
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6482
- readonly sessionID: string;
6383
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
6384
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
6483
6385
  };
6484
6386
  } | {
6485
6387
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6487,258 +6389,54 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6487
6389
  readonly metadata?: {
6488
6390
  readonly [x: string]: unknown;
6489
6391
  } | undefined;
6490
- readonly type: "form.created";
6392
+ readonly type: "credential.updated";
6491
6393
  readonly location?: {
6492
6394
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6493
6395
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6494
6396
  } | undefined;
6495
- readonly data: {
6496
- readonly form: {
6497
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6498
- readonly sessionID: string;
6499
- readonly title: string;
6500
- readonly metadata?: {
6501
- readonly [x: string]: unknown;
6502
- } | undefined;
6503
- readonly fields: readonly [{
6504
- readonly key: string;
6505
- readonly title?: string | undefined;
6506
- readonly description?: string | undefined;
6507
- readonly required?: boolean | undefined;
6508
- readonly hidden?: boolean | undefined;
6509
- readonly when?: readonly {
6510
- readonly key: string;
6511
- readonly op: "eq" | "neq";
6512
- readonly value: string | number | boolean;
6513
- }[] | undefined;
6514
- readonly type: "string";
6515
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
6516
- readonly minLength?: number | undefined;
6517
- readonly maxLength?: number | undefined;
6518
- readonly pattern?: string | undefined;
6519
- readonly placeholder?: string | undefined;
6520
- readonly default?: string | undefined;
6521
- readonly options?: readonly {
6522
- readonly value: string;
6523
- readonly label: string;
6524
- readonly description?: string | undefined;
6525
- }[] | undefined;
6526
- readonly custom?: boolean | undefined;
6527
- } | {
6528
- readonly key: string;
6529
- readonly title?: string | undefined;
6530
- readonly description?: string | undefined;
6531
- readonly required?: boolean | undefined;
6532
- readonly hidden?: boolean | undefined;
6533
- readonly when?: readonly {
6534
- readonly key: string;
6535
- readonly op: "eq" | "neq";
6536
- readonly value: string | number | boolean;
6537
- }[] | undefined;
6538
- readonly type: "number";
6539
- readonly minimum?: number | undefined;
6540
- readonly maximum?: number | undefined;
6541
- readonly default?: number | undefined;
6542
- } | {
6543
- readonly key: string;
6544
- readonly title?: string | undefined;
6545
- readonly description?: string | undefined;
6546
- readonly required?: boolean | undefined;
6547
- readonly hidden?: boolean | undefined;
6548
- readonly when?: readonly {
6549
- readonly key: string;
6550
- readonly op: "eq" | "neq";
6551
- readonly value: string | number | boolean;
6552
- }[] | undefined;
6553
- readonly type: "integer";
6554
- readonly minimum?: number | undefined;
6555
- readonly maximum?: number | undefined;
6556
- readonly default?: number | undefined;
6557
- } | {
6558
- readonly key: string;
6559
- readonly title?: string | undefined;
6560
- readonly description?: string | undefined;
6561
- readonly required?: boolean | undefined;
6562
- readonly hidden?: boolean | undefined;
6563
- readonly when?: readonly {
6564
- readonly key: string;
6565
- readonly op: "eq" | "neq";
6566
- readonly value: string | number | boolean;
6567
- }[] | undefined;
6568
- readonly type: "boolean";
6569
- readonly default?: boolean | undefined;
6570
- } | {
6571
- readonly key: string;
6572
- readonly title?: string | undefined;
6573
- readonly description?: string | undefined;
6574
- readonly required?: boolean | undefined;
6575
- readonly hidden?: boolean | undefined;
6576
- readonly when?: readonly {
6577
- readonly key: string;
6578
- readonly op: "eq" | "neq";
6579
- readonly value: string | number | boolean;
6580
- }[] | undefined;
6581
- readonly type: "multiselect";
6582
- readonly options: readonly {
6583
- readonly value: string;
6584
- readonly label: string;
6585
- readonly description?: string | undefined;
6586
- }[];
6587
- readonly minItems?: number | undefined;
6588
- readonly maxItems?: number | undefined;
6589
- readonly custom?: boolean | undefined;
6590
- readonly default?: readonly string[] | undefined;
6591
- } | {
6592
- readonly key: string;
6593
- readonly type: "external";
6594
- readonly url: string;
6595
- readonly title?: string | undefined;
6596
- readonly description?: string | undefined;
6597
- }, ...({
6598
- readonly key: string;
6599
- readonly title?: string | undefined;
6600
- readonly description?: string | undefined;
6601
- readonly required?: boolean | undefined;
6602
- readonly hidden?: boolean | undefined;
6603
- readonly when?: readonly {
6604
- readonly key: string;
6605
- readonly op: "eq" | "neq";
6606
- readonly value: string | number | boolean;
6607
- }[] | undefined;
6608
- readonly type: "string";
6609
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
6610
- readonly minLength?: number | undefined;
6611
- readonly maxLength?: number | undefined;
6612
- readonly pattern?: string | undefined;
6613
- readonly placeholder?: string | undefined;
6614
- readonly default?: string | undefined;
6615
- readonly options?: readonly {
6616
- readonly value: string;
6617
- readonly label: string;
6618
- readonly description?: string | undefined;
6619
- }[] | undefined;
6620
- readonly custom?: boolean | undefined;
6621
- } | {
6622
- readonly key: string;
6623
- readonly title?: string | undefined;
6624
- readonly description?: string | undefined;
6625
- readonly required?: boolean | undefined;
6626
- readonly hidden?: boolean | undefined;
6627
- readonly when?: readonly {
6628
- readonly key: string;
6629
- readonly op: "eq" | "neq";
6630
- readonly value: string | number | boolean;
6631
- }[] | undefined;
6632
- readonly type: "number";
6633
- readonly minimum?: number | undefined;
6634
- readonly maximum?: number | undefined;
6635
- readonly default?: number | undefined;
6636
- } | {
6637
- readonly key: string;
6638
- readonly title?: string | undefined;
6639
- readonly description?: string | undefined;
6640
- readonly required?: boolean | undefined;
6641
- readonly hidden?: boolean | undefined;
6642
- readonly when?: readonly {
6643
- readonly key: string;
6644
- readonly op: "eq" | "neq";
6645
- readonly value: string | number | boolean;
6646
- }[] | undefined;
6647
- readonly type: "integer";
6648
- readonly minimum?: number | undefined;
6649
- readonly maximum?: number | undefined;
6650
- readonly default?: number | undefined;
6651
- } | {
6652
- readonly key: string;
6653
- readonly title?: string | undefined;
6654
- readonly description?: string | undefined;
6655
- readonly required?: boolean | undefined;
6656
- readonly hidden?: boolean | undefined;
6657
- readonly when?: readonly {
6658
- readonly key: string;
6659
- readonly op: "eq" | "neq";
6660
- readonly value: string | number | boolean;
6661
- }[] | undefined;
6662
- readonly type: "boolean";
6663
- readonly default?: boolean | undefined;
6664
- } | {
6665
- readonly key: string;
6666
- readonly title?: string | undefined;
6667
- readonly description?: string | undefined;
6668
- readonly required?: boolean | undefined;
6669
- readonly hidden?: boolean | undefined;
6670
- readonly when?: readonly {
6671
- readonly key: string;
6672
- readonly op: "eq" | "neq";
6673
- readonly value: string | number | boolean;
6674
- }[] | undefined;
6675
- readonly type: "multiselect";
6676
- readonly options: readonly {
6677
- readonly value: string;
6678
- readonly label: string;
6679
- readonly description?: string | undefined;
6680
- }[];
6681
- readonly minItems?: number | undefined;
6682
- readonly maxItems?: number | undefined;
6683
- readonly custom?: boolean | undefined;
6684
- readonly default?: readonly string[] | undefined;
6685
- } | {
6686
- readonly key: string;
6687
- readonly type: "external";
6688
- readonly url: string;
6689
- readonly title?: string | undefined;
6690
- readonly description?: string | undefined;
6691
- })[]];
6692
- };
6693
- };
6397
+ readonly data: {};
6694
6398
  } | {
6695
6399
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6696
6400
  readonly created: number;
6697
6401
  readonly metadata?: {
6698
6402
  readonly [x: string]: unknown;
6699
6403
  } | undefined;
6700
- readonly type: "form.replied";
6701
- readonly location?: {
6702
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6703
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6704
- } | undefined;
6705
- readonly data: {
6706
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
6707
- readonly sessionID: string;
6708
- readonly answer: {
6709
- readonly [x: string]: string | number | boolean | readonly string[];
6710
- };
6404
+ readonly type: "session.created";
6405
+ readonly durable: {
6406
+ readonly aggregateID: string;
6407
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6408
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6711
6409
  };
6712
- } | {
6713
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6714
- readonly created: number;
6715
- readonly metadata?: {
6716
- readonly [x: string]: unknown;
6717
- } | undefined;
6718
- readonly type: "shell.created";
6719
6410
  readonly location?: {
6720
6411
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6721
6412
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6722
6413
  } | undefined;
6723
6414
  readonly data: {
6724
- readonly info: {
6725
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6726
- readonly status: "exited" | "killed" | "running" | "timeout";
6727
- readonly command: string;
6728
- readonly cwd: string;
6729
- readonly shell: string;
6730
- readonly file: string;
6731
- readonly pid?: number | undefined;
6732
- readonly exit?: number | undefined;
6733
- readonly signal?: string | undefined;
6734
- readonly metadata: {
6735
- readonly [x: string]: unknown;
6736
- };
6737
- readonly time: {
6738
- readonly started: number;
6739
- readonly completed?: number | undefined;
6740
- };
6415
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6416
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6417
+ readonly location: {
6418
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6419
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6741
6420
  };
6421
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6422
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
6423
+ readonly slug: string;
6424
+ readonly title?: string | undefined;
6425
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6426
+ readonly model?: {
6427
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6428
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6429
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6430
+ } | undefined;
6431
+ readonly metadata?: {
6432
+ readonly [x: string]: import("effect/Schema").Json;
6433
+ } | undefined;
6434
+ readonly permissions?: readonly {
6435
+ readonly action: string;
6436
+ readonly resource: string;
6437
+ readonly effect: "allow" | "ask" | "deny";
6438
+ }[] | undefined;
6439
+ readonly version: string;
6742
6440
  };
6743
6441
  } | {
6744
6442
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6746,13 +6444,20 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6746
6444
  readonly metadata?: {
6747
6445
  readonly [x: string]: unknown;
6748
6446
  } | undefined;
6749
- readonly type: "shell.deleted";
6447
+ readonly type: "session.agent.selected";
6448
+ readonly durable: {
6449
+ readonly aggregateID: string;
6450
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6451
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6452
+ };
6750
6453
  readonly location?: {
6751
6454
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6752
6455
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6753
6456
  } | undefined;
6754
6457
  readonly data: {
6755
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6458
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6459
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6460
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6756
6461
  };
6757
6462
  } | {
6758
6463
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6760,15 +6465,28 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6760
6465
  readonly metadata?: {
6761
6466
  readonly [x: string]: unknown;
6762
6467
  } | undefined;
6763
- readonly type: "shell.exited";
6468
+ readonly type: "session.model.selected";
6469
+ readonly durable: {
6470
+ readonly aggregateID: string;
6471
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6472
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6473
+ };
6764
6474
  readonly location?: {
6765
6475
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6766
6476
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6767
6477
  } | undefined;
6768
6478
  readonly data: {
6769
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
6770
- readonly exit?: number | undefined;
6771
- readonly status: "exited" | "killed" | "running" | "timeout";
6479
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6480
+ readonly model: {
6481
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6482
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6483
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6484
+ };
6485
+ readonly previous?: {
6486
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6487
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6488
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6489
+ } | undefined;
6772
6490
  };
6773
6491
  } | {
6774
6492
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6776,37 +6494,44 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6776
6494
  readonly metadata?: {
6777
6495
  readonly [x: string]: unknown;
6778
6496
  } | undefined;
6779
- readonly type: "command.updated";
6780
- readonly location?: {
6781
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6782
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6783
- } | undefined;
6784
- readonly data: {};
6785
- } | {
6786
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6787
- readonly created: number;
6788
- readonly metadata?: {
6789
- readonly [x: string]: unknown;
6790
- } | undefined;
6791
- readonly type: "config.updated";
6497
+ readonly type: "session.moved";
6498
+ readonly durable: {
6499
+ readonly aggregateID: string;
6500
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6501
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6502
+ };
6792
6503
  readonly location?: {
6793
6504
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6794
6505
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6795
6506
  } | undefined;
6796
- readonly data: {};
6507
+ readonly data: {
6508
+ readonly location: {
6509
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6510
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6511
+ };
6512
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
6513
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6514
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6515
+ };
6797
6516
  } | {
6798
6517
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6799
6518
  readonly created: number;
6800
6519
  readonly metadata?: {
6801
6520
  readonly [x: string]: unknown;
6802
6521
  } | undefined;
6803
- readonly type: "mcp.resources.changed";
6522
+ readonly type: "session.renamed";
6523
+ readonly durable: {
6524
+ readonly aggregateID: string;
6525
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6526
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6527
+ };
6804
6528
  readonly location?: {
6805
6529
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6806
6530
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6807
6531
  } | undefined;
6808
6532
  readonly data: {
6809
- readonly server: string;
6533
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6534
+ readonly title: string;
6810
6535
  };
6811
6536
  } | {
6812
6537
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6814,13 +6539,21 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6814
6539
  readonly metadata?: {
6815
6540
  readonly [x: string]: unknown;
6816
6541
  } | undefined;
6817
- readonly type: "mcp.status.changed";
6542
+ readonly type: "session.metadata.updated";
6543
+ readonly durable: {
6544
+ readonly aggregateID: string;
6545
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6546
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6547
+ };
6818
6548
  readonly location?: {
6819
6549
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6820
6550
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6821
6551
  } | undefined;
6822
6552
  readonly data: {
6823
- readonly server: string;
6553
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6554
+ readonly metadata: {
6555
+ readonly [x: string]: import("effect/Schema").Json;
6556
+ };
6824
6557
  };
6825
6558
  } | {
6826
6559
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6828,25 +6561,43 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6828
6561
  readonly metadata?: {
6829
6562
  readonly [x: string]: unknown;
6830
6563
  } | undefined;
6831
- readonly type: "plugin.updated";
6564
+ readonly type: "session.permissions";
6565
+ readonly durable: {
6566
+ readonly aggregateID: string;
6567
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6568
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6569
+ };
6832
6570
  readonly location?: {
6833
6571
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6834
6572
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6835
6573
  } | undefined;
6836
- readonly data: {};
6574
+ readonly data: {
6575
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6576
+ readonly permissions: readonly {
6577
+ readonly action: string;
6578
+ readonly resource: string;
6579
+ readonly effect: "allow" | "ask" | "deny";
6580
+ }[];
6581
+ };
6837
6582
  } | {
6838
6583
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6839
6584
  readonly created: number;
6840
6585
  readonly metadata?: {
6841
6586
  readonly [x: string]: unknown;
6842
6587
  } | undefined;
6843
- readonly type: "session.idle";
6588
+ readonly type: "session.viewed";
6589
+ readonly durable: {
6590
+ readonly aggregateID: string;
6591
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6592
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6593
+ };
6844
6594
  readonly location?: {
6845
6595
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6846
6596
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6847
6597
  } | undefined;
6848
6598
  readonly data: {
6849
6599
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6600
+ readonly idle: number;
6850
6601
  };
6851
6602
  } | {
6852
6603
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6854,31 +6605,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6854
6605
  readonly metadata?: {
6855
6606
  readonly [x: string]: unknown;
6856
6607
  } | undefined;
6857
- readonly type: "session.status";
6608
+ readonly type: "session.archived";
6609
+ readonly durable: {
6610
+ readonly aggregateID: string;
6611
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6612
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6613
+ };
6858
6614
  readonly location?: {
6859
6615
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6860
6616
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6861
6617
  } | undefined;
6862
6618
  readonly data: {
6863
6619
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6864
- readonly status: {
6865
- readonly type: "idle";
6866
- } | {
6867
- readonly type: "retry";
6868
- readonly attempt: number;
6869
- readonly message: string;
6870
- readonly action?: {
6871
- readonly reason: string;
6872
- readonly provider: string;
6873
- readonly title: string;
6874
- readonly message: string;
6875
- readonly label: string;
6876
- readonly link?: string | undefined;
6877
- } | undefined;
6878
- readonly next: number;
6879
- } | {
6880
- readonly type: "busy";
6881
- };
6882
6620
  };
6883
6621
  } | {
6884
6622
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6886,7 +6624,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6886
6624
  readonly metadata?: {
6887
6625
  readonly [x: string]: unknown;
6888
6626
  } | undefined;
6889
- readonly type: "session.agent.selected";
6627
+ readonly type: "session.unarchived";
6890
6628
  readonly durable: {
6891
6629
  readonly aggregateID: string;
6892
6630
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6898,8 +6636,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6898
6636
  } | undefined;
6899
6637
  readonly data: {
6900
6638
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6901
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6902
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6903
6639
  };
6904
6640
  } | {
6905
6641
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6907,18 +6643,23 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6907
6643
  readonly metadata?: {
6908
6644
  readonly [x: string]: unknown;
6909
6645
  } | undefined;
6910
- readonly type: "session.archived";
6911
- readonly durable: {
6912
- readonly aggregateID: string;
6913
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6914
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6915
- };
6646
+ readonly type: "session.usage.updated";
6916
6647
  readonly location?: {
6917
6648
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6918
6649
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6919
6650
  } | undefined;
6920
6651
  readonly data: {
6921
6652
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6653
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
6654
+ readonly tokens: {
6655
+ readonly input: number;
6656
+ readonly output: number;
6657
+ readonly reasoning: number;
6658
+ readonly cache: {
6659
+ readonly read: number;
6660
+ readonly write: number;
6661
+ };
6662
+ };
6922
6663
  };
6923
6664
  } | {
6924
6665
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6926,7 +6667,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6926
6667
  readonly metadata?: {
6927
6668
  readonly [x: string]: unknown;
6928
6669
  } | undefined;
6929
- readonly type: "session.compaction.ended";
6670
+ readonly type: "session.deleted";
6930
6671
  readonly durable: {
6931
6672
  readonly aggregateID: string;
6932
6673
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6938,39 +6679,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6938
6679
  } | undefined;
6939
6680
  readonly data: {
6940
6681
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6941
- readonly reason: "auto" | "manual";
6942
- readonly model?: {
6943
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
6944
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6945
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6946
- } | undefined;
6947
- readonly providerState?: {
6948
- readonly [x: string]: unknown;
6949
- } | undefined;
6950
- readonly providerContext?: {
6951
- readonly version: 1;
6952
- readonly provenance: {
6953
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6954
- readonly provider: string;
6955
- readonly modelID: string;
6956
- readonly route: string;
6957
- readonly protocol: string;
6958
- readonly endpoint: string;
6959
- };
6960
- readonly messages: import("effect/Schema").Json;
6961
- } | undefined;
6962
- readonly text: string;
6963
- readonly recent: string;
6964
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
6965
- readonly tokens?: {
6966
- readonly input: number;
6967
- readonly output: number;
6968
- readonly reasoning: number;
6969
- readonly cache: {
6970
- readonly read: number;
6971
- readonly write: number;
6972
- };
6973
- } | undefined;
6974
6682
  };
6975
6683
  } | {
6976
6684
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -6978,7 +6686,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6978
6686
  readonly metadata?: {
6979
6687
  readonly [x: string]: unknown;
6980
6688
  } | undefined;
6981
- readonly type: "session.compaction.failed";
6689
+ readonly type: "session.forked";
6982
6690
  readonly durable: {
6983
6691
  readonly aggregateID: string;
6984
6692
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -6990,26 +6698,22 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6990
6698
  } | undefined;
6991
6699
  readonly data: {
6992
6700
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6993
- readonly reason: "auto" | "manual";
6994
- readonly error: {
6995
- readonly type: string;
6996
- readonly message: string;
6997
- readonly status?: number | undefined;
6998
- readonly response?: {
6999
- readonly body: string;
7000
- } | undefined;
6701
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
6702
+ readonly boundary: {
6703
+ readonly type: "before";
6704
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6705
+ } | {
6706
+ readonly type: "through";
6707
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7001
6708
  };
7002
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7003
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7004
- readonly tokens?: {
7005
- readonly input: number;
7006
- readonly output: number;
7007
- readonly reasoning: number;
7008
- readonly cache: {
7009
- readonly read: number;
7010
- readonly write: number;
7011
- };
6709
+ readonly instructions?: {
6710
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
7012
6711
  } | undefined;
6712
+ readonly instructionEntries?: readonly {
6713
+ readonly key: string;
6714
+ readonly value: import("effect/Schema").Json;
6715
+ readonly removed: boolean;
6716
+ }[] | undefined;
7013
6717
  };
7014
6718
  } | {
7015
6719
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7017,7 +6721,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7017
6721
  readonly metadata?: {
7018
6722
  readonly [x: string]: unknown;
7019
6723
  } | undefined;
7020
- readonly type: "session.compaction.started";
6724
+ readonly type: "session.inbox.delivered";
7021
6725
  readonly durable: {
7022
6726
  readonly aggregateID: string;
7023
6727
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7029,9 +6733,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7029
6733
  } | undefined;
7030
6734
  readonly data: {
7031
6735
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7032
- readonly reason: "auto" | "manual";
7033
- readonly recent: string;
7034
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
6736
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7035
6737
  };
7036
6738
  } | {
7037
6739
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7039,7 +6741,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7039
6741
  readonly metadata?: {
7040
6742
  readonly [x: string]: unknown;
7041
6743
  } | undefined;
7042
- readonly type: "session.created";
6744
+ readonly type: "session.inbox.enqueued";
7043
6745
  readonly durable: {
7044
6746
  readonly aggregateID: string;
7045
6747
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7051,30 +6753,77 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7051
6753
  } | undefined;
7052
6754
  readonly data: {
7053
6755
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7054
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7055
- readonly location: {
7056
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7057
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7058
- };
7059
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7060
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
7061
- readonly slug: string;
7062
- readonly title?: string | undefined;
7063
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
7064
- readonly model?: {
7065
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7066
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7067
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7068
- } | undefined;
7069
- readonly metadata?: {
7070
- readonly [x: string]: import("effect/Schema").Json;
7071
- } | undefined;
7072
- readonly permissions?: readonly {
7073
- readonly action: string;
7074
- readonly resource: string;
7075
- readonly effect: "allow" | "ask" | "deny";
7076
- }[] | undefined;
7077
- readonly version: string;
6756
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6757
+ readonly item: {
6758
+ readonly type: "user";
6759
+ readonly payload: {
6760
+ readonly text: string;
6761
+ readonly files?: readonly {
6762
+ readonly data: string;
6763
+ readonly mime: string;
6764
+ readonly source: {
6765
+ readonly type: "inline";
6766
+ } | {
6767
+ readonly type: "uri";
6768
+ readonly uri: string;
6769
+ };
6770
+ readonly name?: string | undefined;
6771
+ readonly description?: string | undefined;
6772
+ readonly mention?: {
6773
+ readonly start: number;
6774
+ readonly end: number;
6775
+ readonly text: string;
6776
+ } | undefined;
6777
+ }[] | undefined;
6778
+ readonly agents?: readonly {
6779
+ readonly name: string;
6780
+ readonly mention?: {
6781
+ readonly start: number;
6782
+ readonly end: number;
6783
+ readonly text: string;
6784
+ } | undefined;
6785
+ }[] | undefined;
6786
+ readonly skills?: readonly {
6787
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
6788
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
6789
+ readonly text?: string | undefined;
6790
+ readonly mention?: {
6791
+ readonly start: number;
6792
+ readonly end: number;
6793
+ readonly text: string;
6794
+ } | undefined;
6795
+ }[] | undefined;
6796
+ readonly metadata?: {
6797
+ readonly [x: string]: unknown;
6798
+ } | undefined;
6799
+ };
6800
+ readonly delivery: "queue" | "steer";
6801
+ } | {
6802
+ readonly type: "synthetic";
6803
+ readonly payload: {
6804
+ readonly text: string;
6805
+ readonly description?: string | undefined;
6806
+ readonly metadata?: {
6807
+ readonly [x: string]: unknown;
6808
+ } | undefined;
6809
+ };
6810
+ readonly delivery: "queue" | "steer";
6811
+ } | {
6812
+ readonly type: "compaction";
6813
+ readonly payload: {};
6814
+ readonly delivery: "queue" | "steer";
6815
+ } | {
6816
+ readonly type: "move";
6817
+ readonly payload: {
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
+ };
6825
+ readonly delivery: "queue" | "steer";
6826
+ };
7078
6827
  };
7079
6828
  } | {
7080
6829
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7082,7 +6831,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7082
6831
  readonly metadata?: {
7083
6832
  readonly [x: string]: unknown;
7084
6833
  } | undefined;
7085
- readonly type: "session.deleted";
6834
+ readonly type: "session.inbox.cancelled";
7086
6835
  readonly durable: {
7087
6836
  readonly aggregateID: string;
7088
6837
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7094,6 +6843,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7094
6843
  } | undefined;
7095
6844
  readonly data: {
7096
6845
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6846
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7097
6847
  };
7098
6848
  } | {
7099
6849
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7101,7 +6851,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7101
6851
  readonly metadata?: {
7102
6852
  readonly [x: string]: unknown;
7103
6853
  } | undefined;
7104
- readonly type: "session.execution.failed";
6854
+ readonly type: "session.inbox.delivery.changed";
7105
6855
  readonly durable: {
7106
6856
  readonly aggregateID: string;
7107
6857
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7113,14 +6863,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7113
6863
  } | undefined;
7114
6864
  readonly data: {
7115
6865
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7116
- readonly error: {
7117
- readonly type: string;
7118
- readonly message: string;
7119
- readonly status?: number | undefined;
7120
- readonly response?: {
7121
- readonly body: string;
7122
- } | undefined;
7123
- };
6866
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6867
+ readonly delivery: "queue" | "steer";
7124
6868
  };
7125
6869
  } | {
7126
6870
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7128,7 +6872,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7128
6872
  readonly metadata?: {
7129
6873
  readonly [x: string]: unknown;
7130
6874
  } | undefined;
7131
- readonly type: "session.execution.interrupted";
6875
+ readonly type: "session.execution.started";
7132
6876
  readonly durable: {
7133
6877
  readonly aggregateID: string;
7134
6878
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7140,7 +6884,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7140
6884
  } | undefined;
7141
6885
  readonly data: {
7142
6886
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7143
- readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
7144
6887
  };
7145
6888
  } | {
7146
6889
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7148,7 +6891,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7148
6891
  readonly metadata?: {
7149
6892
  readonly [x: string]: unknown;
7150
6893
  } | undefined;
7151
- readonly type: "session.execution.started";
6894
+ readonly type: "session.execution.succeeded";
7152
6895
  readonly durable: {
7153
6896
  readonly aggregateID: string;
7154
6897
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7167,7 +6910,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7167
6910
  readonly metadata?: {
7168
6911
  readonly [x: string]: unknown;
7169
6912
  } | undefined;
7170
- readonly type: "session.execution.succeeded";
6913
+ readonly type: "session.execution.failed";
7171
6914
  readonly durable: {
7172
6915
  readonly aggregateID: string;
7173
6916
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7179,6 +6922,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7179
6922
  } | undefined;
7180
6923
  readonly data: {
7181
6924
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6925
+ readonly error: {
6926
+ readonly type: string;
6927
+ readonly message: string;
6928
+ readonly status?: number | undefined;
6929
+ readonly response?: {
6930
+ readonly body: string;
6931
+ } | undefined;
6932
+ };
7182
6933
  };
7183
6934
  } | {
7184
6935
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7186,7 +6937,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7186
6937
  readonly metadata?: {
7187
6938
  readonly [x: string]: unknown;
7188
6939
  } | undefined;
7189
- readonly type: "session.forked";
6940
+ readonly type: "session.execution.interrupted";
7190
6941
  readonly durable: {
7191
6942
  readonly aggregateID: string;
7192
6943
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7198,22 +6949,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7198
6949
  } | undefined;
7199
6950
  readonly data: {
7200
6951
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7201
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
7202
- readonly boundary: {
7203
- readonly type: "before";
7204
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7205
- } | {
7206
- readonly type: "through";
7207
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7208
- };
7209
- readonly instructions?: {
7210
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
7211
- } | undefined;
7212
- readonly instructionEntries?: readonly {
7213
- readonly key: string;
7214
- readonly value: import("effect/Schema").Json;
7215
- readonly removed: boolean;
7216
- }[] | undefined;
6952
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
7217
6953
  };
7218
6954
  } | {
7219
6955
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7221,7 +6957,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7221
6957
  readonly metadata?: {
7222
6958
  readonly [x: string]: unknown;
7223
6959
  } | undefined;
7224
- readonly type: "session.inbox.cancelled";
6960
+ readonly type: "session.instructions.updated";
7225
6961
  readonly durable: {
7226
6962
  readonly aggregateID: string;
7227
6963
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7233,7 +6969,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7233
6969
  } | undefined;
7234
6970
  readonly data: {
7235
6971
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7236
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6972
+ readonly delta: {
6973
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
6974
+ };
6975
+ readonly text?: string | undefined;
7237
6976
  };
7238
6977
  } | {
7239
6978
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7241,7 +6980,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7241
6980
  readonly metadata?: {
7242
6981
  readonly [x: string]: unknown;
7243
6982
  } | undefined;
7244
- readonly type: "session.inbox.delivered";
6983
+ readonly type: "session.synthetic";
7245
6984
  readonly durable: {
7246
6985
  readonly aggregateID: string;
7247
6986
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7253,7 +6992,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7253
6992
  } | undefined;
7254
6993
  readonly data: {
7255
6994
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7256
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6995
+ readonly text: string;
6996
+ readonly description?: string | undefined;
6997
+ readonly metadata?: {
6998
+ readonly [x: string]: unknown;
6999
+ } | undefined;
7257
7000
  };
7258
7001
  } | {
7259
7002
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7261,7 +7004,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7261
7004
  readonly metadata?: {
7262
7005
  readonly [x: string]: unknown;
7263
7006
  } | undefined;
7264
- readonly type: "session.inbox.delivery.changed";
7007
+ readonly type: "session.skill.activated";
7265
7008
  readonly durable: {
7266
7009
  readonly aggregateID: string;
7267
7010
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7273,8 +7016,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7273
7016
  } | undefined;
7274
7017
  readonly data: {
7275
7018
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7276
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7277
- readonly delivery: "queue" | "steer";
7019
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7020
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7021
+ readonly text: string;
7278
7022
  };
7279
7023
  } | {
7280
7024
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7282,7 +7026,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7282
7026
  readonly metadata?: {
7283
7027
  readonly [x: string]: unknown;
7284
7028
  } | undefined;
7285
- readonly type: "session.inbox.enqueued";
7029
+ readonly type: "session.shell.started";
7286
7030
  readonly durable: {
7287
7031
  readonly aggregateID: string;
7288
7032
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7294,76 +7038,23 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7294
7038
  } | undefined;
7295
7039
  readonly data: {
7296
7040
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7297
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7298
- readonly item: {
7299
- readonly type: "user";
7300
- readonly payload: {
7301
- readonly text: string;
7302
- readonly files?: readonly {
7303
- readonly data: string;
7304
- readonly mime: string;
7305
- readonly source: {
7306
- readonly type: "inline";
7307
- } | {
7308
- readonly type: "uri";
7309
- readonly uri: string;
7310
- };
7311
- readonly name?: string | undefined;
7312
- readonly description?: string | undefined;
7313
- readonly mention?: {
7314
- readonly start: number;
7315
- readonly end: number;
7316
- readonly text: string;
7317
- } | undefined;
7318
- }[] | undefined;
7319
- readonly agents?: readonly {
7320
- readonly name: string;
7321
- readonly mention?: {
7322
- readonly start: number;
7323
- readonly end: number;
7324
- readonly text: string;
7325
- } | undefined;
7326
- }[] | undefined;
7327
- readonly skills?: readonly {
7328
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7329
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7330
- readonly text?: string | undefined;
7331
- readonly mention?: {
7332
- readonly start: number;
7333
- readonly end: number;
7334
- readonly text: string;
7335
- } | undefined;
7336
- }[] | undefined;
7337
- readonly metadata?: {
7338
- readonly [x: string]: unknown;
7339
- } | undefined;
7340
- };
7341
- readonly delivery: "queue" | "steer";
7342
- } | {
7343
- readonly type: "synthetic";
7344
- readonly payload: {
7345
- readonly text: string;
7346
- readonly description?: string | undefined;
7347
- readonly metadata?: {
7348
- readonly [x: string]: unknown;
7349
- } | undefined;
7041
+ readonly shell: {
7042
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7043
+ readonly status: "exited" | "killed" | "running" | "timeout";
7044
+ readonly command: string;
7045
+ readonly cwd: string;
7046
+ readonly shell: string;
7047
+ readonly file: string;
7048
+ readonly pid?: number | undefined;
7049
+ readonly exit?: number | undefined;
7050
+ readonly signal?: string | undefined;
7051
+ readonly metadata: {
7052
+ readonly [x: string]: unknown;
7350
7053
  };
7351
- readonly delivery: "queue" | "steer";
7352
- } | {
7353
- readonly type: "compaction";
7354
- readonly payload: {};
7355
- readonly delivery: "queue" | "steer";
7356
- } | {
7357
- readonly type: "move";
7358
- readonly payload: {
7359
- readonly location: {
7360
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7361
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7362
- };
7363
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7364
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7054
+ readonly time: {
7055
+ readonly started: number;
7056
+ readonly completed?: number | undefined;
7365
7057
  };
7366
- readonly delivery: "queue" | "steer";
7367
7058
  };
7368
7059
  };
7369
7060
  } | {
@@ -7372,7 +7063,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7372
7063
  readonly metadata?: {
7373
7064
  readonly [x: string]: unknown;
7374
7065
  } | undefined;
7375
- readonly type: "session.instructions.updated";
7066
+ readonly type: "session.shell.ended";
7376
7067
  readonly durable: {
7377
7068
  readonly aggregateID: string;
7378
7069
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7384,31 +7075,29 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7384
7075
  } | undefined;
7385
7076
  readonly data: {
7386
7077
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7387
- readonly delta: {
7388
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
7389
- };
7390
- readonly text?: string | undefined;
7391
- };
7392
- } | {
7393
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7394
- readonly created: number;
7395
- readonly metadata?: {
7396
- readonly [x: string]: unknown;
7397
- } | undefined;
7398
- readonly type: "session.metadata.updated";
7399
- readonly durable: {
7400
- readonly aggregateID: string;
7401
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7402
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7403
- };
7404
- readonly location?: {
7405
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7406
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7407
- } | undefined;
7408
- readonly data: {
7409
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7410
- readonly metadata: {
7411
- readonly [x: string]: import("effect/Schema").Json;
7078
+ readonly shell: {
7079
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7080
+ readonly status: "exited" | "killed" | "running" | "timeout";
7081
+ readonly command: string;
7082
+ readonly cwd: string;
7083
+ readonly shell: string;
7084
+ readonly file: string;
7085
+ readonly pid?: number | undefined;
7086
+ readonly exit?: number | undefined;
7087
+ readonly signal?: string | undefined;
7088
+ readonly metadata: {
7089
+ readonly [x: string]: unknown;
7090
+ };
7091
+ readonly time: {
7092
+ readonly started: number;
7093
+ readonly completed?: number | undefined;
7094
+ };
7095
+ };
7096
+ readonly output: {
7097
+ readonly output: string;
7098
+ readonly cursor: number;
7099
+ readonly size: number;
7100
+ readonly truncated: boolean;
7412
7101
  };
7413
7102
  };
7414
7103
  } | {
@@ -7417,7 +7106,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7417
7106
  readonly metadata?: {
7418
7107
  readonly [x: string]: unknown;
7419
7108
  } | undefined;
7420
- readonly type: "session.model.selected";
7109
+ readonly type: "session.step.started";
7421
7110
  readonly durable: {
7422
7111
  readonly aggregateID: string;
7423
7112
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7429,16 +7118,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7429
7118
  } | undefined;
7430
7119
  readonly data: {
7431
7120
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7121
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7122
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7432
7123
  readonly model: {
7433
7124
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7434
7125
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7435
7126
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7436
7127
  };
7437
- readonly previous?: {
7438
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7439
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7440
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7441
- } | undefined;
7128
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7129
+ readonly started: number;
7442
7130
  };
7443
7131
  } | {
7444
7132
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7446,7 +7134,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7446
7134
  readonly metadata?: {
7447
7135
  readonly [x: string]: unknown;
7448
7136
  } | undefined;
7449
- readonly type: "session.moved";
7137
+ readonly type: "session.step.streamed";
7450
7138
  readonly durable: {
7451
7139
  readonly aggregateID: string;
7452
7140
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7457,13 +7145,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7457
7145
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7458
7146
  } | undefined;
7459
7147
  readonly data: {
7460
- readonly location: {
7461
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7462
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7463
- };
7464
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
7465
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
7466
7148
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7149
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7467
7150
  };
7468
7151
  } | {
7469
7152
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7471,7 +7154,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7471
7154
  readonly metadata?: {
7472
7155
  readonly [x: string]: unknown;
7473
7156
  } | undefined;
7474
- readonly type: "session.permissions";
7157
+ readonly type: "session.step.ended";
7475
7158
  readonly durable: {
7476
7159
  readonly aggregateID: string;
7477
7160
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7483,11 +7166,24 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7483
7166
  } | undefined;
7484
7167
  readonly data: {
7485
7168
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7486
- readonly permissions: readonly {
7487
- readonly action: string;
7488
- readonly resource: string;
7489
- readonly effect: "allow" | "ask" | "deny";
7490
- }[];
7169
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7170
+ readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7171
+ readonly rawFinish?: string | undefined;
7172
+ readonly native?: {
7173
+ readonly [x: string]: unknown;
7174
+ } | undefined;
7175
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7176
+ readonly tokens: {
7177
+ readonly input: number;
7178
+ readonly output: number;
7179
+ readonly reasoning: number;
7180
+ readonly cache: {
7181
+ readonly read: number;
7182
+ readonly write: number;
7183
+ };
7184
+ };
7185
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7186
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7491
7187
  };
7492
7188
  } | {
7493
7189
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7495,7 +7191,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7495
7191
  readonly metadata?: {
7496
7192
  readonly [x: string]: unknown;
7497
7193
  } | undefined;
7498
- readonly type: "session.reasoning.ended";
7194
+ readonly type: "session.step.failed";
7499
7195
  readonly durable: {
7500
7196
  readonly aggregateID: string;
7501
7197
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7508,11 +7204,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7508
7204
  readonly data: {
7509
7205
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7510
7206
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7511
- readonly ordinal: number;
7512
- readonly text: string;
7513
- readonly state?: {
7207
+ readonly error: {
7208
+ readonly type: string;
7209
+ readonly message: string;
7210
+ readonly status?: number | undefined;
7211
+ readonly response?: {
7212
+ readonly body: string;
7213
+ } | undefined;
7214
+ };
7215
+ readonly finish?: "content-filter" | undefined;
7216
+ readonly rawFinish?: string | undefined;
7217
+ readonly native?: {
7514
7218
  readonly [x: string]: unknown;
7515
7219
  } | undefined;
7220
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7221
+ readonly tokens?: {
7222
+ readonly input: number;
7223
+ readonly output: number;
7224
+ readonly reasoning: number;
7225
+ readonly cache: {
7226
+ readonly read: number;
7227
+ readonly write: number;
7228
+ };
7229
+ } | undefined;
7230
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7231
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7516
7232
  };
7517
7233
  } | {
7518
7234
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7520,7 +7236,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7520
7236
  readonly metadata?: {
7521
7237
  readonly [x: string]: unknown;
7522
7238
  } | undefined;
7523
- readonly type: "session.reasoning.started";
7239
+ readonly type: "session.text.started";
7524
7240
  readonly durable: {
7525
7241
  readonly aggregateID: string;
7526
7242
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7534,9 +7250,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7534
7250
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7535
7251
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7536
7252
  readonly ordinal: number;
7537
- readonly state?: {
7538
- readonly [x: string]: unknown;
7539
- } | undefined;
7540
7253
  };
7541
7254
  } | {
7542
7255
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7544,19 +7257,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7544
7257
  readonly metadata?: {
7545
7258
  readonly [x: string]: unknown;
7546
7259
  } | undefined;
7547
- readonly type: "session.renamed";
7548
- readonly durable: {
7549
- readonly aggregateID: string;
7550
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7551
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7552
- };
7260
+ readonly type: "session.text.delta";
7553
7261
  readonly location?: {
7554
7262
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7555
7263
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7556
7264
  } | undefined;
7557
7265
  readonly data: {
7558
7266
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7559
- readonly title: string;
7267
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7268
+ readonly ordinal: number;
7269
+ readonly delta: string;
7560
7270
  };
7561
7271
  } | {
7562
7272
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7564,7 +7274,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7564
7274
  readonly metadata?: {
7565
7275
  readonly [x: string]: unknown;
7566
7276
  } | undefined;
7567
- readonly type: "session.retry.scheduled";
7277
+ readonly type: "session.text.ended";
7568
7278
  readonly durable: {
7569
7279
  readonly aggregateID: string;
7570
7280
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7577,16 +7287,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7577
7287
  readonly data: {
7578
7288
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7579
7289
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7580
- readonly attempt: number;
7581
- readonly at: number;
7582
- readonly error: {
7583
- readonly type: string;
7584
- readonly message: string;
7585
- readonly status?: number | undefined;
7586
- readonly response?: {
7587
- readonly body: string;
7588
- } | undefined;
7589
- };
7290
+ readonly ordinal: number;
7291
+ readonly text: string;
7292
+ readonly native?: {
7293
+ readonly [x: string]: unknown;
7294
+ } | undefined;
7590
7295
  };
7591
7296
  } | {
7592
7297
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7594,7 +7299,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7594
7299
  readonly metadata?: {
7595
7300
  readonly [x: string]: unknown;
7596
7301
  } | undefined;
7597
- readonly type: "session.revert.cleared";
7302
+ readonly type: "session.reasoning.started";
7598
7303
  readonly durable: {
7599
7304
  readonly aggregateID: string;
7600
7305
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7606,6 +7311,11 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7606
7311
  } | undefined;
7607
7312
  readonly data: {
7608
7313
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7314
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7315
+ readonly ordinal: number;
7316
+ readonly native?: {
7317
+ readonly [x: string]: unknown;
7318
+ } | undefined;
7609
7319
  };
7610
7320
  } | {
7611
7321
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7613,19 +7323,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7613
7323
  readonly metadata?: {
7614
7324
  readonly [x: string]: unknown;
7615
7325
  } | undefined;
7616
- readonly type: "session.revert.committed";
7617
- readonly durable: {
7618
- readonly aggregateID: string;
7619
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7620
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7621
- };
7326
+ readonly type: "session.reasoning.delta";
7622
7327
  readonly location?: {
7623
7328
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7624
7329
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7625
7330
  } | undefined;
7626
7331
  readonly data: {
7627
7332
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7628
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
7333
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7334
+ readonly ordinal: number;
7335
+ readonly delta: string;
7629
7336
  };
7630
7337
  } | {
7631
7338
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7633,7 +7340,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7633
7340
  readonly metadata?: {
7634
7341
  readonly [x: string]: unknown;
7635
7342
  } | undefined;
7636
- readonly type: "session.revert.staged";
7343
+ readonly type: "session.reasoning.ended";
7637
7344
  readonly durable: {
7638
7345
  readonly aggregateID: string;
7639
7346
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7645,18 +7352,12 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7645
7352
  } | undefined;
7646
7353
  readonly data: {
7647
7354
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7648
- readonly revert: {
7649
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7650
- readonly partID?: string | undefined;
7651
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7652
- readonly files?: readonly {
7653
- readonly file: string;
7654
- readonly patch: string;
7655
- readonly additions: number;
7656
- readonly deletions: number;
7657
- readonly status: "added" | "deleted" | "modified";
7658
- }[] | undefined;
7659
- };
7355
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7356
+ readonly ordinal: number;
7357
+ readonly text: string;
7358
+ readonly native?: {
7359
+ readonly [x: string]: unknown;
7360
+ } | undefined;
7660
7361
  };
7661
7362
  } | {
7662
7363
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7664,7 +7365,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7664
7365
  readonly metadata?: {
7665
7366
  readonly [x: string]: unknown;
7666
7367
  } | undefined;
7667
- readonly type: "session.shell.ended";
7368
+ readonly type: "session.tool.input.started";
7668
7369
  readonly durable: {
7669
7370
  readonly aggregateID: string;
7670
7371
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7676,30 +7377,9 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7676
7377
  } | undefined;
7677
7378
  readonly data: {
7678
7379
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7679
- readonly shell: {
7680
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7681
- readonly status: "exited" | "killed" | "running" | "timeout";
7682
- readonly command: string;
7683
- readonly cwd: string;
7684
- readonly shell: string;
7685
- readonly file: string;
7686
- readonly pid?: number | undefined;
7687
- readonly exit?: number | undefined;
7688
- readonly signal?: string | undefined;
7689
- readonly metadata: {
7690
- readonly [x: string]: unknown;
7691
- };
7692
- readonly time: {
7693
- readonly started: number;
7694
- readonly completed?: number | undefined;
7695
- };
7696
- };
7697
- readonly output: {
7698
- readonly output: string;
7699
- readonly cursor: number;
7700
- readonly size: number;
7701
- readonly truncated: boolean;
7702
- };
7380
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7381
+ readonly id: string;
7382
+ readonly name: string;
7703
7383
  };
7704
7384
  } | {
7705
7385
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7707,36 +7387,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7707
7387
  readonly metadata?: {
7708
7388
  readonly [x: string]: unknown;
7709
7389
  } | undefined;
7710
- readonly type: "session.shell.started";
7711
- readonly durable: {
7712
- readonly aggregateID: string;
7713
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7714
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7715
- };
7390
+ readonly type: "session.tool.input.delta";
7716
7391
  readonly location?: {
7717
7392
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7718
7393
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7719
7394
  } | undefined;
7720
7395
  readonly data: {
7721
7396
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7722
- readonly shell: {
7723
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
7724
- readonly status: "exited" | "killed" | "running" | "timeout";
7725
- readonly command: string;
7726
- readonly cwd: string;
7727
- readonly shell: string;
7728
- readonly file: string;
7729
- readonly pid?: number | undefined;
7730
- readonly exit?: number | undefined;
7731
- readonly signal?: string | undefined;
7732
- readonly metadata: {
7733
- readonly [x: string]: unknown;
7734
- };
7735
- readonly time: {
7736
- readonly started: number;
7737
- readonly completed?: number | undefined;
7738
- };
7739
- };
7397
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7398
+ readonly id: string;
7399
+ readonly delta: string;
7740
7400
  };
7741
7401
  } | {
7742
7402
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7744,7 +7404,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7744
7404
  readonly metadata?: {
7745
7405
  readonly [x: string]: unknown;
7746
7406
  } | undefined;
7747
- readonly type: "session.skill.activated";
7407
+ readonly type: "session.tool.input.ended";
7748
7408
  readonly durable: {
7749
7409
  readonly aggregateID: string;
7750
7410
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7756,8 +7416,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7756
7416
  } | undefined;
7757
7417
  readonly data: {
7758
7418
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7759
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
7760
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
7419
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7420
+ readonly id: string;
7761
7421
  readonly text: string;
7762
7422
  };
7763
7423
  } | {
@@ -7766,7 +7426,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7766
7426
  readonly metadata?: {
7767
7427
  readonly [x: string]: unknown;
7768
7428
  } | undefined;
7769
- readonly type: "session.step.ended";
7429
+ readonly type: "session.tool.called";
7770
7430
  readonly durable: {
7771
7431
  readonly aggregateID: string;
7772
7432
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7779,23 +7439,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7779
7439
  readonly data: {
7780
7440
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7781
7441
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7782
- readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
7783
- readonly rawFinish?: string | undefined;
7784
- readonly providerState?: {
7442
+ readonly id: string;
7443
+ readonly input: {
7785
7444
  readonly [x: string]: unknown;
7786
- } | undefined;
7787
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
7788
- readonly tokens: {
7789
- readonly input: number;
7790
- readonly output: number;
7791
- readonly reasoning: number;
7792
- readonly cache: {
7793
- readonly read: number;
7794
- readonly write: number;
7795
- };
7796
7445
  };
7797
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7798
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7446
+ readonly executed: boolean;
7447
+ readonly native?: {
7448
+ readonly [x: string]: unknown;
7449
+ } | undefined;
7799
7450
  };
7800
7451
  } | {
7801
7452
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7803,12 +7454,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7803
7454
  readonly metadata?: {
7804
7455
  readonly [x: string]: unknown;
7805
7456
  } | undefined;
7806
- readonly type: "session.step.failed";
7807
- readonly durable: {
7808
- readonly aggregateID: string;
7809
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7810
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7811
- };
7457
+ readonly type: "session.tool.progress";
7812
7458
  readonly location?: {
7813
7459
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7814
7460
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -7816,31 +7462,10 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7816
7462
  readonly data: {
7817
7463
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7818
7464
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7819
- readonly error: {
7820
- readonly type: string;
7821
- readonly message: string;
7822
- readonly status?: number | undefined;
7823
- readonly response?: {
7824
- readonly body: string;
7825
- } | undefined;
7465
+ readonly id: string;
7466
+ readonly metadata: {
7467
+ readonly [x: string]: import("effect/Schema").Json;
7826
7468
  };
7827
- readonly finish?: "content-filter" | undefined;
7828
- readonly rawFinish?: string | undefined;
7829
- readonly providerState?: {
7830
- readonly [x: string]: unknown;
7831
- } | undefined;
7832
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7833
- readonly tokens?: {
7834
- readonly input: number;
7835
- readonly output: number;
7836
- readonly reasoning: number;
7837
- readonly cache: {
7838
- readonly read: number;
7839
- readonly write: number;
7840
- };
7841
- } | undefined;
7842
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7843
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7844
7469
  };
7845
7470
  } | {
7846
7471
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7848,7 +7473,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7848
7473
  readonly metadata?: {
7849
7474
  readonly [x: string]: unknown;
7850
7475
  } | undefined;
7851
- readonly type: "session.step.started";
7476
+ readonly type: "session.tool.success";
7852
7477
  readonly durable: {
7853
7478
  readonly aggregateID: string;
7854
7479
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7861,14 +7486,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7861
7486
  readonly data: {
7862
7487
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7863
7488
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7864
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7865
- readonly model: {
7866
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7867
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7868
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7869
- };
7870
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7871
- readonly started: number;
7489
+ readonly id: string;
7490
+ readonly content: readonly [{
7491
+ readonly type: "text";
7492
+ readonly text: string;
7493
+ } | {
7494
+ readonly type: "file";
7495
+ readonly uri: string;
7496
+ readonly mime: string;
7497
+ readonly name?: string | undefined;
7498
+ }, ...({
7499
+ readonly type: "text";
7500
+ readonly text: string;
7501
+ } | {
7502
+ readonly type: "file";
7503
+ readonly uri: string;
7504
+ readonly mime: string;
7505
+ readonly name?: string | undefined;
7506
+ })[]];
7507
+ readonly metadata?: {
7508
+ readonly [x: string]: import("effect/Schema").Json;
7509
+ } | undefined;
7510
+ readonly executed: boolean;
7511
+ readonly native?: {
7512
+ readonly [x: string]: unknown;
7513
+ } | undefined;
7872
7514
  };
7873
7515
  } | {
7874
7516
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7876,7 +7518,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7876
7518
  readonly metadata?: {
7877
7519
  readonly [x: string]: unknown;
7878
7520
  } | undefined;
7879
- readonly type: "session.step.streamed";
7521
+ readonly type: "session.tool.failed";
7880
7522
  readonly durable: {
7881
7523
  readonly aggregateID: string;
7882
7524
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7889,6 +7531,39 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7889
7531
  readonly data: {
7890
7532
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7891
7533
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7534
+ readonly id: string;
7535
+ readonly error: {
7536
+ readonly type: string;
7537
+ readonly message: string;
7538
+ readonly status?: number | undefined;
7539
+ readonly response?: {
7540
+ readonly body: string;
7541
+ } | undefined;
7542
+ };
7543
+ readonly content?: readonly [{
7544
+ readonly type: "text";
7545
+ readonly text: string;
7546
+ } | {
7547
+ readonly type: "file";
7548
+ readonly uri: string;
7549
+ readonly mime: string;
7550
+ readonly name?: string | undefined;
7551
+ }, ...({
7552
+ readonly type: "text";
7553
+ readonly text: string;
7554
+ } | {
7555
+ readonly type: "file";
7556
+ readonly uri: string;
7557
+ readonly mime: string;
7558
+ readonly name?: string | undefined;
7559
+ })[]] | undefined;
7560
+ readonly metadata?: {
7561
+ readonly [x: string]: import("effect/Schema").Json;
7562
+ } | undefined;
7563
+ readonly executed: boolean;
7564
+ readonly native?: {
7565
+ readonly [x: string]: unknown;
7566
+ } | undefined;
7892
7567
  };
7893
7568
  } | {
7894
7569
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7896,7 +7571,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7896
7571
  readonly metadata?: {
7897
7572
  readonly [x: string]: unknown;
7898
7573
  } | undefined;
7899
- readonly type: "session.synthetic";
7574
+ readonly type: "session.retry.scheduled";
7900
7575
  readonly durable: {
7901
7576
  readonly aggregateID: string;
7902
7577
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7908,11 +7583,17 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7908
7583
  } | undefined;
7909
7584
  readonly data: {
7910
7585
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7911
- readonly text: string;
7912
- readonly description?: string | undefined;
7913
- readonly metadata?: {
7914
- readonly [x: string]: unknown;
7915
- } | undefined;
7586
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7587
+ readonly attempt: number;
7588
+ readonly at: number;
7589
+ readonly error: {
7590
+ readonly type: string;
7591
+ readonly message: string;
7592
+ readonly status?: number | undefined;
7593
+ readonly response?: {
7594
+ readonly body: string;
7595
+ } | undefined;
7596
+ };
7916
7597
  };
7917
7598
  } | {
7918
7599
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7920,7 +7601,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7920
7601
  readonly metadata?: {
7921
7602
  readonly [x: string]: unknown;
7922
7603
  } | undefined;
7923
- readonly type: "session.text.ended";
7604
+ readonly type: "session.compaction.started";
7924
7605
  readonly durable: {
7925
7606
  readonly aggregateID: string;
7926
7607
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7932,12 +7613,8 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7932
7613
  } | undefined;
7933
7614
  readonly data: {
7934
7615
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7935
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7936
- readonly ordinal: number;
7937
- readonly text: string;
7938
- readonly state?: {
7939
- readonly [x: string]: unknown;
7940
- } | undefined;
7616
+ readonly reason: "auto" | "manual";
7617
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7941
7618
  };
7942
7619
  } | {
7943
7620
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7945,20 +7622,14 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7945
7622
  readonly metadata?: {
7946
7623
  readonly [x: string]: unknown;
7947
7624
  } | undefined;
7948
- readonly type: "session.text.started";
7949
- readonly durable: {
7950
- readonly aggregateID: string;
7951
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7952
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7953
- };
7625
+ readonly type: "session.compaction.delta";
7954
7626
  readonly location?: {
7955
7627
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7956
7628
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7957
7629
  } | undefined;
7958
7630
  readonly data: {
7959
7631
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7960
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7961
- readonly ordinal: number;
7632
+ readonly text: string;
7962
7633
  };
7963
7634
  } | {
7964
7635
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7966,7 +7637,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7966
7637
  readonly metadata?: {
7967
7638
  readonly [x: string]: unknown;
7968
7639
  } | undefined;
7969
- readonly type: "session.tool.called";
7640
+ readonly type: "session.compaction.ended";
7970
7641
  readonly durable: {
7971
7642
  readonly aggregateID: string;
7972
7643
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -7978,15 +7649,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7978
7649
  } | undefined;
7979
7650
  readonly data: {
7980
7651
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7981
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7982
- readonly id: string;
7983
- readonly input: {
7984
- readonly [x: string]: unknown;
7985
- };
7986
- readonly executed: boolean;
7987
- readonly state?: {
7652
+ readonly reason: "auto" | "manual";
7653
+ readonly model?: {
7654
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7655
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7656
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7657
+ } | undefined;
7658
+ readonly native?: {
7988
7659
  readonly [x: string]: unknown;
7989
7660
  } | undefined;
7661
+ readonly text: string;
7662
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7663
+ readonly tokens?: {
7664
+ readonly input: number;
7665
+ readonly output: number;
7666
+ readonly reasoning: number;
7667
+ readonly cache: {
7668
+ readonly read: number;
7669
+ readonly write: number;
7670
+ };
7671
+ } | undefined;
7990
7672
  };
7991
7673
  } | {
7992
7674
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -7994,7 +7676,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7994
7676
  readonly metadata?: {
7995
7677
  readonly [x: string]: unknown;
7996
7678
  } | undefined;
7997
- readonly type: "session.tool.failed";
7679
+ readonly type: "session.compaction.failed";
7998
7680
  readonly durable: {
7999
7681
  readonly aggregateID: string;
8000
7682
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -8006,8 +7688,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8006
7688
  } | undefined;
8007
7689
  readonly data: {
8008
7690
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8009
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8010
- readonly id: string;
7691
+ readonly reason: "auto" | "manual";
8011
7692
  readonly error: {
8012
7693
  readonly type: string;
8013
7694
  readonly message: string;
@@ -8016,29 +7697,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8016
7697
  readonly body: string;
8017
7698
  } | undefined;
8018
7699
  };
8019
- readonly content?: readonly [{
8020
- readonly type: "text";
8021
- readonly text: string;
8022
- } | {
8023
- readonly type: "file";
8024
- readonly uri: string;
8025
- readonly mime: string;
8026
- readonly name?: string | undefined;
8027
- }, ...({
8028
- readonly type: "text";
8029
- readonly text: string;
8030
- } | {
8031
- readonly type: "file";
8032
- readonly uri: string;
8033
- readonly mime: string;
8034
- readonly name?: string | undefined;
8035
- })[]] | undefined;
8036
- readonly metadata?: {
8037
- readonly [x: string]: import("effect/Schema").Json;
8038
- } | undefined;
8039
- readonly executed: boolean;
8040
- readonly resultState?: {
8041
- readonly [x: string]: unknown;
7700
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7701
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7702
+ readonly tokens?: {
7703
+ readonly input: number;
7704
+ readonly output: number;
7705
+ readonly reasoning: number;
7706
+ readonly cache: {
7707
+ readonly read: number;
7708
+ readonly write: number;
7709
+ };
8042
7710
  } | undefined;
8043
7711
  };
8044
7712
  } | {
@@ -8047,7 +7715,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8047
7715
  readonly metadata?: {
8048
7716
  readonly [x: string]: unknown;
8049
7717
  } | undefined;
8050
- readonly type: "session.tool.input.ended";
7718
+ readonly type: "session.revert.cleared";
8051
7719
  readonly durable: {
8052
7720
  readonly aggregateID: string;
8053
7721
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -8059,9 +7727,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8059
7727
  } | undefined;
8060
7728
  readonly data: {
8061
7729
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8062
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8063
- readonly id: string;
8064
- readonly text: string;
8065
7730
  };
8066
7731
  } | {
8067
7732
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8069,7 +7734,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8069
7734
  readonly metadata?: {
8070
7735
  readonly [x: string]: unknown;
8071
7736
  } | undefined;
8072
- readonly type: "session.tool.input.started";
7737
+ readonly type: "session.revert.committed";
8073
7738
  readonly durable: {
8074
7739
  readonly aggregateID: string;
8075
7740
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -8081,9 +7746,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8081
7746
  } | undefined;
8082
7747
  readonly data: {
8083
7748
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8084
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8085
- readonly id: string;
8086
- readonly name: string;
7749
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
8087
7750
  };
8088
7751
  } | {
8089
7752
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8091,7 +7754,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8091
7754
  readonly metadata?: {
8092
7755
  readonly [x: string]: unknown;
8093
7756
  } | undefined;
8094
- readonly type: "session.tool.success";
7757
+ readonly type: "session.revert.staged";
8095
7758
  readonly durable: {
8096
7759
  readonly aggregateID: string;
8097
7760
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -8103,32 +7766,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8103
7766
  } | undefined;
8104
7767
  readonly data: {
8105
7768
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8106
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8107
- readonly id: string;
8108
- readonly content: readonly [{
8109
- readonly type: "text";
8110
- readonly text: string;
8111
- } | {
8112
- readonly type: "file";
8113
- readonly uri: string;
8114
- readonly mime: string;
8115
- readonly name?: string | undefined;
8116
- }, ...({
8117
- readonly type: "text";
8118
- readonly text: string;
8119
- } | {
8120
- readonly type: "file";
8121
- readonly uri: string;
8122
- readonly mime: string;
8123
- readonly name?: string | undefined;
8124
- })[]];
8125
- readonly metadata?: {
8126
- readonly [x: string]: import("effect/Schema").Json;
8127
- } | undefined;
8128
- readonly executed: boolean;
8129
- readonly resultState?: {
8130
- readonly [x: string]: unknown;
8131
- } | undefined;
7769
+ readonly revert: {
7770
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7771
+ readonly partID?: string | undefined;
7772
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7773
+ readonly files?: readonly {
7774
+ readonly file: string;
7775
+ readonly patch: string;
7776
+ readonly additions: number;
7777
+ readonly deletions: number;
7778
+ readonly status: "added" | "deleted" | "modified";
7779
+ }[] | undefined;
7780
+ };
8132
7781
  };
8133
7782
  } | {
8134
7783
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8136,53 +7785,37 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8136
7785
  readonly metadata?: {
8137
7786
  readonly [x: string]: unknown;
8138
7787
  } | undefined;
8139
- readonly type: "session.unarchived";
8140
- readonly durable: {
8141
- readonly aggregateID: string;
8142
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8143
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8144
- };
7788
+ readonly type: "command.updated";
8145
7789
  readonly location?: {
8146
7790
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8147
7791
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8148
7792
  } | undefined;
8149
- readonly data: {
8150
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8151
- };
7793
+ readonly data: {};
8152
7794
  } | {
8153
7795
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8154
7796
  readonly created: number;
8155
7797
  readonly metadata?: {
8156
7798
  readonly [x: string]: unknown;
8157
7799
  } | undefined;
8158
- readonly type: "session.viewed";
8159
- readonly durable: {
8160
- readonly aggregateID: string;
8161
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
8162
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
8163
- };
7800
+ readonly type: "config.updated";
8164
7801
  readonly location?: {
8165
7802
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8166
7803
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8167
7804
  } | undefined;
8168
- readonly data: {
8169
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8170
- readonly idle: number;
8171
- };
7805
+ readonly data: {};
8172
7806
  } | {
8173
7807
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8174
7808
  readonly created: number;
8175
7809
  readonly metadata?: {
8176
7810
  readonly [x: string]: unknown;
8177
7811
  } | undefined;
8178
- readonly type: "session.compaction.delta";
7812
+ readonly type: "mcp.resources.changed";
8179
7813
  readonly location?: {
8180
7814
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8181
7815
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8182
7816
  } | undefined;
8183
7817
  readonly data: {
8184
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8185
- readonly text: string;
7818
+ readonly server: string;
8186
7819
  };
8187
7820
  } | {
8188
7821
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8190,16 +7823,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8190
7823
  readonly metadata?: {
8191
7824
  readonly [x: string]: unknown;
8192
7825
  } | undefined;
8193
- readonly type: "session.reasoning.delta";
7826
+ readonly type: "mcp.status.changed";
8194
7827
  readonly location?: {
8195
7828
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8196
7829
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8197
7830
  } | undefined;
8198
7831
  readonly data: {
8199
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8200
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8201
- readonly ordinal: number;
8202
- readonly delta: string;
7832
+ readonly server: string;
8203
7833
  };
8204
7834
  } | {
8205
7835
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8207,33 +7837,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8207
7837
  readonly metadata?: {
8208
7838
  readonly [x: string]: unknown;
8209
7839
  } | undefined;
8210
- readonly type: "session.text.delta";
7840
+ readonly type: "plugin.updated";
8211
7841
  readonly location?: {
8212
7842
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8213
7843
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8214
7844
  } | undefined;
8215
- readonly data: {
8216
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8217
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8218
- readonly ordinal: number;
8219
- readonly delta: string;
8220
- };
7845
+ readonly data: {};
8221
7846
  } | {
8222
7847
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8223
7848
  readonly created: number;
8224
7849
  readonly metadata?: {
8225
7850
  readonly [x: string]: unknown;
8226
7851
  } | undefined;
8227
- readonly type: "session.tool.input.delta";
7852
+ readonly type: "tui.command.execute";
8228
7853
  readonly location?: {
8229
7854
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8230
7855
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8231
7856
  } | undefined;
8232
7857
  readonly data: {
8233
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8234
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8235
- readonly id: string;
8236
- readonly delta: string;
7858
+ readonly command: string;
8237
7859
  };
8238
7860
  } | {
8239
7861
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8241,18 +7863,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8241
7863
  readonly metadata?: {
8242
7864
  readonly [x: string]: unknown;
8243
7865
  } | undefined;
8244
- readonly type: "session.tool.progress";
7866
+ readonly type: "tui.prompt.append";
8245
7867
  readonly location?: {
8246
7868
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8247
7869
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8248
7870
  } | undefined;
8249
7871
  readonly data: {
8250
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8251
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
8252
- readonly id: string;
8253
- readonly metadata: {
8254
- readonly [x: string]: import("effect/Schema").Json;
8255
- };
7872
+ readonly text: string;
8256
7873
  };
8257
7874
  } | {
8258
7875
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8260,23 +7877,13 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8260
7877
  readonly metadata?: {
8261
7878
  readonly [x: string]: unknown;
8262
7879
  } | undefined;
8263
- readonly type: "session.usage.updated";
7880
+ readonly type: "tui.session.select";
8264
7881
  readonly location?: {
8265
7882
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8266
7883
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8267
7884
  } | undefined;
8268
7885
  readonly data: {
8269
7886
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8270
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
8271
- readonly tokens: {
8272
- readonly input: number;
8273
- readonly output: number;
8274
- readonly reasoning: number;
8275
- readonly cache: {
8276
- readonly read: number;
8277
- readonly write: number;
8278
- };
8279
- };
8280
7887
  };
8281
7888
  } | {
8282
7889
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8284,12 +7891,16 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8284
7891
  readonly metadata?: {
8285
7892
  readonly [x: string]: unknown;
8286
7893
  } | undefined;
8287
- readonly type: `rpc.${string}`;
8288
- readonly location: {
7894
+ readonly type: "tui.toast.show";
7895
+ readonly location?: {
8289
7896
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8290
- };
7897
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7898
+ } | undefined;
8291
7899
  readonly data: {
8292
- readonly [x: string]: unknown;
7900
+ readonly title?: string | undefined;
7901
+ readonly message: string;
7902
+ readonly variant: "error" | "info" | "success" | "warning";
7903
+ readonly duration: number;
8293
7904
  };
8294
7905
  } | {
8295
7906
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8315,33 +7926,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8315
7926
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8316
7927
  } | undefined;
8317
7928
  readonly data: {};
8318
- } | {
8319
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8320
- readonly created: number;
8321
- readonly metadata?: {
8322
- readonly [x: string]: unknown;
8323
- } | undefined;
8324
- readonly type: "credential.switched";
8325
- readonly location?: {
8326
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8327
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8328
- } | undefined;
8329
- readonly data: {
8330
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
8331
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
8332
- };
8333
- } | {
8334
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8335
- readonly created: number;
8336
- readonly metadata?: {
8337
- readonly [x: string]: unknown;
8338
- } | undefined;
8339
- readonly type: "credential.updated";
8340
- readonly location?: {
8341
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8342
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8343
- } | undefined;
8344
- readonly data: {};
8345
7929
  } | {
8346
7930
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8347
7931
  readonly created: number;
@@ -8658,25 +8242,44 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8658
8242
  readonly metadata?: {
8659
8243
  readonly [x: string]: unknown;
8660
8244
  } | undefined;
8661
- readonly type: "websearch.updated";
8245
+ readonly type: "shell.created";
8662
8246
  readonly location?: {
8663
8247
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8664
8248
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8665
8249
  } | undefined;
8666
- readonly data: {};
8250
+ readonly data: {
8251
+ readonly info: {
8252
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8253
+ readonly status: "exited" | "killed" | "running" | "timeout";
8254
+ readonly command: string;
8255
+ readonly cwd: string;
8256
+ readonly shell: string;
8257
+ readonly file: string;
8258
+ readonly pid?: number | undefined;
8259
+ readonly exit?: number | undefined;
8260
+ readonly signal?: string | undefined;
8261
+ readonly metadata: {
8262
+ readonly [x: string]: unknown;
8263
+ };
8264
+ readonly time: {
8265
+ readonly started: number;
8266
+ readonly completed?: number | undefined;
8267
+ };
8268
+ };
8269
+ };
8667
8270
  } | {
8668
8271
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8669
8272
  readonly created: number;
8670
8273
  readonly metadata?: {
8671
8274
  readonly [x: string]: unknown;
8672
8275
  } | undefined;
8673
- readonly type: "tui.command.execute";
8276
+ readonly type: "shell.deleted";
8674
8277
  readonly location?: {
8675
8278
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8676
8279
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8677
8280
  } | undefined;
8678
8281
  readonly data: {
8679
- readonly command: string;
8282
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8680
8283
  };
8681
8284
  } | {
8682
8285
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8684,13 +8287,15 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8684
8287
  readonly metadata?: {
8685
8288
  readonly [x: string]: unknown;
8686
8289
  } | undefined;
8687
- readonly type: "tui.prompt.append";
8290
+ readonly type: "shell.exited";
8688
8291
  readonly location?: {
8689
8292
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8690
8293
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8691
8294
  } | undefined;
8692
8295
  readonly data: {
8693
- readonly text: string;
8296
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
8297
+ readonly exit?: number | undefined;
8298
+ readonly status: "exited" | "killed" | "running" | "timeout";
8694
8299
  };
8695
8300
  } | {
8696
8301
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8698,7 +8303,262 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8698
8303
  readonly metadata?: {
8699
8304
  readonly [x: string]: unknown;
8700
8305
  } | undefined;
8701
- readonly type: "tui.session.select";
8306
+ readonly type: "form.cancelled";
8307
+ readonly location?: {
8308
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8309
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8310
+ } | undefined;
8311
+ readonly data: {
8312
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8313
+ readonly sessionID: string;
8314
+ };
8315
+ } | {
8316
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8317
+ readonly created: number;
8318
+ readonly metadata?: {
8319
+ readonly [x: string]: unknown;
8320
+ } | undefined;
8321
+ readonly type: "form.created";
8322
+ readonly location?: {
8323
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8324
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8325
+ } | undefined;
8326
+ readonly data: {
8327
+ readonly form: {
8328
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8329
+ readonly sessionID: string;
8330
+ readonly title: string;
8331
+ readonly metadata?: {
8332
+ readonly [x: string]: unknown;
8333
+ } | undefined;
8334
+ readonly fields: readonly [{
8335
+ readonly key: string;
8336
+ readonly title?: string | undefined;
8337
+ readonly description?: string | undefined;
8338
+ readonly required?: boolean | undefined;
8339
+ readonly hidden?: boolean | undefined;
8340
+ readonly when?: readonly {
8341
+ readonly key: string;
8342
+ readonly op: "eq" | "neq";
8343
+ readonly value: string | number | boolean;
8344
+ }[] | undefined;
8345
+ readonly type: "string";
8346
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8347
+ readonly minLength?: number | undefined;
8348
+ readonly maxLength?: number | undefined;
8349
+ readonly pattern?: string | undefined;
8350
+ readonly placeholder?: string | undefined;
8351
+ readonly default?: string | undefined;
8352
+ readonly options?: readonly {
8353
+ readonly value: string;
8354
+ readonly label: string;
8355
+ readonly description?: string | undefined;
8356
+ }[] | undefined;
8357
+ readonly custom?: boolean | undefined;
8358
+ } | {
8359
+ readonly key: string;
8360
+ readonly title?: string | undefined;
8361
+ readonly description?: string | undefined;
8362
+ readonly required?: boolean | undefined;
8363
+ readonly hidden?: boolean | undefined;
8364
+ readonly when?: readonly {
8365
+ readonly key: string;
8366
+ readonly op: "eq" | "neq";
8367
+ readonly value: string | number | boolean;
8368
+ }[] | undefined;
8369
+ readonly type: "number";
8370
+ readonly minimum?: number | undefined;
8371
+ readonly maximum?: number | undefined;
8372
+ readonly default?: number | 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: "integer";
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: "boolean";
8400
+ readonly default?: boolean | undefined;
8401
+ } | {
8402
+ readonly key: string;
8403
+ readonly title?: string | undefined;
8404
+ readonly description?: string | undefined;
8405
+ readonly required?: boolean | undefined;
8406
+ readonly hidden?: boolean | undefined;
8407
+ readonly when?: readonly {
8408
+ readonly key: string;
8409
+ readonly op: "eq" | "neq";
8410
+ readonly value: string | number | boolean;
8411
+ }[] | undefined;
8412
+ readonly type: "multiselect";
8413
+ readonly options: readonly {
8414
+ readonly value: string;
8415
+ readonly label: string;
8416
+ readonly description?: string | undefined;
8417
+ }[];
8418
+ readonly minItems?: number | undefined;
8419
+ readonly maxItems?: number | undefined;
8420
+ readonly custom?: boolean | undefined;
8421
+ readonly default?: readonly string[] | undefined;
8422
+ } | {
8423
+ readonly key: string;
8424
+ readonly type: "external";
8425
+ readonly url: string;
8426
+ readonly title?: string | undefined;
8427
+ readonly description?: string | undefined;
8428
+ }, ...({
8429
+ readonly key: string;
8430
+ readonly title?: string | undefined;
8431
+ readonly description?: string | undefined;
8432
+ readonly required?: boolean | undefined;
8433
+ readonly hidden?: boolean | undefined;
8434
+ readonly when?: readonly {
8435
+ readonly key: string;
8436
+ readonly op: "eq" | "neq";
8437
+ readonly value: string | number | boolean;
8438
+ }[] | undefined;
8439
+ readonly type: "string";
8440
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
8441
+ readonly minLength?: number | undefined;
8442
+ readonly maxLength?: number | undefined;
8443
+ readonly pattern?: string | undefined;
8444
+ readonly placeholder?: string | undefined;
8445
+ readonly default?: string | undefined;
8446
+ readonly options?: readonly {
8447
+ readonly value: string;
8448
+ readonly label: string;
8449
+ readonly description?: string | undefined;
8450
+ }[] | undefined;
8451
+ readonly custom?: boolean | undefined;
8452
+ } | {
8453
+ readonly key: string;
8454
+ readonly title?: string | undefined;
8455
+ readonly description?: string | undefined;
8456
+ readonly required?: boolean | undefined;
8457
+ readonly hidden?: boolean | undefined;
8458
+ readonly when?: readonly {
8459
+ readonly key: string;
8460
+ readonly op: "eq" | "neq";
8461
+ readonly value: string | number | boolean;
8462
+ }[] | undefined;
8463
+ readonly type: "number";
8464
+ readonly minimum?: number | undefined;
8465
+ readonly maximum?: number | undefined;
8466
+ readonly default?: number | 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: "integer";
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: "boolean";
8494
+ readonly default?: boolean | undefined;
8495
+ } | {
8496
+ readonly key: string;
8497
+ readonly title?: string | undefined;
8498
+ readonly description?: string | undefined;
8499
+ readonly required?: boolean | undefined;
8500
+ readonly hidden?: boolean | undefined;
8501
+ readonly when?: readonly {
8502
+ readonly key: string;
8503
+ readonly op: "eq" | "neq";
8504
+ readonly value: string | number | boolean;
8505
+ }[] | undefined;
8506
+ readonly type: "multiselect";
8507
+ readonly options: readonly {
8508
+ readonly value: string;
8509
+ readonly label: string;
8510
+ readonly description?: string | undefined;
8511
+ }[];
8512
+ readonly minItems?: number | undefined;
8513
+ readonly maxItems?: number | undefined;
8514
+ readonly custom?: boolean | undefined;
8515
+ readonly default?: readonly string[] | undefined;
8516
+ } | {
8517
+ readonly key: string;
8518
+ readonly type: "external";
8519
+ readonly url: string;
8520
+ readonly title?: string | undefined;
8521
+ readonly description?: string | undefined;
8522
+ })[]];
8523
+ };
8524
+ };
8525
+ } | {
8526
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8527
+ readonly created: number;
8528
+ readonly metadata?: {
8529
+ readonly [x: string]: unknown;
8530
+ } | undefined;
8531
+ readonly type: "form.replied";
8532
+ readonly location?: {
8533
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8534
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8535
+ } | undefined;
8536
+ readonly data: {
8537
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
8538
+ readonly sessionID: string;
8539
+ readonly answer: {
8540
+ readonly [x: string]: string | number | boolean | readonly string[];
8541
+ };
8542
+ };
8543
+ } | {
8544
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8545
+ readonly created: number;
8546
+ readonly metadata?: {
8547
+ readonly [x: string]: unknown;
8548
+ } | undefined;
8549
+ readonly type: "websearch.updated";
8550
+ readonly location?: {
8551
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8552
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8553
+ } | undefined;
8554
+ readonly data: {};
8555
+ } | {
8556
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8557
+ readonly created: number;
8558
+ readonly metadata?: {
8559
+ readonly [x: string]: unknown;
8560
+ } | undefined;
8561
+ readonly type: "session.idle";
8702
8562
  readonly location?: {
8703
8563
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8704
8564
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -8712,16 +8572,31 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8712
8572
  readonly metadata?: {
8713
8573
  readonly [x: string]: unknown;
8714
8574
  } | undefined;
8715
- readonly type: "tui.toast.show";
8575
+ readonly type: "session.status";
8716
8576
  readonly location?: {
8717
8577
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8718
8578
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8719
8579
  } | undefined;
8720
8580
  readonly data: {
8721
- readonly title?: string | undefined;
8722
- readonly message: string;
8723
- readonly variant: "error" | "info" | "success" | "warning";
8724
- readonly duration: number;
8581
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8582
+ readonly status: {
8583
+ readonly type: "idle";
8584
+ } | {
8585
+ readonly type: "retry";
8586
+ readonly attempt: number;
8587
+ readonly message: string;
8588
+ readonly action?: {
8589
+ readonly reason: string;
8590
+ readonly provider: string;
8591
+ readonly title: string;
8592
+ readonly message: string;
8593
+ readonly label: string;
8594
+ readonly link?: string | undefined;
8595
+ } | undefined;
8596
+ readonly next: number;
8597
+ } | {
8598
+ readonly type: "busy";
8599
+ };
8725
8600
  };
8726
8601
  } | {
8727
8602
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -8765,6 +8640,19 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8765
8640
  readonly data: {
8766
8641
  readonly branch?: string | undefined;
8767
8642
  };
8643
+ } | {
8644
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8645
+ readonly created: number;
8646
+ readonly metadata?: {
8647
+ readonly [x: string]: unknown;
8648
+ } | undefined;
8649
+ readonly type: `rpc.${string}`;
8650
+ readonly location: {
8651
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8652
+ };
8653
+ readonly data: {
8654
+ readonly [x: string]: unknown;
8655
+ };
8768
8656
  } | {
8769
8657
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8770
8658
  readonly metadata?: {