t3code-cli 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -35
- package/dist/application.js +1 -1
- package/dist/auth.js +1 -2
- package/dist/bin.js +189 -44
- package/dist/cli.js +1 -1
- package/dist/config.js +1 -3
- package/dist/connection.js +1 -4
- package/dist/index.js +1 -4
- package/dist/layout.js +1 -1
- package/dist/orchestration.js +1 -1
- package/dist/rpc.js +1 -1
- package/dist/runtime.js +1 -2
- package/dist/scope.js +1 -1
- package/dist/shared.js +85492 -0
- package/dist/src/application/layer.d.ts +25 -2
- package/dist/src/application/projects.d.ts +1 -1
- package/dist/src/application/service.d.ts +21 -1
- package/dist/src/application/thread-commands.d.ts +27 -1
- package/dist/src/application/threads.d.ts +50 -1
- package/dist/src/domain/thread-activities.d.ts +14 -0
- package/dist/src/domain/thread-lifecycle.d.ts +1 -0
- package/dist/src/runtime/layer.d.ts +1 -1
- package/dist/t3tools.js +1 -1
- package/package.json +1 -1
- package/src/application/service.ts +19 -0
- package/src/application/thread-commands.ts +45 -0
- package/src/application/threads.ts +85 -0
- package/src/cli/error.ts +15 -0
- package/src/cli/message-input.ts +30 -0
- package/src/cli/thread-format.ts +47 -0
- package/src/cli/thread.ts +6 -0
- package/src/cli/threads/approve.ts +61 -0
- package/src/cli/threads/archive.ts +18 -3
- package/src/cli/threads/respond.ts +70 -0
- package/src/cli/threads/show.ts +43 -0
- package/src/domain/thread-activities.test.ts +321 -0
- package/src/domain/thread-activities.ts +244 -0
- package/src/domain/thread-lifecycle.ts +2 -0
- package/dist/Context-DueQ9iMH.js +0 -4916
- package/dist/Path-D8WPdPwR.js +0 -11406
- package/dist/Schema-DsQxYh6_.js +0 -13581
- package/dist/UrlParams-BA6gBvaY.js +0 -205
- package/dist/base-dir-R12OMDso.js +0 -20
- package/dist/error-BHRnjLux.js +0 -15
- package/dist/error-ChTsLQTu.js +0 -169
- package/dist/error-CjADNVm8.js +0 -54
- package/dist/flags-CM7_iGdA.js +0 -13371
- package/dist/layer-CMo36MrX.js +0 -29466
- package/dist/layer-DHhKS5jd.js +0 -13
- package/dist/layer-DUv99vsS.js +0 -72
- package/dist/layer-Do8wK1t6.js +0 -1508
- package/dist/layer-DwI3Skkh.js +0 -1223
- package/dist/scope-GycYiJ54.js +0 -29
- package/dist/service-CLmRO2Dp.js +0 -8
- package/dist/service-ybOWV9pL.js +0 -5
- package/dist/src-aiFPmAG7.js +0 -9030
- package/dist/transport-MI0Z3d2T.js +0 -539
- package/dist/url-SlsaG8nY.js +0 -165
- /package/dist/{chunk-B5meny8j.js → rolldown-runtime.js} +0 -0
|
@@ -2,6 +2,17 @@ import * as Effect from "effect/Effect";
|
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import { T3Application } from "./service.ts";
|
|
4
4
|
export declare const makeT3Application: () => Effect.Effect<{
|
|
5
|
+
approveThread: (input: {
|
|
6
|
+
readonly threadId: string;
|
|
7
|
+
readonly requestId: string;
|
|
8
|
+
readonly decision: import("#t3tools/contracts").ProviderApprovalDecision;
|
|
9
|
+
}) => Effect.Effect<{
|
|
10
|
+
threadId: string;
|
|
11
|
+
requestId: string;
|
|
12
|
+
dispatch: {
|
|
13
|
+
readonly sequence: number;
|
|
14
|
+
};
|
|
15
|
+
}, import("../rpc/error.ts").RpcError, never>;
|
|
5
16
|
archiveThread: (threadId: string) => Effect.Effect<{
|
|
6
17
|
readonly sequence: number;
|
|
7
18
|
}, import("../rpc/error.ts").RpcError, never>;
|
|
@@ -198,6 +209,17 @@ export declare const makeT3Application: () => Effect.Effect<{
|
|
|
198
209
|
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
199
210
|
} | null;
|
|
200
211
|
}, import("../rpc/error.ts").RpcError, never>;
|
|
212
|
+
respondToThread: (input: {
|
|
213
|
+
readonly threadId: string;
|
|
214
|
+
readonly requestId: string;
|
|
215
|
+
readonly answers: import("#t3tools/contracts").ProviderUserInputAnswers;
|
|
216
|
+
}) => Effect.Effect<{
|
|
217
|
+
threadId: string;
|
|
218
|
+
requestId: string;
|
|
219
|
+
dispatch: {
|
|
220
|
+
readonly sequence: number;
|
|
221
|
+
};
|
|
222
|
+
}, import("../rpc/error.ts").RpcError, never>;
|
|
201
223
|
sendThread: (input: import("./service.ts").SendThreadInput, policy?: {
|
|
202
224
|
readonly until: "dispatch" | "visible" | "complete";
|
|
203
225
|
} | undefined) => Effect.Effect<{
|
|
@@ -313,6 +335,7 @@ export declare const makeT3Application: () => Effect.Effect<{
|
|
|
313
335
|
} | null;
|
|
314
336
|
};
|
|
315
337
|
}, import("../domain/error.ts").ThreadSessionError | import("../rpc/error.ts").RpcError, never>;
|
|
338
|
+
showThread: (threadId: string) => Effect.Effect<import("./threads.ts").ThreadShow, import("../rpc/error.ts").RpcError, never>;
|
|
316
339
|
startThread: (startInput: import("./service.ts").StartThreadInput, policy?: {
|
|
317
340
|
readonly until: "dispatch" | "visible" | "complete";
|
|
318
341
|
} | undefined) => Effect.Effect<{
|
|
@@ -833,5 +856,5 @@ export declare const makeT3Application: () => Effect.Effect<{
|
|
|
833
856
|
readonly output: string | null;
|
|
834
857
|
};
|
|
835
858
|
}[], import("../rpc/error.ts").RpcError, never>;
|
|
836
|
-
}, never, import("../
|
|
837
|
-
export declare const T3ApplicationLive: Layer.Layer<T3Application, never, import("../
|
|
859
|
+
}, never, import("../environment/service.ts").Environment | import("../orchestration/service.ts").T3Orchestration | import("effect/Path").Path | import("effect/Crypto").Crypto>;
|
|
860
|
+
export declare const T3ApplicationLive: Layer.Layer<T3Application, never, import("../environment/service.ts").Environment | import("../orchestration/service.ts").T3Orchestration | import("effect/Path").Path | import("effect/Crypto").Crypto>;
|
|
@@ -142,4 +142,4 @@ export declare const makeProjectApplication: () => Effect.Effect<{
|
|
|
142
142
|
} | null | undefined;
|
|
143
143
|
};
|
|
144
144
|
}, ProjectCreateVisibilityError | import("../rpc/error.ts").RpcError, never>;
|
|
145
|
-
}, never,
|
|
145
|
+
}, never, Environment | T3Orchestration | Path.Path | Crypto.Crypto>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as Context from "effect/Context";
|
|
2
2
|
import type * as Effect from "effect/Effect";
|
|
3
3
|
import type * as Stream from "effect/Stream";
|
|
4
|
-
import type { DispatchResult, ModelSelection, OrchestrationMessage, OrchestrationProjectShell, OrchestrationShellSnapshot, OrchestrationThread, OrchestrationThreadShell, ServerProvider } from "#t3tools/contracts";
|
|
4
|
+
import type { DispatchResult, ModelSelection, OrchestrationMessage, OrchestrationProjectShell, OrchestrationShellSnapshot, OrchestrationThread, OrchestrationThreadShell, ProviderUserInputAnswers, ServerProvider } from "#t3tools/contracts";
|
|
5
5
|
import type { ApplicationError } from "./error.ts";
|
|
6
|
+
import type { ThreadShow } from "./threads.ts";
|
|
6
7
|
export type StartThreadInput = {
|
|
7
8
|
readonly projectRef?: string;
|
|
8
9
|
readonly message: string;
|
|
@@ -57,6 +58,25 @@ declare const T3Application_base: Context.ServiceClass<T3Application, "t3cli/T3A
|
|
|
57
58
|
readonly threads: ReadonlyArray<OrchestrationThreadShell>;
|
|
58
59
|
}, ApplicationError>;
|
|
59
60
|
readonly getThreadMessages: (threadId: string) => Effect.Effect<OrchestrationThread, ApplicationError>;
|
|
61
|
+
readonly showThread: (threadId: string) => Effect.Effect<ThreadShow, ApplicationError>;
|
|
62
|
+
readonly approveThread: (input: {
|
|
63
|
+
readonly threadId: string;
|
|
64
|
+
readonly requestId: string;
|
|
65
|
+
readonly decision: "accept" | "decline" | "cancel";
|
|
66
|
+
}) => Effect.Effect<{
|
|
67
|
+
readonly threadId: string;
|
|
68
|
+
readonly requestId: string;
|
|
69
|
+
readonly dispatch: DispatchResult;
|
|
70
|
+
}, ApplicationError>;
|
|
71
|
+
readonly respondToThread: (input: {
|
|
72
|
+
readonly threadId: string;
|
|
73
|
+
readonly requestId: string;
|
|
74
|
+
readonly answers: ProviderUserInputAnswers;
|
|
75
|
+
}) => Effect.Effect<{
|
|
76
|
+
readonly threadId: string;
|
|
77
|
+
readonly requestId: string;
|
|
78
|
+
readonly dispatch: DispatchResult;
|
|
79
|
+
}, ApplicationError>;
|
|
60
80
|
readonly archiveThread: (threadId: string) => Effect.Effect<DispatchResult, ApplicationError>;
|
|
61
81
|
readonly startThread: (input: StartThreadInput, policy?: StartThreadPolicy) => Effect.Effect<{
|
|
62
82
|
readonly dispatch: DispatchResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Crypto from "effect/Crypto";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
|
-
import { type ModelSelection, type OrchestrationProjectShell } from "#t3tools/contracts";
|
|
3
|
+
import { type ModelSelection, type OrchestrationProjectShell, type ProviderApprovalDecision, type ProviderUserInputAnswers } from "#t3tools/contracts";
|
|
4
4
|
import type { ServerConfigForCli } from "../orchestration/service.ts";
|
|
5
5
|
import type { SendThreadInput, StartThreadInput } from "./service.ts";
|
|
6
6
|
export declare const makeThreadStartCommands: (input: {
|
|
@@ -82,3 +82,29 @@ export declare const makeThreadArchiveCommand: (threadId: string) => Effect.Effe
|
|
|
82
82
|
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
83
83
|
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
84
84
|
}, never, Crypto.Crypto>;
|
|
85
|
+
export declare const makeThreadApprovalRespondCommand: (input: {
|
|
86
|
+
readonly threadId: string;
|
|
87
|
+
readonly requestId: string;
|
|
88
|
+
readonly decision: ProviderApprovalDecision;
|
|
89
|
+
}) => Effect.Effect<{
|
|
90
|
+
type: "thread.approval.respond";
|
|
91
|
+
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
92
|
+
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
93
|
+
requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
94
|
+
decision: "accept" | "acceptForSession" | "decline" | "cancel";
|
|
95
|
+
createdAt: string;
|
|
96
|
+
}, never, Crypto.Crypto>;
|
|
97
|
+
export declare const makeThreadUserInputRespondCommand: (input: {
|
|
98
|
+
readonly threadId: string;
|
|
99
|
+
readonly requestId: string;
|
|
100
|
+
readonly answers: ProviderUserInputAnswers;
|
|
101
|
+
}) => Effect.Effect<{
|
|
102
|
+
type: "thread.user-input.respond";
|
|
103
|
+
commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
104
|
+
threadId: string & import("effect/Brand").Brand<"ThreadId">;
|
|
105
|
+
requestId: string & import("effect/Brand").Brand<"ApprovalRequestId">;
|
|
106
|
+
answers: {
|
|
107
|
+
readonly [x: string]: unknown;
|
|
108
|
+
};
|
|
109
|
+
createdAt: string;
|
|
110
|
+
}, never, Crypto.Crypto>;
|
|
@@ -6,7 +6,22 @@ import { T3Orchestration } from "../orchestration/service.ts";
|
|
|
6
6
|
import { ProjectLookupError, ThreadSessionError } from "../domain/error.ts";
|
|
7
7
|
import { type StartThreadInput } from "./service.ts";
|
|
8
8
|
import type { SendThreadInput, CallbackThreadInput } from "./service.ts";
|
|
9
|
+
import { derivePendingApprovals, derivePendingUserInputs } from "../domain/thread-activities.ts";
|
|
10
|
+
import { type ThreadLifecycleStatus } from "../domain/thread-lifecycle.ts";
|
|
11
|
+
import type { OrchestrationThread } from "#t3tools/contracts";
|
|
12
|
+
import type { ProviderApprovalDecision, ProviderUserInputAnswers } from "#t3tools/contracts";
|
|
9
13
|
export declare const makeThreadApplication: () => Effect.Effect<{
|
|
14
|
+
approveThread: (input: {
|
|
15
|
+
readonly threadId: string;
|
|
16
|
+
readonly requestId: string;
|
|
17
|
+
readonly decision: ProviderApprovalDecision;
|
|
18
|
+
}) => Effect.Effect<{
|
|
19
|
+
threadId: string;
|
|
20
|
+
requestId: string;
|
|
21
|
+
dispatch: {
|
|
22
|
+
readonly sequence: number;
|
|
23
|
+
};
|
|
24
|
+
}, import("../rpc/error.ts").RpcError, never>;
|
|
10
25
|
archiveThread: (threadId: string) => Effect.Effect<{
|
|
11
26
|
readonly sequence: number;
|
|
12
27
|
}, import("../rpc/error.ts").RpcError, never>;
|
|
@@ -203,6 +218,17 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
203
218
|
readonly providerInstanceId?: (string & import("effect/Brand").Brand<"ProviderInstanceId">) | undefined;
|
|
204
219
|
} | null;
|
|
205
220
|
}, import("../rpc/error.ts").RpcError, never>;
|
|
221
|
+
respondToThread: (input: {
|
|
222
|
+
readonly threadId: string;
|
|
223
|
+
readonly requestId: string;
|
|
224
|
+
readonly answers: ProviderUserInputAnswers;
|
|
225
|
+
}) => Effect.Effect<{
|
|
226
|
+
threadId: string;
|
|
227
|
+
requestId: string;
|
|
228
|
+
dispatch: {
|
|
229
|
+
readonly sequence: number;
|
|
230
|
+
};
|
|
231
|
+
}, import("../rpc/error.ts").RpcError, never>;
|
|
206
232
|
sendThread: (input: SendThreadInput, policy?: {
|
|
207
233
|
readonly until: "dispatch" | "visible" | "complete";
|
|
208
234
|
} | undefined) => Effect.Effect<{
|
|
@@ -318,6 +344,7 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
318
344
|
} | null;
|
|
319
345
|
};
|
|
320
346
|
}, ThreadSessionError | import("../rpc/error.ts").RpcError, never>;
|
|
347
|
+
showThread: (threadId: string) => Effect.Effect<ThreadShow, import("../rpc/error.ts").RpcError, never>;
|
|
321
348
|
startThread: (startInput: StartThreadInput, policy?: {
|
|
322
349
|
readonly until: "dispatch" | "visible" | "complete";
|
|
323
350
|
} | undefined) => Effect.Effect<{
|
|
@@ -611,4 +638,26 @@ export declare const makeThreadApplication: () => Effect.Effect<{
|
|
|
611
638
|
};
|
|
612
639
|
targetThreadId: string;
|
|
613
640
|
}, ThreadSessionError | import("../rpc/error.ts").RpcError, never>;
|
|
614
|
-
}, never,
|
|
641
|
+
}, never, Environment | T3Orchestration | Path.Path | Crypto.Crypto>;
|
|
642
|
+
export type ThreadShow = {
|
|
643
|
+
readonly id: string;
|
|
644
|
+
readonly projectId: string;
|
|
645
|
+
readonly title: string;
|
|
646
|
+
readonly status: ThreadLifecycleStatus;
|
|
647
|
+
readonly session: OrchestrationThread["session"];
|
|
648
|
+
readonly latestTurn: OrchestrationThread["latestTurn"];
|
|
649
|
+
readonly modelSelection: OrchestrationThread["modelSelection"];
|
|
650
|
+
readonly runtimeMode: OrchestrationThread["runtimeMode"];
|
|
651
|
+
readonly interactionMode: OrchestrationThread["interactionMode"];
|
|
652
|
+
readonly branch: OrchestrationThread["branch"];
|
|
653
|
+
readonly worktreePath: OrchestrationThread["worktreePath"];
|
|
654
|
+
readonly archivedAt: OrchestrationThread["archivedAt"];
|
|
655
|
+
readonly createdAt: string;
|
|
656
|
+
readonly updatedAt: string;
|
|
657
|
+
readonly messageCount: number;
|
|
658
|
+
readonly hasPendingApprovals: boolean;
|
|
659
|
+
readonly hasPendingUserInput: boolean;
|
|
660
|
+
readonly hasActionableProposedPlan: boolean;
|
|
661
|
+
readonly pendingApprovals: ReturnType<typeof derivePendingApprovals>;
|
|
662
|
+
readonly pendingUserInputs: ReturnType<typeof derivePendingUserInputs>;
|
|
663
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApprovalRequestId, type OrchestrationThreadActivity, type UserInputQuestion } from "#t3tools/contracts";
|
|
2
|
+
export type PendingApproval = {
|
|
3
|
+
readonly requestId: ApprovalRequestId;
|
|
4
|
+
readonly requestKind: "command" | "file-read" | "file-change";
|
|
5
|
+
readonly createdAt: string;
|
|
6
|
+
readonly detail?: string;
|
|
7
|
+
};
|
|
8
|
+
export type PendingUserInput = {
|
|
9
|
+
readonly requestId: ApprovalRequestId;
|
|
10
|
+
readonly createdAt: string;
|
|
11
|
+
readonly questions: ReadonlyArray<UserInputQuestion>;
|
|
12
|
+
};
|
|
13
|
+
export declare function derivePendingApprovals(activities: ReadonlyArray<OrchestrationThreadActivity>): ReadonlyArray<PendingApproval>;
|
|
14
|
+
export declare function derivePendingUserInputs(activities: ReadonlyArray<OrchestrationThreadActivity>): ReadonlyArray<PendingUserInput>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type OrchestrationEvent, type OrchestrationMessage as OrchestrationMessageType, type OrchestrationThread, type OrchestrationThreadShell } from "#t3tools/contracts";
|
|
2
2
|
export declare function isThreadActive(thread: OrchestrationThreadShell | OrchestrationThread): boolean;
|
|
3
|
+
export type ThreadLifecycleStatus = ReturnType<typeof threadStatus>;
|
|
3
4
|
export declare function threadStatus(thread: OrchestrationThreadShell | OrchestrationThread): "unknown" | "error" | "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "completed" | "pending";
|
|
4
5
|
export declare function latestAssistantMessage(thread: OrchestrationThread): {
|
|
5
6
|
readonly id: string & import("effect/Brand").Brand<"MessageId">;
|
|
@@ -8,4 +8,4 @@ export declare const T3AuthPairingLayer: Layer.Layer<import("../auth/pairing.ts"
|
|
|
8
8
|
export declare const T3AuthLayer: Layer.Layer<import("../auth/service.ts").T3Auth, never, import("../environment/service.ts").Environment | import("effect/Path").Path | import("effect/Crypto").Crypto | import("effect/FileSystem").FileSystem>;
|
|
9
9
|
export declare const T3OrchestrationLayer: Layer.Layer<import("../orchestration/service.ts").T3Orchestration, never, import("../environment/service.ts").Environment | import("effect/Path").Path | import("effect/FileSystem").FileSystem>;
|
|
10
10
|
export declare const AuthAppLayer: Layer.Layer<T3Config | import("../auth/service.ts").T3Auth, never, import("../environment/service.ts").Environment | import("effect/Path").Path | import("effect/Crypto").Crypto | import("effect/FileSystem").FileSystem>;
|
|
11
|
-
export declare const AppLayer: Layer.Layer<import("../
|
|
11
|
+
export declare const AppLayer: Layer.Layer<import("../orchestration/service.ts").T3Orchestration | import("../index.ts").T3Application | T3Config | import("../auth/service.ts").T3Auth | import("../rpc/service.ts").T3Rpc | import("../cli-path/service.ts").CliPath, never, import("../environment/service.ts").Environment | import("effect/Path").Path | import("effect/Crypto").Crypto | import("effect/FileSystem").FileSystem>;
|
package/dist/t3tools.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as WsVcsRefreshStatusRpc, $a as DesktopSshPasswordPromptCancelledResultSchema, $c as ProviderOptionDescriptorType, $i as ThreadTokenUsageSnapshot, $l as ExecutionEnvironmentPlatformOs, $n as ServerLifecycleStreamReadyEvent, $o as EnvironmentScopeRequiredError, $r as DEFAULT_SIDEBAR_PROJECT_SORT_ORDER, $s as PROVIDER_SEND_TURN_MAX_ATTACHMENTS, $t as VcsStatusResult, $u as EnvironmentId, A as WsServerUpsertKeybindingRpc, Aa as TerminalSummary, Ac as ThreadMetaUpdatedPayload, Ai as KeybindingsConfig, An as VcsListRemotesResult, Ao as EnvironmentAuthInvalidReason, Ar as ServerSignalProcessInput, As as OrchestrationMessageRole, At as GitPreparePullRequestThreadInput, Au as AuthPairingCredentialResult, B as WsSubscribeVcsStatusRpc, Ba as DesktopRuntimeArchSchema, Bc as ThreadTurnStartRequestedPayload, Bi as ResolvedKeybindingsConfig, Bn as ServerConfig, Bo as EnvironmentHttpCommonError, Br as ServerUpsertKeybindingResult, Bs as OrchestrationSessionStatus, Bt as VcsCreateRefResult, Bu as AuthTokenExchangeGrantType, C as WsServerGetSettingsRpc, Ca as TerminalNotRunningError, Cc as ThreadDeletedPayload, Ci as LaunchEditorInput, Cn as SourceControlRepositoryVisibility, Co as RelayClientInstallProgressStageSchema, Cr as ServerProviderUpdateStatus, Cs as OrchestrationGetFullThreadDiffResult, Ct as GitActionProgressEvent, Cu as AuthClientSession, D as WsServerSignalProcessRpc, Da as TerminalSessionLookupError, Dc as ThreadGoalUpdatedPayload, Di as KeybindingValue, Dn as VcsError, Do as AuthPairingLinkRevokeResult, Dr as ServerProviders, Ds as OrchestrationGetTurnDiffResult, Dt as GitCommandError, Du as AuthEnvironmentScopes, E as WsServerRemoveKeybindingRpc, Ea as TerminalRestartInput, Ec as ThreadGoalRequestedPayload, Ei as KeybindingShortcut, En as VcsDriverKind, Eo as AuthOtherClientSessionsRevokeResult, Er as ServerProviderVersionAdvisoryStatus, Es as OrchestrationGetTurnDiffInput, Et as GitActionProgressStream, Eu as AuthEnvironmentScope, F as WsSubscribeAuthAccessRpc, Fa as DesktopAppStageLabelSchema, Fc as ThreadSessionStopRequestedPayload, Fi as MAX_SCRIPT_ID_LENGTH, Fn as VcsProcessTimeoutError, Fo as EnvironmentCloudPreferencesRequest, Fr as ServerTraceDiagnosticsRecentFailure, Fs as OrchestrationReadModel, Ft as GitRunStackedActionResult, Fu as AuthRevokeClientSessionInput, G as WsTerminalResizeRpc, Ga as DesktopSshBearerRequestInputSchema, Gc as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, Gi as CanonicalRequestType, Gn as ServerConfigStreamEvent, Go as EnvironmentInternalError, Gr as CodexSettings, Gs as OrchestrationThread, Gt as VcsListRefsResult, Gu as ServerAuthDescriptor, H as WsTerminalClearRpc, Ha as DesktopServerExposureModeSchema, Hc as TurnCountRange, Hi as THREAD_JUMP_KEYBINDING_COMMANDS, Hn as ServerConfigKeybindingsUpdatedPayload, Ho as EnvironmentHttpForbiddenError, Hr as ClaudeSettings, Hs as OrchestrationShellStreamEvent, Ht as VcsCreateWorktreeResult, Hu as AuthWebSocketTicketResult, I as WsSubscribeServerConfigRpc, Ia as DesktopCloudAuthFetchInputSchema, Ic as ThreadTurnDiff, Ii as MAX_WHEN_EXPRESSION_DEPTH, In as VcsRemote, Io as EnvironmentCloudRelayConfigResult, Ir as ServerTraceDiagnosticsResult, Is as OrchestrationReplayEventsError, It as GitRunStackedActionToastRunAction, Iu as AuthRevokePairingLinkInput, J as WsVcsCreateRefRpc, Ja as DesktopSshEnvironmentEnsureOptionsSchema, Jc as MODEL_SLUG_ALIASES_BY_PROVIDER, Ji as ProviderRuntimeEventV2, Jl as EnvironmentConnectionState, Jn as ServerConfigStreamSettingsUpdatedEvent, Jo as EnvironmentOperationForbiddenError, Jr as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Js as OrchestrationThreadDetailSnapshot, Jt as VcsRef, K as WsTerminalRestartRpc, Ka as DesktopSshEnvironmentBootstrapSchema, Kc as DEFAULT_MODEL, Ki as ItemLifecyclePayload, Kn as ServerConfigStreamKeybindingsUpdatedEvent, Ko as EnvironmentInternalErrorReason, Kr as ContextMenuStyle, Ks as OrchestrationThreadActivity, Kt as VcsPullInput, Ku as ServerAuthPolicy, L as WsSubscribeServerLifecycleRpc, La as DesktopCloudAuthFetchResultSchema, Lc as ThreadTurnDiffCompletedPayload, Li as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, Ln as VcsRepositoryDetectionError, Lo as EnvironmentConnectHttpApi, Lr as ServerTraceDiagnosticsSpanOccurrence, Ls as OrchestrationReplayEventsInput, Lt as GitStackedAction, Lu as AuthSessionState, M as WsSourceControlCloneRepositoryRpc, Ma as TerminalWriteInput, Mc as ThreadRevertedPayload, Mi as MAX_KEYBINDINGS_COUNT, Mn as VcsOutputDecodeError, Mo as EnvironmentAuthenticatedPrincipal, Mr as ServerTraceDiagnosticsErrorKind, Ms as OrchestrationProjectShell, Mt as GitPullRequestRefInput, Mu as AuthRelayReadScope, N as WsSourceControlLookupRepositoryRpc, Na as ContextMenuItemSchema, Nc as ThreadRuntimeModeSetPayload, Ni as MAX_KEYBINDING_VALUE_LENGTH, Nn as VcsProcessExitError, No as EnvironmentCloudEndpointUnavailableError, Nr as ServerTraceDiagnosticsFailureSummary, Ns as OrchestrationProposedPlan, Nt as GitResolvePullRequestResult, Nu as AuthRelayWriteScope, O as WsServerUpdateProviderRpc, Oa as TerminalSessionSnapshot, Oc as ThreadInteractionModeSetPayload, Oi as KeybindingWhen, On as VcsFreshness, Oo as EnvironmentAuthHttpApi, Or as ServerRemoveKeybindingInput, Os as OrchestrationLatestTurn, Ot as GitManagerError, Ou as AuthOrchestrationOperateScope, P as WsSourceControlPublishRepositoryRpc, Pa as DesktopAppBrandingSchema, Pc as ThreadSessionSetPayload, Pi as MAX_KEYBINDING_WHEN_LENGTH, Pn as VcsProcessSpawnError, Po as EnvironmentCloudLinkStateResult, Pr as ServerTraceDiagnosticsLogEvent, Ps as OrchestrationProposedPlanId, Pt as GitRunStackedActionInput, Pu as AuthReviewWriteScope, Q as WsVcsPullRpc, Qa as DesktopSshHttpBaseUrlInputSchema, Qc as ProviderOptionDescriptor, Qi as TOOL_LIFECYCLE_ITEM_TYPES, Ql as ExecutionEnvironmentPlatformArch, Qn as ServerLifecycleStreamEvent, Qo as EnvironmentRequestInvalidReason, Qr as DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE, Qs as OrchestrationThreadStreamItem, Qt as VcsStatusRemoteResult, Qu as CommandId, R as WsSubscribeTerminalEventsRpc, Ra as DesktopDiscoveredSshHostSchema, Rc as ThreadTurnInterruptRequestedPayload, Ri as MODEL_PICKER_KEYBINDING_COMMANDS, Rn as VcsRepositoryIdentity, Ro as EnvironmentHttpApi, Rr as ServerTraceDiagnosticsSpanSummary, Rs as OrchestrationRpcSchemas, Rt as TextGenerationError, Ru as AuthStandardClientScopes, S as WsServerGetProcessResourceHistoryRpc, Sa as TerminalMetadataStreamEvent, Sc as ThreadCreatedPayload, Si as ExternalLauncherError, Sn as SourceControlRepositoryLookupInput, So as RelayClientInstallProgressEventSchema, Sr as ServerProviderUpdateState, Ss as OrchestrationGetFullThreadDiffInput, St as ProjectWriteFileResult, Su as AuthClientPresentationMetadata, T as WsServerRefreshProvidersRpc, Ta as TerminalResizeInput, Tc as ThreadGoalRequest, Ti as KeybindingRule, Tn as VcsDriverCapabilities, To as AuthClientSessionRevokeResult, Tr as ServerProviderVersionAdvisory, Ts as OrchestrationGetTurnDiffError, Tt as GitActionProgressPhase, Tu as AuthEnvironmentBootstrapTokenType, U as WsTerminalCloseRpc, Ua as DesktopServerExposureStateSchema, Uc as BooleanProviderOptionDescriptor, Ui as THREAD_KEYBINDING_COMMANDS, Un as ServerConfigProviderStatusesPayload, Uo as EnvironmentHttpInternalServerError, Ur as ClientSettingsPatch, Us as OrchestrationShellStreamItem, Ut as VcsInitInput, Uu as EnvironmentAuthorizationError, V as WsTerminalAttachRpc, Va as DesktopRuntimeInfoSchema, Vc as ThreadUnarchivedPayload, Vi as SCRIPT_RUN_COMMAND_PATTERN, Vn as ServerConfigIssue, Vo as EnvironmentHttpConflictError, Vr as isProviderAvailable, Vs as OrchestrationShellSnapshot, Vt as VcsCreateWorktreeInput, Vu as AuthTokenExchangeRequest, W as WsTerminalOpenRpc, Wa as DesktopSshBearerBootstrapInputSchema, Wc as DEFAULT_GIT_TEXT_GENERATION_MODEL, Wi as CanonicalItemType, Wn as ServerConfigSettingsUpdatedPayload, Wo as EnvironmentHttpUnauthorizedError, Wr as ClientSettingsSchema, Ws as OrchestrationSubscribeThreadInput, Wt as VcsListRefsInput, Wu as ServerAuthBootstrapMethod, X as WsVcsInitRpc, Xa as DesktopSshEnvironmentTargetSchema, Xc as PROVIDER_DISPLAY_NAMES, Xi as ProviderRuntimeTurnStatus, Xl as ExecutionEnvironmentDescriptor, Xn as ServerConfigUpdatedPayload, Xo as EnvironmentOrchestrationHttpApi, Xr as DEFAULT_CONTEXT_MENU_STYLE, Xs as OrchestrationThreadGoalStatus, Xt as VcsStatusInput, Xu as AuthSessionId, Y as WsVcsCreateWorktreeRpc, Ya as DesktopSshEnvironmentEnsureResultSchema, Yc as ModelCapabilities, Yi as ProviderRuntimeThreadGoalStatus, Yl as ExecutionEnvironmentCapabilities, Yn as ServerConfigStreamSnapshotEvent, Yo as EnvironmentOperationForbiddenReason, Yr as DEFAULT_CLIENT_SETTINGS, Ys as OrchestrationThreadGoal, Yt as VcsRemoveWorktreeInput, Yu as ApprovalRequestId, Z as WsVcsListRefsRpc, Za as DesktopSshHostSourceSchema, Zc as ProviderOptionChoice, Zi as RuntimeEventRaw, Zl as ExecutionEnvironmentPlatform, Zn as ServerLifecycleReadyPayload, Zo as EnvironmentRequestInvalidError, Zr as DEFAULT_SERVER_SETTINGS, Zs as OrchestrationThreadShell, Zt as VcsStatusLocalResult, Zu as CheckpointRef, _ as WsReviewGetDiffPreviewRpc, _a as TerminalCloseInput, _c as RuntimeMode, _i as TimestampFormat, _n as SourceControlPublishRepositoryResult, _o as AdvertisedEndpointSource, _r as ServerProviderSlashCommand, _s as OrchestrationDispatchCommandError, _t as ProjectSearchEntriesError, _u as AuthAdministrativeScopes, a as WsGitPreparePullRequestThreadRpc, aa as ProviderInterruptTurnInput, ac as ProjectMetaUpdatedPayload, ad as PositiveInt, ai as MAX_SIDEBAR_THREAD_PREVIEW_COUNT, al as ProviderInstanceConfig, an as SourceControlCloneProtocol, ao as DesktopUpdateChannelSchema, ar as ServerProcessResourceHistoryBucket, as as DEFAULT_PROVIDER_INTERACTION_MODE, au as AuthAccessReadScope, b as WsServerGetConfigRpc, ba as TerminalEvent, bc as ThreadArchivedPayload, bi as EditorId, bn as SourceControlRepositoryError, bo as RelayClientInstallFailedError, br as ServerProviderUpdateError, bs as OrchestrationEventType, bt as ProjectWriteFileError, bu as AuthClientMetadata, c as WsOrchestrationDispatchCommandRpc, ca as ProviderSendTurnInput, cc as ProjectionPendingApprovalDecision, cd as RuntimeItemId, ci as OpenCodeSettings, cl as ProviderInstanceEnvironmentVariable, cn as SourceControlDiscoveryResult, co as DesktopUpdateStatusSchema, cr as ServerProcessResourceHistorySummary, cs as ModelSelection, ct as ReviewDiffPreviewInput, cu as AuthAccessStreamClientUpsertedEvent, d as WsOrchestrationGetTurnDiffRpc, da as ProviderStopSessionInput, dc as ProviderApprovalPolicy, dd as RuntimeTaskId, di as ServerSettingsPatch, dl as ProviderInstanceRef, dn as SourceControlProviderAuthStatus, do as AdvertisedEndpoint, dr as ServerProviderAuth, ds as OrchestrationAggregateKind, dt as ReviewDiffPreviewSourceKind, du as AuthAccessStreamPairingLinkRemovedEvent, ea as ToolLifecycleItemType, ec as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, ed as EventId, ei as DEFAULT_SIDEBAR_THREAD_PREVIEW_COUNT, el as ProviderOptionSelection, en as VcsStatusStreamEvent, eo as DesktopSshPasswordPromptCancelledType, er as ServerLifecycleStreamWelcomeEvent, es as AssistantDeliveryMode, et as WsVcsRemoveWorktreeRpc, eu as RepositoryIdentity, f as WsOrchestrationReplayEventsRpc, fa as ProviderTurnStartResult, fc as ProviderInteractionMode, fd as ThreadId, fi as SidebarProjectGroupingMode, fl as defaultInstanceIdForDriver, fn as SourceControlProviderDiscoveryItem, fo as AdvertisedEndpointCompatibility, fr as ServerProviderAuthStatus, fs as OrchestrationCheckpointFile, ft as FilesystemBrowseEntry, fu as AuthAccessStreamPairingLinkUpsertedEvent, g as WsProjectsWriteFileRpc, ga as TerminalClearInput, gc as ProviderUserInputAnswers, gi as ThreadEnvMode, gn as SourceControlPublishRepositoryInput, go as AdvertisedEndpointReachability, gr as ServerProviderSkill, gs as OrchestrationCommandReceiptStatus, gt as ProjectEntry, gu as AuthAccessWriteScope, h as WsProjectsSearchEntriesRpc, ha as TerminalAttachStreamEvent, hc as ProviderSessionRuntimeStatus, hd as TurnId, hi as SidebarThreadSortOrder, hn as SourceControlProviderKind, ho as AdvertisedEndpointProviderKind, hr as ServerProviderModel, hs as OrchestrationCommand, ht as FilesystemBrowseResult, hu as AuthAccessTokenType, i as WsFilesystemBrowseRpc, ia as ProviderGoalRequestInput, ic as ProjectDeletedPayload, id as PortSchema, ii as GrokSettings, il as ProviderDriverKind, in as ChangeRequestState, io as DesktopUpdateActionResultSchema, ir as ServerProcessDiagnosticsResult, is as CorrelationId, iu as ScopedThreadSessionRef, j as WsShellOpenInEditorRpc, ja as TerminalThreadInput, jc as ThreadProposedPlanUpsertedPayload, ji as KeybindingsConfigError, jn as VcsListWorkspaceFilesResult, jo as EnvironmentAuthenticatedAuth, jr as ServerSignalProcessResult, js as OrchestrationProject, jt as GitPreparePullRequestThreadResult, ju as AuthPairingLink, k as WsServerUpdateSettingsRpc, ka as TerminalSessionStatus, kc as ThreadMessageSentPayload, ki as KeybindingWhenNode, kn as VcsFreshnessSource, ko as EnvironmentAuthInvalidError, kr as ServerRemoveKeybindingResult, ks as OrchestrationMessage, kt as GitManagerServiceError, ku as AuthOrchestrationReadScope, l as WsOrchestrationGetArchivedShellSnapshotRpc, la as ProviderSession, lc as ProjectionPendingApprovalStatus, ld as RuntimeRequestId, li as ServerSettings, ll as ProviderInstanceEnvironmentVariableName, ln as SourceControlDiscoveryStatus, lo as PersistedSavedEnvironmentRecordSchema, lr as ServerProcessSignal, ls as ORCHESTRATION_WS_METHODS, lt as ReviewDiffPreviewResult, lu as AuthAccessStreamError, m as WsOrchestrationSubscribeThreadRpc, ma as TerminalAttachInput, mc as ProviderSandboxMode, md as TrimmedString, mi as SidebarThreadPreviewCount, mn as SourceControlProviderInfo, mo as AdvertisedEndpointProvider, mr as ServerProviderContinuation, ms as OrchestrationCheckpointSummary, mt as FilesystemBrowseInput, mu as AuthAccessTokenResult, n as WsCloudGetRelayClientStatusRpc, na as isToolLifecycleItemType, nc as ProjectCreateCommand, nd as MessageId, ni as DEFAULT_TIMESTAMP_FORMAT, nl as ProviderOptionSelections, nn as VcsSwitchRefResult, no as DesktopSshPasswordPromptResolutionInputSchema, nr as ServerObservability, ns as ChatImageAttachment, nu as ScopedProjectRef, o as WsGitResolvePullRequestRpc, oa as ProviderRespondToRequestInput, oc as ProjectScript, od as ProjectId, oi as MIN_SIDEBAR_THREAD_PREVIEW_COUNT, ol as ProviderInstanceConfigMap, on as SourceControlCloneRepositoryInput, oo as DesktopUpdateCheckResultSchema, or as ServerProcessResourceHistoryInput, os as DEFAULT_RUNTIME_MODE, ou as AuthAccessSnapshot, p as WsOrchestrationSubscribeShellRpc, pa as DEFAULT_TERMINAL_ID, pc as ProviderRequestKind, pd as TrimmedNonEmptyString, pi as SidebarProjectSortOrder, pl as isProviderDriverKind, pn as SourceControlProviderError, po as AdvertisedEndpointHostedHttpsCompatibility, pr as ServerProviderAvailability, ps as OrchestrationCheckpointStatus, pt as FilesystemBrowseError, pu as AuthAccessStreamSnapshotEvent, q as WsTerminalWriteRpc, qa as DesktopSshEnvironmentEnsureInputSchema, qc as DEFAULT_MODEL_BY_PROVIDER, qi as ProviderRuntimeEvent, qn as ServerConfigStreamProviderStatusesEvent, qo as EnvironmentMetadataHttpApi, qr as CursorSettings, qs as OrchestrationThreadActivityTone, qt as VcsPullResult, qu as ServerAuthSessionMethod, r as WsCloudInstallRelayClientRpc, ra as ProviderEvent, rc as ProjectCreatedPayload, rd as NonNegativeInt, ri as DEFAULT_UNIFIED_SETTINGS, rl as SelectProviderOptionDescriptor, rn as ChangeRequest, ro as DesktopThemeSchema, rr as ServerProcessDiagnosticsEntry, rs as ClientOrchestrationCommand, ru as ScopedThreadRef, s as WsGitRunStackedActionRpc, sa as ProviderRespondToUserInputInput, sc as ProjectScriptIcon, sd as ProviderItemId, si as ObservabilitySettings, sl as ProviderInstanceEnvironment, sn as SourceControlCloneRepositoryResult, so as DesktopUpdateStateSchema, sr as ServerProcessResourceHistoryResult, ss as DispatchResult, st as ReviewDiffPreviewError, su as AuthAccessStreamClientRemovedEvent, t as WS_METHODS, ta as UserInputQuestion, tc as PROVIDER_SEND_TURN_MAX_INPUT_CHARS, td as IsoDateTime, ti as DEFAULT_SIDEBAR_THREAD_SORT_ORDER, tl as ProviderOptionSelectionValue, tn as VcsSwitchRefInput, to as DesktopSshPasswordPromptRequestSchema, tr as ServerLifecycleWelcomePayload, ts as ChatAttachment, tt as WsVcsSwitchRefRpc, tu as RepositoryIdentityLocator, u as WsOrchestrationGetFullThreadDiffRpc, ua as ProviderSessionStartInput, uc as ProviderApprovalDecision, ud as RuntimeSessionId, ui as ServerSettingsError, ul as ProviderInstanceId, un as SourceControlProviderAuth, uo as PickFolderOptionsSchema, ur as ServerProvider, us as OrchestrationActorKind, ut as ReviewDiffPreviewSource, uu as AuthAccessStreamEvent, v as WsRpcGroup, va as TerminalCwdError, vc as ThreadActivityAppendedPayload, vi as makeProviderSettingsSchema, vn as SourceControlPublishStatus, vo as AdvertisedEndpointStatus, vr as ServerProviderSlashCommandInput, vs as OrchestrationEvent, vt as ProjectSearchEntriesInput, vu as AuthBrowserSessionRequest, w as WsServerGetTraceDiagnosticsRpc, wa as TerminalOpenInput, wc as ThreadGoalClearedPayload, wi as KeybindingCommand, wn as VcsDiscoveryItem, wo as RelayClientStatusSchema, wr as ServerProviderUpdatedPayload, ws as OrchestrationGetSnapshotError, wt as GitActionProgressKind, wu as AuthCreatePairingCredentialInput, x as WsServerGetProcessDiagnosticsRpc, xa as TerminalHistoryError, xc as ThreadCheckpointRevertRequestedPayload, xi as EditorLaunchStyle, xn as SourceControlRepositoryInfo, xo as RelayClientInstallFailureReasonSchema, xr as ServerProviderUpdateInput, xs as OrchestrationGetFullThreadDiffError, xt as ProjectWriteFileInput, xu as AuthClientMetadataDeviceType, y as WsServerDiscoverSourceControlRpc, ya as TerminalError, yc as ThreadApprovalResponseRequestedPayload, yi as EDITORS, yn as SourceControlRepositoryCloneUrls, yo as DesktopBackendBootstrap, yr as ServerProviderState, ys as OrchestrationEventMetadata, yt as ProjectSearchEntriesResult, yu as AuthBrowserSessionResult, z as WsSubscribeTerminalMetadataRpc, za as DesktopEnvironmentBootstrapSchema, zc as ThreadTurnStartCommand, zi as ResolvedKeybindingRule, zn as VcsUnsupportedOperationError, zo as EnvironmentHttpBadRequestError, zr as ServerUpsertKeybindingInput, zs as OrchestrationSession, zt as VcsCreateRefInput, zu as AuthTerminalOperateScope } from "./src-aiFPmAG7.js";
|
|
1
|
+
import { $ as WsCloudInstallRelayClientRpc, $a as ProviderSendTurnInput, $c as ProjectionPendingApprovalDecision, $i as OpenCodeSettings, $l as ProviderInstanceEnvironmentVariable, $n as SourceControlDiscoveryResult, $o as DesktopUpdateStatusSchema, $r as ServerProcessResourceHistorySummary, $s as ModelSelection, $t as ReviewDiffPreviewInput, $u as AuthWebSocketTicketResult, Aa as ResolvedKeybindingRule, Ac as OrchestrationSession, Ai as ServerUpsertKeybindingInput, Al as ThreadTurnStartCommand, An as VcsCreateRefInput, Ao as DesktopEnvironmentBootstrapSchema, Ar as VcsUnsupportedOperationError, As as EnvironmentHttpBadRequestError, At as WsSourceControlPublishRepositoryRpc, Au as AuthBrowserSessionResult, Ba as ProviderRuntimeThreadGoalStatus, Bc as OrchestrationThreadGoal, Bi as DEFAULT_CLIENT_SETTINGS, Bl as ModelCapabilities, Bn as VcsRemoveWorktreeInput, Bo as DesktopSshEnvironmentEnsureResultSchema, Br as ServerConfigStreamSnapshotEvent, Bs as EnvironmentOperationForbiddenReason, Bt as WsTerminalOpenRpc, Bu as AuthOrchestrationReadScope, Ca as MAX_KEYBINDINGS_COUNT, Cc as OrchestrationProjectShell, Cd as TrimmedNonEmptyString, Ci as ServerTraceDiagnosticsErrorKind, Cl as ThreadRevertedPayload, Cn as GitPullRequestRefInput, Co as TerminalWriteInput, Cr as VcsOutputDecodeError, Cs as EnvironmentAuthenticatedPrincipal, Ct as WsServerSignalProcessRpc, Cu as AuthAccessStreamPairingLinkUpsertedEvent, Da as MAX_WHEN_EXPRESSION_DEPTH, Dc as OrchestrationReplayEventsError, Di as ServerTraceDiagnosticsResult, Dl as ThreadTurnDiff, Dn as GitRunStackedActionToastRunAction, Do as DesktopCloudAuthFetchInputSchema, Dr as VcsRemote, Ds as EnvironmentCloudRelayConfigResult, Dt as WsShellOpenInEditorRpc, Du as AuthAccessWriteScope, Ea as MAX_SCRIPT_ID_LENGTH, Ec as OrchestrationReadModel, Ei as ServerTraceDiagnosticsRecentFailure, El as ThreadSessionStopRequestedPayload, En as GitRunStackedActionResult, Eo as DesktopAppStageLabelSchema, Er as VcsProcessTimeoutError, Es as EnvironmentCloudPreferencesRequest, Et as WsServerUpsertKeybindingRpc, Eu as AuthAccessTokenType, Fa as CanonicalItemType, Fc as OrchestrationSubscribeThreadInput, Fi as ClientSettingsSchema, Fl as DEFAULT_GIT_TEXT_GENERATION_MODEL, Fn as VcsListRefsInput, Fo as DesktopSshBearerBootstrapInputSchema, Fr as ServerConfigSettingsUpdatedPayload, Fs as EnvironmentHttpUnauthorizedError, Ft as WsSubscribeTerminalMetadataRpc, Fu as AuthCreatePairingCredentialInput, Ga as ToolLifecycleItemType, Gc as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Gi as DEFAULT_SIDEBAR_THREAD_PREVIEW_COUNT, Gl as ProviderOptionSelection, Gn as VcsStatusStreamEvent, Go as DesktopSshPasswordPromptCancelledType, Gr as ServerLifecycleStreamWelcomeEvent, Gs as AssistantDeliveryMode, Gt as WsVcsCreateWorktreeRpc, Gu as AuthReviewWriteScope, Ha as RuntimeEventRaw, Hc as OrchestrationThreadShell, Hi as DEFAULT_SERVER_SETTINGS, Hl as ProviderOptionChoice, Hn as VcsStatusLocalResult, Ho as DesktopSshHostSourceSchema, Hr as ServerLifecycleReadyPayload, Hs as EnvironmentRequestInvalidError, Ht as WsTerminalRestartRpc, Hu as AuthPairingLink, Ia as CanonicalRequestType, Ic as OrchestrationThread, Ii as CodexSettings, Il as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, In as VcsListRefsResult, Io as DesktopSshBearerRequestInputSchema, Ir as ServerConfigStreamEvent, Is as EnvironmentInternalError, It as WsSubscribeVcsStatusRpc, Iu as AuthEnvironmentBootstrapTokenType, Ja as ProviderEvent, Jc as ProjectCreatedPayload, Ji as DEFAULT_UNIFIED_SETTINGS, Jl as SelectProviderOptionDescriptor, Jn as ChangeRequest, Jo as DesktopThemeSchema, Jr as ServerProcessDiagnosticsEntry, Js as ClientOrchestrationCommand, Jt as WsVcsPullRpc, Ju as AuthSessionState, Ka as UserInputQuestion, Kc as PROVIDER_SEND_TURN_MAX_INPUT_CHARS, Ki as DEFAULT_SIDEBAR_THREAD_SORT_ORDER, Kl as ProviderOptionSelectionValue, Kn as VcsSwitchRefInput, Ko as DesktopSshPasswordPromptRequestSchema, Kr as ServerLifecycleWelcomePayload, Ks as ChatAttachment, Kt as WsVcsInitRpc, Ku as AuthRevokeClientSessionInput, La as ItemLifecyclePayload, Lc as OrchestrationThreadActivity, Li as ContextMenuStyle, Ll as DEFAULT_MODEL, Ln as VcsPullInput, Lo as DesktopSshEnvironmentBootstrapSchema, Lr as ServerConfigStreamKeybindingsUpdatedEvent, Ls as EnvironmentInternalErrorReason, Lt as WsTerminalAttachRpc, Lu as AuthEnvironmentScope, Ma as SCRIPT_RUN_COMMAND_PATTERN, Mc as OrchestrationShellSnapshot, Mi as isProviderAvailable, Ml as ThreadUnarchivedPayload, Mn as VcsCreateWorktreeInput, Mo as DesktopRuntimeInfoSchema, Mr as ServerConfigIssue, Ms as EnvironmentHttpConflictError, Mt as WsSubscribeServerConfigRpc, Mu as AuthClientMetadataDeviceType, Na as THREAD_JUMP_KEYBINDING_COMMANDS, Nc as OrchestrationShellStreamEvent, Ni as ClaudeSettings, Nl as TurnCountRange, Nn as VcsCreateWorktreeResult, No as DesktopServerExposureModeSchema, Nr as ServerConfigKeybindingsUpdatedPayload, Ns as EnvironmentHttpForbiddenError, Nt as WsSubscribeServerLifecycleRpc, Nu as AuthClientPresentationMetadata, Oa as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, Oc as OrchestrationReplayEventsInput, Oi as ServerTraceDiagnosticsSpanOccurrence, Ol as ThreadTurnDiffCompletedPayload, On as GitStackedAction, Oo as DesktopCloudAuthFetchResultSchema, Or as VcsRepositoryDetectionError, Os as EnvironmentConnectHttpApi, Ot as WsSourceControlCloneRepositoryRpc, Ou as AuthAdministrativeScopes, Pa as THREAD_KEYBINDING_COMMANDS, Pc as OrchestrationShellStreamItem, Pi as ClientSettingsPatch, Pl as BooleanProviderOptionDescriptor, Pn as VcsInitInput, Po as DesktopServerExposureStateSchema, Pr as ServerConfigProviderStatusesPayload, Ps as EnvironmentHttpInternalServerError, Pt as WsSubscribeTerminalEventsRpc, Pu as AuthClientSession, Q as WsCloudGetRelayClientStatusRpc, Qa as ProviderRespondToUserInputInput, Qc as ProjectScriptIcon, Qi as ObservabilitySettings, Ql as ProviderInstanceEnvironment, Qn as SourceControlCloneRepositoryResult, Qo as DesktopUpdateStateSchema, Qr as ServerProcessResourceHistoryResult, Qs as DispatchResult, Qt as ReviewDiffPreviewError, Qu as AuthTokenExchangeRequest, Ra as ProviderRuntimeEvent, Rc as OrchestrationThreadActivityTone, Ri as CursorSettings, Rl as DEFAULT_MODEL_BY_PROVIDER, Rn as VcsPullResult, Ro as DesktopSshEnvironmentEnsureInputSchema, Rr as ServerConfigStreamProviderStatusesEvent, Rs as EnvironmentMetadataHttpApi, Rt as WsTerminalClearRpc, Ru as AuthEnvironmentScopes, Sa as KeybindingsConfigError, Sc as OrchestrationProject, Sd as ThreadId, Si as ServerSignalProcessResult, Sl as ThreadProposedPlanUpsertedPayload, Sn as GitPreparePullRequestThreadResult, So as TerminalThreadInput, Sr as VcsListWorkspaceFilesResult, Ss as EnvironmentAuthenticatedAuth, St as WsServerRemoveKeybindingRpc, Su as AuthAccessStreamPairingLinkRemovedEvent, Ta as MAX_KEYBINDING_WHEN_LENGTH, Tc as OrchestrationProposedPlanId, Td as TurnId, Ti as ServerTraceDiagnosticsLogEvent, Tl as ThreadSessionSetPayload, Tn as GitRunStackedActionInput, To as DesktopAppBrandingSchema, Tr as VcsProcessSpawnError, Ts as EnvironmentCloudLinkStateResult, Tt as WsServerUpdateSettingsRpc, Tu as AuthAccessTokenResult, Ua as TOOL_LIFECYCLE_ITEM_TYPES, Uc as OrchestrationThreadStreamItem, Ui as DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE, Ul as ProviderOptionDescriptor, Un as VcsStatusRemoteResult, Uo as DesktopSshHttpBaseUrlInputSchema, Ur as ServerLifecycleStreamEvent, Us as EnvironmentRequestInvalidReason, Ut as WsTerminalWriteRpc, Uu as AuthRelayReadScope, Va as ProviderRuntimeTurnStatus, Vc as OrchestrationThreadGoalStatus, Vi as DEFAULT_CONTEXT_MENU_STYLE, Vl as PROVIDER_DISPLAY_NAMES, Vn as VcsStatusInput, Vo as DesktopSshEnvironmentTargetSchema, Vr as ServerConfigUpdatedPayload, Vs as EnvironmentOrchestrationHttpApi, Vt as WsTerminalResizeRpc, Vu as AuthPairingCredentialResult, Wa as ThreadTokenUsageSnapshot, Wc as PROVIDER_SEND_TURN_MAX_ATTACHMENTS, Wi as DEFAULT_SIDEBAR_PROJECT_SORT_ORDER, Wl as ProviderOptionDescriptorType, Wn as VcsStatusResult, Wo as DesktopSshPasswordPromptCancelledResultSchema, Wr as ServerLifecycleStreamReadyEvent, Ws as EnvironmentScopeRequiredError, Wt as WsVcsCreateRefRpc, Wu as AuthRelayWriteScope, Xa as ProviderInterruptTurnInput, Xc as ProjectMetaUpdatedPayload, Xi as MAX_SIDEBAR_THREAD_PREVIEW_COUNT, Xl as ProviderInstanceConfig, Xn as SourceControlCloneProtocol, Xo as DesktopUpdateChannelSchema, Xr as ServerProcessResourceHistoryBucket, Xs as DEFAULT_PROVIDER_INTERACTION_MODE, Xt as WsVcsRemoveWorktreeRpc, Xu as AuthTerminalOperateScope, Ya as ProviderGoalRequestInput, Yc as ProjectDeletedPayload, Yi as GrokSettings, Yl as ProviderDriverKind, Yn as ChangeRequestState, Yo as DesktopUpdateActionResultSchema, Yr as ServerProcessDiagnosticsResult, Ys as CorrelationId, Yt as WsVcsRefreshStatusRpc, Yu as AuthStandardClientScopes, Z as WS_METHODS, Za as ProviderRespondToRequestInput, Zc as ProjectScript, Zi as MIN_SIDEBAR_THREAD_PREVIEW_COUNT, Zl as ProviderInstanceConfigMap, Zn as SourceControlCloneRepositoryInput, Zo as DesktopUpdateCheckResultSchema, Zr as ServerProcessResourceHistoryInput, Zs as DEFAULT_RUNTIME_MODE, Zt as WsVcsSwitchRefRpc, Zu as AuthTokenExchangeGrantType, _a as KeybindingShortcut, _c as OrchestrationGetTurnDiffInput, _d as ProviderItemId, _i as ServerProviderVersionAdvisoryStatus, _l as ThreadGoalRequestedPayload, _n as GitActionProgressStream, _o as TerminalRestartInput, _r as VcsDriverKind, _s as AuthOtherClientSessionsRevokeResult, _t as WsServerGetProcessDiagnosticsRpc, _u as AuthAccessSnapshot, aa as SidebarThreadPreviewCount, ac as OrchestrationCheckpointSummary, ad as ApprovalRequestId, ai as ServerProviderContinuation, al as ProviderSandboxMode, an as FilesystemBrowseInput, ao as TerminalAttachInput, ar as SourceControlProviderInfo, as as AdvertisedEndpointProvider, at as WsOrchestrationGetArchivedShellSnapshotRpc, au as EnvironmentConnectionState, ba as KeybindingWhenNode, bc as OrchestrationMessage, bd as RuntimeSessionId, bi as ServerRemoveKeybindingResult, bl as ThreadMessageSentPayload, bn as GitManagerServiceError, bo as TerminalSessionStatus, br as VcsFreshnessSource, bs as EnvironmentAuthInvalidError, bt as WsServerGetTraceDiagnosticsRpc, bu as AuthAccessStreamError, ca as TimestampFormat, cc as OrchestrationDispatchCommandError, cd as CommandId, ci as ServerProviderSlashCommand, cl as RuntimeMode, cn as ProjectSearchEntriesError, co as TerminalCloseInput, cr as SourceControlPublishRepositoryResult, cs as AdvertisedEndpointSource, ct as WsOrchestrationReplayEventsRpc, cu as ExecutionEnvironmentPlatform, da as EditorId, dc as OrchestrationEventType, dd as IsoDateTime, di as ServerProviderUpdateError, dl as ThreadArchivedPayload, dn as ProjectWriteFileError, do as TerminalEvent, dr as SourceControlRepositoryError, ds as RelayClientInstallFailedError, dt as WsProjectsSearchEntriesRpc, du as RepositoryIdentity, ea as ServerSettings, ec as ORCHESTRATION_WS_METHODS, ed as EnvironmentAuthorizationError, ei as ServerProcessSignal, el as ProjectionPendingApprovalStatus, en as ReviewDiffPreviewResult, eo as ProviderSession, er as SourceControlDiscoveryStatus, es as PersistedSavedEnvironmentRecordSchema, et as WsFilesystemBrowseRpc, eu as ProviderInstanceEnvironmentVariableName, fa as EditorLaunchStyle, fc as OrchestrationGetFullThreadDiffError, fd as MessageId, fi as ServerProviderUpdateInput, fl as ThreadCheckpointRevertRequestedPayload, fn as ProjectWriteFileInput, fo as TerminalHistoryError, fr as SourceControlRepositoryInfo, fs as RelayClientInstallFailureReasonSchema, ft as WsProjectsWriteFileRpc, fu as RepositoryIdentityLocator, ga as KeybindingRule, gc as OrchestrationGetTurnDiffError, gd as ProjectId, gi as ServerProviderVersionAdvisory, gl as ThreadGoalRequest, gn as GitActionProgressPhase, go as TerminalResizeInput, gr as VcsDriverCapabilities, gs as AuthClientSessionRevokeResult, gt as WsServerGetConfigRpc, gu as AuthAccessReadScope, ha as KeybindingCommand, hc as OrchestrationGetSnapshotError, hd as PositiveInt, hi as ServerProviderUpdatedPayload, hl as ThreadGoalClearedPayload, hn as GitActionProgressKind, ho as TerminalOpenInput, hr as VcsDiscoveryItem, hs as RelayClientStatusSchema, ht as WsServerDiscoverSourceControlRpc, hu as ScopedThreadSessionRef, ia as SidebarProjectSortOrder, ic as OrchestrationCheckpointStatus, id as ServerAuthSessionMethod, ii as ServerProviderAvailability, il as ProviderRequestKind, in as FilesystemBrowseError, io as DEFAULT_TERMINAL_ID, ir as SourceControlProviderError, is as AdvertisedEndpointHostedHttpsCompatibility, it as WsOrchestrationDispatchCommandRpc, iu as isProviderDriverKind, ja as ResolvedKeybindingsConfig, jc as OrchestrationSessionStatus, ji as ServerUpsertKeybindingResult, jl as ThreadTurnStartRequestedPayload, jn as VcsCreateRefResult, jo as DesktopRuntimeArchSchema, jr as ServerConfig, js as EnvironmentHttpCommonError, jt as WsSubscribeAuthAccessRpc, ju as AuthClientMetadata, ka as MODEL_PICKER_KEYBINDING_COMMANDS, kc as OrchestrationRpcSchemas, ki as ServerTraceDiagnosticsSpanSummary, kl as ThreadTurnInterruptRequestedPayload, kn as TextGenerationError, ko as DesktopDiscoveredSshHostSchema, kr as VcsRepositoryIdentity, ks as EnvironmentHttpApi, kt as WsSourceControlLookupRepositoryRpc, ku as AuthBrowserSessionRequest, la as makeProviderSettingsSchema, lc as OrchestrationEvent, ld as EnvironmentId, li as ServerProviderSlashCommandInput, ll as ThreadActivityAppendedPayload, ln as ProjectSearchEntriesInput, lo as TerminalCwdError, lr as SourceControlPublishStatus, ls as AdvertisedEndpointStatus, lt as WsOrchestrationSubscribeShellRpc, lu as ExecutionEnvironmentPlatformArch, ma as LaunchEditorInput, mc as OrchestrationGetFullThreadDiffResult, md as PortSchema, mi as ServerProviderUpdateStatus, ml as ThreadDeletedPayload, mn as GitActionProgressEvent, mo as TerminalNotRunningError, mr as SourceControlRepositoryVisibility, ms as RelayClientInstallProgressStageSchema, mt as WsRpcGroup, mu as ScopedThreadRef, na as ServerSettingsPatch, nc as OrchestrationAggregateKind, nd as ServerAuthDescriptor, ni as ServerProviderAuth, nl as ProviderApprovalPolicy, nn as ReviewDiffPreviewSourceKind, no as ProviderStopSessionInput, nr as SourceControlProviderAuthStatus, ns as AdvertisedEndpoint, nt as WsGitResolvePullRequestRpc, nu as ProviderInstanceRef, oa as SidebarThreadSortOrder, oc as OrchestrationCommand, od as AuthSessionId, oi as ServerProviderModel, ol as ProviderSessionRuntimeStatus, on as FilesystemBrowseResult, oo as TerminalAttachStreamEvent, or as SourceControlProviderKind, os as AdvertisedEndpointProviderKind, ot as WsOrchestrationGetFullThreadDiffRpc, ou as ExecutionEnvironmentCapabilities, pa as ExternalLauncherError, pc as OrchestrationGetFullThreadDiffInput, pd as NonNegativeInt, pi as ServerProviderUpdateState, pl as ThreadCreatedPayload, pn as ProjectWriteFileResult, po as TerminalMetadataStreamEvent, pr as SourceControlRepositoryLookupInput, ps as RelayClientInstallProgressEventSchema, pt as WsReviewGetDiffPreviewRpc, pu as ScopedProjectRef, qa as isToolLifecycleItemType, qc as ProjectCreateCommand, qi as DEFAULT_TIMESTAMP_FORMAT, ql as ProviderOptionSelections, qn as VcsSwitchRefResult, qo as DesktopSshPasswordPromptResolutionInputSchema, qr as ServerObservability, qs as ChatImageAttachment, qt as WsVcsListRefsRpc, qu as AuthRevokePairingLinkInput, ra as SidebarProjectGroupingMode, rc as OrchestrationCheckpointFile, rd as ServerAuthPolicy, ri as ServerProviderAuthStatus, rl as ProviderInteractionMode, rn as FilesystemBrowseEntry, ro as ProviderTurnStartResult, rr as SourceControlProviderDiscoveryItem, rs as AdvertisedEndpointCompatibility, rt as WsGitRunStackedActionRpc, ru as defaultInstanceIdForDriver, sa as ThreadEnvMode, sc as OrchestrationCommandReceiptStatus, sd as CheckpointRef, si as ServerProviderSkill, sl as ProviderUserInputAnswers, sn as ProjectEntry, so as TerminalClearInput, sr as SourceControlPublishRepositoryInput, ss as AdvertisedEndpointReachability, st as WsOrchestrationGetTurnDiffRpc, su as ExecutionEnvironmentDescriptor, ta as ServerSettingsError, tc as OrchestrationActorKind, td as ServerAuthBootstrapMethod, ti as ServerProvider, tl as ProviderApprovalDecision, tn as ReviewDiffPreviewSource, to as ProviderSessionStartInput, tr as SourceControlProviderAuth, ts as PickFolderOptionsSchema, tt as WsGitPreparePullRequestThreadRpc, tu as ProviderInstanceId, ua as EDITORS, uc as OrchestrationEventMetadata, ud as EventId, ui as ServerProviderState, ul as ThreadApprovalResponseRequestedPayload, un as ProjectSearchEntriesResult, uo as TerminalError, ur as SourceControlRepositoryCloneUrls, us as DesktopBackendBootstrap, ut as WsOrchestrationSubscribeThreadRpc, uu as ExecutionEnvironmentPlatformOs, va as KeybindingValue, vc as OrchestrationGetTurnDiffResult, vd as RuntimeItemId, vi as ServerProviders, vl as ThreadGoalUpdatedPayload, vn as GitCommandError, vo as TerminalSessionLookupError, vr as VcsError, vs as AuthPairingLinkRevokeResult, vt as WsServerGetProcessResourceHistoryRpc, vu as AuthAccessStreamClientRemovedEvent, wa as MAX_KEYBINDING_VALUE_LENGTH, wc as OrchestrationProposedPlan, wd as TrimmedString, wi as ServerTraceDiagnosticsFailureSummary, wl as ThreadRuntimeModeSetPayload, wn as GitResolvePullRequestResult, wo as ContextMenuItemSchema, wr as VcsProcessExitError, ws as EnvironmentCloudEndpointUnavailableError, wt as WsServerUpdateProviderRpc, wu as AuthAccessStreamSnapshotEvent, xa as KeybindingsConfig, xc as OrchestrationMessageRole, xd as RuntimeTaskId, xi as ServerSignalProcessInput, xl as ThreadMetaUpdatedPayload, xn as GitPreparePullRequestThreadInput, xo as TerminalSummary, xr as VcsListRemotesResult, xs as EnvironmentAuthInvalidReason, xt as WsServerRefreshProvidersRpc, xu as AuthAccessStreamEvent, ya as KeybindingWhen, yc as OrchestrationLatestTurn, yd as RuntimeRequestId, yi as ServerRemoveKeybindingInput, yl as ThreadInteractionModeSetPayload, yn as GitManagerError, yo as TerminalSessionSnapshot, yr as VcsFreshness, ys as EnvironmentAuthHttpApi, yt as WsServerGetSettingsRpc, yu as AuthAccessStreamClientUpsertedEvent, za as ProviderRuntimeEventV2, zc as OrchestrationThreadDetailSnapshot, zi as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, zl as MODEL_SLUG_ALIASES_BY_PROVIDER, zn as VcsRef, zo as DesktopSshEnvironmentEnsureOptionsSchema, zr as ServerConfigStreamSettingsUpdatedEvent, zs as EnvironmentOperationForbiddenError, zt as WsTerminalCloseRpc, zu as AuthOrchestrationOperateScope } from "./shared.js";
|
|
2
2
|
export { AdvertisedEndpoint, AdvertisedEndpointCompatibility, AdvertisedEndpointHostedHttpsCompatibility, AdvertisedEndpointProvider, AdvertisedEndpointProviderKind, AdvertisedEndpointReachability, AdvertisedEndpointSource, AdvertisedEndpointStatus, ApprovalRequestId, AssistantDeliveryMode, AuthAccessReadScope, AuthAccessSnapshot, AuthAccessStreamClientRemovedEvent, AuthAccessStreamClientUpsertedEvent, AuthAccessStreamError, AuthAccessStreamEvent, AuthAccessStreamPairingLinkRemovedEvent, AuthAccessStreamPairingLinkUpsertedEvent, AuthAccessStreamSnapshotEvent, AuthAccessTokenResult, AuthAccessTokenType, AuthAccessWriteScope, AuthAdministrativeScopes, AuthBrowserSessionRequest, AuthBrowserSessionResult, AuthClientMetadata, AuthClientMetadataDeviceType, AuthClientPresentationMetadata, AuthClientSession, AuthClientSessionRevokeResult, AuthCreatePairingCredentialInput, AuthEnvironmentBootstrapTokenType, AuthEnvironmentScope, AuthEnvironmentScopes, AuthOrchestrationOperateScope, AuthOrchestrationReadScope, AuthOtherClientSessionsRevokeResult, AuthPairingCredentialResult, AuthPairingLink, AuthPairingLinkRevokeResult, AuthRelayReadScope, AuthRelayWriteScope, AuthReviewWriteScope, AuthRevokeClientSessionInput, AuthRevokePairingLinkInput, AuthSessionId, AuthSessionState, AuthStandardClientScopes, AuthTerminalOperateScope, AuthTokenExchangeGrantType, AuthTokenExchangeRequest, AuthWebSocketTicketResult, BooleanProviderOptionDescriptor, CanonicalItemType, CanonicalRequestType, ChangeRequest, ChangeRequestState, ChatAttachment, ChatImageAttachment, CheckpointRef, ClaudeSettings, ClientOrchestrationCommand, ClientSettingsPatch, ClientSettingsSchema, CodexSettings, CommandId, ContextMenuItemSchema, ContextMenuStyle, CorrelationId, CursorSettings, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, DEFAULT_CLIENT_SETTINGS, DEFAULT_CONTEXT_MENU_STYLE, DEFAULT_GIT_TEXT_GENERATION_MODEL, DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, DEFAULT_MODEL, DEFAULT_MODEL_BY_PROVIDER, DEFAULT_PROVIDER_INTERACTION_MODE, DEFAULT_RUNTIME_MODE, DEFAULT_SERVER_SETTINGS, DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE, DEFAULT_SIDEBAR_PROJECT_SORT_ORDER, DEFAULT_SIDEBAR_THREAD_PREVIEW_COUNT, DEFAULT_SIDEBAR_THREAD_SORT_ORDER, DEFAULT_TERMINAL_ID, DEFAULT_TIMESTAMP_FORMAT, DEFAULT_UNIFIED_SETTINGS, DesktopAppBrandingSchema, DesktopAppStageLabelSchema, DesktopBackendBootstrap, DesktopCloudAuthFetchInputSchema, DesktopCloudAuthFetchResultSchema, DesktopDiscoveredSshHostSchema, DesktopEnvironmentBootstrapSchema, DesktopRuntimeArchSchema, DesktopRuntimeInfoSchema, DesktopServerExposureModeSchema, DesktopServerExposureStateSchema, DesktopSshBearerBootstrapInputSchema, DesktopSshBearerRequestInputSchema, DesktopSshEnvironmentBootstrapSchema, DesktopSshEnvironmentEnsureInputSchema, DesktopSshEnvironmentEnsureOptionsSchema, DesktopSshEnvironmentEnsureResultSchema, DesktopSshEnvironmentTargetSchema, DesktopSshHostSourceSchema, DesktopSshHttpBaseUrlInputSchema, DesktopSshPasswordPromptCancelledResultSchema, DesktopSshPasswordPromptCancelledType, DesktopSshPasswordPromptRequestSchema, DesktopSshPasswordPromptResolutionInputSchema, DesktopThemeSchema, DesktopUpdateActionResultSchema, DesktopUpdateChannelSchema, DesktopUpdateCheckResultSchema, DesktopUpdateStateSchema, DesktopUpdateStatusSchema, DispatchResult, EDITORS, EditorId, EditorLaunchStyle, EnvironmentAuthHttpApi, EnvironmentAuthInvalidError, EnvironmentAuthInvalidReason, EnvironmentAuthenticatedAuth, EnvironmentAuthenticatedPrincipal, EnvironmentAuthorizationError, EnvironmentCloudEndpointUnavailableError, EnvironmentCloudLinkStateResult, EnvironmentCloudPreferencesRequest, EnvironmentCloudRelayConfigResult, EnvironmentConnectHttpApi, EnvironmentConnectionState, EnvironmentHttpApi, EnvironmentHttpBadRequestError, EnvironmentHttpCommonError, EnvironmentHttpConflictError, EnvironmentHttpForbiddenError, EnvironmentHttpInternalServerError, EnvironmentHttpUnauthorizedError, EnvironmentId, EnvironmentInternalError, EnvironmentInternalErrorReason, EnvironmentMetadataHttpApi, EnvironmentOperationForbiddenError, EnvironmentOperationForbiddenReason, EnvironmentOrchestrationHttpApi, EnvironmentRequestInvalidError, EnvironmentRequestInvalidReason, EnvironmentScopeRequiredError, EventId, ExecutionEnvironmentCapabilities, ExecutionEnvironmentDescriptor, ExecutionEnvironmentPlatform, ExecutionEnvironmentPlatformArch, ExecutionEnvironmentPlatformOs, ExternalLauncherError, FilesystemBrowseEntry, FilesystemBrowseError, FilesystemBrowseInput, FilesystemBrowseResult, GitActionProgressEvent, GitActionProgressKind, GitActionProgressPhase, GitActionProgressStream, GitCommandError, GitManagerError, GitManagerServiceError, GitPreparePullRequestThreadInput, GitPreparePullRequestThreadResult, GitPullRequestRefInput, GitResolvePullRequestResult, GitRunStackedActionInput, GitRunStackedActionResult, GitRunStackedActionToastRunAction, GitStackedAction, GrokSettings, IsoDateTime, ItemLifecyclePayload, KeybindingCommand, KeybindingRule, KeybindingShortcut, KeybindingValue, KeybindingWhen, KeybindingWhenNode, KeybindingsConfig, KeybindingsConfigError, LaunchEditorInput, MAX_KEYBINDINGS_COUNT, MAX_KEYBINDING_VALUE_LENGTH, MAX_KEYBINDING_WHEN_LENGTH, MAX_SCRIPT_ID_LENGTH, MAX_SIDEBAR_THREAD_PREVIEW_COUNT, MAX_WHEN_EXPRESSION_DEPTH, MIN_SIDEBAR_THREAD_PREVIEW_COUNT, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, MODEL_PICKER_KEYBINDING_COMMANDS, MODEL_SLUG_ALIASES_BY_PROVIDER, MessageId, ModelCapabilities, ModelSelection, NonNegativeInt, ORCHESTRATION_WS_METHODS, ObservabilitySettings, OpenCodeSettings, OrchestrationActorKind, OrchestrationAggregateKind, OrchestrationCheckpointFile, OrchestrationCheckpointStatus, OrchestrationCheckpointSummary, OrchestrationCommand, OrchestrationCommandReceiptStatus, OrchestrationDispatchCommandError, OrchestrationEvent, OrchestrationEventMetadata, OrchestrationEventType, OrchestrationGetFullThreadDiffError, OrchestrationGetFullThreadDiffInput, OrchestrationGetFullThreadDiffResult, OrchestrationGetSnapshotError, OrchestrationGetTurnDiffError, OrchestrationGetTurnDiffInput, OrchestrationGetTurnDiffResult, OrchestrationLatestTurn, OrchestrationMessage, OrchestrationMessageRole, OrchestrationProject, OrchestrationProjectShell, OrchestrationProposedPlan, OrchestrationProposedPlanId, OrchestrationReadModel, OrchestrationReplayEventsError, OrchestrationReplayEventsInput, OrchestrationRpcSchemas, OrchestrationSession, OrchestrationSessionStatus, OrchestrationShellSnapshot, OrchestrationShellStreamEvent, OrchestrationShellStreamItem, OrchestrationSubscribeThreadInput, OrchestrationThread, OrchestrationThreadActivity, OrchestrationThreadActivityTone, OrchestrationThreadDetailSnapshot, OrchestrationThreadGoal, OrchestrationThreadGoalStatus, OrchestrationThreadShell, OrchestrationThreadStreamItem, PROVIDER_DISPLAY_NAMES, PROVIDER_SEND_TURN_MAX_ATTACHMENTS, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, PROVIDER_SEND_TURN_MAX_INPUT_CHARS, PersistedSavedEnvironmentRecordSchema, PickFolderOptionsSchema, PortSchema, PositiveInt, ProjectCreateCommand, ProjectCreatedPayload, ProjectDeletedPayload, ProjectEntry, ProjectId, ProjectMetaUpdatedPayload, ProjectScript, ProjectScriptIcon, ProjectSearchEntriesError, ProjectSearchEntriesInput, ProjectSearchEntriesResult, ProjectWriteFileError, ProjectWriteFileInput, ProjectWriteFileResult, ProjectionPendingApprovalDecision, ProjectionPendingApprovalStatus, ProviderApprovalDecision, ProviderApprovalPolicy, ProviderDriverKind, ProviderEvent, ProviderGoalRequestInput, ProviderInstanceConfig, ProviderInstanceConfigMap, ProviderInstanceEnvironment, ProviderInstanceEnvironmentVariable, ProviderInstanceEnvironmentVariableName, ProviderInstanceId, ProviderInstanceRef, ProviderInteractionMode, ProviderInterruptTurnInput, ProviderItemId, ProviderOptionChoice, ProviderOptionDescriptor, ProviderOptionDescriptorType, ProviderOptionSelection, ProviderOptionSelectionValue, ProviderOptionSelections, ProviderRequestKind, ProviderRespondToRequestInput, ProviderRespondToUserInputInput, ProviderRuntimeEvent, ProviderRuntimeEventV2, ProviderRuntimeThreadGoalStatus, ProviderRuntimeTurnStatus, ProviderSandboxMode, ProviderSendTurnInput, ProviderSession, ProviderSessionRuntimeStatus, ProviderSessionStartInput, ProviderStopSessionInput, ProviderTurnStartResult, ProviderUserInputAnswers, RelayClientInstallFailedError, RelayClientInstallFailureReasonSchema, RelayClientInstallProgressEventSchema, RelayClientInstallProgressStageSchema, RelayClientStatusSchema, RepositoryIdentity, RepositoryIdentityLocator, ResolvedKeybindingRule, ResolvedKeybindingsConfig, ReviewDiffPreviewError, ReviewDiffPreviewInput, ReviewDiffPreviewResult, ReviewDiffPreviewSource, ReviewDiffPreviewSourceKind, RuntimeEventRaw, RuntimeItemId, RuntimeMode, RuntimeRequestId, RuntimeSessionId, RuntimeTaskId, SCRIPT_RUN_COMMAND_PATTERN, ScopedProjectRef, ScopedThreadRef, ScopedThreadSessionRef, SelectProviderOptionDescriptor, ServerAuthBootstrapMethod, ServerAuthDescriptor, ServerAuthPolicy, ServerAuthSessionMethod, ServerConfig, ServerConfigIssue, ServerConfigKeybindingsUpdatedPayload, ServerConfigProviderStatusesPayload, ServerConfigSettingsUpdatedPayload, ServerConfigStreamEvent, ServerConfigStreamKeybindingsUpdatedEvent, ServerConfigStreamProviderStatusesEvent, ServerConfigStreamSettingsUpdatedEvent, ServerConfigStreamSnapshotEvent, ServerConfigUpdatedPayload, ServerLifecycleReadyPayload, ServerLifecycleStreamEvent, ServerLifecycleStreamReadyEvent, ServerLifecycleStreamWelcomeEvent, ServerLifecycleWelcomePayload, ServerObservability, ServerProcessDiagnosticsEntry, ServerProcessDiagnosticsResult, ServerProcessResourceHistoryBucket, ServerProcessResourceHistoryInput, ServerProcessResourceHistoryResult, ServerProcessResourceHistorySummary, ServerProcessSignal, ServerProvider, ServerProviderAuth, ServerProviderAuthStatus, ServerProviderAvailability, ServerProviderContinuation, ServerProviderModel, ServerProviderSkill, ServerProviderSlashCommand, ServerProviderSlashCommandInput, ServerProviderState, ServerProviderUpdateError, ServerProviderUpdateInput, ServerProviderUpdateState, ServerProviderUpdateStatus, ServerProviderUpdatedPayload, ServerProviderVersionAdvisory, ServerProviderVersionAdvisoryStatus, ServerProviders, ServerRemoveKeybindingInput, ServerRemoveKeybindingResult, ServerSettings, ServerSettingsError, ServerSettingsPatch, ServerSignalProcessInput, ServerSignalProcessResult, ServerTraceDiagnosticsErrorKind, ServerTraceDiagnosticsFailureSummary, ServerTraceDiagnosticsLogEvent, ServerTraceDiagnosticsRecentFailure, ServerTraceDiagnosticsResult, ServerTraceDiagnosticsSpanOccurrence, ServerTraceDiagnosticsSpanSummary, ServerUpsertKeybindingInput, ServerUpsertKeybindingResult, SidebarProjectGroupingMode, SidebarProjectSortOrder, SidebarThreadPreviewCount, SidebarThreadSortOrder, SourceControlCloneProtocol, SourceControlCloneRepositoryInput, SourceControlCloneRepositoryResult, SourceControlDiscoveryResult, SourceControlDiscoveryStatus, SourceControlProviderAuth, SourceControlProviderAuthStatus, SourceControlProviderDiscoveryItem, SourceControlProviderError, SourceControlProviderInfo, SourceControlProviderKind, SourceControlPublishRepositoryInput, SourceControlPublishRepositoryResult, SourceControlPublishStatus, SourceControlRepositoryCloneUrls, SourceControlRepositoryError, SourceControlRepositoryInfo, SourceControlRepositoryLookupInput, SourceControlRepositoryVisibility, THREAD_JUMP_KEYBINDING_COMMANDS, THREAD_KEYBINDING_COMMANDS, TOOL_LIFECYCLE_ITEM_TYPES, TerminalAttachInput, TerminalAttachStreamEvent, TerminalClearInput, TerminalCloseInput, TerminalCwdError, TerminalError, TerminalEvent, TerminalHistoryError, TerminalMetadataStreamEvent, TerminalNotRunningError, TerminalOpenInput, TerminalResizeInput, TerminalRestartInput, TerminalSessionLookupError, TerminalSessionSnapshot, TerminalSessionStatus, TerminalSummary, TerminalThreadInput, TerminalWriteInput, TextGenerationError, ThreadActivityAppendedPayload, ThreadApprovalResponseRequestedPayload, ThreadArchivedPayload, ThreadCheckpointRevertRequestedPayload, ThreadCreatedPayload, ThreadDeletedPayload, ThreadEnvMode, ThreadGoalClearedPayload, ThreadGoalRequest, ThreadGoalRequestedPayload, ThreadGoalUpdatedPayload, ThreadId, ThreadInteractionModeSetPayload, ThreadMessageSentPayload, ThreadMetaUpdatedPayload, ThreadProposedPlanUpsertedPayload, ThreadRevertedPayload, ThreadRuntimeModeSetPayload, ThreadSessionSetPayload, ThreadSessionStopRequestedPayload, ThreadTokenUsageSnapshot, ThreadTurnDiff, ThreadTurnDiffCompletedPayload, ThreadTurnInterruptRequestedPayload, ThreadTurnStartCommand, ThreadTurnStartRequestedPayload, ThreadUnarchivedPayload, TimestampFormat, ToolLifecycleItemType, TrimmedNonEmptyString, TrimmedString, TurnCountRange, TurnId, UserInputQuestion, VcsCreateRefInput, VcsCreateRefResult, VcsCreateWorktreeInput, VcsCreateWorktreeResult, VcsDiscoveryItem, VcsDriverCapabilities, VcsDriverKind, VcsError, VcsFreshness, VcsFreshnessSource, VcsInitInput, VcsListRefsInput, VcsListRefsResult, VcsListRemotesResult, VcsListWorkspaceFilesResult, VcsOutputDecodeError, VcsProcessExitError, VcsProcessSpawnError, VcsProcessTimeoutError, VcsPullInput, VcsPullResult, VcsRef, VcsRemote, VcsRemoveWorktreeInput, VcsRepositoryDetectionError, VcsRepositoryIdentity, VcsStatusInput, VcsStatusLocalResult, VcsStatusRemoteResult, VcsStatusResult, VcsStatusStreamEvent, VcsSwitchRefInput, VcsSwitchRefResult, VcsUnsupportedOperationError, WS_METHODS, WsCloudGetRelayClientStatusRpc, WsCloudInstallRelayClientRpc, WsFilesystemBrowseRpc, WsGitPreparePullRequestThreadRpc, WsGitResolvePullRequestRpc, WsGitRunStackedActionRpc, WsOrchestrationDispatchCommandRpc, WsOrchestrationGetArchivedShellSnapshotRpc, WsOrchestrationGetFullThreadDiffRpc, WsOrchestrationGetTurnDiffRpc, WsOrchestrationReplayEventsRpc, WsOrchestrationSubscribeShellRpc, WsOrchestrationSubscribeThreadRpc, WsProjectsSearchEntriesRpc, WsProjectsWriteFileRpc, WsReviewGetDiffPreviewRpc, WsRpcGroup, WsServerDiscoverSourceControlRpc, WsServerGetConfigRpc, WsServerGetProcessDiagnosticsRpc, WsServerGetProcessResourceHistoryRpc, WsServerGetSettingsRpc, WsServerGetTraceDiagnosticsRpc, WsServerRefreshProvidersRpc, WsServerRemoveKeybindingRpc, WsServerSignalProcessRpc, WsServerUpdateProviderRpc, WsServerUpdateSettingsRpc, WsServerUpsertKeybindingRpc, WsShellOpenInEditorRpc, WsSourceControlCloneRepositoryRpc, WsSourceControlLookupRepositoryRpc, WsSourceControlPublishRepositoryRpc, WsSubscribeAuthAccessRpc, WsSubscribeServerConfigRpc, WsSubscribeServerLifecycleRpc, WsSubscribeTerminalEventsRpc, WsSubscribeTerminalMetadataRpc, WsSubscribeVcsStatusRpc, WsTerminalAttachRpc, WsTerminalClearRpc, WsTerminalCloseRpc, WsTerminalOpenRpc, WsTerminalResizeRpc, WsTerminalRestartRpc, WsTerminalWriteRpc, WsVcsCreateRefRpc, WsVcsCreateWorktreeRpc, WsVcsInitRpc, WsVcsListRefsRpc, WsVcsPullRpc, WsVcsRefreshStatusRpc, WsVcsRemoveWorktreeRpc, WsVcsSwitchRefRpc, defaultInstanceIdForDriver, isProviderAvailable, isProviderDriverKind, isToolLifecycleItemType, makeProviderSettingsSchema };
|
package/package.json
CHANGED
|
@@ -9,10 +9,12 @@ import type {
|
|
|
9
9
|
OrchestrationShellSnapshot,
|
|
10
10
|
OrchestrationThread,
|
|
11
11
|
OrchestrationThreadShell,
|
|
12
|
+
ProviderUserInputAnswers,
|
|
12
13
|
ServerProvider,
|
|
13
14
|
} from "#t3tools/contracts";
|
|
14
15
|
|
|
15
16
|
import type { ApplicationError } from "./error.ts";
|
|
17
|
+
import type { ThreadShow } from "./threads.ts";
|
|
16
18
|
|
|
17
19
|
export type StartThreadInput = {
|
|
18
20
|
readonly projectRef?: string;
|
|
@@ -71,6 +73,23 @@ export class T3Application extends Context.Service<
|
|
|
71
73
|
readonly getThreadMessages: (
|
|
72
74
|
threadId: string,
|
|
73
75
|
) => Effect.Effect<OrchestrationThread, ApplicationError>;
|
|
76
|
+
readonly showThread: (threadId: string) => Effect.Effect<ThreadShow, ApplicationError>;
|
|
77
|
+
readonly approveThread: (input: {
|
|
78
|
+
readonly threadId: string;
|
|
79
|
+
readonly requestId: string;
|
|
80
|
+
readonly decision: "accept" | "decline" | "cancel";
|
|
81
|
+
}) => Effect.Effect<
|
|
82
|
+
{ readonly threadId: string; readonly requestId: string; readonly dispatch: DispatchResult },
|
|
83
|
+
ApplicationError
|
|
84
|
+
>;
|
|
85
|
+
readonly respondToThread: (input: {
|
|
86
|
+
readonly threadId: string;
|
|
87
|
+
readonly requestId: string;
|
|
88
|
+
readonly answers: ProviderUserInputAnswers;
|
|
89
|
+
}) => Effect.Effect<
|
|
90
|
+
{ readonly threadId: string; readonly requestId: string; readonly dispatch: DispatchResult },
|
|
91
|
+
ApplicationError
|
|
92
|
+
>;
|
|
74
93
|
readonly archiveThread: (threadId: string) => Effect.Effect<DispatchResult, ApplicationError>;
|
|
75
94
|
readonly startThread: (
|
|
76
95
|
input: StartThreadInput,
|
|
@@ -2,12 +2,15 @@ import * as Crypto from "effect/Crypto";
|
|
|
2
2
|
import * as DateTime from "effect/DateTime";
|
|
3
3
|
import * as Effect from "effect/Effect";
|
|
4
4
|
import {
|
|
5
|
+
ApprovalRequestId,
|
|
5
6
|
CommandId,
|
|
6
7
|
MessageId,
|
|
7
8
|
ThreadId,
|
|
8
9
|
type ClientOrchestrationCommand,
|
|
9
10
|
type ModelSelection,
|
|
10
11
|
type OrchestrationProjectShell,
|
|
12
|
+
type ProviderApprovalDecision,
|
|
13
|
+
type ProviderUserInputAnswers,
|
|
11
14
|
} from "#t3tools/contracts";
|
|
12
15
|
import type { ServerConfigForCli } from "../orchestration/service.ts";
|
|
13
16
|
import { resolveModelSelection } from "./model-selection.ts";
|
|
@@ -97,3 +100,45 @@ export const makeThreadArchiveCommand = Effect.fn("makeThreadArchiveCommand")(fu
|
|
|
97
100
|
threadId: ThreadId.make(threadId),
|
|
98
101
|
} satisfies Extract<ClientOrchestrationCommand, { readonly type: "thread.archive" }>;
|
|
99
102
|
});
|
|
103
|
+
|
|
104
|
+
export const makeThreadApprovalRespondCommand = Effect.fn("makeThreadApprovalRespondCommand")(
|
|
105
|
+
function* (input: {
|
|
106
|
+
readonly threadId: string;
|
|
107
|
+
readonly requestId: string;
|
|
108
|
+
readonly decision: ProviderApprovalDecision;
|
|
109
|
+
}) {
|
|
110
|
+
const crypto = yield* Crypto.Crypto;
|
|
111
|
+
const createdAt = DateTime.formatIso(yield* DateTime.now);
|
|
112
|
+
return {
|
|
113
|
+
type: "thread.approval.respond",
|
|
114
|
+
commandId: CommandId.make(
|
|
115
|
+
`t3cli:thread-approve:${yield* crypto.randomUUIDv4.pipe(Effect.orDie)}`,
|
|
116
|
+
),
|
|
117
|
+
threadId: ThreadId.make(input.threadId),
|
|
118
|
+
requestId: ApprovalRequestId.make(input.requestId),
|
|
119
|
+
decision: input.decision,
|
|
120
|
+
createdAt,
|
|
121
|
+
} satisfies Extract<ClientOrchestrationCommand, { readonly type: "thread.approval.respond" }>;
|
|
122
|
+
},
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
export const makeThreadUserInputRespondCommand = Effect.fn("makeThreadUserInputRespondCommand")(
|
|
126
|
+
function* (input: {
|
|
127
|
+
readonly threadId: string;
|
|
128
|
+
readonly requestId: string;
|
|
129
|
+
readonly answers: ProviderUserInputAnswers;
|
|
130
|
+
}) {
|
|
131
|
+
const crypto = yield* Crypto.Crypto;
|
|
132
|
+
const createdAt = DateTime.formatIso(yield* DateTime.now);
|
|
133
|
+
return {
|
|
134
|
+
type: "thread.user-input.respond",
|
|
135
|
+
commandId: CommandId.make(
|
|
136
|
+
`t3cli:thread-respond:${yield* crypto.randomUUIDv4.pipe(Effect.orDie)}`,
|
|
137
|
+
),
|
|
138
|
+
threadId: ThreadId.make(input.threadId),
|
|
139
|
+
requestId: ApprovalRequestId.make(input.requestId),
|
|
140
|
+
answers: input.answers,
|
|
141
|
+
createdAt,
|
|
142
|
+
} satisfies Extract<ClientOrchestrationCommand, { readonly type: "thread.user-input.respond" }>;
|
|
143
|
+
},
|
|
144
|
+
);
|
|
@@ -9,10 +9,16 @@ import { resolveProjectScope } from "../domain/helpers.ts";
|
|
|
9
9
|
import { type StartThreadInput } from "./service.ts";
|
|
10
10
|
import type { SendThreadInput, CallbackThreadInput } from "./service.ts";
|
|
11
11
|
import { mergeModelOptions } from "./model-selection.ts";
|
|
12
|
+
import { derivePendingApprovals, derivePendingUserInputs } from "../domain/thread-activities.ts";
|
|
13
|
+
import { threadStatus, type ThreadLifecycleStatus } from "../domain/thread-lifecycle.ts";
|
|
14
|
+
import type { OrchestrationThread } from "#t3tools/contracts";
|
|
15
|
+
import type { ProviderApprovalDecision, ProviderUserInputAnswers } from "#t3tools/contracts";
|
|
12
16
|
import {
|
|
17
|
+
makeThreadApprovalRespondCommand,
|
|
13
18
|
makeThreadArchiveCommand,
|
|
14
19
|
makeThreadStartCommands,
|
|
15
20
|
makeThreadTurnContinueCommand,
|
|
21
|
+
makeThreadUserInputRespondCommand,
|
|
16
22
|
} from "./thread-commands.ts";
|
|
17
23
|
import {
|
|
18
24
|
waitForThread as waitForThreadUntilComplete,
|
|
@@ -45,6 +51,10 @@ export const makeThreadApplication = Effect.fn("makeThreadApplication")(function
|
|
|
45
51
|
) {
|
|
46
52
|
return yield* orchestration.getThreadSnapshot(threadId);
|
|
47
53
|
});
|
|
54
|
+
const showThread = Effect.fn("T3ApplicationLive.showThread")(function* (threadId: string) {
|
|
55
|
+
const thread = yield* orchestration.getThreadSnapshot(threadId);
|
|
56
|
+
return projectThreadShow(thread);
|
|
57
|
+
});
|
|
48
58
|
const archiveThread = Effect.fn("T3ApplicationLive.archiveThread")(function* (threadId: string) {
|
|
49
59
|
const command = yield* makeThreadArchiveCommand(threadId).pipe(
|
|
50
60
|
Effect.provideService(Crypto.Crypto, crypto),
|
|
@@ -184,12 +194,37 @@ export const makeThreadApplication = Effect.fn("makeThreadApplication")(function
|
|
|
184
194
|
);
|
|
185
195
|
return { dispatch: result.dispatch, targetThreadId: input.targetThreadId };
|
|
186
196
|
});
|
|
197
|
+
const approveThread = Effect.fn("T3ApplicationLive.approveThread")(function* (input: {
|
|
198
|
+
readonly threadId: string;
|
|
199
|
+
readonly requestId: string;
|
|
200
|
+
readonly decision: ProviderApprovalDecision;
|
|
201
|
+
}) {
|
|
202
|
+
const command = yield* makeThreadApprovalRespondCommand(input).pipe(
|
|
203
|
+
Effect.provideService(Crypto.Crypto, crypto),
|
|
204
|
+
);
|
|
205
|
+
const dispatch = yield* orchestration.dispatch(command);
|
|
206
|
+
return { threadId: input.threadId, requestId: input.requestId, dispatch };
|
|
207
|
+
});
|
|
208
|
+
const respondToThread = Effect.fn("T3ApplicationLive.respondToThread")(function* (input: {
|
|
209
|
+
readonly threadId: string;
|
|
210
|
+
readonly requestId: string;
|
|
211
|
+
readonly answers: ProviderUserInputAnswers;
|
|
212
|
+
}) {
|
|
213
|
+
const command = yield* makeThreadUserInputRespondCommand(input).pipe(
|
|
214
|
+
Effect.provideService(Crypto.Crypto, crypto),
|
|
215
|
+
);
|
|
216
|
+
const dispatch = yield* orchestration.dispatch(command);
|
|
217
|
+
return { threadId: input.threadId, requestId: input.requestId, dispatch };
|
|
218
|
+
});
|
|
187
219
|
|
|
188
220
|
return {
|
|
221
|
+
approveThread,
|
|
189
222
|
archiveThread,
|
|
190
223
|
listThreads,
|
|
191
224
|
getThreadMessages,
|
|
225
|
+
respondToThread,
|
|
192
226
|
sendThread,
|
|
227
|
+
showThread,
|
|
193
228
|
startThread,
|
|
194
229
|
watchThread,
|
|
195
230
|
waitForThread,
|
|
@@ -197,6 +232,56 @@ export const makeThreadApplication = Effect.fn("makeThreadApplication")(function
|
|
|
197
232
|
};
|
|
198
233
|
});
|
|
199
234
|
|
|
235
|
+
export type ThreadShow = {
|
|
236
|
+
readonly id: string;
|
|
237
|
+
readonly projectId: string;
|
|
238
|
+
readonly title: string;
|
|
239
|
+
readonly status: ThreadLifecycleStatus;
|
|
240
|
+
readonly session: OrchestrationThread["session"];
|
|
241
|
+
readonly latestTurn: OrchestrationThread["latestTurn"];
|
|
242
|
+
readonly modelSelection: OrchestrationThread["modelSelection"];
|
|
243
|
+
readonly runtimeMode: OrchestrationThread["runtimeMode"];
|
|
244
|
+
readonly interactionMode: OrchestrationThread["interactionMode"];
|
|
245
|
+
readonly branch: OrchestrationThread["branch"];
|
|
246
|
+
readonly worktreePath: OrchestrationThread["worktreePath"];
|
|
247
|
+
readonly archivedAt: OrchestrationThread["archivedAt"];
|
|
248
|
+
readonly createdAt: string;
|
|
249
|
+
readonly updatedAt: string;
|
|
250
|
+
readonly messageCount: number;
|
|
251
|
+
readonly hasPendingApprovals: boolean;
|
|
252
|
+
readonly hasPendingUserInput: boolean;
|
|
253
|
+
readonly hasActionableProposedPlan: boolean;
|
|
254
|
+
readonly pendingApprovals: ReturnType<typeof derivePendingApprovals>;
|
|
255
|
+
readonly pendingUserInputs: ReturnType<typeof derivePendingUserInputs>;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
function projectThreadShow(thread: OrchestrationThread): ThreadShow {
|
|
259
|
+
const pendingApprovals = derivePendingApprovals(thread.activities);
|
|
260
|
+
const pendingUserInputs = derivePendingUserInputs(thread.activities);
|
|
261
|
+
return {
|
|
262
|
+
id: thread.id,
|
|
263
|
+
projectId: thread.projectId,
|
|
264
|
+
title: thread.title,
|
|
265
|
+
status: threadStatus(thread),
|
|
266
|
+
session: thread.session,
|
|
267
|
+
latestTurn: thread.latestTurn,
|
|
268
|
+
modelSelection: thread.modelSelection,
|
|
269
|
+
runtimeMode: thread.runtimeMode,
|
|
270
|
+
interactionMode: thread.interactionMode,
|
|
271
|
+
branch: thread.branch,
|
|
272
|
+
worktreePath: thread.worktreePath,
|
|
273
|
+
archivedAt: thread.archivedAt,
|
|
274
|
+
createdAt: thread.createdAt,
|
|
275
|
+
updatedAt: thread.updatedAt,
|
|
276
|
+
messageCount: thread.messages.length,
|
|
277
|
+
hasPendingApprovals: pendingApprovals.length > 0,
|
|
278
|
+
hasPendingUserInput: pendingUserInputs.length > 0,
|
|
279
|
+
hasActionableProposedPlan: thread.proposedPlans.some((plan) => plan.implementedAt === null),
|
|
280
|
+
pendingApprovals,
|
|
281
|
+
pendingUserInputs,
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
|
|
200
285
|
function failIfThreadError(thread: {
|
|
201
286
|
readonly id: string;
|
|
202
287
|
readonly session: { readonly status: string; readonly lastError: string | null } | null;
|
package/src/cli/error.ts
CHANGED
|
@@ -21,3 +21,18 @@ export class MissingThreadError extends Schema.TaggedErrorClass<MissingThreadErr
|
|
|
21
21
|
message: Schema.String,
|
|
22
22
|
},
|
|
23
23
|
) {}
|
|
24
|
+
|
|
25
|
+
export class SelfArchiveError extends Schema.TaggedErrorClass<SelfArchiveError>()(
|
|
26
|
+
"SelfArchiveError",
|
|
27
|
+
{
|
|
28
|
+
message: Schema.String,
|
|
29
|
+
threadId: Schema.String,
|
|
30
|
+
},
|
|
31
|
+
) {}
|
|
32
|
+
|
|
33
|
+
export class MissingRequestError extends Schema.TaggedErrorClass<MissingRequestError>()(
|
|
34
|
+
"MissingRequestError",
|
|
35
|
+
{
|
|
36
|
+
message: Schema.String,
|
|
37
|
+
},
|
|
38
|
+
) {}
|