t3code-cli 0.14.1 → 0.15.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 (185) hide show
  1. package/README.md +37 -1
  2. package/dist/application.d.ts +2 -2
  3. package/dist/application.js +1 -1
  4. package/dist/auth.d.ts +1 -1
  5. package/dist/auth.js +1 -1
  6. package/dist/bin.js +1305 -424
  7. package/dist/cli.d.ts +1 -1
  8. package/dist/cli.js +1 -1
  9. package/dist/client-runtime/authorization.d.ts +1 -1
  10. package/dist/client-runtime/authorization.js +1 -1
  11. package/dist/client-runtime/connection.d.ts +1 -1
  12. package/dist/client-runtime/connection.js +1 -1
  13. package/dist/client-runtime/environment.d.ts +7 -1
  14. package/dist/client-runtime/environment.js +1 -1
  15. package/dist/client-runtime/errors.js +1 -1
  16. package/dist/client-runtime/operations/projects.d.ts +2 -2
  17. package/dist/client-runtime/operations/projects.js +2 -2
  18. package/dist/client-runtime/operations.d.ts +2 -2
  19. package/dist/client-runtime/operations.js +2 -2
  20. package/dist/client-runtime/platform.d.ts +1 -1
  21. package/dist/client-runtime/platform.js +1 -1
  22. package/dist/client-runtime/relay.d.ts +13 -2
  23. package/dist/client-runtime/relay.js +12 -2
  24. package/dist/client-runtime/rpc.d.ts +2 -2
  25. package/dist/client-runtime/rpc.js +2 -2
  26. package/dist/client-runtime/state/assets.d.ts +17 -11
  27. package/dist/client-runtime/state/assets.js +1 -1
  28. package/dist/client-runtime/state/auth.d.ts +1 -1
  29. package/dist/client-runtime/state/auth.js +1 -1
  30. package/dist/client-runtime/state/connections.js +1 -1
  31. package/dist/client-runtime/state/entities.d.ts +1 -1
  32. package/dist/client-runtime/state/entities.js +1 -1
  33. package/dist/client-runtime/state/filesystem.d.ts +1 -1
  34. package/dist/client-runtime/state/filesystem.js +1 -1
  35. package/dist/client-runtime/state/git.d.ts +6 -5
  36. package/dist/client-runtime/state/git.js +1 -1
  37. package/dist/client-runtime/state/models.d.ts +1 -1
  38. package/dist/client-runtime/state/models.js +1 -1
  39. package/dist/client-runtime/state/orchestration.d.ts +42 -2
  40. package/dist/client-runtime/state/orchestration.js +13 -1
  41. package/dist/client-runtime/state/presentation.d.ts +15 -3
  42. package/dist/client-runtime/state/presentation.js +1 -1
  43. package/dist/client-runtime/state/preview.d.ts +58 -48
  44. package/dist/client-runtime/state/preview.js +3 -2
  45. package/dist/client-runtime/state/project-grouping.d.ts +26 -2
  46. package/dist/client-runtime/state/project-grouping.js +83 -3
  47. package/dist/client-runtime/state/projects.d.ts +24 -18
  48. package/dist/client-runtime/state/projects.js +1 -1
  49. package/dist/client-runtime/state/pull-requests.d.ts +478 -0
  50. package/dist/client-runtime/state/pull-requests.js +172 -0
  51. package/dist/client-runtime/state/relay.d.ts +1 -1
  52. package/dist/client-runtime/state/relay.js +1 -1
  53. package/dist/client-runtime/state/review.d.ts +16 -1
  54. package/dist/client-runtime/state/review.js +27 -6
  55. package/dist/client-runtime/state/runtime.d.ts +2 -2
  56. package/dist/client-runtime/state/runtime.js +2 -2
  57. package/dist/client-runtime/state/server.d.ts +311 -172
  58. package/dist/client-runtime/state/server.js +192 -16
  59. package/dist/client-runtime/state/session.d.ts +77 -7
  60. package/dist/client-runtime/state/session.js +32 -3
  61. package/dist/client-runtime/state/shell.d.ts +47 -7
  62. package/dist/client-runtime/state/shell.js +1 -1
  63. package/dist/client-runtime/state/source-control.d.ts +2 -2
  64. package/dist/client-runtime/state/source-control.js +1 -1
  65. package/dist/client-runtime/state/subagentRuntime.d.ts +145 -0
  66. package/dist/client-runtime/state/subagentRuntime.js +521 -0
  67. package/dist/client-runtime/state/terminal.d.ts +17 -17
  68. package/dist/client-runtime/state/terminal.js +1 -1
  69. package/dist/client-runtime/state/thread-search.d.ts +23 -0
  70. package/dist/client-runtime/state/thread-search.js +38 -0
  71. package/dist/client-runtime/state/thread-settled.d.ts +32 -4
  72. package/dist/client-runtime/state/thread-settled.js +2 -157
  73. package/dist/client-runtime/state/thread-sort.d.ts +59 -2
  74. package/dist/client-runtime/state/thread-sort.js +128 -2
  75. package/dist/client-runtime/state/threads.d.ts +115 -3
  76. package/dist/client-runtime/state/threads.js +309 -28
  77. package/dist/client-runtime/state/vcs.d.ts +14 -14
  78. package/dist/client-runtime/state/vcs.js +1 -1
  79. package/dist/config.d.ts +1 -1
  80. package/dist/config.js +1 -1
  81. package/dist/connection.d.ts +1 -1
  82. package/dist/connection.js +1 -1
  83. package/dist/contracts.d.ts +1 -1
  84. package/dist/contracts.js +1 -1
  85. package/dist/index.d.ts +1 -1
  86. package/dist/index.js +1 -1
  87. package/dist/node.d.ts +1 -1
  88. package/dist/node.js +1 -1
  89. package/dist/orchestration.d.ts +155 -6
  90. package/dist/orchestration.js +2 -2
  91. package/dist/preview.d.ts +1 -1
  92. package/dist/preview.js +1 -1
  93. package/dist/rpc.d.ts +887 -360
  94. package/dist/rpc.js +1 -1
  95. package/dist/runtime.d.ts +1 -1
  96. package/dist/runtime.js +1 -1
  97. package/dist/shared/DrainableWorker.js +1 -1
  98. package/dist/shared/KeyedCoalescingWorker.js +1 -1
  99. package/dist/shared/Net.d.ts +6 -0
  100. package/dist/shared/Net.js +2 -1
  101. package/dist/shared/advertisedEndpoint.d.ts +1 -1
  102. package/dist/shared/advertisedEndpoint.js +1 -1
  103. package/dist/shared/agentAwareness.d.ts +1 -1
  104. package/dist/shared/backgroundActivitySettings.d.ts +1 -1
  105. package/dist/shared/composerInlineTokens.js +1 -1
  106. package/dist/shared/connectAuth.d.ts +23 -4
  107. package/dist/shared/connectAuth.js +40 -7
  108. package/dist/shared/devHome.js +1 -1
  109. package/dist/shared/dpop.js +1 -1
  110. package/dist/shared/git.d.ts +1 -1
  111. package/dist/shared/httpObservability.js +1 -1
  112. package/dist/shared/httpReadiness.js +1 -1
  113. package/dist/shared/keybindings.d.ts +2 -2
  114. package/dist/shared/keybindings.js +15 -1
  115. package/dist/shared/model.d.ts +1 -1
  116. package/dist/shared/oauthScope.js +1 -1
  117. package/dist/shared/observability.d.ts +8 -1
  118. package/dist/shared/observability.js +49 -5
  119. package/dist/shared/path.js +1 -1
  120. package/dist/shared/preview.js +1 -1
  121. package/dist/shared/previewViewport.d.ts +1 -1
  122. package/dist/shared/previewViewport.js +1 -1
  123. package/dist/shared/projectFavicon.d.ts +2 -1
  124. package/dist/shared/projectFavicon.js +13 -1
  125. package/dist/shared/projectScripts.d.ts +1 -1
  126. package/dist/shared/relayAuth.js +1 -1
  127. package/dist/shared/relayClient.d.ts +1 -1
  128. package/dist/shared/relayClient.js +1 -1
  129. package/dist/shared/relayJwt.js +1 -1
  130. package/dist/shared/relayTracing.js +1 -1
  131. package/dist/shared/relayUrl.js +1 -1
  132. package/dist/shared/remote.js +1 -1
  133. package/dist/shared/schemaYaml.js +3 -3
  134. package/dist/shared/semver.js +1 -1
  135. package/dist/shared/serverSettings.d.ts +1 -1
  136. package/dist/shared/serverSettings.js +1 -1
  137. package/dist/shared/shell.d.ts +6 -1
  138. package/dist/shared/shell.js +42 -4
  139. package/dist/shared/sourceControl.d.ts +1 -1
  140. package/dist/shared/t3ProjectFile.d.ts +9 -1
  141. package/dist/shared/t3ProjectFile.js +12 -2
  142. package/dist/shared/terminalLabels.d.ts +1 -1
  143. package/dist/shared/threadEnvMode.d.ts +29 -0
  144. package/dist/shared/threadEnvMode.js +24 -0
  145. package/dist/shared/toolActivity.d.ts +1 -1
  146. package/dist/shared/usageFormat.d.ts +34 -0
  147. package/dist/shared/usageFormat.js +176 -0
  148. package/dist/shared/usageMerge.d.ts +78 -0
  149. package/dist/shared/usageMerge.js +241 -0
  150. package/dist/shared.d.ts +8268 -1372
  151. package/dist/shared.js +22185 -19774
  152. package/dist/t3tools.d.ts +2 -2
  153. package/dist/t3tools.js +2 -2
  154. package/package.json +5 -5
  155. package/src/application/error.ts +2 -2
  156. package/src/application/index.ts +2 -0
  157. package/src/application/service.ts +43 -5
  158. package/src/application/thread-commands.ts +78 -0
  159. package/src/application/threads.ts +156 -17
  160. package/src/cli/app.ts +4 -0
  161. package/src/cli/ask-lifecycle.ts +331 -0
  162. package/src/cli/ask.ts +390 -0
  163. package/src/cli/error.ts +70 -0
  164. package/src/cli/format/thread.ts +49 -7
  165. package/src/cli/search.ts +48 -0
  166. package/src/cli/thread.ts +12 -0
  167. package/src/cli/threads/messages.ts +33 -3
  168. package/src/cli/threads/pin.ts +46 -0
  169. package/src/cli/threads/send.ts +5 -1
  170. package/src/cli/threads/settle.ts +46 -0
  171. package/src/cli/threads/snooze.ts +117 -0
  172. package/src/cli/threads/start.ts +6 -1
  173. package/src/cli/threads/unpin.ts +48 -0
  174. package/src/cli/threads/unsettle.ts +48 -0
  175. package/src/cli/threads/unsnooze.ts +48 -0
  176. package/src/config/persist/schema.ts +1 -1
  177. package/src/connection/prepared.ts +12 -2
  178. package/src/orchestration/error.ts +10 -0
  179. package/src/orchestration/index.ts +1 -0
  180. package/src/orchestration/layer.ts +78 -0
  181. package/src/orchestration/service.ts +16 -3
  182. package/src/rpc/error.ts +2 -0
  183. package/src/rpc/operation.ts +2 -0
  184. package/src/rpc/ws-group.ts +3 -0
  185. package/src/runtime/layer.ts +9 -4
