@opencode/client 0.0.0-dev-21106 → 0.0.0-dev-21107

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