v1.1.3: Pages Router walker
Pages Router walker (closes a long-standing gap)
Pages Router has been listed as supported since v1.0.0, but the walker only handled App Router naming (route.ts, page.tsx). Real Pages Router projects produced empty output: every section marked "skipped (not applicable)".
v1.1.3 adds a proper walker that handles:
- Routes: any
.ts/.tsx/.js/.jsxfile underpages/api/** - Pages: any
.tsx/.jsx/.ts/.jsfile underpages/**, excluding_app,_document,_error, andmiddleware - HTTP method detection: scans handler bodies for
req.method === 'X'patterns; falls back toANYwhen no branch is detected index.tsxfiles collapse to their parent route (e.g.,pages/blog/index.tsx→/blog)- Catch-all
[...slug]and optional catch-all[[...slug]]correctly converted
Generalized stray-leftover heuristic
The v1.1.2 fix prevented a stray src/app/page.tsx from masking a populated root app/. v1.1.3 applies the same count-based heuristic to Pages Router, so a stray src/pages/index.tsx no longer masks a populated pages/.
No App Router behavior changes
Verified byte-identical output on a 1,063-route App Router project.
Install / upgrade
npx ai-codex@latest
# or
npm install -g ai-codex@latestNotes on previous versions
- v1.1.1 is deprecated (buggy with stray
src/appleftovers; npm install will warn). - v1.1.2 remains valid for App Router users; v1.1.3 is the recommended version for everyone.
🤖 This release was prepared and verified by Claude Code.