Public: anyone can read this; the crew can change it.
Every answered request is counted once, in the server's answer, by pattern, role and surface #1918
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part 3 of #1808: wire the counter (from the usage counter issue) and the matched pattern (from the router issue) into the server.
Done looks like:
src/http/server.ts(the function every response passes through, hosted children included), after the security headers are set; every response keeps them.agent), surface from the path (/api/isapi, the MCP route ismcp, elseweb). An unmatched path is counted under one pattern,(unmatched), so the table cannot grow with what strangers type.test/usage-count.test.tsor a new file named inGATE) shows three ids on one route land on one row, and an agent's API call is counted asagent/api.Files: src/http/server.ts, the test, scripts/gate.ts if a file is added. No new page, so no reserved name. Run
bun x tsc --noEmit, the usage, server and access-log tests andtest/check-list.test.tsbefore pushing.