feat(cli): embed checkup dictionary from API at build time

Summary

  • Replace hardcoded CHECK_INFO with 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-ui implementation

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 for CHECK_INFO
  • Update package.json - add embed-checkup-dictionary to 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 --help shows correct titles from dictionary

Closes #97 (closed)

🤖 Generated with Claude Code

Merge request reports

Loading