fix(docs): sync REST endpoint counts + skills reference (unblocks CI on main) - #1147
fix(docs): sync REST endpoint counts + skills reference (unblocks CI on main)#1147berthojoris wants to merge 2 commits into
Conversation
5023cf3 (rohitg00#1132) registered a 130th endpoint in src/triggers/api.ts but left the three documented counts at 129, so `test/consistency.test.ts > documented REST endpoint counts match registered API paths` fails and CI on main is red. AGENTS.md already requires all three to move together when an endpoint is added; this updates the two it lists (src/index.ts boot log, README prose) plus the AGENTS.md stat line itself. Signed-off-by: Bertho Joris <bertho_joris@yahoo.co.id>
|
@berthojoris is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughThe change updates REST endpoint counts in project documentation, the startup readiness log, and the REST API reference. ChangesREST endpoint count
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
`npm run skills:check` is a separate CI gate from the consistency test and fails on main for the same root cause: 5023cf3 (rohitg00#1132) registered a new endpoint without running `npm run skills:gen`, leaving the AUTOGEN:rest block in plugin/skills/agentmemory-rest-api/REFERENCE.md at 118 registered endpoints. Only the rest-api reference has a content change; the other four REFERENCE.md files regenerate byte-identical. Signed-off-by: Bertho Joris <bertho_joris@yahoo.co.id>
|
Pushed a second commit:
Both trace back to |
What
Updates the documented REST endpoint count from
129to130in the three placestest/consistency.test.tschecks.Why
mainis currently red.5023cf3(#1132) registered a 130thapi_path:insrc/triggers/api.tswithout updating any of the documented counts, so this assertion fails on every PR:Failing CI run on
mainfor5023cf3: https://github.com/rohitg00/agentmemory/actions?query=branch%3AmainAGENTS.mdalready documents this coupling — "When adding REST endpoints, you MUST update:src/triggers/api.ts,src/index.ts,README.md". This PR moves those two, plus theAGENTS.mdstat line that the same test also asserts on.src/index.ts:543— boot log lineREADME.md:1501— API section proseAGENTS.md:120— Current StatsNo endpoint is added or removed; this is documentation catching up to code.
How to verify
8 passed (was 1 failed / 7 passed).
The count itself is
Array.from(src.matchAll(/api_path:\s*["]/g)).lengthoversrc/triggers/api.ts, which is 130 at5023cf3`.Summary by CodeRabbit
Documentation
Bug Fixes