MCPcopy Create free account
hub / github.com/Noumena-Network/code / canBatchWith

Function canBatchWith

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

Source from the content-addressed store, hash-verified

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

Callers 1

drainCommandQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected