fix(tmux): avoid Bun global in runner bundle
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -14,6 +14,7 @@ export interface SpawnOptions {
|
|||||||
stderr?: StdioMode
|
stderr?: StdioMode
|
||||||
stdio?: StdioTuple
|
stdio?: StdioTuple
|
||||||
detached?: boolean
|
detached?: boolean
|
||||||
|
signal?: AbortSignal
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SpawnedProcess {
|
export interface SpawnedProcess {
|
||||||
@@ -138,6 +139,7 @@ export function spawn(cmdOrOpts: unknown, opts?: unknown): SpawnedProcess {
|
|||||||
env: options.env,
|
env: options.env,
|
||||||
stdio: resolveStdio(options),
|
stdio: resolveStdio(options),
|
||||||
detached: options.detached,
|
detached: options.detached,
|
||||||
|
signal: options.signal,
|
||||||
})
|
})
|
||||||
|
|
||||||
return wrapNodeProcess(proc)
|
return wrapNodeProcess(proc)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { spawn } from "bun"
|
import { spawn } from "../bun-spawn-shim"
|
||||||
|
|
||||||
type RunTmuxOptions = {
|
type RunTmuxOptions = {
|
||||||
retry?: number
|
retry?: number
|
||||||
|
|||||||
Reference in New Issue
Block a user