Skip to content

EgressBackendProbeDeps

Defined in: src/egress.ts:58

Injectable deps for detectEgressBackend. Extends BackendProbeDeps (home, claudeDir, nodeBinReal, run, exists) so the probe membrane and egress overrides can share the same injected host fields.

Also carries the EgressOverrideDeps fields (realpath, isSymlink) so the same deps object can be forwarded to egressMembraneOverrideFlags without a cast. The EgressOverrideDeps interface is defined later in this file; inlining the two optional fields here avoids a circular reference with that later type.

optional claudeDir?: string

Defined in: src/sandbox.ts:86

BackendProbeDeps.claudeDir


optional exists?: (p) => boolean

Defined in: src/sandbox.ts:69

Existence probe; default fs.existsSync.

string

boolean

BackendProbeDeps.exists


optional home?: string

Defined in: src/sandbox.ts:85

BackendProbeDeps.home


optional isSymlink?: (p) => boolean

Defined in: src/egress.ts:62

isSymlink probe for /etc/resolv.conf (forwarded to egressMembraneOverrideFlags).

string

boolean


optional mkdtemp?: (prefix) => string

Defined in: src/egress.ts:72

Override for mkdtempSync; default mkdtempSync from node:fs. Injectable so tests can provide a deterministic path.

string

string


optional nodeBinReal?: string

Defined in: src/sandbox.ts:87

BackendProbeDeps.nodeBinReal


optional readdir?: (p) => string[]

Defined in: src/sandbox.ts:71

Directory listing; default a safe readdirSync wrapper returning [] on error.

string

string[]

BackendProbeDeps.readdir


optional realpath?: (p) => string

Defined in: src/egress.ts:60

realpath for /etc/resolv.conf symlink resolution (forwarded to egressMembraneOverrideFlags).

string

string


optional rmdir?: (path) => void

Defined in: src/egress.ts:76

Override for rmSync (cleanup); default rmSync from node:fs.

string

void


optional run?: (cmd, args) => object

Defined in: src/sandbox.ts:67

Run a command; default uses the repo-wrapped execFileSync. Returns its exit status.

string

string[]

object

status: number

BackendProbeDeps.run


optional runnerPath?: string

Defined in: src/egress.ts:81

Override for the egress-runner.sh absolute path resolution. When provided, used directly instead of resolving relative to import.meta.dir.


optional writeFile?: (path, data) => void

Defined in: src/egress.ts:67

Override for writing config files in the temp dir; default writeFileSync. Injectable so tests can skip real I/O.

string

string

void