@@ -1,2 +1,2 @@
1
- import { $w as AuthClientPresentationMetadata, Ay as PreviewAutomationHostFocus, Gy as PreviewAutomationResizeInput, Nb as PreviewViewportPresetId, Pb as PreviewViewportSetting, Q_ as OrchestrationMessage, _v as OrchestrationThreadShell, cv as OrchestrationShellSnapshot, eb as PreviewAutomationStreamEvent, gb as PREVIEW_VIEWPORT_PRESET_IDS, ky as PreviewAutomationHost, ou as ServerProvider, pv as OrchestrationThread, qy as PreviewAutomationResponse, tv as OrchestrationProjectShell } from "./shared.js";
1
+ import { $x as PreviewAutomationResponse, Fx as PreviewAutomationHost, HS as PreviewViewportPresetId, Ix as PreviewAutomationHostFocus, Ky as OrchestrationMessage, MO as AuthClientPresentationMetadata, TS as PREVIEW_VIEWPORT_PRESET_IDS, US as PreviewViewportSetting, Yy as OrchestrationProjectShell, Zx as PreviewAutomationResizeInput, ab as OrchestrationShellSnapshot, oS as PreviewAutomationStreamEvent, qu as ServerProvider, ub as OrchestrationThread, vb as OrchestrationThreadShell } from "./shared.js";
2
2
  export { type AuthClientPresentationMetadata, type OrchestrationMessage, type OrchestrationProjectShell, type OrchestrationShellSnapshot, type OrchestrationThread, type OrchestrationThreadShell, PREVIEW_VIEWPORT_PRESET_IDS, type PreviewAutomationHost, type PreviewAutomationHostFocus, type PreviewAutomationResizeInput, type PreviewAutomationResponse, type PreviewAutomationStreamEvent, type PreviewViewportPresetId, PreviewViewportSetting, type ServerProvider };
