t3code-cli 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/bin.js +412 -87
- package/dist/index.js +1 -1
- package/dist/{runtime-CMPZpQaG.js → runtime-Cq64iuZr.js} +4768 -2040
- package/dist/src/application/error.d.ts +3 -0
- package/dist/src/application/layer.d.ts +776 -0
- package/dist/src/application/model-selection.d.ts +19 -0
- package/dist/src/application/models.d.ts +93 -0
- package/dist/src/application/project-commands.d.ts +15 -0
- package/dist/src/application/projects.d.ts +136 -0
- package/dist/src/application/service.d.ts +72 -0
- package/dist/src/application/shell-sequence.d.ts +91 -0
- package/dist/src/application/thread-commands.d.ts +84 -0
- package/dist/src/application/thread-wait.d.ts +104 -0
- package/dist/src/application/threads.d.ts +563 -0
- package/dist/src/auth/error.d.ts +50 -0
- package/dist/src/auth/layer.d.ts +23 -0
- package/dist/src/auth/local.d.ts +27 -0
- package/dist/src/auth/pairing.d.ts +22 -0
- package/dist/src/auth/schema.d.ts +58 -0
- package/dist/src/auth/service.d.ts +14 -0
- package/dist/src/auth/transport.d.ts +19 -0
- package/dist/src/auth/type.d.ts +25 -0
- package/dist/src/config/error.d.ts +18 -0
- package/dist/src/config/layer.d.ts +20 -0
- package/dist/src/config/service.d.ts +20 -0
- package/dist/src/config/url.d.ts +6 -0
- package/dist/src/domain/error.d.ts +31 -0
- package/dist/src/domain/helpers.d.ts +38 -0
- package/dist/src/domain/model-config.d.ts +293 -0
- package/dist/src/domain/thread-lifecycle.d.ts +114 -0
- package/dist/src/environment/layer.d.ts +3 -0
- package/dist/src/environment/service.d.ts +12 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/orchestration/layer.d.ts +2128 -0
- package/dist/src/orchestration/service.d.ts +27 -0
- package/dist/src/rpc/error.d.ts +15 -0
- package/dist/src/rpc/layer.d.ts +4678 -0
- package/dist/src/rpc/service.d.ts +15 -0
- package/dist/src/rpc/ws-group.d.ts +2238 -0
- package/dist/src/runtime.d.ts +3 -0
- package/dist/src/sql/node-sqlite-client.d.ts +10 -0
- package/dist/src/sql/service.d.ts +17 -0
- package/dist/upstream-t3code/packages/contracts/src/auth.d.ts +441 -0
- package/dist/upstream-t3code/packages/contracts/src/baseSchemas.d.ts +38 -0
- package/dist/upstream-t3code/packages/contracts/src/desktopBootstrap.d.ts +14 -0
- package/dist/upstream-t3code/packages/contracts/src/editor.d.ts +124 -0
- package/dist/upstream-t3code/packages/contracts/src/environment.d.ts +64 -0
- package/dist/upstream-t3code/packages/contracts/src/environmentHttp.d.ts +762 -0
- package/dist/upstream-t3code/packages/contracts/src/filesystem.d.ts +26 -0
- package/dist/upstream-t3code/packages/contracts/src/git.d.ts +500 -0
- package/dist/upstream-t3code/packages/contracts/src/index.d.ts +25 -0
- package/dist/upstream-t3code/packages/contracts/src/ipc.d.ts +490 -0
- package/dist/upstream-t3code/packages/contracts/src/keybindings.d.ts +133 -0
- package/dist/upstream-t3code/packages/contracts/src/model.d.ts +112 -0
- package/dist/upstream-t3code/packages/contracts/src/orchestration.d.ts +6682 -0
- package/dist/upstream-t3code/packages/contracts/src/project.d.ts +45 -0
- package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +116 -0
- package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +99 -0
- package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +4276 -0
- package/dist/upstream-t3code/packages/contracts/src/relay.d.ts +1262 -0
- package/dist/upstream-t3code/packages/contracts/src/relayClient.d.ts +48 -0
- package/dist/upstream-t3code/packages/contracts/src/remoteAccess.d.ts +45 -0
- package/dist/upstream-t3code/packages/contracts/src/review.d.ts +37 -0
- package/dist/upstream-t3code/packages/contracts/src/rpc.d.ts +8218 -0
- package/dist/upstream-t3code/packages/contracts/src/server.d.ts +2291 -0
- package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +271 -0
- package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +177 -0
- package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +330 -0
- package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +148 -0
- package/package.json +15 -7
- package/src/application/model-selection.ts +2 -2
- package/src/application/project-commands.ts +1 -1
- package/src/application/service.ts +1 -1
- package/src/application/shell-sequence.ts +1 -1
- package/src/application/thread-commands.ts +1 -1
- package/src/application/thread-wait.ts +1 -1
- package/src/auth/error.ts +33 -1
- package/src/auth/layer.ts +11 -76
- package/src/auth/local.ts +342 -208
- package/src/auth/pairing.ts +44 -2
- package/src/auth/schema.ts +21 -28
- package/src/auth/service.ts +2 -2
- package/src/auth/transport.ts +59 -22
- package/src/auth/type.ts +0 -1
- package/src/cli/auth.ts +1 -3
- package/src/cli/model-format.ts +1 -1
- package/src/cli/project-format.ts +1 -1
- package/src/cli/thread-format.ts +1 -1
- package/src/domain/helpers.ts +1 -1
- package/src/domain/model-config.ts +1 -1
- package/src/domain/thread-lifecycle.ts +1 -1
- package/src/index.ts +3 -3
- package/src/orchestration/layer.ts +1 -1
- package/src/orchestration/service.ts +1 -1
- package/src/rpc/error.ts +1 -1
- package/src/rpc/layer.ts +2 -2
- package/src/rpc/ws-group.ts +1 -1
- package/src/runtime.ts +14 -1
- package/src/sql/node-sqlite-client.ts +141 -0
- package/src/sql/service.ts +21 -0
|
@@ -0,0 +1,2128 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import * as Stream from "effect/Stream";
|
|
4
|
+
import { RpcError } from "../rpc/error.ts";
|
|
5
|
+
import { T3Rpc } from "../rpc/service.ts";
|
|
6
|
+
import { T3Orchestration } from "./service.ts";
|
|
7
|
+
export declare const makeT3Orchestration: () => Effect.Effect<{
|
|
8
|
+
dispatch: (command: {
|
|
9
|
+
readonly type: "project.create";
|
|
10
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
12
|
+
readonly title: string;
|
|
13
|
+
readonly workspaceRoot: string;
|
|
14
|
+
readonly createdAt: string;
|
|
15
|
+
readonly createWorkspaceRootIfMissing?: boolean | undefined;
|
|
16
|
+
readonly defaultModelSelection?: {
|
|
17
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
18
|
+
readonly model: string;
|
|
19
|
+
readonly options?: readonly {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly value: string | boolean;
|
|
22
|
+
}[];
|
|
23
|
+
} | null | undefined;
|
|
24
|
+
} | {
|
|
25
|
+
readonly type: "project.meta.update";
|
|
26
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
27
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
28
|
+
readonly title?: string | undefined;
|
|
29
|
+
readonly workspaceRoot?: string | undefined;
|
|
30
|
+
readonly defaultModelSelection?: {
|
|
31
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
32
|
+
readonly model: string;
|
|
33
|
+
readonly options?: readonly {
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly value: string | boolean;
|
|
36
|
+
}[];
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
readonly scripts?: readonly {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly command: string;
|
|
42
|
+
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
43
|
+
readonly runOnWorktreeCreate: boolean;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
} | {
|
|
46
|
+
readonly type: "project.delete";
|
|
47
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
48
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
49
|
+
readonly force?: boolean | undefined;
|
|
50
|
+
} | {
|
|
51
|
+
readonly type: "thread.create";
|
|
52
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
53
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
54
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
55
|
+
readonly title: string;
|
|
56
|
+
readonly modelSelection: {
|
|
57
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
58
|
+
readonly model: string;
|
|
59
|
+
readonly options?: readonly {
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly value: string | boolean;
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
65
|
+
readonly interactionMode: "default" | "plan";
|
|
66
|
+
readonly branch: string | null;
|
|
67
|
+
readonly worktreePath: string | null;
|
|
68
|
+
readonly createdAt: string;
|
|
69
|
+
} | {
|
|
70
|
+
readonly type: "thread.delete";
|
|
71
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
72
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
73
|
+
} | {
|
|
74
|
+
readonly type: "thread.archive";
|
|
75
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
76
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
77
|
+
} | {
|
|
78
|
+
readonly type: "thread.unarchive";
|
|
79
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
80
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
81
|
+
} | {
|
|
82
|
+
readonly type: "thread.meta.update";
|
|
83
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
84
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
85
|
+
readonly title?: string | undefined;
|
|
86
|
+
readonly modelSelection?: {
|
|
87
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
88
|
+
readonly model: string;
|
|
89
|
+
readonly options?: readonly {
|
|
90
|
+
readonly id: string;
|
|
91
|
+
readonly value: string | boolean;
|
|
92
|
+
}[];
|
|
93
|
+
} | undefined;
|
|
94
|
+
readonly branch?: string | null | undefined;
|
|
95
|
+
readonly worktreePath?: string | null | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
readonly type: "thread.runtime-mode.set";
|
|
98
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
99
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
100
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
101
|
+
readonly createdAt: string;
|
|
102
|
+
} | {
|
|
103
|
+
readonly type: "thread.interaction-mode.set";
|
|
104
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
105
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
106
|
+
readonly interactionMode: "default" | "plan";
|
|
107
|
+
readonly createdAt: string;
|
|
108
|
+
} | {
|
|
109
|
+
readonly type: "thread.turn.interrupt";
|
|
110
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
111
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
112
|
+
readonly createdAt: string;
|
|
113
|
+
readonly turnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
|
|
114
|
+
} | {
|
|
115
|
+
readonly type: "thread.approval.respond";
|
|
116
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
117
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
118
|
+
readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
119
|
+
readonly decision: "accept" | "acceptForSession" | "decline" | "cancel";
|
|
120
|
+
readonly createdAt: string;
|
|
121
|
+
} | {
|
|
122
|
+
readonly type: "thread.user-input.respond";
|
|
123
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
124
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
125
|
+
readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
126
|
+
readonly answers: {
|
|
127
|
+
readonly [x: string]: unknown;
|
|
128
|
+
};
|
|
129
|
+
readonly createdAt: string;
|
|
130
|
+
} | {
|
|
131
|
+
readonly type: "thread.checkpoint.revert";
|
|
132
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
133
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
134
|
+
readonly turnCount: number;
|
|
135
|
+
readonly createdAt: string;
|
|
136
|
+
} | {
|
|
137
|
+
readonly type: "thread.session.stop";
|
|
138
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
139
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
140
|
+
readonly createdAt: string;
|
|
141
|
+
} | {
|
|
142
|
+
readonly type: "thread.turn.start";
|
|
143
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
144
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
145
|
+
readonly message: {
|
|
146
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
147
|
+
readonly role: "user";
|
|
148
|
+
readonly text: string;
|
|
149
|
+
readonly attachments: readonly {
|
|
150
|
+
readonly type: "image";
|
|
151
|
+
readonly name: string;
|
|
152
|
+
readonly mimeType: string;
|
|
153
|
+
readonly sizeBytes: number;
|
|
154
|
+
readonly dataUrl: string;
|
|
155
|
+
}[];
|
|
156
|
+
};
|
|
157
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
158
|
+
readonly interactionMode: "default" | "plan";
|
|
159
|
+
readonly createdAt: string;
|
|
160
|
+
readonly modelSelection?: {
|
|
161
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
162
|
+
readonly model: string;
|
|
163
|
+
readonly options?: readonly {
|
|
164
|
+
readonly id: string;
|
|
165
|
+
readonly value: string | boolean;
|
|
166
|
+
}[];
|
|
167
|
+
} | undefined;
|
|
168
|
+
readonly titleSeed?: string | undefined;
|
|
169
|
+
readonly bootstrap?: {
|
|
170
|
+
readonly createThread?: {
|
|
171
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
172
|
+
readonly title: string;
|
|
173
|
+
readonly modelSelection: {
|
|
174
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
175
|
+
readonly model: string;
|
|
176
|
+
readonly options?: readonly {
|
|
177
|
+
readonly id: string;
|
|
178
|
+
readonly value: string | boolean;
|
|
179
|
+
}[];
|
|
180
|
+
};
|
|
181
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
182
|
+
readonly interactionMode: "default" | "plan";
|
|
183
|
+
readonly branch: string | null;
|
|
184
|
+
readonly worktreePath: string | null;
|
|
185
|
+
readonly createdAt: string;
|
|
186
|
+
} | undefined;
|
|
187
|
+
readonly prepareWorktree?: {
|
|
188
|
+
readonly projectCwd: string;
|
|
189
|
+
readonly baseBranch: string;
|
|
190
|
+
readonly branch?: string | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
readonly runSetupScript?: boolean | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
readonly sourceProposedPlan?: {
|
|
195
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
196
|
+
readonly planId: string;
|
|
197
|
+
} | undefined;
|
|
198
|
+
}) => Effect.Effect<{
|
|
199
|
+
readonly sequence: number;
|
|
200
|
+
}, RpcError, never>;
|
|
201
|
+
getServerConfig: () => Effect.Effect<{
|
|
202
|
+
readonly environment: {
|
|
203
|
+
readonly environmentId: string & import("effect/Brand").Brand<"EnvironmentId">;
|
|
204
|
+
readonly label: string;
|
|
205
|
+
readonly platform: {
|
|
206
|
+
readonly os: "unknown" | "darwin" | "linux" | "windows";
|
|
207
|
+
readonly arch: "arm64" | "x64" | "other";
|
|
208
|
+
};
|
|
209
|
+
readonly serverVersion: string;
|
|
210
|
+
readonly capabilities: {
|
|
211
|
+
readonly repositoryIdentity: boolean;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly auth: {
|
|
215
|
+
readonly policy: "desktop-managed-local" | "loopback-browser" | "remote-reachable" | "unsafe-no-auth";
|
|
216
|
+
readonly bootstrapMethods: readonly ("desktop-bootstrap" | "one-time-token")[];
|
|
217
|
+
readonly sessionMethods: readonly ("browser-session-cookie" | "bearer-access-token" | "dpop-access-token")[];
|
|
218
|
+
readonly sessionCookieName: string;
|
|
219
|
+
};
|
|
220
|
+
readonly cwd: string;
|
|
221
|
+
readonly keybindingsConfigPath: string;
|
|
222
|
+
readonly keybindings: readonly {
|
|
223
|
+
readonly command: "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "thread.previous" | "thread.next" | "modelPicker.toggle" | "terminal.toggle" | "terminal.split" | "terminal.new" | "terminal.close" | "diff.toggle" | "commandPalette.toggle" | "chat.new" | "chat.newLocal" | "editor.openFavorite" | `script.${string}.run`;
|
|
224
|
+
readonly shortcut: {
|
|
225
|
+
readonly key: string;
|
|
226
|
+
readonly metaKey: boolean;
|
|
227
|
+
readonly ctrlKey: boolean;
|
|
228
|
+
readonly shiftKey: boolean;
|
|
229
|
+
readonly altKey: boolean;
|
|
230
|
+
readonly modKey: boolean;
|
|
231
|
+
};
|
|
232
|
+
readonly whenAst?: {
|
|
233
|
+
readonly type: "identifier";
|
|
234
|
+
readonly name: string;
|
|
235
|
+
} | {
|
|
236
|
+
readonly type: "not";
|
|
237
|
+
readonly node: import("#t3tools/contracts").KeybindingWhenNode;
|
|
238
|
+
} | {
|
|
239
|
+
readonly type: "and";
|
|
240
|
+
readonly left: import("#t3tools/contracts").KeybindingWhenNode;
|
|
241
|
+
readonly right: import("#t3tools/contracts").KeybindingWhenNode;
|
|
242
|
+
} | {
|
|
243
|
+
readonly type: "or";
|
|
244
|
+
readonly left: import("#t3tools/contracts").KeybindingWhenNode;
|
|
245
|
+
readonly right: import("#t3tools/contracts").KeybindingWhenNode;
|
|
246
|
+
} | undefined;
|
|
247
|
+
}[];
|
|
248
|
+
readonly issues: readonly ({
|
|
249
|
+
readonly kind: "keybindings.malformed-config";
|
|
250
|
+
readonly message: string;
|
|
251
|
+
} | {
|
|
252
|
+
readonly kind: "keybindings.invalid-entry";
|
|
253
|
+
readonly message: string;
|
|
254
|
+
readonly index: number;
|
|
255
|
+
})[];
|
|
256
|
+
readonly providers: readonly {
|
|
257
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
258
|
+
readonly driver: string & import("effect/Brand").Brand<"ProviderDriverKind">;
|
|
259
|
+
readonly enabled: boolean;
|
|
260
|
+
readonly installed: boolean;
|
|
261
|
+
readonly version: string | null;
|
|
262
|
+
readonly status: "error" | "ready" | "warning" | "disabled";
|
|
263
|
+
readonly auth: {
|
|
264
|
+
readonly status: "authenticated" | "unknown" | "unauthenticated";
|
|
265
|
+
readonly type?: string | undefined;
|
|
266
|
+
readonly label?: string | undefined;
|
|
267
|
+
readonly email?: string | undefined;
|
|
268
|
+
};
|
|
269
|
+
readonly checkedAt: string;
|
|
270
|
+
readonly models: readonly {
|
|
271
|
+
readonly slug: string;
|
|
272
|
+
readonly name: string;
|
|
273
|
+
readonly isCustom: boolean;
|
|
274
|
+
readonly capabilities: {
|
|
275
|
+
readonly optionDescriptors?: readonly ({
|
|
276
|
+
readonly type: "select";
|
|
277
|
+
readonly options: readonly {
|
|
278
|
+
readonly id: string;
|
|
279
|
+
readonly label: string;
|
|
280
|
+
readonly description?: string | undefined;
|
|
281
|
+
readonly isDefault?: boolean | undefined;
|
|
282
|
+
}[];
|
|
283
|
+
readonly id: string;
|
|
284
|
+
readonly label: string;
|
|
285
|
+
readonly currentValue?: string | undefined;
|
|
286
|
+
readonly promptInjectedValues?: readonly string[] | undefined;
|
|
287
|
+
readonly description?: string | undefined;
|
|
288
|
+
} | {
|
|
289
|
+
readonly type: "boolean";
|
|
290
|
+
readonly id: string;
|
|
291
|
+
readonly label: string;
|
|
292
|
+
readonly currentValue?: boolean | undefined;
|
|
293
|
+
readonly description?: string | undefined;
|
|
294
|
+
})[] | undefined;
|
|
295
|
+
} | null;
|
|
296
|
+
readonly shortName?: string | undefined;
|
|
297
|
+
readonly subProvider?: string | undefined;
|
|
298
|
+
}[];
|
|
299
|
+
readonly slashCommands: readonly {
|
|
300
|
+
readonly name: string;
|
|
301
|
+
readonly description?: string | undefined;
|
|
302
|
+
readonly input?: {
|
|
303
|
+
readonly hint: string;
|
|
304
|
+
} | undefined;
|
|
305
|
+
}[];
|
|
306
|
+
readonly skills: readonly {
|
|
307
|
+
readonly name: string;
|
|
308
|
+
readonly path: string;
|
|
309
|
+
readonly enabled: boolean;
|
|
310
|
+
readonly description?: string | undefined;
|
|
311
|
+
readonly scope?: string | undefined;
|
|
312
|
+
readonly displayName?: string | undefined;
|
|
313
|
+
readonly shortDescription?: string | undefined;
|
|
314
|
+
}[];
|
|
315
|
+
readonly displayName?: string | undefined;
|
|
316
|
+
readonly accentColor?: string | undefined;
|
|
317
|
+
readonly badgeLabel?: string | undefined;
|
|
318
|
+
readonly continuation?: {
|
|
319
|
+
readonly groupKey: string;
|
|
320
|
+
} | undefined;
|
|
321
|
+
readonly showInteractionModeToggle?: boolean | undefined;
|
|
322
|
+
readonly message?: string | undefined;
|
|
323
|
+
readonly availability?: "available" | "unavailable" | undefined;
|
|
324
|
+
readonly unavailableReason?: string | undefined;
|
|
325
|
+
readonly versionAdvisory?: {
|
|
326
|
+
readonly status: "unknown" | "current" | "behind_latest";
|
|
327
|
+
readonly currentVersion: string | null;
|
|
328
|
+
readonly latestVersion: string | null;
|
|
329
|
+
readonly updateCommand: string | null;
|
|
330
|
+
readonly canUpdate: boolean;
|
|
331
|
+
readonly checkedAt: string | null;
|
|
332
|
+
readonly message: string | null;
|
|
333
|
+
};
|
|
334
|
+
readonly updateState?: {
|
|
335
|
+
readonly status: "idle" | "running" | "failed" | "queued" | "succeeded" | "unchanged";
|
|
336
|
+
readonly startedAt: string | null;
|
|
337
|
+
readonly finishedAt: string | null;
|
|
338
|
+
readonly message: string | null;
|
|
339
|
+
readonly output: string | null;
|
|
340
|
+
};
|
|
341
|
+
}[];
|
|
342
|
+
readonly availableEditors: readonly ("cursor" | "trae" | "kiro" | "vscode" | "vscode-insiders" | "vscodium" | "zed" | "antigravity" | "idea" | "aqua" | "clion" | "datagrip" | "dataspell" | "goland" | "phpstorm" | "pycharm" | "rider" | "rubymine" | "rustrover" | "webstorm" | "file-manager")[];
|
|
343
|
+
readonly observability: {
|
|
344
|
+
readonly logsDirectoryPath: string;
|
|
345
|
+
readonly localTracingEnabled: boolean;
|
|
346
|
+
readonly otlpTracesEnabled: boolean;
|
|
347
|
+
readonly otlpMetricsEnabled: boolean;
|
|
348
|
+
readonly otlpTracesUrl?: string | undefined;
|
|
349
|
+
readonly otlpMetricsUrl?: string | undefined;
|
|
350
|
+
};
|
|
351
|
+
readonly settings: {
|
|
352
|
+
readonly enableAssistantStreaming: boolean;
|
|
353
|
+
readonly automaticGitFetchInterval: import("effect/Duration").Duration;
|
|
354
|
+
readonly defaultThreadEnvMode: "local" | "worktree";
|
|
355
|
+
readonly addProjectBaseDirectory: string;
|
|
356
|
+
readonly textGenerationModelSelection: {
|
|
357
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
358
|
+
readonly model: string;
|
|
359
|
+
readonly options?: readonly {
|
|
360
|
+
readonly id: string;
|
|
361
|
+
readonly value: string | boolean;
|
|
362
|
+
}[];
|
|
363
|
+
};
|
|
364
|
+
readonly providers: {
|
|
365
|
+
readonly codex: {
|
|
366
|
+
readonly enabled: boolean;
|
|
367
|
+
readonly binaryPath: string;
|
|
368
|
+
readonly homePath: string;
|
|
369
|
+
readonly shadowHomePath: string;
|
|
370
|
+
readonly customModels: readonly string[];
|
|
371
|
+
};
|
|
372
|
+
readonly claudeAgent: {
|
|
373
|
+
readonly enabled: boolean;
|
|
374
|
+
readonly binaryPath: string;
|
|
375
|
+
readonly homePath: string;
|
|
376
|
+
readonly customModels: readonly string[];
|
|
377
|
+
readonly launchArgs: string;
|
|
378
|
+
};
|
|
379
|
+
readonly cursor: {
|
|
380
|
+
readonly enabled: boolean;
|
|
381
|
+
readonly binaryPath: string;
|
|
382
|
+
readonly apiEndpoint: string;
|
|
383
|
+
readonly customModels: readonly string[];
|
|
384
|
+
};
|
|
385
|
+
readonly opencode: {
|
|
386
|
+
readonly enabled: boolean;
|
|
387
|
+
readonly binaryPath: string;
|
|
388
|
+
readonly serverUrl: string;
|
|
389
|
+
readonly serverPassword: string;
|
|
390
|
+
readonly customModels: readonly string[];
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
readonly providerInstances: {
|
|
394
|
+
readonly [x: string & import("effect/Brand").Brand<"ProviderInstanceId">]: {
|
|
395
|
+
readonly driver: string & import("effect/Brand").Brand<"ProviderDriverKind">;
|
|
396
|
+
readonly displayName?: string | undefined;
|
|
397
|
+
readonly accentColor?: string | undefined;
|
|
398
|
+
readonly environment?: readonly {
|
|
399
|
+
readonly name: string;
|
|
400
|
+
readonly value: string;
|
|
401
|
+
readonly sensitive: boolean;
|
|
402
|
+
readonly valueRedacted?: boolean;
|
|
403
|
+
}[];
|
|
404
|
+
readonly enabled?: boolean;
|
|
405
|
+
readonly config?: unknown;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
readonly observability: {
|
|
409
|
+
readonly otlpTracesUrl: string;
|
|
410
|
+
readonly otlpMetricsUrl: string;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
} | {
|
|
414
|
+
readonly providers: readonly {
|
|
415
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
416
|
+
readonly driver: string & import("effect/Brand").Brand<"ProviderDriverKind">;
|
|
417
|
+
readonly enabled: boolean;
|
|
418
|
+
readonly installed: boolean;
|
|
419
|
+
readonly version: string | null;
|
|
420
|
+
readonly status: "error" | "ready" | "warning" | "disabled";
|
|
421
|
+
readonly auth: {
|
|
422
|
+
readonly status: "authenticated" | "unknown" | "unauthenticated";
|
|
423
|
+
readonly type?: string | undefined;
|
|
424
|
+
readonly label?: string | undefined;
|
|
425
|
+
readonly email?: string | undefined;
|
|
426
|
+
};
|
|
427
|
+
readonly checkedAt: string;
|
|
428
|
+
readonly models: readonly {
|
|
429
|
+
readonly slug: string;
|
|
430
|
+
readonly name: string;
|
|
431
|
+
readonly isCustom: boolean;
|
|
432
|
+
readonly capabilities: {
|
|
433
|
+
readonly optionDescriptors?: readonly ({
|
|
434
|
+
readonly type: "select";
|
|
435
|
+
readonly options: readonly {
|
|
436
|
+
readonly id: string;
|
|
437
|
+
readonly label: string;
|
|
438
|
+
readonly description?: string | undefined;
|
|
439
|
+
readonly isDefault?: boolean | undefined;
|
|
440
|
+
}[];
|
|
441
|
+
readonly id: string;
|
|
442
|
+
readonly label: string;
|
|
443
|
+
readonly currentValue?: string | undefined;
|
|
444
|
+
readonly promptInjectedValues?: readonly string[] | undefined;
|
|
445
|
+
readonly description?: string | undefined;
|
|
446
|
+
} | {
|
|
447
|
+
readonly type: "boolean";
|
|
448
|
+
readonly id: string;
|
|
449
|
+
readonly label: string;
|
|
450
|
+
readonly currentValue?: boolean | undefined;
|
|
451
|
+
readonly description?: string | undefined;
|
|
452
|
+
})[] | undefined;
|
|
453
|
+
} | null;
|
|
454
|
+
readonly shortName?: string | undefined;
|
|
455
|
+
readonly subProvider?: string | undefined;
|
|
456
|
+
}[];
|
|
457
|
+
readonly slashCommands: readonly {
|
|
458
|
+
readonly name: string;
|
|
459
|
+
readonly description?: string | undefined;
|
|
460
|
+
readonly input?: {
|
|
461
|
+
readonly hint: string;
|
|
462
|
+
} | undefined;
|
|
463
|
+
}[];
|
|
464
|
+
readonly skills: readonly {
|
|
465
|
+
readonly name: string;
|
|
466
|
+
readonly path: string;
|
|
467
|
+
readonly enabled: boolean;
|
|
468
|
+
readonly description?: string | undefined;
|
|
469
|
+
readonly scope?: string | undefined;
|
|
470
|
+
readonly displayName?: string | undefined;
|
|
471
|
+
readonly shortDescription?: string | undefined;
|
|
472
|
+
}[];
|
|
473
|
+
readonly displayName?: string | undefined;
|
|
474
|
+
readonly accentColor?: string | undefined;
|
|
475
|
+
readonly badgeLabel?: string | undefined;
|
|
476
|
+
readonly continuation?: {
|
|
477
|
+
readonly groupKey: string;
|
|
478
|
+
} | undefined;
|
|
479
|
+
readonly showInteractionModeToggle?: boolean | undefined;
|
|
480
|
+
readonly message?: string | undefined;
|
|
481
|
+
readonly availability?: "available" | "unavailable" | undefined;
|
|
482
|
+
readonly unavailableReason?: string | undefined;
|
|
483
|
+
readonly versionAdvisory?: {
|
|
484
|
+
readonly status: "unknown" | "current" | "behind_latest";
|
|
485
|
+
readonly currentVersion: string | null;
|
|
486
|
+
readonly latestVersion: string | null;
|
|
487
|
+
readonly updateCommand: string | null;
|
|
488
|
+
readonly canUpdate: boolean;
|
|
489
|
+
readonly checkedAt: string | null;
|
|
490
|
+
readonly message: string | null;
|
|
491
|
+
};
|
|
492
|
+
readonly updateState?: {
|
|
493
|
+
readonly status: "idle" | "running" | "failed" | "queued" | "succeeded" | "unchanged";
|
|
494
|
+
readonly startedAt: string | null;
|
|
495
|
+
readonly finishedAt: string | null;
|
|
496
|
+
readonly message: string | null;
|
|
497
|
+
readonly output: string | null;
|
|
498
|
+
};
|
|
499
|
+
}[];
|
|
500
|
+
}, RpcError, never>;
|
|
501
|
+
getShellSnapshot: () => Effect.Effect<{
|
|
502
|
+
readonly snapshotSequence: number;
|
|
503
|
+
readonly projects: readonly {
|
|
504
|
+
readonly id: string & import("effect/Brand").Brand<"ProjectId">;
|
|
505
|
+
readonly title: string;
|
|
506
|
+
readonly workspaceRoot: string;
|
|
507
|
+
readonly defaultModelSelection: {
|
|
508
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
509
|
+
readonly model: string;
|
|
510
|
+
readonly options?: readonly {
|
|
511
|
+
readonly id: string;
|
|
512
|
+
readonly value: string | boolean;
|
|
513
|
+
}[];
|
|
514
|
+
} | null;
|
|
515
|
+
readonly scripts: readonly {
|
|
516
|
+
readonly id: string;
|
|
517
|
+
readonly name: string;
|
|
518
|
+
readonly command: string;
|
|
519
|
+
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
520
|
+
readonly runOnWorktreeCreate: boolean;
|
|
521
|
+
}[];
|
|
522
|
+
readonly createdAt: string;
|
|
523
|
+
readonly updatedAt: string;
|
|
524
|
+
readonly repositoryIdentity?: {
|
|
525
|
+
readonly canonicalKey: string;
|
|
526
|
+
readonly locator: {
|
|
527
|
+
readonly source: "git-remote";
|
|
528
|
+
readonly remoteName: string;
|
|
529
|
+
readonly remoteUrl: string;
|
|
530
|
+
};
|
|
531
|
+
readonly rootPath?: string;
|
|
532
|
+
readonly displayName?: string;
|
|
533
|
+
readonly provider?: string;
|
|
534
|
+
readonly owner?: string;
|
|
535
|
+
readonly name?: string;
|
|
536
|
+
} | null | undefined;
|
|
537
|
+
}[];
|
|
538
|
+
readonly threads: readonly {
|
|
539
|
+
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
540
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
541
|
+
readonly title: string;
|
|
542
|
+
readonly modelSelection: {
|
|
543
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
544
|
+
readonly model: string;
|
|
545
|
+
readonly options?: readonly {
|
|
546
|
+
readonly id: string;
|
|
547
|
+
readonly value: string | boolean;
|
|
548
|
+
}[];
|
|
549
|
+
};
|
|
550
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
551
|
+
readonly interactionMode: "default" | "plan";
|
|
552
|
+
readonly branch: string | null;
|
|
553
|
+
readonly worktreePath: string | null;
|
|
554
|
+
readonly latestTurn: {
|
|
555
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
556
|
+
readonly state: "error" | "running" | "interrupted" | "completed";
|
|
557
|
+
readonly requestedAt: string;
|
|
558
|
+
readonly startedAt: string | null;
|
|
559
|
+
readonly completedAt: string | null;
|
|
560
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
561
|
+
readonly sourceProposedPlan?: {
|
|
562
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
563
|
+
readonly planId: string;
|
|
564
|
+
} | undefined;
|
|
565
|
+
} | null;
|
|
566
|
+
readonly createdAt: string;
|
|
567
|
+
readonly updatedAt: string;
|
|
568
|
+
readonly archivedAt: string | null;
|
|
569
|
+
readonly session: {
|
|
570
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
571
|
+
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
572
|
+
readonly providerName: string | null;
|
|
573
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
574
|
+
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
575
|
+
readonly lastError: string | null;
|
|
576
|
+
readonly updatedAt: string;
|
|
577
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
578
|
+
} | null;
|
|
579
|
+
readonly latestUserMessageAt: string | null;
|
|
580
|
+
readonly hasPendingApprovals: boolean;
|
|
581
|
+
readonly hasPendingUserInput: boolean;
|
|
582
|
+
readonly hasActionableProposedPlan: boolean;
|
|
583
|
+
}[];
|
|
584
|
+
readonly updatedAt: string;
|
|
585
|
+
}, RpcError, never>;
|
|
586
|
+
getThreadSnapshot: (threadId: string) => Effect.Effect<{
|
|
587
|
+
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
588
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
589
|
+
readonly title: string;
|
|
590
|
+
readonly modelSelection: {
|
|
591
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
592
|
+
readonly model: string;
|
|
593
|
+
readonly options?: readonly {
|
|
594
|
+
readonly id: string;
|
|
595
|
+
readonly value: string | boolean;
|
|
596
|
+
}[];
|
|
597
|
+
};
|
|
598
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
599
|
+
readonly interactionMode: "default" | "plan";
|
|
600
|
+
readonly branch: string | null;
|
|
601
|
+
readonly worktreePath: string | null;
|
|
602
|
+
readonly latestTurn: {
|
|
603
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
604
|
+
readonly state: "error" | "running" | "interrupted" | "completed";
|
|
605
|
+
readonly requestedAt: string;
|
|
606
|
+
readonly startedAt: string | null;
|
|
607
|
+
readonly completedAt: string | null;
|
|
608
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
609
|
+
readonly sourceProposedPlan?: {
|
|
610
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
611
|
+
readonly planId: string;
|
|
612
|
+
} | undefined;
|
|
613
|
+
} | null;
|
|
614
|
+
readonly createdAt: string;
|
|
615
|
+
readonly updatedAt: string;
|
|
616
|
+
readonly archivedAt: string | null;
|
|
617
|
+
readonly deletedAt: string | null;
|
|
618
|
+
readonly messages: readonly {
|
|
619
|
+
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
620
|
+
readonly role: "user" | "assistant" | "system";
|
|
621
|
+
readonly text: string;
|
|
622
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
623
|
+
readonly streaming: boolean;
|
|
624
|
+
readonly createdAt: string;
|
|
625
|
+
readonly updatedAt: string;
|
|
626
|
+
readonly attachments?: readonly {
|
|
627
|
+
readonly type: "image";
|
|
628
|
+
readonly id: string;
|
|
629
|
+
readonly name: string;
|
|
630
|
+
readonly mimeType: string;
|
|
631
|
+
readonly sizeBytes: number;
|
|
632
|
+
}[] | undefined;
|
|
633
|
+
}[];
|
|
634
|
+
readonly proposedPlans: readonly {
|
|
635
|
+
readonly id: string;
|
|
636
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
637
|
+
readonly planMarkdown: string;
|
|
638
|
+
readonly implementedAt: string | null;
|
|
639
|
+
readonly implementationThreadId: (string & import("effect/Brand").Brand<"ThreadId">) | null;
|
|
640
|
+
readonly createdAt: string;
|
|
641
|
+
readonly updatedAt: string;
|
|
642
|
+
}[];
|
|
643
|
+
readonly activities: readonly {
|
|
644
|
+
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
645
|
+
readonly tone: "error" | "info" | "tool" | "approval";
|
|
646
|
+
readonly kind: string;
|
|
647
|
+
readonly summary: string;
|
|
648
|
+
readonly payload: unknown;
|
|
649
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
650
|
+
readonly createdAt: string;
|
|
651
|
+
readonly sequence?: number | undefined;
|
|
652
|
+
}[];
|
|
653
|
+
readonly checkpoints: readonly {
|
|
654
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
655
|
+
readonly checkpointTurnCount: number;
|
|
656
|
+
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
657
|
+
readonly status: "error" | "ready" | "missing";
|
|
658
|
+
readonly files: readonly {
|
|
659
|
+
readonly path: string;
|
|
660
|
+
readonly kind: string;
|
|
661
|
+
readonly additions: number;
|
|
662
|
+
readonly deletions: number;
|
|
663
|
+
}[];
|
|
664
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
665
|
+
readonly completedAt: string;
|
|
666
|
+
}[];
|
|
667
|
+
readonly session: {
|
|
668
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
669
|
+
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
670
|
+
readonly providerName: string | null;
|
|
671
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
672
|
+
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
673
|
+
readonly lastError: string | null;
|
|
674
|
+
readonly updatedAt: string;
|
|
675
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
676
|
+
} | null;
|
|
677
|
+
}, RpcError, never>;
|
|
678
|
+
watchShellSequence: () => Stream.Stream<number, RpcError, never>;
|
|
679
|
+
watchThreadItems: (threadId: string) => Stream.Stream<{
|
|
680
|
+
readonly kind: "snapshot";
|
|
681
|
+
readonly snapshot: {
|
|
682
|
+
readonly snapshotSequence: number;
|
|
683
|
+
readonly thread: {
|
|
684
|
+
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
685
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
686
|
+
readonly title: string;
|
|
687
|
+
readonly modelSelection: {
|
|
688
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
689
|
+
readonly model: string;
|
|
690
|
+
readonly options?: readonly {
|
|
691
|
+
readonly id: string;
|
|
692
|
+
readonly value: string | boolean;
|
|
693
|
+
}[];
|
|
694
|
+
};
|
|
695
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
696
|
+
readonly interactionMode: "default" | "plan";
|
|
697
|
+
readonly branch: string | null;
|
|
698
|
+
readonly worktreePath: string | null;
|
|
699
|
+
readonly latestTurn: {
|
|
700
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
701
|
+
readonly state: "error" | "running" | "interrupted" | "completed";
|
|
702
|
+
readonly requestedAt: string;
|
|
703
|
+
readonly startedAt: string | null;
|
|
704
|
+
readonly completedAt: string | null;
|
|
705
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
706
|
+
readonly sourceProposedPlan?: {
|
|
707
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
708
|
+
readonly planId: string;
|
|
709
|
+
} | undefined;
|
|
710
|
+
} | null;
|
|
711
|
+
readonly createdAt: string;
|
|
712
|
+
readonly updatedAt: string;
|
|
713
|
+
readonly archivedAt: string | null;
|
|
714
|
+
readonly deletedAt: string | null;
|
|
715
|
+
readonly messages: readonly {
|
|
716
|
+
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
717
|
+
readonly role: "user" | "assistant" | "system";
|
|
718
|
+
readonly text: string;
|
|
719
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
720
|
+
readonly streaming: boolean;
|
|
721
|
+
readonly createdAt: string;
|
|
722
|
+
readonly updatedAt: string;
|
|
723
|
+
readonly attachments?: readonly {
|
|
724
|
+
readonly type: "image";
|
|
725
|
+
readonly id: string;
|
|
726
|
+
readonly name: string;
|
|
727
|
+
readonly mimeType: string;
|
|
728
|
+
readonly sizeBytes: number;
|
|
729
|
+
}[] | undefined;
|
|
730
|
+
}[];
|
|
731
|
+
readonly proposedPlans: readonly {
|
|
732
|
+
readonly id: string;
|
|
733
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
734
|
+
readonly planMarkdown: string;
|
|
735
|
+
readonly implementedAt: string | null;
|
|
736
|
+
readonly implementationThreadId: (string & import("effect/Brand").Brand<"ThreadId">) | null;
|
|
737
|
+
readonly createdAt: string;
|
|
738
|
+
readonly updatedAt: string;
|
|
739
|
+
}[];
|
|
740
|
+
readonly activities: readonly {
|
|
741
|
+
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
742
|
+
readonly tone: "error" | "info" | "tool" | "approval";
|
|
743
|
+
readonly kind: string;
|
|
744
|
+
readonly summary: string;
|
|
745
|
+
readonly payload: unknown;
|
|
746
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
747
|
+
readonly createdAt: string;
|
|
748
|
+
readonly sequence?: number | undefined;
|
|
749
|
+
}[];
|
|
750
|
+
readonly checkpoints: readonly {
|
|
751
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
752
|
+
readonly checkpointTurnCount: number;
|
|
753
|
+
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
754
|
+
readonly status: "error" | "ready" | "missing";
|
|
755
|
+
readonly files: readonly {
|
|
756
|
+
readonly path: string;
|
|
757
|
+
readonly kind: string;
|
|
758
|
+
readonly additions: number;
|
|
759
|
+
readonly deletions: number;
|
|
760
|
+
}[];
|
|
761
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
762
|
+
readonly completedAt: string;
|
|
763
|
+
}[];
|
|
764
|
+
readonly session: {
|
|
765
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
766
|
+
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
767
|
+
readonly providerName: string | null;
|
|
768
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
769
|
+
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
770
|
+
readonly lastError: string | null;
|
|
771
|
+
readonly updatedAt: string;
|
|
772
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
773
|
+
} | null;
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
} | {
|
|
777
|
+
readonly kind: "event";
|
|
778
|
+
readonly event: {
|
|
779
|
+
readonly type: "project.created";
|
|
780
|
+
readonly payload: {
|
|
781
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
782
|
+
readonly title: string;
|
|
783
|
+
readonly workspaceRoot: string;
|
|
784
|
+
readonly defaultModelSelection: {
|
|
785
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
786
|
+
readonly model: string;
|
|
787
|
+
readonly options?: readonly {
|
|
788
|
+
readonly id: string;
|
|
789
|
+
readonly value: string | boolean;
|
|
790
|
+
}[];
|
|
791
|
+
} | null;
|
|
792
|
+
readonly scripts: readonly {
|
|
793
|
+
readonly id: string;
|
|
794
|
+
readonly name: string;
|
|
795
|
+
readonly command: string;
|
|
796
|
+
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
797
|
+
readonly runOnWorktreeCreate: boolean;
|
|
798
|
+
}[];
|
|
799
|
+
readonly createdAt: string;
|
|
800
|
+
readonly updatedAt: string;
|
|
801
|
+
readonly repositoryIdentity?: {
|
|
802
|
+
readonly canonicalKey: string;
|
|
803
|
+
readonly locator: {
|
|
804
|
+
readonly source: "git-remote";
|
|
805
|
+
readonly remoteName: string;
|
|
806
|
+
readonly remoteUrl: string;
|
|
807
|
+
};
|
|
808
|
+
readonly rootPath?: string;
|
|
809
|
+
readonly displayName?: string;
|
|
810
|
+
readonly provider?: string;
|
|
811
|
+
readonly owner?: string;
|
|
812
|
+
readonly name?: string;
|
|
813
|
+
} | null | undefined;
|
|
814
|
+
};
|
|
815
|
+
readonly sequence: number;
|
|
816
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
817
|
+
readonly aggregateKind: "project" | "thread";
|
|
818
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
819
|
+
readonly occurredAt: string;
|
|
820
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
821
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
822
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
823
|
+
readonly metadata: {
|
|
824
|
+
readonly providerTurnId?: string | undefined;
|
|
825
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
826
|
+
readonly adapterKey?: string | undefined;
|
|
827
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
828
|
+
readonly ingestedAt?: string | undefined;
|
|
829
|
+
};
|
|
830
|
+
} | {
|
|
831
|
+
readonly type: "project.meta-updated";
|
|
832
|
+
readonly payload: {
|
|
833
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
834
|
+
readonly updatedAt: string;
|
|
835
|
+
readonly title?: string | undefined;
|
|
836
|
+
readonly workspaceRoot?: string | undefined;
|
|
837
|
+
readonly repositoryIdentity?: {
|
|
838
|
+
readonly canonicalKey: string;
|
|
839
|
+
readonly locator: {
|
|
840
|
+
readonly source: "git-remote";
|
|
841
|
+
readonly remoteName: string;
|
|
842
|
+
readonly remoteUrl: string;
|
|
843
|
+
};
|
|
844
|
+
readonly rootPath?: string;
|
|
845
|
+
readonly displayName?: string;
|
|
846
|
+
readonly provider?: string;
|
|
847
|
+
readonly owner?: string;
|
|
848
|
+
readonly name?: string;
|
|
849
|
+
} | null | undefined;
|
|
850
|
+
readonly defaultModelSelection?: {
|
|
851
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
852
|
+
readonly model: string;
|
|
853
|
+
readonly options?: readonly {
|
|
854
|
+
readonly id: string;
|
|
855
|
+
readonly value: string | boolean;
|
|
856
|
+
}[];
|
|
857
|
+
} | null | undefined;
|
|
858
|
+
readonly scripts?: readonly {
|
|
859
|
+
readonly id: string;
|
|
860
|
+
readonly name: string;
|
|
861
|
+
readonly command: string;
|
|
862
|
+
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
863
|
+
readonly runOnWorktreeCreate: boolean;
|
|
864
|
+
}[] | undefined;
|
|
865
|
+
};
|
|
866
|
+
readonly sequence: number;
|
|
867
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
868
|
+
readonly aggregateKind: "project" | "thread";
|
|
869
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
870
|
+
readonly occurredAt: string;
|
|
871
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
872
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
873
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
874
|
+
readonly metadata: {
|
|
875
|
+
readonly providerTurnId?: string | undefined;
|
|
876
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
877
|
+
readonly adapterKey?: string | undefined;
|
|
878
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
879
|
+
readonly ingestedAt?: string | undefined;
|
|
880
|
+
};
|
|
881
|
+
} | {
|
|
882
|
+
readonly type: "project.deleted";
|
|
883
|
+
readonly payload: {
|
|
884
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
885
|
+
readonly deletedAt: string;
|
|
886
|
+
};
|
|
887
|
+
readonly sequence: number;
|
|
888
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
889
|
+
readonly aggregateKind: "project" | "thread";
|
|
890
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
891
|
+
readonly occurredAt: string;
|
|
892
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
893
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
894
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
895
|
+
readonly metadata: {
|
|
896
|
+
readonly providerTurnId?: string | undefined;
|
|
897
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
898
|
+
readonly adapterKey?: string | undefined;
|
|
899
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
900
|
+
readonly ingestedAt?: string | undefined;
|
|
901
|
+
};
|
|
902
|
+
} | {
|
|
903
|
+
readonly type: "thread.created";
|
|
904
|
+
readonly payload: {
|
|
905
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
906
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
907
|
+
readonly title: string;
|
|
908
|
+
readonly modelSelection: {
|
|
909
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
910
|
+
readonly model: string;
|
|
911
|
+
readonly options?: readonly {
|
|
912
|
+
readonly id: string;
|
|
913
|
+
readonly value: string | boolean;
|
|
914
|
+
}[];
|
|
915
|
+
};
|
|
916
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
917
|
+
readonly interactionMode: "default" | "plan";
|
|
918
|
+
readonly branch: string | null;
|
|
919
|
+
readonly worktreePath: string | null;
|
|
920
|
+
readonly createdAt: string;
|
|
921
|
+
readonly updatedAt: string;
|
|
922
|
+
};
|
|
923
|
+
readonly sequence: number;
|
|
924
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
925
|
+
readonly aggregateKind: "project" | "thread";
|
|
926
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
927
|
+
readonly occurredAt: string;
|
|
928
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
929
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
930
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
931
|
+
readonly metadata: {
|
|
932
|
+
readonly providerTurnId?: string | undefined;
|
|
933
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
934
|
+
readonly adapterKey?: string | undefined;
|
|
935
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
936
|
+
readonly ingestedAt?: string | undefined;
|
|
937
|
+
};
|
|
938
|
+
} | {
|
|
939
|
+
readonly type: "thread.deleted";
|
|
940
|
+
readonly payload: {
|
|
941
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
942
|
+
readonly deletedAt: string;
|
|
943
|
+
};
|
|
944
|
+
readonly sequence: number;
|
|
945
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
946
|
+
readonly aggregateKind: "project" | "thread";
|
|
947
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
948
|
+
readonly occurredAt: string;
|
|
949
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
950
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
951
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
952
|
+
readonly metadata: {
|
|
953
|
+
readonly providerTurnId?: string | undefined;
|
|
954
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
955
|
+
readonly adapterKey?: string | undefined;
|
|
956
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
957
|
+
readonly ingestedAt?: string | undefined;
|
|
958
|
+
};
|
|
959
|
+
} | {
|
|
960
|
+
readonly type: "thread.archived";
|
|
961
|
+
readonly payload: {
|
|
962
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
963
|
+
readonly archivedAt: string;
|
|
964
|
+
readonly updatedAt: string;
|
|
965
|
+
};
|
|
966
|
+
readonly sequence: number;
|
|
967
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
968
|
+
readonly aggregateKind: "project" | "thread";
|
|
969
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
970
|
+
readonly occurredAt: string;
|
|
971
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
972
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
973
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
974
|
+
readonly metadata: {
|
|
975
|
+
readonly providerTurnId?: string | undefined;
|
|
976
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
977
|
+
readonly adapterKey?: string | undefined;
|
|
978
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
979
|
+
readonly ingestedAt?: string | undefined;
|
|
980
|
+
};
|
|
981
|
+
} | {
|
|
982
|
+
readonly type: "thread.unarchived";
|
|
983
|
+
readonly payload: {
|
|
984
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
985
|
+
readonly updatedAt: string;
|
|
986
|
+
};
|
|
987
|
+
readonly sequence: number;
|
|
988
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
989
|
+
readonly aggregateKind: "project" | "thread";
|
|
990
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
991
|
+
readonly occurredAt: string;
|
|
992
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
993
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
994
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
995
|
+
readonly metadata: {
|
|
996
|
+
readonly providerTurnId?: string | undefined;
|
|
997
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
998
|
+
readonly adapterKey?: string | undefined;
|
|
999
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1000
|
+
readonly ingestedAt?: string | undefined;
|
|
1001
|
+
};
|
|
1002
|
+
} | {
|
|
1003
|
+
readonly type: "thread.meta-updated";
|
|
1004
|
+
readonly payload: {
|
|
1005
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1006
|
+
readonly updatedAt: string;
|
|
1007
|
+
readonly title?: string | undefined;
|
|
1008
|
+
readonly modelSelection?: {
|
|
1009
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1010
|
+
readonly model: string;
|
|
1011
|
+
readonly options?: readonly {
|
|
1012
|
+
readonly id: string;
|
|
1013
|
+
readonly value: string | boolean;
|
|
1014
|
+
}[];
|
|
1015
|
+
} | undefined;
|
|
1016
|
+
readonly branch?: string | null | undefined;
|
|
1017
|
+
readonly worktreePath?: string | null | undefined;
|
|
1018
|
+
};
|
|
1019
|
+
readonly sequence: number;
|
|
1020
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1021
|
+
readonly aggregateKind: "project" | "thread";
|
|
1022
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1023
|
+
readonly occurredAt: string;
|
|
1024
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1025
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1026
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1027
|
+
readonly metadata: {
|
|
1028
|
+
readonly providerTurnId?: string | undefined;
|
|
1029
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1030
|
+
readonly adapterKey?: string | undefined;
|
|
1031
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1032
|
+
readonly ingestedAt?: string | undefined;
|
|
1033
|
+
};
|
|
1034
|
+
} | {
|
|
1035
|
+
readonly type: "thread.runtime-mode-set";
|
|
1036
|
+
readonly payload: {
|
|
1037
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1038
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1039
|
+
readonly updatedAt: string;
|
|
1040
|
+
};
|
|
1041
|
+
readonly sequence: number;
|
|
1042
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1043
|
+
readonly aggregateKind: "project" | "thread";
|
|
1044
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1045
|
+
readonly occurredAt: string;
|
|
1046
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1047
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1048
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1049
|
+
readonly metadata: {
|
|
1050
|
+
readonly providerTurnId?: string | undefined;
|
|
1051
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1052
|
+
readonly adapterKey?: string | undefined;
|
|
1053
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1054
|
+
readonly ingestedAt?: string | undefined;
|
|
1055
|
+
};
|
|
1056
|
+
} | {
|
|
1057
|
+
readonly type: "thread.interaction-mode-set";
|
|
1058
|
+
readonly payload: {
|
|
1059
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1060
|
+
readonly interactionMode: "default" | "plan";
|
|
1061
|
+
readonly updatedAt: string;
|
|
1062
|
+
};
|
|
1063
|
+
readonly sequence: number;
|
|
1064
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1065
|
+
readonly aggregateKind: "project" | "thread";
|
|
1066
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1067
|
+
readonly occurredAt: string;
|
|
1068
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1069
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1070
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1071
|
+
readonly metadata: {
|
|
1072
|
+
readonly providerTurnId?: string | undefined;
|
|
1073
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1074
|
+
readonly adapterKey?: string | undefined;
|
|
1075
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1076
|
+
readonly ingestedAt?: string | undefined;
|
|
1077
|
+
};
|
|
1078
|
+
} | {
|
|
1079
|
+
readonly type: "thread.message-sent";
|
|
1080
|
+
readonly payload: {
|
|
1081
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1082
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1083
|
+
readonly role: "user" | "assistant" | "system";
|
|
1084
|
+
readonly text: string;
|
|
1085
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1086
|
+
readonly streaming: boolean;
|
|
1087
|
+
readonly createdAt: string;
|
|
1088
|
+
readonly updatedAt: string;
|
|
1089
|
+
readonly attachments?: readonly {
|
|
1090
|
+
readonly type: "image";
|
|
1091
|
+
readonly id: string;
|
|
1092
|
+
readonly name: string;
|
|
1093
|
+
readonly mimeType: string;
|
|
1094
|
+
readonly sizeBytes: number;
|
|
1095
|
+
}[] | undefined;
|
|
1096
|
+
};
|
|
1097
|
+
readonly sequence: number;
|
|
1098
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1099
|
+
readonly aggregateKind: "project" | "thread";
|
|
1100
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1101
|
+
readonly occurredAt: string;
|
|
1102
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1103
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1104
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1105
|
+
readonly metadata: {
|
|
1106
|
+
readonly providerTurnId?: string | undefined;
|
|
1107
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1108
|
+
readonly adapterKey?: string | undefined;
|
|
1109
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1110
|
+
readonly ingestedAt?: string | undefined;
|
|
1111
|
+
};
|
|
1112
|
+
} | {
|
|
1113
|
+
readonly type: "thread.turn-start-requested";
|
|
1114
|
+
readonly payload: {
|
|
1115
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1116
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1117
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1118
|
+
readonly interactionMode: "default" | "plan";
|
|
1119
|
+
readonly createdAt: string;
|
|
1120
|
+
readonly modelSelection?: {
|
|
1121
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1122
|
+
readonly model: string;
|
|
1123
|
+
readonly options?: readonly {
|
|
1124
|
+
readonly id: string;
|
|
1125
|
+
readonly value: string | boolean;
|
|
1126
|
+
}[];
|
|
1127
|
+
} | undefined;
|
|
1128
|
+
readonly titleSeed?: string | undefined;
|
|
1129
|
+
readonly sourceProposedPlan?: {
|
|
1130
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1131
|
+
readonly planId: string;
|
|
1132
|
+
} | undefined;
|
|
1133
|
+
};
|
|
1134
|
+
readonly sequence: number;
|
|
1135
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1136
|
+
readonly aggregateKind: "project" | "thread";
|
|
1137
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1138
|
+
readonly occurredAt: string;
|
|
1139
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1140
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1141
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1142
|
+
readonly metadata: {
|
|
1143
|
+
readonly providerTurnId?: string | undefined;
|
|
1144
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1145
|
+
readonly adapterKey?: string | undefined;
|
|
1146
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1147
|
+
readonly ingestedAt?: string | undefined;
|
|
1148
|
+
};
|
|
1149
|
+
} | {
|
|
1150
|
+
readonly type: "thread.turn-interrupt-requested";
|
|
1151
|
+
readonly payload: {
|
|
1152
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1153
|
+
readonly createdAt: string;
|
|
1154
|
+
readonly turnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
|
|
1155
|
+
};
|
|
1156
|
+
readonly sequence: number;
|
|
1157
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1158
|
+
readonly aggregateKind: "project" | "thread";
|
|
1159
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1160
|
+
readonly occurredAt: string;
|
|
1161
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1162
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1163
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1164
|
+
readonly metadata: {
|
|
1165
|
+
readonly providerTurnId?: string | undefined;
|
|
1166
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1167
|
+
readonly adapterKey?: string | undefined;
|
|
1168
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1169
|
+
readonly ingestedAt?: string | undefined;
|
|
1170
|
+
};
|
|
1171
|
+
} | {
|
|
1172
|
+
readonly type: "thread.approval-response-requested";
|
|
1173
|
+
readonly payload: {
|
|
1174
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1175
|
+
readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
1176
|
+
readonly decision: "accept" | "acceptForSession" | "decline" | "cancel";
|
|
1177
|
+
readonly createdAt: string;
|
|
1178
|
+
};
|
|
1179
|
+
readonly sequence: number;
|
|
1180
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1181
|
+
readonly aggregateKind: "project" | "thread";
|
|
1182
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1183
|
+
readonly occurredAt: string;
|
|
1184
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1185
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1186
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1187
|
+
readonly metadata: {
|
|
1188
|
+
readonly providerTurnId?: string | undefined;
|
|
1189
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1190
|
+
readonly adapterKey?: string | undefined;
|
|
1191
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1192
|
+
readonly ingestedAt?: string | undefined;
|
|
1193
|
+
};
|
|
1194
|
+
} | {
|
|
1195
|
+
readonly type: "thread.user-input-response-requested";
|
|
1196
|
+
readonly payload: {
|
|
1197
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1198
|
+
readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
1199
|
+
readonly answers: {
|
|
1200
|
+
readonly [x: string]: unknown;
|
|
1201
|
+
};
|
|
1202
|
+
readonly createdAt: string;
|
|
1203
|
+
};
|
|
1204
|
+
readonly sequence: number;
|
|
1205
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1206
|
+
readonly aggregateKind: "project" | "thread";
|
|
1207
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1208
|
+
readonly occurredAt: string;
|
|
1209
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1210
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1211
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1212
|
+
readonly metadata: {
|
|
1213
|
+
readonly providerTurnId?: string | undefined;
|
|
1214
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1215
|
+
readonly adapterKey?: string | undefined;
|
|
1216
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1217
|
+
readonly ingestedAt?: string | undefined;
|
|
1218
|
+
};
|
|
1219
|
+
} | {
|
|
1220
|
+
readonly type: "thread.checkpoint-revert-requested";
|
|
1221
|
+
readonly payload: {
|
|
1222
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1223
|
+
readonly turnCount: number;
|
|
1224
|
+
readonly createdAt: string;
|
|
1225
|
+
};
|
|
1226
|
+
readonly sequence: number;
|
|
1227
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1228
|
+
readonly aggregateKind: "project" | "thread";
|
|
1229
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1230
|
+
readonly occurredAt: string;
|
|
1231
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1232
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1233
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1234
|
+
readonly metadata: {
|
|
1235
|
+
readonly providerTurnId?: string | undefined;
|
|
1236
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1237
|
+
readonly adapterKey?: string | undefined;
|
|
1238
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1239
|
+
readonly ingestedAt?: string | undefined;
|
|
1240
|
+
};
|
|
1241
|
+
} | {
|
|
1242
|
+
readonly type: "thread.reverted";
|
|
1243
|
+
readonly payload: {
|
|
1244
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1245
|
+
readonly turnCount: number;
|
|
1246
|
+
};
|
|
1247
|
+
readonly sequence: number;
|
|
1248
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1249
|
+
readonly aggregateKind: "project" | "thread";
|
|
1250
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1251
|
+
readonly occurredAt: string;
|
|
1252
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1253
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1254
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1255
|
+
readonly metadata: {
|
|
1256
|
+
readonly providerTurnId?: string | undefined;
|
|
1257
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1258
|
+
readonly adapterKey?: string | undefined;
|
|
1259
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1260
|
+
readonly ingestedAt?: string | undefined;
|
|
1261
|
+
};
|
|
1262
|
+
} | {
|
|
1263
|
+
readonly type: "thread.session-stop-requested";
|
|
1264
|
+
readonly payload: {
|
|
1265
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1266
|
+
readonly createdAt: string;
|
|
1267
|
+
};
|
|
1268
|
+
readonly sequence: number;
|
|
1269
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1270
|
+
readonly aggregateKind: "project" | "thread";
|
|
1271
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1272
|
+
readonly occurredAt: string;
|
|
1273
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1274
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1275
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1276
|
+
readonly metadata: {
|
|
1277
|
+
readonly providerTurnId?: string | undefined;
|
|
1278
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1279
|
+
readonly adapterKey?: string | undefined;
|
|
1280
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1281
|
+
readonly ingestedAt?: string | undefined;
|
|
1282
|
+
};
|
|
1283
|
+
} | {
|
|
1284
|
+
readonly type: "thread.session-set";
|
|
1285
|
+
readonly payload: {
|
|
1286
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1287
|
+
readonly session: {
|
|
1288
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1289
|
+
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
1290
|
+
readonly providerName: string | null;
|
|
1291
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1292
|
+
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1293
|
+
readonly lastError: string | null;
|
|
1294
|
+
readonly updatedAt: string;
|
|
1295
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
readonly sequence: number;
|
|
1299
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1300
|
+
readonly aggregateKind: "project" | "thread";
|
|
1301
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1302
|
+
readonly occurredAt: string;
|
|
1303
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1304
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1305
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1306
|
+
readonly metadata: {
|
|
1307
|
+
readonly providerTurnId?: string | undefined;
|
|
1308
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1309
|
+
readonly adapterKey?: string | undefined;
|
|
1310
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1311
|
+
readonly ingestedAt?: string | undefined;
|
|
1312
|
+
};
|
|
1313
|
+
} | {
|
|
1314
|
+
readonly type: "thread.proposed-plan-upserted";
|
|
1315
|
+
readonly payload: {
|
|
1316
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1317
|
+
readonly proposedPlan: {
|
|
1318
|
+
readonly id: string;
|
|
1319
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1320
|
+
readonly planMarkdown: string;
|
|
1321
|
+
readonly implementedAt: string | null;
|
|
1322
|
+
readonly implementationThreadId: (string & import("effect/Brand").Brand<"ThreadId">) | null;
|
|
1323
|
+
readonly createdAt: string;
|
|
1324
|
+
readonly updatedAt: string;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
readonly sequence: number;
|
|
1328
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1329
|
+
readonly aggregateKind: "project" | "thread";
|
|
1330
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1331
|
+
readonly occurredAt: string;
|
|
1332
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1333
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1334
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1335
|
+
readonly metadata: {
|
|
1336
|
+
readonly providerTurnId?: string | undefined;
|
|
1337
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1338
|
+
readonly adapterKey?: string | undefined;
|
|
1339
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1340
|
+
readonly ingestedAt?: string | undefined;
|
|
1341
|
+
};
|
|
1342
|
+
} | {
|
|
1343
|
+
readonly type: "thread.turn-diff-completed";
|
|
1344
|
+
readonly payload: {
|
|
1345
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1346
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
1347
|
+
readonly checkpointTurnCount: number;
|
|
1348
|
+
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
1349
|
+
readonly status: "error" | "ready" | "missing";
|
|
1350
|
+
readonly files: readonly {
|
|
1351
|
+
readonly path: string;
|
|
1352
|
+
readonly kind: string;
|
|
1353
|
+
readonly additions: number;
|
|
1354
|
+
readonly deletions: number;
|
|
1355
|
+
}[];
|
|
1356
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1357
|
+
readonly completedAt: string;
|
|
1358
|
+
};
|
|
1359
|
+
readonly sequence: number;
|
|
1360
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1361
|
+
readonly aggregateKind: "project" | "thread";
|
|
1362
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1363
|
+
readonly occurredAt: string;
|
|
1364
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1365
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1366
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1367
|
+
readonly metadata: {
|
|
1368
|
+
readonly providerTurnId?: string | undefined;
|
|
1369
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1370
|
+
readonly adapterKey?: string | undefined;
|
|
1371
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1372
|
+
readonly ingestedAt?: string | undefined;
|
|
1373
|
+
};
|
|
1374
|
+
} | {
|
|
1375
|
+
readonly type: "thread.activity-appended";
|
|
1376
|
+
readonly payload: {
|
|
1377
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1378
|
+
readonly activity: {
|
|
1379
|
+
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
1380
|
+
readonly tone: "error" | "info" | "tool" | "approval";
|
|
1381
|
+
readonly kind: string;
|
|
1382
|
+
readonly summary: string;
|
|
1383
|
+
readonly payload: unknown;
|
|
1384
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1385
|
+
readonly createdAt: string;
|
|
1386
|
+
readonly sequence?: number | undefined;
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
readonly sequence: number;
|
|
1390
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1391
|
+
readonly aggregateKind: "project" | "thread";
|
|
1392
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1393
|
+
readonly occurredAt: string;
|
|
1394
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1395
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1396
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1397
|
+
readonly metadata: {
|
|
1398
|
+
readonly providerTurnId?: string | undefined;
|
|
1399
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1400
|
+
readonly adapterKey?: string | undefined;
|
|
1401
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1402
|
+
readonly ingestedAt?: string | undefined;
|
|
1403
|
+
};
|
|
1404
|
+
};
|
|
1405
|
+
}, RpcError, never>;
|
|
1406
|
+
openThread: (threadId: string) => Effect.Effect<{
|
|
1407
|
+
snapshot: {
|
|
1408
|
+
readonly id: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1409
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
1410
|
+
readonly title: string;
|
|
1411
|
+
readonly modelSelection: {
|
|
1412
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1413
|
+
readonly model: string;
|
|
1414
|
+
readonly options?: readonly {
|
|
1415
|
+
readonly id: string;
|
|
1416
|
+
readonly value: string | boolean;
|
|
1417
|
+
}[];
|
|
1418
|
+
};
|
|
1419
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1420
|
+
readonly interactionMode: "default" | "plan";
|
|
1421
|
+
readonly branch: string | null;
|
|
1422
|
+
readonly worktreePath: string | null;
|
|
1423
|
+
readonly latestTurn: {
|
|
1424
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
1425
|
+
readonly state: "error" | "running" | "interrupted" | "completed";
|
|
1426
|
+
readonly requestedAt: string;
|
|
1427
|
+
readonly startedAt: string | null;
|
|
1428
|
+
readonly completedAt: string | null;
|
|
1429
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1430
|
+
readonly sourceProposedPlan?: {
|
|
1431
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1432
|
+
readonly planId: string;
|
|
1433
|
+
} | undefined;
|
|
1434
|
+
} | null;
|
|
1435
|
+
readonly createdAt: string;
|
|
1436
|
+
readonly updatedAt: string;
|
|
1437
|
+
readonly archivedAt: string | null;
|
|
1438
|
+
readonly deletedAt: string | null;
|
|
1439
|
+
readonly messages: readonly {
|
|
1440
|
+
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
1441
|
+
readonly role: "user" | "assistant" | "system";
|
|
1442
|
+
readonly text: string;
|
|
1443
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1444
|
+
readonly streaming: boolean;
|
|
1445
|
+
readonly createdAt: string;
|
|
1446
|
+
readonly updatedAt: string;
|
|
1447
|
+
readonly attachments?: readonly {
|
|
1448
|
+
readonly type: "image";
|
|
1449
|
+
readonly id: string;
|
|
1450
|
+
readonly name: string;
|
|
1451
|
+
readonly mimeType: string;
|
|
1452
|
+
readonly sizeBytes: number;
|
|
1453
|
+
}[] | undefined;
|
|
1454
|
+
}[];
|
|
1455
|
+
readonly proposedPlans: readonly {
|
|
1456
|
+
readonly id: string;
|
|
1457
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1458
|
+
readonly planMarkdown: string;
|
|
1459
|
+
readonly implementedAt: string | null;
|
|
1460
|
+
readonly implementationThreadId: (string & import("effect/Brand").Brand<"ThreadId">) | null;
|
|
1461
|
+
readonly createdAt: string;
|
|
1462
|
+
readonly updatedAt: string;
|
|
1463
|
+
}[];
|
|
1464
|
+
readonly activities: readonly {
|
|
1465
|
+
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
1466
|
+
readonly tone: "error" | "info" | "tool" | "approval";
|
|
1467
|
+
readonly kind: string;
|
|
1468
|
+
readonly summary: string;
|
|
1469
|
+
readonly payload: unknown;
|
|
1470
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1471
|
+
readonly createdAt: string;
|
|
1472
|
+
readonly sequence?: number | undefined;
|
|
1473
|
+
}[];
|
|
1474
|
+
readonly checkpoints: readonly {
|
|
1475
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
1476
|
+
readonly checkpointTurnCount: number;
|
|
1477
|
+
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
1478
|
+
readonly status: "error" | "ready" | "missing";
|
|
1479
|
+
readonly files: readonly {
|
|
1480
|
+
readonly path: string;
|
|
1481
|
+
readonly kind: string;
|
|
1482
|
+
readonly additions: number;
|
|
1483
|
+
readonly deletions: number;
|
|
1484
|
+
}[];
|
|
1485
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1486
|
+
readonly completedAt: string;
|
|
1487
|
+
}[];
|
|
1488
|
+
readonly session: {
|
|
1489
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1490
|
+
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
1491
|
+
readonly providerName: string | null;
|
|
1492
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1493
|
+
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1494
|
+
readonly lastError: string | null;
|
|
1495
|
+
readonly updatedAt: string;
|
|
1496
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
1497
|
+
} | null;
|
|
1498
|
+
};
|
|
1499
|
+
events: Stream.Stream<{
|
|
1500
|
+
readonly type: "project.created";
|
|
1501
|
+
readonly payload: {
|
|
1502
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
1503
|
+
readonly title: string;
|
|
1504
|
+
readonly workspaceRoot: string;
|
|
1505
|
+
readonly defaultModelSelection: {
|
|
1506
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1507
|
+
readonly model: string;
|
|
1508
|
+
readonly options?: readonly {
|
|
1509
|
+
readonly id: string;
|
|
1510
|
+
readonly value: string | boolean;
|
|
1511
|
+
}[];
|
|
1512
|
+
} | null;
|
|
1513
|
+
readonly scripts: readonly {
|
|
1514
|
+
readonly id: string;
|
|
1515
|
+
readonly name: string;
|
|
1516
|
+
readonly command: string;
|
|
1517
|
+
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
1518
|
+
readonly runOnWorktreeCreate: boolean;
|
|
1519
|
+
}[];
|
|
1520
|
+
readonly createdAt: string;
|
|
1521
|
+
readonly updatedAt: string;
|
|
1522
|
+
readonly repositoryIdentity?: {
|
|
1523
|
+
readonly canonicalKey: string;
|
|
1524
|
+
readonly locator: {
|
|
1525
|
+
readonly source: "git-remote";
|
|
1526
|
+
readonly remoteName: string;
|
|
1527
|
+
readonly remoteUrl: string;
|
|
1528
|
+
};
|
|
1529
|
+
readonly rootPath?: string;
|
|
1530
|
+
readonly displayName?: string;
|
|
1531
|
+
readonly provider?: string;
|
|
1532
|
+
readonly owner?: string;
|
|
1533
|
+
readonly name?: string;
|
|
1534
|
+
} | null | undefined;
|
|
1535
|
+
};
|
|
1536
|
+
readonly sequence: number;
|
|
1537
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1538
|
+
readonly aggregateKind: "project" | "thread";
|
|
1539
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1540
|
+
readonly occurredAt: string;
|
|
1541
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1542
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1543
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1544
|
+
readonly metadata: {
|
|
1545
|
+
readonly providerTurnId?: string | undefined;
|
|
1546
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1547
|
+
readonly adapterKey?: string | undefined;
|
|
1548
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1549
|
+
readonly ingestedAt?: string | undefined;
|
|
1550
|
+
};
|
|
1551
|
+
} | {
|
|
1552
|
+
readonly type: "project.meta-updated";
|
|
1553
|
+
readonly payload: {
|
|
1554
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
1555
|
+
readonly updatedAt: string;
|
|
1556
|
+
readonly title?: string | undefined;
|
|
1557
|
+
readonly workspaceRoot?: string | undefined;
|
|
1558
|
+
readonly repositoryIdentity?: {
|
|
1559
|
+
readonly canonicalKey: string;
|
|
1560
|
+
readonly locator: {
|
|
1561
|
+
readonly source: "git-remote";
|
|
1562
|
+
readonly remoteName: string;
|
|
1563
|
+
readonly remoteUrl: string;
|
|
1564
|
+
};
|
|
1565
|
+
readonly rootPath?: string;
|
|
1566
|
+
readonly displayName?: string;
|
|
1567
|
+
readonly provider?: string;
|
|
1568
|
+
readonly owner?: string;
|
|
1569
|
+
readonly name?: string;
|
|
1570
|
+
} | null | undefined;
|
|
1571
|
+
readonly defaultModelSelection?: {
|
|
1572
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1573
|
+
readonly model: string;
|
|
1574
|
+
readonly options?: readonly {
|
|
1575
|
+
readonly id: string;
|
|
1576
|
+
readonly value: string | boolean;
|
|
1577
|
+
}[];
|
|
1578
|
+
} | null | undefined;
|
|
1579
|
+
readonly scripts?: readonly {
|
|
1580
|
+
readonly id: string;
|
|
1581
|
+
readonly name: string;
|
|
1582
|
+
readonly command: string;
|
|
1583
|
+
readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
|
|
1584
|
+
readonly runOnWorktreeCreate: boolean;
|
|
1585
|
+
}[] | undefined;
|
|
1586
|
+
};
|
|
1587
|
+
readonly sequence: number;
|
|
1588
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1589
|
+
readonly aggregateKind: "project" | "thread";
|
|
1590
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1591
|
+
readonly occurredAt: string;
|
|
1592
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1593
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1594
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1595
|
+
readonly metadata: {
|
|
1596
|
+
readonly providerTurnId?: string | undefined;
|
|
1597
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1598
|
+
readonly adapterKey?: string | undefined;
|
|
1599
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1600
|
+
readonly ingestedAt?: string | undefined;
|
|
1601
|
+
};
|
|
1602
|
+
} | {
|
|
1603
|
+
readonly type: "project.deleted";
|
|
1604
|
+
readonly payload: {
|
|
1605
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
1606
|
+
readonly deletedAt: string;
|
|
1607
|
+
};
|
|
1608
|
+
readonly sequence: number;
|
|
1609
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1610
|
+
readonly aggregateKind: "project" | "thread";
|
|
1611
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1612
|
+
readonly occurredAt: string;
|
|
1613
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1614
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1615
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1616
|
+
readonly metadata: {
|
|
1617
|
+
readonly providerTurnId?: string | undefined;
|
|
1618
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1619
|
+
readonly adapterKey?: string | undefined;
|
|
1620
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1621
|
+
readonly ingestedAt?: string | undefined;
|
|
1622
|
+
};
|
|
1623
|
+
} | {
|
|
1624
|
+
readonly type: "thread.created";
|
|
1625
|
+
readonly payload: {
|
|
1626
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1627
|
+
readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
|
|
1628
|
+
readonly title: string;
|
|
1629
|
+
readonly modelSelection: {
|
|
1630
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1631
|
+
readonly model: string;
|
|
1632
|
+
readonly options?: readonly {
|
|
1633
|
+
readonly id: string;
|
|
1634
|
+
readonly value: string | boolean;
|
|
1635
|
+
}[];
|
|
1636
|
+
};
|
|
1637
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1638
|
+
readonly interactionMode: "default" | "plan";
|
|
1639
|
+
readonly branch: string | null;
|
|
1640
|
+
readonly worktreePath: string | null;
|
|
1641
|
+
readonly createdAt: string;
|
|
1642
|
+
readonly updatedAt: string;
|
|
1643
|
+
};
|
|
1644
|
+
readonly sequence: number;
|
|
1645
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1646
|
+
readonly aggregateKind: "project" | "thread";
|
|
1647
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1648
|
+
readonly occurredAt: string;
|
|
1649
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1650
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1651
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1652
|
+
readonly metadata: {
|
|
1653
|
+
readonly providerTurnId?: string | undefined;
|
|
1654
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1655
|
+
readonly adapterKey?: string | undefined;
|
|
1656
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1657
|
+
readonly ingestedAt?: string | undefined;
|
|
1658
|
+
};
|
|
1659
|
+
} | {
|
|
1660
|
+
readonly type: "thread.deleted";
|
|
1661
|
+
readonly payload: {
|
|
1662
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1663
|
+
readonly deletedAt: string;
|
|
1664
|
+
};
|
|
1665
|
+
readonly sequence: number;
|
|
1666
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1667
|
+
readonly aggregateKind: "project" | "thread";
|
|
1668
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1669
|
+
readonly occurredAt: string;
|
|
1670
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1671
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1672
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1673
|
+
readonly metadata: {
|
|
1674
|
+
readonly providerTurnId?: string | undefined;
|
|
1675
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1676
|
+
readonly adapterKey?: string | undefined;
|
|
1677
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1678
|
+
readonly ingestedAt?: string | undefined;
|
|
1679
|
+
};
|
|
1680
|
+
} | {
|
|
1681
|
+
readonly type: "thread.archived";
|
|
1682
|
+
readonly payload: {
|
|
1683
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1684
|
+
readonly archivedAt: string;
|
|
1685
|
+
readonly updatedAt: string;
|
|
1686
|
+
};
|
|
1687
|
+
readonly sequence: number;
|
|
1688
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1689
|
+
readonly aggregateKind: "project" | "thread";
|
|
1690
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1691
|
+
readonly occurredAt: string;
|
|
1692
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1693
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1694
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1695
|
+
readonly metadata: {
|
|
1696
|
+
readonly providerTurnId?: string | undefined;
|
|
1697
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1698
|
+
readonly adapterKey?: string | undefined;
|
|
1699
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1700
|
+
readonly ingestedAt?: string | undefined;
|
|
1701
|
+
};
|
|
1702
|
+
} | {
|
|
1703
|
+
readonly type: "thread.unarchived";
|
|
1704
|
+
readonly payload: {
|
|
1705
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1706
|
+
readonly updatedAt: string;
|
|
1707
|
+
};
|
|
1708
|
+
readonly sequence: number;
|
|
1709
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1710
|
+
readonly aggregateKind: "project" | "thread";
|
|
1711
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1712
|
+
readonly occurredAt: string;
|
|
1713
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1714
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1715
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1716
|
+
readonly metadata: {
|
|
1717
|
+
readonly providerTurnId?: string | undefined;
|
|
1718
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1719
|
+
readonly adapterKey?: string | undefined;
|
|
1720
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1721
|
+
readonly ingestedAt?: string | undefined;
|
|
1722
|
+
};
|
|
1723
|
+
} | {
|
|
1724
|
+
readonly type: "thread.meta-updated";
|
|
1725
|
+
readonly payload: {
|
|
1726
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1727
|
+
readonly updatedAt: string;
|
|
1728
|
+
readonly title?: string | undefined;
|
|
1729
|
+
readonly modelSelection?: {
|
|
1730
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1731
|
+
readonly model: string;
|
|
1732
|
+
readonly options?: readonly {
|
|
1733
|
+
readonly id: string;
|
|
1734
|
+
readonly value: string | boolean;
|
|
1735
|
+
}[];
|
|
1736
|
+
} | undefined;
|
|
1737
|
+
readonly branch?: string | null | undefined;
|
|
1738
|
+
readonly worktreePath?: string | null | undefined;
|
|
1739
|
+
};
|
|
1740
|
+
readonly sequence: number;
|
|
1741
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1742
|
+
readonly aggregateKind: "project" | "thread";
|
|
1743
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1744
|
+
readonly occurredAt: string;
|
|
1745
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1746
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1747
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1748
|
+
readonly metadata: {
|
|
1749
|
+
readonly providerTurnId?: string | undefined;
|
|
1750
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1751
|
+
readonly adapterKey?: string | undefined;
|
|
1752
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1753
|
+
readonly ingestedAt?: string | undefined;
|
|
1754
|
+
};
|
|
1755
|
+
} | {
|
|
1756
|
+
readonly type: "thread.runtime-mode-set";
|
|
1757
|
+
readonly payload: {
|
|
1758
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1759
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1760
|
+
readonly updatedAt: string;
|
|
1761
|
+
};
|
|
1762
|
+
readonly sequence: number;
|
|
1763
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1764
|
+
readonly aggregateKind: "project" | "thread";
|
|
1765
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1766
|
+
readonly occurredAt: string;
|
|
1767
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1768
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1769
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1770
|
+
readonly metadata: {
|
|
1771
|
+
readonly providerTurnId?: string | undefined;
|
|
1772
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1773
|
+
readonly adapterKey?: string | undefined;
|
|
1774
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1775
|
+
readonly ingestedAt?: string | undefined;
|
|
1776
|
+
};
|
|
1777
|
+
} | {
|
|
1778
|
+
readonly type: "thread.interaction-mode-set";
|
|
1779
|
+
readonly payload: {
|
|
1780
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1781
|
+
readonly interactionMode: "default" | "plan";
|
|
1782
|
+
readonly updatedAt: string;
|
|
1783
|
+
};
|
|
1784
|
+
readonly sequence: number;
|
|
1785
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1786
|
+
readonly aggregateKind: "project" | "thread";
|
|
1787
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1788
|
+
readonly occurredAt: string;
|
|
1789
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1790
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1791
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1792
|
+
readonly metadata: {
|
|
1793
|
+
readonly providerTurnId?: string | undefined;
|
|
1794
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1795
|
+
readonly adapterKey?: string | undefined;
|
|
1796
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1797
|
+
readonly ingestedAt?: string | undefined;
|
|
1798
|
+
};
|
|
1799
|
+
} | {
|
|
1800
|
+
readonly type: "thread.message-sent";
|
|
1801
|
+
readonly payload: {
|
|
1802
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1803
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1804
|
+
readonly role: "user" | "assistant" | "system";
|
|
1805
|
+
readonly text: string;
|
|
1806
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
1807
|
+
readonly streaming: boolean;
|
|
1808
|
+
readonly createdAt: string;
|
|
1809
|
+
readonly updatedAt: string;
|
|
1810
|
+
readonly attachments?: readonly {
|
|
1811
|
+
readonly type: "image";
|
|
1812
|
+
readonly id: string;
|
|
1813
|
+
readonly name: string;
|
|
1814
|
+
readonly mimeType: string;
|
|
1815
|
+
readonly sizeBytes: number;
|
|
1816
|
+
}[] | undefined;
|
|
1817
|
+
};
|
|
1818
|
+
readonly sequence: number;
|
|
1819
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1820
|
+
readonly aggregateKind: "project" | "thread";
|
|
1821
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1822
|
+
readonly occurredAt: string;
|
|
1823
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1824
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1825
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1826
|
+
readonly metadata: {
|
|
1827
|
+
readonly providerTurnId?: string | undefined;
|
|
1828
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1829
|
+
readonly adapterKey?: string | undefined;
|
|
1830
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1831
|
+
readonly ingestedAt?: string | undefined;
|
|
1832
|
+
};
|
|
1833
|
+
} | {
|
|
1834
|
+
readonly type: "thread.turn-start-requested";
|
|
1835
|
+
readonly payload: {
|
|
1836
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1837
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1838
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
1839
|
+
readonly interactionMode: "default" | "plan";
|
|
1840
|
+
readonly createdAt: string;
|
|
1841
|
+
readonly modelSelection?: {
|
|
1842
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1843
|
+
readonly model: string;
|
|
1844
|
+
readonly options?: readonly {
|
|
1845
|
+
readonly id: string;
|
|
1846
|
+
readonly value: string | boolean;
|
|
1847
|
+
}[];
|
|
1848
|
+
} | undefined;
|
|
1849
|
+
readonly titleSeed?: string | undefined;
|
|
1850
|
+
readonly sourceProposedPlan?: {
|
|
1851
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1852
|
+
readonly planId: string;
|
|
1853
|
+
} | undefined;
|
|
1854
|
+
};
|
|
1855
|
+
readonly sequence: number;
|
|
1856
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1857
|
+
readonly aggregateKind: "project" | "thread";
|
|
1858
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1859
|
+
readonly occurredAt: string;
|
|
1860
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1861
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1862
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1863
|
+
readonly metadata: {
|
|
1864
|
+
readonly providerTurnId?: string | undefined;
|
|
1865
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1866
|
+
readonly adapterKey?: string | undefined;
|
|
1867
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1868
|
+
readonly ingestedAt?: string | undefined;
|
|
1869
|
+
};
|
|
1870
|
+
} | {
|
|
1871
|
+
readonly type: "thread.turn-interrupt-requested";
|
|
1872
|
+
readonly payload: {
|
|
1873
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1874
|
+
readonly createdAt: string;
|
|
1875
|
+
readonly turnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
|
|
1876
|
+
};
|
|
1877
|
+
readonly sequence: number;
|
|
1878
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1879
|
+
readonly aggregateKind: "project" | "thread";
|
|
1880
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1881
|
+
readonly occurredAt: string;
|
|
1882
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1883
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1884
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1885
|
+
readonly metadata: {
|
|
1886
|
+
readonly providerTurnId?: string | undefined;
|
|
1887
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1888
|
+
readonly adapterKey?: string | undefined;
|
|
1889
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1890
|
+
readonly ingestedAt?: string | undefined;
|
|
1891
|
+
};
|
|
1892
|
+
} | {
|
|
1893
|
+
readonly type: "thread.approval-response-requested";
|
|
1894
|
+
readonly payload: {
|
|
1895
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1896
|
+
readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
1897
|
+
readonly decision: "accept" | "acceptForSession" | "decline" | "cancel";
|
|
1898
|
+
readonly createdAt: string;
|
|
1899
|
+
};
|
|
1900
|
+
readonly sequence: number;
|
|
1901
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1902
|
+
readonly aggregateKind: "project" | "thread";
|
|
1903
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1904
|
+
readonly occurredAt: string;
|
|
1905
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1906
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1907
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1908
|
+
readonly metadata: {
|
|
1909
|
+
readonly providerTurnId?: string | undefined;
|
|
1910
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1911
|
+
readonly adapterKey?: string | undefined;
|
|
1912
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1913
|
+
readonly ingestedAt?: string | undefined;
|
|
1914
|
+
};
|
|
1915
|
+
} | {
|
|
1916
|
+
readonly type: "thread.user-input-response-requested";
|
|
1917
|
+
readonly payload: {
|
|
1918
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1919
|
+
readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
1920
|
+
readonly answers: {
|
|
1921
|
+
readonly [x: string]: unknown;
|
|
1922
|
+
};
|
|
1923
|
+
readonly createdAt: string;
|
|
1924
|
+
};
|
|
1925
|
+
readonly sequence: number;
|
|
1926
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1927
|
+
readonly aggregateKind: "project" | "thread";
|
|
1928
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1929
|
+
readonly occurredAt: string;
|
|
1930
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1931
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1932
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1933
|
+
readonly metadata: {
|
|
1934
|
+
readonly providerTurnId?: string | undefined;
|
|
1935
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1936
|
+
readonly adapterKey?: string | undefined;
|
|
1937
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1938
|
+
readonly ingestedAt?: string | undefined;
|
|
1939
|
+
};
|
|
1940
|
+
} | {
|
|
1941
|
+
readonly type: "thread.checkpoint-revert-requested";
|
|
1942
|
+
readonly payload: {
|
|
1943
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1944
|
+
readonly turnCount: number;
|
|
1945
|
+
readonly createdAt: string;
|
|
1946
|
+
};
|
|
1947
|
+
readonly sequence: number;
|
|
1948
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1949
|
+
readonly aggregateKind: "project" | "thread";
|
|
1950
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1951
|
+
readonly occurredAt: string;
|
|
1952
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1953
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1954
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1955
|
+
readonly metadata: {
|
|
1956
|
+
readonly providerTurnId?: string | undefined;
|
|
1957
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1958
|
+
readonly adapterKey?: string | undefined;
|
|
1959
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1960
|
+
readonly ingestedAt?: string | undefined;
|
|
1961
|
+
};
|
|
1962
|
+
} | {
|
|
1963
|
+
readonly type: "thread.reverted";
|
|
1964
|
+
readonly payload: {
|
|
1965
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1966
|
+
readonly turnCount: number;
|
|
1967
|
+
};
|
|
1968
|
+
readonly sequence: number;
|
|
1969
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1970
|
+
readonly aggregateKind: "project" | "thread";
|
|
1971
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1972
|
+
readonly occurredAt: string;
|
|
1973
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1974
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1975
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1976
|
+
readonly metadata: {
|
|
1977
|
+
readonly providerTurnId?: string | undefined;
|
|
1978
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
1979
|
+
readonly adapterKey?: string | undefined;
|
|
1980
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
1981
|
+
readonly ingestedAt?: string | undefined;
|
|
1982
|
+
};
|
|
1983
|
+
} | {
|
|
1984
|
+
readonly type: "thread.session-stop-requested";
|
|
1985
|
+
readonly payload: {
|
|
1986
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
1987
|
+
readonly createdAt: string;
|
|
1988
|
+
};
|
|
1989
|
+
readonly sequence: number;
|
|
1990
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
1991
|
+
readonly aggregateKind: "project" | "thread";
|
|
1992
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
1993
|
+
readonly occurredAt: string;
|
|
1994
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1995
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
1996
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
1997
|
+
readonly metadata: {
|
|
1998
|
+
readonly providerTurnId?: string | undefined;
|
|
1999
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
2000
|
+
readonly adapterKey?: string | undefined;
|
|
2001
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
2002
|
+
readonly ingestedAt?: string | undefined;
|
|
2003
|
+
};
|
|
2004
|
+
} | {
|
|
2005
|
+
readonly type: "thread.session-set";
|
|
2006
|
+
readonly payload: {
|
|
2007
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
2008
|
+
readonly session: {
|
|
2009
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
2010
|
+
readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
|
|
2011
|
+
readonly providerName: string | null;
|
|
2012
|
+
readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
|
|
2013
|
+
readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
2014
|
+
readonly lastError: string | null;
|
|
2015
|
+
readonly updatedAt: string;
|
|
2016
|
+
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
2019
|
+
readonly sequence: number;
|
|
2020
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
2021
|
+
readonly aggregateKind: "project" | "thread";
|
|
2022
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
2023
|
+
readonly occurredAt: string;
|
|
2024
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
2025
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
2026
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
2027
|
+
readonly metadata: {
|
|
2028
|
+
readonly providerTurnId?: string | undefined;
|
|
2029
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
2030
|
+
readonly adapterKey?: string | undefined;
|
|
2031
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
2032
|
+
readonly ingestedAt?: string | undefined;
|
|
2033
|
+
};
|
|
2034
|
+
} | {
|
|
2035
|
+
readonly type: "thread.proposed-plan-upserted";
|
|
2036
|
+
readonly payload: {
|
|
2037
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
2038
|
+
readonly proposedPlan: {
|
|
2039
|
+
readonly id: string;
|
|
2040
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
2041
|
+
readonly planMarkdown: string;
|
|
2042
|
+
readonly implementedAt: string | null;
|
|
2043
|
+
readonly implementationThreadId: (string & import("effect/Brand").Brand<"ThreadId">) | null;
|
|
2044
|
+
readonly createdAt: string;
|
|
2045
|
+
readonly updatedAt: string;
|
|
2046
|
+
};
|
|
2047
|
+
};
|
|
2048
|
+
readonly sequence: number;
|
|
2049
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
2050
|
+
readonly aggregateKind: "project" | "thread";
|
|
2051
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
2052
|
+
readonly occurredAt: string;
|
|
2053
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
2054
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
2055
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
2056
|
+
readonly metadata: {
|
|
2057
|
+
readonly providerTurnId?: string | undefined;
|
|
2058
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
2059
|
+
readonly adapterKey?: string | undefined;
|
|
2060
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
2061
|
+
readonly ingestedAt?: string | undefined;
|
|
2062
|
+
};
|
|
2063
|
+
} | {
|
|
2064
|
+
readonly type: "thread.turn-diff-completed";
|
|
2065
|
+
readonly payload: {
|
|
2066
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
2067
|
+
readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
|
|
2068
|
+
readonly checkpointTurnCount: number;
|
|
2069
|
+
readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
|
|
2070
|
+
readonly status: "error" | "ready" | "missing";
|
|
2071
|
+
readonly files: readonly {
|
|
2072
|
+
readonly path: string;
|
|
2073
|
+
readonly kind: string;
|
|
2074
|
+
readonly additions: number;
|
|
2075
|
+
readonly deletions: number;
|
|
2076
|
+
}[];
|
|
2077
|
+
readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2078
|
+
readonly completedAt: string;
|
|
2079
|
+
};
|
|
2080
|
+
readonly sequence: number;
|
|
2081
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
2082
|
+
readonly aggregateKind: "project" | "thread";
|
|
2083
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
2084
|
+
readonly occurredAt: string;
|
|
2085
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
2086
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
2087
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
2088
|
+
readonly metadata: {
|
|
2089
|
+
readonly providerTurnId?: string | undefined;
|
|
2090
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
2091
|
+
readonly adapterKey?: string | undefined;
|
|
2092
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
2093
|
+
readonly ingestedAt?: string | undefined;
|
|
2094
|
+
};
|
|
2095
|
+
} | {
|
|
2096
|
+
readonly type: "thread.activity-appended";
|
|
2097
|
+
readonly payload: {
|
|
2098
|
+
readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
2099
|
+
readonly activity: {
|
|
2100
|
+
readonly id: string & import("effect/Brand").Brand<"EventId">;
|
|
2101
|
+
readonly tone: "error" | "info" | "tool" | "approval";
|
|
2102
|
+
readonly kind: string;
|
|
2103
|
+
readonly summary: string;
|
|
2104
|
+
readonly payload: unknown;
|
|
2105
|
+
readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
|
|
2106
|
+
readonly createdAt: string;
|
|
2107
|
+
readonly sequence?: number | undefined;
|
|
2108
|
+
};
|
|
2109
|
+
};
|
|
2110
|
+
readonly sequence: number;
|
|
2111
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
2112
|
+
readonly aggregateKind: "project" | "thread";
|
|
2113
|
+
readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
|
|
2114
|
+
readonly occurredAt: string;
|
|
2115
|
+
readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
2116
|
+
readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
|
|
2117
|
+
readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
|
|
2118
|
+
readonly metadata: {
|
|
2119
|
+
readonly providerTurnId?: string | undefined;
|
|
2120
|
+
readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
|
|
2121
|
+
readonly adapterKey?: string | undefined;
|
|
2122
|
+
readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
|
|
2123
|
+
readonly ingestedAt?: string | undefined;
|
|
2124
|
+
};
|
|
2125
|
+
}, RpcError, never>;
|
|
2126
|
+
}, RpcError, import("effect/Scope").Scope>;
|
|
2127
|
+
}, never, T3Rpc>;
|
|
2128
|
+
export declare const T3OrchestrationLive: Layer.Layer<T3Orchestration, never, T3Rpc>;
|