Summary
src/init.ts:90 matches the pattern against event.urlandevent.host as a raw substring. Short patterns (e.g. "api") over-match. There is no test that pins this behavior, so any future tightening would silently change it.
Fix
Document the substring contract with a test that asserts the over-match, or scope to exact host equality + URL startsWith. Pick one.
Files
src/init.tstests/init.test.ts
Priority
P2 — undocumented behavior with regression risk on tightening.
Summary
src/init.ts:90matches the pattern againstevent.urlandevent.hostas a raw substring. Short patterns (e.g."api") over-match. There is no test that pins this behavior, so any future tightening would silently change it.Fix
Document the substring contract with a test that asserts the over-match, or scope to exact host equality + URL
startsWith. Pick one.Files
src/init.tstests/init.test.tsPriority
P2 — undocumented behavior with regression risk on tightening.