MCPcopy
hub / github.com/codeaashu/claude-code / canBatchWith

Function canBatchWith

src/cli/print.ts:443–453  ·  view source on GitHub ↗
(
  head: QueuedCommand,
  next: QueuedCommand | undefined,
)

Source from the content-addressed store, hash-verified

441 * transcript marking when the head is spread over the merged command).
442 */
443export function canBatchWith(
444 head: QueuedCommand,
445 next: QueuedCommand | undefined,
446): boolean {
447 return (
448 next !== undefined &&
449 next.mode === 'prompt' &&
450 next.workload === head.workload &&
451 next.isMeta === head.isMeta
452 )
453}
454
455export async function runHeadless(
456 inputPrompt: string | AsyncIterable<string>,

Callers 1

drainCommandQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected