buddy-builder 1.4.1

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.
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; img-src 'self' data:">
6
+ <title>Buddy Builder</title>
7
+ <link rel="icon" href="../assets/icon-32.png" type="image/png">
8
+ <link rel="stylesheet" href="styles.css">
9
+ </head>
10
+ <body>
11
+ <div id="root"></div>
12
+ <script src="app.js"></script>
13
+ </body>
14
+ </html>
@@ -0,0 +1,257 @@
1
+ /* ═══ Reset + CSS Variables + Global Styles ═══════════════════ */
2
+
3
+ * { margin: 0; padding: 0; box-sizing: border-box; }
4
+
5
+ :root {
6
+ /* ── Backgrounds ── */
7
+ --bg-0: #1a1d21;
8
+ --bg-1: #1a1d21;
9
+ --bg-2: #222529;
10
+ --bg-3: #2c2f33;
11
+ --bg-4: #36393f;
12
+ --bg-sidebar: #19171d;
13
+
14
+ /* ── Borders ── */
15
+ --border-subtle: rgba(255, 255, 255, 0.06);
16
+ --border: rgba(255, 255, 255, 0.08);
17
+ --border-strong: rgba(255, 255, 255, 0.12);
18
+
19
+ /* ── Text ── */
20
+ --text: #d1d2d3;
21
+ --text-secondary: #ababad;
22
+ --text-muted: #72767d;
23
+
24
+ /* ── Accent ── */
25
+ --accent: #1d9bd1;
26
+ --accent-dim: #1a7fae;
27
+ --accent-bg: rgba(29, 155, 209, 0.1);
28
+
29
+ /* ── Status ── */
30
+ --success: #2bac76;
31
+ --error: #e01e5a;
32
+ --warning: #ecb22e;
33
+
34
+ /* ── Message-specific ── */
35
+ --user-bg: rgba(29, 155, 209, 0.06);
36
+ --hover-bg: rgba(255, 255, 255, 0.04);
37
+ --active-bg: rgba(255, 255, 255, 0.06);
38
+
39
+ /* ── Tool entries ── */
40
+ --tool-bg: #222529;
41
+ --tool-border: rgba(255, 255, 255, 0.08);
42
+ --tool-done-border: rgba(43, 172, 118, 0.3);
43
+ --tool-blocked-bg: rgba(224, 30, 90, 0.06);
44
+ --tool-blocked-border: rgba(224, 30, 90, 0.2);
45
+
46
+ /* ── Avatar colors ── */
47
+ --avatar-user: #1d9bd1;
48
+ --avatar-claude: #e01e5a;
49
+ --avatar-system: #72767d;
50
+
51
+ /* ── Fonts ── */
52
+ --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
53
+ --font-mono: "Cascadia Code", "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
54
+
55
+ /* ── Radii ── */
56
+ --radius-sm: 4px;
57
+ --radius: 6px;
58
+ --radius-lg: 8px;
59
+
60
+ /* ── Layout ── */
61
+ --title-bar-height: 40px;
62
+ --sidebar-width: 240px;
63
+ }
64
+
65
+ body {
66
+ font-family: var(--font-sans);
67
+ background: var(--bg-0);
68
+ color: var(--text);
69
+ height: 100vh;
70
+ overflow: hidden;
71
+ font-size: 15px;
72
+ line-height: 1.46667;
73
+ }
74
+
75
+ #root {
76
+ display: flex;
77
+ flex-direction: column;
78
+ height: 100vh;
79
+ overflow: hidden;
80
+ }
81
+
82
+ /* ═══ Global scrollbar ═════════════════════════════════════════ */
83
+
84
+ ::-webkit-scrollbar { width: 8px; }
85
+ ::-webkit-scrollbar-track { background: transparent; }
86
+ ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
87
+ ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }
88
+
89
+ /* ═══ Title bar (drag region) ═════════════════════════════════ */
90
+
91
+ #title-bar {
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: space-between;
95
+ height: var(--title-bar-height);
96
+ padding: 0 0 0 12px;
97
+ background: var(--bg-sidebar);
98
+ border-bottom: 1px solid var(--border);
99
+ -webkit-app-region: drag;
100
+ flex-shrink: 0;
101
+ user-select: none;
102
+ position: relative;
103
+ }
104
+
105
+ #title-bar-left {
106
+ display: flex;
107
+ align-items: center;
108
+ gap: 8px;
109
+ }
110
+
111
+ #title-bar-icon {
112
+ width: 18px;
113
+ height: 18px;
114
+ -webkit-app-region: no-drag;
115
+ }
116
+
117
+ #title-bar-label {
118
+ font-size: 12px;
119
+ font-weight: 600;
120
+ color: var(--text-muted);
121
+ letter-spacing: 0.04em;
122
+ }
123
+
124
+ /* ─── Title bar search (Slack-style centered) ─── */
125
+
126
+ #title-bar-search {
127
+ position: absolute;
128
+ left: 50%;
129
+ transform: translateX(-50%);
130
+ display: flex;
131
+ align-items: center;
132
+ width: min(440px, 40%);
133
+ -webkit-app-region: no-drag;
134
+ }
135
+
136
+ .title-search-icon {
137
+ position: absolute;
138
+ left: 8px;
139
+ color: var(--text-muted);
140
+ pointer-events: none;
141
+ }
142
+
143
+ .title-search-input {
144
+ width: 100%;
145
+ padding: 3px 26px 3px 28px;
146
+ border: 1px solid var(--border);
147
+ border-radius: var(--radius);
148
+ background: var(--bg-2);
149
+ color: var(--text);
150
+ font-size: 12px;
151
+ font-family: inherit;
152
+ outline: none;
153
+ transition: border-color 0.15s, box-shadow 0.15s;
154
+ }
155
+
156
+ .title-search-input:focus {
157
+ border-color: var(--accent);
158
+ box-shadow: 0 0 0 1px var(--accent);
159
+ }
160
+
161
+ .title-search-input::placeholder {
162
+ color: var(--text-muted);
163
+ }
164
+
165
+ .title-search-clear {
166
+ position: absolute;
167
+ right: 4px;
168
+ background: none;
169
+ border: none;
170
+ color: var(--text-muted);
171
+ font-size: 14px;
172
+ cursor: pointer;
173
+ padding: 0 4px;
174
+ line-height: 1;
175
+ }
176
+
177
+ .title-search-clear:hover {
178
+ color: var(--text);
179
+ }
180
+
181
+ /* ═══ App layout (sidebar + main) ═════════════════════════════ */
182
+
183
+ #app-layout {
184
+ display: flex;
185
+ flex: 1;
186
+ min-height: 0;
187
+ }
188
+
189
+ /* ═══ Main area ══════════════════════════════════════════════ */
190
+
191
+ #main-area-wrap {
192
+ flex: 1;
193
+ display: flex;
194
+ flex-direction: column;
195
+ min-width: 0;
196
+ min-height: 0;
197
+ }
198
+
199
+ #main-area {
200
+ flex: 1;
201
+ display: flex;
202
+ flex-direction: column;
203
+ min-width: 0;
204
+ min-height: 0;
205
+ }
206
+
207
+ /* ═══ Window controls (frameless) ═════════════════════════════ */
208
+
209
+ .win-controls {
210
+ display: flex;
211
+ align-items: center;
212
+ -webkit-app-region: no-drag;
213
+ }
214
+
215
+ .win-btn {
216
+ display: flex;
217
+ align-items: center;
218
+ justify-content: center;
219
+ width: 46px;
220
+ height: var(--title-bar-height);
221
+ border: none;
222
+ background: transparent;
223
+ color: var(--text-secondary);
224
+ cursor: pointer;
225
+ transition: background 0.1s, color 0.1s;
226
+ }
227
+
228
+ .win-btn:hover {
229
+ background: var(--hover-bg);
230
+ color: var(--text);
231
+ }
232
+
233
+ .win-close:hover {
234
+ background: var(--error);
235
+ color: #fff;
236
+ }
237
+
238
+ /* ═══ Shared animations ═══════════════════════════════════════ */
239
+
240
+ @keyframes fadeIn {
241
+ from { opacity: 0; transform: translateY(4px); }
242
+ to { opacity: 1; transform: translateY(0); }
243
+ }
244
+
245
+ @keyframes spin {
246
+ to { transform: rotate(360deg); }
247
+ }
248
+
249
+ @keyframes pulse {
250
+ 0%, 100% { opacity: 1; }
251
+ 50% { opacity: 0.4; }
252
+ }
253
+
254
+ @keyframes dropdown-in {
255
+ from { opacity: 0; transform: translateY(-4px); }
256
+ to { opacity: 1; transform: translateY(0); }
257
+ }