@opencode/client 2.0.32 → 2.1.1

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 (64) hide show
  1. package/dist/chunks/{shared-events-2ny4vxct.js → service-version-2ny4vxct.js} +2 -2
  2. package/dist/chunks/{shared-events-m77rqa4a.js → service-version-61wt4y9h.js} +22 -17
  3. package/dist/chunks/{shared-events-1y4a697q.js → service-version-6vp15eh6.js} +1 -1
  4. package/dist/chunks/{shared-events-d86rytwj.js → service-version-bah0qqxw.js} +5 -5
  5. package/dist/chunks/{shared-events-vt9jbch8.js → service-version-ezt8t3fk.js} +2 -1
  6. package/dist/chunks/{shared-events-qf89ssmg.js → service-version-f93mzqah.js} +19 -5
  7. package/dist/chunks/{shared-events-frbwqjmf.js → service-version-frbwqjmf.js} +1 -1
  8. package/dist/chunks/{shared-events-mnyft54j.js → service-version-mnyft54j.js} +2 -2
  9. package/dist/chunks/{shared-events-hqeq47hr.js → service-version-nv358xrg.js} +17 -3
  10. package/dist/chunks/{shared-events-t1xa31vm.js → service-version-t1xa31vm.js} +1 -1
  11. package/dist/chunks/{shared-events-q008jpwa.js → service-version-x61gkv37.js} +4 -4
  12. package/dist/chunks/{shared-events-td2fzm91.js → service-version-yqfhh888.js} +1 -1
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +62 -29
  15. package/dist/effect/client.d.ts +1387 -1362
  16. package/dist/effect/client.js +8 -8
  17. package/dist/effect/generated/client-error.js +1 -1
  18. package/dist/effect/generated/client.d.ts +1278 -1253
  19. package/dist/effect/generated/client.js +3 -3
  20. package/dist/effect/generated/index.js +4 -4
  21. package/dist/effect/index.js +8 -8
  22. package/dist/effect/rpc.js +2 -2
  23. package/dist/effect/service.js +6 -6
  24. package/dist/promise/client.d.ts +8 -7
  25. package/dist/promise/client.js +7 -7
  26. package/dist/promise/generated/client-error.js +1 -1
  27. package/dist/promise/generated/client.d.ts +3 -2
  28. package/dist/promise/generated/client.js +2 -2
  29. package/dist/promise/generated/index.js +6 -4
  30. package/dist/promise/generated/types.d.ts +228 -1429
  31. package/dist/promise/generated/types.js +3 -1
  32. package/dist/promise/index.js +10 -8
  33. package/dist/promise/rpc.js +2 -2
  34. package/dist/promise/service.js +6 -6
  35. package/dist/pty-handoff.js +1 -1
  36. package/dist/rpc-runtime.d.ts +5 -5
  37. package/dist/rpc-runtime.js +1 -1
  38. package/dist/service-contender.js +1 -1
  39. package/dist/service-probe.d.ts +5 -5
  40. package/dist/service-probe.js +3 -3
  41. package/dist/service-timing.js +1 -1
  42. package/dist/service-version.js +1 -1
  43. package/dist/service.js +1 -1
  44. package/dist/shared-events.js +1 -1
  45. package/dist/solid/connection.js +1 -1
  46. package/dist/solid/data.js +9 -9
  47. package/dist/solid/index.js +12 -12
  48. package/dist/solid/pty.js +1 -1
  49. package/dist/solid/usage.js +1 -1
  50. package/package.json +6 -6
  51. /package/dist/chunks/{shared-events-6mptkzbc.js → service-version-6mptkzbc.js} +0 -0
  52. /package/dist/chunks/{shared-events-7f0py9js.js → service-version-7f0py9js.js} +0 -0
  53. /package/dist/chunks/{shared-events-8s2anffy.js → service-version-8s2anffy.js} +0 -0
  54. /package/dist/chunks/{shared-events-9rqn6x4v.js → service-version-9rqn6x4v.js} +0 -0
  55. /package/dist/chunks/{shared-events-gne7h7mq.js → service-version-gne7h7mq.js} +0 -0
  56. /package/dist/chunks/{shared-events-js54wxgp.js → service-version-js54wxgp.js} +0 -0
  57. /package/dist/chunks/{shared-events-m2eywc8w.js → service-version-m2eywc8w.js} +0 -0
  58. /package/dist/chunks/{shared-events-qav6mfdz.js → service-version-qav6mfdz.js} +0 -0
  59. /package/dist/chunks/{shared-events-sxt88q69.js → service-version-sxt88q69.js} +0 -0
  60. /package/dist/chunks/{shared-events-ve4aws36.js → service-version-ve4aws36.js} +0 -0
  61. /package/dist/chunks/{shared-events-vmytr4q8.js → service-version-vmytr4q8.js} +0 -0
  62. /package/dist/chunks/{shared-events-vyas3vgt.js → service-version-vyas3vgt.js} +0 -0
  63. /package/dist/chunks/{shared-events-xgnj2w4v.js → service-version-xgnj2w4v.js} +0 -0
  64. /package/dist/chunks/{shared-events-ydhz1zrh.js → service-version-ydhz1zrh.js} +0 -0
