pinokiod 8.3.14 → 8.3.16

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.
@@ -0,0 +1,391 @@
1
+ /* The files a session made, in that session's window (see agent-bar-files.js).
2
+ Colours are the window's own (the --abp-* values of agent-bar-panel.css), so
3
+ light and dark follow it. */
4
+
5
+ /* ---- the switch in the header: Terminal | Files ---- */
6
+ .agent-files__views {
7
+ flex: none;
8
+ display: inline-flex;
9
+ padding: 2px;
10
+ border-radius: 9px;
11
+ background: var(--abp-chip);
12
+ }
13
+ .agent-bar-panel .agent-files__view {
14
+ height: 24px;
15
+ display: inline-flex;
16
+ align-items: center;
17
+ gap: 5px;
18
+ padding: 0 8px;
19
+ border: 0;
20
+ border-radius: 7px;
21
+ background: transparent;
22
+ color: var(--abp-muted);
23
+ font-size: 12px;
24
+ font-weight: 600;
25
+ white-space: nowrap;
26
+ }
27
+ .agent-files__view i {
28
+ font-size: 11px;
29
+ }
30
+ .agent-bar-panel .agent-files__view[aria-pressed="true"] {
31
+ background: var(--abp-surface);
32
+ color: var(--abp-text);
33
+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
34
+ }
35
+ .agent-files__count {
36
+ font-variant-numeric: tabular-nums;
37
+ }
38
+ .agent-files__new {
39
+ width: 6px;
40
+ height: 6px;
41
+ border-radius: 50%;
42
+ background: #2563eb;
43
+ }
44
+ /* a narrow window keeps its room for the title: the two views are their icons */
45
+ .agent-bar-panel[data-narrow="true"] .agent-files__word {
46
+ display: none;
47
+ }
48
+ /* and Stop is its icon, as it already is in a window under 440px, so the title
49
+ keeps its room. Asked to confirm, it has its words back. */
50
+ .agent-bar-panel[data-narrow="true"][data-files="true"] .agent-dock__stop {
51
+ padding: 0 9px;
52
+ }
53
+ .agent-bar-panel[data-narrow="true"][data-files="true"] .agent-dock__stop:not([data-armed="true"]) span {
54
+ display: none;
55
+ }
56
+ @media only screen and (max-width: 768px) {
57
+ .agent-bar-panel .agent-files__view {
58
+ height: 30px;
59
+ padding: 0 10px;
60
+ }
61
+ }
62
+
63
+ /* ---- the view: over the terminal, which keeps its size underneath ---- */
64
+ .agent-files {
65
+ position: absolute;
66
+ left: 0;
67
+ right: 0;
68
+ bottom: 0;
69
+ top: 46px; /* set to the terminal's own top by the script */
70
+ display: flex;
71
+ flex-direction: column;
72
+ background: var(--abp-surface);
73
+ color: var(--abp-text);
74
+ }
75
+ @media only screen and (min-width: 769px) {
76
+ .agent-bar-panel:not([data-docked="true"]) .agent-files {
77
+ border-radius: 0 0 11px 11px;
78
+ overflow: hidden;
79
+ }
80
+ }
81
+ .agent-files__crumbs {
82
+ flex: none;
83
+ display: flex;
84
+ align-items: center;
85
+ gap: 2px;
86
+ min-height: 38px;
87
+ padding: 0 8px;
88
+ border-bottom: 1px solid var(--abp-border);
89
+ overflow-x: auto;
90
+ white-space: nowrap;
91
+ scrollbar-width: none;
92
+ }
93
+ .agent-files__crumbs::-webkit-scrollbar {
94
+ display: none;
95
+ }
96
+ .agent-bar-panel .agent-files__crumb {
97
+ flex: none;
98
+ padding: 4px 6px;
99
+ border: 0;
100
+ border-radius: 6px;
101
+ background: transparent;
102
+ color: var(--abp-muted);
103
+ font-size: 12px;
104
+ font-weight: 600;
105
+ }
106
+ .agent-bar-panel .agent-files__crumb:hover {
107
+ background: var(--abp-chip);
108
+ color: var(--abp-text);
109
+ }
110
+ .agent-bar-panel .agent-files__crumb[aria-current="true"] {
111
+ background: transparent;
112
+ color: var(--abp-text);
113
+ cursor: default;
114
+ }
115
+ .agent-files__slash {
116
+ flex: none;
117
+ color: var(--abp-muted);
118
+ opacity: 0.55;
119
+ }
120
+ .agent-files__grow {
121
+ flex: 1 1 auto;
122
+ min-width: 8px;
123
+ }
124
+ .agent-files__save {
125
+ position: sticky;
126
+ right: 0;
127
+ flex: none;
128
+ height: 28px;
129
+ display: inline-flex;
130
+ align-items: center;
131
+ gap: 6px;
132
+ padding: 0 10px;
133
+ border: 1px solid var(--abp-border);
134
+ border-radius: 8px;
135
+ background: var(--abp-surface);
136
+ color: var(--abp-text);
137
+ font-size: 12px;
138
+ font-weight: 600;
139
+ text-decoration: none;
140
+ }
141
+ .agent-files__save:hover {
142
+ background: var(--abp-chip);
143
+ }
144
+ .agent-files__save i {
145
+ font-size: 11px;
146
+ }
147
+
148
+ .agent-files__body {
149
+ flex: 1 1 auto;
150
+ min-height: 0;
151
+ overflow: auto;
152
+ -webkit-overflow-scrolling: touch;
153
+ }
154
+
155
+ /* ---- a folder ---- */
156
+ .agent-files__list {
157
+ padding: 4px;
158
+ }
159
+ .agent-files__row {
160
+ display: flex;
161
+ align-items: center;
162
+ gap: 2px;
163
+ border-radius: 8px;
164
+ }
165
+ .agent-files__row:hover {
166
+ background: var(--abp-chip);
167
+ }
168
+ .agent-bar-panel .agent-files__open {
169
+ flex: 1 1 auto;
170
+ min-width: 0;
171
+ min-height: 44px;
172
+ display: flex;
173
+ align-items: center;
174
+ gap: 10px;
175
+ padding: 4px 8px;
176
+ border: 0;
177
+ background: transparent;
178
+ text-align: left;
179
+ }
180
+ .agent-files__icon {
181
+ flex: none;
182
+ width: 30px;
183
+ height: 30px;
184
+ display: inline-flex;
185
+ align-items: center;
186
+ justify-content: center;
187
+ border-radius: 7px;
188
+ background: var(--abp-chip);
189
+ color: var(--abp-muted);
190
+ font-size: 13px;
191
+ overflow: hidden;
192
+ }
193
+ .agent-files__icon img {
194
+ width: 100%;
195
+ height: 100%;
196
+ object-fit: cover;
197
+ display: block;
198
+ }
199
+ .agent-files__icon--folder {
200
+ background: rgba(217, 158, 30, 0.18);
201
+ color: #b7791f;
202
+ }
203
+ body.dark .agent-files__icon--folder {
204
+ color: #e3b341;
205
+ }
206
+ .agent-files__text {
207
+ min-width: 0;
208
+ display: flex;
209
+ flex-direction: column;
210
+ }
211
+ .agent-files__name {
212
+ min-width: 0;
213
+ overflow: hidden;
214
+ text-overflow: ellipsis;
215
+ white-space: nowrap;
216
+ font-size: 13px;
217
+ font-weight: 600;
218
+ line-height: 17px;
219
+ }
220
+ .agent-files__meta {
221
+ font-size: 11px;
222
+ line-height: 14px;
223
+ color: var(--abp-muted);
224
+ white-space: nowrap;
225
+ }
226
+ .agent-files__go {
227
+ flex: none;
228
+ margin-right: 14px;
229
+ color: var(--abp-muted);
230
+ opacity: 0.6;
231
+ font-size: 11px;
232
+ }
233
+ .agent-files__rowsave {
234
+ flex: none;
235
+ width: 36px;
236
+ height: 36px;
237
+ margin-right: 4px;
238
+ display: inline-flex;
239
+ align-items: center;
240
+ justify-content: center;
241
+ border-radius: 8px;
242
+ color: var(--abp-muted);
243
+ font-size: 12px;
244
+ text-decoration: none;
245
+ }
246
+ .agent-files__rowsave:hover {
247
+ background: var(--abp-chip-hover);
248
+ color: var(--abp-text);
249
+ }
250
+ .agent-files__note {
251
+ padding: 10px 12px;
252
+ font-size: 12px;
253
+ color: var(--abp-muted);
254
+ }
255
+
256
+ /* ---- one file ---- */
257
+ .agent-files__picture {
258
+ display: flex;
259
+ align-items: center;
260
+ justify-content: center;
261
+ padding: 12px;
262
+ background: var(--abp-chip);
263
+ }
264
+ .agent-files__picture img {
265
+ max-width: 100%;
266
+ max-height: 100%;
267
+ border-radius: 6px;
268
+ box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
269
+ }
270
+ .agent-files__media {
271
+ display: flex;
272
+ align-items: center;
273
+ justify-content: center;
274
+ padding: 12px;
275
+ background: var(--abp-chip);
276
+ }
277
+ .agent-files__media video {
278
+ max-width: 100%;
279
+ max-height: 100%;
280
+ border-radius: 6px;
281
+ background: #000;
282
+ }
283
+ .agent-files__media audio {
284
+ width: min(100%, 420px);
285
+ }
286
+ .agent-files__plain pre {
287
+ margin: 0;
288
+ padding: 14px;
289
+ font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
290
+ white-space: pre-wrap;
291
+ word-break: break-word;
292
+ color: var(--abp-text);
293
+ background: transparent;
294
+ }
295
+ .agent-files__none {
296
+ display: flex;
297
+ flex-direction: column;
298
+ align-items: center;
299
+ justify-content: center;
300
+ gap: 6px;
301
+ padding: 24px;
302
+ text-align: center;
303
+ font-size: 13px;
304
+ color: var(--abp-muted);
305
+ }
306
+ .agent-files__none strong {
307
+ color: var(--abp-text);
308
+ word-break: break-word;
309
+ }
310
+
311
+ /* a markdown file, as a page */
312
+ .agent-files__md {
313
+ max-width: 68ch;
314
+ padding: 16px 18px 28px;
315
+ font-size: 14px;
316
+ line-height: 1.6;
317
+ overflow-wrap: anywhere;
318
+ }
319
+ .agent-files__md > :first-child {
320
+ margin-top: 0;
321
+ }
322
+ .agent-files__md h1,
323
+ .agent-files__md h2,
324
+ .agent-files__md h3,
325
+ .agent-files__md h4 {
326
+ margin: 20px 0 8px;
327
+ line-height: 1.25;
328
+ font-weight: 600;
329
+ color: var(--abp-text);
330
+ }
331
+ .agent-files__md h1 { font-size: 20px; }
332
+ .agent-files__md h2 { font-size: 16px; }
333
+ .agent-files__md h3,
334
+ .agent-files__md h4 { font-size: 14px; }
335
+ .agent-files__md p,
336
+ .agent-files__md ul,
337
+ .agent-files__md ol,
338
+ .agent-files__md blockquote,
339
+ .agent-files__md pre,
340
+ .agent-files__md table {
341
+ margin: 0 0 10px;
342
+ }
343
+ .agent-files__md ul,
344
+ .agent-files__md ol {
345
+ padding-left: 22px;
346
+ }
347
+ .agent-files__md img {
348
+ display: block;
349
+ max-width: 100%;
350
+ margin: 8px 0;
351
+ border-radius: 6px;
352
+ }
353
+ .agent-files__md a {
354
+ color: #1d4ed8;
355
+ text-decoration: underline;
356
+ }
357
+ body.dark .agent-files__md a {
358
+ color: #93c5fd;
359
+ }
360
+ .agent-files__md code {
361
+ padding: 1px 4px;
362
+ border-radius: 4px;
363
+ background: var(--abp-chip);
364
+ font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
365
+ }
366
+ .agent-files__md pre {
367
+ padding: 10px 12px;
368
+ border-radius: 8px;
369
+ background: var(--abp-chip);
370
+ overflow-x: auto;
371
+ }
372
+ .agent-files__md pre code {
373
+ padding: 0;
374
+ background: transparent;
375
+ }
376
+ .agent-files__md blockquote {
377
+ padding-left: 12px;
378
+ border-left: 3px solid var(--abp-border);
379
+ color: var(--abp-muted);
380
+ }
381
+ .agent-files__md table {
382
+ display: block;
383
+ overflow-x: auto;
384
+ border-collapse: collapse;
385
+ }
386
+ .agent-files__md th,
387
+ .agent-files__md td {
388
+ padding: 4px 8px;
389
+ border: 1px solid var(--abp-border);
390
+ text-align: left;
391
+ }