@qiaolei81/copilot-session-viewer 0.3.8 → 0.4.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/README.md +4 -4
- package/dist/client/assets/index-DQ7OTJ0v.css +2 -0
- package/dist/client/assets/index-maVEluks.js +77 -0
- package/dist/client/assets/sessionStore-CW_Vbbsn.js +1 -0
- package/dist/client/index.html +16 -0
- package/dist/server.min.js +95 -71
- package/dist/server.min.js.map +7 -0
- package/package.json +22 -18
- package/public/js/homepage.min.js +0 -35
- package/public/js/session-detail.min.js +0 -678
- package/public/js/telemetry-browser.min.js +0 -1
- package/public/js/time-analyze.min.js +0 -518
- package/public/vendor/marked.umd.min.js +0 -8
- package/public/vendor/purify.min.js +0 -3
- package/public/vendor/vue-virtual-scroller.css +0 -1
- package/public/vendor/vue-virtual-scroller.min.js +0 -2
- package/public/vendor/vue.global.prod.min.js +0 -19
- package/views/index.ejs +0 -820
- package/views/session-vue.ejs +0 -1570
- package/views/telemetry-snippet.ejs +0 -26
- package/views/time-analyze.ejs +0 -783
package/views/index.ejs
DELETED
|
@@ -1,820 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Session Viewer</title>
|
|
7
|
-
<style>
|
|
8
|
-
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
9
|
-
body {
|
|
10
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
11
|
-
background: #0d1117;
|
|
12
|
-
color: #c9d1d9;
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
min-height: 100vh;
|
|
17
|
-
padding: 20px;
|
|
18
|
-
}
|
|
19
|
-
.container {
|
|
20
|
-
max-width: 1400px;
|
|
21
|
-
width: 100%;
|
|
22
|
-
text-align: center;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* Focus indicators for accessibility */
|
|
26
|
-
button:focus-visible,
|
|
27
|
-
input:focus-visible {
|
|
28
|
-
outline: 2px solid #58a6ff;
|
|
29
|
-
outline-offset: 2px;
|
|
30
|
-
box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.2);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
h1 {
|
|
34
|
-
font-size: 48px;
|
|
35
|
-
margin-bottom: 10px;
|
|
36
|
-
color: #58a6ff;
|
|
37
|
-
}
|
|
38
|
-
.subtitle {
|
|
39
|
-
color: #c9d1d9;
|
|
40
|
-
margin-bottom: 40px;
|
|
41
|
-
font-size: 16px;
|
|
42
|
-
}
|
|
43
|
-
.input-group {
|
|
44
|
-
background: #161b22;
|
|
45
|
-
border: 2px solid #30363d;
|
|
46
|
-
border-radius: 12px;
|
|
47
|
-
padding: 8px;
|
|
48
|
-
display: flex;
|
|
49
|
-
gap: 8px;
|
|
50
|
-
transition: border-color 0.2s;
|
|
51
|
-
}
|
|
52
|
-
.input-group:focus-within {
|
|
53
|
-
border-color: #58a6ff;
|
|
54
|
-
}
|
|
55
|
-
.session-input {
|
|
56
|
-
flex: 1;
|
|
57
|
-
padding: 16px 20px;
|
|
58
|
-
min-height: 44px;
|
|
59
|
-
background: transparent;
|
|
60
|
-
border: none;
|
|
61
|
-
color: #c9d1d9;
|
|
62
|
-
font-size: 16px;
|
|
63
|
-
font-family: "SF Mono", Monaco, monospace;
|
|
64
|
-
}
|
|
65
|
-
.session-input:focus {
|
|
66
|
-
outline: none;
|
|
67
|
-
}
|
|
68
|
-
.session-input::placeholder {
|
|
69
|
-
color: #6e7681;
|
|
70
|
-
}
|
|
71
|
-
.view-btn {
|
|
72
|
-
padding: 16px 32px;
|
|
73
|
-
min-height: 44px;
|
|
74
|
-
background: #238636;
|
|
75
|
-
border: none;
|
|
76
|
-
border-radius: 8px;
|
|
77
|
-
color: #fff;
|
|
78
|
-
font-size: 16px;
|
|
79
|
-
font-weight: 600;
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
transition: all 0.2s;
|
|
82
|
-
}
|
|
83
|
-
.view-btn:hover {
|
|
84
|
-
background: #2ea043;
|
|
85
|
-
transform: scale(1.02);
|
|
86
|
-
}
|
|
87
|
-
.view-btn:active {
|
|
88
|
-
transform: scale(0.98);
|
|
89
|
-
}
|
|
90
|
-
.hint {
|
|
91
|
-
margin-top: 20px;
|
|
92
|
-
color: #c9d1d9;
|
|
93
|
-
font-size: 14px;
|
|
94
|
-
}
|
|
95
|
-
.hint-code {
|
|
96
|
-
display: inline-block;
|
|
97
|
-
background: #161b22;
|
|
98
|
-
padding: 4px 8px;
|
|
99
|
-
border-radius: 4px;
|
|
100
|
-
font-family: "SF Mono", Monaco, monospace;
|
|
101
|
-
font-size: 13px;
|
|
102
|
-
color: #58a6ff;
|
|
103
|
-
}
|
|
104
|
-
.recent-sessions {
|
|
105
|
-
margin-top: 40px;
|
|
106
|
-
text-align: left;
|
|
107
|
-
}
|
|
108
|
-
.recent-title {
|
|
109
|
-
color: #c9d1d9;
|
|
110
|
-
font-size: 14px;
|
|
111
|
-
margin-bottom: 12px;
|
|
112
|
-
text-transform: uppercase;
|
|
113
|
-
letter-spacing: 0.5px;
|
|
114
|
-
}
|
|
115
|
-
.recent-list {
|
|
116
|
-
display: grid;
|
|
117
|
-
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
|
|
118
|
-
gap: 16px;
|
|
119
|
-
grid-auto-flow: dense;
|
|
120
|
-
}
|
|
121
|
-
.recent-item {
|
|
122
|
-
background: #161b22;
|
|
123
|
-
border: 1px solid #30363d;
|
|
124
|
-
border-radius: 8px;
|
|
125
|
-
padding: 12px 16px;
|
|
126
|
-
color: #c9d1d9;
|
|
127
|
-
text-decoration: none;
|
|
128
|
-
transition: all 0.2s;
|
|
129
|
-
display: block;
|
|
130
|
-
min-height: 140px;
|
|
131
|
-
height: auto;
|
|
132
|
-
overflow: hidden;
|
|
133
|
-
min-width: 0;
|
|
134
|
-
}
|
|
135
|
-
.recent-item:hover {
|
|
136
|
-
border-color: #58a6ff;
|
|
137
|
-
background: #1c2128;
|
|
138
|
-
transform: translateY(-2px);
|
|
139
|
-
box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
|
|
140
|
-
}
|
|
141
|
-
.session-id {
|
|
142
|
-
display: flex;
|
|
143
|
-
justify-content: space-between;
|
|
144
|
-
align-items: center;
|
|
145
|
-
font-family: "SF Mono", Monaco, monospace;
|
|
146
|
-
font-size: 11px;
|
|
147
|
-
color: #6e7681;
|
|
148
|
-
margin-bottom: 12px;
|
|
149
|
-
letter-spacing: -0.02em;
|
|
150
|
-
opacity: 0.7;
|
|
151
|
-
}
|
|
152
|
-
.session-id-text {
|
|
153
|
-
overflow: hidden;
|
|
154
|
-
text-overflow: ellipsis;
|
|
155
|
-
white-space: nowrap;
|
|
156
|
-
flex: 1;
|
|
157
|
-
min-width: 0;
|
|
158
|
-
}
|
|
159
|
-
.session-badges {
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: center;
|
|
162
|
-
gap: 4px;
|
|
163
|
-
flex-shrink: 0;
|
|
164
|
-
}
|
|
165
|
-
.session-summary {
|
|
166
|
-
color: #e6edf3;
|
|
167
|
-
font-size: 15px;
|
|
168
|
-
font-weight: 500;
|
|
169
|
-
line-height: 1.5;
|
|
170
|
-
margin-bottom: 12px;
|
|
171
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
172
|
-
word-break: break-word;
|
|
173
|
-
overflow-wrap: anywhere;
|
|
174
|
-
display: -webkit-box;
|
|
175
|
-
-webkit-line-clamp: 3;
|
|
176
|
-
-webkit-box-orient: vertical;
|
|
177
|
-
overflow: hidden;
|
|
178
|
-
cursor: help;
|
|
179
|
-
}
|
|
180
|
-
.session-divider {
|
|
181
|
-
height: 1px;
|
|
182
|
-
background: #21262d;
|
|
183
|
-
margin: 12px 0 10px 0;
|
|
184
|
-
}
|
|
185
|
-
.session-info {
|
|
186
|
-
display: flex;
|
|
187
|
-
align-items: center;
|
|
188
|
-
gap: 16px;
|
|
189
|
-
flex-wrap: wrap;
|
|
190
|
-
font-size: 12px;
|
|
191
|
-
font-family: "SF Mono", Monaco, monospace;
|
|
192
|
-
min-width: 0;
|
|
193
|
-
}
|
|
194
|
-
.session-info-item {
|
|
195
|
-
display: flex;
|
|
196
|
-
align-items: center;
|
|
197
|
-
gap: 6px;
|
|
198
|
-
min-width: 0;
|
|
199
|
-
color: #6e7681;
|
|
200
|
-
}
|
|
201
|
-
.session-info-item svg {
|
|
202
|
-
flex-shrink: 0;
|
|
203
|
-
width: 14px;
|
|
204
|
-
height: 14px;
|
|
205
|
-
opacity: 0.6;
|
|
206
|
-
}
|
|
207
|
-
.session-info-value {
|
|
208
|
-
color: #8b949e;
|
|
209
|
-
word-break: break-word;
|
|
210
|
-
overflow-wrap: anywhere;
|
|
211
|
-
}
|
|
212
|
-
.session-info-item.workspace {
|
|
213
|
-
flex-basis: 100%;
|
|
214
|
-
min-width: 0;
|
|
215
|
-
}
|
|
216
|
-
.session-info-item.workspace .session-info-value {
|
|
217
|
-
font-weight: 500;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/* Session tags */
|
|
221
|
-
.session-badges-tags {
|
|
222
|
-
display: flex;
|
|
223
|
-
flex-wrap: wrap;
|
|
224
|
-
align-items: center;
|
|
225
|
-
justify-content: flex-start;
|
|
226
|
-
gap: 4px;
|
|
227
|
-
margin-top: 4px;
|
|
228
|
-
}
|
|
229
|
-
.session-badges-tags .session-badges {
|
|
230
|
-
display: flex;
|
|
231
|
-
flex-wrap: wrap;
|
|
232
|
-
gap: 4px;
|
|
233
|
-
}
|
|
234
|
-
.session-badges-tags .session-tags {
|
|
235
|
-
display: flex;
|
|
236
|
-
flex-wrap: wrap;
|
|
237
|
-
gap: 4px;
|
|
238
|
-
margin-top: 0;
|
|
239
|
-
padding-top: 0;
|
|
240
|
-
border-top: none;
|
|
241
|
-
}
|
|
242
|
-
.session-tags {
|
|
243
|
-
display: flex;
|
|
244
|
-
flex-wrap: wrap;
|
|
245
|
-
gap: 4px;
|
|
246
|
-
margin-top: 8px;
|
|
247
|
-
padding-top: 8px;
|
|
248
|
-
border-top: 1px solid #21262d;
|
|
249
|
-
}
|
|
250
|
-
.session-tag {
|
|
251
|
-
display: inline-block;
|
|
252
|
-
padding: 3px 8px;
|
|
253
|
-
border-radius: 10px;
|
|
254
|
-
font-size: 11px;
|
|
255
|
-
font-weight: 500;
|
|
256
|
-
color: #fff;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.status-badge {
|
|
260
|
-
display: inline-block;
|
|
261
|
-
font-size: 14px;
|
|
262
|
-
vertical-align: middle;
|
|
263
|
-
opacity: 0.8;
|
|
264
|
-
transition: opacity 0.2s;
|
|
265
|
-
}
|
|
266
|
-
.status-badge:hover {
|
|
267
|
-
opacity: 1;
|
|
268
|
-
}
|
|
269
|
-
.status-badge.model {
|
|
270
|
-
padding: 2px 8px;
|
|
271
|
-
border-radius: 12px;
|
|
272
|
-
font-size: 11px;
|
|
273
|
-
font-weight: 600;
|
|
274
|
-
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
|
275
|
-
}
|
|
276
|
-
/* Claude - Anthropic orange/brown */
|
|
277
|
-
.status-badge.model-claude {
|
|
278
|
-
background: rgba(204, 120, 92, 0.15);
|
|
279
|
-
color: #e8956f;
|
|
280
|
-
}
|
|
281
|
-
/* GPT - OpenAI green */
|
|
282
|
-
.status-badge.model-gpt {
|
|
283
|
-
background: rgba(16, 163, 127, 0.15);
|
|
284
|
-
color: #1ec99d;
|
|
285
|
-
}
|
|
286
|
-
/* Gemini - Google blue */
|
|
287
|
-
.status-badge.model-gemini {
|
|
288
|
-
background: rgba(66, 133, 244, 0.15);
|
|
289
|
-
color: #5e9aff;
|
|
290
|
-
}
|
|
291
|
-
/* Fallback for other models */
|
|
292
|
-
.status-badge.model-other {
|
|
293
|
-
background: rgba(139, 92, 246, 0.15);
|
|
294
|
-
color: #a78bfa;
|
|
295
|
-
}
|
|
296
|
-
.status-badge.version {
|
|
297
|
-
padding: 2px 8px;
|
|
298
|
-
background: rgba(234, 179, 8, 0.15);
|
|
299
|
-
color: #fbbf24;
|
|
300
|
-
border-radius: 12px;
|
|
301
|
-
font-size: 11px;
|
|
302
|
-
font-weight: 600;
|
|
303
|
-
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
|
304
|
-
}
|
|
305
|
-
.status-badge.wip {
|
|
306
|
-
padding: 2px 8px;
|
|
307
|
-
border-radius: 12px;
|
|
308
|
-
font-size: 11px;
|
|
309
|
-
font-weight: 600;
|
|
310
|
-
background: rgba(210, 153, 34, 0.2);
|
|
311
|
-
color: #d29922;
|
|
312
|
-
border: 1px solid rgba(210, 153, 34, 0.4);
|
|
313
|
-
}
|
|
314
|
-
.recent-item-wip {
|
|
315
|
-
border-color: #d29922;
|
|
316
|
-
border-left: 3px solid #d29922;
|
|
317
|
-
}
|
|
318
|
-
.recent-item-wip:hover {
|
|
319
|
-
border-color: #e8b634;
|
|
320
|
-
border-left-color: #e8b634;
|
|
321
|
-
}
|
|
322
|
-
/* Source badges */
|
|
323
|
-
.status-badge.source-copilot {
|
|
324
|
-
padding: 2px 8px;
|
|
325
|
-
background: rgba(88, 166, 255, 0.15);
|
|
326
|
-
color: #58a6ff;
|
|
327
|
-
border-radius: 12px;
|
|
328
|
-
font-size: 11px;
|
|
329
|
-
font-weight: 600;
|
|
330
|
-
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
|
331
|
-
}
|
|
332
|
-
.status-badge.source-claude {
|
|
333
|
-
padding: 2px 8px;
|
|
334
|
-
background: rgba(204, 120, 92, 0.15);
|
|
335
|
-
color: #e8956f;
|
|
336
|
-
border-radius: 12px;
|
|
337
|
-
font-size: 11px;
|
|
338
|
-
font-weight: 600;
|
|
339
|
-
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
|
340
|
-
}
|
|
341
|
-
.status-badge.source-pi-mono {
|
|
342
|
-
padding: 2px 8px;
|
|
343
|
-
background: rgba(138, 102, 204, 0.15);
|
|
344
|
-
color: #a78bdb;
|
|
345
|
-
border-radius: 12px;
|
|
346
|
-
font-size: 11px;
|
|
347
|
-
font-weight: 600;
|
|
348
|
-
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
|
349
|
-
}
|
|
350
|
-
.status-badge.source-vscode {
|
|
351
|
-
padding: 2px 8px;
|
|
352
|
-
background: rgba(0, 122, 204, 0.15);
|
|
353
|
-
color: #4fc3f7;
|
|
354
|
-
border-radius: 12px;
|
|
355
|
-
font-size: 11px;
|
|
356
|
-
font-weight: 600;
|
|
357
|
-
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
|
358
|
-
}
|
|
359
|
-
.status-badge.source-modernize {
|
|
360
|
-
padding: 2px 8px;
|
|
361
|
-
background: rgba(76, 175, 80, 0.15);
|
|
362
|
-
color: #66bb6a;
|
|
363
|
-
border-radius: 12px;
|
|
364
|
-
font-size: 11px;
|
|
365
|
-
font-weight: 600;
|
|
366
|
-
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/* Filter pills */
|
|
370
|
-
.filter-pills {
|
|
371
|
-
display: flex;
|
|
372
|
-
gap: 8px;
|
|
373
|
-
margin-bottom: 16px;
|
|
374
|
-
flex-wrap: wrap;
|
|
375
|
-
}
|
|
376
|
-
.filter-pill {
|
|
377
|
-
padding: 6px 16px;
|
|
378
|
-
background: #21262d;
|
|
379
|
-
border: 1px solid #30363d;
|
|
380
|
-
border-radius: 20px;
|
|
381
|
-
color: #8b949e;
|
|
382
|
-
font-size: 13px;
|
|
383
|
-
font-weight: 500;
|
|
384
|
-
cursor: pointer;
|
|
385
|
-
transition: all 0.2s;
|
|
386
|
-
min-height: 32px;
|
|
387
|
-
}
|
|
388
|
-
.filter-pill:hover {
|
|
389
|
-
background: #30363d;
|
|
390
|
-
border-color: #58a6ff;
|
|
391
|
-
color: #c9d1d9;
|
|
392
|
-
}
|
|
393
|
-
.filter-pill.active {
|
|
394
|
-
background: #58a6ff;
|
|
395
|
-
border-color: #58a6ff;
|
|
396
|
-
color: #fff;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
/* Sessions header with import link */
|
|
400
|
-
.sessions-header {
|
|
401
|
-
display: flex;
|
|
402
|
-
align-items: baseline;
|
|
403
|
-
gap: 12px;
|
|
404
|
-
margin-bottom: 12px;
|
|
405
|
-
}
|
|
406
|
-
.import-link {
|
|
407
|
-
color: #58a6ff;
|
|
408
|
-
font-size: 14px;
|
|
409
|
-
text-decoration: none;
|
|
410
|
-
cursor: pointer;
|
|
411
|
-
transition: color 0.2s;
|
|
412
|
-
}
|
|
413
|
-
.import-link:hover {
|
|
414
|
-
color: #79c0ff;
|
|
415
|
-
text-decoration: underline;
|
|
416
|
-
}
|
|
417
|
-
.import-status {
|
|
418
|
-
margin-bottom: 12px;
|
|
419
|
-
padding: 10px 12px;
|
|
420
|
-
border-radius: 6px;
|
|
421
|
-
font-size: 13px;
|
|
422
|
-
display: none;
|
|
423
|
-
}
|
|
424
|
-
.import-status.success {
|
|
425
|
-
display: block;
|
|
426
|
-
background: rgba(35, 134, 54, 0.15);
|
|
427
|
-
border: 1px solid #238636;
|
|
428
|
-
color: #3fb950;
|
|
429
|
-
}
|
|
430
|
-
.import-status.error {
|
|
431
|
-
display: block;
|
|
432
|
-
background: rgba(248, 81, 73, 0.15);
|
|
433
|
-
border: 1px solid #f85149;
|
|
434
|
-
color: #ff7b72;
|
|
435
|
-
}
|
|
436
|
-
.import-status.loading {
|
|
437
|
-
display: block;
|
|
438
|
-
background: rgba(88, 166, 255, 0.15);
|
|
439
|
-
border: 1px solid #58a6ff;
|
|
440
|
-
color: #58a6ff;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
/* Responsive adjustments */
|
|
444
|
-
@media (max-width: 768px) {
|
|
445
|
-
.recent-list {
|
|
446
|
-
grid-template-columns: 1fr;
|
|
447
|
-
}
|
|
448
|
-
.container {
|
|
449
|
-
max-width: 100%;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
@media (min-width: 769px) and (max-width: 1200px) {
|
|
454
|
-
.recent-list {
|
|
455
|
-
grid-template-columns: repeat(2, 1fr);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/* Load more button and loading indicator */
|
|
460
|
-
.load-more-btn {
|
|
461
|
-
padding: 12px 32px;
|
|
462
|
-
background: #21262d;
|
|
463
|
-
border: 1px solid #30363d;
|
|
464
|
-
border-radius: 8px;
|
|
465
|
-
color: #c9d1d9;
|
|
466
|
-
font-size: 16px;
|
|
467
|
-
font-weight: 500;
|
|
468
|
-
cursor: pointer;
|
|
469
|
-
transition: all 0.2s;
|
|
470
|
-
min-height: 44px;
|
|
471
|
-
}
|
|
472
|
-
.load-more-btn:hover {
|
|
473
|
-
background: #30363d;
|
|
474
|
-
border-color: #58a6ff;
|
|
475
|
-
color: #58a6ff;
|
|
476
|
-
transform: translateY(-1px);
|
|
477
|
-
}
|
|
478
|
-
.load-more-btn:active {
|
|
479
|
-
transform: translateY(0);
|
|
480
|
-
}
|
|
481
|
-
.loading-spinner {
|
|
482
|
-
color: #58a6ff;
|
|
483
|
-
font-size: 16px;
|
|
484
|
-
display: flex;
|
|
485
|
-
align-items: center;
|
|
486
|
-
justify-content: center;
|
|
487
|
-
gap: 8px;
|
|
488
|
-
}
|
|
489
|
-
.loading-spinner::before {
|
|
490
|
-
content: '⏳';
|
|
491
|
-
animation: spin 1s linear infinite;
|
|
492
|
-
}
|
|
493
|
-
@keyframes spin {
|
|
494
|
-
from { transform: rotate(0deg); }
|
|
495
|
-
to { transform: rotate(360deg); }
|
|
496
|
-
}
|
|
497
|
-
</style>
|
|
498
|
-
|
|
499
|
-
<%- include('telemetry-snippet') %>
|
|
500
|
-
</head>
|
|
501
|
-
<body>
|
|
502
|
-
<div class="container">
|
|
503
|
-
<h1>🤖 Session Viewer</h1>
|
|
504
|
-
<p class="subtitle">View session logs from Copilot CLI, Copilot Chat, Claude Code, and Pi-Mono</p>
|
|
505
|
-
|
|
506
|
-
<form id="sessionForm">
|
|
507
|
-
<div class="input-group">
|
|
508
|
-
<input
|
|
509
|
-
type="text"
|
|
510
|
-
class="session-input"
|
|
511
|
-
id="sessionInput"
|
|
512
|
-
placeholder="Enter Session ID..."
|
|
513
|
-
autofocus
|
|
514
|
-
required
|
|
515
|
-
>
|
|
516
|
-
<button type="submit" class="view-btn">View</button>
|
|
517
|
-
</div>
|
|
518
|
-
</form>
|
|
519
|
-
|
|
520
|
-
<% if (sessions && sessions.length > 0) { %>
|
|
521
|
-
<div class="recent-sessions">
|
|
522
|
-
<div class="sessions-header">
|
|
523
|
-
<div class="recent-title">
|
|
524
|
-
Sessions
|
|
525
|
-
</div>
|
|
526
|
-
<a class="import-link" id="importLink">Import session from zip</a>
|
|
527
|
-
</div>
|
|
528
|
-
<div class="filter-pills">
|
|
529
|
-
<button class="filter-pill active" data-source="copilot">Copilot CLI</button>
|
|
530
|
-
<button class="filter-pill" data-source="vscode">Copilot Chat</button>
|
|
531
|
-
<button class="filter-pill" data-source="claude">Claude</button>
|
|
532
|
-
<button class="filter-pill" data-source="modernize">Modernize CLI</button>
|
|
533
|
-
<button class="filter-pill" data-source="pi-mono">Pi</button>
|
|
534
|
-
</div>
|
|
535
|
-
<p class="hint source-hint" id="sourceHint"></p>
|
|
536
|
-
<input
|
|
537
|
-
type="file"
|
|
538
|
-
id="fileInput"
|
|
539
|
-
name="sessionZip"
|
|
540
|
-
accept=".zip"
|
|
541
|
-
style="display: none;"
|
|
542
|
-
>
|
|
543
|
-
<div id="importStatus" class="import-status"></div>
|
|
544
|
-
<div id="sessions-container"></div>
|
|
545
|
-
|
|
546
|
-
<!-- Loading indicator for infinite scroll -->
|
|
547
|
-
<div id="loading-indicator" style="text-align: center; margin-top: 20px; display: none;">
|
|
548
|
-
<div class="loading-spinner">Loading more sessions...</div>
|
|
549
|
-
</div>
|
|
550
|
-
</div>
|
|
551
|
-
<% } %>
|
|
552
|
-
</div>
|
|
553
|
-
|
|
554
|
-
<script>
|
|
555
|
-
window.__PAGE_DATA = {
|
|
556
|
-
sessions: <%- JSON.stringify(sessions || []) %>,
|
|
557
|
-
totalSessions: <%= totalSessions || 0 %>,
|
|
558
|
-
hasMore: <%= hasMore || false %>,
|
|
559
|
-
sourceHints: <%- sourceHints || '{}' %>
|
|
560
|
-
};
|
|
561
|
-
</script>
|
|
562
|
-
<script src="/public/js/homepage.min.js"></script>
|
|
563
|
-
|
|
564
|
-
<style>
|
|
565
|
-
.date-group-header {
|
|
566
|
-
color: #58a6ff;
|
|
567
|
-
font-size: 18px;
|
|
568
|
-
font-weight: 600;
|
|
569
|
-
margin-top: 32px;
|
|
570
|
-
margin-bottom: 16px;
|
|
571
|
-
padding-bottom: 8px;
|
|
572
|
-
}
|
|
573
|
-
.date-group-header:first-child {
|
|
574
|
-
margin-top: 0;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
/* Custom summary tooltip */
|
|
578
|
-
.summary-tooltip {
|
|
579
|
-
display: none;
|
|
580
|
-
position: fixed;
|
|
581
|
-
z-index: 9999;
|
|
582
|
-
background: #1c2128;
|
|
583
|
-
border: 1px solid #30363d;
|
|
584
|
-
border-radius: 8px;
|
|
585
|
-
padding: 12px 16px;
|
|
586
|
-
max-width: 600px;
|
|
587
|
-
width: max-content;
|
|
588
|
-
max-height: 400px;
|
|
589
|
-
overflow-y: auto;
|
|
590
|
-
font-size: 13px;
|
|
591
|
-
line-height: 1.6;
|
|
592
|
-
color: #c9d1d9;
|
|
593
|
-
white-space: normal;
|
|
594
|
-
word-break: break-word;
|
|
595
|
-
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
|
|
596
|
-
pointer-events: none;
|
|
597
|
-
}
|
|
598
|
-
.summary-tooltip.visible {
|
|
599
|
-
display: block;
|
|
600
|
-
pointer-events: auto;
|
|
601
|
-
}
|
|
602
|
-
/* Markdown prose styles inside tooltip */
|
|
603
|
-
.summary-tooltip h1, .summary-tooltip h2, .summary-tooltip h3,
|
|
604
|
-
.summary-tooltip h4, .summary-tooltip h5, .summary-tooltip h6 {
|
|
605
|
-
color: #e6edf3; margin: 8px 0 4px; font-weight: 600;
|
|
606
|
-
}
|
|
607
|
-
.summary-tooltip h1 { font-size: 15px; }
|
|
608
|
-
.summary-tooltip h2 { font-size: 14px; }
|
|
609
|
-
.summary-tooltip h3, .summary-tooltip h4 { font-size: 13px; }
|
|
610
|
-
.summary-tooltip p { margin: 4px 0; }
|
|
611
|
-
.summary-tooltip ul, .summary-tooltip ol { margin: 4px 0; padding-left: 18px; }
|
|
612
|
-
.summary-tooltip li { margin: 2px 0; }
|
|
613
|
-
.summary-tooltip code {
|
|
614
|
-
background: #2d333b; border-radius: 3px;
|
|
615
|
-
padding: 1px 4px; font-size: 12px; font-family: monospace;
|
|
616
|
-
}
|
|
617
|
-
.summary-tooltip pre {
|
|
618
|
-
background: #2d333b; border-radius: 6px;
|
|
619
|
-
padding: 8px 10px; overflow-x: auto; margin: 6px 0;
|
|
620
|
-
}
|
|
621
|
-
.summary-tooltip pre code { background: none; padding: 0; }
|
|
622
|
-
.summary-tooltip strong { color: #e6edf3; }
|
|
623
|
-
.summary-tooltip hr { border-color: #30363d; margin: 8px 0; }
|
|
624
|
-
|
|
625
|
-
/* Hide hover tooltip on touch devices */
|
|
626
|
-
@media (hover: none) {
|
|
627
|
-
.summary-tooltip { display: none !important; }
|
|
628
|
-
}
|
|
629
|
-
/* Bottom sheet for mobile long-press */
|
|
630
|
-
.bottom-sheet-overlay {
|
|
631
|
-
display: none;
|
|
632
|
-
position: fixed;
|
|
633
|
-
inset: 0;
|
|
634
|
-
background: rgba(0,0,0,0.5);
|
|
635
|
-
z-index: 1000;
|
|
636
|
-
touch-action: none;
|
|
637
|
-
}
|
|
638
|
-
.bottom-sheet-overlay.visible { display: block; }
|
|
639
|
-
.bottom-sheet {
|
|
640
|
-
position: fixed;
|
|
641
|
-
bottom: 0;
|
|
642
|
-
left: 0;
|
|
643
|
-
right: 0;
|
|
644
|
-
background: #161b22;
|
|
645
|
-
border-top: 1px solid #30363d;
|
|
646
|
-
border-radius: 16px 16px 0 0;
|
|
647
|
-
padding: 0 16px max(env(safe-area-inset-bottom, 0px), 24px);
|
|
648
|
-
max-height: 70vh;
|
|
649
|
-
overflow-y: auto;
|
|
650
|
-
z-index: 1001;
|
|
651
|
-
transform: translateY(100%);
|
|
652
|
-
transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
|
|
653
|
-
}
|
|
654
|
-
.bottom-sheet.visible { transform: translateY(0); }
|
|
655
|
-
.bottom-sheet-handle {
|
|
656
|
-
width: 36px;
|
|
657
|
-
height: 4px;
|
|
658
|
-
background: #444c56;
|
|
659
|
-
border-radius: 2px;
|
|
660
|
-
margin: 12px auto 16px;
|
|
661
|
-
}
|
|
662
|
-
.bottom-sheet-content {
|
|
663
|
-
font-size: 14px;
|
|
664
|
-
line-height: 1.6;
|
|
665
|
-
color: #c9d1d9;
|
|
666
|
-
}
|
|
667
|
-
.bottom-sheet-content h1, .bottom-sheet-content h2, .bottom-sheet-content h3 { color: #e6edf3; margin: 12px 0 6px; }
|
|
668
|
-
.bottom-sheet-content h1 { font-size: 16px; }
|
|
669
|
-
.bottom-sheet-content h2 { font-size: 15px; }
|
|
670
|
-
.bottom-sheet-content h3 { font-size: 14px; }
|
|
671
|
-
.bottom-sheet-content p { margin: 6px 0; }
|
|
672
|
-
.bottom-sheet-content ul, .bottom-sheet-content ol { margin: 6px 0; padding-left: 20px; }
|
|
673
|
-
.bottom-sheet-content li { margin: 3px 0; }
|
|
674
|
-
.bottom-sheet-content code { background: #0d1117; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
|
|
675
|
-
.bottom-sheet-content pre { background: #0d1117; padding: 10px; border-radius: 6px; overflow-x: auto; }
|
|
676
|
-
.bottom-sheet-content pre code { background: none; padding: 0; }
|
|
677
|
-
.bottom-sheet-content strong { color: #e6edf3; }
|
|
678
|
-
.bottom-sheet-content hr { border-color: #30363d; margin: 10px 0; }
|
|
679
|
-
</style>
|
|
680
|
-
|
|
681
|
-
<script src="https://cdn.jsdelivr.net/npm/marked@9/marked.min.js"></script>
|
|
682
|
-
<div id="summary-tooltip" class="summary-tooltip"></div>
|
|
683
|
-
|
|
684
|
-
<script>
|
|
685
|
-
const tooltip = document.getElementById('summary-tooltip');
|
|
686
|
-
let tooltipTarget = null;
|
|
687
|
-
let hideTimer = null;
|
|
688
|
-
let showTimer = null;
|
|
689
|
-
let pendingEl = null;
|
|
690
|
-
let pendingEvent = null;
|
|
691
|
-
|
|
692
|
-
function showTooltip(el, e) {
|
|
693
|
-
clearTimeout(hideTimer);
|
|
694
|
-
tooltipTarget = el;
|
|
695
|
-
if (!el.dataset.tooltipText) {
|
|
696
|
-
el.dataset.tooltipText = el.getAttribute('title');
|
|
697
|
-
el.removeAttribute('title');
|
|
698
|
-
}
|
|
699
|
-
const md = el.dataset.tooltipText || '';
|
|
700
|
-
tooltip.innerHTML = (typeof marked !== 'undefined')
|
|
701
|
-
? marked.parse(md, { breaks: true })
|
|
702
|
-
: md.replace(/</g, '<').replace(/\n/g, '<br>');
|
|
703
|
-
tooltip.classList.add('visible');
|
|
704
|
-
positionTooltip(e);
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
function scheduleShow(el, e) {
|
|
708
|
-
clearTimeout(showTimer);
|
|
709
|
-
pendingEl = el;
|
|
710
|
-
pendingEvent = e;
|
|
711
|
-
showTimer = setTimeout(() => {
|
|
712
|
-
if (pendingEl) showTooltip(pendingEl, pendingEvent);
|
|
713
|
-
}, 500);
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
function cancelShow() {
|
|
717
|
-
clearTimeout(showTimer);
|
|
718
|
-
pendingEl = null;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
function scheduleHide() {
|
|
722
|
-
cancelShow();
|
|
723
|
-
hideTimer = setTimeout(() => {
|
|
724
|
-
tooltipTarget = null;
|
|
725
|
-
tooltip.classList.remove('visible');
|
|
726
|
-
}, 120);
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
document.addEventListener('mouseover', e => {
|
|
730
|
-
const el = e.target.closest('.session-summary');
|
|
731
|
-
if (el) { clearTimeout(hideTimer); scheduleShow(el, e); return; }
|
|
732
|
-
if (e.target.closest('#summary-tooltip')) { clearTimeout(hideTimer); cancelShow(); return; }
|
|
733
|
-
});
|
|
734
|
-
|
|
735
|
-
document.addEventListener('mousemove', e => {
|
|
736
|
-
if (pendingEl) { pendingEvent = e; }
|
|
737
|
-
if (!tooltipTarget) return;
|
|
738
|
-
if (e.target.closest('#summary-tooltip')) return;
|
|
739
|
-
positionTooltip(e);
|
|
740
|
-
});
|
|
741
|
-
|
|
742
|
-
document.addEventListener('mouseout', e => {
|
|
743
|
-
const toEl = e.relatedTarget;
|
|
744
|
-
if (toEl && (toEl.closest('.session-summary') || toEl.closest('#summary-tooltip'))) return;
|
|
745
|
-
scheduleHide();
|
|
746
|
-
});
|
|
747
|
-
|
|
748
|
-
tooltip.addEventListener('mouseleave', () => scheduleHide());
|
|
749
|
-
|
|
750
|
-
function positionTooltip(e) {
|
|
751
|
-
const pad = 14;
|
|
752
|
-
const tw = tooltip.offsetWidth;
|
|
753
|
-
const th = tooltip.offsetHeight;
|
|
754
|
-
let x = e.clientX + pad;
|
|
755
|
-
let y = e.clientY + pad;
|
|
756
|
-
if (x + tw > window.innerWidth - 8) x = e.clientX - tw - pad;
|
|
757
|
-
if (y + th > window.innerHeight - 8) y = e.clientY - th - pad;
|
|
758
|
-
tooltip.style.left = x + 'px';
|
|
759
|
-
tooltip.style.top = y + 'px';
|
|
760
|
-
}
|
|
761
|
-
</script>
|
|
762
|
-
|
|
763
|
-
<!-- Bottom sheet for mobile long-press summary -->
|
|
764
|
-
<div id="sheet-overlay" class="bottom-sheet-overlay">
|
|
765
|
-
<div id="bottom-sheet" class="bottom-sheet">
|
|
766
|
-
<div class="bottom-sheet-handle"></div>
|
|
767
|
-
<div id="sheet-content" class="bottom-sheet-content"></div>
|
|
768
|
-
</div>
|
|
769
|
-
</div>
|
|
770
|
-
|
|
771
|
-
<script>
|
|
772
|
-
const sheetOverlay = document.getElementById('sheet-overlay');
|
|
773
|
-
const bottomSheet = document.getElementById('bottom-sheet');
|
|
774
|
-
const sheetContent = document.getElementById('sheet-content');
|
|
775
|
-
|
|
776
|
-
function openSheet(md) {
|
|
777
|
-
sheetContent.innerHTML = (typeof marked !== 'undefined')
|
|
778
|
-
? marked.parse(md, { breaks: true })
|
|
779
|
-
: md.replace(/</g, '<').replace(/\n/g, '<br>');
|
|
780
|
-
sheetOverlay.classList.add('visible');
|
|
781
|
-
requestAnimationFrame(() => bottomSheet.classList.add('visible'));
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
function closeSheet() {
|
|
785
|
-
bottomSheet.classList.remove('visible');
|
|
786
|
-
setTimeout(() => sheetOverlay.classList.remove('visible'), 280);
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
sheetOverlay.addEventListener('click', e => {
|
|
790
|
-
if (!bottomSheet.contains(e.target)) closeSheet();
|
|
791
|
-
});
|
|
792
|
-
|
|
793
|
-
// Long-press detection (500ms)
|
|
794
|
-
let lpTimer = null;
|
|
795
|
-
let lpMoved = false;
|
|
796
|
-
|
|
797
|
-
document.addEventListener('touchstart', e => {
|
|
798
|
-
const el = e.target.closest('.session-summary');
|
|
799
|
-
if (!el) return;
|
|
800
|
-
lpMoved = false;
|
|
801
|
-
const md = el.dataset.tooltipText || el.getAttribute('title') || '';
|
|
802
|
-
if (!md) return;
|
|
803
|
-
lpTimer = setTimeout(() => {
|
|
804
|
-
if (!lpMoved) {
|
|
805
|
-
e.preventDefault();
|
|
806
|
-
openSheet(md);
|
|
807
|
-
}
|
|
808
|
-
}, 500);
|
|
809
|
-
}, { passive: false });
|
|
810
|
-
|
|
811
|
-
document.addEventListener('touchmove', () => {
|
|
812
|
-
lpMoved = true;
|
|
813
|
-
clearTimeout(lpTimer);
|
|
814
|
-
}, { passive: true });
|
|
815
|
-
|
|
816
|
-
document.addEventListener('touchend', () => clearTimeout(lpTimer), { passive: true });
|
|
817
|
-
document.addEventListener('touchcancel', () => clearTimeout(lpTimer), { passive: true });
|
|
818
|
-
</script>
|
|
819
|
-
</body>
|
|
820
|
-
</html>
|