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

Function assertBatchRuntimeCommandAllowed

src/batch-policy.ts:69–73  ·  view source on GitHub ↗
(command: string, stepNumber: number)

Source from the content-addressed store, hash-verified

67}
68
69export function assertBatchRuntimeCommandAllowed(command: string, stepNumber: number): void {
70 if (BATCH_BLOCKED_COMMANDS.has(command)) {
71 throw new AppError('INVALID_ARGS', `Batch step ${stepNumber} cannot run ${command}.`);
72 }
73}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected