Problem
tsc --noEmit reports:
src/run-live.ts(32,37): error TS2454: Variable 'caller' is used before being assigned.
caller is declared let caller: ToolCaller; and assigned inside a try/catch whose catch branch calls process.exit(1). TypeScript's strict control-flow analysis does not treat process.exit as never-returning, so it sees a path where caller is unassigned at line 32.
Suggested fix
Restructure so the assignment is provably definite, e.g. move the live-mode logic into the try block, or have the catch return/throw after logging, or assign directly: const caller = await loadCaller(); where loadCaller throws instead of exiting. This is a genuine strict-mode compile error and will block pnpm build once @types/node is added.
Problem
tsc --noEmitreports:calleris declaredlet caller: ToolCaller;and assigned inside a try/catch whose catch branch callsprocess.exit(1). TypeScript's strict control-flow analysis does not treatprocess.exitas never-returning, so it sees a path wherecalleris unassigned at line 32.Suggested fix
Restructure so the assignment is provably definite, e.g. move the live-mode logic into the try block, or have the catch
return/throwafter logging, or assign directly:const caller = await loadCaller();whereloadCallerthrows instead of exiting. This is a genuine strict-mode compile error and will blockpnpm buildonce @types/node is added.