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

Function createBatchCommandMetadata

src/commands/batch/metadata.ts:48–58  ·  view source on GitHub ↗
(
  nestedCommands: readonly string[] = STRUCTURED_BATCH_COMMAND_NAMES,
)

Source from the content-addressed store, hash-verified

46};
47
48export function createBatchCommandMetadata(
49 nestedCommands: readonly string[] = STRUCTURED_BATCH_COMMAND_NAMES,
50): CommandMetadata<'batch', BatchInput> {
51 const fields = batchFields(nestedCommands);
52 return defineCommandMetadata({
53 name: 'batch',
54 description: 'Run multiple structured command steps in one daemon request.',
55 inputSchema: fieldsInputSchema(fields),
56 readInput: (input) => readBatchInput(input, fields),
57 });
58}
59
60function batchFields(nestedCommands: readonly string[]) {
61 return {

Callers 1

index.tsFile · 0.90

Calls 4

defineCommandMetadataFunction · 0.90
fieldsInputSchemaFunction · 0.90
batchFieldsFunction · 0.85
readBatchInputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…