browserpaw 0.0.0-stage → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +681 -0
  2. package/README.md +4 -2
  3. package/dist/v5/cli-files.cjs +147 -0
  4. package/dist/v5/cli.cjs +4028 -0
  5. package/dist/v5/extension/assets/popup-Djl4pI1R.css +359 -0
  6. package/dist/v5/extension/background.js +37712 -0
  7. package/dist/v5/extension/browserpaw-build.json +184 -0
  8. package/dist/v5/extension/chunks/popup-DjxqduQH.js +6542 -0
  9. package/dist/v5/extension/content-scripts/agent-cursor.js +1459 -0
  10. package/dist/v5/extension/icon/128.png +0 -0
  11. package/dist/v5/extension/icon/16.png +0 -0
  12. package/dist/v5/extension/icon/32.png +0 -0
  13. package/dist/v5/extension/icon/48.png +0 -0
  14. package/dist/v5/extension/icon/96.png +0 -0
  15. package/dist/v5/extension/images/cursor-chat.png +0 -0
  16. package/dist/v5/extension/inject-scripts/accessibility-tree-helper.js +1883 -0
  17. package/dist/v5/extension/inject-scripts/keyboard-helper.js +402 -0
  18. package/dist/v5/extension/inject-scripts/network-helper.js +213 -0
  19. package/dist/v5/extension/inject-scripts/screenshot-helper.js +408 -0
  20. package/dist/v5/extension/inpage-engine.js +9300 -0
  21. package/dist/v5/extension/manifest.json +1 -0
  22. package/dist/v5/extension/popup.html +14 -0
  23. package/dist/v5/host.cjs +19441 -0
  24. package/dist/v5/recipes/developer.mozilla.org.md +15 -0
  25. package/dist/v5/recipes/github-releases.json +177 -0
  26. package/dist/v5/recipes/mdn-search.json +174 -0
  27. package/dist/v5/recipes/npm-compare.json +456 -0
  28. package/dist/v5/recipes/x-search-thread.json +321 -0
  29. package/dist/v5/recipes/x-visible-thread.json +303 -0
  30. package/dist/v5/run_host.bat +7 -0
  31. package/dist/v5/run_host.sh +6 -0
  32. package/dist/v5/skill/browserpaw/SKILL.md +48 -0
  33. package/dist/v5/skill/browserpaw/assets/recipes/developer.mozilla.org.md +15 -0
  34. package/dist/v5/skill/browserpaw/assets/recipes/github-releases.json +177 -0
  35. package/dist/v5/skill/browserpaw/assets/recipes/mdn-search.json +174 -0
  36. package/dist/v5/skill/browserpaw/assets/recipes/npm-compare.json +456 -0
  37. package/dist/v5/skill/browserpaw/assets/recipes/x-search-thread.json +321 -0
  38. package/dist/v5/skill/browserpaw/assets/recipes/x-visible-thread.json +303 -0
  39. package/dist/v5/skill/browserpaw/references/TROUBLESHOOTING.md +7 -0
  40. package/dist/v5/skill/browserpaw/references/TROUBLESHOOTING.zh-CN.md +5 -0
  41. package/dist/v5/skill/browserpaw/references/browser-data.md +33 -0
  42. package/dist/v5/skill/browserpaw/references/commands.md +103 -0
  43. package/dist/v5/skill/browserpaw/references/debugging.md +32 -0
  44. package/dist/v5/skill/browserpaw/references/recipe-contract.md +46 -0
  45. package/package.json +67 -4
