browserpaw 0.0.0-stage → 5.0.1
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/LICENSE +681 -0
- package/README.md +4 -2
- package/dist/v5/cli-files.cjs +147 -0
- package/dist/v5/cli.cjs +4900 -0
- package/dist/v5/extension/assets/popup-Djl4pI1R.css +359 -0
- package/dist/v5/extension/background.js +39389 -0
- package/dist/v5/extension/browserpaw-build.json +191 -0
- package/dist/v5/extension/chunks/popup-BSqTH70w.js +6575 -0
- package/dist/v5/extension/content-scripts/agent-cursor.js +1475 -0
- package/dist/v5/extension/icon/128.png +0 -0
- package/dist/v5/extension/icon/16.png +0 -0
- package/dist/v5/extension/icon/32.png +0 -0
- package/dist/v5/extension/icon/48.png +0 -0
- package/dist/v5/extension/icon/96.png +0 -0
- package/dist/v5/extension/images/cursor-chat.png +0 -0
- package/dist/v5/extension/inject-scripts/accessibility-tree-helper.js +2031 -0
- package/dist/v5/extension/inject-scripts/keyboard-helper.js +412 -0
- package/dist/v5/extension/inject-scripts/network-helper.js +378 -0
- package/dist/v5/extension/inject-scripts/screenshot-helper.js +449 -0
- package/dist/v5/extension/inpage-engine.js +9437 -0
- package/dist/v5/extension/manifest.json +1 -0
- package/dist/v5/extension/popup.html +14 -0
- package/dist/v5/host.cjs +19813 -0
- package/dist/v5/recipes/bilibili-popular-videos.json +364 -0
- package/dist/v5/recipes/bilibili-video-detail.json +395 -0
- package/dist/v5/recipes/developer.mozilla.org.md +15 -0
- package/dist/v5/recipes/github-issue-thread.json +313 -0
- package/dist/v5/recipes/github-releases.json +218 -0
- package/dist/v5/recipes/github-repo-readme.json +306 -0
- package/dist/v5/recipes/github-repo-search.json +313 -0
- package/dist/v5/recipes/mdn-search.json +219 -0
- package/dist/v5/recipes/npm-compare.json +458 -0
- package/dist/v5/recipes/reddit-post-read.json +289 -0
- package/dist/v5/recipes/reddit-subreddit-posts.json +331 -0
- package/dist/v5/recipes/v2ex-node-topics.json +334 -0
- package/dist/v5/recipes/v2ex-topic-read.json +325 -0
- package/dist/v5/recipes/x-profile-posts.json +332 -0
- package/dist/v5/recipes/x-search-thread.json +293 -0
- package/dist/v5/recipes/x-visible-thread.json +260 -0
- package/dist/v5/recipes/youtube-search-videos.json +279 -0
- package/dist/v5/recipes/youtube-video-read.json +349 -0
- package/dist/v5/run_host.bat +7 -0
- package/dist/v5/run_host.sh +6 -0
- package/dist/v5/skill/browserpaw/SKILL.md +48 -0
- package/dist/v5/skill/browserpaw/assets/recipes/bilibili-popular-videos.json +364 -0
- package/dist/v5/skill/browserpaw/assets/recipes/bilibili-video-detail.json +395 -0
- package/dist/v5/skill/browserpaw/assets/recipes/developer.mozilla.org.md +15 -0
- package/dist/v5/skill/browserpaw/assets/recipes/github-issue-thread.json +313 -0
- package/dist/v5/skill/browserpaw/assets/recipes/github-releases.json +218 -0
- package/dist/v5/skill/browserpaw/assets/recipes/github-repo-readme.json +306 -0
- package/dist/v5/skill/browserpaw/assets/recipes/github-repo-search.json +313 -0
- package/dist/v5/skill/browserpaw/assets/recipes/mdn-search.json +219 -0
- package/dist/v5/skill/browserpaw/assets/recipes/npm-compare.json +458 -0
- package/dist/v5/skill/browserpaw/assets/recipes/reddit-post-read.json +289 -0
- package/dist/v5/skill/browserpaw/assets/recipes/reddit-subreddit-posts.json +331 -0
- package/dist/v5/skill/browserpaw/assets/recipes/v2ex-node-topics.json +334 -0
- package/dist/v5/skill/browserpaw/assets/recipes/v2ex-topic-read.json +325 -0
- package/dist/v5/skill/browserpaw/assets/recipes/x-profile-posts.json +332 -0
- package/dist/v5/skill/browserpaw/assets/recipes/x-search-thread.json +293 -0
- package/dist/v5/skill/browserpaw/assets/recipes/x-visible-thread.json +260 -0
- package/dist/v5/skill/browserpaw/assets/recipes/youtube-search-videos.json +279 -0
- package/dist/v5/skill/browserpaw/assets/recipes/youtube-video-read.json +349 -0
- package/dist/v5/skill/browserpaw/references/TROUBLESHOOTING.md +7 -0
- package/dist/v5/skill/browserpaw/references/TROUBLESHOOTING.zh-CN.md +5 -0
- package/dist/v5/skill/browserpaw/references/browser-data.md +33 -0
- package/dist/v5/skill/browserpaw/references/commands.md +103 -0
- package/dist/v5/skill/browserpaw/references/debugging.md +32 -0
- package/dist/v5/skill/browserpaw/references/recipe-contract.md +47 -0
- 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
|
+
}
|