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

Function readStructuredBatchStep

src/cli/batch-steps.ts:63–73  ·  view source on GitHub ↗
(
  step: Record<string, unknown> & BatchStep,
  stepNumber: number,
)

Source from the content-addressed store, hash-verified

61}
62
63function readStructuredBatchStep(
64 step: Record<string, unknown> & BatchStep,
65 stepNumber: number,
66): BatchStep {
67 const runtime = parseBatchStepRuntime(step.runtime, stepNumber);
68 const { runtime: _runtime, ...rest } = step;
69 return {
70 ...rest,
71 ...(runtime === undefined ? {} : { runtime }),
72 };
73}
74
75function readLegacyCliBatchStep(step: unknown, stepNumber: number): LegacyCliBatchStep {
76 if (!isRecord(step)) {

Callers 1

normalizeCliBatchStepsFunction · 0.85

Calls 1

parseBatchStepRuntimeFunction · 0.90

Tested by

no test coverage detected