playwright-locator-healer 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/CHANGELOG.md +71 -0
- package/LICENSE +21 -0
- package/README.md +338 -0
- package/USAGE.md +217 -0
- package/dist/healing/audit-log.d.ts +9 -0
- package/dist/healing/audit-log.d.ts.map +1 -0
- package/dist/healing/audit-log.js +22 -0
- package/dist/healing/audit-log.js.map +1 -0
- package/dist/healing/auto-fixture.d.ts +14 -0
- package/dist/healing/auto-fixture.d.ts.map +1 -0
- package/dist/healing/auto-fixture.js +430 -0
- package/dist/healing/auto-fixture.js.map +1 -0
- package/dist/healing/cache.d.ts +11 -0
- package/dist/healing/cache.d.ts.map +1 -0
- package/dist/healing/cache.js +128 -0
- package/dist/healing/cache.js.map +1 -0
- package/dist/healing/circuit-breaker.d.ts +11 -0
- package/dist/healing/circuit-breaker.d.ts.map +1 -0
- package/dist/healing/circuit-breaker.js +34 -0
- package/dist/healing/circuit-breaker.js.map +1 -0
- package/dist/healing/cost-tracker.d.ts +30 -0
- package/dist/healing/cost-tracker.d.ts.map +1 -0
- package/dist/healing/cost-tracker.js +101 -0
- package/dist/healing/cost-tracker.js.map +1 -0
- package/dist/healing/dom-extractor.d.ts +9 -0
- package/dist/healing/dom-extractor.d.ts.map +1 -0
- package/dist/healing/dom-extractor.js +268 -0
- package/dist/healing/dom-extractor.js.map +1 -0
- package/dist/healing/errors.d.ts +33 -0
- package/dist/healing/errors.d.ts.map +1 -0
- package/dist/healing/errors.js +40 -0
- package/dist/healing/errors.js.map +1 -0
- package/dist/healing/heal/caller-context.d.ts +8 -0
- package/dist/healing/heal/caller-context.d.ts.map +1 -0
- package/dist/healing/heal/caller-context.js +46 -0
- package/dist/healing/heal/caller-context.js.map +1 -0
- package/dist/healing/heal/orchestrator-helpers.d.ts +84 -0
- package/dist/healing/heal/orchestrator-helpers.d.ts.map +1 -0
- package/dist/healing/heal/orchestrator-helpers.js +117 -0
- package/dist/healing/heal/orchestrator-helpers.js.map +1 -0
- package/dist/healing/heal/orchestrator.d.ts +47 -0
- package/dist/healing/heal/orchestrator.d.ts.map +1 -0
- package/dist/healing/heal/orchestrator.js +644 -0
- package/dist/healing/heal/orchestrator.js.map +1 -0
- package/dist/healing/heal/playwright-code.d.ts +26 -0
- package/dist/healing/heal/playwright-code.d.ts.map +1 -0
- package/dist/healing/heal/playwright-code.js +134 -0
- package/dist/healing/heal/playwright-code.js.map +1 -0
- package/dist/healing/heal/preflight.d.ts +8 -0
- package/dist/healing/heal/preflight.d.ts.map +1 -0
- package/dist/healing/heal/preflight.js +77 -0
- package/dist/healing/heal/preflight.js.map +1 -0
- package/dist/healing/heal/prompt.d.ts +9 -0
- package/dist/healing/heal/prompt.d.ts.map +1 -0
- package/dist/healing/heal/prompt.js +22 -0
- package/dist/healing/heal/prompt.js.map +1 -0
- package/dist/healing/heal/report.d.ts +11 -0
- package/dist/healing/heal/report.d.ts.map +1 -0
- package/dist/healing/heal/report.js +28 -0
- package/dist/healing/heal/report.js.map +1 -0
- package/dist/healing/heal/source-trace.d.ts +17 -0
- package/dist/healing/heal/source-trace.d.ts.map +1 -0
- package/dist/healing/heal/source-trace.js +59 -0
- package/dist/healing/heal/source-trace.js.map +1 -0
- package/dist/healing/index.d.ts +6 -0
- package/dist/healing/index.d.ts.map +1 -0
- package/dist/healing/index.js +3 -0
- package/dist/healing/index.js.map +1 -0
- package/dist/healing/llm-client.d.ts +58 -0
- package/dist/healing/llm-client.d.ts.map +1 -0
- package/dist/healing/llm-client.js +258 -0
- package/dist/healing/llm-client.js.map +1 -0
- package/dist/healing/logger.d.ts +18 -0
- package/dist/healing/logger.d.ts.map +1 -0
- package/dist/healing/logger.js +38 -0
- package/dist/healing/logger.js.map +1 -0
- package/dist/healing/models.d.ts +26 -0
- package/dist/healing/models.d.ts.map +1 -0
- package/dist/healing/models.js +109 -0
- package/dist/healing/models.js.map +1 -0
- package/dist/healing/overlay/bridge.d.ts +46 -0
- package/dist/healing/overlay/bridge.d.ts.map +1 -0
- package/dist/healing/overlay/bridge.js +2 -0
- package/dist/healing/overlay/bridge.js.map +1 -0
- package/dist/healing/overlay/dock.css.d.ts +2 -0
- package/dist/healing/overlay/dock.css.d.ts.map +1 -0
- package/dist/healing/overlay/dock.css.js +448 -0
- package/dist/healing/overlay/dock.css.js.map +1 -0
- package/dist/healing/overlay/dock.html.d.ts +46 -0
- package/dist/healing/overlay/dock.html.d.ts.map +1 -0
- package/dist/healing/overlay/dock.html.js +248 -0
- package/dist/healing/overlay/dock.html.js.map +1 -0
- package/dist/healing/overlay/drag.d.ts +17 -0
- package/dist/healing/overlay/drag.d.ts.map +1 -0
- package/dist/healing/overlay/drag.js +68 -0
- package/dist/healing/overlay/drag.js.map +1 -0
- package/dist/healing/overlay/inject.d.ts +41 -0
- package/dist/healing/overlay/inject.d.ts.map +1 -0
- package/dist/healing/overlay/inject.js +277 -0
- package/dist/healing/overlay/inject.js.map +1 -0
- package/dist/healing/overlay/keybinds.d.ts +33 -0
- package/dist/healing/overlay/keybinds.d.ts.map +1 -0
- package/dist/healing/overlay/keybinds.js +105 -0
- package/dist/healing/overlay/keybinds.js.map +1 -0
- package/dist/healing/prompts/heal-v21.d.ts +8 -0
- package/dist/healing/prompts/heal-v21.d.ts.map +1 -0
- package/dist/healing/prompts/heal-v21.js +204 -0
- package/dist/healing/prompts/heal-v21.js.map +1 -0
- package/dist/healing/retry-policy.d.ts +37 -0
- package/dist/healing/retry-policy.d.ts.map +1 -0
- package/dist/healing/retry-policy.js +46 -0
- package/dist/healing/retry-policy.js.map +1 -0
- package/dist/healing/session-cost.d.ts +44 -0
- package/dist/healing/session-cost.d.ts.map +1 -0
- package/dist/healing/session-cost.js +95 -0
- package/dist/healing/session-cost.js.map +1 -0
- package/dist/healing/test-fixture.d.ts +9 -0
- package/dist/healing/test-fixture.d.ts.map +1 -0
- package/dist/healing/test-fixture.js +37 -0
- package/dist/healing/test-fixture.js.map +1 -0
- package/dist/healing/types.d.ts +399 -0
- package/dist/healing/types.d.ts.map +1 -0
- package/dist/healing/types.js +162 -0
- package/dist/healing/types.js.map +1 -0
- package/dist/healing/validator.d.ts +64 -0
- package/dist/healing/validator.d.ts.map +1 -0
- package/dist/healing/validator.js +286 -0
- package/dist/healing/validator.js.map +1 -0
- package/dist/scripts/heal-report.d.ts +23 -0
- package/dist/scripts/heal-report.d.ts.map +1 -0
- package/dist/scripts/heal-report.js +106 -0
- package/dist/scripts/heal-report.js.map +1 -0
- package/dist/scripts/init.d.ts +3 -0
- package/dist/scripts/init.d.ts.map +1 -0
- package/dist/scripts/init.js +132 -0
- package/dist/scripts/init.js.map +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
export const DOCK_CSS = `
|
|
2
|
+
:host { all: initial; }
|
|
3
|
+
:host *, :host *::before, :host *::after { box-sizing: border-box; }
|
|
4
|
+
|
|
5
|
+
/* ───────────────────────────────────────────────────────────────────────
|
|
6
|
+
Heal Dock — refined dark dev panel. Muted palette, single cyan accent,
|
|
7
|
+
readable for long sessions. Comfortable contrast, never strident.
|
|
8
|
+
Fixed 380×560, 4 sticky zones.
|
|
9
|
+
─────────────────────────────────────────────────────────────────────── */
|
|
10
|
+
|
|
11
|
+
:host {
|
|
12
|
+
/* Color tokens — VS Code-style slate-blue dark theme.
|
|
13
|
+
Background pulled off pure black to ease eye strain. */
|
|
14
|
+
--bg-base: #1e293b; /* slate-800 — main panel bg */
|
|
15
|
+
--bg-surface: #293548; /* head + footer */
|
|
16
|
+
--bg-elevated: #334155; /* slate-700 — buttons */
|
|
17
|
+
--bg-inset: #172033; /* code blocks, textarea */
|
|
18
|
+
|
|
19
|
+
--border-subtle: #3b4456;
|
|
20
|
+
--border-medium: #475569; /* slate-600 */
|
|
21
|
+
--border-strong: #64748b; /* slate-500 */
|
|
22
|
+
|
|
23
|
+
--fg-primary: #f1f5f9; /* slate-100 — primary text */
|
|
24
|
+
--fg-secondary: #cbd5e1; /* slate-300 */
|
|
25
|
+
--fg-muted: #94a3b8; /* slate-400 */
|
|
26
|
+
--fg-faint: #64748b; /* slate-500 */
|
|
27
|
+
|
|
28
|
+
--accent: #60a5fa; /* blue-400 — VS Code-style blue */
|
|
29
|
+
--accent-dim: #3b82f6;
|
|
30
|
+
--accent-bg: rgba(96, 165, 250, 0.10);
|
|
31
|
+
--accent-border: rgba(96, 165, 250, 0.32);
|
|
32
|
+
|
|
33
|
+
--success: #86efac; /* emerald-300 */
|
|
34
|
+
--success-bg: rgba(134, 239, 172, 0.10);
|
|
35
|
+
--success-border: rgba(134, 239, 172, 0.30);
|
|
36
|
+
|
|
37
|
+
--warn: #fde68a; /* amber-200 — failing-line highlight */
|
|
38
|
+
--warn-bg: rgba(253, 230, 138, 0.08);
|
|
39
|
+
--warn-border: rgba(253, 230, 138, 0.36);
|
|
40
|
+
|
|
41
|
+
--danger: #fca5a5; /* rose-300 */
|
|
42
|
+
--danger-bg: rgba(252, 165, 165, 0.10);
|
|
43
|
+
--danger-border: rgba(252, 165, 165, 0.32);
|
|
44
|
+
|
|
45
|
+
--shadow-soft: 0 2px 4px rgba(15,23,42,0.3), 0 8px 24px rgba(15,23,42,0.4);
|
|
46
|
+
--shadow-card: 0 0 0 1px rgba(255,255,255,0.03), 0 4px 16px rgba(15,23,42,0.5);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dock {
|
|
50
|
+
position: fixed; bottom: 16px; right: 16px;
|
|
51
|
+
width: 380px; height: 580px;
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-template-rows: auto auto auto 1fr auto;
|
|
54
|
+
background: var(--bg-base);
|
|
55
|
+
border: 1px solid var(--border-subtle);
|
|
56
|
+
border-radius: 8px;
|
|
57
|
+
box-shadow: var(--shadow-soft);
|
|
58
|
+
font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
|
|
59
|
+
color: var(--fg-primary);
|
|
60
|
+
z-index: 2147483647;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
font-feature-settings: "ss01","ss02","cv11";
|
|
63
|
+
font-variant-ligatures: contextual;
|
|
64
|
+
}
|
|
65
|
+
.dock.dragging { opacity: 0.94; }
|
|
66
|
+
.dock.err { border-color: var(--danger-border); }
|
|
67
|
+
|
|
68
|
+
/* ─── Zone 1 — status bar ─── */
|
|
69
|
+
.statusbar {
|
|
70
|
+
display: flex; align-items: center; gap: 8px;
|
|
71
|
+
padding: 7px 14px; height: 28px;
|
|
72
|
+
background: var(--bg-inset);
|
|
73
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
74
|
+
font-size: 10px; letter-spacing: .1em;
|
|
75
|
+
color: var(--fg-muted);
|
|
76
|
+
border-radius: 8px 8px 0 0;
|
|
77
|
+
}
|
|
78
|
+
.statusbar .sb-title {
|
|
79
|
+
color: var(--accent); font-weight: 600;
|
|
80
|
+
letter-spacing: .18em; text-transform: uppercase;
|
|
81
|
+
}
|
|
82
|
+
.statusbar .sb-sep { color: var(--fg-faint); }
|
|
83
|
+
.statusbar .sb-state {
|
|
84
|
+
color: var(--fg-primary); font-weight: 500;
|
|
85
|
+
letter-spacing: .12em; text-transform: uppercase;
|
|
86
|
+
}
|
|
87
|
+
.statusbar .sb-cost { color: var(--accent); margin-left: auto; }
|
|
88
|
+
.statusbar .sb-calls { color: var(--fg-secondary); }
|
|
89
|
+
.statusbar #heal-elapsed { color: var(--warn); }
|
|
90
|
+
.statusbar .sb-model {
|
|
91
|
+
color: var(--accent); font-size: 9px;
|
|
92
|
+
font-weight: 500; letter-spacing: .06em; text-transform: none;
|
|
93
|
+
}
|
|
94
|
+
.statusbar-day {
|
|
95
|
+
height: 22px;
|
|
96
|
+
background: rgba(96, 165, 250, 0.04);
|
|
97
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
98
|
+
font-size: 9px; letter-spacing: .12em;
|
|
99
|
+
border-radius: 0;
|
|
100
|
+
}
|
|
101
|
+
.statusbar-day .sb-day-label {
|
|
102
|
+
color: var(--fg-muted); font-weight: 600; letter-spacing: .22em;
|
|
103
|
+
}
|
|
104
|
+
.statusbar-day .sb-cost { color: var(--accent); margin-left: 0; }
|
|
105
|
+
|
|
106
|
+
/* ─── Zone 2 — head / drag handle ─── */
|
|
107
|
+
.head {
|
|
108
|
+
display: flex; align-items: center; gap: 10px;
|
|
109
|
+
padding: 10px 14px; height: 42px;
|
|
110
|
+
background: var(--bg-surface);
|
|
111
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
112
|
+
cursor: move; user-select: none;
|
|
113
|
+
}
|
|
114
|
+
.dot {
|
|
115
|
+
width: 8px; height: 8px;
|
|
116
|
+
background: var(--accent);
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
box-shadow: 0 0 6px rgba(96, 165, 250, 0.55);
|
|
119
|
+
}
|
|
120
|
+
.dock.err .dot {
|
|
121
|
+
background: var(--danger);
|
|
122
|
+
box-shadow: 0 0 6px rgba(252, 165, 165, 0.55);
|
|
123
|
+
}
|
|
124
|
+
.title {
|
|
125
|
+
font-weight: 600; font-size: 11px;
|
|
126
|
+
letter-spacing: .2em; text-transform: uppercase;
|
|
127
|
+
color: var(--fg-primary);
|
|
128
|
+
}
|
|
129
|
+
.stage {
|
|
130
|
+
margin-left: auto;
|
|
131
|
+
font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
|
|
132
|
+
color: var(--fg-muted);
|
|
133
|
+
display: inline-flex; gap: 6px; align-items: center;
|
|
134
|
+
}
|
|
135
|
+
.stage b { color: var(--accent); font-weight: 600; }
|
|
136
|
+
.drag-grip {
|
|
137
|
+
margin-left: 4px;
|
|
138
|
+
color: var(--fg-faint); font-size: 10px;
|
|
139
|
+
letter-spacing: 1px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* ─── Zone 3 — body (scrollable) ─── */
|
|
143
|
+
.body {
|
|
144
|
+
padding: 14px;
|
|
145
|
+
overflow-y: auto; overflow-x: hidden;
|
|
146
|
+
display: grid; gap: 12px; align-content: start;
|
|
147
|
+
background: var(--bg-base);
|
|
148
|
+
scrollbar-width: thin;
|
|
149
|
+
scrollbar-color: var(--border-medium) transparent;
|
|
150
|
+
}
|
|
151
|
+
.body::-webkit-scrollbar { width: 6px; }
|
|
152
|
+
.body::-webkit-scrollbar-track { background: transparent; }
|
|
153
|
+
.body::-webkit-scrollbar-thumb {
|
|
154
|
+
background: var(--border-medium);
|
|
155
|
+
border-radius: 3px;
|
|
156
|
+
}
|
|
157
|
+
.body::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
|
|
158
|
+
|
|
159
|
+
/* ─── Zone 4 — footer (sticky actions) ─── */
|
|
160
|
+
.footer {
|
|
161
|
+
display: flex; gap: 8px; flex-wrap: wrap;
|
|
162
|
+
padding: 12px 14px;
|
|
163
|
+
background: var(--bg-surface);
|
|
164
|
+
border-top: 1px solid var(--border-subtle);
|
|
165
|
+
border-radius: 0 0 8px 8px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ─── Rows / labels / values ─── */
|
|
169
|
+
.row { display: grid; gap: 6px; }
|
|
170
|
+
.label {
|
|
171
|
+
font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
|
|
172
|
+
color: var(--fg-muted); font-weight: 600;
|
|
173
|
+
}
|
|
174
|
+
.value {
|
|
175
|
+
font-size: 12px; line-height: 1.55;
|
|
176
|
+
color: var(--fg-primary); word-break: break-all;
|
|
177
|
+
}
|
|
178
|
+
.value.code {
|
|
179
|
+
background: var(--bg-inset);
|
|
180
|
+
border: 1px solid var(--border-subtle);
|
|
181
|
+
border-radius: 4px;
|
|
182
|
+
padding: 8px 10px;
|
|
183
|
+
font-size: 12px; line-height: 1.5;
|
|
184
|
+
color: var(--fg-primary);
|
|
185
|
+
}
|
|
186
|
+
.value.code .ok { color: var(--success); }
|
|
187
|
+
.value.code .bad { color: var(--danger); }
|
|
188
|
+
.value.code.dim { opacity: 0.6; font-size: 11px; }
|
|
189
|
+
.value.code.code-block {
|
|
190
|
+
margin: 0;
|
|
191
|
+
white-space: pre-wrap;
|
|
192
|
+
word-break: break-word;
|
|
193
|
+
color: var(--accent);
|
|
194
|
+
border-left: 2px solid var(--accent);
|
|
195
|
+
background: var(--bg-inset);
|
|
196
|
+
font-weight: 500;
|
|
197
|
+
line-height: 1.6;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* ─── Failed-line block (only pick + intent) ─── */
|
|
201
|
+
.failed-line {
|
|
202
|
+
display: grid; gap: 10px;
|
|
203
|
+
padding: 12px;
|
|
204
|
+
background: var(--bg-surface);
|
|
205
|
+
border: 1px solid var(--border-subtle);
|
|
206
|
+
border-left: 2px solid var(--accent);
|
|
207
|
+
border-radius: 4px;
|
|
208
|
+
}
|
|
209
|
+
.fl-head {
|
|
210
|
+
display: flex; align-items: center; gap: 8px;
|
|
211
|
+
font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
|
|
212
|
+
}
|
|
213
|
+
.fl-tag {
|
|
214
|
+
color: var(--accent); font-weight: 700;
|
|
215
|
+
border: 1px solid var(--accent-border);
|
|
216
|
+
background: var(--accent-bg);
|
|
217
|
+
padding: 2px 6px;
|
|
218
|
+
border-radius: 3px;
|
|
219
|
+
}
|
|
220
|
+
.fl-loc {
|
|
221
|
+
color: var(--fg-muted); font-family: inherit;
|
|
222
|
+
text-transform: none; letter-spacing: 0; font-size: 10px;
|
|
223
|
+
margin-left: auto; word-break: break-all; text-align: right;
|
|
224
|
+
font-weight: 400;
|
|
225
|
+
}
|
|
226
|
+
.fl-code {
|
|
227
|
+
font-family: inherit; font-size: 12px; font-weight: 500;
|
|
228
|
+
color: var(--warn);
|
|
229
|
+
background: var(--warn-bg);
|
|
230
|
+
border-left: 2px solid var(--warn-border);
|
|
231
|
+
padding: 8px 10px; line-height: 1.55;
|
|
232
|
+
border-radius: 0 3px 3px 0;
|
|
233
|
+
white-space: pre-wrap; word-break: break-word;
|
|
234
|
+
}
|
|
235
|
+
.fl-meta { display: grid; gap: 6px; }
|
|
236
|
+
.fl-meta-row {
|
|
237
|
+
display: flex; align-items: baseline; gap: 10px;
|
|
238
|
+
flex-wrap: wrap; font-size: 11px;
|
|
239
|
+
}
|
|
240
|
+
.fl-meta-label {
|
|
241
|
+
font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
|
|
242
|
+
color: var(--fg-muted); font-weight: 600;
|
|
243
|
+
min-width: 60px;
|
|
244
|
+
}
|
|
245
|
+
.fl-mono {
|
|
246
|
+
font-family: inherit; font-size: 11px;
|
|
247
|
+
color: var(--danger);
|
|
248
|
+
background: var(--danger-bg);
|
|
249
|
+
padding: 2px 6px;
|
|
250
|
+
border-radius: 3px;
|
|
251
|
+
word-break: break-all;
|
|
252
|
+
}
|
|
253
|
+
.fl-desc {
|
|
254
|
+
font-size: 11px;
|
|
255
|
+
color: var(--fg-primary);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* ─── Intent textarea ─── */
|
|
259
|
+
textarea.intent {
|
|
260
|
+
width: 100%; min-height: 100px; resize: vertical;
|
|
261
|
+
background: var(--bg-inset);
|
|
262
|
+
border: 1px solid var(--border-subtle);
|
|
263
|
+
border-left: 2px solid var(--accent);
|
|
264
|
+
border-radius: 4px;
|
|
265
|
+
color: var(--fg-primary);
|
|
266
|
+
font-family: inherit; font-size: 12px; line-height: 1.6;
|
|
267
|
+
padding: 10px 12px;
|
|
268
|
+
outline: none; caret-color: var(--accent);
|
|
269
|
+
transition: border-color 120ms ease, background 120ms ease;
|
|
270
|
+
}
|
|
271
|
+
textarea.intent::placeholder { color: var(--fg-faint); }
|
|
272
|
+
textarea.intent:focus {
|
|
273
|
+
border-color: var(--accent);
|
|
274
|
+
background: var(--bg-elevated);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/* ─── CTA / hints ─── */
|
|
278
|
+
.cta {
|
|
279
|
+
border: 1px dashed var(--border-medium);
|
|
280
|
+
padding: 18px 12px; text-align: center;
|
|
281
|
+
font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
|
|
282
|
+
color: var(--accent); font-weight: 600;
|
|
283
|
+
background: var(--accent-bg);
|
|
284
|
+
border-radius: 4px;
|
|
285
|
+
}
|
|
286
|
+
.hint {
|
|
287
|
+
font-size: 10px; color: var(--fg-muted); line-height: 1.55;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* ─── Keys / buttons ─── */
|
|
291
|
+
.key, button.key {
|
|
292
|
+
display: inline-flex; align-items: center; gap: 7px;
|
|
293
|
+
font-family: inherit; font-size: 10px;
|
|
294
|
+
letter-spacing: .14em; text-transform: uppercase;
|
|
295
|
+
color: var(--fg-secondary);
|
|
296
|
+
background: var(--bg-elevated);
|
|
297
|
+
border: 1px solid var(--border-subtle);
|
|
298
|
+
border-radius: 4px;
|
|
299
|
+
padding: 7px 11px;
|
|
300
|
+
cursor: pointer;
|
|
301
|
+
transition: all 120ms ease;
|
|
302
|
+
font-weight: 500;
|
|
303
|
+
}
|
|
304
|
+
button.key:hover {
|
|
305
|
+
color: var(--fg-primary);
|
|
306
|
+
border-color: var(--border-strong);
|
|
307
|
+
background: var(--bg-surface);
|
|
308
|
+
}
|
|
309
|
+
button.key:active { transform: translateY(0.5px); }
|
|
310
|
+
button.key:focus { outline: none; }
|
|
311
|
+
button.key:focus-visible {
|
|
312
|
+
outline: 1px solid var(--accent);
|
|
313
|
+
outline-offset: 2px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
button.key.accept {
|
|
317
|
+
color: var(--success);
|
|
318
|
+
border-color: var(--success-border);
|
|
319
|
+
}
|
|
320
|
+
button.key.accept:hover {
|
|
321
|
+
background: var(--success-bg);
|
|
322
|
+
border-color: var(--success);
|
|
323
|
+
color: var(--fg-primary);
|
|
324
|
+
}
|
|
325
|
+
button.key.accept .kbd {
|
|
326
|
+
color: var(--bg-base); background: var(--success);
|
|
327
|
+
border-color: var(--success);
|
|
328
|
+
font-weight: 700;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
button.key.reject {
|
|
332
|
+
color: var(--danger);
|
|
333
|
+
border-color: var(--danger-border);
|
|
334
|
+
}
|
|
335
|
+
button.key.reject:hover {
|
|
336
|
+
background: var(--danger-bg);
|
|
337
|
+
border-color: var(--danger);
|
|
338
|
+
color: var(--fg-primary);
|
|
339
|
+
}
|
|
340
|
+
button.key.reject .kbd {
|
|
341
|
+
color: var(--danger); border-color: var(--danger-border);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
button.key:disabled {
|
|
345
|
+
opacity: 0.4; cursor: not-allowed;
|
|
346
|
+
}
|
|
347
|
+
button.key:disabled:hover {
|
|
348
|
+
background: var(--bg-elevated);
|
|
349
|
+
border-color: var(--border-subtle);
|
|
350
|
+
color: var(--fg-secondary);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.kbd {
|
|
354
|
+
display: inline-block;
|
|
355
|
+
min-width: 22px; padding: 2px 6px;
|
|
356
|
+
font-size: 9px; font-weight: 600;
|
|
357
|
+
text-align: center;
|
|
358
|
+
border: 1px solid var(--border-medium);
|
|
359
|
+
background: var(--bg-inset);
|
|
360
|
+
color: var(--fg-primary);
|
|
361
|
+
border-radius: 3px;
|
|
362
|
+
letter-spacing: 0;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* ─── Chips / pills ─── */
|
|
366
|
+
.chip {
|
|
367
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
368
|
+
font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
|
|
369
|
+
padding: 2px 6px;
|
|
370
|
+
border: 1px solid var(--success-border);
|
|
371
|
+
background: var(--success-bg);
|
|
372
|
+
color: var(--success); font-weight: 600;
|
|
373
|
+
margin-left: 6px;
|
|
374
|
+
border-radius: 3px;
|
|
375
|
+
}
|
|
376
|
+
.chip.bad {
|
|
377
|
+
color: var(--danger);
|
|
378
|
+
border-color: var(--danger-border);
|
|
379
|
+
background: var(--danger-bg);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/* ─── Busy state ─── */
|
|
383
|
+
.dock.busy textarea.intent {
|
|
384
|
+
opacity: 0.55; pointer-events: none;
|
|
385
|
+
}
|
|
386
|
+
.dock.busy button.key:not([data-act="cancel-llm"]):not([data-act="cancel"]) {
|
|
387
|
+
opacity: 0.35; pointer-events: none;
|
|
388
|
+
}
|
|
389
|
+
.dot.pulse {
|
|
390
|
+
animation: dot-pulse 1.4s ease-in-out infinite alternate;
|
|
391
|
+
}
|
|
392
|
+
@keyframes dot-pulse {
|
|
393
|
+
from { box-shadow: 0 0 4px rgba(96, 165, 250, 0.35); opacity: 0.6; }
|
|
394
|
+
to { box-shadow: 0 0 12px rgba(96, 165, 250, 0.85); opacity: 1; }
|
|
395
|
+
}
|
|
396
|
+
.busy-bar {
|
|
397
|
+
position: absolute; left: 0; right: 0; bottom: 56px;
|
|
398
|
+
height: 1px; background: var(--border-subtle); overflow: hidden;
|
|
399
|
+
}
|
|
400
|
+
.busy-fill {
|
|
401
|
+
position: absolute; height: 100%; width: 30%;
|
|
402
|
+
background: linear-gradient(90deg, transparent, var(--accent), transparent);
|
|
403
|
+
animation: busy-slide 1.6s ease-in-out infinite;
|
|
404
|
+
opacity: 0.6;
|
|
405
|
+
}
|
|
406
|
+
@keyframes busy-slide {
|
|
407
|
+
0% { left: -30%; }
|
|
408
|
+
100% { left: 100%; }
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/* ─── Page-level highlight (target preview) ─── */
|
|
412
|
+
.hl-outline {
|
|
413
|
+
outline: 2px solid var(--accent) !important;
|
|
414
|
+
outline-offset: 2px;
|
|
415
|
+
background-color: var(--accent-bg) !important;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* ─── Pick-preview pane ─── */
|
|
419
|
+
.preview-header {
|
|
420
|
+
font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
|
|
421
|
+
color: var(--accent); font-weight: 700;
|
|
422
|
+
padding-bottom: 6px;
|
|
423
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
424
|
+
}
|
|
425
|
+
.preview-table { display: grid; gap: 5px; }
|
|
426
|
+
.preview-row {
|
|
427
|
+
display: flex; align-items: baseline; gap: 8px;
|
|
428
|
+
font-size: 11px; line-height: 1.5;
|
|
429
|
+
}
|
|
430
|
+
.preview-key {
|
|
431
|
+
font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
|
|
432
|
+
color: var(--fg-muted); font-weight: 600;
|
|
433
|
+
min-width: 110px; flex-shrink: 0;
|
|
434
|
+
}
|
|
435
|
+
.preview-val {
|
|
436
|
+
color: var(--fg-primary); word-break: break-all;
|
|
437
|
+
}
|
|
438
|
+
.preview-val.code-inline {
|
|
439
|
+
font-family: inherit; font-size: 11px;
|
|
440
|
+
background: var(--bg-inset);
|
|
441
|
+
border: 1px solid var(--border-subtle);
|
|
442
|
+
border-radius: 3px;
|
|
443
|
+
padding: 1px 5px;
|
|
444
|
+
color: var(--accent);
|
|
445
|
+
}
|
|
446
|
+
.preview-val.dim { color: var(--fg-faint); font-style: italic; }
|
|
447
|
+
`;
|
|
448
|
+
//# sourceMappingURL=dock.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dock.css.js","sourceRoot":"","sources":["../../../healing/overlay/dock.css.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8bvB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SourceSnippet } from '../heal/source-trace.js';
|
|
2
|
+
export type DockStage = 'pick' | 'pick-preview' | 'intent' | 'confirm' | 'retry' | 'broaden';
|
|
3
|
+
/** Preview info computed from the picked element — shown in the PICK-PREVIEW stage. */
|
|
4
|
+
export interface PickPreviewInfo {
|
|
5
|
+
/** Lowercase tag name, e.g. `button`. */
|
|
6
|
+
tag: string;
|
|
7
|
+
/** Explicit or implicit ARIA role. */
|
|
8
|
+
role: string;
|
|
9
|
+
/** aria-label or visible text, trimmed to 80 chars. `(no accessible name)` if empty. */
|
|
10
|
+
accessibleName: string;
|
|
11
|
+
/** First 60 chars of textContent, single-line trimmed. */
|
|
12
|
+
text: string;
|
|
13
|
+
/** Stable client-side handle preview: `#id`, `[data-testid]`, `[aria-label]`, `role+name`, or empty. */
|
|
14
|
+
stableHandle: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DockState {
|
|
17
|
+
stage: DockStage;
|
|
18
|
+
originalSelector?: string;
|
|
19
|
+
action?: string;
|
|
20
|
+
callSite?: string;
|
|
21
|
+
pomFrame?: string;
|
|
22
|
+
pickedHtml?: string;
|
|
23
|
+
intentText?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
proposedSelector?: string;
|
|
26
|
+
proposedCode?: string;
|
|
27
|
+
matchCount?: number;
|
|
28
|
+
errorReason?: string;
|
|
29
|
+
attempt?: number;
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
loadingLabel?: string;
|
|
32
|
+
sourceSnippet?: SourceSnippet | null;
|
|
33
|
+
round?: number;
|
|
34
|
+
message?: string;
|
|
35
|
+
/** Populated only when stage === 'pick-preview'. */
|
|
36
|
+
pickPreview?: PickPreviewInfo;
|
|
37
|
+
statusLabel?: string;
|
|
38
|
+
sessionCostUsd?: number;
|
|
39
|
+
llmCallCount?: number;
|
|
40
|
+
llmStartedAt?: number;
|
|
41
|
+
todayCostUsd?: number;
|
|
42
|
+
todayCallCount?: number;
|
|
43
|
+
modelName?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function renderDock(s: DockState): string;
|
|
46
|
+
//# sourceMappingURL=dock.html.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dock.html.d.ts","sourceRoot":"","sources":["../../../healing/overlay/dock.html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE7F,uFAAuF;AACvF,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,wFAAwF;IACxF,cAAc,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,wGAAwG;IACxG,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD,wBAAgB,UAAU,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAc/C"}
|