t3code-cli 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/README.md +42 -10
  2. package/dist/application.js +2 -2
  3. package/dist/auth.js +1 -1
  4. package/dist/bin.js +85549 -2668
  5. package/dist/cli.js +15 -2
  6. package/dist/config.js +120 -2
  7. package/dist/connection.js +2 -2
  8. package/dist/index.js +1 -1
  9. package/dist/node.js +6 -2
  10. package/dist/orchestration.js +2 -2
  11. package/dist/rolldown-runtime.js +1 -1
  12. package/dist/rpc.js +1 -1
  13. package/dist/runtime.js +2 -2
  14. package/dist/shared.js +23313 -8022
  15. package/dist/src/application/actions.d.ts +25 -0
  16. package/dist/src/application/index.d.ts +3 -3
  17. package/dist/src/application/layer.d.ts +66 -50
  18. package/dist/src/application/model-selection.d.ts +2 -2
  19. package/dist/src/application/models.d.ts +1 -1
  20. package/dist/src/application/project-commands.d.ts +23 -3
  21. package/dist/src/application/projects.d.ts +7 -7
  22. package/dist/src/application/service.d.ts +65 -2
  23. package/dist/src/application/shell-sequence.d.ts +25 -19
  24. package/dist/src/application/terminals.d.ts +8 -8
  25. package/dist/src/application/thread-commands.d.ts +19 -19
  26. package/dist/src/application/thread-update.d.ts +1 -1
  27. package/dist/src/application/thread-wait.d.ts +19 -15
  28. package/dist/src/application/threads.d.ts +134 -108
  29. package/dist/src/auth/error.d.ts +3 -3
  30. package/dist/src/auth/index.d.ts +1 -1
  31. package/dist/src/auth/layer.d.ts +36 -8
  32. package/dist/src/auth/local-base-dir.d.ts +5 -2
  33. package/dist/src/auth/local-origin.d.ts +3 -3
  34. package/dist/src/auth/local-token.d.ts +3 -3
  35. package/dist/src/auth/remote-error.d.ts +3 -0
  36. package/dist/src/auth/service.d.ts +15 -3
  37. package/dist/src/auth/type.d.ts +40 -1
  38. package/dist/src/cli/env/flag.d.ts +2 -0
  39. package/dist/src/cli/env/index.d.ts +2 -0
  40. package/dist/src/cli/env/selection-layer.d.ts +3 -0
  41. package/dist/src/cli/flags.d.ts +2 -0
  42. package/dist/src/cli/format/index.d.ts +1 -0
  43. package/dist/src/cli/format/output.d.ts +12 -0
  44. package/dist/src/cli/index.d.ts +4 -0
  45. package/dist/src/cli/runtime/index.d.ts +1 -0
  46. package/dist/src/cli/runtime/service.d.ts +16 -0
  47. package/dist/src/{scope → cli/scope}/resolve.d.ts +5 -4
  48. package/dist/src/config/config.d.ts +49 -0
  49. package/dist/src/config/credential/cipher-node.d.ts +3 -0
  50. package/dist/src/config/credential/cipher-web.d.ts +3 -0
  51. package/dist/src/config/credential/cipher.d.ts +29 -0
  52. package/dist/src/config/credential/env.d.ts +3 -0
  53. package/dist/src/config/credential/error.d.ts +8 -0
  54. package/dist/src/config/credential/index.d.ts +6 -0
  55. package/dist/src/config/credential/service.d.ts +34 -0
  56. package/dist/src/config/env/env.d.ts +55 -0
  57. package/dist/src/config/env/index.d.ts +2 -0
  58. package/dist/src/{layout/base-dir.d.ts → config/env/layout.d.ts} +0 -1
  59. package/dist/src/config/environment-name/index.d.ts +1 -0
  60. package/dist/src/config/environment-name/name.d.ts +10 -0
  61. package/dist/src/config/error.d.ts +4 -11
  62. package/dist/src/config/index.d.ts +10 -5
  63. package/dist/src/config/keystore/error.d.ts +8 -0
  64. package/dist/src/config/keystore/file.d.ts +9 -0
  65. package/dist/src/config/keystore/index.d.ts +4 -0
  66. package/dist/src/config/keystore/keyring-node.d.ts +4 -0
  67. package/dist/src/config/keystore/service.d.ts +33 -0
  68. package/dist/src/config/paths/index.d.ts +1 -0
  69. package/dist/src/config/paths/paths.d.ts +6 -0
  70. package/dist/src/config/persist/file-mode.d.ts +4 -0
  71. package/dist/src/config/persist/migration.d.ts +68 -0
  72. package/dist/src/config/persist/persist.d.ts +40 -0
  73. package/dist/src/config/persist/schema.d.ts +68 -0
  74. package/dist/src/config/resolve/resolve.d.ts +40 -0
  75. package/dist/src/config/selection/index.d.ts +1 -0
  76. package/dist/src/config/selection/resolve.d.ts +4 -0
  77. package/dist/src/config/selection/service.d.ts +10 -0
  78. package/dist/src/config/types.d.ts +36 -0
  79. package/dist/src/config/url/error.d.ts +10 -0
  80. package/dist/src/config/url/index.d.ts +2 -0
  81. package/dist/src/connection/error.d.ts +3 -1
  82. package/dist/src/connection/index.d.ts +0 -1
  83. package/dist/src/connection/prepared.d.ts +14 -0
  84. package/dist/src/contracts/index.d.ts +1 -1
  85. package/dist/src/domain/error.d.ts +14 -1
  86. package/dist/src/domain/helpers.d.ts +53 -43
  87. package/dist/src/domain/model-config.d.ts +92 -84
  88. package/dist/src/domain/thread-activities.d.ts +1 -1
  89. package/dist/src/domain/thread-lifecycle.d.ts +24 -20
  90. package/dist/src/index.d.ts +1 -2
  91. package/dist/src/{connection/node.d.ts → node/connection.d.ts} +1 -1
  92. package/dist/src/node/index.d.ts +1 -2
  93. package/dist/src/orchestration/index.d.ts +0 -1
  94. package/dist/src/orchestration/layer.d.ts +321 -390
  95. package/dist/src/orchestration/service.d.ts +1 -1
  96. package/dist/src/rpc/error.d.ts +4 -6
  97. package/dist/src/rpc/layer.d.ts +2036 -1917
  98. package/dist/src/rpc/operation.d.ts +4 -5732
  99. package/dist/src/rpc/service.d.ts +1 -1
  100. package/dist/src/rpc/session.d.ts +22 -0
  101. package/dist/src/rpc/ws-group.d.ts +456 -1032
  102. package/dist/src/runtime/index.d.ts +1 -2
  103. package/dist/src/runtime/layer.d.ts +12 -8
  104. package/dist/src/sql/node-sqlite-client.d.ts +1 -1
  105. package/dist/src/t3tools/index.d.ts +1 -1
  106. package/dist/t3tools.js +2 -2
  107. package/package.json +30 -25
  108. package/src/application/actions.test.ts +328 -0
  109. package/src/application/actions.ts +475 -0
  110. package/src/application/index.ts +9 -5
  111. package/src/application/layer.ts +9 -0
  112. package/src/application/model-selection.ts +2 -2
  113. package/src/application/project-commands.ts +23 -5
  114. package/src/application/projects.ts +6 -7
  115. package/src/application/service.ts +79 -1
  116. package/src/application/shell-sequence.ts +1 -1
  117. package/src/application/terminals.ts +2 -1
  118. package/src/application/thread-commands.ts +1 -1
  119. package/src/application/thread-update.ts +1 -1
  120. package/src/application/thread-wait.ts +5 -1
  121. package/src/application/threads.test.ts +9 -3
  122. package/src/application/threads.ts +6 -6
  123. package/src/auth/error.ts +4 -9
  124. package/src/auth/index.ts +7 -0
  125. package/src/auth/layer.test-utils.ts +34 -0
  126. package/src/auth/layer.ts +116 -34
  127. package/src/auth/local-base-dir.ts +13 -6
  128. package/src/auth/local-origin.ts +10 -7
  129. package/src/auth/local-token.ts +28 -23
  130. package/src/auth/remote-error.ts +17 -0
  131. package/src/auth/service.test.ts +200 -0
  132. package/src/auth/service.ts +27 -3
  133. package/src/auth/transport.ts +45 -114
  134. package/src/auth/type.ts +47 -1
  135. package/src/bin.ts +24 -6
  136. package/src/cli/action-format.ts +110 -0
  137. package/src/cli/action.ts +398 -0
  138. package/src/cli/app.ts +6 -0
  139. package/src/cli/auth.ts +76 -23
  140. package/src/cli/env/flag.ts +8 -0
  141. package/src/cli/env/index.ts +2 -0
  142. package/src/cli/env/selection-layer.test.ts +49 -0
  143. package/src/cli/env/selection-layer.ts +27 -0
  144. package/src/cli/env.ts +107 -0
  145. package/src/cli/extra-args.test.ts +32 -0
  146. package/src/cli/extra-args.ts +22 -0
  147. package/src/cli/flags.ts +11 -1
  148. package/src/cli/format/auth.ts +92 -0
  149. package/src/cli/format/human.ts +131 -0
  150. package/src/cli/format/index.ts +12 -0
  151. package/src/cli/format/model.ts +29 -0
  152. package/src/cli/format/output.ts +51 -0
  153. package/src/cli/format/project.ts +32 -0
  154. package/src/cli/format/terminal.ts +87 -0
  155. package/src/cli/{thread-format.test.ts → format/thread.test.ts} +6 -4
  156. package/src/cli/format/thread.ts +185 -0
  157. package/src/cli/index.ts +20 -0
  158. package/src/cli/interaction/confirm.ts +64 -0
  159. package/src/cli/{self-action.ts → interaction/self-action.ts} +8 -6
  160. package/src/cli/message-input.ts +1 -1
  161. package/src/cli/model.ts +9 -5
  162. package/src/cli/project.ts +13 -7
  163. package/src/cli/projects/delete.ts +13 -12
  164. package/src/cli/require.ts +9 -7
  165. package/src/cli/runtime/index.ts +1 -0
  166. package/src/cli/runtime/service.ts +28 -0
  167. package/src/{scope → cli/scope}/resolve.ts +11 -9
  168. package/src/cli/terminal/attach.ts +3 -6
  169. package/src/cli/terminal/create.ts +10 -9
  170. package/src/cli/terminal/destroy.ts +13 -11
  171. package/src/cli/terminal/list.ts +10 -9
  172. package/src/cli/terminal/read.test-utils.ts +48 -0
  173. package/src/cli/terminal/read.test.ts +35 -0
  174. package/src/cli/terminal/read.ts +3 -6
  175. package/src/cli/terminal/scope.ts +10 -5
  176. package/src/cli/terminal/shared.ts +1 -1
  177. package/src/cli/terminal/stream.ts +3 -6
  178. package/src/cli/terminal/wait.test.ts +5 -3
  179. package/src/cli/terminal/wait.ts +10 -9
  180. package/src/cli/terminal/write.test.ts +34 -0
  181. package/src/cli/terminal/write.ts +10 -9
  182. package/src/cli/threads/approve.ts +11 -7
  183. package/src/cli/threads/archive.ts +14 -9
  184. package/src/cli/threads/callback.ts +6 -4
  185. package/src/cli/threads/delete.ts +17 -11
  186. package/src/cli/threads/interrupt.ts +14 -9
  187. package/src/cli/threads/list.test.ts +5 -3
  188. package/src/cli/threads/list.ts +10 -10
  189. package/src/cli/threads/messages.ts +11 -7
  190. package/src/cli/threads/respond.ts +11 -7
  191. package/src/cli/threads/send.ts +19 -9
  192. package/src/cli/threads/show.ts +11 -7
  193. package/src/cli/threads/start.ts +18 -13
  194. package/src/cli/threads/unarchive.ts +11 -7
  195. package/src/cli/threads/update.ts +14 -9
  196. package/src/cli/threads/wait.ts +11 -7
  197. package/src/cli/wait-events.ts +1 -1
  198. package/src/config/config.ts +260 -0
  199. package/src/config/credential/cipher-node.ts +40 -0
  200. package/src/config/credential/cipher-web.ts +82 -0
  201. package/src/config/credential/cipher.ts +39 -0
  202. package/src/config/credential/env.ts +13 -0
  203. package/src/config/credential/error.ts +9 -0
  204. package/src/config/credential/index.ts +6 -0
  205. package/src/config/credential/service.test-utils.ts +25 -0
  206. package/src/config/credential/service.test.ts +116 -0
  207. package/src/config/credential/service.ts +205 -0
  208. package/src/config/env/env.test-utils.ts +14 -0
  209. package/src/config/env/env.ts +81 -0
  210. package/src/config/env/index.ts +2 -0
  211. package/src/{layout/base-dir.ts → config/env/layout.ts} +0 -9
  212. package/src/config/environment-name/index.ts +7 -0
  213. package/src/config/environment-name/name.test.ts +66 -0
  214. package/src/config/environment-name/name.ts +49 -0
  215. package/src/config/error.ts +6 -8
  216. package/src/config/index.ts +16 -5
  217. package/src/config/keystore/error.ts +9 -0
  218. package/src/config/keystore/file.ts +96 -0
  219. package/src/config/keystore/index.ts +4 -0
  220. package/src/config/keystore/keyring-node.test.ts +12 -0
  221. package/src/config/keystore/keyring-node.ts +100 -0
  222. package/src/config/keystore/service.test-utils.ts +15 -0
  223. package/src/config/keystore/service.test.ts +18 -0
  224. package/src/config/keystore/service.ts +29 -0
  225. package/src/config/layer.test-utils.ts +45 -0
  226. package/src/config/layer.test.ts +209 -0
  227. package/src/config/paths/index.ts +1 -0
  228. package/src/config/paths/paths.ts +36 -0
  229. package/src/config/persist/file-mode.ts +21 -0
  230. package/src/config/persist/migration.test.ts +71 -0
  231. package/src/config/persist/migration.ts +82 -0
  232. package/src/config/persist/persist.test.ts +113 -0
  233. package/src/config/persist/persist.ts +65 -0
  234. package/src/config/persist/schema.ts +37 -0
  235. package/src/config/platform.test-utils.ts +20 -0
  236. package/src/config/resolve/resolve.test-utils.ts +20 -0
  237. package/src/config/resolve/resolve.test.ts +137 -0
  238. package/src/config/resolve/resolve.ts +104 -0
  239. package/src/config/selection/index.ts +1 -0
  240. package/src/config/selection/resolve.ts +14 -0
  241. package/src/config/selection/service.ts +29 -0
  242. package/src/config/temp-home.test-utils.ts +7 -0
  243. package/src/config/types.ts +49 -0
  244. package/src/config/url/error.ts +8 -0
  245. package/src/config/url/index.ts +7 -0
  246. package/src/config/url/url.test.ts +31 -0
  247. package/src/connection/error.ts +4 -1
  248. package/src/connection/index.ts +0 -1
  249. package/src/connection/layer.ts +5 -2
  250. package/src/connection/prepared.ts +83 -0
  251. package/src/contracts/index.ts +1 -1
  252. package/src/domain/error.ts +20 -1
  253. package/src/domain/helpers.test.ts +1 -1
  254. package/src/domain/helpers.ts +1 -1
  255. package/src/domain/model-config.ts +1 -1
  256. package/src/domain/thread-activities.test.ts +1 -1
  257. package/src/domain/thread-activities.ts +1 -1
  258. package/src/domain/thread-lifecycle.test.ts +1 -1
  259. package/src/domain/thread-lifecycle.ts +1 -1
  260. package/src/effect.test-utils.ts +25 -0
  261. package/src/index.ts +1 -1
  262. package/src/{connection/node.ts → node/connection.ts} +1 -1
  263. package/src/node/index.ts +1 -2
  264. package/src/orchestration/index.ts +0 -1
  265. package/src/orchestration/layer.ts +3 -2
  266. package/src/orchestration/service.ts +1 -1
  267. package/src/rpc/error.ts +10 -17
  268. package/src/rpc/layer.ts +17 -51
  269. package/src/rpc/operation.ts +16 -2
  270. package/src/rpc/service.ts +2 -1
  271. package/src/rpc/session.ts +168 -0
  272. package/src/rpc/ws-group.ts +13 -27
  273. package/src/runtime/index.ts +2 -1
  274. package/src/runtime/layer.test-utils.ts +32 -0
  275. package/src/runtime/layer.test.ts +66 -0
  276. package/src/runtime/layer.ts +21 -12
  277. package/src/t3tools/index.ts +1 -1
  278. package/src/types/marked-terminal.d.ts +11 -0
  279. package/dist/layout.js +0 -2
  280. package/dist/scope.js +0 -2
  281. package/dist/src/cli/output-format.d.ts +0 -11
  282. package/dist/src/config/layer.d.ts +0 -22
  283. package/dist/src/config/service.d.ts +0 -22
  284. package/dist/src/environment/layer.d.ts +0 -3
  285. package/dist/src/environment/service.d.ts +0 -12
  286. package/dist/src/layout/index.d.ts +0 -1
  287. package/dist/upstream-t3code/packages/contracts/src/auth.d.ts +0 -441
  288. package/dist/upstream-t3code/packages/contracts/src/baseSchemas.d.ts +0 -38
  289. package/dist/upstream-t3code/packages/contracts/src/desktopBootstrap.d.ts +0 -14
  290. package/dist/upstream-t3code/packages/contracts/src/editor.d.ts +0 -124
  291. package/dist/upstream-t3code/packages/contracts/src/environment.d.ts +0 -64
  292. package/dist/upstream-t3code/packages/contracts/src/environmentHttp.d.ts +0 -762
  293. package/dist/upstream-t3code/packages/contracts/src/filesystem.d.ts +0 -26
  294. package/dist/upstream-t3code/packages/contracts/src/git.d.ts +0 -500
  295. package/dist/upstream-t3code/packages/contracts/src/index.d.ts +0 -25
  296. package/dist/upstream-t3code/packages/contracts/src/ipc.d.ts +0 -490
  297. package/dist/upstream-t3code/packages/contracts/src/keybindings.d.ts +0 -133
  298. package/dist/upstream-t3code/packages/contracts/src/model.d.ts +0 -112
  299. package/dist/upstream-t3code/packages/contracts/src/orchestration.d.ts +0 -6682
  300. package/dist/upstream-t3code/packages/contracts/src/project.d.ts +0 -45
  301. package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +0 -116
  302. package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +0 -99
  303. package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +0 -4276
  304. package/dist/upstream-t3code/packages/contracts/src/relay.d.ts +0 -1262
  305. package/dist/upstream-t3code/packages/contracts/src/relayClient.d.ts +0 -48
  306. package/dist/upstream-t3code/packages/contracts/src/remoteAccess.d.ts +0 -45
  307. package/dist/upstream-t3code/packages/contracts/src/review.d.ts +0 -37
  308. package/dist/upstream-t3code/packages/contracts/src/rpc.d.ts +0 -8218
  309. package/dist/upstream-t3code/packages/contracts/src/server.d.ts +0 -2291
  310. package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +0 -271
  311. package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +0 -177
  312. package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +0 -330
  313. package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +0 -148
  314. package/src/cli/auth-format.ts +0 -45
  315. package/src/cli/confirm.ts +0 -31
  316. package/src/cli/model-format.ts +0 -18
  317. package/src/cli/output-format.ts +0 -45
  318. package/src/cli/project-format.ts +0 -18
  319. package/src/cli/terminal/commands.test.ts +0 -101
  320. package/src/cli/terminal-format.ts +0 -167
  321. package/src/cli/thread-format.ts +0 -128
  322. package/src/config/layer.ts +0 -105
  323. package/src/config/service.ts +0 -26
  324. package/src/environment/layer.ts +0 -12
  325. package/src/environment/service.ts +0 -13
  326. package/src/layout/index.ts +0 -1
  327. /package/dist/src/{scope → cli/scope}/index.d.ts +0 -0
  328. /package/dist/src/config/{url.d.ts → url/url.d.ts} +0 -0
  329. /package/src/{scope → cli/scope}/index.ts +0 -0
  330. /package/src/config/{url.ts → url/url.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as Effect from "effect/Effect";
2
2
  import * as Layer from "effect/Layer";
3
3
  import * as Stream from "effect/Stream";
4
- import { type OrchestrationThreadStreamItem } from "#t3tools/contracts";
4
+ import { type OrchestrationThreadStreamItem } from "@t3tools/contracts";
5
5
  import { RpcError } from "../rpc/error.ts";
6
6
  import { T3RpcOperations } from "../rpc/operation.ts";
7
7
  import { T3Orchestration } from "./service.ts";
@@ -12,7 +12,6 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
12
12
  readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
13
13
  readonly title: string;
14
14
  readonly workspaceRoot: string;
15
- readonly createdAt: string;
16
15
  readonly createWorkspaceRootIfMissing?: boolean | undefined;
17
16
  readonly defaultModelSelection?: {
18
17
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
@@ -22,6 +21,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
22
21
  readonly value: string | boolean;
23
22
  }[];
24
23
  } | null | undefined;
24
+ readonly createdAt: string;
25
25
  } | {
26
26
  readonly type: "project.meta.update";
27
27
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
@@ -40,8 +40,10 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
40
40
  readonly id: string;
41
41
  readonly name: string;
42
42
  readonly command: string;
43
- readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
43
+ readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
44
44
  readonly runOnWorktreeCreate: boolean;
45
+ readonly previewUrl?: string | undefined;
46
+ readonly autoOpenPreview?: boolean | undefined;
45
47
  }[] | undefined;
46
48
  } | {
47
49
  readonly type: "project.delete";
@@ -62,7 +64,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
62
64
  readonly value: string | boolean;
63
65
  }[];
64
66
  };
65
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
67
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
66
68
  readonly interactionMode: "default" | "plan";
67
69
  readonly branch: string | null;
68
70
  readonly worktreePath: string | null;
@@ -79,6 +81,25 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
79
81
  readonly type: "thread.unarchive";
80
82
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
81
83
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
84
+ } | {
85
+ readonly type: "thread.settle";
86
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
87
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
88
+ } | {
89
+ readonly type: "thread.unsettle";
90
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
91
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
92
+ readonly reason: "user";
93
+ } | {
94
+ readonly type: "thread.snooze";
95
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
96
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
97
+ readonly snoozedUntil: string;
98
+ } | {
99
+ readonly type: "thread.unsnooze";
100
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
101
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
102
+ readonly reason: "user";
82
103
  } | {
83
104
  readonly type: "thread.meta.update";
84
105
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
@@ -93,12 +114,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
93
114
  }[];
