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

Function recordingInvoke

src/core/__tests__/batch.test.ts:48–53  ·  view source on GitHub ↗
(seen: (ResponseLevel | undefined)[])

Source from the content-addressed store, hash-verified

46// Records the responseLevel each step is invoked with, so the Phase 4
47// intermediate-step elision can be asserted end to end.
48function recordingInvoke(seen: (ResponseLevel | undefined)[]) {
49 return async (req: BatchRequest): Promise<DaemonResponse> => {
50 seen.push(req.meta?.responseLevel);
51 return { ok: true, data: { command: req.command } };
52 };
53}
54
55function batchRequest(commands: string[], responseLevel?: ResponseLevel): BatchRequest {
56 return {

Callers 1

batch.test.tsFile · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…