@zeyos/zx 5.5.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 +56 -0
- package/dist/types/components/agent-thread/agent-thread.d.ts +583 -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/block-view/block-view.d.ts +205 -0
- package/dist/types/components/composer/composer.d.ts +736 -0
- 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/core/messages.d.ts +135 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/internal/agent-model.d.ts +587 -0
- package/dist/types/internal/highlight.d.ts +24 -0
- package/dist/types/internal/presence-loop.d.ts +148 -0
- package/dist/zx-zeyos.esm.js +4648 -4513
- package/dist/zx-zeyos.esm.min.js +2 -2
- package/dist/zx.css +1927 -1
- package/dist/zx.esm.js +15769 -9194
- package/dist/zx.esm.min.js +27 -8
- package/dist/zx.global.js +15769 -9194
- package/dist/zx.global.min.js +27 -8
- package/dist/zx.min.css +1 -1
- package/docs/api.json +1166 -5
- package/docs/llms.md +455 -2
- package/docs/llms.txt +10 -1
- package/package.json +1 -1
- package/src/components/agent-thread/agent-thread.css +417 -0
- package/src/components/agent-thread/agent-thread.js +1365 -0
- 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/block-view/block-view.css +300 -0
- package/src/components/block-view/block-view.js +523 -0
- package/src/components/composer/composer.css +403 -0
- package/src/components/composer/composer.js +1441 -0
- 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/source-list/source-list.css +208 -0
- package/src/components/source-list/source-list.js +355 -0
- package/src/core/messages.js +143 -0
- package/src/index.js +8 -0
- package/src/internal/agent-model.js +488 -0
- package/src/internal/highlight.js +104 -0
- package/src/internal/presence-loop.js +343 -0
- package/styles/zx.css +7 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* RunStatus — where an agent's run stands. The state is a glyph and a word; the steps and the cost
|
|
3
|
+
* are thin bars whose words sit beside or above them; the facts are a two-column property list
|
|
4
|
+
* with tabular figures. `data-compact` draws the state alone, as a pill for a narrow header, and
|
|
5
|
+
* `data-compact="icon"` as its glyph alone.
|
|
6
|
+
*/
|
|
7
|
+
.zx-run-status {
|
|
8
|
+
display: grid;
|
|
9
|
+
gap: var(--zx-space-2);
|
|
10
|
+
min-inline-size: 0;
|
|
11
|
+
color: var(--zx-color-text);
|
|
12
|
+
font-size: var(--zx-text-sm);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* The panel holds focus itself only when an update took away the control that had it. */
|
|
16
|
+
.zx-run-status:focus-visible {
|
|
17
|
+
border-radius: var(--zx-radius-md);
|
|
18
|
+
outline-color: transparent;
|
|
19
|
+
box-shadow: var(--zx-focus-ring);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ------------------------------------------------------------------ state -- */
|
|
23
|
+
|
|
24
|
+
.zx-run-status__state {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--zx-space-2);
|
|
28
|
+
margin: 0;
|
|
29
|
+
font-size: var(--zx-text-lg);
|
|
30
|
+
font-weight: var(--zx-weight-semibold);
|
|
31
|
+
letter-spacing: var(--zx-tracking-tight);
|
|
32
|
+
line-height: 1.3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.zx-run-status__summary {
|
|
36
|
+
margin: 0;
|
|
37
|
+
color: var(--zx-color-text-muted);
|
|
38
|
+
overflow-wrap: anywhere;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* ------------------------------------------------------------------ bars -- */
|
|
42
|
+
|
|
43
|
+
.zx-run-status__steps {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: var(--zx-space-3);
|
|
47
|
+
margin-block: var(--zx-space-1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.zx-run-status__bar,
|
|
51
|
+
.zx-run-status__meter {
|
|
52
|
+
position: relative;
|
|
53
|
+
display: block;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
flex: 1 1 auto;
|
|
56
|
+
block-size: 4px;
|
|
57
|
+
border-radius: var(--zx-radius-full);
|
|
58
|
+
background: var(--zx-color-border-subtle);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.zx-run-status__bar-fill,
|
|
62
|
+
.zx-run-status__meter-fill {
|
|
63
|
+
display: block;
|
|
64
|
+
block-size: 100%;
|
|
65
|
+
border-radius: inherit;
|
|
66
|
+
background: var(--zx-color-accent);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.zx-run-status:is([data-state="failed"], [data-state="blocked"]) .zx-run-status__bar-fill {
|
|
70
|
+
background: var(--zx-color-danger);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.zx-run-status:is([data-state="stopped"], [data-state="skipped"], [data-state="paused"]) .zx-run-status__bar-fill {
|
|
74
|
+
background: var(--zx-color-text-muted);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.zx-run-status__steps-text {
|
|
78
|
+
flex: none;
|
|
79
|
+
color: var(--zx-color-text-muted);
|
|
80
|
+
font-size: var(--zx-text-xs);
|
|
81
|
+
font-variant-numeric: tabular-nums;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.zx-run-status__meter[data-level="warning"] .zx-run-status__meter-fill {
|
|
85
|
+
background: var(--zx-color-warning);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.zx-run-status__meter[data-level="danger"] .zx-run-status__meter-fill {
|
|
89
|
+
background: var(--zx-color-danger);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* ---------------------------------------------------------------- actions -- */
|
|
93
|
+
|
|
94
|
+
.zx-run-status__actions {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-wrap: wrap;
|
|
97
|
+
gap: var(--zx-space-2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ------------------------------------------------------------------ facts -- */
|
|
101
|
+
|
|
102
|
+
.zx-run-status__props {
|
|
103
|
+
display: grid;
|
|
104
|
+
grid-template-columns: fit-content(9rem) minmax(0, 1fr);
|
|
105
|
+
gap: var(--zx-space-1) var(--zx-space-3);
|
|
106
|
+
margin: 0;
|
|
107
|
+
margin-block-start: var(--zx-space-1);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.zx-run-status__prop {
|
|
111
|
+
display: grid;
|
|
112
|
+
grid-column: 1 / -1;
|
|
113
|
+
grid-template-columns: subgrid;
|
|
114
|
+
align-items: baseline;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.zx-run-status__label {
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
color: var(--zx-color-text-muted);
|
|
120
|
+
text-overflow: ellipsis;
|
|
121
|
+
white-space: nowrap;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.zx-run-status__value {
|
|
125
|
+
display: grid;
|
|
126
|
+
gap: var(--zx-space-1);
|
|
127
|
+
min-inline-size: 0;
|
|
128
|
+
margin: 0;
|
|
129
|
+
font-variant-numeric: tabular-nums;
|
|
130
|
+
overflow-wrap: anywhere;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.zx-run-status__value > .zx-run-status__meter {
|
|
134
|
+
margin-block-end: var(--zx-space-1);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ---------------------------------------------------------------- compact -- */
|
|
138
|
+
|
|
139
|
+
.zx-run-status[data-compact] {
|
|
140
|
+
display: inline-flex;
|
|
141
|
+
vertical-align: middle;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.zx-run-status__pill {
|
|
145
|
+
position: relative;
|
|
146
|
+
display: inline-flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
gap: var(--zx-space-1);
|
|
149
|
+
color: var(--zx-color-text-muted);
|
|
150
|
+
font-size: var(--zx-text-sm);
|
|
151
|
+
white-space: nowrap;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.zx-run-status:is([data-state="waiting"], [data-state="blocked"], [data-state="failed"]) .zx-run-status__pill {
|
|
155
|
+
color: var(--zx-color-text);
|
|
156
|
+
font-weight: var(--zx-weight-medium);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* The glyph alone: the word stays the accessible text, and the pill's tooltip. */
|
|
160
|
+
.zx-run-status[data-compact="icon"] .zx-run-status__word {
|
|
161
|
+
position: absolute;
|
|
162
|
+
inline-size: 1px;
|
|
163
|
+
block-size: 1px;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
clip-path: inset(50%);
|
|
166
|
+
white-space: nowrap;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* ----------------------------------------------------------------- motion -- */
|
|
170
|
+
|
|
171
|
+
/* While the agent works, a soft shine runs along the steps bar. The state says it in words too. */
|
|
172
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
173
|
+
.zx-run-status[data-state="running"] .zx-run-status__bar::after {
|
|
174
|
+
content: "";
|
|
175
|
+
position: absolute;
|
|
176
|
+
inset: 0;
|
|
177
|
+
background: linear-gradient(90deg, transparent, var(--zx-color-bg-surface), transparent);
|
|
178
|
+
opacity: 0.7;
|
|
179
|
+
translate: -100% 0;
|
|
180
|
+
animation: zx-run-status-sweep 1.6s var(--zx-ease) infinite;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.zx-run-status[data-state="running"] .zx-run-status__bar:dir(rtl)::after {
|
|
184
|
+
animation-direction: reverse;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.zx-run-status__bar-fill,
|
|
188
|
+
.zx-run-status__meter-fill {
|
|
189
|
+
transition: inline-size var(--zx-dur-base) var(--zx-ease);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@keyframes zx-run-status-sweep {
|
|
193
|
+
to {
|
|
194
|
+
translate: 100% 0;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@media (forced-colors: active) {
|
|
200
|
+
.zx-run-status__bar,
|
|
201
|
+
.zx-run-status__meter {
|
|
202
|
+
border: 1px solid CanvasText;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.zx-run-status[data-state] :is(.zx-run-status__bar-fill, .zx-run-status__meter-fill) {
|
|
206
|
+
background: CanvasText;
|
|
207
|
+
}
|
|
208
|
+
}
|