@towles/tool 0.0.106 → 0.0.108

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 (76) hide show
  1. package/README.md +7 -1
  2. package/package.json +2 -1
  3. package/plugins/tt-agentboard/README.md +160 -0
  4. package/plugins/tt-agentboard/apps/server/package.json +20 -0
  5. package/plugins/tt-agentboard/apps/server/src/main.ts +60 -0
  6. package/plugins/tt-agentboard/apps/tui/build.ts +11 -0
  7. package/plugins/tt-agentboard/apps/tui/bunfig.toml +1 -0
  8. package/plugins/tt-agentboard/apps/tui/package.json +23 -0
  9. package/plugins/tt-agentboard/apps/tui/scripts/sessionizer.sh +36 -0
  10. package/plugins/tt-agentboard/apps/tui/src/components/DetailPanel.tsx +350 -0
  11. package/plugins/tt-agentboard/apps/tui/src/components/DiffStats.tsx +33 -0
  12. package/plugins/tt-agentboard/apps/tui/src/components/SessionCard.tsx +177 -0
  13. package/plugins/tt-agentboard/apps/tui/src/components/StatusBar.tsx +49 -0
  14. package/plugins/tt-agentboard/apps/tui/src/constants.ts +46 -0
  15. package/plugins/tt-agentboard/apps/tui/src/detail-panel-height.ts +21 -0
  16. package/plugins/tt-agentboard/apps/tui/src/index.tsx +880 -0
  17. package/plugins/tt-agentboard/apps/tui/src/mux-context.ts +61 -0
  18. package/plugins/tt-agentboard/apps/tui/tsconfig.json +15 -0
  19. package/plugins/tt-agentboard/bun.lock +444 -0
  20. package/plugins/tt-agentboard/package.json +26 -0
  21. package/plugins/tt-agentboard/packages/mux-tmux/package.json +14 -0
  22. package/plugins/tt-agentboard/packages/mux-tmux/src/client.ts +550 -0
  23. package/plugins/tt-agentboard/packages/mux-tmux/src/index.ts +18 -0
  24. package/plugins/tt-agentboard/packages/mux-tmux/src/provider.ts +259 -0
  25. package/plugins/tt-agentboard/packages/mux-tmux/tsconfig.json +13 -0
  26. package/plugins/tt-agentboard/packages/runtime/package.json +14 -0
  27. package/plugins/tt-agentboard/packages/runtime/src/agents/tracker.ts +233 -0
  28. package/plugins/tt-agentboard/packages/runtime/src/agents/watchers/amp.ts +316 -0
  29. package/plugins/tt-agentboard/packages/runtime/src/agents/watchers/claude-code.ts +374 -0
  30. package/plugins/tt-agentboard/packages/runtime/src/agents/watchers/codex.ts +364 -0
  31. package/plugins/tt-agentboard/packages/runtime/src/agents/watchers/opencode.ts +249 -0
  32. package/plugins/tt-agentboard/packages/runtime/src/config.ts +70 -0
  33. package/plugins/tt-agentboard/packages/runtime/src/contracts/agent-watcher.ts +38 -0
  34. package/plugins/tt-agentboard/packages/runtime/src/contracts/agent.ts +16 -0
  35. package/plugins/tt-agentboard/packages/runtime/src/contracts/index.ts +3 -0
  36. package/plugins/tt-agentboard/packages/runtime/src/contracts/mux.ts +148 -0
  37. package/plugins/tt-agentboard/packages/runtime/src/debug.ts +19 -0
  38. package/plugins/tt-agentboard/packages/runtime/src/index.ts +69 -0
  39. package/plugins/tt-agentboard/packages/runtime/src/mux/detect.ts +20 -0
  40. package/plugins/tt-agentboard/packages/runtime/src/mux/registry.ts +45 -0
  41. package/plugins/tt-agentboard/packages/runtime/src/plugins/loader.ts +152 -0
  42. package/plugins/tt-agentboard/packages/runtime/src/server/context.ts +112 -0
  43. package/plugins/tt-agentboard/packages/runtime/src/server/git-info.ts +164 -0
  44. package/plugins/tt-agentboard/packages/runtime/src/server/index.ts +1753 -0
  45. package/plugins/tt-agentboard/packages/runtime/src/server/launcher.ts +71 -0
  46. package/plugins/tt-agentboard/packages/runtime/src/server/metadata-store.ts +86 -0
  47. package/plugins/tt-agentboard/packages/runtime/src/server/pane-scanner.ts +327 -0
  48. package/plugins/tt-agentboard/packages/runtime/src/server/port-scanner.ts +155 -0
  49. package/plugins/tt-agentboard/packages/runtime/src/server/session-order.ts +127 -0
  50. package/plugins/tt-agentboard/packages/runtime/src/server/sidebar-manager.ts +232 -0
  51. package/plugins/tt-agentboard/packages/runtime/src/server/sidebar-width-sync.ts +66 -0
  52. package/plugins/tt-agentboard/packages/runtime/src/shared.ts +179 -0
  53. package/plugins/tt-agentboard/packages/runtime/src/themes.ts +750 -0
  54. package/plugins/tt-agentboard/packages/runtime/test/config.test.ts +83 -0
  55. package/plugins/tt-agentboard/packages/runtime/test/tracker.test.ts +172 -0
  56. package/plugins/tt-agentboard/packages/runtime/tsconfig.json +13 -0
  57. package/plugins/tt-agentboard/tsconfig.json +19 -0
  58. package/plugins/tt-auto-claude/.claude-plugin/plugin.json +8 -0
  59. package/plugins/tt-auto-claude/commands/create-issue.md +20 -0
  60. package/plugins/tt-auto-claude/commands/list.md +21 -0
  61. package/plugins/tt-auto-claude/skills/auto-claude/SKILL.md +71 -0
  62. package/plugins/tt-core/.claude-plugin/plugin.json +8 -0
  63. package/plugins/tt-core/README.md +18 -0
  64. package/plugins/tt-core/commands/improve-architecture.md +66 -0
  65. package/plugins/tt-core/commands/interview-me.md +38 -0
  66. package/plugins/tt-core/commands/prd-to-issues.md +49 -0
  67. package/plugins/tt-core/commands/refine-text.md +30 -0
  68. package/plugins/tt-core/commands/task.md +37 -0
  69. package/plugins/tt-core/commands/tdd.md +69 -0
  70. package/plugins/tt-core/commands/write-prd.md +69 -0
  71. package/plugins/tt-core/promptfooconfig.interview-me.yaml +155 -0
  72. package/plugins/tt-core/promptfooconfig.refine-text.yaml +242 -0
  73. package/plugins/tt-core/promptfooconfig.tdd.yaml +144 -0
  74. package/plugins/tt-core/promptfooconfig.write-prd.yaml +145 -0
  75. package/plugins/tt-core/skills/towles-tool/SKILL.md +35 -0
  76. package/src/commands/agentboard.ts +19 -2
@@ -0,0 +1,750 @@
1
+ import type { AgentStatus } from "./contracts/agent";
2
+
3
+ export interface ThemePalette {
4
+ blue: string;
5
+ lavender: string;
6
+ pink: string;
7
+ mauve: string;
8
+ yellow: string;
9
+ green: string;
10
+ red: string;
11
+ peach: string;
12
+ teal: string;
13
+ sky: string;
14
+ text: string;
15
+ subtext0: string;
16
+ subtext1: string;
17
+ overlay0: string;
18
+ overlay1: string;
19
+ surface0: string;
20
+ surface1: string;
21
+ surface2: string;
22
+ base: string;
23
+ mantle: string;
24
+ crust: string;
25
+ }
26
+
27
+ export interface Theme {
28
+ palette: ThemePalette;
29
+ status: Record<AgentStatus, string>;
30
+ icons: Record<AgentStatus, string>;
31
+ }
32
+
33
+ // --- Builtin themes ---
34
+
35
+ const CATPPUCCIN_MOCHA: Theme = {
36
+ palette: {
37
+ blue: "#89b4fa",
38
+ lavender: "#b4befe",
39
+ pink: "#cba6f7",
40
+ mauve: "#cba6f7",
41
+ yellow: "#f9e2af",
42
+ green: "#a6e3a1",
43
+ red: "#f38ba8",
44
+ peach: "#fab387",
45
+ teal: "#94e2d5",
46
+ sky: "#89dceb",
47
+ text: "#cdd6f4",
48
+ subtext0: "#a6adc8",
49
+ subtext1: "#bac2de",
50
+ overlay0: "#6c7086",
51
+ overlay1: "#7f849c",
52
+ surface0: "#313244",
53
+ surface1: "#45475a",
54
+ surface2: "#585b70",
55
+ base: "#1e1e2e",
56
+ mantle: "#181825",
57
+ crust: "#11111b",
58
+ },
59
+ status: {
60
+ idle: "#585b70",
61
+ running: "#f9e2af",
62
+ done: "#a6e3a1",
63
+ error: "#f38ba8",
64
+ waiting: "#89b4fa",
65
+ interrupted: "#fab387",
66
+ },
67
+ icons: {
68
+ idle: "○",
69
+ running: "●",
70
+ done: "✓",
71
+ error: "✗",
72
+ waiting: "◉",
73
+ interrupted: "⚠",
74
+ },
75
+ };
76
+
77
+ const CATPPUCCIN_LATTE: Theme = {
78
+ palette: {
79
+ blue: "#1e66f5",
80
+ lavender: "#7287fd",
81
+ pink: "#ea76cb",
82
+ mauve: "#8839ef",
83
+ yellow: "#df8e1d",
84
+ green: "#40a02b",
85
+ red: "#d20f39",
86
+ peach: "#fe640b",
87
+ teal: "#179299",
88
+ sky: "#04a5e5",
89
+ text: "#4c4f69",
90
+ subtext0: "#6c6f85",
91
+ subtext1: "#5c5f77",
92
+ overlay0: "#9ca0b0",
93
+ overlay1: "#8c8fa1",
94
+ surface0: "#ccd0da",
95
+ surface1: "#bcc0cc",
96
+ surface2: "#acb0be",
97
+ base: "#eff1f5",
98
+ mantle: "#e6e9ef",
99
+ crust: "#dce0e8",
100
+ },
101
+ status: {
102
+ idle: "#acb0be",
103
+ running: "#df8e1d",
104
+ done: "#40a02b",
105
+ error: "#d20f39",
106
+ waiting: "#1e66f5",
107
+ interrupted: "#fe640b",
108
+ },
109
+ icons: CATPPUCCIN_MOCHA.icons,
110
+ };
111
+
112
+ const TOKYO_NIGHT: Theme = {
113
+ palette: {
114
+ blue: "#7aa2f7",
115
+ lavender: "#bb9af7",
116
+ pink: "#bb9af7",
117
+ mauve: "#bb9af7",
118
+ yellow: "#e0af68",
119
+ green: "#9ece6a",
120
+ red: "#f7768e",
121
+ peach: "#ff9e64",
122
+ teal: "#73daca",
123
+ sky: "#7dcfff",
124
+ text: "#c0caf5",
125
+ subtext0: "#a9b1d6",
126
+ subtext1: "#9aa5ce",
127
+ overlay0: "#565f89",
128
+ overlay1: "#414868",
129
+ surface0: "#24283b",
130
+ surface1: "#292e42",
131
+ surface2: "#343a52",
132
+ base: "#1a1b26",
133
+ mantle: "#16161e",
134
+ crust: "#13131a",
135
+ },
136
+ status: {
137
+ idle: "#343a52",
138
+ running: "#e0af68",
139
+ done: "#9ece6a",
140
+ error: "#f7768e",
141
+ waiting: "#7aa2f7",
142
+ interrupted: "#ff9e64",
143
+ },
144
+ icons: CATPPUCCIN_MOCHA.icons,
145
+ };
146
+
147
+ const GRUVBOX_DARK: Theme = {
148
+ palette: {
149
+ blue: "#83a598",
150
+ lavender: "#d3869b",
151
+ pink: "#d3869b",
152
+ mauve: "#d3869b",
153
+ yellow: "#fabd2f",
154
+ green: "#b8bb26",
155
+ red: "#fb4934",
156
+ peach: "#fe8019",
157
+ teal: "#8ec07c",
158
+ sky: "#83a598",
159
+ text: "#ebdbb2",
160
+ subtext0: "#d5c4a1",
161
+ subtext1: "#bdae93",
162
+ overlay0: "#665c54",
163
+ overlay1: "#7c6f64",
164
+ surface0: "#3c3836",
165
+ surface1: "#504945",
166
+ surface2: "#665c54",
167
+ base: "#282828",
168
+ mantle: "#1d2021",
169
+ crust: "#1b1b1b",
170
+ },
171
+ status: {
172
+ idle: "#665c54",
173
+ running: "#fabd2f",
174
+ done: "#b8bb26",
175
+ error: "#fb4934",
176
+ waiting: "#83a598",
177
+ interrupted: "#fe8019",
178
+ },
179
+ icons: CATPPUCCIN_MOCHA.icons,
180
+ };
181
+
182
+ const NORD: Theme = {
183
+ palette: {
184
+ blue: "#81a1c1",
185
+ lavender: "#b48ead",
186
+ pink: "#b48ead",
187
+ mauve: "#b48ead",
188
+ yellow: "#ebcb8b",
189
+ green: "#a3be8c",
190
+ red: "#bf616a",
191
+ peach: "#d08770",
192
+ teal: "#8fbcbb",
193
+ sky: "#88c0d0",
194
+ text: "#eceff4",
195
+ subtext0: "#d8dee9",
196
+ subtext1: "#e5e9f0",
197
+ overlay0: "#4c566a",
198
+ overlay1: "#434c5e",
199
+ surface0: "#3b4252",
200
+ surface1: "#434c5e",
201
+ surface2: "#4c566a",
202
+ base: "#2e3440",
203
+ mantle: "#272c36",
204
+ crust: "#242933",
205
+ },
206
+ status: {
207
+ idle: "#4c566a",
208
+ running: "#ebcb8b",
209
+ done: "#a3be8c",
210
+ error: "#bf616a",
211
+ waiting: "#81a1c1",
212
+ interrupted: "#d08770",
213
+ },
214
+ icons: CATPPUCCIN_MOCHA.icons,
215
+ };
216
+
217
+ const DRACULA: Theme = {
218
+ palette: {
219
+ blue: "#8be9fd",
220
+ lavender: "#bd93f9",
221
+ pink: "#ff79c6",
222
+ mauve: "#bd93f9",
223
+ yellow: "#f1fa8c",
224
+ green: "#50fa7b",
225
+ red: "#ff5555",
226
+ peach: "#ffb86c",
227
+ teal: "#8be9fd",
228
+ sky: "#8be9fd",
229
+ text: "#f8f8f2",
230
+ subtext0: "#bfbfbf",
231
+ subtext1: "#6272a4",
232
+ overlay0: "#6272a4",
233
+ overlay1: "#565761",
234
+ surface0: "#44475a",
235
+ surface1: "#44475a",
236
+ surface2: "#6272a4",
237
+ base: "#282a36",
238
+ mantle: "#21222c",
239
+ crust: "#191a21",
240
+ },
241
+ status: {
242
+ idle: "#6272a4",
243
+ running: "#f1fa8c",
244
+ done: "#50fa7b",
245
+ error: "#ff5555",
246
+ waiting: "#8be9fd",
247
+ interrupted: "#ffb86c",
248
+ },
249
+ icons: CATPPUCCIN_MOCHA.icons,
250
+ };
251
+
252
+ const CATPPUCCIN_FRAPPE: Theme = {
253
+ palette: {
254
+ blue: "#8da4e2",
255
+ lavender: "#babbf1",
256
+ pink: "#f4b8e4",
257
+ mauve: "#ca9ee6",
258
+ yellow: "#e5c890",
259
+ green: "#a6d189",
260
+ red: "#e78284",
261
+ peach: "#ef9f76",
262
+ teal: "#81c8be",
263
+ sky: "#99d1db",
264
+ text: "#c6d0f5",
265
+ subtext0: "#a5adce",
266
+ subtext1: "#b5bfe2",
267
+ overlay0: "#626880",
268
+ overlay1: "#51576d",
269
+ surface0: "#414559",
270
+ surface1: "#51576d",
271
+ surface2: "#626880",
272
+ base: "#303446",
273
+ mantle: "#292c3c",
274
+ crust: "#232634",
275
+ },
276
+ status: {
277
+ idle: "#626880",
278
+ running: "#e5c890",
279
+ done: "#a6d189",
280
+ error: "#e78284",
281
+ waiting: "#8da4e2",
282
+ interrupted: "#ef9f76",
283
+ },
284
+ icons: CATPPUCCIN_MOCHA.icons,
285
+ };
286
+
287
+ const CATPPUCCIN_MACCHIATO: Theme = {
288
+ palette: {
289
+ blue: "#8aadf4",
290
+ lavender: "#b7bdf8",
291
+ pink: "#f5bde6",
292
+ mauve: "#c6a0f6",
293
+ yellow: "#eed49f",
294
+ green: "#a6da95",
295
+ red: "#ed8796",
296
+ peach: "#f5a97f",
297
+ teal: "#8bd5ca",
298
+ sky: "#91d7e3",
299
+ text: "#cad3f5",
300
+ subtext0: "#a5adcb",
301
+ subtext1: "#b8c0e0",
302
+ overlay0: "#5b6078",
303
+ overlay1: "#494d64",
304
+ surface0: "#363a4f",
305
+ surface1: "#494d64",
306
+ surface2: "#5b6078",
307
+ base: "#24273a",
308
+ mantle: "#1e2030",
309
+ crust: "#181926",
310
+ },
311
+ status: {
312
+ idle: "#5b6078",
313
+ running: "#eed49f",
314
+ done: "#a6da95",
315
+ error: "#ed8796",
316
+ waiting: "#8aadf4",
317
+ interrupted: "#f5a97f",
318
+ },
319
+ icons: CATPPUCCIN_MOCHA.icons,
320
+ };
321
+
322
+ const GITHUB_DARK: Theme = {
323
+ palette: {
324
+ blue: "#58a6ff",
325
+ lavender: "#bc8cff",
326
+ pink: "#bc8cff",
327
+ mauve: "#bc8cff",
328
+ yellow: "#e3b341",
329
+ green: "#3fb950",
330
+ red: "#f85149",
331
+ peach: "#d29922",
332
+ teal: "#39c5cf",
333
+ sky: "#58a6ff",
334
+ text: "#c9d1d9",
335
+ subtext0: "#8b949e",
336
+ subtext1: "#b1bac4",
337
+ overlay0: "#484f58",
338
+ overlay1: "#30363d",
339
+ surface0: "#161b22",
340
+ surface1: "#21262d",
341
+ surface2: "#30363d",
342
+ base: "#0d1117",
343
+ mantle: "#010409",
344
+ crust: "#010409",
345
+ },
346
+ status: {
347
+ idle: "#484f58",
348
+ running: "#e3b341",
349
+ done: "#3fb950",
350
+ error: "#f85149",
351
+ waiting: "#58a6ff",
352
+ interrupted: "#d29922",
353
+ },
354
+ icons: CATPPUCCIN_MOCHA.icons,
355
+ };
356
+
357
+ const ONE_DARK: Theme = {
358
+ palette: {
359
+ blue: "#61afef",
360
+ lavender: "#c678dd",
361
+ pink: "#c678dd",
362
+ mauve: "#c678dd",
363
+ yellow: "#e5c07b",
364
+ green: "#98c379",
365
+ red: "#e06c75",
366
+ peach: "#d19a66",
367
+ teal: "#56b6c2",
368
+ sky: "#61afef",
369
+ text: "#abb2bf",
370
+ subtext0: "#828997",
371
+ subtext1: "#5c6370",
372
+ overlay0: "#5c6370",
373
+ overlay1: "#4b5263",
374
+ surface0: "#3e4451",
375
+ surface1: "#4b5263",
376
+ surface2: "#5c6370",
377
+ base: "#282c34",
378
+ mantle: "#21252b",
379
+ crust: "#1b1f27",
380
+ },
381
+ status: {
382
+ idle: "#5c6370",
383
+ running: "#e5c07b",
384
+ done: "#98c379",
385
+ error: "#e06c75",
386
+ waiting: "#61afef",
387
+ interrupted: "#d19a66",
388
+ },
389
+ icons: CATPPUCCIN_MOCHA.icons,
390
+ };
391
+
392
+ const KANAGAWA: Theme = {
393
+ palette: {
394
+ blue: "#7E9CD8",
395
+ lavender: "#957FB8",
396
+ pink: "#D27E99",
397
+ mauve: "#957FB8",
398
+ yellow: "#D7A657",
399
+ green: "#98BB6C",
400
+ red: "#E82424",
401
+ peach: "#FFA066",
402
+ teal: "#7AA89F",
403
+ sky: "#7FB4CA",
404
+ text: "#DCD7BA",
405
+ subtext0: "#C8C093",
406
+ subtext1: "#727169",
407
+ overlay0: "#727169",
408
+ overlay1: "#54546D",
409
+ surface0: "#363646",
410
+ surface1: "#54546D",
411
+ surface2: "#727169",
412
+ base: "#1F1F28",
413
+ mantle: "#16161D",
414
+ crust: "#131320",
415
+ },
416
+ status: {
417
+ idle: "#54546D",
418
+ running: "#D7A657",
419
+ done: "#98BB6C",
420
+ error: "#E82424",
421
+ waiting: "#7E9CD8",
422
+ interrupted: "#FFA066",
423
+ },
424
+ icons: CATPPUCCIN_MOCHA.icons,
425
+ };
426
+
427
+ const EVERFOREST: Theme = {
428
+ palette: {
429
+ blue: "#7fbbb3",
430
+ lavender: "#d699b6",
431
+ pink: "#d699b6",
432
+ mauve: "#d699b6",
433
+ yellow: "#dbbc7f",
434
+ green: "#a7c080",
435
+ red: "#e67e80",
436
+ peach: "#e69875",
437
+ teal: "#83c092",
438
+ sky: "#7fbbb3",
439
+ text: "#d3c6aa",
440
+ subtext0: "#9da9a0",
441
+ subtext1: "#7a8478",
442
+ overlay0: "#7a8478",
443
+ overlay1: "#859289",
444
+ surface0: "#343f44",
445
+ surface1: "#3d484d",
446
+ surface2: "#475258",
447
+ base: "#2d353b",
448
+ mantle: "#272e33",
449
+ crust: "#232a2e",
450
+ },
451
+ status: {
452
+ idle: "#7a8478",
453
+ running: "#dbbc7f",
454
+ done: "#a7c080",
455
+ error: "#e67e80",
456
+ waiting: "#7fbbb3",
457
+ interrupted: "#e69875",
458
+ },
459
+ icons: CATPPUCCIN_MOCHA.icons,
460
+ };
461
+
462
+ const MATERIAL: Theme = {
463
+ palette: {
464
+ blue: "#82aaff",
465
+ lavender: "#c792ea",
466
+ pink: "#c792ea",
467
+ mauve: "#c792ea",
468
+ yellow: "#ffcb6b",
469
+ green: "#c3e88d",
470
+ red: "#f07178",
471
+ peach: "#f78c6c",
472
+ teal: "#89ddff",
473
+ sky: "#82aaff",
474
+ text: "#eeffff",
475
+ subtext0: "#b0bec5",
476
+ subtext1: "#546e7a",
477
+ overlay0: "#546e7a",
478
+ overlay1: "#37474f",
479
+ surface0: "#37474f",
480
+ surface1: "#455a64",
481
+ surface2: "#546e7a",
482
+ base: "#263238",
483
+ mantle: "#1e272c",
484
+ crust: "#192227",
485
+ },
486
+ status: {
487
+ idle: "#546e7a",
488
+ running: "#ffcb6b",
489
+ done: "#c3e88d",
490
+ error: "#f07178",
491
+ waiting: "#82aaff",
492
+ interrupted: "#f78c6c",
493
+ },
494
+ icons: CATPPUCCIN_MOCHA.icons,
495
+ };
496
+
497
+ const COBALT2: Theme = {
498
+ palette: {
499
+ blue: "#0088ff",
500
+ lavender: "#9a5feb",
501
+ pink: "#ff9d00",
502
+ mauve: "#9a5feb",
503
+ yellow: "#ffc600",
504
+ green: "#9eff80",
505
+ red: "#ff0088",
506
+ peach: "#ff628c",
507
+ teal: "#2affdf",
508
+ sky: "#0088ff",
509
+ text: "#ffffff",
510
+ subtext0: "#adb7c9",
511
+ subtext1: "#6688aa",
512
+ overlay0: "#2d5a7b",
513
+ overlay1: "#1f4662",
514
+ surface0: "#1f4662",
515
+ surface1: "#234b6b",
516
+ surface2: "#2d5a7b",
517
+ base: "#193549",
518
+ mantle: "#122738",
519
+ crust: "#0e1e2e",
520
+ },
521
+ status: {
522
+ idle: "#2d5a7b",
523
+ running: "#ffc600",
524
+ done: "#9eff80",
525
+ error: "#ff0088",
526
+ waiting: "#0088ff",
527
+ interrupted: "#ff628c",
528
+ },
529
+ icons: CATPPUCCIN_MOCHA.icons,
530
+ };
531
+
532
+ const FLEXOKI: Theme = {
533
+ palette: {
534
+ blue: "#4385BE",
535
+ lavender: "#8B7EC8",
536
+ pink: "#CE5D97",
537
+ mauve: "#8B7EC8",
538
+ yellow: "#D0A215",
539
+ green: "#879A39",
540
+ red: "#D14D41",
541
+ peach: "#DA702C",
542
+ teal: "#3AA99F",
543
+ sky: "#4385BE",
544
+ text: "#CECDC3",
545
+ subtext0: "#B7B5AC",
546
+ subtext1: "#878580",
547
+ overlay0: "#6F6E69",
548
+ overlay1: "#575653",
549
+ surface0: "#282726",
550
+ surface1: "#343331",
551
+ surface2: "#403E3C",
552
+ base: "#100F0F",
553
+ mantle: "#0D0D0C",
554
+ crust: "#0A0A09",
555
+ },
556
+ status: {
557
+ idle: "#575653",
558
+ running: "#D0A215",
559
+ done: "#879A39",
560
+ error: "#D14D41",
561
+ waiting: "#4385BE",
562
+ interrupted: "#DA702C",
563
+ },
564
+ icons: CATPPUCCIN_MOCHA.icons,
565
+ };
566
+
567
+ const AYU: Theme = {
568
+ palette: {
569
+ blue: "#59C2FF",
570
+ lavender: "#D2A6FF",
571
+ pink: "#F07178",
572
+ mauve: "#D2A6FF",
573
+ yellow: "#E6B450",
574
+ green: "#7FD962",
575
+ red: "#D95757",
576
+ peach: "#FF8F40",
577
+ teal: "#95E6CB",
578
+ sky: "#39BAE6",
579
+ text: "#BFBDB6",
580
+ subtext0: "#ACB6BF",
581
+ subtext1: "#565B66",
582
+ overlay0: "#565B66",
583
+ overlay1: "#6C7380",
584
+ surface0: "#0D1017",
585
+ surface1: "#0F131A",
586
+ surface2: "#11151C",
587
+ base: "#0B0E14",
588
+ mantle: "#090C10",
589
+ crust: "#070A0E",
590
+ },
591
+ status: {
592
+ idle: "#565B66",
593
+ running: "#E6B450",
594
+ done: "#7FD962",
595
+ error: "#D95757",
596
+ waiting: "#59C2FF",
597
+ interrupted: "#FF8F40",
598
+ },
599
+ icons: CATPPUCCIN_MOCHA.icons,
600
+ };
601
+
602
+ const AURA: Theme = {
603
+ palette: {
604
+ blue: "#82e2ff",
605
+ lavender: "#a277ff",
606
+ pink: "#f694ff",
607
+ mauve: "#a277ff",
608
+ yellow: "#ffca85",
609
+ green: "#9dff65",
610
+ red: "#ff6767",
611
+ peach: "#ffca85",
612
+ teal: "#61ffca",
613
+ sky: "#82e2ff",
614
+ text: "#edecee",
615
+ subtext0: "#bdbdbd",
616
+ subtext1: "#6d6d6d",
617
+ overlay0: "#6d6d6d",
618
+ overlay1: "#2d2d2d",
619
+ surface0: "#1a1a24",
620
+ surface1: "#1f1f2b",
621
+ surface2: "#2d2d2d",
622
+ base: "#15141b",
623
+ mantle: "#110f17",
624
+ crust: "#0f0f0f",
625
+ },
626
+ status: {
627
+ idle: "#6d6d6d",
628
+ running: "#ffca85",
629
+ done: "#61ffca",
630
+ error: "#ff6767",
631
+ waiting: "#a277ff",
632
+ interrupted: "#ffca85",
633
+ },
634
+ icons: CATPPUCCIN_MOCHA.icons,
635
+ };
636
+
637
+ const MATRIX: Theme = {
638
+ palette: {
639
+ blue: "#30b3ff",
640
+ lavender: "#c770ff",
641
+ pink: "#c770ff",
642
+ mauve: "#c770ff",
643
+ yellow: "#e6ff57",
644
+ green: "#62ff94",
645
+ red: "#ff4b4b",
646
+ peach: "#ffa83d",
647
+ teal: "#24f6d9",
648
+ sky: "#30b3ff",
649
+ text: "#62ff94",
650
+ subtext0: "#8ca391",
651
+ subtext1: "#4a6b55",
652
+ overlay0: "#2e4a37",
653
+ overlay1: "#1e2a1b",
654
+ surface0: "#141c12",
655
+ surface1: "#182218",
656
+ surface2: "#1e2a1b",
657
+ base: "#0a0e0a",
658
+ mantle: "#070a07",
659
+ crust: "#050705",
660
+ },
661
+ status: {
662
+ idle: "#2e4a37",
663
+ running: "#e6ff57",
664
+ done: "#62ff94",
665
+ error: "#ff4b4b",
666
+ waiting: "#30b3ff",
667
+ interrupted: "#ffa83d",
668
+ },
669
+ icons: CATPPUCCIN_MOCHA.icons,
670
+ };
671
+
672
+ const TRANSPARENT: Theme = {
673
+ palette: {
674
+ blue: "#89b4fa",
675
+ lavender: "#b4befe",
676
+ pink: "#cba6f7",
677
+ mauve: "#cba6f7",
678
+ yellow: "#f9e2af",
679
+ green: "#a6e3a1",
680
+ red: "#f38ba8",
681
+ peach: "#fab387",
682
+ teal: "#94e2d5",
683
+ sky: "#89dceb",
684
+ text: "#cdd6f4",
685
+ subtext0: "#a6adc8",
686
+ subtext1: "#bac2de",
687
+ overlay0: "#6c7086",
688
+ overlay1: "#7f849c",
689
+ surface0: "#313244",
690
+ surface1: "#45475a",
691
+ surface2: "#585b70",
692
+ base: "transparent",
693
+ mantle: "transparent",
694
+ crust: "transparent",
695
+ },
696
+ status: CATPPUCCIN_MOCHA.status,
697
+ icons: CATPPUCCIN_MOCHA.icons,
698
+ };
699
+
700
+ export const BUILTIN_THEMES: Record<string, Theme> = {
701
+ "catppuccin-mocha": CATPPUCCIN_MOCHA,
702
+ "catppuccin-latte": CATPPUCCIN_LATTE,
703
+ "catppuccin-frappe": CATPPUCCIN_FRAPPE,
704
+ "catppuccin-macchiato": CATPPUCCIN_MACCHIATO,
705
+ "tokyo-night": TOKYO_NIGHT,
706
+ "gruvbox-dark": GRUVBOX_DARK,
707
+ nord: NORD,
708
+ dracula: DRACULA,
709
+ "github-dark": GITHUB_DARK,
710
+ "one-dark": ONE_DARK,
711
+ kanagawa: KANAGAWA,
712
+ everforest: EVERFOREST,
713
+ material: MATERIAL,
714
+ cobalt2: COBALT2,
715
+ flexoki: FLEXOKI,
716
+ ayu: AYU,
717
+ aura: AURA,
718
+ matrix: MATRIX,
719
+ transparent: TRANSPARENT,
720
+ };
721
+
722
+ export const DEFAULT_THEME = "catppuccin-mocha";
723
+
724
+ /** Partial theme for user overrides — any field can be omitted */
725
+ export type PartialTheme = {
726
+ palette?: Partial<ThemePalette>;
727
+ status?: Partial<Record<AgentStatus, string>>;
728
+ icons?: Partial<Record<AgentStatus, string>>;
729
+ };
730
+
731
+ /**
732
+ * Resolve a theme from config.
733
+ * @param themeConfig — string name of builtin, partial inline object, or undefined for default
734
+ */
735
+ export function resolveTheme(themeConfig: string | PartialTheme | undefined): Theme {
736
+ const base = BUILTIN_THEMES[DEFAULT_THEME];
737
+
738
+ if (!themeConfig) return base;
739
+
740
+ if (typeof themeConfig === "string") {
741
+ return BUILTIN_THEMES[themeConfig] ?? base;
742
+ }
743
+
744
+ // Merge partial inline theme over default
745
+ return {
746
+ palette: { ...base.palette, ...themeConfig.palette },
747
+ status: { ...base.status, ...themeConfig.status },
748
+ icons: { ...base.icons, ...themeConfig.icons },
749
+ };
750
+ }