@clagentic/console 1.0.0-beta.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.
Files changed (221) hide show
  1. package/CREDITS.md +3 -0
  2. package/LICENSE +21 -0
  3. package/README.md +250 -0
  4. package/bin/cli.js +2812 -0
  5. package/lib/agents-favorites.js +164 -0
  6. package/lib/agents.js +282 -0
  7. package/lib/ask-user-mcp-server.js +120 -0
  8. package/lib/browser-mcp-server.js +484 -0
  9. package/lib/build-user-env.js +63 -0
  10. package/lib/certs/fullchain.pem +47 -0
  11. package/lib/certs/privkey.pem +5 -0
  12. package/lib/cli-sessions.js +265 -0
  13. package/lib/codex-defaults.js +18 -0
  14. package/lib/config.js +332 -0
  15. package/lib/crisis-safety.js +60 -0
  16. package/lib/daemon-projects.js +164 -0
  17. package/lib/daemon.js +1602 -0
  18. package/lib/dm.js +128 -0
  19. package/lib/ipc.js +125 -0
  20. package/lib/ipv4-only.js +39 -0
  21. package/lib/mcp-local.js +385 -0
  22. package/lib/notes.js +141 -0
  23. package/lib/os-users.js +529 -0
  24. package/lib/pages.js +1325 -0
  25. package/lib/project-connection.js +302 -0
  26. package/lib/project-external-trigger.js +236 -0
  27. package/lib/project-file-watch.js +120 -0
  28. package/lib/project-filesystem.js +528 -0
  29. package/lib/project-http.js +753 -0
  30. package/lib/project-image.js +95 -0
  31. package/lib/project-knowledge.js +88 -0
  32. package/lib/project-loop.js +1304 -0
  33. package/lib/project-mcp.js +374 -0
  34. package/lib/project-memory.js +39 -0
  35. package/lib/project-notifications.js +262 -0
  36. package/lib/project-sessions.js +1581 -0
  37. package/lib/project-user-mention.js +193 -0
  38. package/lib/project-user-message.js +628 -0
  39. package/lib/project.js +1303 -0
  40. package/lib/public/app.js +1031 -0
  41. package/lib/public/apple-touch-icon.png +0 -0
  42. package/lib/public/claude-code-avatar.png +0 -0
  43. package/lib/public/codex-avatar.png +0 -0
  44. package/lib/public/console-icon.png +0 -0
  45. package/lib/public/css/admin.css +736 -0
  46. package/lib/public/css/agent-picker.css +119 -0
  47. package/lib/public/css/base.css +235 -0
  48. package/lib/public/css/channel-layout.css +441 -0
  49. package/lib/public/css/command-palette.css +559 -0
  50. package/lib/public/css/debate.css +1609 -0
  51. package/lib/public/css/diff.css +139 -0
  52. package/lib/public/css/filebrowser.css +1976 -0
  53. package/lib/public/css/highlight.css +144 -0
  54. package/lib/public/css/home-hub.css +545 -0
  55. package/lib/public/css/icon-strip.css +1856 -0
  56. package/lib/public/css/input.css +1349 -0
  57. package/lib/public/css/loop.css +1248 -0
  58. package/lib/public/css/mention.css +317 -0
  59. package/lib/public/css/menus.css +857 -0
  60. package/lib/public/css/messages.css +1833 -0
  61. package/lib/public/css/mobile-nav.css +1332 -0
  62. package/lib/public/css/notifications-center.css +296 -0
  63. package/lib/public/css/overlays.css +1273 -0
  64. package/lib/public/css/playbook.css +264 -0
  65. package/lib/public/css/profile.css +397 -0
  66. package/lib/public/css/rewind.css +671 -0
  67. package/lib/public/css/scheduler-modal.css +1495 -0
  68. package/lib/public/css/scheduler.css +1420 -0
  69. package/lib/public/css/server-settings.css +909 -0
  70. package/lib/public/css/session-search.css +159 -0
  71. package/lib/public/css/sidebar.css +2012 -0
  72. package/lib/public/css/skills.css +789 -0
  73. package/lib/public/css/sticky-notes.css +854 -0
  74. package/lib/public/css/stt.css +155 -0
  75. package/lib/public/css/title-bar.css +674 -0
  76. package/lib/public/css/tooltip.css +67 -0
  77. package/lib/public/css/user-settings.css +702 -0
  78. package/lib/public/emoji-data.json +1 -0
  79. package/lib/public/favicon-banded-32.png +0 -0
  80. package/lib/public/favicon-banded.png +0 -0
  81. package/lib/public/favicon-dark.svg +32 -0
  82. package/lib/public/favicon.svg +32 -0
  83. package/lib/public/icon-192.png +0 -0
  84. package/lib/public/icon-512.png +0 -0
  85. package/lib/public/icon-banded-76.png +0 -0
  86. package/lib/public/icon-banded-96.png +0 -0
  87. package/lib/public/icon-mono.svg +25 -0
  88. package/lib/public/icons/email/gmail.svg +7 -0
  89. package/lib/public/icons/email/outlook.svg +35 -0
  90. package/lib/public/icons/email/yahoo.svg +1 -0
  91. package/lib/public/index.html +1946 -0
  92. package/lib/public/manifest.json +27 -0
  93. package/lib/public/markdown-worker.js +43 -0
  94. package/lib/public/marked.min.js +6 -0
  95. package/lib/public/modules/admin.js +954 -0
  96. package/lib/public/modules/agent-picker.js +429 -0
  97. package/lib/public/modules/app-connection.js +216 -0
  98. package/lib/public/modules/app-cursors.js +492 -0
  99. package/lib/public/modules/app-dm.js +265 -0
  100. package/lib/public/modules/app-favicon.js +231 -0
  101. package/lib/public/modules/app-header.js +242 -0
  102. package/lib/public/modules/app-home-hub.js +432 -0
  103. package/lib/public/modules/app-loop-ui.js +691 -0
  104. package/lib/public/modules/app-loop-wizard.js +439 -0
  105. package/lib/public/modules/app-messages.js +1415 -0
  106. package/lib/public/modules/app-misc.js +463 -0
  107. package/lib/public/modules/app-notifications.js +651 -0
  108. package/lib/public/modules/app-panels.js +1061 -0
  109. package/lib/public/modules/app-projects.js +875 -0
  110. package/lib/public/modules/app-rate-limit.js +529 -0
  111. package/lib/public/modules/app-rendering.js +739 -0
  112. package/lib/public/modules/app-skills-install.js +285 -0
  113. package/lib/public/modules/avatar.js +36 -0
  114. package/lib/public/modules/command-palette.js +491 -0
  115. package/lib/public/modules/console-logo.js +162 -0
  116. package/lib/public/modules/context-sources.js +365 -0
  117. package/lib/public/modules/diff.js +412 -0
  118. package/lib/public/modules/dom-refs.js +21 -0
  119. package/lib/public/modules/emoji-picker.js +222 -0
  120. package/lib/public/modules/events.js +21 -0
  121. package/lib/public/modules/filebrowser.js +1966 -0
  122. package/lib/public/modules/fileicons.js +172 -0
  123. package/lib/public/modules/icons.js +80 -0
  124. package/lib/public/modules/input.js +1102 -0
  125. package/lib/public/modules/longpress.js +74 -0
  126. package/lib/public/modules/markdown.js +486 -0
  127. package/lib/public/modules/mcp-ui.js +295 -0
  128. package/lib/public/modules/mention.js +1093 -0
  129. package/lib/public/modules/notifications.js +613 -0
  130. package/lib/public/modules/playbook.js +578 -0
  131. package/lib/public/modules/profile.js +594 -0
  132. package/lib/public/modules/project-settings.js +849 -0
  133. package/lib/public/modules/project-switcher.js +375 -0
  134. package/lib/public/modules/qrcode.js +87 -0
  135. package/lib/public/modules/rewind.js +381 -0
  136. package/lib/public/modules/scheduler-config.js +1611 -0
  137. package/lib/public/modules/scheduler-history.js +131 -0
  138. package/lib/public/modules/scheduler.js +1689 -0
  139. package/lib/public/modules/server-settings.js +842 -0
  140. package/lib/public/modules/session-search.js +456 -0
  141. package/lib/public/modules/settings-defaults.js +253 -0
  142. package/lib/public/modules/sidebar-mobile.js +1425 -0
  143. package/lib/public/modules/sidebar-projects.js +2022 -0
  144. package/lib/public/modules/sidebar-sessions.js +1548 -0
  145. package/lib/public/modules/sidebar-users.js +449 -0
  146. package/lib/public/modules/sidebar.js +348 -0
  147. package/lib/public/modules/skills.js +793 -0
  148. package/lib/public/modules/state.js +3 -0
  149. package/lib/public/modules/sticky-notes.js +1221 -0
  150. package/lib/public/modules/store.js +34 -0
  151. package/lib/public/modules/stt.js +266 -0
  152. package/lib/public/modules/terminal.js +987 -0
  153. package/lib/public/modules/theme.js +812 -0
  154. package/lib/public/modules/tool-palette.js +562 -0
  155. package/lib/public/modules/tools.js +2285 -0
  156. package/lib/public/modules/tooltip.js +150 -0
  157. package/lib/public/modules/user-settings.js +544 -0
  158. package/lib/public/modules/utils.js +56 -0
  159. package/lib/public/modules/ws-ref.js +26 -0
  160. package/lib/public/style.css +34 -0
  161. package/lib/public/sw.js +159 -0
  162. package/lib/push.js +149 -0
  163. package/lib/scheduler.js +471 -0
  164. package/lib/sdk-bridge.js +1792 -0
  165. package/lib/sdk-message-processor.js +740 -0
  166. package/lib/sdk-message-queue.js +42 -0
  167. package/lib/sdk-skill-discovery.js +131 -0
  168. package/lib/sdk-worker.js +677 -0
  169. package/lib/server-admin.js +712 -0
  170. package/lib/server-auth.js +737 -0
  171. package/lib/server-dm.js +170 -0
  172. package/lib/server-palette.js +104 -0
  173. package/lib/server-settings.js +553 -0
  174. package/lib/server-skills.js +280 -0
  175. package/lib/server.js +1390 -0
  176. package/lib/session-search.js +693 -0
  177. package/lib/sessions.js +946 -0
  178. package/lib/smtp.js +221 -0
  179. package/lib/terminal-manager.js +219 -0
  180. package/lib/terminal.js +39 -0
  181. package/lib/themes/ayu-light.json +9 -0
  182. package/lib/themes/catppuccin-latte.json +9 -0
  183. package/lib/themes/catppuccin-mocha.json +9 -0
  184. package/lib/themes/clagentic-dark.json +10 -0
  185. package/lib/themes/clagentic-light.json +10 -0
  186. package/lib/themes/dracula.json +9 -0
  187. package/lib/themes/everforest-light.json +9 -0
  188. package/lib/themes/everforest.json +9 -0
  189. package/lib/themes/github-light.json +9 -0
  190. package/lib/themes/gruvbox-dark.json +9 -0
  191. package/lib/themes/gruvbox-light.json +9 -0
  192. package/lib/themes/monokai.json +9 -0
  193. package/lib/themes/nord-light.json +9 -0
  194. package/lib/themes/nord.json +9 -0
  195. package/lib/themes/one-dark.json +9 -0
  196. package/lib/themes/one-light.json +9 -0
  197. package/lib/themes/rose-pine-dawn.json +9 -0
  198. package/lib/themes/rose-pine.json +9 -0
  199. package/lib/themes/solarized-dark.json +9 -0
  200. package/lib/themes/solarized-light.json +9 -0
  201. package/lib/themes/tokyo-night-light.json +9 -0
  202. package/lib/themes/tokyo-night.json +9 -0
  203. package/lib/updater.js +124 -0
  204. package/lib/user-presence.js +92 -0
  205. package/lib/users-auth.js +146 -0
  206. package/lib/users-permissions.js +118 -0
  207. package/lib/users-preferences.js +254 -0
  208. package/lib/users.js +465 -0
  209. package/lib/utils.js +64 -0
  210. package/lib/worktree.js +134 -0
  211. package/lib/ws-schema.js +464 -0
  212. package/lib/yoke/adapters/claude-worker.js +759 -0
  213. package/lib/yoke/adapters/claude.js +1599 -0
  214. package/lib/yoke/adapters/codex.js +1559 -0
  215. package/lib/yoke/codex-app-server.js +352 -0
  216. package/lib/yoke/index.js +319 -0
  217. package/lib/yoke/instructions.js +61 -0
  218. package/lib/yoke/interface.js +98 -0
  219. package/lib/yoke/mcp-bridge-server.js +302 -0
  220. package/lib/yoke/package.json +7 -0
  221. package/package.json +72 -0
