refactor(commands): unify repeated ACP and routing flows

This commit is contained in:
Peter Steinberger
2026-03-02 05:19:47 +00:00
parent 2d31126e6a
commit 6b78544f82
12 changed files with 333 additions and 442 deletions

View File

@@ -66,8 +66,8 @@ export type BlockStreamingChunking = {
flushOnParagraph?: boolean;
};
function clampPositiveInteger(
value: number | undefined,
export function clampPositiveInteger(
value: unknown,
fallback: number,
bounds: { min: number; max: number },
): number {