pinokiod 8.3.12 → 8.3.14
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 +0 -1
- package/kernel/api/index.js +76 -12
- package/kernel/environment.js +1 -1
- package/kernel/index.js +15 -2
- package/kernel/plugin_sources.js +1 -1
- package/kernel/prototype.js +1 -1
- package/kernel/request_file.js +5 -14
- package/kernel/shell.js +12 -0
- package/kernel/shells.js +13 -1
- package/package.json +1 -1
- package/server/index.js +10 -5
- package/server/lib/agent_jobs.js +198 -0
- package/server/lib/agent_sessions.js +131 -0
- package/server/lib/brain.js +161 -91
- package/server/lib/content_validation.js +1 -1
- package/server/public/agent-bar-app.js +28 -6
- package/server/public/agent-bar-compose.css +675 -0
- package/server/public/agent-bar-compose.js +618 -0
- package/server/public/agent-bar-panel.css +2 -0
- package/server/public/agent-bar-panel.js +22 -7
- package/server/public/agent-bar-shell.css +38 -0
- package/server/public/agent-bar-shell.js +128 -34
- package/server/public/agent-bar.css +7 -1
- package/server/public/agent-bar.js +8 -1
- package/server/public/terminal_input_utils.js +9 -1
- package/server/views/app.ejs +5 -1
- package/server/views/partials/main_sidebar.ejs +2 -0
- package/system/plugin/antigravity-cli-auto/pinokio.js +44 -6
- package/system/plugin/claude/pinokio.js +43 -1
- package/system/plugin/claude-auto/pinokio.js +43 -1
- package/system/plugin/codex/pinokio.js +42 -1
- package/system/plugin/codex-auto/pinokio.js +42 -1
- package/system/plugin/grok/pinokio.js +1 -1
- package/system/plugin/grok-auto/pinokio.js +37 -10
- package/system/plugin/opencode/pinokio.js +24 -0
- package/system/plugin/opencode-auto/pinokio.js +82 -10
- package/test/agent-bar-compose.test.js +487 -0
- package/test/agent-bar-shell.test.js +149 -0
- package/test/agent-instructions.test.js +0 -2
- package/test/agent-jobs.test.js +534 -0
- package/test/agent-sessions.test.js +130 -0
- package/test/antigravity-cli-plugin.test.js +63 -18
- package/test/anywhere-api.test.js +1 -1
- package/test/anywhere-onboarding.test.js +1 -2
- package/test/brain.test.js +116 -69
- package/test/grok-plugin.test.js +2 -1
- package/test/opencode-plugin.test.js +7 -4
- package/test/plugin-action-functions.test.js +423 -0
- package/test/request-file.test.js +1 -12
- package/test/shell-log-path.test.js +64 -0
- package/test/shell-stop-while-starting.test.js +70 -0
- package/test/shells-live-error.test.js +66 -2
- package/test/terminal-mouse-input.test.js +27 -0
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
/* Agent bar: the compose view (see agent-bar-compose.js).
|
|
2
|
+
|
|
3
|
+
The bar's field grows into a larger box when you go to type in it. Nothing in
|
|
4
|
+
agent-bar.css is changed: every rule here applies only once the script has put
|
|
5
|
+
.agent-compose on the bar, and comes after agent-bar.css, whose rules for a
|
|
6
|
+
long text and for the folder row (data-multi, data-footer) it replaces.
|
|
7
|
+
|
|
8
|
+
data-compose on .agent-bar says which shape is open:
|
|
9
|
+
(none) the bar at rest: one line
|
|
10
|
+
place desktop: the box grows downward where the bar is
|
|
11
|
+
centre desktop, opened by a pre-filled link: centred, page dimmed
|
|
12
|
+
screen phones: the part of the screen above the keyboard
|
|
13
|
+
The script picks the shape, and says with data-compose-phone whether the bar
|
|
14
|
+
is in a phone layout: the home bar's starts at 768px, an app page's wider. */
|
|
15
|
+
|
|
16
|
+
/* ---- always ---- */
|
|
17
|
+
/* The box is drawn by an element of its own, so it can change size without
|
|
18
|
+
stretching what is in it. The field keeps its 1px edge, unseen. */
|
|
19
|
+
html .agent-bar.agent-compose .agent-bar__field {
|
|
20
|
+
border-color: transparent;
|
|
21
|
+
background: transparent;
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
24
|
+
html .agent-bar.agent-compose .agent-compose__bg {
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset: -1px;
|
|
27
|
+
z-index: -1;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
border: 1px solid var(--agent-bar-border);
|
|
30
|
+
border-radius: 15px;
|
|
31
|
+
background: var(--agent-bar-surface);
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
html .agent-bar.agent-compose[data-engaged="true"] .agent-compose__bg {
|
|
35
|
+
border-color: var(--agent-bar-border-strong);
|
|
36
|
+
}
|
|
37
|
+
/* the page is never dimmed for a long text any more */
|
|
38
|
+
html .agent-bar.agent-compose .agent-bar__inner::before {
|
|
39
|
+
content: none !important;
|
|
40
|
+
}
|
|
41
|
+
/* the parts that move are scaled from their top left corner */
|
|
42
|
+
html .agent-bar.agent-compose .agent-bar__scope,
|
|
43
|
+
html .agent-bar.agent-compose .agent-bar__agent,
|
|
44
|
+
html .agent-bar.agent-compose .agent-bar__go,
|
|
45
|
+
html .agent-bar.agent-compose .agent-bar__attach,
|
|
46
|
+
html .agent-bar.agent-compose .agent-bar__running,
|
|
47
|
+
html .agent-bar.agent-compose .agent-compose__face {
|
|
48
|
+
transform-origin: 0 0;
|
|
49
|
+
}
|
|
50
|
+
.agent-compose__toprow,
|
|
51
|
+
.agent-compose__hero,
|
|
52
|
+
.agent-compose__greet,
|
|
53
|
+
.agent-compose__controls,
|
|
54
|
+
.agent-compose__agent-name {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
/* What the face says. A long one (an app's long name) wraps, centred, and
|
|
58
|
+
keeps clear of the screen's edges. */
|
|
59
|
+
.agent-compose__greet {
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
padding: 0 24px;
|
|
63
|
+
font-size: 17px;
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
line-height: 24px;
|
|
66
|
+
text-align: center;
|
|
67
|
+
overflow-wrap: anywhere;
|
|
68
|
+
}
|
|
69
|
+
.agent-compose__slot {
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
}
|
|
72
|
+
.agent-compose__slot:empty {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
.agent-compose__dim {
|
|
76
|
+
position: fixed;
|
|
77
|
+
inset: 0;
|
|
78
|
+
z-index: 10000;
|
|
79
|
+
background: rgba(15, 23, 42, 0.22);
|
|
80
|
+
opacity: 0;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
transition: opacity 220ms ease;
|
|
83
|
+
}
|
|
84
|
+
body.dark .agent-compose__dim {
|
|
85
|
+
background: rgba(0, 0, 0, 0.45);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* ---- the face ---- */
|
|
89
|
+
/* The mode chip's own mark is replaced by the face, which shows the same filled
|
|
90
|
+
mark at rest and the outlined character once the view is open. */
|
|
91
|
+
html .agent-bar.agent-compose .agent-bar__mark {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
.agent-compose__face {
|
|
95
|
+
position: relative;
|
|
96
|
+
display: block;
|
|
97
|
+
width: 14px;
|
|
98
|
+
height: 14px;
|
|
99
|
+
}
|
|
100
|
+
.agent-compose__face svg {
|
|
101
|
+
position: absolute;
|
|
102
|
+
inset: 0;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
overflow: visible;
|
|
106
|
+
transition: opacity 220ms ease;
|
|
107
|
+
}
|
|
108
|
+
.agent-compose__nose {
|
|
109
|
+
fill: var(--agent-bar-surface);
|
|
110
|
+
}
|
|
111
|
+
.agent-compose__face .agent-compose__line {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
}
|
|
114
|
+
.agent-bar[data-compose] .agent-compose__face .agent-compose__line {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
.agent-bar[data-compose] .agent-compose__face .agent-compose__mark {
|
|
118
|
+
opacity: 0;
|
|
119
|
+
}
|
|
120
|
+
.agent-compose__eye,
|
|
121
|
+
.agent-compose__mouth {
|
|
122
|
+
transform-box: fill-box;
|
|
123
|
+
transform-origin: center;
|
|
124
|
+
transition: transform 160ms ease;
|
|
125
|
+
}
|
|
126
|
+
.agent-compose__eye {
|
|
127
|
+
animation: agent-compose-blink 4.2s infinite;
|
|
128
|
+
}
|
|
129
|
+
@keyframes agent-compose-blink {
|
|
130
|
+
0%, 93%, 100% { transform: scaleY(1); }
|
|
131
|
+
96.5% { transform: scaleY(0.1); }
|
|
132
|
+
}
|
|
133
|
+
/* listening: taller eyes and small lips, so it looks curious */
|
|
134
|
+
.agent-compose__face[data-face="listening"] .agent-compose__eye {
|
|
135
|
+
animation: none;
|
|
136
|
+
transform: scaleY(1.35);
|
|
137
|
+
}
|
|
138
|
+
.agent-compose__face[data-face="listening"] .agent-compose__mouth {
|
|
139
|
+
transform: scaleX(0.36);
|
|
140
|
+
}
|
|
141
|
+
/* working: a line runs around the head's own outline and the eyes look up; the
|
|
142
|
+
mouth is left alone */
|
|
143
|
+
.agent-compose__head {
|
|
144
|
+
transition: opacity 160ms ease;
|
|
145
|
+
}
|
|
146
|
+
.agent-compose__arc {
|
|
147
|
+
opacity: 0;
|
|
148
|
+
transition: opacity 160ms ease;
|
|
149
|
+
}
|
|
150
|
+
@keyframes agent-compose-run {
|
|
151
|
+
to { stroke-dashoffset: -239; }
|
|
152
|
+
}
|
|
153
|
+
.agent-compose__face[data-face="working"] .agent-compose__head {
|
|
154
|
+
opacity: 0.22;
|
|
155
|
+
}
|
|
156
|
+
.agent-compose__face[data-face="working"] .agent-compose__arc {
|
|
157
|
+
opacity: 1;
|
|
158
|
+
animation: agent-compose-run 1.3s linear infinite;
|
|
159
|
+
}
|
|
160
|
+
.agent-compose__face[data-face="working"] .agent-compose__eye {
|
|
161
|
+
animation: none;
|
|
162
|
+
transform: translateY(-3px);
|
|
163
|
+
}
|
|
164
|
+
/* reduce motion: nothing travels (the script), blinks or spins */
|
|
165
|
+
@media (prefers-reduced-motion: reduce) {
|
|
166
|
+
.agent-compose__eye,
|
|
167
|
+
.agent-compose__face[data-face="working"] .agent-compose__arc,
|
|
168
|
+
.agent-bar.agent-compose .fa-spin {
|
|
169
|
+
animation: none;
|
|
170
|
+
}
|
|
171
|
+
.agent-compose__dim,
|
|
172
|
+
.agent-compose__face svg,
|
|
173
|
+
.agent-compose__hero {
|
|
174
|
+
transition: none !important;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* ---- at rest: one line, whatever is typed ---- */
|
|
179
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__field {
|
|
180
|
+
padding-bottom: 0;
|
|
181
|
+
}
|
|
182
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__footer,
|
|
183
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__files {
|
|
184
|
+
display: none !important;
|
|
185
|
+
}
|
|
186
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__top {
|
|
187
|
+
flex-wrap: nowrap;
|
|
188
|
+
row-gap: 0;
|
|
189
|
+
padding: 3px 4px;
|
|
190
|
+
}
|
|
191
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__input {
|
|
192
|
+
order: 0;
|
|
193
|
+
flex: 1 1 auto;
|
|
194
|
+
height: 22px !important;
|
|
195
|
+
padding: 1px 2px;
|
|
196
|
+
overflow: hidden !important;
|
|
197
|
+
white-space: pre;
|
|
198
|
+
}
|
|
199
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__attach {
|
|
200
|
+
display: none;
|
|
201
|
+
}
|
|
202
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__agent,
|
|
203
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__go {
|
|
204
|
+
position: static;
|
|
205
|
+
}
|
|
206
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__agent {
|
|
207
|
+
width: auto;
|
|
208
|
+
}
|
|
209
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__go {
|
|
210
|
+
width: 22px;
|
|
211
|
+
height: 22px;
|
|
212
|
+
padding: 0;
|
|
213
|
+
border-radius: 50%;
|
|
214
|
+
font-size: 11px;
|
|
215
|
+
}
|
|
216
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__go-label {
|
|
217
|
+
display: none;
|
|
218
|
+
}
|
|
219
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__running {
|
|
220
|
+
align-self: flex-end;
|
|
221
|
+
margin-left: 0;
|
|
222
|
+
}
|
|
223
|
+
html .agent-bar.agent-compose:not([data-compose]) .agent-bar__menu {
|
|
224
|
+
top: calc(var(--agent-bar-top-h, 30px) + 6px);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* ---- at rest on a phone: slimmer still ----
|
|
228
|
+
A tap opens the full screen, where every control is. So the bar is the mark,
|
|
229
|
+
the text and "N running": no agent, no send, and the mode's name only while
|
|
230
|
+
a draft is left in a mode other than Ask (data-compose-draft). */
|
|
231
|
+
html .agent-bar.agent-compose[data-compose-phone="true"]:not([data-compose]) .agent-bar__agent,
|
|
232
|
+
html .agent-bar.agent-compose[data-compose-phone="true"]:not([data-compose]) .agent-bar__go,
|
|
233
|
+
html .agent-bar.agent-compose[data-compose-phone="true"]:not([data-compose]) .agent-bar__scope .agent-bar__caret {
|
|
234
|
+
display: none;
|
|
235
|
+
}
|
|
236
|
+
html .agent-bar.agent-compose[data-compose-phone="true"]:not([data-compose])[data-compose-draft="false"] .agent-bar__scope,
|
|
237
|
+
html .agent-bar.agent-compose[data-compose-phone="true"]:not([data-compose])[data-compose-draft="false"] .agent-bar__scope:hover {
|
|
238
|
+
padding: 0 2px 0 7px;
|
|
239
|
+
background: transparent;
|
|
240
|
+
}
|
|
241
|
+
html .agent-bar.agent-compose[data-compose-phone="true"]:not([data-compose])[data-compose-draft="false"] .agent-bar__scope-label {
|
|
242
|
+
display: none;
|
|
243
|
+
}
|
|
244
|
+
html .agent-bar.agent-compose[data-compose-phone="true"]:not([data-compose]) .agent-bar__running {
|
|
245
|
+
margin-right: 2px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* ---- open, every shape ----
|
|
249
|
+
Rows, top to bottom: the text (with the face); attached files; the folder
|
|
250
|
+
row; a message; the controls. */
|
|
251
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__field {
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
gap: 8px;
|
|
255
|
+
padding: 12px 12px 10px;
|
|
256
|
+
}
|
|
257
|
+
html .agent-bar.agent-compose[data-compose] .agent-compose__bg {
|
|
258
|
+
border-radius: 18px;
|
|
259
|
+
border-color: var(--agent-bar-border-strong);
|
|
260
|
+
box-shadow: var(--agent-bar-shadow);
|
|
261
|
+
}
|
|
262
|
+
.agent-bar[data-compose] .agent-compose__toprow { order: 0; }
|
|
263
|
+
.agent-bar[data-compose] .agent-compose__hero { order: 1; }
|
|
264
|
+
.agent-bar[data-compose] .agent-bar__top { order: 2; }
|
|
265
|
+
.agent-bar[data-compose] .agent-bar__files { order: 3; }
|
|
266
|
+
.agent-bar[data-compose] .agent-bar__footer { order: 4; }
|
|
267
|
+
.agent-bar[data-compose] .agent-bar__note { order: 5; }
|
|
268
|
+
.agent-bar[data-compose] .agent-compose__controls { order: 6; }
|
|
269
|
+
|
|
270
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__top {
|
|
271
|
+
flex-wrap: nowrap;
|
|
272
|
+
align-items: flex-start;
|
|
273
|
+
gap: 0;
|
|
274
|
+
row-gap: 0;
|
|
275
|
+
min-height: 0;
|
|
276
|
+
padding: 0;
|
|
277
|
+
}
|
|
278
|
+
.agent-bar[data-compose] .agent-compose__face {
|
|
279
|
+
width: 40px;
|
|
280
|
+
height: 40px;
|
|
281
|
+
}
|
|
282
|
+
.agent-compose__slot--side {
|
|
283
|
+
flex: none;
|
|
284
|
+
align-self: flex-start;
|
|
285
|
+
margin-right: 8px;
|
|
286
|
+
}
|
|
287
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__input {
|
|
288
|
+
order: 0;
|
|
289
|
+
flex: 1 1 auto;
|
|
290
|
+
width: 100%;
|
|
291
|
+
min-height: 56px;
|
|
292
|
+
/* the first line sits level with the middle of the face */
|
|
293
|
+
padding: 8px 4px 0;
|
|
294
|
+
white-space: pre-wrap;
|
|
295
|
+
font-size: 16px;
|
|
296
|
+
line-height: 24px;
|
|
297
|
+
}
|
|
298
|
+
html .agent-bar.agent-compose[data-compose][data-busy="true"] .agent-bar__input {
|
|
299
|
+
opacity: 0.6;
|
|
300
|
+
}
|
|
301
|
+
/* "N running": at the top right, beside the text */
|
|
302
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__running {
|
|
303
|
+
align-self: flex-start;
|
|
304
|
+
height: 28px;
|
|
305
|
+
margin: 6px 0 0 8px;
|
|
306
|
+
border-radius: 14px;
|
|
307
|
+
font-size: 13px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
html .agent-bar.agent-compose[data-compose] .agent-compose__controls {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
gap: 8px;
|
|
314
|
+
}
|
|
315
|
+
.agent-compose__grow {
|
|
316
|
+
flex: 1 1 auto;
|
|
317
|
+
}
|
|
318
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__scope {
|
|
319
|
+
height: 28px;
|
|
320
|
+
padding: 0 11px;
|
|
321
|
+
border-radius: 14px;
|
|
322
|
+
font-size: 13px;
|
|
323
|
+
}
|
|
324
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__attach {
|
|
325
|
+
position: static;
|
|
326
|
+
display: flex;
|
|
327
|
+
align-self: auto;
|
|
328
|
+
width: 28px;
|
|
329
|
+
height: 28px;
|
|
330
|
+
border-radius: 14px;
|
|
331
|
+
}
|
|
332
|
+
html .agent-bar.agent-compose[data-compose][data-item="download"] .agent-bar__attach {
|
|
333
|
+
display: none;
|
|
334
|
+
}
|
|
335
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__agent {
|
|
336
|
+
position: static;
|
|
337
|
+
align-self: auto;
|
|
338
|
+
/* a long agent name gives way before the row overflows */
|
|
339
|
+
flex: 0 1 auto;
|
|
340
|
+
min-width: 0;
|
|
341
|
+
width: auto;
|
|
342
|
+
height: 28px;
|
|
343
|
+
gap: 6px;
|
|
344
|
+
padding: 0 10px 0 8px;
|
|
345
|
+
border-radius: 14px;
|
|
346
|
+
background: var(--agent-bar-chip);
|
|
347
|
+
font-size: 13px;
|
|
348
|
+
}
|
|
349
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__agent:hover,
|
|
350
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__agent.is-open {
|
|
351
|
+
background: var(--agent-bar-chip-hover);
|
|
352
|
+
}
|
|
353
|
+
.agent-bar[data-compose] .agent-compose__agent-name {
|
|
354
|
+
display: block;
|
|
355
|
+
flex: 0 1 auto;
|
|
356
|
+
min-width: 0;
|
|
357
|
+
max-width: 140px;
|
|
358
|
+
overflow: hidden;
|
|
359
|
+
text-overflow: ellipsis;
|
|
360
|
+
white-space: nowrap;
|
|
361
|
+
}
|
|
362
|
+
/* send is named after the mode */
|
|
363
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__go {
|
|
364
|
+
position: static;
|
|
365
|
+
align-self: auto;
|
|
366
|
+
width: auto;
|
|
367
|
+
height: 28px;
|
|
368
|
+
gap: 6px;
|
|
369
|
+
padding: 0 13px;
|
|
370
|
+
border-radius: 14px;
|
|
371
|
+
font-size: 11px;
|
|
372
|
+
white-space: nowrap;
|
|
373
|
+
}
|
|
374
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__go-label {
|
|
375
|
+
display: inline;
|
|
376
|
+
font-size: 13px;
|
|
377
|
+
font-weight: 600;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* attached files: a row of the box, under the text */
|
|
381
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__files {
|
|
382
|
+
padding: 0 2px;
|
|
383
|
+
border-top: 0;
|
|
384
|
+
}
|
|
385
|
+
/* the folder row runs the box's full width */
|
|
386
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__footer {
|
|
387
|
+
height: auto;
|
|
388
|
+
min-height: 36px;
|
|
389
|
+
margin: 0 -12px;
|
|
390
|
+
padding: 0 14px;
|
|
391
|
+
border-top: 1px solid var(--agent-bar-border);
|
|
392
|
+
border-bottom: 1px solid var(--agent-bar-border);
|
|
393
|
+
}
|
|
394
|
+
/* a message or progress: a row of the box, not a box of its own */
|
|
395
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__note {
|
|
396
|
+
position: static;
|
|
397
|
+
z-index: auto;
|
|
398
|
+
padding: 0 2px;
|
|
399
|
+
border: 0;
|
|
400
|
+
border-radius: 0;
|
|
401
|
+
background: transparent;
|
|
402
|
+
box-shadow: none;
|
|
403
|
+
}
|
|
404
|
+
html .agent-bar.agent-compose[data-compose] .agent-bar__drop {
|
|
405
|
+
border-radius: 18px;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* ---- centred: a pre-filled link, desktop ---- */
|
|
409
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-bar__field {
|
|
410
|
+
--agent-compose-w: min(680px, calc(100vw - 32px));
|
|
411
|
+
position: fixed;
|
|
412
|
+
top: 16vh;
|
|
413
|
+
left: calc(50vw - var(--agent-compose-w) / 2);
|
|
414
|
+
right: auto;
|
|
415
|
+
width: var(--agent-compose-w);
|
|
416
|
+
gap: 10px;
|
|
417
|
+
padding: 14px 16px;
|
|
418
|
+
}
|
|
419
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-compose__bg {
|
|
420
|
+
border-radius: 22px;
|
|
421
|
+
}
|
|
422
|
+
.agent-bar[data-compose="centre"] .agent-compose__dim {
|
|
423
|
+
opacity: 1;
|
|
424
|
+
}
|
|
425
|
+
.agent-bar[data-compose="centre"] .agent-compose__hero {
|
|
426
|
+
display: flex;
|
|
427
|
+
flex-direction: column;
|
|
428
|
+
align-items: center;
|
|
429
|
+
gap: 12px;
|
|
430
|
+
padding: 14px 20px 4px;
|
|
431
|
+
}
|
|
432
|
+
.agent-bar[data-compose="centre"] .agent-compose__face {
|
|
433
|
+
width: 72px;
|
|
434
|
+
height: 72px;
|
|
435
|
+
}
|
|
436
|
+
.agent-bar[data-compose="centre"] .agent-compose__greet {
|
|
437
|
+
display: block;
|
|
438
|
+
}
|
|
439
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-bar__input {
|
|
440
|
+
min-height: 82px;
|
|
441
|
+
padding: 2px 4px;
|
|
442
|
+
font-size: 18px;
|
|
443
|
+
line-height: 26px;
|
|
444
|
+
}
|
|
445
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-bar__footer {
|
|
446
|
+
margin: 0 -16px;
|
|
447
|
+
padding: 0 18px;
|
|
448
|
+
}
|
|
449
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-bar__scope,
|
|
450
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-bar__agent,
|
|
451
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-bar__go,
|
|
452
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-bar__attach {
|
|
453
|
+
height: 30px;
|
|
454
|
+
border-radius: 15px;
|
|
455
|
+
}
|
|
456
|
+
/* "N running": the box's top right corner */
|
|
457
|
+
html .agent-bar.agent-compose[data-compose="centre"] .agent-bar__running {
|
|
458
|
+
position: absolute;
|
|
459
|
+
top: 12px;
|
|
460
|
+
right: 12px;
|
|
461
|
+
height: 30px;
|
|
462
|
+
margin: 0;
|
|
463
|
+
border-radius: 15px;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* ---- phones: the view is the visible part of the screen ---- */
|
|
467
|
+
/* the page behind must not scroll under it */
|
|
468
|
+
html.agent-compose-screen,
|
|
469
|
+
html.agent-compose-screen body {
|
|
470
|
+
overflow: hidden;
|
|
471
|
+
}
|
|
472
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__field {
|
|
473
|
+
position: fixed;
|
|
474
|
+
/* what the on-screen keyboard leaves (set by the script) */
|
|
475
|
+
top: var(--agent-compose-vvt, 0px);
|
|
476
|
+
left: 0;
|
|
477
|
+
right: auto;
|
|
478
|
+
width: 100vw;
|
|
479
|
+
height: var(--agent-compose-vvh, 100dvh);
|
|
480
|
+
border-width: 0;
|
|
481
|
+
padding: env(safe-area-inset-top) 12px calc(10px + env(safe-area-inset-bottom));
|
|
482
|
+
}
|
|
483
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-compose__bg {
|
|
484
|
+
/* Down past the bottom of the view. A phone's browser draws its own floating
|
|
485
|
+
bars (the address pill, the keyboard's bar) over the page below what it
|
|
486
|
+
reports as visible, and the page behind showed through there. */
|
|
487
|
+
inset: 0 0 -100vh 0;
|
|
488
|
+
border: 0;
|
|
489
|
+
border-radius: 0;
|
|
490
|
+
box-shadow: none;
|
|
491
|
+
}
|
|
492
|
+
.agent-bar[data-compose="screen"] .agent-compose__toprow {
|
|
493
|
+
flex: none;
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
gap: 10px;
|
|
497
|
+
height: 46px;
|
|
498
|
+
margin: 0 -2px;
|
|
499
|
+
}
|
|
500
|
+
.agent-bar.agent-compose .agent-compose__x {
|
|
501
|
+
width: 34px;
|
|
502
|
+
height: 34px;
|
|
503
|
+
display: flex;
|
|
504
|
+
align-items: center;
|
|
505
|
+
justify-content: center;
|
|
506
|
+
padding: 0;
|
|
507
|
+
border: 0;
|
|
508
|
+
border-radius: 17px;
|
|
509
|
+
background: transparent;
|
|
510
|
+
}
|
|
511
|
+
.agent-compose__x svg {
|
|
512
|
+
width: 16px;
|
|
513
|
+
height: 16px;
|
|
514
|
+
}
|
|
515
|
+
/* The large face waits in the free space under the text. It is laid over the
|
|
516
|
+
text area and takes no room, so the text never moves. Its top is set by the
|
|
517
|
+
script: the middle of the free space, which changes with the keyboard. */
|
|
518
|
+
.agent-bar[data-compose="screen"] .agent-compose__hero {
|
|
519
|
+
position: absolute;
|
|
520
|
+
left: 0;
|
|
521
|
+
right: 0;
|
|
522
|
+
top: 30%;
|
|
523
|
+
display: flex;
|
|
524
|
+
flex-direction: column;
|
|
525
|
+
align-items: center;
|
|
526
|
+
gap: 14px;
|
|
527
|
+
pointer-events: none;
|
|
528
|
+
transition: top 220ms ease;
|
|
529
|
+
}
|
|
530
|
+
/* the greeting belongs to the face: under it, and gone once you type */
|
|
531
|
+
.agent-bar[data-compose="screen"][data-compose-typing="false"][data-compose-roomy="true"] .agent-compose__greet {
|
|
532
|
+
display: block;
|
|
533
|
+
}
|
|
534
|
+
.agent-bar[data-compose="screen"] .agent-compose__slot--hero .agent-compose__face {
|
|
535
|
+
width: 84px;
|
|
536
|
+
height: 84px;
|
|
537
|
+
}
|
|
538
|
+
.agent-bar[data-compose="screen"] .agent-compose__slot--top .agent-compose__face {
|
|
539
|
+
width: 28px;
|
|
540
|
+
height: 28px;
|
|
541
|
+
}
|
|
542
|
+
/* the text fills the screen down to the rows at the bottom */
|
|
543
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__top {
|
|
544
|
+
flex: 1 1 auto;
|
|
545
|
+
min-height: 0;
|
|
546
|
+
}
|
|
547
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__input {
|
|
548
|
+
height: 100% !important;
|
|
549
|
+
min-height: 0;
|
|
550
|
+
padding: 2px 6px;
|
|
551
|
+
overflow-y: auto !important;
|
|
552
|
+
font-size: 18px;
|
|
553
|
+
line-height: 26px;
|
|
554
|
+
}
|
|
555
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__scope,
|
|
556
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__agent,
|
|
557
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__attach {
|
|
558
|
+
height: 36px;
|
|
559
|
+
border-radius: 18px;
|
|
560
|
+
}
|
|
561
|
+
/* Four named controls do not fit a phone's width, and the mode chip already
|
|
562
|
+
says what send does: send is the arrow alone. */
|
|
563
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__go {
|
|
564
|
+
flex: none;
|
|
565
|
+
width: 36px;
|
|
566
|
+
height: 36px;
|
|
567
|
+
padding: 0;
|
|
568
|
+
border-radius: 18px;
|
|
569
|
+
font-size: 15px;
|
|
570
|
+
}
|
|
571
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__go-label {
|
|
572
|
+
display: none;
|
|
573
|
+
}
|
|
574
|
+
/* "N running": the right end of the top row */
|
|
575
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__running {
|
|
576
|
+
position: absolute;
|
|
577
|
+
top: calc(env(safe-area-inset-top) + 5px);
|
|
578
|
+
right: 10px;
|
|
579
|
+
height: 36px;
|
|
580
|
+
margin: 0;
|
|
581
|
+
padding: 0 10px;
|
|
582
|
+
border-radius: 18px;
|
|
583
|
+
font-size: 14px;
|
|
584
|
+
}
|
|
585
|
+
/* The switch and the name do not fit one line: App / Plugin gets a line of
|
|
586
|
+
its own above the folder name, and what the name will do one under it. */
|
|
587
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__footer {
|
|
588
|
+
flex-wrap: wrap;
|
|
589
|
+
row-gap: 4px;
|
|
590
|
+
padding-top: 4px;
|
|
591
|
+
padding-bottom: 4px;
|
|
592
|
+
}
|
|
593
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__seg {
|
|
594
|
+
margin-left: 0;
|
|
595
|
+
}
|
|
596
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__seg-item {
|
|
597
|
+
height: 30px;
|
|
598
|
+
padding: 0 14px;
|
|
599
|
+
font-size: 13px;
|
|
600
|
+
}
|
|
601
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__name {
|
|
602
|
+
flex: 1 1 100%;
|
|
603
|
+
flex-wrap: wrap;
|
|
604
|
+
}
|
|
605
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__name-input {
|
|
606
|
+
height: 36px;
|
|
607
|
+
font-size: 16px;
|
|
608
|
+
}
|
|
609
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__name-status {
|
|
610
|
+
flex-basis: 100%;
|
|
611
|
+
max-width: none;
|
|
612
|
+
padding: 0 0 6px;
|
|
613
|
+
}
|
|
614
|
+
html .agent-bar.agent-compose[data-compose="screen"] .agent-bar__menu:not(.agent-bar__menu--running) .agent-bar__row {
|
|
615
|
+
height: 40px;
|
|
616
|
+
font-size: 15px;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/* ---- the app page's bar (agent-bar-app.js): Ask only ----
|
|
620
|
+
It has a bare mark where the home bar has its mode chip. At rest the face
|
|
621
|
+
stands in that mark's place, the same size and colour. */
|
|
622
|
+
.agent-bar[data-item="ask_app"] .agent-compose__slot--chip {
|
|
623
|
+
flex: none;
|
|
624
|
+
margin: 3px 2px 0 8px;
|
|
625
|
+
}
|
|
626
|
+
.agent-bar[data-item="ask_app"]:not([data-compose]) .agent-compose__face {
|
|
627
|
+
width: 16px;
|
|
628
|
+
height: 16px;
|
|
629
|
+
color: var(--agent-bar-muted);
|
|
630
|
+
}
|
|
631
|
+
/* On a phone that bar sits in the page's strip, which blurs what is behind it.
|
|
632
|
+
A blurred box keeps a full-screen child inside itself, so the blur is off
|
|
633
|
+
while the view covers the screen (and the strip with it). */
|
|
634
|
+
html.agent-compose-screen .mobile-bottom-nav {
|
|
635
|
+
-webkit-backdrop-filter: none;
|
|
636
|
+
backdrop-filter: none;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/* ---- phones: the button that opens the menu ----
|
|
640
|
+
Left of the bar. It was the Pinokio logo, which put two logos side by side
|
|
641
|
+
with the bar's own mark, and a logo does not say "menu". It shows three
|
|
642
|
+
lines, the icon Pinokio's phone menu button had before the logo took its job
|
|
643
|
+
(.main-sidebar-mobile-toggle). Only the picture changes: the same button,
|
|
644
|
+
doing the same thing. Desktop keeps the logo. */
|
|
645
|
+
@media only screen and (max-width: 768px) {
|
|
646
|
+
body.main-sidebar-page > header.navheader .home .icon {
|
|
647
|
+
display: none !important;
|
|
648
|
+
}
|
|
649
|
+
body.main-sidebar-page > header.navheader .home {
|
|
650
|
+
color: rgba(15, 23, 42, 0.82);
|
|
651
|
+
}
|
|
652
|
+
body.dark.main-sidebar-page > header.navheader .home {
|
|
653
|
+
color: rgba(250, 250, 250, 0.9);
|
|
654
|
+
}
|
|
655
|
+
body.main-sidebar-page > header.navheader .home::before {
|
|
656
|
+
content: "";
|
|
657
|
+
width: 18px;
|
|
658
|
+
height: 2px;
|
|
659
|
+
border-radius: 1px;
|
|
660
|
+
background: currentColor;
|
|
661
|
+
box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
/* the same on an app's page, in its own phone layout */
|
|
665
|
+
html.agent-bar-app-phone .mobile-nav-menu .mobile-bottom-nav__logo {
|
|
666
|
+
display: none !important;
|
|
667
|
+
}
|
|
668
|
+
html.agent-bar-app-phone .mobile-nav-menu::before {
|
|
669
|
+
content: "";
|
|
670
|
+
width: 18px;
|
|
671
|
+
height: 2px;
|
|
672
|
+
border-radius: 1px;
|
|
673
|
+
background: currentColor;
|
|
674
|
+
box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
|
|
675
|
+
}
|