package/dist/contracts.js CHANGED
@@ -1,2 +1,2 @@
1
- import { J_ as PREVIEW_VIEWPORT_PRESET_IDS, fv as PreviewViewportSetting } from "./shared.js";
1
+ import { Ay as PreviewViewportSetting, fy as PREVIEW_VIEWPORT_PRESET_IDS } from "./shared.js";
2
2
  export { PREVIEW_VIEWPORT_PRESET_IDS, PreviewViewportSetting };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Ai as WaitEvent, Ci as T3Application, Li as ApplicationError, Sn as AuthAppLayer, bi as StartThreadPolicy, vi as SendThreadInput, xn as AppLayer, yi as StartThreadInput } from "./shared.js";
1
+ import { Fi as T3Application, Hi as WaitEvent, Ki as ApplicationError, Mi as StartThreadPolicy, Mn as AppLayer, Nn as AuthAppLayer, ji as StartThreadInput, ki as SendThreadInput } from "./shared.js";
2
2
  export { AppLayer, type ApplicationError, AuthAppLayer, type SendThreadInput, type StartThreadInput, type StartThreadPolicy, T3Application, type WaitEvent };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { Ew as T3Application, Nn as AppLayer, Pn as AuthAppLayer } from "./shared.js";
1
+ import { Ln as AppLayer, Rn as AuthAppLayer, cO as T3Application } from "./shared.js";
2
2
  export { AppLayer, AuthAppLayer, T3Application };
