@zeyos/zx 5.4.0 → 5.6.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.
- package/CHANGELOG.md +136 -0
- package/README.md +23 -16
- package/dist/types/components/agent-thread/agent-thread.d.ts +583 -0
- package/dist/types/components/app-sidebar/app-sidebar.d.ts +33 -0
- package/dist/types/components/approval-card/approval-card.d.ts +596 -0
- package/dist/types/components/avatar/avatar.d.ts +91 -4
- package/dist/types/components/badge/badge.d.ts +5 -4
- package/dist/types/components/block-view/block-view.d.ts +205 -0
- package/dist/types/components/composer/composer.d.ts +736 -0
- package/dist/types/components/datebox/date-range-box.d.ts +15 -2
- package/dist/types/components/datebox/datebox.d.ts +37 -3
- package/dist/types/components/kbd/kbd.d.ts +41 -0
- package/dist/types/components/launcher/launcher.d.ts +4 -2
- package/dist/types/components/prose/prose.d.ts +69 -0
- package/dist/types/components/questionnaire/questionnaire.d.ts +0 -36
- package/dist/types/components/run-status/run-status.d.ts +393 -0
- package/dist/types/components/run-trace/run-trace.d.ts +624 -0
- package/dist/types/components/source-list/source-list.d.ts +177 -0
- package/dist/types/components/stat-tile/stat-tile.d.ts +20 -0
- package/dist/types/components/tag-picker/tag-picker.d.ts +11 -5
- package/dist/types/components/tree/tree.d.ts +44 -3
- package/dist/types/core/icons.d.ts +22 -1
- package/dist/types/core/messages.d.ts +135 -0
- package/dist/types/index.d.ts +12 -2
- package/dist/types/internal/agent-model.d.ts +587 -0
- package/dist/types/internal/app-rail.d.ts +10 -3
- package/dist/types/internal/highlight.d.ts +24 -0
- package/dist/types/internal/presence-loop.d.ts +148 -0
- package/dist/types/internal/row-actions.d.ts +151 -0
- package/dist/zx-zeyos.esm.js +4852 -4535
- package/dist/zx-zeyos.esm.min.js +4 -4
- package/dist/zx.css +3152 -434
- package/dist/zx.esm.js +13730 -6595
- package/dist/zx.esm.min.js +27 -8
- package/dist/zx.global.js +13730 -6595
- package/dist/zx.global.min.js +27 -8
- package/dist/zx.min.css +1 -1
- package/docs/api.json +1474 -205
- package/docs/llms.md +698 -39
- package/docs/llms.txt +12 -1
- package/package.json +1 -1
- package/src/components/account-menu/account-menu.js +2 -2
- package/src/components/agent-thread/agent-thread.css +417 -0
- package/src/components/agent-thread/agent-thread.js +1365 -0
- package/src/components/app-rail/app-rail.css +11 -11
- package/src/components/app-sidebar/app-sidebar.css +90 -17
- package/src/components/app-sidebar/app-sidebar.js +120 -12
- package/src/components/approval-card/approval-card.css +289 -0
- package/src/components/approval-card/approval-card.js +1377 -0
- package/src/components/avatar/avatar.css +56 -1
- package/src/components/avatar/avatar.js +148 -26
- package/src/components/badge/badge.css +33 -20
- package/src/components/badge/badge.js +5 -4
- package/src/components/block-view/block-view.css +300 -0
- package/src/components/block-view/block-view.js +523 -0
- package/src/components/breadcrumb/breadcrumb.css +28 -3
- package/src/components/breadcrumb/breadcrumb.js +2 -2
- package/src/components/button/button.css +24 -13
- package/src/components/button/button.js +20 -2
- package/src/components/calendar/calendar.css +14 -4
- package/src/components/card-view/card-view.js +2 -2
- package/src/components/chart/chart.js +20 -5
- package/src/components/check-button/check-button.css +11 -3
- package/src/components/check-button/check-button.js +3 -3
- package/src/components/composer/composer.css +403 -0
- package/src/components/composer/composer.js +1441 -0
- package/src/components/context-menu/context-menu.css +7 -1
- package/src/components/date-picker/date-picker.css +6 -0
- package/src/components/date-picker/date-picker.js +5 -5
- package/src/components/date-picker/date-range-picker.css +6 -0
- package/src/components/date-picker/date-range-picker.js +3 -3
- package/src/components/date-picker/month-picker.js +3 -3
- package/src/components/date-picker/time-picker.css +6 -0
- package/src/components/datebox/date-range-box.js +30 -6
- package/src/components/datebox/datebox.js +44 -7
- package/src/components/dialog/dialog.css +0 -1
- package/src/components/dialog/dialog.js +2 -1
- package/src/components/dock/dock.js +2 -2
- package/src/components/dropdown/dropdown.css +2 -1
- package/src/components/entity-ref/entity-ref.css +8 -1
- package/src/components/file-item/file-item.css +1 -1
- package/src/components/finder/finder.js +2 -2
- package/src/components/groupbox/groupbox.js +2 -2
- package/src/components/kanban-view/kanban-view.css +8 -4
- package/src/components/kanban-view/kanban-view.js +3 -3
- package/src/components/kbd/kbd.css +64 -0
- package/src/components/kbd/kbd.js +121 -0
- package/src/components/launcher/launcher.css +30 -25
- package/src/components/launcher/launcher.js +15 -21
- package/src/components/list-toolbar/list-toolbar.css +7 -1
- package/src/components/menu-button/menu-button.css +9 -2
- package/src/components/message/message.js +2 -2
- package/src/components/module-bar/module-bar.css +11 -1
- package/src/components/multi-value-editor/multi-value-editor.js +4 -4
- package/src/components/navigation-bar/navigation-bar.css +3 -2
- package/src/components/pagination/pagination.js +2 -2
- package/src/components/panel/panel.js +2 -2
- package/src/components/prose/prose.css +53 -0
- package/src/components/prose/prose.js +152 -0
- package/src/components/questionnaire/questionnaire.css +7 -17
- package/src/components/questionnaire/questionnaire.js +16 -1
- package/src/components/rating/rating.css +3 -1
- package/src/components/run-status/run-status.css +208 -0
- package/src/components/run-status/run-status.js +782 -0
- package/src/components/run-trace/run-trace.css +443 -0
- package/src/components/run-trace/run-trace.js +1209 -0
- package/src/components/search/search.js +2 -2
- package/src/components/select/glyphs.js +3 -3
- package/src/components/select/select.css +35 -7
- package/src/components/select/select.js +4 -4
- package/src/components/source-list/source-list.css +208 -0
- package/src/components/source-list/source-list.js +355 -0
- package/src/components/stat-tile/stat-tile.css +56 -2
- package/src/components/stat-tile/stat-tile.js +25 -2
- package/src/components/stepper/stepper.css +2 -1
- package/src/components/stepper/stepper.js +3 -3
- package/src/components/tabbox/tabbox.css +2 -2
- package/src/components/tabbox/tabbox.js +2 -2
- package/src/components/table/table.css +52 -16
- package/src/components/table/table.js +7 -5
- package/src/components/tag-picker/tag-picker.css +56 -43
- package/src/components/tag-picker/tag-picker.js +21 -16
- package/src/components/tree/tree.css +44 -0
- package/src/components/tree/tree.js +97 -9
- package/src/components/value-list/value-list.css +25 -4
- package/src/components/value-list/value-list.js +2 -1
- package/src/components/view/record-view.js +3 -3
- package/src/components/view-settings/view-settings.css +2 -1
- package/src/components/workspace-switcher/workspace-switcher.js +3 -3
- package/src/core/icons.js +34 -3
- package/src/core/messages.js +143 -0
- package/src/elements/define.js +1 -0
- package/src/index.js +12 -2
- package/src/internal/agent-model.js +488 -0
- package/src/internal/app-rail.js +5 -1
- package/src/internal/highlight.js +104 -0
- package/src/internal/presence-loop.js +343 -0
- package/src/internal/row-actions.js +203 -0
- package/styles/base.css +26 -1
- package/styles/prose.css +306 -0
- package/styles/tokens/dark.css +97 -120
- package/styles/tokens/global.css +24 -9
- package/styles/tokens/semantic.css +464 -184
- package/styles/tokens/themes.css +9 -0
- package/styles/zx.css +10 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* BlockView — an answer an agent wrote. The root is `.zx-prose`, which sets the paragraphs,
|
|
3
|
+
* headings, lists, quotes, and tables; this sheet adds only what prose has no element for: code
|
|
4
|
+
* with its caption, figures, citations, artifact cards, and the line a stopped answer ends with.
|
|
5
|
+
*/
|
|
6
|
+
.zx-block-view {
|
|
7
|
+
min-inline-size: 0;
|
|
8
|
+
overflow-wrap: anywhere;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.zx-block-view:empty {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* A single line break in model text is meant: an address, a sign-off. A blank line is a new
|
|
16
|
+
paragraph and never reaches here. */
|
|
17
|
+
.zx-block-view :is(p, li, td) {
|
|
18
|
+
white-space: pre-line;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ------------------------------------------------------------------ quote -- */
|
|
22
|
+
|
|
23
|
+
.zx-block-view__quote {
|
|
24
|
+
white-space: pre-line;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* ------------------------------------------------------------------ code -- */
|
|
28
|
+
|
|
29
|
+
.zx-block-view__code {
|
|
30
|
+
position: relative;
|
|
31
|
+
display: block;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
margin-inline: 0;
|
|
34
|
+
border-radius: var(--zx-radius-md);
|
|
35
|
+
background: var(--zx-color-bg-muted);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.zx-block-view__code-head {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
gap: var(--zx-space-2);
|
|
43
|
+
padding: var(--zx-space-1) var(--zx-space-3);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.zx-block-view__code-language {
|
|
47
|
+
color: var(--zx-color-text-muted);
|
|
48
|
+
font-family: var(--zx-font-mono);
|
|
49
|
+
font-size: var(--zx-text-xs);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.zx-block-view .zx-block-view__pre {
|
|
53
|
+
margin: 0;
|
|
54
|
+
padding: 0 var(--zx-space-3) var(--zx-space-3);
|
|
55
|
+
border-radius: 0;
|
|
56
|
+
background: none;
|
|
57
|
+
overflow-wrap: normal;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Numbered lines (`lines: true`), for code read at length: a long line wraps a step deeper than
|
|
61
|
+
its own indent instead of scrolling, and the numbers are drawn by CSS, so copying the code takes
|
|
62
|
+
the code alone. */
|
|
63
|
+
.zx-block-view .zx-block-view__pre[data-lines] {
|
|
64
|
+
--zx-block-view-gutter: 3ch;
|
|
65
|
+
--zx-block-view-hang: 2ch;
|
|
66
|
+
padding-block-start: var(--zx-space-1);
|
|
67
|
+
counter-reset: zx-block-view-line;
|
|
68
|
+
overflow-wrap: anywhere;
|
|
69
|
+
white-space: pre-wrap;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.zx-block-view__line {
|
|
73
|
+
position: relative;
|
|
74
|
+
display: block;
|
|
75
|
+
min-block-size: 1lh;
|
|
76
|
+
padding-inline-start: calc(var(--zx-block-view-gutter) + var(--zx-space-3) + var(--zx-block-view-indent, 0ch) + var(--zx-block-view-hang));
|
|
77
|
+
text-indent: calc(-1 * (var(--zx-block-view-indent, 0ch) + var(--zx-block-view-hang)));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.zx-block-view__line::before {
|
|
81
|
+
content: counter(zx-block-view-line);
|
|
82
|
+
counter-increment: zx-block-view-line;
|
|
83
|
+
position: absolute;
|
|
84
|
+
inset-inline-start: 0;
|
|
85
|
+
inline-size: var(--zx-block-view-gutter);
|
|
86
|
+
color: var(--zx-color-text-subtle);
|
|
87
|
+
text-align: end;
|
|
88
|
+
text-indent: 0;
|
|
89
|
+
user-select: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.zx-block-view__pre:focus-visible {
|
|
93
|
+
outline-color: transparent;
|
|
94
|
+
box-shadow: inset var(--zx-focus-ring);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.zx-block-view__token[data-token="keyword"] { color: var(--zx-color-tone-violet-fg); }
|
|
98
|
+
.zx-block-view__token[data-token="string"] { color: var(--zx-color-tone-green-fg); }
|
|
99
|
+
.zx-block-view__token[data-token="number"] { color: var(--zx-color-tone-orange-fg); }
|
|
100
|
+
.zx-block-view__token[data-token="comment"] { color: var(--zx-color-text-muted); }
|
|
101
|
+
|
|
102
|
+
/* ------------------------------------------------------------------ table -- */
|
|
103
|
+
|
|
104
|
+
/* A wide table scrolls inside the answer; its cells keep their words whole. */
|
|
105
|
+
.zx-block-view__table {
|
|
106
|
+
overflow-x: auto;
|
|
107
|
+
overflow-wrap: normal;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.zx-block-view__table:focus-visible {
|
|
111
|
+
outline-color: transparent;
|
|
112
|
+
box-shadow: var(--zx-focus-ring);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.zx-block-view__table :is(th, td)[data-align="end"] {
|
|
116
|
+
text-align: end;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.zx-block-view__table :is(th, td)[data-align="center"] {
|
|
120
|
+
text-align: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.zx-block-view__table td {
|
|
124
|
+
font-variant-numeric: tabular-nums;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* ------------------------------------------------------------------ figures -- */
|
|
128
|
+
|
|
129
|
+
.zx-block-view__figures {
|
|
130
|
+
display: grid;
|
|
131
|
+
/* The label keeps a readable width; a long detail wraps rather than squeezing it. */
|
|
132
|
+
grid-template-columns: minmax(min(12ch, 40%), 1fr) minmax(0, auto) auto;
|
|
133
|
+
margin-inline: 0;
|
|
134
|
+
font-size: var(--zx-text-sm);
|
|
135
|
+
font-variant-numeric: tabular-nums;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.zx-block-view__figure {
|
|
139
|
+
display: grid;
|
|
140
|
+
grid-column: 1 / -1;
|
|
141
|
+
grid-template-columns: subgrid;
|
|
142
|
+
align-items: baseline;
|
|
143
|
+
border-block-start: 1px solid var(--zx-color-border-subtle);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.zx-block-view__figure:first-child {
|
|
147
|
+
border-block-start: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.zx-block-view__figure > :is(dt, dd) {
|
|
151
|
+
margin: 0;
|
|
152
|
+
padding-block: var(--zx-space-1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.zx-block-view__figure-detail {
|
|
156
|
+
padding-inline-start: var(--zx-space-5);
|
|
157
|
+
color: var(--zx-color-text-muted);
|
|
158
|
+
text-align: end;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.zx-block-view__figure-value {
|
|
162
|
+
grid-column: 3;
|
|
163
|
+
padding-inline-start: var(--zx-space-5);
|
|
164
|
+
font-weight: var(--zx-weight-medium);
|
|
165
|
+
text-align: end;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ------------------------------------------------------------------ citations -- */
|
|
169
|
+
|
|
170
|
+
.zx-block-view__cite {
|
|
171
|
+
font-size: 0.7em;
|
|
172
|
+
line-height: 1;
|
|
173
|
+
vertical-align: 0.4em;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.zx-block-view__cite,
|
|
177
|
+
.zx-block-view__cite-button {
|
|
178
|
+
display: inline-block;
|
|
179
|
+
min-inline-size: 1.6em;
|
|
180
|
+
border-radius: var(--zx-radius-sm);
|
|
181
|
+
background: var(--zx-color-bg-muted);
|
|
182
|
+
color: var(--zx-color-text-muted);
|
|
183
|
+
font-weight: var(--zx-weight-medium);
|
|
184
|
+
font-variant-numeric: tabular-nums;
|
|
185
|
+
text-align: center;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.zx-block-view__cite:has(> .zx-block-view__cite-button) {
|
|
189
|
+
min-inline-size: 0;
|
|
190
|
+
background: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.zx-block-view__cite-button {
|
|
194
|
+
margin-inline-start: 1px;
|
|
195
|
+
padding: 0.15em 0.3em;
|
|
196
|
+
border: 0;
|
|
197
|
+
font: inherit;
|
|
198
|
+
font-weight: var(--zx-weight-medium);
|
|
199
|
+
line-height: 1.2;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.zx-block-view__cite-button:hover {
|
|
204
|
+
background: var(--zx-color-bg-hover);
|
|
205
|
+
color: var(--zx-color-text);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.zx-block-view__cite-button:focus-visible {
|
|
209
|
+
outline-color: transparent;
|
|
210
|
+
box-shadow: var(--zx-focus-ring);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* ------------------------------------------------------------------ artifacts -- */
|
|
214
|
+
|
|
215
|
+
.zx-block-view__artifact-row {
|
|
216
|
+
margin-inline: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.zx-block-view__artifact {
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: var(--zx-space-3);
|
|
223
|
+
inline-size: min(100%, 24rem);
|
|
224
|
+
padding: var(--zx-space-2) var(--zx-space-3);
|
|
225
|
+
padding-inline-start: var(--zx-space-2);
|
|
226
|
+
border: 1px solid var(--zx-color-border-subtle);
|
|
227
|
+
border-radius: var(--zx-radius-lg);
|
|
228
|
+
background: var(--zx-color-bg-surface);
|
|
229
|
+
color: inherit;
|
|
230
|
+
font: inherit;
|
|
231
|
+
font-size: var(--zx-text-sm);
|
|
232
|
+
text-align: start;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
button.zx-block-view__artifact {
|
|
236
|
+
cursor: pointer;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
button.zx-block-view__artifact:hover {
|
|
240
|
+
border-color: var(--zx-color-border);
|
|
241
|
+
background: var(--zx-color-bg-hover);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
button.zx-block-view__artifact[aria-expanded="true"] {
|
|
245
|
+
border-color: transparent;
|
|
246
|
+
background: var(--zx-color-bg-current);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
button.zx-block-view__artifact:focus-visible {
|
|
250
|
+
outline-color: transparent;
|
|
251
|
+
box-shadow: var(--zx-focus-ring);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.zx-block-view__artifact-tile {
|
|
255
|
+
display: inline-grid;
|
|
256
|
+
flex: 0 0 auto;
|
|
257
|
+
place-items: center;
|
|
258
|
+
inline-size: var(--zx-control-height);
|
|
259
|
+
block-size: var(--zx-control-height);
|
|
260
|
+
border-radius: var(--zx-radius-md);
|
|
261
|
+
background: var(--zx-color-tone-amber-bg);
|
|
262
|
+
color: var(--zx-color-tone-amber-fg);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.zx-block-view__artifact-tile[data-kind="code"] {
|
|
266
|
+
background: var(--zx-color-tone-violet-bg);
|
|
267
|
+
color: var(--zx-color-tone-violet-fg);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.zx-block-view__artifact-copy {
|
|
271
|
+
display: grid;
|
|
272
|
+
flex: 1 1 auto;
|
|
273
|
+
min-inline-size: 0;
|
|
274
|
+
line-height: 1.4;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.zx-block-view__artifact-name {
|
|
278
|
+
overflow: hidden;
|
|
279
|
+
font-weight: var(--zx-weight-medium);
|
|
280
|
+
text-overflow: ellipsis;
|
|
281
|
+
white-space: nowrap;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.zx-block-view__artifact-meta {
|
|
285
|
+
color: var(--zx-color-text-muted);
|
|
286
|
+
font-size: var(--zx-text-xs);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.zx-block-view__artifact-chevron {
|
|
290
|
+
display: inline-flex;
|
|
291
|
+
flex: 0 0 auto;
|
|
292
|
+
color: var(--zx-color-text-subtle);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* ------------------------------------------------------------------ states -- */
|
|
296
|
+
|
|
297
|
+
.zx-block-view__stopped {
|
|
298
|
+
color: var(--zx-color-text-muted);
|
|
299
|
+
font-size: var(--zx-text-sm);
|
|
300
|
+
}
|