pinokiod 8.3.6 → 8.3.9
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/kernel/agent_instructions.js +56 -0
- package/kernel/app_log_sessions.js +1 -1
- package/kernel/bin/git.js +1 -1
- package/kernel/bin/node.js +2 -2
- package/kernel/environment.js +6 -98
- package/kernel/managed_skills.js +2 -1
- package/package.json +1 -1
- package/prototype/system/SKILL_PINOKIO.md +5 -2
- package/server/index.js +7 -0
- package/server/lib/brain.js +279 -0
- package/server/public/agent-bar-app.css +359 -0
- package/server/public/agent-bar-app.js +821 -0
- package/server/public/agent-bar-attach.css +142 -0
- package/server/public/agent-bar-attach.js +299 -0
- package/server/public/agent-bar-panel.css +788 -0
- package/server/public/agent-bar-panel.js +1912 -0
- package/server/public/agent-bar-shell.css +128 -0
- package/server/public/agent-bar-shell.js +251 -0
- package/server/public/agent-bar.css +972 -0
- package/server/public/agent-bar.js +1513 -0
- package/server/public/common.js +65 -0
- package/server/public/layout.js +13 -1
- package/server/routes/apps.js +6 -0
- package/server/socket.js +6 -2
- package/server/views/app.ejs +13 -0
- package/server/views/partials/main_sidebar.ejs +7 -0
- package/system/plugin/opencode/pinokio.js +8 -2
- package/system/plugin/opencode-auto/pinokio.js +4 -1
- package/test/agent-instructions.test.js +69 -0
- package/test/app-log-sessions.test.js +29 -0
- package/test/brain.test.js +257 -0
- package/test/managed-skills.test.js +6 -1
- package/test/node-bin.test.js +4 -4
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
/* Agent bar: the prompt input in the top navbar (see agent-bar.js and, for app
|
|
2
|
+
pages, agent-bar-app.js).
|
|
3
|
+
The closed bar is all there is: an input, a small agent icon and a send arrow.
|
|
4
|
+
Nothing opens when you click into it. Menus open only from their own button,
|
|
5
|
+
and the folder name (Create app / Create plugin / Download) is the footer of
|
|
6
|
+
the same box. */
|
|
7
|
+
.agent-bar {
|
|
8
|
+
--agent-bar-text: #111827;
|
|
9
|
+
--agent-bar-muted: rgba(55, 65, 81, 0.78);
|
|
10
|
+
--agent-bar-border: rgba(15, 23, 42, 0.16);
|
|
11
|
+
--agent-bar-border-strong: rgba(15, 23, 42, 0.45);
|
|
12
|
+
--agent-bar-surface: #ffffff;
|
|
13
|
+
--agent-bar-chip: rgba(15, 23, 42, 0.06);
|
|
14
|
+
--agent-bar-chip-hover: rgba(15, 23, 42, 0.1);
|
|
15
|
+
--agent-bar-primary-bg: var(--pinokio-chrome-accent-bg-light, rgba(15, 23, 42, 0.84));
|
|
16
|
+
--agent-bar-primary-fg: var(--pinokio-chrome-accent-fg-light, #c8a362);
|
|
17
|
+
--agent-bar-shadow: 0 12px 24px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
|
|
18
|
+
flex: 1 1 auto;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
/* The field is 30px tall, the same as the header's own buttons. */
|
|
23
|
+
margin: 0 12px;
|
|
24
|
+
font: 400 13px system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
25
|
+
letter-spacing: 0;
|
|
26
|
+
color: var(--agent-bar-text);
|
|
27
|
+
-webkit-app-region: no-drag;
|
|
28
|
+
}
|
|
29
|
+
body.dark .agent-bar {
|
|
30
|
+
--agent-bar-text: rgba(250, 250, 250, 0.96);
|
|
31
|
+
--agent-bar-muted: rgba(161, 161, 170, 0.92);
|
|
32
|
+
--agent-bar-border: rgba(255, 255, 255, 0.16);
|
|
33
|
+
--agent-bar-border-strong: rgba(255, 255, 255, 0.45);
|
|
34
|
+
/* Lighter than the top bar, like Pinokio's other dark fields (the home search
|
|
35
|
+
box is 10% white on the same background); solid, because the box and its
|
|
36
|
+
menus also lie over the page. */
|
|
37
|
+
--agent-bar-surface: #323334;
|
|
38
|
+
--agent-bar-chip: rgba(255, 255, 255, 0.08);
|
|
39
|
+
--agent-bar-chip-hover: rgba(255, 255, 255, 0.14);
|
|
40
|
+
--agent-bar-primary-bg: var(--pinokio-chrome-accent-bg-dark, rgba(255, 255, 255, 0.1));
|
|
41
|
+
--agent-bar-primary-fg: var(--pinokio-chrome-accent-fg-dark, #c2b28a);
|
|
42
|
+
--agent-bar-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
|
|
43
|
+
}
|
|
44
|
+
.agent-bar [hidden] {
|
|
45
|
+
display: none !important;
|
|
46
|
+
}
|
|
47
|
+
.agent-bar button {
|
|
48
|
+
font: inherit;
|
|
49
|
+
letter-spacing: 0;
|
|
50
|
+
color: var(--agent-bar-text);
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
/* Pinokio colors hovered and focused buttons blue; the bar keeps its own color. */
|
|
54
|
+
.agent-bar button:hover,
|
|
55
|
+
.agent-bar button:focus,
|
|
56
|
+
.agent-bar button:active {
|
|
57
|
+
color: var(--agent-bar-text);
|
|
58
|
+
outline: none;
|
|
59
|
+
}
|
|
60
|
+
.agent-bar button:disabled {
|
|
61
|
+
cursor: default;
|
|
62
|
+
}
|
|
63
|
+
.agent-bar__inner {
|
|
64
|
+
position: relative;
|
|
65
|
+
width: 100%;
|
|
66
|
+
max-width: 640px;
|
|
67
|
+
/* The bar always takes one line of space in the header. The box itself is laid
|
|
68
|
+
over it, so it can grow downward over the page (long prompt, folder row). */
|
|
69
|
+
height: 30px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Raised while a menu, the folder row or a message reaches below the top bar
|
|
73
|
+
(see syncRaise in the scripts), so page content stacked above the top bar,
|
|
74
|
+
such as the terminal page's terminal, cannot cover them. */
|
|
75
|
+
header.navheader.agent-bar-raised {
|
|
76
|
+
z-index: 100000;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* the box */
|
|
80
|
+
.agent-bar__field {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 0;
|
|
83
|
+
left: 0;
|
|
84
|
+
right: 0;
|
|
85
|
+
z-index: 10002;
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
border: 1px solid var(--agent-bar-border);
|
|
88
|
+
/* Fully rounded at one line (half the 30px height); a fixed value, so the box
|
|
89
|
+
keeps the same corners when it grows. */
|
|
90
|
+
border-radius: 15px;
|
|
91
|
+
background: var(--agent-bar-surface);
|
|
92
|
+
}
|
|
93
|
+
.agent-bar[data-engaged="true"] .agent-bar__field {
|
|
94
|
+
border-color: var(--agent-bar-border-strong);
|
|
95
|
+
}
|
|
96
|
+
.agent-bar[data-tall="true"] .agent-bar__field {
|
|
97
|
+
box-shadow: var(--agent-bar-shadow);
|
|
98
|
+
}
|
|
99
|
+
.agent-bar__top {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: flex-start;
|
|
102
|
+
gap: 6px;
|
|
103
|
+
min-height: 22px;
|
|
104
|
+
padding: 3px 4px;
|
|
105
|
+
}
|
|
106
|
+
.agent-bar__mark {
|
|
107
|
+
flex: none;
|
|
108
|
+
width: 14px;
|
|
109
|
+
height: 14px;
|
|
110
|
+
background: currentColor;
|
|
111
|
+
-webkit-mask: url('/pinokio-mark.svg') center / 14px 14px no-repeat;
|
|
112
|
+
mask: url('/pinokio-mark.svg') center / 14px 14px no-repeat;
|
|
113
|
+
}
|
|
114
|
+
.agent-bar__caret {
|
|
115
|
+
font-size: 8px;
|
|
116
|
+
opacity: 0.6;
|
|
117
|
+
}
|
|
118
|
+
/* the mode chip (Ask / Create app / Create plugin / Download) */
|
|
119
|
+
.agent-bar__scope {
|
|
120
|
+
flex: none;
|
|
121
|
+
height: 22px;
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
gap: 5px;
|
|
125
|
+
padding: 0 9px;
|
|
126
|
+
border: 0;
|
|
127
|
+
border-radius: 11px;
|
|
128
|
+
background: var(--agent-bar-chip);
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
font-weight: 600;
|
|
131
|
+
}
|
|
132
|
+
.agent-bar__scope:hover,
|
|
133
|
+
.agent-bar__scope.is-open {
|
|
134
|
+
background: var(--agent-bar-chip-hover);
|
|
135
|
+
}
|
|
136
|
+
.agent-bar .agent-bar__input {
|
|
137
|
+
flex: 1 1 auto;
|
|
138
|
+
display: block;
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
min-width: 0;
|
|
141
|
+
width: auto;
|
|
142
|
+
height: 22px;
|
|
143
|
+
min-height: 22px;
|
|
144
|
+
margin: 0;
|
|
145
|
+
padding: 1px 2px;
|
|
146
|
+
border: 0;
|
|
147
|
+
border-radius: 0;
|
|
148
|
+
outline: 0;
|
|
149
|
+
box-shadow: none;
|
|
150
|
+
resize: none;
|
|
151
|
+
overflow-y: hidden;
|
|
152
|
+
background: transparent;
|
|
153
|
+
color: var(--agent-bar-text);
|
|
154
|
+
font: 400 14px/20px system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
155
|
+
}
|
|
156
|
+
.agent-bar .agent-bar__input::placeholder {
|
|
157
|
+
color: var(--agent-bar-muted);
|
|
158
|
+
opacity: 1;
|
|
159
|
+
}
|
|
160
|
+
/* app pages: how many sessions are running, only when there are any */
|
|
161
|
+
.agent-bar__running {
|
|
162
|
+
flex: none;
|
|
163
|
+
align-self: flex-end;
|
|
164
|
+
height: 22px;
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
gap: 6px;
|
|
168
|
+
padding: 0 8px;
|
|
169
|
+
border: 0;
|
|
170
|
+
border-radius: 11px;
|
|
171
|
+
background: transparent;
|
|
172
|
+
font-size: 12px;
|
|
173
|
+
white-space: nowrap;
|
|
174
|
+
}
|
|
175
|
+
.agent-bar .agent-bar__running {
|
|
176
|
+
color: var(--agent-bar-muted);
|
|
177
|
+
}
|
|
178
|
+
.agent-bar .agent-bar__running:hover,
|
|
179
|
+
.agent-bar .agent-bar__running.is-open {
|
|
180
|
+
background: var(--agent-bar-chip);
|
|
181
|
+
color: var(--agent-bar-text);
|
|
182
|
+
}
|
|
183
|
+
.agent-bar__dot {
|
|
184
|
+
width: 7px;
|
|
185
|
+
height: 7px;
|
|
186
|
+
border-radius: 50%;
|
|
187
|
+
background: #3f9b1f;
|
|
188
|
+
}
|
|
189
|
+
/* the agent: one small icon */
|
|
190
|
+
.agent-bar__agent {
|
|
191
|
+
flex: none;
|
|
192
|
+
align-self: flex-end;
|
|
193
|
+
height: 22px;
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
gap: 4px;
|
|
197
|
+
padding: 0 6px 0 3px;
|
|
198
|
+
border: 0;
|
|
199
|
+
border-radius: 11px;
|
|
200
|
+
background: transparent;
|
|
201
|
+
}
|
|
202
|
+
.agent-bar__agent:hover,
|
|
203
|
+
.agent-bar__agent.is-open {
|
|
204
|
+
background: var(--agent-bar-chip);
|
|
205
|
+
}
|
|
206
|
+
.agent-bar__agent-img {
|
|
207
|
+
width: 16px;
|
|
208
|
+
height: 16px;
|
|
209
|
+
object-fit: contain;
|
|
210
|
+
border-radius: 4px;
|
|
211
|
+
}
|
|
212
|
+
.agent-bar__agent-none {
|
|
213
|
+
width: 16px;
|
|
214
|
+
text-align: center;
|
|
215
|
+
font-size: 12px;
|
|
216
|
+
color: var(--agent-bar-muted);
|
|
217
|
+
}
|
|
218
|
+
/* send */
|
|
219
|
+
.agent-bar__go {
|
|
220
|
+
flex: none;
|
|
221
|
+
align-self: flex-end;
|
|
222
|
+
width: 22px;
|
|
223
|
+
height: 22px;
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
justify-content: center;
|
|
227
|
+
border: 0;
|
|
228
|
+
border-radius: 50%;
|
|
229
|
+
background: var(--agent-bar-primary-bg);
|
|
230
|
+
font-size: 11px;
|
|
231
|
+
}
|
|
232
|
+
.agent-bar button.agent-bar__go,
|
|
233
|
+
.agent-bar button.agent-bar__go:hover,
|
|
234
|
+
.agent-bar button.agent-bar__go:focus,
|
|
235
|
+
.agent-bar button.agent-bar__go:active {
|
|
236
|
+
color: var(--agent-bar-primary-fg);
|
|
237
|
+
}
|
|
238
|
+
.agent-bar__go.is-waiting {
|
|
239
|
+
opacity: 0.4;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* footer of the same box: the folder name */
|
|
243
|
+
.agent-bar__footer {
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
gap: 10px;
|
|
247
|
+
height: 36px;
|
|
248
|
+
padding: 0 14px;
|
|
249
|
+
border-top: 1px solid var(--agent-bar-border);
|
|
250
|
+
}
|
|
251
|
+
.agent-bar[data-footer="true"] .agent-bar__field {
|
|
252
|
+
box-shadow: var(--agent-bar-shadow);
|
|
253
|
+
}
|
|
254
|
+
.agent-bar__seg {
|
|
255
|
+
flex: none;
|
|
256
|
+
display: inline-flex;
|
|
257
|
+
padding: 2px;
|
|
258
|
+
margin-left: -6px;
|
|
259
|
+
border-radius: 8px;
|
|
260
|
+
background: var(--agent-bar-chip);
|
|
261
|
+
}
|
|
262
|
+
.agent-bar__seg-item {
|
|
263
|
+
height: 24px;
|
|
264
|
+
padding: 0 10px;
|
|
265
|
+
border: 0;
|
|
266
|
+
border-radius: 6px;
|
|
267
|
+
background: transparent;
|
|
268
|
+
font-size: 12px;
|
|
269
|
+
font-weight: 500;
|
|
270
|
+
}
|
|
271
|
+
.agent-bar__seg-item[aria-checked="true"] {
|
|
272
|
+
background: var(--agent-bar-surface);
|
|
273
|
+
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
|
|
274
|
+
font-weight: 700;
|
|
275
|
+
}
|
|
276
|
+
.agent-bar__name {
|
|
277
|
+
flex: 1 1 auto;
|
|
278
|
+
min-width: 0;
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
gap: 8px;
|
|
282
|
+
}
|
|
283
|
+
.agent-bar__name-label {
|
|
284
|
+
flex: none;
|
|
285
|
+
font-size: 12px;
|
|
286
|
+
font-weight: 600;
|
|
287
|
+
color: var(--agent-bar-text);
|
|
288
|
+
}
|
|
289
|
+
.agent-bar .agent-bar__name-input {
|
|
290
|
+
flex: 1 1 auto;
|
|
291
|
+
min-width: 0;
|
|
292
|
+
height: 28px;
|
|
293
|
+
margin: 0;
|
|
294
|
+
padding: 0 2px;
|
|
295
|
+
border: 0;
|
|
296
|
+
outline: 0;
|
|
297
|
+
box-shadow: none;
|
|
298
|
+
background: transparent;
|
|
299
|
+
color: var(--agent-bar-text);
|
|
300
|
+
font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
301
|
+
}
|
|
302
|
+
.agent-bar .agent-bar__name-input::placeholder {
|
|
303
|
+
color: var(--agent-bar-muted);
|
|
304
|
+
font-weight: 400;
|
|
305
|
+
opacity: 1;
|
|
306
|
+
}
|
|
307
|
+
/* what the name will do: "Required", "Checking…", "Already exists", "✓ Creates api/x" */
|
|
308
|
+
.agent-bar__name-status {
|
|
309
|
+
flex: none;
|
|
310
|
+
max-width: 55%;
|
|
311
|
+
white-space: nowrap;
|
|
312
|
+
overflow: hidden;
|
|
313
|
+
text-overflow: ellipsis;
|
|
314
|
+
font-size: 12px;
|
|
315
|
+
color: var(--agent-bar-muted);
|
|
316
|
+
}
|
|
317
|
+
.agent-bar__name-status[data-state="success"] {
|
|
318
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
319
|
+
color: #15803d;
|
|
320
|
+
}
|
|
321
|
+
.agent-bar__name-status[data-state="success"]::before {
|
|
322
|
+
content: "\2713 ";
|
|
323
|
+
}
|
|
324
|
+
.agent-bar__name-status[data-state="error"] {
|
|
325
|
+
color: #b91c1c;
|
|
326
|
+
}
|
|
327
|
+
body.dark .agent-bar__name-status[data-state="success"] {
|
|
328
|
+
color: #4ade80;
|
|
329
|
+
}
|
|
330
|
+
body.dark .agent-bar__name-status[data-state="error"] {
|
|
331
|
+
color: #f87171;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* a message or progress, only when there is one */
|
|
335
|
+
.agent-bar__note {
|
|
336
|
+
position: absolute;
|
|
337
|
+
top: calc(var(--agent-bar-field-h, 30px) + 6px);
|
|
338
|
+
left: 0;
|
|
339
|
+
right: 0;
|
|
340
|
+
z-index: 10001;
|
|
341
|
+
box-sizing: border-box;
|
|
342
|
+
display: flex;
|
|
343
|
+
flex-wrap: wrap;
|
|
344
|
+
align-items: flex-start;
|
|
345
|
+
gap: 8px;
|
|
346
|
+
padding: 9px 12px;
|
|
347
|
+
border: 1px solid var(--agent-bar-border);
|
|
348
|
+
border-radius: 12px;
|
|
349
|
+
background: var(--agent-bar-surface);
|
|
350
|
+
box-shadow: var(--agent-bar-shadow);
|
|
351
|
+
font-size: 12px;
|
|
352
|
+
line-height: 1.4;
|
|
353
|
+
text-align: left;
|
|
354
|
+
color: var(--agent-bar-text);
|
|
355
|
+
}
|
|
356
|
+
.agent-bar__note[data-kind="error"] {
|
|
357
|
+
color: #b42318;
|
|
358
|
+
}
|
|
359
|
+
body.dark .agent-bar__note[data-kind="error"] {
|
|
360
|
+
color: #f97066;
|
|
361
|
+
}
|
|
362
|
+
.agent-bar__note-spinner {
|
|
363
|
+
margin-top: 2px;
|
|
364
|
+
color: var(--agent-bar-muted);
|
|
365
|
+
}
|
|
366
|
+
.agent-bar__note-copy {
|
|
367
|
+
flex: 1 1 0;
|
|
368
|
+
min-width: 0;
|
|
369
|
+
display: grid;
|
|
370
|
+
gap: 1px;
|
|
371
|
+
}
|
|
372
|
+
.agent-bar__note-label {
|
|
373
|
+
font-weight: 600;
|
|
374
|
+
}
|
|
375
|
+
.agent-bar__note-detail {
|
|
376
|
+
font-weight: 400;
|
|
377
|
+
color: var(--agent-bar-muted);
|
|
378
|
+
}
|
|
379
|
+
.agent-bar__note-label:empty,
|
|
380
|
+
.agent-bar__note-detail:empty {
|
|
381
|
+
display: none;
|
|
382
|
+
}
|
|
383
|
+
.agent-bar__output {
|
|
384
|
+
flex: 1 1 100%;
|
|
385
|
+
max-height: 180px;
|
|
386
|
+
margin: 0;
|
|
387
|
+
padding: 8px 10px;
|
|
388
|
+
overflow: auto;
|
|
389
|
+
border-radius: 8px;
|
|
390
|
+
background: var(--agent-bar-chip);
|
|
391
|
+
color: var(--agent-bar-text);
|
|
392
|
+
font: 400 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
393
|
+
white-space: pre-wrap;
|
|
394
|
+
overflow-wrap: anywhere;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* menus: small plain lists that hang from the prompt row, where their buttons are */
|
|
398
|
+
.agent-bar__menu {
|
|
399
|
+
position: absolute;
|
|
400
|
+
top: calc(var(--agent-bar-top-h, 30px) + 6px);
|
|
401
|
+
z-index: 10003;
|
|
402
|
+
box-sizing: border-box;
|
|
403
|
+
max-height: min(70vh, 520px);
|
|
404
|
+
overflow-y: auto;
|
|
405
|
+
padding: 6px;
|
|
406
|
+
border: 1px solid var(--agent-bar-border);
|
|
407
|
+
border-radius: 12px;
|
|
408
|
+
background: var(--agent-bar-surface);
|
|
409
|
+
box-shadow: var(--agent-bar-shadow);
|
|
410
|
+
text-align: left;
|
|
411
|
+
}
|
|
412
|
+
.agent-bar__menu[data-menu="mode"] {
|
|
413
|
+
left: 0;
|
|
414
|
+
width: 200px;
|
|
415
|
+
}
|
|
416
|
+
.agent-bar__menu[data-menu="agent"] {
|
|
417
|
+
right: 0;
|
|
418
|
+
width: 270px;
|
|
419
|
+
}
|
|
420
|
+
.agent-bar__menu[data-menu="running"] {
|
|
421
|
+
right: 0;
|
|
422
|
+
width: 320px;
|
|
423
|
+
}
|
|
424
|
+
.agent-bar__menu-title {
|
|
425
|
+
padding: 7px 8px 4px;
|
|
426
|
+
font-size: 11px;
|
|
427
|
+
font-weight: 600;
|
|
428
|
+
letter-spacing: 0.04em;
|
|
429
|
+
text-transform: uppercase;
|
|
430
|
+
color: var(--agent-bar-muted);
|
|
431
|
+
}
|
|
432
|
+
.agent-bar__menu-empty {
|
|
433
|
+
padding: 6px 8px;
|
|
434
|
+
font-size: 12px;
|
|
435
|
+
color: var(--agent-bar-muted);
|
|
436
|
+
}
|
|
437
|
+
.agent-bar__row {
|
|
438
|
+
width: 100%;
|
|
439
|
+
height: 32px;
|
|
440
|
+
display: flex;
|
|
441
|
+
align-items: center;
|
|
442
|
+
gap: 9px;
|
|
443
|
+
padding: 0 8px;
|
|
444
|
+
border: 0;
|
|
445
|
+
border-radius: 7px;
|
|
446
|
+
background: transparent;
|
|
447
|
+
font-size: 13px;
|
|
448
|
+
text-align: left;
|
|
449
|
+
}
|
|
450
|
+
.agent-bar__row:hover,
|
|
451
|
+
.agent-bar__row.is-current {
|
|
452
|
+
background: var(--agent-bar-chip);
|
|
453
|
+
}
|
|
454
|
+
.agent-bar__row-img {
|
|
455
|
+
flex: none;
|
|
456
|
+
width: 18px;
|
|
457
|
+
height: 18px;
|
|
458
|
+
object-fit: contain;
|
|
459
|
+
border-radius: 4px;
|
|
460
|
+
}
|
|
461
|
+
.agent-bar__row-icon {
|
|
462
|
+
flex: none;
|
|
463
|
+
width: 18px;
|
|
464
|
+
text-align: center;
|
|
465
|
+
font-size: 12px;
|
|
466
|
+
color: var(--agent-bar-muted);
|
|
467
|
+
}
|
|
468
|
+
.agent-bar__row-label {
|
|
469
|
+
flex: 1 1 auto;
|
|
470
|
+
min-width: 0;
|
|
471
|
+
white-space: nowrap;
|
|
472
|
+
overflow: hidden;
|
|
473
|
+
text-overflow: ellipsis;
|
|
474
|
+
}
|
|
475
|
+
.agent-bar__row-note {
|
|
476
|
+
flex: none;
|
|
477
|
+
max-width: 55%;
|
|
478
|
+
white-space: nowrap;
|
|
479
|
+
overflow: hidden;
|
|
480
|
+
text-overflow: ellipsis;
|
|
481
|
+
font-size: 12px;
|
|
482
|
+
color: var(--agent-bar-muted);
|
|
483
|
+
}
|
|
484
|
+
.agent-bar__row-check {
|
|
485
|
+
flex: none;
|
|
486
|
+
font-size: 11px;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* While the bar is on screen it is the way to Create and Ask, so the sidebar's
|
|
490
|
+
two entries are hidden. They are still in the page: when the bar is off
|
|
491
|
+
screen (the top bar is hidden, so html has no .agent-bar-active) they appear
|
|
492
|
+
and open the dialog as before. "pending" covers the moment before the bar has
|
|
493
|
+
decided. "absent" is Explore, whose top bar has no place for the bar: the
|
|
494
|
+
entries are hidden there as well, so the sidebar is the same on every page. */
|
|
495
|
+
html.agent-bar-active .main-sidebar .universal-create-menu,
|
|
496
|
+
html.agent-bar-active .main-sidebar .main-sidebar-action[data-universal-launcher-open="ask"],
|
|
497
|
+
html.agent-bar-absent .main-sidebar .universal-create-menu,
|
|
498
|
+
html.agent-bar-absent .main-sidebar .main-sidebar-action[data-universal-launcher-open="ask"],
|
|
499
|
+
html.agent-bar-pending .main-sidebar .universal-create-menu,
|
|
500
|
+
html.agent-bar-pending .main-sidebar .main-sidebar-action[data-universal-launcher-open="ask"] {
|
|
501
|
+
display: none !important;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/* The bar takes the place of the header's flexible middle element, on desktop
|
|
505
|
+
widths only. */
|
|
506
|
+
@media only screen and (min-width: 769px) {
|
|
507
|
+
[data-agent-bar-replaced] {
|
|
508
|
+
display: none !important;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
/* Phones (same breakpoint as the rest of the top navbar's phone layout).
|
|
512
|
+
Pages without the main sidebar turn the navbar into a narrow column there,
|
|
513
|
+
with no room for the bar, so by default it is not shown. */
|
|
514
|
+
@media only screen and (max-width: 768px) {
|
|
515
|
+
.agent-bar {
|
|
516
|
+
display: none;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* Phones, pages with the main sidebar. style.css makes the navbar a bottom bar
|
|
521
|
+
of icons there. These rules put it back at the top and leave only the logo
|
|
522
|
+
(it opens the sidebar) and the agent bar in it; on Explore, its address box.
|
|
523
|
+
Everything else that was in the bottom bar is in the sidebar: Explore, Home
|
|
524
|
+
Server and Remote already are, and addPhoneSidebarRows() in agent-bar.js adds
|
|
525
|
+
back / forward / reload and the Window rows. Nothing is removed from the
|
|
526
|
+
header's markup; the buttons are only hidden. */
|
|
527
|
+
.agent-bar-phone-only {
|
|
528
|
+
display: none !important;
|
|
529
|
+
}
|
|
530
|
+
@media only screen and (max-width: 768px) {
|
|
531
|
+
/* the bar goes back to the top */
|
|
532
|
+
html body.main-sidebar-page {
|
|
533
|
+
--main-mobile-navbar-total-height: calc(var(--main-mobile-navbar-height) + env(safe-area-inset-top));
|
|
534
|
+
padding-top: var(--main-mobile-navbar-total-height);
|
|
535
|
+
padding-bottom: 0;
|
|
536
|
+
}
|
|
537
|
+
html body.main-sidebar-page > header.navheader,
|
|
538
|
+
html body.main-sidebar-page > header.navheader:not(.minimized) {
|
|
539
|
+
top: 0 !important;
|
|
540
|
+
bottom: auto !important;
|
|
541
|
+
padding: env(safe-area-inset-top) 8px 0;
|
|
542
|
+
border-top: 0;
|
|
543
|
+
border-bottom: 1px solid var(--pinokio-sidebar-separator);
|
|
544
|
+
/* the agent bar's menus hang below the bar */
|
|
545
|
+
overflow: visible;
|
|
546
|
+
}
|
|
547
|
+
html body.main-sidebar-page > header.navheader h1,
|
|
548
|
+
html body.main-sidebar-page > header.navheader:not(.minimized) h1 {
|
|
549
|
+
overflow: visible;
|
|
550
|
+
gap: 0;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* only the logo and the agent bar stay in it */
|
|
554
|
+
html body.main-sidebar-page > header.navheader h1 > .pinokio-explore-nav-button,
|
|
555
|
+
html body.main-sidebar-page > header.navheader h1 > #back,
|
|
556
|
+
html body.main-sidebar-page > header.navheader h1 > #forward,
|
|
557
|
+
html body.main-sidebar-page > header.navheader h1 > #refresh-page,
|
|
558
|
+
html body.main-sidebar-page > header.navheader h1 > .flexible,
|
|
559
|
+
html body.main-sidebar-page > header.navheader h1 > .mobile-flexible,
|
|
560
|
+
html body.main-sidebar-page > header.navheader h1 > .home-server-popover,
|
|
561
|
+
html body.main-sidebar-page > header.navheader h1 > .remote-nav-button,
|
|
562
|
+
html body.main-sidebar-page > header.navheader h1 > a[href="/columns"],
|
|
563
|
+
html body.main-sidebar-page > header.navheader h1 > a[href="/rows"],
|
|
564
|
+
html body.main-sidebar-page > header.navheader h1 > #new-window {
|
|
565
|
+
display: none !important;
|
|
566
|
+
}
|
|
567
|
+
html body.main-sidebar-page > header.navheader h1 > .agent-bar {
|
|
568
|
+
display: flex;
|
|
569
|
+
margin: 0 2px 0 6px;
|
|
570
|
+
}
|
|
571
|
+
/* 16px text, so a phone does not zoom the page when the input is focused */
|
|
572
|
+
html body.main-sidebar-page .agent-bar .agent-bar__input {
|
|
573
|
+
font-size: 16px;
|
|
574
|
+
}
|
|
575
|
+
/* a placeholder too long for the narrow field is cut instead of wrapping */
|
|
576
|
+
html body.main-sidebar-page .agent-bar .agent-bar__input::placeholder {
|
|
577
|
+
white-space: nowrap;
|
|
578
|
+
overflow: hidden;
|
|
579
|
+
text-overflow: ellipsis;
|
|
580
|
+
}
|
|
581
|
+
/* menus never wider than the screen */
|
|
582
|
+
html body.main-sidebar-page .agent-bar .agent-bar__menu {
|
|
583
|
+
max-width: calc(100vw - 16px);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/* the sidebar and its backdrop now sit under the top bar */
|
|
587
|
+
html body.main-sidebar-page .main-sidebar {
|
|
588
|
+
top: var(--main-mobile-navbar-total-height);
|
|
589
|
+
bottom: 0;
|
|
590
|
+
padding-top: 12px;
|
|
591
|
+
}
|
|
592
|
+
html body.main-sidebar-page.main-sidebar-mobile-open .main-sidebar-mobile-backdrop {
|
|
593
|
+
top: var(--main-mobile-navbar-total-height);
|
|
594
|
+
bottom: 0;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* what moved into the sidebar */
|
|
598
|
+
.agent-bar-phone-only {
|
|
599
|
+
display: flex !important;
|
|
600
|
+
}
|
|
601
|
+
.agent-bar-phone-navrow {
|
|
602
|
+
gap: 6px;
|
|
603
|
+
margin: 0 0 10px;
|
|
604
|
+
}
|
|
605
|
+
.agent-bar-phone-navrow > button {
|
|
606
|
+
flex: 1 1 0;
|
|
607
|
+
height: 36px;
|
|
608
|
+
display: inline-flex;
|
|
609
|
+
align-items: center;
|
|
610
|
+
justify-content: center;
|
|
611
|
+
padding: 0;
|
|
612
|
+
border: 0;
|
|
613
|
+
border-radius: 8px;
|
|
614
|
+
background: var(--pinokio-sidebar-tab-active-bg, rgba(15, 23, 42, 0.05));
|
|
615
|
+
color: var(--pinokio-sidebar-tab-active-color, #111827);
|
|
616
|
+
font-size: 13px;
|
|
617
|
+
cursor: pointer;
|
|
618
|
+
}
|
|
619
|
+
.main-sidebar-section.agent-bar-phone-only {
|
|
620
|
+
flex-direction: column;
|
|
621
|
+
}
|
|
622
|
+
/* a sidebar row that is a <button> lines up like the link rows */
|
|
623
|
+
.main-sidebar button.tab.agent-bar-phone-row {
|
|
624
|
+
width: 100%;
|
|
625
|
+
font-family: inherit;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/* Home list toolbar. The agent bar above is the one prominent input, so these
|
|
630
|
+
two are deliberately quiet: the sorter is a borderless text button that reads
|
|
631
|
+
as the list's header, the search is a small soft-filled field on the right.
|
|
632
|
+
Same on phones, where the search box takes the room that is left. */
|
|
633
|
+
body.is-home form.home-search-form {
|
|
634
|
+
align-items: center;
|
|
635
|
+
gap: 12px;
|
|
636
|
+
padding: 12px 10px 6px;
|
|
637
|
+
}
|
|
638
|
+
body.is-home form.home-search-form .home-apps-sort {
|
|
639
|
+
order: 0;
|
|
640
|
+
flex: 0 0 auto;
|
|
641
|
+
position: relative;
|
|
642
|
+
box-sizing: border-box;
|
|
643
|
+
width: auto;
|
|
644
|
+
height: 32px;
|
|
645
|
+
min-height: 32px;
|
|
646
|
+
margin: 0 0 0 -8px;
|
|
647
|
+
padding: 0 8px;
|
|
648
|
+
gap: 5px;
|
|
649
|
+
border: 0;
|
|
650
|
+
border-radius: 6px;
|
|
651
|
+
background: transparent;
|
|
652
|
+
cursor: pointer;
|
|
653
|
+
transition: background-color 120ms ease;
|
|
654
|
+
}
|
|
655
|
+
body.is-home form.home-search-form .home-apps-sort:hover,
|
|
656
|
+
body.is-home form.home-search-form .home-apps-sort:focus-within {
|
|
657
|
+
background: rgba(15, 23, 42, 0.055);
|
|
658
|
+
}
|
|
659
|
+
body.is-home form.home-search-form .home-apps-sort .home-apps-sort-icon {
|
|
660
|
+
display: none;
|
|
661
|
+
}
|
|
662
|
+
body.is-home form.home-search-form .home-apps-sort label {
|
|
663
|
+
font: 400 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
664
|
+
letter-spacing: 0;
|
|
665
|
+
text-transform: none;
|
|
666
|
+
color: rgba(55, 65, 81, 0.86);
|
|
667
|
+
cursor: pointer;
|
|
668
|
+
}
|
|
669
|
+
body.is-home form.home-search-form .home-apps-sort .ts-wrapper {
|
|
670
|
+
flex: 0 0 auto;
|
|
671
|
+
width: auto;
|
|
672
|
+
min-width: 0;
|
|
673
|
+
}
|
|
674
|
+
body.is-home form.home-search-form .home-apps-sort .ts-control {
|
|
675
|
+
width: auto;
|
|
676
|
+
min-height: 32px;
|
|
677
|
+
padding: 0 !important;
|
|
678
|
+
border: 0;
|
|
679
|
+
background: transparent;
|
|
680
|
+
box-shadow: none;
|
|
681
|
+
cursor: pointer;
|
|
682
|
+
}
|
|
683
|
+
body.is-home form.home-search-form .home-apps-sort .ts-control .item {
|
|
684
|
+
font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
685
|
+
letter-spacing: 0;
|
|
686
|
+
color: #111827;
|
|
687
|
+
}
|
|
688
|
+
body.is-home form.home-search-form .home-apps-sort .home-apps-sort-caret {
|
|
689
|
+
font-size: 9px;
|
|
690
|
+
color: rgba(55, 65, 81, 0.7);
|
|
691
|
+
}
|
|
692
|
+
body.is-home form.home-search-form .home-apps-sort .ts-dropdown {
|
|
693
|
+
left: 0;
|
|
694
|
+
width: max-content;
|
|
695
|
+
min-width: 176px;
|
|
696
|
+
margin-top: 6px;
|
|
697
|
+
}
|
|
698
|
+
body.is-home form.home-search-form input[type="search"] {
|
|
699
|
+
order: 1;
|
|
700
|
+
flex: 0 0 240px;
|
|
701
|
+
box-sizing: border-box;
|
|
702
|
+
width: 240px;
|
|
703
|
+
height: 32px;
|
|
704
|
+
min-height: 32px;
|
|
705
|
+
margin: 0 0 0 auto;
|
|
706
|
+
padding: 0 10px 0 32px;
|
|
707
|
+
border: 1px solid transparent;
|
|
708
|
+
border-radius: 8px;
|
|
709
|
+
background: rgba(15, 23, 42, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") 10px center / 14px 14px no-repeat;
|
|
710
|
+
font: 400 13px system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
711
|
+
letter-spacing: 0;
|
|
712
|
+
color: #111827;
|
|
713
|
+
transition: flex-basis 160ms ease, width 160ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
|
|
714
|
+
}
|
|
715
|
+
body.is-home form.home-search-form input[type="search"]::placeholder {
|
|
716
|
+
color: rgba(55, 65, 81, 0.8);
|
|
717
|
+
}
|
|
718
|
+
body.is-home form.home-search-form input[type="search"]:hover {
|
|
719
|
+
background-color: rgba(15, 23, 42, 0.075);
|
|
720
|
+
}
|
|
721
|
+
body.is-home form.home-search-form input[type="search"]:focus {
|
|
722
|
+
flex-basis: 320px;
|
|
723
|
+
width: 320px;
|
|
724
|
+
border-color: rgba(15, 23, 42, 0.3);
|
|
725
|
+
background-color: #ffffff;
|
|
726
|
+
box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
|
|
727
|
+
outline: 0;
|
|
728
|
+
}
|
|
729
|
+
body.dark.is-home form.home-search-form .home-apps-sort:hover,
|
|
730
|
+
body.dark.is-home form.home-search-form .home-apps-sort:focus-within {
|
|
731
|
+
background: rgba(255, 255, 255, 0.08);
|
|
732
|
+
}
|
|
733
|
+
body.dark.is-home form.home-search-form .home-apps-sort label,
|
|
734
|
+
body.dark.is-home form.home-search-form .home-apps-sort .home-apps-sort-caret {
|
|
735
|
+
color: rgba(161, 161, 170, 0.92);
|
|
736
|
+
}
|
|
737
|
+
body.dark.is-home form.home-search-form .home-apps-sort .ts-control .item {
|
|
738
|
+
color: rgba(250, 250, 250, 0.96);
|
|
739
|
+
}
|
|
740
|
+
body.dark.is-home form.home-search-form input[type="search"] {
|
|
741
|
+
background-color: rgba(255, 255, 255, 0.07);
|
|
742
|
+
color: rgba(250, 250, 250, 0.96);
|
|
743
|
+
}
|
|
744
|
+
body.dark.is-home form.home-search-form input[type="search"]::placeholder {
|
|
745
|
+
color: rgba(161, 161, 170, 0.92);
|
|
746
|
+
}
|
|
747
|
+
body.dark.is-home form.home-search-form input[type="search"]:focus {
|
|
748
|
+
border-color: rgba(255, 255, 255, 0.4);
|
|
749
|
+
background-color: #131315;
|
|
750
|
+
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/* Phones: index.ejs turns the sorter into a square icon button there (label and
|
|
754
|
+
value hidden, the control laid invisibly over the icon). These put the text
|
|
755
|
+
button back, showing the chosen value only (the word "Sort" stays hidden, as
|
|
756
|
+
index.ejs has it), and let the search box shrink to fit beside it. */
|
|
757
|
+
@media only screen and (max-width: 768px) {
|
|
758
|
+
body.is-home form.home-search-form .home-apps-sort {
|
|
759
|
+
min-width: 0;
|
|
760
|
+
justify-content: flex-start;
|
|
761
|
+
}
|
|
762
|
+
body.is-home form.home-search-form .home-apps-sort .ts-control > .item {
|
|
763
|
+
position: static;
|
|
764
|
+
width: auto;
|
|
765
|
+
height: auto;
|
|
766
|
+
margin: 0;
|
|
767
|
+
overflow: visible;
|
|
768
|
+
clip: auto;
|
|
769
|
+
}
|
|
770
|
+
/* the page's own phone rule pins the caret to a corner of the old icon button */
|
|
771
|
+
body.is-home form.home-search-form .home-apps-sort .home-apps-sort-caret {
|
|
772
|
+
position: static;
|
|
773
|
+
display: inline-block;
|
|
774
|
+
}
|
|
775
|
+
body.is-home form.home-search-form .home-apps-sort .ts-wrapper {
|
|
776
|
+
position: static;
|
|
777
|
+
inset: auto;
|
|
778
|
+
width: auto;
|
|
779
|
+
height: 32px;
|
|
780
|
+
opacity: 1;
|
|
781
|
+
}
|
|
782
|
+
body.is-home form.home-search-form .home-apps-sort .ts-dropdown {
|
|
783
|
+
left: 0 !important;
|
|
784
|
+
right: auto !important;
|
|
785
|
+
width: max-content !important;
|
|
786
|
+
min-width: 176px !important;
|
|
787
|
+
}
|
|
788
|
+
body.is-home form.home-search-form input[type="search"],
|
|
789
|
+
body.is-home form.home-search-form input[type="search"]:focus {
|
|
790
|
+
flex: 1 1 0;
|
|
791
|
+
width: auto;
|
|
792
|
+
min-width: 0;
|
|
793
|
+
max-width: 240px;
|
|
794
|
+
/* 16px text, so a phone does not zoom the page when the box is focused */
|
|
795
|
+
font-size: 16px;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/* Home app list rows. The highlight under the mouse is neutral and rounded, like
|
|
800
|
+
the sidebar's own, and stops where the search box ends instead of running to
|
|
801
|
+
the window edge; rows get a little more room so neighbours do not fuse. The
|
|
802
|
+
row Enter opens (set once you type in search or use the arrow keys) is an
|
|
803
|
+
outline with no fill, so it never looks like a hover. Desktop only. */
|
|
804
|
+
@media only screen and (min-width: 769px) {
|
|
805
|
+
/* each row: rounded, a little taller, a hair of space between rows, and a
|
|
806
|
+
right margin so the highlight ends where the search box ends */
|
|
807
|
+
body.is-home .home-app-line {
|
|
808
|
+
margin: 0 10px 2px 0;
|
|
809
|
+
padding: 8px 10px;
|
|
810
|
+
border-radius: 10px;
|
|
811
|
+
transition: background-color 120ms ease, box-shadow 120ms ease;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
/* under the mouse: neutral grey, like the sidebar's own highlight */
|
|
815
|
+
body.is-home .home-app-line:hover {
|
|
816
|
+
background: rgba(15, 23, 42, 0.045);
|
|
817
|
+
}
|
|
818
|
+
body.dark.is-home .home-app-line:hover {
|
|
819
|
+
background: rgba(255, 255, 255, 0.055);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/* the row Enter opens (appears once you type in search or use the arrow
|
|
823
|
+
keys): an outline, no fill */
|
|
824
|
+
body.is-home .home-app-line.selected {
|
|
825
|
+
background: transparent;
|
|
826
|
+
box-shadow: inset 0 0 0 1.5px rgba(15, 23, 42, 0.34);
|
|
827
|
+
}
|
|
828
|
+
body.dark.is-home .home-app-line.selected {
|
|
829
|
+
background: transparent;
|
|
830
|
+
box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
|
|
831
|
+
}
|
|
832
|
+
body.is-home .home-app-line.selected:hover {
|
|
833
|
+
background: rgba(15, 23, 42, 0.045);
|
|
834
|
+
}
|
|
835
|
+
body.dark.is-home .home-app-line.selected:hover {
|
|
836
|
+
background: rgba(255, 255, 255, 0.055);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/* the star / menu buttons stay crisp on the highlight instead of sinking into it */
|
|
840
|
+
body.is-home .home-app-line:hover .menu-btns > .btn {
|
|
841
|
+
border-color: rgba(15, 23, 42, 0.12) !important;
|
|
842
|
+
background: #ffffff !important;
|
|
843
|
+
}
|
|
844
|
+
body.dark.is-home .home-app-line:hover .menu-btns > .btn {
|
|
845
|
+
border-color: rgba(255, 255, 255, 0.12) !important;
|
|
846
|
+
background: rgba(255, 255, 255, 0.08) !important;
|
|
847
|
+
}
|
|
848
|
+
body.is-home .home-app-line:hover .menu-btns > .btn:hover {
|
|
849
|
+
border-color: rgba(15, 23, 42, 0.22) !important;
|
|
850
|
+
background: #ffffff !important;
|
|
851
|
+
}
|
|
852
|
+
body.dark.is-home .home-app-line:hover .menu-btns > .btn:hover {
|
|
853
|
+
border-color: rgba(255, 255, 255, 0.22) !important;
|
|
854
|
+
background: rgba(255, 255, 255, 0.13) !important;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/* Dark theme: once it can be pressed, send is filled with the accent's gold and
|
|
859
|
+
its text is dark, the counterpart of the light theme's solid dark button. On
|
|
860
|
+
the dark theme's own faint tile it looks like a selected nav button, which is
|
|
861
|
+
a passive state. While it cannot be pressed yet, or is working, it keeps that
|
|
862
|
+
tile. Only this button is changed: the accent colours themselves also style
|
|
863
|
+
other things. Not the app page's bar, whose send has no "not ready" state. */
|
|
864
|
+
body.dark .agent-bar:not([data-item="ask_app"]) button.agent-bar__go:not(.is-waiting):not(:disabled) {
|
|
865
|
+
background: var(--agent-bar-primary-fg);
|
|
866
|
+
color: #1b1c1d;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/* the send button's label: only shown with the folder row (below) */
|
|
870
|
+
.agent-bar__go-label {
|
|
871
|
+
display: none;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
/* ---- the bottom row ----
|
|
875
|
+
On one line of Ask everything sits in a row: mode, text, controls. Two things
|
|
876
|
+
change that, on wide screens and not in the app page's bar:
|
|
877
|
+
|
|
878
|
+
The folder row is showing (Create app, Create plugin, Download; data-footer).
|
|
879
|
+
Send is then a button that names what it does, because it makes a folder and
|
|
880
|
+
starts an agent in it.
|
|
881
|
+
|
|
882
|
+
The text needs more than one line (data-multi, set by fitTextarea). In a row,
|
|
883
|
+
the controls would sit on the text's last line and every line would be pushed
|
|
884
|
+
in by the mode chip's width. So the mode (and "N running", at the right) is
|
|
885
|
+
one row and the text, at the box's full width, the next.
|
|
886
|
+
|
|
887
|
+
In both cases the paperclip, the agent and send get a row of their own at the
|
|
888
|
+
bottom of the box, at its right end. They are not put in the folder row: at
|
|
889
|
+
the box's full width that row is already filled by a folder name and the note
|
|
890
|
+
beside it ("Creates api/<name>").
|
|
891
|
+
|
|
892
|
+
Nothing is hidden and nothing moves in the markup: the controls are placed
|
|
893
|
+
against the box's bottom edge, each beside the next (--agent-bar-go-w is the
|
|
894
|
+
send button's width, set by the script). */
|
|
895
|
+
@media only screen and (min-width: 769px) {
|
|
896
|
+
/* a row of their own, 36px like the folder row */
|
|
897
|
+
.agent-bar:is([data-multi="true"], [data-footer="true"]):not([data-item="ask_app"]) .agent-bar__field {
|
|
898
|
+
padding-bottom: 36px;
|
|
899
|
+
}
|
|
900
|
+
.agent-bar:is([data-multi="true"], [data-footer="true"]):not([data-item="ask_app"]) .agent-bar__attach,
|
|
901
|
+
.agent-bar:is([data-multi="true"], [data-footer="true"]):not([data-item="ask_app"]) .agent-bar__agent,
|
|
902
|
+
.agent-bar:is([data-multi="true"], [data-footer="true"]):not([data-item="ask_app"]) .agent-bar__go {
|
|
903
|
+
position: absolute;
|
|
904
|
+
bottom: 7px;
|
|
905
|
+
}
|
|
906
|
+
.agent-bar:is([data-multi="true"], [data-footer="true"]):not([data-item="ask_app"]) .agent-bar__go {
|
|
907
|
+
right: 8px;
|
|
908
|
+
}
|
|
909
|
+
.agent-bar:is([data-multi="true"], [data-footer="true"]):not([data-item="ask_app"]) .agent-bar__agent {
|
|
910
|
+
right: calc(14px + var(--agent-bar-go-w, 22px));
|
|
911
|
+
width: 38px;
|
|
912
|
+
box-sizing: border-box;
|
|
913
|
+
justify-content: center;
|
|
914
|
+
}
|
|
915
|
+
.agent-bar:is([data-multi="true"], [data-footer="true"]):not([data-item="ask_app"]) .agent-bar__attach {
|
|
916
|
+
right: calc(58px + var(--agent-bar-go-w, 22px));
|
|
917
|
+
}
|
|
918
|
+
/* the agent's list hangs below the box, where its button now is */
|
|
919
|
+
.agent-bar:is([data-multi="true"], [data-footer="true"]):not([data-item="ask_app"]) .agent-bar__menu[data-menu="agent"] {
|
|
920
|
+
top: calc(var(--agent-bar-field-h, 30px) + 6px);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/* with the folder row, send is named */
|
|
924
|
+
.agent-bar[data-footer="true"]:not([data-item="ask_app"]) .agent-bar__go {
|
|
925
|
+
bottom: 6px;
|
|
926
|
+
width: auto;
|
|
927
|
+
height: 24px;
|
|
928
|
+
gap: 6px;
|
|
929
|
+
padding: 0 11px;
|
|
930
|
+
border-radius: 12px;
|
|
931
|
+
font-size: 10px;
|
|
932
|
+
white-space: nowrap;
|
|
933
|
+
}
|
|
934
|
+
.agent-bar[data-footer="true"]:not([data-item="ask_app"]) .agent-bar__go-label {
|
|
935
|
+
display: inline;
|
|
936
|
+
font-size: 12px;
|
|
937
|
+
font-weight: 600;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/* more than one line */
|
|
941
|
+
.agent-bar[data-multi="true"]:not([data-item="ask_app"]) .agent-bar__top {
|
|
942
|
+
flex-wrap: wrap;
|
|
943
|
+
row-gap: 5px;
|
|
944
|
+
padding: 4px 4px 6px;
|
|
945
|
+
}
|
|
946
|
+
.agent-bar[data-multi="true"]:not([data-item="ask_app"]) .agent-bar__input {
|
|
947
|
+
order: 1;
|
|
948
|
+
flex: 0 0 100%;
|
|
949
|
+
padding: 1px 9px;
|
|
950
|
+
}
|
|
951
|
+
.agent-bar[data-multi="true"]:not([data-item="ask_app"]) .agent-bar__running {
|
|
952
|
+
align-self: center;
|
|
953
|
+
margin-left: auto;
|
|
954
|
+
}
|
|
955
|
+
/* its list hangs from it, as on one line */
|
|
956
|
+
.agent-bar[data-multi="true"]:not([data-item="ask_app"]) .agent-bar__menu--running {
|
|
957
|
+
top: 32px;
|
|
958
|
+
}
|
|
959
|
+
/* While you are in it, the page behind is dimmed, so the box reads as a panel
|
|
960
|
+
over the page and not as part of it. Clicks pass through to the page. */
|
|
961
|
+
.agent-bar[data-multi="true"][data-engaged="true"]:not([data-item="ask_app"]) .agent-bar__inner::before {
|
|
962
|
+
content: "";
|
|
963
|
+
position: fixed;
|
|
964
|
+
inset: 0;
|
|
965
|
+
z-index: 10000;
|
|
966
|
+
background: rgba(15, 23, 42, 0.22);
|
|
967
|
+
pointer-events: none;
|
|
968
|
+
}
|
|
969
|
+
body.dark .agent-bar[data-multi="true"][data-engaged="true"]:not([data-item="ask_app"]) .agent-bar__inner::before {
|
|
970
|
+
background: rgba(0, 0, 0, 0.45);
|
|
971
|
+
}
|
|
972
|
+
}
|