@eyeglass/inspector 0.1.2 → 0.1.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.
- package/dist/index.js +1362 -32
- package/dist/inspector.d.ts +15 -0
- package/dist/inspector.js +614 -11
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,33 +1,1363 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
document.addEventListener('DOMContentLoaded', initInspector);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
initInspector();
|
|
32
|
-
}
|
|
1
|
+
var R=new Set([0,1,11,14,15]);function F(s){let t=Object.keys(s).find(e=>e.startsWith("__reactFiber$")||e.startsWith("__reactInternalInstance$"));return t?s[t]:null}function H(s){if(!R.has(s.tag)||typeof s.type!="function")return!1;let r=s.type.displayName||s.type.name||"";return!(!r||r.startsWith("Context")||r.endsWith("Provider")||r==="StrictMode")}function C(s){return s.type.displayName||s.type.name||void 0}function B(s){let r=s;for(;r;){if(H(r))return r;r=r.return}return null}function M(s){let r=[],t=s;for(;t;){if(H(t)){let e=C(t);e&&r.push(e)}t=t.return}return r}function T(s){if(!s)return;let r={};for(let[t,e]of Object.entries(s)){if(t==="children")continue;let i=typeof e;(i==="string"||i==="number"||i==="boolean"||e===null)&&(r[t]=e)}return Object.keys(r).length>0?r:void 0}function _(s){let r=s.__vue__;if(r)return{name:"vue",componentName:r.$options?.name||r.$options?._componentTag};let e=Object.keys(s).find(i=>i.startsWith("__vue"));if(e){let i=s[e];if(i){let n=i,a,o;n?.type?.name?a=n.type.name:n?.type?.__name?a=n.type.__name:n?.component?.type?.name?a=n.component.type.name:n?.component?.type?.__name&&(a=n.component.type.__name);let l=n?.props||n?.component?.props;l&&(o=T(l));let d;return n?.type?.__file?d=n.type.__file:n?.component?.type?.__file&&(d=n.component.type.__file),{name:"vue",componentName:a,filePath:d,props:o}}return{name:"vue"}}return null}function j(s){let t=Object.keys(s).find(e=>e.startsWith("__svelte"));if(t){let e=s[t],i;if(e?.constructor?.name&&e.constructor.name!=="Object"&&(i=e.constructor.name),!i&&e?.$$?.ctx){let n=e.$$.ctx;n?.constructor?.name&&n.constructor.name!=="Object"&&(i=n.constructor.name)}return{name:"svelte",componentName:i}}return null}function I(s){let r=F(s);if(r){let i=B(r);if(i){let a=C(i),o=i._debugSource,l=M(i);return{name:"react",componentName:a,filePath:o?.fileName,lineNumber:o?.lineNumber,props:T(i.memoizedProps),ancestry:l.length>0?l:void 0}}let n=M(r);return{name:"react",ancestry:n.length>0?n:void 0}}let t=_(s);if(t)return t;let e=j(s);return e||{name:"vanilla"}}function O(s){let r=s.getAttribute("aria-label"),t=s.getAttribute("aria-describedby"),e=s.getAttribute("aria-disabled"),i=s.getAttribute("aria-expanded"),n=s.getAttribute("aria-checked"),a=s.getAttribute("aria-hidden"),o=null;t&&(o=document.getElementById(t)?.textContent?.trim()||null);let l=e==="true"||s.disabled||s.hasAttribute("disabled");return{label:r||s.getAttribute("title")||null,description:o,disabled:l,expanded:i?i==="true":void 0,checked:n==="true"?!0:n==="false"?!1:n==="mixed"?"mixed":void 0,hidden:a==="true"||s.hidden||!1}}function U(s){let r=s.getBoundingClientRect();return{x:Math.round(r.x),y:Math.round(r.y),width:Math.round(r.width),height:Math.round(r.height),visible:r.width>0&&r.height>0}}function Y(s){let r=getComputedStyle(s);return{display:r.display,position:r.position,flexDirection:r.flexDirection!=="row"?r.flexDirection:void 0,gridTemplate:r.display==="grid"?`${r.gridTemplateColumns} / ${r.gridTemplateRows}`:void 0,padding:r.padding,margin:r.margin,color:r.color,backgroundColor:r.backgroundColor,fontFamily:r.fontFamily,zIndex:r.zIndex}}function W(s){let r=s.getAttribute("role");if(r)return r;let t=s.tagName.toLowerCase();return{a:"link",button:"button",input:s.type||"textbox",select:"combobox",textarea:"textbox",img:"img",nav:"navigation",main:"main",header:"banner",footer:"contentinfo",aside:"complementary",article:"article",section:"region",form:"form",ul:"list",ol:"list",li:"listitem",table:"table",tr:"row",td:"cell",th:"columnheader",dialog:"dialog",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading"}[t]||"generic"}function J(s){let r=s.getAttribute("aria-label");if(r)return r;let t=s.getAttribute("aria-labelledby");if(t){let i=document.getElementById(t);if(i)return i.textContent?.trim()||""}if(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"){let i=s.getAttribute("id");if(i){let n=document.querySelector(`label[for="${i}"]`);if(n)return n.textContent?.trim()||""}}if(s.tagName==="IMG")return s.alt||"";let e=s.textContent?.trim()||"";return e.length>50?e.slice(0,50)+"...":e}function K(s){let r={},t=s.getAttribute("id");t&&(r.id=t);let e=s.getAttribute("class");e?.trim()&&(r.className=e.trim());let i={};for(let n=0;n<s.attributes.length;n++){let a=s.attributes[n];a.name.startsWith("data-")&&(i[a.name]=a.value)}return Object.keys(i).length>0&&(r.dataAttributes=i),r}function x(s){let r=K(s);return{role:W(s),name:J(s),tagName:s.tagName.toLowerCase(),...r,framework:I(s),a11y:O(s),geometry:U(s),styles:Y(s),timestamp:Date.now(),url:window.location.href}}var b="http://localhost:3300",f="eyeglass_session",P="eyeglass_history",$="eyeglass_enabled",N="eyeglass_autocommit",G=1e4,y=["Ruminating...","Percolating...","Divining...","Grokking...","Communing...","Concocting...","Synthesizing...","Distilling...","Incubating...","Forging...","Scrutinizing...","Triangulating...","Unraveling...","Traversing...","Sifting...","Marshaling...","Hydrating...","Harmonizing...","Indexing...","Entangling..."],X='url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2MzY2ZjEiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0xIDEyczQtOCAxMS04IDExIDggMTEgOC00IDgtMTEgOC0xMS04LTExLTh6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMyIgZmlsbD0iIzYzNjZmMSIvPjwvc3ZnPg==") 8 8, crosshair',Z=`
|
|
2
|
+
:host {
|
|
3
|
+
all: initial;
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
z-index: 2147483647;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
12
|
+
font-size: 13px;
|
|
13
|
+
line-height: 1.5;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
--glass-bg: rgba(255, 255, 255, 0.88);
|
|
16
|
+
--glass-border: rgba(0, 0, 0, 0.25);
|
|
17
|
+
--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
18
|
+
--divider: rgba(0, 0, 0, 0.18);
|
|
19
|
+
--text-primary: #0f172a;
|
|
20
|
+
--text-secondary: #64748b;
|
|
21
|
+
--text-muted: #94a3b8;
|
|
22
|
+
--accent: #6366f1;
|
|
23
|
+
--accent-soft: rgba(99, 102, 241, 0.1);
|
|
24
|
+
--success: #10b981;
|
|
25
|
+
--error: #ef4444;
|
|
26
|
+
--border-radius: 16px;
|
|
27
|
+
--border-radius-sm: 10px;
|
|
33
28
|
}
|
|
29
|
+
|
|
30
|
+
*, *::before, *::after {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Highlight overlay */
|
|
35
|
+
.highlight {
|
|
36
|
+
position: absolute;
|
|
37
|
+
z-index: 2147483640;
|
|
38
|
+
border: 2px solid var(--accent);
|
|
39
|
+
background: rgba(99, 102, 241, 0.06);
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
transition: all 0.1s ease-out;
|
|
43
|
+
box-shadow:
|
|
44
|
+
0 0 0 3px rgba(99, 102, 241, 0.08),
|
|
45
|
+
0 2px 8px rgba(99, 102, 241, 0.1);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.highlight.no-transition {
|
|
49
|
+
transition: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Glass Panel */
|
|
53
|
+
.glass-panel {
|
|
54
|
+
position: absolute;
|
|
55
|
+
z-index: 2147483647;
|
|
56
|
+
background: var(--glass-bg);
|
|
57
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
58
|
+
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
59
|
+
border: 1px solid var(--glass-border);
|
|
60
|
+
border-radius: var(--border-radius);
|
|
61
|
+
box-shadow: var(--glass-shadow);
|
|
62
|
+
pointer-events: auto;
|
|
63
|
+
width: 340px;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
animation: panelIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
66
|
+
cursor: default;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.glass-panel *, .glass-panel *::before, .glass-panel *::after {
|
|
70
|
+
cursor: inherit;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.glass-panel button, .glass-panel input {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.glass-panel input[type="text"] {
|
|
78
|
+
cursor: text;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@keyframes panelIn {
|
|
82
|
+
from {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
transform: translateY(8px) scale(0.96);
|
|
85
|
+
}
|
|
86
|
+
to {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
transform: translateY(0) scale(1);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Panel Header */
|
|
93
|
+
.panel-header {
|
|
94
|
+
padding: 14px 16px;
|
|
95
|
+
border-bottom: 1px solid var(--divider);
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: 10px;
|
|
99
|
+
cursor: grab;
|
|
100
|
+
user-select: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.panel-header:active {
|
|
104
|
+
cursor: grabbing;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.component-tag {
|
|
108
|
+
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
109
|
+
font-size: 12px;
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
color: var(--accent);
|
|
112
|
+
background: var(--accent-soft);
|
|
113
|
+
padding: 4px 10px;
|
|
114
|
+
border-radius: 6px;
|
|
115
|
+
letter-spacing: -0.01em;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.file-path {
|
|
119
|
+
font-size: 11px;
|
|
120
|
+
color: var(--text-muted);
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
flex: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.close-btn {
|
|
128
|
+
width: 24px;
|
|
129
|
+
height: 24px;
|
|
130
|
+
border: none;
|
|
131
|
+
background: transparent;
|
|
132
|
+
color: var(--text-muted);
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
border-radius: 6px;
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
transition: all 0.15s;
|
|
139
|
+
font-size: 18px;
|
|
140
|
+
line-height: 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.close-btn:hover {
|
|
144
|
+
background: rgba(0, 0, 0, 0.05);
|
|
145
|
+
color: var(--text-secondary);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* User Request */
|
|
149
|
+
.user-request {
|
|
150
|
+
padding: 12px 16px;
|
|
151
|
+
background: rgba(0, 0, 0, 0.02);
|
|
152
|
+
border-bottom: 1px solid var(--divider);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.user-request-label {
|
|
156
|
+
font-size: 10px;
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
text-transform: uppercase;
|
|
159
|
+
letter-spacing: 0.05em;
|
|
160
|
+
color: var(--text-muted);
|
|
161
|
+
margin-bottom: 4px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.user-request-text {
|
|
165
|
+
color: var(--text-primary);
|
|
166
|
+
font-weight: 500;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Input Mode */
|
|
170
|
+
.input-area {
|
|
171
|
+
padding: 12px 16px 16px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.input-field {
|
|
175
|
+
width: 100%;
|
|
176
|
+
padding: 10px 14px;
|
|
177
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
178
|
+
border-radius: var(--border-radius-sm);
|
|
179
|
+
font-size: 13px;
|
|
180
|
+
font-family: inherit;
|
|
181
|
+
background: rgba(255, 255, 255, 0.6);
|
|
182
|
+
color: var(--text-primary);
|
|
183
|
+
outline: none;
|
|
184
|
+
transition: all 0.15s;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.input-field::placeholder {
|
|
188
|
+
color: var(--text-muted);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.input-field:focus {
|
|
192
|
+
border-color: var(--accent);
|
|
193
|
+
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
194
|
+
background: white;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.btn-row {
|
|
198
|
+
display: flex;
|
|
199
|
+
gap: 8px;
|
|
200
|
+
margin-top: 10px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.btn {
|
|
204
|
+
flex: 1;
|
|
205
|
+
padding: 9px 14px;
|
|
206
|
+
border: none;
|
|
207
|
+
border-radius: var(--border-radius-sm);
|
|
208
|
+
font-size: 12px;
|
|
209
|
+
font-weight: 600;
|
|
210
|
+
font-family: inherit;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
transition: all 0.15s;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.btn-primary {
|
|
216
|
+
background: var(--accent);
|
|
217
|
+
color: white;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.btn-primary:hover {
|
|
221
|
+
background: #4f46e5;
|
|
222
|
+
transform: translateY(-1px);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.btn-secondary {
|
|
226
|
+
background: rgba(0, 0, 0, 0.04);
|
|
227
|
+
color: var(--text-secondary);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.btn-secondary:hover {
|
|
231
|
+
background: rgba(0, 0, 0, 0.08);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Activity Feed */
|
|
235
|
+
.activity-feed {
|
|
236
|
+
max-height: 280px;
|
|
237
|
+
overflow-y: auto;
|
|
238
|
+
padding: 8px 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.activity-feed::-webkit-scrollbar {
|
|
242
|
+
width: 6px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.activity-feed::-webkit-scrollbar-track {
|
|
246
|
+
background: transparent;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.activity-feed::-webkit-scrollbar-thumb {
|
|
250
|
+
background: rgba(0, 0, 0, 0.1);
|
|
251
|
+
border-radius: 3px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.activity-item {
|
|
255
|
+
padding: 8px 16px;
|
|
256
|
+
display: flex;
|
|
257
|
+
gap: 10px;
|
|
258
|
+
align-items: flex-start;
|
|
259
|
+
animation: itemIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@keyframes itemIn {
|
|
263
|
+
from {
|
|
264
|
+
opacity: 0;
|
|
265
|
+
transform: translateX(-8px);
|
|
266
|
+
}
|
|
267
|
+
to {
|
|
268
|
+
opacity: 1;
|
|
269
|
+
transform: translateX(0);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.activity-icon {
|
|
274
|
+
width: 20px;
|
|
275
|
+
height: 20px;
|
|
276
|
+
border-radius: 50%;
|
|
277
|
+
display: flex;
|
|
278
|
+
align-items: center;
|
|
279
|
+
justify-content: center;
|
|
280
|
+
flex-shrink: 0;
|
|
281
|
+
font-size: 10px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.activity-icon.status { background: var(--accent-soft); color: var(--accent); }
|
|
285
|
+
.activity-icon.thought { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
|
|
286
|
+
.activity-icon.action { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
|
|
287
|
+
.activity-icon.question { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
|
|
288
|
+
.activity-icon.success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
|
|
289
|
+
.activity-icon.error { background: rgba(239, 68, 68, 0.1); color: var(--error); }
|
|
290
|
+
|
|
291
|
+
.activity-content {
|
|
292
|
+
flex: 1;
|
|
293
|
+
min-width: 0;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.activity-text {
|
|
297
|
+
color: var(--text-primary);
|
|
298
|
+
word-wrap: break-word;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.activity-text.muted {
|
|
302
|
+
color: var(--text-secondary);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.activity-target {
|
|
306
|
+
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
307
|
+
font-size: 11px;
|
|
308
|
+
color: var(--text-muted);
|
|
309
|
+
margin-top: 2px;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/* Question UI */
|
|
313
|
+
.question-box {
|
|
314
|
+
background: rgba(245, 158, 11, 0.06);
|
|
315
|
+
border: 1px solid rgba(245, 158, 11, 0.15);
|
|
316
|
+
border-radius: var(--border-radius-sm);
|
|
317
|
+
padding: 12px;
|
|
318
|
+
margin: 8px 16px;
|
|
319
|
+
animation: questionIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@keyframes questionIn {
|
|
323
|
+
from {
|
|
324
|
+
opacity: 0;
|
|
325
|
+
transform: scale(0.95);
|
|
326
|
+
}
|
|
327
|
+
to {
|
|
328
|
+
opacity: 1;
|
|
329
|
+
transform: scale(1);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.question-text {
|
|
334
|
+
font-weight: 500;
|
|
335
|
+
color: var(--text-primary);
|
|
336
|
+
margin-bottom: 10px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.question-options {
|
|
340
|
+
display: flex;
|
|
341
|
+
flex-wrap: wrap;
|
|
342
|
+
gap: 6px;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.question-option {
|
|
346
|
+
padding: 7px 14px;
|
|
347
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
348
|
+
border-radius: 8px;
|
|
349
|
+
background: white;
|
|
350
|
+
font-size: 12px;
|
|
351
|
+
font-weight: 500;
|
|
352
|
+
font-family: inherit;
|
|
353
|
+
color: var(--text-primary);
|
|
354
|
+
cursor: pointer;
|
|
355
|
+
transition: all 0.15s;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.question-option:hover {
|
|
359
|
+
border-color: var(--accent);
|
|
360
|
+
background: var(--accent-soft);
|
|
361
|
+
color: var(--accent);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/* Skeleton loader */
|
|
365
|
+
.skeleton-item {
|
|
366
|
+
padding: 8px 16px;
|
|
367
|
+
display: flex;
|
|
368
|
+
gap: 10px;
|
|
369
|
+
align-items: center;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.skeleton-icon {
|
|
373
|
+
width: 20px;
|
|
374
|
+
height: 20px;
|
|
375
|
+
border-radius: 50%;
|
|
376
|
+
background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
|
|
377
|
+
background-size: 200% 100%;
|
|
378
|
+
animation: shimmer 1.5s infinite;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.skeleton-line {
|
|
382
|
+
height: 14px;
|
|
383
|
+
border-radius: 4px;
|
|
384
|
+
background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
|
|
385
|
+
background-size: 200% 100%;
|
|
386
|
+
animation: shimmer 1.5s infinite;
|
|
387
|
+
width: 60%;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@keyframes shimmer {
|
|
391
|
+
0% { background-position: 200% 0; }
|
|
392
|
+
100% { background-position: -200% 0; }
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/* Status Footer */
|
|
396
|
+
.panel-footer {
|
|
397
|
+
padding: 10px 16px;
|
|
398
|
+
border-top: 1px solid var(--divider);
|
|
399
|
+
display: flex;
|
|
400
|
+
align-items: center;
|
|
401
|
+
gap: 8px;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.status-indicator {
|
|
405
|
+
width: 8px;
|
|
406
|
+
height: 8px;
|
|
407
|
+
border-radius: 50%;
|
|
408
|
+
background: var(--text-muted);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.status-indicator.pending {
|
|
412
|
+
background: var(--accent);
|
|
413
|
+
animation: pulse 1.5s ease-in-out infinite;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.status-indicator.fixing {
|
|
417
|
+
background: #0ea5e9;
|
|
418
|
+
animation: pulse 1s ease-in-out infinite;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.status-indicator.success { background: var(--success); }
|
|
422
|
+
.status-indicator.failed { background: var(--error); }
|
|
423
|
+
|
|
424
|
+
@keyframes pulse {
|
|
425
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
426
|
+
50% { opacity: 0.5; transform: scale(0.9); }
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.status-text {
|
|
430
|
+
font-size: 12px;
|
|
431
|
+
color: var(--text-secondary);
|
|
432
|
+
flex: 1;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* Done state */
|
|
436
|
+
.panel-footer.done {
|
|
437
|
+
background: rgba(16, 185, 129, 0.06);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.panel-footer.done .status-text {
|
|
441
|
+
color: var(--success);
|
|
442
|
+
font-weight: 500;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* Result Toast - shows after page reload */
|
|
446
|
+
.result-toast {
|
|
447
|
+
position: fixed;
|
|
448
|
+
bottom: 24px;
|
|
449
|
+
right: 24px;
|
|
450
|
+
background: var(--glass-bg);
|
|
451
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
452
|
+
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
453
|
+
border: 1px solid var(--glass-border);
|
|
454
|
+
border-radius: var(--border-radius);
|
|
455
|
+
box-shadow: var(--glass-shadow);
|
|
456
|
+
padding: 14px 18px;
|
|
457
|
+
pointer-events: auto;
|
|
458
|
+
display: flex;
|
|
459
|
+
align-items: center;
|
|
460
|
+
gap: 12px;
|
|
461
|
+
animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
462
|
+
max-width: 320px;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
@keyframes toastIn {
|
|
466
|
+
from {
|
|
467
|
+
opacity: 0;
|
|
468
|
+
transform: translateY(16px) scale(0.95);
|
|
469
|
+
}
|
|
470
|
+
to {
|
|
471
|
+
opacity: 1;
|
|
472
|
+
transform: translateY(0) scale(1);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.toast-icon {
|
|
477
|
+
width: 32px;
|
|
478
|
+
height: 32px;
|
|
479
|
+
border-radius: 50%;
|
|
480
|
+
display: flex;
|
|
481
|
+
align-items: center;
|
|
482
|
+
justify-content: center;
|
|
483
|
+
font-size: 16px;
|
|
484
|
+
flex-shrink: 0;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.toast-icon.success {
|
|
488
|
+
background: rgba(16, 185, 129, 0.15);
|
|
489
|
+
color: var(--success);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.toast-icon.failed {
|
|
493
|
+
background: rgba(239, 68, 68, 0.15);
|
|
494
|
+
color: var(--error);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.toast-content {
|
|
498
|
+
flex: 1;
|
|
499
|
+
min-width: 0;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.toast-title {
|
|
503
|
+
font-weight: 600;
|
|
504
|
+
color: var(--text-primary);
|
|
505
|
+
margin-bottom: 2px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.toast-message {
|
|
509
|
+
font-size: 12px;
|
|
510
|
+
color: var(--text-secondary);
|
|
511
|
+
overflow: hidden;
|
|
512
|
+
text-overflow: ellipsis;
|
|
513
|
+
white-space: nowrap;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.toast-close {
|
|
517
|
+
width: 24px;
|
|
518
|
+
height: 24px;
|
|
519
|
+
border: none;
|
|
520
|
+
background: transparent;
|
|
521
|
+
color: var(--text-muted);
|
|
522
|
+
cursor: pointer;
|
|
523
|
+
border-radius: 6px;
|
|
524
|
+
display: flex;
|
|
525
|
+
align-items: center;
|
|
526
|
+
justify-content: center;
|
|
527
|
+
font-size: 16px;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.toast-close:hover {
|
|
531
|
+
background: rgba(0, 0, 0, 0.05);
|
|
532
|
+
color: var(--text-secondary);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* Hub - Request History */
|
|
536
|
+
.hub {
|
|
537
|
+
position: fixed;
|
|
538
|
+
bottom: 16px;
|
|
539
|
+
left: 16px;
|
|
540
|
+
background: var(--glass-bg);
|
|
541
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
542
|
+
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
543
|
+
border: 1px solid var(--glass-border);
|
|
544
|
+
border-radius: 10px;
|
|
545
|
+
box-shadow: var(--glass-shadow);
|
|
546
|
+
pointer-events: auto;
|
|
547
|
+
min-width: 36px;
|
|
548
|
+
max-width: 200px;
|
|
549
|
+
overflow: hidden;
|
|
550
|
+
animation: hubIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
551
|
+
cursor: default;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.hub *, .hub *::before, .hub *::after {
|
|
555
|
+
cursor: inherit;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.hub button {
|
|
559
|
+
cursor: pointer;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
@keyframes hubIn {
|
|
563
|
+
from {
|
|
564
|
+
opacity: 0;
|
|
565
|
+
transform: translateY(8px) scale(0.96);
|
|
566
|
+
}
|
|
567
|
+
to {
|
|
568
|
+
opacity: 1;
|
|
569
|
+
transform: translateY(0) scale(1);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.hub.disabled.collapsed {
|
|
574
|
+
opacity: 0.5;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.hub-header {
|
|
578
|
+
display: flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
justify-content: space-between;
|
|
581
|
+
gap: 6px;
|
|
582
|
+
padding: 6px 8px;
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
user-select: none;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.hub-header:hover {
|
|
588
|
+
background: rgba(0, 0, 0, 0.03);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.hub-header-left {
|
|
592
|
+
display: flex;
|
|
593
|
+
align-items: center;
|
|
594
|
+
gap: 6px;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.hub-logo {
|
|
598
|
+
width: 20px;
|
|
599
|
+
height: 20px;
|
|
600
|
+
background: var(--accent);
|
|
601
|
+
border-radius: 5px;
|
|
602
|
+
display: flex;
|
|
603
|
+
align-items: center;
|
|
604
|
+
justify-content: center;
|
|
605
|
+
font-size: 11px;
|
|
606
|
+
color: white;
|
|
607
|
+
flex-shrink: 0;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.hub-title {
|
|
611
|
+
font-size: 11px;
|
|
612
|
+
font-weight: 600;
|
|
613
|
+
color: var(--text-primary);
|
|
614
|
+
flex: 1;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.hub-badge {
|
|
618
|
+
font-size: 9px;
|
|
619
|
+
font-weight: 600;
|
|
620
|
+
background: var(--accent);
|
|
621
|
+
color: white;
|
|
622
|
+
padding: 1px 5px;
|
|
623
|
+
border-radius: 8px;
|
|
624
|
+
min-width: 14px;
|
|
625
|
+
text-align: center;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.hub-toggle {
|
|
629
|
+
width: 16px;
|
|
630
|
+
height: 16px;
|
|
631
|
+
border: none;
|
|
632
|
+
background: transparent;
|
|
633
|
+
color: var(--text-muted);
|
|
634
|
+
cursor: pointer;
|
|
635
|
+
display: flex;
|
|
636
|
+
align-items: center;
|
|
637
|
+
justify-content: center;
|
|
638
|
+
font-size: 10px;
|
|
639
|
+
transition: transform 0.2s;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.hub-toggle.expanded {
|
|
643
|
+
transform: rotate(180deg);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.hub-disable {
|
|
647
|
+
width: 20px;
|
|
648
|
+
height: 20px;
|
|
649
|
+
border: none;
|
|
650
|
+
background: transparent;
|
|
651
|
+
color: var(--text-muted);
|
|
652
|
+
cursor: pointer;
|
|
653
|
+
border-radius: 4px;
|
|
654
|
+
display: flex;
|
|
655
|
+
align-items: center;
|
|
656
|
+
justify-content: center;
|
|
657
|
+
transition: all 0.15s;
|
|
658
|
+
flex-shrink: 0;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.hub-disable:hover {
|
|
662
|
+
background: rgba(0, 0, 0, 0.05);
|
|
663
|
+
color: var(--text-secondary);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.hub-disable.active {
|
|
667
|
+
color: var(--accent);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.hub-disable svg {
|
|
671
|
+
width: 14px;
|
|
672
|
+
height: 14px;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.hub-content {
|
|
676
|
+
border-top: 1px solid var(--divider);
|
|
677
|
+
max-height: 0;
|
|
678
|
+
overflow: hidden;
|
|
679
|
+
transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.hub-content.expanded {
|
|
683
|
+
max-height: 220px;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.hub-list {
|
|
687
|
+
max-height: 200px;
|
|
688
|
+
overflow-y: auto;
|
|
689
|
+
padding: 4px 0;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.hub-list::-webkit-scrollbar {
|
|
693
|
+
width: 6px;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.hub-list::-webkit-scrollbar-track {
|
|
697
|
+
background: transparent;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.hub-list::-webkit-scrollbar-thumb {
|
|
701
|
+
background: rgba(0, 0, 0, 0.1);
|
|
702
|
+
border-radius: 3px;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.hub-item {
|
|
706
|
+
padding: 5px 8px;
|
|
707
|
+
display: flex;
|
|
708
|
+
align-items: center;
|
|
709
|
+
gap: 8px;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.hub-item:hover {
|
|
713
|
+
background: rgba(0, 0, 0, 0.02);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.hub-item-status {
|
|
717
|
+
width: 6px;
|
|
718
|
+
height: 6px;
|
|
719
|
+
border-radius: 50%;
|
|
720
|
+
flex-shrink: 0;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.hub-item-status.pending { background: var(--accent); animation: pulse 1.5s ease-in-out infinite; }
|
|
724
|
+
.hub-item-status.fixing { background: #0ea5e9; animation: pulse 1s ease-in-out infinite; }
|
|
725
|
+
.hub-item-status.success { background: var(--success); }
|
|
726
|
+
.hub-item-status.failed { background: var(--error); }
|
|
727
|
+
|
|
728
|
+
.hub-item-content {
|
|
729
|
+
flex: 1;
|
|
730
|
+
min-width: 0;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.hub-item-component {
|
|
734
|
+
font-size: 10px;
|
|
735
|
+
font-weight: 500;
|
|
736
|
+
color: var(--text-secondary);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.hub-item-note {
|
|
740
|
+
font-size: 11px;
|
|
741
|
+
color: var(--text-primary);
|
|
742
|
+
word-wrap: break-word;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.hub-item-undo {
|
|
746
|
+
width: 18px;
|
|
747
|
+
height: 18px;
|
|
748
|
+
border: none;
|
|
749
|
+
background: transparent;
|
|
750
|
+
color: var(--text-muted);
|
|
751
|
+
cursor: pointer;
|
|
752
|
+
border-radius: 3px;
|
|
753
|
+
display: flex;
|
|
754
|
+
align-items: center;
|
|
755
|
+
justify-content: center;
|
|
756
|
+
font-size: 10px;
|
|
757
|
+
opacity: 0;
|
|
758
|
+
transition: all 0.15s;
|
|
759
|
+
flex-shrink: 0;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.hub-item:hover .hub-item-undo {
|
|
763
|
+
opacity: 1;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.hub-item-undo:hover {
|
|
767
|
+
background: rgba(239, 68, 68, 0.1);
|
|
768
|
+
color: var(--error);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.hub-empty {
|
|
772
|
+
padding: 10px 8px;
|
|
773
|
+
text-align: center;
|
|
774
|
+
font-size: 10px;
|
|
775
|
+
color: var(--text-muted);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.hub-settings-btn {
|
|
779
|
+
width: 20px;
|
|
780
|
+
height: 20px;
|
|
781
|
+
border: none;
|
|
782
|
+
background: transparent;
|
|
783
|
+
color: var(--text-muted);
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
border-radius: 4px;
|
|
786
|
+
display: flex;
|
|
787
|
+
align-items: center;
|
|
788
|
+
justify-content: center;
|
|
789
|
+
transition: all 0.15s;
|
|
790
|
+
flex-shrink: 0;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.hub-settings-btn:hover {
|
|
794
|
+
background: rgba(0, 0, 0, 0.05);
|
|
795
|
+
color: var(--text-secondary);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.hub-settings-btn svg {
|
|
799
|
+
width: 12px;
|
|
800
|
+
height: 12px;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/* Settings Page */
|
|
804
|
+
.hub-settings-page {
|
|
805
|
+
padding: 8px 0;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.hub-settings-header {
|
|
809
|
+
display: flex;
|
|
810
|
+
align-items: center;
|
|
811
|
+
gap: 6px;
|
|
812
|
+
padding: 4px 8px 8px;
|
|
813
|
+
border-bottom: 1px solid var(--divider);
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.hub-back-btn {
|
|
817
|
+
width: 20px;
|
|
818
|
+
height: 20px;
|
|
819
|
+
border: none;
|
|
820
|
+
background: transparent;
|
|
821
|
+
color: var(--text-secondary);
|
|
822
|
+
cursor: pointer;
|
|
823
|
+
border-radius: 4px;
|
|
824
|
+
display: flex;
|
|
825
|
+
align-items: center;
|
|
826
|
+
justify-content: center;
|
|
827
|
+
transition: all 0.15s;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.hub-back-btn:hover {
|
|
831
|
+
background: rgba(0, 0, 0, 0.05);
|
|
832
|
+
color: var(--text-primary);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.hub-settings-title {
|
|
836
|
+
font-size: 11px;
|
|
837
|
+
font-weight: 600;
|
|
838
|
+
color: var(--text-primary);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
.hub-settings-list {
|
|
842
|
+
padding: 8px;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.hub-setting-row {
|
|
846
|
+
display: flex;
|
|
847
|
+
align-items: center;
|
|
848
|
+
justify-content: space-between;
|
|
849
|
+
gap: 8px;
|
|
850
|
+
padding: 6px 0;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.hub-setting-row:not(:last-child) {
|
|
854
|
+
border-bottom: 1px solid var(--divider);
|
|
855
|
+
padding-bottom: 10px;
|
|
856
|
+
margin-bottom: 4px;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.hub-setting-info {
|
|
860
|
+
flex: 1;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.hub-setting-label {
|
|
864
|
+
font-size: 11px;
|
|
865
|
+
font-weight: 500;
|
|
866
|
+
color: var(--text-primary);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.hub-setting-desc {
|
|
870
|
+
font-size: 9px;
|
|
871
|
+
color: var(--text-muted);
|
|
872
|
+
margin-top: 2px;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.hub-button-group {
|
|
876
|
+
display: flex;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/* Collapsed hub (minimal) */
|
|
880
|
+
.hub.collapsed .hub-title,
|
|
881
|
+
.hub.collapsed .hub-toggle {
|
|
882
|
+
display: none;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.hub.collapsed .hub-header {
|
|
886
|
+
padding: 5px;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.hub.collapsed .hub-header-left {
|
|
890
|
+
gap: 4px;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.toggle-switch {
|
|
894
|
+
position: relative;
|
|
895
|
+
width: 32px;
|
|
896
|
+
height: 18px;
|
|
897
|
+
background: #cbd5e1;
|
|
898
|
+
border-radius: 9px;
|
|
899
|
+
cursor: pointer;
|
|
900
|
+
transition: background 0.2s;
|
|
901
|
+
border: none;
|
|
902
|
+
padding: 0;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.toggle-switch.active {
|
|
906
|
+
background: var(--accent);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
.toggle-switch::after {
|
|
910
|
+
content: '';
|
|
911
|
+
position: absolute;
|
|
912
|
+
top: 2px;
|
|
913
|
+
left: 2px;
|
|
914
|
+
width: 14px;
|
|
915
|
+
height: 14px;
|
|
916
|
+
background: white;
|
|
917
|
+
border-radius: 50%;
|
|
918
|
+
transition: transform 0.2s;
|
|
919
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.toggle-switch.active::after {
|
|
923
|
+
transform: translateX(14px);
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/* Success action buttons */
|
|
927
|
+
.success-actions {
|
|
928
|
+
display: flex;
|
|
929
|
+
gap: 6px;
|
|
930
|
+
margin-left: auto;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.action-btn {
|
|
934
|
+
padding: 4px 10px;
|
|
935
|
+
border: none;
|
|
936
|
+
border-radius: 6px;
|
|
937
|
+
font-size: 11px;
|
|
938
|
+
font-weight: 600;
|
|
939
|
+
font-family: inherit;
|
|
940
|
+
cursor: pointer;
|
|
941
|
+
transition: all 0.15s;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.action-btn-commit {
|
|
945
|
+
background: var(--success);
|
|
946
|
+
color: white;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.action-btn-commit:hover {
|
|
950
|
+
background: #059669;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.action-btn-undo {
|
|
954
|
+
background: rgba(239, 68, 68, 0.1);
|
|
955
|
+
color: var(--error);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.action-btn-undo:hover {
|
|
959
|
+
background: rgba(239, 68, 68, 0.2);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/* Follow-up input */
|
|
963
|
+
.followup-area {
|
|
964
|
+
padding: 12px;
|
|
965
|
+
border-top: 1px solid var(--divider);
|
|
966
|
+
background: rgba(16, 185, 129, 0.04);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.followup-row {
|
|
970
|
+
display: flex;
|
|
971
|
+
gap: 8px;
|
|
972
|
+
align-items: center;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.followup-input {
|
|
976
|
+
flex: 1;
|
|
977
|
+
padding: 8px 12px;
|
|
978
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
979
|
+
border-radius: var(--border-radius-sm);
|
|
980
|
+
font-size: 12px;
|
|
981
|
+
font-family: inherit;
|
|
982
|
+
background: rgba(255, 255, 255, 0.8);
|
|
983
|
+
color: var(--text-primary);
|
|
984
|
+
outline: none;
|
|
985
|
+
transition: all 0.15s;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.followup-input::placeholder {
|
|
989
|
+
color: var(--text-muted);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.followup-input:focus {
|
|
993
|
+
border-color: var(--accent);
|
|
994
|
+
box-shadow: 0 0 0 2px var(--accent-soft);
|
|
995
|
+
background: white;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.followup-send {
|
|
999
|
+
flex-shrink: 0;
|
|
1000
|
+
padding: 9px 16px;
|
|
1001
|
+
border: 1px solid transparent;
|
|
1002
|
+
border-radius: var(--border-radius-sm);
|
|
1003
|
+
background: var(--accent);
|
|
1004
|
+
color: white;
|
|
1005
|
+
font-size: 12px;
|
|
1006
|
+
font-weight: 600;
|
|
1007
|
+
font-family: inherit;
|
|
1008
|
+
cursor: pointer;
|
|
1009
|
+
transition: all 0.15s;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.followup-send:hover {
|
|
1013
|
+
background: #4f46e5;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.followup-send:disabled {
|
|
1017
|
+
opacity: 0.5;
|
|
1018
|
+
cursor: not-allowed;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.followup-done {
|
|
1022
|
+
flex-shrink: 0;
|
|
1023
|
+
width: 32px;
|
|
1024
|
+
height: 32px;
|
|
1025
|
+
padding: 0;
|
|
1026
|
+
border: 1px solid var(--divider);
|
|
1027
|
+
border-radius: var(--border-radius-sm);
|
|
1028
|
+
background: transparent;
|
|
1029
|
+
color: var(--text-secondary);
|
|
1030
|
+
font-size: 14px;
|
|
1031
|
+
font-family: inherit;
|
|
1032
|
+
cursor: pointer;
|
|
1033
|
+
transition: all 0.15s;
|
|
1034
|
+
display: flex;
|
|
1035
|
+
align-items: center;
|
|
1036
|
+
justify-content: center;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.followup-done:hover {
|
|
1040
|
+
background: rgba(0, 0, 0, 0.04);
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/* Multi-select styles */
|
|
1044
|
+
.highlight.multi {
|
|
1045
|
+
border-style: dashed;
|
|
1046
|
+
border-width: 2px;
|
|
1047
|
+
box-shadow:
|
|
1048
|
+
0 0 0 2px rgba(99, 102, 241, 0.06),
|
|
1049
|
+
0 2px 6px rgba(99, 102, 241, 0.08);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.highlight-badge {
|
|
1053
|
+
position: absolute;
|
|
1054
|
+
top: -10px;
|
|
1055
|
+
left: -10px;
|
|
1056
|
+
width: 20px;
|
|
1057
|
+
height: 20px;
|
|
1058
|
+
background: var(--accent);
|
|
1059
|
+
color: white;
|
|
1060
|
+
font-size: 11px;
|
|
1061
|
+
font-weight: 600;
|
|
1062
|
+
border-radius: 50%;
|
|
1063
|
+
display: flex;
|
|
1064
|
+
align-items: center;
|
|
1065
|
+
justify-content: center;
|
|
1066
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.multi-select-icon {
|
|
1070
|
+
width: 24px;
|
|
1071
|
+
height: 24px;
|
|
1072
|
+
border: none;
|
|
1073
|
+
background: transparent;
|
|
1074
|
+
color: var(--text-muted);
|
|
1075
|
+
cursor: pointer;
|
|
1076
|
+
border-radius: 6px;
|
|
1077
|
+
display: flex;
|
|
1078
|
+
align-items: center;
|
|
1079
|
+
justify-content: center;
|
|
1080
|
+
transition: all 0.15s;
|
|
1081
|
+
font-size: 16px;
|
|
1082
|
+
line-height: 1;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
.multi-select-icon:hover {
|
|
1086
|
+
background: var(--accent-soft);
|
|
1087
|
+
color: var(--accent);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.multi-select-icon.active {
|
|
1091
|
+
background: var(--accent);
|
|
1092
|
+
color: white;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.selected-list {
|
|
1096
|
+
padding: 8px 16px;
|
|
1097
|
+
border-bottom: 1px solid var(--divider);
|
|
1098
|
+
background: rgba(0, 0, 0, 0.02);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.selected-list-header {
|
|
1102
|
+
display: flex;
|
|
1103
|
+
justify-content: space-between;
|
|
1104
|
+
align-items: center;
|
|
1105
|
+
margin-bottom: 8px;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.selected-count {
|
|
1109
|
+
font-size: 11px;
|
|
1110
|
+
font-weight: 600;
|
|
1111
|
+
color: var(--text-secondary);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
.selected-chips {
|
|
1115
|
+
display: flex;
|
|
1116
|
+
flex-wrap: wrap;
|
|
1117
|
+
gap: 6px;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
.selected-chip {
|
|
1121
|
+
display: flex;
|
|
1122
|
+
align-items: center;
|
|
1123
|
+
gap: 4px;
|
|
1124
|
+
padding: 4px 8px;
|
|
1125
|
+
background: var(--accent-soft);
|
|
1126
|
+
border-radius: 6px;
|
|
1127
|
+
font-size: 11px;
|
|
1128
|
+
color: var(--accent);
|
|
1129
|
+
font-weight: 500;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.selected-chip-number {
|
|
1133
|
+
width: 16px;
|
|
1134
|
+
height: 16px;
|
|
1135
|
+
background: var(--accent);
|
|
1136
|
+
color: white;
|
|
1137
|
+
border-radius: 50%;
|
|
1138
|
+
display: flex;
|
|
1139
|
+
align-items: center;
|
|
1140
|
+
justify-content: center;
|
|
1141
|
+
font-size: 10px;
|
|
1142
|
+
font-weight: 600;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
.selected-chip-remove {
|
|
1146
|
+
width: 16px;
|
|
1147
|
+
height: 16px;
|
|
1148
|
+
border: none;
|
|
1149
|
+
background: transparent;
|
|
1150
|
+
color: var(--accent);
|
|
1151
|
+
cursor: pointer;
|
|
1152
|
+
border-radius: 50%;
|
|
1153
|
+
display: flex;
|
|
1154
|
+
align-items: center;
|
|
1155
|
+
justify-content: center;
|
|
1156
|
+
font-size: 14px;
|
|
1157
|
+
line-height: 1;
|
|
1158
|
+
opacity: 0.7;
|
|
1159
|
+
transition: all 0.15s;
|
|
1160
|
+
padding: 0;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
.selected-chip-remove:hover {
|
|
1164
|
+
opacity: 1;
|
|
1165
|
+
background: rgba(99, 102, 241, 0.2);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.multi-mode-hint {
|
|
1169
|
+
padding: 8px 16px;
|
|
1170
|
+
background: var(--accent-soft);
|
|
1171
|
+
border-bottom: 1px solid var(--divider);
|
|
1172
|
+
font-size: 11px;
|
|
1173
|
+
color: var(--accent);
|
|
1174
|
+
text-align: center;
|
|
1175
|
+
}
|
|
1176
|
+
`,w=class s extends HTMLElement{constructor(){super();this.highlight=null;this.panel=null;this.toast=null;this.hub=null;this.currentElement=null;this.currentSnapshot=null;this.interactionId=null;this.frozen=!1;this.eventSource=null;this.throttleTimeout=null;this.mode="input";this.activityEvents=[];this.currentStatus="idle";this.hubExpanded=!1;this.hubPage="main";this.inspectorEnabled=!0;this.autoCommitEnabled=!0;this.history=[];this.isDragging=!1;this.dragOffset={x:0,y:0};this.customPanelPosition=null;this.multiSelectMode=!1;this.selectedElements=[];this.selectedSnapshots=[];this.multiSelectHighlights=[];this.submittedSnapshots=[];this.cursorStyleElement=null;this.scrollTimeout=null;this.phraseIndex=0;this.phraseInterval=null;this.handlePanelDrag=t=>{if(!this.isDragging||!this.panel)return;let e=Math.max(0,Math.min(t.clientX-this.dragOffset.x,window.innerWidth-340)),i=Math.max(0,Math.min(t.clientY-this.dragOffset.y,window.innerHeight-100));this.customPanelPosition={x:e,y:i},this.panel.style.left=`${e}px`,this.panel.style.top=`${i}px`};this.handlePanelDragEnd=()=>{this.isDragging=!1,document.removeEventListener("mousemove",this.handlePanelDrag),document.removeEventListener("mouseup",this.handlePanelDragEnd)};this.shadow=this.attachShadow({mode:"closed"})}static{this.MAX_SELECTION=5}connectedCallback(){let t=document.createElement("style");t.textContent=Z,this.shadow.appendChild(t),this.highlight=document.createElement("div"),this.highlight.className="highlight",this.highlight.style.display="none",this.shadow.appendChild(this.highlight),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleClick=this.handleClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handlePanelDragStart=this.handlePanelDragStart.bind(this),this.handleScroll=this.handleScroll.bind(this),document.addEventListener("mousemove",this.handleMouseMove,!0),document.addEventListener("click",this.handleClick,!0),document.addEventListener("keydown",this.handleKeyDown,!0),window.addEventListener("scroll",this.handleScroll,!0),this.loadEnabledState(),this.loadAutoCommitState(),this.loadHistory(),this.renderHub(),this.connectSSE(),this.restoreSession(),this.updateCursor()}saveSession(t){if(!this.interactionId)return;let e={interactionId:this.interactionId,userNote:this._userNote||"",componentName:this.currentSnapshot?.framework.componentName||this.currentSnapshot?.tagName||"element",status:this.currentStatus,message:t,timestamp:Date.now()};try{sessionStorage.setItem(f,JSON.stringify(e))}catch{}}restoreSession(){try{let t=sessionStorage.getItem(f);if(!t)return;let e=JSON.parse(t);if(Date.now()-e.timestamp>G){sessionStorage.removeItem(f);return}(e.status==="success"||e.status==="failed")&&(this.showResultToast(e),sessionStorage.removeItem(f))}catch{}}showResultToast(t){this.toast=document.createElement("div"),this.toast.className="result-toast";let e=t.status==="success",i=e?"\u2713":"\u2715",n=e?"Done!":"Failed";this.toast.innerHTML=`
|
|
1177
|
+
<div class="toast-icon ${t.status}">${i}</div>
|
|
1178
|
+
<div class="toast-content">
|
|
1179
|
+
<div class="toast-title">${n}</div>
|
|
1180
|
+
<div class="toast-message">${this.escapeHtml(t.message||t.userNote)}</div>
|
|
1181
|
+
</div>
|
|
1182
|
+
<button class="toast-close">×</button>
|
|
1183
|
+
`,this.toast.querySelector(".toast-close").addEventListener("click",()=>this.hideToast()),this.shadow.appendChild(this.toast),setTimeout(()=>this.hideToast(),4e3)}hideToast(){this.toast&&(this.toast.remove(),this.toast=null)}loadEnabledState(){try{let t=localStorage.getItem($);t!==null&&(this.inspectorEnabled=t==="true")}catch{}}saveEnabledState(){try{localStorage.setItem($,String(this.inspectorEnabled))}catch{}}loadAutoCommitState(){try{let t=localStorage.getItem(N);t!==null&&(this.autoCommitEnabled=t==="true")}catch{}}saveAutoCommitState(){try{localStorage.setItem(N,String(this.autoCommitEnabled))}catch{}}loadHistory(){try{let t=sessionStorage.getItem(P);t&&(this.history=JSON.parse(t))}catch{this.history=[]}}saveHistory(){try{sessionStorage.setItem(P,JSON.stringify(this.history))}catch{}}addToHistory(t){let e=this.history.findIndex(i=>i.interactionId===t.interactionId);e>=0?this.history[e]=t:(this.history.unshift(t),this.history.length>20&&(this.history=this.history.slice(0,20))),this.saveHistory(),this.renderHub()}updateHistoryStatus(t,e){let i=this.history.find(n=>n.interactionId===t);i&&(i.status=e,this.saveHistory(),this.renderHub())}renderHub(){this.hub||(this.hub=document.createElement("div"),this.hub.className="hub",this.shadow.appendChild(this.hub)),this.hubPage==="settings"?this.renderHubSettingsPage():this.renderHubMainPage()}renderHubMainPage(){if(!this.hub)return;let t=this.hubExpanded?"":"collapsed",e=this.inspectorEnabled?"":"disabled",i=this.hubExpanded?"expanded":"",n=this.history.filter(c=>c.status==="pending"||c.status==="fixing").length;this.hub.className=`hub ${t} ${e}`.trim();let a='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',o='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',l='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>';this.hub.innerHTML=`
|
|
1184
|
+
<div class="hub-header">
|
|
1185
|
+
<div class="hub-header-left">
|
|
1186
|
+
<div class="hub-logo">\u{1F441}</div>
|
|
1187
|
+
<span class="hub-title">Eyeglass</span>
|
|
1188
|
+
${n>0?`<span class="hub-badge">${n}</span>`:""}
|
|
1189
|
+
<button class="hub-toggle ${i}" title="Toggle history">\u25BC</button>
|
|
1190
|
+
</div>
|
|
1191
|
+
<div class="hub-button-group">
|
|
1192
|
+
<button class="hub-settings-btn" title="Settings">${l}</button>
|
|
1193
|
+
<button class="hub-disable ${this.inspectorEnabled?"active":""}" title="${this.inspectorEnabled?"Disable":"Enable"} inspector">
|
|
1194
|
+
${this.inspectorEnabled?a:o}
|
|
1195
|
+
</button>
|
|
1196
|
+
</div>
|
|
1197
|
+
</div>
|
|
1198
|
+
<div class="hub-content ${i}">
|
|
1199
|
+
${this.history.length>0?`
|
|
1200
|
+
<div class="hub-list">
|
|
1201
|
+
${this.history.map(c=>`
|
|
1202
|
+
<div class="hub-item" data-id="${c.interactionId}">
|
|
1203
|
+
<div class="hub-item-status ${c.status}"></div>
|
|
1204
|
+
<div class="hub-item-content">
|
|
1205
|
+
<div class="hub-item-component">${this.escapeHtml(c.componentName)}</div>
|
|
1206
|
+
<div class="hub-item-note">${this.escapeHtml(c.userNote)}</div>
|
|
1207
|
+
</div>
|
|
1208
|
+
${c.status==="success"?`
|
|
1209
|
+
<button class="hub-item-undo" data-id="${c.interactionId}" title="Undo">\u21A9</button>
|
|
1210
|
+
`:""}
|
|
1211
|
+
</div>
|
|
1212
|
+
`).join("")}
|
|
1213
|
+
</div>
|
|
1214
|
+
`:`
|
|
1215
|
+
<div class="hub-empty">No requests yet</div>
|
|
1216
|
+
`}
|
|
1217
|
+
</div>
|
|
1218
|
+
`;let d=this.hub.querySelector(".hub-header"),u=this.hub.querySelector(".hub-disable"),v=this.hub.querySelector(".hub-settings-btn");d.addEventListener("click",c=>{c.target===u||c.target===v||c.target.closest(".hub-settings-btn")||(this.hubExpanded=!this.hubExpanded,this.renderHub())}),v.addEventListener("click",c=>{c.stopPropagation(),this.hubPage="settings",this.hubExpanded=!0,this.renderHub()}),u.addEventListener("click",c=>{c.stopPropagation(),this.inspectorEnabled=!this.inspectorEnabled,this.saveEnabledState(),this.inspectorEnabled||this.unfreeze(),this.updateCursor(),this.renderHub()}),this.hub.querySelectorAll(".hub-item-undo").forEach(c=>{c.addEventListener("click",g=>{g.stopPropagation();let h=g.currentTarget.dataset.id;this.requestUndo(h)})})}renderHubSettingsPage(){if(!this.hub)return;this.hub.className="hub",this.hub.innerHTML=`
|
|
1219
|
+
<div class="hub-header">
|
|
1220
|
+
<div class="hub-header-left">
|
|
1221
|
+
<div class="hub-logo">\u{1F441}</div>
|
|
1222
|
+
<span class="hub-title">Eyeglass</span>
|
|
1223
|
+
</div>
|
|
1224
|
+
</div>
|
|
1225
|
+
<div class="hub-content expanded">
|
|
1226
|
+
<div class="hub-settings-page">
|
|
1227
|
+
<div class="hub-settings-header">
|
|
1228
|
+
<button class="hub-back-btn" title="Back">\u2190</button>
|
|
1229
|
+
<span class="hub-settings-title">Settings</span>
|
|
1230
|
+
</div>
|
|
1231
|
+
<div class="hub-settings-list">
|
|
1232
|
+
<div class="hub-setting-row">
|
|
1233
|
+
<div class="hub-setting-info">
|
|
1234
|
+
<div class="hub-setting-label">Auto-commit</div>
|
|
1235
|
+
<div class="hub-setting-desc">Automatically commit changes on success</div>
|
|
1236
|
+
</div>
|
|
1237
|
+
<button class="toggle-switch ${this.autoCommitEnabled?"active":""}" data-setting="autoCommit"></button>
|
|
1238
|
+
</div>
|
|
1239
|
+
</div>
|
|
1240
|
+
</div>
|
|
1241
|
+
</div>
|
|
1242
|
+
`,this.hub.querySelector(".hub-back-btn").addEventListener("click",()=>{this.hubPage="main",this.renderHub()}),this.hub.querySelectorAll(".toggle-switch").forEach(e=>{e.addEventListener("click",i=>{i.currentTarget.dataset.setting==="autoCommit"&&(this.autoCommitEnabled=!this.autoCommitEnabled,this.saveAutoCommitState(),this.renderHub())})})}async requestUndo(t){let e=this.history.findIndex(i=>i.interactionId===t);if(e!==-1){this.history[e].status="pending",this.saveHistory(),this.renderHub();try{(await fetch(`${b}/undo`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interactionId:t})})).ok?(this.history.splice(e,1),this.saveHistory(),this.renderHub()):(this.history[e].status="failed",this.saveHistory(),this.renderHub())}catch(i){this.history[e]&&(this.history[e].status="failed",this.saveHistory(),this.renderHub()),console.warn("Undo request failed:",i)}}}async requestCommit(t){let e=this.history.findIndex(i=>i.interactionId===t);try{(await fetch(`${b}/commit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interactionId:t})})).ok?(e>=0&&(this.history[e].status="success",this.saveHistory(),this.renderHub()),this.unfreeze()):console.warn("Commit request failed")}catch(i){console.warn("Commit request failed:",i)}}disconnectedCallback(){document.removeEventListener("mousemove",this.handleMouseMove,!0),document.removeEventListener("click",this.handleClick,!0),document.removeEventListener("keydown",this.handleKeyDown,!0),window.removeEventListener("scroll",this.handleScroll,!0),this.eventSource?.close(),this.cursorStyleElement&&(this.cursorStyleElement.remove(),this.cursorStyleElement=null)}connectSSE(){this.eventSource=new EventSource(`${b}/events`),this.eventSource.onmessage=t=>{try{let e=JSON.parse(t.data);e.type==="activity"&&this.handleActivityEvent(e.payload)}catch{}},this.eventSource.onerror=()=>{this.eventSource?.close(),setTimeout(()=>this.connectSSE(),3e3)}}handleActivityEvent(t){t.type==="status"&&this.updateHistoryStatus(t.interactionId,t.status),t.interactionId===this.interactionId&&(this.activityEvents.push(t),t.type==="status"&&(this.currentStatus=t.status,this.saveSession(t.message),t.status==="fixing"?this.startPhraseRotation():this.stopPhraseRotation(),t.status==="failed"&&setTimeout(()=>this.unfreeze(),4e3)),this.renderPanel())}handleMouseMove(t){if(!this.multiSelectMode&&this.frozen||!this.inspectorEnabled)return;if(t.composedPath().includes(this)){this.multiSelectMode||this.hideHighlight();return}if(this.throttleTimeout)return;this.throttleTimeout=window.setTimeout(()=>{this.throttleTimeout=null},16),this.style.pointerEvents="none";let i=document.elementFromPoint(t.clientX,t.clientY);if(this.style.pointerEvents="",!i||i===document.documentElement||i===document.body){this.multiSelectMode||this.hideHighlight();return}this.shadow.contains(i)||(this.currentElement=i,this.showHighlight(i))}handleClick(t){if(!(!this.inspectorEnabled||!this.currentElement||t.composedPath().some(i=>i===this))){if(t.preventDefault(),t.stopPropagation(),this.multiSelectMode){this.toggleInSelection(this.currentElement);return}this.frozen||this.freeze()}}handleKeyDown(t){t.key==="Escape"&&this.unfreeze()}handleScroll(){this.frozen&&(this.disableHighlightTransitions(),this.currentElement&&this.highlight&&!this.multiSelectMode&&this.showHighlight(this.currentElement),this.multiSelectMode&&this.selectedElements.length>0&&this.updateMultiSelectHighlightPositions(),this.scrollTimeout&&window.clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.enableHighlightTransitions(),this.scrollTimeout=null},150))}disableHighlightTransitions(){this.highlight&&this.highlight.classList.add("no-transition"),this.multiSelectHighlights.forEach(t=>t.classList.add("no-transition"))}enableHighlightTransitions(){this.highlight&&this.highlight.classList.remove("no-transition"),this.multiSelectHighlights.forEach(t=>t.classList.remove("no-transition"))}updateMultiSelectHighlightPositions(){this.selectedElements.forEach((e,i)=>{let n=this.multiSelectHighlights[i];if(!n)return;let a=e.getBoundingClientRect();n.style.left=`${a.left-3}px`,n.style.top=`${a.top-3}px`,n.style.width=`${a.width+3*2}px`,n.style.height=`${a.height+3*2}px`})}handlePanelDragStart(t){if(t.target.closest("button"))return;this.isDragging=!0;let e=this.panel.getBoundingClientRect();this.dragOffset={x:t.clientX-e.left,y:t.clientY-e.top},document.addEventListener("mousemove",this.handlePanelDrag),document.addEventListener("mouseup",this.handlePanelDragEnd)}showHighlight(t){if(!this.highlight)return;let e=t.getBoundingClientRect(),i=3;this.highlight.style.display="block",this.highlight.style.left=`${e.left-i}px`,this.highlight.style.top=`${e.top-i}px`,this.highlight.style.width=`${e.width+i*2}px`,this.highlight.style.height=`${e.height+i*2}px`}hideHighlight(){this.highlight&&(this.highlight.style.display="none"),this.currentElement=null}freeze(){this.currentElement&&(this.frozen=!0,this.currentSnapshot=x(this.currentElement),this.selectedElements=[this.currentElement],this.selectedSnapshots=[this.currentSnapshot],this.mode="input",this.activityEvents=[],this.currentStatus="idle",this.updateCursor(),this.renderPanel())}enterMultiSelectMode(){!this.frozen||this.multiSelectMode||(this.multiSelectMode=!0,this.renderMultiSelectHighlights(),this.updateCursor(),this.renderPanel())}toggleInSelection(t){if(!this.multiSelectMode)return;let e=this.selectedElements.indexOf(t);if(e>=0)this.removeFromSelection(e);else{if(this.selectedElements.length>=s.MAX_SELECTION)return;let i=x(t);this.selectedElements.push(t),this.selectedSnapshots.push(i)}this.renderMultiSelectHighlights(),this.renderPanel()}removeFromSelection(t){if(!(t<0||t>=this.selectedElements.length)){if(this.selectedElements.length===1){this.exitMultiSelectMode();return}this.selectedElements.splice(t,1),this.selectedSnapshots.splice(t,1),this.renderMultiSelectHighlights(),this.renderPanel()}}exitMultiSelectMode(){this.multiSelectMode=!1,this.selectedElements.length>0&&(this.currentElement=this.selectedElements[0],this.currentSnapshot=this.selectedSnapshots[0]),this.selectedElements=this.currentElement?[this.currentElement]:[],this.selectedSnapshots=this.currentSnapshot?[this.currentSnapshot]:[],this.clearMultiSelectHighlights(),this.currentElement&&this.showHighlight(this.currentElement),this.updateCursor(),this.renderPanel()}renderMultiSelectHighlights(){this.clearMultiSelectHighlights();let t=3;this.selectedElements.forEach((e,i)=>{let n=e.getBoundingClientRect(),a=document.createElement("div");a.className="highlight multi",a.style.display="block",a.style.left=`${n.left-t}px`,a.style.top=`${n.top-t}px`,a.style.width=`${n.width+t*2}px`,a.style.height=`${n.height+t*2}px`;let o=document.createElement("div");o.className="highlight-badge",o.textContent=String(i+1),a.appendChild(o),this.shadow.appendChild(a),this.multiSelectHighlights.push(a)}),this.highlight&&(this.highlight.style.display="none")}clearMultiSelectHighlights(){this.multiSelectHighlights.forEach(t=>t.remove()),this.multiSelectHighlights=[]}unfreeze(){this.frozen=!1,this.currentSnapshot=null,this.interactionId=null,this.mode="input",this.activityEvents=[],this.customPanelPosition=null,this.multiSelectMode=!1,this.selectedElements=[],this.selectedSnapshots=[],this.submittedSnapshots=[],this.clearMultiSelectHighlights(),this.stopPhraseRotation(),this.hidePanel(),this.hideHighlight(),this.updateCursor();try{sessionStorage.removeItem(f)}catch{}}renderPanel(){if(!this.currentSnapshot||!this.currentElement)return;let t=this.currentElement.getBoundingClientRect(),{framework:e}=this.currentSnapshot;if(this.panel||(this.panel=document.createElement("div"),this.panel.className="glass-panel",this.shadow.appendChild(this.panel)),this.customPanelPosition)this.panel.style.left=`${this.customPanelPosition.x}px`,this.panel.style.top=`${this.customPanelPosition.y}px`;else{let a=window.innerHeight-t.bottom,o=this.mode==="activity"?400:200,l=t.bottom+12;a<o&&t.top>o&&(l=t.top-o-12);let d=t.left;d+340>window.innerWidth-20&&(d=window.innerWidth-360),d<20&&(d=20),this.panel.style.left=`${d}px`,this.panel.style.top=`${l}px`}let i=e.componentName||this.currentSnapshot.tagName,n=e.filePath?e.filePath.split("/").slice(-2).join("/"):null;this.mode==="input"?this.renderInputMode(i,n):this.renderActivityMode(i,n)}renderInputMode(t,e){if(!this.panel)return;let i=this.multiSelectMode,n=i?"multi-select-icon active":"multi-select-icon",a=i?`
|
|
1243
|
+
<div class="selected-list">
|
|
1244
|
+
<div class="selected-list-header">
|
|
1245
|
+
<span class="selected-count">${this.selectedElements.length} element${this.selectedElements.length!==1?"s":""} selected</span>
|
|
1246
|
+
</div>
|
|
1247
|
+
<div class="selected-chips">
|
|
1248
|
+
${this.selectedSnapshots.map((h,p)=>{let m=h.framework.componentName||h.tagName;return`
|
|
1249
|
+
<div class="selected-chip" data-index="${p}">
|
|
1250
|
+
<span class="selected-chip-number">${p+1}</span>
|
|
1251
|
+
<span>${this.escapeHtml(m)}</span>
|
|
1252
|
+
<button class="selected-chip-remove" data-index="${p}" title="Remove">×</button>
|
|
1253
|
+
</div>
|
|
1254
|
+
`}).join("")}
|
|
1255
|
+
</div>
|
|
1256
|
+
</div>
|
|
1257
|
+
`:"",o=i?`
|
|
1258
|
+
<div class="multi-mode-hint">Click elements to add/remove from selection (max ${s.MAX_SELECTION})</div>
|
|
1259
|
+
`:"";this.panel.innerHTML=`
|
|
1260
|
+
<div class="panel-header">
|
|
1261
|
+
<span class="component-tag"><${this.escapeHtml(t)} /></span>
|
|
1262
|
+
${e?`<span class="file-path">${this.escapeHtml(e)}</span>`:""}
|
|
1263
|
+
<button class="${n}" title="${i?"Exit multi-select":"Select multiple elements"}">+</button>
|
|
1264
|
+
<button class="close-btn" title="Cancel (Esc)">×</button>
|
|
1265
|
+
</div>
|
|
1266
|
+
${o}
|
|
1267
|
+
${a}
|
|
1268
|
+
<div class="input-area">
|
|
1269
|
+
<input
|
|
1270
|
+
type="text"
|
|
1271
|
+
class="input-field"
|
|
1272
|
+
placeholder="${i?"Describe what to change for these elements...":"What do you want to change?"}"
|
|
1273
|
+
autofocus
|
|
1274
|
+
/>
|
|
1275
|
+
<div class="btn-row">
|
|
1276
|
+
<button class="btn btn-secondary">Cancel</button>
|
|
1277
|
+
<button class="btn btn-primary">Send</button>
|
|
1278
|
+
</div>
|
|
1279
|
+
</div>
|
|
1280
|
+
`;let l=this.panel.querySelector(".input-field"),d=this.panel.querySelector(".close-btn"),u=this.panel.querySelector(".btn-secondary"),v=this.panel.querySelector(".btn-primary"),c=this.panel.querySelector(".multi-select-icon");d.addEventListener("click",()=>this.unfreeze()),u.addEventListener("click",()=>this.unfreeze()),v.addEventListener("click",()=>this.submit(l.value)),l.addEventListener("keydown",h=>{h.key==="Enter"&&l.value.trim()&&this.submit(l.value)}),c.addEventListener("click",()=>{this.multiSelectMode?this.exitMultiSelectMode():this.enterMultiSelectMode()}),this.panel.querySelectorAll(".selected-chip-remove").forEach(h=>{h.addEventListener("click",p=>{p.stopPropagation();let m=parseInt(p.currentTarget.dataset.index,10);this.removeFromSelection(m)})}),this.panel.querySelector(".panel-header").addEventListener("mousedown",this.handlePanelDragStart),requestAnimationFrame(()=>l.focus())}renderActivityMode(t,e){if(!this.panel)return;let i=this.activityEvents.length>0&&this.panel.querySelector(".user-request-text")?.textContent||"",n=this.currentStatus==="success"||this.currentStatus==="failed",a=this.currentStatus==="success"&&!this.autoCommitEnabled,o=this.currentStatus==="success",l=this.submittedSnapshots.length,d=l>1?`${l} elements`:`<${this.escapeHtml(t)} />`;this.panel.innerHTML=`
|
|
1281
|
+
<div class="panel-header">
|
|
1282
|
+
<span class="component-tag">${d}</span>
|
|
1283
|
+
${l<=1&&e?`<span class="file-path">${this.escapeHtml(e)}</span>`:""}
|
|
1284
|
+
<button class="close-btn" title="Close">×</button>
|
|
1285
|
+
</div>
|
|
1286
|
+
<div class="user-request">
|
|
1287
|
+
<div class="user-request-label">Your request</div>
|
|
1288
|
+
<div class="user-request-text">${this.escapeHtml(this.getUserNote())}</div>
|
|
1289
|
+
</div>
|
|
1290
|
+
<div class="activity-feed">
|
|
1291
|
+
${this.renderActivityFeed()}
|
|
1292
|
+
</div>
|
|
1293
|
+
<div class="panel-footer ${n?"done":""}">
|
|
1294
|
+
<div class="status-indicator ${this.currentStatus}"></div>
|
|
1295
|
+
<span class="status-text">${this.getStatusText()}</span>
|
|
1296
|
+
${a?`
|
|
1297
|
+
<div class="success-actions">
|
|
1298
|
+
<button class="action-btn action-btn-undo" title="Discard changes">Undo</button>
|
|
1299
|
+
<button class="action-btn action-btn-commit" title="Commit changes">Commit</button>
|
|
1300
|
+
</div>
|
|
1301
|
+
`:""}
|
|
1302
|
+
</div>
|
|
1303
|
+
${o?`
|
|
1304
|
+
<div class="followup-area">
|
|
1305
|
+
<div class="followup-row">
|
|
1306
|
+
<input type="text" class="followup-input" placeholder="Anything else?" />
|
|
1307
|
+
<button class="followup-send">Send</button>
|
|
1308
|
+
<button class="followup-done">\u2715</button>
|
|
1309
|
+
</div>
|
|
1310
|
+
</div>
|
|
1311
|
+
`:""}
|
|
1312
|
+
`,this.panel.querySelector(".close-btn").addEventListener("click",()=>this.unfreeze()),this.panel.querySelector(".panel-header").addEventListener("mousedown",this.handlePanelDragStart),this.panel.querySelectorAll(".question-option").forEach(E=>{E.addEventListener("click",z=>{let k=z.target,A=k.dataset.questionId,q=k.dataset.answerId,D=k.textContent;this.submitAnswer(A,q,D)})});let c=this.panel.querySelector(".action-btn-commit"),g=this.panel.querySelector(".action-btn-undo");c&&this.interactionId&&c.addEventListener("click",()=>this.requestCommit(this.interactionId)),g&&this.interactionId&&g.addEventListener("click",()=>this.requestUndo(this.interactionId));let h=this.panel.querySelector(".followup-input"),p=this.panel.querySelector(".followup-send"),m=this.panel.querySelector(".followup-done");h&&p&&(p.addEventListener("click",()=>{h.value.trim()&&this.submitFollowUp(h.value)}),h.addEventListener("keydown",E=>{E.key==="Enter"&&h.value.trim()&&this.submitFollowUp(h.value)}),requestAnimationFrame(()=>h.focus())),m&&m.addEventListener("click",()=>this.unfreeze());let S=this.panel.querySelector(".activity-feed");S&&(S.scrollTop=S.scrollHeight)}renderActivityFeed(){let t=this.activityEvents.map(e=>{switch(e.type){case"status":return e.status==="pending"||e.status==="fixing"&&(!e.message||e.message==="Agent is working...")?"":this.renderStatusItem(e);case"thought":return this.renderThoughtItem(e);case"action":return this.renderActionItem(e);case"question":return this.renderQuestionItem(e);default:return""}}).filter(Boolean);return t.length===0&&(this.currentStatus==="pending"||this.currentStatus==="fixing")?`
|
|
1313
|
+
<div class="skeleton-item">
|
|
1314
|
+
<div class="skeleton-icon"></div>
|
|
1315
|
+
<div class="skeleton-line"></div>
|
|
1316
|
+
</div>
|
|
1317
|
+
`:t.join("")}renderStatusItem(t){let e=t.status==="success"?"success":t.status==="failed"?"error":"status",i=t.status==="success"?"\u2713":t.status==="failed"?"\u2715":"\u25CF";return`
|
|
1318
|
+
<div class="activity-item">
|
|
1319
|
+
<div class="activity-icon ${e}">${i}</div>
|
|
1320
|
+
<div class="activity-content">
|
|
1321
|
+
<div class="activity-text">${this.escapeHtml(t.message||t.status)}</div>
|
|
1322
|
+
</div>
|
|
1323
|
+
</div>
|
|
1324
|
+
`}renderThoughtItem(t){return`
|
|
1325
|
+
<div class="activity-item">
|
|
1326
|
+
<div class="activity-icon thought">\u{1F4AD}</div>
|
|
1327
|
+
<div class="activity-content">
|
|
1328
|
+
<div class="activity-text muted">${this.escapeHtml(t.content)}</div>
|
|
1329
|
+
</div>
|
|
1330
|
+
</div>
|
|
1331
|
+
`}renderActionItem(t){let e={reading:"\u{1F4D6}",writing:"\u270F\uFE0F",searching:"\u{1F50D}",thinking:"\u{1F9E0}"},i={reading:"Reading",writing:"Writing",searching:"Searching",thinking:"Thinking about"};return`
|
|
1332
|
+
<div class="activity-item">
|
|
1333
|
+
<div class="activity-icon action">${e[t.action]||"\u25CF"}</div>
|
|
1334
|
+
<div class="activity-content">
|
|
1335
|
+
<div class="activity-text">${i[t.action]||t.action}${t.complete?" \u2713":"..."}</div>
|
|
1336
|
+
<div class="activity-target">${this.escapeHtml(t.target)}</div>
|
|
1337
|
+
</div>
|
|
1338
|
+
</div>
|
|
1339
|
+
`}renderQuestionItem(t){return this.activityEvents.some(i=>i.type==="status"&&i.timestamp>t.timestamp)?`
|
|
1340
|
+
<div class="activity-item">
|
|
1341
|
+
<div class="activity-icon question">?</div>
|
|
1342
|
+
<div class="activity-content">
|
|
1343
|
+
<div class="activity-text muted">${this.escapeHtml(t.question)}</div>
|
|
1344
|
+
</div>
|
|
1345
|
+
</div>
|
|
1346
|
+
`:`
|
|
1347
|
+
<div class="question-box">
|
|
1348
|
+
<div class="question-text">${this.escapeHtml(t.question)}</div>
|
|
1349
|
+
<div class="question-options">
|
|
1350
|
+
${t.options.map(i=>`
|
|
1351
|
+
<button
|
|
1352
|
+
class="question-option"
|
|
1353
|
+
data-question-id="${t.questionId}"
|
|
1354
|
+
data-answer-id="${i.id}"
|
|
1355
|
+
>${this.escapeHtml(i.label)}</button>
|
|
1356
|
+
`).join("")}
|
|
1357
|
+
</div>
|
|
1358
|
+
</div>
|
|
1359
|
+
`}getUserNote(){let t=this.activityEvents.find(e=>e.type==="status");return this._userNote||""}getStatusText(){switch(this.currentStatus){case"idle":return"Ready";case"pending":return"Waiting for agent...";case"fixing":return y[this.phraseIndex%y.length];case"success":return"Done!";case"failed":return"Failed";default:return this.currentStatus}}startPhraseRotation(){this.phraseInterval||(this.phraseIndex=Math.floor(Math.random()*y.length),this.phraseInterval=window.setInterval(()=>{this.phraseIndex=(this.phraseIndex+1)%y.length,this.updateFooterText()},1e4))}stopPhraseRotation(){this.phraseInterval&&(window.clearInterval(this.phraseInterval),this.phraseInterval=null)}updateFooterText(){if(!this.panel)return;let t=this.panel.querySelector(".status-text");t&&(t.textContent=this.getStatusText())}hidePanel(){this.panel&&(this.panel.remove(),this.panel=null)}async submit(t){if(!t.trim()||this.selectedSnapshots.length===0&&!this.currentSnapshot)return;this.interactionId=`eyeglass-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,this._userNote=t.trim();let e=this.selectedSnapshots.length>0?this.selectedSnapshots:this.currentSnapshot?[this.currentSnapshot]:[];this.submittedSnapshots=[...e];let i={interactionId:this.interactionId,userNote:t.trim(),autoCommit:this.autoCommitEnabled,...e.length===1?{snapshot:e[0]}:{snapshots:e}},n=e.map(u=>u.framework.componentName||u.tagName),a=e.length===1?n[0]:`${n.length} elements`;this.addToHistory({interactionId:this.interactionId,userNote:t.trim(),componentName:a,filePath:e[0]?.framework.filePath,status:"pending",timestamp:Date.now()});let o=this.multiSelectMode,l=[...this.selectedElements],d=[...this.selectedSnapshots];this.clearMultiSelectHighlights(),this.multiSelectMode=!1,this.mode="activity",this.activityEvents=[],this.currentStatus="pending",this.renderPanel();try{let u=await fetch(`${b}/focus`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!u.ok)throw new Error(`HTTP ${u.status}`)}catch{this.currentStatus="failed",this.updateHistoryStatus(this.interactionId,"failed"),this.activityEvents.push({type:"status",interactionId:this.interactionId,status:"failed",message:"Failed to connect to bridge",timestamp:Date.now()}),o&&l.length>1&&(this.multiSelectMode=!0,this.selectedElements=l,this.selectedSnapshots=d,this.mode="input",this.renderMultiSelectHighlights()),this.renderPanel()}}async submitFollowUp(t){if(!t.trim()||this.submittedSnapshots.length===0)return;this.interactionId=`eyeglass-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,this._userNote=t.trim();let e=this.submittedSnapshots,i={interactionId:this.interactionId,userNote:t.trim(),autoCommit:this.autoCommitEnabled,...e.length===1?{snapshot:e[0]}:{snapshots:e}},n=e.map(o=>o.framework.componentName||o.tagName),a=e.length===1?n[0]:`${n.length} elements`;this.addToHistory({interactionId:this.interactionId,userNote:t.trim(),componentName:a,filePath:e[0]?.framework.filePath,status:"pending",timestamp:Date.now()}),this.activityEvents=[],this.currentStatus="pending",this.renderPanel();try{let o=await fetch(`${b}/focus`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!o.ok)throw new Error(`HTTP ${o.status}`)}catch{this.currentStatus="failed",this.updateHistoryStatus(this.interactionId,"failed"),this.activityEvents.push({type:"status",interactionId:this.interactionId,status:"failed",message:"Failed to connect to bridge",timestamp:Date.now()}),this.renderPanel()}}async submitAnswer(t,e,i){if(!this.interactionId)return;let n={interactionId:this.interactionId,questionId:t,answerId:e,answerLabel:i};try{await fetch(`${b}/answer`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}catch{}}escapeHtml(t){let e=document.createElement("div");return e.textContent=t,e.innerHTML}updateCursor(){this.inspectorEnabled&&(!this.frozen||this.multiSelectMode)?(this.cursorStyleElement||(this.cursorStyleElement=document.createElement("style"),this.cursorStyleElement.id="eyeglass-cursor-style",document.head.appendChild(this.cursorStyleElement)),this.cursorStyleElement.textContent=`
|
|
1360
|
+
html, body, body * {
|
|
1361
|
+
cursor: ${X} !important;
|
|
1362
|
+
}
|
|
1363
|
+
`):this.cursorStyleElement&&(this.cursorStyleElement.textContent="")}};customElements.get("eyeglass-inspector")||customElements.define("eyeglass-inspector",w);function L(){if(document.querySelector("eyeglass-inspector")){console.warn("[eyeglass] Inspector already initialized");return}let s=document.createElement("eyeglass-inspector");document.body.appendChild(s),console.log("[eyeglass] Inspector initialized. Hover over elements and click to annotate.")}typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",L):L());export{w as EyeglassInspector,x as captureSnapshot,I as extractFrameworkInfo,L as initInspector};
|