clay-server 3.8.1 → 4.0.0-beta.2

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 (189) hide show
  1. package/lib/ask-user-mcp-server.js +5 -119
  2. package/lib/builtin-mates.js +6 -6
  3. package/lib/claude-hook-installer.js +15 -0
  4. package/lib/clay-history-mcp-server.js +62 -297
  5. package/lib/daemon.js +1 -1
  6. package/lib/debate-model-selection.js +119 -0
  7. package/lib/home-debate-tool-policy.js +164 -0
  8. package/lib/home-response-notifications.js +26 -0
  9. package/lib/mate-creation-mcp-server.js +55 -0
  10. package/lib/mate-ready-creation.js +95 -0
  11. package/lib/mates.js +2 -0
  12. package/lib/notes.js +2 -1
  13. package/lib/project-ask-user.js +64 -0
  14. package/lib/project-capsule-catalog.js +101 -0
  15. package/lib/project-connection.js +4 -0
  16. package/lib/project-debate-proposal.js +133 -17
  17. package/lib/project-debate.js +214 -110
  18. package/lib/project-delegated-follow-up.js +84 -0
  19. package/lib/project-delegated-session.js +53 -0
  20. package/lib/project-filesystem.js +7 -9
  21. package/lib/project-knowledge.js +1 -0
  22. package/lib/project-mate-creation-proposal.js +120 -0
  23. package/lib/project-memory.js +14 -7
  24. package/lib/project-models.js +157 -32
  25. package/lib/project-session-notes.js +2 -2
  26. package/lib/project-session-pair.js +8 -8
  27. package/lib/project-sessions.js +66 -51
  28. package/lib/project-vendor-login.js +397 -0
  29. package/lib/project-worker-proposal.js +25 -25
  30. package/lib/project-workspace-query.js +144 -0
  31. package/lib/project.js +349 -102
  32. package/lib/public/app.js +85 -42
  33. package/lib/public/css/avatar-imprints.css +0 -1
  34. package/lib/public/css/base.css +4 -0
  35. package/lib/public/css/capsule-ui.css +389 -0
  36. package/lib/public/css/command-palette.css +306 -6
  37. package/lib/public/css/home-capsule-library.css +243 -0
  38. package/lib/public/css/home-capsule-source.css +192 -0
  39. package/lib/public/css/home-debate-live.css +146 -0
  40. package/lib/public/css/home-debate-planning.css +125 -0
  41. package/lib/public/css/home-debates-archive.css +281 -0
  42. package/lib/public/css/home-hub.css +896 -405
  43. package/lib/public/css/home-mate-creation.css +34 -0
  44. package/lib/public/css/home-mate-model-picker.css +131 -0
  45. package/lib/public/css/home-mate-settings.css +344 -0
  46. package/lib/public/css/home-session-actions.css +265 -0
  47. package/lib/public/css/home-sidebar.css +667 -0
  48. package/lib/public/css/icon-strip.css +1 -2
  49. package/lib/public/css/mates.css +7 -34
  50. package/lib/public/css/pane.css +1 -1
  51. package/lib/public/css/playbook.css +0 -80
  52. package/lib/public/css/sticky-notes.css +53 -117
  53. package/lib/public/css/tui-attention.css +0 -44
  54. package/lib/public/css/workspace-assignment.css +45 -0
  55. package/lib/public/fonts/source-serif-4/LICENSE.md +93 -0
  56. package/lib/public/fonts/source-serif-4/SourceSerif4Caption-Semibold.ttf.woff2 +0 -0
  57. package/lib/public/index.html +93 -74
  58. package/lib/public/modules/app-connection.js +10 -1
  59. package/lib/public/modules/app-dm.js +43 -160
  60. package/lib/public/modules/app-home-hub.js +328 -585
  61. package/lib/public/modules/app-message-cards.js +242 -0
  62. package/lib/public/modules/app-message-router.js +84 -0
  63. package/lib/public/modules/app-messages.js +102 -37
  64. package/lib/public/modules/app-notifications.js +8 -119
  65. package/lib/public/modules/app-projects.js +9 -1
  66. package/lib/public/modules/app-rendering.js +21 -602
  67. package/lib/public/modules/avatar-imprint.js +11 -8
  68. package/lib/public/modules/chat-bubble-renderer.js +152 -0
  69. package/lib/public/modules/chat-render-runtime.js +198 -0
  70. package/lib/public/modules/command-palette.js +225 -436
  71. package/lib/public/modules/dm-render.js +82 -0
  72. package/lib/public/modules/home-capsule-creation-intent.js +31 -0
  73. package/lib/public/modules/home-capsule-library.js +146 -0
  74. package/lib/public/modules/home-capsule-source.js +383 -0
  75. package/lib/public/modules/home-chat-identity.js +35 -0
  76. package/lib/public/modules/home-chat-scroll.js +77 -0
  77. package/lib/public/modules/home-chat-stream-state.js +34 -0
  78. package/lib/public/modules/home-composer-focus.js +25 -0
  79. package/lib/public/modules/home-conversations-sheet.js +179 -0
  80. package/lib/public/modules/home-debate-activity.js +48 -0
  81. package/lib/public/modules/home-debate-controls.js +295 -0
  82. package/lib/public/modules/home-debate-launch.js +41 -0
  83. package/lib/public/modules/home-debate-live.js +284 -0
  84. package/lib/public/modules/home-debate-models.js +73 -0
  85. package/lib/public/modules/home-debate-planning.js +335 -0
  86. package/lib/public/modules/home-debates-archive.js +279 -0
  87. package/lib/public/modules/home-dock-resize.js +74 -0
  88. package/lib/public/modules/home-dock.js +446 -0
  89. package/lib/public/modules/home-mate-chat.js +496 -0
  90. package/lib/public/modules/home-mate-creation.js +109 -0
  91. package/lib/public/modules/home-mate-model-picker.js +281 -0
  92. package/lib/public/modules/home-mate-selection.js +38 -0
  93. package/lib/public/modules/home-mate-settings-menu.js +131 -0
  94. package/lib/public/modules/home-mate-settings.js +383 -0
  95. package/lib/public/modules/home-session-actions.js +373 -0
  96. package/lib/public/modules/home-session-model-confirmation.js +13 -0
  97. package/lib/public/modules/home-shell.js +9 -0
  98. package/lib/public/modules/home-sidebar-chat-list.js +63 -0
  99. package/lib/public/modules/home-sidebar.js +158 -0
  100. package/lib/public/modules/home-sub-surface.js +19 -0
  101. package/lib/public/modules/home-surface-boot.js +68 -0
  102. package/lib/public/modules/home-surface.js +141 -0
  103. package/lib/public/modules/home-tools.js +271 -0
  104. package/lib/public/modules/markdown.js +50 -2
  105. package/lib/public/modules/mate-management.js +86 -0
  106. package/lib/public/modules/mate-wizard.js +0 -7
  107. package/lib/public/modules/mention.js +17 -19
  108. package/lib/public/modules/pane-bridge.js +9 -0
  109. package/lib/public/modules/profile.js +4 -5
  110. package/lib/public/modules/project-settings.js +34 -28
  111. package/lib/public/modules/project-switcher.js +11 -5
  112. package/lib/public/modules/project-workspace-assignment.js +23 -0
  113. package/lib/public/modules/search-clay-chat.js +402 -0
  114. package/lib/public/modules/server-settings.js +14 -12
  115. package/lib/public/modules/session-actions.js +1 -1
  116. package/lib/public/modules/sidebar-mates.js +56 -552
  117. package/lib/public/modules/sidebar-mobile.js +7 -64
  118. package/lib/public/modules/sidebar-presence.js +37 -0
  119. package/lib/public/modules/split-pair-ui.js +13 -13
  120. package/lib/public/modules/split-view.js +7 -0
  121. package/lib/public/modules/sticky-notes.js +7 -6
  122. package/lib/public/modules/tool-input-composition.js +48 -0
  123. package/lib/public/modules/tool-llm-status.js +167 -0
  124. package/lib/public/modules/tool-renderer-advanced.js +285 -0
  125. package/lib/public/modules/tool-renderer-chart.js +158 -0
  126. package/lib/public/modules/tool-renderer-semantics.js +35 -0
  127. package/lib/public/modules/tool-renderer.js +464 -0
  128. package/lib/public/modules/tool-runtime.js +309 -0
  129. package/lib/public/modules/tool-ui-evaluator.js +97 -0
  130. package/lib/public/modules/tool-ui-tree.js +21 -0
  131. package/lib/public/modules/tui-attention.js +10 -0
  132. package/lib/public/modules/user-settings.js +16 -23
  133. package/lib/public/modules/vendor-login.js +287 -0
  134. package/lib/public/modules/worker-proposal.js +2 -2
  135. package/lib/public/modules/workspace-assignment-card.js +149 -0
  136. package/lib/public/modules/workspace-assignment-routing.js +4 -0
  137. package/lib/public/style.css +13 -2
  138. package/lib/runtime-env.js +65 -0
  139. package/lib/sdk-bridge.js +120 -32
  140. package/lib/sdk-message-processor.js +10 -6
  141. package/lib/server-home-capsule-creation.js +36 -0
  142. package/lib/server-home-chat-events.js +287 -0
  143. package/lib/server-home-chat.js +518 -0
  144. package/lib/server-home-clay-entry.js +65 -0
  145. package/lib/server-home-clay-session-links.js +26 -0
  146. package/lib/server-home-debate-planning.js +214 -0
  147. package/lib/server-home-debates.js +137 -0
  148. package/lib/server-home-mate-creation.js +261 -0
  149. package/lib/server-home-models.js +241 -0
  150. package/lib/server-home-preferences.js +61 -0
  151. package/lib/server-mates.js +37 -0
  152. package/lib/server-tools.js +377 -0
  153. package/lib/server.js +111 -59
  154. package/lib/session-pair-mcp-server.js +6 -6
  155. package/lib/sessions.js +18 -3
  156. package/lib/tool-capsule-source.js +142 -0
  157. package/lib/tool-control-mcp-server.js +126 -0
  158. package/lib/tool-llm.js +48 -0
  159. package/lib/tool-storage.js +77 -0
  160. package/lib/tool-ui-spec-advanced.js +82 -0
  161. package/lib/tool-ui-spec.js +261 -0
  162. package/lib/tools-registry.js +286 -0
  163. package/lib/users-home-dock-preferences.js +77 -0
  164. package/lib/users-home-surface-preferences.js +99 -0
  165. package/lib/users-preferences.js +4 -7
  166. package/lib/users.js +12 -0
  167. package/lib/whats-new-content.js +3 -3
  168. package/lib/workspace-assignment-service.js +420 -0
  169. package/lib/workspace-query-mcp-server.js +154 -0
  170. package/lib/workspace-query-service.js +492 -0
  171. package/lib/ws-schema.js +93 -12
  172. package/lib/yoke/adapters/acp.js +2 -1
  173. package/lib/yoke/adapters/antigravity.js +2 -1
  174. package/lib/yoke/adapters/claude-worker.js +11 -4
  175. package/lib/yoke/adapters/claude.js +73 -43
  176. package/lib/yoke/adapters/codex.js +40 -10
  177. package/lib/yoke/adapters/kiro.js +2 -1
  178. package/lib/yoke/claude-user-input.js +38 -0
  179. package/lib/yoke/codex-app-server.js +20 -2
  180. package/lib/yoke/codex-user-input.js +64 -0
  181. package/lib/yoke/complete-once.js +164 -0
  182. package/lib/yoke/index.js +5 -1
  183. package/lib/yoke/interface.js +19 -0
  184. package/lib/yoke/mcp-bridge-server.js +2 -6
  185. package/lib/yoke/user-input.js +254 -0
  186. package/package.json +3 -2
  187. package/lib/public/css/home-chat.css +0 -380
  188. package/lib/public/modules/home-chat.js +0 -438
  189. package/lib/server-clay-home.js +0 -245
@@ -120,6 +120,12 @@
120
120
  flex-shrink: 0;
121
121
  }
122
122
 
123
+ .cmd-palette-input-brand {
124
+ width: 22px;
125
+ height: 22px;
126
+ flex: 0 0 auto;
127
+ }
128
+
123
129
  .cmd-palette-input {
124
130
  flex: 1;
125
131
  border: none;
@@ -136,6 +142,12 @@
136
142
  }
137
143
 
138
144
  .cmd-palette-kbd {
145
+ width: 28px;
146
+ height: 28px;
147
+ padding: 0;
148
+ border: 0;
149
+ border-radius: 50%;
150
+ background: transparent;
139
151
  font-size: 11px;
140
152
  color: var(--text-dimmer);
141
153
  cursor: pointer;
@@ -143,11 +155,23 @@
143
155
  display: flex;
144
156
  align-items: center;
145
157
  justify-content: center;
158
+ transition: background 0.12s ease, color 0.12s ease;
159
+ }
160
+
161
+ .cmd-palette-kbd:hover {
162
+ background: color-mix(in srgb, var(--text) 7%, transparent);
163
+ color: var(--text);
164
+ }
165
+
166
+ .cmd-palette-kbd:focus-visible {
167
+ outline: 2px solid var(--accent);
168
+ outline-offset: 1px;
146
169
  }
