fix(replay): bound source bundle and file counts
Summary
Bound non-local remote replay requests to 256 source bundles and 2,048 files, including empty-text files. Direct test and nested batch test steps refuse oversized suites before reading sources. Remote replay refuses oversized Maestro include closures before upload. Batch errors retain the limit counts and split-invocations hint. Local suites keep their prior count behavior. CLI help and the replay guide document the limits. This addresses the review concern on #5243 and is stacked on that PR.
Before / after
- Before: remote
batchwith a 257-source test loaded sources, then failed at daemon admission. - After: it fails client-side before reading sources, with
limitCount,totalCount, and the split hint. - Before: remote
replaywith 2,049 included files uploaded the bundle before refusal. - After: it fails client-side with
INVALID_ARGSand the file count.
Validation
Head cc389f35a5. Focused packages/command-surface/src/index.test.ts passed 4/4. The previous head's focused command-surface and replay-port files passed 41/41. Current-head CI is pending. No live device validation is required for these client preflight and documentation changes. A custom transport without a daemon URL cannot be classified for client preflight; daemon admission still enforces the limits.