MCPcopy Create free account
hub / github.com/callstack/agent-device / batchRequest

Function batchRequest

src/core/__tests__/batch.test.ts:55–63  ·  view source on GitHub ↗
(commands: string[], responseLevel?: ResponseLevel)

Source from the content-addressed store, hash-verified

53}
54
55function batchRequest(commands: string[], responseLevel?: ResponseLevel): BatchRequest {
56 return {
57 token: 't',
58 command: 'batch',
59 positionals: [],
60 flags: { batchSteps: commands.map((command) => ({ command })) },
61 ...(responseLevel ? { meta: { responseLevel } } : {}),
62 };
63}
64
65test('batch elides intermediate steps to digest, final step keeps requested level (full)', async () => {
66 const seen: (ResponseLevel | undefined)[] = [];

Callers 1

batch.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…