@@ -0,0 +1,359 @@
1
+ :root {
2
+ color-scheme: light;
3
+ font:
4
+ 12px/1.35 -apple-system,
5
+ BlinkMacSystemFont,
6
+ 'Segoe UI',
7
+ system-ui,
8
+ sans-serif;
9
+ color: #1f2937;
10
+ background: #fff;
11
+ -webkit-font-smoothing: antialiased;
12
+ --spring: cubic-bezier(0.34, 1.08, 0.64, 1);
13
+ }
14
+
15
+ * {
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ body {
20
+ width: 224px;
21
+ margin: 0;
22
+ }
23
+
24
+ :focus-visible {
25
+ outline: 2px solid #2563eb;
26
+ outline-offset: 2px;
27
+ }
28
+
29
+ button,
30
+ a {
31
+ color: inherit;
32
+ font: inherit;
33
+ }
34
+
35
+ button:not(:disabled),
36
+ a {
37
+ cursor: pointer;
38
+ }
39
+
40
+ .popup-shell {
41
+ padding: 14px 16px 10px;
42
+ user-select: none;
43
+ animation: enter 0.22s ease-out both;
44
+ }
45
+
46
+ /* Keep indicators and switches still until the stored state has been painted. */
47
+ .popup-shell:not(.settled),
48
+ .popup-shell:not(.settled) * {
49
+ transition: none !important;
50
+ }
51
+
52
+ .header,
53
+ .row,
54
+ .footer,
55
+ .mode-header {
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: space-between;
59
+ gap: 8px;
60
+ }
61
+
62
+ h1 {
63
+ margin: 0;
64
+ font-size: 16px;
65
+ letter-spacing: -0.03em;
66
+ }
67
+
68
+ .connection {
69
+ display: inline-flex;
70
+ align-items: center;
71
+ gap: 5px;
72
+ border-radius: 999px;
73
+ padding: 3px 8px;
74
+ color: #475569;
75
+ background: #f1f5f9;
76
+ font-size: 10px;
77
+ font-weight: 600;
78
+ transition:
79
+ color 0.2s ease,
80
+ background-color 0.2s ease;
81
+ }
82
+
83
+ .connection::before {
84
+ content: '';
85
+ width: 6px;
86
+ height: 6px;
87
+ border-radius: 50%;
88
+ background: currentColor;
89
+ }
90
+
91
+ .connection.checking::before {
92
+ animation: pulse 1.1s ease-in-out infinite;
93
+ }
94
+
95
+ .connection.online {
96
+ color: #047857;
97
+ background: #ecfdf5;
98
+ }
99
+
100
+ .connection.online::before {
101
+ box-shadow: 0 0 4px #10b98199;
102
+ }
103
+
104
+ .connection.offline,
105
+ .connection.unavailable {
106
+ color: #b45309;
107
+ background: #fffbeb;
108
+ }
109
+
110
+ .controls {
111
+ display: flex;
112
+ flex-direction: column;
113
+ gap: 10px;
114
+ min-inline-size: 0;
115
+ margin: 12px 0 8px;
116
+ padding: 0;
117
+ border: 0;
118
+ transition: opacity 0.2s ease;
119
+ }
120
+
121
+ .controls.pending {
122
+ opacity: 0.55;
123
+ }
124
+
125
+ .label {
126
+ font-size: 13px;
127
+ font-weight: 500;
128
+ }
129
+
130
+ .row {
131
+ height: 24px;
132
+ }
133
+
134
+ .switch {
135
+ width: 36px;
136
+ height: 20px;
137
+ padding: 2px;
138
+ border: 0;
139
+ border-radius: 999px;
140
+ background: #e5e7eb;
141
+ transition: background-color 0.2s ease;
142
+ }
143
+
144
+ .switch.active {
145
+ background: #10b981;
146
+ }
147
+
148
+ .knob {
149
+ display: block;
150
+ width: 16px;
151
+ height: 16px;
152
+ border-radius: 50%;
153
+ background: #fff;
154
+ box-shadow: 0 1px 2px #0003;
155
+ transition: transform 0.2s ease;
156
+ }
157
+
158
+ .switch.active .knob {
159
+ transform: translateX(16px);
160
+ }
161
+
162
+ .mode-row {
163
+ display: flex;
164
+ flex-direction: column;
165
+ gap: 6px;
166
+ padding-top: 10px;
167
+ border-top: 1px solid #f3f4f6;
168
+ }
169
+
170
+ .mode-header {
171
+ justify-content: flex-start;
172
+ gap: 5px;
173
+ height: 22px;
174
+ }
175
+
176
+ .cursor-hint {
177
+ width: 14px;
178
+ height: 14px;
179
+ object-fit: contain;
180
+ cursor: help;
181
+ filter: drop-shadow(0 1px 2px #0000001f);
182
+ transition: transform 0.2s var(--spring);
183
+ }
184
+
185
+ .cursor-hint:hover {
186
+ transform: scale(1.18);
187
+ }
188
+
189
+ .info {
190
+ display: inline-flex;
191
+ align-items: center;
192
+ justify-content: center;
193
+ width: 13px;
194
+ height: 13px;
195
+ border-radius: 50%;
196
+ color: #4b5563;
197
+ background: #e5e7eb;
198
+ font-size: 10px;
199
+ font-style: italic;
200
+ font-weight: 700;
201
+ line-height: 1;
202
+ cursor: help;
203
+ transition:
204
+ color 0.15s ease,
205
+ background-color 0.15s ease;
206
+ }
207
+
208
+ .info:hover {
209
+ color: #fff;
210
+ background: #3b82f6;
211
+ }
212
+
213
+ .segments {
214
+ position: relative;
215
+ display: flex;
216
+ height: 28px;
217
+ padding: 2px;
218
+ border-radius: 8px;
219
+ background: #f3f4f6;
220
+ }
221
+
222
+ .indicator {
223
+ position: absolute;
224
+ top: 2px;
225
+ bottom: 2px;
226
+ left: 2px;
227
+ border-radius: 6px;
228
+ background: #fff;
229
+ box-shadow: 0 1px 2px #00000014;
230
+ transition: transform 0.28s var(--spring);
231
+ }
232
+
233
+ .indicator.three {
234
+ width: calc((100% - 4px) / 3);
235
+ }
236
+
237
+ .indicator.two {
238
+ width: calc((100% - 4px) / 2);
239
+ }
240
+
241
+ .indicator.auto,
242
+ .indicator.window {
243
+ transform: translateX(100%);
244
+ }
245
+
246
+ .indicator.always {
247
+ transform: translateX(200%);
248
+ }
249
+
250
+ .indicator.two.tab {
251
+ transform: none;
252
+ }
253
+
254
+ .segments button {
255
+ position: relative;
256
+ z-index: 1;
257
+ flex: 1;
258
+ height: 24px;
259
+ border: 0;
260
+ background: transparent;
261
+ color: #6b7280;
262
+ font-size: 11px;
263
+ font-weight: 500;
264
+ transition: color 0.15s ease;
265
+ }
266
+
267
+ .segments button[aria-pressed='true'] {
268
+ color: #111827;
269
+ font-weight: 600;
270
+ }
271
+
272
+ .error {
273
+ margin: 0 0 8px;
274
+ color: #b91c1c;
275
+ font-size: 11px;
276
+ }
277
+
278
+ .footer {
279
+ padding-top: 8px;
280
+ border-top: 1px solid #f3f4f6;
281
+ }
282
+
283
+ .footer a {
284
+ text-decoration: none;
285
+ }
286
+
287
+ .repo,
288
+ .version {
289
+ position: relative;
290
+ display: inline-flex;
291
+ align-items: center;
292
+ min-height: 22px;
293
+ padding: 2px 6px;
294
+ border-radius: 6px;
295
+ color: #6b7280;
296
+ font-size: 10px;
297
+ font-variant-numeric: tabular-nums;
298
+ }
299
+
300
+ .repo {
301
+ gap: 4px;
302
+ margin-left: -6px;
303
+ transition: background-color 0.15s ease;
304
+ }
305
+
306
+ .repo:hover,
307
+ .version.update:hover {
308
+ background: #f3f4f6;
309
+ }
310
+
311
+ .repo svg {
312
+ width: 13px;
313
+ height: 13px;
314
+ }
315
+
316
+ .star {
317
+ color: #d97706;
318
+ transition: transform 0.25s var(--spring);
319
+ }
320
+
321
+ .repo:hover .star {
322
+ transform: rotate(72deg) scale(1.2);
323
+ }
324
+
325
+ .version.update::after {
326
+ position: absolute;
327
+ top: 0;
328
+ right: 0;
329
+ width: 6px;
330
+ height: 6px;
331
+ border: 1px solid #fff;
332
+ border-radius: 50%;
333
+ background: #dc2626;
334
+ content: '';
335
+ animation: pulse 1.6s ease-in-out infinite;
336
+ }
337
+
338
+ @keyframes enter {
339
+ from {
340
+ opacity: 0;
341
+ transform: translateY(4px);
342
+ }
343
+ }
344
+
345
+ @keyframes pulse {
346
+ 50% {
347
+ opacity: 0.35;
348
+ }
349
+ }
350
+
351
+ @media (prefers-reduced-motion: reduce) {
352
+ *,
353
+ *::before,
354
+ *::after {
355
+ animation-duration: 0.01ms !important;
356
+ animation-iteration-count: 1 !important;
357
+ transition-duration: 0.01ms !important;
358
+ }
359
+ }