@opencode/client 2.1.4 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/chunks/service-timing-6mq2wh8y.js +33 -0
  2. package/dist/chunks/{contract-y2etg5bs.js → service-timing-7f0py9js.js} +2 -2
  3. package/dist/chunks/{contract-c46qzyff.js → service-timing-8we1dz3p.js} +5 -1
  4. package/dist/chunks/{contract-2ny4vxct.js → service-timing-8ye1ye6f.js} +2 -2
  5. package/dist/chunks/{contract-skhp7hxc.js → service-timing-ab9bm97w.js} +1 -1
  6. package/dist/chunks/service-timing-b80wmp2t.js +30 -0
  7. package/dist/chunks/{contract-1x65x4hv.js → service-timing-cyxwqteg.js} +97 -56
  8. package/dist/chunks/{contract-8bbb028w.js → service-timing-gecjxyvt.js} +5 -1
  9. package/dist/chunks/{contract-hg9t2gnm.js → service-timing-jpd9ebw3.js} +17 -17
  10. package/dist/chunks/{contract-nwcpakzx.js → service-timing-js54wxgp.js} +2 -2
  11. package/dist/chunks/{contract-9kmsh4jj.js → service-timing-knyqkv17.js} +2 -2
  12. package/dist/chunks/{contract-15p82y03.js → service-timing-myz4ngx9.js} +5 -5
  13. package/dist/chunks/{contract-w10x3kfx.js → service-timing-rxd7awy0.js} +51 -21
  14. package/dist/chunks/{contract-ryy6kscr.js → service-timing-ryy6kscr.js} +1 -1
  15. package/dist/chunks/{contract-s2hya144.js → service-timing-wcsbjfhx.js} +110 -36
  16. package/dist/contract.js +1 -1
  17. package/dist/effect/api/api.d.ts +72 -13
  18. package/dist/effect/api.d.ts +1 -0
  19. package/dist/effect/client.d.ts +126 -114
  20. package/dist/effect/client.js +12 -12
  21. package/dist/effect/generated/client-error.js +3 -3
  22. package/dist/effect/generated/client.d.ts +27 -19
  23. package/dist/effect/generated/client.js +5 -5
  24. package/dist/effect/generated/index.js +8 -8
  25. package/dist/effect/index.js +12 -12
  26. package/dist/effect/rpc.js +4 -4
  27. package/dist/effect/service.js +6 -6
  28. package/dist/promise/api.d.ts +1 -0
  29. package/dist/promise/client.d.ts +12 -5
  30. package/dist/promise/client.js +11 -11
  31. package/dist/promise/generated/client-error.js +3 -3
  32. package/dist/promise/generated/client.d.ts +13 -6
  33. package/dist/promise/generated/client.js +4 -4
  34. package/dist/promise/generated/index.js +16 -8
  35. package/dist/promise/generated/types.d.ts +1151 -3533
  36. package/dist/promise/generated/types.js +9 -1
  37. package/dist/promise/index.d.ts +1 -0
  38. package/dist/promise/index.js +20 -12
  39. package/dist/promise/rpc.js +2 -2
  40. package/dist/promise/service.d.ts +2 -2
  41. package/dist/promise/service.js +7 -6
  42. package/dist/pty-handoff.js +4 -4
  43. package/dist/rpc-runtime.js +1 -1
  44. package/dist/service-contender.js +1 -1
  45. package/dist/service-probe.js +3 -3
  46. package/dist/service-timing.js +1 -1
  47. package/dist/service-version.js +1 -1
  48. package/dist/service.js +1 -1
  49. package/dist/shared-events.d.ts +7 -2
  50. package/dist/shared-events.js +1 -1
  51. package/dist/solid/connection.js +1 -1
  52. package/dist/solid/data.d.ts +11 -1
  53. package/dist/solid/data.js +9 -9
  54. package/dist/solid/index.d.ts +1 -0
  55. package/dist/solid/index.js +16 -12
  56. package/dist/solid/pty.js +1 -1
  57. package/dist/solid/retention.d.ts +10 -0
  58. package/dist/solid/retention.js +6 -0
  59. package/dist/solid/usage.js +1 -1
  60. package/package.json +7 -6
  61. package/dist/chunks/contract-vwtmm97t.js +0 -30
  62. /package/dist/chunks/{contract-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
  63. /package/dist/chunks/{contract-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
  64. /package/dist/chunks/{contract-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
  65. /package/dist/chunks/{contract-gne7h7mq.js → service-timing-gne7h7mq.js} +0 -0
  66. /package/dist/chunks/{contract-m2eywc8w.js → service-timing-m2eywc8w.js} +0 -0
  67. /package/dist/chunks/{contract-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
  68. /package/dist/chunks/{contract-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
  69. /package/dist/chunks/{contract-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
  70. /package/dist/chunks/{contract-vmytr4q8.js → service-timing-vmytr4q8.js} +0 -0
  71. /package/dist/chunks/{contract-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
  72. /package/dist/chunks/{contract-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
  73. /package/dist/chunks/{contract-ydhz1zrh.js → service-timing-ydhz1zrh.js} +0 -0
@@ -2,8 +2,10 @@ export * as OpenCode from "./client.js";
2
2
  import { Effect, Stream } from "effect";
3
3
  import { HttpClient } from "effect/http";
4
4
  import { ClientError } from "./generated/index.js";
5
+ import type { EventSubscribeInput } from "./api.js";
5
6
  import { RpcClientRuntime } from "./rpc.js";
6
7
  import type { RpcCallOptions } from "../promise/rpc.js";
8
+ type EventType = NonNullable<EventSubscribeInput["types"]>[number];
7
9
  export declare const make: (options?: {
8
10
  readonly baseUrl?: URL | string;
9
11
  } | undefined) => Effect.Effect<{
@@ -17,11 +19,12 @@ export declare const make: (options?: {
17
19
  reload: () => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
18
20
  };
19
21
  agent: {
20
- list: (input?: import("./api.js").AgentListInput) => Effect.Effect<import("./api.js").AgentListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
22
+ list: (input?: import("./api.js").AgentListInput) => Effect.Effect<import("./api.js").AgentListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
21
23
  get: (input: import("./api.js").AgentGetInput) => Effect.Effect<import("./api.js").AgentGetOutput, import("@opencode/protocol/errors").AgentNotFoundError | ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
22
24
  };
23
25
  plugin: {
24
26
  list: (input?: import("./api.js").PluginListInput) => Effect.Effect<import("./api.js").PluginListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
27
+ gui: (input: import("./api.js").PluginGuiInput) => Effect.Effect<import("./api.js").PluginGuiOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PluginNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
25
28
  check: (input?: import("./api.js").PluginCheckInput) => Effect.Effect<import("./api.js").PluginCheckOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
26
29
  update: (input: import("./api.js").PluginUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
27
30
  };
@@ -34,9 +37,9 @@ export declare const make: (options?: {
34
37
  active: () => Effect.Effect<import("./api.js").SessionActiveOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
35
38
  get: (input: import("./api.js").SessionGetInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
36
39
  remove: (input: import("./api.js").SessionRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
37
- fork: (input: import("./api.js").SessionForkInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
38
- switchAgent: (input: import("./api.js").SessionSwitchAgentInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
39
- switchModel: (input: import("./api.js").SessionSwitchModelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
40
+ fork: (input: import("./api.js").SessionForkInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
41
+ switchAgent: (input: import("./api.js").SessionSwitchAgentInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
42
+ switchModel: (input: import("./api.js").SessionSwitchModelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
40
43
  update: (input: import("./api.js").SessionUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
41
44
  move: (input: import("./api.js").SessionMoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
42
45
  prompt: (input: import("./api.js").SessionPromptInput) => Effect.Effect<import("@opencode/schema/session-inbox").User, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -45,11 +48,11 @@ export declare const make: (options?: {
45
48
  synthetic: (input: import("./api.js").SessionSyntheticInput) => Effect.Effect<import("@opencode/schema/session-inbox").Synthetic, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
46
49
  shell: (input: import("./api.js").SessionShellInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
47
50
  compact: (input: import("./api.js").SessionCompactInput) => Effect.Effect<import("@opencode/schema/session-inbox").Compaction, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
48
- wait: (input: import("./api.js").SessionWaitInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
51
+ wait: (input: import("./api.js").SessionWaitInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
49
52
  revert: {
50
53
  stage: (input: import("./api.js").SessionRevertStageInput) => Effect.Effect<import("@opencode/schema/session-revert").Revert, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
51
54
  clear: (input: import("./api.js").SessionRevertClearInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
52
- commit: (input: import("./api.js").SessionRevertCommitInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
55
+ commit: (input: import("./api.js").SessionRevertCommitInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
53
56
  };
54
57
  context: (input: import("./api.js").SessionContextInput) => Effect.Effect<import("./api.js").SessionContextOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
55
58
  diff: (input: import("./api.js").SessionDiffInput) => Effect.Effect<import("./api.js").SessionDiffOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
@@ -60,15 +63,15 @@ export declare const make: (options?: {
60
63
  };
61
64
  instructions: {
62
65
  entry: {
63
- list: (input: import("./api.js").SessionInstructionsEntryListInput) => Effect.Effect<import("./api.js").SessionInstructionsEntryListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
64
- put: (input: import("./api.js").SessionInstructionsEntryPutInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/schema/instruction-entry").ValueTooLargeError, never>;
65
- remove: (input: import("./api.js").SessionInstructionsEntryRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
66
+ list: (input: import("./api.js").SessionInstructionsEntryListInput) => Effect.Effect<import("./api.js").SessionInstructionsEntryListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
67
+ put: (input: import("./api.js").SessionInstructionsEntryPutInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/schema/instruction-entry").ValueTooLargeError, never>;
68
+ remove: (input: import("./api.js").SessionInstructionsEntryRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
66
69
  };
67
70
  };
68
71
  generate: (input: import("./api.js").SessionGenerateInput) => Effect.Effect<import("./api.js").SessionGenerateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
69
72
  log: (input: import("./api.js").SessionLogInput) => Stream.Stream<import("./api.js").SessionLogOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/encoding/Sse").Retry | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/encoding/Sse").SseError | import("@opencode/protocol/errors").UnauthorizedError, never>;
70
- interrupt: (input: import("./api.js").SessionInterruptInput) => Effect.Effect<import("./api.js").SessionInterruptOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
71
- background: (input: import("./api.js").SessionBackgroundInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
73
+ interrupt: (input: import("./api.js").SessionInterruptInput) => Effect.Effect<import("./api.js").SessionInterruptOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
74
+ background: (input: import("./api.js").SessionBackgroundInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
72
75
  message: {
73
76
  get: (input: import("./api.js").SessionMessageGetInput) => Effect.Effect<import("@opencode/schema/session-message").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
74
77
  };
@@ -90,12 +93,13 @@ export declare const make: (options?: {
90
93
  default: (input?: import("./api.js").ModelDefaultInput) => Effect.Effect<import("./api.js").ModelDefaultOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
91
94
  };
92
95
  generate: {
93
- text: (input: import("./api.js").GenerateTextInput) => Effect.Effect<import("./api.js").GenerateTextOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
96
+ text: (input: import("./api.js").GenerateTextInput) => Effect.Effect<import("./api.js").GenerateTextOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
97
+ image: (input: import("./api.js").GenerateImageInput) => Effect.Effect<import("@opencode/schema/generate").ImageResult, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
98
+ decisions: (input: import("./api.js").GenerateDecisionsInput) => Effect.Effect<import("@opencode/schema/generate").DecisionResult, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
94
99
  };
95
100
  voice: {
96
101
  models: () => Effect.Effect<import("./api.js").VoiceModelsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
97
102
  session: (input: import("./api.js").VoiceSessionInput) => Effect.Effect<import("./api.js").VoiceSessionOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
98
- instructions: (input: import("./api.js").VoiceInstructionsInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
99
103
  };
100
104
  provider: {
101
105
  list: (input?: import("./api.js").ProviderListInput) => Effect.Effect<import("./api.js").ProviderListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -144,8 +148,8 @@ export declare const make: (options?: {
144
148
  remove: (input: import("./api.js").CredentialRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
145
149
  };
146
150
  project: {
147
- list: (input?: import("./api.js").ProjectListInput) => Effect.Effect<import("./api.js").ProjectListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
148
- update: (input: import("./api.js").ProjectUpdateInput) => Effect.Effect<import("@opencode/schema/project").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
151
+ list: (input?: import("./api.js").ProjectListInput) => Effect.Effect<import("./api.js").ProjectListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
152
+ update: (input: import("./api.js").ProjectUpdateInput) => Effect.Effect<import("@opencode/schema/project").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
149
153
  };
150
154
  form: {
151
155
  list: (input?: import("./api.js").FormListInput) => Effect.Effect<import("./api.js").FormListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -156,8 +160,8 @@ export declare const make: (options?: {
156
160
  };
157
161
  saved: {
158
162
  list: (input?: import("./api.js").PermissionSavedListInput) => Effect.Effect<import("./api.js").PermissionSavedListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
159
- update: (input: import("./api.js").PermissionSavedUpdateInput) => Effect.Effect<import("@opencode/schema/permission-saved").Info, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PermissionSavedNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
160
- remove: (input: import("./api.js").PermissionSavedRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
163
+ update: (input: import("./api.js").PermissionSavedUpdateInput) => Effect.Effect<import("@opencode/schema/permission-saved").Info, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PermissionSavedNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
164
+ remove: (input: import("./api.js").PermissionSavedRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
161
165
  };
162
166
  create: (input: import("./api.js").PermissionCreateInput) => Effect.Effect<import("./api.js").PermissionCreateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
163
167
  list: (input: import("./api.js").PermissionListInput) => Effect.Effect<import("./api.js").PermissionListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -167,6 +171,8 @@ export declare const make: (options?: {
167
171
  file: {
168
172
  list: (input?: import("./api.js").FileListInput) => Effect.Effect<import("./api.js").FileListOutput, ClientError | import("@opencode/protocol/errors").FileNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
169
173
  find: (input: import("./api.js").FileFindInput) => Effect.Effect<import("./api.js").FileFindOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
174
+ watch: (input: import("./api.js").FileWatchInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").FileNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
175
+ unwatch: (input: import("./api.js").FileUnwatchInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
170
176
  };
171
177
  command: {
172
178
  list: (input?: import("./api.js").CommandListInput) => Effect.Effect<import("./api.js").CommandListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -243,13 +249,18 @@ export declare const make: (options?: {
243
249
  providers: (input?: import("./api.js").WebsearchProvidersInput) => Effect.Effect<import("./api.js").WebsearchProvidersOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
244
250
  query: (input: import("./api.js").WebsearchQueryInput) => Effect.Effect<import("./api.js").WebsearchQueryOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
245
251
  };
252
+ usage: {
253
+ limits: (input?: import("./api.js").UsageLimitsInput) => Effect.Effect<import("./api.js").UsageLimitsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
254
+ };
246
255
  config: {
247
256
  get: (input?: import("./api.js").ConfigGetInput) => Effect.Effect<import("./api.js").ConfigGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
248
257
  shells: () => Effect.Effect<import("./api.js").ConfigShellsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
249
258
  update: (input: import("./api.js").ConfigUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
250
259
  };
251
260
  event: {
252
- subscribe: () => Stream.Stream<{
261
+ subscribe: <Type extends EventType = "agent.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`>(input?: {
262
+ readonly types?: ReadonlyArray<Type>;
263
+ }) => Stream.Stream<([Extract<Type, "session.agent.selected">] extends [never] ? never : {
253
264
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
254
265
  readonly created: number;
255
266
  readonly metadata?: {
@@ -270,7 +281,7 @@ export declare const make: (options?: {
270
281
  readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
271
282
  readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
272
283
  };
273
- } | {
284
+ }) | ([Extract<Type, "session.archived">] extends [never] ? never : {
274
285
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
275
286
  readonly created: number;
276
287
  readonly metadata?: {
@@ -289,7 +300,7 @@ export declare const make: (options?: {
289
300
  readonly data: {
290
301
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
291
302
  };
292
- } | {
303
+ }) | ([Extract<Type, "session.compaction.ended">] extends [never] ? never : {
293
304
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
294
305
  readonly created: number;
295
306
  readonly metadata?: {
@@ -328,7 +339,7 @@ export declare const make: (options?: {
328
339
  };
329
340
  } | undefined;
330
341
  };
331
- } | {
342
+ }) | ([Extract<Type, "session.compaction.failed">] extends [never] ? never : {
332
343
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
333
344
  readonly created: number;
334
345
  readonly metadata?: {
@@ -368,7 +379,7 @@ export declare const make: (options?: {
368
379
  };
369
380
  } | undefined;
370
381
  };
371
- } | {
382
+ }) | ([Extract<Type, "session.compaction.started">] extends [never] ? never : {
372
383
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
373
384
  readonly created: number;
374
385
  readonly metadata?: {
@@ -389,7 +400,7 @@ export declare const make: (options?: {
389
400
  readonly reason: "auto" | "manual";
390
401
  readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
391
402
  };
392
- } | {
403
+ }) | ([Extract<Type, "session.created">] extends [never] ? never : {
393
404
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
394
405
  readonly created: number;
395
406
  readonly metadata?: {
@@ -432,7 +443,7 @@ export declare const make: (options?: {
432
443
  }[] | undefined;
433
444
  readonly version: string;
434
445
  };
435
- } | {
446
+ }) | ([Extract<Type, "session.deleted">] extends [never] ? never : {
436
447
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
437
448
  readonly created: number;
438
449
  readonly metadata?: {
@@ -451,7 +462,7 @@ export declare const make: (options?: {
451
462
  readonly data: {
452
463
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
453
464
  };
454
- } | {
465
+ }) | ([Extract<Type, "session.execution.failed">] extends [never] ? never : {
455
466
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
456
467
  readonly created: number;
457
468
  readonly metadata?: {
@@ -479,7 +490,7 @@ export declare const make: (options?: {
479
490
  readonly retryAfterMs?: number | undefined;
480
491
  };
481
492
  };
482
- } | {
493
+ }) | ([Extract<Type, "session.execution.interrupted">] extends [never] ? never : {
483
494
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
484
495
  readonly created: number;
485
496
  readonly metadata?: {
@@ -499,7 +510,7 @@ export declare const make: (options?: {
499
510
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
500
511
  readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
501
512
  };
502
- } | {
513
+ }) | ([Extract<Type, "session.execution.started">] extends [never] ? never : {
503
514
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
504
515
  readonly created: number;
505
516
  readonly metadata?: {
@@ -518,7 +529,7 @@ export declare const make: (options?: {
518
529
  readonly data: {
519
530
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
520
531
  };
521
- } | {
532
+ }) | ([Extract<Type, "session.execution.succeeded">] extends [never] ? never : {
522
533
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
523
534
  readonly created: number;
524
535
  readonly metadata?: {
@@ -537,7 +548,7 @@ export declare const make: (options?: {
537
548
  readonly data: {
538
549
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
539
550
  };
540
- } | {
551
+ }) | ([Extract<Type, "session.forked">] extends [never] ? never : {
541
552
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
542
553
  readonly created: number;
543
554
  readonly metadata?: {
@@ -572,7 +583,7 @@ export declare const make: (options?: {
572
583
  readonly removed: boolean;
573
584
  }[] | undefined;
574
585
  };
575
- } | {
586
+ }) | ([Extract<Type, "session.inbox.cancelled">] extends [never] ? never : {
576
587
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
577
588
  readonly created: number;
578
589
  readonly metadata?: {
@@ -592,7 +603,7 @@ export declare const make: (options?: {
592
603
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
593
604
  readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
594
605
  };
595
- } | {
606
+ }) | ([Extract<Type, "session.inbox.delivered">] extends [never] ? never : {
596
607
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
597
608
  readonly created: number;
598
609
  readonly metadata?: {
@@ -612,7 +623,7 @@ export declare const make: (options?: {
612
623
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
613
624
  readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
614
625
  };
615
- } | {
626
+ }) | ([Extract<Type, "session.inbox.delivery.changed">] extends [never] ? never : {
616
627
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
617
628
  readonly created: number;
618
629
  readonly metadata?: {
@@ -633,7 +644,7 @@ export declare const make: (options?: {
633
644
  readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
634
645
  readonly delivery: "queue" | "steer";
635
646
  };
636
- } | {
647
+ }) | ([Extract<Type, "session.inbox.enqueued">] extends [never] ? never : {
637
648
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
638
649
  readonly created: number;
639
650
  readonly metadata?: {
@@ -723,7 +734,7 @@ export declare const make: (options?: {
723
734
  readonly delivery: "queue" | "steer";
724
735
  };
725
736
  };
726
- } | {
737
+ }) | ([Extract<Type, "session.instructions.updated">] extends [never] ? never : {
727
738
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
728
739
  readonly created: number;
729
740
  readonly metadata?: {
@@ -746,7 +757,7 @@ export declare const make: (options?: {
746
757
  };
747
758
  readonly text?: string | undefined;
748
759
  };
749
- } | {
760
+ }) | ([Extract<Type, "session.metadata.updated">] extends [never] ? never : {
750
761
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
751
762
  readonly created: number;
752
763
  readonly metadata?: {
@@ -768,7 +779,7 @@ export declare const make: (options?: {
768
779
  readonly [x: string]: import("effect/Schema").Json;
769
780
  };
770
781
  };
771
- } | {
782
+ }) | ([Extract<Type, "session.model.selected">] extends [never] ? never : {
772
783
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
773
784
  readonly created: number;
774
785
  readonly metadata?: {
@@ -797,7 +808,7 @@ export declare const make: (options?: {
797
808
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
798
809
  } | undefined;
799
810
  };
800
- } | {
811
+ }) | ([Extract<Type, "session.moved">] extends [never] ? never : {
801
812
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
802
813
  readonly created: number;
803
814
  readonly metadata?: {
@@ -822,7 +833,7 @@ export declare const make: (options?: {
822
833
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
823
834
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
824
835
  };
825
- } | {
836
+ }) | ([Extract<Type, "session.permissions">] extends [never] ? never : {
826
837
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
827
838
  readonly created: number;
828
839
  readonly metadata?: {
@@ -846,7 +857,7 @@ export declare const make: (options?: {
846
857
  readonly effect: "allow" | "ask" | "deny";
847
858
  }[];
848
859
  };
849
- } | {
860
+ }) | ([Extract<Type, "session.reasoning.ended">] extends [never] ? never : {
850
861
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
851
862
  readonly created: number;
852
863
  readonly metadata?: {
@@ -871,7 +882,7 @@ export declare const make: (options?: {
871
882
  readonly [x: string]: unknown;
872
883
  } | undefined;
873
884
  };
874
- } | {
885
+ }) | ([Extract<Type, "session.reasoning.started">] extends [never] ? never : {
875
886
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
876
887
  readonly created: number;
877
888
  readonly metadata?: {
@@ -895,7 +906,7 @@ export declare const make: (options?: {
895
906
  readonly [x: string]: unknown;
896
907
  } | undefined;
897
908
  };
898
- } | {
909
+ }) | ([Extract<Type, "session.renamed">] extends [never] ? never : {
899
910
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
900
911
  readonly created: number;
901
912
  readonly metadata?: {
@@ -915,7 +926,7 @@ export declare const make: (options?: {
915
926
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
916
927
  readonly title: string;
917
928
  };
918
- } | {
929
+ }) | ([Extract<Type, "session.retry.scheduled">] extends [never] ? never : {
919
930
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
920
931
  readonly created: number;
921
932
  readonly metadata?: {
@@ -946,7 +957,7 @@ export declare const make: (options?: {
946
957
  readonly retryAfterMs?: number | undefined;
947
958
  };
948
959
  };
949
- } | {
960
+ }) | ([Extract<Type, "session.revert.cleared">] extends [never] ? never : {
950
961
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
951
962
  readonly created: number;
952
963
  readonly metadata?: {
@@ -965,7 +976,7 @@ export declare const make: (options?: {
965
976
  readonly data: {
966
977
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
967
978
  };
968
- } | {
979
+ }) | ([Extract<Type, "session.revert.committed">] extends [never] ? never : {
969
980
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
970
981
  readonly created: number;
971
982
  readonly metadata?: {
@@ -985,7 +996,7 @@ export declare const make: (options?: {
985
996
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
986
997
  readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
987
998
  };
988
- } | {
999
+ }) | ([Extract<Type, "session.revert.staged">] extends [never] ? never : {
989
1000
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
990
1001
  readonly created: number;
991
1002
  readonly metadata?: {
@@ -1013,10 +1024,11 @@ export declare const make: (options?: {
1013
1024
  readonly additions: number;
1014
1025
  readonly deletions: number;
1015
1026
  readonly status: "added" | "deleted" | "modified";
1027
+ readonly more?: true | undefined;
1016
1028
  }[] | undefined;
1017
1029
  };
1018
1030
  };
1019
- } | {
1031
+ }) | ([Extract<Type, "session.shell.ended">] extends [never] ? never : {
1020
1032
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1021
1033
  readonly created: number;
1022
1034
  readonly metadata?: {
@@ -1059,7 +1071,7 @@ export declare const make: (options?: {
1059
1071
  readonly truncated: boolean;
1060
1072
  };
1061
1073
  };
1062
- } | {
1074
+ }) | ([Extract<Type, "session.shell.started">] extends [never] ? never : {
1063
1075
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1064
1076
  readonly created: number;
1065
1077
  readonly metadata?: {
@@ -1096,7 +1108,7 @@ export declare const make: (options?: {
1096
1108
  };
1097
1109
  };
1098
1110
  };
1099
- } | {
1111
+ }) | ([Extract<Type, "session.skill.activated">] extends [never] ? never : {
1100
1112
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1101
1113
  readonly created: number;
1102
1114
  readonly metadata?: {
@@ -1118,7 +1130,7 @@ export declare const make: (options?: {
1118
1130
  readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1119
1131
  readonly text: string;
1120
1132
  };
1121
- } | {
1133
+ }) | ([Extract<Type, "session.step.ended">] extends [never] ? never : {
1122
1134
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1123
1135
  readonly created: number;
1124
1136
  readonly metadata?: {
@@ -1155,7 +1167,7 @@ export declare const make: (options?: {
1155
1167
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1156
1168
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1157
1169
  };
1158
- } | {
1170
+ }) | ([Extract<Type, "session.step.failed">] extends [never] ? never : {
1159
1171
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1160
1172
  readonly created: number;
1161
1173
  readonly metadata?: {
@@ -1201,7 +1213,7 @@ export declare const make: (options?: {
1201
1213
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1202
1214
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1203
1215
  };
1204
- } | {
1216
+ }) | ([Extract<Type, "session.step.started">] extends [never] ? never : {
1205
1217
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1206
1218
  readonly created: number;
1207
1219
  readonly metadata?: {
@@ -1229,7 +1241,7 @@ export declare const make: (options?: {
1229
1241
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1230
1242
  readonly started: number;
1231
1243
  };
1232
- } | {
1244
+ }) | ([Extract<Type, "session.step.streamed">] extends [never] ? never : {
1233
1245
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1234
1246
  readonly created: number;
1235
1247
  readonly metadata?: {
@@ -1249,7 +1261,7 @@ export declare const make: (options?: {
1249
1261
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1250
1262
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1251
1263
  };
1252
- } | {
1264
+ }) | ([Extract<Type, "session.synthetic">] extends [never] ? never : {
1253
1265
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1254
1266
  readonly created: number;
1255
1267
  readonly metadata?: {
@@ -1273,7 +1285,7 @@ export declare const make: (options?: {
1273
1285
  readonly [x: string]: unknown;
1274
1286
  } | undefined;
1275
1287
  };
1276
- } | {
1288
+ }) | ([Extract<Type, "session.text.ended">] extends [never] ? never : {
1277
1289
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1278
1290
  readonly created: number;
1279
1291
  readonly metadata?: {
@@ -1298,7 +1310,7 @@ export declare const make: (options?: {
1298
1310
  readonly [x: string]: unknown;
1299
1311
  } | undefined;
1300
1312
  };
1301
- } | {
1313
+ }) | ([Extract<Type, "session.text.started">] extends [never] ? never : {
1302
1314
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1303
1315
  readonly created: number;
1304
1316
  readonly metadata?: {
@@ -1319,7 +1331,7 @@ export declare const make: (options?: {
1319
1331
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1320
1332
  readonly ordinal: number;
1321
1333
  };
1322
- } | {
1334
+ }) | ([Extract<Type, "session.tool.called">] extends [never] ? never : {
1323
1335
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1324
1336
  readonly created: number;
1325
1337
  readonly metadata?: {
@@ -1347,7 +1359,7 @@ export declare const make: (options?: {
1347
1359
  readonly [x: string]: unknown;
1348
1360
  } | undefined;
1349
1361
  };
1350
- } | {
1362
+ }) | ([Extract<Type, "session.tool.failed">] extends [never] ? never : {
1351
1363
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1352
1364
  readonly created: number;
1353
1365
  readonly metadata?: {
@@ -1401,7 +1413,7 @@ export declare const make: (options?: {
1401
1413
  readonly [x: string]: unknown;
1402
1414
  } | undefined;
1403
1415
  };
1404
- } | {
1416
+ }) | ([Extract<Type, "session.tool.input.ended">] extends [never] ? never : {
1405
1417
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1406
1418
  readonly created: number;
1407
1419
  readonly metadata?: {
@@ -1423,7 +1435,7 @@ export declare const make: (options?: {
1423
1435
  readonly id: string;
1424
1436
  readonly text: string;
1425
1437
  };
1426
- } | {
1438
+ }) | ([Extract<Type, "session.tool.input.started">] extends [never] ? never : {
1427
1439
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1428
1440
  readonly created: number;
1429
1441
  readonly metadata?: {
@@ -1445,7 +1457,7 @@ export declare const make: (options?: {
1445
1457
  readonly id: string;
1446
1458
  readonly name: string;
1447
1459
  };
1448
- } | {
1460
+ }) | ([Extract<Type, "session.tool.success">] extends [never] ? never : {
1449
1461
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1450
1462
  readonly created: number;
1451
1463
  readonly metadata?: {
@@ -1490,7 +1502,7 @@ export declare const make: (options?: {
1490
1502
  readonly [x: string]: unknown;
1491
1503
  } | undefined;
1492
1504
  };
1493
- } | {
1505
+ }) | ([Extract<Type, "session.unarchived">] extends [never] ? never : {
1494
1506
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1495
1507
  readonly created: number;
1496
1508
  readonly metadata?: {
@@ -1509,7 +1521,7 @@ export declare const make: (options?: {
1509
1521
  readonly data: {
1510
1522
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1511
1523
  };
1512
- } | {
1524
+ }) | ([Extract<Type, "session.viewed">] extends [never] ? never : {
1513
1525
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1514
1526
  readonly created: number;
1515
1527
  readonly metadata?: {
@@ -1529,7 +1541,7 @@ export declare const make: (options?: {
1529
1541
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1530
1542
  readonly idle: number;
1531
1543
  };
1532
- } | {
1544
+ }) | ([Extract<Type, "worktree.resolved">] extends [never] ? never : {
1533
1545
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1534
1546
  readonly created: number;
1535
1547
  readonly metadata?: {
@@ -1551,7 +1563,7 @@ export declare const make: (options?: {
1551
1563
  readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1552
1564
  readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
1553
1565
  };
1554
- } | {
1566
+ }) | ([Extract<Type, "agent.updated">] extends [never] ? never : {
1555
1567
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1556
1568
  readonly created: number;
1557
1569
  readonly metadata?: {
@@ -1563,7 +1575,7 @@ export declare const make: (options?: {
1563
1575
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1564
1576
  } | undefined;
1565
1577
  readonly data: {};
1566
- } | {
1578
+ }) | ([Extract<Type, "command.updated">] extends [never] ? never : {
1567
1579
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1568
1580
  readonly created: number;
1569
1581
  readonly metadata?: {
@@ -1575,7 +1587,7 @@ export declare const make: (options?: {
1575
1587
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1576
1588
  } | undefined;
1577
1589
  readonly data: {};
1578
- } | {
1590
+ }) | ([Extract<Type, "config.updated">] extends [never] ? never : {
1579
1591
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1580
1592
  readonly created: number;
1581
1593
  readonly metadata?: {
@@ -1587,7 +1599,7 @@ export declare const make: (options?: {
1587
1599
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1588
1600
  } | undefined;
1589
1601
  readonly data: {};
1590
- } | {
1602
+ }) | ([Extract<Type, "credential.switched">] extends [never] ? never : {
1591
1603
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1592
1604
  readonly created: number;
1593
1605
  readonly metadata?: {
@@ -1602,7 +1614,7 @@ export declare const make: (options?: {
1602
1614
  readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
1603
1615
  readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
1604
1616
  };
1605
- } | {
1617
+ }) | ([Extract<Type, "credential.updated">] extends [never] ? never : {
1606
1618
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1607
1619
  readonly created: number;
1608
1620
  readonly metadata?: {
@@ -1614,7 +1626,7 @@ export declare const make: (options?: {
1614
1626
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1615
1627
  } | undefined;
1616
1628
  readonly data: {};
1617
- } | {
1629
+ }) | ([Extract<Type, "filesystem.changed">] extends [never] ? never : {
1618
1630
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1619
1631
  readonly created: number;
1620
1632
  readonly metadata?: {
@@ -1629,7 +1641,7 @@ export declare const make: (options?: {
1629
1641
  readonly file: string;
1630
1642
  readonly event: "add" | "change" | "unlink";
1631
1643
  };
1632
- } | {
1644
+ }) | ([Extract<Type, "form.cancelled">] extends [never] ? never : {
1633
1645
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1634
1646
  readonly created: number;
1635
1647
  readonly metadata?: {
@@ -1644,7 +1656,7 @@ export declare const make: (options?: {
1644
1656
  readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1645
1657
  readonly sessionID: string;
1646
1658
  };
1647
- } | {
1659
+ }) | ([Extract<Type, "form.created">] extends [never] ? never : {
1648
1660
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1649
1661
  readonly created: number;
1650
1662
  readonly metadata?: {
@@ -1854,7 +1866,7 @@ export declare const make: (options?: {
1854
1866
  })[]];
1855
1867
  };
1856
1868
  };
1857
- } | {
1869
+ }) | ([Extract<Type, "form.replied">] extends [never] ? never : {
1858
1870
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1859
1871
  readonly created: number;
1860
1872
  readonly metadata?: {
@@ -1872,7 +1884,7 @@ export declare const make: (options?: {
1872
1884
  readonly [x: string]: string | number | boolean | readonly string[];
1873
1885
  };
1874
1886
  };
1875
- } | {
1887
+ }) | ([Extract<Type, "installation.update-available">] extends [never] ? never : {
1876
1888
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1877
1889
  readonly created: number;
1878
1890
  readonly metadata?: {
@@ -1886,7 +1898,7 @@ export declare const make: (options?: {
1886
1898
  readonly data: {
1887
1899
  readonly version: string;
1888
1900
  };
1889
- } | {
1901
+ }) | ([Extract<Type, "installation.updated">] extends [never] ? never : {
1890
1902
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1891
1903
  readonly created: number;
1892
1904
  readonly metadata?: {
@@ -1900,7 +1912,7 @@ export declare const make: (options?: {
1900
1912
  readonly data: {
1901
1913
  readonly version: string;
1902
1914
  };
1903
- } | {
1915
+ }) | ([Extract<Type, "integration.updated">] extends [never] ? never : {
1904
1916
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1905
1917
  readonly created: number;
1906
1918
  readonly metadata?: {
@@ -1912,7 +1924,7 @@ export declare const make: (options?: {
1912
1924
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1913
1925
  } | undefined;
1914
1926
  readonly data: {};
1915
- } | {
1927
+ }) | ([Extract<Type, "location.shutdown">] extends [never] ? never : {
1916
1928
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1917
1929
  readonly created: number;
1918
1930
  readonly metadata?: {
@@ -1924,7 +1936,7 @@ export declare const make: (options?: {
1924
1936
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1925
1937
  } | undefined;
1926
1938
  readonly data: {};
1927
- } | {
1939
+ }) | ([Extract<Type, "mcp.resources.changed">] extends [never] ? never : {
1928
1940
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1929
1941
  readonly created: number;
1930
1942
  readonly metadata?: {
@@ -1938,7 +1950,7 @@ export declare const make: (options?: {
1938
1950
  readonly data: {
1939
1951
  readonly server: string;
1940
1952
  };
1941
- } | {
1953
+ }) | ([Extract<Type, "mcp.status.changed">] extends [never] ? never : {
1942
1954
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1943
1955
  readonly created: number;
1944
1956
  readonly metadata?: {
@@ -1952,7 +1964,7 @@ export declare const make: (options?: {
1952
1964
  readonly data: {
1953
1965
  readonly server: string;
1954
1966
  };
1955
- } | {
1967
+ }) | ([Extract<Type, "model.updated">] extends [never] ? never : {
1956
1968
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1957
1969
  readonly created: number;
1958
1970
  readonly metadata?: {
@@ -1964,7 +1976,7 @@ export declare const make: (options?: {
1964
1976
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1965
1977
  } | undefined;
1966
1978
  readonly data: {};
1967
- } | {
1979
+ }) | ([Extract<Type, "models-dev.refreshed">] extends [never] ? never : {
1968
1980
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1969
1981
  readonly created: number;
1970
1982
  readonly metadata?: {
@@ -1976,7 +1988,7 @@ export declare const make: (options?: {
1976
1988
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1977
1989
  } | undefined;
1978
1990
  readonly data: {};
1979
- } | {
1991
+ }) | ([Extract<Type, "permission.asked">] extends [never] ? never : {
1980
1992
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1981
1993
  readonly created: number;
1982
1994
  readonly metadata?: {
@@ -2003,7 +2015,7 @@ export declare const make: (options?: {
2003
2015
  readonly message?: string | undefined;
2004
2016
  readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
2005
2017
  };
2006
- } | {
2018
+ }) | ([Extract<Type, "permission.replied">] extends [never] ? never : {
2007
2019
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2008
2020
  readonly created: number;
2009
2021
  readonly metadata?: {
@@ -2019,7 +2031,7 @@ export declare const make: (options?: {
2019
2031
  readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
2020
2032
  readonly reply: "always" | "once" | "reject";
2021
2033
  };
2022
- } | {
2034
+ }) | ([Extract<Type, "persistent-pty.added">] extends [never] ? never : {
2023
2035
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2024
2036
  readonly created: number;
2025
2037
  readonly metadata?: {
@@ -2053,7 +2065,7 @@ export declare const make: (options?: {
2053
2065
  };
2054
2066
  };
2055
2067
  };
2056
- } | {
2068
+ }) | ([Extract<Type, "persistent-pty.removed">] extends [never] ? never : {
2057
2069
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2058
2070
  readonly created: number;
2059
2071
  readonly metadata?: {
@@ -2068,7 +2080,7 @@ export declare const make: (options?: {
2068
2080
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2069
2081
  readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
2070
2082
  };
2071
- } | {
2083
+ }) | ([Extract<Type, "plugin.updated">] extends [never] ? never : {
2072
2084
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2073
2085
  readonly created: number;
2074
2086
  readonly metadata?: {
@@ -2080,7 +2092,7 @@ export declare const make: (options?: {
2080
2092
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2081
2093
  } | undefined;
2082
2094
  readonly data: {};
2083
- } | {
2095
+ }) | ([Extract<Type, "project.updated">] extends [never] ? never : {
2084
2096
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2085
2097
  readonly created: number;
2086
2098
  readonly metadata?: {
@@ -2112,7 +2124,7 @@ export declare const make: (options?: {
2112
2124
  };
2113
2125
  readonly sandboxes: readonly string[];
2114
2126
  };
2115
- } | {
2127
+ }) | ([Extract<Type, "provider.updated">] extends [never] ? never : {
2116
2128
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2117
2129
  readonly created: number;
2118
2130
  readonly metadata?: {
@@ -2124,7 +2136,7 @@ export declare const make: (options?: {
2124
2136
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2125
2137
  } | undefined;
2126
2138
  readonly data: {};
2127
- } | {
2139
+ }) | ([Extract<Type, "pty.created">] extends [never] ? never : {
2128
2140
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2129
2141
  readonly created: number;
2130
2142
  readonly metadata?: {
@@ -2147,7 +2159,7 @@ export declare const make: (options?: {
2147
2159
  readonly exitCode?: number | undefined;
2148
2160
  };
2149
2161
  };
2150
- } | {
2162
+ }) | ([Extract<Type, "pty.deleted">] extends [never] ? never : {
2151
2163
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2152
2164
  readonly created: number;
2153
2165
  readonly metadata?: {
@@ -2161,7 +2173,7 @@ export declare const make: (options?: {
2161
2173
  readonly data: {
2162
2174
  readonly id: string & import("effect/Brand").Brand<"PtyID">;
2163
2175
  };
2164
- } | {
2176
+ }) | ([Extract<Type, "pty.exited">] extends [never] ? never : {
2165
2177
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2166
2178
  readonly created: number;
2167
2179
  readonly metadata?: {
@@ -2176,7 +2188,7 @@ export declare const make: (options?: {
2176
2188
  readonly id: string & import("effect/Brand").Brand<"PtyID">;
2177
2189
  readonly exitCode: number;
2178
2190
  };
2179
- } | {
2191
+ }) | ([Extract<Type, "pty.updated">] extends [never] ? never : {
2180
2192
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2181
2193
  readonly created: number;
2182
2194
  readonly metadata?: {
@@ -2199,7 +2211,7 @@ export declare const make: (options?: {
2199
2211
  readonly exitCode?: number | undefined;
2200
2212
  };
2201
2213
  };
2202
- } | {
2214
+ }) | ([Extract<Type, "reference.updated">] extends [never] ? never : {
2203
2215
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2204
2216
  readonly created: number;
2205
2217
  readonly metadata?: {
@@ -2211,7 +2223,7 @@ export declare const make: (options?: {
2211
2223
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2212
2224
  } | undefined;
2213
2225
  readonly data: {};
2214
- } | {
2226
+ }) | ([Extract<Type, "session.compaction.delta">] extends [never] ? never : {
2215
2227
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2216
2228
  readonly created: number;
2217
2229
  readonly metadata?: {
@@ -2226,7 +2238,7 @@ export declare const make: (options?: {
2226
2238
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2227
2239
  readonly text: string;
2228
2240
  };
2229
- } | {
2241
+ }) | ([Extract<Type, "session.idle">] extends [never] ? never : {
2230
2242
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2231
2243
  readonly created: number;
2232
2244
  readonly metadata?: {
@@ -2240,7 +2252,7 @@ export declare const make: (options?: {
2240
2252
  readonly data: {
2241
2253
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2242
2254
  };
2243
- } | {
2255
+ }) | ([Extract<Type, "session.reasoning.delta">] extends [never] ? never : {
2244
2256
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2245
2257
  readonly created: number;
2246
2258
  readonly metadata?: {
@@ -2257,7 +2269,7 @@ export declare const make: (options?: {
2257
2269
  readonly ordinal: number;
2258
2270
  readonly delta: string;
2259
2271
  };
2260
- } | {
2272
+ }) | ([Extract<Type, "session.status">] extends [never] ? never : {
2261
2273
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2262
2274
  readonly created: number;
2263
2275
  readonly metadata?: {
@@ -2289,7 +2301,7 @@ export declare const make: (options?: {
2289
2301
  readonly next: number;
2290
2302
  };
2291
2303
  };
2292
- } | {
2304
+ }) | ([Extract<Type, "session.text.delta">] extends [never] ? never : {
2293
2305
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2294
2306
  readonly created: number;
2295
2307
  readonly metadata?: {
@@ -2306,7 +2318,7 @@ export declare const make: (options?: {
2306
2318
  readonly ordinal: number;
2307
2319
  readonly delta: string;
2308
2320
  };
2309
- } | {
2321
+ }) | ([Extract<Type, "session.tool.input.delta">] extends [never] ? never : {
2310
2322
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2311
2323
  readonly created: number;
2312
2324
  readonly metadata?: {
@@ -2323,7 +2335,7 @@ export declare const make: (options?: {
2323
2335
  readonly id: string;
2324
2336
  readonly delta: string;
2325
2337
  };
2326
- } | {
2338
+ }) | ([Extract<Type, "session.tool.progress">] extends [never] ? never : {
2327
2339
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2328
2340
  readonly created: number;
2329
2341
  readonly metadata?: {
@@ -2342,7 +2354,7 @@ export declare const make: (options?: {
2342
2354
  readonly [x: string]: import("effect/Schema").Json;
2343
2355
  };
2344
2356
  };
2345
- } | {
2357
+ }) | ([Extract<Type, "session.usage.updated">] extends [never] ? never : {
2346
2358
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2347
2359
  readonly created: number;
2348
2360
  readonly metadata?: {
@@ -2366,7 +2378,7 @@ export declare const make: (options?: {
2366
2378
  };
2367
2379
  };
2368
2380
  };
2369
- } | {
2381
+ }) | ([Extract<Type, "shell.created">] extends [never] ? never : {
2370
2382
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2371
2383
  readonly created: number;
2372
2384
  readonly metadata?: {
@@ -2397,7 +2409,7 @@ export declare const make: (options?: {
2397
2409
  };
2398
2410
  };
2399
2411
  };
2400
- } | {
2412
+ }) | ([Extract<Type, "shell.deleted">] extends [never] ? never : {
2401
2413
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2402
2414
  readonly created: number;
2403
2415
  readonly metadata?: {
@@ -2411,7 +2423,7 @@ export declare const make: (options?: {
2411
2423
  readonly data: {
2412
2424
  readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2413
2425
  };
2414
- } | {
2426
+ }) | ([Extract<Type, "shell.exited">] extends [never] ? never : {
2415
2427
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2416
2428
  readonly created: number;
2417
2429
  readonly metadata?: {
@@ -2427,7 +2439,7 @@ export declare const make: (options?: {
2427
2439
  readonly exit?: number | undefined;
2428
2440
  readonly status: "exited" | "killed" | "running" | "timeout";
2429
2441
  };
2430
- } | {
2442
+ }) | ([Extract<Type, "skill.updated">] extends [never] ? never : {
2431
2443
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2432
2444
  readonly created: number;
2433
2445
  readonly metadata?: {
@@ -2439,7 +2451,7 @@ export declare const make: (options?: {
2439
2451
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2440
2452
  } | undefined;
2441
2453
  readonly data: {};
2442
- } | {
2454
+ }) | ([Extract<Type, "tui.command.execute">] extends [never] ? never : {
2443
2455
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2444
2456
  readonly created: number;
2445
2457
  readonly metadata?: {
@@ -2453,7 +2465,7 @@ export declare const make: (options?: {
2453
2465
  readonly data: {
2454
2466
  readonly command: string;
2455
2467
  };
2456
- } | {
2468
+ }) | ([Extract<Type, "tui.prompt.append">] extends [never] ? never : {
2457
2469
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2458
2470
  readonly created: number;
2459
2471
  readonly metadata?: {
@@ -2467,7 +2479,7 @@ export declare const make: (options?: {
2467
2479
  readonly data: {
2468
2480
  readonly text: string;
2469
2481
  };
2470
- } | {
2482
+ }) | ([Extract<Type, "tui.session.select">] extends [never] ? never : {
2471
2483
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2472
2484
  readonly created: number;
2473
2485
  readonly metadata?: {
@@ -2481,7 +2493,7 @@ export declare const make: (options?: {
2481
2493
  readonly data: {
2482
2494
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2483
2495
  };
2484
- } | {
2496
+ }) | ([Extract<Type, "tui.toast.show">] extends [never] ? never : {
2485
2497
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2486
2498
  readonly created: number;
2487
2499
  readonly metadata?: {
@@ -2498,7 +2510,7 @@ export declare const make: (options?: {
2498
2510
  readonly variant: "error" | "info" | "success" | "warning";
2499
2511
  readonly duration: number;
2500
2512
  };
2501
- } | {
2513
+ }) | ([Extract<Type, "vcs.branch.updated">] extends [never] ? never : {
2502
2514
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2503
2515
  readonly created: number;
2504
2516
  readonly metadata?: {
@@ -2512,7 +2524,7 @@ export declare const make: (options?: {
2512
2524
  readonly data: {
2513
2525
  readonly branch?: string | undefined;
2514
2526
  };
2515
- } | {
2527
+ }) | ([Extract<Type, "websearch.updated">] extends [never] ? never : {
2516
2528
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2517
2529
  readonly created: number;
2518
2530
  readonly metadata?: {
@@ -2524,7 +2536,7 @@ export declare const make: (options?: {
2524
2536
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2525
2537
  } | undefined;
2526
2538
  readonly data: {};
2527
- } | {
2539
+ }) | ([Extract<Type, "worktree.updated">] extends [never] ? never : {
2528
2540
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2529
2541
  readonly created: number;
2530
2542
  readonly metadata?: {
@@ -2538,7 +2550,7 @@ export declare const make: (options?: {
2538
2550
  readonly data: {
2539
2551
  readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
2540
2552
  };
2541
- } | {
2553
+ }) | ([Extract<Type, `rpc.${string}`>] extends [never] ? never : {
2542
2554
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2543
2555
  readonly created: number;
2544
2556
  readonly metadata?: {
@@ -2551,7 +2563,7 @@ export declare const make: (options?: {
2551
2563
  readonly data: {
2552
2564
  readonly [x: string]: unknown;
2553
2565
  };
2554
- } | {
2566
+ }) | (["server.connected" | Extract<Type, "server.connected">] extends [never] ? never : {
2555
2567
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2556
2568
  readonly metadata?: {
2557
2569
  readonly [x: string]: unknown;
@@ -2561,7 +2573,7 @@ export declare const make: (options?: {
2561
2573
  } | undefined;
2562
2574
  readonly type: "server.connected";
2563
2575
  readonly data: {};
2564
- }, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/encoding/Sse").Retry | import("effect/Schema").SchemaError | import("effect/encoding/Sse").SseError | import("@opencode/protocol/errors").UnauthorizedError, never>;
2576
+ }), ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/encoding/Sse").Retry | import("effect/Schema").SchemaError | import("effect/encoding/Sse").SseError | import("@opencode/protocol/errors").UnauthorizedError, never>;
2565
2577
  };
2566
2578
  rpc: RpcClientRuntime.RpcApi<ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/schema/rpc").SystemError | import("@opencode/protocol/errors").UnauthorizedError, RpcCallOptions, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/encoding/Sse").Retry | import("effect/Schema").SchemaError | import("effect/encoding/Sse").SseError | import("@opencode/protocol/errors").UnauthorizedError> & {
2567
2579
  call: (input: import("./api.js").RpcCallInput) => Effect.Effect<import("./api.js").RpcCallOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").RpcError | import("@opencode/protocol/errors").RpcInternalError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;