claudeck 1.0.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.
Files changed (157) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +233 -0
  3. package/cli.js +2 -0
  4. package/config/agent-chains.json +16 -0
  5. package/config/agent-dags.json +16 -0
  6. package/config/agents.json +46 -0
  7. package/config/bot-prompt.json +3 -0
  8. package/config/folders.json +66 -0
  9. package/config/prompts.json +92 -0
  10. package/config/repos.json +86 -0
  11. package/config/telegram-config.json +17 -0
  12. package/config/workflows.json +90 -0
  13. package/db.js +1198 -0
  14. package/package.json +55 -0
  15. package/plugins/claude-editor/client.css +171 -0
  16. package/plugins/claude-editor/client.js +183 -0
  17. package/plugins/event-stream/client.css +207 -0
  18. package/plugins/event-stream/client.js +271 -0
  19. package/plugins/linear/client.css +345 -0
  20. package/plugins/linear/client.js +380 -0
  21. package/plugins/linear/config.json +5 -0
  22. package/plugins/linear/server.js +312 -0
  23. package/plugins/repos/client.css +549 -0
  24. package/plugins/repos/client.js +663 -0
  25. package/plugins/repos/server.js +232 -0
  26. package/plugins/sudoku/client.css +196 -0
  27. package/plugins/sudoku/client.js +329 -0
  28. package/plugins/tasks/client.css +414 -0
  29. package/plugins/tasks/client.js +394 -0
  30. package/plugins/tasks/server.js +116 -0
  31. package/plugins/tic-tac-toe/client.css +167 -0
  32. package/plugins/tic-tac-toe/client.js +241 -0
  33. package/public/css/core/components.css +232 -0
  34. package/public/css/core/layout.css +330 -0
  35. package/public/css/core/print.css +18 -0
  36. package/public/css/core/reset.css +36 -0
  37. package/public/css/core/responsive.css +378 -0
  38. package/public/css/core/theme.css +116 -0
  39. package/public/css/core/variables.css +93 -0
  40. package/public/css/features/agent-monitor.css +297 -0
  41. package/public/css/features/agent-sidebar.css +525 -0
  42. package/public/css/features/agents.css +996 -0
  43. package/public/css/features/analytics.css +181 -0
  44. package/public/css/features/background-sessions.css +321 -0
  45. package/public/css/features/cost-dashboard.css +168 -0
  46. package/public/css/features/home.css +313 -0
  47. package/public/css/features/retro-terminal.css +88 -0
  48. package/public/css/features/telegram.css +127 -0
  49. package/public/css/features/tour.css +148 -0
  50. package/public/css/features/voice-input.css +60 -0
  51. package/public/css/features/welcome.css +241 -0
  52. package/public/css/panels/assistant-bot.css +442 -0
  53. package/public/css/panels/dev-docs.css +292 -0
  54. package/public/css/panels/file-explorer.css +322 -0
  55. package/public/css/panels/git-panel.css +221 -0
  56. package/public/css/panels/mcp-manager.css +199 -0
  57. package/public/css/panels/tips-feed.css +353 -0
  58. package/public/css/ui/commands.css +273 -0
  59. package/public/css/ui/context-gauge.css +76 -0
  60. package/public/css/ui/file-picker.css +69 -0
  61. package/public/css/ui/image-attachments.css +106 -0
  62. package/public/css/ui/messages.css +884 -0
  63. package/public/css/ui/modals.css +122 -0
  64. package/public/css/ui/parallel.css +217 -0
  65. package/public/css/ui/permissions.css +110 -0
  66. package/public/css/ui/right-panel.css +481 -0
  67. package/public/css/ui/sessions.css +689 -0
  68. package/public/css/ui/status-bar.css +425 -0
  69. package/public/css/ui/toolbox.css +206 -0
  70. package/public/data/tips.json +218 -0
  71. package/public/icons/favicon.png +0 -0
  72. package/public/icons/icon-192.png +0 -0
  73. package/public/icons/icon-512.png +0 -0
  74. package/public/icons/whaly.png +0 -0
  75. package/public/index.html +1140 -0
  76. package/public/js/core/api.js +591 -0
  77. package/public/js/core/constants.js +3 -0
  78. package/public/js/core/dom.js +270 -0
  79. package/public/js/core/events.js +10 -0
  80. package/public/js/core/plugin-loader.js +153 -0
  81. package/public/js/core/store.js +39 -0
  82. package/public/js/core/utils.js +25 -0
  83. package/public/js/core/ws.js +64 -0
  84. package/public/js/features/agent-monitor.js +222 -0
  85. package/public/js/features/agents.js +1209 -0
  86. package/public/js/features/analytics.js +397 -0
  87. package/public/js/features/attachments.js +251 -0
  88. package/public/js/features/background-sessions.js +475 -0
  89. package/public/js/features/chat.js +589 -0
  90. package/public/js/features/cost-dashboard.js +152 -0
  91. package/public/js/features/dag-editor.js +399 -0
  92. package/public/js/features/easter-egg.js +46 -0
  93. package/public/js/features/home.js +270 -0
  94. package/public/js/features/projects.js +372 -0
  95. package/public/js/features/prompts.js +228 -0
  96. package/public/js/features/sessions.js +332 -0
  97. package/public/js/features/telegram.js +131 -0
  98. package/public/js/features/tour.js +210 -0
  99. package/public/js/features/voice-input.js +185 -0
  100. package/public/js/features/welcome.js +43 -0
  101. package/public/js/features/workflows.js +277 -0
  102. package/public/js/main.js +51 -0
  103. package/public/js/panels/assistant-bot.js +445 -0
  104. package/public/js/panels/dev-docs.js +380 -0
  105. package/public/js/panels/file-explorer.js +486 -0
  106. package/public/js/panels/git-panel.js +285 -0
  107. package/public/js/panels/mcp-manager.js +311 -0
  108. package/public/js/panels/tips-feed.js +303 -0
  109. package/public/js/ui/commands.js +114 -0
  110. package/public/js/ui/context-gauge.js +100 -0
  111. package/public/js/ui/diff.js +124 -0
  112. package/public/js/ui/disabled-tools.js +36 -0
  113. package/public/js/ui/export.js +74 -0
  114. package/public/js/ui/formatting.js +206 -0
  115. package/public/js/ui/header-dropdowns.js +72 -0
  116. package/public/js/ui/input-meta.js +71 -0
  117. package/public/js/ui/max-turns.js +21 -0
  118. package/public/js/ui/messages.js +387 -0
  119. package/public/js/ui/model-selector.js +20 -0
  120. package/public/js/ui/notifications.js +232 -0
  121. package/public/js/ui/parallel.js +176 -0
  122. package/public/js/ui/permissions.js +168 -0
  123. package/public/js/ui/right-panel.js +173 -0
  124. package/public/js/ui/shortcuts.js +143 -0
  125. package/public/js/ui/sidebar-toggle.js +29 -0
  126. package/public/js/ui/status-bar.js +172 -0
  127. package/public/js/ui/tab-sdk.js +623 -0
  128. package/public/js/ui/theme.js +38 -0
  129. package/public/manifest.json +13 -0
  130. package/public/offline.html +190 -0
  131. package/public/style.css +42 -0
  132. package/public/sw.js +91 -0
  133. package/server/agent-loop.js +385 -0
  134. package/server/dag-executor.js +265 -0
  135. package/server/orchestrator.js +514 -0
  136. package/server/paths.js +61 -0
  137. package/server/plugin-mount.js +56 -0
  138. package/server/push-sender.js +31 -0
  139. package/server/routes/agents.js +294 -0
  140. package/server/routes/bot.js +45 -0
  141. package/server/routes/exec.js +35 -0
  142. package/server/routes/files.js +218 -0
  143. package/server/routes/mcp.js +82 -0
  144. package/server/routes/messages.js +36 -0
  145. package/server/routes/notifications.js +37 -0
  146. package/server/routes/projects.js +207 -0
  147. package/server/routes/prompts.js +53 -0
  148. package/server/routes/sessions.js +103 -0
  149. package/server/routes/stats.js +143 -0
  150. package/server/routes/telegram.js +71 -0
  151. package/server/routes/tips.js +135 -0
  152. package/server/routes/workflows.js +81 -0
  153. package/server/summarizer.js +55 -0
  154. package/server/telegram-poller.js +205 -0
  155. package/server/telegram-sender.js +304 -0
  156. package/server/ws-handler.js +926 -0
  157. package/server.js +179 -0
@@ -0,0 +1,353 @@
1
+ /* ── Tips Feed Panel ──────────────────────────────────── */
2
+ .tips-feed-panel {
3
+ width: 350px;
4
+ min-width: 260px;
5
+ max-width: 600px;
6
+ flex-shrink: 0;
7
+ display: flex;
8
+ flex-direction: column;
9
+ background: var(--bg);
10
+ border-left: 1px solid var(--border);
11
+ position: relative;
12
+ overflow: hidden;
13
+ }
14
+
15
+ .tips-feed-panel.hidden {
16
+ display: none;
17
+ }
18
+
19
+ /* ── Resize Handle ───────────────────────────────────── */
20
+ .tips-feed-resize {
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ width: 4px;
25
+ height: 100%;
26
+ cursor: col-resize;
27
+ z-index: 10;
28
+ background: transparent;
29
+ transition: background 0.15s;
30
+ }
31
+
32
+ .tips-feed-resize:hover,
33
+ .tips-feed-resize.dragging {
34
+ background: var(--accent);
35
+ }
36
+
37
+ /* ── Header ──────────────────────────────────────────── */
38
+ .tips-feed-header {
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: space-between;
42
+ padding: 10px 14px;
43
+ border-bottom: 1px solid var(--border);
44
+ background: var(--bg-secondary);
45
+ flex-shrink: 0;
46
+ }
47
+
48
+ .tips-feed-title {
49
+ font-family: var(--font-mono);
50
+ font-size: 12px;
51
+ font-weight: 600;
52
+ color: var(--text);
53
+ letter-spacing: 0.5px;
54
+ display: flex;
55
+ align-items: center;
56
+ gap: 6px;
57
+ }
58
+
59
+ .tips-feed-title-icon {
60
+ color: var(--accent);
61
+ font-size: 14px;
62
+ }
63
+
64
+ .tips-feed-close {
65
+ background: none;
66
+ border: none;
67
+ color: var(--text-dim);
68
+ cursor: pointer;
69
+ font-size: 18px;
70
+ line-height: 1;
71
+ padding: 2px 6px;
72
+ border-radius: var(--radius);
73
+ transition: color 0.15s, background 0.15s;
74
+ }
75
+
76
+ .tips-feed-close:hover {
77
+ color: var(--text);
78
+ background: var(--bg-tertiary);
79
+ }
80
+
81
+ /* ── Category Tabs ───────────────────────────────────── */
82
+ .tips-feed-tabs {
83
+ display: flex;
84
+ flex-wrap: wrap;
85
+ gap: 4px;
86
+ padding: 8px 14px;
87
+ border-bottom: 1px solid var(--border);
88
+ background: var(--bg-secondary);
89
+ flex-shrink: 0;
90
+ }
91
+
92
+ .tips-feed-tab {
93
+ font-family: var(--font-mono);
94
+ font-size: 10px;
95
+ font-weight: 600;
96
+ padding: 4px 10px;
97
+ border-radius: var(--radius);
98
+ border: 1px solid var(--border);
99
+ background: transparent;
100
+ color: var(--text-dim);
101
+ cursor: pointer;
102
+ transition: all 0.15s;
103
+ white-space: nowrap;
104
+ letter-spacing: 0.3px;
105
+ }
106
+
107
+ .tips-feed-tab:hover {
108
+ color: var(--text);
109
+ border-color: var(--text-dim);
110
+ }
111
+
112
+ .tips-feed-tab.active {
113
+ color: var(--accent);
114
+ border-color: var(--accent);
115
+ background: var(--accent-dim);
116
+ }
117
+
118
+ .tips-feed-tab-icon {
119
+ margin-right: 4px;
120
+ opacity: 0.7;
121
+ }
122
+
123
+ /* ── Scrollable Content ──────────────────────────────── */
124
+ .tips-feed-content {
125
+ flex: 1;
126
+ overflow-y: auto;
127
+ overflow-x: hidden;
128
+ padding: 14px;
129
+ display: flex;
130
+ flex-direction: column;
131
+ gap: 12px;
132
+ }
133
+
134
+ /* ── Tip of the Day Banner ───────────────────────────── */
135
+ .tips-feed-totd {
136
+ background: var(--bg-secondary);
137
+ border: 1px solid var(--accent);
138
+ border-left: 3px solid var(--accent);
139
+ border-radius: var(--radius);
140
+ padding: 12px 14px;
141
+ animation: fadeIn 0.2s ease;
142
+ }
143
+
144
+ .tips-feed-totd-label {
145
+ font-family: var(--font-mono);
146
+ font-size: 9px;
147
+ font-weight: 700;
148
+ text-transform: uppercase;
149
+ letter-spacing: 1.2px;
150
+ color: var(--accent);
151
+ margin-bottom: 6px;
152
+ display: flex;
153
+ align-items: center;
154
+ gap: 6px;
155
+ }
156
+
157
+ .tips-feed-totd-title {
158
+ font-family: var(--font-mono);
159
+ font-size: 13px;
160
+ font-weight: 600;
161
+ color: var(--text);
162
+ margin-bottom: 4px;
163
+ }
164
+
165
+ .tips-feed-totd-body {
166
+ font-size: 12px;
167
+ line-height: 1.6;
168
+ color: var(--text-secondary);
169
+ }
170
+
171
+ /* ── Tip Cards ───────────────────────────────────────── */
172
+ .tips-feed-card {
173
+ background: var(--bg-secondary);
174
+ border: 1px solid var(--border);
175
+ border-left: 3px solid var(--purple);
176
+ border-radius: var(--radius);
177
+ padding: 10px 12px;
178
+ transition: border-color 0.15s;
179
+ }
180
+
181
+ .tips-feed-card:hover {
182
+ border-color: var(--text-dim);
183
+ border-left-color: var(--purple);
184
+ }
185
+
186
+ .tips-feed-card-header {
187
+ display: flex;
188
+ align-items: center;
189
+ gap: 8px;
190
+ margin-bottom: 4px;
191
+ }
192
+
193
+ .tips-feed-card-icon {
194
+ font-family: var(--font-mono);
195
+ font-size: 12px;
196
+ font-weight: 700;
197
+ width: 20px;
198
+ height: 20px;
199
+ display: flex;
200
+ align-items: center;
201
+ justify-content: center;
202
+ border-radius: var(--radius);
203
+ background: var(--bg-tertiary);
204
+ flex-shrink: 0;
205
+ }
206
+
207
+ .tips-feed-card-title {
208
+ font-family: var(--font-mono);
209
+ font-size: 12px;
210
+ font-weight: 600;
211
+ color: var(--text);
212
+ flex: 1;
213
+ overflow: hidden;
214
+ text-overflow: ellipsis;
215
+ white-space: nowrap;
216
+ }
217
+
218
+ .tips-feed-card-body {
219
+ font-size: 11.5px;
220
+ line-height: 1.55;
221
+ color: var(--text-secondary);
222
+ }
223
+
224
+ .tips-feed-card-tags {
225
+ display: flex;
226
+ gap: 4px;
227
+ margin-top: 6px;
228
+ flex-wrap: wrap;
229
+ }
230
+
231
+ .tips-feed-card-tag {
232
+ font-family: var(--font-mono);
233
+ font-size: 9px;
234
+ padding: 1px 6px;
235
+ border-radius: 3px;
236
+ background: var(--bg-tertiary);
237
+ color: var(--text-dim);
238
+ letter-spacing: 0.3px;
239
+ }
240
+
241
+ /* ── RSS Cards ───────────────────────────────────────── */
242
+ .tips-feed-rss-card {
243
+ background: var(--bg-secondary);
244
+ border: 1px solid var(--border);
245
+ border-left: 3px solid var(--purple);
246
+ border-radius: var(--radius);
247
+ padding: 10px 12px;
248
+ transition: border-color 0.15s;
249
+ }
250
+
251
+ .tips-feed-rss-card:hover {
252
+ border-color: var(--text-dim);
253
+ border-left-color: var(--purple);
254
+ }
255
+
256
+ .tips-feed-rss-source {
257
+ font-family: var(--font-mono);
258
+ font-size: 9px;
259
+ font-weight: 600;
260
+ text-transform: uppercase;
261
+ letter-spacing: 0.8px;
262
+ color: var(--purple);
263
+ margin-bottom: 4px;
264
+ }
265
+
266
+ .tips-feed-rss-title {
267
+ font-size: 12px;
268
+ font-weight: 600;
269
+ color: var(--text);
270
+ margin-bottom: 4px;
271
+ line-height: 1.4;
272
+ }
273
+
274
+ .tips-feed-rss-desc {
275
+ font-size: 11px;
276
+ line-height: 1.5;
277
+ color: var(--text-dim);
278
+ margin-bottom: 6px;
279
+ overflow-wrap: break-word;
280
+ word-break: break-word;
281
+ }
282
+
283
+ /* ── External Link (shared by curated + RSS) ─────────── */
284
+ .tips-feed-ext-link {
285
+ display: inline-flex;
286
+ align-items: center;
287
+ gap: 4px;
288
+ font-family: var(--font-mono);
289
+ font-size: 10px;
290
+ color: var(--accent);
291
+ text-decoration: none;
292
+ border-bottom: 1px solid transparent;
293
+ transition: border-color 0.15s;
294
+ margin-top: 6px;
295
+ }
296
+
297
+ .tips-feed-ext-link:hover {
298
+ border-bottom-color: var(--accent);
299
+ }
300
+
301
+ .tips-feed-ext-link svg {
302
+ flex-shrink: 0;
303
+ opacity: 0.7;
304
+ }
305
+
306
+ /* ── Section Divider ─────────────────────────────────── */
307
+ .tips-feed-section-label {
308
+ font-family: var(--font-mono);
309
+ font-size: 10px;
310
+ font-weight: 700;
311
+ text-transform: uppercase;
312
+ letter-spacing: 1px;
313
+ color: var(--text-dim);
314
+ padding: 4px 0;
315
+ margin-top: 4px;
316
+ }
317
+
318
+ /* ── Loading State ───────────────────────────────────── */
319
+ .tips-feed-loading {
320
+ text-align: center;
321
+ padding: 24px;
322
+ color: var(--text-dim);
323
+ font-family: var(--font-mono);
324
+ font-size: 12px;
325
+ }
326
+
327
+ /* ── Toggle Button in Header ─────────────────────────── */
328
+ #tips-feed-toggle-btn {
329
+ background: none;
330
+ border: none;
331
+ color: var(--text-dim);
332
+ cursor: pointer;
333
+ padding: 4px;
334
+ display: flex;
335
+ align-items: center;
336
+ justify-content: center;
337
+ border-radius: var(--radius);
338
+ transition: color 0.15s, background 0.15s;
339
+ }
340
+
341
+ #tips-feed-toggle-btn:hover {
342
+ color: var(--accent);
343
+ background: var(--bg-secondary);
344
+ }
345
+
346
+ #tips-feed-toggle-btn.active {
347
+ color: var(--accent);
348
+ }
349
+
350
+ #tips-feed-toggle-btn:disabled {
351
+ opacity: 0.3;
352
+ cursor: not-allowed;
353
+ }
@@ -0,0 +1,273 @@
1
+ /* ── Slash Autocomplete ───────────────────────────────── */
2
+ .slash-autocomplete {
3
+ position: absolute;
4
+ bottom: 100%;
5
+ left: 24px;
6
+ right: 24px;
7
+ background: var(--bg-secondary);
8
+ border: 1px solid var(--border);
9
+ border-radius: var(--radius);
10
+ box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), var(--glow);
11
+ max-height: 260px;
12
+ overflow-y: auto;
13
+ z-index: 50;
14
+ animation: slideUp 0.1s ease;
15
+ }
16
+
17
+ .slash-autocomplete-item {
18
+ display: flex;
19
+ align-items: center;
20
+ gap: 10px;
21
+ padding: 8px 12px;
22
+ cursor: pointer;
23
+ transition: background 0.08s;
24
+ }
25
+
26
+ .slash-autocomplete-item .cmd-name {
27
+ font-family: var(--font-mono);
28
+ font-size: 13px;
29
+ font-weight: 600;
30
+ color: var(--accent);
31
+ min-width: 110px;
32
+ flex-shrink: 0;
33
+ }
34
+
35
+ .slash-autocomplete-item .cmd-category {
36
+ font-size: 9px;
37
+ font-weight: 600;
38
+ text-transform: uppercase;
39
+ letter-spacing: 0.4px;
40
+ padding: 2px 6px;
41
+ border-radius: 3px;
42
+ flex-shrink: 0;
43
+ }
44
+
45
+ .slash-autocomplete-item .cmd-category[data-cat="app"] { color: var(--purple); background: rgba(210, 168, 255, 0.1); }
46
+ .slash-autocomplete-item .cmd-category[data-cat="project"] { color: #e06c75; background: rgba(224, 108, 117, 0.1); }
47
+ .slash-autocomplete-item .cmd-category[data-cat="skill"] { color: #61afef; background: rgba(97, 175, 239, 0.1); }
48
+ .slash-autocomplete-item .cmd-category[data-cat="cli"] { color: var(--success); background: rgba(63, 185, 80, 0.1); }
49
+ .slash-autocomplete-item .cmd-category[data-cat="prompt"] { color: var(--warning); background: rgba(210, 153, 34, 0.1); }
50
+
51
+ .slash-autocomplete-item .cmd-desc {
52
+ font-size: 12px;
53
+ color: var(--text-dim);
54
+ flex: 1;
55
+ white-space: nowrap;
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ }
59
+
60
+ .slash-autocomplete-item.active,
61
+ .slash-autocomplete-item:hover {
62
+ background: var(--accent-dim);
63
+ }
64
+
65
+ .slash-autocomplete-item.active .cmd-name {
66
+ color: var(--text);
67
+ }
68
+
69
+ /* ── CLI Output Block ─────────────────────────────────── */
70
+ .cli-output {
71
+ background: var(--bg-secondary);
72
+ border: 1px solid var(--border-subtle);
73
+ border-radius: 6px;
74
+ margin: 4px 0;
75
+ overflow: hidden;
76
+ }
77
+
78
+ .cli-output-header {
79
+ display: flex;
80
+ align-items: center;
81
+ gap: 8px;
82
+ padding: 8px 12px;
83
+ font-family: var(--font-mono);
84
+ font-size: 12px;
85
+ color: var(--text-secondary);
86
+ border-bottom: 1px solid var(--border-subtle);
87
+ }
88
+
89
+ .cli-output-header .cli-icon {
90
+ font-weight: 600;
91
+ }
92
+
93
+ .cli-output-header .cli-icon.success { color: var(--success); }
94
+ .cli-output-header .cli-icon.error { color: var(--error); }
95
+
96
+ .cli-output-header .cli-cmd {
97
+ flex: 1;
98
+ color: var(--text);
99
+ font-weight: 500;
100
+ white-space: nowrap;
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
103
+ }
104
+
105
+ .cli-output-header .cli-exit {
106
+ font-size: 11px;
107
+ color: var(--text-dim);
108
+ }
109
+
110
+ .cli-output-body {
111
+ padding: 10px 12px;
112
+ max-height: 300px;
113
+ overflow-y: auto;
114
+ }
115
+
116
+ .cli-output-body pre {
117
+ font-family: var(--font-mono);
118
+ font-size: 12px;
119
+ line-height: 1.5;
120
+ color: var(--text);
121
+ white-space: pre-wrap;
122
+ word-break: break-all;
123
+ margin: 0;
124
+ }
125
+
126
+ .cli-output-stderr {
127
+ color: var(--error) !important;
128
+ }
129
+
130
+ /* ── Workflow Progress ────────────────────────────────── */
131
+ .workflow-header {
132
+ background: var(--bg-secondary);
133
+ border: 1px solid var(--border-subtle);
134
+ border-radius: 6px;
135
+ padding: 12px 16px;
136
+ margin: 4px 0;
137
+ }
138
+
139
+ .workflow-title {
140
+ font-size: 13px;
141
+ font-weight: 600;
142
+ font-family: var(--font-mono);
143
+ color: var(--accent);
144
+ margin-bottom: 10px;
145
+ }
146
+
147
+ .workflow-progress {
148
+ display: flex;
149
+ gap: 16px;
150
+ align-items: center;
151
+ }
152
+
153
+ .workflow-step {
154
+ display: flex;
155
+ align-items: center;
156
+ gap: 6px;
157
+ }
158
+
159
+ .workflow-step-dot {
160
+ width: 10px;
161
+ height: 10px;
162
+ border-radius: 50%;
163
+ flex-shrink: 0;
164
+ transition: background 0.3s, box-shadow 0.3s;
165
+ }
166
+
167
+ .workflow-step-dot.pending {
168
+ background: var(--border);
169
+ }
170
+
171
+ .workflow-step-dot.running {
172
+ background: var(--warning);
173
+ box-shadow: 0 0 6px var(--warning);
174
+ animation: blink 1s infinite;
175
+ }
176
+
177
+ .workflow-step-dot.completed {
178
+ background: var(--success);
179
+ box-shadow: 0 0 4px var(--success);
180
+ }
181
+
182
+ .workflow-step-dot.aborted {
183
+ background: var(--error, #e55);
184
+ box-shadow: 0 0 4px var(--error, #e55);
185
+ }
186
+
187
+ .workflow-step-label {
188
+ font-size: 11px;
189
+ color: var(--text-secondary);
190
+ font-family: var(--font-mono);
191
+ }
192
+
193
+ /* Workflow autocomplete category */
194
+ .slash-autocomplete-item .cmd-category[data-cat="workflow"] {
195
+ color: var(--accent);
196
+ background: var(--accent-dim);
197
+ }
198
+
199
+ /* ── Diff View ────────────────────────────────────────── */
200
+ .diff-view {
201
+ background: var(--bg-deep);
202
+ border: 1px solid var(--border);
203
+ border-radius: var(--radius);
204
+ overflow: hidden;
205
+ margin: 4px 0;
206
+ font-family: var(--font-mono);
207
+ font-size: 11px;
208
+ }
209
+
210
+ .diff-header {
211
+ padding: 6px 12px;
212
+ font-size: 11px;
213
+ font-weight: 600;
214
+ color: var(--text-secondary);
215
+ background: var(--bg-tertiary);
216
+ border-bottom: 1px solid var(--border-subtle);
217
+ white-space: nowrap;
218
+ overflow: hidden;
219
+ text-overflow: ellipsis;
220
+ }
221
+
222
+ .diff-body {
223
+ max-height: 400px;
224
+ overflow-y: auto;
225
+ overflow-x: auto;
226
+ }
227
+
228
+ .diff-line {
229
+ display: flex;
230
+ line-height: 1.5;
231
+ white-space: pre;
232
+ }
233
+
234
+ .diff-gutter {
235
+ width: 40px;
236
+ min-width: 40px;
237
+ text-align: right;
238
+ padding: 0 8px 0 4px;
239
+ color: var(--text-dim);
240
+ user-select: none;
241
+ flex-shrink: 0;
242
+ }
243
+
244
+ .diff-sign {
245
+ width: 16px;
246
+ min-width: 16px;
247
+ text-align: center;
248
+ user-select: none;
249
+ flex-shrink: 0;
250
+ }
251
+
252
+ .diff-content {
253
+ flex: 1;
254
+ padding-right: 12px;
255
+ }
256
+
257
+ .diff-line.diff-added {
258
+ background: rgba(63, 185, 80, 0.12);
259
+ color: var(--success);
260
+ }
261
+
262
+ .diff-line.diff-added .diff-sign { color: var(--success); }
263
+
264
+ .diff-line.diff-removed {
265
+ background: rgba(248, 81, 73, 0.12);
266
+ color: var(--error);
267
+ }
268
+
269
+ .diff-line.diff-removed .diff-sign { color: var(--error); }
270
+
271
+ .diff-line.diff-context {
272
+ color: var(--text-secondary);
273
+ }
@@ -0,0 +1,76 @@
1
+ /* Context Window Gauge */
2
+ .context-gauge {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ gap: 6px;
6
+ font-family: var(--font-mono);
7
+ font-size: 11px;
8
+ cursor: default;
9
+ }
10
+
11
+ .context-gauge-bar {
12
+ display: block;
13
+ width: 60px;
14
+ height: 8px;
15
+ border-radius: 4px;
16
+ background: rgba(255, 255, 255, 0.15);
17
+ overflow: hidden;
18
+ flex-shrink: 0;
19
+ border: 1px solid rgba(255, 255, 255, 0.08);
20
+ }
21
+
22
+ .context-gauge-fill {
23
+ display: block;
24
+ height: 100%;
25
+ border-radius: 4px;
26
+ background: #4ade80;
27
+ box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
28
+ transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
29
+ width: 0%;
30
+ }
31
+
32
+ .context-gauge-fill.warning {
33
+ background: #facc15;
34
+ box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
35
+ }
36
+
37
+ .context-gauge-fill.critical {
38
+ background: #f87171;
39
+ box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
40
+ }
41
+
42
+ .context-gauge-label {
43
+ white-space: nowrap;
44
+ color: var(--text);
45
+ font-weight: 600;
46
+ transition: color 0.3s ease;
47
+ }
48
+
49
+ .context-gauge.warning .context-gauge-label {
50
+ color: #facc15;
51
+ }
52
+
53
+ .context-gauge.critical .context-gauge-label {
54
+ color: #f87171;
55
+ }
56
+
57
+ /* Light theme */
58
+ html[data-theme="light"] .context-gauge-bar {
59
+ background: rgba(0, 0, 0, 0.1);
60
+ border-color: rgba(0, 0, 0, 0.08);
61
+ }
62
+
63
+ html[data-theme="light"] .context-gauge-fill {
64
+ background: #22c55e;
65
+ box-shadow: none;
66
+ }
67
+
68
+ html[data-theme="light"] .context-gauge-fill.warning {
69
+ background: #ca8a04;
70
+ box-shadow: none;
71
+ }
72
+
73
+ html[data-theme="light"] .context-gauge-fill.critical {
74
+ background: #dc2626;
75
+ box-shadow: none;
76
+ }