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

Function buildBatchStepFlags

src/core/batch.ts:192–203  ·  view source on GitHub ↗
(
  parentFlags: BatchFlags | Record<string, unknown> | undefined,
  stepFlags: DaemonBatchStep['flags'] | Record<string, unknown> | undefined,
)

Source from the content-addressed store, hash-verified

190}
191
192function buildBatchStepFlags(
193 parentFlags: BatchFlags | Record<string, unknown> | undefined,
194 stepFlags: DaemonBatchStep['flags'] | Record<string, unknown> | undefined,
195): BatchFlags {
196 const {
197 batchSteps: _batchSteps,
198 batchOnError: _batchOnError,
199 batchMaxSteps: _batchMaxSteps,
200 ...merged
201 } = stepFlags ?? {};
202 return mergeParentFlags(readBatchFlags(parentFlags), merged as BatchFlags);
203}
204
205export function mergeParentFlags<TFlags extends Record<string, unknown>>(
206 parentFlags: BatchFlags | Record<string, unknown> | undefined,

Callers 1

runBatchStepFunction · 0.85

Calls 2

mergeParentFlagsFunction · 0.85
readBatchFlagsFunction · 0.85

Tested by

no test coverage detected