package/dist/node.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { In as T3CodeConnectionProvider, li as T3Rpc } from "./shared.js";
1
+ import { bi as T3Rpc, qn as T3CodeConnectionProvider } from "./shared.js";
2
2
  import * as Layer from "effect/Layer";
3
3
  //#region src/node/connection.d.ts
4
4
  declare const T3CodeNodeRpcLayer: Layer.Layer<T3Rpc, never, T3CodeConnectionProvider>;
package/dist/node.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $O as mergeAll, Cs as layerWebSocketConstructor, ek as provide, jn as T3CodeRpcLayer, ws as layerUndici } from "./shared.js";
1
+ import { Fn as T3CodeRpcLayer, Ns as layerWebSocketConstructor, Ps as layerUndici, XM as mergeAll, ZM as provide } from "./shared.js";
2
2
  //#region src/node/connection.ts
3
3
  const NodeConnectionPlatformLayer = mergeAll(layerUndici, layerWebSocketConstructor);
4
4
  const T3CodeNodeRpcLayer = T3CodeRpcLayer.pipe(provide(NodeConnectionPlatformLayer));
@@ -1,7 +1,8 @@
1
- import { Mi as Orchestration, Ni as OrchestrationError, Pi as T3Orchestration, ai as T3RpcOperations, cv as OrchestrationShellSnapshot, ji as OpenThread, vv as OrchestrationThreadStreamItem, zi as RpcError } from "./shared.js";
1
+ import { Ji as Orchestration, Qi as RpcError, Ss as ThreadSnapshotRequestError, Xi as T3Orchestration, Yi as OrchestrationError, ab as OrchestrationShellSnapshot, gi as T3RpcOperations, hb as OrchestrationThreadDetailWindow, jn as T3PreparedConnectionProvider, mb as OrchestrationThreadDetailSnapshot, qi as OpenThread, yb as OrchestrationThreadStreamItem } from "./shared.js";
2
2
  import * as Effect from "effect/Effect";
3
3
  import * as Stream from "effect/Stream";
4
4
  import * as Layer from "effect/Layer";