@@ -7,539 +7,361 @@ import type { RpcCallOptions } from "../promise/rpc.js";
7
7
  export declare const make: (options?: {
8
8
  readonly baseUrl?: URL | string;
9
9
  } | undefined) => Effect.Effect<{
10
- event: {
11
- subscribe: () => Stream.Stream<{
12
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
13
- readonly data: {};
14
- readonly type: "skill.updated";
15
- readonly created: number;
16
- readonly location?: {
17
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
18
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
19
- } | undefined;
20
- readonly metadata?: {
21
- readonly [x: string]: unknown;
22
- } | undefined;
23
- } | {
24
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
25
- readonly data: {
26
- readonly form: {
27
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
28
- readonly fields: readonly [{
29
- readonly type: "string";
30
- readonly key: string;
31
- readonly required?: boolean | undefined;
32
- readonly options?: readonly {
33
- readonly value: string;
34
- readonly label: string;
35
- readonly description?: string | undefined;
36
- }[] | undefined;
37
- readonly description?: string | undefined;
38
- readonly format?: "email" | "uri" | "date" | "date-time" | undefined;
39
- readonly minLength?: number | undefined;
40
- readonly maxLength?: number | undefined;
41
- readonly pattern?: string | undefined;
42
- readonly placeholder?: string | undefined;
43
- readonly default?: string | undefined;
44
- readonly custom?: boolean | undefined;
45
- readonly title?: string | undefined;
46
- readonly hidden?: boolean | undefined;
47
- readonly when?: readonly {
48
- readonly key: string;
49
- readonly op: "eq" | "neq";
50
- readonly value: string | number | boolean;
51
- }[] | undefined;
52
- } | {
53
- readonly type: "number";
54
- readonly key: string;
55
- readonly required?: boolean | undefined;
56
- readonly description?: string | undefined;
57
- readonly default?: number | undefined;
58
- readonly title?: string | undefined;
59
- readonly hidden?: boolean | undefined;
60
- readonly when?: readonly {
61
- readonly key: string;
62
- readonly op: "eq" | "neq";
63
- readonly value: string | number | boolean;
64
- }[] | undefined;
65
- readonly minimum?: number | undefined;
66
- readonly maximum?: number | undefined;
67
- } | {
68
- readonly type: "integer";
69
- readonly key: string;
70
- readonly required?: boolean | undefined;
71
- readonly description?: string | undefined;
72
- readonly default?: number | undefined;
73
- readonly title?: string | undefined;
74
- readonly hidden?: boolean | undefined;
75
- readonly when?: readonly {
76
- readonly key: string;
77
- readonly op: "eq" | "neq";
78
- readonly value: string | number | boolean;
79
- }[] | undefined;
80
- readonly minimum?: number | undefined;
81
- readonly maximum?: number | undefined;
82
- } | {
83
- readonly type: "boolean";
84
- readonly key: string;
85
- readonly required?: boolean | undefined;
86
- readonly description?: string | undefined;
87
- readonly default?: boolean | undefined;
88
- readonly title?: string | undefined;
89
- readonly hidden?: boolean | undefined;
90
- readonly when?: readonly {
91
- readonly key: string;
92
- readonly op: "eq" | "neq";
93
- readonly value: string | number | boolean;
94
- }[] | undefined;
95
- } | {
96
- readonly type: "multiselect";
97
- readonly options: readonly {
98
- readonly value: string;
99
- readonly label: string;
100
- readonly description?: string | undefined;
101
- }[];
102
- readonly key: string;
103
- readonly required?: boolean | undefined;
104
- readonly description?: string | undefined;
105
- readonly default?: readonly string[] | undefined;
106
- readonly custom?: boolean | undefined;
107
- readonly title?: string | undefined;
108
- readonly hidden?: boolean | undefined;
109
- readonly when?: readonly {
110
- readonly key: string;
111
- readonly op: "eq" | "neq";
112
- readonly value: string | number | boolean;
113
- }[] | undefined;
114
- readonly minItems?: number | undefined;
115
- readonly maxItems?: number | undefined;
116
- } | {
117
- readonly type: "external";
118
- readonly url: string;
119
- readonly key: string;
120
- readonly description?: string | undefined;
121
- readonly title?: string | undefined;
122
- }, ...({
123
- readonly type: "string";
124
- readonly key: string;
125
- readonly required?: boolean | undefined;
126
- readonly options?: readonly {
127
- readonly value: string;
128
- readonly label: string;
129
- readonly description?: string | undefined;
130
- }[] | undefined;
131
- readonly description?: string | undefined;
132
- readonly format?: "email" | "uri" | "date" | "date-time" | undefined;
133
- readonly minLength?: number | undefined;
134
- readonly maxLength?: number | undefined;
135
- readonly pattern?: string | undefined;
136
- readonly placeholder?: string | undefined;
137
- readonly default?: string | undefined;
138
- readonly custom?: boolean | undefined;
139
- readonly title?: string | undefined;
140
- readonly hidden?: boolean | undefined;
141
- readonly when?: readonly {
142
- readonly key: string;
143
- readonly op: "eq" | "neq";
144
- readonly value: string | number | boolean;
145
- }[] | undefined;
146
- } | {
147
- readonly type: "number";
148
- readonly key: string;
149
- readonly required?: boolean | undefined;
150
- readonly description?: string | undefined;
151
- readonly default?: number | undefined;
152
- readonly title?: string | undefined;
153
- readonly hidden?: boolean | undefined;
154
- readonly when?: readonly {
155
- readonly key: string;
156
- readonly op: "eq" | "neq";
157
- readonly value: string | number | boolean;
158
- }[] | undefined;
159
- readonly minimum?: number | undefined;
160
- readonly maximum?: number | undefined;
161
- } | {
162
- readonly type: "integer";
163
- readonly key: string;
164
- readonly required?: boolean | undefined;
165
- readonly description?: string | undefined;
166
- readonly default?: number | undefined;
167
- readonly title?: string | undefined;
168
- readonly hidden?: boolean | undefined;
169
- readonly when?: readonly {
170
- readonly key: string;
171
- readonly op: "eq" | "neq";
172
- readonly value: string | number | boolean;
173
- }[] | undefined;
174
- readonly minimum?: number | undefined;
175
- readonly maximum?: number | undefined;
176
- } | {
177
- readonly type: "boolean";
178
- readonly key: string;
179
- readonly required?: boolean | undefined;
180
- readonly description?: string | undefined;
181
- readonly default?: boolean | undefined;
182
- readonly title?: string | undefined;
183
- readonly hidden?: boolean | undefined;
184
- readonly when?: readonly {
185
- readonly key: string;
186
- readonly op: "eq" | "neq";
187
- readonly value: string | number | boolean;
188
- }[] | undefined;
189
- } | {
190
- readonly type: "multiselect";
191
- readonly options: readonly {
192
- readonly value: string;
193
- readonly label: string;
194
- readonly description?: string | undefined;
195
- }[];
196
- readonly key: string;
197
- readonly required?: boolean | undefined;
198
- readonly description?: string | undefined;
199
- readonly default?: readonly string[] | undefined;
200
- readonly custom?: boolean | undefined;
201
- readonly title?: string | undefined;
202
- readonly hidden?: boolean | undefined;
203
- readonly when?: readonly {
204
- readonly key: string;
205
- readonly op: "eq" | "neq";
206
- readonly value: string | number | boolean;
207
- }[] | undefined;
208
- readonly minItems?: number | undefined;
209
- readonly maxItems?: number | undefined;
210
- } | {
211
- readonly type: "external";
212
- readonly url: string;
213
- readonly key: string;
214
- readonly description?: string | undefined;
215
- readonly title?: string | undefined;
216
- })[]];
217
- readonly sessionID: string;
218
- readonly title: string;
219
- readonly metadata?: {
220
- readonly [x: string]: unknown;
221
- } | undefined;
222
- };
223
- };
224
- readonly type: "form.created";
225
- readonly created: number;
226
- readonly location?: {
227
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
228
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
229
- } | undefined;
230
- readonly metadata?: {
231
- readonly [x: string]: unknown;
232
- } | undefined;
233
- } | {
234
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
235
- readonly data: {
236
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
237
- readonly sessionID: string;
238
- readonly answer: {
239
- readonly [x: string]: string | number | boolean | readonly string[];
240
- };
241
- };
242
- readonly type: "form.replied";
243
- readonly created: number;
244
- readonly location?: {
245
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
246
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
247
- } | undefined;
248
- readonly metadata?: {
249
- readonly [x: string]: unknown;
250
- } | undefined;
251
- } | {
252
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
253
- readonly data: {
254
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
255
- readonly sessionID: string;
10
+ server: {
11
+ info: () => Effect.Effect<import("./api.js").ServerInfoOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
12
+ pair: () => Effect.Effect<import("./api.js").ServerPairOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
13
+ connect: (input: import("./api.js").ServerConnectInput) => Effect.Effect<import("./api.js").ServerConnectOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
14
+ };
15
+ location: {
16
+ get: (input?: import("./api.js").LocationGetInput) => Effect.Effect<import("@opencode/schema/location").PublicInfo, 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>;
17
+ 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
+ };
19
+ 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>;
21
+ 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
+ };
23
+ plugin: {
24
+ 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>;
25
+ 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
+ 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
+ };
28
+ session: {
29
+ list: (input?: import("./api.js").SessionListInput) => Effect.Effect<import("./api.js").SessionListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidCursorError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
30
+ stats: (input?: import("./api.js").SessionStatsInput) => Effect.Effect<import("./api.js").SessionStatsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
31
+ create: (input?: import("./api.js").SessionCreateInput) => 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>;
32
+ import: (input: import("./api.js").SessionImportInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("@opencode/protocol/errors").ConflictError | 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>;
33
+ export: (input: import("./api.js").SessionExportInput) => Effect.Effect<import("./api.js").SessionExportOutput, 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>;
34
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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>;
43
+ command: (input: import("./api.js").SessionCommandInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").CommandExecutionError | import("@opencode/protocol/errors").CommandNotFoundError | 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>;
44
+ skill: (input: import("./api.js").SessionSkillInput) => 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").SkillNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
45
+ 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
+ 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
+ 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>;
49
+ revert: {
50
+ 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
+ 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>;
53
+ };
54
+ 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
+ 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>;
56
+ inbox: {
57
+ list: (input: import("./api.js").SessionInboxListInput) => Effect.Effect<import("./api.js").SessionInboxListOutput, 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>;
58
+ cancel: (input: import("./api.js").SessionInboxCancelInput) => 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>;
59
+ update: (input: import("./api.js").SessionInboxUpdateInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ConflictError | 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>;
60
+ };
61
+ instructions: {
62
+ 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>;
256
66
  };
257
- readonly type: "form.cancelled";
258
- readonly created: number;
259
- readonly location?: {
260
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
261
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
262
- } | undefined;
263
- readonly metadata?: {
264
- readonly [x: string]: unknown;
265
- } | undefined;
266
- } | {
267
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
268
- readonly data: {};
269
- readonly type: "credential.updated";
270
- readonly created: number;
271
- readonly location?: {
272
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
273
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
274
- } | undefined;
275
- readonly metadata?: {
276
- readonly [x: string]: unknown;
277
- } | undefined;
278
- } | {
67
+ };
68
+ 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
+ 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>;
72
+ message: {
73
+ 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
+ };
75
+ form: {
76
+ list: (input: import("./api.js").SessionFormListInput) => Effect.Effect<import("./api.js").SessionFormListOutput, 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>;
77
+ create: (input: import("./api.js").SessionFormCreateInput) => Effect.Effect<import("@opencode/schema/form").Info, 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>;
78
+ get: (input: import("./api.js").SessionFormGetInput) => Effect.Effect<import("@opencode/schema/form").Detail, ClientError | import("@opencode/protocol/errors").FormNotFoundError | 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>;
79
+ reply: (input: import("./api.js").SessionFormReplyInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").FormAlreadySettledError | import("@opencode/protocol/errors").FormInvalidAnswerError | import("@opencode/protocol/errors").FormNotFoundError | 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>;
80
+ cancel: (input: import("./api.js").SessionFormCancelInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").FormAlreadySettledError | import("@opencode/protocol/errors").FormNotFoundError | 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>;
81
+ };
82
+ environment: (input: import("./api.js").SessionEnvironmentInput) => 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>;
83
+ view: (input: import("./api.js").SessionViewInput) => 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>;
84
+ };
85
+ message: {
86
+ list: (input: import("./api.js").MessageListInput) => Effect.Effect<import("./api.js").MessageListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidCursorError | 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>;
87
+ };
88
+ model: {
89
+ list: (input?: import("./api.js").ModelListInput) => Effect.Effect<import("./api.js").ModelListOutput, 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>;
90
+ 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
+ };
92
+ 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>;
94
+ };
95
+ voice: {
96
+ 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>;
97
+ };
98
+ provider: {
99
+ 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>;
100
+ get: (input: import("./api.js").ProviderGetInput) => Effect.Effect<import("./api.js").ProviderGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
101
+ };
102
+ integration: {
103
+ list: (input?: import("./api.js").IntegrationListInput) => Effect.Effect<import("./api.js").IntegrationListOutput, 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>;
104
+ get: (input: import("./api.js").IntegrationGetInput) => Effect.Effect<import("./api.js").IntegrationGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
105
+ wellknown: {
106
+ add: (input: import("./api.js").IntegrationWellknownAddInput) => 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>;
107
+ };
108
+ connect: {
109
+ key: (input: import("./api.js").IntegrationConnectKeyInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
110
+ external: (input: import("./api.js").IntegrationConnectExternalInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
111
+ };
112
+ oauth: {
113
+ connect: (input: import("./api.js").IntegrationOauthConnectInput) => Effect.Effect<import("./api.js").IntegrationOauthConnectOutput, 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>;
114
+ status: (input: import("./api.js").IntegrationOauthStatusInput) => Effect.Effect<import("./api.js").IntegrationOauthStatusOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
115
+ complete: (input: import("./api.js").IntegrationOauthCompleteInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
116
+ cancel: (input: import("./api.js").IntegrationOauthCancelInput) => 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>;
117
+ };
118
+ command: {
119
+ connect: (input: import("./api.js").IntegrationCommandConnectInput) => Effect.Effect<import("./api.js").IntegrationCommandConnectOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationMethodNotFoundError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
120
+ status: (input: import("./api.js").IntegrationCommandStatusInput) => Effect.Effect<import("./api.js").IntegrationCommandStatusOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
121
+ cancel: (input: import("./api.js").IntegrationCommandCancelInput) => 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>;
122
+ };
123
+ };
124
+ mcp: {
125
+ list: (input?: import("./api.js").McpListInput) => Effect.Effect<import("./api.js").McpListOutput, 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>;
126
+ add: (input: import("./api.js").McpAddInput) => 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>;
127
+ remove: (input: import("./api.js").McpRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
128
+ connect: (input: import("./api.js").McpConnectInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
129
+ disconnect: (input: import("./api.js").McpDisconnectInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
130
+ resource: {
131
+ catalog: (input?: import("./api.js").McpResourceCatalogInput) => Effect.Effect<import("./api.js").McpResourceCatalogOutput, 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>;
132
+ };
133
+ };
134
+ credential: {
135
+ list: () => Effect.Effect<import("./api.js").CredentialListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
136
+ create: (input: import("./api.js").CredentialCreateInput) => Effect.Effect<import("@opencode/schema/credential").Entry, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
137
+ update: (input: import("./api.js").CredentialUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
138
+ activate: (input: import("./api.js").CredentialActivateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
139
+ 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>;
140
+ };
141
+ project: {
142
+ 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>;
143
+ 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>;
144
+ };
145
+ form: {
146
+ 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>;
147
+ };
148
+ permission: {
149
+ request: {
150
+ list: (input?: import("./api.js").PermissionRequestListInput) => Effect.Effect<import("./api.js").PermissionRequestListOutput, 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>;
151
+ };
152
+ saved: {
153
+ 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>;
154
+ 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>;
155
+ 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>;
156
+ };
157
+ 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>;
158
+ 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>;
159
+ get: (input: import("./api.js").PermissionGetInput) => Effect.Effect<import("@opencode/schema/permission").Request, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PermissionNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
160
+ reply: (input: import("./api.js").PermissionReplyInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PermissionNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
161
+ };
162
+ file: {
163
+ 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>;
164
+ 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>;
165
+ };
166
+ command: {
167
+ 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>;
168
+ };
169
+ skill: {
170
+ list: (input?: import("./api.js").SkillListInput) => Effect.Effect<import("./api.js").SkillListOutput, 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>;
171
+ };
172
+ pty: {
173
+ list: (input?: import("./api.js").PtyListInput) => Effect.Effect<import("./api.js").PtyListOutput, 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
+ create: (input?: import("./api.js").PtyCreateInput) => Effect.Effect<import("./api.js").PtyCreateOutput, 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>;
175
+ get: (input: import("./api.js").PtyGetInput) => Effect.Effect<import("./api.js").PtyGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
176
+ update: (input: import("./api.js").PtyUpdateInput) => Effect.Effect<import("./api.js").PtyUpdateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
177
+ remove: (input: import("./api.js").PtyRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
178
+ connect: {
179
+ token: (input: import("./api.js").PtyConnectTokenInput) => Effect.Effect<import("./api.js").PtyConnectTokenOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
180
+ };
181
+ };
182
+ experimental: {
183
+ persistentPty: {
184
+ read: (input: import("./api.js").ExperimentalPersistentPtyReadInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyReadOutput, 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>;
185
+ list: (input: import("./api.js").ExperimentalPersistentPtyListInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyListOutput, 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>;
186
+ create: (input: import("./api.js").ExperimentalPersistentPtyCreateInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyCreateOutput, 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>;
187
+ shutdown: () => 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>;
188
+ handoff: () => Effect.Effect<import("./api.js").ExperimentalPersistentPtyHandoffOutput, 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>;
189
+ get: (input: import("./api.js").ExperimentalPersistentPtyGetInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
190
+ update: (input: import("./api.js").ExperimentalPersistentPtyUpdateInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyUpdateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
191
+ snapshot: (input: import("./api.js").ExperimentalPersistentPtySnapshotInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtySnapshotOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
192
+ remove: (input: import("./api.js").ExperimentalPersistentPtyRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
193
+ connectToken: (input: import("./api.js").ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<import("@opencode/schema/pty-ticket").ConnectToken, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
194
+ };
195
+ };
196
+ shell: {
197
+ list: (input?: import("./api.js").ShellListInput) => Effect.Effect<import("./api.js").ShellListOutput, 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>;
198
+ create: (input: import("./api.js").ShellCreateInput) => Effect.Effect<import("./api.js").ShellCreateOutput, 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>;
199
+ get: (input: import("./api.js").ShellGetInput) => Effect.Effect<import("./api.js").ShellGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ShellNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
200
+ output: (input: import("./api.js").ShellOutputInput) => Effect.Effect<import("./api.js").ShellOutputOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ShellNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
201
+ remove: (input: import("./api.js").ShellRemoveInput) => 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>;
202
+ };
203
+ reference: {
204
+ list: (input?: import("./api.js").ReferenceListInput) => Effect.Effect<import("./api.js").ReferenceListOutput, 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>;
205
+ };
206
+ worktree: {
207
+ list: (input: import("./api.js").WorktreeListInput) => Effect.Effect<readonly {
208
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
209
+ readonly strategy?: string | undefined;
210
+ }[], 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>;
211
+ create: (input: import("./api.js").WorktreeCreateInput) => Effect.Effect<import("@opencode/schema/worktree").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 | import("@opencode/protocol/groups/worktree").WorktreeError, never>;
212
+ remove: (input: import("./api.js").WorktreeRemoveInput) => Effect.Effect<void, 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 | import("@opencode/protocol/groups/worktree").WorktreeError, never>;
213
+ refresh: (input: import("./api.js").WorktreeRefreshInput) => Effect.Effect<void, 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 | import("@opencode/protocol/groups/worktree").WorktreeError, never>;
214
+ };
215
+ vcs: {
216
+ init: (input?: import("./api.js").VcsInitInput) => Effect.Effect<void, 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").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/groups/vcs").VcsInitNotSupportedError, never>;
217
+ get: (input?: import("./api.js").VcsGetInput) => Effect.Effect<import("./api.js").VcsGetOutput, 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>;
218
+ base: (input?: import("./api.js").VcsBaseInput) => Effect.Effect<import("./api.js").VcsBaseOutput, 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>;
219
+ status: (input?: import("./api.js").VcsStatusInput) => Effect.Effect<import("./api.js").VcsStatusOutput, 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>;
220
+ branch: {
221
+ list: (input?: import("./api.js").VcsBranchListInput) => Effect.Effect<import("./api.js").VcsBranchListOutput, 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>;
222
+ };
223
+ diff: (input: import("./api.js").VcsDiffInput) => Effect.Effect<import("./api.js").VcsDiffOutput, 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>;
224
+ };
225
+ debug: {
226
+ location: {
227
+ list: () => Effect.Effect<import("./api.js").DebugLocationListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
228
+ evict: (input?: import("./api.js").DebugLocationEvictInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
229
+ };
230
+ };
231
+ migration: {
232
+ v1: {
233
+ status: () => Effect.Effect<import("./api.js").MigrationV1StatusOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
234
+ };
235
+ };
236
+ websearch: {
237
+ 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>;
238
+ 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>;
239
+ };
240
+ config: {
241
+ 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>;
242
+ 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>;
243
+ 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>;
244
+ };
245
+ event: {
246
+ subscribe: () => Stream.Stream<{
279
247
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
280
- readonly data: {
281
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
282
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
283
- };
284
- readonly type: "credential.switched";
285
248
  readonly created: number;
286
- readonly location?: {
287
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
288
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
289
- } | undefined;
290
249
  readonly metadata?: {
291
250
  readonly [x: string]: unknown;
292
251
  } | undefined;
293
- } | {
294
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
295
- readonly data: {};
296
- readonly type: "integration.updated";
297
- readonly created: number;
252
+ readonly type: "skill.updated";
298
253
  readonly location?: {
299
254
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
300
255
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
301
256
  } | undefined;
302
- readonly metadata?: {
303
- readonly [x: string]: unknown;
304
- } | undefined;
305
- } | {
306
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
307
257
  readonly data: {};
308
- readonly type: "provider.updated";
309
- readonly created: number;
310
- readonly location?: {
311
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
312
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
313
- } | undefined;
314
- readonly metadata?: {
315
- readonly [x: string]: unknown;
316
- } | undefined;
317
258
  } | {
318
259
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
319
- readonly data: {};
320
- readonly type: "model.updated";
321
260
  readonly created: number;
322
- readonly location?: {
323
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
324
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
325
- } | undefined;
326
261
  readonly metadata?: {
327
262
  readonly [x: string]: unknown;
328
263
  } | undefined;
329
- } | {
330
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
331
- readonly data: {
332
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
333
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
334
- readonly action: string;
335
- readonly resources: readonly string[];
336
- readonly metadata?: {
337
- readonly [x: string]: unknown;
338
- } | undefined;
339
- readonly message?: string | undefined;
340
- readonly save?: readonly string[] | undefined;
341
- readonly source?: {
342
- readonly type: "tool";
343
- readonly messageID: string;
344
- readonly id: string;
345
- } | undefined;
346
- };
347
- readonly type: "permission.asked";
348
- readonly created: number;
264
+ readonly type: "credential.switched";
349
265
  readonly location?: {
350
266
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
351
267
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
352
268
  } | undefined;
353
- readonly metadata?: {
354
- readonly [x: string]: unknown;
355
- } | undefined;
356
- } | {
357
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
358
269
  readonly data: {
359
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
360
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
361
- readonly reply: "once" | "always" | "reject";
270
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
271
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
362
272
  };
363
- readonly type: "permission.replied";
364
- readonly created: number;
365
- readonly location?: {
366
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
367
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
368
- } | undefined;
369
- readonly metadata?: {
370
- readonly [x: string]: unknown;
371
- } | undefined;
372
- } | {
373
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
374
- readonly data: {};
375
- readonly type: "agent.updated";
376
- readonly created: number;
377
- readonly location?: {
378
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
379
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
380
- } | undefined;
381
- readonly metadata?: {
382
- readonly [x: string]: unknown;
383
- } | undefined;
384
273
  } | {
385
274
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
386
- readonly data: {
387
- readonly id: string & import("effect/Brand").Brand<"Project.ID">;
388
- readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
389
- readonly time: {
390
- readonly created: number;
391
- readonly active: number;
392
- readonly updated: number;
393
- readonly archived?: number | undefined;
394
- };
395
- readonly sandboxes: readonly string[];
396
- readonly name?: string | undefined;
397
- readonly vcs?: string | undefined;
398
- readonly icon?: {
399
- readonly url?: string | undefined;
400
- readonly color?: string | undefined;
401
- readonly override?: string | undefined;
402
- } | undefined;
403
- readonly commands?: {
404
- readonly start?: string | undefined;
405
- } | undefined;
406
- };
407
- readonly type: "project.updated";
408
275
  readonly created: number;
409
- readonly location?: {
410
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
411
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
412
- } | undefined;
413
276
  readonly metadata?: {
414
277
  readonly [x: string]: unknown;
415
278
  } | undefined;
416
- } | {
417
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
418
- readonly data: {
419
- readonly info: {
420
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
421
- readonly metadata: {
422
- readonly [x: string]: unknown;
423
- };
424
- readonly command: string;
425
- readonly status: "timeout" | "running" | "exited" | "killed";
426
- readonly time: {
427
- readonly started: number;
428
- readonly completed?: number | undefined;
429
- };
430
- readonly cwd: string;
431
- readonly shell: string;
432
- readonly file: string;
433
- readonly pid?: number | undefined;
434
- readonly exit?: number | undefined;
435
- readonly signal?: string | undefined;
436
- };
437
- };
438
- readonly type: "shell.created";
439
- readonly created: number;
279
+ readonly type: "credential.updated";
440
280
  readonly location?: {
441
281
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
442
282
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
443
283
  } | undefined;
444
- readonly metadata?: {
445
- readonly [x: string]: unknown;
446
- } | undefined;
284
+ readonly data: {};
447
285
  } | {
448
286
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
449
- readonly data: {
450
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
451
- readonly status: "timeout" | "running" | "exited" | "killed";
452
- readonly exit?: number | undefined;
453
- };
454
- readonly type: "shell.exited";
455
287
  readonly created: number;
456
- readonly location?: {
457
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
458
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
459
- } | undefined;
460
288
  readonly metadata?: {
461
289
  readonly [x: string]: unknown;
462
290
  } | undefined;
463
- } | {
464
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
465
- readonly data: {
466
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
291
+ readonly type: "session.created";
292
+ readonly durable: {
293
+ readonly aggregateID: string;
294
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
295
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
467
296
  };
468
- readonly type: "shell.deleted";
469
- readonly created: number;
470
297
  readonly location?: {
471
298
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
472
299
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
473
300
  } | undefined;
474
- readonly metadata?: {
475
- readonly [x: string]: unknown;
476
- } | undefined;
477
- } | {
478
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
479
301
  readonly data: {
302
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
303
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
480
304
  readonly location: {
481
305
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
482
306
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
483
307
  };
484
- readonly version: string;
485
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
486
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
308
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
309
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
487
310
  readonly slug: string;
488
- readonly metadata?: {
489
- readonly [x: string]: import("effect/Schema").Json;
490
- } | undefined;
491
311
  readonly title?: string | undefined;
312
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
492
313
  readonly model?: {
493
314
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
494
315
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
495
316
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
496
317
  } | undefined;
318
+ readonly metadata?: {
319
+ readonly [x: string]: import("effect/Schema").Json;
320
+ } | undefined;
497
321
  readonly permissions?: readonly {
498
322
  readonly action: string;
499
323
  readonly resource: string;
500
- readonly effect: "allow" | "deny" | "ask";
324
+ readonly effect: "allow" | "ask" | "deny";
501
325
  }[] | undefined;
502
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
503
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
504
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
326
+ readonly version: string;
505
327
  };
328
+ } | {
329
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
330
+ readonly created: number;
331
+ readonly metadata?: {
332
+ readonly [x: string]: unknown;
333
+ } | undefined;
334
+ readonly type: "session.agent.selected";
506
335
  readonly durable: {
507
336
  readonly aggregateID: string;
508
337
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
509
338
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
510
339
  };
511
- readonly type: "session.created";
512
- readonly created: number;
513
340
  readonly location?: {
514
341
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
515
342
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
516
343
  } | undefined;
517
- readonly metadata?: {
518
- readonly [x: string]: unknown;
519
- } | undefined;
520
- } | {
521
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
522
344
  readonly data: {
523
345
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
524
346
  readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
525
347
  readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
526
348
  };
349
+ } | {
350
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
351
+ readonly created: number;
352
+ readonly metadata?: {
353
+ readonly [x: string]: unknown;
354
+ } | undefined;
355
+ readonly type: "session.model.selected";
527
356
  readonly durable: {
528
357
  readonly aggregateID: string;
529
358
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
530
359
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
531
360
  };
532
- readonly type: "session.agent.selected";
533
- readonly created: number;
534
361
  readonly location?: {
535
362
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
536
363
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
537
364
  } | undefined;
538
- readonly metadata?: {
539
- readonly [x: string]: unknown;
540
- } | undefined;
541
- } | {
542
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
543
365
  readonly data: {
544
366
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
545
367
  readonly model: {
@@ -553,134 +375,168 @@ export declare const make: (options?: {
553
375
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
554
376
  } | undefined;
555
377
  };
378
+ } | {
379
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
380
+ readonly created: number;
381
+ readonly metadata?: {
382
+ readonly [x: string]: unknown;
383
+ } | undefined;
384
+ readonly type: "session.moved";
556
385
  readonly durable: {
557
386
  readonly aggregateID: string;
558
387
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
559
388
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
560
389
  };
561
- readonly type: "session.model.selected";
562
- readonly created: number;
563
390
  readonly location?: {
564
391
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
565
392
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
566
393
  } | undefined;
567
- readonly metadata?: {
568
- readonly [x: string]: unknown;
569
- } | undefined;
570
- } | {
571
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
572
394
  readonly data: {
573
395
  readonly location: {
574
396
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
575
397
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
576
398
  };
577
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
578
399
  readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
579
400
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
401
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
580
402
  };
403
+ } | {
404
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
405
+ readonly created: number;
406
+ readonly metadata?: {
407
+ readonly [x: string]: unknown;
408
+ } | undefined;
409
+ readonly type: "session.renamed";
581
410
  readonly durable: {
582
411
  readonly aggregateID: string;
583
412
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
584
413
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
585
414
  };
586
- readonly type: "session.moved";
587
- readonly created: number;
588
415
  readonly location?: {
589
416
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
590
417
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
591
418
  } | undefined;
592
- readonly metadata?: {
593
- readonly [x: string]: unknown;
594
- } | undefined;
595
- } | {
596
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
597
419
  readonly data: {
598
- readonly title: string;
599
420
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
421
+ readonly title: string;
600
422
  };
423
+ } | {
424
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
425
+ readonly created: number;
426
+ readonly metadata?: {
427
+ readonly [x: string]: unknown;
428
+ } | undefined;
429
+ readonly type: "session.metadata.updated";
601
430
  readonly durable: {
602
431
  readonly aggregateID: string;
603
432
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
604
433
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
605
434
  };
606
- readonly type: "session.renamed";
607
- readonly created: number;
608
435
  readonly location?: {
609
436
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
610
437
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
611
438
  } | undefined;
612
- readonly metadata?: {
613
- readonly [x: string]: unknown;
614
- } | undefined;
615
- } | {
616
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
617
439
  readonly data: {
440
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
618
441
  readonly metadata: {
619
442
  readonly [x: string]: import("effect/Schema").Json;
620
443
  };
621
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
622
444
  };
445
+ } | {
446
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
447
+ readonly created: number;
448
+ readonly metadata?: {
449
+ readonly [x: string]: unknown;
450
+ } | undefined;
451
+ readonly type: "session.permissions";
623
452
  readonly durable: {
624
453
  readonly aggregateID: string;
625
454
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
626
455
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
627
456
  };
628
- readonly type: "session.metadata.updated";
629
- readonly created: number;
630
457
  readonly location?: {
631
458
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
632
459
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
633
460
  } | undefined;
634
- readonly metadata?: {
635
- readonly [x: string]: unknown;
636
- } | undefined;
637
- } | {
638
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
639
461
  readonly data: {
462
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
640
463
  readonly permissions: readonly {
641
464
  readonly action: string;
642
465
  readonly resource: string;
643
- readonly effect: "allow" | "deny" | "ask";
466
+ readonly effect: "allow" | "ask" | "deny";
644
467
  }[];
645
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
646
468
  };
469
+ } | {
470
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
471
+ readonly created: number;
472
+ readonly metadata?: {
473
+ readonly [x: string]: unknown;
474
+ } | undefined;
475
+ readonly type: "session.viewed";
647
476
  readonly durable: {
648
477
  readonly aggregateID: string;
649
478
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
650
479
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
651
480
  };
652
- readonly type: "session.permissions";
653
- readonly created: number;
654
481
  readonly location?: {
655
482
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
656
483
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
657
484
  } | undefined;
485
+ readonly data: {
486
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
487
+ readonly idle: number;
488
+ };
489
+ } | {
490
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
491
+ readonly created: number;
658
492
  readonly metadata?: {
659
493
  readonly [x: string]: unknown;
660
494
  } | undefined;
661
- } | {
662
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
495
+ readonly type: "session.archived";
496
+ readonly durable: {
497
+ readonly aggregateID: string;
498
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
499
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
500
+ };
501
+ readonly location?: {
502
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
503
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
504
+ } | undefined;
663
505
  readonly data: {
664
- readonly idle: number;
665
506
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
666
507
  };
508
+ } | {
509
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
510
+ readonly created: number;
511
+ readonly metadata?: {
512
+ readonly [x: string]: unknown;
513
+ } | undefined;
514
+ readonly type: "session.unarchived";
667
515
  readonly durable: {
668
516
  readonly aggregateID: string;
669
517
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
670
518
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
671
519
  };
672
- readonly type: "session.viewed";
673
- readonly created: number;
674
520
  readonly location?: {
675
521
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
676
522
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
677
523
  } | undefined;
524
+ readonly data: {
525
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
526
+ };
527
+ } | {
528
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
529
+ readonly created: number;
678
530
  readonly metadata?: {
679
531
  readonly [x: string]: unknown;
680
532
  } | undefined;
681
- } | {
682
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
533
+ readonly type: "session.usage.updated";
534
+ readonly location?: {
535
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
536
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
537
+ } | undefined;
683
538
  readonly data: {
539
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
684
540
  readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
685
541
  readonly tokens: {
686
542
  readonly input: number;
@@ -691,38 +547,42 @@ export declare const make: (options?: {
691
547
  readonly write: number;
692
548
  };
693
549
  };
694
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
695
550
  };
696
- readonly type: "session.usage.updated";
551
+ } | {
552
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
697
553
  readonly created: number;
554
+ readonly metadata?: {
555
+ readonly [x: string]: unknown;
556
+ } | undefined;
557
+ readonly type: "session.deleted";
558
+ readonly durable: {
559
+ readonly aggregateID: string;
560
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
561
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
562
+ };
698
563
  readonly location?: {
699
564
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
700
565
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
701
566
  } | undefined;
702
- readonly metadata?: {
703
- readonly [x: string]: unknown;
704
- } | undefined;
705
- } | {
706
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
707
567
  readonly data: {
708
568
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
709
569
  };
570
+ } | {
571
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
572
+ readonly created: number;
573
+ readonly metadata?: {
574
+ readonly [x: string]: unknown;
575
+ } | undefined;
576
+ readonly type: "session.forked";
710
577
  readonly durable: {
711
578
  readonly aggregateID: string;
712
579
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
713
580
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
714
581
  };
715
- readonly type: "session.deleted";
716
- readonly created: number;
717
582
  readonly location?: {
718
583
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
719
584
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
720
585
  } | undefined;
721
- readonly metadata?: {
722
- readonly [x: string]: unknown;
723
- } | undefined;
724
- } | {
725
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
726
586
  readonly data: {
727
587
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
728
588
  readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
@@ -737,66 +597,65 @@ export declare const make: (options?: {
737
597
  readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
738
598
  } | undefined;
739
599
  readonly instructionEntries?: readonly {
740
- readonly removed: boolean;
741
600
  readonly key: string;
742
601
  readonly value: import("effect/Schema").Json;
602
+ readonly removed: boolean;
743
603
  }[] | undefined;
744
604
  };
605
+ } | {
606
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
607
+ readonly created: number;
608
+ readonly metadata?: {
609
+ readonly [x: string]: unknown;
610
+ } | undefined;
611
+ readonly type: "session.inbox.delivered";
745
612
  readonly durable: {
746
613
  readonly aggregateID: string;
747
614
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
748
615
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
749
616
  };
750
- readonly type: "session.forked";
751
- readonly created: number;
752
617
  readonly location?: {
753
618
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
754
619
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
755
620
  } | undefined;
756
- readonly metadata?: {
757
- readonly [x: string]: unknown;
758
- } | undefined;
759
- } | {
760
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
761
621
  readonly data: {
762
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
763
622
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
623
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
764
624
  };
625
+ } | {
626
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
627
+ readonly created: number;
628
+ readonly metadata?: {
629
+ readonly [x: string]: unknown;
630
+ } | undefined;
631
+ readonly type: "session.inbox.enqueued";
765
632
  readonly durable: {
766
633
  readonly aggregateID: string;
767
634
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
768
635
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
769
636
  };
770
- readonly type: "session.inbox.delivered";
771
- readonly created: number;
772
637
  readonly location?: {
773
638
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
774
639
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
775
640
  } | undefined;
776
- readonly metadata?: {
777
- readonly [x: string]: unknown;
778
- } | undefined;
779
- } | {
780
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
781
641
  readonly data: {
642
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
643
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
782
644
  readonly item: {
783
645
  readonly type: "user";
784
646
  readonly payload: {
785
647
  readonly text: string;
786
- readonly metadata?: {
787
- readonly [x: string]: unknown;
788
- } | undefined;
789
648
  readonly files?: readonly {
790
649
  readonly data: string;
650
+ readonly mime: string;
791
651
  readonly source: {
792
652
  readonly type: "inline";
793
653
  } | {
794
654
  readonly type: "uri";
795
655
  readonly uri: string;
796
656
  };
797
- readonly mime: string;
798
- readonly description?: string | undefined;
799
657
  readonly name?: string | undefined;
658
+ readonly description?: string | undefined;
800
659
  readonly mention?: {
801
660
  readonly start: number;
802
661
  readonly end: number;
@@ -821,22 +680,25 @@ export declare const make: (options?: {
821
680
  readonly text: string;
822
681
  } | undefined;
823
682
  }[] | undefined;
683
+ readonly metadata?: {
684
+ readonly [x: string]: unknown;
685
+ } | undefined;
824
686
  };
825
- readonly delivery: "steer" | "queue";
687
+ readonly delivery: "queue" | "steer";
826
688
  } | {
827
689
  readonly type: "synthetic";
828
690
  readonly payload: {
829
691
  readonly text: string;
692
+ readonly description?: string | undefined;
830
693
  readonly metadata?: {
831
694
  readonly [x: string]: unknown;
832
695
  } | undefined;
833
- readonly description?: string | undefined;
834
696
  };
835
- readonly delivery: "steer" | "queue";
697
+ readonly delivery: "queue" | "steer";
836
698
  } | {
837
699
  readonly type: "compaction";
838
700
  readonly payload: {};
839
- readonly delivery: "steer" | "queue";
701
+ readonly delivery: "queue" | "steer";
840
702
  } | {
841
703
  readonly type: "move";
842
704
  readonly payload: {
@@ -847,107 +709,106 @@ export declare const make: (options?: {
847
709
  readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
848
710
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
849
711
  };
850
- readonly delivery: "steer" | "queue";
712
+ readonly delivery: "queue" | "steer";
851
713
  };
852
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
853
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
854
714
  };
715
+ } | {
716
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
717
+ readonly created: number;
718
+ readonly metadata?: {
719
+ readonly [x: string]: unknown;
720
+ } | undefined;
721
+ readonly type: "session.inbox.cancelled";
855
722
  readonly durable: {
856
723
  readonly aggregateID: string;
857
724
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
858
725
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
859
726
  };
860
- readonly type: "session.inbox.enqueued";
861
- readonly created: number;
862
727
  readonly location?: {
863
728
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
864
729
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
865
730
  } | undefined;
866
- readonly metadata?: {
867
- readonly [x: string]: unknown;
868
- } | undefined;
869
- } | {
870
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
871
731
  readonly data: {
872
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
873
732
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
733
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
874
734
  };
735
+ } | {
736
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
737
+ readonly created: number;
738
+ readonly metadata?: {
739
+ readonly [x: string]: unknown;
740
+ } | undefined;
741
+ readonly type: "session.inbox.delivery.changed";
875
742
  readonly durable: {
876
743
  readonly aggregateID: string;
877
744
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
878
745
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
879
746
  };
880
- readonly type: "session.inbox.cancelled";
881
- readonly created: number;
882
747
  readonly location?: {
883
748
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
884
749
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
885
750
  } | undefined;
886
- readonly metadata?: {
887
- readonly [x: string]: unknown;
888
- } | undefined;
889
- } | {
890
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
891
751
  readonly data: {
892
- readonly delivery: "steer" | "queue";
893
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
894
752
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
753
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
754
+ readonly delivery: "queue" | "steer";
895
755
  };
756
+ } | {
757
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
758
+ readonly created: number;
759
+ readonly metadata?: {
760
+ readonly [x: string]: unknown;
761
+ } | undefined;
762
+ readonly type: "session.execution.started";
896
763
  readonly durable: {
897
764
  readonly aggregateID: string;
898
765
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
899
766
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
900
767
  };
901
- readonly type: "session.inbox.delivery.changed";
902
- readonly created: number;
903
768
  readonly location?: {
904
769
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
905
770
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
906
771
  } | undefined;
907
- readonly metadata?: {
908
- readonly [x: string]: unknown;
909
- } | undefined;
910
- } | {
911
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
912
772
  readonly data: {
913
773
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
914
774
  };
775
+ } | {
776
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
777
+ readonly created: number;
778
+ readonly metadata?: {
779
+ readonly [x: string]: unknown;
780
+ } | undefined;
781
+ readonly type: "session.execution.succeeded";
915
782
  readonly durable: {
916
783
  readonly aggregateID: string;
917
784
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
918
785
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
919
786
  };
920
- readonly type: "session.execution.started";
921
- readonly created: number;
922
787
  readonly location?: {
923
788
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
924
789
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
925
790
  } | undefined;
926
- readonly metadata?: {
927
- readonly [x: string]: unknown;
928
- } | undefined;
929
- } | {
930
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
931
791
  readonly data: {
932
792
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
933
793
  };
794
+ } | {
795
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
796
+ readonly created: number;
797
+ readonly metadata?: {
798
+ readonly [x: string]: unknown;
799
+ } | undefined;
800
+ readonly type: "session.execution.failed";
934
801
  readonly durable: {
935
802
  readonly aggregateID: string;
936
803
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
937
804
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
938
805
  };
939
- readonly type: "session.execution.succeeded";
940
- readonly created: number;
941
806
  readonly location?: {
942
807
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
943
808
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
944
809
  } | undefined;
945
- readonly metadata?: {
946
- readonly [x: string]: unknown;
947
- } | undefined;
948
- } | {
949
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
950
810
  readonly data: {
811
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
951
812
  readonly error: {
952
813
  readonly type: string;
953
814
  readonly message: string;
@@ -956,168 +817,168 @@ export declare const make: (options?: {
956
817
  readonly body: string;
957
818
  } | undefined;
958
819
  };
959
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
960
820
  };
821
+ } | {
822
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
823
+ readonly created: number;
824
+ readonly metadata?: {
825
+ readonly [x: string]: unknown;
826
+ } | undefined;
827
+ readonly type: "session.execution.interrupted";
961
828
  readonly durable: {
962
829
  readonly aggregateID: string;
963
830
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
964
831
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
965
832
  };
966
- readonly type: "session.execution.failed";
967
- readonly created: number;
968
833
  readonly location?: {
969
834
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
970
835
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
971
836
  } | undefined;
972
- readonly metadata?: {
973
- readonly [x: string]: unknown;
974
- } | undefined;
975
- } | {
976
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
977
837
  readonly data: {
978
- readonly reason: "user" | "shutdown" | "superseded" | "inactivity";
979
838
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
839
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
980
840
  };
841
+ } | {
842
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
843
+ readonly created: number;
844
+ readonly metadata?: {
845
+ readonly [x: string]: unknown;
846
+ } | undefined;
847
+ readonly type: "session.instructions.updated";
981
848
  readonly durable: {
982
849
  readonly aggregateID: string;
983
850
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
984
851
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
985
852
  };
986
- readonly type: "session.execution.interrupted";
987
- readonly created: number;
988
853
  readonly location?: {
989
854
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
990
855
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
991
856
  } | undefined;
992
- readonly metadata?: {
993
- readonly [x: string]: unknown;
994
- } | undefined;
995
- } | {
996
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
997
857
  readonly data: {
998
858
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
999
859
  readonly delta: {
1000
- readonly [x: string]: (string & import("effect/Brand").Brand<"Instruction.Hash">) | "removed";
860
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
1001
861
  };
1002
862
  readonly text?: string | undefined;
1003
863
  };
864
+ } | {
865
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
866
+ readonly created: number;
867
+ readonly metadata?: {
868
+ readonly [x: string]: unknown;
869
+ } | undefined;
870
+ readonly type: "session.synthetic";
1004
871
  readonly durable: {
1005
872
  readonly aggregateID: string;
1006
873
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1007
874
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1008
875
  };
1009
- readonly type: "session.instructions.updated";
1010
- readonly created: number;
1011
876
  readonly location?: {
1012
877
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1013
878
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1014
879
  } | undefined;
1015
- readonly metadata?: {
1016
- readonly [x: string]: unknown;
1017
- } | undefined;
1018
- } | {
1019
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1020
880
  readonly data: {
1021
881
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1022
882
  readonly text: string;
883
+ readonly description?: string | undefined;
1023
884
  readonly metadata?: {
1024
885
  readonly [x: string]: unknown;
1025
886
  } | undefined;
1026
- readonly description?: string | undefined;
1027
887
  };
888
+ } | {
889
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
890
+ readonly created: number;
891
+ readonly metadata?: {
892
+ readonly [x: string]: unknown;
893
+ } | undefined;
894
+ readonly type: "session.skill.activated";
1028
895
  readonly durable: {
1029
896
  readonly aggregateID: string;
1030
897
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1031
898
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1032
899
  };
1033
- readonly type: "session.synthetic";
1034
- readonly created: number;
1035
900
  readonly location?: {
1036
901
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1037
902
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1038
903
  } | undefined;
1039
- readonly metadata?: {
1040
- readonly [x: string]: unknown;
1041
- } | undefined;
1042
- } | {
1043
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1044
904
  readonly data: {
905
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1045
906
  readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1046
907
  readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1047
908
  readonly text: string;
1048
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1049
909
  };
910
+ } | {
911
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
912
+ readonly created: number;
913
+ readonly metadata?: {
914
+ readonly [x: string]: unknown;
915
+ } | undefined;
916
+ readonly type: "session.shell.started";
1050
917
  readonly durable: {
1051
918
  readonly aggregateID: string;
1052
919
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1053
920
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1054
921
  };
1055
- readonly type: "session.skill.activated";
1056
- readonly created: number;
1057
922
  readonly location?: {
1058
923
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1059
924
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1060
925
  } | undefined;
1061
- readonly metadata?: {
1062
- readonly [x: string]: unknown;
1063
- } | undefined;
1064
- } | {
1065
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1066
926
  readonly data: {
927
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1067
928
  readonly shell: {
1068
929
  readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1069
- readonly metadata: {
1070
- readonly [x: string]: unknown;
1071
- };
930
+ readonly status: "exited" | "killed" | "running" | "timeout";
1072
931
  readonly command: string;
1073
- readonly status: "timeout" | "running" | "exited" | "killed";
1074
- readonly time: {
1075
- readonly started: number;
1076
- readonly completed?: number | undefined;
1077
- };
1078
932
  readonly cwd: string;
1079
933
  readonly shell: string;
1080
934
  readonly file: string;
1081
935
  readonly pid?: number | undefined;
1082
936
  readonly exit?: number | undefined;
1083
937
  readonly signal?: string | undefined;
938
+ readonly metadata: {
939
+ readonly [x: string]: unknown;
940
+ };
941
+ readonly time: {
942
+ readonly started: number;
943
+ readonly completed?: number | undefined;
944
+ };
1084
945
  };
1085
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1086
946
  };
947
+ } | {
948
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
949
+ readonly created: number;
950
+ readonly metadata?: {
951
+ readonly [x: string]: unknown;
952
+ } | undefined;
953
+ readonly type: "session.shell.ended";
1087
954
  readonly durable: {
1088
955
  readonly aggregateID: string;
1089
956
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1090
957
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1091
958
  };
1092
- readonly type: "session.shell.started";
1093
- readonly created: number;
1094
959
  readonly location?: {
1095
960
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1096
961
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1097
962
  } | undefined;
1098
- readonly metadata?: {
1099
- readonly [x: string]: unknown;
1100
- } | undefined;
1101
- } | {
1102
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1103
963
  readonly data: {
964
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1104
965
  readonly shell: {
1105
966
  readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1106
- readonly metadata: {
1107
- readonly [x: string]: unknown;
1108
- };
967
+ readonly status: "exited" | "killed" | "running" | "timeout";
1109
968
  readonly command: string;
1110
- readonly status: "timeout" | "running" | "exited" | "killed";
1111
- readonly time: {
1112
- readonly started: number;
1113
- readonly completed?: number | undefined;
1114
- };
1115
969
  readonly cwd: string;
1116
970
  readonly shell: string;
1117
971
  readonly file: string;
1118
972
  readonly pid?: number | undefined;
1119
973
  readonly exit?: number | undefined;
1120
974
  readonly signal?: string | undefined;
975
+ readonly metadata: {
976
+ readonly [x: string]: unknown;
977
+ };
978
+ readonly time: {
979
+ readonly started: number;
980
+ readonly completed?: number | undefined;
981
+ };
1121
982
  };
1122
983
  readonly output: {
1123
984
  readonly output: string;
@@ -1125,76 +986,80 @@ export declare const make: (options?: {
1125
986
  readonly size: number;
1126
987
  readonly truncated: boolean;
1127
988
  };
1128
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1129
989
  };
990
+ } | {
991
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
992
+ readonly created: number;
993
+ readonly metadata?: {
994
+ readonly [x: string]: unknown;
995
+ } | undefined;
996
+ readonly type: "session.step.started";
1130
997
  readonly durable: {
1131
998
  readonly aggregateID: string;
1132
999
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1133
1000
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1134
1001
  };
1135
- readonly type: "session.shell.ended";
1136
- readonly created: number;
1137
1002
  readonly location?: {
1138
1003
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1139
1004
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1140
1005
  } | undefined;
1141
- readonly metadata?: {
1142
- readonly [x: string]: unknown;
1143
- } | undefined;
1144
- } | {
1145
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1146
1006
  readonly data: {
1147
1007
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1008
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1009
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1148
1010
  readonly model: {
1149
1011
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1150
1012
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1151
1013
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1152
1014
  };
1153
- readonly started: number;
1154
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1155
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1156
1015
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1016
+ readonly started: number;
1157
1017
  };
1018
+ } | {
1019
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1020
+ readonly created: number;
1021
+ readonly metadata?: {
1022
+ readonly [x: string]: unknown;
1023
+ } | undefined;
1024
+ readonly type: "session.step.streamed";
1158
1025
  readonly durable: {
1159
1026
  readonly aggregateID: string;
1160
1027
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1161
1028
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1162
1029
  };
1163
- readonly type: "session.step.started";
1164
- readonly created: number;
1165
1030
  readonly location?: {
1166
1031
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1167
1032
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1168
1033
  } | undefined;
1169
- readonly metadata?: {
1170
- readonly [x: string]: unknown;
1171
- } | undefined;
1172
- } | {
1173
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1174
1034
  readonly data: {
1175
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1176
1035
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1036
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1177
1037
  };
1038
+ } | {
1039
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1040
+ readonly created: number;
1041
+ readonly metadata?: {
1042
+ readonly [x: string]: unknown;
1043
+ } | undefined;
1044
+ readonly type: "session.step.ended";
1178
1045
  readonly durable: {
1179
1046
  readonly aggregateID: string;
1180
1047
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1181
1048
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1182
1049
  };
1183
- readonly type: "session.step.streamed";
1184
- readonly created: number;
1185
1050
  readonly location?: {
1186
1051
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1187
1052
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1188
1053
  } | undefined;
1189
- readonly metadata?: {
1190
- readonly [x: string]: unknown;
1191
- } | undefined;
1192
- } | {
1193
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1194
1054
  readonly data: {
1195
1055
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1056
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1057
+ readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
1058
+ readonly rawFinish?: string | undefined;
1059
+ readonly native?: {
1060
+ readonly [x: string]: unknown;
1061
+ } | undefined;
1196
1062
  readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1197
- readonly finish: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown";
1198
1063
  readonly tokens: {
1199
1064
  readonly input: number;
1200
1065
  readonly output: number;
@@ -1204,32 +1069,28 @@ export declare const make: (options?: {
1204
1069
  readonly write: number;
1205
1070
  };
1206
1071
  };
1207
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1208
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1209
- readonly providerState?: {
1210
- readonly [x: string]: unknown;
1211
- } | undefined;
1212
1072
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1213
- readonly rawFinish?: string | undefined;
1073
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1214
1074
  };
1075
+ } | {
1076
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1077
+ readonly created: number;
1078
+ readonly metadata?: {
1079
+ readonly [x: string]: unknown;
1080
+ } | undefined;
1081
+ readonly type: "session.step.failed";
1215
1082
  readonly durable: {
1216
1083
  readonly aggregateID: string;
1217
1084
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1218
1085
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1219
1086
  };
1220
- readonly type: "session.step.ended";
1221
- readonly created: number;
1222
1087
  readonly location?: {
1223
1088
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1224
1089
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1225
1090
  } | undefined;
1226
- readonly metadata?: {
1227
- readonly [x: string]: unknown;
1228
- } | undefined;
1229
- } | {
1230
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1231
1091
  readonly data: {
1232
1092
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1093
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1233
1094
  readonly error: {
1234
1095
  readonly type: string;
1235
1096
  readonly message: string;
@@ -1238,15 +1099,12 @@ export declare const make: (options?: {
1238
1099
  readonly body: string;
1239
1100
  } | undefined;
1240
1101
  };
1241
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1242
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1243
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1244
- readonly providerState?: {
1245
- readonly [x: string]: unknown;
1246
- } | undefined;
1247
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1248
1102
  readonly finish?: "content-filter" | undefined;
1249
1103
  readonly rawFinish?: string | undefined;
1104
+ readonly native?: {
1105
+ readonly [x: string]: unknown;
1106
+ } | undefined;
1107
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1250
1108
  readonly tokens?: {
1251
1109
  readonly input: number;
1252
1110
  readonly output: number;
@@ -1256,261 +1114,265 @@ export declare const make: (options?: {
1256
1114
  readonly write: number;
1257
1115
  };
1258
1116
  } | undefined;
1117
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1118
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1259
1119
  };
1120
+ } | {
1121
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1122
+ readonly created: number;
1123
+ readonly metadata?: {
1124
+ readonly [x: string]: unknown;
1125
+ } | undefined;
1126
+ readonly type: "session.text.started";
1260
1127
  readonly durable: {
1261
1128
  readonly aggregateID: string;
1262
1129
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1263
1130
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1264
1131
  };
1265
- readonly type: "session.step.failed";
1266
- readonly created: number;
1267
1132
  readonly location?: {
1268
1133
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1269
1134
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1270
1135
  } | undefined;
1271
- readonly metadata?: {
1272
- readonly [x: string]: unknown;
1273
- } | undefined;
1274
- } | {
1275
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1276
1136
  readonly data: {
1137
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1277
1138
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1278
1139
  readonly ordinal: number;
1279
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1280
- };
1281
- readonly durable: {
1282
- readonly aggregateID: string;
1283
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1284
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1285
1140
  };
1286
- readonly type: "session.text.started";
1141
+ } | {
1142
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1287
1143
  readonly created: number;
1144
+ readonly metadata?: {
1145
+ readonly [x: string]: unknown;
1146
+ } | undefined;
1147
+ readonly type: "session.text.delta";
1288
1148
  readonly location?: {
1289
1149
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1290
1150
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1291
1151
  } | undefined;
1292
- readonly metadata?: {
1293
- readonly [x: string]: unknown;
1294
- } | undefined;
1295
- } | {
1296
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1297
1152
  readonly data: {
1153
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1298
1154
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1299
1155
  readonly ordinal: number;
1300
1156
  readonly delta: string;
1301
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1302
1157
  };
1303
- readonly type: "session.text.delta";
1158
+ } | {
1159
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1304
1160
  readonly created: number;
1161
+ readonly metadata?: {
1162
+ readonly [x: string]: unknown;
1163
+ } | undefined;
1164
+ readonly type: "session.text.ended";
1165
+ readonly durable: {
1166
+ readonly aggregateID: string;
1167
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1168
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1169
+ };
1305
1170
  readonly location?: {
1306
1171
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1307
1172
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1308
1173
  } | undefined;
1309
- readonly metadata?: {
1310
- readonly [x: string]: unknown;
1311
- } | undefined;
1312
- } | {
1313
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1314
1174
  readonly data: {
1315
1175
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1316
- readonly text: string;
1317
1176
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1318
1177
  readonly ordinal: number;
1319
- readonly state?: {
1178
+ readonly text: string;
1179
+ readonly native?: {
1320
1180
  readonly [x: string]: unknown;
1321
1181
  } | undefined;
1322
1182
  };
1183
+ } | {
1184
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1185
+ readonly created: number;
1186
+ readonly metadata?: {
1187
+ readonly [x: string]: unknown;
1188
+ } | undefined;
1189
+ readonly type: "session.reasoning.started";
1323
1190
  readonly durable: {
1324
1191
  readonly aggregateID: string;
1325
1192
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1326
1193
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1327
1194
  };
1328
- readonly type: "session.text.ended";
1329
- readonly created: number;
1330
1195
  readonly location?: {
1331
1196
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1332
1197
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1333
1198
  } | undefined;
1334
- readonly metadata?: {
1335
- readonly [x: string]: unknown;
1336
- } | undefined;
1337
- } | {
1338
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1339
1199
  readonly data: {
1340
1200
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1341
1201
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1342
1202
  readonly ordinal: number;
1343
- readonly state?: {
1203
+ readonly native?: {
1344
1204
  readonly [x: string]: unknown;
1345
1205
  } | undefined;
1346
1206
  };
1347
- readonly durable: {
1348
- readonly aggregateID: string;
1349
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1350
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1351
- };
1352
- readonly type: "session.reasoning.started";
1207
+ } | {
1208
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1353
1209
  readonly created: number;
1210
+ readonly metadata?: {
1211
+ readonly [x: string]: unknown;
1212
+ } | undefined;
1213
+ readonly type: "session.reasoning.delta";
1354
1214
  readonly location?: {
1355
1215
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1356
1216
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1357
1217
  } | undefined;
1358
- readonly metadata?: {
1359
- readonly [x: string]: unknown;
1360
- } | undefined;
1361
- } | {
1362
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1363
1218
  readonly data: {
1219
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1364
1220
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1365
1221
  readonly ordinal: number;
1366
1222
  readonly delta: string;
1367
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1368
1223
  };
1369
- readonly type: "session.reasoning.delta";
1224
+ } | {
1225
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1370
1226
  readonly created: number;
1227
+ readonly metadata?: {
1228
+ readonly [x: string]: unknown;
1229
+ } | undefined;
1230
+ readonly type: "session.reasoning.ended";
1231
+ readonly durable: {
1232
+ readonly aggregateID: string;
1233
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1234
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1235
+ };
1371
1236
  readonly location?: {
1372
1237
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1373
1238
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1374
1239
  } | undefined;
1375
- readonly metadata?: {
1376
- readonly [x: string]: unknown;
1377
- } | undefined;
1378
- } | {
1379
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1380
1240
  readonly data: {
1381
1241
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1382
- readonly text: string;
1383
1242
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1384
1243
  readonly ordinal: number;
1385
- readonly state?: {
1244
+ readonly text: string;
1245
+ readonly native?: {
1386
1246
  readonly [x: string]: unknown;
1387
1247
  } | undefined;
1388
1248
  };
1249
+ } | {
1250
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1251
+ readonly created: number;
1252
+ readonly metadata?: {
1253
+ readonly [x: string]: unknown;
1254
+ } | undefined;
1255
+ readonly type: "session.tool.input.started";
1389
1256
  readonly durable: {
1390
1257
  readonly aggregateID: string;
1391
1258
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1392
1259
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1393
1260
  };
1394
- readonly type: "session.reasoning.ended";
1395
- readonly created: number;
1396
1261
  readonly location?: {
1397
1262
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1398
1263
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1399
1264
  } | undefined;
1265
+ readonly data: {
1266
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1267
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1268
+ readonly id: string;
1269
+ readonly name: string;
1270
+ };
1271
+ } | {
1272
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1273
+ readonly created: number;
1400
1274
  readonly metadata?: {
1401
1275
  readonly [x: string]: unknown;
1402
1276
  } | undefined;
1403
- } | {
1404
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1277
+ readonly type: "session.tool.input.delta";
1278
+ readonly location?: {
1279
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1280
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1281
+ } | undefined;
1405
1282
  readonly data: {
1406
- readonly name: string;
1283
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1407
1284
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1408
1285
  readonly id: string;
1409
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1286
+ readonly delta: string;
1410
1287
  };
1288
+ } | {
1289
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1290
+ readonly created: number;
1291
+ readonly metadata?: {
1292
+ readonly [x: string]: unknown;
1293
+ } | undefined;
1294
+ readonly type: "session.tool.input.ended";
1411
1295
  readonly durable: {
1412
1296
  readonly aggregateID: string;
1413
1297
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1414
1298
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1415
1299
  };
1416
- readonly type: "session.tool.input.started";
1417
- readonly created: number;
1418
1300
  readonly location?: {
1419
1301
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1420
1302
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1421
1303
  } | undefined;
1422
- readonly metadata?: {
1423
- readonly [x: string]: unknown;
1424
- } | undefined;
1425
- } | {
1426
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1427
1304
  readonly data: {
1428
- readonly delta: string;
1305
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1429
1306
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1430
1307
  readonly id: string;
1431
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1308
+ readonly text: string;
1432
1309
  };
1433
- readonly type: "session.tool.input.delta";
1310
+ } | {
1311
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1434
1312
  readonly created: number;
1435
- readonly location?: {
1436
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1437
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1438
- } | undefined;
1439
1313
  readonly metadata?: {
1440
1314
  readonly [x: string]: unknown;
1441
1315
  } | undefined;
1442
- } | {
1443
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1444
- readonly data: {
1445
- readonly text: string;
1446
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1447
- readonly id: string;
1448
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1449
- };
1316
+ readonly type: "session.tool.called";
1450
1317
  readonly durable: {
1451
1318
  readonly aggregateID: string;
1452
1319
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1453
1320
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1454
1321
  };
1455
- readonly type: "session.tool.input.ended";
1456
- readonly created: number;
1457
1322
  readonly location?: {
1458
1323
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1459
1324
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1460
1325
  } | undefined;
1461
- readonly metadata?: {
1462
- readonly [x: string]: unknown;
1463
- } | undefined;
1464
- } | {
1465
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1466
1326
  readonly data: {
1467
- readonly id: string;
1468
1327
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1328
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1329
+ readonly id: string;
1469
1330
  readonly input: {
1470
1331
  readonly [x: string]: unknown;
1471
1332
  };
1472
1333
  readonly executed: boolean;
1473
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1474
- readonly state?: {
1334
+ readonly native?: {
1475
1335
  readonly [x: string]: unknown;
1476
1336
  } | undefined;
1477
1337
  };
1478
- readonly durable: {
1479
- readonly aggregateID: string;
1480
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1481
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1482
- };
1483
- readonly type: "session.tool.called";
1338
+ } | {
1339
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1484
1340
  readonly created: number;
1341
+ readonly metadata?: {
1342
+ readonly [x: string]: unknown;
1343
+ } | undefined;
1344
+ readonly type: "session.tool.progress";
1485
1345
  readonly location?: {
1486
1346
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1487
1347
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1488
1348
  } | undefined;
1489
- readonly metadata?: {
1490
- readonly [x: string]: unknown;
1491
- } | undefined;
1492
- } | {
1493
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1494
1349
  readonly data: {
1350
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1351
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1352
+ readonly id: string;
1495
1353
  readonly metadata: {
1496
1354
  readonly [x: string]: import("effect/Schema").Json;
1497
1355
  };
1498
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1499
- readonly id: string;
1500
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1501
1356
  };
1502
- readonly type: "session.tool.progress";
1357
+ } | {
1358
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1503
1359
  readonly created: number;
1360
+ readonly metadata?: {
1361
+ readonly [x: string]: unknown;
1362
+ } | undefined;
1363
+ readonly type: "session.tool.success";
1364
+ readonly durable: {
1365
+ readonly aggregateID: string;
1366
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1367
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1368
+ };
1504
1369
  readonly location?: {
1505
1370
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1506
1371
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1507
1372
  } | undefined;
1508
- readonly metadata?: {
1509
- readonly [x: string]: unknown;
1510
- } | undefined;
1511
- } | {
1512
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1513
1373
  readonly data: {
1374
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1375
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1514
1376
  readonly id: string;
1515
1377
  readonly content: readonly [{
1516
1378
  readonly type: "text";
@@ -1529,35 +1391,34 @@ export declare const make: (options?: {
1529
1391
  readonly mime: string;
1530
1392
  readonly name?: string | undefined;
1531
1393
  })[]];
1532
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1533
- readonly executed: boolean;
1534
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1535
1394
  readonly metadata?: {
1536
1395
  readonly [x: string]: import("effect/Schema").Json;
1537
1396
  } | undefined;
1538
- readonly resultState?: {
1397
+ readonly executed: boolean;
1398
+ readonly native?: {
1539
1399
  readonly [x: string]: unknown;
1540
1400
  } | undefined;
1541
1401
  };
1402
+ } | {
1403
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1404
+ readonly created: number;
1405
+ readonly metadata?: {
1406
+ readonly [x: string]: unknown;
1407
+ } | undefined;
1408
+ readonly type: "session.tool.failed";
1542
1409
  readonly durable: {
1543
1410
  readonly aggregateID: string;
1544
1411
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1545
1412
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1546
1413
  };
1547
- readonly type: "session.tool.success";
1548
- readonly created: number;
1549
1414
  readonly location?: {
1550
1415
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1551
1416
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1552
1417
  } | undefined;
1553
- readonly metadata?: {
1554
- readonly [x: string]: unknown;
1555
- } | undefined;
1556
- } | {
1557
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1558
1418
  readonly data: {
1559
- readonly id: string;
1560
1419
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1420
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1421
+ readonly id: string;
1561
1422
  readonly error: {
1562
1423
  readonly type: string;
1563
1424
  readonly message: string;
@@ -1566,11 +1427,6 @@ export declare const make: (options?: {
1566
1427
  readonly body: string;
1567
1428
  } | undefined;
1568
1429
  };
1569
- readonly executed: boolean;
1570
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1571
- readonly metadata?: {
1572
- readonly [x: string]: import("effect/Schema").Json;
1573
- } | undefined;
1574
1430
  readonly content?: readonly [{
1575
1431
  readonly type: "text";
1576
1432
  readonly text: string;
@@ -1588,27 +1444,32 @@ export declare const make: (options?: {
1588
1444
  readonly mime: string;
1589
1445
  readonly name?: string | undefined;
1590
1446
  })[]] | undefined;
1591
- readonly resultState?: {
1447
+ readonly metadata?: {
1448
+ readonly [x: string]: import("effect/Schema").Json;
1449
+ } | undefined;
1450
+ readonly executed: boolean;
1451
+ readonly native?: {
1592
1452
  readonly [x: string]: unknown;
1593
1453
  } | undefined;
1594
1454
  };
1455
+ } | {
1456
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1457
+ readonly created: number;
1458
+ readonly metadata?: {
1459
+ readonly [x: string]: unknown;
1460
+ } | undefined;
1461
+ readonly type: "session.retry.scheduled";
1595
1462
  readonly durable: {
1596
1463
  readonly aggregateID: string;
1597
1464
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1598
1465
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1599
1466
  };
1600
- readonly type: "session.tool.failed";
1601
- readonly created: number;
1602
1467
  readonly location?: {
1603
1468
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1604
1469
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1605
1470
  } | undefined;
1606
- readonly metadata?: {
1607
- readonly [x: string]: unknown;
1608
- } | undefined;
1609
- } | {
1610
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1611
1471
  readonly data: {
1472
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1612
1473
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1613
1474
  readonly attempt: number;
1614
1475
  readonly at: number;
@@ -1620,75 +1481,72 @@ export declare const make: (options?: {
1620
1481
  readonly body: string;
1621
1482
  } | undefined;
1622
1483
  };
1623
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1624
1484
  };
1485
+ } | {
1486
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1487
+ readonly created: number;
1488
+ readonly metadata?: {
1489
+ readonly [x: string]: unknown;
1490
+ } | undefined;
1491
+ readonly type: "session.compaction.started";
1625
1492
  readonly durable: {
1626
1493
  readonly aggregateID: string;
1627
1494
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1628
1495
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1629
1496
  };
1630
- readonly type: "session.retry.scheduled";
1631
- readonly created: number;
1632
1497
  readonly location?: {
1633
1498
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1634
1499
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1635
1500
  } | undefined;
1636
- readonly metadata?: {
1637
- readonly [x: string]: unknown;
1638
- } | undefined;
1639
- } | {
1640
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1641
1501
  readonly data: {
1642
1502
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1643
1503
  readonly reason: "auto" | "manual";
1644
- readonly recent: string;
1645
1504
  readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
1646
1505
  };
1647
- readonly durable: {
1648
- readonly aggregateID: string;
1649
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1650
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1651
- };
1652
- readonly type: "session.compaction.started";
1506
+ } | {
1507
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1653
1508
  readonly created: number;
1509
+ readonly metadata?: {
1510
+ readonly [x: string]: unknown;
1511
+ } | undefined;
1512
+ readonly type: "session.compaction.delta";
1654
1513
  readonly location?: {
1655
1514
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1656
1515
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1657
1516
  } | undefined;
1658
- readonly metadata?: {
1659
- readonly [x: string]: unknown;
1660
- } | undefined;
1661
- } | {
1662
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1663
1517
  readonly data: {
1664
- readonly text: string;
1665
1518
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1519
+ readonly text: string;
1666
1520
  };
1667
- readonly type: "session.compaction.delta";
1521
+ } | {
1522
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1668
1523
  readonly created: number;
1524
+ readonly metadata?: {
1525
+ readonly [x: string]: unknown;
1526
+ } | undefined;
1527
+ readonly type: "session.compaction.ended";
1528
+ readonly durable: {
1529
+ readonly aggregateID: string;
1530
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1531
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1532
+ };
1669
1533
  readonly location?: {
1670
1534
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1671
1535
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1672
1536
  } | undefined;
1673
- readonly metadata?: {
1674
- readonly [x: string]: unknown;
1675
- } | undefined;
1676
- } | {
1677
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1678
1537
  readonly data: {
1679
1538
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1680
- readonly text: string;
1681
1539
  readonly reason: "auto" | "manual";
1682
- readonly recent: string;
1683
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1684
1540
  readonly model?: {
1685
1541
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1686
1542
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1687
1543
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1688
1544
  } | undefined;
1689
- readonly providerState?: {
1545
+ readonly native?: {
1690
1546
  readonly [x: string]: unknown;
1691
1547
  } | undefined;
1548
+ readonly text: string;
1549
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1692
1550
  readonly tokens?: {
1693
1551
  readonly input: number;
1694
1552
  readonly output: number;
@@ -1698,37 +1556,26 @@ export declare const make: (options?: {
1698
1556
  readonly write: number;
1699
1557
  };
1700
1558
  } | undefined;
1701
- readonly providerContext?: {
1702
- readonly version: 1;
1703
- readonly provenance: {
1704
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1705
- readonly provider: string;
1706
- readonly modelID: string;
1707
- readonly route: string;
1708
- readonly protocol: string;
1709
- readonly endpoint: string;
1710
- };
1711
- readonly messages: import("effect/Schema").Json;
1712
- } | undefined;
1713
1559
  };
1560
+ } | {
1561
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1562
+ readonly created: number;
1563
+ readonly metadata?: {
1564
+ readonly [x: string]: unknown;
1565
+ } | undefined;
1566
+ readonly type: "session.compaction.failed";
1714
1567
  readonly durable: {
1715
1568
  readonly aggregateID: string;
1716
1569
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1717
1570
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1718
1571
  };
1719
- readonly type: "session.compaction.ended";
1720
- readonly created: number;
1721
1572
  readonly location?: {
1722
1573
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1723
1574
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1724
1575
  } | undefined;
1725
- readonly metadata?: {
1726
- readonly [x: string]: unknown;
1727
- } | undefined;
1728
- } | {
1729
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1730
1576
  readonly data: {
1731
1577
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1578
+ readonly reason: "auto" | "manual";
1732
1579
  readonly error: {
1733
1580
  readonly type: string;
1734
1581
  readonly message: string;
@@ -1737,7 +1584,7 @@ export declare const make: (options?: {
1737
1584
  readonly body: string;
1738
1585
  } | undefined;
1739
1586
  };
1740
- readonly reason: "auto" | "manual";
1587
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
1741
1588
  readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1742
1589
  readonly tokens?: {
1743
1590
  readonly input: number;
@@ -1748,27 +1595,68 @@ export declare const make: (options?: {
1748
1595
  readonly write: number;
1749
1596
  };
1750
1597
  } | undefined;
1751
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
1752
1598
  };
1599
+ } | {
1600
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1601
+ readonly created: number;
1602
+ readonly metadata?: {
1603
+ readonly [x: string]: unknown;
1604
+ } | undefined;
1605
+ readonly type: "session.revert.cleared";
1753
1606
  readonly durable: {
1754
1607
  readonly aggregateID: string;
1755
1608
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1756
1609
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1757
1610
  };
1758
- readonly type: "session.compaction.failed";
1759
- readonly created: number;
1760
1611
  readonly location?: {
1761
1612
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1762
1613
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1763
1614
  } | undefined;
1615
+ readonly data: {
1616
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1617
+ };
1618
+ } | {
1619
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1620
+ readonly created: number;
1764
1621
  readonly metadata?: {
1765
1622
  readonly [x: string]: unknown;
1766
1623
  } | undefined;
1624
+ readonly type: "session.revert.committed";
1625
+ readonly durable: {
1626
+ readonly aggregateID: string;
1627
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1628
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1629
+ };
1630
+ readonly location?: {
1631
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1632
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1633
+ } | undefined;
1634
+ readonly data: {
1635
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1636
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
1637
+ };
1767
1638
  } | {
1768
1639
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1640
+ readonly created: number;
1641
+ readonly metadata?: {
1642
+ readonly [x: string]: unknown;
1643
+ } | undefined;
1644
+ readonly type: "session.revert.staged";
1645
+ readonly durable: {
1646
+ readonly aggregateID: string;
1647
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1648
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1649
+ };
1650
+ readonly location?: {
1651
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1652
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1653
+ } | undefined;
1769
1654
  readonly data: {
1655
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1770
1656
  readonly revert: {
1771
1657
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1658
+ readonly partID?: string | undefined;
1659
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1772
1660
  readonly files?: readonly {
1773
1661
  readonly file: string;
1774
1662
  readonly patch: string;
@@ -1776,758 +1664,895 @@ export declare const make: (options?: {
1776
1664
  readonly deletions: number;
1777
1665
  readonly status: "added" | "deleted" | "modified";
1778
1666
  }[] | undefined;
1779
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1780
- readonly partID?: string | undefined;
1781
1667
  };
1782
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1783
- };
1784
- readonly durable: {
1785
- readonly aggregateID: string;
1786
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1787
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1788
1668
  };
1789
- readonly type: "session.revert.staged";
1669
+ } | {
1670
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1790
1671
  readonly created: number;
1672
+ readonly metadata?: {
1673
+ readonly [x: string]: unknown;
1674
+ } | undefined;
1675
+ readonly type: "command.updated";
1791
1676
  readonly location?: {
1792
1677
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1793
1678
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1794
1679
  } | undefined;
1680
+ readonly data: {};
1681
+ } | {
1682
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1683
+ readonly created: number;
1795
1684
  readonly metadata?: {
1796
1685
  readonly [x: string]: unknown;
1797
1686
  } | undefined;
1687
+ readonly type: "config.updated";
1688
+ readonly location?: {
1689
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1690
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1691
+ } | undefined;
1692
+ readonly data: {};
1798
1693
  } | {
1799
1694
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1695
+ readonly created: number;
1696
+ readonly metadata?: {
1697
+ readonly [x: string]: unknown;
1698
+ } | undefined;
1699
+ readonly type: "mcp.resources.changed";
1700
+ readonly location?: {
1701
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1702
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1703
+ } | undefined;
1800
1704
  readonly data: {
1801
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1705
+ readonly server: string;
1802
1706
  };
1803
- readonly durable: {
1804
- readonly aggregateID: string;
1805
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1806
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1707
+ } | {
1708
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1709
+ readonly created: number;
1710
+ readonly metadata?: {
1711
+ readonly [x: string]: unknown;
1712
+ } | undefined;
1713
+ readonly type: "mcp.status.changed";
1714
+ readonly location?: {
1715
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1716
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1717
+ } | undefined;
1718
+ readonly data: {
1719
+ readonly server: string;
1807
1720
  };
1808
- readonly type: "session.revert.cleared";
1721
+ } | {
1722
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1723
+ readonly created: number;
1724
+ readonly metadata?: {
1725
+ readonly [x: string]: unknown;
1726
+ } | undefined;
1727
+ readonly type: "plugin.updated";
1728
+ readonly location?: {
1729
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1730
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1731
+ } | undefined;
1732
+ readonly data: {};
1733
+ } | {
1734
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1809
1735
  readonly created: number;
1736
+ readonly metadata?: {
1737
+ readonly [x: string]: unknown;
1738
+ } | undefined;
1739
+ readonly type: "tui.command.execute";
1810
1740
  readonly location?: {
1811
1741
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1812
1742
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1813
1743
  } | undefined;
1744
+ readonly data: {
1745
+ readonly command: string;
1746
+ };
1747
+ } | {
1748
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1749
+ readonly created: number;
1814
1750
  readonly metadata?: {
1815
1751
  readonly [x: string]: unknown;
1816
1752
  } | undefined;
1753
+ readonly type: "tui.prompt.append";
1754
+ readonly location?: {
1755
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1756
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1757
+ } | undefined;
1758
+ readonly data: {
1759
+ readonly text: string;
1760
+ };
1817
1761
  } | {
1818
1762
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1763
+ readonly created: number;
1764
+ readonly metadata?: {
1765
+ readonly [x: string]: unknown;
1766
+ } | undefined;
1767
+ readonly type: "tui.session.select";
1768
+ readonly location?: {
1769
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1770
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1771
+ } | undefined;
1819
1772
  readonly data: {
1820
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
1821
1773
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1822
1774
  };
1823
- readonly durable: {
1824
- readonly aggregateID: string;
1825
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1826
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1775
+ } | {
1776
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1777
+ readonly created: number;
1778
+ readonly metadata?: {
1779
+ readonly [x: string]: unknown;
1780
+ } | undefined;
1781
+ readonly type: "tui.toast.show";
1782
+ readonly location?: {
1783
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1784
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1785
+ } | undefined;
1786
+ readonly data: {
1787
+ readonly title?: string | undefined;
1788
+ readonly message: string;
1789
+ readonly variant: "error" | "info" | "success" | "warning";
1790
+ readonly duration: number;
1827
1791
  };
1828
- readonly type: "session.revert.committed";
1792
+ } | {
1793
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1794
+ readonly created: number;
1795
+ readonly metadata?: {
1796
+ readonly [x: string]: unknown;
1797
+ } | undefined;
1798
+ readonly type: "location.shutdown";
1799
+ readonly location?: {
1800
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1801
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1802
+ } | undefined;
1803
+ readonly data: {};
1804
+ } | {
1805
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1829
1806
  readonly created: number;
1807
+ readonly metadata?: {
1808
+ readonly [x: string]: unknown;
1809
+ } | undefined;
1810
+ readonly type: "models-dev.refreshed";
1830
1811
  readonly location?: {
1831
1812
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1832
1813
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1833
1814
  } | undefined;
1815
+ readonly data: {};
1816
+ } | {
1817
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1818
+ readonly created: number;
1834
1819
  readonly metadata?: {
1835
1820
  readonly [x: string]: unknown;
1836
1821
  } | undefined;
1822
+ readonly type: "integration.updated";
1823
+ readonly location?: {
1824
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1825
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1826
+ } | undefined;
1827
+ readonly data: {};
1828
+ } | {
1829
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1830
+ readonly created: number;
1831
+ readonly metadata?: {
1832
+ readonly [x: string]: unknown;
1833
+ } | undefined;
1834
+ readonly type: "provider.updated";
1835
+ readonly location?: {
1836
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1837
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1838
+ } | undefined;
1839
+ readonly data: {};
1840
+ } | {
1841
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1842
+ readonly created: number;
1843
+ readonly metadata?: {
1844
+ readonly [x: string]: unknown;
1845
+ } | undefined;
1846
+ readonly type: "model.updated";
1847
+ readonly location?: {
1848
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1849
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1850
+ } | undefined;
1851
+ readonly data: {};
1837
1852
  } | {
1838
1853
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1839
- readonly data: {
1840
- readonly file: string;
1841
- readonly event: "add" | "change" | "unlink";
1842
- };
1843
- readonly type: "filesystem.changed";
1844
1854
  readonly created: number;
1855
+ readonly metadata?: {
1856
+ readonly [x: string]: unknown;
1857
+ } | undefined;
1858
+ readonly type: "agent.updated";
1845
1859
  readonly location?: {
1846
1860
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1847
1861
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1848
1862
  } | undefined;
1863
+ readonly data: {};
1864
+ } | {
1865
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1866
+ readonly created: number;
1849
1867
  readonly metadata?: {
1850
1868
  readonly [x: string]: unknown;
1851
1869
  } | undefined;
1870
+ readonly type: "filesystem.changed";
1871
+ readonly location?: {
1872
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1873
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1874
+ } | undefined;
1875
+ readonly data: {
1876
+ readonly file: string;
1877
+ readonly event: "add" | "change" | "unlink";
1878
+ };
1852
1879
  } | {
1853
1880
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1854
- readonly data: {};
1855
- readonly type: "command.updated";
1856
1881
  readonly created: number;
1882
+ readonly metadata?: {
1883
+ readonly [x: string]: unknown;
1884
+ } | undefined;
1885
+ readonly type: "reference.updated";
1857
1886
  readonly location?: {
1858
1887
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1859
1888
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1860
1889
  } | undefined;
1861
- readonly metadata?: {
1862
- readonly [x: string]: unknown;
1863
- } | undefined;
1890
+ readonly data: {};
1864
1891
  } | {
1865
1892
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1866
- readonly data: {};
1867
- readonly type: "websearch.updated";
1868
1893
  readonly created: number;
1894
+ readonly metadata?: {
1895
+ readonly [x: string]: unknown;
1896
+ } | undefined;
1897
+ readonly type: "permission.asked";
1869
1898
  readonly location?: {
1870
1899
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1871
1900
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1872
1901
  } | undefined;
1873
- readonly metadata?: {
1874
- readonly [x: string]: unknown;
1875
- } | undefined;
1902
+ readonly data: {
1903
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1904
+ readonly action: string;
1905
+ readonly resources: readonly string[];
1906
+ readonly save?: readonly string[] | undefined;
1907
+ readonly metadata?: {
1908
+ readonly [x: string]: unknown;
1909
+ } | undefined;
1910
+ readonly source?: {
1911
+ readonly type: "tool";
1912
+ readonly messageID: string;
1913
+ readonly id: string;
1914
+ } | undefined;
1915
+ readonly message?: string | undefined;
1916
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
1917
+ };
1876
1918
  } | {
1877
1919
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1878
- readonly data: {};
1879
- readonly type: "config.updated";
1880
1920
  readonly created: number;
1921
+ readonly metadata?: {
1922
+ readonly [x: string]: unknown;
1923
+ } | undefined;
1924
+ readonly type: "permission.replied";
1881
1925
  readonly location?: {
1882
1926
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1883
1927
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1884
1928
  } | undefined;
1885
- readonly metadata?: {
1886
- readonly [x: string]: unknown;
1887
- } | undefined;
1888
- } | {
1889
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1890
1929
  readonly data: {
1891
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1930
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1931
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
1932
+ readonly reply: "always" | "once" | "reject";
1892
1933
  };
1893
- readonly type: "worktree.updated";
1934
+ } | {
1935
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1894
1936
  readonly created: number;
1937
+ readonly metadata?: {
1938
+ readonly [x: string]: unknown;
1939
+ } | undefined;
1940
+ readonly type: "project.updated";
1895
1941
  readonly location?: {
1896
1942
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1897
1943
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1898
1944
  } | undefined;
1945
+ readonly data: {
1946
+ readonly id: string & import("effect/Brand").Brand<"Project.ID">;
1947
+ readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
1948
+ readonly vcs?: string | undefined;
1949
+ readonly name?: string | undefined;
1950
+ readonly icon?: {
1951
+ readonly url?: string | undefined;
1952
+ readonly override?: string | undefined;
1953
+ readonly color?: string | undefined;
1954
+ } | undefined;
1955
+ readonly commands?: {
1956
+ readonly start?: string | undefined;
1957
+ } | undefined;
1958
+ readonly time: {
1959
+ readonly created: number;
1960
+ readonly updated: number;
1961
+ readonly active: number;
1962
+ readonly archived?: number | undefined;
1963
+ };
1964
+ readonly sandboxes: readonly string[];
1965
+ };
1966
+ } | {
1967
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1968
+ readonly created: number;
1899
1969
  readonly metadata?: {
1900
1970
  readonly [x: string]: unknown;
1901
1971
  } | undefined;
1902
- } | {
1903
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1904
- readonly data: {
1905
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1906
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1907
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1908
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
1909
- };
1972
+ readonly type: "worktree.resolved";
1910
1973
  readonly durable: {
1911
1974
  readonly aggregateID: string;
1912
1975
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1913
1976
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1914
1977
  };
1915
- readonly type: "worktree.resolved";
1916
- readonly created: number;
1917
1978
  readonly location?: {
1918
1979
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1919
1980
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1920
1981
  } | undefined;
1921
- readonly metadata?: {
1922
- readonly [x: string]: unknown;
1923
- } | undefined;
1924
- } | {
1925
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1926
1982
  readonly data: {
1927
- readonly version: string;
1983
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1984
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1985
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1986
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
1928
1987
  };
1929
- readonly type: "installation.updated";
1988
+ } | {
1989
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1930
1990
  readonly created: number;
1991
+ readonly metadata?: {
1992
+ readonly [x: string]: unknown;
1993
+ } | undefined;
1994
+ readonly type: "worktree.updated";
1931
1995
  readonly location?: {
1932
1996
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1933
1997
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1934
1998
  } | undefined;
1935
- readonly metadata?: {
1936
- readonly [x: string]: unknown;
1937
- } | undefined;
1938
- } | {
1939
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1940
1999
  readonly data: {
1941
- readonly version: string;
2000
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1942
2001
  };
1943
- readonly type: "installation.update-available";
2002
+ } | {
2003
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1944
2004
  readonly created: number;
2005
+ readonly metadata?: {
2006
+ readonly [x: string]: unknown;
2007
+ } | undefined;
2008
+ readonly type: "pty.created";
1945
2009
  readonly location?: {
1946
2010
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1947
2011
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1948
2012
  } | undefined;
1949
- readonly metadata?: {
1950
- readonly [x: string]: unknown;
1951
- } | undefined;
2013
+ readonly data: {
2014
+ readonly info: {
2015
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2016
+ readonly title: string;
2017
+ readonly command: string;
2018
+ readonly args: readonly string[];
2019
+ readonly cwd: string;
2020
+ readonly status: "exited" | "running";
2021
+ readonly pid: number;
2022
+ readonly exitCode?: number | undefined;
2023
+ };
2024
+ };
1952
2025
  } | {
1953
2026
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1954
- readonly data: {};
1955
- readonly type: "location.shutdown";
1956
2027
  readonly created: number;
2028
+ readonly metadata?: {
2029
+ readonly [x: string]: unknown;
2030
+ } | undefined;
2031
+ readonly type: "pty.deleted";
1957
2032
  readonly location?: {
1958
2033
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1959
2034
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1960
2035
  } | undefined;
1961
- readonly metadata?: {
1962
- readonly [x: string]: unknown;
1963
- } | undefined;
1964
- } | {
1965
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1966
2036
  readonly data: {
1967
- readonly server: string;
2037
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
1968
2038
  };
1969
- readonly type: "mcp.resources.changed";
2039
+ } | {
2040
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1970
2041
  readonly created: number;
2042
+ readonly metadata?: {
2043
+ readonly [x: string]: unknown;
2044
+ } | undefined;
2045
+ readonly type: "pty.exited";
1971
2046
  readonly location?: {
1972
2047
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1973
2048
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1974
2049
  } | undefined;
1975
- readonly metadata?: {
1976
- readonly [x: string]: unknown;
1977
- } | undefined;
1978
- } | {
1979
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1980
2050
  readonly data: {
1981
- readonly server: string;
2051
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2052
+ readonly exitCode: number;
1982
2053
  };
1983
- readonly type: "mcp.status.changed";
2054
+ } | {
2055
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1984
2056
  readonly created: number;
2057
+ readonly metadata?: {
2058
+ readonly [x: string]: unknown;
2059
+ } | undefined;
2060
+ readonly type: "pty.updated";
1985
2061
  readonly location?: {
1986
2062
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1987
2063
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1988
2064
  } | undefined;
1989
- readonly metadata?: {
1990
- readonly [x: string]: unknown;
1991
- } | undefined;
2065
+ readonly data: {
2066
+ readonly info: {
2067
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2068
+ readonly title: string;
2069
+ readonly command: string;
2070
+ readonly args: readonly string[];
2071
+ readonly cwd: string;
2072
+ readonly status: "exited" | "running";
2073
+ readonly pid: number;
2074
+ readonly exitCode?: number | undefined;
2075
+ };
2076
+ };
1992
2077
  } | {
1993
2078
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1994
- readonly data: {};
1995
- readonly type: "models-dev.refreshed";
1996
2079
  readonly created: number;
2080
+ readonly metadata?: {
2081
+ readonly [x: string]: unknown;
2082
+ } | undefined;
2083
+ readonly type: "persistent-pty.added";
1997
2084
  readonly location?: {
1998
2085
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1999
2086
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2000
2087
  } | undefined;
2001
- readonly metadata?: {
2002
- readonly [x: string]: unknown;
2003
- } | undefined;
2004
- } | {
2005
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2006
2088
  readonly data: {
2007
- readonly info: {
2089
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2090
+ readonly terminal: {
2008
2091
  readonly id: string & import("effect/Brand").Brand<"PtyID">;
2009
- readonly command: string;
2010
2092
  readonly title: string;
2011
- readonly status: "running" | "exited";
2012
- readonly pid: number;
2013
- readonly cwd: string;
2093
+ readonly command: string;
2014
2094
  readonly args: readonly string[];
2095
+ readonly cwd: string;
2096
+ readonly status: "exited" | "running";
2097
+ readonly pid: number;
2015
2098
  readonly exitCode?: number | undefined;
2099
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2100
+ readonly foregroundProcess: string | null;
2101
+ readonly size: {
2102
+ readonly cols: number;
2103
+ readonly rows: number;
2104
+ };
2105
+ readonly output: {
2106
+ readonly head: number;
2107
+ readonly tail: number;
2108
+ };
2016
2109
  };
2017
2110
  };
2018
- readonly type: "pty.created";
2111
+ } | {
2112
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2019
2113
  readonly created: number;
2114
+ readonly metadata?: {
2115
+ readonly [x: string]: unknown;
2116
+ } | undefined;
2117
+ readonly type: "persistent-pty.removed";
2020
2118
  readonly location?: {
2021
2119
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2022
2120
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2023
2121
  } | undefined;
2122
+ readonly data: {
2123
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2124
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
2125
+ };
2126
+ } | {
2127
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2128
+ readonly created: number;
2024
2129
  readonly metadata?: {
2025
2130
  readonly [x: string]: unknown;
2026
2131
  } | undefined;
2027
- } | {
2028
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2132
+ readonly type: "shell.created";
2133
+ readonly location?: {
2134
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2135
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2136
+ } | undefined;
2029
2137
  readonly data: {
2030
2138
  readonly info: {
2031
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2139
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2140
+ readonly status: "exited" | "killed" | "running" | "timeout";
2032
2141
  readonly command: string;
2033
- readonly title: string;
2034
- readonly status: "running" | "exited";
2035
- readonly pid: number;
2036
2142
  readonly cwd: string;
2037
- readonly args: readonly string[];
2038
- readonly exitCode?: number | undefined;
2143
+ readonly shell: string;
2144
+ readonly file: string;
2145
+ readonly pid?: number | undefined;
2146
+ readonly exit?: number | undefined;
2147
+ readonly signal?: string | undefined;
2148
+ readonly metadata: {
2149
+ readonly [x: string]: unknown;
2150
+ };
2151
+ readonly time: {
2152
+ readonly started: number;
2153
+ readonly completed?: number | undefined;
2154
+ };
2039
2155
  };
2040
2156
  };
2041
- readonly type: "pty.updated";
2157
+ } | {
2158
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2042
2159
  readonly created: number;
2160
+ readonly metadata?: {
2161
+ readonly [x: string]: unknown;
2162
+ } | undefined;
2163
+ readonly type: "shell.deleted";
2043
2164
  readonly location?: {
2044
2165
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2045
2166
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2046
2167
  } | undefined;
2047
- readonly metadata?: {
2048
- readonly [x: string]: unknown;
2049
- } | undefined;
2050
- } | {
2051
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2052
2168
  readonly data: {
2053
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2054
- readonly exitCode: number;
2169
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2055
2170
  };
2056
- readonly type: "pty.exited";
2171
+ } | {
2172
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2057
2173
  readonly created: number;
2174
+ readonly metadata?: {
2175
+ readonly [x: string]: unknown;
2176
+ } | undefined;
2177
+ readonly type: "shell.exited";
2058
2178
  readonly location?: {
2059
2179
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2060
2180
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2061
2181
  } | undefined;
2062
- readonly metadata?: {
2063
- readonly [x: string]: unknown;
2064
- } | undefined;
2065
- } | {
2066
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2067
2182
  readonly data: {
2068
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2183
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2184
+ readonly exit?: number | undefined;
2185
+ readonly status: "exited" | "killed" | "running" | "timeout";
2069
2186
  };
2070
- readonly type: "pty.deleted";
2187
+ } | {
2188
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2071
2189
  readonly created: number;
2190
+ readonly metadata?: {
2191
+ readonly [x: string]: unknown;
2192
+ } | undefined;
2193
+ readonly type: "form.cancelled";
2072
2194
  readonly location?: {
2073
2195
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2074
2196
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2075
2197
  } | undefined;
2198
+ readonly data: {
2199
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
2200
+ readonly sessionID: string;
2201
+ };
2202
+ } | {
2203
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2204
+ readonly created: number;
2076
2205
  readonly metadata?: {
2077
2206
  readonly [x: string]: unknown;
2078
2207
  } | undefined;
2079
- } | {
2080
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2208
+ readonly type: "form.created";
2209
+ readonly location?: {
2210
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2211
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2212
+ } | undefined;
2081
2213
  readonly data: {
2082
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2083
- readonly terminal: {
2084
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2085
- readonly size: {
2086
- readonly cols: number;
2087
- readonly rows: number;
2088
- };
2089
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2090
- readonly command: string;
2214
+ readonly form: {
2215
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
2216
+ readonly sessionID: string;
2091
2217
  readonly title: string;
2092
- readonly status: "running" | "exited";
2093
- readonly output: {
2094
- readonly head: number;
2095
- readonly tail: number;
2096
- };
2097
- readonly pid: number;
2098
- readonly cwd: string;
2099
- readonly args: readonly string[];
2100
- readonly foregroundProcess: string | null;
2101
- readonly exitCode?: number | undefined;
2218
+ readonly metadata?: {
2219
+ readonly [x: string]: unknown;
2220
+ } | undefined;
2221
+ readonly fields: readonly [{
2222
+ readonly key: string;
2223
+ readonly title?: string | undefined;
2224
+ readonly description?: string | undefined;
2225
+ readonly required?: boolean | undefined;
2226
+ readonly hidden?: boolean | undefined;
2227
+ readonly when?: readonly {
2228
+ readonly key: string;
2229
+ readonly op: "eq" | "neq";
2230
+ readonly value: string | number | boolean;
2231
+ }[] | undefined;
2232
+ readonly type: "string";
2233
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
2234
+ readonly minLength?: number | undefined;
2235
+ readonly maxLength?: number | undefined;
2236
+ readonly pattern?: string | undefined;
2237
+ readonly placeholder?: string | undefined;
2238
+ readonly default?: string | undefined;
2239
+ readonly options?: readonly {
2240
+ readonly value: string;
2241
+ readonly label: string;
2242
+ readonly description?: string | undefined;
2243
+ }[] | undefined;
2244
+ readonly custom?: boolean | undefined;
2245
+ } | {
2246
+ readonly key: string;
2247
+ readonly title?: string | undefined;
2248
+ readonly description?: string | undefined;
2249
+ readonly required?: boolean | undefined;
2250
+ readonly hidden?: boolean | undefined;
2251
+ readonly when?: readonly {
2252
+ readonly key: string;
2253
+ readonly op: "eq" | "neq";
2254
+ readonly value: string | number | boolean;
2255
+ }[] | undefined;
2256
+ readonly type: "number";
2257
+ readonly minimum?: number | undefined;
2258
+ readonly maximum?: number | undefined;
2259
+ readonly default?: number | undefined;
2260
+ } | {
2261
+ readonly key: string;
2262
+ readonly title?: string | undefined;
2263
+ readonly description?: string | undefined;
2264
+ readonly required?: boolean | undefined;
2265
+ readonly hidden?: boolean | undefined;
2266
+ readonly when?: readonly {
2267
+ readonly key: string;
2268
+ readonly op: "eq" | "neq";
2269
+ readonly value: string | number | boolean;
2270
+ }[] | undefined;
2271
+ readonly type: "integer";
2272
+ readonly minimum?: number | undefined;
2273
+ readonly maximum?: number | undefined;
2274
+ readonly default?: number | undefined;
2275
+ } | {
2276
+ readonly key: string;
2277
+ readonly title?: string | undefined;
2278
+ readonly description?: string | undefined;
2279
+ readonly required?: boolean | undefined;
2280
+ readonly hidden?: boolean | undefined;
2281
+ readonly when?: readonly {
2282
+ readonly key: string;
2283
+ readonly op: "eq" | "neq";
2284
+ readonly value: string | number | boolean;
2285
+ }[] | undefined;
2286
+ readonly type: "boolean";
2287
+ readonly default?: boolean | undefined;
2288
+ } | {
2289
+ readonly key: string;
2290
+ readonly title?: string | undefined;
2291
+ readonly description?: string | undefined;
2292
+ readonly required?: boolean | undefined;
2293
+ readonly hidden?: boolean | undefined;
2294
+ readonly when?: readonly {
2295
+ readonly key: string;
2296
+ readonly op: "eq" | "neq";
2297
+ readonly value: string | number | boolean;
2298
+ }[] | undefined;
2299
+ readonly type: "multiselect";
2300
+ readonly options: readonly {
2301
+ readonly value: string;
2302
+ readonly label: string;
2303
+ readonly description?: string | undefined;
2304
+ }[];
2305
+ readonly minItems?: number | undefined;
2306
+ readonly maxItems?: number | undefined;
2307
+ readonly custom?: boolean | undefined;
2308
+ readonly default?: readonly string[] | undefined;
2309
+ } | {
2310
+ readonly key: string;
2311
+ readonly type: "external";
2312
+ readonly url: string;
2313
+ readonly title?: string | undefined;
2314
+ readonly description?: string | undefined;
2315
+ }, ...({
2316
+ readonly key: string;
2317
+ readonly title?: string | undefined;
2318
+ readonly description?: string | undefined;
2319
+ readonly required?: boolean | undefined;
2320
+ readonly hidden?: boolean | undefined;
2321
+ readonly when?: readonly {
2322
+ readonly key: string;
2323
+ readonly op: "eq" | "neq";
2324
+ readonly value: string | number | boolean;
2325
+ }[] | undefined;
2326
+ readonly type: "string";
2327
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
2328
+ readonly minLength?: number | undefined;
2329
+ readonly maxLength?: number | undefined;
2330
+ readonly pattern?: string | undefined;
2331
+ readonly placeholder?: string | undefined;
2332
+ readonly default?: string | undefined;
2333
+ readonly options?: readonly {
2334
+ readonly value: string;
2335
+ readonly label: string;
2336
+ readonly description?: string | undefined;
2337
+ }[] | undefined;
2338
+ readonly custom?: boolean | undefined;
2339
+ } | {
2340
+ readonly key: string;
2341
+ readonly title?: string | undefined;
2342
+ readonly description?: string | undefined;
2343
+ readonly required?: boolean | undefined;
2344
+ readonly hidden?: boolean | undefined;
2345
+ readonly when?: readonly {
2346
+ readonly key: string;
2347
+ readonly op: "eq" | "neq";
2348
+ readonly value: string | number | boolean;
2349
+ }[] | undefined;
2350
+ readonly type: "number";
2351
+ readonly minimum?: number | undefined;
2352
+ readonly maximum?: number | undefined;
2353
+ readonly default?: number | undefined;
2354
+ } | {
2355
+ readonly key: string;
2356
+ readonly title?: string | undefined;
2357
+ readonly description?: string | undefined;
2358
+ readonly required?: boolean | undefined;
2359
+ readonly hidden?: boolean | undefined;
2360
+ readonly when?: readonly {
2361
+ readonly key: string;
2362
+ readonly op: "eq" | "neq";
2363
+ readonly value: string | number | boolean;
2364
+ }[] | undefined;
2365
+ readonly type: "integer";
2366
+ readonly minimum?: number | undefined;
2367
+ readonly maximum?: number | undefined;
2368
+ readonly default?: number | undefined;
2369
+ } | {
2370
+ readonly key: string;
2371
+ readonly title?: string | undefined;
2372
+ readonly description?: string | undefined;
2373
+ readonly required?: boolean | undefined;
2374
+ readonly hidden?: boolean | undefined;
2375
+ readonly when?: readonly {
2376
+ readonly key: string;
2377
+ readonly op: "eq" | "neq";
2378
+ readonly value: string | number | boolean;
2379
+ }[] | undefined;
2380
+ readonly type: "boolean";
2381
+ readonly default?: boolean | undefined;
2382
+ } | {
2383
+ readonly key: string;
2384
+ readonly title?: string | undefined;
2385
+ readonly description?: string | undefined;
2386
+ readonly required?: boolean | undefined;
2387
+ readonly hidden?: boolean | undefined;
2388
+ readonly when?: readonly {
2389
+ readonly key: string;
2390
+ readonly op: "eq" | "neq";
2391
+ readonly value: string | number | boolean;
2392
+ }[] | undefined;
2393
+ readonly type: "multiselect";
2394
+ readonly options: readonly {
2395
+ readonly value: string;
2396
+ readonly label: string;
2397
+ readonly description?: string | undefined;
2398
+ }[];
2399
+ readonly minItems?: number | undefined;
2400
+ readonly maxItems?: number | undefined;
2401
+ readonly custom?: boolean | undefined;
2402
+ readonly default?: readonly string[] | undefined;
2403
+ } | {
2404
+ readonly key: string;
2405
+ readonly type: "external";
2406
+ readonly url: string;
2407
+ readonly title?: string | undefined;
2408
+ readonly description?: string | undefined;
2409
+ })[]];
2102
2410
  };
2103
2411
  };
2104
- readonly type: "persistent-pty.added";
2412
+ } | {
2413
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2105
2414
  readonly created: number;
2415
+ readonly metadata?: {
2416
+ readonly [x: string]: unknown;
2417
+ } | undefined;
2418
+ readonly type: "form.replied";
2106
2419
  readonly location?: {
2107
2420
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2108
2421
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2109
2422
  } | undefined;
2110
- readonly metadata?: {
2111
- readonly [x: string]: unknown;
2112
- } | undefined;
2113
- } | {
2114
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2115
2423
  readonly data: {
2116
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2117
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
2424
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
2425
+ readonly sessionID: string;
2426
+ readonly answer: {
2427
+ readonly [x: string]: string | number | boolean | readonly string[];
2428
+ };
2118
2429
  };
2119
- readonly type: "persistent-pty.removed";
2430
+ } | {
2431
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2120
2432
  readonly created: number;
2433
+ readonly metadata?: {
2434
+ readonly [x: string]: unknown;
2435
+ } | undefined;
2436
+ readonly type: "websearch.updated";
2121
2437
  readonly location?: {
2122
2438
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2123
2439
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2124
2440
  } | undefined;
2125
- readonly metadata?: {
2126
- readonly [x: string]: unknown;
2127
- } | undefined;
2441
+ readonly data: {};
2128
2442
  } | {
2129
2443
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2130
- readonly data: {};
2131
- readonly type: "plugin.updated";
2132
2444
  readonly created: number;
2445
+ readonly metadata?: {
2446
+ readonly [x: string]: unknown;
2447
+ } | undefined;
2448
+ readonly type: "session.idle";
2133
2449
  readonly location?: {
2134
2450
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2135
2451
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2136
2452
  } | undefined;
2137
- readonly metadata?: {
2138
- readonly [x: string]: unknown;
2139
- } | undefined;
2453
+ readonly data: {
2454
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2455
+ };
2140
2456
  } | {
2141
2457
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2142
- readonly data: {};
2143
- readonly type: "reference.updated";
2144
2458
  readonly created: number;
2459
+ readonly metadata?: {
2460
+ readonly [x: string]: unknown;
2461
+ } | undefined;
2462
+ readonly type: "session.status";
2145
2463
  readonly location?: {
2146
2464
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2147
2465
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2148
2466
  } | undefined;
2149
- readonly metadata?: {
2150
- readonly [x: string]: unknown;
2151
- } | undefined;
2152
- } | {
2153
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2154
2467
  readonly data: {
2155
2468
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2156
2469
  readonly status: {
2157
2470
  readonly type: "idle";
2158
2471
  } | {
2159
2472
  readonly type: "retry";
2160
- readonly message: string;
2161
2473
  readonly attempt: number;
2162
- readonly next: number;
2474
+ readonly message: string;
2163
2475
  readonly action?: {
2476
+ readonly reason: string;
2477
+ readonly provider: string;
2478
+ readonly title: string;
2164
2479
  readonly message: string;
2165
2480
  readonly label: string;
2166
- readonly title: string;
2167
- readonly provider: string;
2168
- readonly reason: string;
2169
2481
  readonly link?: string | undefined;
2170
2482
  } | undefined;
2483
+ readonly next: number;
2171
2484
  } | {
2172
2485
  readonly type: "busy";
2173
2486
  };
2174
2487
  };
2175
- readonly type: "session.status";
2488
+ } | {
2489
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2176
2490
  readonly created: number;
2177
- readonly location?: {
2178
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2179
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2180
- } | undefined;
2181
2491
  readonly metadata?: {
2182
2492
  readonly [x: string]: unknown;
2183
2493
  } | undefined;
2184
- } | {
2185
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2186
- readonly data: {
2187
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2188
- };
2189
- readonly type: "session.idle";
2190
- readonly created: number;
2494
+ readonly type: "installation.update-available";
2191
2495
  readonly location?: {
2192
2496
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2193
2497
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2194
2498
  } | undefined;
2195
- readonly metadata?: {
2196
- readonly [x: string]: unknown;
2197
- } | undefined;
2198
- } | {
2199
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2200
2499
  readonly data: {
2201
- readonly text: string;
2500
+ readonly version: string;
2202
2501
  };
2203
- readonly type: "tui.prompt.append";
2502
+ } | {
2503
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2204
2504
  readonly created: number;
2205
- readonly location?: {
2206
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2207
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2208
- } | undefined;
2209
2505
  readonly metadata?: {
2210
2506
  readonly [x: string]: unknown;
2211
2507
  } | undefined;
2212
- } | {
2213
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2214
- readonly data: {
2215
- readonly command: string;
2216
- };
2217
- readonly type: "tui.command.execute";
2218
- readonly created: number;
2508
+ readonly type: "installation.updated";
2219
2509
  readonly location?: {
2220
2510
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2221
2511
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2222
2512
  } | undefined;
2223
- readonly metadata?: {
2224
- readonly [x: string]: unknown;
2225
- } | undefined;
2226
- } | {
2227
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2228
2513
  readonly data: {
2229
- readonly message: string;
2230
- readonly variant: "error" | "info" | "success" | "warning";
2231
- readonly duration: number;
2232
- readonly title?: string | undefined;
2514
+ readonly version: string;
2233
2515
  };
2234
- readonly type: "tui.toast.show";
2516
+ } | {
2517
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2235
2518
  readonly created: number;
2236
- readonly location?: {
2237
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2238
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2239
- } | undefined;
2240
2519
  readonly metadata?: {
2241
2520
  readonly [x: string]: unknown;
2242
2521
  } | undefined;
2243
- } | {
2244
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2245
- readonly data: {
2246
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2247
- };
2248
- readonly type: "tui.session.select";
2249
- readonly created: number;
2522
+ readonly type: "vcs.branch.updated";
2250
2523
  readonly location?: {
2251
2524
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2252
2525
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2253
2526
  } | undefined;
2254
- readonly metadata?: {
2255
- readonly [x: string]: unknown;
2256
- } | undefined;
2257
- } | {
2258
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2259
2527
  readonly data: {
2260
2528
  readonly branch?: string | undefined;
2261
2529
  };
2262
- readonly type: "vcs.branch.updated";
2530
+ } | {
2531
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2263
2532
  readonly created: number;
2264
- readonly location?: {
2265
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2266
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2267
- } | undefined;
2268
2533
  readonly metadata?: {
2269
2534
  readonly [x: string]: unknown;
2270
2535
  } | undefined;
2271
- } | {
2272
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2536
+ readonly type: `rpc.${string}`;
2273
2537
  readonly location: {
2274
2538
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2275
2539
  };
2276
2540
  readonly data: {
2277
2541
  readonly [x: string]: unknown;
2278
2542
  };
2279
- readonly type: `rpc.${string}`;
2280
- readonly created: number;
2543
+ } | {
2544
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2281
2545
  readonly metadata?: {
2282
2546
  readonly [x: string]: unknown;
2283
2547
  } | undefined;
2284
- } | {
2285
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2286
- readonly data: {};
2287
- readonly type: "server.connected";
2288
2548
  readonly location?: {
2289
2549
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2290
2550
  } | undefined;
2291
- readonly metadata?: {
2292
- readonly [x: string]: unknown;
2293
- } | undefined;
2294
- }, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError | import("effect/encoding/Sse").Retry | import("effect/encoding/Sse").SseError, never>;
2295
- };
2296
- rpc: RpcClientRuntime.RpcApi<import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | import("@opencode/schema/rpc").SystemError | ClientError | import("effect/http/HttpClientError").HttpClientError, RpcCallOptions, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError | import("effect/encoding/Sse").Retry | import("effect/encoding/Sse").SseError> & {
2297
- call: (input: import("./api.js").RpcCallInput) => Effect.Effect<import("./api.js").RpcCallOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").RpcError | import("@opencode/protocol/errors").RpcInternalError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2298
- };
2299
- server: {
2300
- info: () => Effect.Effect<import("./api.js").ServerInfoOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2301
- pair: () => Effect.Effect<import("./api.js").ServerPairOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2302
- connect: (input: import("./api.js").ServerConnectInput) => Effect.Effect<import("./api.js").ServerConnectOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2303
- };
2304
- location: {
2305
- get: (input?: import("./api.js").LocationGetInput) => Effect.Effect<import("@opencode/schema/location").PublicInfo, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2306
- reload: () => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2307
- };
2308
- agent: {
2309
- list: (input?: import("./api.js").AgentListInput) => Effect.Effect<import("./api.js").AgentListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2310
- get: (input: import("./api.js").AgentGetInput) => Effect.Effect<import("./api.js").AgentGetOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").AgentNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2311
- };
2312
- plugin: {
2313
- list: (input?: import("./api.js").PluginListInput) => Effect.Effect<import("./api.js").PluginListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2314
- check: (input?: import("./api.js").PluginCheckInput) => Effect.Effect<import("./api.js").PluginCheckOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2315
- update: (input: import("./api.js").PluginUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2316
- };
2317
- session: {
2318
- list: (input?: import("./api.js").SessionListInput) => Effect.Effect<import("./api.js").SessionListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").InvalidCursorError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2319
- stats: (input?: import("./api.js").SessionStatsInput) => Effect.Effect<import("./api.js").SessionStatsOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2320
- create: (input?: import("./api.js").SessionCreateInput) => Effect.Effect<import("@opencode/schema/session").Info, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2321
- import: (input: import("./api.js").SessionImportInput) => Effect.Effect<import("@opencode/schema/session").Info, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2322
- export: (input: import("./api.js").SessionExportInput) => Effect.Effect<import("./api.js").SessionExportOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2323
- active: () => Effect.Effect<import("./api.js").SessionActiveOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2324
- get: (input: import("./api.js").SessionGetInput) => Effect.Effect<import("@opencode/schema/session").Info, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2325
- remove: (input: import("./api.js").SessionRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2326
- fork: (input: import("./api.js").SessionForkInput) => Effect.Effect<import("@opencode/schema/session").Info, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2327
- switchAgent: (input: import("./api.js").SessionSwitchAgentInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2328
- switchModel: (input: import("./api.js").SessionSwitchModelInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2329
- update: (input: import("./api.js").SessionUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2330
- move: (input: import("./api.js").SessionMoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2331
- prompt: (input: import("./api.js").SessionPromptInput) => Effect.Effect<import("@opencode/schema/session-inbox").User, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2332
- command: (input: import("./api.js").SessionCommandInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").CommandNotFoundError | import("@opencode/protocol/errors").CommandExecutionError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2333
- skill: (input: import("./api.js").SessionSkillInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").SkillNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2334
- synthetic: (input: import("./api.js").SessionSyntheticInput) => Effect.Effect<import("@opencode/schema/session-inbox").Synthetic, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2335
- shell: (input: import("./api.js").SessionShellInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2336
- compact: (input: import("./api.js").SessionCompactInput) => Effect.Effect<import("@opencode/schema/session-inbox").Compaction, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2337
- wait: (input: import("./api.js").SessionWaitInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2338
- revert: {
2339
- stage: (input: import("./api.js").SessionRevertStageInput) => Effect.Effect<import("@opencode/schema/session-revert").Revert, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").UnknownError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2340
- clear: (input: import("./api.js").SessionRevertClearInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").UnknownError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2341
- commit: (input: import("./api.js").SessionRevertCommitInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2342
- };
2343
- context: (input: import("./api.js").SessionContextInput) => Effect.Effect<import("./api.js").SessionContextOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2344
- diff: (input: import("./api.js").SessionDiffInput) => Effect.Effect<import("./api.js").SessionDiffOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2345
- inbox: {
2346
- list: (input: import("./api.js").SessionInboxListInput) => Effect.Effect<import("./api.js").SessionInboxListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2347
- cancel: (input: import("./api.js").SessionInboxCancelInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2348
- update: (input: import("./api.js").SessionInboxUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2349
- };
2350
- instructions: {
2351
- entry: {
2352
- list: (input: import("./api.js").SessionInstructionsEntryListInput) => Effect.Effect<import("./api.js").SessionInstructionsEntryListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2353
- put: (input: import("./api.js").SessionInstructionsEntryPutInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/schema/instruction-entry").ValueTooLargeError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2354
- remove: (input: import("./api.js").SessionInstructionsEntryRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2355
- };
2356
- };
2357
- generate: (input: import("./api.js").SessionGenerateInput) => Effect.Effect<import("./api.js").SessionGenerateOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2358
- log: (input: import("./api.js").SessionLogInput) => Stream.Stream<import("./api.js").SessionLogOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError | import("effect/encoding/Sse").Retry | import("effect/encoding/Sse").SseError, never>;
2359
- interrupt: (input: import("./api.js").SessionInterruptInput) => Effect.Effect<import("./api.js").SessionInterruptOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2360
- background: (input: import("./api.js").SessionBackgroundInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2361
- message: {
2362
- get: (input: import("./api.js").SessionMessageGetInput) => Effect.Effect<import("@opencode/schema/session-message").Info, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2363
- };
2364
- form: {
2365
- list: (input: import("./api.js").SessionFormListInput) => Effect.Effect<import("./api.js").SessionFormListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2366
- create: (input: import("./api.js").SessionFormCreateInput) => Effect.Effect<import("@opencode/schema/form").Info, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2367
- get: (input: import("./api.js").SessionFormGetInput) => Effect.Effect<import("@opencode/schema/form").Detail, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").FormNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2368
- reply: (input: import("./api.js").SessionFormReplyInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").FormNotFoundError | import("@opencode/protocol/errors").FormAlreadySettledError | import("@opencode/protocol/errors").FormInvalidAnswerError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2369
- cancel: (input: import("./api.js").SessionFormCancelInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").FormNotFoundError | import("@opencode/protocol/errors").FormAlreadySettledError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2370
- };
2371
- environment: (input: import("./api.js").SessionEnvironmentInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2372
- view: (input: import("./api.js").SessionViewInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2373
- };
2374
- message: {
2375
- list: (input: import("./api.js").MessageListInput) => Effect.Effect<import("./api.js").MessageListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").InvalidCursorError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2376
- };
2377
- model: {
2378
- list: (input?: import("./api.js").ModelListInput) => Effect.Effect<import("./api.js").ModelListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2379
- default: (input?: import("./api.js").ModelDefaultInput) => Effect.Effect<import("./api.js").ModelDefaultOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2380
- };
2381
- generate: {
2382
- text: (input: import("./api.js").GenerateTextInput) => Effect.Effect<import("./api.js").GenerateTextOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2383
- };
2384
- voice: {
2385
- session: (input: import("./api.js").VoiceSessionInput) => Effect.Effect<import("./api.js").VoiceSessionOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2386
- };
2387
- provider: {
2388
- list: (input?: import("./api.js").ProviderListInput) => Effect.Effect<import("./api.js").ProviderListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2389
- get: (input: import("./api.js").ProviderGetInput) => Effect.Effect<import("./api.js").ProviderGetOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").ProviderNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2390
- };
2391
- integration: {
2392
- list: (input?: import("./api.js").IntegrationListInput) => Effect.Effect<import("./api.js").IntegrationListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2393
- get: (input: import("./api.js").IntegrationGetInput) => Effect.Effect<import("./api.js").IntegrationGetOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2394
- wellknown: {
2395
- add: (input: import("./api.js").IntegrationWellknownAddInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2396
- };
2397
- connect: {
2398
- key: (input: import("./api.js").IntegrationConnectKeyInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2399
- external: (input: import("./api.js").IntegrationConnectExternalInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2400
- };
2401
- oauth: {
2402
- connect: (input: import("./api.js").IntegrationOauthConnectInput) => Effect.Effect<import("./api.js").IntegrationOauthConnectOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2403
- status: (input: import("./api.js").IntegrationOauthStatusInput) => Effect.Effect<import("./api.js").IntegrationOauthStatusOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2404
- complete: (input: import("./api.js").IntegrationOauthCompleteInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2405
- cancel: (input: import("./api.js").IntegrationOauthCancelInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2406
- };
2407
- command: {
2408
- connect: (input: import("./api.js").IntegrationCommandConnectInput) => Effect.Effect<import("./api.js").IntegrationCommandConnectOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").IntegrationMethodNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2409
- status: (input: import("./api.js").IntegrationCommandStatusInput) => Effect.Effect<import("./api.js").IntegrationCommandStatusOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2410
- cancel: (input: import("./api.js").IntegrationCommandCancelInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2411
- };
2412
- };
2413
- mcp: {
2414
- list: (input?: import("./api.js").McpListInput) => Effect.Effect<import("./api.js").McpListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2415
- add: (input: import("./api.js").McpAddInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2416
- remove: (input: import("./api.js").McpRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2417
- connect: (input: import("./api.js").McpConnectInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2418
- disconnect: (input: import("./api.js").McpDisconnectInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2419
- resource: {
2420
- catalog: (input?: import("./api.js").McpResourceCatalogInput) => Effect.Effect<import("./api.js").McpResourceCatalogOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2421
- };
2422
- };
2423
- credential: {
2424
- list: () => Effect.Effect<import("./api.js").CredentialListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2425
- create: (input: import("./api.js").CredentialCreateInput) => Effect.Effect<import("@opencode/schema/credential").Entry, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2426
- update: (input: import("./api.js").CredentialUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2427
- activate: (input: import("./api.js").CredentialActivateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2428
- remove: (input: import("./api.js").CredentialRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2429
- };
2430
- project: {
2431
- list: (input?: import("./api.js").ProjectListInput) => Effect.Effect<import("./api.js").ProjectListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2432
- update: (input: import("./api.js").ProjectUpdateInput) => Effect.Effect<import("@opencode/schema/project").Info, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2433
- };
2434
- form: {
2435
- list: (input?: import("./api.js").FormListInput) => Effect.Effect<import("./api.js").FormListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2436
- };
2437
- permission: {
2438
- request: {
2439
- list: (input?: import("./api.js").PermissionRequestListInput) => Effect.Effect<import("./api.js").PermissionRequestListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2440
- };
2441
- saved: {
2442
- list: (input?: import("./api.js").PermissionSavedListInput) => Effect.Effect<import("./api.js").PermissionSavedListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2443
- remove: (input: import("./api.js").PermissionSavedRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2444
- };
2445
- create: (input: import("./api.js").PermissionCreateInput) => Effect.Effect<import("./api.js").PermissionCreateOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2446
- list: (input: import("./api.js").PermissionListInput) => Effect.Effect<import("./api.js").PermissionListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2447
- get: (input: import("./api.js").PermissionGetInput) => Effect.Effect<import("@opencode/schema/permission").Request, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").PermissionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2448
- reply: (input: import("./api.js").PermissionReplyInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").PermissionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2449
- };
2450
- file: {
2451
- list: (input?: import("./api.js").FileListInput) => Effect.Effect<import("./api.js").FileListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").FileNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2452
- find: (input: import("./api.js").FileFindInput) => Effect.Effect<import("./api.js").FileFindOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2453
- };
2454
- command: {
2455
- list: (input?: import("./api.js").CommandListInput) => Effect.Effect<import("./api.js").CommandListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2456
- };
2457
- skill: {
2458
- list: (input?: import("./api.js").SkillListInput) => Effect.Effect<import("./api.js").SkillListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2459
- };
2460
- pty: {
2461
- list: (input?: import("./api.js").PtyListInput) => Effect.Effect<import("./api.js").PtyListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2462
- create: (input?: import("./api.js").PtyCreateInput) => Effect.Effect<import("./api.js").PtyCreateOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2463
- get: (input: import("./api.js").PtyGetInput) => Effect.Effect<import("./api.js").PtyGetOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2464
- update: (input: import("./api.js").PtyUpdateInput) => Effect.Effect<import("./api.js").PtyUpdateOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2465
- remove: (input: import("./api.js").PtyRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2466
- connect: {
2467
- token: (input: import("./api.js").PtyConnectTokenInput) => Effect.Effect<import("./api.js").PtyConnectTokenOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ForbiddenError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2468
- };
2469
- };
2470
- experimental: {
2471
- persistentPty: {
2472
- read: (input: import("./api.js").ExperimentalPersistentPtyReadInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyReadOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2473
- list: (input: import("./api.js").ExperimentalPersistentPtyListInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2474
- create: (input: import("./api.js").ExperimentalPersistentPtyCreateInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyCreateOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2475
- shutdown: () => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2476
- handoff: () => Effect.Effect<import("./api.js").ExperimentalPersistentPtyHandoffOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2477
- get: (input: import("./api.js").ExperimentalPersistentPtyGetInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyGetOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2478
- update: (input: import("./api.js").ExperimentalPersistentPtyUpdateInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyUpdateOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2479
- snapshot: (input: import("./api.js").ExperimentalPersistentPtySnapshotInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtySnapshotOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2480
- remove: (input: import("./api.js").ExperimentalPersistentPtyRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2481
- connectToken: (input: import("./api.js").ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<import("@opencode/schema/pty-ticket").ConnectToken, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").ForbiddenError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2482
- };
2483
- };
2484
- shell: {
2485
- list: (input?: import("./api.js").ShellListInput) => Effect.Effect<import("./api.js").ShellListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2486
- create: (input: import("./api.js").ShellCreateInput) => Effect.Effect<import("./api.js").ShellCreateOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2487
- get: (input: import("./api.js").ShellGetInput) => Effect.Effect<import("./api.js").ShellGetOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ShellNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2488
- output: (input: import("./api.js").ShellOutputInput) => Effect.Effect<import("./api.js").ShellOutputOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ShellNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2489
- remove: (input: import("./api.js").ShellRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2490
- };
2491
- reference: {
2492
- list: (input?: import("./api.js").ReferenceListInput) => Effect.Effect<import("./api.js").ReferenceListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2493
- };
2494
- worktree: {
2495
- list: (input: import("./api.js").WorktreeListInput) => Effect.Effect<readonly {
2496
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2497
- readonly strategy?: string | undefined;
2498
- }[], import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2499
- create: (input: import("./api.js").WorktreeCreateInput) => Effect.Effect<import("@opencode/schema/worktree").Info, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/groups/worktree").WorktreeError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2500
- remove: (input: import("./api.js").WorktreeRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/groups/worktree").WorktreeError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2501
- refresh: (input: import("./api.js").WorktreeRefreshInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/groups/worktree").WorktreeError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2502
- };
2503
- vcs: {
2504
- init: (input?: import("./api.js").VcsInitInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | import("@opencode/protocol/groups/vcs").VcsInitNotSupportedError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2505
- get: (input?: import("./api.js").VcsGetInput) => Effect.Effect<import("./api.js").VcsGetOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2506
- base: (input?: import("./api.js").VcsBaseInput) => Effect.Effect<import("./api.js").VcsBaseOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2507
- status: (input?: import("./api.js").VcsStatusInput) => Effect.Effect<import("./api.js").VcsStatusOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2508
- branch: {
2509
- list: (input?: import("./api.js").VcsBranchListInput) => Effect.Effect<import("./api.js").VcsBranchListOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2510
- };
2511
- diff: (input: import("./api.js").VcsDiffInput) => Effect.Effect<import("./api.js").VcsDiffOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2512
- };
2513
- debug: {
2514
- location: {
2515
- list: () => Effect.Effect<import("./api.js").DebugLocationListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2516
- evict: (input?: import("./api.js").DebugLocationEvictInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2517
- };
2518
- };
2519
- migration: {
2520
- v1: {
2521
- status: () => Effect.Effect<import("./api.js").MigrationV1StatusOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2522
- };
2523
- };
2524
- websearch: {
2525
- providers: (input?: import("./api.js").WebsearchProvidersInput) => Effect.Effect<import("./api.js").WebsearchProvidersOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2526
- query: (input: import("./api.js").WebsearchQueryInput) => Effect.Effect<import("./api.js").WebsearchQueryOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ServiceUnavailableError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2551
+ readonly type: "server.connected";
2552
+ readonly data: {};
2553
+ }, 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>;
2527
2554
  };
2528
- config: {
2529
- get: (input?: import("./api.js").ConfigGetInput) => Effect.Effect<import("./api.js").ConfigGetOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2530
- shells: () => Effect.Effect<import("./api.js").ConfigShellsOutput, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2531
- update: (input: import("./api.js").ConfigUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/http/HttpClientError").HttpClientError, never>;
2555
+ 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> & {
2556
+ 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>;
2532
2557
  };
2533
2558
  }, never, HttpClient.HttpClient>;