mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
chore(process-host): drop the WSL hook relay launcher from the direct-import baseline (#34078)
This commit is contained in:
@@ -6,7 +6,6 @@ src/cli/handlers/core.ts
|
||||
src/cli/handlers/interactive-login-interruption.ts
|
||||
src/cli/runtime/launch.ts
|
||||
src/main/agent-hooks/managed-hook-owner-identity.ts
|
||||
src/main/agent-hooks/wsl-hook-relay-launch.ts
|
||||
src/main/agent-hooks/wsl-hook-relay-link.ts
|
||||
src/main/agent-hooks/wsl-hook-relay-manager.ts
|
||||
src/main/agent-hooks/wsl-hook-relay-sentinel.ts
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ChildProcessWithoutNullStreams } from 'node:child_process'
|
||||
import type { PipedChildProcess } from '@orca/process-host/process-spec'
|
||||
import { existsSync, readFileSync } from 'node:fs'
|
||||
import { join } from 'node:path'
|
||||
import { spawnProcess } from '@orca/process-host'
|
||||
@@ -102,7 +102,7 @@ export function spawnWslRelayProcess(
|
||||
distro: string,
|
||||
env: NodeJS.ProcessEnv,
|
||||
version: string
|
||||
): ChildProcessWithoutNullStreams {
|
||||
): PipedChildProcess {
|
||||
// --exec bypasses login-shell rewriting and passes $HOME verbatim for guest-side expansion.
|
||||
const command = `exec sh "${guestRelayDirExpr(version)}/launch.sh"`
|
||||
return spawnProcess({
|
||||
@@ -153,10 +153,10 @@ export async function launchWslRelayWithInstall(options: {
|
||||
version: string
|
||||
io: WslRelayLaunchIo
|
||||
isDisposed: () => boolean
|
||||
onChild: (child: ChildProcessWithoutNullStreams) => void
|
||||
onChild: (child: PipedChildProcess) => void
|
||||
onNoNode: () => void
|
||||
onFailure: (message: string) => void
|
||||
connect: (transport: MultiplexerTransport, child: ChildProcessWithoutNullStreams) => Promise<void>
|
||||
connect: (transport: MultiplexerTransport, child: PipedChildProcess) => Promise<void>
|
||||
}): Promise<void> {
|
||||
const { distro, env, bundleJsPath, version, io } = options
|
||||
let installTried = false
|
||||
|
||||
Reference in New Issue
Block a user