Summary
hunkdiff@0.14.0-beta.0 documents that custom_theme.base can inherit from catppuccin-latte or catppuccin-mocha, but config validation rejects both ids.
Repro
Install and run the beta from npm:
npm install hunkdiff@0.14.0-beta.0
./node_modules/.bin/hunk --version
# 0.14.0-beta.0
Create ~/.config/hunk/config.toml:
theme = "custom"
[custom_theme]
base = "catppuccin-mocha"
label = "Custom Catppuccin"
accent = "#ff00aa"
Run any real review command, e.g.:
hunk diff before.ts after.ts --mode split
Actual
Hunk exits before rendering:
hunk: Expected custom_theme.base to be one of: graphite, midnight, paper, ember.
Expected
catppuccin-latte and catppuccin-mocha should be accepted as custom theme bases, matching the README example:
base = "graphite" # graphite, midnight, paper, ember, catppuccin-latte, catppuccin-mocha
Likely fix
The rendering side already appears able to inherit from any entry in THEMES via builtInThemeById(customTheme.base). This may just need the config validator's built-in base id list expanded to include catppuccin-latte and catppuccin-mocha, plus tests/error text updates.
Summary
hunkdiff@0.14.0-beta.0documents thatcustom_theme.basecan inherit fromcatppuccin-latteorcatppuccin-mocha, but config validation rejects both ids.Repro
Install and run the beta from npm:
npm install hunkdiff@0.14.0-beta.0 ./node_modules/.bin/hunk --version # 0.14.0-beta.0Create
~/.config/hunk/config.toml:Run any real review command, e.g.:
Actual
Hunk exits before rendering:
Expected
catppuccin-latteandcatppuccin-mochashould be accepted as custom theme bases, matching the README example:Likely fix
The rendering side already appears able to inherit from any entry in
THEMESviabuiltInThemeById(customTheme.base). This may just need the config validator's built-in base id list expanded to includecatppuccin-latteandcatppuccin-mocha, plus tests/error text updates.