t3code-cli 0.10.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 +75 -11
- package/dist/application.js +2 -2
- package/dist/auth.js +1 -1
- package/dist/bin.js +86754 -2675
- package/dist/cli.js +15 -2
- package/dist/config.js +120 -2
- package/dist/connection.js +2 -12
- package/dist/index.js +1 -1
- package/dist/node.js +6 -0
- package/dist/orchestration.js +2 -2
- package/dist/rpc.js +2 -2
- package/dist/runtime.js +2 -2
- package/dist/shared.js +43850 -38040
- package/dist/src/application/actions.d.ts +25 -0
- package/dist/src/application/index.d.ts +3 -2
- package/dist/src/application/layer.d.ts +99 -842
- package/dist/src/application/model-selection.d.ts +17 -2
- package/dist/src/application/models.d.ts +1 -87
- package/dist/src/application/project-commands.d.ts +31 -2
- package/dist/src/application/projects.d.ts +15 -137
- package/dist/src/application/service.d.ts +147 -5
- package/dist/src/application/shell-sequence.d.ts +5 -4
- package/dist/src/application/terminals.d.ts +66 -0
- package/dist/src/application/thread-commands.d.ts +48 -1
- package/dist/src/application/thread-update.d.ts +8 -0
- package/dist/src/application/thread-wait.d.ts +4 -6
- package/dist/src/application/threads.d.ts +36 -14
- 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 +5 -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 +27 -1
- package/dist/src/domain/helpers.d.ts +8 -2
- package/dist/src/domain/model-config.d.ts +30 -1
- package/dist/src/domain/thread-activities.d.ts +1 -1
- package/dist/src/domain/thread-lifecycle.d.ts +3 -2
- 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 -0
- package/dist/src/orchestration/index.d.ts +1 -1
- package/dist/src/orchestration/layer.d.ts +120 -829
- package/dist/src/orchestration/service.d.ts +2 -1
- package/dist/src/rpc/error.d.ts +5 -3
- package/dist/src/rpc/index.d.ts +5 -1
- package/dist/src/rpc/layer.d.ts +1166 -40
- package/dist/src/rpc/operation.d.ts +6280 -0
- package/dist/src/rpc/ws-group.d.ts +372 -27
- 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 +27 -19
- package/src/application/actions.test.ts +328 -0
- package/src/application/actions.ts +475 -0
- package/src/application/index.ts +32 -2
- package/src/application/layer.ts +43 -5
- package/src/application/model-selection.ts +70 -4
- package/src/application/models.ts +14 -14
- package/src/application/project-commands.ts +38 -5
- package/src/application/projects.ts +49 -20
- package/src/application/service.ts +275 -78
- package/src/application/shell-sequence.ts +6 -8
- package/src/application/terminals.ts +208 -0
- package/src/application/thread-commands.test.ts +43 -0
- package/src/application/thread-commands.ts +82 -1
- package/src/application/thread-update.ts +72 -0
- package/src/application/thread-wait.ts +47 -48
- package/src/application/threads.test.ts +172 -0
- package/src/application/threads.ts +128 -45
- 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 +26 -6
- package/src/cli/action-format.ts +110 -0
- package/src/cli/action.ts +398 -0
- package/src/cli/app.ts +8 -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/error.ts +26 -3
- package/src/cli/extra-args.test.ts +32 -0
- package/src/cli/extra-args.ts +22 -0
- package/src/cli/flags.ts +26 -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/format/thread.test.ts +34 -0
- package/src/cli/format/thread.ts +185 -0
- package/src/cli/index.ts +20 -0
- package/src/cli/input/layer.ts +20 -0
- package/src/cli/input/service.ts +1 -0
- package/src/cli/interaction/confirm.ts +64 -0
- package/src/cli/interaction/self-action.ts +36 -0
- package/src/cli/message-input.ts +1 -1
- package/src/cli/model.ts +9 -5
- package/src/cli/project.ts +15 -8
- package/src/cli/projects/delete.ts +51 -0
- 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 +29 -0
- package/src/cli/terminal/create.ts +55 -0
- package/src/cli/terminal/destroy.ts +62 -0
- package/src/cli/terminal/encoding.test.ts +63 -0
- package/src/cli/terminal/encoding.ts +23 -0
- package/src/cli/terminal/error.ts +14 -0
- package/src/cli/terminal/io-node-layer.ts +82 -0
- package/src/cli/terminal/io-service.ts +25 -0
- package/src/cli/terminal/list.ts +36 -0
- 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 +99 -0
- package/src/cli/terminal/scope.ts +35 -0
- package/src/cli/terminal/shared.ts +250 -0
- package/src/cli/terminal/stream.ts +61 -0
- package/src/cli/terminal/wait.test.ts +148 -0
- package/src/cli/terminal/wait.ts +223 -0
- package/src/cli/terminal/write.test.ts +34 -0
- package/src/cli/terminal/write.ts +133 -0
- package/src/cli/terminal.ts +26 -0
- package/src/cli/thread.ts +8 -0
- package/src/cli/threads/approve.ts +11 -7
- package/src/cli/threads/archive.ts +23 -25
- package/src/cli/threads/callback.ts +6 -4
- package/src/cli/threads/delete.ts +67 -0
- package/src/cli/threads/interrupt.ts +57 -0
- package/src/cli/threads/list.test.ts +71 -0
- package/src/cli/threads/list.ts +25 -13
- package/src/cli/threads/messages.ts +11 -7
- package/src/cli/threads/respond.ts +11 -7
- package/src/cli/threads/send.ts +39 -9
- package/src/cli/threads/show.ts +11 -7
- package/src/cli/threads/start.ts +18 -13
- package/src/cli/threads/unarchive.ts +48 -0
- package/src/cli/threads/update.ts +155 -0
- 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 +39 -1
- package/src/domain/helpers.test.ts +1 -1
- package/src/domain/helpers.ts +1 -1
- package/src/domain/model-config.ts +5 -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 +15 -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 -0
- package/src/orchestration/index.ts +1 -1
- package/src/orchestration/layer.ts +34 -86
- package/src/orchestration/service.ts +5 -1
- package/src/rpc/error.ts +12 -2
- package/src/rpc/index.ts +5 -1
- package/src/rpc/layer.ts +1 -1
- package/src/rpc/operation.ts +83 -0
- package/src/rpc/ws-group.ts +25 -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 +22 -11
- 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 -9
- 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 -785
- 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 -496
- 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 -7338
- package/dist/upstream-t3code/packages/contracts/src/project.d.ts +0 -45
- package/dist/upstream-t3code/packages/contracts/src/provider.d.ts +0 -130
- package/dist/upstream-t3code/packages/contracts/src/providerInstance.d.ts +0 -99
- package/dist/upstream-t3code/packages/contracts/src/providerRuntime.d.ts +0 -4450
- 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 -8710
- package/dist/upstream-t3code/packages/contracts/src/server.d.ts +0 -2336
- package/dist/upstream-t3code/packages/contracts/src/settings.d.ts +0 -292
- package/dist/upstream-t3code/packages/contracts/src/sourceControl.d.ts +0 -177
- package/dist/upstream-t3code/packages/contracts/src/terminal.d.ts +0 -333
- package/dist/upstream-t3code/packages/contracts/src/vcs.d.ts +0 -148
- package/src/cli/auth-format.ts +0 -45
- package/src/cli/model-format.ts +0 -18
- package/src/cli/output-format.ts +0 -41
- package/src/cli/project-format.ts +0 -11
- package/src/cli/thread-format.ts +0 -121
- 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 { $ as WS_METHODS, $a as ProviderRespondToRequestInput, $c as ProjectScript, $i as MIN_SIDEBAR_THREAD_PREVIEW_COUNT, $l as ProviderInstanceConfigMap, $n as SourceControlCloneRepositoryInput, $o as DesktopUpdateCheckResultSchema, $r as ServerProcessResourceHistoryInput, $s as DEFAULT_RUNTIME_MODE, $t as WsVcsSwitchRefRpc, $u as AuthTokenExchangeGrantType, Aa as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, Ac as OrchestrationReplayEventsInput, Ai as ServerTraceDiagnosticsSpanOccurrence, Al as ThreadTurnDiffCompletedPayload, An as GitStackedAction, Ao as DesktopCloudAuthFetchResultSchema, Ar as VcsRepositoryDetectionError, As as EnvironmentConnectHttpApi, At as WsSourceControlCloneRepositoryRpc, Au as AuthAdministrativeScopes, Ba as ProviderRuntimeEvent, Bc as OrchestrationThreadActivityTone, Bi as CursorSettings, Bl as DEFAULT_MODEL_BY_PROVIDER, Bn as VcsPullResult, Bo as DesktopSshEnvironmentEnsureInputSchema, Br as ServerConfigStreamProviderStatusesEvent, Bs as EnvironmentMetadataHttpApi, Bt as WsTerminalClearRpc, Bu as AuthEnvironmentScopes, Ca as KeybindingsConfig, Cc as OrchestrationMessageRole, Cd as RuntimeTaskId, Ci as ServerSignalProcessInput, Cl as ThreadMetaUpdatedPayload, Cn as GitPreparePullRequestThreadInput, Co as TerminalSummary, Cr as VcsListRemotesResult, Cs as EnvironmentAuthInvalidReason, Ct as WsServerRefreshProvidersRpc, Cu as AuthAccessStreamEvent, Da as MAX_KEYBINDING_WHEN_LENGTH, Dc as OrchestrationProposedPlanId, Dd as TurnId, Di as ServerTraceDiagnosticsLogEvent, Dl as ThreadSessionSetPayload, Dn as GitRunStackedActionInput, Do as DesktopAppBrandingSchema, Dr as VcsProcessSpawnError, Ds as EnvironmentCloudLinkStateResult, Dt as WsServerUpdateSettingsRpc, Du as AuthAccessTokenResult, Ea as MAX_KEYBINDING_VALUE_LENGTH, Ec as OrchestrationProposedPlan, Ed as TrimmedString, Ei as ServerTraceDiagnosticsFailureSummary, El as ThreadRuntimeModeSetPayload, En as GitResolvePullRequestResult, Eo as ContextMenuItemSchema, Er as VcsProcessExitError, Es as EnvironmentCloudEndpointUnavailableError, Et as WsServerUpdateProviderRpc, Eu as AuthAccessStreamSnapshotEvent, Fa as THREAD_JUMP_KEYBINDING_COMMANDS, Fc as OrchestrationShellStreamEvent, Fi as ClaudeSettings, Fl as TurnCountRange, Fn as VcsCreateWorktreeResult, Fo as DesktopServerExposureModeSchema, Fr as ServerConfigKeybindingsUpdatedPayload, Fs as EnvironmentHttpForbiddenError, Ft as WsSubscribeServerLifecycleRpc, Fu as AuthClientPresentationMetadata, Ga as TOOL_LIFECYCLE_ITEM_TYPES, Gc as OrchestrationThreadStreamItem, Gi as DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE, Gl as ProviderOptionDescriptor, Gn as VcsStatusRemoteResult, Go as DesktopSshHttpBaseUrlInputSchema, Gr as ServerLifecycleStreamEvent, Gs as EnvironmentRequestInvalidReason, Gt as WsTerminalWriteRpc, Gu as AuthRelayReadScope, Ha as ProviderRuntimeThreadGoalStatus, Hc as OrchestrationThreadGoal, Hi as DEFAULT_CLIENT_SETTINGS, Hl as ModelCapabilities, Hn as VcsRemoveWorktreeInput, Ho as DesktopSshEnvironmentEnsureResultSchema, Hr as ServerConfigStreamSnapshotEvent, Hs as EnvironmentOperationForbiddenReason, Ht as WsTerminalOpenRpc, Hu as AuthOrchestrationReadScope, Ia as THREAD_KEYBINDING_COMMANDS, Ic as OrchestrationShellStreamItem, Ii as ClientSettingsPatch, Il as BooleanProviderOptionDescriptor, In as VcsInitInput, Io as DesktopServerExposureStateSchema, Ir as ServerConfigProviderStatusesPayload, Is as EnvironmentHttpInternalServerError, It as WsSubscribeTerminalEventsRpc, Iu as AuthClientSession, Ja as UserInputQuestion, Jc as PROVIDER_SEND_TURN_MAX_INPUT_CHARS, Ji as DEFAULT_SIDEBAR_THREAD_SORT_ORDER, Jl as ProviderOptionSelectionValue, Jn as VcsSwitchRefInput, Jo as DesktopSshPasswordPromptRequestSchema, Jr as ServerLifecycleWelcomePayload, Js as ChatAttachment, Jt as WsVcsInitRpc, Ju as AuthRevokeClientSessionInput, Ka as ThreadTokenUsageSnapshot, Kc as PROVIDER_SEND_TURN_MAX_ATTACHMENTS, Ki as DEFAULT_SIDEBAR_PROJECT_SORT_ORDER, Kl as ProviderOptionDescriptorType, Kn as VcsStatusResult, Ko as DesktopSshPasswordPromptCancelledResultSchema, Kr as ServerLifecycleStreamReadyEvent, Ks as EnvironmentScopeRequiredError, Kt as WsVcsCreateRefRpc, Ku as AuthRelayWriteScope, La as CanonicalItemType, Lc as OrchestrationSubscribeThreadInput, Li as ClientSettingsSchema, Ll as DEFAULT_GIT_TEXT_GENERATION_MODEL, Ln as VcsListRefsInput, Lo as DesktopSshBearerBootstrapInputSchema, Lr as ServerConfigSettingsUpdatedPayload, Ls as EnvironmentHttpUnauthorizedError, Lt as WsSubscribeTerminalMetadataRpc, Lu as AuthCreatePairingCredentialInput, Ma as ResolvedKeybindingRule, Mc as OrchestrationSession, Mi as ServerUpsertKeybindingInput, Ml as ThreadTurnStartCommand, Mn as VcsCreateRefInput, Mo as DesktopEnvironmentBootstrapSchema, Mr as VcsUnsupportedOperationError, Ms as EnvironmentHttpBadRequestError, Mt as WsSourceControlPublishRepositoryRpc, Mu as AuthBrowserSessionResult, Na as ResolvedKeybindingsConfig, Nc as OrchestrationSessionStatus, Ni as ServerUpsertKeybindingResult, Nl as ThreadTurnStartRequestedPayload, Nn as VcsCreateRefResult, No as DesktopRuntimeArchSchema, Nr as ServerConfig, Ns as EnvironmentHttpCommonError, Nt as WsSubscribeAuthAccessRpc, Nu as AuthClientMetadata, Oa as MAX_SCRIPT_ID_LENGTH, Oc as OrchestrationReadModel, Oi as ServerTraceDiagnosticsRecentFailure, Ol as ThreadSessionStopRequestedPayload, On as GitRunStackedActionResult, Oo as DesktopAppStageLabelSchema, Or as VcsProcessTimeoutError, Os as EnvironmentCloudPreferencesRequest, Ot as WsServerUpsertKeybindingRpc, Ou as AuthAccessTokenType, Pa as SCRIPT_RUN_COMMAND_PATTERN, Pc as OrchestrationShellSnapshot, Pi as isProviderAvailable, Pl as ThreadUnarchivedPayload, Pn as VcsCreateWorktreeInput, Po as DesktopRuntimeInfoSchema, Pr as ServerConfigIssue, Ps as EnvironmentHttpConflictError, Pt as WsSubscribeServerConfigRpc, Pu as AuthClientMetadataDeviceType, Qa as ProviderInterruptTurnInput, Qc as ProjectMetaUpdatedPayload, Qi as MAX_SIDEBAR_THREAD_PREVIEW_COUNT, Ql as ProviderInstanceConfig, Qn as SourceControlCloneProtocol, Qo as DesktopUpdateChannelSchema, Qr as ServerProcessResourceHistoryBucket, Qs as DEFAULT_PROVIDER_INTERACTION_MODE, Qt as WsVcsRemoveWorktreeRpc, Qu as AuthTerminalOperateScope, Ra as CanonicalRequestType, Rc as OrchestrationThread, Ri as CodexSettings, Rl as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, Rn as VcsListRefsResult, Ro as DesktopSshBearerRequestInputSchema, Rr as ServerConfigStreamEvent, Rs as EnvironmentInternalError, Rt as WsSubscribeVcsStatusRpc, Ru as AuthEnvironmentBootstrapTokenType, Sa as KeybindingWhenNode, Sc as OrchestrationMessage, Sd as RuntimeSessionId, Si as ServerRemoveKeybindingResult, Sl as ThreadMessageSentPayload, Sn as GitManagerServiceError, So as TerminalSessionStatus, Sr as VcsFreshnessSource, Ss as EnvironmentAuthInvalidError, St as WsServerGetTraceDiagnosticsRpc, Su as AuthAccessStreamError, Ta as MAX_KEYBINDINGS_COUNT, Tc as OrchestrationProjectShell, Td as TrimmedNonEmptyString, Ti as ServerTraceDiagnosticsErrorKind, Tl as ThreadRevertedPayload, Tn as GitPullRequestRefInput, To as TerminalWriteInput, Tr as VcsOutputDecodeError, Ts as EnvironmentAuthenticatedPrincipal, Tt as WsServerSignalProcessRpc, Tu as AuthAccessStreamPairingLinkUpsertedEvent, Ua as ProviderRuntimeTurnStatus, Uc as OrchestrationThreadGoalStatus, Ui as DEFAULT_CONTEXT_MENU_STYLE, Ul as PROVIDER_DISPLAY_NAMES, Un as VcsStatusInput, Uo as DesktopSshEnvironmentTargetSchema, Ur as ServerConfigUpdatedPayload, Us as EnvironmentOrchestrationHttpApi, Ut as WsTerminalResizeRpc, Uu as AuthPairingCredentialResult, Va as ProviderRuntimeEventV2, Vc as OrchestrationThreadDetailSnapshot, Vi as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Vl as MODEL_SLUG_ALIASES_BY_PROVIDER, Vn as VcsRef, Vo as DesktopSshEnvironmentEnsureOptionsSchema, Vr as ServerConfigStreamSettingsUpdatedEvent, Vs as EnvironmentOperationForbiddenError, Vt as WsTerminalCloseRpc, Vu as AuthOrchestrationOperateScope, Wa as RuntimeEventRaw, Wc as OrchestrationThreadShell, Wi as DEFAULT_SERVER_SETTINGS, Wl as ProviderOptionChoice, Wn as VcsStatusLocalResult, Wo as DesktopSshHostSourceSchema, Wr as ServerLifecycleReadyPayload, Ws as EnvironmentRequestInvalidError, Wt as WsTerminalRestartRpc, Wu as AuthPairingLink, Xa as ProviderEvent, Xc as ProjectCreatedPayload, Xi as DEFAULT_UNIFIED_SETTINGS, Xl as SelectProviderOptionDescriptor, Xn as ChangeRequest, Xo as DesktopThemeSchema, Xr as ServerProcessDiagnosticsEntry, Xs as ClientOrchestrationCommand, Xt as WsVcsPullRpc, Xu as AuthSessionState, Ya as isToolLifecycleItemType, Yc as ProjectCreateCommand, Yi as DEFAULT_TIMESTAMP_FORMAT, Yl as ProviderOptionSelections, Yn as VcsSwitchRefResult, Yo as DesktopSshPasswordPromptResolutionInputSchema, Yr as ServerObservability, Ys as ChatImageAttachment, Yt as WsVcsListRefsRpc, Yu as AuthRevokePairingLinkInput, Za as ProviderGoalRequestInput, Zc as ProjectDeletedPayload, Zi as GrokSettings, Zl as ProviderDriverKind, Zn as ChangeRequestState, Zo as DesktopUpdateActionResultSchema, Zr as ServerProcessDiagnosticsResult, Zs as CorrelationId, Zt as WsVcsRefreshStatusRpc, Zu as AuthStandardClientScopes, _a as KeybindingCommand, _c as OrchestrationGetSnapshotError, _d as PositiveInt, _i as ServerProviderUpdatedPayload, _l as ThreadGoalClearedPayload, _n as GitActionProgressKind, _o as TerminalOpenInput, _r as VcsDiscoveryItem, _s as RelayClientStatusSchema, _t as WsServerDiscoverSourceControlRpc, _u as ScopedThreadSessionRef, aa as SidebarProjectGroupingMode, ac as OrchestrationCheckpointFile, ad as ServerAuthPolicy, ai as ServerProviderAuthStatus, al as ProviderInteractionMode, an as FilesystemBrowseEntry, ao as ProviderTurnStartResult, ar as SourceControlProviderDiscoveryItem, as as AdvertisedEndpointCompatibility, at as WsGitRunStackedActionRpc, au as defaultInstanceIdForDriver, ba as KeybindingValue, bc as OrchestrationGetTurnDiffResult, bd as RuntimeItemId, bi as ServerProviders, bl as ThreadGoalUpdatedPayload, bn as GitCommandError, bo as TerminalSessionLookupError, br as VcsError, bs as AuthPairingLinkRevokeResult, bt as WsServerGetProcessResourceHistoryRpc, bu as AuthAccessStreamClientRemovedEvent, ca as SidebarThreadSortOrder, cc as OrchestrationCommand, cd as AuthSessionId, ci as ServerProviderModel, cl as ProviderSessionRuntimeStatus, cn as FilesystemBrowseResult, co as TerminalAttachStreamEvent, cr as SourceControlProviderKind, cs as AdvertisedEndpointProviderKind, ct as WsOrchestrationGetFullThreadDiffRpc, cu as ExecutionEnvironmentCapabilities, da as makeProviderSettingsSchema, dc as OrchestrationEvent, dd as EnvironmentId, di as ServerProviderSlashCommandInput, dl as ThreadActivityAppendedPayload, dn as ProjectSearchEntriesInput, do as TerminalCwdError, dr as SourceControlPublishStatus, ds as AdvertisedEndpointStatus, dt as WsOrchestrationSubscribeShellRpc, du as ExecutionEnvironmentPlatformArch, ea as ObservabilitySettings, ec as DispatchResult, ed as AuthTokenExchangeRequest, ei as ServerProcessResourceHistoryResult, el as ProjectScriptIcon, en as ReviewDiffPreviewError, eo as ProviderRespondToUserInputInput, er as SourceControlCloneRepositoryResult, es as DesktopUpdateStateSchema, et as WsCloudGetRelayClientStatusRpc, eu as ProviderInstanceEnvironment, fa as EDITORS, fc as OrchestrationEventMetadata, fd as EventId, fi as ServerProviderState, fl as ThreadApprovalResponseRequestedPayload, fn as ProjectSearchEntriesResult, fo as TerminalError, fr as SourceControlRepositoryCloneUrls, fs as DesktopBackendBootstrap, ft as WsOrchestrationSubscribeThreadRpc, fu as ExecutionEnvironmentPlatformOs, ga as LaunchEditorInput, gc as OrchestrationGetFullThreadDiffResult, gd as PortSchema, gi as ServerProviderUpdateStatus, gl as ThreadDeletedPayload, gn as GitActionProgressEvent, go as TerminalNotRunningError, gr as SourceControlRepositoryVisibility, gs as RelayClientInstallProgressStageSchema, gt as WsRpcGroup, gu as ScopedThreadRef, ha as ExternalLauncherError, hc as OrchestrationGetFullThreadDiffInput, hd as NonNegativeInt, hi as ServerProviderUpdateState, hl as ThreadCreatedPayload, hn as ProjectWriteFileResult, ho as TerminalMetadataStreamEvent, hr as SourceControlRepositoryLookupInput, hs as RelayClientInstallProgressEventSchema, ht as WsReviewGetDiffPreviewRpc, hu as ScopedProjectRef, ia as ServerSettingsPatch, ic as OrchestrationAggregateKind, id as ServerAuthDescriptor, ii as ServerProviderAuth, il as ProviderApprovalPolicy, in as ReviewDiffPreviewSourceKind, io as ProviderStopSessionInput, ir as SourceControlProviderAuthStatus, is as AdvertisedEndpoint, it as WsGitResolvePullRequestRpc, iu as ProviderInstanceRef, ja as MODEL_PICKER_KEYBINDING_COMMANDS, jc as OrchestrationRpcSchemas, ji as ServerTraceDiagnosticsSpanSummary, jl as ThreadTurnInterruptRequestedPayload, jn as TextGenerationError, jo as DesktopDiscoveredSshHostSchema, jr as VcsRepositoryIdentity, js as EnvironmentHttpApi, jt as WsSourceControlLookupRepositoryRpc, ju as AuthBrowserSessionRequest, ka as MAX_WHEN_EXPRESSION_DEPTH, kc as OrchestrationReplayEventsError, ki as ServerTraceDiagnosticsResult, kl as ThreadTurnDiff, kn as GitRunStackedActionToastRunAction, ko as DesktopCloudAuthFetchInputSchema, kr as VcsRemote, ks as EnvironmentCloudRelayConfigResult, kt as WsShellOpenInEditorRpc, ku as AuthAccessWriteScope, la as ThreadEnvMode, lc as OrchestrationCommandReceiptStatus, ld as CheckpointRef, li as ServerProviderSkill, ll as ProviderUserInputAnswers, ln as ProjectEntry, lo as TerminalClearInput, lr as SourceControlPublishRepositoryInput, ls as AdvertisedEndpointReachability, lt as WsOrchestrationGetTurnDiffRpc, lu as ExecutionEnvironmentDescriptor, ma as EditorLaunchStyle, mc as OrchestrationGetFullThreadDiffError, md as MessageId, mi as ServerProviderUpdateInput, ml as ThreadCheckpointRevertRequestedPayload, mn as ProjectWriteFileInput, mo as TerminalHistoryError, mr as SourceControlRepositoryInfo, ms as RelayClientInstallFailureReasonSchema, mt as WsProjectsWriteFileRpc, mu as RepositoryIdentityLocator, na as ServerSettings, nc as ORCHESTRATION_WS_METHODS, nd as EnvironmentAuthorizationError, ni as ServerProcessSignal, nl as ProjectionPendingApprovalStatus, nn as ReviewDiffPreviewResult, no as ProviderSession, nr as SourceControlDiscoveryStatus, ns as PersistedSavedEnvironmentRecordSchema, nt as WsFilesystemBrowseRpc, nu as ProviderInstanceEnvironmentVariableName, oa as SidebarProjectSortOrder, oc as OrchestrationCheckpointStatus, od as ServerAuthSessionMethod, oi as ServerProviderAvailability, ol as ProviderRequestKind, on as FilesystemBrowseError, oo as DEFAULT_TERMINAL_ID, or as SourceControlProviderError, os as AdvertisedEndpointHostedHttpsCompatibility, ot as WsOrchestrationDispatchCommandRpc, ou as isProviderDriverKind, pa as EditorId, pc as OrchestrationEventType, pd as IsoDateTime, pi as ServerProviderUpdateError, pl as ThreadArchivedPayload, pn as ProjectWriteFileError, po as TerminalEvent, pr as SourceControlRepositoryError, ps as RelayClientInstallFailedError, pt as WsProjectsSearchEntriesRpc, pu as RepositoryIdentity, qa as ToolLifecycleItemType, qc as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, qi as DEFAULT_SIDEBAR_THREAD_PREVIEW_COUNT, ql as ProviderOptionSelection, qn as VcsStatusStreamEvent, qo as DesktopSshPasswordPromptCancelledType, qr as ServerLifecycleStreamWelcomeEvent, qs as AssistantDeliveryMode, qt as WsVcsCreateWorktreeRpc, qu as AuthReviewWriteScope, ra as ServerSettingsError, rc as OrchestrationActorKind, rd as ServerAuthBootstrapMethod, ri as ServerProvider, rl as ProviderApprovalDecision, rn as ReviewDiffPreviewSource, ro as ProviderSessionStartInput, rr as SourceControlProviderAuth, rs as PickFolderOptionsSchema, rt as WsGitPreparePullRequestThreadRpc, ru as ProviderInstanceId, sa as SidebarThreadPreviewCount, sc as OrchestrationCheckpointSummary, sd as ApprovalRequestId, si as ServerProviderContinuation, sl as ProviderSandboxMode, sn as FilesystemBrowseInput, so as TerminalAttachInput, sr as SourceControlProviderInfo, ss as AdvertisedEndpointProvider, st as WsOrchestrationGetArchivedShellSnapshotRpc, su as EnvironmentConnectionState, ta as OpenCodeSettings, tc as ModelSelection, td as AuthWebSocketTicketResult, ti as ServerProcessResourceHistorySummary, tl as ProjectionPendingApprovalDecision, tn as ReviewDiffPreviewInput, to as ProviderSendTurnInput, tr as SourceControlDiscoveryResult, ts as DesktopUpdateStatusSchema, tt as WsCloudInstallRelayClientRpc, tu as ProviderInstanceEnvironmentVariable, ua as TimestampFormat, uc as OrchestrationDispatchCommandError, ud as CommandId, ui as ServerProviderSlashCommand, ul as RuntimeMode, un as ProjectSearchEntriesError, uo as TerminalCloseInput, ur as SourceControlPublishRepositoryResult, us as AdvertisedEndpointSource, ut as WsOrchestrationReplayEventsRpc, uu as ExecutionEnvironmentPlatform, va as KeybindingRule, vc as OrchestrationGetTurnDiffError, vd as ProjectId, vi as ServerProviderVersionAdvisory, vl as ThreadGoalRequest, vn as GitActionProgressPhase, vo as TerminalResizeInput, vr as VcsDriverCapabilities, vs as AuthClientSessionRevokeResult, vt as WsServerGetConfigRpc, vu as AuthAccessReadScope, wa as KeybindingsConfigError, wc as OrchestrationProject, wd as ThreadId, wi as ServerSignalProcessResult, wl as ThreadProposedPlanUpsertedPayload, wn as GitPreparePullRequestThreadResult, wo as TerminalThreadInput, wr as VcsListWorkspaceFilesResult, ws as EnvironmentAuthenticatedAuth, wt as WsServerRemoveKeybindingRpc, wu as AuthAccessStreamPairingLinkRemovedEvent, xa as KeybindingWhen, xc as OrchestrationLatestTurn, xd as RuntimeRequestId, xi as ServerRemoveKeybindingInput, xl as ThreadInteractionModeSetPayload, xn as GitManagerError, xo as TerminalSessionSnapshot, xr as VcsFreshness, xs as EnvironmentAuthHttpApi, xt as WsServerGetSettingsRpc, xu as AuthAccessStreamClientUpsertedEvent, ya as KeybindingShortcut, yc as OrchestrationGetTurnDiffInput, yd as ProviderItemId, yi as ServerProviderVersionAdvisoryStatus, yl as ThreadGoalRequestedPayload, yn as GitActionProgressStream, yo as TerminalRestartInput, yr as VcsDriverKind, ys as AuthOtherClientSessionsRevokeResult, yt as WsServerGetProcessDiagnosticsRpc, yu as AuthAccessSnapshot, za as ItemLifecyclePayload, zc as OrchestrationThreadActivity, zi as ContextMenuStyle, zl as DEFAULT_MODEL, zn as VcsPullInput, zo as DesktopSshEnvironmentBootstrapSchema, zr as ServerConfigStreamKeybindingsUpdatedEvent, zs as EnvironmentInternalErrorReason, zt as WsTerminalAttachRpc, zu as AuthEnvironmentScope } 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, ContextMenuStyle, CorrelationId, CursorSettings, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, DEFAULT_CLIENT_SETTINGS, DEFAULT_CONTEXT_MENU_STYLE, DEFAULT_GIT_TEXT_GENERATION_MODEL, DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, DEFAULT_MODEL, DEFAULT_MODEL_BY_PROVIDER, DEFAULT_PROVIDER_INTERACTION_MODE, DEFAULT_RUNTIME_MODE, DEFAULT_SERVER_SETTINGS, DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE, DEFAULT_SIDEBAR_PROJECT_SORT_ORDER, DEFAULT_SIDEBAR_THREAD_PREVIEW_COUNT, DEFAULT_SIDEBAR_THREAD_SORT_ORDER, DEFAULT_TERMINAL_ID, DEFAULT_TIMESTAMP_FORMAT, DEFAULT_UNIFIED_SETTINGS, DesktopAppBrandingSchema, DesktopAppStageLabelSchema, DesktopBackendBootstrap, DesktopCloudAuthFetchInputSchema, DesktopCloudAuthFetchResultSchema, DesktopDiscoveredSshHostSchema, DesktopEnvironmentBootstrapSchema, DesktopRuntimeArchSchema, DesktopRuntimeInfoSchema, DesktopServerExposureModeSchema, DesktopServerExposureStateSchema, DesktopSshBearerBootstrapInputSchema, DesktopSshBearerRequestInputSchema, DesktopSshEnvironmentBootstrapSchema, DesktopSshEnvironmentEnsureInputSchema, DesktopSshEnvironmentEnsureOptionsSchema, DesktopSshEnvironmentEnsureResultSchema, DesktopSshEnvironmentTargetSchema, DesktopSshHostSourceSchema, DesktopSshHttpBaseUrlInputSchema, DesktopSshPasswordPromptCancelledResultSchema, DesktopSshPasswordPromptCancelledType, DesktopSshPasswordPromptRequestSchema, DesktopSshPasswordPromptResolutionInputSchema, DesktopThemeSchema, DesktopUpdateActionResultSchema, DesktopUpdateChannelSchema, DesktopUpdateCheckResultSchema, DesktopUpdateStateSchema, DesktopUpdateStatusSchema, DispatchResult, EDITORS, EditorId, EditorLaunchStyle, EnvironmentAuthHttpApi, EnvironmentAuthInvalidError, EnvironmentAuthInvalidReason, EnvironmentAuthenticatedAuth, EnvironmentAuthenticatedPrincipal, EnvironmentAuthorizationError, EnvironmentCloudEndpointUnavailableError, EnvironmentCloudLinkStateResult, EnvironmentCloudPreferencesRequest, EnvironmentCloudRelayConfigResult, EnvironmentConnectHttpApi, EnvironmentConnectionState, EnvironmentHttpApi, EnvironmentHttpBadRequestError, EnvironmentHttpCommonError, EnvironmentHttpConflictError, EnvironmentHttpForbiddenError, EnvironmentHttpInternalServerError, EnvironmentHttpUnauthorizedError, EnvironmentId, EnvironmentInternalError, EnvironmentInternalErrorReason, EnvironmentMetadataHttpApi, EnvironmentOperationForbiddenError, EnvironmentOperationForbiddenReason, EnvironmentOrchestrationHttpApi, EnvironmentRequestInvalidError, EnvironmentRequestInvalidReason, EnvironmentScopeRequiredError, EventId, ExecutionEnvironmentCapabilities, ExecutionEnvironmentDescriptor, ExecutionEnvironmentPlatform, ExecutionEnvironmentPlatformArch, ExecutionEnvironmentPlatformOs, ExternalLauncherError, FilesystemBrowseEntry, FilesystemBrowseError, FilesystemBrowseInput, FilesystemBrowseResult, GitActionProgressEvent, GitActionProgressKind, GitActionProgressPhase, GitActionProgressStream, GitCommandError, GitManagerError, GitManagerServiceError, GitPreparePullRequestThreadInput, GitPreparePullRequestThreadResult, GitPullRequestRefInput, GitResolvePullRequestResult, GitRunStackedActionInput, GitRunStackedActionResult, GitRunStackedActionToastRunAction, GitStackedAction, GrokSettings, IsoDateTime, ItemLifecyclePayload, KeybindingCommand, KeybindingRule, KeybindingShortcut, KeybindingValue, KeybindingWhen, KeybindingWhenNode, KeybindingsConfig, KeybindingsConfigError, LaunchEditorInput, MAX_KEYBINDINGS_COUNT, MAX_KEYBINDING_VALUE_LENGTH, MAX_KEYBINDING_WHEN_LENGTH, MAX_SCRIPT_ID_LENGTH, MAX_SIDEBAR_THREAD_PREVIEW_COUNT, MAX_WHEN_EXPRESSION_DEPTH, MIN_SIDEBAR_THREAD_PREVIEW_COUNT, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, MODEL_PICKER_KEYBINDING_COMMANDS, MODEL_SLUG_ALIASES_BY_PROVIDER, MessageId, ModelCapabilities, ModelSelection, NonNegativeInt, ORCHESTRATION_WS_METHODS, ObservabilitySettings, OpenCodeSettings, OrchestrationActorKind, OrchestrationAggregateKind, OrchestrationCheckpointFile, OrchestrationCheckpointStatus, OrchestrationCheckpointSummary, OrchestrationCommand, OrchestrationCommandReceiptStatus, OrchestrationDispatchCommandError, OrchestrationEvent, OrchestrationEventMetadata, OrchestrationEventType, OrchestrationGetFullThreadDiffError, OrchestrationGetFullThreadDiffInput, OrchestrationGetFullThreadDiffResult, OrchestrationGetSnapshotError, OrchestrationGetTurnDiffError, OrchestrationGetTurnDiffInput, OrchestrationGetTurnDiffResult, OrchestrationLatestTurn, OrchestrationMessage, OrchestrationMessageRole, OrchestrationProject, OrchestrationProjectShell, OrchestrationProposedPlan, OrchestrationProposedPlanId, OrchestrationReadModel, OrchestrationReplayEventsError, OrchestrationReplayEventsInput, OrchestrationRpcSchemas, OrchestrationSession, OrchestrationSessionStatus, OrchestrationShellSnapshot, OrchestrationShellStreamEvent, OrchestrationShellStreamItem, OrchestrationSubscribeThreadInput, OrchestrationThread, OrchestrationThreadActivity, OrchestrationThreadActivityTone, OrchestrationThreadDetailSnapshot, OrchestrationThreadGoal, OrchestrationThreadGoalStatus, OrchestrationThreadShell, OrchestrationThreadStreamItem, PROVIDER_DISPLAY_NAMES, PROVIDER_SEND_TURN_MAX_ATTACHMENTS, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, PROVIDER_SEND_TURN_MAX_INPUT_CHARS, PersistedSavedEnvironmentRecordSchema, PickFolderOptionsSchema, PortSchema, PositiveInt, ProjectCreateCommand, ProjectCreatedPayload, ProjectDeletedPayload, ProjectEntry, ProjectId, ProjectMetaUpdatedPayload, ProjectScript, ProjectScriptIcon, ProjectSearchEntriesError, ProjectSearchEntriesInput, ProjectSearchEntriesResult, ProjectWriteFileError, ProjectWriteFileInput, ProjectWriteFileResult, ProjectionPendingApprovalDecision, ProjectionPendingApprovalStatus, ProviderApprovalDecision, ProviderApprovalPolicy, ProviderDriverKind, ProviderEvent, ProviderGoalRequestInput, ProviderInstanceConfig, ProviderInstanceConfigMap, ProviderInstanceEnvironment, ProviderInstanceEnvironmentVariable, ProviderInstanceEnvironmentVariableName, ProviderInstanceId, ProviderInstanceRef, ProviderInteractionMode, ProviderInterruptTurnInput, ProviderItemId, ProviderOptionChoice, ProviderOptionDescriptor, ProviderOptionDescriptorType, ProviderOptionSelection, ProviderOptionSelectionValue, ProviderOptionSelections, ProviderRequestKind, ProviderRespondToRequestInput, ProviderRespondToUserInputInput, ProviderRuntimeEvent, ProviderRuntimeEventV2, ProviderRuntimeThreadGoalStatus, ProviderRuntimeTurnStatus, ProviderSandboxMode, ProviderSendTurnInput, ProviderSession, ProviderSessionRuntimeStatus, ProviderSessionStartInput, ProviderStopSessionInput, ProviderTurnStartResult, ProviderUserInputAnswers, RelayClientInstallFailedError, RelayClientInstallFailureReasonSchema, RelayClientInstallProgressEventSchema, RelayClientInstallProgressStageSchema, RelayClientStatusSchema, RepositoryIdentity, RepositoryIdentityLocator, ResolvedKeybindingRule, ResolvedKeybindingsConfig, ReviewDiffPreviewError, ReviewDiffPreviewInput, ReviewDiffPreviewResult, ReviewDiffPreviewSource, ReviewDiffPreviewSourceKind, RuntimeEventRaw, RuntimeItemId, RuntimeMode, RuntimeRequestId, RuntimeSessionId, RuntimeTaskId, SCRIPT_RUN_COMMAND_PATTERN, ScopedProjectRef, ScopedThreadRef, ScopedThreadSessionRef, SelectProviderOptionDescriptor, ServerAuthBootstrapMethod, ServerAuthDescriptor, ServerAuthPolicy, ServerAuthSessionMethod, ServerConfig, ServerConfigIssue, ServerConfigKeybindingsUpdatedPayload, ServerConfigProviderStatusesPayload, ServerConfigSettingsUpdatedPayload, ServerConfigStreamEvent, ServerConfigStreamKeybindingsUpdatedEvent, ServerConfigStreamProviderStatusesEvent, ServerConfigStreamSettingsUpdatedEvent, ServerConfigStreamSnapshotEvent, ServerConfigUpdatedPayload, ServerLifecycleReadyPayload, ServerLifecycleStreamEvent, ServerLifecycleStreamReadyEvent, ServerLifecycleStreamWelcomeEvent, ServerLifecycleWelcomePayload, ServerObservability, ServerProcessDiagnosticsEntry, ServerProcessDiagnosticsResult, ServerProcessResourceHistoryBucket, ServerProcessResourceHistoryInput, ServerProcessResourceHistoryResult, ServerProcessResourceHistorySummary, ServerProcessSignal, ServerProvider, ServerProviderAuth, ServerProviderAuthStatus, ServerProviderAvailability, ServerProviderContinuation, ServerProviderModel, ServerProviderSkill, ServerProviderSlashCommand, ServerProviderSlashCommandInput, ServerProviderState, ServerProviderUpdateError, ServerProviderUpdateInput, ServerProviderUpdateState, ServerProviderUpdateStatus, ServerProviderUpdatedPayload, ServerProviderVersionAdvisory, ServerProviderVersionAdvisoryStatus, ServerProviders, ServerRemoveKeybindingInput, ServerRemoveKeybindingResult, ServerSettings, ServerSettingsError, ServerSettingsPatch, ServerSignalProcessInput, ServerSignalProcessResult, ServerTraceDiagnosticsErrorKind, ServerTraceDiagnosticsFailureSummary, ServerTraceDiagnosticsLogEvent, ServerTraceDiagnosticsRecentFailure, ServerTraceDiagnosticsResult, ServerTraceDiagnosticsSpanOccurrence, ServerTraceDiagnosticsSpanSummary, ServerUpsertKeybindingInput, ServerUpsertKeybindingResult, SidebarProjectGroupingMode, SidebarProjectSortOrder, SidebarThreadPreviewCount, SidebarThreadSortOrder, SourceControlCloneProtocol, SourceControlCloneRepositoryInput, SourceControlCloneRepositoryResult, SourceControlDiscoveryResult, SourceControlDiscoveryStatus, SourceControlProviderAuth, SourceControlProviderAuthStatus, SourceControlProviderDiscoveryItem, SourceControlProviderError, SourceControlProviderInfo, SourceControlProviderKind, SourceControlPublishRepositoryInput, SourceControlPublishRepositoryResult, SourceControlPublishStatus, SourceControlRepositoryCloneUrls, SourceControlRepositoryError, SourceControlRepositoryInfo, SourceControlRepositoryLookupInput, SourceControlRepositoryVisibility, THREAD_JUMP_KEYBINDING_COMMANDS, THREAD_KEYBINDING_COMMANDS, TOOL_LIFECYCLE_ITEM_TYPES, TerminalAttachInput, TerminalAttachStreamEvent, TerminalClearInput, TerminalCloseInput, TerminalCwdError, TerminalError, TerminalEvent, TerminalHistoryError, TerminalMetadataStreamEvent, TerminalNotRunningError, TerminalOpenInput, TerminalResizeInput, TerminalRestartInput, TerminalSessionLookupError, TerminalSessionSnapshot, TerminalSessionStatus, TerminalSummary, TerminalThreadInput, TerminalWriteInput, TextGenerationError, ThreadActivityAppendedPayload, ThreadApprovalResponseRequestedPayload, ThreadArchivedPayload, ThreadCheckpointRevertRequestedPayload, ThreadCreatedPayload, ThreadDeletedPayload, ThreadEnvMode, ThreadGoalClearedPayload, ThreadGoalRequest, ThreadGoalRequestedPayload, ThreadGoalUpdatedPayload, ThreadId, ThreadInteractionModeSetPayload, ThreadMessageSentPayload, ThreadMetaUpdatedPayload, ThreadProposedPlanUpsertedPayload, ThreadRevertedPayload, ThreadRuntimeModeSetPayload, ThreadSessionSetPayload, ThreadSessionStopRequestedPayload, ThreadTokenUsageSnapshot, ThreadTurnDiff, ThreadTurnDiffCompletedPayload, ThreadTurnInterruptRequestedPayload, ThreadTurnStartCommand, ThreadTurnStartRequestedPayload, ThreadUnarchivedPayload, TimestampFormat, ToolLifecycleItemType, TrimmedNonEmptyString, TrimmedString, TurnCountRange, TurnId, UserInputQuestion, VcsCreateRefInput, VcsCreateRefResult, VcsCreateWorktreeInput, VcsCreateWorktreeResult, VcsDiscoveryItem, VcsDriverCapabilities, VcsDriverKind, VcsError, VcsFreshness, VcsFreshnessSource, VcsInitInput, VcsListRefsInput, VcsListRefsResult, VcsListRemotesResult, VcsListWorkspaceFilesResult, VcsOutputDecodeError, VcsProcessExitError, VcsProcessSpawnError, VcsProcessTimeoutError, VcsPullInput, VcsPullResult, VcsRef, VcsRemote, VcsRemoveWorktreeInput, VcsRepositoryDetectionError, VcsRepositoryIdentity, VcsStatusInput, VcsStatusLocalResult, VcsStatusRemoteResult, VcsStatusResult, VcsStatusStreamEvent, VcsSwitchRefInput, VcsSwitchRefResult, VcsUnsupportedOperationError, WS_METHODS, WsCloudGetRelayClientStatusRpc, WsCloudInstallRelayClientRpc, WsFilesystemBrowseRpc, WsGitPreparePullRequestThreadRpc, WsGitResolvePullRequestRpc, WsGitRunStackedActionRpc, WsOrchestrationDispatchCommandRpc, WsOrchestrationGetArchivedShellSnapshotRpc, WsOrchestrationGetFullThreadDiffRpc, WsOrchestrationGetTurnDiffRpc, WsOrchestrationReplayEventsRpc, WsOrchestrationSubscribeShellRpc, WsOrchestrationSubscribeThreadRpc, WsProjectsSearchEntriesRpc, WsProjectsWriteFileRpc, WsReviewGetDiffPreviewRpc, WsRpcGroup, WsServerDiscoverSourceControlRpc, WsServerGetConfigRpc, WsServerGetProcessDiagnosticsRpc, WsServerGetProcessResourceHistoryRpc, WsServerGetSettingsRpc, WsServerGetTraceDiagnosticsRpc, WsServerRefreshProvidersRpc, WsServerRemoveKeybindingRpc, WsServerSignalProcessRpc, WsServerUpdateProviderRpc, WsServerUpdateSettingsRpc, WsServerUpsertKeybindingRpc, WsShellOpenInEditorRpc, WsSourceControlCloneRepositoryRpc, WsSourceControlLookupRepositoryRpc, WsSourceControlPublishRepositoryRpc, WsSubscribeAuthAccessRpc, WsSubscribeServerConfigRpc, WsSubscribeServerLifecycleRpc, WsSubscribeTerminalEventsRpc, WsSubscribeTerminalMetadataRpc, WsSubscribeVcsStatusRpc, WsTerminalAttachRpc, WsTerminalClearRpc, WsTerminalCloseRpc, WsTerminalOpenRpc, WsTerminalResizeRpc, WsTerminalRestartRpc, WsTerminalWriteRpc, WsVcsCreateRefRpc, WsVcsCreateWorktreeRpc, WsVcsInitRpc, WsVcsListRefsRpc, WsVcsPullRpc, WsVcsRefreshStatusRpc, WsVcsRemoveWorktreeRpc, WsVcsSwitchRefRpc, defaultInstanceIdForDriver, isProviderAvailable, isProviderDriverKind, isToolLifecycleItemType, makeProviderSettingsSchema };
|
|
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,69 +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
|
-
"./
|
|
66
|
-
"types": "./dist/
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
"./layout": {
|
|
70
|
-
"types": "./dist/src/layout/index.d.ts",
|
|
71
|
-
"default": "./dist/layout.js"
|
|
66
|
+
"./node": {
|
|
67
|
+
"types": "./dist/src/node/index.d.ts",
|
|
68
|
+
"import": "./dist/node.js",
|
|
69
|
+
"default": "./dist/node.js"
|
|
72
70
|
},
|
|
73
71
|
"./orchestration": {
|
|
74
72
|
"types": "./dist/src/orchestration/index.d.ts",
|
|
73
|
+
"import": "./dist/orchestration.js",
|
|
75
74
|
"default": "./dist/orchestration.js"
|
|
76
75
|
},
|
|
77
76
|
"./rpc": {
|
|
78
77
|
"types": "./dist/src/rpc/index.d.ts",
|
|
78
|
+
"import": "./dist/rpc.js",
|
|
79
79
|
"default": "./dist/rpc.js"
|
|
80
80
|
},
|
|
81
81
|
"./runtime": {
|
|
82
82
|
"types": "./dist/src/runtime/index.d.ts",
|
|
83
|
+
"import": "./dist/runtime.js",
|
|
83
84
|
"default": "./dist/runtime.js"
|
|
84
85
|
},
|
|
85
|
-
"./
|
|
86
|
-
"types": "./dist/src/
|
|
87
|
-
"
|
|
88
|
-
|
|
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"
|
|
89
92
|
},
|
|
90
93
|
"dependencies": {
|
|
91
94
|
"@effect/platform-node": "4.0.0-beta.78",
|
|
92
|
-
"
|
|
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"
|
|
93
101
|
},
|
|
94
102
|
"devDependencies": {
|
|
95
103
|
"@changesets/cli": "^2.31.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
|
+
});
|