/** * Phase 7.2 R1 Agent C (H3, L-01 + L-03) — URL length cap + slot path * regex tests. * * Two independent hardenings, each with its own section: * * A — `fast-refresh-plugin#appendBoundary` — reject URLs that are * over 2 KB long or contain characters that could escape an * inline `.client.tsx"; const v = validateAcceptFileUrl(url); expect(v.ok).toBe(false); if (!v.ok) expect(v.reason).toMatch(/unsafe substring/); }); test("[URL4] URL with newline is rejected", () => { const url = "/app/path\nwith-newline.client.tsx"; const v = validateAcceptFileUrl(url); expect(v.ok).toBe(false); }); test("[URL5] URL with