MCPcopy Create free account
hub / github.com/clawbot7/cli-gateway / extractExitCode

Function extractExitCode

src/gateway/bindingRuntime.ts:997–1005  ·  view source on GitHub ↗
(update: any)

Source from the content-addressed store, hash-verified

995}
996
997function extractExitCode(update: any): number | null {
998 const direct = update?.exitCode;
999 if (typeof direct === 'number') return direct;
1000
1001 const nested = getPathValue(update, 'result.exitCode');
1002 if (typeof nested === 'number') return nested;
1003
1004 return null;
1005}
1006
1007function extractErrorText(update: any): string | null {
1008 const direct = update?.error;

Callers 1

buildToolDetailTextFunction · 0.85

Calls 1

getPathValueFunction · 0.70

Tested by

no test coverage detected