@@ -0,0 +1,559 @@
1
+ /* ==========================================================================
2
+ Command Palette (Cmd+K)
3
+ ========================================================================== */
4
+
5
+ /* --- Top bar search bar trigger (Slack-style) --- */
6
+ .cmd-palette-searchbar {
7
+ position: absolute;
8
+ left: 50%;
9
+ transform: translateX(-50%);
10
+ display: flex;
11
+ align-items: center;
12
+ gap: 8px;
13
+ height: 24px;
14
+ padding: 0 10px;
15
+ background: rgba(var(--overlay-rgb), 0.04);
16
+ border: 1px solid var(--border-subtle);
17
+ border-radius: 6px;
18
+ cursor: pointer;
19
+ font-family: inherit;
20
+ font-size: 12px;
21
+ color: var(--text-dimmer);
22
+ transition: background 0.15s, border-color 0.15s;
23
+ width: min(520px, 40%);
24
+ }
25
+
26
+ .cmd-palette-searchbar:hover {
27
+ background: rgba(var(--overlay-rgb), 0.08);
28
+ border-color: var(--border);
29
+ color: var(--text-muted);
30
+ }
31
+
32
+ .cmd-palette-searchbar .lucide {
33
+ width: 13px;
34
+ height: 13px;
35
+ flex-shrink: 0;
36
+ }
37
+
38
+ .cmd-palette-searchbar-text {
39
+ flex: 1;
40
+ text-align: left;
41
+ white-space: nowrap;
42
+ overflow: hidden;
43
+ text-overflow: ellipsis;
44
+ }
45
+
46
+ .cmd-palette-searchbar-kbd {
47
+ font-size: 10px;
48
+ font-weight: 600;
49
+ color: var(--text-muted);
50
+ background: rgba(var(--overlay-rgb), 0.08);
51
+ border: 1px solid var(--border);
52
+ border-radius: 4px;
53
+ padding: 0 5px;
54
+ font-family: inherit;
55
+ line-height: 16px;
56
+ flex-shrink: 0;
57
+ }
58
+
59
+ @media (max-width: 768px) {
60
+ .cmd-palette-searchbar {
61
+ max-width: none;
62
+ }
63
+ .cmd-palette-searchbar-text {
64
+ display: none;
65
+ }
66
+ .cmd-palette-searchbar-kbd {
67
+ display: none;
68
+ }
69
+ }
70
+
71
+ .cmd-palette {
72
+ position: fixed;
73
+ inset: 0;
74
+ z-index: 400;
75
+ }
76
+
77
+ .cmd-palette.hidden { display: none; }
78
+
79
+ .cmd-palette-backdrop {
80
+ position: absolute;
81
+ inset: 0;
82
+ background: rgba(var(--shadow-rgb), 0.3);
83
+ }
84
+
85
+ .cmd-palette-dialog {
86
+ position: absolute;
87
+ left: 50%;
88
+ transform: translateX(-50%);
89
+ top: 0;
90
+ background: var(--bg-alt);
91
+ border: 1px solid var(--border);
92
+ border-top: none;
93
+ border-radius: 0 0 12px 12px;
94
+ width: min(560px, 44%);
95
+ box-shadow: 0 8px 32px rgba(var(--shadow-rgb), 0.4);
96
+ display: flex;
97
+ flex-direction: column;
98
+ max-height: 70vh;
99
+ animation: cmdPaletteExpand 0.15s ease-out;
100
+ }
101
+
102
+ @keyframes cmdPaletteExpand {
103
+ from { opacity: 0; max-height: 0; }
104
+ to { opacity: 1; max-height: 70vh; }
105
+ }
106
+
107
+ /* --- Search input row --- */
108
+ .cmd-palette-input-row {
109
+ display: flex;
110
+ align-items: center;
111
+ gap: 8px;
112
+ padding: 10px 14px;
113
+ border-bottom: 1px solid var(--border-subtle);
114
+ }
115
+
116
+ .cmd-palette-input-row .lucide {
117
+ width: 16px;
118
+ height: 16px;
119
+ color: var(--text-muted);
120
+ flex-shrink: 0;
121
+ }
122
+
123
+ .cmd-palette-input {
124
+ flex: 1;
125
+ border: none;
126
+ background: transparent;
127
+ color: var(--text);
128
+ font-size: 14px;
129
+ font-family: inherit;
130
+ outline: none;
131
+ min-width: 0;
132
+ }
133
+
134
+ .cmd-palette-input::placeholder {
135
+ color: var(--text-muted);
136
+ }
137
+
138
+ .cmd-palette-kbd {
139
+ font-size: 11px;
140
+ color: var(--text-dimmer);
141
+ cursor: pointer;
142
+ flex-shrink: 0;
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: center;
146
+ }
147
+
148
+ .cmd-palette-kbd .lucide {
149
+ width: 18px;
150
+ height: 18px;
151
+ }
152
+
153
+ /* --- Results area --- */
154
+ .cmd-palette-results {
155
+ overflow-y: auto;
156
+ padding: 6px 0;
157
+ flex: 1;
158
+ min-height: 0;
159
+ }
160
+
161
+ .cmd-palette-group-label {
162
+ font-size: 11px;
163
+ font-weight: 600;
164
+ color: var(--text-muted);
165
+ text-transform: uppercase;
166
+ letter-spacing: 0.4px;
167
+ padding: 8px 16px 4px;
168
+ }
169
+
170
+ .cmd-palette-item {
171
+ display: flex;
172
+ align-items: center;
173
+ gap: 10px;
174
+ padding: 8px 16px;
175
+ cursor: pointer;
176
+ transition: background 0.1s;
177
+ }
178
+
179
+ .cmd-palette-item:hover,
180
+ .cmd-palette-item.active {
181
+ background: rgba(var(--overlay-rgb), 0.06);
182
+ }
183
+
184
+ .cmd-palette-item-icon {
185
+ width: 28px;
186
+ height: 28px;
187
+ display: flex;
188
+ align-items: center;
189
+ justify-content: center;
190
+ font-size: 16px;
191
+ flex-shrink: 0;
192
+ border-radius: 6px;
193
+ background: rgba(var(--overlay-rgb), 0.04);
194
+ }
195
+
196
+ .cmd-palette-item-body {
197
+ flex: 1;
198
+ min-width: 0;
199
+ display: flex;
200
+ flex-direction: column;
201
+ gap: 2px;
202
+ }
203
+
204
+ .cmd-palette-item-title-row {
205
+ display: flex;
206
+ align-items: center;
207
+ gap: 8px;
208
+ }
209
+
210
+ .cmd-palette-item-title {
211
+ font-size: 13px;
212
+ color: var(--text);
213
+ white-space: nowrap;
214
+ overflow: hidden;
215
+ text-overflow: ellipsis;
216
+ min-width: 0;
217
+ }
218
+
219
+ .cmd-palette-item-date {
220
+ font-size: 11px;
221
+ color: var(--text-dimmer);
222
+ white-space: nowrap;
223
+ flex-shrink: 0;
224
+ }
225
+
226
+ .cmd-palette-item-meta {
227
+ display: flex;
228
+ align-items: center;
229
+ gap: 6px;
230
+ font-size: 11px;
231
+ color: var(--text-muted);
232
+ }
233
+
234
+ .cmd-palette-item-project {
235
+ white-space: nowrap;
236
+ overflow: hidden;
237
+ text-overflow: ellipsis;
238
+ color: var(--text-muted);
239
+ }
240
+
241
+ .cmd-palette-item-snippet {
242
+ white-space: nowrap;
243
+ overflow: hidden;
244
+ text-overflow: ellipsis;
245
+ font-style: italic;
246
+ color: var(--text-muted);
247
+ max-width: 300px;
248
+ }
249
+
250
+ .cmd-palette-item-arrow {
251
+ color: var(--text-dimmer);
252
+ flex-shrink: 0;
253
+ }
254
+
255
+ .cmd-palette-item-arrow .lucide {
256
+ width: 14px;
257
+ height: 14px;
258
+ }
259
+
260
+ /* --- Empty / loading --- */
261
+ .cmd-palette-empty {
262
+ padding: 24px 16px;
263
+ text-align: center;
264
+ font-size: 13px;
265
+ color: var(--text-muted);
266
+ }
267
+
268
+ .cmd-palette-loading {
269
+ padding: 24px 16px;
270
+ text-align: center;
271
+ font-size: 13px;
272
+ color: var(--text-muted);
273
+ }
274
+
275
+ /* --- Footer --- */
276
+ .cmd-palette-footer {
277
+ display: flex;
278
+ align-items: center;
279
+ justify-content: space-between;
280
+ padding: 6px 14px;
281
+ border-top: 1px solid var(--border-subtle);
282
+ font-size: 11px;
283
+ color: var(--text-muted);
284
+ }
285
+
286
+ .cmd-palette-brand {
287
+ display: flex;
288
+ align-items: center;
289
+ gap: 4px;
290
+ font-family: "Nunito", sans-serif;
291
+ font-size: 11px;
292
+ font-weight: 700;
293
+ color: var(--text-muted);
294
+ text-decoration: none;
295
+ transition: color 0.15s;
296
+ }
297
+
298
+ .cmd-palette-brand img {
299
+ border-radius: 3px;
300
+ }
301
+
302
+ .cmd-palette-brand:hover {
303
+ color: var(--text-secondary);
304
+ }
305
+
306
+ .cmd-palette-footer-shortcuts {
307
+ display: flex;
308
+ align-items: center;
309
+ gap: 10px;
310
+ }
311
+
312
+ .cmd-palette-footer kbd {
313
+ font-size: 10px;
314
+ color: var(--text-secondary);
315
+ background: rgba(var(--overlay-rgb), 0.08);
316
+ border: 1px solid var(--border);
317
+ border-radius: 3px;
318
+ padding: 0 4px;
319
+ font-family: inherit;
320
+ }
321
+
322
+ /* --- Mobile: bottom sheet style --- */
323
+ @media (max-width: 768px) {
324
+ /* Hide the top-bar search trigger on mobile */
325
+ .cmd-palette-searchbar {
326
+ display: none !important;
327
+ }
328
+
329
+ /* Palette dialog: bottom sheet instead of top dropdown */
330
+ .cmd-palette-dialog {
331
+ top: auto;
332
+ bottom: 0;
333
+ left: 0;
334
+ right: 0;
335
+ transform: none;
336
+ width: 100%;
337
+ max-height: 85dvh;
338
+ border-radius: 16px 16px 0 0;
339
+ border: none;
340
+ border-top: 1px solid var(--border-subtle);
341
+ animation: cmdPaletteMobileUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
342
+ padding-bottom: env(safe-area-inset-bottom, 0px);
343
+ }
344
+
345
+ @keyframes cmdPaletteMobileUp {
346
+ from { opacity: 0; transform: translateY(100%); }
347
+ to { opacity: 1; transform: translateY(0); }
348
+ }
349
+
350
+ /* Bigger input for touch */
351
+ .cmd-palette-input-row {
352
+ padding: 14px 16px;
353
+ }
354
+
355
+ .cmd-palette-input {
356
+ font-size: 16px; /* prevents iOS zoom */
357
+ }
358
+
359
+ /* Bigger tap targets */
360
+ .cmd-palette-item {
361
+ padding: 12px 16px;
362
+ min-height: 44px;
363
+ }
364
+
365
+ .cmd-palette-item-snippet {
366
+ display: none;
367
+ }
368
+
369
+ /* Hide keyboard shortcut hints */
370
+ .cmd-palette-footer-shortcuts {
371
+ display: none;
372
+ }
373
+ }
374
+
375
+ /* --- Project switcher (Cmd/Ctrl+E) ---
376
+ macOS Cmd+Tab-style quick switcher: centered modal with a darker
377
+ backdrop than the command palette, projects laid out horizontally
378
+ as icon+label tiles that wrap to multiple rows when there are many.
379
+ Reuses .cmd-palette shell so positioning/animations stay consistent. */
380
+ .project-switcher .cmd-palette-backdrop {
381
+ background: rgba(var(--shadow-rgb), 0.55);
382
+ }
383
+ .project-switcher-dialog {
384
+ top: 50%;
385
+ left: 50%;
386
+ transform: translate(-50%, -50%);
387
+ border-top: 1px solid var(--border);
388
+ border-radius: 16px;
389
+ width: min(820px, 85vw);
390
+ max-height: 80vh;
391
+ background: var(--bg-alt);
392
+ box-shadow: 0 20px 60px rgba(var(--shadow-rgb), 0.5);
393
+ animation: projSwitcherIn 0.12s ease-out;
394
+ }
395
+ @keyframes projSwitcherIn {
396
+ from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
397
+ to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
398
+ }
399
+ .project-switcher-header {
400
+ padding: 14px 20px 6px;
401
+ font-size: 11px;
402
+ font-weight: 600;
403
+ color: var(--text-dimmer);
404
+ text-transform: uppercase;
405
+ letter-spacing: 0.5px;
406
+ }
407
+ .project-switcher-dialog .cmd-palette-results {
408
+ padding: 12px 16px;
409
+ display: flex;
410
+ flex-wrap: wrap;
411
+ gap: 8px;
412
+ justify-content: flex-start;
413
+ overflow-y: auto;
414
+ max-height: calc(80vh - 110px);
415
+ }
416
+ .project-switcher-item {
417
+ flex: 0 0 auto;
418
+ width: 96px;
419
+ height: 104px;
420
+ padding: 10px 6px;
421
+ display: flex;
422
+ flex-direction: column;
423
+ align-items: center;
424
+ justify-content: flex-start;
425
+ gap: 8px;
426
+ border: 2px solid transparent;
427
+ border-radius: 12px;
428
+ background: transparent;
429
+ cursor: pointer;
430
+ transition: background 0.12s, border-color 0.12s;
431
+ text-align: center;
432
+ }
433
+ /* Icon-strip-style treatment: rounded bg-alt fill that turns accent
434
+ on hover/active, and a 4-direction drop-shadow + white glow on the
435
+ emoji img for readability on either background. */
436
+ .project-switcher-item .cmd-palette-item-icon {
437
+ width: 44px;
438
+ height: 44px;
439
+ font-size: 28px;
440
+ line-height: 1;
441
+ display: flex;
442
+ align-items: center;
443
+ justify-content: center;
444
+ border-radius: 12px;
445
+ background: var(--bg-alt);
446
+ color: var(--text-secondary);
447
+ flex-shrink: 0;
448
+ transition: background 0.15s, color 0.15s;
449
+ }
450
+ .project-switcher-item .cmd-palette-item-icon .lucide {
451
+ width: 22px;
452
+ height: 22px;
453
+ }
454
+ .project-switcher-item .cmd-palette-item-icon img.emoji {
455
+ width: 26px;
456
+ height: 26px;
457
+ vertical-align: middle;
458
+ margin: 0;
459
+ filter:
460
+ drop-shadow(1px 0 0 rgba(0,0,0,0.25))
461
+ drop-shadow(-1px 0 0 rgba(0,0,0,0.25))
462
+ drop-shadow(0 1px 0 rgba(0,0,0,0.25))
463
+ drop-shadow(0 -1px 0 rgba(0,0,0,0.25))
464
+ drop-shadow(0 0 4px rgba(255,255,255,0.35));
465
+ }
466
+ .project-switcher-item:hover .cmd-palette-item-icon,
467
+ .project-switcher-item.active .cmd-palette-item-icon {
468
+ background: var(--accent);
469
+ color: #fff;
470
+ }
471
+ .project-switcher-avatar {
472
+ width: 100%;
473
+ height: 100%;
474
+ border-radius: 12px;
475
+ object-fit: cover;
476
+ }
477
+ .project-switcher-item .cmd-palette-item-body {
478
+ width: 100%;
479
+ display: block;
480
+ }
481
+ .project-switcher-item .cmd-palette-item-title-row {
482
+ display: flex;
483
+ flex-direction: column;
484
+ align-items: center;
485
+ gap: 2px;
486
+ width: 100%;
487
+ }
488
+ .project-switcher-item .cmd-palette-item-title {
489
+ font-size: 12px;
490
+ font-weight: 500;
491
+ line-height: 1.2;
492
+ color: var(--text-secondary);
493
+ max-width: 100%;
494
+ overflow: hidden;
495
+ text-overflow: ellipsis;
496
+ white-space: nowrap;
497
+ display: block;
498
+ }
499
+ .project-switcher-item:hover {
500
+ background: transparent;
501
+ }
502
+ .project-switcher-item.active {
503
+ border-color: var(--accent);
504
+ background: transparent;
505
+ }
506
+ .project-switcher-item.active .cmd-palette-item-title {
507
+ color: var(--text);
508
+ }
509
+
510
+ .project-switcher-current {
511
+ font-size: 9px;
512
+ font-weight: 600;
513
+ color: var(--text-dimmer);
514
+ text-transform: uppercase;
515
+ letter-spacing: 0.5px;
516
+ }
517
+
518
+ /* Disabled tile (e.g. worktree with worktreeAccessible: false). Not a
519
+ valid switch target, so skip highlight, skip click, visually dim. */
520
+ .project-switcher-item.disabled {
521
+ opacity: 0.35;
522
+ cursor: not-allowed;
523
+ }
524
+ .project-switcher-item.disabled:hover {
525
+ background: transparent;
526
+ }
527
+ .project-switcher-item.disabled.active {
528
+ border-color: transparent;
529
+ background: transparent;
530
+ }
531
+ .project-switcher-disabled-reason {
532
+ font-size: 9px;
533
+ font-weight: 500;
534
+ color: var(--text-dimmer);
535
+ font-style: italic;
536
+ max-width: 100%;
537
+ overflow: hidden;
538
+ text-overflow: ellipsis;
539
+ white-space: nowrap;
540
+ }
541
+
542
+ .project-switcher-footer {
543
+ padding: 10px 16px;
544
+ font-size: 11px;
545
+ color: var(--text-dimmer);
546
+ border-top: 1px solid var(--border-subtle);
547
+ display: flex;
548
+ justify-content: center;
549
+ }
550
+ .project-switcher-footer kbd {
551
+ display: inline-block;
552
+ padding: 1px 5px;
553
+ margin: 0 1px;
554
+ background: rgba(var(--overlay-rgb), 0.1);
555
+ border-radius: 4px;
556
+ font-size: 10px;
557
+ font-family: inherit;
558
+ color: var(--text-muted);
559
+ }