@brimveyn/aimux-config 0.5.3 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/package.json +1 -1
  2. package/src/actions.ts +58 -0
  3. package/src/defaults.ts +3 -0
  4. package/src/index.ts +21 -31
  5. package/src/resolver.ts +1 -1
  6. package/src/tui/index.ts +5 -0
  7. package/src/tui/registry.ts +95 -0
  8. package/src/tui/resolve.ts +156 -0
  9. package/src/tui/shiki.ts +149 -0
  10. package/src/tui/themes/aimux.json +110 -0
  11. package/src/tui/themes/aura.json +69 -0
  12. package/src/tui/themes/ayu.json +80 -0
  13. package/src/tui/themes/carbonfox.json +248 -0
  14. package/src/tui/themes/catppuccin-frappe.json +230 -0
  15. package/src/tui/themes/catppuccin-macchiato.json +230 -0
  16. package/src/tui/themes/catppuccin.json +112 -0
  17. package/src/tui/themes/cobalt2.json +225 -0
  18. package/src/tui/themes/cursor.json +249 -0
  19. package/src/tui/themes/dracula.json +219 -0
  20. package/src/tui/themes/everforest.json +241 -0
  21. package/src/tui/themes/flexoki.json +237 -0
  22. package/src/tui/themes/github.json +233 -0
  23. package/src/tui/themes/gruvbox.json +242 -0
  24. package/src/tui/themes/kanagawa.json +77 -0
  25. package/src/tui/themes/lucent-orng.json +234 -0
  26. package/src/tui/themes/material.json +235 -0
  27. package/src/tui/themes/matrix.json +77 -0
  28. package/src/tui/themes/mercury.json +252 -0
  29. package/src/tui/themes/monokai.json +221 -0
  30. package/src/tui/themes/nightowl.json +221 -0
  31. package/src/tui/themes/nord.json +223 -0
  32. package/src/tui/themes/one-dark.json +84 -0
  33. package/src/tui/themes/opencode.json +245 -0
  34. package/src/tui/themes/orng.json +249 -0
  35. package/src/tui/themes/osaka-jade.json +93 -0
  36. package/src/tui/themes/palenight.json +222 -0
  37. package/src/tui/themes/rosepine.json +234 -0
  38. package/src/tui/themes/solarized.json +223 -0
  39. package/src/tui/themes/synthwave84.json +226 -0
  40. package/src/tui/themes/tokyonight.json +243 -0
  41. package/src/tui/themes/vercel.json +245 -0
  42. package/src/tui/themes/vesper.json +218 -0
  43. package/src/tui/themes/zenburn.json +223 -0
  44. package/src/tui/tokens.ts +111 -0
  45. package/src/tui/types.ts +30 -0
  46. package/src/types.ts +9 -35
  47. package/src/house-themes.ts +0 -55
  48. package/src/neutral-scale.ts +0 -75
  49. package/src/oklch.ts +0 -164
  50. package/src/palette-to-shiki.ts +0 -134
  51. package/src/palette-utils.ts +0 -130
  52. package/src/themes/opencode.ts +0 -1460
  53. package/src/themes.ts +0 -30
package/src/themes.ts DELETED
@@ -1,30 +0,0 @@
1
- import type { AimuxTheme, ThemeId } from './types'
2
-
3
- import { HOUSE_THEME_IDS, HOUSE_THEMES } from './house-themes'
4
- import { OPENCODE_THEME_IDS, OPENCODE_THEMES } from './themes/opencode'
5
-
6
- export const THEMES: Record<string, AimuxTheme> = { ...HOUSE_THEMES, ...OPENCODE_THEMES }
7
- export const THEME_IDS: ThemeId[] = [...HOUSE_THEME_IDS, ...OPENCODE_THEME_IDS]
8
-
9
- const DEFAULT_THEME_ID: ThemeId = 'aimux-dark'
10
-
11
- const LEGACY_MODE_HINTS: Record<string, ThemeId> = {
12
- 'aimux': 'aimux-dark',
13
- 'aimux-dark': 'aimux-dark',
14
- 'aimux-light': 'aimux-light',
15
- }
16
-
17
- /**
18
- * Migrate a legacy persisted theme id (anything from the old wide registry)
19
- * to the new light/dark identifier. Anything we don't recognize lands on the
20
- * dark default — modes are the only knob now.
21
- */
22
- export function migrateThemeId(id: string | undefined): ThemeId {
23
- if (id === undefined) return DEFAULT_THEME_ID
24
- if (id in THEMES) return id as ThemeId
25
- return LEGACY_MODE_HINTS[id] ?? DEFAULT_THEME_ID
26
- }
27
-
28
- export function isKnownThemeId(id: string): id is ThemeId {
29
- return id in THEMES
30
- }