MCPcopy Index your code
hub / github.com/callstack/agent-device / runBuiltCliJson

Function runBuiltCliJson

test/integration/cli-json.ts:28–38  ·  view source on GitHub ↗
(
  args: string[],
  env: NodeJS.ProcessEnv,
)

Source from the content-addressed store, hash-verified

26}
27
28export async function runBuiltCliJson(
29 args: string[],
30 env: NodeJS.ProcessEnv,
31): Promise<CliJsonResult> {
32 const result = await runCmd(process.execPath, ['bin/agent-device.mjs', ...args], {
33 allowFailure: true,
34 env,
35 timeoutMs: CLI_TIMEOUT_MS,
36 });
37 return cliJsonResult(result);
38}
39
40export function formatResultDebug(step: string, args: string[], result: CliJsonResult): string {
41 const jsonText =

Callers 5

openProviderAppFunction · 0.90
assertNoActiveConnectionFunction · 0.90
runStepFunction · 0.90

Calls 2

runCmdFunction · 0.90
cliJsonResultFunction · 0.85

Tested by 5

openProviderAppFunction · 0.72
assertNoActiveConnectionFunction · 0.72
runStepFunction · 0.72