codex-lens 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.css ADDED
@@ -0,0 +1,658 @@
1
+ /* node_modules/@xterm/xterm/css/xterm.css */
2
+ .xterm {
3
+ cursor: text;
4
+ position: relative;
5
+ user-select: none;
6
+ -ms-user-select: none;
7
+ -webkit-user-select: none;
8
+ }
9
+ .xterm.focus,
10
+ .xterm:focus {
11
+ outline: none;
12
+ }
13
+ .xterm .xterm-helpers {
14
+ position: absolute;
15
+ top: 0;
16
+ z-index: 5;
17
+ }
18
+ .xterm .xterm-helper-textarea {
19
+ padding: 0;
20
+ border: 0;
21
+ margin: 0;
22
+ position: absolute;
23
+ opacity: 0;
24
+ left: -9999em;
25
+ top: 0;
26
+ width: 0;
27
+ height: 0;
28
+ z-index: -5;
29
+ white-space: nowrap;
30
+ overflow: hidden;
31
+ resize: none;
32
+ }
33
+ .xterm .composition-view {
34
+ background: #000;
35
+ color: #FFF;
36
+ display: none;
37
+ position: absolute;
38
+ white-space: nowrap;
39
+ z-index: 1;
40
+ }
41
+ .xterm .composition-view.active {
42
+ display: block;
43
+ }
44
+ .xterm .xterm-viewport {
45
+ background-color: #000;
46
+ overflow-y: scroll;
47
+ cursor: default;
48
+ position: absolute;
49
+ right: 0;
50
+ left: 0;
51
+ top: 0;
52
+ bottom: 0;
53
+ }
54
+ .xterm .xterm-screen {
55
+ position: relative;
56
+ }
57
+ .xterm .xterm-screen canvas {
58
+ position: absolute;
59
+ left: 0;
60
+ top: 0;
61
+ }
62
+ .xterm .xterm-scroll-area {
63
+ visibility: hidden;
64
+ }
65
+ .xterm-char-measure-element {
66
+ display: inline-block;
67
+ visibility: hidden;
68
+ position: absolute;
69
+ top: 0;
70
+ left: -9999em;
71
+ line-height: normal;
72
+ }
73
+ .xterm.enable-mouse-events {
74
+ cursor: default;
75
+ }
76
+ .xterm.xterm-cursor-pointer,
77
+ .xterm .xterm-cursor-pointer {
78
+ cursor: pointer;
79
+ }
80
+ .xterm.column-select.focus {
81
+ cursor: crosshair;
82
+ }
83
+ .xterm .xterm-accessibility:not(.debug),
84
+ .xterm .xterm-message {
85
+ position: absolute;
86
+ left: 0;
87
+ top: 0;
88
+ bottom: 0;
89
+ right: 0;
90
+ z-index: 10;
91
+ color: transparent;
92
+ pointer-events: none;
93
+ }
94
+ .xterm .xterm-accessibility-tree:not(.debug) *::selection {
95
+ color: transparent;
96
+ }
97
+ .xterm .xterm-accessibility-tree {
98
+ user-select: text;
99
+ white-space: pre;
100
+ }
101
+ .xterm .live-region {
102
+ position: absolute;
103
+ left: -9999px;
104
+ width: 1px;
105
+ height: 1px;
106
+ overflow: hidden;
107
+ }
108
+ .xterm-dim {
109
+ opacity: 1 !important;
110
+ }
111
+ .xterm-underline-1 {
112
+ text-decoration: underline;
113
+ }
114
+ .xterm-underline-2 {
115
+ text-decoration: double underline;
116
+ }
117
+ .xterm-underline-3 {
118
+ text-decoration: wavy underline;
119
+ }
120
+ .xterm-underline-4 {
121
+ text-decoration: dotted underline;
122
+ }
123
+ .xterm-underline-5 {
124
+ text-decoration: dashed underline;
125
+ }
126
+ .xterm-overline {
127
+ text-decoration: overline;
128
+ }
129
+ .xterm-overline.xterm-underline-1 {
130
+ text-decoration: overline underline;
131
+ }
132
+ .xterm-overline.xterm-underline-2 {
133
+ text-decoration: overline double underline;
134
+ }
135
+ .xterm-overline.xterm-underline-3 {
136
+ text-decoration: overline wavy underline;
137
+ }
138
+ .xterm-overline.xterm-underline-4 {
139
+ text-decoration: overline dotted underline;
140
+ }
141
+ .xterm-overline.xterm-underline-5 {
142
+ text-decoration: overline dashed underline;
143
+ }
144
+ .xterm-strikethrough {
145
+ text-decoration: line-through;
146
+ }
147
+ .xterm-screen .xterm-decoration-container .xterm-decoration {
148
+ z-index: 6;
149
+ position: absolute;
150
+ }
151
+ .xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
152
+ z-index: 7;
153
+ }
154
+ .xterm-decoration-overview-ruler {
155
+ z-index: 8;
156
+ position: absolute;
157
+ top: 0;
158
+ right: 0;
159
+ pointer-events: none;
160
+ }
161
+ .xterm-decoration-top {
162
+ z-index: 2;
163
+ position: relative;
164
+ }
165
+
166
+ /* src/global.css */
167
+ :root {
168
+ --bg-primary: #1e1e1e;
169
+ --bg-secondary: #252526;
170
+ --bg-tertiary: #2d2d30;
171
+ --text-primary: #cccccc;
172
+ --text-secondary: #858585;
173
+ --border-color: #3c3c3c;
174
+ --accent-color: #007acc;
175
+ --accent-hover: #1e8ad2;
176
+ --diff-add-bg: #2d4a2d;
177
+ --diff-add-text: #89d185;
178
+ --diff-remove-bg: #5a2d2d;
179
+ --diff-remove-text: #f48771;
180
+ --font-family:
181
+ -apple-system,
182
+ BlinkMacSystemFont,
183
+ "Segoe UI",
184
+ Roboto,
185
+ Oxygen,
186
+ Ubuntu,
187
+ sans-serif;
188
+ --font-mono:
189
+ "SF Mono",
190
+ "Fira Code",
191
+ "Consolas",
192
+ monospace;
193
+ }
194
+ * {
195
+ margin: 0;
196
+ padding: 0;
197
+ box-sizing: border-box;
198
+ }
199
+ html,
200
+ body,
201
+ #root {
202
+ height: 100%;
203
+ width: 100%;
204
+ overflow: hidden;
205
+ }
206
+ body {
207
+ font-family: var(--font-family);
208
+ background-color: var(--bg-primary);
209
+ color: var(--text-primary);
210
+ font-size: 14px;
211
+ line-height: 1.5;
212
+ }
213
+ .app-container {
214
+ display: flex;
215
+ height: 100vh;
216
+ width: 100vw;
217
+ }
218
+ .panel {
219
+ display: flex;
220
+ flex-direction: column;
221
+ overflow: hidden;
222
+ border-right: 1px solid var(--border-color);
223
+ }
224
+ .panel:last-child {
225
+ border-right: none;
226
+ }
227
+ .panel-header {
228
+ padding: 8px 12px;
229
+ background: var(--bg-tertiary);
230
+ border-bottom: 1px solid var(--border-color);
231
+ font-weight: 600;
232
+ font-size: 12px;
233
+ text-transform: uppercase;
234
+ color: var(--text-secondary);
235
+ }
236
+ .panel-content {
237
+ flex: 1;
238
+ overflow: auto;
239
+ }
240
+ .file-tree {
241
+ padding: 8px;
242
+ }
243
+ .file-item {
244
+ padding: 4px 8px;
245
+ cursor: pointer;
246
+ border-radius: 3px;
247
+ display: flex;
248
+ align-items: center;
249
+ gap: 6px;
250
+ }
251
+ .file-item:hover {
252
+ background: var(--bg-tertiary);
253
+ }
254
+ .file-item.active {
255
+ background: var(--accent-color);
256
+ }
257
+ .file-icon {
258
+ width: 16px;
259
+ height: 16px;
260
+ }
261
+ .diff-line {
262
+ font-family: var(--font-mono);
263
+ font-size: 13px;
264
+ padding: 2px 12px;
265
+ white-space: pre;
266
+ }
267
+ .diff-line.added {
268
+ background: var(--diff-add-bg);
269
+ color: var(--diff-add-text);
270
+ }
271
+ .diff-line.removed {
272
+ background: var(--diff-remove-bg);
273
+ color: var(--diff-remove-text);
274
+ }
275
+ .diff-line::before {
276
+ display: inline-block;
277
+ width: 16px;
278
+ margin-right: 8px;
279
+ text-align: center;
280
+ font-weight: bold;
281
+ }
282
+ .diff-line.added::before {
283
+ content: "+";
284
+ }
285
+ .diff-line.removed::before {
286
+ content: "-";
287
+ }
288
+ .chat-message {
289
+ padding: 8px 12px;
290
+ margin: 4px 8px;
291
+ border-radius: 8px;
292
+ max-width: 85%;
293
+ }
294
+ .chat-message.user {
295
+ background: var(--accent-color);
296
+ color: white;
297
+ margin-left: auto;
298
+ }
299
+ .chat-message.codex {
300
+ background: var(--bg-tertiary);
301
+ color: var(--text-primary);
302
+ }
303
+ .chat-input-container {
304
+ padding: 12px;
305
+ border-top: 1px solid var(--border-color);
306
+ background: var(--bg-secondary);
307
+ }
308
+ .chat-input {
309
+ width: 100%;
310
+ padding: 8px 12px;
311
+ background: var(--bg-primary);
312
+ border: 1px solid var(--border-color);
313
+ border-radius: 4px;
314
+ color: var(--text-primary);
315
+ font-family: var(--font-family);
316
+ resize: none;
317
+ }
318
+ .chat-input:focus {
319
+ outline: none;
320
+ border-color: var(--accent-color);
321
+ }
322
+ ::-webkit-scrollbar {
323
+ width: 10px;
324
+ height: 10px;
325
+ }
326
+ ::-webkit-scrollbar-track {
327
+ background: var(--bg-secondary);
328
+ }
329
+ ::-webkit-scrollbar-thumb {
330
+ background: var(--border-color);
331
+ border-radius: 5px;
332
+ }
333
+ ::-webkit-scrollbar-thumb:hover {
334
+ background: var(--text-secondary);
335
+ }
336
+ .ws-status {
337
+ display: inline-block;
338
+ width: 8px;
339
+ height: 8px;
340
+ border-radius: 50%;
341
+ margin-left: 8px;
342
+ }
343
+ .ws-status.connected {
344
+ background: #0dbc79;
345
+ }
346
+ .ws-status.disconnected {
347
+ background: #cd3131;
348
+ }
349
+ .version-info {
350
+ display: flex;
351
+ align-items: center;
352
+ gap: 8px;
353
+ margin-left: auto;
354
+ }
355
+ .version-number {
356
+ font-size: 11px;
357
+ color: var(--text-secondary);
358
+ font-weight: normal;
359
+ }
360
+ .update-badge {
361
+ font-size: 10px;
362
+ padding: 2px 6px;
363
+ background: #d9534f;
364
+ color: white;
365
+ border-radius: 3px;
366
+ cursor: pointer;
367
+ }
368
+ .update-badge:hover {
369
+ background: #c9302c;
370
+ }
371
+ .terminal-wrapper {
372
+ flex: 1;
373
+ overflow: hidden;
374
+ min-height: 0;
375
+ }
376
+ .left-panel {
377
+ width: 250px;
378
+ flex-shrink: 0;
379
+ }
380
+ .middle-panel {
381
+ flex: 1;
382
+ min-width: 300px;
383
+ }
384
+ .right-panel {
385
+ width: 40%;
386
+ min-width: 300px;
387
+ max-width: 60%;
388
+ }
389
+ .section {
390
+ margin-bottom: 16px;
391
+ }
392
+ .section-title {
393
+ padding: 8px 12px 4px;
394
+ font-size: 11px;
395
+ font-weight: 600;
396
+ color: var(--text-secondary);
397
+ text-transform: uppercase;
398
+ }
399
+ .empty-state {
400
+ padding: 20px;
401
+ text-align: center;
402
+ color: var(--text-secondary);
403
+ font-size: 13px;
404
+ }
405
+ .code-panel {
406
+ font-family: var(--font-mono);
407
+ }
408
+ .code-content {
409
+ padding: 12px;
410
+ white-space: pre-wrap;
411
+ word-break: break-all;
412
+ }
413
+ .diff-container {
414
+ font-family: var(--font-mono);
415
+ font-size: 13px;
416
+ }
417
+ .tab-bar {
418
+ display: flex;
419
+ background: var(--bg-secondary);
420
+ border-bottom: 1px solid var(--border-color);
421
+ overflow-x: auto;
422
+ min-height: 36px;
423
+ }
424
+ .tab {
425
+ display: flex;
426
+ align-items: center;
427
+ gap: 8px;
428
+ padding: 8px 12px;
429
+ background: var(--bg-secondary);
430
+ border-right: 1px solid var(--border-color);
431
+ cursor: pointer;
432
+ min-width: 100px;
433
+ max-width: 200px;
434
+ font-size: 13px;
435
+ color: var(--text-secondary);
436
+ }
437
+ .tab:hover {
438
+ background: var(--bg-tertiary);
439
+ }
440
+ .tab.active {
441
+ background: var(--bg-primary);
442
+ color: var(--text-primary);
443
+ border-bottom: 2px solid var(--accent-color);
444
+ }
445
+ .tab-name {
446
+ flex: 1;
447
+ overflow: hidden;
448
+ text-overflow: ellipsis;
449
+ white-space: nowrap;
450
+ }
451
+ .tab-close {
452
+ background: none;
453
+ border: none;
454
+ color: var(--text-secondary);
455
+ font-size: 16px;
456
+ cursor: pointer;
457
+ padding: 0 4px;
458
+ border-radius: 3px;
459
+ line-height: 1;
460
+ }
461
+ .tab-close:hover {
462
+ background: rgba(255, 255, 255, 0.1);
463
+ color: var(--text-primary);
464
+ }
465
+ .context-menu {
466
+ position: fixed;
467
+ background: var(--bg-tertiary);
468
+ border: 1px solid var(--border-color);
469
+ border-radius: 4px;
470
+ padding: 4px 0;
471
+ min-width: 150px;
472
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
473
+ z-index: 1000;
474
+ }
475
+ .context-menu-item {
476
+ padding: 8px 16px;
477
+ cursor: pointer;
478
+ font-size: 13px;
479
+ color: var(--text-primary);
480
+ }
481
+ .context-menu-item:hover {
482
+ background: var(--accent-color);
483
+ }
484
+ .task-bar {
485
+ display: flex;
486
+ align-items: center;
487
+ justify-content: space-between;
488
+ padding: 8px 12px;
489
+ background: var(--bg-secondary);
490
+ border-bottom: 1px solid var(--border-color);
491
+ min-height: 44px;
492
+ }
493
+ .task-status {
494
+ display: flex;
495
+ align-items: center;
496
+ gap: 8px;
497
+ font-size: 13px;
498
+ font-weight: 500;
499
+ }
500
+ .task-status.idle {
501
+ color: var(--text-secondary);
502
+ }
503
+ .task-status.running {
504
+ color: var(--accent-color);
505
+ }
506
+ .task-status::before {
507
+ content: "";
508
+ display: inline-block;
509
+ width: 8px;
510
+ height: 8px;
511
+ border-radius: 50%;
512
+ }
513
+ .task-status.idle::before {
514
+ background: var(--text-secondary);
515
+ }
516
+ .task-status.running::before {
517
+ background: var(--accent-color);
518
+ animation: pulse 1.5s infinite;
519
+ }
520
+ @keyframes pulse {
521
+ 0%, 100% {
522
+ opacity: 1;
523
+ }
524
+ 50% {
525
+ opacity: 0.5;
526
+ }
527
+ }
528
+ .task-buttons {
529
+ display: flex;
530
+ gap: 8px;
531
+ }
532
+ .task-btn {
533
+ padding: 6px 12px;
534
+ border: none;
535
+ border-radius: 4px;
536
+ font-size: 12px;
537
+ font-weight: 500;
538
+ cursor: pointer;
539
+ transition: background 0.2s;
540
+ }
541
+ .task-btn-start {
542
+ background: var(--accent-color);
543
+ color: white;
544
+ }
545
+ .task-btn-start:hover {
546
+ background: var(--accent-hover);
547
+ }
548
+ .task-btn-rollback {
549
+ background: #d9534f;
550
+ color: white;
551
+ }
552
+ .task-btn-rollback:hover {
553
+ background: #c9302c;
554
+ }
555
+ .task-btn-complete {
556
+ background: #5cb85c;
557
+ color: white;
558
+ }
559
+ .task-btn-complete:hover {
560
+ background: #4cae4c;
561
+ }
562
+ .modal-overlay {
563
+ position: fixed;
564
+ top: 0;
565
+ left: 0;
566
+ right: 0;
567
+ bottom: 0;
568
+ background: rgba(0, 0, 0, 0.6);
569
+ display: flex;
570
+ align-items: center;
571
+ justify-content: center;
572
+ z-index: 2000;
573
+ }
574
+ .modal-content {
575
+ background: var(--bg-secondary);
576
+ border: 1px solid var(--border-color);
577
+ border-radius: 8px;
578
+ padding: 20px;
579
+ min-width: 320px;
580
+ max-width: 400px;
581
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
582
+ }
583
+ .modal-title {
584
+ font-size: 16px;
585
+ font-weight: 600;
586
+ margin-bottom: 12px;
587
+ color: var(--text-primary);
588
+ }
589
+ .modal-body {
590
+ font-size: 14px;
591
+ color: var(--text-secondary);
592
+ margin-bottom: 20px;
593
+ line-height: 1.6;
594
+ }
595
+ .modal-buttons {
596
+ display: flex;
597
+ justify-content: flex-end;
598
+ gap: 12px;
599
+ }
600
+ .modal-btn {
601
+ padding: 8px 16px;
602
+ border: none;
603
+ border-radius: 4px;
604
+ font-size: 13px;
605
+ font-weight: 500;
606
+ cursor: pointer;
607
+ transition: background 0.2s;
608
+ }
609
+ .modal-btn-cancel {
610
+ background: var(--bg-tertiary);
611
+ color: var(--text-primary);
612
+ }
613
+ .modal-btn-cancel:hover {
614
+ background: var(--border-color);
615
+ }
616
+ .modal-btn-danger {
617
+ background: #d9534f;
618
+ color: white;
619
+ }
620
+ .modal-btn-danger:hover {
621
+ background: #c9302c;
622
+ }
623
+ /*! Bundled license information:
624
+
625
+ @xterm/xterm/css/xterm.css:
626
+ (**
627
+ * Copyright (c) 2014 The xterm.js authors. All rights reserved.
628
+ * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
629
+ * https://github.com/chjj/term.js
630
+ * @license MIT
631
+ *
632
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
633
+ * of this software and associated documentation files (the "Software"), to deal
634
+ * in the Software without restriction, including without limitation the rights
635
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
636
+ * copies of the Software, and to permit persons to whom the Software is
637
+ * furnished to do so, subject to the following conditions:
638
+ *
639
+ * The above copyright notice and this permission notice shall be included in
640
+ * all copies or substantial portions of the Software.
641
+ *
642
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
643
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
644
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
645
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
646
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
647
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
648
+ * THE SOFTWARE.
649
+ *
650
+ * Originally forked from (with the author's permission):
651
+ * Fabrice Bellard's javascript vt100 for jslinux:
652
+ * http://bellard.org/jslinux/
653
+ * Copyright (c) 2011 Fabrice Bellard
654
+ * The original design remains. The terminal itself
655
+ * has been extended to include xterm CSI codes, among
656
+ * other features.
657
+ *)
658
+ */