feat(cli): embed checkup dictionary from API at build time
Summary
- Replace hardcoded
CHECK_INFOwith dictionary fetched from API at build time - Add build script to fetch from https://postgres.ai/api/general/checkup_dictionary
- Generate embedded TypeScript file during build (not committed to git)
- Follow same pattern as
platform-uiimplementation
Changes
- Add
scripts/embed-checkup-dictionary.ts- build-time fetch and embed - Add
lib/checkup-dictionary.ts- types and helper functions - Update
lib/checkup.ts- use embedded dictionary forCHECK_INFO - Update
package.json- addembed-checkup-dictionaryto build pipeline - Update
.gitignore- exclude generated file - Update tests - validate dictionary integration
Test plan
-
Run
bun run embed-checkup-dictionary- fetches 69 entries -
Run
bun run test:fast- all 298 tests pass -
Run
bun run build- builds successfully -
Verify
postgresai checkup --helpshows correct titles from dictionary
Closes #97 (closed)