t3code-cli 0.11.0 → 0.12.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 +42 -10
- package/dist/application.js +2 -2
- package/dist/auth.js +1 -1
- package/dist/bin.js +85526 -2662
- package/dist/cli.js +15 -2
- package/dist/config.js +120 -2
- package/dist/connection.js +2 -2
- package/dist/index.js +1 -1
- package/dist/node.js +6 -2
- package/dist/orchestration.js +2 -2
- package/dist/rpc.js +1 -1
- package/dist/runtime.js +2 -2
- package/dist/shared.js +42956 -38119
- package/dist/src/application/actions.d.ts +25 -0
- package/dist/src/application/index.d.ts +3 -3
- package/dist/src/application/layer.d.ts +51 -35
- package/dist/src/application/model-selection.d.ts +2 -2
- package/dist/src/application/models.d.ts +1 -1
- package/dist/src/application/project-commands.d.ts +22 -2
- package/dist/src/application/projects.d.ts +7 -7
- package/dist/src/application/service.d.ts +65 -2
- package/dist/src/application/shell-sequence.d.ts +11 -0
- package/dist/src/application/terminals.d.ts +2 -2
- package/dist/src/application/thread-commands.d.ts +1 -1
- package/dist/src/application/thread-wait.d.ts +9 -0
- package/dist/src/application/threads.d.ts +56 -5
- package/dist/src/auth/error.d.ts +2 -1
- package/dist/src/auth/index.d.ts +1 -1
- package/dist/src/auth/layer.d.ts +34 -6
- package/dist/src/auth/local-base-dir.d.ts +5 -2
- package/dist/src/auth/local-origin.d.ts +3 -3
- package/dist/src/auth/local-token.d.ts +3 -3
- package/dist/src/auth/service.d.ts +15 -3
- package/dist/src/auth/type.d.ts +40 -1
- package/dist/src/cli/env/flag.d.ts +2 -0
- package/dist/src/cli/env/index.d.ts +2 -0
- package/dist/src/cli/env/selection-layer.d.ts +3 -0
- package/dist/src/cli/flags.d.ts +2 -0
- package/dist/src/cli/format/index.d.ts +1 -0
- package/dist/src/cli/format/output.d.ts +12 -0
- package/dist/src/cli/index.d.ts +4 -0
- package/dist/src/cli/runtime/index.d.ts +1 -0
- package/dist/src/cli/runtime/service.d.ts +16 -0
- package/dist/src/{scope → cli/scope}/resolve.d.ts +5 -4
- package/dist/src/config/config.d.ts +49 -0
- package/dist/src/config/credential/cipher-node.d.ts +3 -0
- package/dist/src/config/credential/cipher-web.d.ts +3 -0
- package/dist/src/config/credential/cipher.d.ts +29 -0
- package/dist/src/config/credential/env.d.ts +3 -0
- package/dist/src/config/credential/error.d.ts +8 -0
- package/dist/src/config/credential/index.d.ts +6 -0
- package/dist/src/config/credential/service.d.ts +34 -0
- package/dist/src/config/env/env.d.ts +55 -0
- package/dist/src/config/env/index.d.ts +2 -0
- package/dist/src/{layout/base-dir.d.ts → config/env/layout.d.ts} +0 -1
- package/dist/src/config/environment-name/index.d.ts +1 -0
- package/dist/src/config/environment-name/name.d.ts +10 -0
- package/dist/src/config/error.d.ts +4 -11
- package/dist/src/config/index.d.ts +10 -5
- package/dist/src/config/keystore/error.d.ts +8 -0
- package/dist/src/config/keystore/file.d.ts +9 -0
- package/dist/src/config/keystore/index.d.ts +4 -0
- package/dist/src/config/keystore/keyring-node.d.ts +4 -0
- package/dist/src/config/keystore/service.d.ts +33 -0
- package/dist/src/config/paths/index.d.ts +1 -0
- package/dist/src/config/paths/paths.d.ts +6 -0
- package/dist/src/config/persist/file-mode.d.ts +4 -0
- package/dist/src/config/persist/migration.d.ts +68 -0
- package/dist/src/config/persist/persist.d.ts +40 -0
- package/dist/src/config/persist/schema.d.ts +68 -0
- package/dist/src/config/resolve/resolve.d.ts +40 -0
- package/dist/src/config/selection/index.d.ts +1 -0
- package/dist/src/config/selection/resolve.d.ts +4 -0
- package/dist/src/config/selection/service.d.ts +10 -0
- package/dist/src/config/types.d.ts +36 -0
- package/dist/src/config/url/error.d.ts +10 -0
- package/dist/src/config/url/index.d.ts +2 -0
- package/dist/src/connection/index.d.ts +0 -1
- package/dist/src/contracts/index.d.ts +1 -1
- package/dist/src/domain/error.d.ts +14 -1
- package/dist/src/domain/helpers.d.ts +16 -1
- package/dist/src/domain/model-config.d.ts +4 -1
- package/dist/src/domain/thread-activities.d.ts +1 -1
- package/dist/src/domain/thread-lifecycle.d.ts +10 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/{connection/node.d.ts → node/connection.d.ts} +1 -1
- package/dist/src/node/index.d.ts +1 -2
- package/dist/src/orchestration/index.d.ts +0 -1
- package/dist/src/orchestration/layer.d.ts +153 -7
- package/dist/src/orchestration/service.d.ts +1 -1
- package/dist/src/rpc/error.d.ts +2 -2
- package/dist/src/rpc/index.d.ts +2 -3
- package/dist/src/rpc/layer.d.ts +574 -46
- package/dist/src/rpc/operation.d.ts +574 -46
- package/dist/src/rpc/ws-group.d.ts +184 -19
- package/dist/src/runtime/index.d.ts +1 -2
- package/dist/src/runtime/layer.d.ts +12 -8
- package/dist/src/t3tools/index.d.ts +1 -1
- package/dist/t3tools.js +2 -2
- package/package.json +25 -21
- package/src/application/actions.test.ts +328 -0
- package/src/application/actions.ts +475 -0
- package/src/application/index.ts +9 -5
- package/src/application/layer.ts +9 -0
- package/src/application/model-selection.ts +2 -2
- package/src/application/project-commands.ts +23 -5
- package/src/application/projects.ts +6 -7
- package/src/application/service.ts +79 -1
- package/src/application/shell-sequence.ts +1 -1
- package/src/application/terminals.ts +2 -1
- package/src/application/thread-commands.ts +1 -1
- package/src/application/thread-update.ts +1 -1
- package/src/application/thread-wait.ts +1 -1
- package/src/application/threads.test.ts +9 -3
- package/src/application/threads.ts +6 -6
- package/src/auth/error.ts +2 -1
- package/src/auth/index.ts +7 -0
- package/src/auth/layer.test-utils.ts +34 -0
- package/src/auth/layer.ts +116 -34
- package/src/auth/local-base-dir.ts +13 -6
- package/src/auth/local-origin.ts +10 -7
- package/src/auth/local-token.ts +28 -23
- package/src/auth/service.test.ts +200 -0
- package/src/auth/service.ts +27 -3
- package/src/auth/transport.ts +2 -2
- package/src/auth/type.ts +47 -1
- package/src/bin.ts +24 -6
- package/src/cli/action-format.ts +110 -0
- package/src/cli/action.ts +398 -0
- package/src/cli/app.ts +6 -0
- package/src/cli/auth.ts +76 -23
- package/src/cli/env/flag.ts +8 -0
- package/src/cli/env/index.ts +2 -0
- package/src/cli/env/selection-layer.test.ts +49 -0
- package/src/cli/env/selection-layer.ts +27 -0
- package/src/cli/env.ts +107 -0
- package/src/cli/extra-args.test.ts +32 -0
- package/src/cli/extra-args.ts +22 -0
- package/src/cli/flags.ts +11 -1
- package/src/cli/format/auth.ts +92 -0
- package/src/cli/format/human.ts +131 -0
- package/src/cli/format/index.ts +12 -0
- package/src/cli/format/model.ts +29 -0
- package/src/cli/format/output.ts +51 -0
- package/src/cli/format/project.ts +32 -0
- package/src/cli/format/terminal.ts +87 -0
- package/src/cli/{thread-format.test.ts → format/thread.test.ts} +6 -4
- package/src/cli/format/thread.ts +185 -0
- package/src/cli/index.ts +20 -0
- package/src/cli/interaction/confirm.ts +64 -0
- package/src/cli/{self-action.ts → interaction/self-action.ts} +8 -6
- package/src/cli/message-input.ts +1 -1
- package/src/cli/model.ts +9 -5
- package/src/cli/project.ts +13 -7
- package/src/cli/projects/delete.ts +13 -12
- package/src/cli/require.ts +9 -7
- package/src/cli/runtime/index.ts +1 -0
- package/src/cli/runtime/service.ts +28 -0
- package/src/{scope → cli/scope}/resolve.ts +11 -9
- package/src/cli/terminal/attach.ts +3 -6
- package/src/cli/terminal/create.ts +10 -9
- package/src/cli/terminal/destroy.ts +13 -11
- package/src/cli/terminal/list.ts +10 -9
- package/src/cli/terminal/read.test-utils.ts +48 -0
- package/src/cli/terminal/read.test.ts +35 -0
- package/src/cli/terminal/read.ts +3 -6
- package/src/cli/terminal/scope.ts +10 -5
- package/src/cli/terminal/shared.ts +1 -1
- package/src/cli/terminal/stream.ts +3 -6
- package/src/cli/terminal/wait.test.ts +5 -3
- package/src/cli/terminal/wait.ts +10 -9
- package/src/cli/terminal/write.test.ts +34 -0
- package/src/cli/terminal/write.ts +10 -9
- package/src/cli/threads/approve.ts +11 -7
- package/src/cli/threads/archive.ts +14 -9
- package/src/cli/threads/callback.ts +6 -4
- package/src/cli/threads/delete.ts +17 -11
- package/src/cli/threads/interrupt.ts +14 -9
- package/src/cli/threads/list.test.ts +5 -3
- package/src/cli/threads/list.ts +10 -10
- package/src/cli/threads/messages.ts +11 -7
- package/src/cli/threads/respond.ts +11 -7
- package/src/cli/threads/send.ts +19 -9
- package/src/cli/threads/show.ts +11 -7
- package/src/cli/threads/start.ts +18 -13
- package/src/cli/threads/unarchive.ts +11 -7
- package/src/cli/threads/update.ts +14 -9
- package/src/cli/threads/wait.ts +11 -7
- package/src/cli/wait-events.ts +1 -1
- package/src/config/config.ts +260 -0
- package/src/config/credential/cipher-node.ts +40 -0
- package/src/config/credential/cipher-web.ts +82 -0
- package/src/config/credential/cipher.ts +39 -0
- package/src/config/credential/env.ts +13 -0
- package/src/config/credential/error.ts +9 -0
- package/src/config/credential/index.ts +6 -0
- package/src/config/credential/service.test-utils.ts +25 -0
- package/src/config/credential/service.test.ts +116 -0
- package/src/config/credential/service.ts +205 -0
- package/src/config/env/env.test-utils.ts +14 -0
- package/src/config/env/env.ts +81 -0
- package/src/config/env/index.ts +2 -0
- package/src/{layout/base-dir.ts → config/env/layout.ts} +0 -9
- package/src/config/environment-name/index.ts +7 -0
- package/src/config/environment-name/name.test.ts +66 -0
- package/src/config/environment-name/name.ts +49 -0
- package/src/config/error.ts +6 -8
- package/src/config/index.ts +16 -5
- package/src/config/keystore/error.ts +9 -0
- package/src/config/keystore/file.ts +96 -0
- package/src/config/keystore/index.ts +4 -0
- package/src/config/keystore/keyring-node.test.ts +12 -0
- package/src/config/keystore/keyring-node.ts +100 -0
- package/src/config/keystore/service.test-utils.ts +15 -0
- package/src/config/keystore/service.test.ts +18 -0
- package/src/config/keystore/service.ts +29 -0
- package/src/config/layer.test-utils.ts +45 -0
- package/src/config/layer.test.ts +209 -0
- package/src/config/paths/index.ts +1 -0
- package/src/config/paths/paths.ts +36 -0
- package/src/config/persist/file-mode.ts +21 -0
- package/src/config/persist/migration.test.ts +71 -0
- package/src/config/persist/migration.ts +82 -0
- package/src/config/persist/persist.test.ts +113 -0
- package/src/config/persist/persist.ts +65 -0
- package/src/config/persist/schema.ts +37 -0
- package/src/config/platform.test-utils.ts +20 -0
- package/src/config/resolve/resolve.test-utils.ts +20 -0
- package/src/config/resolve/resolve.test.ts +137 -0
- package/src/config/resolve/resolve.ts +104 -0
- package/src/config/selection/index.ts +1 -0
- package/src/config/selection/resolve.ts +14 -0
- package/src/config/selection/service.ts +29 -0
- package/src/config/temp-home.test-utils.ts +7 -0
- package/src/config/types.ts +49 -0
- package/src/config/url/error.ts +8 -0
- package/src/config/url/index.ts +7 -0
- package/src/config/url/url.test.ts +31 -0
- package/src/connection/index.ts +0 -1
- package/src/contracts/index.ts +1 -1
- package/src/domain/error.ts +20 -1
- package/src/domain/helpers.test.ts +1 -1
- package/src/domain/helpers.ts +1 -1
- package/src/domain/model-config.ts +1 -1
- package/src/domain/thread-activities.test.ts +1 -1
- package/src/domain/thread-activities.ts +1 -1
- package/src/domain/thread-lifecycle.test.ts +1 -1
- package/src/domain/thread-lifecycle.ts +1 -1
- package/src/effect.test-utils.ts +25 -0
- package/src/index.ts +1 -1
- package/src/{connection/node.ts → node/connection.ts} +1 -1
- package/src/node/index.ts +1 -2
- package/src/orchestration/index.ts +0 -1
- package/src/orchestration/layer.ts +1 -1
- package/src/orchestration/service.ts +1 -1
- package/src/rpc/error.ts +2 -2
- package/src/rpc/index.ts +2 -3
- package/src/rpc/layer.ts +1 -1
- package/src/rpc/ws-group.ts +1 -1
- package/src/runtime/index.ts +2 -1
- package/src/runtime/layer.test-utils.ts +32 -0
- package/src/runtime/layer.test.ts +66 -0
- package/src/runtime/layer.ts +15 -9
- package/src/t3tools/index.ts +1 -1
- package/src/types/marked-terminal.d.ts +11 -0
- package/dist/layout.js +0 -2
- package/dist/scope.js +0 -2
- package/dist/src/cli/output-format.d.ts +0 -11
- package/dist/src/config/layer.d.ts +0 -22
- package/dist/src/config/service.d.ts +0 -22
- package/dist/src/environment/layer.d.ts +0 -3
- package/dist/src/environment/service.d.ts +0 -12
- package/dist/src/layout/index.d.ts +0 -1
- package/dist/upstream-t3code/packages/contracts/src/auth.d.ts +0 -441
- package/dist/upstream-t3code/packages/contracts/src/baseSchemas.d.ts +0 -38
- package/dist/upstream-t3code/packages/contracts/src/desktopBootstrap.d.ts +0 -14
- package/dist/upstream-t3code/packages/contracts/src/editor.d.ts +0 -124
- package/dist/upstream-t3code/packages/contracts/src/environment.d.ts +0 -64
- package/dist/upstream-t3code/packages/contracts/src/environmentHttp.d.ts +0 -762
- package/dist/upstream-t3code/packages/contracts/src/filesystem.d.ts +0 -26
- package/dist/upstream-t3code/packages/contracts/src/git.d.ts +0 -500
- package/dist/upstream-t3code/packages/contracts/src/index.d.ts +0 -25
- package/dist/upstream-t3code/packages/contracts/src/ipc.d.ts +0 -490
- package/dist/upstream-t3code/packages/contracts/src/keybindings.d.ts +0 -133
- package/dist/upstream-t3code/packages/contracts/src/model.d.ts +0 -112
- package/dist/upstream-t3code/packages/contracts/src/orchestration.d.ts +0 -6682
- package/dist/upstream-t3code/packages/contracts/src/project.d.ts +0 -45
- package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +0 -116
- package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +0 -99
- package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +0 -4276
- package/dist/upstream-t3code/packages/contracts/src/relay.d.ts +0 -1262
- package/dist/upstream-t3code/packages/contracts/src/relayClient.d.ts +0 -48
- package/dist/upstream-t3code/packages/contracts/src/remoteAccess.d.ts +0 -45
- package/dist/upstream-t3code/packages/contracts/src/review.d.ts +0 -37
- package/dist/upstream-t3code/packages/contracts/src/rpc.d.ts +0 -8218
- package/dist/upstream-t3code/packages/contracts/src/server.d.ts +0 -2291
- package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +0 -271
- package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +0 -177
- package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +0 -330
- package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +0 -148
- package/src/cli/auth-format.ts +0 -45
- package/src/cli/confirm.ts +0 -31
- package/src/cli/model-format.ts +0 -18
- package/src/cli/output-format.ts +0 -45
- package/src/cli/project-format.ts +0 -18
- package/src/cli/terminal/commands.test.ts +0 -101
- package/src/cli/terminal-format.ts +0 -167
- package/src/cli/thread-format.ts +0 -128
- package/src/config/layer.ts +0 -105
- package/src/config/service.ts +0 -26
- package/src/environment/layer.ts +0 -12
- package/src/environment/service.ts +0 -13
- package/src/layout/index.ts +0 -1
- /package/dist/src/{scope → cli/scope}/index.d.ts +0 -0
- /package/dist/src/config/{url.d.ts → url/url.d.ts} +0 -0
- /package/src/{scope → cli/scope}/index.ts +0 -0
- /package/src/config/{url.ts → url/url.ts} +0 -0
package/dist/t3tools.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as TOOL_LIFECYCLE_ITEM_TYPES, $c as PROVIDER_SEND_TURN_MAX_INPUT_CHARS, $i as DEFAULT_CLIENT_SETTINGS, $l as ProviderInstanceConfig, $n as VcsRef, $o as DesktopSshPasswordPromptCancelledResultSchema, $r as ServerConfigStreamSettingsUpdatedEvent, $s as EnvironmentScopeRequiredError, $t as WsTerminalCloseRpc, $u as AuthTerminalOperateScope, Aa as KeybindingWhen, Ac as OrchestrationMessageRole, Ai as ServerProviderVersionAdvisory, Al as ThreadTurnDiff, An as GitActionProgressPhase, Ao as TerminalSummary, Ar as VcsDriverCapabilities, As as EnvironmentAuthInvalidReason, At as WsServerGetConfigRpc, Au as AuthAccessWriteScope, Ba as MODEL_PICKER_KEYBINDING_COMMANDS, Bc as OrchestrationSessionStatus, Bi as ServerTraceDiagnosticsRecentFailure, Bl as DEFAULT_MODEL, Bn as GitRunStackedActionResult, Bo as DesktopRuntimeArchSchema, Br as VcsProcessTimeoutError, Bs as EnvironmentHttpCommonError, Bt as WsServerUpsertKeybindingRpc, Bu as AuthEnvironmentScope, Ca as EditorLaunchStyle, Cc as OrchestrationGetFullThreadDiffResult, Cd as RuntimeSessionId, Ci as ServerProviderSlashCommandInput, Cl as ThreadMessageSentPayload, Cn as ProjectSearchEntriesInput, Co as TerminalNotRunningError, Cr as SourceControlPublishStatus, Cs as RelayClientInstallProgressStageSchema, Ct as WsOrchestrationSubscribeShellRpc, Cu as AuthAccessStreamError, Da as KeybindingRule, Dc as OrchestrationGetTurnDiffResult, Dd as TrimmedString, Di as ServerProviderUpdateState, Dl as ThreadRuntimeModeSetPayload, Dn as ProjectWriteFileResult, Do as TerminalSessionLookupError, Dr as SourceControlRepositoryLookupInput, Ds as AuthPairingLinkRevokeResult, Dt as WsReviewGetDiffPreviewRpc, Du as AuthAccessStreamSnapshotEvent, Ea as KeybindingCommand, Ec as OrchestrationGetTurnDiffInput, Ed as TrimmedNonEmptyString, Ei as ServerProviderUpdateInput, El as ThreadRevertedPayload, En as ProjectWriteFileInput, Eo as TerminalRestartInput, Er as SourceControlRepositoryInfo, Es as AuthOtherClientSessionsRevokeResult, Et as WsProjectsWriteFileRpc, Eu as AuthAccessStreamPairingLinkUpsertedEvent, Fa as MAX_KEYBINDING_VALUE_LENGTH, Fc as OrchestrationReadModel, Fi as ServerSignalProcessInput, Fl as ThreadUnarchivedPayload, Fn as GitPreparePullRequestThreadInput, Fo as DesktopAppStageLabelSchema, Fr as VcsListRemotesResult, Fs as EnvironmentCloudLinkStateResult, Ft as WsServerRefreshProvidersRpc, Fu as AuthClientMetadataDeviceType, Ga as THREAD_KEYBINDING_COMMANDS, Gc as OrchestrationThread, Gi as ServerUpsertKeybindingResult, Gl as ProviderOptionChoice, Gn as VcsCreateRefResult, Go as DesktopSshBearerRequestInputSchema, Gr as ServerConfig, Gs as EnvironmentInternalError, Gt as WsSubscribeAuthAccessRpc, Gu as AuthPairingLink, Ha as ResolvedKeybindingsConfig, Hc as OrchestrationShellStreamEvent, Hi as ServerTraceDiagnosticsSpanOccurrence, Hl as MODEL_SLUG_ALIASES_BY_PROVIDER, Hn as GitStackedAction, Ho as DesktopServerExposureModeSchema, Hr as VcsRepositoryDetectionError, Hs as EnvironmentHttpForbiddenError, Ht as WsSourceControlCloneRepositoryRpc, Hu as AuthOrchestrationOperateScope, Ia as MAX_KEYBINDING_WHEN_LENGTH, Ic as OrchestrationReplayEventsError, Ii as ServerSignalProcessResult, Il as TurnCountRange, In as GitPreparePullRequestThreadResult, Io as DesktopCloudAuthFetchInputSchema, Ir as VcsListWorkspaceFilesResult, Is as EnvironmentCloudPreferencesRequest, It as WsServerRemoveKeybindingRpc, Iu as AuthClientPresentationMetadata, Ja as ItemLifecyclePayload, Jc as OrchestrationThreadDetailSnapshot, Ji as ClientSettingsPatch, Jl as ProviderOptionSelection, Jn as VcsInitInput, Jo as DesktopSshEnvironmentEnsureOptionsSchema, Jr as ServerConfigProviderStatusesPayload, Js as EnvironmentOperationForbiddenError, Jt as WsSubscribeTerminalEventsRpc, Ju as AuthReviewWriteScope, Ka as CanonicalItemType, Kc as OrchestrationThreadActivity, Ki as isProviderAvailable, Kl as ProviderOptionDescriptor, Kn as VcsCreateWorktreeInput, Ko as DesktopSshEnvironmentBootstrapSchema, Kr as ServerConfigIssue, Ks as EnvironmentInternalErrorReason, Kt as WsSubscribeServerConfigRpc, Ku as AuthRelayReadScope, La as MAX_SCRIPT_ID_LENGTH, Lc as OrchestrationReplayEventsInput, Li as ServerTraceDiagnosticsErrorKind, Ll as BooleanProviderOptionDescriptor, Ln as GitPullRequestRefInput, Lo as DesktopCloudAuthFetchResultSchema, Lr as VcsOutputDecodeError, Ls as EnvironmentCloudRelayConfigResult, Lt as WsServerSignalProcessRpc, Lu as AuthClientSession, Ma as KeybindingsConfig, Mc as OrchestrationProjectShell, Mi as ServerProviders, Ml as ThreadTurnInterruptRequestedPayload, Mn as GitCommandError, Mo as TerminalWriteInput, Mr as VcsError, Ms as EnvironmentAuthenticatedPrincipal, Mt as WsServerGetProcessResourceHistoryRpc, Mu as AuthBrowserSessionRequest, Na as KeybindingsConfigError, Nc as OrchestrationProposedPlan, Ni as ServerRemoveKeybindingInput, Nl as ThreadTurnStartCommand, Nn as GitManagerError, No as ContextMenuItemSchema, Nr as VcsFreshness, Ns as EnvironmentCloudEndpointUnavailableError, Nt as WsServerGetSettingsRpc, Nu as AuthBrowserSessionResult, Oa as KeybindingShortcut, Oc as OrchestrationLatestTurn, Od as TurnId, Oi as ServerProviderUpdateStatus, Ol as ThreadSessionSetPayload, On as GitActionProgressEvent, Oo as TerminalSessionSnapshot, Or as SourceControlRepositoryVisibility, Os as EnvironmentAuthHttpApi, Ot as WsRpcGroup, Ou as AuthAccessTokenResult, Pa as MAX_KEYBINDINGS_COUNT, Pc as OrchestrationProposedPlanId, Pi as ServerRemoveKeybindingResult, Pl as ThreadTurnStartRequestedPayload, Pn as GitManagerServiceError, Po as DesktopAppBrandingSchema, Pr as VcsFreshnessSource, Ps as EnvironmentCloudHttpApi, Pt as WsServerGetTraceDiagnosticsRpc, Pu as AuthClientMetadata, Qa as RuntimeEventRaw, Qc as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Qi as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Ql as ProviderDriverKind, Qn as VcsPullResult, Qo as DesktopSshHttpBaseUrlInputSchema, Qr as ServerConfigStreamProviderStatusesEvent, Qs as EnvironmentRequestInvalidReason, Qt as WsTerminalClearRpc, Qu as AuthStandardClientScopes, Ra as MAX_WHEN_EXPRESSION_DEPTH, Rc as OrchestrationRpcSchemas, Ri as ServerTraceDiagnosticsFailureSummary, Rl as DEFAULT_GIT_TEXT_GENERATION_MODEL, Rn as GitResolvePullRequestResult, Ro as DesktopDiscoveredSshHostSchema, Rr as VcsProcessExitError, Rs as EnvironmentHttpApi, Rt as WsServerUpdateProviderRpc, Ru as AuthCreatePairingCredentialInput, Sa as EditorId, Sc as OrchestrationGetFullThreadDiffInput, Sd as RuntimeRequestId, Si as ServerProviderSlashCommand, Sl as ThreadInteractionModeSetPayload, Sn as ProjectSearchEntriesError, So as TerminalMetadataStreamEvent, Sr as SourceControlPublishRepositoryResult, Ss as RelayClientInstallProgressEventSchema, St as WsOrchestrationReplayEventsRpc, Su as AuthAccessStreamClientUpsertedEvent, Ta as LaunchEditorInput, Tc as OrchestrationGetTurnDiffError, Td as ThreadId, Ti as ServerProviderUpdateError, Tl as ThreadProposedPlanUpsertedPayload, Tn as ProjectWriteFileError, To as TerminalResizeInput, Tr as SourceControlRepositoryError, Ts as AuthClientSessionRevokeResult, Tt as WsProjectsSearchEntriesRpc, Tu as AuthAccessStreamPairingLinkRemovedEvent, Ua as SCRIPT_RUN_COMMAND_PATTERN, Uc as OrchestrationShellStreamItem, Ui as ServerTraceDiagnosticsSpanSummary, Ul as ModelCapabilities, Un as TextGenerationError, Uo as DesktopServerExposureStateSchema, Ur as VcsRepositoryIdentity, Us as EnvironmentHttpInternalServerError, Ut as WsSourceControlLookupRepositoryRpc, Uu as AuthOrchestrationReadScope, Va as ResolvedKeybindingRule, Vc as OrchestrationShellSnapshot, Vi as ServerTraceDiagnosticsResult, Vl as DEFAULT_MODEL_BY_PROVIDER, Vn as GitRunStackedActionToastRunAction, Vo as DesktopRuntimeInfoSchema, Vr as VcsRemote, Vs as EnvironmentHttpConflictError, Vt as WsShellOpenInEditorRpc, Vu as AuthEnvironmentScopes, Wa as THREAD_JUMP_KEYBINDING_COMMANDS, Wc as OrchestrationSubscribeThreadInput, Wi as ServerUpsertKeybindingInput, Wl as PROVIDER_DISPLAY_NAMES, Wn as VcsCreateRefInput, Wo as DesktopSshBearerBootstrapInputSchema, Wr as VcsUnsupportedOperationError, Ws as EnvironmentHttpUnauthorizedError, Wt as WsSourceControlPublishRepositoryRpc, Wu as AuthPairingCredentialResult, Xa as ProviderRuntimeEventV2, Xc as OrchestrationThreadStreamItem, Xi as CodexSettings, Xl as ProviderOptionSelections, Xn as VcsListRefsResult, Xo as DesktopSshEnvironmentTargetSchema, Xr as ServerConfigStreamEvent, Xs as EnvironmentOrchestrationHttpApi, Xt as WsSubscribeVcsStatusRpc, Xu as AuthRevokePairingLinkInput, Ya as ProviderRuntimeEvent, Yc as OrchestrationThreadShell, Yi as ClientSettingsSchema, Yl as ProviderOptionSelectionValue, Yn as VcsListRefsInput, Yo as DesktopSshEnvironmentEnsureResultSchema, Yr as ServerConfigSettingsUpdatedPayload, Ys as EnvironmentOperationForbiddenReason, Yt as WsSubscribeTerminalMetadataRpc, Yu as AuthRevokeClientSessionInput, Za as ProviderRuntimeTurnStatus, Zc as PROVIDER_SEND_TURN_MAX_ATTACHMENTS, Zi as CursorSettings, Zl as SelectProviderOptionDescriptor, Zn as VcsPullInput, Zo as DesktopSshHostSourceSchema, Zr as ServerConfigStreamKeybindingsUpdatedEvent, Zs as EnvironmentRequestInvalidError, Zt as WsTerminalAttachRpc, Zu as AuthSessionState, _a as SidebarThreadSortOrder, _c as OrchestrationDispatchCommandError, _d as PortSchema, _i as ServerProviderAuthStatus, _l as ThreadApprovalResponseRequestedPayload, _n as FilesystemBrowseEntry, _o as TerminalCloseInput, _r as SourceControlProviderDiscoveryItem, _s as AdvertisedEndpointSource, _t as WsGitRunStackedActionRpc, _u as ScopedThreadRef, aa as DEFAULT_TIMESTAMP_FORMAT, ac as DEFAULT_PROVIDER_INTERACTION_MODE, ad as ServerAuthDescriptor, ai as ServerLifecycleStreamWelcomeEvent, al as ProjectScriptIcon, an as WsVcsCreateWorktreeRpc, ao as ProviderInterruptTurnInput, ar as VcsStatusStreamEvent, as as DesktopUpdateChannelSchema, au as ProviderInstanceRef, ba as makeProviderSettingsSchema, bc as OrchestrationEventType, bd as ProviderItemId, bi as ServerProviderModel, bl as ThreadCreatedPayload, bn as FilesystemBrowseResult, bo as TerminalEvent, br as SourceControlProviderKind, bs as RelayClientInstallFailedError, bt as WsOrchestrationGetFullThreadDiffRpc, bu as AuthAccessSnapshot, ca as MIN_SIDEBAR_THREAD_PREVIEW_COUNT, cc as ModelSelection, cd as ApprovalRequestId, ci as ServerProcessDiagnosticsEntry, cl as ProviderApprovalDecision, cn as WsVcsPullRpc, co as ProviderSendTurnInput, cr as ChangeRequest, cs as DesktopUpdateStatusSchema, cu as EnvironmentConnectionState, da as ServerSettings, dc as OrchestrationAggregateKind, dd as CommandId, di as ServerProcessResourceHistoryInput, dl as ProviderRequestKind, dn as WsVcsSwitchRefRpc, do as ProviderStopSessionInput, dr as SourceControlCloneRepositoryInput, ds as AdvertisedEndpoint, dt as WS_METHODS, du as ExecutionEnvironmentPlatform, ea as DEFAULT_SERVER_SETTINGS, ec as AssistantDeliveryMode, ed as AuthTokenExchangeGrantType, ei as ServerConfigStreamSnapshotEvent, el as ProjectCreateCommand, en as WsTerminalOpenRpc, eo as ThreadTokenUsageSnapshot, er as VcsRemoveWorktreeInput, es as DesktopSshPasswordPromptCancelledType, eu as ProviderInstanceConfigMap, fa as ServerSettingsError, fc as OrchestrationCheckpointFile, fd as EnvironmentId, fi as ServerProcessResourceHistoryResult, fl as ProviderSandboxMode, fn as ReviewDiffPreviewError, fo as ProviderTurnStartResult, fr as SourceControlCloneRepositoryResult, fs as AdvertisedEndpointCompatibility, ft as WsCloudGetRelayClientStatusRpc, fu as ExecutionEnvironmentPlatformArch, ga as SidebarThreadPreviewCount, gc as OrchestrationCommandReceiptStatus, gd as NonNegativeInt, gi as ServerProviderAuth, gl as ThreadActivityAppendedPayload, gn as ReviewDiffPreviewSourceKind, go as TerminalClearInput, gr as SourceControlProviderAuthStatus, gs as AdvertisedEndpointReachability, gt as WsGitResolvePullRequestRpc, gu as ScopedProjectRef, ha as SidebarProjectSortOrder, hc as OrchestrationCommand, hd as MessageId, hi as ServerProvider, hl as RuntimeMode, hn as ReviewDiffPreviewSource, ho as TerminalAttachStreamEvent, hr as SourceControlProviderAuth, hs as AdvertisedEndpointProviderKind, ht as WsGitPreparePullRequestThreadRpc, hu as RepositoryIdentityLocator, ia as DEFAULT_SIDEBAR_THREAD_SORT_ORDER, ic as CorrelationId, id as ServerAuthBootstrapMethod, ii as ServerLifecycleStreamReadyEvent, il as ProjectScript, in as WsVcsCreateRefRpc, io as ProviderEvent, ir as VcsStatusResult, is as DesktopUpdateActionResultSchema, iu as ProviderInstanceId, ja as KeybindingWhenNode, jc as OrchestrationProject, ji as ServerProviderVersionAdvisoryStatus, jl as ThreadTurnDiffCompletedPayload, jn as GitActionProgressStream, jo as TerminalThreadInput, jr as VcsDriverKind, js as EnvironmentAuthenticatedAuth, jt as WsServerGetProcessDiagnosticsRpc, ju as AuthAdministrativeScopes, ka as KeybindingValue, kc as OrchestrationMessage, ki as ServerProviderUpdatedPayload, kl as ThreadSessionStopRequestedPayload, kn as GitActionProgressKind, ko as TerminalSessionStatus, kr as VcsDiscoveryItem, ks as EnvironmentAuthInvalidError, kt as WsServerDiscoverSourceControlRpc, ku as AuthAccessTokenType, la as ObservabilitySettings, lc as ORCHESTRATION_WS_METHODS, ld as AuthSessionId, li as ServerProcessDiagnosticsResult, ll as ProviderApprovalPolicy, ln as WsVcsRefreshStatusRpc, lo as ProviderSession, lr as ChangeRequestState, ls as PersistedSavedEnvironmentRecordSchema, lu as ExecutionEnvironmentCapabilities, ma as SidebarProjectGroupingMode, mc as OrchestrationCheckpointSummary, md as IsoDateTime, mi as ServerProcessSignal, ml as ProviderUserInputAnswers, mn as ReviewDiffPreviewResult, mo as TerminalAttachInput, mr as SourceControlDiscoveryStatus, ms as AdvertisedEndpointProvider, mt as WsFilesystemBrowseRpc, mu as RepositoryIdentity, na as DEFAULT_SIDEBAR_PROJECT_SORT_ORDER, nc as ChatImageAttachment, nd as AuthWebSocketTicketResult, ni as ServerLifecycleReadyPayload, nl as ProjectDeletedPayload, nn as WsTerminalRestartRpc, no as UserInputQuestion, nr as VcsStatusLocalResult, ns as DesktopSshPasswordPromptResolutionInputSchema, nu as ProviderInstanceEnvironmentVariable, oa as DEFAULT_UNIFIED_SETTINGS, oc as DEFAULT_RUNTIME_MODE, od as ServerAuthPolicy, oi as ServerLifecycleWelcomePayload, ol as ProjectionPendingApprovalDecision, on as WsVcsInitRpc, oo as ProviderRespondToRequestInput, or as VcsSwitchRefInput, os as DesktopUpdateCheckResultSchema, ou as defaultInstanceIdForDriver, pa as ServerSettingsPatch, pc as OrchestrationCheckpointStatus, pd as EventId, pi as ServerProcessResourceHistorySummary, pl as ProviderSessionRuntimeStatus, pn as ReviewDiffPreviewInput, po as DEFAULT_TERMINAL_ID, pr as SourceControlDiscoveryResult, ps as AdvertisedEndpointHostedHttpsCompatibility, pt as WsCloudInstallRelayClientRpc, pu as ExecutionEnvironmentPlatformOs, qa as CanonicalRequestType, qc as OrchestrationThreadActivityTone, qi as ClaudeSettings, ql as ProviderOptionDescriptorType, qn as VcsCreateWorktreeResult, qo as DesktopSshEnvironmentEnsureInputSchema, qr as ServerConfigKeybindingsUpdatedPayload, qs as EnvironmentMetadataHttpApi, qt as WsSubscribeServerLifecycleRpc, qu as AuthRelayWriteScope, ra as DEFAULT_SIDEBAR_THREAD_PREVIEW_COUNT, rc as ClientOrchestrationCommand, rd as EnvironmentAuthorizationError, ri as ServerLifecycleStreamEvent, rl as ProjectMetaUpdatedPayload, rn as WsTerminalWriteRpc, ro as isToolLifecycleItemType, rr as VcsStatusRemoteResult, rs as DesktopThemeSchema, ru as ProviderInstanceEnvironmentVariableName, sa as MAX_SIDEBAR_THREAD_PREVIEW_COUNT, sc as DispatchResult, sd as ServerAuthSessionMethod, si as ServerObservability, sl as ProjectionPendingApprovalStatus, sn as WsVcsListRefsRpc, so as ProviderRespondToUserInputInput, sr as VcsSwitchRefResult, ss as DesktopUpdateStateSchema, su as isProviderDriverKind, ta as DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE, tc as ChatAttachment, td as AuthTokenExchangeRequest, ti as ServerConfigUpdatedPayload, tl as ProjectCreatedPayload, tn as WsTerminalResizeRpc, to as ToolLifecycleItemType, tr as VcsStatusInput, ts as DesktopSshPasswordPromptRequestSchema, tu as ProviderInstanceEnvironment, ua as OpenCodeSettings, uc as OrchestrationActorKind, ud as CheckpointRef, ui as ServerProcessResourceHistoryBucket, ul as ProviderInteractionMode, un as WsVcsRemoveWorktreeRpc, uo as ProviderSessionStartInput, ur as SourceControlCloneProtocol, us as PickFolderOptionsSchema, uu as ExecutionEnvironmentDescriptor, va as ThreadEnvMode, vc as OrchestrationEvent, vd as PositiveInt, vi as ServerProviderAvailability, vl as ThreadArchivedPayload, vn as FilesystemBrowseError, vo as TerminalCwdError, vr as SourceControlProviderError, vs as AdvertisedEndpointStatus, vt as WsOrchestrationDispatchCommandRpc, vu as ScopedThreadSessionRef, wa as ExternalLauncherError, wc as OrchestrationGetSnapshotError, wd as RuntimeTaskId, wi as ServerProviderState, wl as ThreadMetaUpdatedPayload, wn as ProjectSearchEntriesResult, wo as TerminalOpenInput, wr as SourceControlRepositoryCloneUrls, ws as RelayClientStatusSchema, wt as WsOrchestrationSubscribeThreadRpc, wu as AuthAccessStreamEvent, xa as EDITORS, xc as OrchestrationGetFullThreadDiffError, xd as RuntimeItemId, xi as ServerProviderSkill, xl as ThreadDeletedPayload, xn as ProjectEntry, xo as TerminalHistoryError, xr as SourceControlPublishRepositoryInput, xs as RelayClientInstallFailureReasonSchema, xt as WsOrchestrationGetTurnDiffRpc, xu as AuthAccessStreamClientRemovedEvent, ya as TimestampFormat, yc as OrchestrationEventMetadata, yd as ProjectId, yi as ServerProviderContinuation, yl as ThreadCheckpointRevertRequestedPayload, yn as FilesystemBrowseInput, yo as TerminalError, yr as SourceControlProviderInfo, ys as DesktopBackendBootstrap, yt as WsOrchestrationGetArchivedShellSnapshotRpc, yu as AuthAccessReadScope, za as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, zc as OrchestrationSession, zi as ServerTraceDiagnosticsLogEvent, zl as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, zn as GitRunStackedActionInput, zo as DesktopEnvironmentBootstrapSchema, zr as VcsProcessSpawnError, zs as EnvironmentHttpBadRequestError, zt as WsServerUpdateSettingsRpc, zu as AuthEnvironmentBootstrapTokenType } from "./shared.js";
|
|
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, CorrelationId, CursorSettings, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, DEFAULT_CLIENT_SETTINGS, 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, EnvironmentCloudHttpApi, EnvironmentCloudLinkStateResult, EnvironmentCloudPreferencesRequest, EnvironmentCloudRelayConfigResult, 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, 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, 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, ProviderInstanceConfig, ProviderInstanceConfigMap, ProviderInstanceEnvironment, ProviderInstanceEnvironmentVariable, ProviderInstanceEnvironmentVariableName, ProviderInstanceId, ProviderInstanceRef, ProviderInteractionMode, ProviderInterruptTurnInput, ProviderItemId, ProviderOptionChoice, ProviderOptionDescriptor, ProviderOptionDescriptorType, ProviderOptionSelection, ProviderOptionSelectionValue, ProviderOptionSelections, ProviderRequestKind, ProviderRespondToRequestInput, ProviderRespondToUserInputInput, ProviderRuntimeEvent, ProviderRuntimeEventV2, 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, 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 };
|
|
1
|
+
import { $a as TimestampFormat, $c as PreviewAutomationUnavailableError, $d as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, $f as AuthEnvironmentBootstrapTokenType, $i as ServerProviderSlashCommand, $l as EnvironmentInternalError, $n as ProjectSearchEntriesError, $o as TerminalCloseInput, $r as SourceControlPublishRepositoryResult, $s as DesktopSshEnvironmentEnsureResultSchema, $t as WsServerGetTraceDiagnosticsRpc, $u as OrchestrationThread, Aa as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Ac as PreviewAutomationElement, Ad as ThreadCreatedPayload, Af as ScopedProjectRef, Ai as ServerConfigStreamSettingsUpdatedEvent, Al as RelayClientInstallProgressEventSchema, An as WsVcsRefreshStatusRpc, Ao as ProviderRuntimeEventV2, Ap as NonNegativeInt, Ar as VcsRef, As as DesktopPreviewAutomationWaitForInputSchema, At as WsOrchestrationSubscribeShellRpc, Au as OrchestrationGetFullThreadDiffInput, Ba as GrokSettings, Bc as PreviewAutomationOwner, Bd as ThreadRevertedPayload, Bf as AuthAccessStreamPairingLinkUpsertedEvent, Bi as ServerProcessDiagnosticsResult, Bl as EnvironmentAuthenticatedPrincipal, Bn as AssetCreateUrlResult, Bo as ProviderGoalRequestInput, Bp as TrimmedNonEmptyString, Br as ChangeRequestState, Bs as DesktopPreviewTabIdSchema, Bt as WsPreviewRefreshRpc, Bu as OrchestrationProjectShell, Ca as isProviderAvailable, Cc as PreviewAnnotationStrokeTargetSchema, Cd as ProviderSessionRuntimeStatus, Cf as ExecutionEnvironmentCapabilities, Ci as ServerConfigIssue, Cl as AdvertisedEndpointProviderKind, Cn as WsTerminalRestartRpc, Co as SCRIPT_RUN_COMMAND_PATTERN, Cp as AuthSessionId, Cr as VcsCreateWorktreeInput, Cs as DesktopPreviewAnnotationThemeSchema, Ct as WsGitResolvePullRequestRpc, Cu as OrchestrationCommand, Da as CodexSettings, Dc as PreviewAutomationClickInput, Dd as ThreadApprovalResponseRequestedPayload, Df as ExecutionEnvironmentPlatformOs, Di as ServerConfigStreamEvent, Dl as DesktopBackendBootstrap, Dn as WsVcsInitRpc, Do as CanonicalRequestType, Dp as EventId, Dr as VcsListRefsResult, Ds as DesktopPreviewAutomationPressInputSchema, Dt as WsOrchestrationGetFullThreadDiffRpc, Du as OrchestrationEventMetadata, Ea as ClientSettingsSchema, Ec as PreviewAutomationActionEvent, Ed as ThreadActivityAppendedPayload, Ef as ExecutionEnvironmentPlatformArch, Ei as ServerConfigSettingsUpdatedPayload, El as AdvertisedEndpointStatus, En as WsVcsCreateWorktreeRpc, Eo as CanonicalItemType, Ep as EnvironmentId, Er as VcsListRefsInput, Es as DesktopPreviewAutomationEvaluateInputSchema, Et as WsOrchestrationGetArchivedShellSnapshotRpc, Eu as OrchestrationEvent, Fa as DEFAULT_SIDEBAR_PROJECT_SORT_ORDER, Fc as PreviewAutomationNavigateInput, Fd as ThreadGoalUpdatedPayload, Ff as AuthAccessStreamClientRemovedEvent, Fi as ServerLifecycleStreamReadyEvent, Fl as AuthPairingLinkRevokeResult, Fn as ReviewDiffPreviewResult, Fo as ThreadTokenUsageSnapshot, Fp as RuntimeItemId, Fr as VcsStatusResult, Fs as DesktopPreviewRecordingArtifactSchema, Ft as WsPreviewAutomationRespondRpc, Fu as OrchestrationGetTurnDiffResult, Ga as ServerSettings, Gc as PreviewAutomationResponse, Gd as ThreadTurnDiffCompletedPayload, Gf as AuthAdministrativeScopes, Gi as ServerProcessSignal, Gl as EnvironmentConnectHttpApi, Gn as FilesystemBrowseResult, Go as ProviderSession, Gr as SourceControlDiscoveryStatus, Gs as DesktopRuntimeInfoSchema, Gt as WsProjectsWriteFileRpc, Gu as OrchestrationReplayEventsInput, Ha as MIN_SIDEBAR_THREAD_PREVIEW_COUNT, Hc as PreviewAutomationRecordingArtifact, Hd as ThreadSessionSetPayload, Hf as AuthAccessTokenResult, Hi as ServerProcessResourceHistoryInput, Hl as EnvironmentCloudLinkStateResult, Hn as FilesystemBrowseEntry, Ho as ProviderRespondToRequestInput, Hp as TurnId, Hr as SourceControlCloneRepositoryInput, Hs as DesktopPreviewTabStateSchema, Ht as WsProjectsListEntriesRpc, Hu as OrchestrationProposedPlanId, Ia as DEFAULT_SIDEBAR_THREAD_PREVIEW_COUNT, Ic as PreviewAutomationNetworkEntry, Id as ThreadInteractionModeSetPayload, If as AuthAccessStreamClientUpsertedEvent, Ii as ServerLifecycleStreamWelcomeEvent, Il as EnvironmentAuthHttpApi, In as ReviewDiffPreviewSource, Io as ToolLifecycleItemType, Ip as RuntimeRequestId, Ir as VcsStatusStreamEvent, Is as DesktopPreviewRecordingFrameSchema, It as WsPreviewCloseRpc, Iu as OrchestrationLatestTurn, Ja as SidebarProjectGroupingMode, Jc as PreviewAutomationSnapshot, Jd as ThreadTurnStartRequestedPayload, Jf as AuthClientMetadata, Ji as ServerProviderAuthStatus, Jl as EnvironmentHttpCommonError, Jn as ProjectListEntriesInput, Jo as ProviderTurnStartResult, Jr as SourceControlProviderDiscoveryItem, Js as DesktopSshBearerBootstrapInputSchema, Jt as WsServerDiscoverSourceControlRpc, Ju as OrchestrationSessionStatus, Ka as ServerSettingsError, Kc as PreviewAutomationResultTooLargeError, Kd as ThreadTurnInterruptRequestedPayload, Kf as AuthBrowserSessionRequest, Ki as ServerProvider, Kl as EnvironmentHttpApi, Kn as ProjectEntry, Ko as ProviderSessionStartInput, Kr as SourceControlProviderAuth, Ks as DesktopServerExposureModeSchema, Kt as WsReviewGetDiffPreviewRpc, Ku as OrchestrationRpcSchemas, La as DEFAULT_SIDEBAR_THREAD_SORT_ORDER, Lc as PreviewAutomationNoFocusedOwnerError, Ld as ThreadMessageSentPayload, Lf as AuthAccessStreamError, Li as ServerLifecycleWelcomePayload, Ll as EnvironmentAuthInvalidError, Ln as ReviewDiffPreviewSourceKind, Lo as UserInputQuestion, Lp as RuntimeSessionId, Lr as VcsSwitchRefInput, Ls as DesktopPreviewRecordingSaveInputSchema, Lt as WsPreviewListRpc, Lu as OrchestrationMessage, Ma as DEFAULT_CONTEXT_MENU_STYLE, Mc as PreviewAutomationEvaluateInput, Md as ThreadGoalClearedPayload, Mf as ScopedThreadSessionRef, Mi as ServerConfigUpdatedPayload, Ml as RelayClientStatusSchema, Mn as WsVcsSwitchRefRpc, Mo as ProviderRuntimeTurnStatus, Mp as PositiveInt, Mr as VcsStatusInput, Ms as DesktopPreviewNavStatusSchema, Mt as WsPreviewAutomationClearOwnerRpc, Mu as OrchestrationGetSnapshotError, Na as DEFAULT_SERVER_SETTINGS, Nc as PreviewAutomationExecutionError, Nd as ThreadGoalRequest, Nf as AuthAccessReadScope, Ni as ServerLifecycleReadyPayload, Nl as AuthClientSessionRevokeResult, Nn as ReviewDiffPreviewError, No as RuntimeEventRaw, Np as ProjectId, Nr as VcsStatusLocalResult, Ns as DesktopPreviewNavigateInputSchema, Nt as WsPreviewAutomationConnectRpc, Nu as OrchestrationGetTurnDiffError, Oa as ContextMenuStyle, Oc as PreviewAutomationConsoleEntry, Od as ThreadArchivedPayload, Of as RepositoryIdentity, Oi as ServerConfigStreamKeybindingsUpdatedEvent, Ol as RelayClientInstallFailedError, On as WsVcsListRefsRpc, Oo as ItemLifecyclePayload, Op as IsoDateTime, Or as VcsPullInput, Os as DesktopPreviewAutomationScrollInputSchema, Ot as WsOrchestrationGetTurnDiffRpc, Ou as OrchestrationEventType, Pa as DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE, Pc as PreviewAutomationInvalidSelectorError, Pd as ThreadGoalRequestedPayload, Pf as AuthAccessSnapshot, Pi as ServerLifecycleStreamEvent, Pl as AuthOtherClientSessionsRevokeResult, Pn as ReviewDiffPreviewInput, Po as TOOL_LIFECYCLE_ITEM_TYPES, Pp as ProviderItemId, Pr as VcsStatusRemoteResult, Ps as DesktopPreviewPointerEventSchema, Pt as WsPreviewAutomationReportOwnerRpc, Pu as OrchestrationGetTurnDiffInput, Qa as ThreadEnvMode, Qc as PreviewAutomationTypeInput, Qd as DEFAULT_GIT_TEXT_GENERATION_MODEL, Qf as AuthCreatePairingCredentialInput, Qi as ServerProviderSkill, Ql as EnvironmentHttpUnauthorizedError, Qn as ProjectReadFileResult, Qo as TerminalClearInput, Qr as SourceControlPublishRepositoryInput, Qs as DesktopSshEnvironmentEnsureOptionsSchema, Qt as WsServerGetSettingsRpc, Qu as OrchestrationSubscribeThreadInput, Ra as DEFAULT_TIMESTAMP_FORMAT, Rc as PreviewAutomationOpenInput, Rd as ThreadMetaUpdatedPayload, Rf as AuthAccessStreamEvent, Ri as ServerObservability, Rl as EnvironmentAuthInvalidReason, Rn as AssetAccessError, Ro as isToolLifecycleItemType, Rp as RuntimeTaskId, Rr as VcsSwitchRefResult, Rs as DesktopPreviewRegisterWebviewInputSchema, Rt as WsPreviewNavigateRpc, Ru as OrchestrationMessageRole, Sa as ServerUpsertKeybindingResult, Sc as PreviewAnnotationScreenshotSchema, Sd as ProviderSandboxMode, Sf as EnvironmentConnectionState, Si as ServerConfig, Sl as AdvertisedEndpointProvider, Sn as WsTerminalResizeRpc, So as ResolvedKeybindingsConfig, Sp as ApprovalRequestId, Sr as VcsCreateRefResult, Ss as DesktopPreviewAnnotationThemeInputSchema, St as WsGitPreparePullRequestThreadRpc, Su as OrchestrationCheckpointSummary, Ta as ClientSettingsPatch, Tc as BrowserNavigationTarget, Td as RuntimeMode, Tf as ExecutionEnvironmentPlatform, Ti as ServerConfigProviderStatusesPayload, Tl as AdvertisedEndpointSource, Tn as WsVcsCreateRefRpc, To as THREAD_KEYBINDING_COMMANDS, Tp as CommandId, Tr as VcsInitInput, Ts as DesktopPreviewAutomationClickInputSchema, Tt as WsOrchestrationDispatchCommandRpc, Tu as OrchestrationDispatchCommandError, Ua as ObservabilitySettings, Uc as PreviewAutomationRecordingStatus, Ud as ThreadSessionStopRequestedPayload, Uf as AuthAccessTokenType, Ui as ServerProcessResourceHistoryResult, Ul as EnvironmentCloudPreferencesRequest, Un as FilesystemBrowseError, Uo as ProviderRespondToUserInputInput, Ur as SourceControlCloneRepositoryResult, Us as DesktopPreviewWebviewConfigSchema, Ut as WsProjectsReadFileRpc, Uu as OrchestrationReadModel, Va as MAX_SIDEBAR_THREAD_PREVIEW_COUNT, Vc as PreviewAutomationPressInput, Vd as ThreadRuntimeModeSetPayload, Vf as AuthAccessStreamSnapshotEvent, Vi as ServerProcessResourceHistoryBucket, Vl as EnvironmentCloudEndpointUnavailableError, Vn as AssetResource, Vo as ProviderInterruptTurnInput, Vp as TrimmedString, Vr as SourceControlCloneProtocol, Vs as DesktopPreviewTabInputSchema, Vt as WsPreviewReportStatusRpc, Vu as OrchestrationProposedPlan, Wa as OpenCodeSettings, Wc as PreviewAutomationRequest, Wd as ThreadTurnDiff, Wf as AuthAccessWriteScope, Wi as ServerProcessResourceHistorySummary, Wl as EnvironmentCloudRelayConfigResult, Wn as FilesystemBrowseInput, Wo as ProviderSendTurnInput, Wr as SourceControlDiscoveryResult, Ws as DesktopRuntimeArchSchema, Wt as WsProjectsSearchEntriesRpc, Wu as OrchestrationReplayEventsError, Xa as SidebarThreadPreviewCount, Xc as PreviewAutomationTabNotFoundError, Xd as TurnCountRange, Xf as AuthClientPresentationMetadata, Xi as ServerProviderContinuation, Xl as EnvironmentHttpForbiddenError, Xn as ProjectReadFileError, Xo as TerminalAttachInput, Xr as SourceControlProviderInfo, Xs as DesktopSshEnvironmentBootstrapSchema, Xt as WsServerGetProcessDiagnosticsRpc, Xu as OrchestrationShellStreamEvent, Ya as SidebarProjectSortOrder, Yc as PreviewAutomationStatus, Yd as ThreadUnarchivedPayload, Yf as AuthClientMetadataDeviceType, Yi as ServerProviderAvailability, Yl as EnvironmentHttpConflictError, Yn as ProjectListEntriesResult, Yo as DEFAULT_TERMINAL_ID, Yr as SourceControlProviderError, Ys as DesktopSshBearerRequestInputSchema, Yt as WsServerGetConfigRpc, Yu as OrchestrationShellSnapshot, Za as SidebarThreadSortOrder, Zc as PreviewAutomationTimeoutError, Zd as BooleanProviderOptionDescriptor, Zf as AuthClientSession, Zi as ServerProviderModel, Zl as EnvironmentHttpInternalServerError, Zn as ProjectReadFileInput, Zo as TerminalAttachStreamEvent, Zr as SourceControlProviderKind, Zs as DesktopSshEnvironmentEnsureInputSchema, Zt as WsServerGetProcessResourceHistoryRpc, Zu as OrchestrationShellStreamItem, _a as ServerTraceDiagnosticsRecentFailure, _c as PreviewAnnotationElementTargetSchema, _d as ProjectionPendingApprovalStatus, _f as ProviderInstanceEnvironmentVariableName, _i as VcsProcessTimeoutError, _l as PreviewSessionSnapshot, _n as WsSubscribeVcsStatusRpc, _o as MAX_SCRIPT_ID_LENGTH, _p as EnvironmentAuthorizationError, _r as GitRunStackedActionResult, _s as DesktopAppStageLabelSchema, _t as WS_METHODS, _u as ORCHESTRATION_WS_METHODS, aa as ServerProviderUpdateStatus, ac as DesktopSshPasswordPromptRequestSchema, ad as OrchestrationThreadShell, af as ProviderOptionChoice, ai as SourceControlRepositoryVisibility, al as PreviewCloseInput, an as WsServerUpsertKeybindingRpc, ao as LaunchEditorInput, ap as AuthPairingLink, ar as GitActionProgressEvent, as as TerminalNotRunningError, au as EnvironmentRequestInvalidError, ba as ServerTraceDiagnosticsSpanSummary, bc as PreviewAnnotationRectSchema, bd as ProviderInteractionMode, bf as defaultInstanceIdForDriver, bi as VcsRepositoryIdentity, bl as AdvertisedEndpointCompatibility, bn as WsTerminalCloseRpc, bo as MODEL_PICKER_KEYBINDING_COMMANDS, bp as ServerAuthPolicy, br as TextGenerationError, bs as DesktopDiscoveredSshHostSchema, bt as WsCloudInstallRelayClientRpc, bu as OrchestrationCheckpointFile, ca as ServerProviderVersionAdvisoryStatus, cc as DesktopUpdateActionResultSchema, cd as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, cf as ProviderOptionSelection, ci as VcsDriverKind, cl as PreviewInvalidUrlError, cn as WsSourceControlLookupRepositoryRpc, co as KeybindingShortcut, cp as AuthReviewWriteScope, cr as GitActionProgressStream, cs as TerminalRestartInput, cu as AssistantDeliveryMode, da as ServerRemoveKeybindingResult, dc as DesktopUpdateStateSchema, dd as ProjectCreatedPayload, df as SelectProviderOptionDescriptor, di as VcsFreshnessSource, dl as PreviewNavStatus, dn as WsSubscribeDiscoveredLocalServersRpc, do as KeybindingWhenNode, dp as AuthSessionState, dr as GitManagerServiceError, ds as TerminalSessionStatus, du as ClientOrchestrationCommand, ea as ServerProviderSlashCommandInput, ec as DesktopSshEnvironmentTargetSchema, ed as OrchestrationThreadActivity, ef as DEFAULT_MODEL, ei as SourceControlPublishStatus, el as PreviewAutomationUnsupportedClientError, en as WsServerRefreshProvidersRpc, eo as makeProviderSettingsSchema, ep as AuthEnvironmentScope, er as ProjectSearchEntriesInput, es as TerminalCwdError, eu as EnvironmentInternalErrorReason, fa as ServerSignalProcessInput, fc as DesktopUpdateStatusSchema, fd as ProjectDeletedPayload, ff as ProviderDriverKind, fi as VcsListRemotesResult, fl as PreviewNavigateInput, fn as WsSubscribePreviewEventsRpc, fo as KeybindingsConfig, fp as AuthStandardClientScopes, fr as GitPreparePullRequestThreadInput, fs as TerminalSummary, fu as CorrelationId, ga as ServerTraceDiagnosticsLogEvent, gc as PickedElementStackFrameSchema, gd as ProjectionPendingApprovalDecision, gf as ProviderInstanceEnvironmentVariable, gi as VcsProcessSpawnError, gl as PreviewSessionLookupError, gn as WsSubscribeTerminalMetadataRpc, go as MAX_KEYBINDING_WHEN_LENGTH, gp as AuthWebSocketTicketResult, gr as GitRunStackedActionInput, gs as DesktopAppBrandingSchema, gu as ModelSelection, ha as ServerTraceDiagnosticsFailureSummary, hc as PickedElementPayloadSchema, hd as ProjectScriptIcon, hf as ProviderInstanceEnvironment, hi as VcsProcessExitError, hl as PreviewReportStatusInput, hn as WsSubscribeTerminalEventsRpc, ho as MAX_KEYBINDING_VALUE_LENGTH, hp as AuthTokenExchangeRequest, hr as GitResolvePullRequestResult, hs as ContextMenuItemSchema, hu as DispatchResult, ia as ServerProviderUpdateState, ic as DesktopSshPasswordPromptCancelledType, id as OrchestrationThreadGoalStatus, if as PROVIDER_DISPLAY_NAMES, ii as SourceControlRepositoryLookupInput, il as DiscoveredLocalServerList, in as WsServerUpdateSettingsRpc, io as ExternalLauncherError, ip as AuthPairingCredentialResult, ir as ProjectWriteFileResult, is as TerminalMetadataStreamEvent, iu as EnvironmentOrchestrationHttpApi, ja as DEFAULT_CLIENT_SETTINGS, jc as PreviewAutomationError, jd as ThreadDeletedPayload, jf as ScopedThreadRef, ji as ServerConfigStreamSnapshotEvent, jl as RelayClientInstallProgressStageSchema, jn as WsVcsRemoveWorktreeRpc, jo as ProviderRuntimeThreadGoalStatus, jp as PortSchema, jr as VcsRemoveWorktreeInput, js as DesktopPreviewConfigInputSchema, jt as WsOrchestrationSubscribeThreadRpc, ju as OrchestrationGetFullThreadDiffResult, ka as CursorSettings, kc as PreviewAutomationControlInterruptedError, kd as ThreadCheckpointRevertRequestedPayload, kf as RepositoryIdentityLocator, ki as ServerConfigStreamProviderStatusesEvent, kl as RelayClientInstallFailureReasonSchema, kn as WsVcsPullRpc, ko as ProviderRuntimeEvent, kp as MessageId, kr as VcsPullResult, ks as DesktopPreviewAutomationTypeInputSchema, kt as WsOrchestrationReplayEventsRpc, ku as OrchestrationGetFullThreadDiffError, la as ServerProviders, lc as DesktopUpdateChannelSchema, ld as PROVIDER_SEND_TURN_MAX_INPUT_CHARS, lf as ProviderOptionSelectionValue, li as VcsError, ll as PreviewListInput, ln as WsSourceControlPublishRepositoryRpc, lo as KeybindingValue, lp as AuthRevokeClientSessionInput, lr as GitCommandError, ls as TerminalSessionLookupError, lu as ChatAttachment, ma as ServerTraceDiagnosticsErrorKind, mc as PickFolderOptionsSchema, md as ProjectScript, mf as ProviderInstanceConfigMap, mi as VcsOutputDecodeError, ml as PreviewRefreshInput, mn as WsSubscribeServerLifecycleRpc, mo as MAX_KEYBINDINGS_COUNT, mp as AuthTokenExchangeGrantType, mr as GitPullRequestRefInput, ms as TerminalWriteInput, mu as DEFAULT_RUNTIME_MODE, na as ServerProviderUpdateError, nc as DesktopSshHttpBaseUrlInputSchema, nd as OrchestrationThreadDetailSnapshot, nf as MODEL_SLUG_ALIASES_BY_PROVIDER, ni as SourceControlRepositoryError, nl as PreviewUrlResolution, nn as WsServerSignalProcessRpc, no as EditorId, np as AuthOrchestrationOperateScope, nr as ProjectWriteFileError, ns as TerminalEvent, nu as EnvironmentOperationForbiddenError, oa as ServerProviderUpdatedPayload, oc as DesktopSshPasswordPromptResolutionInputSchema, od as OrchestrationThreadStreamItem, of as ProviderOptionDescriptor, oi as VcsDiscoveryItem, ol as PreviewError, on as WsShellOpenInEditorRpc, oo as KeybindingCommand, op as AuthRelayReadScope, or as GitActionProgressKind, os as TerminalOpenInput, ou as EnvironmentRequestInvalidReason, pa as ServerSignalProcessResult, pc as PersistedSavedEnvironmentRecordSchema, pd as ProjectMetaUpdatedPayload, pf as ProviderInstanceConfig, pi as VcsListWorkspaceFilesResult, pl as PreviewOpenInput, pn as WsSubscribeServerConfigRpc, po as KeybindingsConfigError, pp as AuthTerminalOperateScope, pr as GitPreparePullRequestThreadResult, ps as TerminalThreadInput, pu as DEFAULT_PROVIDER_INTERACTION_MODE, qa as ServerSettingsPatch, qc as PreviewAutomationScrollInput, qd as ThreadTurnStartCommand, qf as AuthBrowserSessionResult, qi as ServerProviderAuth, ql as EnvironmentHttpBadRequestError, qn as ProjectListEntriesError, qo as ProviderStopSessionInput, qr as SourceControlProviderAuthStatus, qs as DesktopServerExposureStateSchema, qt as WsRpcGroup, qu as OrchestrationSession, ra as ServerProviderUpdateInput, rc as DesktopSshPasswordPromptCancelledResultSchema, rd as OrchestrationThreadGoal, rf as ModelCapabilities, ri as SourceControlRepositoryInfo, rl as DiscoveredLocalServer, rn as WsServerUpdateProviderRpc, ro as EditorLaunchStyle, rp as AuthOrchestrationReadScope, rr as ProjectWriteFileInput, rs as TerminalHistoryError, ru as EnvironmentOperationForbiddenReason, sa as ServerProviderVersionAdvisory, sc as DesktopThemeSchema, sd as PROVIDER_SEND_TURN_MAX_ATTACHMENTS, sf as ProviderOptionDescriptorType, si as VcsDriverCapabilities, sl as PreviewEvent, sn as WsSourceControlCloneRepositoryRpc, so as KeybindingRule, sp as AuthRelayWriteScope, sr as GitActionProgressPhase, ss as TerminalResizeInput, su as EnvironmentScopeRequiredError, ta as ServerProviderState, tc as DesktopSshHostSourceSchema, td as OrchestrationThreadActivityTone, tf as DEFAULT_MODEL_BY_PROVIDER, ti as SourceControlRepositoryCloneUrls, tl as PreviewAutomationWaitForInput, tn as WsServerRemoveKeybindingRpc, to as EDITORS, tp as AuthEnvironmentScopes, tr as ProjectSearchEntriesResult, ts as TerminalError, tu as EnvironmentMetadataHttpApi, ua as ServerRemoveKeybindingInput, uc as DesktopUpdateCheckResultSchema, ud as ProjectCreateCommand, uf as ProviderOptionSelections, ui as VcsFreshness, ul as PreviewListResult, un as WsSubscribeAuthAccessRpc, uo as KeybindingWhen, up as AuthRevokePairingLinkInput, ur as GitManagerError, us as TerminalSessionSnapshot, uu as ChatImageAttachment, va as ServerTraceDiagnosticsResult, vc as PreviewAnnotationPayloadSchema, vd as ProviderApprovalDecision, vf as ProviderInstanceId, vi as VcsRemote, vl as PreviewTabId, vn as WsTerminalAttachRpc, vo as MAX_WHEN_EXPRESSION_DEPTH, vp as ServerAuthBootstrapMethod, vr as GitRunStackedActionToastRunAction, vs as DesktopCloudAuthFetchInputSchema, vt as WsAssetsCreateUrlRpc, vu as OrchestrationActorKind, wa as ClaudeSettings, wc as PreviewAnnotationStyleChangeSchema, wd as ProviderUserInputAnswers, wf as ExecutionEnvironmentDescriptor, wi as ServerConfigKeybindingsUpdatedPayload, wl as AdvertisedEndpointReachability, wn as WsTerminalWriteRpc, wo as THREAD_JUMP_KEYBINDING_COMMANDS, wp as CheckpointRef, wr as VcsCreateWorktreeResult, ws as DesktopPreviewArtifactInputSchema, wt as WsGitRunStackedActionRpc, wu as OrchestrationCommandReceiptStatus, xa as ServerUpsertKeybindingInput, xc as PreviewAnnotationRegionTargetSchema, xd as ProviderRequestKind, xf as isProviderDriverKind, xi as VcsUnsupportedOperationError, xl as AdvertisedEndpointHostedHttpsCompatibility, xn as WsTerminalOpenRpc, xo as ResolvedKeybindingRule, xp as ServerAuthSessionMethod, xr as VcsCreateRefInput, xs as DesktopEnvironmentBootstrapSchema, xt as WsFilesystemBrowseRpc, xu as OrchestrationCheckpointStatus, ya as ServerTraceDiagnosticsSpanOccurrence, yc as PreviewAnnotationPointSchema, yd as ProviderApprovalPolicy, yf as ProviderInstanceRef, yi as VcsRepositoryDetectionError, yl as AdvertisedEndpoint, yn as WsTerminalClearRpc, yo as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, yp as ServerAuthDescriptor, yr as GitStackedAction, ys as DesktopCloudAuthFetchResultSchema, yt as WsCloudGetRelayClientStatusRpc, yu as OrchestrationAggregateKind, za as DEFAULT_UNIFIED_SETTINGS, zc as PreviewAutomationOperation, zd as ThreadProposedPlanUpsertedPayload, zf as AuthAccessStreamPairingLinkRemovedEvent, zi as ServerProcessDiagnosticsEntry, zl as EnvironmentAuthenticatedAuth, zn as AssetCreateUrlInput, zo as ProviderEvent, zp as ThreadId, zr as ChangeRequest, zs as DesktopPreviewScreenshotArtifactSchema, zt as WsPreviewOpenRpc, zu as OrchestrationProject } from "./shared.js";
|
|
2
|
+
export { AdvertisedEndpoint, AdvertisedEndpointCompatibility, AdvertisedEndpointHostedHttpsCompatibility, AdvertisedEndpointProvider, AdvertisedEndpointProviderKind, AdvertisedEndpointReachability, AdvertisedEndpointSource, AdvertisedEndpointStatus, ApprovalRequestId, AssetAccessError, AssetCreateUrlInput, AssetCreateUrlResult, AssetResource, 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, BrowserNavigationTarget, 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, DesktopPreviewAnnotationThemeInputSchema, DesktopPreviewAnnotationThemeSchema, DesktopPreviewArtifactInputSchema, DesktopPreviewAutomationClickInputSchema, DesktopPreviewAutomationEvaluateInputSchema, DesktopPreviewAutomationPressInputSchema, DesktopPreviewAutomationScrollInputSchema, DesktopPreviewAutomationTypeInputSchema, DesktopPreviewAutomationWaitForInputSchema, DesktopPreviewConfigInputSchema, DesktopPreviewNavStatusSchema, DesktopPreviewNavigateInputSchema, DesktopPreviewPointerEventSchema, DesktopPreviewRecordingArtifactSchema, DesktopPreviewRecordingFrameSchema, DesktopPreviewRecordingSaveInputSchema, DesktopPreviewRegisterWebviewInputSchema, DesktopPreviewScreenshotArtifactSchema, DesktopPreviewTabIdSchema, DesktopPreviewTabInputSchema, DesktopPreviewTabStateSchema, DesktopPreviewWebviewConfigSchema, DesktopRuntimeArchSchema, DesktopRuntimeInfoSchema, DesktopServerExposureModeSchema, DesktopServerExposureStateSchema, DesktopSshBearerBootstrapInputSchema, DesktopSshBearerRequestInputSchema, DesktopSshEnvironmentBootstrapSchema, DesktopSshEnvironmentEnsureInputSchema, DesktopSshEnvironmentEnsureOptionsSchema, DesktopSshEnvironmentEnsureResultSchema, DesktopSshEnvironmentTargetSchema, DesktopSshHostSourceSchema, DesktopSshHttpBaseUrlInputSchema, DesktopSshPasswordPromptCancelledResultSchema, DesktopSshPasswordPromptCancelledType, DesktopSshPasswordPromptRequestSchema, DesktopSshPasswordPromptResolutionInputSchema, DesktopThemeSchema, DesktopUpdateActionResultSchema, DesktopUpdateChannelSchema, DesktopUpdateCheckResultSchema, DesktopUpdateStateSchema, DesktopUpdateStatusSchema, DiscoveredLocalServer, DiscoveredLocalServerList, 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, PickedElementPayloadSchema, PickedElementStackFrameSchema, PortSchema, PositiveInt, PreviewAnnotationElementTargetSchema, PreviewAnnotationPayloadSchema, PreviewAnnotationPointSchema, PreviewAnnotationRectSchema, PreviewAnnotationRegionTargetSchema, PreviewAnnotationScreenshotSchema, PreviewAnnotationStrokeTargetSchema, PreviewAnnotationStyleChangeSchema, PreviewAutomationActionEvent, PreviewAutomationClickInput, PreviewAutomationConsoleEntry, PreviewAutomationControlInterruptedError, PreviewAutomationElement, PreviewAutomationError, PreviewAutomationEvaluateInput, PreviewAutomationExecutionError, PreviewAutomationInvalidSelectorError, PreviewAutomationNavigateInput, PreviewAutomationNetworkEntry, PreviewAutomationNoFocusedOwnerError, PreviewAutomationOpenInput, PreviewAutomationOperation, PreviewAutomationOwner, PreviewAutomationPressInput, PreviewAutomationRecordingArtifact, PreviewAutomationRecordingStatus, PreviewAutomationRequest, PreviewAutomationResponse, PreviewAutomationResultTooLargeError, PreviewAutomationScrollInput, PreviewAutomationSnapshot, PreviewAutomationStatus, PreviewAutomationTabNotFoundError, PreviewAutomationTimeoutError, PreviewAutomationTypeInput, PreviewAutomationUnavailableError, PreviewAutomationUnsupportedClientError, PreviewAutomationWaitForInput, PreviewCloseInput, PreviewError, PreviewEvent, PreviewInvalidUrlError, PreviewListInput, PreviewListResult, PreviewNavStatus, PreviewNavigateInput, PreviewOpenInput, PreviewRefreshInput, PreviewReportStatusInput, PreviewSessionLookupError, PreviewSessionSnapshot, PreviewTabId, PreviewUrlResolution, ProjectCreateCommand, ProjectCreatedPayload, ProjectDeletedPayload, ProjectEntry, ProjectId, ProjectListEntriesError, ProjectListEntriesInput, ProjectListEntriesResult, ProjectMetaUpdatedPayload, ProjectReadFileError, ProjectReadFileInput, ProjectReadFileResult, 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, WsAssetsCreateUrlRpc, WsCloudGetRelayClientStatusRpc, WsCloudInstallRelayClientRpc, WsFilesystemBrowseRpc, WsGitPreparePullRequestThreadRpc, WsGitResolvePullRequestRpc, WsGitRunStackedActionRpc, WsOrchestrationDispatchCommandRpc, WsOrchestrationGetArchivedShellSnapshotRpc, WsOrchestrationGetFullThreadDiffRpc, WsOrchestrationGetTurnDiffRpc, WsOrchestrationReplayEventsRpc, WsOrchestrationSubscribeShellRpc, WsOrchestrationSubscribeThreadRpc, WsPreviewAutomationClearOwnerRpc, WsPreviewAutomationConnectRpc, WsPreviewAutomationReportOwnerRpc, WsPreviewAutomationRespondRpc, WsPreviewCloseRpc, WsPreviewListRpc, WsPreviewNavigateRpc, WsPreviewOpenRpc, WsPreviewRefreshRpc, WsPreviewReportStatusRpc, WsProjectsListEntriesRpc, WsProjectsReadFileRpc, WsProjectsSearchEntriesRpc, WsProjectsWriteFileRpc, WsReviewGetDiffPreviewRpc, WsRpcGroup, WsServerDiscoverSourceControlRpc, WsServerGetConfigRpc, WsServerGetProcessDiagnosticsRpc, WsServerGetProcessResourceHistoryRpc, WsServerGetSettingsRpc, WsServerGetTraceDiagnosticsRpc, WsServerRefreshProvidersRpc, WsServerRemoveKeybindingRpc, WsServerSignalProcessRpc, WsServerUpdateProviderRpc, WsServerUpdateSettingsRpc, WsServerUpsertKeybindingRpc, WsShellOpenInEditorRpc, WsSourceControlCloneRepositoryRpc, WsSourceControlLookupRepositoryRpc, WsSourceControlPublishRepositoryRpc, WsSubscribeAuthAccessRpc, WsSubscribeDiscoveredLocalServersRpc, WsSubscribePreviewEventsRpc, 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "t3code-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "CLI for t3code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
|
@@ -27,73 +27,77 @@
|
|
|
27
27
|
],
|
|
28
28
|
"type": "module",
|
|
29
29
|
"types": "./dist/src/index.d.ts",
|
|
30
|
-
"imports": {
|
|
31
|
-
"#t3tools/contracts": {
|
|
32
|
-
"types": "./dist/upstream-t3code/packages/contracts/src/index.d.ts",
|
|
33
|
-
"default": "./dist/upstream-t3code/packages/contracts/src/index.d.ts"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
30
|
"exports": {
|
|
37
31
|
".": {
|
|
38
32
|
"types": "./dist/src/index.d.ts",
|
|
33
|
+
"import": "./dist/index.js",
|
|
39
34
|
"default": "./dist/index.js"
|
|
40
35
|
},
|
|
41
36
|
"./application": {
|
|
42
37
|
"types": "./dist/src/application/index.d.ts",
|
|
38
|
+
"import": "./dist/application.js",
|
|
43
39
|
"default": "./dist/application.js"
|
|
44
40
|
},
|
|
45
41
|
"./auth": {
|
|
46
42
|
"types": "./dist/src/auth/index.d.ts",
|
|
43
|
+
"import": "./dist/auth.js",
|
|
47
44
|
"default": "./dist/auth.js"
|
|
48
45
|
},
|
|
49
46
|
"./cli": {
|
|
50
47
|
"types": "./dist/src/cli/index.d.ts",
|
|
48
|
+
"import": "./dist/cli.js",
|
|
51
49
|
"default": "./dist/cli.js"
|
|
52
50
|
},
|
|
53
51
|
"./config": {
|
|
54
52
|
"types": "./dist/src/config/index.d.ts",
|
|
53
|
+
"import": "./dist/config.js",
|
|
55
54
|
"default": "./dist/config.js"
|
|
56
55
|
},
|
|
57
56
|
"./connection": {
|
|
58
57
|
"types": "./dist/src/connection/index.d.ts",
|
|
58
|
+
"import": "./dist/connection.js",
|
|
59
59
|
"default": "./dist/connection.js"
|
|
60
60
|
},
|
|
61
61
|
"./contracts": {
|
|
62
62
|
"types": "./dist/src/contracts/index.d.ts",
|
|
63
|
+
"import": "./dist/contracts.js",
|
|
63
64
|
"default": "./dist/contracts.js"
|
|
64
65
|
},
|
|
65
|
-
"./t3tools": {
|
|
66
|
-
"types": "./dist/upstream-t3code/packages/contracts/src/index.d.ts",
|
|
67
|
-
"default": "./dist/t3tools.js"
|
|
68
|
-
},
|
|
69
|
-
"./layout": {
|
|
70
|
-
"types": "./dist/src/layout/index.d.ts",
|
|
71
|
-
"default": "./dist/layout.js"
|
|
72
|
-
},
|
|
73
66
|
"./node": {
|
|
74
67
|
"types": "./dist/src/node/index.d.ts",
|
|
68
|
+
"import": "./dist/node.js",
|
|
75
69
|
"default": "./dist/node.js"
|
|
76
70
|
},
|
|
77
71
|
"./orchestration": {
|
|
78
72
|
"types": "./dist/src/orchestration/index.d.ts",
|
|
73
|
+
"import": "./dist/orchestration.js",
|
|
79
74
|
"default": "./dist/orchestration.js"
|
|
80
75
|
},
|
|
81
76
|
"./rpc": {
|
|
82
77
|
"types": "./dist/src/rpc/index.d.ts",
|
|
78
|
+
"import": "./dist/rpc.js",
|
|
83
79
|
"default": "./dist/rpc.js"
|
|
84
80
|
},
|
|
85
81
|
"./runtime": {
|
|
86
82
|
"types": "./dist/src/runtime/index.d.ts",
|
|
83
|
+
"import": "./dist/runtime.js",
|
|
87
84
|
"default": "./dist/runtime.js"
|
|
88
85
|
},
|
|
89
|
-
"./
|
|
90
|
-
"types": "./dist/src/
|
|
91
|
-
"
|
|
92
|
-
|
|
86
|
+
"./t3tools": {
|
|
87
|
+
"types": "./dist/src/t3tools/index.d.ts",
|
|
88
|
+
"import": "./dist/t3tools.js",
|
|
89
|
+
"default": "./dist/t3tools.js"
|
|
90
|
+
},
|
|
91
|
+
"./package.json": "./package.json"
|
|
93
92
|
},
|
|
94
93
|
"dependencies": {
|
|
95
94
|
"@effect/platform-node": "4.0.0-beta.78",
|
|
96
|
-
"
|
|
95
|
+
"@napi-rs/keyring": "^1.3.0",
|
|
96
|
+
"effect": "4.0.0-beta.78",
|
|
97
|
+
"marked": "^15.0.12",
|
|
98
|
+
"marked-terminal": "^7.3.0",
|
|
99
|
+
"string-width": "^8.2.1",
|
|
100
|
+
"wrap-ansi": "^10.0.0"
|
|
97
101
|
},
|
|
98
102
|
"devDependencies": {
|
|
99
103
|
"@changesets/cli": "^2.31.0",
|
|
@@ -102,7 +106,7 @@
|
|
|
102
106
|
"@types/node": "^25.9.1",
|
|
103
107
|
"typescript": "^6.0.3",
|
|
104
108
|
"vite-plus": "^0.1.24",
|
|
105
|
-
"@t3tools/contracts": "0.0.
|
|
109
|
+
"@t3tools/contracts": "0.0.27"
|
|
106
110
|
},
|
|
107
111
|
"engines": {
|
|
108
112
|
"node": ">=24.0.0"
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import "vite-plus/test/config";
|
|
2
|
+
|
|
3
|
+
import * as Cause from "effect/Cause";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import * as Exit from "effect/Exit";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as Option from "effect/Option";
|
|
8
|
+
import * as Stream from "effect/Stream";
|
|
9
|
+
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
10
|
+
import { assert, describe, it } from "@effect/vitest";
|
|
11
|
+
import { fromPartial } from "@total-typescript/shoehorn";
|
|
12
|
+
import type {
|
|
13
|
+
ClientOrchestrationCommand,
|
|
14
|
+
OrchestrationProjectShell,
|
|
15
|
+
OrchestrationShellSnapshot,
|
|
16
|
+
ProjectScript,
|
|
17
|
+
} from "@t3tools/contracts";
|
|
18
|
+
|
|
19
|
+
import { ProjectActionLookupError, ProjectActionValidationError } from "../domain/error.ts";
|
|
20
|
+
import { T3Orchestration, type Orchestration } from "../orchestration/service.ts";
|
|
21
|
+
import { makeActionApplication, nextProjectScriptId } from "./actions.ts";
|
|
22
|
+
import { T3TerminalApplication, type CreateTerminalInput } from "./service.ts";
|
|
23
|
+
|
|
24
|
+
function makeProject(scripts: ReadonlyArray<ProjectScript>): OrchestrationProjectShell {
|
|
25
|
+
return fromPartial({
|
|
26
|
+
id: "proj-1",
|
|
27
|
+
title: "Project",
|
|
28
|
+
workspaceRoot: "/workspace",
|
|
29
|
+
scripts,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function makeSnapshot(project: OrchestrationProjectShell): OrchestrationShellSnapshot {
|
|
34
|
+
return fromPartial({
|
|
35
|
+
projects: [project],
|
|
36
|
+
threads: [
|
|
37
|
+
{
|
|
38
|
+
id: "thread-1",
|
|
39
|
+
projectId: project.id,
|
|
40
|
+
worktreePath: "/workspace/.worktrees/thread-1",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function makeAction(overrides: Partial<ProjectScript>): ProjectScript {
|
|
47
|
+
return {
|
|
48
|
+
id: "test",
|
|
49
|
+
name: "Test",
|
|
50
|
+
command: "npm test",
|
|
51
|
+
icon: "test",
|
|
52
|
+
runOnWorktreeCreate: false,
|
|
53
|
+
...overrides,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function makeTestLayer(input: {
|
|
58
|
+
readonly project: OrchestrationProjectShell;
|
|
59
|
+
readonly onDispatch?: (command: ClientOrchestrationCommand) => void;
|
|
60
|
+
readonly onCreateTerminal?: (input: CreateTerminalInput) => void;
|
|
61
|
+
}) {
|
|
62
|
+
let project = input.project;
|
|
63
|
+
const orchestration = Layer.succeed(
|
|
64
|
+
T3Orchestration,
|
|
65
|
+
fromPartial<Orchestration>({
|
|
66
|
+
getShellSnapshot: () => Effect.succeed(makeSnapshot(project)),
|
|
67
|
+
watchShellSequence: () => Stream.make(42),
|
|
68
|
+
dispatch: (command: ClientOrchestrationCommand) => {
|
|
69
|
+
input.onDispatch?.(command);
|
|
70
|
+
if (command.type === "project.meta.update" && command.scripts !== undefined) {
|
|
71
|
+
project = { ...project, scripts: command.scripts };
|
|
72
|
+
}
|
|
73
|
+
return Effect.succeed({ sequence: 42 });
|
|
74
|
+
},
|
|
75
|
+
}),
|
|
76
|
+
);
|
|
77
|
+
const terminals = Layer.succeed(
|
|
78
|
+
T3TerminalApplication,
|
|
79
|
+
fromPartial({
|
|
80
|
+
createTerminal: (terminalInput: CreateTerminalInput) => {
|
|
81
|
+
input.onCreateTerminal?.(terminalInput);
|
|
82
|
+
return Effect.succeed(
|
|
83
|
+
fromPartial({
|
|
84
|
+
threadId: terminalInput.threadId,
|
|
85
|
+
terminalId: terminalInput.terminalId ?? "generated-terminal",
|
|
86
|
+
cwd: "/workspace/.worktrees/thread-1",
|
|
87
|
+
worktreePath: "/workspace/.worktrees/thread-1",
|
|
88
|
+
}),
|
|
89
|
+
);
|
|
90
|
+
},
|
|
91
|
+
}),
|
|
92
|
+
);
|
|
93
|
+
return Layer.mergeAll(orchestration, terminals, NodeServices.layer);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
describe("project actions", () => {
|
|
97
|
+
it("generates action ids like the frontend", () => {
|
|
98
|
+
assert.equal(nextProjectScriptId("Run Tests", []), "run-tests");
|
|
99
|
+
assert.equal(nextProjectScriptId("Run Tests", ["run-tests"]), "run-tests-2");
|
|
100
|
+
assert.equal(nextProjectScriptId("!!!", []), "script");
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
it.layer(NodeServices.layer)("makeActionApplication", (t) => {
|
|
104
|
+
t.effect("adds an action and clears existing setup actions", () =>
|
|
105
|
+
Effect.gen(function* () {
|
|
106
|
+
let dispatched: ClientOrchestrationCommand | undefined;
|
|
107
|
+
const app = yield* makeActionApplication().pipe(
|
|
108
|
+
Effect.provide(
|
|
109
|
+
makeTestLayer({
|
|
110
|
+
project: makeProject([
|
|
111
|
+
makeAction({
|
|
112
|
+
id: "setup",
|
|
113
|
+
name: "Setup",
|
|
114
|
+
command: "npm install",
|
|
115
|
+
icon: "configure",
|
|
116
|
+
runOnWorktreeCreate: true,
|
|
117
|
+
}),
|
|
118
|
+
]),
|
|
119
|
+
onDispatch: (command) => {
|
|
120
|
+
dispatched = command;
|
|
121
|
+
},
|
|
122
|
+
}),
|
|
123
|
+
),
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
const result = yield* app.addAction({
|
|
127
|
+
projectRef: "proj-1",
|
|
128
|
+
name: "Run Tests",
|
|
129
|
+
command: "npm test",
|
|
130
|
+
icon: "test",
|
|
131
|
+
setup: true,
|
|
132
|
+
previewUrl: " http://localhost:5173 ",
|
|
133
|
+
autoOpenPreview: true,
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
assert.equal(result.action.id, "run-tests");
|
|
137
|
+
assert.equal(result.action.previewUrl, "http://localhost:5173");
|
|
138
|
+
assert.equal(result.action.autoOpenPreview, true);
|
|
139
|
+
assert.equal(dispatched?.type, "project.meta.update");
|
|
140
|
+
if (dispatched?.type === "project.meta.update") {
|
|
141
|
+
assert.isDefined(dispatched.scripts);
|
|
142
|
+
assert.deepEqual(
|
|
143
|
+
dispatched.scripts.map((script) => [script.id, script.runOnWorktreeCreate]),
|
|
144
|
+
[
|
|
145
|
+
["setup", false],
|
|
146
|
+
["run-tests", true],
|
|
147
|
+
],
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
}),
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
t.effect("adds a non-setup action without changing the existing setup action", () =>
|
|
154
|
+
Effect.gen(function* () {
|
|
155
|
+
let dispatched: ClientOrchestrationCommand | undefined;
|
|
156
|
+
const app = yield* makeActionApplication().pipe(
|
|
157
|
+
Effect.provide(
|
|
158
|
+
makeTestLayer({
|
|
159
|
+
project: makeProject([
|
|
160
|
+
makeAction({
|
|
161
|
+
id: "setup",
|
|
162
|
+
name: "Setup",
|
|
163
|
+
command: "npm install",
|
|
164
|
+
icon: "configure",
|
|
165
|
+
runOnWorktreeCreate: true,
|
|
166
|
+
}),
|
|
167
|
+
]),
|
|
168
|
+
onDispatch: (command) => {
|
|
169
|
+
dispatched = command;
|
|
170
|
+
},
|
|
171
|
+
}),
|
|
172
|
+
),
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
const result = yield* app.addAction({
|
|
176
|
+
projectRef: "proj-1",
|
|
177
|
+
name: "Run Tests",
|
|
178
|
+
command: "npm test",
|
|
179
|
+
icon: "test",
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
assert.equal(result.action.runOnWorktreeCreate, false);
|
|
183
|
+
assert.equal(dispatched?.type, "project.meta.update");
|
|
184
|
+
if (dispatched?.type === "project.meta.update") {
|
|
185
|
+
assert.isDefined(dispatched.scripts);
|
|
186
|
+
assert.deepEqual(
|
|
187
|
+
dispatched.scripts.map((script) => [script.id, script.runOnWorktreeCreate]),
|
|
188
|
+
[
|
|
189
|
+
["setup", true],
|
|
190
|
+
["run-tests", false],
|
|
191
|
+
],
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
}),
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
t.effect("rejects explicit ids that cannot be used as script run commands", () =>
|
|
198
|
+
Effect.gen(function* () {
|
|
199
|
+
const app = yield* makeActionApplication().pipe(
|
|
200
|
+
Effect.provide(
|
|
201
|
+
makeTestLayer({
|
|
202
|
+
project: makeProject([]),
|
|
203
|
+
}),
|
|
204
|
+
),
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
const exit = yield* app
|
|
208
|
+
.addAction({
|
|
209
|
+
projectRef: "proj-1",
|
|
210
|
+
id: "Bad Id",
|
|
211
|
+
name: "Run Tests",
|
|
212
|
+
command: "npm test",
|
|
213
|
+
icon: "test",
|
|
214
|
+
})
|
|
215
|
+
.pipe(Effect.exit);
|
|
216
|
+
|
|
217
|
+
assert.isTrue(Exit.isFailure(exit));
|
|
218
|
+
if (Exit.isFailure(exit)) {
|
|
219
|
+
const error = Cause.findErrorOption(exit.cause);
|
|
220
|
+
assert.isTrue(Option.isSome(error));
|
|
221
|
+
if (Option.isSome(error)) {
|
|
222
|
+
assert.instanceOf(error.value, ProjectActionValidationError);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}),
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
t.effect("updates by exact case-insensitive trimmed name and clears preview data", () =>
|
|
229
|
+
Effect.gen(function* () {
|
|
230
|
+
const app = yield* makeActionApplication().pipe(
|
|
231
|
+
Effect.provide(
|
|
232
|
+
makeTestLayer({
|
|
233
|
+
project: makeProject([
|
|
234
|
+
makeAction({
|
|
235
|
+
id: "dev",
|
|
236
|
+
name: "Dev",
|
|
237
|
+
command: "npm run dev",
|
|
238
|
+
icon: "play",
|
|
239
|
+
previewUrl: "http://localhost:5173",
|
|
240
|
+
autoOpenPreview: true,
|
|
241
|
+
}),
|
|
242
|
+
]),
|
|
243
|
+
}),
|
|
244
|
+
),
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
const result = yield* app.updateAction({
|
|
248
|
+
projectRef: "proj-1",
|
|
249
|
+
selector: { name: " dev " },
|
|
250
|
+
command: "pnpm dev",
|
|
251
|
+
previewUrl: null,
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
assert.equal(result.action.command, "pnpm dev");
|
|
255
|
+
assert.equal(result.action.previewUrl, undefined);
|
|
256
|
+
assert.equal(result.action.autoOpenPreview, undefined);
|
|
257
|
+
}),
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
t.effect("fails clearly when name selector is ambiguous", () =>
|
|
261
|
+
Effect.gen(function* () {
|
|
262
|
+
const app = yield* makeActionApplication().pipe(
|
|
263
|
+
Effect.provide(
|
|
264
|
+
makeTestLayer({
|
|
265
|
+
project: makeProject([
|
|
266
|
+
makeAction({ id: "test-1", name: "Test" }),
|
|
267
|
+
makeAction({ id: "test-2", name: " test " }),
|
|
268
|
+
]),
|
|
269
|
+
}),
|
|
270
|
+
),
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
const exit = yield* app.listActions("proj-1").pipe(
|
|
274
|
+
Effect.flatMap(() =>
|
|
275
|
+
app.updateAction({
|
|
276
|
+
projectRef: "proj-1",
|
|
277
|
+
selector: { name: "TEST" },
|
|
278
|
+
command: "npm test -- --watch",
|
|
279
|
+
}),
|
|
280
|
+
),
|
|
281
|
+
Effect.exit,
|
|
282
|
+
);
|
|
283
|
+
|
|
284
|
+
assert.isTrue(Exit.isFailure(exit));
|
|
285
|
+
if (Exit.isFailure(exit)) {
|
|
286
|
+
const error = Cause.findErrorOption(exit.cause);
|
|
287
|
+
assert.isTrue(Option.isSome(error));
|
|
288
|
+
if (Option.isSome(error)) {
|
|
289
|
+
assert.instanceOf(error.value, ProjectActionLookupError);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}),
|
|
293
|
+
);
|
|
294
|
+
|
|
295
|
+
t.effect("runs an action in a thread terminal with project env", () =>
|
|
296
|
+
Effect.gen(function* () {
|
|
297
|
+
let created: CreateTerminalInput | undefined;
|
|
298
|
+
const app = yield* makeActionApplication().pipe(
|
|
299
|
+
Effect.provide(
|
|
300
|
+
makeTestLayer({
|
|
301
|
+
project: makeProject([makeAction({ id: "test", name: "Test" })]),
|
|
302
|
+
onCreateTerminal: (input) => {
|
|
303
|
+
created = input;
|
|
304
|
+
},
|
|
305
|
+
}),
|
|
306
|
+
),
|
|
307
|
+
);
|
|
308
|
+
|
|
309
|
+
const result = yield* app.runAction({
|
|
310
|
+
threadId: "thread-1",
|
|
311
|
+
selector: { id: "test" },
|
|
312
|
+
terminalId: "term-1",
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
assert.equal(result.terminal.terminalId, "term-1");
|
|
316
|
+
assert.deepEqual(created, {
|
|
317
|
+
threadId: "thread-1",
|
|
318
|
+
terminalId: "term-1",
|
|
319
|
+
command: "npm test",
|
|
320
|
+
env: {
|
|
321
|
+
T3CODE_PROJECT_ROOT: "/workspace",
|
|
322
|
+
T3CODE_WORKTREE_PATH: "/workspace/.worktrees/thread-1",
|
|
323
|
+
},
|
|
324
|
+
});
|
|
325
|
+
}),
|
|
326
|
+
);
|
|
327
|
+
});
|
|
328
|
+
});
|