import test from 'node:test';import assert from 'node:assert/strict';import {scanAssetChunk,ASSET_ENTRY} from './build-artifact-scan.mjs'; test('streaming asset count retains markers crossing the safe-boundary cut',()=>{ for(let offset=0;offset<100;offset++){ const text='x'.repeat(offset)+'"/index.html":["text/html; charset=utf-8","'+'A'.repeat(2500)+'"],"/portal-navigation.js":["text/javascript; charset=utf-8","'+'B'.repeat(1700)+'"]'; for(const size of [513,550,1024]){let carry='',count=0;for(let i=0;i