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.
Extends
Section titled “Extends”Properties
Section titled “Properties”claudeDir?
Section titled “claudeDir?”
optionalclaudeDir?:string
Defined in: src/sandbox.ts:86
Inherited from
Section titled “Inherited from”exists?
Section titled “exists?”
optionalexists?: (p) =>boolean
Defined in: src/sandbox.ts:69
Existence probe; default fs.existsSync.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”
optionalhome?:string
Defined in: src/sandbox.ts:85
Inherited from
Section titled “Inherited from”isSymlink?
Section titled “isSymlink?”
optionalisSymlink?: (p) =>boolean
Defined in: src/egress.ts:62
isSymlink probe for /etc/resolv.conf (forwarded to egressMembraneOverrideFlags).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
mkdtemp?
Section titled “mkdtemp?”
optionalmkdtemp?: (prefix) =>string
Defined in: src/egress.ts:72
Override for mkdtempSync; default mkdtempSync from node:fs. Injectable so tests can provide a deterministic path.
Parameters
Section titled “Parameters”prefix
Section titled “prefix”string
Returns
Section titled “Returns”string
nodeBinReal?
Section titled “nodeBinReal?”
optionalnodeBinReal?:string
Defined in: src/sandbox.ts:87
Inherited from
Section titled “Inherited from”readdir?
Section titled “readdir?”
optionalreaddir?: (p) =>string[]
Defined in: src/sandbox.ts:71
Directory listing; default a safe readdirSync wrapper returning [] on error.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”realpath?
Section titled “realpath?”
optionalrealpath?: (p) =>string
Defined in: src/egress.ts:60
realpath for /etc/resolv.conf symlink resolution (forwarded to egressMembraneOverrideFlags).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
rmdir?
Section titled “rmdir?”
optionalrmdir?: (path) =>void
Defined in: src/egress.ts:76
Override for rmSync (cleanup); default rmSync from node:fs.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
optionalrun?: (cmd,args) =>object
Defined in: src/sandbox.ts:67
Run a command; default uses the repo-wrapped execFileSync. Returns its exit status.
Parameters
Section titled “Parameters”string
string[]
Returns
Section titled “Returns”object
status
Section titled “status”status:
number
Inherited from
Section titled “Inherited from”runnerPath?
Section titled “runnerPath?”
optionalrunnerPath?: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.
writeFile?
Section titled “writeFile?”
optionalwriteFile?: (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.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”void