orient-cli 0.3.2 → 0.3.3

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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/vendor/@orient-cli/coding-agent/README.md +618 -0
  3. package/vendor/@orient-cli/coding-agent/dist/core/export-html/template.css +1001 -0
  4. package/vendor/@orient-cli/coding-agent/dist/core/export-html/template.html +55 -0
  5. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/dark.json +85 -0
  6. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/light.json +84 -0
  7. package/vendor/@orient-cli/coding-agent/dist/modes/interactive/theme/theme-schema.json +335 -0
  8. package/vendor/@orient-cli/coding-agent/docs/compaction.md +394 -0
  9. package/vendor/@orient-cli/coding-agent/docs/custom-provider.md +596 -0
  10. package/vendor/@orient-cli/coding-agent/docs/development.md +71 -0
  11. package/vendor/@orient-cli/coding-agent/docs/extensions.md +2262 -0
  12. package/vendor/@orient-cli/coding-agent/docs/images/doom-extension.png +0 -0
  13. package/vendor/@orient-cli/coding-agent/docs/images/exy.png +0 -0
  14. package/vendor/@orient-cli/coding-agent/docs/images/interactive-mode.png +0 -0
  15. package/vendor/@orient-cli/coding-agent/docs/images/tree-view.png +0 -0
  16. package/vendor/@orient-cli/coding-agent/docs/json.md +82 -0
  17. package/vendor/@orient-cli/coding-agent/docs/keybindings.md +175 -0
  18. package/vendor/@orient-cli/coding-agent/docs/models.md +392 -0
  19. package/vendor/@orient-cli/coding-agent/docs/packages.md +218 -0
  20. package/vendor/@orient-cli/coding-agent/docs/prompt-templates.md +67 -0
  21. package/vendor/@orient-cli/coding-agent/docs/providers.md +195 -0
  22. package/vendor/@orient-cli/coding-agent/docs/rpc.md +1377 -0
  23. package/vendor/@orient-cli/coding-agent/docs/sdk.md +1124 -0
  24. package/vendor/@orient-cli/coding-agent/docs/session.md +412 -0
  25. package/vendor/@orient-cli/coding-agent/docs/settings.md +246 -0
  26. package/vendor/@orient-cli/coding-agent/docs/shell-aliases.md +13 -0
  27. package/vendor/@orient-cli/coding-agent/docs/skills.md +232 -0
  28. package/vendor/@orient-cli/coding-agent/docs/terminal-setup.md +106 -0
  29. package/vendor/@orient-cli/coding-agent/docs/termux.md +127 -0
  30. package/vendor/@orient-cli/coding-agent/docs/themes.md +295 -0
  31. package/vendor/@orient-cli/coding-agent/docs/tmux.md +61 -0
  32. package/vendor/@orient-cli/coding-agent/docs/tree.md +231 -0
  33. package/vendor/@orient-cli/coding-agent/docs/tui.md +887 -0
  34. package/vendor/@orient-cli/coding-agent/docs/windows.md +17 -0
