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

Function readBatchStep

src/commands/batch/metadata.ts:127–139  ·  view source on GitHub ↗
(
  step: unknown,
  stepNumber: number,
  nestedCommands: readonly string[],
)

Source from the content-addressed store, hash-verified

125}
126
127function readBatchStep(
128 step: unknown,
129 stepNumber: number,
130 nestedCommands: readonly string[],
131): BatchCommandStep {
132 const record = readBatchStepRecord(step, stepNumber, batchPlainError);
133 assertAllowedKeys(record, ['command', 'input', 'runtime'], `Batch step ${stepNumber}`);
134 return {
135 command: readBatchStepCommand(record, stepNumber, nestedCommands),
136 input: readBatchStepInputObject(record, stepNumber, batchPlainError),
137 ...readBatchStepRuntimeProperty(record, stepNumber),
138 };
139}
140
141function readBatchStepCommand(
142 record: Record<string, unknown>,

Callers 1

readBatchStepsFunction · 0.85

Calls 5

readBatchStepRecordFunction · 0.90
assertAllowedKeysFunction · 0.90
readBatchStepInputObjectFunction · 0.90
readBatchStepCommandFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…