okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

albedocmake: strata_kernels links strata_kernels_cpu (iq_kernels.cu reads the latent colscale table from expert_layout.cpp; strata-q36ref failed to link)a4af4df61

main
4 files

files

AGENTS.md451 B
README.md615 B
acceptance.test.ts1.9 KiB
windows.ts365 B

Repair mergeWindows in windows.ts. A window has finite numeric start/end with start <= end. The optional gap defaults to zero and must be finite and nonnegative, even for empty input. Invalid input values throw RangeError. Return windows sorted by start then end, merging overlaps, touching endpoints, and windows separated by at most gap. Use the maximum end of merged windows, including contained windows. Do not mutate the input array or its objects; returned objects must be new. Preserve the exported function and type. Only windows.ts may be changed. Run node --test acceptance.test.ts. Do not change tests.