147
170
 
148
171
  .cmd-palette-kbd .lucide {
149
- width: 18px;
150
- height: 18px;
172
+ width: 15px;
173
+ height: 15px;
174
+ stroke-width: 1.8;
151
175
  }
152
176
 
153
177
  /* --- Results area --- */
@@ -174,6 +198,12 @@
174
198
  padding: 8px 16px;
175
199
  cursor: pointer;
176
200
  transition: background 0.1s;
201
+ width: 100%;
202
+ border: 0;
203
+ background: transparent;
204
+ color: inherit;
205
+ font: inherit;
206
+ text-align: left;
177
207
  }
178
208
 
179
209
  .cmd-palette-item:hover,
@@ -265,6 +295,278 @@
265
295
  color: var(--text-muted);
266
296
  }
267
297
 
298
+ .cmd-palette-exact-empty {
299
+ margin: 8px 14px 2px;
300
+ padding: 10px 12px;
301
+ border: 1px solid var(--border-subtle);
302
+ border-radius: 8px;
303
+ color: var(--text-muted);
304
+ font-size: 12px;
305
+ }
306
+
307
+ .cmd-palette-item.is-ask-clay {
308
+ margin: 0 8px 4px;
309
+ width: calc(100% - 16px);
310
+ border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border-subtle));
311
+ border-radius: 9px;
312
+ background: color-mix(in srgb, var(--accent) 5%, transparent);
313
+ }
314
+
315
+ .cmd-palette-item.is-ask-clay:hover,
316
+ .cmd-palette-item.is-ask-clay.active {
317
+ background: color-mix(in srgb, var(--accent) 10%, transparent);
318
+ }
319
+
320
+ .cmd-palette-item.is-resume-clay {
321
+ margin: 0 8px 6px;
322
+ width: calc(100% - 16px);
323
+ border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border-subtle));
324
+ border-radius: 9px;
325
+ background: color-mix(in srgb, var(--accent) 4%, transparent);
326
+ }
327
+
328
+ .cmd-palette-item.is-resume-clay:hover,
329
+ .cmd-palette-item.is-resume-clay.active {
330
+ background: color-mix(in srgb, var(--accent) 8%, transparent);
331
+ }
332
+
333
+ .cmd-palette.is-chatting .cmd-palette-input-row { display: none; }
334
+ .cmd-palette.is-chatting .cmd-palette-results { padding: 0; overflow: hidden; }
335
+
336
+ .search-clay-chat {
337
+ min-height: 360px;
338
+ height: min(560px, calc(70vh - 38px));
339
+ display: flex;
340
+ flex-direction: column;
341
+ }
342
+
343
+ .search-clay-header {
344
+ min-height: 52px;
345
+ display: flex;
346
+ align-items: center;
347
+ justify-content: space-between;
348
+ gap: 12px;
349
+ padding: 8px 12px 8px 14px;
350
+ border-bottom: 1px solid var(--border-subtle);
351
+ }
352
+
353
+ .search-clay-identity,
354
+ .search-clay-identity > span,
355
+ .search-clay-header-actions {
356
+ display: flex;
357
+ align-items: center;
358
+ }
359
+
360
+ .search-clay-identity { min-width: 0; }
361
+ .search-clay-identity > span { align-items: flex-start; flex-direction: column; line-height: 1.15; }
362
+ .search-clay-identity strong { color: var(--text); font-size: 13px; }
363
+ .search-clay-identity small { color: var(--text-muted); font-size: 10px; }
364
+ .search-clay-header-actions { gap: 4px; }
365
+
366
+ .search-clay-icon-button {
367
+ display: inline-flex;
368
+ align-items: center;
369
+ gap: 5px;
370
+ height: 30px;
371
+ padding: 0 8px;
372
+ border: 1px solid transparent;
373
+ border-radius: 7px;
374
+ background: transparent;
375
+ color: var(--text-muted);
376
+ font: inherit;
377
+ font-size: 11px;
378
+ cursor: pointer;
379
+ }
380
+
381
+ .search-clay-icon-button:hover { background: rgba(var(--overlay-rgb), 0.06); color: var(--text); }
382
+ .search-clay-icon-button:disabled { opacity: 0.45; cursor: default; }
383
+ .search-clay-icon-button .lucide { width: 14px; height: 14px; }
384
+
385
+ .search-clay-transcript {
386
+ flex: 1;
387
+ min-height: 0;
388
+ overflow-y: auto;
389
+ padding: 16px 12px;
390
+ display: flex;
391
+ flex-direction: column;
392
+ gap: 12px;
393
+ }
394
+
395
+ .search-clay-message { width: 100%; min-width: 0; }
396
+ .search-clay-transcript .search-clay-message-user {
397
+ display: flex;
398
+ flex-direction: column;
399
+ align-items: flex-end;
400
+ justify-content: initial;
401
+ max-width: 100%;
402
+ margin: 0;
403
+ padding: 0;
404
+ }
405
+ body.wide-view .search-clay-transcript .search-clay-message-user > .dm-bubble-content,
406
+ body.mate-dm-active .search-clay-transcript .search-clay-message-user > .dm-bubble-content,
407
+ .search-clay-transcript .search-clay-message-user > .dm-bubble-content {
408
+ display: flex;
409
+ flex-direction: column;
410
+ align-items: flex-end;
411
+ width: 100%;
412
+ }
413
+ body.wide-view .search-clay-transcript .search-clay-message-user .bubble,
414
+ body.mate-dm-active .search-clay-transcript .search-clay-message-user .bubble,
415
+ .search-clay-transcript .search-clay-message-user .bubble {
416
+ width: fit-content;
417
+ max-width: min(82%, 420px);
418
+ padding: 8px 11px;
419
+ border: 0;
420
+ border-radius: 16px 16px 4px 16px;
421
+ background: var(--user-bubble);
422
+ color: var(--text);
423
+ font-size: 13px;
424
+ line-height: 1.5;
425
+ white-space: pre-wrap;
426
+ overflow-wrap: anywhere;
427
+ }
428
+
429
+ .search-clay-message-assistant {
430
+ display: grid;
431
+ grid-template-columns: 28px minmax(0, 1fr);
432
+ align-items: start;
433
+ gap: 8px;
434
+ }
435
+ .search-clay-message-assistant > .dm-bubble-avatar { display: block; width: 28px; height: 28px; margin-top: 1px; border-radius: 7px; object-fit: cover; background: var(--bg-alt); }
436
+ .search-clay-message-assistant > .dm-bubble-content { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; }
437
+ .search-clay-message-assistant .dm-bubble-header { display: flex; align-items: baseline; min-height: 17px; margin-bottom: 2px; }
438
+ .search-clay-message-assistant .dm-bubble-name { color: var(--text); font-size: 12px; font-weight: 650; line-height: 1.3; }
439
+ .search-clay-message-assistant .md-content { width: 100%; padding: 0; background: none; color: var(--text); font-size: 13px; line-height: 1.56; overflow-wrap: anywhere; }
440
+ .search-clay-message-assistant .md-content > :first-child { margin-top: 0; }
441
+ .search-clay-message-assistant .md-content > :last-child { margin-bottom: 0; }
442
+
443
+ .search-clay-activity-panel { width: 100%; min-width: 0; }
444
+ .search-clay-message-assistant .md-content:not(:empty) + .search-clay-activity-panel {
445
+ margin-top: 10px;
446
+ padding-top: 8px;
447
+ border-top: 1px solid var(--border-subtle);
448
+ }
449
+ .search-clay-activity-toggle {
450
+ display: flex;
451
+ align-items: center;
452
+ gap: 6px;
453
+ width: 100%;
454
+ min-height: 24px;
455
+ padding: 0;
456
+ border: 0;
457
+ background: transparent;
458
+ color: var(--text-muted);
459
+ text-align: left;
460
+ cursor: pointer;
461
+ }
462
+ .search-clay-activity-toggle:disabled { cursor: default; }
463
+ .search-clay-activity-toggle > .lucide:first-child { width: 13px; height: 13px; color: var(--accent); }
464
+ .search-clay-activity-toggle > span { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
465
+ .search-clay-activity-toggle strong { font-size: 10px; font-weight: 620; color: var(--text-muted); }
466
+ .search-clay-activity-toggle small { font-size: 10px; color: var(--text-dimmer); }
467
+ .search-clay-activity-chevron { width: 12px; height: 12px; margin-left: auto; transition: transform 0.14s ease; }
468
+ .search-clay-activity-toggle:disabled .search-clay-activity-chevron { visibility: hidden; }
469
+ .search-clay-activity-panel.is-expanded .search-clay-activity-chevron { transform: rotate(180deg); }
470
+ .search-clay-activity-list { width: 100%; display: flex; flex-direction: column; gap: 5px; padding: 2px 0 1px; }
471
+ .search-clay-activity-panel.is-collapsed .search-clay-activity-list { height: 42px; justify-content: flex-start; gap: 2px; overflow: hidden; }
472
+ .search-clay-activity-panel.is-collapsed .search-clay-activity-item { display: none; }
473
+ .search-clay-activity-panel.is-collapsed .search-clay-activity-item:nth-last-child(-n + 2) { display: grid; }
474
+ .search-clay-activity-panel.is-collapsed .search-clay-activity-item > span { flex-direction: row; align-items: baseline; gap: 6px; }
475
+ .search-clay-activity-panel.is-collapsed .search-clay-activity-item strong,
476
+ .search-clay-activity-panel.is-collapsed .search-clay-activity-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
477
+ .search-clay-activity-panel.is-expanded .search-clay-activity-list { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
478
+ .search-clay-activity-message .md-content:empty { display: none; }
479
+ .search-clay-activity-item { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: start; gap: 6px; color: var(--text-muted); }
480
+ .search-clay-activity-item > .lucide { width: 13px; height: 13px; margin-top: 2px; stroke-width: 1.8; }
481
+ .search-clay-activity-item.is-active > .lucide { color: var(--accent); animation: searchClaySpin 1.2s linear infinite; }
482
+ .search-clay-activity-item.is-done > .lucide { color: var(--success); }
483
+ .search-clay-activity-item.is-error > .lucide { color: var(--warning); }
484
+ .search-clay-activity-item > span { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
485
+ .search-clay-activity-item strong { color: var(--text-muted); font-size: 11px; font-weight: 520; line-height: 1.4; overflow-wrap: anywhere; }
486
+ .search-clay-activity-item small { color: var(--text-dimmer); font-size: 10px; line-height: 1.35; }
487
+ @keyframes searchClaySpin { to { transform: rotate(360deg); } }
488
+
489
+ .clayos-session-link {
490
+ display: inline-flex;
491
+ align-items: center;
492
+ gap: 6px;
493
+ min-height: 26px;
494
+ margin: 2px 1px;
495
+ padding: 3px 8px 3px 6px;
496
+ border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
497
+ border-radius: 7px;
498
+ background: color-mix(in srgb, var(--accent) 7%, var(--bg-alt));
499
+ color: var(--text);
500
+ font: inherit;
501
+ font-size: 11px;
502
+ line-height: 1;
503
+ vertical-align: middle;
504
+ cursor: pointer;
505
+ }
506
+ .clayos-session-link::before {
507
+ content: "\2197";
508
+ display: grid;
509
+ place-items: center;
510
+ width: 17px;
511
+ height: 17px;
512
+ border-radius: 5px;
513
+ background: color-mix(in srgb, var(--accent) 14%, transparent);
514
+ color: var(--accent);
515
+ font-size: 12px;
516
+ }
517
+ .clayos-session-link > span { font-weight: 620; }
518
+ .clayos-session-link > small { color: var(--text-muted); font-size: 10px; }
519
+ .clayos-session-link:hover { border-color: color-mix(in srgb, var(--accent) 52%, var(--border)); background: color-mix(in srgb, var(--accent) 11%, var(--bg-alt)); }
520
+ .clayos-session-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
521
+ .clayos-session-link.is-loading { opacity: 0.62; cursor: progress; }
522
+ .clayos-session-link.is-loading::before { animation: searchClaySpin 1.2s linear infinite; }
523
+ .clayos-session-link.is-error { border-color: color-mix(in srgb, var(--warning) 48%, var(--border)); }
524
+
525
+ .search-clay-pending {
526
+ align-self: flex-start;
527
+ display: flex;
528
+ align-items: center;
529
+ gap: 8px;
530
+ color: var(--text-muted);
531
+ font-size: 12px;
532
+ }
533
+
534
+ .search-clay-pending-copy { display: flex; flex-direction: column; gap: 1px; }
535
+ .search-clay-pending-copy strong { color: var(--text-muted); font-size: 12px; font-weight: 500; }
536
+ .search-clay-pending-copy small { color: var(--text-dimmer); font-size: 10px; font-variant-numeric: tabular-nums; }
537
+
538
+ .search-clay-dots { display: inline-flex; gap: 3px; }
539
+ .search-clay-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: searchClayDot 1s ease-in-out infinite; }
540
+ .search-clay-dots i:nth-child(2) { animation-delay: 0.14s; }
541
+ .search-clay-dots i:nth-child(3) { animation-delay: 0.28s; }
542
+ @keyframes searchClayDot { 0%, 70%, 100% { opacity: 0.3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
543
+
544
+ .search-clay-composer {
545
+ margin: 0 12px 12px;
546
+ display: flex;
547
+ align-items: flex-end;
548
+ gap: 7px;
549
+ padding: 8px 8px 8px 11px;
550
+ border: 1px solid var(--border);
551
+ border-radius: 10px;
552
+ background: var(--bg);
553
+ }
554
+
555
+ .search-clay-composer textarea { flex: 1; min-width: 0; min-height: 24px; max-height: 88px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; line-height: 1.45; }
556
+ .search-clay-send { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--text); color: var(--bg); cursor: pointer; }
557
+ .search-clay-send:disabled { opacity: 0.3; cursor: default; }
558
+ .search-clay-send .lucide { width: 14px; height: 14px; }
559
+
560
+ .cmd-palette-item:focus-visible,
561
+ .search-clay-icon-button:focus-visible,
562
+ .search-clay-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
563
+
564
+ @media (prefers-reduced-motion: reduce) {
565
+ .search-clay-dots i,
566
+ .search-clay-activity-item.is-active > .lucide,
567
+ .clayos-session-link.is-loading::before { animation: none; opacity: 0.65; }
568
+ }
569
+
268
570
  .cmd-palette-loading {
269
571
  padding: 24px 16px;
270
572
  text-align: center;
@@ -295,10 +597,6 @@
295
597
  transition: color 0.15s;
296
598
  }
297
599
 
298
- .cmd-palette-brand img {
299
- border-radius: 3px;
300
- }
301
-
302
600
  .cmd-palette-brand:hover {
303
601
  color: var(--text-secondary);
304
602
  }
@@ -309,6 +607,8 @@
309
607
  gap: 10px;
310
608
  }
311
609
 
610
+ .cmd-palette.is-chatting .cmd-palette-footer-shortcuts { display: none; }
611
+
312
612
  .cmd-palette-footer kbd {
313
613
  font-size: 10px;
314
614
  color: var(--text-secondary);
@@ -0,0 +1,243 @@
1
+ /* A restrained, conversation-first Capsule Library inside the Home Workbench. */
2
+
3
+ .home-capsule-library {
4
+ width: min(680px, 100%);
5
+ height: 100%;
6
+ margin: 0 auto;
7
+ padding: clamp(24px, 5vh, 54px) clamp(8px, 3vw, 34px) 30px;
8
+ overflow-y: auto;
9
+ }
10
+
11
+ .home-capsule-library-intro { padding: 0 4px 18px; }
12
+
13
+ .home-capsule-library h2 {
14
+ margin: 0;
15
+ color: var(--text);
16
+ font-size: clamp(20px, 2.6vw, 28px);
17
+ font-weight: 620;
18
+ letter-spacing: -0.025em;
19
+ }
20
+
21
+ .home-capsule-library h2:focus { outline: none; }
22
+
23
+ .home-capsule-library-intro p {
24
+ max-width: 470px;
25
+ margin: 8px 0 0;
26
+ color: var(--text-muted);
27
+ font-size: 12px;
28
+ line-height: 1.55;
29
+ }
30
+
31
+ .home-capsule-library-definition {
32
+ position: relative;
33
+ margin: 0 4px 22px;
34
+ padding: 2px 0 2px 16px;
35
+ }
36
+
37
+ .home-capsule-library-definition::before {
38
+ position: absolute;
39
+ top: 0;
40
+ bottom: 0;
41
+ left: 0;
42
+ width: 2px;
43
+ border-radius: 2px;
44
+ background: var(--accent);
45
+ content: "";
46
+ opacity: 0.7;
47
+ }
48
+
49
+ .home-capsule-library-definition h3 {
50
+ margin: 0 0 6px;
51
+ color: var(--text-secondary);
52
+ font-size: 10px;
53
+ font-weight: 700;
54
+ letter-spacing: 0.08em;
55
+ text-transform: uppercase;
56
+ }
57
+
58
+ .home-capsule-library-definition p {
59
+ max-width: 560px;
60
+ margin: 0;
61
+ color: var(--text-muted);
62
+ font-size: 12px;
63
+ line-height: 1.6;
64
+ }
65
+
66
+ .home-capsule-library-create {
67
+ padding: clamp(18px, 3.2vw, 28px);
68
+ border: 1px solid var(--border);
69
+ border-radius: 16px;
70
+ background: rgba(var(--overlay-rgb), 0.025);
71
+ box-shadow: 0 18px 42px rgba(0, 0, 0, 0.07);
72
+ }
73
+
74
+ .home-capsule-library-create-label {
75
+ display: block;
76
+ margin-bottom: 5px;
77
+ color: var(--text);
78
+ font-size: 15px;
79
+ font-weight: 650;
80
+ letter-spacing: -0.012em;
81
+ }
82
+
83
+ .home-capsule-library-create-guidance {
84
+ max-width: 540px;
85
+ margin: 0 0 13px;
86
+ color: var(--text-muted);
87
+ font-size: 11px;
88
+ line-height: 1.5;
89
+ }
90
+
91
+ .home-capsule-library-create-frame {
92
+ display: grid;
93
+ grid-template-columns: minmax(0, 1fr) 36px;
94
+ gap: 10px;
95
+ align-items: end;
96
+ padding: 12px 12px 12px 15px;
97
+ border: 1px solid var(--border-subtle);
98
+ border-radius: 12px;
99
+ background: var(--bg);
100
+ transition: border-color 140ms ease, box-shadow 140ms ease;
101
+ }
102
+
103
+ .home-capsule-library-create-frame:focus-within {
104
+ border-color: var(--border);
105
+ box-shadow: 0 0 0 3px rgba(var(--overlay-rgb), 0.055);
106
+ }
107
+
108
+ .home-capsule-library-create-input {
109
+ width: 100%;
110
+ min-height: 48px;
111
+ max-height: 130px;
112
+ padding: 1px 0;
113
+ resize: vertical;
114
+ border: 0;
115
+ outline: 0;
116
+ background: transparent;
117
+ color: var(--text);
118
+ font: inherit;
119
+ font-size: 13px;
120
+ line-height: 1.5;
121
+ }
122
+
123
+ .home-capsule-library-create-input::placeholder { color: var(--text-dimmer); }
124
+
125
+ .home-capsule-library-create-submit {
126
+ display: inline-flex;
127
+ align-items: center;
128
+ justify-content: center;
129
+ width: 36px;
130
+ height: 36px;
131
+ border: 1px solid var(--text);
132
+ border-radius: 10px;
133
+ background: var(--text);
134
+ color: var(--bg);
135
+ cursor: pointer;
136
+ transition: opacity 120ms ease, transform 120ms ease;
137
+ }
138
+
139
+ .home-capsule-library-create-submit:hover { opacity: 0.84; transform: translateY(-1px); }
140
+ .home-capsule-library-create-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
141
+ .home-capsule-library-create-submit .lucide { width: 15px; height: 15px; }
142
+
143
+ .home-capsule-library-create-status {
144
+ min-height: 16px;
145
+ margin: 8px 1px -8px;
146
+ color: var(--text-muted);
147
+ font-size: 10px;
148
+ line-height: 1.4;
149
+ }
150
+
151
+ .home-capsule-library-inventory { margin-top: 34px; }
152
+
153
+ .home-capsule-library-inventory h3 {
154
+ margin: 0;
155
+ padding: 0 5px 10px;
156
+ border-bottom: 1px solid var(--border-subtle);
157
+ color: var(--text-dimmer);
158
+ font-size: 9px;
159
+ font-weight: 700;
160
+ letter-spacing: 0.11em;
161
+ text-transform: uppercase;
162
+ }
163
+
164
+ .home-capsule-library-list {
165
+ display: flex;
166
+ flex-direction: column;
167
+ margin: 0;
168
+ padding-left: 0;
169
+ list-style: none;
170
+ }
171
+
172
+ .home-capsule-library-item { margin: 0; }
173
+
174
+ .home-capsule-library-row {
175
+ display: grid;
176
+ grid-template-columns: 34px minmax(0, 1fr) 20px;
177
+ gap: 11px;
178
+ align-items: center;
179
+ width: 100%;
180
+ min-height: 58px;
181
+ padding: 8px 5px;
182
+ border: 0;
183
+ border-bottom: 1px solid var(--border-subtle);
184
+ background: transparent;
185
+ color: var(--text);
186
+ font: inherit;
187
+ text-align: left;
188
+ cursor: pointer;
189
+ }
190
+
191
+ .home-capsule-library-row:hover,
192
+ .home-capsule-library-row:focus-visible { background: rgba(var(--overlay-rgb), 0.035); }
193
+
194
+ .home-capsule-library-row:focus-visible { outline: 1px solid var(--border); outline-offset: -1px; }
195
+
196
+ .home-capsule-library-icon {
197
+ display: inline-flex;
198
+ align-items: center;
199
+ justify-content: center;
200
+ width: 32px;
201
+ height: 32px;
202
+ border: 1px solid var(--border-subtle);
203
+ border-radius: 9px;
204
+ color: var(--text-secondary);
205
+ }
206
+
207
+ .home-capsule-library-icon .lucide,
208
+ .home-capsule-library-arrow .lucide { width: 14px; height: 14px; }
209
+
210
+ .home-capsule-library-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
211
+
212
+ .home-capsule-library-name {
213
+ overflow: hidden;
214
+ font-size: 12px;
215
+ font-weight: 620;
216
+ text-overflow: ellipsis;
217
+ white-space: nowrap;
218
+ }
219
+
220
+ .home-capsule-library-hint { color: var(--text-dimmer); font-size: 10px; }
221
+
222
+ .home-capsule-library-arrow {
223
+ display: inline-flex;
224
+ color: var(--text-dimmer);
225
+ opacity: 0;
226
+ transform: translate(-3px, 3px);
227
+ transition: opacity 120ms ease, transform 120ms ease;
228
+ }
229
+
230
+ .home-capsule-library-row:hover .home-capsule-library-arrow,
231
+ .home-capsule-library-row:focus-visible .home-capsule-library-arrow { opacity: 1; transform: translate(0, 0); }
232
+
233
+ @media (max-width: 768px) {
234
+ .home-capsule-library { padding: 24px 10px calc(30px + var(--safe-bottom, 0px)); }
235
+ .home-capsule-library-create { padding: 18px; }
236
+ .home-capsule-library-row { min-height: 62px; }
237
+ }
238
+
239
+ @media (prefers-reduced-motion: reduce) {
240
+ .home-capsule-library-create-frame,
241
+ .home-capsule-library-create-submit,
242
+ .home-capsule-library-arrow { transition: none; }
243
+ }