@zhin.js/adapter-sandbox 1.1.36 → 1.2.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 +49 -0
- package/README.md +5 -0
- package/package.json +20 -17
- package/pages/index/ConversationRecoveryPanel.js +5 -4
- package/pages/index/ConversationRecoveryPanel.tsx +7 -6
- package/pages/index/HtmlMessage.js +45 -8
- package/pages/index/HtmlMessage.tsx +67 -17
- package/pages/index/SandboxChat.js +135 -66
- package/pages/index/SandboxChat.tsx +353 -273
- package/pages/index/agentTrace.js +1 -1
- package/pages/index/agentTrace.ts +1 -1
- package/pages/index/conversationRecovery.js +28 -0
- package/pages/index/conversationRecovery.ts +41 -0
- package/pages/index/index.js +2 -0
- package/pages/index/index.tsx +2 -0
- package/pages/index/messages.js +2 -1
- package/pages/index/messages.ts +2 -1
- package/pages/index/styles.js +322 -309
- package/pages/index/styles.ts +322 -309
- package/pages/index/workspaceStyles.js +1737 -0
- package/pages/index/workspaceStyles.ts +1736 -0
|
@@ -0,0 +1,1736 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workspace styles moved from the Console (ADR 0063 D13, step 1). Until P2 the Console shipped them in
|
|
3
|
+
* `console-ui/src/agent-playground.css` (all of it serves only this page) and `im-workspace.css`
|
|
4
|
+
* (only the rules for the classes this page renders: `channel-sidebar`, `chat-area`, `rich-text-editor`,
|
|
5
|
+
* `editor-*` and the `im-markdown-*` / `im-inline-code` / `im-message-link` classes of
|
|
6
|
+
* `@zhin.js/client`'s MarkdownContent), and listed the class names in `remote-entry-style-contract.ts` so
|
|
7
|
+
* its Tailwind build kept them. The page now injects them itself, before `sandboxStyles`, so the cascade is
|
|
8
|
+
* the one the Console produced: every selector is scoped to the page with `:where(.zhin-sandbox)`, which
|
|
9
|
+
* adds no specificity, and the rules stay unlayered as they were in the Console.
|
|
10
|
+
* Plain CSS: no Tailwind utilities, `@apply` or theme functions. Values read the Console theme tokens.
|
|
11
|
+
* Step 2 (the page renders `@zhin.js/console-ui`): element rules skip library controls with
|
|
12
|
+
* `:where(:not(.console-control, [data-state]))` (no added specificity), rules for markup the page no longer
|
|
13
|
+
* renders were removed, and `styles.ts` adds the layout for the components.
|
|
14
|
+
*/
|
|
15
|
+
export const workspaceStyles = `
|
|
16
|
+
/* ---- from zhinjs/console console-ui/src/agent-playground.css ---- */
|
|
17
|
+
.agent-playground-shell:where(.zhin-sandbox) {
|
|
18
|
+
--playground-accent: var(--primary);
|
|
19
|
+
--playground-accent-foreground: var(--primary-foreground);
|
|
20
|
+
--playground-accent-soft: var(--accent);
|
|
21
|
+
--playground-line: var(--border);
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr);
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: calc(100dvh - var(--console-header-h, 4.5rem) - var(--console-page-padding-block) - 1rem);
|
|
26
|
+
min-height: 36rem;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
border: 1px solid transparent;
|
|
29
|
+
border-radius: var(--console-radius-4);
|
|
30
|
+
background: hsl(var(--card));
|
|
31
|
+
box-shadow: var(--console-elevation-1);
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
isolation: isolate;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.zhin-sandbox) .agent-playground-conversation[hidden],
|
|
37
|
+
:where(.zhin-sandbox) .agent-playground-composer[hidden] {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.zhin-sandbox) .agent-playground-conversation-details {
|
|
42
|
+
flex: 1;
|
|
43
|
+
min-height: 0;
|
|
44
|
+
overflow: auto;
|
|
45
|
+
padding: var(--console-space-4);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where(.zhin-sandbox) .agent-playground-recovery {
|
|
49
|
+
display: grid;
|
|
50
|
+
flex: none;
|
|
51
|
+
max-height: min(40dvh, 24rem);
|
|
52
|
+
overflow: auto;
|
|
53
|
+
gap: var(--console-space-3);
|
|
54
|
+
margin: var(--console-space-4);
|
|
55
|
+
font-size: var(--console-text-body);
|
|
56
|
+
}
|
|
57
|
+
:where(.zhin-sandbox) .agent-playground-recovery[hidden] { display: none; }
|
|
58
|
+
|
|
59
|
+
:where(.zhin-sandbox) .agent-playground-recovery > section,
|
|
60
|
+
:where(.zhin-sandbox) .agent-playground-recovery > details {
|
|
61
|
+
min-width: 0;
|
|
62
|
+
padding: var(--console-space-4);
|
|
63
|
+
border: 1px solid hsl(var(--border));
|
|
64
|
+
border-radius: var(--console-radius-2);
|
|
65
|
+
background: hsl(var(--background));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:where(.zhin-sandbox) .agent-playground-recovery h3 { margin-bottom: var(--console-space-3); font-weight: var(--console-weight-strong); }
|
|
69
|
+
:where(.zhin-sandbox) .agent-playground-recovery summary { display: flex; flex-wrap: wrap; gap: var(--console-space-2) var(--console-space-4); align-items: baseline; cursor: pointer; }
|
|
70
|
+
:where(.zhin-sandbox) .agent-playground-recovery time { margin-left: auto; font-size: var(--console-text-label); color: hsl(var(--muted-foreground)); }
|
|
71
|
+
:where(.zhin-sandbox) .agent-playground-recovery details[open] summary { margin-bottom: var(--console-space-4); }
|
|
72
|
+
:where(.zhin-sandbox) .agent-playground-recovery details > a:where(:not(.console-control, [data-state])) { display: inline-flex; margin: var(--console-space-2) var(--console-space-3) 0 0; color: hsl(var(--primary)); }
|
|
73
|
+
:where(.zhin-sandbox) .agent-playground-recovery > p[role=alert],
|
|
74
|
+
:where(.zhin-sandbox) .agent-playground-history-navigation p[role=alert] { color: hsl(var(--destructive)); overflow-wrap: anywhere; }
|
|
75
|
+
:where(.zhin-sandbox) .agent-playground-recovery > button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-recovery > p > button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-history-navigation button:where(:not(.console-control, [data-state])) { padding: var(--console-space-2) var(--console-space-3); border-radius: var(--console-radius-1); color: hsl(var(--primary)); cursor: pointer; }
|
|
76
|
+
:where(.zhin-sandbox) .agent-playground-history-navigation { padding: var(--console-space-2) var(--console-space-4); font-size: var(--console-text-label); }
|
|
77
|
+
:where(.zhin-sandbox) .agent-playground-history-notice { padding: var(--console-space-2) var(--console-space-4); color: hsl(var(--muted-foreground)); text-align: center; font-size: var(--console-text-label); }
|
|
78
|
+
:where(.zhin-sandbox) .agent-playground-main:has(> .agent-playground-recovery:not([hidden])) .agent-playground-empty { display: none; }
|
|
79
|
+
|
|
80
|
+
.agent-playground-shell.has-inspector:where(.zhin-sandbox) {
|
|
81
|
+
grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr) minmax(16rem, 19rem);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:where(.zhin-sandbox) .agent-playground-mobilebar {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:where(.zhin-sandbox) .agent-playground-sessions.channel-sidebar {
|
|
89
|
+
position: relative;
|
|
90
|
+
inset: auto;
|
|
91
|
+
z-index: 2;
|
|
92
|
+
width: auto;
|
|
93
|
+
max-width: none;
|
|
94
|
+
height: 100%;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
transform: none;
|
|
98
|
+
border: 0;
|
|
99
|
+
border-right: 1px solid hsl(var(--playground-line) / 0.7);
|
|
100
|
+
background: hsl(var(--sidebar));
|
|
101
|
+
box-shadow: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where(.zhin-sandbox) .agent-playground-brand {
|
|
105
|
+
padding: var(--console-space-5) var(--console-space-4) var(--console-space-4);
|
|
106
|
+
border-bottom: 1px solid hsl(var(--playground-line) / 0.56);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:where(.zhin-sandbox) .agent-playground-brand h2,
|
|
110
|
+
:where(.zhin-sandbox) .agent-playground-inspector-head h2,
|
|
111
|
+
:where(.zhin-sandbox) .agent-playground-run-title h2,
|
|
112
|
+
:where(.zhin-sandbox) .agent-playground-empty h2 {
|
|
113
|
+
margin: 0;
|
|
114
|
+
letter-spacing: -0.025em;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where(.zhin-sandbox) .agent-playground-brand h2 {
|
|
118
|
+
font-size: var(--console-text-body);
|
|
119
|
+
font-weight: var(--console-weight-strong);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:where(.zhin-sandbox) .agent-playground-brand small {
|
|
123
|
+
display: block;
|
|
124
|
+
margin-top: 0;
|
|
125
|
+
color: hsl(var(--muted-foreground));
|
|
126
|
+
font-size: var(--console-text-label);
|
|
127
|
+
letter-spacing: 0.04em;
|
|
128
|
+
text-transform: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:where(.zhin-sandbox) .agent-playground-mark,
|
|
132
|
+
:where(.zhin-sandbox) .agent-playground-empty-mark {
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
color: hsl(var(--playground-accent));
|
|
137
|
+
background: hsl(var(--playground-accent-soft));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:where(.zhin-sandbox) .agent-playground-mark {
|
|
141
|
+
width: 2rem;
|
|
142
|
+
height: 2rem;
|
|
143
|
+
border: 1px solid hsl(var(--playground-accent) / 0.17);
|
|
144
|
+
border-radius: var(--console-radius-2);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:where(.zhin-sandbox) .agent-playground-connection {
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
width: 1.75rem;
|
|
150
|
+
height: 1.75rem;
|
|
151
|
+
align-items: center;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
border: 1px solid hsl(var(--border));
|
|
154
|
+
border-radius: var(--console-radius-full);
|
|
155
|
+
background: hsl(var(--background) / 0.72);
|
|
156
|
+
color: hsl(var(--muted-foreground));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:where(.zhin-sandbox) .agent-playground-connection.is-online {
|
|
160
|
+
border-color: hsl(var(--playground-accent) / 0.22);
|
|
161
|
+
color: hsl(var(--playground-accent));
|
|
162
|
+
outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.06); outline-offset: calc(var(--console-border-focus) * -1);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:where(.zhin-sandbox) .agent-playground-section-label {
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
justify-content: space-between;
|
|
169
|
+
padding: var(--console-space-4) var(--console-space-3) var(--console-space-2);
|
|
170
|
+
color: hsl(var(--muted-foreground));
|
|
171
|
+
font-size: var(--console-text-label);
|
|
172
|
+
font-weight: var(--console-weight-strong);
|
|
173
|
+
letter-spacing: 0.055em;
|
|
174
|
+
text-transform: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:where(.zhin-sandbox) .agent-playground-section-label span:last-child {
|
|
178
|
+
font-variant-numeric: tabular-nums;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:where(.zhin-sandbox) .agent-playground-session-list {
|
|
182
|
+
min-height: 0;
|
|
183
|
+
flex: 1;
|
|
184
|
+
overflow-y: auto;
|
|
185
|
+
padding: 0 var(--console-space-2) var(--console-space-3);
|
|
186
|
+
scrollbar-width: thin;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:where(.zhin-sandbox) .agent-playground-session {
|
|
190
|
+
position: relative;
|
|
191
|
+
display: flex;
|
|
192
|
+
width: 100%;
|
|
193
|
+
align-items: center;
|
|
194
|
+
gap: var(--console-space-3);
|
|
195
|
+
margin: 0 0;
|
|
196
|
+
padding: var(--console-space-2) var(--console-space-3);
|
|
197
|
+
border: 0;
|
|
198
|
+
border-radius: var(--console-radius-2);
|
|
199
|
+
background: transparent;
|
|
200
|
+
color: hsl(var(--foreground));
|
|
201
|
+
text-align: left;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
transition: background 160ms ease;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:where(.zhin-sandbox) .agent-playground-session:hover {
|
|
207
|
+
background: hsl(var(--background) / 0.72);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:where(.zhin-sandbox) .agent-playground-session.active {
|
|
211
|
+
background: hsl(var(--background));
|
|
212
|
+
border-inline-start: var(--console-border-focus) solid hsl(var(--playground-accent));
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:where(.zhin-sandbox) .agent-playground-session-icon,
|
|
216
|
+
:where(.zhin-sandbox) .agent-playground-run-icon,
|
|
217
|
+
:where(.zhin-sandbox) .agent-playground-message-avatar {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
flex-shrink: 0;
|
|
220
|
+
align-items: center;
|
|
221
|
+
justify-content: center;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:where(.zhin-sandbox) .agent-playground-session-icon {
|
|
225
|
+
width: 2rem;
|
|
226
|
+
height: 2rem;
|
|
227
|
+
border-radius: var(--console-radius-2);
|
|
228
|
+
background: hsl(var(--muted));
|
|
229
|
+
color: hsl(var(--muted-foreground));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:where(.zhin-sandbox) .agent-playground-session.active .agent-playground-session-icon {
|
|
233
|
+
background: hsl(var(--playground-accent-soft));
|
|
234
|
+
color: hsl(var(--playground-accent));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:where(.zhin-sandbox) .agent-playground-new-session {
|
|
238
|
+
padding: var(--console-space-2) var(--console-space-3);
|
|
239
|
+
border-top: 1px solid hsl(var(--playground-line) / 0.56);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:where(.zhin-sandbox) .agent-playground-new-form {
|
|
243
|
+
display: grid;
|
|
244
|
+
gap: var(--console-space-2);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:where(.zhin-sandbox) .agent-playground-new-form > input:where(:not(.console-control, [data-state])) {
|
|
248
|
+
min-width: 0;
|
|
249
|
+
height: 2.15rem;
|
|
250
|
+
padding: 0 var(--console-space-3);
|
|
251
|
+
border: 1px solid hsl(var(--border));
|
|
252
|
+
border-radius: var(--console-radius-2);
|
|
253
|
+
outline: 0;
|
|
254
|
+
background: hsl(var(--background) / 0.75);
|
|
255
|
+
color: hsl(var(--foreground));
|
|
256
|
+
font-size: var(--console-text-label);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:where(.zhin-sandbox) .agent-playground-new-form > input:focus:where(:not(.console-control, [data-state])) {
|
|
260
|
+
border-color: hsl(var(--playground-accent) / 0.65);
|
|
261
|
+
outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.1); outline-offset: calc(var(--console-border-focus) * -1);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:where(.zhin-sandbox) .agent-playground-scope-picker {
|
|
265
|
+
display: grid;
|
|
266
|
+
grid-template-columns: repeat(3, 1fr);
|
|
267
|
+
gap: var(--console-space-1);
|
|
268
|
+
padding: var(--console-space-1);
|
|
269
|
+
border-radius: var(--console-radius-2);
|
|
270
|
+
background: hsl(var(--muted));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
:where(.zhin-sandbox) .agent-playground-scope-picker button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-new-actions button:where(:not(.console-control, [data-state])) {
|
|
274
|
+
border: 0;
|
|
275
|
+
border-radius: var(--console-radius-1);
|
|
276
|
+
background: transparent;
|
|
277
|
+
color: hsl(var(--muted-foreground));
|
|
278
|
+
font-size: var(--console-text-label);
|
|
279
|
+
cursor: pointer;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:where(.zhin-sandbox) .agent-playground-scope-picker button:where(:not(.console-control, [data-state])) {
|
|
283
|
+
min-height: 1.65rem;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
:where(.zhin-sandbox) .agent-playground-scope-picker button.active:where(:not(.console-control, [data-state])) {
|
|
287
|
+
background: hsl(var(--background));
|
|
288
|
+
color: hsl(var(--foreground));
|
|
289
|
+
box-shadow: var(--console-elevation-1);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
:where(.zhin-sandbox) .agent-playground-new-actions {
|
|
293
|
+
display: flex;
|
|
294
|
+
justify-content: flex-end;
|
|
295
|
+
gap: var(--console-space-1);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
:where(.zhin-sandbox) .agent-playground-new-actions button:where(:not(.console-control, [data-state])) {
|
|
299
|
+
min-height: 1.8rem;
|
|
300
|
+
padding: 0 var(--console-space-3);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
:where(.zhin-sandbox) .agent-playground-new-actions button.primary:where(:not(.console-control, [data-state])) {
|
|
304
|
+
background: hsl(var(--playground-accent));
|
|
305
|
+
color: hsl(var(--playground-accent-foreground));
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
:where(.zhin-sandbox) .agent-playground-endpoint {
|
|
309
|
+
display: flex;
|
|
310
|
+
min-width: 0;
|
|
311
|
+
align-items: center;
|
|
312
|
+
justify-content: space-between;
|
|
313
|
+
gap: var(--console-space-2);
|
|
314
|
+
padding: var(--console-space-2) var(--console-space-3) var(--console-space-3);
|
|
315
|
+
border-top: 1px solid hsl(var(--playground-line) / 0.56);
|
|
316
|
+
color: hsl(var(--muted-foreground));
|
|
317
|
+
font-size: var(--console-text-label);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
:where(.zhin-sandbox) .agent-playground-endpoint strong {
|
|
321
|
+
overflow: hidden;
|
|
322
|
+
color: hsl(var(--foreground) / 0.82);
|
|
323
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
324
|
+
font-size: var(--console-text-label);
|
|
325
|
+
text-overflow: ellipsis;
|
|
326
|
+
white-space: nowrap;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:where(.zhin-sandbox) .agent-playground-main.chat-area {
|
|
330
|
+
display: flex;
|
|
331
|
+
flex-direction: column;
|
|
332
|
+
gap: 0;
|
|
333
|
+
height: 100%;
|
|
334
|
+
min-height: 0;
|
|
335
|
+
min-width: 0;
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
background: hsl(var(--background));
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
:where(.zhin-sandbox) .agent-playground-runbar {
|
|
341
|
+
display: flex;
|
|
342
|
+
flex-shrink: 0;
|
|
343
|
+
flex-wrap: wrap;
|
|
344
|
+
min-height: 4.75rem;
|
|
345
|
+
align-items: center;
|
|
346
|
+
justify-content: space-between;
|
|
347
|
+
gap: var(--console-space-4);
|
|
348
|
+
padding: var(--console-space-3) var(--console-space-4);
|
|
349
|
+
border-bottom: 1px solid hsl(var(--playground-line) / 0.7);
|
|
350
|
+
background: hsl(var(--background) / 0.9);
|
|
351
|
+
backdrop-filter: blur(14px);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
:where(.zhin-sandbox) .agent-playground-run-identity {
|
|
355
|
+
display: flex;
|
|
356
|
+
flex: 1 1 14rem;
|
|
357
|
+
min-width: 0;
|
|
358
|
+
align-items: center;
|
|
359
|
+
gap: var(--console-space-3);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
:where(.zhin-sandbox) .agent-playground-run-identity > div {
|
|
363
|
+
flex: 1;
|
|
364
|
+
min-width: 0;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
:where(.zhin-sandbox) .agent-playground-run-icon {
|
|
368
|
+
width: 2.35rem;
|
|
369
|
+
height: 2.35rem;
|
|
370
|
+
border: 1px solid hsl(var(--playground-accent) / 0.18);
|
|
371
|
+
border-radius: var(--console-radius-2);
|
|
372
|
+
background: hsl(var(--playground-accent-soft));
|
|
373
|
+
color: hsl(var(--playground-accent));
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
:where(.zhin-sandbox) .agent-playground-run-title {
|
|
377
|
+
display: flex;
|
|
378
|
+
flex-wrap: wrap;
|
|
379
|
+
min-width: 0;
|
|
380
|
+
align-items: center;
|
|
381
|
+
gap: var(--console-space-2);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
:where(.zhin-sandbox) .agent-playground-run-title h2 {
|
|
385
|
+
min-width: 0;
|
|
386
|
+
max-width: 100%;
|
|
387
|
+
overflow: hidden;
|
|
388
|
+
font-size: var(--console-text-section);
|
|
389
|
+
font-weight: var(--console-weight-strong);
|
|
390
|
+
text-overflow: ellipsis;
|
|
391
|
+
white-space: nowrap;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
:where(.zhin-sandbox) .agent-playground-run-title span {
|
|
395
|
+
flex-shrink: 0;
|
|
396
|
+
padding: var(--console-space-1) var(--console-space-2);
|
|
397
|
+
border: 1px solid hsl(var(--border));
|
|
398
|
+
border-radius: var(--console-radius-full);
|
|
399
|
+
color: hsl(var(--muted-foreground));
|
|
400
|
+
font-size: var(--console-text-label);
|
|
401
|
+
font-weight: var(--console-weight-strong);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
:where(.zhin-sandbox) .agent-playground-run-identity code {
|
|
405
|
+
display: block;
|
|
406
|
+
max-width: 100%;
|
|
407
|
+
margin-top: var(--console-space-1);
|
|
408
|
+
overflow: hidden;
|
|
409
|
+
color: hsl(var(--muted-foreground));
|
|
410
|
+
font-size: var(--console-text-label);
|
|
411
|
+
text-overflow: ellipsis;
|
|
412
|
+
white-space: nowrap;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
:where(.zhin-sandbox) .agent-playground-run-actions {
|
|
416
|
+
display: flex;
|
|
417
|
+
flex-wrap: wrap;
|
|
418
|
+
min-width: 0;
|
|
419
|
+
max-width: 100%;
|
|
420
|
+
margin-left: auto;
|
|
421
|
+
justify-content: flex-end;
|
|
422
|
+
align-items: center;
|
|
423
|
+
gap: var(--console-space-1);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
:where(.zhin-sandbox) .agent-playground-run-actions a:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-actions button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-inspector-head button:where(:not(.console-control, [data-state])) {
|
|
427
|
+
display: inline-flex;
|
|
428
|
+
min-width: 2rem;
|
|
429
|
+
height: 2rem;
|
|
430
|
+
align-items: center;
|
|
431
|
+
justify-content: center;
|
|
432
|
+
gap: var(--console-space-1);
|
|
433
|
+
padding: 0 var(--console-space-2);
|
|
434
|
+
border: 1px solid hsl(var(--border));
|
|
435
|
+
border-radius: var(--console-radius-2);
|
|
436
|
+
background: hsl(var(--background));
|
|
437
|
+
color: hsl(var(--muted-foreground));
|
|
438
|
+
font-size: var(--console-text-label);
|
|
439
|
+
text-decoration: none;
|
|
440
|
+
cursor: pointer;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
:where(.zhin-sandbox) .agent-playground-run-actions a:hover:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-actions button:hover:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-inspector-head button:hover:where(:not(.console-control, [data-state])) {
|
|
444
|
+
border-color: hsl(var(--playground-accent) / 0.32);
|
|
445
|
+
color: hsl(var(--playground-accent));
|
|
446
|
+
background: hsl(var(--playground-accent) / 0.05);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
:where(.zhin-sandbox) .agent-playground-run-actions button.active:where(:not(.console-control, [data-state])) {
|
|
450
|
+
border-color: hsl(var(--playground-accent) / 0.32);
|
|
451
|
+
background: hsl(var(--playground-accent-soft));
|
|
452
|
+
color: hsl(var(--playground-accent));
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
:where(.zhin-sandbox) .agent-playground-run-state {
|
|
456
|
+
display: inline-flex;
|
|
457
|
+
align-items: center;
|
|
458
|
+
gap: var(--console-space-1);
|
|
459
|
+
margin-right: var(--console-space-1);
|
|
460
|
+
color: hsl(var(--muted-foreground));
|
|
461
|
+
font-size: var(--console-text-label);
|
|
462
|
+
white-space: nowrap;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
:where(.zhin-sandbox) .agent-playground-run-state.is-running {
|
|
466
|
+
color: hsl(var(--playground-accent));
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
:where(.zhin-sandbox) .agent-playground-run-state.is-running svg {
|
|
470
|
+
animation: playground-run-breathe 1.5s ease-in-out infinite;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
:where(.zhin-sandbox) .agent-playground-run-state.has-problem {
|
|
474
|
+
color: hsl(var(--destructive));
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
:where(.zhin-sandbox) .agent-playground-run-settings {
|
|
478
|
+
position: relative;
|
|
479
|
+
z-index: 3;
|
|
480
|
+
display: flex;
|
|
481
|
+
flex-wrap: wrap;
|
|
482
|
+
gap: var(--console-space-3);
|
|
483
|
+
padding: var(--console-space-3) var(--console-space-3);
|
|
484
|
+
border-bottom: 1px solid hsl(var(--playground-line) / 0.7);
|
|
485
|
+
background: hsl(var(--sidebar));
|
|
486
|
+
box-shadow: none;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
:where(.zhin-sandbox) .agent-playground-run-settings label {
|
|
490
|
+
display: flex;
|
|
491
|
+
flex: 1 1 8rem;
|
|
492
|
+
min-width: 0;
|
|
493
|
+
flex-direction: column;
|
|
494
|
+
gap: var(--console-space-1);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
:where(.zhin-sandbox) .agent-playground-run-settings .agent-playground-directory-field {
|
|
498
|
+
flex-basis: 14rem;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
:where(.zhin-sandbox) .agent-playground-run-settings label > span {
|
|
502
|
+
display: flex;
|
|
503
|
+
align-items: center;
|
|
504
|
+
gap: var(--console-space-1);
|
|
505
|
+
color: hsl(var(--muted-foreground));
|
|
506
|
+
font-size: var(--console-text-label);
|
|
507
|
+
font-weight: var(--console-weight-strong);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
:where(.zhin-sandbox) .agent-playground-run-settings input[type="text"]:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-settings input:not([type]):where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-settings select:where(:not(.console-control, [data-state])) {
|
|
511
|
+
width: 100%;
|
|
512
|
+
min-width: 0;
|
|
513
|
+
height: 2rem;
|
|
514
|
+
padding: 0 var(--console-space-2);
|
|
515
|
+
border: 1px solid hsl(var(--border));
|
|
516
|
+
border-radius: var(--console-radius-2);
|
|
517
|
+
outline: 0;
|
|
518
|
+
background: hsl(var(--background) / 0.84);
|
|
519
|
+
color: hsl(var(--foreground));
|
|
520
|
+
font-size: var(--console-text-label);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
:where(.zhin-sandbox) .agent-playground-run-settings input:focus:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-settings select:focus:where(:not(.console-control, [data-state])) {
|
|
524
|
+
border-color: hsl(var(--playground-accent) / 0.55);
|
|
525
|
+
outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.08); outline-offset: calc(var(--console-border-focus) * -1);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
:where(.zhin-sandbox) .agent-playground-run-settings select:disabled:where(:not(.console-control, [data-state])) {
|
|
529
|
+
opacity: 0.58;
|
|
530
|
+
cursor: not-allowed;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle {
|
|
534
|
+
position: relative;
|
|
535
|
+
justify-content: flex-end;
|
|
536
|
+
padding-bottom: var(--console-space-1);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle input:where(:not(.console-control, [data-state])) {
|
|
540
|
+
position: absolute;
|
|
541
|
+
width: 1px;
|
|
542
|
+
height: 1px;
|
|
543
|
+
opacity: 0;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle i {
|
|
547
|
+
position: relative;
|
|
548
|
+
display: block;
|
|
549
|
+
width: 2.2rem;
|
|
550
|
+
height: 1.2rem;
|
|
551
|
+
border: 1px solid hsl(var(--border));
|
|
552
|
+
border-radius: var(--console-radius-full);
|
|
553
|
+
background: hsl(var(--muted));
|
|
554
|
+
cursor: pointer;
|
|
555
|
+
transition: background 160ms ease, border-color 160ms ease;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle i::after {
|
|
559
|
+
position: absolute;
|
|
560
|
+
top: 0.16rem;
|
|
561
|
+
left: 0.17rem;
|
|
562
|
+
width: 0.76rem;
|
|
563
|
+
height: 0.76rem;
|
|
564
|
+
border-radius: var(--console-radius-full);
|
|
565
|
+
background: hsl(var(--background));
|
|
566
|
+
box-shadow: var(--console-elevation-1);
|
|
567
|
+
content: "";
|
|
568
|
+
transition: transform 160ms ease;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle input:checked:where(:not(.console-control, [data-state])) + i {
|
|
572
|
+
border-color: hsl(var(--playground-accent) / 0.45);
|
|
573
|
+
background: hsl(var(--playground-accent));
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle input:checked:where(:not(.console-control, [data-state])) + i::after {
|
|
577
|
+
transform: translateX(0.96rem);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle input:focus-visible:where(:not(.console-control, [data-state])) + i {
|
|
581
|
+
outline: 2px solid hsl(var(--playground-accent));
|
|
582
|
+
outline-offset: 2px;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
:where(.zhin-sandbox) .agent-playground-run-settings > p {
|
|
586
|
+
display: flex;
|
|
587
|
+
grid-column: 1 / -1;
|
|
588
|
+
align-items: center;
|
|
589
|
+
gap: var(--console-space-2);
|
|
590
|
+
margin: 0;
|
|
591
|
+
padding-top: 0;
|
|
592
|
+
color: hsl(var(--destructive));
|
|
593
|
+
font-size: var(--console-text-label);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
:where(.zhin-sandbox) .agent-playground-conversation {
|
|
597
|
+
position: relative;
|
|
598
|
+
min-height: 0;
|
|
599
|
+
flex: 1;
|
|
600
|
+
overflow: hidden;
|
|
601
|
+
background: hsl(var(--background));
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
:where(.zhin-sandbox) .agent-playground-message-scroll {
|
|
605
|
+
height: 100%;
|
|
606
|
+
overflow-y: auto;
|
|
607
|
+
overscroll-behavior: contain;
|
|
608
|
+
scrollbar-width: thin;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
:where(.zhin-sandbox) .agent-playground-empty {
|
|
612
|
+
display: grid;
|
|
613
|
+
width: min(100% - 3rem, calc(var(--console-content-reading) * 0.7));
|
|
614
|
+
min-height: 100%;
|
|
615
|
+
align-content: center;
|
|
616
|
+
margin: auto;
|
|
617
|
+
padding: var(--console-space-7) 0;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
:where(.zhin-sandbox) .agent-playground-empty-mark {
|
|
621
|
+
width: 3.6rem;
|
|
622
|
+
height: 3.6rem;
|
|
623
|
+
margin-bottom: var(--console-space-4);
|
|
624
|
+
border: 1px solid hsl(var(--playground-accent) / 0.18);
|
|
625
|
+
border-radius: var(--console-radius-3);
|
|
626
|
+
box-shadow: none;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
:where(.zhin-sandbox) .agent-playground-empty h2 {
|
|
630
|
+
font-size: var(--console-text-display);
|
|
631
|
+
font-weight: var(--console-weight-strong);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
:where(.zhin-sandbox) .agent-playground-empty p {
|
|
635
|
+
max-width: 34rem;
|
|
636
|
+
margin: var(--console-space-2) 0 var(--console-space-5);
|
|
637
|
+
color: hsl(var(--muted-foreground));
|
|
638
|
+
font-size: var(--console-text-body);
|
|
639
|
+
line-height: 1.65;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
:where(.zhin-sandbox) .agent-playground-prompts {
|
|
643
|
+
display: grid;
|
|
644
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
645
|
+
gap: var(--console-space-2);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
:where(.zhin-sandbox) .agent-playground-prompts button:where(:not(.console-control, [data-state])) {
|
|
649
|
+
min-height: 4rem;
|
|
650
|
+
padding: var(--console-space-3);
|
|
651
|
+
border: 1px solid hsl(var(--border));
|
|
652
|
+
border-radius: var(--console-radius-3);
|
|
653
|
+
background: hsl(var(--background) / 0.8);
|
|
654
|
+
color: hsl(var(--foreground) / 0.78);
|
|
655
|
+
font-size: var(--console-text-label);
|
|
656
|
+
line-height: 1.45;
|
|
657
|
+
text-align: left;
|
|
658
|
+
cursor: pointer;
|
|
659
|
+
transition: border-color 160ms ease, background-color 160ms ease;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
:where(.zhin-sandbox) .agent-playground-prompts button:where(:not(.console-control, [data-state]))::after {
|
|
663
|
+
display: block;
|
|
664
|
+
margin-top: var(--console-space-2);
|
|
665
|
+
color: hsl(var(--playground-accent));
|
|
666
|
+
content: "↗";
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
:where(.zhin-sandbox) .agent-playground-prompts button:hover:where(:not(.console-control, [data-state])) {
|
|
670
|
+
border-color: hsl(var(--playground-accent) / 0.3);
|
|
671
|
+
background: hsl(var(--muted));
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
:where(.zhin-sandbox) .agent-playground-message-list {
|
|
675
|
+
display: flex;
|
|
676
|
+
flex-direction: column;
|
|
677
|
+
gap: var(--console-space-4);
|
|
678
|
+
width: min(100% - 2.25rem, calc(var(--console-content-reading) * 0.875));
|
|
679
|
+
margin: 0 auto;
|
|
680
|
+
padding: var(--console-space-5) 0 var(--console-space-6);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
:where(.zhin-sandbox) .agent-playground-message {
|
|
684
|
+
display: flex;
|
|
685
|
+
align-items: flex-start;
|
|
686
|
+
gap: var(--console-space-3);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
:where(.zhin-sandbox) .agent-playground-message.is-user {
|
|
690
|
+
flex-direction: row-reverse;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
:where(.zhin-sandbox) .agent-playground-message-avatar {
|
|
694
|
+
width: 1.9rem;
|
|
695
|
+
height: 1.9rem;
|
|
696
|
+
margin-top: 0;
|
|
697
|
+
border: 1px solid hsl(var(--border));
|
|
698
|
+
border-radius: var(--console-radius-2);
|
|
699
|
+
background: hsl(var(--muted));
|
|
700
|
+
color: hsl(var(--muted-foreground));
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
:where(.zhin-sandbox) .agent-playground-message.is-agent .agent-playground-message-avatar {
|
|
704
|
+
border-color: hsl(var(--playground-accent) / 0.18);
|
|
705
|
+
border-radius: var(--console-radius-2);
|
|
706
|
+
background: hsl(var(--playground-accent-soft));
|
|
707
|
+
color: hsl(var(--playground-accent));
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
:where(.zhin-sandbox) .agent-playground-message-main {
|
|
711
|
+
min-width: 0;
|
|
712
|
+
max-width: calc(100% - 3rem);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
:where(.zhin-sandbox) .agent-playground-message.is-user .agent-playground-message-main {
|
|
716
|
+
max-width: min(76%, calc(var(--console-content-reading) * 0.7));
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
:where(.zhin-sandbox) .agent-playground-message-meta {
|
|
720
|
+
display: flex;
|
|
721
|
+
align-items: center;
|
|
722
|
+
gap: var(--console-space-2);
|
|
723
|
+
margin: 0 0 var(--console-space-1);
|
|
724
|
+
color: hsl(var(--muted-foreground));
|
|
725
|
+
font-size: var(--console-text-label);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
:where(.zhin-sandbox) .agent-playground-message.is-user .agent-playground-message-meta {
|
|
729
|
+
justify-content: flex-end;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
:where(.zhin-sandbox) .agent-playground-message-meta strong {
|
|
733
|
+
color: hsl(var(--foreground) / 0.82);
|
|
734
|
+
font-weight: var(--console-weight-strong);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
:where(.zhin-sandbox) .agent-playground-message-content {
|
|
738
|
+
overflow: hidden;
|
|
739
|
+
padding: var(--console-space-3) var(--console-space-4);
|
|
740
|
+
border: 1px solid hsl(var(--border) / 0.78);
|
|
741
|
+
border-radius: var(--console-radius-3);
|
|
742
|
+
background: hsl(var(--background) / 0.94);
|
|
743
|
+
box-shadow: none;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
:where(.zhin-sandbox) .agent-playground-message.is-user .agent-playground-message-content {
|
|
747
|
+
border-color: hsl(var(--playground-accent) / 0.2);
|
|
748
|
+
border-radius: var(--console-radius-3);
|
|
749
|
+
background: hsl(var(--playground-accent-soft));
|
|
750
|
+
box-shadow: none;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
:where(.zhin-sandbox) .agent-playground-message.is-approval .agent-playground-message-avatar {
|
|
754
|
+
border-color: hsl(var(--warning) / 0.32);
|
|
755
|
+
background: hsl(var(--warning) / 0.1);
|
|
756
|
+
color: hsl(var(--warning));
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
:where(.zhin-sandbox) .agent-playground-message.is-approval .agent-playground-message-content {
|
|
760
|
+
border-color: hsl(var(--warning) / 0.32);
|
|
761
|
+
background: hsl(var(--warning) / 0.06);
|
|
762
|
+
box-shadow: var(--console-elevation-2);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.dark :where(.zhin-sandbox) .agent-playground-message.is-approval .agent-playground-message-content {
|
|
766
|
+
background: hsl(var(--warning) / 0.12);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
:where(.zhin-sandbox) .agent-playground-message.is-approval .agent-playground-message-meta span:last-child {
|
|
770
|
+
padding: 0 var(--console-space-1);
|
|
771
|
+
border: 1px solid hsl(var(--warning) / 0.26);
|
|
772
|
+
border-radius: var(--console-radius-full);
|
|
773
|
+
color: hsl(var(--warning));
|
|
774
|
+
font-size: var(--console-text-label);
|
|
775
|
+
font-weight: var(--console-weight-strong);
|
|
776
|
+
letter-spacing: 0.055em;
|
|
777
|
+
text-transform: none;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
:where(.zhin-sandbox) .agent-playground-approval-actions {
|
|
781
|
+
display: grid;
|
|
782
|
+
gap: var(--console-space-2);
|
|
783
|
+
margin-top: var(--console-space-3);
|
|
784
|
+
padding-top: var(--console-space-3);
|
|
785
|
+
border-top: 1px solid hsl(var(--warning) / 0.18);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
:where(.zhin-sandbox) .agent-playground-approval-actions > div {
|
|
789
|
+
display: flex;
|
|
790
|
+
flex-wrap: wrap;
|
|
791
|
+
gap: var(--console-space-2);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
:where(.zhin-sandbox) .agent-playground-approval-actions button:where(:not(.console-control, [data-state])) {
|
|
795
|
+
min-height: 1.95rem;
|
|
796
|
+
padding: 0 var(--console-space-3);
|
|
797
|
+
border: 1px solid hsl(var(--border));
|
|
798
|
+
border-radius: var(--console-radius-1);
|
|
799
|
+
background: hsl(var(--background) / 0.78);
|
|
800
|
+
color: hsl(var(--foreground) / 0.8);
|
|
801
|
+
font-size: var(--console-text-label);
|
|
802
|
+
font-weight: var(--console-weight-strong);
|
|
803
|
+
cursor: pointer;
|
|
804
|
+
transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
:where(.zhin-sandbox) .agent-playground-approval-actions button:hover:not(:disabled):where(:not(.console-control, [data-state])) {
|
|
808
|
+
border-color: hsl(var(--playground-accent) / 0.38);
|
|
809
|
+
color: hsl(var(--playground-accent));
|
|
810
|
+
transform: translateY(-1px);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
:where(.zhin-sandbox) .agent-playground-approval-actions button.is-primary:where(:not(.console-control, [data-state])) {
|
|
814
|
+
border-color: hsl(var(--playground-accent) / 0.36);
|
|
815
|
+
background: hsl(var(--playground-accent));
|
|
816
|
+
color: hsl(var(--playground-accent-foreground));
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
:where(.zhin-sandbox) .agent-playground-approval-actions button.is-danger:where(:not(.console-control, [data-state])) {
|
|
820
|
+
border-color: hsl(var(--destructive) / 0.25);
|
|
821
|
+
color: hsl(var(--destructive));
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
:where(.zhin-sandbox) .agent-playground-approval-actions button:disabled:where(:not(.console-control, [data-state])) {
|
|
825
|
+
cursor: not-allowed;
|
|
826
|
+
opacity: 0.48;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
:where(.zhin-sandbox) .agent-playground-approval-actions small {
|
|
830
|
+
display: inline-flex;
|
|
831
|
+
align-items: center;
|
|
832
|
+
gap: var(--console-space-1);
|
|
833
|
+
color: hsl(var(--playground-accent));
|
|
834
|
+
font-size: var(--console-text-label);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
:where(.zhin-sandbox) .agent-playground-message-content > :first-child,
|
|
838
|
+
:where(.zhin-sandbox) .agent-playground-message-content .zhin-markdown > :first-child { margin-top: 0; }
|
|
839
|
+
:where(.zhin-sandbox) .agent-playground-message-content > :last-child,
|
|
840
|
+
:where(.zhin-sandbox) .agent-playground-message-content .zhin-markdown > :last-child { margin-bottom: 0; }
|
|
841
|
+
|
|
842
|
+
:where(.zhin-sandbox) .agent-playground-message-content .zhin-code-block {
|
|
843
|
+
max-width: 100%;
|
|
844
|
+
margin-right: calc(var(--console-space-1) * -1);
|
|
845
|
+
margin-left: calc(var(--console-space-1) * -1);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
:where(.zhin-sandbox) .agent-playground-inline-run {
|
|
849
|
+
position: relative;
|
|
850
|
+
overflow: hidden;
|
|
851
|
+
margin-left: var(--console-space-7);
|
|
852
|
+
border: 1px solid hsl(var(--playground-line) / 0.82);
|
|
853
|
+
border-radius: var(--console-radius-3);
|
|
854
|
+
background: hsl(var(--background) / 0.86);
|
|
855
|
+
box-shadow: none;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.dark :where(.zhin-sandbox) .agent-playground-inline-run {
|
|
859
|
+
background: hsl(var(--card) / 0.72);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-rail {
|
|
863
|
+
position: absolute;
|
|
864
|
+
inset: 0 auto 0 0;
|
|
865
|
+
width: 3px;
|
|
866
|
+
background: hsl(var(--playground-accent));
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
:where(.zhin-sandbox) .agent-playground-inline-run.is-running .agent-playground-inline-run-rail { background: hsl(var(--info)); }
|
|
870
|
+
:where(.zhin-sandbox) .agent-playground-inline-run.is-failed .agent-playground-inline-run-rail { background: hsl(var(--destructive)); }
|
|
871
|
+
:where(.zhin-sandbox) .agent-playground-inline-run.is-cancelled .agent-playground-inline-run-rail { background: hsl(var(--warning)); }
|
|
872
|
+
|
|
873
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-head {
|
|
874
|
+
display: grid;
|
|
875
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
876
|
+
align-items: start;
|
|
877
|
+
gap: var(--console-space-3);
|
|
878
|
+
padding: var(--console-space-4) var(--console-space-4) var(--console-space-3) var(--console-space-4);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-icon {
|
|
882
|
+
display: inline-flex;
|
|
883
|
+
align-items: center;
|
|
884
|
+
justify-content: center;
|
|
885
|
+
width: 2.2rem;
|
|
886
|
+
height: 2.2rem;
|
|
887
|
+
border: 1px solid hsl(var(--playground-accent) / 0.18);
|
|
888
|
+
border-radius: var(--console-radius-2);
|
|
889
|
+
background: hsl(var(--playground-accent-soft));
|
|
890
|
+
color: hsl(var(--playground-accent));
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
:where(.zhin-sandbox) .agent-playground-inline-run.is-running .agent-playground-inline-run-icon {
|
|
894
|
+
border-color: hsl(var(--info) / 0.24);
|
|
895
|
+
background: hsl(var(--info) / 0.09);
|
|
896
|
+
color: hsl(var(--info));
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-copy { min-width: 0; }
|
|
900
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-copy > span {
|
|
901
|
+
display: block;
|
|
902
|
+
margin-bottom: var(--console-space-1);
|
|
903
|
+
color: hsl(var(--muted-foreground) / 0.76);
|
|
904
|
+
font-size: var(--console-text-label);
|
|
905
|
+
font-weight: var(--console-weight-strong);
|
|
906
|
+
letter-spacing: 0.11em;
|
|
907
|
+
text-transform: none;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-copy h3 {
|
|
911
|
+
margin: 0;
|
|
912
|
+
color: hsl(var(--foreground) / 0.91);
|
|
913
|
+
font-size: var(--console-text-body);
|
|
914
|
+
font-weight: var(--console-weight-strong);
|
|
915
|
+
letter-spacing: -0.012em;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-copy p {
|
|
919
|
+
display: -webkit-box;
|
|
920
|
+
overflow: hidden;
|
|
921
|
+
margin: var(--console-space-1) 0 0;
|
|
922
|
+
color: hsl(var(--muted-foreground));
|
|
923
|
+
font-size: var(--console-text-label);
|
|
924
|
+
line-height: 1.45;
|
|
925
|
+
-webkit-box-orient: vertical;
|
|
926
|
+
-webkit-line-clamp: 2;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-actions {
|
|
930
|
+
display: flex;
|
|
931
|
+
flex-wrap: wrap;
|
|
932
|
+
justify-content: flex-end;
|
|
933
|
+
gap: var(--console-space-1);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-actions button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-inline-run footer button:where(:not(.console-control, [data-state])) {
|
|
937
|
+
display: inline-flex;
|
|
938
|
+
align-items: center;
|
|
939
|
+
justify-content: center;
|
|
940
|
+
gap: var(--console-space-1);
|
|
941
|
+
min-height: 1.82rem;
|
|
942
|
+
padding: 0 var(--console-space-2);
|
|
943
|
+
border: 1px solid hsl(var(--border) / 0.82);
|
|
944
|
+
border-radius: var(--console-radius-1);
|
|
945
|
+
background: hsl(var(--background) / 0.72);
|
|
946
|
+
color: hsl(var(--foreground) / 0.73);
|
|
947
|
+
font-size: var(--console-text-label);
|
|
948
|
+
font-weight: var(--console-weight-strong);
|
|
949
|
+
cursor: pointer;
|
|
950
|
+
transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-actions button:hover:not(:disabled):where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-inline-run footer button:hover:where(:not(.console-control, [data-state])) {
|
|
954
|
+
border-color: hsl(var(--playground-accent) / 0.36);
|
|
955
|
+
color: hsl(var(--playground-accent));
|
|
956
|
+
transform: translateY(-1px);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-actions button.is-stop:where(:not(.console-control, [data-state])) {
|
|
960
|
+
border-color: hsl(var(--destructive) / 0.23);
|
|
961
|
+
color: hsl(var(--destructive));
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-actions button:disabled:where(:not(.console-control, [data-state])) { cursor: wait; opacity: 0.55; }
|
|
965
|
+
|
|
966
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics {
|
|
967
|
+
display: grid;
|
|
968
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
969
|
+
margin: 0;
|
|
970
|
+
border-top: 1px solid hsl(var(--playground-line) / 0.62);
|
|
971
|
+
border-bottom: 1px solid hsl(var(--playground-line) / 0.62);
|
|
972
|
+
background: hsl(var(--muted) / 0.22);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics > div {
|
|
976
|
+
display: flex;
|
|
977
|
+
min-width: 0;
|
|
978
|
+
align-items: baseline;
|
|
979
|
+
justify-content: center;
|
|
980
|
+
gap: var(--console-space-1);
|
|
981
|
+
padding: var(--console-space-2) var(--console-space-1);
|
|
982
|
+
border-right: 1px solid hsl(var(--playground-line) / 0.48);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics > div:last-child { border-right: 0; }
|
|
986
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics dt { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); }
|
|
987
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics dd { overflow: hidden; margin: 0; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
|
|
988
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics .has-problem dd { color: hsl(var(--destructive)); }
|
|
989
|
+
|
|
990
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps {
|
|
991
|
+
display: grid;
|
|
992
|
+
gap: 0;
|
|
993
|
+
margin: 0;
|
|
994
|
+
padding: var(--console-space-2) var(--console-space-4) var(--console-space-2) var(--console-space-4);
|
|
995
|
+
list-style: none;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li {
|
|
999
|
+
position: relative;
|
|
1000
|
+
display: grid;
|
|
1001
|
+
grid-template-columns: 0.75rem minmax(0, 1fr) auto;
|
|
1002
|
+
align-items: center;
|
|
1003
|
+
gap: var(--console-space-2);
|
|
1004
|
+
min-height: 2.05rem;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li:not(:last-child)::after {
|
|
1008
|
+
position: absolute;
|
|
1009
|
+
z-index: 0;
|
|
1010
|
+
top: 1.18rem;
|
|
1011
|
+
bottom: -0.86rem;
|
|
1012
|
+
left: 0.28rem;
|
|
1013
|
+
width: 1px;
|
|
1014
|
+
background: hsl(var(--playground-line));
|
|
1015
|
+
content: "";
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps i {
|
|
1019
|
+
position: relative;
|
|
1020
|
+
z-index: 1;
|
|
1021
|
+
width: 0.58rem;
|
|
1022
|
+
height: 0.58rem;
|
|
1023
|
+
border: 2px solid hsl(var(--background));
|
|
1024
|
+
border-radius: var(--console-radius-full);
|
|
1025
|
+
background: hsl(var(--playground-accent));
|
|
1026
|
+
outline: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.28); outline-offset: calc(var(--console-border-hairline) * -1);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-running i {
|
|
1030
|
+
background: hsl(var(--info));
|
|
1031
|
+
outline: var(--console-border-hairline) solid hsl(var(--info) / 0.34); outline-offset: calc(var(--console-border-hairline) * -1);
|
|
1032
|
+
animation: playground-run-breathe 1.4s ease-in-out infinite;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-failed i,
|
|
1036
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-denied i { background: hsl(var(--destructive)); outline: var(--console-border-hairline) solid hsl(var(--destructive) / 0.3); outline-offset: calc(var(--console-border-hairline) * -1); }
|
|
1037
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-cancelled i { background: hsl(var(--warning)); outline: var(--console-border-hairline) solid hsl(var(--warning) / 0.3); outline-offset: calc(var(--console-border-hairline) * -1); }
|
|
1038
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li > div { display: flex; min-width: 0; flex-direction: column; }
|
|
1039
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps strong { overflow: hidden; color: hsl(var(--foreground) / 0.82); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; }
|
|
1040
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps small { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; }
|
|
1041
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li > span { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-variant-numeric: tabular-nums; }
|
|
1042
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-failed > span,
|
|
1043
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-denied > span { color: hsl(var(--destructive)); }
|
|
1044
|
+
|
|
1045
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-empty {
|
|
1046
|
+
padding: var(--console-space-3) var(--console-space-4);
|
|
1047
|
+
color: hsl(var(--muted-foreground));
|
|
1048
|
+
font-size: var(--console-text-label);
|
|
1049
|
+
text-align: center;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
:where(.zhin-sandbox) .agent-playground-inline-run footer {
|
|
1053
|
+
display: flex;
|
|
1054
|
+
align-items: center;
|
|
1055
|
+
justify-content: space-between;
|
|
1056
|
+
gap: var(--console-space-2);
|
|
1057
|
+
padding: var(--console-space-2) var(--console-space-4) var(--console-space-2) var(--console-space-4);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
:where(.zhin-sandbox) .agent-playground-inline-run footer button:where(:not(.console-control, [data-state])) {
|
|
1061
|
+
min-height: auto;
|
|
1062
|
+
padding: var(--console-space-1) 0;
|
|
1063
|
+
border: 0;
|
|
1064
|
+
background: transparent;
|
|
1065
|
+
color: hsl(var(--muted-foreground));
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
:where(.zhin-sandbox) .agent-playground-inline-run footer button:first-child:where(:not(.console-control, [data-state])) svg { transition: transform 150ms ease; }
|
|
1069
|
+
:where(.zhin-sandbox) .agent-playground-inline-run footer button:first-child[aria-expanded="true"]:where(:not(.console-control, [data-state])) svg { transform: rotate(180deg); }
|
|
1070
|
+
|
|
1071
|
+
:where(.zhin-sandbox) .agent-playground-composer {
|
|
1072
|
+
position: relative;
|
|
1073
|
+
z-index: 2;
|
|
1074
|
+
display: grid;
|
|
1075
|
+
gap: var(--console-space-2);
|
|
1076
|
+
padding: var(--console-space-3) var(--console-space-3) var(--console-space-3);
|
|
1077
|
+
border-top: 1px solid hsl(var(--playground-line) / 0.74);
|
|
1078
|
+
background: hsl(var(--background) / 0.94);
|
|
1079
|
+
box-shadow: none;
|
|
1080
|
+
backdrop-filter: blur(16px);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
:where(.zhin-sandbox) .agent-playground-composer .rich-text-editor,
|
|
1084
|
+
:where(.zhin-sandbox) .agent-playground-composer .sandbox-markdown-preview {
|
|
1085
|
+
min-height: 3rem !important;
|
|
1086
|
+
border-color: hsl(var(--border) / 0.86) !important;
|
|
1087
|
+
border-radius: var(--console-radius-3) !important;
|
|
1088
|
+
background-color: hsl(var(--muted) / 0.24);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
:where(.zhin-sandbox) .agent-playground-composer .rich-text-editor {
|
|
1092
|
+
padding: var(--console-space-3) var(--console-space-3) !important;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
:where(.zhin-sandbox) .agent-playground-composer .rich-text-editor:focus {
|
|
1096
|
+
border-color: hsl(var(--playground-accent) / 0.52) !important;
|
|
1097
|
+
outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.08); outline-offset: calc(var(--console-border-focus) * -1);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
:where(.zhin-sandbox) .agent-playground-composer > div:last-child {
|
|
1101
|
+
opacity: 0.75;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
:where(.zhin-sandbox) .agent-playground-inspector {
|
|
1105
|
+
display: none;
|
|
1106
|
+
min-width: 0;
|
|
1107
|
+
height: 100%;
|
|
1108
|
+
flex-direction: column;
|
|
1109
|
+
overflow-y: auto;
|
|
1110
|
+
border-left: 1px solid hsl(var(--playground-line) / 0.7);
|
|
1111
|
+
background:
|
|
1112
|
+
hsl(var(--muted) / 0.25);
|
|
1113
|
+
scrollbar-width: thin;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
:where(.zhin-sandbox) .agent-playground-inspector.show {
|
|
1117
|
+
display: flex;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
:where(.zhin-sandbox) .agent-playground-inspector-head {
|
|
1121
|
+
display: flex;
|
|
1122
|
+
min-height: 4.75rem;
|
|
1123
|
+
flex-shrink: 0;
|
|
1124
|
+
align-items: center;
|
|
1125
|
+
justify-content: space-between;
|
|
1126
|
+
gap: var(--console-space-2);
|
|
1127
|
+
padding: var(--console-space-3) var(--console-space-3);
|
|
1128
|
+
border-bottom: 1px solid hsl(var(--playground-line) / 0.65);
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
:where(.zhin-sandbox) .agent-playground-inspector-head > div:last-child {
|
|
1132
|
+
display: flex;
|
|
1133
|
+
gap: var(--console-space-1);
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
:where(.zhin-sandbox) .agent-playground-inspector-head > div:first-child > span {
|
|
1137
|
+
color: hsl(var(--playground-accent));
|
|
1138
|
+
font-size: var(--console-text-label);
|
|
1139
|
+
font-weight: var(--console-weight-strong);
|
|
1140
|
+
letter-spacing: 0.08em;
|
|
1141
|
+
text-transform: none;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
:where(.zhin-sandbox) .agent-playground-inspector-head h2 {
|
|
1145
|
+
margin-top: 0;
|
|
1146
|
+
font-size: var(--console-text-body);
|
|
1147
|
+
font-weight: var(--console-weight-strong);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
:where(.zhin-sandbox) .agent-playground-inspector-head button:where(:not(.console-control, [data-state])) {
|
|
1151
|
+
padding: 0;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
:where(.zhin-sandbox) .agent-playground-inspector-view {
|
|
1155
|
+
display: flex;
|
|
1156
|
+
min-height: 0;
|
|
1157
|
+
flex: 1;
|
|
1158
|
+
flex-direction: column;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
:where(.zhin-sandbox) .agent-playground-inspector-view.hidden {
|
|
1162
|
+
display: none;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
:where(.zhin-sandbox) .agent-playground-inspector-section {
|
|
1166
|
+
padding: var(--console-space-3);
|
|
1167
|
+
border-bottom: 1px solid hsl(var(--playground-line) / 0.58);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
:where(.zhin-sandbox) .agent-playground-inspector-title {
|
|
1171
|
+
display: flex;
|
|
1172
|
+
align-items: center;
|
|
1173
|
+
justify-content: space-between;
|
|
1174
|
+
margin-bottom: var(--console-space-2);
|
|
1175
|
+
color: hsl(var(--foreground) / 0.82);
|
|
1176
|
+
font-size: var(--console-text-label);
|
|
1177
|
+
font-weight: var(--console-weight-strong);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
:where(.zhin-sandbox) .agent-playground-inspector-title small {
|
|
1181
|
+
color: hsl(var(--muted-foreground));
|
|
1182
|
+
font-size: var(--console-text-label);
|
|
1183
|
+
font-weight: var(--console-weight-medium);
|
|
1184
|
+
letter-spacing: 0.05em;
|
|
1185
|
+
text-transform: none;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
:where(.zhin-sandbox) .agent-playground-metrics {
|
|
1189
|
+
display: grid;
|
|
1190
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1191
|
+
border: 1px solid hsl(var(--border) / 0.72);
|
|
1192
|
+
border-radius: var(--console-radius-3);
|
|
1193
|
+
overflow: hidden;
|
|
1194
|
+
background: hsl(var(--background) / 0.55);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
:where(.zhin-sandbox) .agent-playground-metrics > div {
|
|
1198
|
+
display: grid;
|
|
1199
|
+
grid-template-columns: auto 1fr;
|
|
1200
|
+
gap: 0 var(--console-space-2);
|
|
1201
|
+
min-width: 0;
|
|
1202
|
+
padding: var(--console-space-2);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
:where(.zhin-sandbox) .agent-playground-metrics > div:nth-child(odd) { border-right: 1px solid hsl(var(--border) / 0.62); }
|
|
1206
|
+
:where(.zhin-sandbox) .agent-playground-metrics > div:nth-child(-n+2) { border-bottom: 1px solid hsl(var(--border) / 0.62); }
|
|
1207
|
+
:where(.zhin-sandbox) .agent-playground-metrics svg { grid-row: span 2; width: 0.78rem; color: hsl(var(--playground-accent)); }
|
|
1208
|
+
:where(.zhin-sandbox) .agent-playground-metrics strong { overflow: hidden; font-size: var(--console-text-body); font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
|
|
1209
|
+
:where(.zhin-sandbox) .agent-playground-metrics span { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); }
|
|
1210
|
+
:where(.zhin-sandbox) .agent-playground-metrics .has-problem svg,
|
|
1211
|
+
:where(.zhin-sandbox) .agent-playground-metrics .has-problem strong { color: hsl(var(--destructive)); }
|
|
1212
|
+
|
|
1213
|
+
:where(.zhin-sandbox) .agent-playground-context-list {
|
|
1214
|
+
display: grid;
|
|
1215
|
+
gap: 0;
|
|
1216
|
+
margin: 0;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
:where(.zhin-sandbox) .agent-playground-context-list > div {
|
|
1220
|
+
display: flex;
|
|
1221
|
+
min-width: 0;
|
|
1222
|
+
align-items: baseline;
|
|
1223
|
+
justify-content: space-between;
|
|
1224
|
+
gap: var(--console-space-3);
|
|
1225
|
+
padding: var(--console-space-1) 0;
|
|
1226
|
+
border-bottom: 1px dashed hsl(var(--border) / 0.6);
|
|
1227
|
+
font-size: var(--console-text-label);
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
:where(.zhin-sandbox) .agent-playground-context-list > div:last-child { border-bottom: 0; }
|
|
1231
|
+
:where(.zhin-sandbox) .agent-playground-context-list dt { color: hsl(var(--muted-foreground)); }
|
|
1232
|
+
:where(.zhin-sandbox) .agent-playground-context-list dd {
|
|
1233
|
+
min-width: 0;
|
|
1234
|
+
margin: 0;
|
|
1235
|
+
overflow: hidden;
|
|
1236
|
+
color: hsl(var(--foreground) / 0.82);
|
|
1237
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1238
|
+
text-align: right;
|
|
1239
|
+
text-overflow: ellipsis;
|
|
1240
|
+
white-space: nowrap;
|
|
1241
|
+
}
|
|
1242
|
+
:where(.zhin-sandbox) .agent-playground-context-list dd.is-online { color: hsl(var(--playground-accent)); }
|
|
1243
|
+
|
|
1244
|
+
:where(.zhin-sandbox) .agent-playground-trace-section {
|
|
1245
|
+
flex: 1;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
:where(.zhin-sandbox) .agent-playground-trace-list {
|
|
1249
|
+
position: relative;
|
|
1250
|
+
display: grid;
|
|
1251
|
+
gap: 0;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
:where(.zhin-sandbox) .agent-playground-trace-list::before {
|
|
1255
|
+
position: absolute;
|
|
1256
|
+
top: 0.55rem;
|
|
1257
|
+
bottom: 0.55rem;
|
|
1258
|
+
left: 0.26rem;
|
|
1259
|
+
width: 1px;
|
|
1260
|
+
background: hsl(var(--border));
|
|
1261
|
+
content: "";
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
:where(.zhin-sandbox) .agent-playground-trace-item {
|
|
1265
|
+
position: relative;
|
|
1266
|
+
display: grid;
|
|
1267
|
+
grid-template-columns: 0.55rem minmax(0, 1fr) auto;
|
|
1268
|
+
gap: var(--console-space-2);
|
|
1269
|
+
align-items: start;
|
|
1270
|
+
padding: var(--console-space-2) 0;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
:where(.zhin-sandbox) .agent-playground-trace-dot {
|
|
1274
|
+
position: relative;
|
|
1275
|
+
z-index: 1;
|
|
1276
|
+
width: 0.calc(var(--console-content-reading) * 0.875);
|
|
1277
|
+
height: 0.calc(var(--console-content-reading) * 0.875);
|
|
1278
|
+
margin-top: var(--console-space-1);
|
|
1279
|
+
border: 2px solid hsl(var(--muted));
|
|
1280
|
+
border-radius: var(--console-radius-full);
|
|
1281
|
+
background: hsl(var(--muted-foreground));
|
|
1282
|
+
outline: var(--console-border-hairline) solid hsl(var(--border)); outline-offset: calc(var(--console-border-hairline) * -1);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
:where(.zhin-sandbox) .agent-playground-trace-item.is-success .agent-playground-trace-dot { background: hsl(var(--playground-accent)); }
|
|
1286
|
+
:where(.zhin-sandbox) .agent-playground-trace-item.is-running .agent-playground-trace-dot { background: hsl(var(--info)); }
|
|
1287
|
+
:where(.zhin-sandbox) .agent-playground-trace-item.is-thinking .agent-playground-trace-dot { background: hsl(var(--info)); }
|
|
1288
|
+
:where(.zhin-sandbox) .agent-playground-trace-item.is-tool .agent-playground-trace-dot { background: hsl(var(--primary)); }
|
|
1289
|
+
:where(.zhin-sandbox) .agent-playground-trace-item.is-capability .agent-playground-trace-dot { background: hsl(var(--warning)); }
|
|
1290
|
+
:where(.zhin-sandbox) .agent-playground-trace-item.is-usage .agent-playground-trace-dot { background: hsl(var(--info)); }
|
|
1291
|
+
:where(.zhin-sandbox) .agent-playground-trace-item.is-problem .agent-playground-trace-dot { background: hsl(var(--destructive)); }
|
|
1292
|
+
:where(.zhin-sandbox) .agent-playground-trace-item > div { display: flex; min-width: 0; flex-direction: column; }
|
|
1293
|
+
:where(.zhin-sandbox) .agent-playground-trace-item strong { overflow: hidden; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; }
|
|
1294
|
+
:where(.zhin-sandbox) .agent-playground-trace-item small { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; }
|
|
1295
|
+
:where(.zhin-sandbox) .agent-playground-trace-item time { margin-top: 0; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-variant-numeric: tabular-nums; }
|
|
1296
|
+
|
|
1297
|
+
:where(.zhin-sandbox) .agent-playground-trace-loading,
|
|
1298
|
+
:where(.zhin-sandbox) .agent-playground-trace-empty,
|
|
1299
|
+
:where(.zhin-sandbox) .agent-playground-trace-notice {
|
|
1300
|
+
display: flex;
|
|
1301
|
+
min-height: 5rem;
|
|
1302
|
+
align-items: center;
|
|
1303
|
+
justify-content: center;
|
|
1304
|
+
gap: var(--console-space-2);
|
|
1305
|
+
border: 1px dashed hsl(var(--border));
|
|
1306
|
+
border-radius: var(--console-radius-2);
|
|
1307
|
+
color: hsl(var(--muted-foreground));
|
|
1308
|
+
font-size: var(--console-text-label);
|
|
1309
|
+
text-align: center;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
:where(.zhin-sandbox) .agent-playground-trace-loading i {
|
|
1313
|
+
width: 0.35rem;
|
|
1314
|
+
height: 0.35rem;
|
|
1315
|
+
border-radius: var(--console-radius-full);
|
|
1316
|
+
background: hsl(var(--playground-accent));
|
|
1317
|
+
animation: playground-trace-pulse 900ms ease-in-out infinite alternate;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
:where(.zhin-sandbox) .agent-playground-trace-loading i:nth-child(2) { animation-delay: 150ms; }
|
|
1321
|
+
:where(.zhin-sandbox) .agent-playground-trace-loading i:nth-child(3) { animation-delay: 300ms; }
|
|
1322
|
+
:where(.zhin-sandbox) .agent-playground-trace-notice { padding: var(--console-space-3); border-color: hsl(var(--warning) / 0.42); color: hsl(var(--warning)); }
|
|
1323
|
+
|
|
1324
|
+
:where(.zhin-sandbox) .agent-playground-task-section,
|
|
1325
|
+
:where(.zhin-sandbox) .agent-playground-artifact-section {
|
|
1326
|
+
flex: 0 0 auto;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
:where(.zhin-sandbox) .agent-playground-artifact-section {
|
|
1330
|
+
flex: 1 0 auto;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
:where(.zhin-sandbox) .agent-playground-task-list,
|
|
1334
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list {
|
|
1335
|
+
display: grid;
|
|
1336
|
+
gap: var(--console-space-2);
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
:where(.zhin-sandbox) .agent-playground-task-list article {
|
|
1340
|
+
display: grid;
|
|
1341
|
+
grid-template-columns: 0.6rem minmax(0, 1fr);
|
|
1342
|
+
gap: 0 var(--console-space-2);
|
|
1343
|
+
padding: var(--console-space-2) var(--console-space-3);
|
|
1344
|
+
border: 1px solid hsl(var(--border) / 0.72);
|
|
1345
|
+
border-radius: var(--console-radius-2);
|
|
1346
|
+
background: hsl(var(--background) / 0.58);
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
:where(.zhin-sandbox) .agent-playground-task-list article > i {
|
|
1350
|
+
width: 0.5rem;
|
|
1351
|
+
height: 0.5rem;
|
|
1352
|
+
margin-top: var(--console-space-1);
|
|
1353
|
+
border: 2px solid hsl(var(--muted));
|
|
1354
|
+
border-radius: var(--console-radius-full);
|
|
1355
|
+
background: hsl(var(--muted-foreground));
|
|
1356
|
+
outline: var(--console-border-hairline) solid hsl(var(--border)); outline-offset: calc(var(--console-border-hairline) * -1);
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
:where(.zhin-sandbox) .agent-playground-task-list article.is-running > i { background: hsl(var(--info)); }
|
|
1360
|
+
:where(.zhin-sandbox) .agent-playground-task-list article.is-completed > i { background: hsl(var(--playground-accent)); }
|
|
1361
|
+
:where(.zhin-sandbox) .agent-playground-task-list article.is-failed > i { background: hsl(var(--destructive)); }
|
|
1362
|
+
:where(.zhin-sandbox) .agent-playground-task-list article.is-cancelled > i { background: hsl(var(--warning)); }
|
|
1363
|
+
:where(.zhin-sandbox) .agent-playground-task-list article > div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: var(--console-space-2); }
|
|
1364
|
+
:where(.zhin-sandbox) .agent-playground-task-list strong { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
1365
|
+
:where(.zhin-sandbox) .agent-playground-task-list code { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; }
|
|
1366
|
+
|
|
1367
|
+
:where(.zhin-sandbox) .agent-playground-task-list dl {
|
|
1368
|
+
display: grid;
|
|
1369
|
+
grid-column: 2;
|
|
1370
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1371
|
+
margin: var(--console-space-2) 0 0;
|
|
1372
|
+
padding-top: var(--console-space-2);
|
|
1373
|
+
border-top: 1px dashed hsl(var(--border) / 0.72);
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
:where(.zhin-sandbox) .agent-playground-task-list dl > div { display: flex; flex-direction: column; gap: 0; }
|
|
1377
|
+
:where(.zhin-sandbox) .agent-playground-task-list dt { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); }
|
|
1378
|
+
:where(.zhin-sandbox) .agent-playground-task-list dd { margin: 0; font-size: var(--console-text-label); font-variant-numeric: tabular-nums; }
|
|
1379
|
+
|
|
1380
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article {
|
|
1381
|
+
overflow: hidden;
|
|
1382
|
+
border: 1px solid hsl(var(--border) / 0.72);
|
|
1383
|
+
border-radius: var(--console-radius-2);
|
|
1384
|
+
background: hsl(var(--background) / 0.6);
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article.is-expanded {
|
|
1388
|
+
border-color: hsl(var(--playground-accent) / 0.28);
|
|
1389
|
+
box-shadow: var(--console-elevation-2);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) {
|
|
1393
|
+
display: grid;
|
|
1394
|
+
width: 100%;
|
|
1395
|
+
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
1396
|
+
gap: var(--console-space-2);
|
|
1397
|
+
align-items: center;
|
|
1398
|
+
padding: var(--console-space-2) var(--console-space-2);
|
|
1399
|
+
border: 0;
|
|
1400
|
+
background: transparent;
|
|
1401
|
+
color: inherit;
|
|
1402
|
+
text-align: left;
|
|
1403
|
+
cursor: pointer;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
:where(.zhin-sandbox) .agent-playground-artifact-icon {
|
|
1407
|
+
display: inline-flex;
|
|
1408
|
+
width: 1.65rem;
|
|
1409
|
+
height: 1.65rem;
|
|
1410
|
+
align-items: center;
|
|
1411
|
+
justify-content: center;
|
|
1412
|
+
border: 1px solid hsl(var(--playground-accent) / 0.18);
|
|
1413
|
+
border-radius: var(--console-radius-1);
|
|
1414
|
+
background: hsl(var(--playground-accent-soft));
|
|
1415
|
+
color: hsl(var(--playground-accent));
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
|
|
1419
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list strong,
|
|
1420
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1421
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list strong { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
1422
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list small { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); }
|
|
1423
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list em { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-style: normal; text-transform: none; }
|
|
1424
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article.is-completed em { color: hsl(var(--playground-accent)); }
|
|
1425
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article.is-failed em,
|
|
1426
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article.is-denied em { color: hsl(var(--destructive)); }
|
|
1427
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) > svg { color: hsl(var(--muted-foreground)); transition: transform 160ms ease; }
|
|
1428
|
+
:where(.zhin-sandbox) .agent-playground-artifact-list article.is-expanded > button:where(:not(.console-control, [data-state])) > svg { transform: rotate(180deg); }
|
|
1429
|
+
|
|
1430
|
+
:where(.zhin-sandbox) .agent-playground-artifact-detail {
|
|
1431
|
+
display: grid;
|
|
1432
|
+
gap: var(--console-space-2);
|
|
1433
|
+
padding: 0 var(--console-space-2) var(--console-space-2) var(--console-space-7);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
:where(.zhin-sandbox) .agent-playground-artifact-detail > code {
|
|
1437
|
+
overflow-wrap: anywhere;
|
|
1438
|
+
color: hsl(var(--muted-foreground));
|
|
1439
|
+
font-size: var(--console-text-label);
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
:where(.zhin-sandbox) .agent-playground-artifact-detail pre {
|
|
1443
|
+
max-height: 15rem;
|
|
1444
|
+
margin: 0;
|
|
1445
|
+
overflow: auto;
|
|
1446
|
+
padding: var(--console-space-2);
|
|
1447
|
+
border: 1px solid hsl(var(--border) / 0.7);
|
|
1448
|
+
border-radius: var(--console-radius-1);
|
|
1449
|
+
background: hsl(var(--foreground));
|
|
1450
|
+
color: hsl(var(--background));
|
|
1451
|
+
font-size: var(--console-text-label);
|
|
1452
|
+
line-height: 1.55;
|
|
1453
|
+
white-space: pre-wrap;
|
|
1454
|
+
word-break: break-word;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
:where(.zhin-sandbox) .agent-playground-artifact-detail footer {
|
|
1458
|
+
display: flex;
|
|
1459
|
+
justify-content: space-between;
|
|
1460
|
+
color: hsl(var(--muted-foreground));
|
|
1461
|
+
font-size: var(--console-text-label);
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
:where(.zhin-sandbox) .agent-playground-artifact-empty {
|
|
1465
|
+
display: flex;
|
|
1466
|
+
min-height: 6.5rem;
|
|
1467
|
+
flex-direction: column;
|
|
1468
|
+
align-items: center;
|
|
1469
|
+
justify-content: center;
|
|
1470
|
+
gap: var(--console-space-2);
|
|
1471
|
+
padding: var(--console-space-4);
|
|
1472
|
+
border: 1px dashed hsl(var(--border));
|
|
1473
|
+
border-radius: var(--console-radius-2);
|
|
1474
|
+
color: hsl(var(--muted-foreground));
|
|
1475
|
+
font-size: var(--console-text-label);
|
|
1476
|
+
line-height: 1.45;
|
|
1477
|
+
text-align: center;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
:where(.zhin-sandbox) .agent-playground-studio-link {
|
|
1481
|
+
display: flex;
|
|
1482
|
+
flex-shrink: 0;
|
|
1483
|
+
flex-direction: column;
|
|
1484
|
+
gap: var(--console-space-1);
|
|
1485
|
+
margin: var(--console-space-3);
|
|
1486
|
+
padding: var(--console-space-3);
|
|
1487
|
+
border: 1px solid hsl(var(--playground-accent) / 0.2);
|
|
1488
|
+
border-radius: var(--console-radius-2);
|
|
1489
|
+
background: hsl(var(--playground-accent-soft));
|
|
1490
|
+
color: hsl(var(--playground-accent));
|
|
1491
|
+
text-decoration: none;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
:where(.zhin-sandbox) .agent-playground-studio-link > span { display: flex; align-items: center; gap: var(--console-space-2); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
1495
|
+
:where(.zhin-sandbox) .agent-playground-studio-link code { overflow: hidden; opacity: 0.7; font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; }
|
|
1496
|
+
:where(.zhin-sandbox) .agent-playground-studio-link:hover { border-color: hsl(var(--playground-accent) / 0.42); }
|
|
1497
|
+
|
|
1498
|
+
:where(.zhin-sandbox) .agent-playground-inspector-overlay { display: none; }
|
|
1499
|
+
|
|
1500
|
+
.agent-playground-shell:where(.zhin-sandbox) button:focus-visible:where(:not(.console-control, [data-state])), .agent-playground-shell:where(.zhin-sandbox) a:focus-visible:where(:not(.console-control, [data-state])), .agent-playground-shell:where(.zhin-sandbox) input:focus-visible:where(:not(.console-control, [data-state])) {
|
|
1501
|
+
outline: 2px solid hsl(var(--playground-accent));
|
|
1502
|
+
outline-offset: 2px;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
@keyframes playground-trace-pulse {
|
|
1506
|
+
from { opacity: 0.25; transform: translateY(1px); }
|
|
1507
|
+
to { opacity: 1; transform: translateY(-1px); }
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
@keyframes playground-run-breathe {
|
|
1511
|
+
0%, 100% { opacity: 0.52; transform: scale(0.92); }
|
|
1512
|
+
50% { opacity: 1; transform: scale(1); }
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
@media (width < 90rem) {
|
|
1516
|
+
.agent-playground-shell:where(.zhin-sandbox),
|
|
1517
|
+
.agent-playground-shell.has-inspector:where(.zhin-sandbox) {
|
|
1518
|
+
grid-template-columns: minmax(13.5rem, 15rem) minmax(0, 1fr);
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
:where(.zhin-sandbox) .agent-playground-inspector {
|
|
1522
|
+
position: fixed;
|
|
1523
|
+
z-index: 1201;
|
|
1524
|
+
top: 0;
|
|
1525
|
+
right: 0;
|
|
1526
|
+
bottom: 0;
|
|
1527
|
+
width: min(22rem, 90vw);
|
|
1528
|
+
height: 100dvh;
|
|
1529
|
+
transform: translateX(105%);
|
|
1530
|
+
transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
1531
|
+
box-shadow: var(--console-elevation-3);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
:where(.zhin-sandbox) .agent-playground-inspector.show { transform: translateX(0); }
|
|
1535
|
+
:where(.zhin-sandbox) .agent-playground-inspector-overlay {
|
|
1536
|
+
position: fixed;
|
|
1537
|
+
z-index: 1200;
|
|
1538
|
+
inset: 0;
|
|
1539
|
+
display: block;
|
|
1540
|
+
background: hsl(var(--console-shadow-color) / 0.42);
|
|
1541
|
+
backdrop-filter: blur(2px);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
@media (width < 64rem) {
|
|
1547
|
+
.agent-playground-shell:where(.zhin-sandbox),
|
|
1548
|
+
.agent-playground-shell.has-inspector:where(.zhin-sandbox) {
|
|
1549
|
+
position: relative;
|
|
1550
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1551
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
:where(.zhin-sandbox) .agent-playground-mobilebar {
|
|
1555
|
+
display: grid;
|
|
1556
|
+
grid-column: 1;
|
|
1557
|
+
grid-row: 1;
|
|
1558
|
+
grid-template-columns: 1fr auto 1fr;
|
|
1559
|
+
align-items: center;
|
|
1560
|
+
min-height: 2.65rem;
|
|
1561
|
+
padding: var(--console-space-1) var(--console-space-2);
|
|
1562
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
1563
|
+
background: hsl(var(--background));
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
:where(.zhin-sandbox) .agent-playground-mobilebar strong { font-size: var(--console-text-label); }
|
|
1567
|
+
:where(.zhin-sandbox) .agent-playground-mobilebar button:where(:not(.console-control, [data-state])) {
|
|
1568
|
+
display: inline-flex;
|
|
1569
|
+
align-items: center;
|
|
1570
|
+
gap: var(--console-space-1);
|
|
1571
|
+
justify-self: start;
|
|
1572
|
+
padding: var(--console-space-2);
|
|
1573
|
+
border: 0;
|
|
1574
|
+
background: transparent;
|
|
1575
|
+
color: hsl(var(--muted-foreground));
|
|
1576
|
+
font-size: var(--console-text-label);
|
|
1577
|
+
cursor: pointer;
|
|
1578
|
+
}
|
|
1579
|
+
:where(.zhin-sandbox) .agent-playground-mobilebar button:last-child:where(:not(.console-control, [data-state])) { justify-self: end; }
|
|
1580
|
+
|
|
1581
|
+
:where(.zhin-sandbox) .agent-playground-sessions.channel-sidebar {
|
|
1582
|
+
position: fixed;
|
|
1583
|
+
z-index: 1201;
|
|
1584
|
+
top: 0;
|
|
1585
|
+
bottom: 0;
|
|
1586
|
+
left: 0;
|
|
1587
|
+
width: min(19rem, 88vw);
|
|
1588
|
+
max-width: 88vw;
|
|
1589
|
+
height: 100dvh;
|
|
1590
|
+
transform: translateX(-105%);
|
|
1591
|
+
visibility: hidden;
|
|
1592
|
+
transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
1593
|
+
box-shadow: var(--console-elevation-3);
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
:where(.zhin-sandbox) .agent-playground-sessions.channel-sidebar.show { transform: translateX(0); visibility: visible; }
|
|
1597
|
+
.agent-playground-shell:where(.zhin-sandbox) .channel-overlay {
|
|
1598
|
+
position: fixed;
|
|
1599
|
+
z-index: 1200;
|
|
1600
|
+
inset: 0;
|
|
1601
|
+
display: block;
|
|
1602
|
+
background: hsl(var(--console-shadow-color) / 0.42);
|
|
1603
|
+
backdrop-filter: blur(2px);
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
:where(.zhin-sandbox) .agent-playground-main.chat-area {
|
|
1607
|
+
grid-column: 1;
|
|
1608
|
+
grid-row: 2;
|
|
1609
|
+
padding: 0;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle { justify-content: center; }
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
@media (width < 48rem) {
|
|
1616
|
+
.agent-playground-shell:where(.zhin-sandbox) {
|
|
1617
|
+
height: calc(100dvh - var(--console-header-h, 4.5rem) - var(--console-page-padding-block) - 1rem);
|
|
1618
|
+
min-height: 32rem;
|
|
1619
|
+
border-radius: var(--console-radius-3);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
:where(.zhin-sandbox) .agent-playground-run-actions a:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-state { display: none; }
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
@media (width < 40rem) {
|
|
1626
|
+
.agent-playground-shell:where(.zhin-sandbox) {
|
|
1627
|
+
height: calc(100dvh - var(--console-header-h, 4.5rem) - var(--console-page-padding-block) - 1rem);
|
|
1628
|
+
min-height: 29rem;
|
|
1629
|
+
border-right: 0;
|
|
1630
|
+
border-left: 0;
|
|
1631
|
+
border-radius: 0;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
:where(.zhin-sandbox) .agent-playground-runbar {
|
|
1635
|
+
min-height: 4.1rem;
|
|
1636
|
+
gap: var(--console-space-2);
|
|
1637
|
+
padding: var(--console-space-2) var(--console-space-3);
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
:where(.zhin-sandbox) .agent-playground-run-icon { width: 2.05rem; height: 2.05rem; }
|
|
1641
|
+
:where(.zhin-sandbox) .agent-playground-run-title span { display: none; }
|
|
1642
|
+
:where(.zhin-sandbox) .agent-playground-run-actions { flex-wrap: nowrap; gap: var(--console-space-1); }
|
|
1643
|
+
:where(.zhin-sandbox) .agent-playground-run-actions button:where(:not(.console-control, [data-state])) {
|
|
1644
|
+
flex-shrink: 0;
|
|
1645
|
+
width: 2rem;
|
|
1646
|
+
min-width: 2rem;
|
|
1647
|
+
height: 2rem;
|
|
1648
|
+
gap: 0;
|
|
1649
|
+
padding: 0;
|
|
1650
|
+
font-size: 0;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
:where(.zhin-sandbox) .agent-playground-run-settings {
|
|
1654
|
+
max-height: 16rem;
|
|
1655
|
+
overflow-y: auto;
|
|
1656
|
+
padding: var(--console-space-3);
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
:where(.zhin-sandbox) .agent-playground-network-toggle { align-items: flex-start; }
|
|
1660
|
+
|
|
1661
|
+
:where(.zhin-sandbox) .agent-playground-empty {
|
|
1662
|
+
width: min(100% - 1.5rem, 32rem);
|
|
1663
|
+
padding: var(--console-space-6) 0;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
:where(.zhin-sandbox) .agent-playground-prompts { grid-template-columns: 1fr; }
|
|
1667
|
+
:where(.zhin-sandbox) .agent-playground-prompts button:where(:not(.console-control, [data-state])) { min-height: 2.8rem; }
|
|
1668
|
+
:where(.zhin-sandbox) .agent-playground-message-list { width: calc(100% - 1rem); padding-top: var(--console-space-4); }
|
|
1669
|
+
:where(.zhin-sandbox) .agent-playground-message-avatar { width: 1.75rem; height: 1.75rem; }
|
|
1670
|
+
:where(.zhin-sandbox) .agent-playground-message-main { max-width: calc(100% - 2.35rem); }
|
|
1671
|
+
:where(.zhin-sandbox) .agent-playground-message.is-user .agent-playground-message-main { max-width: 84%; }
|
|
1672
|
+
:where(.zhin-sandbox) .agent-playground-message-content { padding: var(--console-space-3) var(--console-space-3); }
|
|
1673
|
+
:where(.zhin-sandbox) .agent-playground-inline-run { margin-left: 0; }
|
|
1674
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-head { grid-template-columns: auto minmax(0, 1fr); padding: var(--console-space-3) var(--console-space-3) var(--console-space-3) var(--console-space-3); }
|
|
1675
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: var(--console-space-7); }
|
|
1676
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
1677
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics > div:nth-child(3) { border-right: 0; }
|
|
1678
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics > div:nth-child(n+4) { border-top: 1px solid hsl(var(--playground-line) / 0.48); }
|
|
1679
|
+
:where(.zhin-sandbox) .agent-playground-inline-run-metrics > div:nth-child(4) { grid-column: span 2; }
|
|
1680
|
+
:where(.zhin-sandbox) .agent-playground-inline-run footer { align-items: flex-start; flex-direction: column; }
|
|
1681
|
+
|
|
1682
|
+
:where(.zhin-sandbox) .agent-playground-composer { padding: var(--console-space-2); }
|
|
1683
|
+
:where(.zhin-sandbox) .agent-playground-composer > div:first-child > .flex-1 { display: none; }
|
|
1684
|
+
:where(.zhin-sandbox) .agent-playground-composer > div:last-child { display: none; }
|
|
1685
|
+
:where(.zhin-sandbox) .agent-playground-composer .zhin-code-block { min-width: min(20rem, 78vw); }
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1689
|
+
.agent-playground-shell:where(.zhin-sandbox) *,
|
|
1690
|
+
:where(.zhin-sandbox) .agent-playground-trace-loading i {
|
|
1691
|
+
scroll-behavior: auto !important;
|
|
1692
|
+
animation-duration: 0.01ms !important;
|
|
1693
|
+
animation-iteration-count: 1 !important;
|
|
1694
|
+
transition-duration: 0.01ms !important;
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
.console-route-view .zhin-sandbox.agent-playground-shell {
|
|
1698
|
+
border-radius: var(--console-radius-4);
|
|
1699
|
+
box-shadow: var(--console-elevation-1);
|
|
1700
|
+
font-size: var(--console-text-body);
|
|
1701
|
+
}
|
|
1702
|
+
.console-route-view .zhin-sandbox .sandbox-hints {
|
|
1703
|
+
flex-wrap: nowrap;
|
|
1704
|
+
overflow-x: auto;
|
|
1705
|
+
white-space: nowrap;
|
|
1706
|
+
font-size: var(--console-text-label);
|
|
1707
|
+
color: hsl(var(--muted-foreground));
|
|
1708
|
+
scrollbar-width: none;
|
|
1709
|
+
}
|
|
1710
|
+
.console-route-view .zhin-sandbox .sandbox-hints::-webkit-scrollbar { display: none; }
|
|
1711
|
+
.console-route-view .zhin-sandbox .sandbox-hint-key { font-size: var(--console-text-label); }
|
|
1712
|
+
.console-route-view .zhin-sandbox .agent-playground-run-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
|
|
1713
|
+
|
|
1714
|
+
/* ---- from zhinjs/console console-ui/src/im-workspace.css (only the rules the Sandbox DOM uses) ---- */
|
|
1715
|
+
:where(.zhin-sandbox) .channel-sidebar { display: flex; flex-direction: column; flex-shrink: 0; min-height: 0; }
|
|
1716
|
+
:where(.zhin-sandbox) .chat-area { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
|
|
1717
|
+
:where(.zhin-sandbox) .im-segment-list, :where(.zhin-sandbox) .im-markdown-body { display: flex; flex-direction: column; gap: var(--console-space-2); min-width: 0; }
|
|
1718
|
+
:where(.zhin-sandbox) .im-message-link { color: hsl(var(--primary)); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
|
|
1719
|
+
:where(.zhin-sandbox) .im-inline-code { padding: 0 var(--console-space-1); border: 1px solid hsl(var(--border)); border-radius: var(--console-radius-1); background: hsl(var(--muted)); font-family: var(--console-font-mono); font-size: var(--console-text-label); }
|
|
1720
|
+
:where(.zhin-sandbox) .im-markdown-heading { font-weight: var(--console-weight-strong); line-height: 1.4; color: hsl(var(--foreground)); }
|
|
1721
|
+
:where(.zhin-sandbox) .im-markdown-heading-1 { font-size: var(--console-text-title); }
|
|
1722
|
+
:where(.zhin-sandbox) .im-markdown-heading-2 { font-size: var(--console-text-section); }
|
|
1723
|
+
:where(.zhin-sandbox) .im-markdown-heading-3, :where(.zhin-sandbox) .im-markdown-heading-4 { font-size: var(--console-text-section); }
|
|
1724
|
+
:where(.zhin-sandbox) .im-markdown-paragraph { margin: 0; white-space: pre-wrap; }
|
|
1725
|
+
:where(.zhin-sandbox) .im-markdown-quote { margin: 0; padding: var(--console-space-2) var(--console-space-3); border-left: 3px solid hsl(var(--border)); border-radius: 0 var(--console-radius-1) var(--console-radius-1) 0; background: hsl(var(--muted)); color: hsl(var(--foreground)); }
|
|
1726
|
+
:where(.zhin-sandbox) .im-markdown-quote p { margin: 0; }
|
|
1727
|
+
:where(.zhin-sandbox) .im-markdown-list { margin: 0; padding-left: var(--console-space-5); }
|
|
1728
|
+
:where(.zhin-sandbox) .im-markdown-list li + li { margin-top: var(--console-space-1); }
|
|
1729
|
+
:where(.zhin-sandbox) .rich-text-editor { font-family: inherit; line-height: 1.6; }
|
|
1730
|
+
:where(.zhin-sandbox) .rich-text-editor:focus { border-color: hsl(var(--ring)) !important; outline: var(--console-border-hairline) solid hsl(var(--ring)); outline-offset: calc(var(--console-border-hairline) * -1); }
|
|
1731
|
+
:where(.zhin-sandbox) .rich-text-editor:empty::before { content: attr(data-placeholder); color: hsl(var(--muted-foreground)); pointer-events: none; }
|
|
1732
|
+
:where(.zhin-sandbox) .rich-text-editor .editor-face { display: inline-block; width: 24px; height: 24px; margin: 0 var(--console-space-1); vertical-align: middle; }
|
|
1733
|
+
:where(.zhin-sandbox) .rich-text-editor .editor-image { display: block; max-width: min(200px,100%); border-radius: var(--console-radius-2); margin: var(--console-space-1) 0; }
|
|
1734
|
+
:where(.zhin-sandbox) .rich-text-editor .editor-video, :where(.zhin-sandbox) .rich-text-editor .editor-audio, :where(.zhin-sandbox) .rich-text-editor .editor-at { display: inline-flex; align-items: center; gap: var(--console-space-1); padding: var(--console-space-1) var(--console-space-2); margin: var(--console-space-1); border: 1px solid hsl(var(--border)); border-radius: var(--console-radius-1); background: hsl(var(--muted)); color: hsl(var(--foreground)); font-size: var(--console-text-label); user-select: none; }
|
|
1735
|
+
:where(.zhin-sandbox) .rich-text-editor .editor-at-symbol { font-weight: var(--console-weight-strong); }
|
|
1736
|
+
`;
|