@@ -0,0 +1,1001 @@
1
+ :root {
2
+ {{THEME_VARS}}
3
+ --body-bg: {{BODY_BG}};
4
+ --container-bg: {{CONTAINER_BG}};
5
+ --info-bg: {{INFO_BG}};
6
+ }
7
+
8
+ * { margin: 0; padding: 0; box-sizing: border-box; }
9
+
10
+ :root {
11
+ --line-height: 18px; /* 12px font * 1.5 */
12
+ --sidebar-width: 400px;
13
+ --sidebar-min-width: 240px;
14
+ --sidebar-max-width: 840px;
15
+ --sidebar-resizer-width: 6px;
16
+ }
17
+
18
+ body {
19
+ font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
20
+ font-size: 12px;
21
+ line-height: var(--line-height);
22
+ color: var(--text);
23
+ background: var(--body-bg);
24
+ }
25
+
26
+ body.sidebar-resizing {
27
+ cursor: col-resize;
28
+ user-select: none;
29
+ }
30
+
31
+ #app {
32
+ display: flex;
33
+ min-height: 100vh;
34
+ }
35
+
36
+ /* Sidebar */
37
+ #sidebar {
38
+ width: var(--sidebar-width);
39
+ min-width: var(--sidebar-width);
40
+ max-width: var(--sidebar-width);
41
+ background: var(--container-bg);
42
+ flex-shrink: 0;
43
+ display: flex;
44
+ flex-direction: column;
45
+ position: sticky;
46
+ top: 0;
47
+ height: 100vh;
48
+ border-right: 1px solid var(--dim);
49
+ }
50
+
51
+ #sidebar-resizer {
52
+ width: var(--sidebar-resizer-width);
53
+ flex-shrink: 0;
54
+ position: sticky;
55
+ top: 0;
56
+ height: 100vh;
57
+ cursor: col-resize;
58
+ touch-action: none;
59
+ background: transparent;
60
+ border-right: 1px solid transparent;
61
+ }
62
+
63
+ #sidebar-resizer:hover,
64
+ body.sidebar-resizing #sidebar-resizer {
65
+ background: var(--selectedBg);
66
+ border-right-color: var(--dim);
67
+ }
68
+
69
+ .sidebar-header {
70
+ padding: 8px 12px;
71
+ flex-shrink: 0;
72
+ }
73
+
74
+ .sidebar-controls {
75
+ padding: 8px 8px 4px 8px;
76
+ }
77
+
78
+ .sidebar-search {
79
+ width: 100%;
80
+ box-sizing: border-box;
81
+ padding: 4px 8px;
82
+ font-size: 11px;
83
+ font-family: inherit;
84
+ background: var(--body-bg);
85
+ color: var(--text);
86
+ border: 1px solid var(--dim);
87
+ border-radius: 3px;
88
+ }
89
+
90
+ .sidebar-filters {
91
+ display: flex;
92
+ padding: 4px 8px 8px 8px;
93
+ gap: 4px;
94
+ align-items: center;
95
+ flex-wrap: wrap;
96
+ }
97
+
98
+ .sidebar-search:focus {
99
+ outline: none;
100
+ border-color: var(--accent);
101
+ }
102
+
103
+ .sidebar-search::placeholder {
104
+ color: var(--muted);
105
+ }
106
+
107
+ .filter-btn {
108
+ padding: 3px 8px;
109
+ font-size: 10px;
110
+ font-family: inherit;
111
+ background: transparent;
112
+ color: var(--muted);
113
+ border: 1px solid var(--dim);
114
+ border-radius: 3px;
115
+ cursor: pointer;
116
+ }
117
+
118
+ .filter-btn:hover {
119
+ color: var(--text);
120
+ border-color: var(--text);
121
+ }
122
+
123
+ .filter-btn.active {
124
+ background: var(--accent);
125
+ color: var(--body-bg);
126
+ border-color: var(--accent);
127
+ }
128
+
129
+ .sidebar-close {
130
+ display: none;
131
+ padding: 3px 8px;
132
+ font-size: 12px;
133
+ font-family: inherit;
134
+ background: transparent;
135
+ color: var(--muted);
136
+ border: 1px solid var(--dim);
137
+ border-radius: 3px;
138
+ cursor: pointer;
139
+ margin-left: auto;
140
+ }
141
+
142
+ .sidebar-close:hover {
143
+ color: var(--text);
144
+ border-color: var(--text);
145
+ }
146
+
147
+ .tree-container {
148
+ flex: 1;
149
+ overflow: auto;
150
+ padding: 4px 0;
151
+ }
152
+
153
+ .tree-node {
154
+ padding: 0 8px;
155
+ cursor: pointer;
156
+ display: flex;
157
+ align-items: baseline;
158
+ font-size: 11px;
159
+ line-height: 13px;
160
+ white-space: nowrap;
161
+ }
162
+
163
+ .tree-node:hover {
164
+ background: var(--selectedBg);
165
+ }
166
+
167
+ .tree-node.active {
168
+ background: var(--selectedBg);
169
+ }
170
+
171
+ .tree-node.active .tree-content {
172
+ font-weight: bold;
173
+ }
174
+
175
+ .tree-node.in-path {
176
+ background: color-mix(in srgb, var(--accent) 10%, transparent);
177
+ }
178
+
179
+ .tree-node:not(.in-path) {
180
+ opacity: 0.5;
181
+ }
182
+
183
+ .tree-node:not(.in-path):hover {
184
+ opacity: 1;
185
+ }
186
+
187
+ .tree-prefix {
188
+ color: var(--muted);
189
+ flex-shrink: 0;
190
+ font-family: monospace;
191
+ white-space: pre;
192
+ }
193
+
194
+ .tree-marker {
195
+ color: var(--accent);
196
+ flex-shrink: 0;
197
+ }
198
+
199
+ .tree-content {
200
+ color: var(--text);
201
+ }
202
+
203
+ .tree-role-user {
204
+ color: var(--accent);
205
+ }
206
+
207
+ .tree-role-assistant {
208
+ color: var(--success);
209
+ }
210
+
211
+ .tree-role-tool {
212
+ color: var(--muted);
213
+ }
214
+
215
+ .tree-muted {
216
+ color: var(--muted);
217
+ }
218
+
219
+ .tree-error {
220
+ color: var(--error);
221
+ }
222
+
223
+ .tree-compaction {
224
+ color: var(--borderAccent);
225
+ }
226
+
227
+ .tree-branch-summary {
228
+ color: var(--warning);
229
+ }
230
+
231
+ .tree-custom-message {
232
+ color: var(--customMessageLabel);
233
+ }
234
+
235
+ .tree-status {
236
+ padding: 4px 12px;
237
+ font-size: 10px;
238
+ color: var(--muted);
239
+ flex-shrink: 0;
240
+ }
241
+
242
+ /* Main content */
243
+ #content {
244
+ flex: 1;
245
+ min-width: 0;
246
+ overflow-y: auto;
247
+ padding: var(--line-height) calc(var(--line-height) * 2);
248
+ display: flex;
249
+ flex-direction: column;
250
+ align-items: center;
251
+ }
252
+
253
+ #content > * {
254
+ width: 100%;
255
+ max-width: 800px;
256
+ }
257
+
258
+ /* Help bar */
259
+ .help-bar {
260
+ font-size: 11px;
261
+ color: var(--warning);
262
+ margin-bottom: var(--line-height);
263
+ display: flex;
264
+ align-items: center;
265
+ gap: 12px;
266
+ }
267
+
268
+ .download-json-btn {
269
+ font-size: 10px;
270
+ padding: 2px 8px;
271
+ background: var(--container-bg);
272
+ border: 1px solid var(--border);
273
+ border-radius: 3px;
274
+ color: var(--text);
275
+ cursor: pointer;
276
+ font-family: inherit;
277
+ }
278
+
279
+ .download-json-btn:hover {
280
+ background: var(--hover);
281
+ border-color: var(--borderAccent);
282
+ }
283
+
284
+ /* Header */
285
+ .header {
286
+ background: var(--container-bg);
287
+ border-radius: 4px;
288
+ padding: var(--line-height);
289
+ margin-bottom: var(--line-height);
290
+ }
291
+
292
+ .header h1 {
293
+ font-size: 12px;
294
+ font-weight: bold;
295
+ color: var(--borderAccent);
296
+ margin-bottom: var(--line-height);
297
+ }
298
+
299
+ .header-info {
300
+ display: flex;
301
+ flex-direction: column;
302
+ gap: 0;
303
+ font-size: 11px;
304
+ }
305
+
306
+ .info-item {
307
+ color: var(--dim);
308
+ display: flex;
309
+ align-items: baseline;
310
+ }
311
+
312
+ .info-label {
313
+ font-weight: 600;
314
+ margin-right: 8px;
315
+ min-width: 100px;
316
+ }
317
+
318
+ .info-value {
319
+ color: var(--text);
320
+ flex: 1;
321
+ }
322
+
323
+ /* Messages */
324
+ #messages {
325
+ display: flex;
326
+ flex-direction: column;
327
+ gap: var(--line-height);
328
+ }
329
+
330
+ .message-timestamp {
331
+ font-size: 10px;
332
+ color: var(--dim);
333
+ opacity: 0.8;
334
+ }
335
+
336
+ .user-message {
337
+ background: var(--userMessageBg);
338
+ color: var(--userMessageText);
339
+ padding: var(--line-height);
340
+ border-radius: 4px;
341
+ position: relative;
342
+ }
343
+
344
+ .assistant-message {
345
+ padding: 0;
346
+ position: relative;
347
+ }
348
+
349
+ /* Copy link button - appears on hover */
350
+ .copy-link-btn {
351
+ position: absolute;
352
+ top: 8px;
353
+ right: 8px;
354
+ width: 28px;
355
+ height: 28px;
356
+ padding: 6px;
357
+ background: var(--container-bg);
358
+ border: 1px solid var(--dim);
359
+ border-radius: 4px;
360
+ color: var(--muted);
361
+ cursor: pointer;
362
+ opacity: 0;
363
+ transition: opacity 0.15s, background 0.15s, color 0.15s;
364
+ display: flex;
365
+ align-items: center;
366
+ justify-content: center;
367
+ z-index: 10;
368
+ }
369
+
370
+ .user-message:hover .copy-link-btn,
371
+ .assistant-message:hover .copy-link-btn {
372
+ opacity: 1;
373
+ }
374
+
375
+ .copy-link-btn:hover {
376
+ background: var(--accent);
377
+ color: var(--body-bg);
378
+ border-color: var(--accent);
379
+ }
380
+
381
+ .copy-link-btn.copied {
382
+ background: var(--success, #22c55e);
383
+ color: white;
384
+ border-color: var(--success, #22c55e);
385
+ }
386
+
387
+ /* Highlight effect for deep-linked messages */
388
+ .user-message.highlight,
389
+ .assistant-message.highlight {
390
+ animation: highlight-pulse 2s ease-out;
391
+ }
392
+
393
+ @keyframes highlight-pulse {
394
+ 0% {
395
+ box-shadow: 0 0 0 3px var(--accent);
396
+ }
397
+ 100% {
398
+ box-shadow: 0 0 0 0 transparent;
399
+ }
400
+ }
401
+
402
+ .assistant-message > .message-timestamp {
403
+ padding-left: var(--line-height);
404
+ }
405
+
406
+ .assistant-text {
407
+ padding: var(--line-height);
408
+ padding-bottom: 0;
409
+ }
410
+
411
+ .message-timestamp + .assistant-text,
412
+ .message-timestamp + .thinking-block {
413
+ padding-top: 0;
414
+ }
415
+
416
+ .thinking-block + .assistant-text {
417
+ padding-top: 0;
418
+ }
419
+
420
+ .thinking-text {
421
+ padding: var(--line-height);
422
+ color: var(--thinkingText);
423
+ font-style: italic;
424
+ white-space: pre-wrap;
425
+ }
426
+
427
+ .message-timestamp + .thinking-block .thinking-text,
428
+ .message-timestamp + .thinking-block .thinking-collapsed {
429
+ padding-top: 0;
430
+ }
431
+
432
+ .thinking-collapsed {
433
+ display: none;
434
+ padding: var(--line-height);
435
+ color: var(--thinkingText);
436
+ font-style: italic;
437
+ }
438
+
439
+ /* Tool execution */
440
+ .tool-execution {
441
+ padding: var(--line-height);
442
+ border-radius: 4px;
443
+ }
444
+
445
+ .tool-execution + .tool-execution {
446
+ margin-top: var(--line-height);
447
+ }
448
+
449
+ .assistant-text + .tool-execution {
450
+ margin-top: var(--line-height);
451
+ }
452
+
453
+ .tool-execution.pending { background: var(--toolPendingBg); }
454
+ .tool-execution.success { background: var(--toolSuccessBg); }
455
+ .tool-execution.error { background: var(--toolErrorBg); }
456
+
457
+ .tool-header, .tool-name {
458
+ font-weight: bold;
459
+ }
460
+
461
+ .tool-path {
462
+ color: var(--accent);
463
+ word-break: break-all;
464
+ }
465
+
466
+ .line-numbers {
467
+ color: var(--warning);
468
+ }
469
+
470
+ .line-count {
471
+ color: var(--dim);
472
+ }
473
+
474
+ .tool-command {
475
+ font-weight: bold;
476
+ white-space: pre-wrap;
477
+ word-wrap: break-word;
478
+ overflow-wrap: break-word;
479
+ word-break: break-word;
480
+ }
481
+
482
+ .tool-output {
483
+ margin-top: var(--line-height);
484
+ color: var(--toolOutput);
485
+ word-wrap: break-word;
486
+ overflow-wrap: break-word;
487
+ word-break: break-word;
488
+ font-family: inherit;
489
+ overflow-x: auto;
490
+ }
491
+
492
+ .tool-output > div,
493
+ .output-preview,
494
+ .output-full {
495
+ margin: 0;
496
+ padding: 0;
497
+ line-height: var(--line-height);
498
+ }
499
+
500
+ .tool-output pre {
501
+ margin: 0;
502
+ padding: 0;
503
+ font-family: inherit;
504
+ color: inherit;
505
+ white-space: pre-wrap;
506
+ word-wrap: break-word;
507
+ overflow-wrap: break-word;
508
+ }
509
+
510
+ .tool-output code {
511
+ padding: 0;
512
+ background: none;
513
+ color: var(--text);
514
+ }
515
+
516
+ .tool-output.expandable {
517
+ cursor: pointer;
518
+ }
519
+
520
+ .tool-output.expandable:hover {
521
+ opacity: 0.9;
522
+ }
523
+
524
+ .tool-output.expandable .output-full {
525
+ display: none;
526
+ }
527
+
528
+ .tool-output.expandable.expanded .output-preview {
529
+ display: none;
530
+ }
531
+
532
+ .tool-output.expandable.expanded .output-full {
533
+ display: block;
534
+ }
535
+
536
+ .ansi-line {
537
+ white-space: pre-wrap;
538
+ }
539
+
540
+ .tool-images {
541
+ }
542
+
543
+ .tool-image {
544
+ max-width: 100%;
545
+ max-height: 500px;
546
+ border-radius: 4px;
547
+ margin: var(--line-height) 0;
548
+ }
549
+
550
+ .expand-hint {
551
+ color: var(--toolOutput);
552
+ }
553
+
554
+ /* Diff */
555
+ .tool-diff {
556
+ font-size: 11px;
557
+ overflow-x: auto;
558
+ white-space: pre;
559
+ }
560
+
561
+ .diff-added { color: var(--toolDiffAdded); }
562
+ .diff-removed { color: var(--toolDiffRemoved); }
563
+ .diff-context { color: var(--toolDiffContext); }
564
+
565
+ /* Model change */
566
+ .model-change {
567
+ padding: 0 var(--line-height);
568
+ color: var(--dim);
569
+ font-size: 11px;
570
+ }
571
+
572
+ .model-name {
573
+ color: var(--borderAccent);
574
+ font-weight: bold;
575
+ }
576
+
577
+ /* Compaction / Branch Summary - matches customMessage colors from TUI */
578
+ .compaction {
579
+ background: var(--customMessageBg);
580
+ border-radius: 4px;
581
+ padding: var(--line-height);
582
+ cursor: pointer;
583
+ }
584
+
585
+ .compaction-label {
586
+ color: var(--customMessageLabel);
587
+ font-weight: bold;
588
+ }
589
+
590
+ .compaction-collapsed {
591
+ color: var(--customMessageText);
592
+ }
593
+
594
+ .compaction-content {
595
+ display: none;
596
+ color: var(--customMessageText);
597
+ white-space: pre-wrap;
598
+ margin-top: var(--line-height);
599
+ }
600
+
601
+ .compaction.expanded .compaction-collapsed {
602
+ display: none;
603
+ }
604
+
605
+ .compaction.expanded .compaction-content {
606
+ display: block;
607
+ }
608
+
609
+ /* System prompt */
610
+ .system-prompt {
611
+ background: var(--customMessageBg);
612
+ padding: var(--line-height);
613
+ border-radius: 4px;
614
+ margin-bottom: var(--line-height);
615
+ }
616
+
617
+ .system-prompt.expandable {
618
+ cursor: pointer;
619
+ }
620
+
621
+ .system-prompt-header {
622
+ font-weight: bold;
623
+ color: var(--customMessageLabel);
624
+ }
625
+
626
+ .system-prompt-preview {
627
+ color: var(--customMessageText);
628
+ white-space: pre-wrap;
629
+ word-wrap: break-word;
630
+ font-size: 11px;
631
+ margin-top: var(--line-height);
632
+ }
633
+
634
+ .system-prompt-expand-hint {
635
+ color: var(--muted);
636
+ font-style: italic;
637
+ margin-top: 4px;
638
+ }
639
+
640
+ .system-prompt-full {
641
+ display: none;
642
+ color: var(--customMessageText);
643
+ white-space: pre-wrap;
644
+ word-wrap: break-word;
645
+ font-size: 11px;
646
+ margin-top: var(--line-height);
647
+ }
648
+
649
+ .system-prompt.expanded .system-prompt-preview,
650
+ .system-prompt.expanded .system-prompt-expand-hint {
651
+ display: none;
652
+ }
653
+
654
+ .system-prompt.expanded .system-prompt-full {
655
+ display: block;
656
+ }
657
+
658
+ .system-prompt.provider-prompt {
659
+ border-left: 3px solid var(--warning);
660
+ }
661
+
662
+ .system-prompt-note {
663
+ font-size: 10px;
664
+ font-style: italic;
665
+ color: var(--muted);
666
+ margin-top: 4px;
667
+ }
668
+
669
+ /* Tools list */
670
+ .tools-list {
671
+ background: var(--customMessageBg);
672
+ padding: var(--line-height);
673
+ border-radius: 4px;
674
+ margin-bottom: var(--line-height);
675
+ }
676
+
677
+ .tools-header {
678
+ font-weight: bold;
679
+ color: var(--customMessageLabel);
680
+ margin-bottom: var(--line-height);
681
+ }
682
+
683
+ .tool-item {
684
+ font-size: 11px;
685
+ }
686
+
687
+ .tool-item-name {
688
+ font-weight: bold;
689
+ color: var(--text);
690
+ }
691
+
692
+ .tool-item-desc {
693
+ color: var(--dim);
694
+ }
695
+
696
+ .tool-params-hint {
697
+ color: var(--muted);
698
+ font-style: italic;
699
+ }
700
+
701
+ .tool-item:has(.tool-params-hint) {
702
+ cursor: pointer;
703
+ }
704
+
705
+ .tool-params-hint::after {
706
+ content: '[click to show parameters]';
707
+ }
708
+
709
+ .tool-item.params-expanded .tool-params-hint::after {
710
+ content: '[hide parameters]';
711
+ }
712
+
713
+ .tool-params-content {
714
+ display: none;
715
+ margin-top: 4px;
716
+ margin-left: 12px;
717
+ padding-left: 8px;
718
+ border-left: 1px solid var(--dim);
719
+ }
720
+
721
+ .tool-item.params-expanded .tool-params-content {
722
+ display: block;
723
+ }
724
+
725
+ .tool-param {
726
+ margin-bottom: 4px;
727
+ font-size: 11px;
728
+ }
729
+
730
+ .tool-param-name {
731
+ font-weight: bold;
732
+ color: var(--text);
733
+ }
734
+
735
+ .tool-param-type {
736
+ color: var(--dim);
737
+ font-style: italic;
738
+ }
739
+
740
+ .tool-param-required {
741
+ color: var(--warning, #e8a838);
742
+ font-size: 10px;
743
+ }
744
+
745
+ .tool-param-optional {
746
+ color: var(--dim);
747
+ font-size: 10px;
748
+ }
749
+
750
+ .tool-param-desc {
751
+ color: var(--dim);
752
+ margin-left: 8px;
753
+ }
754
+
755
+ /* Hook/custom messages */
756
+ .hook-message {
757
+ background: var(--customMessageBg);
758
+ color: var(--customMessageText);
759
+ padding: var(--line-height);
760
+ border-radius: 4px;
761
+ }
762
+
763
+ .hook-type {
764
+ color: var(--customMessageLabel);
765
+ font-weight: bold;
766
+ }
767
+
768
+ /* Branch summary */
769
+ .branch-summary {
770
+ background: var(--customMessageBg);
771
+ padding: var(--line-height);
772
+ border-radius: 4px;
773
+ }
774
+
775
+ .branch-summary-header {
776
+ font-weight: bold;
777
+ color: var(--borderAccent);
778
+ }
779
+
780
+ /* Error */
781
+ .error-text {
782
+ color: var(--error);
783
+ padding: 0 var(--line-height);
784
+ }
785
+ .tool-error {
786
+ color: var(--error);
787
+ }
788
+
789
+ /* Images */
790
+ .message-images {
791
+ margin-bottom: 12px;
792
+ }
793
+
794
+ .message-image {
795
+ max-width: 100%;
796
+ max-height: 400px;
797
+ border-radius: 4px;
798
+ margin: var(--line-height) 0;
799
+ }
800
+
801
+ /* Markdown content */
802
+ .markdown-content h1,
803
+ .markdown-content h2,
804
+ .markdown-content h3,
805
+ .markdown-content h4,
806
+ .markdown-content h5,
807
+ .markdown-content h6 {
808
+ color: var(--mdHeading);
809
+ margin: var(--line-height) 0 0 0;
810
+ font-weight: bold;
811
+ }
812
+
813
+ .markdown-content h1 { font-size: 1em; }
814
+ .markdown-content h2 { font-size: 1em; }
815
+ .markdown-content h3 { font-size: 1em; }
816
+ .markdown-content h4 { font-size: 1em; }
817
+ .markdown-content h5 { font-size: 1em; }
818
+ .markdown-content h6 { font-size: 1em; }
819
+ .markdown-content p { margin: 0; }
820
+ .markdown-content p + p { margin-top: var(--line-height); }
821
+
822
+ .markdown-content a {
823
+ color: var(--mdLink);
824
+ text-decoration: underline;
825
+ }
826
+
827
+ .markdown-content code {
828
+ background: rgba(128, 128, 128, 0.2);
829
+ color: var(--mdCode);
830
+ padding: 0 4px;
831
+ border-radius: 3px;
832
+ font-family: inherit;
833
+ }
834
+
835
+ .markdown-content pre {
836
+ background: transparent;
837
+ margin: var(--line-height) 0;
838
+ overflow-x: auto;
839
+ }
840
+
841
+ .markdown-content pre code {
842
+ display: block;
843
+ background: none;
844
+ color: var(--text);
845
+ }
846
+
847
+ .markdown-content blockquote {
848
+ border-left: 3px solid var(--mdQuoteBorder);
849
+ padding-left: var(--line-height);
850
+ margin: var(--line-height) 0;
851
+ color: var(--mdQuote);
852
+ font-style: italic;
853
+ }
854
+
855
+ .markdown-content ul,
856
+ .markdown-content ol {
857
+ margin: var(--line-height) 0;
858
+ padding-left: calc(var(--line-height) * 2);
859
+ }
860
+
861
+ .markdown-content li { margin: 0; }
862
+ .markdown-content li::marker { color: var(--mdListBullet); }
863
+
864
+ .markdown-content hr {
865
+ border: none;
866
+ border-top: 1px solid var(--mdHr);
867
+ margin: var(--line-height) 0;
868
+ }
869
+
870
+ .markdown-content table {
871
+ border-collapse: collapse;
872
+ margin: 0.5em 0;
873
+ width: 100%;
874
+ }
875
+
876
+ .markdown-content th,
877
+ .markdown-content td {
878
+ border: 1px solid var(--mdCodeBlockBorder);
879
+ padding: 6px 10px;
880
+ text-align: left;
881
+ }
882
+
883
+ .markdown-content th {
884
+ background: rgba(128, 128, 128, 0.1);
885
+ font-weight: bold;
886
+ }
887
+
888
+ .markdown-content img {
889
+ max-width: 100%;
890
+ border-radius: 4px;
891
+ }
892
+
893
+ /* Syntax highlighting */
894
+ .hljs { background: transparent; color: var(--text); }
895
+ .hljs-comment, .hljs-quote { color: var(--syntaxComment); }
896
+ .hljs-keyword, .hljs-selector-tag { color: var(--syntaxKeyword); }
897
+ .hljs-number, .hljs-literal { color: var(--syntaxNumber); }
898
+ .hljs-string, .hljs-doctag { color: var(--syntaxString); }
899
+ /* Function names: hljs v11 uses .hljs-title.function_ compound class */
900
+ .hljs-function, .hljs-title, .hljs-title.function_, .hljs-section, .hljs-name { color: var(--syntaxFunction); }
901
+ /* Types: hljs v11 uses .hljs-title.class_ for class names */
902
+ .hljs-type, .hljs-class, .hljs-title.class_, .hljs-built_in { color: var(--syntaxType); }
903
+ .hljs-attr, .hljs-variable, .hljs-variable.language_, .hljs-params, .hljs-property { color: var(--syntaxVariable); }
904
+ .hljs-meta, .hljs-meta .hljs-keyword, .hljs-meta .hljs-string { color: var(--syntaxKeyword); }
905
+ .hljs-operator { color: var(--syntaxOperator); }
906
+ .hljs-punctuation { color: var(--syntaxPunctuation); }
907
+ .hljs-subst { color: var(--text); }
908
+
909
+ /* Footer */
910
+ .footer {
911
+ margin-top: 48px;
912
+ padding: 20px;
913
+ text-align: center;
914
+ color: var(--dim);
915
+ font-size: 10px;
916
+ }
917
+
918
+ /* Mobile */
919
+ #hamburger {
920
+ display: none;
921
+ position: fixed;
922
+ top: 10px;
923
+ left: 10px;
924
+ z-index: 100;
925
+ padding: 3px 8px;
926
+ font-size: 12px;
927
+ font-family: inherit;
928
+ background: transparent;
929
+ color: var(--muted);
930
+ border: 1px solid var(--dim);
931
+ border-radius: 3px;
932
+ cursor: pointer;
933
+ }
934
+
935
+ #hamburger:hover {
936
+ color: var(--text);
937
+ border-color: var(--text);
938
+ }
939
+
940
+
941
+
942
+ #sidebar-overlay {
943
+ display: none;
944
+ position: fixed;
945
+ top: 0;
946
+ left: 0;
947
+ right: 0;
948
+ bottom: 0;
949
+ background: rgba(0, 0, 0, 0.5);
950
+ z-index: 98;
951
+ }
952
+
953
+ @media (max-width: 900px) {
954
+ #sidebar {
955
+ position: fixed;
956
+ left: 0;
957
+ width: min(var(--sidebar-width), 100vw);
958
+ min-width: min(var(--sidebar-width), 100vw);
959
+ max-width: min(var(--sidebar-width), 100vw);
960
+ top: 0;
961
+ bottom: 0;
962
+ height: 100vh;
963
+ z-index: 99;
964
+ transform: translateX(-100%);
965
+ transition: transform 0.3s;
966
+ }
967
+
968
+ #sidebar.open {
969
+ transform: translateX(0);
970
+ }
971
+
972
+ #sidebar-resizer {
973
+ display: none;
974
+ }
975
+
976
+ #sidebar-overlay.open {
977
+ display: block;
978
+ }
979
+
980
+ #hamburger {
981
+ display: block;
982
+ }
983
+
984
+ .sidebar-close {
985
+ display: block;
986
+ }
987
+
988
+ #content {
989
+ padding: var(--line-height) 16px;
990
+ }
991
+
992
+ #content > * {
993
+ max-width: 100%;
994
+ }
995
+ }
996
+
997
+ @media print {
998
+ #sidebar, #sidebar-resizer, #sidebar-toggle { display: none !important; }
999
+ body { background: white; color: black; }
1000
+ #content { max-width: none; }
1001
+ }