5
+ import { HttpClient } from "effect/unstable/http";
5
6
  //#region src/orchestration/layer.d.ts
6
7
  declare const makeT3Orchestration: () => Effect.Effect<{
7
8
  dispatch: (command: {
@@ -34,6 +35,8 @@ declare const makeT3Orchestration: () => Effect.Effect<{
34
35
  readonly value: string | boolean;
35
36
  }[];
36
37
  } | null | undefined;
38
+ readonly defaultThreadEnvMode?: "local" | "worktree" | null | undefined;
39
+ readonly faviconPath?: string | null | undefined;
37
40
  readonly scripts?: readonly {
38
41
  readonly id: string;
39
42
  readonly name: string;
@@ -98,11 +101,26 @@ declare const makeT3Orchestration: () => Effect.Effect<{
98
101
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
99
102
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
100
103
  readonly reason: "user";
104
+ } | {
105
+ readonly type: "thread.pin";
106
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
107
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
108
+ readonly orderKey?: string | undefined;
109
+ } | {
110
+ readonly type: "thread.unpin";
111
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
112
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
113
+ } | {
114
+ readonly type: "thread.pin.reorder";
115
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
116
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
117
+ readonly orderKey: string;
101
118
  } | {
102
119
  readonly type: "thread.meta.update";
103
120
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
104
121
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
105
122
  readonly title?: string | undefined;
123
+ readonly regenerateTitle?: true | undefined;
106
124
  readonly modelSelection?: {
107
125
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
108
126
  readonly model: string;
@@ -217,6 +235,7 @@ declare const makeT3Orchestration: () => Effect.Effect<{
217
235
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
218
236
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
219
237
  readonly createdAt: string;
238
+ readonly onlyIfSettled?: boolean | undefined;
220
239
  }) => Effect.Effect<{
221
240
  readonly sequence: number;
222
241
  }, RpcError, never>;
@@ -258,6 +277,7 @@ declare const makeT3Orchestration: () => Effect.Effect<{
258
277
  readonly subProvider?: string | undefined;
259
278
  readonly isCustom: boolean;
260
279
  readonly isDefault?: boolean | undefined;
280
+ readonly isLegacy?: boolean | undefined;
261
281
  readonly capabilities: {
262
282
  readonly optionDescriptors?: readonly ({
263
283
  readonly id: string;
@@ -314,6 +334,7 @@ declare const makeT3Orchestration: () => Effect.Effect<{
314
334
  readonly output: string | null;
315
335
  };
316
336
  }[];
337
+ readonly threadSnapshotPagination?: boolean;
317
338
  }, RpcError, never>;
318
339
  getShellSnapshot: () => Effect.Effect<{
319
340
  readonly snapshotSequence: number;
@@ -342,6 +363,8 @@ declare const makeT3Orchestration: () => Effect.Effect<{
342
363
  readonly value: string | boolean;
343
364
  }[];
344
365
  } | null;
366
+ readonly defaultThreadEnvMode?: "local" | "worktree" | null | undefined;
367
+ readonly faviconPath?: string | null | undefined;
345
368
  readonly scripts: readonly {
346
369
  readonly id: string;
347
370
  readonly name: string;
@@ -389,6 +412,12 @@ declare const makeT3Orchestration: () => Effect.Effect<{
389
412
  readonly settledAt: string | null;
390
413
  readonly snoozedUntil?: string | null | undefined;
391
414
  readonly snoozedAt?: string | null | undefined;
415
+ readonly pinnedAt?: string | null | undefined;
416
+ readonly pinOrderKey?: string | null | undefined;
417
+ readonly titleRegeneration?: {
418
+ readonly requestId: string & import("effect/Brand").Brand<"CommandId">;
419
+ readonly startedAt: string;
420
+ } | null | undefined;
392
421
  readonly session: {
393
422
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
394
423
  readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
@@ -403,6 +432,12 @@ declare const makeT3Orchestration: () => Effect.Effect<{
403
432
  readonly hasPendingApprovals: boolean;
404
433
  readonly hasPendingUserInput: boolean;
405
434
  readonly hasActionableProposedPlan: boolean;
435
+ readonly backgroundLiveness?: "monitoring" | "working" | null | undefined;
436
+ readonly planProgress?: {
437
+ readonly step: string;
438
+ readonly completedSteps: number;
439
+ readonly totalSteps: number;
440
+ } | null | undefined;
406
441
  }[];
407
442
  readonly updatedAt: string;
408
443
  }, RpcError, never>;
@@ -433,6 +468,8 @@ declare const makeT3Orchestration: () => Effect.Effect<{
433
468
  readonly value: string | boolean;
434
469
  }[];
435
470
  } | null;
471
+ readonly defaultThreadEnvMode?: "local" | "worktree" | null | undefined;
472
+ readonly faviconPath?: string | null | undefined;
436
473
  readonly scripts: readonly {
437
474
  readonly id: string;
438
475
  readonly name: string;
@@ -480,6 +517,12 @@ declare const makeT3Orchestration: () => Effect.Effect<{
480
517
  readonly settledAt: string | null;
481
518
  readonly snoozedUntil?: string | null | undefined;
482
519
  readonly snoozedAt?: string | null | undefined;
520
+ readonly pinnedAt?: string | null | undefined;
521
+ readonly pinOrderKey?: string | null | undefined;
522
+ readonly titleRegeneration?: {
523
+ readonly requestId: string & import("effect/Brand").Brand<"CommandId">;
524
+ readonly startedAt: string;
525
+ } | null | undefined;
483
526
  readonly session: {
484
527
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
485
528
  readonly status: "error" | "idle" | "interrupted" | "ready" | "running" | "starting" | "stopped";
@@ -494,9 +537,24 @@ declare const makeT3Orchestration: () => Effect.Effect<{
494
537
  readonly hasPendingApprovals: boolean;
495
538
  readonly hasPendingUserInput: boolean;
496
539
  readonly hasActionableProposedPlan: boolean;
540
+ readonly backgroundLiveness?: "monitoring" | "working" | null | undefined;
541
+ readonly planProgress?: {
542
+ readonly step: string;
543
+ readonly completedSteps: number;
544
+ readonly totalSteps: number;
545
+ } | null | undefined;
497
546
  }[];
498
547
  readonly updatedAt: string;
499
548
  }, RpcError, never>;
549
+ searchThreads: (input: any) => Effect.Effect<{
550
+ readonly matches: readonly {
551
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
552
+ readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
553
+ readonly source: "assistant" | "user";
554
+ readonly snippet: string;
555
+ readonly messageCreatedAt: string | null;
556
+ }[];
557
+ }, RpcError, never>;
500
558
  getThreadSnapshot: (threadId: string) => Effect.Effect<{
501
559
  readonly id: string & import("effect/Brand").Brand<"ThreadId">;
502
560
  readonly projectId: string & import("effect/Brand").Brand<"ProjectId">;
@@ -532,6 +590,12 @@ declare const makeT3Orchestration: () => Effect.Effect<{
532
590
  readonly settledAt: string | null;
533
591
  readonly snoozedUntil?: string | null | undefined;
534
592
  readonly snoozedAt?: string | null | undefined;
593
+ readonly pinnedAt?: string | null | undefined;
594
+ readonly pinOrderKey?: string | null | undefined;
595
+ readonly titleRegeneration?: {
596
+ readonly requestId: string & import("effect/Brand").Brand<"CommandId">;
597
+ readonly startedAt: string;
598
+ } | null | undefined;
535
599
  readonly deletedAt: string | null;
536
600
  readonly messages: readonly {
537
601
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
@@ -593,6 +657,10 @@ declare const makeT3Orchestration: () => Effect.Effect<{
593
657
  readonly updatedAt: string;
594
658
  } | null;
595
659
  }, RpcError, never>;
660
+ getThreadDetailSnapshot: (input: {
661
+ readonly threadId: string;
662
+ readonly window?: OrchestrationThreadDetailWindow;
663
+ }) => Effect.Effect<OrchestrationThreadDetailSnapshot, OrchestrationError>;
596
664
  watchShellSnapshots: () => Stream.Stream<OrchestrationShellSnapshot, OrchestrationError, import("effect/Scope").Scope>;
597
665
  watchShellSequence: () => Stream.Stream<number, OrchestrationError, import("effect/Scope").Scope>;
598
666
  watchThreadItems: (threadId: string) => Stream.Stream<OrchestrationThreadStreamItem, OrchestrationError, import("effect/Scope").Scope>;
@@ -632,6 +700,12 @@ declare const makeT3Orchestration: () => Effect.Effect<{
632
700
  readonly settledAt: string | null;
633
701
  readonly snoozedUntil?: string | null | undefined;
634
702
  readonly snoozedAt?: string | null | undefined;
703
+ readonly pinnedAt?: string | null | undefined;
704
+ readonly pinOrderKey?: string | null | undefined;
705
+ readonly titleRegeneration?: {
706
+ readonly requestId: string & import("effect/Brand").Brand<"CommandId">;
707
+ readonly startedAt: string;
708
+ } | null | undefined;
635
709
  readonly deletedAt: string | null;
636
710
  readonly messages: readonly {
637
711
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
@@ -735,6 +809,7 @@ declare const makeT3Orchestration: () => Effect.Effect<{
735
809
  readonly value: string | boolean;
736
810
  }[];
737
811
  } | null;
812
+ readonly faviconPath?: string | null | undefined;
738
813
  readonly scripts: readonly {
739
814
  readonly id: string;
740
815
  readonly name: string;
@@ -789,6 +864,8 @@ declare const makeT3Orchestration: () => Effect.Effect<{
789
864
  readonly value: string | boolean;
790
865
  }[];
791
866
  } | null | undefined;
867
+ readonly defaultThreadEnvMode?: "local" | "worktree" | null | undefined;
868
+ readonly faviconPath?: string | null | undefined;
792
869
  readonly scripts?: readonly {
793
870
  readonly id: string;
794
871
  readonly name: string;
@@ -1010,6 +1087,72 @@ declare const makeT3Orchestration: () => Effect.Effect<{
1010
1087
  readonly reason: "activity" | "user";
1011
1088
  readonly updatedAt: string;
1012
1089
  };
1090
+ } | {
1091
+ readonly sequence: number;
1092
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1093
+ readonly aggregateKind: "project" | "thread";
1094
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1095
+ readonly occurredAt: string;
1096
+ readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1097
+ readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
1098
+ readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1099
+ readonly metadata: {
1100
+ readonly providerTurnId?: string | undefined;
1101
+ readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
1102
+ readonly adapterKey?: string | undefined;
1103
+ readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1104
+ readonly ingestedAt?: string | undefined;
1105
+ };
1106
+ readonly type: "thread.pinned";
1107
+ readonly payload: {
1108
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1109
+ readonly pinnedAt: string;
1110
+ readonly pinOrderKey?: string | undefined;
1111
+ readonly updatedAt: string;
1112
+ };
1113
+ } | {
1114
+ readonly sequence: number;
1115
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1116
+ readonly aggregateKind: "project" | "thread";
1117
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1118
+ readonly occurredAt: string;
1119
+ readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1120
+ readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
1121
+ readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1122
+ readonly metadata: {
1123
+ readonly providerTurnId?: string | undefined;
1124
+ readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
1125
+ readonly adapterKey?: string | undefined;
1126
+ readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1127
+ readonly ingestedAt?: string | undefined;
1128
+ };
1129
+ readonly type: "thread.unpinned";
1130
+ readonly payload: {
1131
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1132
+ readonly updatedAt: string;
1133
+ };
1134
+ } | {
1135
+ readonly sequence: number;
1136
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
1137
+ readonly aggregateKind: "project" | "thread";
1138
+ readonly aggregateId: (string & import("effect/Brand").Brand<"ProjectId">) | (string & import("effect/Brand").Brand<"ThreadId">);
1139
+ readonly occurredAt: string;
1140
+ readonly commandId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1141
+ readonly causationEventId: (string & import("effect/Brand").Brand<"EventId">) | null;
1142
+ readonly correlationId: (string & import("effect/Brand").Brand<"CommandId">) | null;
1143
+ readonly metadata: {
1144
+ readonly providerTurnId?: string | undefined;
1145
+ readonly providerItemId?: (string & import("effect/Brand").Brand<"ProviderItemId">) | undefined;
1146
+ readonly adapterKey?: string | undefined;
1147
+ readonly requestId?: (string & import("effect/Brand").Brand<"ApprovalRequestId">) | undefined;
1148
+ readonly ingestedAt?: string | undefined;
1149
+ };
1150
+ readonly type: "thread.pin-reordered";
1151
+ readonly payload: {
1152
+ readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1153
+ readonly orderKey: string;
1154
+ readonly updatedAt: string;
1155
+ };
1013
1156
  } | {
1014
1157
  readonly sequence: number;
1015
1158
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -1030,6 +1173,12 @@ declare const makeT3Orchestration: () => Effect.Effect<{
1030
1173
  readonly payload: {
1031
1174
  readonly threadId: string & import("effect/Brand").Brand<"ThreadId">;
1032
1175
  readonly title?: string | undefined;
1176
+ readonly regenerateTitle?: true | undefined;
1177
+ readonly previousTitle?: string | undefined;
1178
+ readonly titleRegeneration?: {
1179
+ readonly requestId: string & import("effect/Brand").Brand<"CommandId">;
1180
+ readonly startedAt: string;
1181
+ } | null | undefined;
1033
1182
  readonly modelSelection?: {
1034
1183
  readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
1035
1184
  readonly model: string;
@@ -1412,9 +1561,9 @@ declare const makeT3Orchestration: () => Effect.Effect<{
1412
1561
  readonly createdAt: string;
1413
1562
  };
1414
1563
  };
1415
- }, RpcError, never>;
1416
- }, RpcError, import("effect/Scope").Scope>;
1417
- }, never, T3RpcOperations>;
1418
- declare const T3OrchestrationLive: Layer.Layer<T3Orchestration, never, T3RpcOperations>;
1564
+ }, OrchestrationError, never>;
1565
+ }, OrchestrationError, import("effect/Scope").Scope>;
1566
+ }, never, HttpClient.HttpClient | T3PreparedConnectionProvider | T3RpcOperations>;
1567
+ declare const T3OrchestrationLive: Layer.Layer<T3Orchestration, never, HttpClient.HttpClient | T3PreparedConnectionProvider | T3RpcOperations>;
1419
1568
  //#endregion
1420
- export { type OpenThread, type Orchestration, type OrchestrationError, T3Orchestration, T3OrchestrationLive, makeT3Orchestration };
1569
+ export { type OpenThread, type Orchestration, type OrchestrationError, T3Orchestration, T3OrchestrationLive, ThreadSnapshotRequestError, makeT3Orchestration };
@@ -1,2 +1,2 @@
1
- import { Ss as T3Orchestration, Xn as T3OrchestrationLive, Zn as makeT3Orchestration } from "./shared.js";
2
- export { T3Orchestration, T3OrchestrationLive, makeT3Orchestration };
1
+ import { Ms as T3Orchestration, er as T3OrchestrationLive, nr as ThreadSnapshotRequestError, tr as makeT3Orchestration } from "./shared.js";
2
+ export { T3Orchestration, T3OrchestrationLive, ThreadSnapshotRequestError, makeT3Orchestration };
package/dist/preview.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Ay as PreviewAutomationHostFocus, Fn as makeT3PreviewAutomation, Nn as T3PreviewAutomation, Pn as T3PreviewAutomationLive, eb as PreviewAutomationStreamEvent, ky as PreviewAutomationHost, qy as PreviewAutomationResponse } from "./shared.js";
1
+ import { $x as PreviewAutomationResponse, Fx as PreviewAutomationHost, Gn as T3PreviewAutomationLive, Ix as PreviewAutomationHostFocus, Kn as makeT3PreviewAutomation, Wn as T3PreviewAutomation, oS as PreviewAutomationStreamEvent } from "./shared.js";
2
2
  export { type PreviewAutomationHost, type PreviewAutomationHostFocus, type PreviewAutomationResponse, type PreviewAutomationStreamEvent, T3PreviewAutomation, T3PreviewAutomationLive, makeT3PreviewAutomation };
package/dist/preview.js CHANGED
@@ -1,2 +1,2 @@
1
- import { Jn as T3PreviewAutomationLive, Yn as makeT3PreviewAutomation, qn as T3PreviewAutomation } from "./shared.js";
1
+ import { $n as makeT3PreviewAutomation, Qn as T3PreviewAutomationLive, Zn as T3PreviewAutomation } from "./shared.js";
2
2
  export { T3PreviewAutomation, T3PreviewAutomationLive, makeT3PreviewAutomation };