mirror of
https://github.com/stablyai/orca.git
synced 2026-11-05 19:47:27 +00:00
refactor(runtime): check session host queries and terminal focus (#28367)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { OrcaRuntimeWithGetRuntimeId } from './orca-runtime-get-runtime-id'
|
||||
import { OrcaRuntimeWithGetRuntimeId } from './workspaces/session-hosts/get-runtime-id'
|
||||
import type { RuntimeDegradation, RuntimeStatus } from '../../shared/runtime-types'
|
||||
import {
|
||||
runtimeBrowserCommandsFactoryIsHeadless,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OrcaRuntimeWithFocusTerminal } from '../orca-runtime-focus-terminal'
|
||||
import { OrcaRuntimeWithFocusTerminal } from '../terminal/focus/focus-terminal'
|
||||
import { EXPLICIT_TERMINAL_CLOSE_STOP_TIMEOUT_MS } from '../orca-runtime-core'
|
||||
import { SSH_PROVIDER_UNREGISTERED_REASON } from '../../../shared/pty-liveness-verdict'
|
||||
import type { RuntimeTerminalClose } from '../../../shared/runtime-types'
|
||||
|
||||
+6
-7
@@ -1,11 +1,10 @@
|
||||
// @ts-nocheck -- mechanically split from OrcaRuntimeService; behavior is covered by AST equivalence and characterization tests.
|
||||
import { OrcaRuntimeWithWaitForLeafPtyId } from './terminal/view/renderer-terminal-snapshot'
|
||||
import type { RuntimeTerminalFocus } from '../../shared/runtime-types'
|
||||
import { parsePaneKey } from '../../shared/stable-pane-id'
|
||||
import { getLatestPtyTitle } from './runtime-worktree-status-projection'
|
||||
import { copySleepingAgentLaunchConfig } from './runtime-agent-launch-resolution'
|
||||
import { OrcaRuntimeWithWaitForLeafPtyId } from '../view/renderer-terminal-snapshot'
|
||||
import type { RuntimeTerminalFocus } from '../../../../shared/runtime-types'
|
||||
import { parsePaneKey } from '../../../../shared/stable-pane-id'
|
||||
import { getLatestPtyTitle } from '../../runtime-worktree-status-projection'
|
||||
import { copySleepingAgentLaunchConfig } from '../../runtime-agent-launch-resolution'
|
||||
|
||||
export class OrcaRuntimeWithFocusTerminal extends OrcaRuntimeWithWaitForLeafPtyId {
|
||||
export abstract class OrcaRuntimeWithFocusTerminal extends OrcaRuntimeWithWaitForLeafPtyId {
|
||||
async focusTerminal(
|
||||
handle: string,
|
||||
options: { navigateHost?: boolean } = {}
|
||||
+10
-11
@@ -1,23 +1,22 @@
|
||||
// @ts-nocheck -- mechanically split from OrcaRuntimeService; behavior is covered by AST equivalence and characterization tests.
|
||||
import { OrcaRuntimeWithHasExactPersistedTerminalSurfaceIdentity } from './orca-runtime-has-exact-persisted-terminal-surface-identity'
|
||||
import { OrcaRuntimeWithHasExactPersistedTerminalSurfaceIdentity } from '../../orca-runtime-has-exact-persisted-terminal-surface-identity'
|
||||
import type {
|
||||
OrchestrationEnvironmentCallOptions,
|
||||
OrchestrationWorkerServer
|
||||
} from './orchestration/environment-transport'
|
||||
import type { RuntimeOrchestrationEnvelope } from '../../shared/runtime-rpc-envelope'
|
||||
import type { ExecutionHostId } from '../../shared/execution-host'
|
||||
} from '../../orchestration/environment-transport'
|
||||
import type { RuntimeOrchestrationEnvelope } from '../../../../shared/runtime-rpc-envelope'
|
||||
import type { ExecutionHostId } from '../../../../shared/execution-host'
|
||||
import {
|
||||
LOCAL_EXECUTION_HOST_ID,
|
||||
getRepoExecutionHostId,
|
||||
parseExecutionHostId,
|
||||
toSshExecutionHostId
|
||||
} from '../../shared/execution-host'
|
||||
import type { RuntimeTerminalSummary } from '../../shared/runtime-types'
|
||||
import type { ResolvedWorktree } from './runtime-worktree-path-identity'
|
||||
import { FLOATING_TERMINAL_WORKTREE_ID } from '../../shared/constants'
|
||||
import type { WorkspaceSessionState } from '../../shared/workspace-session-state-types'
|
||||
} from '../../../../shared/execution-host'
|
||||
import type { RuntimeTerminalSummary } from '../../../../shared/runtime-types'
|
||||
import type { ResolvedWorktree } from '../../runtime-worktree-path-identity'
|
||||
import { FLOATING_TERMINAL_WORKTREE_ID } from '../../../../shared/constants'
|
||||
import type { WorkspaceSessionState } from '../../../../shared/workspace-session-state-types'
|
||||
|
||||
export class OrcaRuntimeWithGetRuntimeId extends OrcaRuntimeWithHasExactPersistedTerminalSurfaceIdentity {
|
||||
export abstract class OrcaRuntimeWithGetRuntimeId extends OrcaRuntimeWithHasExactPersistedTerminalSurfaceIdentity {
|
||||
getRuntimeId(): string {
|
||||
return this.runtimeId
|
||||
}
|
||||
Reference in New Issue
Block a user