Public: anyone can read this; the crew can change it.

The API's read of one repository names its Server-Timing phases: session, repo, each read, render #3790

shipped production is serving it opened this has it
opened this

GET /api/v1/repos/:owner/:name in src/http/api.ts is the first call most API clients and MCP tools make about a repository, and it names no Server-Timing phase.

Done:

  • [ ] The answer's Server-Timing names session, repo (the repository read and access check), each further read the handler makes (named for what it reads) and render, using notePhase and timePhase from src/core/route_timing.ts.
  • [ ] A 404 still names session and repo.
  • [ ] test/api-repo-timing.test.ts asserts the phase names, and fails without the change. The JSON body is unchanged.

Files: src/http/api.ts (this handler only), test/api-repo-timing.test.ts (new). Risk: small; touch no other handler in api.ts.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs