MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / assertFileExists

Function assertFileExists

packages/codex-native-api/src/daemon_manager.ts:1239–1243  ·  view source on GitHub ↗
(filePath: string | null, label: string)

Source from the content-addressed store, hash-verified

1237}
1238
1239function assertFileExists(filePath: string | null, label: string): void {
1240 if (!filePath || !fs.existsSync(filePath)) {
1241 throw new Error(`${label} is not installed: ${filePath ?? 'unknown path'}`);
1242 }
1243}
1244
1245function printInstallPlan(plan: CodexNativeApiDaemonInstallPlan): void {
1246 process.stdout.write(`platform: ${plan.layout.platform}\n`);

Callers 3

startDaemonFunction · 0.85
stopDaemonFunction · 0.85
restartDaemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected