mirror of
https://github.com/stablyai/orca.git
synced 2026-11-02 18:17:36 +00:00
refactor(execution-host): one isLocalExecutionHost in shared (#30241)
Replaces the agent-hooks copy, a private wrapper and five inline parseExecutionHostId(x)?.kind === 'local' checks.
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
getExecutionHostLabel,
|
||||
getLocalExecutionHostLabel,
|
||||
normalizeExecutionHostId,
|
||||
parseExecutionHostId,
|
||||
isLocalExecutionHost,
|
||||
toSshExecutionHostId,
|
||||
type ExecutionHostId
|
||||
} from '../execution-host'
|
||||
@@ -26,7 +26,7 @@ export function getHostContextLabel(
|
||||
if (override) {
|
||||
return override
|
||||
}
|
||||
if (parseExecutionHostId(hostId)?.kind === 'local') {
|
||||
if (isLocalExecutionHost(hostId)) {
|
||||
// An explicit null means the paired host platform is unknown (mobile); an
|
||||
// omitted platform means use the current process (desktop).
|
||||
if (sources.hostPlatform === null) {
|
||||
|
||||
Reference in New Issue
Block a user