@frixaco/hbench 0.1.0
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.
- package/README.md +51 -0
- package/bin/hbench.js +59 -0
- package/bun-env.d.ts +17 -0
- package/lib/.gitkeep +0 -0
- package/package.json +74 -0
- package/server/build.ts +172 -0
- package/server/index.ts +539 -0
- package/server/review.ts +162 -0
- package/server/tsconfig.json +9 -0
- package/tsconfig.base.json +25 -0
- package/tsconfig.json +4 -0
- package/ui/app.tsx +15 -0
- package/ui/components/button.tsx +57 -0
- package/ui/components/cmd-bar.tsx +131 -0
- package/ui/components/diff-view.tsx +51 -0
- package/ui/components/input.tsx +18 -0
- package/ui/components/review-sheet.tsx +261 -0
- package/ui/components/review-view.tsx +40 -0
- package/ui/components/select.tsx +199 -0
- package/ui/components/sheet.tsx +131 -0
- package/ui/components/sonner.tsx +41 -0
- package/ui/components/tui.tsx +313 -0
- package/ui/ghostty-web.tsx +138 -0
- package/ui/index.html +13 -0
- package/ui/index.tsx +20 -0
- package/ui/lib/agent-patterns.ts +127 -0
- package/ui/lib/diff-client.ts +38 -0
- package/ui/lib/models.json +8 -0
- package/ui/lib/reviewer.ts +82 -0
- package/ui/lib/store.ts +90 -0
- package/ui/lib/utils.ts +7 -0
- package/ui/lib/websocket.tsx +144 -0
- package/ui/styles.css +89 -0
- package/ui/tsconfig.json +8 -0
package/ui/styles.css
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "streamdown/styles.css";
|
|
4
|
+
|
|
5
|
+
@source "../node_modules/streamdown/dist/*.js";
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--background: oklch(0.145 0 0);
|
|
9
|
+
--foreground: oklch(0.985 0 0);
|
|
10
|
+
--card: oklch(0.205 0 0);
|
|
11
|
+
--card-foreground: oklch(0.985 0 0);
|
|
12
|
+
--popover: oklch(0.205 0 0);
|
|
13
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
14
|
+
--primary: oklch(0.7 0.15 162);
|
|
15
|
+
--primary-foreground: oklch(0.26 0.05 173);
|
|
16
|
+
--secondary: oklch(0.274 0.006 286.033);
|
|
17
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
18
|
+
--muted: oklch(0.269 0 0);
|
|
19
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
20
|
+
--accent: oklch(0.371 0 0);
|
|
21
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
22
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
23
|
+
--border: oklch(1 0 0 / 10%);
|
|
24
|
+
--input: oklch(1 0 0 / 15%);
|
|
25
|
+
--ring: oklch(0.556 0 0);
|
|
26
|
+
--chart-1: oklch(0.85 0.13 165);
|
|
27
|
+
--chart-2: oklch(0.77 0.15 163);
|
|
28
|
+
--chart-3: oklch(0.7 0.15 162);
|
|
29
|
+
--chart-4: oklch(0.6 0.13 163);
|
|
30
|
+
--chart-5: oklch(0.51 0.1 166);
|
|
31
|
+
--sidebar: oklch(0.205 0 0);
|
|
32
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
33
|
+
--sidebar-primary: oklch(0.77 0.15 163);
|
|
34
|
+
--sidebar-primary-foreground: oklch(0.26 0.05 173);
|
|
35
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
36
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
37
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
38
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@theme inline {
|
|
42
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
43
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
44
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
45
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
46
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
47
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
48
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
49
|
+
--color-sidebar: var(--sidebar);
|
|
50
|
+
--color-chart-5: var(--chart-5);
|
|
51
|
+
--color-chart-4: var(--chart-4);
|
|
52
|
+
--color-chart-3: var(--chart-3);
|
|
53
|
+
--color-chart-2: var(--chart-2);
|
|
54
|
+
--color-chart-1: var(--chart-1);
|
|
55
|
+
--color-ring: var(--ring);
|
|
56
|
+
--color-input: var(--input);
|
|
57
|
+
--color-border: var(--border);
|
|
58
|
+
--color-destructive: var(--destructive);
|
|
59
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
60
|
+
--color-accent: var(--accent);
|
|
61
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
62
|
+
--color-muted: var(--muted);
|
|
63
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
64
|
+
--color-secondary: var(--secondary);
|
|
65
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
66
|
+
--color-primary: var(--primary);
|
|
67
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
68
|
+
--color-popover: var(--popover);
|
|
69
|
+
--color-card-foreground: var(--card-foreground);
|
|
70
|
+
--color-card: var(--card);
|
|
71
|
+
--color-foreground: var(--foreground);
|
|
72
|
+
--color-background: var(--background);
|
|
73
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
74
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
75
|
+
--radius-lg: var(--radius);
|
|
76
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
77
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
78
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
79
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@layer base {
|
|
83
|
+
* {
|
|
84
|
+
@apply border-border outline-ring/50 min-w-0;
|
|
85
|
+
}
|
|
86
|
+
body {
|
|
87
|
+
@apply bg-background text-foreground;
|
|
88
|
+
}
|
|
89
|
+
}
|
package/ui/tsconfig.json
ADDED