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

Function canBatchWith

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

Source from the content-addressed store, hash-verified

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

Callers 1

drainCommandQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected