Commit Graph

2 Commits

Author SHA1 Message Date
kirillk 039cf837f1 fix(cli): add word boundary to MARKER_PREFIX regex
Prevents matching typos like kilocode_changes, kilocode_changelog.
Reported by reviewer in #8601.
2026-04-08 11:13:57 -04:00
kirillk 07e97005e3 fix(cli): annotation check supports JSX comment syntax in TSX files
The kilocode_change annotation CI check (introduced in #8531) only
recognized // style comments. TSX files require {/* */} syntax inside
JSX templates, causing false failures for any PR adding Kilo-specific
JSX in packages/opencode/ — specifically reported in #6966.

Covers:
- MARKER_PREFIX regex matching both // and {/* */} styles
- Updated all 5 regex locations (whole-file, block-start/end, inline, self-exclusion)
- JSX/TSX examples in error output and AGENTS.md
- Test suite in packages/script/tests/ (98 tests across 6 describe blocks)

Test results: 98 pass, 0 fail, 107 expect() calls
2026-04-08 11:09:24 -04:00