UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

16 lines • 634 B
/** Compatibility assembly only; each underlying range is bounded, the resulting legacy view is not. */ export async function readCompactBlocks(texts, blocks, valid) { const result = []; for (const { contentIndex, kind, root, tail, tailRoot } of blocks) { valid(); let text = ""; for await (const chunk of texts.chunks(root, valid)) text += chunk; for await (const chunk of texts.chunks(tailRoot ?? 0, valid)) text += chunk; text += tail; result.push({ contentIndex, kind, text }); } return result; } //# sourceMappingURL=compact-text-view.js.map