See how your app actually fits together. An interactive, plain-English map of your codebase, drawn by Claude or Codex.
JavaScript ai-codingarchitecture-diagramclaudeclaude-codeclaude-code-plugincodebase-visualizationcodexcodex-plugindeveloper-toolsonboardingopenaivibe-coding
Merge pull request #38
Hayden Smithaef35b90923c
diff --cc tests/health.test.mjsindex b67e7d9,fa54289..83b8847--- a/tests/health.test.mjs+++ b/tests/health.test.mjs@@@ -44,26 -44,12 +44,32 @@@ test('FastAPI: Annotated dependency aliassert.deepEqual(openEndpoints(graph), ['POST /comments', 'POST /feedback']);});+test('FastAPI: public readiness and liveness endpoints are not security warnings (#7)', () => {+ const graph = buildFixture('fastapi-annotated');+ const paths = graph.routes.map((r) => r.p);+ assert.ok(paths.includes('/readyz'));+ assert.ok(paths.includes('/livez'));+ assert.ok(!openEndpoints(graph).includes('GET /readyz'));+ assert.ok(!openEndpoints(graph).includes('GET /livez'));+});++test('FastAPI: a named guard dependency is not a public endpoint (#7)', () => {+ const graph = buildFixture('fastapi-guard-name');+ assert.deepEqual(openEndpoints(graph), ['POST /billing/open']);+});++test('FastAPI: header tokens are guarded only when the handler validates them (#7)', () => {+ const graph = buildFixture('fastapi-header-guard');+ assert.ok(graph.routes.some((r) => r.p === '/invites/checked'));+ assert.deepEqual(openEndpoints(graph), ['POST /invites/unchecked']);+});++ test('FastAPI: a signature validator in an imported helper protects the route (#7)', () => {+ const graph = buildFixture('fastapi-signature-helper');+ assert.ok(graph.routes.some((r) => r.p === '/webhook/verified'));+ assert.deepEqual(openEndpoints(graph), ['POST /webhook/unverified']);+ });+test('FastAPI: checks added where a router is included count as sign-in checks', () => {const graph = buildFixture('fastapi-include-router');assert.equal(graph.routes.length, 4, `expected the sample's 4 endpoints, found ${graph.routes.length}`);