94
115
  } | undefined;
95
116
  readonly branch?: string | null | undefined;
117
+ readonly expectedBranch?: string | null | undefined;
96
118
  readonly worktreePath?: string | null | undefined;
97
119
  } | {
98
120
  readonly type: "thread.runtime-mode.set";
99
121
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
100
122
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
101
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
123
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
102
124
  readonly createdAt: string;
103
125
  } | {
104
126
  readonly type: "thread.interaction-mode.set";
@@ -110,14 +132,14 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
110
132
  readonly type: "thread.turn.interrupt";
111
133
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
112
134
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
113
- readonly createdAt: string;
114
135
  readonly turnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
136
+ readonly createdAt: string;
115
137
  } | {
116
138
  readonly type: "thread.approval.respond";
117
139
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
118
140
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
119
141
  readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
120
- readonly decision: "accept" | "acceptForSession" | "decline" | "cancel";
142
+ readonly decision: "accept" | "acceptForSession" | "cancel" | "decline";
121
143
  readonly createdAt: string;
122
144
  } | {
123
145
  readonly type: "thread.user-input.respond";
@@ -155,9 +177,6 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
155
177
  readonly dataUrl: string;
156
178
  }[];
157
179
  };
158
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
159
- readonly interactionMode: "default" | "plan";
160
- readonly createdAt: string;
161
180
  readonly modelSelection?: {
162
181
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
163
182
  readonly model: string;
@@ -167,6 +186,8 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
167
186
  }[];
168
187
  } | undefined;
169
188
  readonly titleSeed?: string | undefined;
189
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
190
+ readonly interactionMode: "default" | "plan";
170
191
  readonly bootstrap?: {
171
192
  readonly createThread?: {
172
193
  readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
@@ -179,7 +200,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
179
200
  readonly value: string | boolean;
180
201
  }[];
181
202
  };
182
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
203
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
183
204
  readonly interactionMode: "default" | "plan";
184
205
  readonly branch: string | null;
185
206
  readonly worktreePath: string | null;
@@ -189,6 +210,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
189
210
  readonly projectCwd: string;
190
211
  readonly baseBranch: string;
191
212
  readonly branch?: string | undefined;
213
+ readonly startFromOrigin?: boolean | undefined;
192
214
  } | undefined;
193
215
  readonly runSetupScript?: boolean | undefined;
194
216
  } | undefined;
@@ -196,123 +218,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
196
218
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
197
219
  readonly planId: string;
198
220
  } | undefined;
221
+ readonly createdAt: string;
199
222
  }) => Effect.Effect<{
200
223
  readonly sequence: number;
201
224
  }, RpcError, never>;
202
225
  getServerConfig: () => Effect.Effect<{
203
226
  readonly environment: {
204
- readonly environmentId: string & import("effect/Brand").Brand<"EnvironmentId">;
205
- readonly label: string;
206
- readonly platform: {
207
- readonly os: "unknown" | "darwin" | "linux" | "windows";
208
- readonly arch: "arm64" | "x64" | "other";
209
- };
210
- readonly serverVersion: string;
211
227
  readonly capabilities: {
212
- readonly repositoryIdentity: boolean;
228
+ readonly connectionProbe: boolean;
213
229
  };
214
230
  };
215
- readonly auth: {
216
- readonly policy: "desktop-managed-local" | "loopback-browser" | "remote-reachable" | "unsafe-no-auth";
217
- readonly bootstrapMethods: readonly ("desktop-bootstrap" | "one-time-token")[];
218
- readonly sessionMethods: readonly ("browser-session-cookie" | "bearer-access-token" | "dpop-access-token")[];
219
- readonly sessionCookieName: string;
220
- };
221
- readonly cwd: string;
222
- readonly keybindingsConfigPath: string;
223
- readonly keybindings: readonly {
224
- 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`;
225
- readonly shortcut: {
226
- readonly key: string;
227
- readonly metaKey: boolean;
228
- readonly ctrlKey: boolean;
229
- readonly shiftKey: boolean;
230
- readonly altKey: boolean;
231
- readonly modKey: boolean;
232
- };
233
- readonly whenAst?: {
234
- readonly type: "identifier";
235
- readonly name: string;
236
- } | {
237
- readonly type: "not";
238
- readonly node: import("#t3tools/contracts").KeybindingWhenNode;
239
- } | {
240
- readonly type: "and";
241
- readonly left: import("#t3tools/contracts").KeybindingWhenNode;
242
- readonly right: import("#t3tools/contracts").KeybindingWhenNode;
243
- } | {
244
- readonly type: "or";
245
- readonly left: import("#t3tools/contracts").KeybindingWhenNode;
246
- readonly right: import("#t3tools/contracts").KeybindingWhenNode;
247
- } | undefined;
248
- }[];
249
- readonly issues: readonly ({
250
- readonly kind: "keybindings.malformed-config";
251
- readonly message: string;
252
- } | {
253
- readonly kind: "keybindings.invalid-entry";
254
- readonly message: string;
255
- readonly index: number;
256
- })[];
257
231
  readonly providers: readonly {
258
232
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
259
233
  readonly driver: string & import("effect/Brand").Brand<"ProviderDriverKind">;
260
- readonly enabled: boolean;
261
- readonly installed: boolean;
262
- readonly version: string | null;
263
- readonly status: "error" | "ready" | "warning" | "disabled";
264
- readonly auth: {
265
- readonly status: "authenticated" | "unknown" | "unauthenticated";
266
- readonly type?: string | undefined;
267
- readonly label?: string | undefined;
268
- readonly email?: string | undefined;
269
- };
270
- readonly checkedAt: string;
271
- readonly models: readonly {
272
- readonly slug: string;
273
- readonly name: string;
274
- readonly isCustom: boolean;
275
- readonly capabilities: {
276
- readonly optionDescriptors?: readonly ({
277
- readonly type: "select";
278
- readonly options: readonly {
279
- readonly id: string;
280
- readonly label: string;
281
- readonly description?: string | undefined;
282
- readonly isDefault?: boolean | undefined;
283
- }[];
284
- readonly id: string;
285
- readonly label: string;
286
- readonly currentValue?: string | undefined;
287
- readonly promptInjectedValues?: readonly string[] | undefined;
288
- readonly description?: string | undefined;
289
- } | {
290
- readonly type: "boolean";
291
- readonly id: string;
292
- readonly label: string;
293
- readonly currentValue?: boolean | undefined;
294
- readonly description?: string | undefined;
295
- })[] | undefined;
296
- } | null;
297
- readonly shortName?: string | undefined;
298
- readonly subProvider?: string | undefined;
299
- }[];
300
- readonly slashCommands: readonly {
301
- readonly name: string;
302
- readonly description?: string | undefined;
303
- readonly input?: {
304
- readonly hint: string;
305
- } | undefined;
306
- }[];
307
- readonly skills: readonly {
308
- readonly name: string;
309
- readonly path: string;
310
- readonly enabled: boolean;
311
- readonly description?: string | undefined;
312
- readonly scope?: string | undefined;
313
- readonly displayName?: string | undefined;
314
- readonly shortDescription?: string | undefined;
315
- }[];
316
234
  readonly displayName?: string | undefined;
317
235
  readonly accentColor?: string | undefined;
318
236
  readonly badgeLabel?: string | undefined;
@@ -320,118 +238,33 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
320
238
  readonly groupKey: string;
321
239
  } | undefined;
322
240
  readonly showInteractionModeToggle?: boolean | undefined;
323
- readonly message?: string | undefined;
324
- readonly availability?: "available" | "unavailable" | undefined;
325
- readonly unavailableReason?: string | undefined;
326
- readonly versionAdvisory?: {
327
- readonly status: "unknown" | "current" | "behind_latest";
328
- readonly currentVersion: string | null;
329
- readonly latestVersion: string | null;
330
- readonly updateCommand: string | null;
331
- readonly canUpdate: boolean;
332
- readonly checkedAt: string | null;
333
- readonly message: string | null;
334
- };
335
- readonly updateState?: {
336
- readonly status: "idle" | "running" | "failed" | "queued" | "succeeded" | "unchanged";
337
- readonly startedAt: string | null;
338
- readonly finishedAt: string | null;
339
- readonly message: string | null;
340
- readonly output: string | null;
341
- };
342
- }[];
343
- 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")[];
344
- readonly observability: {
345
- readonly logsDirectoryPath: string;
346
- readonly localTracingEnabled: boolean;
347
- readonly otlpTracesEnabled: boolean;
348
- readonly otlpMetricsEnabled: boolean;
349
- readonly otlpTracesUrl?: string | undefined;
350
- readonly otlpMetricsUrl?: string | undefined;
351
- };
352
- readonly settings: {
353
- readonly enableAssistantStreaming: boolean;
354
- readonly automaticGitFetchInterval: import("effect/Duration").Duration;
355
- readonly defaultThreadEnvMode: "local" | "worktree";
356
- readonly addProjectBaseDirectory: string;
357
- readonly textGenerationModelSelection: {
358
- readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
359
- readonly model: string;
360
- readonly options?: readonly {
361
- readonly id: string;
362
- readonly value: string | boolean;
363
- }[];
364
- };
365
- readonly providers: {
366
- readonly codex: {
367
- readonly enabled: boolean;
368
- readonly binaryPath: string;
369
- readonly homePath: string;
370
- readonly shadowHomePath: string;
371
- readonly customModels: readonly string[];
372
- };
373
- readonly claudeAgent: {
374
- readonly enabled: boolean;
375
- readonly binaryPath: string;
376
- readonly homePath: string;
377
- readonly customModels: readonly string[];
378
- readonly launchArgs: string;
379
- };
380
- readonly cursor: {
381
- readonly enabled: boolean;
382
- readonly binaryPath: string;
383
- readonly apiEndpoint: string;
384
- readonly customModels: readonly string[];
385
- };
386
- readonly opencode: {
387
- readonly enabled: boolean;
388
- readonly binaryPath: string;
389
- readonly serverUrl: string;
390
- readonly serverPassword: string;
391
- readonly customModels: readonly string[];
392
- };
393
- };
394
- readonly providerInstances: {
395
- readonly [x: string & import("effect/Brand").Brand<"ProviderInstanceId">]: {
396
- readonly driver: string & import("effect/Brand").Brand<"ProviderDriverKind">;
397
- readonly displayName?: string | undefined;
398
- readonly accentColor?: string | undefined;
399
- readonly environment?: readonly {
400
- readonly name: string;
401
- readonly value: string;
402
- readonly sensitive: boolean;
403
- readonly valueRedacted?: boolean;
404
- }[];
405
- readonly enabled?: boolean;
406
- readonly config?: unknown;
407
- };
408
- };
409
- readonly observability: {
410
- readonly otlpTracesUrl: string;
411
- readonly otlpMetricsUrl: string;
412
- };
413
- };
414
- } | {
415
- readonly providers: readonly {
416
- readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
417
- readonly driver: string & import("effect/Brand").Brand<"ProviderDriverKind">;
241
+ readonly requiresNewThreadForModelChange?: boolean | undefined;
418
242
  readonly enabled: boolean;
419
243
  readonly installed: boolean;
420
244
  readonly version: string | null;
421
- readonly status: "error" | "ready" | "warning" | "disabled";
245
+ readonly status: "disabled" | "error" | "ready" | "warning";
422
246
  readonly auth: {
423
- readonly status: "authenticated" | "unknown" | "unauthenticated";
247
+ readonly status: "authenticated" | "unauthenticated" | "unknown";
424
248
  readonly type?: string | undefined;
425
249
  readonly label?: string | undefined;
426
250
  readonly email?: string | undefined;
427
251
  };
428
252
  readonly checkedAt: string;
253
+ readonly message?: string | undefined;
254
+ readonly availability?: "available" | "unavailable" | undefined;
255
+ readonly unavailableReason?: string | undefined;
429
256
  readonly models: readonly {
430
257
  readonly slug: string;
431
258
  readonly name: string;
259
+ readonly shortName?: string | undefined;
260
+ readonly subProvider?: string | undefined;
432
261
  readonly isCustom: boolean;
262
+ readonly isDefault?: boolean | undefined;
433
263
  readonly capabilities: {
434
264
  readonly optionDescriptors?: readonly ({
265
+ readonly id: string;
266
+ readonly label: string;
267
+ readonly description?: string | undefined;
435
268
  readonly type: "select";
436
269
  readonly options: readonly {
437
270
  readonly id: string;
@@ -439,21 +272,16 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
439
272
  readonly description?: string | undefined;
440
273
  readonly isDefault?: boolean | undefined;
441
274
  }[];
442
- readonly id: string;
443
- readonly label: string;
444
275
  readonly currentValue?: string | undefined;
445
276
  readonly promptInjectedValues?: readonly string[] | undefined;
446
- readonly description?: string | undefined;
447
277
  } | {
448
- readonly type: "boolean";
449
278
  readonly id: string;
450
279
  readonly label: string;
451
- readonly currentValue?: boolean | undefined;
452
280
  readonly description?: string | undefined;
281
+ readonly type: "boolean";
282
+ readonly currentValue?: boolean | undefined;
453
283
  })[] | undefined;
454
284
  } | null;
455
- readonly shortName?: string | undefined;
456
- readonly subProvider?: string | undefined;
457
285
  }[];
458
286
  readonly slashCommands: readonly {
459
287
  readonly name: string;
@@ -464,25 +292,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
464
292
  }[];
465
293
  readonly skills: readonly {
466
294
  readonly name: string;
467
- readonly path: string;
468
- readonly enabled: boolean;
469
295
  readonly description?: string | undefined;
296
+ readonly path: string;
470
297
  readonly scope?: string | undefined;
298
+ readonly enabled: boolean;
471
299
  readonly displayName?: string | undefined;
472
300
  readonly shortDescription?: string | undefined;
473
301
  }[];
474
- readonly displayName?: string | undefined;
475
- readonly accentColor?: string | undefined;
476
- readonly badgeLabel?: string | undefined;
477
- readonly continuation?: {
478
- readonly groupKey: string;
479
- } | undefined;
480
- readonly showInteractionModeToggle?: boolean | undefined;
481
- readonly message?: string | undefined;
482
- readonly availability?: "available" | "unavailable" | undefined;
483
- readonly unavailableReason?: string | undefined;
484
302
  readonly versionAdvisory?: {
485
- readonly status: "unknown" | "current" | "behind_latest";
303
+ readonly status: "behind_latest" | "current" | "unknown";
486
304
  readonly currentVersion: string | null;
487
305
  readonly latestVersion: string | null;
488
306
  readonly updateCommand: string | null;
@@ -491,7 +309,7 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
491
309
  readonly message: string | null;
492
310
  };
493
311
  readonly updateState?: {
494
- readonly status: "idle" | "running" | "failed" | "queued" | "succeeded" | "unchanged";
312
+ readonly status: "failed" | "idle" | "queued" | "running" | "succeeded" | "unchanged";
495
313
  readonly startedAt: string | null;
496
314
  readonly finishedAt: string | null;
497
315
  readonly message: string | null;
@@ -505,6 +323,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
505
323
  readonly id: string & import("effect/Brand").Brand<"ProjectId">;
506
324
  readonly title: string;
507
325
  readonly workspaceRoot: string;
326
+ readonly repositoryIdentity?: {
327
+ readonly canonicalKey: string;
328
+ readonly locator: {
329
+ readonly source: "git-remote";
330
+ readonly remoteName: string;
331
+ readonly remoteUrl: string;
332
+ };
333
+ readonly rootPath?: string;
334
+ readonly displayName?: string;
335
+ readonly provider?: string;
336
+ readonly owner?: string;
337
+ readonly name?: string;
338
+ } | null | undefined;
508
339
  readonly defaultModelSelection: {
509
340
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
510
341
  readonly model: string;
@@ -517,24 +348,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
517
348
  readonly id: string;
518
349
  readonly name: string;
519
350
  readonly command: string;
520
- readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
351
+ readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
521
352
  readonly runOnWorktreeCreate: boolean;
353
+ readonly previewUrl?: string | undefined;
354
+ readonly autoOpenPreview?: boolean | undefined;
522
355
  }[];
523
356
  readonly createdAt: string;
524
357
  readonly updatedAt: string;
525
- readonly repositoryIdentity?: {
526
- readonly canonicalKey: string;
527
- readonly locator: {
528
- readonly source: "git-remote";
529
- readonly remoteName: string;
530
- readonly remoteUrl: string;
531
- };
532
- readonly rootPath?: string;
533
- readonly displayName?: string;
534
- readonly provider?: string;
535
- readonly owner?: string;
536
- readonly name?: string;
537
- } | null | undefined;
538
358
  }[];
539
359
  readonly threads: readonly {
540
360
  readonly id: string & import("effect/Brand").Brand<"ThreadId">;
@@ -548,13 +368,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
548
368
  readonly value: string | boolean;
549
369
  }[];
550
370
  };
551
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
371
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
552
372
  readonly interactionMode: "default" | "plan";
553
373
  readonly branch: string | null;
554
374
  readonly worktreePath: string | null;
555
375
  readonly latestTurn: {
556
376
  readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
557
- readonly state: "error" | "running" | "interrupted" | "completed";
377
+ readonly state: "completed" | "error" | "interrupted" | "running";
558
378
  readonly requestedAt: string;
559
379
  readonly startedAt: string | null;
560
380
  readonly completedAt: string | null;
@@ -567,15 +387,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
567
387
  readonly createdAt: string;
568
388
  readonly updatedAt: string;
569
389
  readonly archivedAt: string | null;
390
+ readonly settledOverride: "active" | "settled" | null;
391
+ readonly settledAt: string | null;
392
+ readonly snoozedUntil?: string | null | undefined;
393
+ readonly snoozedAt?: string | null | undefined;
570
394
  readonly session: {
571
395
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
572
- readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
396
+ readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
573
397
  readonly providerName: string | null;
574
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
398
+ readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
399
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
575
400
  readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
576
401
  readonly lastError: string | null;
577
402
  readonly updatedAt: string;
578
- readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
579
403
  } | null;
580
404
  readonly latestUserMessageAt: string | null;
581
405
  readonly hasPendingApprovals: boolean;
@@ -590,6 +414,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
590
414
  readonly id: string & import("effect/Brand").Brand<"ProjectId">;
591
415
  readonly title: string;
592
416
  readonly workspaceRoot: string;
417
+ readonly repositoryIdentity?: {
418
+ readonly canonicalKey: string;
419
+ readonly locator: {
420
+ readonly source: "git-remote";
421
+ readonly remoteName: string;
422
+ readonly remoteUrl: string;
423
+ };
424
+ readonly rootPath?: string;
425
+ readonly displayName?: string;
426
+ readonly provider?: string;
427
+ readonly owner?: string;
428
+ readonly name?: string;
429
+ } | null | undefined;
593
430
  readonly defaultModelSelection: {
594
431
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
595
432
  readonly model: string;
@@ -602,24 +439,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
602
439
  readonly id: string;
603
440
  readonly name: string;
604
441
  readonly command: string;
605
- readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
442
+ readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
606
443
  readonly runOnWorktreeCreate: boolean;
444
+ readonly previewUrl?: string | undefined;
445
+ readonly autoOpenPreview?: boolean | undefined;
607
446
  }[];
608
447
  readonly createdAt: string;
609
448
  readonly updatedAt: string;
610
- readonly repositoryIdentity?: {
611
- readonly canonicalKey: string;
612
- readonly locator: {
613
- readonly source: "git-remote";
614
- readonly remoteName: string;
615
- readonly remoteUrl: string;
616
- };
617
- readonly rootPath?: string;
618
- readonly displayName?: string;
619
- readonly provider?: string;
620
- readonly owner?: string;
621
- readonly name?: string;
622
- } | null | undefined;
623
449
  }[];
624
450
  readonly threads: readonly {
625
451
  readonly id: string & import("effect/Brand").Brand<"ThreadId">;
@@ -633,13 +459,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
633
459
  readonly value: string | boolean;
634
460
  }[];
635
461
  };
636
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
462
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
637
463
  readonly interactionMode: "default" | "plan";
638
464
  readonly branch: string | null;
639
465
  readonly worktreePath: string | null;
640
466
  readonly latestTurn: {
641
467
  readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
642
- readonly state: "error" | "running" | "interrupted" | "completed";
468
+ readonly state: "completed" | "error" | "interrupted" | "running";
643
469
  readonly requestedAt: string;
644
470
  readonly startedAt: string | null;
645
471
  readonly completedAt: string | null;
@@ -652,15 +478,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
652
478
  readonly createdAt: string;
653
479
  readonly updatedAt: string;
654
480
  readonly archivedAt: string | null;
481
+ readonly settledOverride: "active" | "settled" | null;
482
+ readonly settledAt: string | null;
483
+ readonly snoozedUntil?: string | null | undefined;
484
+ readonly snoozedAt?: string | null | undefined;
655
485
  readonly session: {
656
486
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
657
- readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
487
+ readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
658
488
  readonly providerName: string | null;
659
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
489
+ readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
490
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
660
491
  readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
661
492
  readonly lastError: string | null;
662
493
  readonly updatedAt: string;
663
- readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
664
494
  } | null;
665
495
  readonly latestUserMessageAt: string | null;
666
496
  readonly hasPendingApprovals: boolean;
@@ -681,13 +511,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
681
511
  readonly value: string | boolean;
682
512
  }[];
683
513
  };
684
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
514
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
685
515
  readonly interactionMode: "default" | "plan";
686
516
  readonly branch: string | null;
687
517
  readonly worktreePath: string | null;
688
518
  readonly latestTurn: {
689
519
  readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
690
- readonly state: "error" | "running" | "interrupted" | "completed";
520
+ readonly state: "completed" | "error" | "interrupted" | "running";
691
521
  readonly requestedAt: string;
692
522
  readonly startedAt: string | null;
693
523
  readonly completedAt: string | null;
@@ -700,15 +530,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
700
530
  readonly createdAt: string;
701
531
  readonly updatedAt: string;
702
532
  readonly archivedAt: string | null;
533
+ readonly settledOverride: "active" | "settled" | null;
534
+ readonly settledAt: string | null;
535
+ readonly snoozedUntil?: string | null | undefined;
536
+ readonly snoozedAt?: string | null | undefined;
703
537
  readonly deletedAt: string | null;
704
538
  readonly messages: readonly {
705
539
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
706
- readonly role: "user" | "assistant" | "system";
540
+ readonly role: "assistant" | "system" | "user";
707
541
  readonly text: string;
708
- readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
709
- readonly streaming: boolean;
710
- readonly createdAt: string;
711
- readonly updatedAt: string;
712
542
  readonly attachments?: readonly {
713
543
  readonly type: "image";
714
544
  readonly id: string;
@@ -716,6 +546,10 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
716
546
  readonly mimeType: string;
717
547
  readonly sizeBytes: number;
718
548
  }[] | undefined;
549
+ readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
550
+ readonly streaming: boolean;
551
+ readonly createdAt: string;
552
+ readonly updatedAt: string;
719
553
  }[];
720
554
  readonly proposedPlans: readonly {
721
555
  readonly id: string;
@@ -728,19 +562,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
728
562
  }[];
729
563
  readonly activities: readonly {
730
564
  readonly id: string & import("effect/Brand").Brand<"EventId">;
731
- readonly tone: "error" | "info" | "tool" | "approval";
565
+ readonly tone: "approval" | "error" | "info" | "tool";
732
566
  readonly kind: string;
733
567
  readonly summary: string;
734
568
  readonly payload: unknown;
735
569
  readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
736
- readonly createdAt: string;
737
570
  readonly sequence?: number | undefined;
571
+ readonly createdAt: string;
738
572
  }[];
739
573
  readonly checkpoints: readonly {
740
574
  readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
741
575
  readonly checkpointTurnCount: number;
742
576
  readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
743
- readonly status: "error" | "ready" | "missing";
577
+ readonly status: "error" | "missing" | "ready";
744
578
  readonly files: readonly {
745
579
  readonly path: string;
746
580
  readonly kind: string;
@@ -752,13 +586,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
752
586
  }[];
753
587
  readonly session: {
754
588
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
755
- readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
589
+ readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
756
590
  readonly providerName: string | null;
757
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
591
+ readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
592
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
758
593
  readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
759
594
  readonly lastError: string | null;
760
595
  readonly updatedAt: string;
761
- readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
762
596
  } | null;
763
597
  }, RpcError, never>;
764
598
  watchShellSequence: () => Stream.Stream<number, import("./service.ts").OrchestrationError, import("effect/Scope").Scope>;
@@ -776,13 +610,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
776
610
  readonly value: string | boolean;
777
611
  }[];
778
612
  };
779
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
613
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
780
614
  readonly interactionMode: "default" | "plan";
781
615
  readonly branch: string | null;
782
616
  readonly worktreePath: string | null;
783
617
  readonly latestTurn: {
784
618
  readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
785
- readonly state: "error" | "running" | "interrupted" | "completed";
619
+ readonly state: "completed" | "error" | "interrupted" | "running";
786
620
  readonly requestedAt: string;
787
621
  readonly startedAt: string | null;
788
622
  readonly completedAt: string | null;
@@ -795,15 +629,15 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
795
629
  readonly createdAt: string;
796
630
  readonly updatedAt: string;
797
631
  readonly archivedAt: string | null;
632
+ readonly settledOverride: "active" | "settled" | null;
633
+ readonly settledAt: string | null;
634
+ readonly snoozedUntil?: string | null | undefined;
635
+ readonly snoozedAt?: string | null | undefined;
798
636
  readonly deletedAt: string | null;
799
637
  readonly messages: readonly {
800
638
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
801
- readonly role: "user" | "assistant" | "system";
639
+ readonly role: "assistant" | "system" | "user";
802
640
  readonly text: string;
803
- readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
804
- readonly streaming: boolean;
805
- readonly createdAt: string;
806
- readonly updatedAt: string;
807
641
  readonly attachments?: readonly {
808
642
  readonly type: "image";
809
643
  readonly id: string;
@@ -811,6 +645,10 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
811
645
  readonly mimeType: string;
812
646
  readonly sizeBytes: number;
813
647
  }[] | undefined;
648
+ readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
649
+ readonly streaming: boolean;
650
+ readonly createdAt: string;
651
+ readonly updatedAt: string;
814
652
  }[];
815
653
  readonly proposedPlans: readonly {
816
654
  readonly id: string;
@@ -823,19 +661,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
823
661
  }[];
824
662
  readonly activities: readonly {
825
663
  readonly id: string & import("effect/Brand").Brand<"EventId">;
826
- readonly tone: "error" | "info" | "tool" | "approval";
664
+ readonly tone: "approval" | "error" | "info" | "tool";
827
665
  readonly kind: string;
828
666
  readonly summary: string;
829
667
  readonly payload: unknown;
830
668
  readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
831
- readonly createdAt: string;
832
669
  readonly sequence?: number | undefined;
670
+ readonly createdAt: string;
833
671
  }[];
834
672
  readonly checkpoints: readonly {
835
673
  readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
836
674
  readonly checkpointTurnCount: number;
837
675
  readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
838
- readonly status: "error" | "ready" | "missing";
676
+ readonly status: "error" | "missing" | "ready";
839
677
  readonly files: readonly {
840
678
  readonly path: string;
841
679
  readonly kind: string;
@@ -847,21 +685,49 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
847
685
  }[];
848
686
  readonly session: {
849
687
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
850
- readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
688
+ readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
851
689
  readonly providerName: string | null;
852
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
690
+ readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
691
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
853
692
  readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
854
693
  readonly lastError: string | null;
855
694
  readonly updatedAt: string;
856
- readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
857
695
  } | null;
858
696
  };
859
697
  events: Stream.Stream<{
698
+ readonly sequence: number;
699
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
700
+ readonly aggregateKind: "project" | "thread";
701
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
702
+ readonly occurredAt: string;
703
+ readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
704
+ readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
705
+ readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
706
+ readonly metadata: {
707
+ readonly providerTurnId?: string | undefined;
708
+ readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
709
+ readonly adapterKey?: string | undefined;
710
+ readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
711
+ readonly ingestedAt?: string | undefined;
712
+ };
860
713
  readonly type: "project.created";
861
714
  readonly payload: {
862
715
  readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
863
716
  readonly title: string;
864
717
  readonly workspaceRoot: string;
718
+ readonly repositoryIdentity?: {
719
+ readonly canonicalKey: string;
720
+ readonly locator: {
721
+ readonly source: "git-remote";
722
+ readonly remoteName: string;
723
+ readonly remoteUrl: string;
724
+ };
725
+ readonly rootPath?: string;
726
+ readonly displayName?: string;
727
+ readonly provider?: string;
728
+ readonly owner?: string;
729
+ readonly name?: string;
730
+ } | null | undefined;
865
731
  readonly defaultModelSelection: {
866
732
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
867
733
  readonly model: string;
@@ -874,29 +740,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
874
740
  readonly id: string;
875
741
  readonly name: string;
876
742
  readonly command: string;
877
- readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
743
+ readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
878
744
  readonly runOnWorktreeCreate: boolean;
745
+ readonly previewUrl?: string | undefined;
746
+ readonly autoOpenPreview?: boolean | undefined;
879
747
  }[];
880
748
  readonly createdAt: string;
881
749
  readonly updatedAt: string;
882
- readonly repositoryIdentity?: {
883
- readonly canonicalKey: string;
884
- readonly locator: {
885
- readonly source: "git-remote";
886
- readonly remoteName: string;
887
- readonly remoteUrl: string;
888
- };
889
- readonly rootPath?: string;
890
- readonly displayName?: string;
891
- readonly provider?: string;
892
- readonly owner?: string;
893
- readonly name?: string;
894
- } | null | undefined;
895
750
  };
751
+ } | {
896
752
  readonly sequence: number;
897
753
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
898
754
  readonly aggregateKind: "project" | "thread";
899
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
755
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
900
756
  readonly occurredAt: string;
901
757
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
902
758
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -908,11 +764,9 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
908
764
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
909
765
  readonly ingestedAt?: string | undefined;
910
766
  };
911
- } | {
912
767
  readonly type: "project.meta-updated";
913
768
  readonly payload: {
914
769
  readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
915
- readonly updatedAt: string;
916
770
  readonly title?: string | undefined;
917
771
  readonly workspaceRoot?: string | undefined;
918
772
  readonly repositoryIdentity?: {
@@ -940,14 +794,18 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
940
794
  readonly id: string;
941
795
  readonly name: string;
942
796
  readonly command: string;
943
- readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug";
797
+ readonly icon: "build" | "configure" | "debug" | "lint" | "play" | "test";
944
798
  readonly runOnWorktreeCreate: boolean;
799
+ readonly previewUrl?: string | undefined;
800
+ readonly autoOpenPreview?: boolean | undefined;
945
801
  }[] | undefined;
802
+ readonly updatedAt: string;
946
803
  };
804
+ } | {
947
805
  readonly sequence: number;
948
806
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
949
807
  readonly aggregateKind: "project" | "thread";
950
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
808
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
951
809
  readonly occurredAt: string;
952
810
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
953
811
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -959,16 +817,16 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
959
817
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
960
818
  readonly ingestedAt?: string | undefined;
961
819
  };
962
- } | {
963
820
  readonly type: "project.deleted";
964
821
  readonly payload: {
965
822
  readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
966
823
  readonly deletedAt: string;
967
824
  };
825
+ } | {
968
826
  readonly sequence: number;
969
827
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
970
828
  readonly aggregateKind: "project" | "thread";
971
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
829
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
972
830
  readonly occurredAt: string;
973
831
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
974
832
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -980,7 +838,6 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
980
838
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
981
839
  readonly ingestedAt?: string | undefined;
982
840
  };
983
- } | {
984
841
  readonly type: "thread.created";
985
842
  readonly payload: {
986
843
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
@@ -994,17 +851,18 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
994
851
  readonly value: string | boolean;
995
852
  }[];
996
853
  };
997
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
854
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
998
855
  readonly interactionMode: "default" | "plan";
999
856
  readonly branch: string | null;
1000
857
  readonly worktreePath: string | null;
1001
858
  readonly createdAt: string;
1002
859
  readonly updatedAt: string;
1003
860
  };
861
+ } | {
1004
862
  readonly sequence: number;
1005
863
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1006
864
  readonly aggregateKind: "project" | "thread";
1007
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
865
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1008
866
  readonly occurredAt: string;
1009
867
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1010
868
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1016,16 +874,16 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1016
874
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1017
875
  readonly ingestedAt?: string | undefined;
1018
876
  };
1019
- } | {
1020
877
  readonly type: "thread.deleted";
1021
878
  readonly payload: {
1022
879
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1023
880
  readonly deletedAt: string;
1024
881
  };
882
+ } | {
1025
883
  readonly sequence: number;
1026
884
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1027
885
  readonly aggregateKind: "project" | "thread";
1028
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
886
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1029
887
  readonly occurredAt: string;
1030
888
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1031
889
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1037,17 +895,17 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1037
895
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1038
896
  readonly ingestedAt?: string | undefined;
1039
897
  };
1040
- } | {
1041
898
  readonly type: "thread.archived";
1042
899
  readonly payload: {
1043
900
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1044
901
  readonly archivedAt: string;
1045
902
  readonly updatedAt: string;
1046
903
  };
904
+ } | {
1047
905
  readonly sequence: number;
1048
906
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1049
907
  readonly aggregateKind: "project" | "thread";
1050
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
908
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1051
909
  readonly occurredAt: string;
1052
910
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1053
911
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1059,16 +917,16 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1059
917
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1060
918
  readonly ingestedAt?: string | undefined;
1061
919
  };
1062
- } | {
1063
920
  readonly type: "thread.unarchived";
1064
921
  readonly payload: {
1065
922
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1066
923
  readonly updatedAt: string;
1067
924
  };
925
+ } | {
1068
926
  readonly sequence: number;
1069
927
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1070
928
  readonly aggregateKind: "project" | "thread";
1071
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
929
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1072
930
  readonly occurredAt: string;
1073
931
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1074
932
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1080,11 +938,98 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1080
938
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1081
939
  readonly ingestedAt?: string | undefined;
1082
940
  };
941
+ readonly type: "thread.settled";
942
+ readonly payload: {
943
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
944
+ readonly settledAt: string;
945
+ readonly updatedAt: string;
946
+ };
1083
947
  } | {
1084
- readonly type: "thread.meta-updated";
948
+ readonly sequence: number;
949
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
950
+ readonly aggregateKind: "project" | "thread";
951
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
952
+ readonly occurredAt: string;
953
+ readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
954
+ readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
955
+ readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
956
+ readonly metadata: {
957
+ readonly providerTurnId?: string | undefined;
958
+ readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
959
+ readonly adapterKey?: string | undefined;
960
+ readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
961
+ readonly ingestedAt?: string | undefined;
962
+ };
963
+ readonly type: "thread.unsettled";
964
+ readonly payload: {
965
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
966
+ readonly reason: "activity" | "user";
967
+ readonly updatedAt: string;
968
+ };
969
+ } | {
970
+ readonly sequence: number;
971
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
972
+ readonly aggregateKind: "project" | "thread";
973
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
974
+ readonly occurredAt: string;
975
+ readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
976
+ readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
977
+ readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
978
+ readonly metadata: {
979
+ readonly providerTurnId?: string | undefined;
980
+ readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
981
+ readonly adapterKey?: string | undefined;
982
+ readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
983
+ readonly ingestedAt?: string | undefined;
984
+ };
985
+ readonly type: "thread.snoozed";
1085
986
  readonly payload: {
1086
987
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
988
+ readonly snoozedUntil: string;
989
+ readonly snoozedAt: string;
1087
990
  readonly updatedAt: string;
991
+ };
992
+ } | {
993
+ readonly sequence: number;
994
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
995
+ readonly aggregateKind: "project" | "thread";
996
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
997
+ readonly occurredAt: string;
998
+ readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
999
+ readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
1000
+ readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1001
+ readonly metadata: {
1002
+ readonly providerTurnId?: string | undefined;
1003
+ readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
1004
+ readonly adapterKey?: string | undefined;
1005
+ readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1006
+ readonly ingestedAt?: string | undefined;
1007
+ };
1008
+ readonly type: "thread.unsnoozed";
1009
+ readonly payload: {
1010
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1011
+ readonly reason: "activity" | "user";
1012
+ readonly updatedAt: string;
1013
+ };
1014
+ } | {
1015
+ readonly sequence: number;
1016
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1017
+ readonly aggregateKind: "project" | "thread";
1018
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1019
+ readonly occurredAt: string;
1020
+ readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1021
+ readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
1022
+ readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1023
+ readonly metadata: {
1024
+ readonly providerTurnId?: string | undefined;
1025
+ readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
1026
+ readonly adapterKey?: string | undefined;
1027
+ readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1028
+ readonly ingestedAt?: string | undefined;
1029
+ };
1030
+ readonly type: "thread.meta-updated";
1031
+ readonly payload: {
1032
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1088
1033
  readonly title?: string | undefined;
1089
1034
  readonly modelSelection?: {
1090
1035
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
@@ -1096,11 +1041,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1096
1041
  } | undefined;
1097
1042
  readonly branch?: string | null | undefined;
1098
1043
  readonly worktreePath?: string | null | undefined;
1044
+ readonly updatedAt: string;
1099
1045
  };
1046
+ } | {
1100
1047
  readonly sequence: number;
1101
1048
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1102
1049
  readonly aggregateKind: "project" | "thread";
1103
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1050
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1104
1051
  readonly occurredAt: string;
1105
1052
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1106
1053
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1112,17 +1059,17 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1112
1059
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1113
1060
  readonly ingestedAt?: string | undefined;
1114
1061
  };
1115
- } | {
1116
1062
  readonly type: "thread.runtime-mode-set";
1117
1063
  readonly payload: {
1118
1064
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1119
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
1065
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
1120
1066
  readonly updatedAt: string;
1121
1067
  };
1068
+ } | {
1122
1069
  readonly sequence: number;
1123
1070
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1124
1071
  readonly aggregateKind: "project" | "thread";
1125
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1072
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1126
1073
  readonly occurredAt: string;
1127
1074
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1128
1075
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1134,17 +1081,17 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1134
1081
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1135
1082
  readonly ingestedAt?: string | undefined;
1136
1083
  };
1137
- } | {
1138
1084
  readonly type: "thread.interaction-mode-set";
1139
1085
  readonly payload: {
1140
1086
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1141
1087
  readonly interactionMode: "default" | "plan";
1142
1088
  readonly updatedAt: string;
1143
1089
  };
1090
+ } | {
1144
1091
  readonly sequence: number;
1145
1092
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1146
1093
  readonly aggregateKind: "project" | "thread";
1147
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1094
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1148
1095
  readonly occurredAt: string;
1149
1096
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1150
1097
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1156,17 +1103,12 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1156
1103
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1157
1104
  readonly ingestedAt?: string | undefined;
1158
1105
  };
1159
- } | {
1160
1106
  readonly type: "thread.message-sent";
1161
1107
  readonly payload: {
1162
1108
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1163
1109
  readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1164
- readonly role: "user" | "assistant" | "system";
1110
+ readonly role: "assistant" | "system" | "user";
1165
1111
  readonly text: string;
1166
- readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
1167
- readonly streaming: boolean;
1168
- readonly createdAt: string;
1169
- readonly updatedAt: string;
1170
1112
  readonly attachments?: readonly {
1171
1113
  readonly type: "image";
1172
1114
  readonly id: string;
@@ -1174,11 +1116,16 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1174
1116
  readonly mimeType: string;
1175
1117
  readonly sizeBytes: number;
1176
1118
  }[] | undefined;
1119
+ readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
1120
+ readonly streaming: boolean;
1121
+ readonly createdAt: string;
1122
+ readonly updatedAt: string;
1177
1123
  };
1124
+ } | {
1178
1125
  readonly sequence: number;
1179
1126
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1180
1127
  readonly aggregateKind: "project" | "thread";
1181
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1128
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1182
1129
  readonly occurredAt: string;
1183
1130
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1184
1131
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1190,14 +1137,10 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1190
1137
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1191
1138
  readonly ingestedAt?: string | undefined;
1192
1139
  };
1193
- } | {
1194
1140
  readonly type: "thread.turn-start-requested";
1195
1141
  readonly payload: {
1196
1142
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1197
1143
  readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1198
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
1199
- readonly interactionMode: "default" | "plan";
1200
- readonly createdAt: string;
1201
1144
  readonly modelSelection?: {
1202
1145
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
1203
1146
  readonly model: string;
@@ -1207,15 +1150,19 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1207
1150
  }[];
1208
1151
  } | undefined;
1209
1152
  readonly titleSeed?: string | undefined;
1153
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
1154
+ readonly interactionMode: "default" | "plan";
1210
1155
  readonly sourceProposedPlan?: {
1211
1156
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1212
1157
  readonly planId: string;
1213
1158
  } | undefined;
1159
+ readonly createdAt: string;
1214
1160
  };
1161
+ } | {
1215
1162
  readonly sequence: number;
1216
1163
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1217
1164
  readonly aggregateKind: "project" | "thread";
1218
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1165
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1219
1166
  readonly occurredAt: string;
1220
1167
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1221
1168
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1227,17 +1174,17 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1227
1174
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1228
1175
  readonly ingestedAt?: string | undefined;
1229
1176
  };
1230
- } | {
1231
1177
  readonly type: "thread.turn-interrupt-requested";
1232
1178
  readonly payload: {
1233
1179
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1234
- readonly createdAt: string;
1235
1180
  readonly turnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
1181
+ readonly createdAt: string;
1236
1182
  };
1183
+ } | {
1237
1184
  readonly sequence: number;
1238
1185
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1239
1186
  readonly aggregateKind: "project" | "thread";
1240
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1187
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1241
1188
  readonly occurredAt: string;
1242
1189
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1243
1190
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1249,18 +1196,18 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1249
1196
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1250
1197
  readonly ingestedAt?: string | undefined;
1251
1198
  };
1252
- } | {
1253
1199
  readonly type: "thread.approval-response-requested";
1254
1200
  readonly payload: {
1255
1201
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1256
1202
  readonly requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
1257
- readonly decision: "accept" | "acceptForSession" | "decline" | "cancel";
1203
+ readonly decision: "accept" | "acceptForSession" | "cancel" | "decline";
1258
1204
  readonly createdAt: string;
1259
1205
  };
1206
+ } | {
1260
1207
  readonly sequence: number;
1261
1208
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1262
1209
  readonly aggregateKind: "project" | "thread";
1263
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1210
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1264
1211
  readonly occurredAt: string;
1265
1212
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1266
1213
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1272,7 +1219,6 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1272
1219
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1273
1220
  readonly ingestedAt?: string | undefined;
1274
1221
  };
1275
- } | {
1276
1222
  readonly type: "thread.user-input-response-requested";
1277
1223
  readonly payload: {
1278
1224
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
@@ -1282,10 +1228,11 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1282
1228
  };
1283
1229
  readonly createdAt: string;
1284
1230
  };
1231
+ } | {
1285
1232
  readonly sequence: number;
1286
1233
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1287
1234
  readonly aggregateKind: "project" | "thread";
1288
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1235
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1289
1236
  readonly occurredAt: string;
1290
1237
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1291
1238
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1297,17 +1244,17 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1297
1244
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1298
1245
  readonly ingestedAt?: string | undefined;
1299
1246
  };
1300
- } | {
1301
1247
  readonly type: "thread.checkpoint-revert-requested";
1302
1248
  readonly payload: {
1303
1249
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1304
1250
  readonly turnCount: number;
1305
1251
  readonly createdAt: string;
1306
1252
  };
1253
+ } | {
1307
1254
  readonly sequence: number;
1308
1255
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1309
1256
  readonly aggregateKind: "project" | "thread";
1310
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1257
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1311
1258
  readonly occurredAt: string;
1312
1259
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1313
1260
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1319,16 +1266,16 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1319
1266
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1320
1267
  readonly ingestedAt?: string | undefined;
1321
1268
  };
1322
- } | {
1323
1269
  readonly type: "thread.reverted";
1324
1270
  readonly payload: {
1325
1271
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1326
1272
  readonly turnCount: number;
1327
1273
  };
1274
+ } | {
1328
1275
  readonly sequence: number;
1329
1276
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1330
1277
  readonly aggregateKind: "project" | "thread";
1331
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1278
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1332
1279
  readonly occurredAt: string;
1333
1280
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1334
1281
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1340,16 +1287,16 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1340
1287
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1341
1288
  readonly ingestedAt?: string | undefined;
1342
1289
  };
1343
- } | {
1344
1290
  readonly type: "thread.session-stop-requested";
1345
1291
  readonly payload: {
1346
1292
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1347
1293
  readonly createdAt: string;
1348
1294
  };
1295
+ } | {
1349
1296
  readonly sequence: number;
1350
1297
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1351
1298
  readonly aggregateKind: "project" | "thread";
1352
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1299
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1353
1300
  readonly occurredAt: string;
1354
1301
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1355
1302
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1361,25 +1308,25 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1361
1308
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1362
1309
  readonly ingestedAt?: string | undefined;
1363
1310
  };
1364
- } | {
1365
1311
  readonly type: "thread.session-set";
1366
1312
  readonly payload: {
1367
1313
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1368
1314
  readonly session: {
1369
1315
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1370
- readonly status: "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped";
1316
+ readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
1371
1317
  readonly providerName: string | null;
1372
- readonly runtimeMode: "approval-required" | "auto-accept-edits" | "full-access";
1318
+ readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
1319
+ readonly runtimeMode: "approval-required" | "auto" | "auto-accept-edits" | "full-access";
1373
1320
  readonly activeTurnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
1374
1321
  readonly lastError: string | null;
1375
1322
  readonly updatedAt: string;
1376
- readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
1377
1323
  };
1378
1324
  };
1325
+ } | {
1379
1326
  readonly sequence: number;
1380
1327
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1381
1328
  readonly aggregateKind: "project" | "thread";
1382
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1329
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1383
1330
  readonly occurredAt: string;
1384
1331
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1385
1332
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1391,7 +1338,6 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1391
1338
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1392
1339
  readonly ingestedAt?: string | undefined;
1393
1340
  };
1394
- } | {
1395
1341
  readonly type: "thread.proposed-plan-upserted";
1396
1342
  readonly payload: {
1397
1343
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
@@ -1405,10 +1351,11 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1405
1351
  readonly updatedAt: string;
1406
1352
  };
1407
1353
  };
1354
+ } | {
1408
1355
  readonly sequence: number;
1409
1356
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1410
1357
  readonly aggregateKind: "project" | "thread";
1411
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1358
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1412
1359
  readonly occurredAt: string;
1413
1360
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1414
1361
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1420,14 +1367,13 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1420
1367
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1421
1368
  readonly ingestedAt?: string | undefined;
1422
1369
  };
1423
- } | {
1424
1370
  readonly type: "thread.turn-diff-completed";
1425
1371
  readonly payload: {
1426
1372
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1427
1373
  readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1428
1374
  readonly checkpointTurnCount: number;
1429
1375
  readonly checkpointRef: string & import("effect/Brand").Brand<"CheckpointRef">;
1430
- readonly status: "error" | "ready" | "missing";
1376
+ readonly status: "error" | "missing" | "ready";
1431
1377
  readonly files: readonly {
1432
1378
  readonly path: string;
1433
1379
  readonly kind: string;
@@ -1437,10 +1383,11 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1437
1383
  readonly assistantMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
1438
1384
  readonly completedAt: string;
1439
1385
  };
1386
+ } | {
1440
1387
  readonly sequence: number;
1441
1388
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1442
1389
  readonly aggregateKind: "project" | "thread";
1443
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1390
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1444
1391
  readonly occurredAt: string;
1445
1392
  readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1446
1393
  readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
@@ -1452,36 +1399,20 @@ export declare const makeT3Orchestration: () => Effect.Effect<{
1452
1399
  readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1453
1400
  readonly ingestedAt?: string | undefined;
1454
1401
  };
1455
- } | {
1456
1402
  readonly type: "thread.activity-appended";
1457
1403
  readonly payload: {
1458
1404
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1459
1405
  readonly activity: {
1460
1406
  readonly id: string & import("effect/Brand").Brand<"EventId">;
1461
- readonly tone: "error" | "info" | "tool" | "approval";
1407
+ readonly tone: "approval" | "error" | "info" | "tool";
1462
1408
  readonly kind: string;
1463
1409
  readonly summary: string;
1464
1410
  readonly payload: unknown;
1465
1411
  readonly turnId: (string & import("effect/Brand").Brand<"TurnId">) | null;
1466
- readonly createdAt: string;
1467
1412
  readonly sequence?: number | undefined;
1413
+ readonly createdAt: string;
1468
1414
  };
1469
1415
  };
1470
- readonly sequence: number;
1471
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1472
- readonly aggregateKind: "project" | "thread";
1473
- readonly aggregateId: (string & import("effect/Brand").Brand<"ThreadId">) | (string & import("effect/Brand").Brand<"ProjectId">);
1474
- readonly occurredAt: string;
1475
- readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1476
- readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
1477
- readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1478
- readonly metadata: {
1479
- readonly providerTurnId?: string | undefined;
1480
- readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
1481
- readonly adapterKey?: string | undefined;
1482
- readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1483
- readonly ingestedAt?: string | undefined;
1484
- };
1485
1416
  }, RpcError, never>;
1486
1417
  }, RpcError, import("effect/Scope").Scope>;
1487
1418
  }, never, T3RpcOperations>;