reifyui 0.12.0 → 0.13.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 (82) hide show
  1. package/README.md +29 -0
  2. package/dist/chart.js +2 -0
  3. package/dist/chart.js.map +1 -1
  4. package/dist/chunk-EL2DHWOH.js +1710 -0
  5. package/dist/chunk-EL2DHWOH.js.map +1 -0
  6. package/dist/chunk-J633KV57.js +41 -0
  7. package/dist/chunk-J633KV57.js.map +1 -0
  8. package/dist/chunk-J7SECRIG.js +295 -0
  9. package/dist/chunk-J7SECRIG.js.map +1 -0
  10. package/dist/chunk-PIRPLH2Z.js +231 -0
  11. package/dist/chunk-PIRPLH2Z.js.map +1 -0
  12. package/dist/chunk-PZ5AY32C.js +10 -0
  13. package/dist/chunk-PZ5AY32C.js.map +1 -0
  14. package/dist/chunk-UKG4Z6QK.js +130 -0
  15. package/dist/chunk-UKG4Z6QK.js.map +1 -0
  16. package/dist/chunk-ZYWE47EO.js +19 -0
  17. package/dist/chunk-ZYWE47EO.js.map +1 -0
  18. package/dist/collab.cjs +169 -0
  19. package/dist/collab.cjs.map +1 -0
  20. package/dist/collab.d.ts +30 -0
  21. package/dist/collab.js +18 -0
  22. package/dist/collab.js.map +1 -0
  23. package/dist/graph.cjs +2244 -0
  24. package/dist/graph.cjs.map +1 -0
  25. package/dist/graph.d.ts +41 -0
  26. package/dist/graph.js +1870 -0
  27. package/dist/graph.js.map +1 -0
  28. package/dist/harness.js +1 -0
  29. package/dist/harness.js.map +1 -1
  30. package/dist/index.cjs +1699 -817
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.ts +3 -0
  33. package/dist/index.js +680 -1769
  34. package/dist/index.js.map +1 -1
  35. package/dist/sheet-doc.cjs +235 -0
  36. package/dist/sheet-doc.cjs.map +1 -0
  37. package/dist/sheet-doc.d.ts +16 -0
  38. package/dist/sheet-doc.js +20 -0
  39. package/dist/sheet-doc.js.map +1 -0
  40. package/dist/sheet.cjs +2322 -0
  41. package/dist/sheet.cjs.map +1 -0
  42. package/dist/sheet.d.ts +23 -0
  43. package/dist/sheet.js +237 -0
  44. package/dist/sheet.js.map +1 -0
  45. package/dist/slides.js +2 -0
  46. package/dist/slides.js.map +1 -1
  47. package/package.json +34 -2
  48. package/src/auth/client.js +4 -2
  49. package/src/collab/colors.js +18 -0
  50. package/src/collab/index.d.ts +30 -0
  51. package/src/collab/index.js +8 -0
  52. package/src/collab/keepAlive.js +34 -0
  53. package/src/collab/useLiveDoc.js +76 -0
  54. package/src/components/CascadeMenu.jsx +9 -3
  55. package/src/components/Composer.jsx +37 -3
  56. package/src/components/resizable.jsx +82 -12
  57. package/src/graph/ConnectPane.jsx +634 -0
  58. package/src/graph/ConnectToolDetail.jsx +565 -0
  59. package/src/graph/LogsPane.jsx +328 -0
  60. package/src/graph/Skeleton.jsx +13 -0
  61. package/src/graph/draft.js +108 -0
  62. package/src/graph/format.js +37 -0
  63. package/src/graph/index.d.ts +41 -0
  64. package/src/graph/index.js +14 -0
  65. package/src/graph/useGraphCollab.js +299 -0
  66. package/src/graph/vgraph.js +215 -0
  67. package/src/index.d.ts +3 -0
  68. package/src/index.js +4 -1
  69. package/src/mention/MentionInput.jsx +420 -0
  70. package/src/mention/mentionModel.js +177 -0
  71. package/src/sheet/RunStrip.jsx +57 -0
  72. package/src/sheet/SheetGrid.jsx +448 -423
  73. package/src/sheet/doc.d.ts +16 -0
  74. package/src/sheet/index.d.ts +23 -0
  75. package/src/sheet/index.js +10 -0
  76. package/src/sheet/sheetDoc.js +203 -0
  77. package/src/sheet/useSheetCollab.js +102 -0
  78. package/src/sheet/useSheetRun.js +80 -0
  79. package/styles/chat.css +2 -0
  80. package/styles/graph.css +395 -0
  81. package/styles/mention.css +79 -0
  82. package/styles/sheet.css +156 -112
@@ -0,0 +1,395 @@
1
+ /* Graph panes shared by every host (the ContextualGraph app and the studio's
2
+ Spaces): the Connect tab, the Logs tab, their dialogs and skeletons, the
3
+ keep-alive tab panes and the Graph / Connect / Logs switcher. Colors come
4
+ from the host's design tokens (--ink, --mute, --line, --brand, ...). */
5
+
6
+ /* Tokens the panes need that a host may not define: each resolves to the host's
7
+ own value when it has one and to the graph app's value otherwise. */
8
+ .cn-root, .lg-root, .cgdlg-backdrop, .wb-tabs, .pane {
9
+ --pn-scrim: var(--scrim, rgba(17,24,39,.42));
10
+ --pn-t-fast: var(--t-fast, 120ms ease);
11
+ --pn-code-bg: var(--code-bg, #1F2433);
12
+ --pn-code-ink: var(--code-ink, #E7EAF3);
13
+ --pn-focus-ring: var(--focus-ring, 0 0 0 3px rgba(66,48,156,.12));
14
+ --pn-warn-line: var(--warn-line, #F3DFB4);
15
+ --pn-warn-ink: var(--warn-ink, #92400E);
16
+ --pn-danger-line: var(--danger-line, #FECACA);
17
+ --pn-danger-bg: var(--danger-bg, #FEF2F2);
18
+ --pn-danger-ink: var(--danger-ink, #B91C1C);
19
+ --pn-cold-ink: var(--cold-ink, #475569);
20
+ --pn-info-ink: var(--info-ink, #075985);
21
+ --pn-ok-ink: var(--ok-ink, #047857);
22
+ --pn-hover-line: var(--hover-line, #CBD0DA);
23
+ }
24
+
25
+ /* Skeleton loaders — subtle opacity pulse on a neutral block. Shaped by the
26
+ call site (or the composed helpers) so real content lands with no shift. */
27
+ .sk {
28
+ display: inline-block; background: var(--line); border-radius: 6px;
29
+ animation: sk-pulse 1.5s ease-in-out infinite;
30
+ }
31
+ .sk-line { height: 12px; width: 100%; }
32
+ .sk-card { width: 100%; height: 100%; border-radius: var(--r-card); }
33
+ .sk-thumbnail { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
34
+ .sk-avatar { width: 32px; height: 32px; border-radius: 999px; }
35
+ .sk-table-row { width: 100%; height: 20px; }
36
+ @keyframes sk-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .8; } }
37
+ @media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
38
+
39
+ /* ── Dialogs: the package's Modal is the frame (reifyui/styles/preview.css); these are the
40
+ panes' own bodies inside it. ──────────────────────────────────────────────── */
41
+ .cn-dlg .cn-dlg-body { font-size: 13px; color: var(--mute); line-height: 1.55; margin-bottom: 16px; }
42
+ .cn-dlg .cn-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
43
+
44
+
45
+ /* Keep-alive tab panes: all visited panes stay MOUNTED (Logs search and
46
+ pagination, canvas pan/zoom survive tab switches); only the active one
47
+ is displayed. */
48
+ .gp-tabpane { display: flex; min-width: 0; min-height: 0; }
49
+ .gp-tabpane > * { flex: 1; min-width: 0; }
50
+ .gp-tabpane.gp-tab-hidden { display: none; }
51
+ .gp-placeholder { display: flex; padding: 12px; }
52
+
53
+ /* Segmented switcher — lifted from HarnessRouter's workbench toggle
54
+ (.wb-tabs/.wb-tab in harnessrouter/src/app/hr.css), restyled via tokens. */
55
+ .wb-tabs {
56
+ display: flex; gap: 4px; background: var(--brand-50); border: 1px solid var(--line);
57
+ border-radius: 10px; padding: 4px; width: fit-content;
58
+ }
59
+ .wb-tab {
60
+ font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 7px;
61
+ /* --ink-2, not --mute: on the tinted pill bg, --mute is 4.42:1 and 13px/600
62
+ is not WCAG large text, so the inactive primary-nav label needs the
63
+ darker tier to clear 4.5:1 (9.4:1 here). */
64
+ cursor: pointer; color: var(--ink-2); border: none; background: transparent;
65
+ font-family: inherit;
66
+ }
67
+ .wb-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
68
+
69
+ /* Generic panel + empty state (Connect / Logs placeholders, chat empty) */
70
+ .pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
71
+ .pane-empty {
72
+ flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
73
+ gap: 10px; color: var(--mute); font-size: 13px; text-align: center; padding: 32px;
74
+ }
75
+ .pane-empty .big { font-size: 14px; font-weight: 600; color: var(--ink-2); }
76
+ .pane-empty svg { color: var(--mute-2); }
77
+
78
+ /* Page loading / error strip */
79
+ .page-note { padding: 40px; text-align: center; color: var(--mute); font-size: 13.5px; flex: 1; }
80
+
81
+
82
+ /* ── Logs tab — the graph's activity trail. Design language lifted from the
83
+ HarnessRouter Traces list (row grid, kind badges, mono stats column,
84
+ expandable detail, skeleton rows), restyled with the CG tokens. ── */
85
+ .lg-root .pane { min-height: 0; container-type: inline-size; }
86
+ .lg-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; }
87
+ .lg-title { font-size: 14px; font-weight: 600; color: var(--ink); }
88
+ .lg-search {
89
+ display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px;
90
+ background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
91
+ color: var(--mute); width: min(320px, 100%); margin-left: auto;
92
+ }
93
+ .lg-search:focus-within { border-color: var(--brand); box-shadow: var(--pn-focus-ring); background: #fff; }
94
+ .lg-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; color: var(--ink); font-family: inherit; }
95
+ .lg-search input::placeholder { color: var(--mute-2); }
96
+ .lg-search-x { border: 0; background: transparent; color: var(--mute); cursor: pointer; display: inline-flex; padding: 2px; border-radius: 5px; }
97
+ .lg-search-x:hover { background: var(--line-soft); color: var(--ink-2); }
98
+
99
+ .lg-list { flex: 1; min-height: 0; overflow: auto; padding: 6px 8px 10px; }
100
+ .lg-row-wrap { border-radius: 9px; }
101
+ .lg-row-wrap.open { background: var(--surface-2); }
102
+ .lg-row {
103
+ display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
104
+ padding: 7px 10px; border: 0; background: transparent; cursor: pointer;
105
+ border-radius: 9px; font-family: inherit;
106
+ }
107
+ .lg-row:hover { background: var(--surface-2); }
108
+ .lg-caret { color: var(--mute-2); display: inline-flex; flex-shrink: 0; }
109
+ .lg-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; }
110
+ .lg-ok { background: var(--ok); }
111
+ .lg-error { background: var(--hot); }
112
+ .lg-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
113
+ .lg-k-add { color: var(--pn-ok-ink); background: var(--ok-soft); }
114
+ .lg-k-del { color: var(--pn-danger-ink); background: var(--hot-soft); }
115
+ .lg-k-edit { color: var(--pn-info-ink); background: var(--info-soft); }
116
+ .lg-k-read { color: var(--pn-cold-ink); background: var(--cold-soft); }
117
+ .lg-k-chat { color: var(--brand-ink); background: var(--brand-soft); }
118
+ .lg-k-err { color: var(--pn-danger-ink); background: var(--hot-soft); }
119
+ .lg-sum { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
120
+ .lg-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
121
+ .lg-actor { display: inline-flex; align-items: center; gap: 6px; max-width: 130px; }
122
+ .lg-actor-av {
123
+ width: 18px; height: 18px; border-radius: 999px; background: var(--brand); color: #fff;
124
+ font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
125
+ }
126
+ .lg-actor-mark {
127
+ width: 18px; height: 18px; border-radius: 999px; background: var(--brand-50);
128
+ border: 1px solid var(--line-soft); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
129
+ }
130
+ .lg-actor-name { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
131
+ .lg-dur { font-size: 11.5px; color: var(--mute); min-width: 44px; text-align: right; }
132
+ .lg-ago { font-size: 11.5px; color: var(--mute); min-width: 58px; text-align: right; }
133
+
134
+ .lg-detail { padding: 2px 12px 12px 40px; }
135
+ .lg-detail-meta { font-size: 11px; color: var(--mute); margin-bottom: 8px; }
136
+ /* Shared error-box recipe — .err-box for new call sites; the two legacy class
137
+ names (Logs detail + Connect) stay valid via co-located selectors. */
138
+ .err-box, .lg-detail-err, .cn-err {
139
+ font-size: 12.5px; color: var(--pn-danger-ink); background: var(--pn-danger-bg);
140
+ border: 1px solid var(--pn-danger-line); border-radius: 8px;
141
+ white-space: pre-wrap; word-break: break-word;
142
+ }
143
+ .lg-detail-err { padding: 8px 10px; margin-bottom: 8px; }
144
+ .lg-detail-none { font-size: 12.5px; color: var(--mute); }
145
+ .lg-detail .lg-json { margin: 0; max-height: 320px; overflow: auto; }
146
+
147
+ .lg-more { display: flex; justify-content: center; padding: 10px 0 6px; }
148
+
149
+ .lg-skel-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
150
+ .lg-skel-right { margin-left: auto; }
151
+
152
+ @container (max-width: 700px) {
153
+ .lg-dur { display: none; }
154
+ .lg-actor-name { display: none; }
155
+ .lg-actor { max-width: none; }
156
+ }
157
+ @container (max-width: 480px) {
158
+ .lg-badge { display: none; }
159
+ .lg-ago { min-width: 0; }
160
+ .lg-detail { padding-left: 12px; }
161
+ .lg-head { flex-wrap: wrap; }
162
+ .lg-search { margin-left: 0; width: 100%; }
163
+ }
164
+
165
+ /* Logs: external agent calls — the "Agent call" op family and the API-key
166
+ actor chip (distinct from people and the copilot). */
167
+ .lg-k-ext { color: var(--pn-warn-ink); background: var(--warm-soft); }
168
+ .lg-actor-key {
169
+ display: inline-flex; align-items: center; gap: 5px; max-width: 150px;
170
+ padding: 2px 8px; border-radius: 999px;
171
+ background: var(--warm-soft); color: var(--pn-warn-ink); border: 1px solid var(--pn-warn-line);
172
+ }
173
+ .lg-actor-key svg { flex-shrink: 0; }
174
+ .lg-actor-key .lg-actor-name { color: inherit; font-weight: 600; }
175
+
176
+ /* ── Connect tab — the connection card (MCP config + keys, progressive
177
+ disclosure) over a tools master/detail split. Same pane recipe as Logs:
178
+ the pane is a size container; the split's single-pane switch is JS-driven
179
+ (ResizeObserver on the pane, ~720px) because the STRUCTURE changes, while
180
+ fine-grained wraps stay container queries. ── */
181
+ .cn-root .pane { min-height: 0; container-type: inline-size; }
182
+ .cn-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
183
+ .cn-skel { padding: 16px; }
184
+ .cn-skel-split { display: grid; grid-template-columns: 280px 1fr; gap: 16px; margin-top: 14px; }
185
+ /* Flex column so bar spacing comes from the bars' own margins (no spacer divs). */
186
+ .cn-skel-col { display: flex; flex-direction: column; }
187
+
188
+ .cn-hint { font-size: 12px; color: var(--mute); }
189
+ .cn-warn { font-size: 12px; color: var(--pn-warn-ink); margin-top: 6px; line-height: 1.5; }
190
+ /* .cn-err shares the .err-box recipe (see Logs section); deltas only. */
191
+ .cn-err { padding: 7px 10px; margin-top: 8px; line-height: 1.45; }
192
+ .cn-err-top { margin: 0 16px 8px; }
193
+
194
+ /* Keyboard operability inside the Connect pane: the shared .switch hides its
195
+ input (display:none), which removes it from the tab order. Restore a
196
+ focusable, invisible input with a visible ring, and grow the hit target to
197
+ 28px with padding that does not move the layout. */
198
+ .cn-root .switch input {
199
+ display: block; position: absolute; inset: -5px; width: auto; height: auto;
200
+ margin: 0; opacity: 0; cursor: pointer;
201
+ }
202
+ .cn-root .switch input:focus-visible + .slider { outline: 2px solid var(--brand); outline-offset: 3px; }
203
+ .cn-root .switch input:disabled { cursor: not-allowed; }
204
+
205
+ /* ── Connection card ───────────────────────────────────────────────────── */
206
+ .cn-conn { flex-shrink: 0; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
207
+ .cn-conn-bar { display: flex; align-items: center; gap: 8px; }
208
+ .cn-conn-toggle {
209
+ flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
210
+ min-height: 30px; padding: 4px 6px; border: none; background: none; cursor: pointer;
211
+ border-radius: 8px; font-family: inherit; text-align: left; color: var(--mute);
212
+ }
213
+ .cn-conn-toggle:hover { background: var(--surface-2); }
214
+ .cn-conn-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
215
+ .cn-conn-chev { display: inline-flex; color: var(--mute-2); transition: transform var(--pn-t-fast); transform: rotate(-90deg); }
216
+ .cn-conn-chev.open { transform: rotate(0deg); }
217
+ .cn-conn-url {
218
+ flex: 0 1 auto; min-width: 0; font-size: 12.5px; color: var(--ink-2);
219
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
220
+ }
221
+ .cn-conn-count { flex-shrink: 0; font-size: 12px; color: var(--mute); }
222
+ .cn-conn-body { padding: 10px 6px 2px; }
223
+ .cn-code { margin: 0; }
224
+ .cn-caption { margin: 8px 0 0; font-size: 12px; color: var(--mute); line-height: 1.5; }
225
+
226
+ .cn-callout {
227
+ display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
228
+ margin-top: 10px; padding: 8px 12px; border-radius: 9px;
229
+ background: var(--warm-soft); border: 1px solid var(--pn-warn-line);
230
+ color: var(--pn-warn-ink); font-size: 12.5px;
231
+ }
232
+ .cn-callout > svg { flex-shrink: 0; }
233
+ .cn-callout > span { flex: 1; min-width: 200px; }
234
+
235
+ /* API keys (inside the card) */
236
+ .cn-keys-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
237
+ .cn-keys-h h4 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); }
238
+ .cn-keys { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
239
+ .cn-key-row { display: flex; align-items: center; gap: 14px; padding: 7px 10px; border-radius: 9px; }
240
+ .cn-key-row:hover { background: var(--surface-2); }
241
+ .cn-key-name {
242
+ display: inline-flex; align-items: center; gap: 7px; flex: 1; min-width: 120px;
243
+ font-size: 13px; font-weight: 600; color: var(--ink);
244
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
245
+ }
246
+ .cn-key-name svg { color: var(--mute); flex-shrink: 0; }
247
+ .cn-key-prefix {
248
+ font-size: 12px; color: var(--ink-2); background: var(--line-soft);
249
+ padding: 2px 8px; border-radius: 6px; flex-shrink: 0;
250
+ }
251
+ .cn-key-meta { font-size: 12px; color: var(--mute); white-space: nowrap; flex-shrink: 0; }
252
+ .cn-key-lbl { color: var(--mute); margin-right: 3px; }
253
+ .cn-key-revoke { flex-shrink: 0; }
254
+
255
+ /* Secret shown once at mint */
256
+ .cn-secret { padding: 12px 14px; background: var(--pn-code-bg); border-radius: 10px; }
257
+ .cn-secret code { font-size: 12.5px; color: var(--pn-code-ink); word-break: break-all; line-height: 1.5; }
258
+
259
+ /* ── Tools master/detail split ─────────────────────────────────────────── */
260
+ .cn-split { flex: 1; min-height: 420px; display: flex; }
261
+ .cn-list {
262
+ flex: 0 0 280px; min-width: 0; min-height: 0;
263
+ display: flex; flex-direction: column; border-right: 1px solid var(--line-soft);
264
+ }
265
+ .cn-list-h { flex-shrink: 0; padding: 10px 10px 6px; }
266
+ .cn-new-tool { width: 100%; height: 28px; }
267
+ .cn-list-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 10px; }
268
+ .cn-lrow {
269
+ display: flex; align-items: center; gap: 8px;
270
+ min-height: 32px; padding: 4px 8px; border-radius: 8px; cursor: pointer;
271
+ }
272
+ .cn-lrow:hover { background: var(--surface-2); }
273
+ .cn-lrow:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
274
+ .cn-lrow.sel { background: var(--brand-soft); }
275
+ .cn-lrow.sel .cn-lrow-name { color: var(--brand-ink); }
276
+ .cn-lrow-name {
277
+ flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ink);
278
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
279
+ }
280
+ .cn-lrow.off .cn-lrow-name { color: var(--mute); }
281
+ .cn-lrow.sel.off .cn-lrow-name { color: var(--brand-ink); opacity: .7; }
282
+ .cn-lrow .pill { flex-shrink: 0; height: 18px; font-size: 10.5px; padding: 0 6px; }
283
+ .cn-lrow-toggle { display: inline-flex; flex-shrink: 0; }
284
+ .cn-lrow-draft .cn-lrow-name { font-style: italic; font-weight: 500; }
285
+ .cn-list-empty { font-size: 12px; color: var(--mute); line-height: 1.55; padding: 8px 8px 0; }
286
+
287
+ /* Detail pane (its own size container: the params grid + try-it grid fold
288
+ against the DETAIL's width, which shrinks before the pane does). */
289
+ .cn-detail {
290
+ flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column;
291
+ container-type: inline-size;
292
+ }
293
+ .cn-dhead {
294
+ flex-shrink: 0; display: flex; align-items: center; gap: 10px;
295
+ padding: 10px 16px; border-bottom: 1px solid var(--line-soft); min-height: 46px;
296
+ }
297
+ .cn-dback { flex-shrink: 0; }
298
+ .cn-dname {
299
+ flex: 0 1 auto; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ink);
300
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
301
+ }
302
+ .cn-dhead .switch { margin-left: auto; }
303
+ .cn-dscroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; }
304
+ .cn-ddesc { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; max-width: 560px; }
305
+ .cn-dsec { margin-bottom: 20px; }
306
+ .cn-dsec:last-of-type { margin-bottom: 0; }
307
+ .cn-dsec-h { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--ink); }
308
+ .cn-dsec-sub { margin: 0 0 12px; line-height: 1.5; max-width: 560px; }
309
+ .cn-dfoot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
310
+ .cn-del {
311
+ border: none; background: none; padding: 5px 2px; min-height: 28px; cursor: pointer;
312
+ font-family: inherit; font-size: 12.5px; color: var(--mute);
313
+ }
314
+ .cn-del:hover { color: var(--pn-danger-ink); text-decoration: underline; }
315
+ .cn-del:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
316
+
317
+ /* Narrow (JS-measured on the pane): single-pane, list <-> detail. */
318
+ .cn-split.narrow .cn-detail { display: none; }
319
+ .cn-split.narrow .cn-list { flex: 1; border-right: none; }
320
+ .cn-split.narrow.show-detail .cn-list { display: none; }
321
+ .cn-split.narrow.show-detail .cn-detail { display: flex; }
322
+
323
+ /* Definition form (carried over from the old editor dialog) */
324
+ .cn-ed .field { margin-bottom: 14px; }
325
+ .cn-ed { max-width: 720px; }
326
+ .cn-ed-params-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
327
+ .cn-ed-params-h label { margin-bottom: 0; }
328
+ .cn-ed-params { display: flex; flex-direction: column; gap: 6px; }
329
+ .cn-ed-prow {
330
+ display: grid; gap: 6px; align-items: center;
331
+ grid-template-columns: minmax(88px, 1fr) 92px minmax(110px, 1.4fr) auto minmax(64px, .8fr) 28px;
332
+ }
333
+ .cn-ed-phead {
334
+ font-size: 10.5px; font-weight: 600; color: var(--mute);
335
+ text-transform: uppercase; letter-spacing: .04em; padding: 0 2px;
336
+ }
337
+ .cn-ed-req { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
338
+ .cn-ed-req input { margin: 0; accent-color: var(--brand); }
339
+ .cn-type-sel { width: 100%; }
340
+ .cn-type-sel .select { width: 100%; padding: 6px 30px 6px 8px; font-size: 12px; }
341
+ .cn-ed-query { min-height: 96px; resize: vertical; font-size: 12.5px; line-height: 1.55; }
342
+ .cn-ed-save { display: flex; justify-content: flex-end; }
343
+
344
+ /* Try it (carried over from the old test-runner dialog) */
345
+ .cn-try { max-width: 720px; }
346
+ .cn-test-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; }
347
+ .cn-test-field { margin-bottom: 10px; }
348
+ .cn-test-field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
349
+ .cn-try-run { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; }
350
+ .cn-try-note { font-style: italic; }
351
+ .cn-test-result { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; max-width: 720px; }
352
+ .cn-test-units { font-size: 12px; color: var(--mute); margin-bottom: 8px; }
353
+ .cn-test-json { margin: 0; max-height: 300px; overflow: auto; }
354
+
355
+ /* Detail-width ladder: params rows fold to a 2-up card grid when the DETAIL
356
+ pane is narrow (also covers the wide split next to an expanded chat). */
357
+ @container (max-width: 640px) {
358
+ .cn-ed-phead { display: none; }
359
+ .cn-ed-prow-wrap { border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px; }
360
+ .cn-ed-prow { grid-template-columns: 1fr 1fr; }
361
+ }
362
+
363
+ /* Pane-width ladders (container-measured on the pane, like Logs) */
364
+ @container (max-width: 700px) {
365
+ .cn-key-row { flex-wrap: wrap; row-gap: 4px; }
366
+ .cn-key-name { flex-basis: 100%; }
367
+ .cn-key-revoke { margin-left: auto; }
368
+ }
369
+ @container (max-width: 480px) {
370
+ .cn-conn-count { display: none; }
371
+ .cn-dhead { padding: 10px 12px; }
372
+ .cn-dscroll { padding: 12px; }
373
+ }
374
+
375
+ /* Controls the panes use that only the graph app defines globally; scoped to
376
+ the panes so a host's own controls are untouched. */
377
+ .cn-root .iconbtn, .dlg .iconbtn {
378
+ display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
379
+ border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--mute); cursor: pointer;
380
+ }
381
+ .cn-root .iconbtn:hover { background: var(--line-soft); color: var(--ink); }
382
+ .cn-root .iconbtn.danger:hover { background: var(--hot-soft); color: var(--pn-danger-ink); }
383
+ .cn-root .field, .dlg .field { margin-bottom: 14px; }
384
+ .cn-root .field label, .dlg .field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
385
+ .cn-root .select-wrap { position: relative; display: inline-block; }
386
+ .cn-root .select-wrap .select {
387
+ appearance: none; -webkit-appearance: none; width: 100%; padding: 8px 34px 8px 10px; cursor: pointer;
388
+ border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
389
+ font-size: 13px; font-family: inherit;
390
+ }
391
+ .cn-root .select-wrap .select:focus { outline: none; border-color: var(--brand); box-shadow: var(--pn-focus-ring); }
392
+ .cn-root .select-wrap .chev { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mute); display: flex; }
393
+ .cn-root .btn.danger, .cn-dlg .btn.danger { background: #fff; border-color: var(--pn-danger-line); color: var(--pn-danger-ink); }
394
+ .cn-root .btn.danger:hover, .cn-dlg .btn.danger:hover { background: var(--hot-soft); }
395
+ .cn-root .pill.brand { background: var(--brand-soft); color: var(--brand-ink); }
@@ -0,0 +1,79 @@
1
+ /* MentionInput (UI Core): the field, the pill, the menu at the caret. Tokens are the --uic-*
2
+ layer with the library's light values as fallbacks, so a host without a token layer still
3
+ gets a finished look. A pill's tint is its own --uic-mention-color (set per item), the brand
4
+ otherwise. */
5
+ .uic-mention-field { position: relative; min-width: 0; }
6
+ .uic-mention-editor {
7
+ min-height: 1.6em; max-height: 40vh; overflow-y: auto;
8
+ white-space: pre-wrap; overflow-wrap: anywhere; outline: none;
9
+ font: inherit; color: var(--uic-ink, #111317); line-height: 1.55;
10
+ }
11
+ .uic-mention-editor.is-empty::before {
12
+ content: attr(data-placeholder); color: var(--uic-mute, #5B5D66); opacity: .75; pointer-events: none;
13
+ position: absolute; left: 0; top: 0;
14
+ }
15
+ .uic-mention-field.is-disabled .uic-mention-editor { opacity: .6; cursor: not-allowed; }
16
+
17
+ /* the pill: one unit in the text, as tall as a line, never wrapping inside */
18
+ .uic-mention {
19
+ display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline;
20
+ margin: 0 1px; padding: 0 7px 0 3px; border-radius: 999px;
21
+ background: color-mix(in srgb, var(--uic-mention-color, var(--uic-brand, #285AFF)) 12%, transparent);
22
+ color: color-mix(in srgb, var(--uic-mention-color, var(--uic-brand, #285AFF)) 78%, var(--uic-ink, #111317));
23
+ font-weight: 600; font-size: .94em; line-height: 1.5; white-space: nowrap;
24
+ user-select: all; -webkit-user-select: all; cursor: default;
25
+ }
26
+ .uic-mention-editor .uic-mention:hover { background: color-mix(in srgb, var(--uic-mention-color, var(--uic-brand, #285AFF)) 20%, transparent); }
27
+ .uic-mention .uic-mention-ic {
28
+ display: inline-flex; align-items: center; justify-content: center;
29
+ width: 16px; height: 16px; border-radius: 50%; font-size: 11px; line-height: 1; flex-shrink: 0;
30
+ }
31
+ .uic-mention .uic-mention-ic.is-mono {
32
+ background: var(--uic-mention-color, var(--uic-brand, #285AFF)); color: #fff; font-size: 8.5px; font-weight: 700; letter-spacing: .02em;
33
+ }
34
+ .uic-mention .uic-mention-ic img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
35
+
36
+ /* the menu. The popover's box is styled here too, so a host that loads only this sheet (the
37
+ studio does not load the chat surface's stylesheet) still gets a floating panel; without
38
+ position: fixed it would land at the foot of the page and scroll the document to itself. */
39
+ .uic-pop.uic-mention-pop {
40
+ position: fixed; z-index: var(--uic-z-overlay, 9000); box-sizing: border-box; padding: 0; overflow: hidden;
41
+ background: var(--uic-surface, #fff); border: 1px solid var(--uic-line, #DDDFE6); border-radius: 12px;
42
+ box-shadow: var(--uic-shadow-1, 0 12px 32px rgba(17, 19, 23, .14));
43
+ }
44
+ .uic-mention-menu { max-height: inherit; overflow-y: auto; padding: 6px; }
45
+ .uic-mention-head { padding: 6px 10px 4px; font-size: 11px; color: var(--uic-mute, #5B5D66); }
46
+ .uic-mention-sec {
47
+ padding: 8px 10px 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
48
+ color: var(--uic-mute, #5B5D66);
49
+ }
50
+ .uic-mention-item {
51
+ display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
52
+ padding: 7px 10px; border: 0; border-radius: 9px; background: none; text-align: left; font: inherit; cursor: pointer;
53
+ color: var(--uic-ink, #111317);
54
+ }
55
+ .uic-mention-item.is-active { background: var(--uic-brand-faint, #EFF3FF); }
56
+ .uic-mention-item.is-disabled { cursor: default; opacity: .55; }
57
+ .uic-mention-item .uic-mention-ic {
58
+ display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
59
+ width: 26px; height: 26px; border-radius: 8px; font-size: 15px;
60
+ background: color-mix(in srgb, var(--uic-mention-color, var(--uic-brand, #285AFF)) 12%, transparent);
61
+ color: var(--uic-mention-color, var(--uic-brand, #285AFF));
62
+ }
63
+ .uic-mention-item .uic-mention-ic img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
64
+ .uic-mention-item .uic-mention-ic .is-mono { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
65
+ .uic-mention-text { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
66
+ .uic-mention-item .uic-mention-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
67
+ .uic-mention-desc { font-size: 12px; color: var(--uic-mute, #5B5D66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
68
+ .uic-mention-tag {
69
+ flex-shrink: 0; font-size: 11px; color: var(--uic-mute, #5B5D66);
70
+ padding: 2px 7px; border-radius: 999px; background: var(--uic-line, #EFF1F4);
71
+ }
72
+ .uic-mention-empty { padding: 12px 10px; font-size: 12.5px; color: var(--uic-mute, #5B5D66); }
73
+
74
+ /* pills in read-only text (a message, a preview) */
75
+ .uic-mention-text-view { white-space: pre-wrap; overflow-wrap: anywhere; }
76
+
77
+ @media (max-width: 640px) {
78
+ .uic-mention-desc { display: none; }
79
+ }