@jackwener/opencli 1.5.8 → 1.6.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 (220) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +35 -1
  3. package/README.zh-CN.md +17 -1
  4. package/SKILL.md +31 -851
  5. package/autoresearch/baseline-browse.txt +1 -0
  6. package/autoresearch/baseline-skill.txt +1 -0
  7. package/autoresearch/browse-tasks.json +688 -0
  8. package/autoresearch/eval-browse.ts +185 -0
  9. package/autoresearch/eval-skill.ts +248 -0
  10. package/autoresearch/run-browse.sh +9 -0
  11. package/autoresearch/run-skill.sh +9 -0
  12. package/dist/browser/base-page.d.ts +48 -0
  13. package/dist/browser/base-page.js +160 -0
  14. package/dist/browser/cdp.js +4 -106
  15. package/dist/browser/daemon-client.d.ts +20 -7
  16. package/dist/browser/daemon-client.js +39 -39
  17. package/dist/browser/daemon-client.test.js +77 -0
  18. package/dist/browser/discover.d.ts +1 -4
  19. package/dist/browser/discover.js +9 -23
  20. package/dist/browser/errors.d.ts +4 -0
  21. package/dist/browser/errors.js +20 -0
  22. package/dist/browser/index.d.ts +1 -1
  23. package/dist/browser/index.js +1 -1
  24. package/dist/browser/page.d.ts +10 -35
  25. package/dist/browser/page.js +55 -187
  26. package/dist/browser/tabs.js +5 -5
  27. package/dist/browser.test.js +15 -15
  28. package/dist/cli-manifest.json +294 -22
  29. package/dist/cli.js +392 -0
  30. package/dist/clis/amazon/bestsellers.d.ts +21 -0
  31. package/dist/clis/amazon/bestsellers.js +130 -0
  32. package/dist/clis/amazon/bestsellers.test.js +20 -0
  33. package/dist/clis/amazon/discussion.d.ts +20 -0
  34. package/dist/clis/amazon/discussion.js +91 -0
  35. package/dist/clis/amazon/discussion.test.d.ts +1 -0
  36. package/dist/clis/amazon/discussion.test.js +36 -0
  37. package/dist/clis/amazon/offer.d.ts +23 -0
  38. package/dist/clis/amazon/offer.js +140 -0
  39. package/dist/clis/amazon/offer.test.d.ts +1 -0
  40. package/dist/clis/amazon/offer.test.js +29 -0
  41. package/dist/clis/amazon/product.d.ts +18 -0
  42. package/dist/clis/amazon/product.js +92 -0
  43. package/dist/clis/amazon/product.test.d.ts +1 -0
  44. package/dist/clis/amazon/product.test.js +24 -0
  45. package/dist/clis/amazon/search.d.ts +18 -0
  46. package/dist/clis/amazon/search.js +87 -0
  47. package/dist/clis/amazon/search.test.d.ts +1 -0
  48. package/dist/clis/amazon/search.test.js +22 -0
  49. package/dist/clis/amazon/shared.d.ts +64 -0
  50. package/dist/clis/amazon/shared.js +255 -0
  51. package/dist/clis/amazon/shared.test.d.ts +1 -0
  52. package/dist/clis/amazon/shared.test.js +33 -0
  53. package/dist/clis/gemini/ask.d.ts +1 -0
  54. package/dist/clis/gemini/ask.js +40 -0
  55. package/dist/clis/gemini/image.d.ts +1 -0
  56. package/dist/clis/gemini/image.js +105 -0
  57. package/dist/clis/gemini/new.d.ts +1 -0
  58. package/dist/clis/gemini/new.js +20 -0
  59. package/dist/clis/gemini/utils.d.ts +34 -0
  60. package/dist/clis/gemini/utils.js +463 -0
  61. package/dist/clis/gemini/utils.test.d.ts +1 -0
  62. package/dist/clis/gemini/utils.test.js +31 -0
  63. package/dist/clis/notebooklm/compat.test.d.ts +1 -1
  64. package/dist/clis/notebooklm/compat.test.js +3 -3
  65. package/dist/clis/notebooklm/current.js +2 -3
  66. package/dist/clis/notebooklm/get.js +2 -3
  67. package/dist/clis/notebooklm/history.js +2 -3
  68. package/dist/clis/notebooklm/note-list.js +2 -3
  69. package/dist/clis/notebooklm/notes-get.js +2 -3
  70. package/dist/clis/notebooklm/open.d.ts +1 -0
  71. package/dist/clis/notebooklm/open.js +41 -0
  72. package/dist/clis/notebooklm/open.test.d.ts +1 -0
  73. package/dist/clis/notebooklm/open.test.js +63 -0
  74. package/dist/clis/notebooklm/source-fulltext.js +2 -3
  75. package/dist/clis/notebooklm/source-get.js +2 -3
  76. package/dist/clis/notebooklm/source-guide.js +2 -3
  77. package/dist/clis/notebooklm/source-list.js +2 -3
  78. package/dist/clis/notebooklm/status.js +1 -2
  79. package/dist/clis/notebooklm/summary.js +2 -3
  80. package/dist/clis/notebooklm/utils.d.ts +2 -1
  81. package/dist/clis/notebooklm/utils.js +20 -21
  82. package/dist/clis/twitter/article.js +28 -1
  83. package/dist/clis/xiaohongshu/creator-note-detail.test.js +11 -11
  84. package/dist/clis/xiaohongshu/creator-notes-summary.test.js +6 -6
  85. package/dist/clis/xiaohongshu/creator-notes.test.js +22 -22
  86. package/dist/clis/xiaohongshu/note.js +11 -0
  87. package/dist/clis/xiaohongshu/note.test.js +49 -0
  88. package/dist/commanderAdapter.js +7 -4
  89. package/dist/commanderAdapter.test.js +76 -0
  90. package/dist/commands/daemon.js +8 -47
  91. package/dist/commands/daemon.test.js +45 -70
  92. package/dist/discovery.js +27 -0
  93. package/dist/doctor.d.ts +1 -2
  94. package/dist/doctor.js +7 -8
  95. package/dist/explore.js +1 -1
  96. package/dist/output.js +28 -0
  97. package/dist/output.test.js +15 -0
  98. package/dist/pipeline/executor.js +2 -7
  99. package/dist/pipeline/steps/browser.js +1 -1
  100. package/dist/pipeline/template.js +25 -3
  101. package/dist/record.d.ts +50 -0
  102. package/dist/record.js +298 -57
  103. package/dist/record.test.d.ts +1 -0
  104. package/dist/record.test.js +293 -0
  105. package/dist/registry.d.ts +2 -0
  106. package/dist/registry.js +1 -0
  107. package/dist/registry.test.js +10 -0
  108. package/dist/runtime.js +3 -3
  109. package/dist/snapshotFormatter.d.ts +1 -1
  110. package/dist/snapshotFormatter.js +4 -4
  111. package/dist/snapshotFormatter.test.d.ts +1 -1
  112. package/dist/snapshotFormatter.test.js +2 -2
  113. package/dist/types.d.ts +11 -1
  114. package/dist/types.js +1 -1
  115. package/docs/.vitepress/config.mts +2 -0
  116. package/docs/adapters/browser/amazon.md +53 -0
  117. package/docs/adapters/browser/gemini.md +72 -0
  118. package/docs/adapters/browser/notebooklm.md +5 -5
  119. package/docs/adapters/index.md +3 -1
  120. package/docs/guide/getting-started.md +21 -0
  121. package/docs/superpowers/specs/2026-04-02-browse-skill-testing-design.md +144 -0
  122. package/docs/zh/guide/getting-started.md +21 -0
  123. package/extension/package-lock.json +2 -2
  124. package/extension/src/background.test.ts +7 -163
  125. package/extension/src/background.ts +58 -161
  126. package/extension/src/cdp.ts +77 -124
  127. package/extension/src/protocol.ts +5 -5
  128. package/package.json +1 -1
  129. package/skills/opencli-explorer/SKILL.md +853 -0
  130. package/skills/opencli-oneshot/SKILL.md +222 -0
  131. package/skills/opencli-operate/SKILL.md +213 -0
  132. package/skills/opencli-usage/SKILL.md +152 -0
  133. package/skills/opencli-usage/browser.md +429 -0
  134. package/skills/opencli-usage/desktop.md +118 -0
  135. package/skills/opencli-usage/plugins.md +82 -0
  136. package/skills/opencli-usage/public-api.md +149 -0
  137. package/src/browser/base-page.ts +197 -0
  138. package/src/browser/cdp.ts +7 -131
  139. package/src/browser/daemon-client.test.ts +103 -0
  140. package/src/browser/daemon-client.ts +55 -43
  141. package/src/browser/discover.ts +9 -21
  142. package/src/browser/errors.ts +22 -0
  143. package/src/browser/index.ts +1 -1
  144. package/src/browser/page.ts +57 -209
  145. package/src/browser/tabs.ts +5 -5
  146. package/src/browser.test.ts +15 -15
  147. package/src/cli.ts +392 -0
  148. package/src/clis/amazon/bestsellers.test.ts +22 -0
  149. package/src/clis/amazon/bestsellers.ts +180 -0
  150. package/src/clis/amazon/discussion.test.ts +38 -0
  151. package/src/clis/amazon/discussion.ts +131 -0
  152. package/src/clis/amazon/offer.test.ts +35 -0
  153. package/src/clis/amazon/offer.ts +185 -0
  154. package/src/clis/amazon/product.test.ts +26 -0
  155. package/src/clis/amazon/product.ts +131 -0
  156. package/src/clis/amazon/search.test.ts +24 -0
  157. package/src/clis/amazon/search.ts +128 -0
  158. package/src/clis/amazon/shared.test.ts +37 -0
  159. package/src/clis/amazon/shared.ts +316 -0
  160. package/src/clis/gemini/ask.ts +46 -0
  161. package/src/clis/gemini/image.ts +115 -0
  162. package/src/clis/gemini/new.ts +22 -0
  163. package/src/clis/gemini/utils.test.ts +36 -0
  164. package/src/clis/gemini/utils.ts +523 -0
  165. package/src/clis/notebooklm/compat.test.ts +3 -3
  166. package/src/clis/notebooklm/current.ts +2 -3
  167. package/src/clis/notebooklm/get.ts +1 -3
  168. package/src/clis/notebooklm/history.ts +1 -3
  169. package/src/clis/notebooklm/note-list.ts +1 -3
  170. package/src/clis/notebooklm/notes-get.ts +1 -3
  171. package/src/clis/notebooklm/open.test.ts +78 -0
  172. package/src/clis/notebooklm/open.ts +61 -0
  173. package/src/clis/notebooklm/source-fulltext.ts +1 -3
  174. package/src/clis/notebooklm/source-get.ts +1 -3
  175. package/src/clis/notebooklm/source-guide.ts +1 -3
  176. package/src/clis/notebooklm/source-list.ts +1 -3
  177. package/src/clis/notebooklm/status.ts +1 -2
  178. package/src/clis/notebooklm/summary.ts +1 -3
  179. package/src/clis/notebooklm/utils.ts +29 -20
  180. package/src/clis/twitter/article.ts +31 -1
  181. package/src/clis/xiaohongshu/creator-note-detail.test.ts +11 -11
  182. package/src/clis/xiaohongshu/creator-notes-summary.test.ts +6 -6
  183. package/src/clis/xiaohongshu/creator-notes.test.ts +22 -22
  184. package/src/clis/xiaohongshu/note.test.ts +51 -0
  185. package/src/clis/xiaohongshu/note.ts +18 -0
  186. package/src/commanderAdapter.test.ts +109 -0
  187. package/src/commanderAdapter.ts +8 -4
  188. package/src/commands/daemon.test.ts +50 -84
  189. package/src/commands/daemon.ts +8 -56
  190. package/src/discovery.ts +22 -0
  191. package/src/doctor.ts +8 -9
  192. package/src/explore.ts +1 -1
  193. package/src/output.test.ts +17 -0
  194. package/src/output.ts +27 -0
  195. package/src/pipeline/executor.ts +2 -7
  196. package/src/pipeline/steps/browser.ts +1 -1
  197. package/src/pipeline/template.ts +27 -4
  198. package/src/record.test.ts +362 -0
  199. package/src/record.ts +341 -62
  200. package/src/registry.test.ts +12 -0
  201. package/src/registry.ts +3 -0
  202. package/src/runtime.ts +3 -3
  203. package/src/snapshotFormatter.test.ts +2 -2
  204. package/src/snapshotFormatter.ts +4 -4
  205. package/src/types.ts +11 -1
  206. package/.agents/skills/cross-project-adapter-migration/SKILL.md +0 -249
  207. package/.agents/workflows/cross-project-adapter-migration.md +0 -54
  208. package/dist/clis/notebooklm/bind-current.js +0 -29
  209. package/dist/clis/notebooklm/bind-current.test.d.ts +0 -1
  210. package/dist/clis/notebooklm/bind-current.test.js +0 -35
  211. package/dist/clis/notebooklm/binding.test.js +0 -44
  212. package/extension/dist/background.js +0 -819
  213. package/src/clis/notebooklm/bind-current.test.ts +0 -43
  214. package/src/clis/notebooklm/bind-current.ts +0 -36
  215. package/src/clis/notebooklm/binding.test.ts +0 -53
  216. /package/dist/browser/{mcp.d.ts → bridge.d.ts} +0 -0
  217. /package/dist/browser/{mcp.js → bridge.js} +0 -0
  218. /package/dist/{clis/notebooklm/bind-current.d.ts → browser/daemon-client.test.d.ts} +0 -0
  219. /package/dist/clis/{notebooklm/binding.test.d.ts → amazon/bestsellers.test.d.ts} +0 -0
  220. /package/src/browser/{mcp.ts → bridge.ts} +0 -0
@@ -111,6 +111,163 @@
111
111
  "type": "ts",
112
112
  "modulePath": "36kr/search.js"
113
113
  },
114
+ {
115
+ "site": "amazon",
116
+ "name": "bestsellers",
117
+ "description": "Amazon Best Sellers pages for category candidate discovery",
118
+ "domain": "amazon.com",
119
+ "strategy": "cookie",
120
+ "browser": true,
121
+ "args": [
122
+ {
123
+ "name": "input",
124
+ "type": "str",
125
+ "required": false,
126
+ "positional": true,
127
+ "help": "Best sellers URL or /zgbs path. Omit to use the root Best Sellers page."
128
+ },
129
+ {
130
+ "name": "limit",
131
+ "type": "int",
132
+ "default": 100,
133
+ "required": false,
134
+ "help": "Maximum number of ranked items to return (default 100)"
135
+ }
136
+ ],
137
+ "columns": [
138
+ "rank",
139
+ "asin",
140
+ "title",
141
+ "price_text",
142
+ "rating_value",
143
+ "review_count"
144
+ ],
145
+ "type": "ts",
146
+ "modulePath": "amazon/bestsellers.js",
147
+ "navigateBefore": false
148
+ },
149
+ {
150
+ "site": "amazon",
151
+ "name": "discussion",
152
+ "description": "Amazon review summary and sample customer discussion from product review pages",
153
+ "domain": "amazon.com",
154
+ "strategy": "cookie",
155
+ "browser": true,
156
+ "args": [
157
+ {
158
+ "name": "input",
159
+ "type": "str",
160
+ "required": true,
161
+ "positional": true,
162
+ "help": "ASIN or product URL, for example B0FJS72893"
163
+ },
164
+ {
165
+ "name": "limit",
166
+ "type": "int",
167
+ "default": 10,
168
+ "required": false,
169
+ "help": "Maximum number of review samples to return (default 10)"
170
+ }
171
+ ],
172
+ "columns": [
173
+ "asin",
174
+ "average_rating_value",
175
+ "total_review_count"
176
+ ],
177
+ "type": "ts",
178
+ "modulePath": "amazon/discussion.js",
179
+ "navigateBefore": false
180
+ },
181
+ {
182
+ "site": "amazon",
183
+ "name": "offer",
184
+ "description": "Amazon seller, buy box, and fulfillment facts from the product page",
185
+ "domain": "amazon.com",
186
+ "strategy": "cookie",
187
+ "browser": true,
188
+ "args": [
189
+ {
190
+ "name": "input",
191
+ "type": "str",
192
+ "required": true,
193
+ "positional": true,
194
+ "help": "ASIN or product URL, for example B0FJS72893"
195
+ }
196
+ ],
197
+ "columns": [
198
+ "asin",
199
+ "price_text",
200
+ "sold_by",
201
+ "ships_from",
202
+ "is_amazon_sold",
203
+ "is_amazon_fulfilled"
204
+ ],
205
+ "type": "ts",
206
+ "modulePath": "amazon/offer.js",
207
+ "navigateBefore": false
208
+ },
209
+ {
210
+ "site": "amazon",
211
+ "name": "product",
212
+ "description": "Amazon product page facts for candidate validation",
213
+ "domain": "amazon.com",
214
+ "strategy": "cookie",
215
+ "browser": true,
216
+ "args": [
217
+ {
218
+ "name": "input",
219
+ "type": "str",
220
+ "required": true,
221
+ "positional": true,
222
+ "help": "ASIN or product URL, for example B0FJS72893"
223
+ }
224
+ ],
225
+ "columns": [
226
+ "asin",
227
+ "title",
228
+ "price_text",
229
+ "rating_value",
230
+ "review_count"
231
+ ],
232
+ "type": "ts",
233
+ "modulePath": "amazon/product.js",
234
+ "navigateBefore": false
235
+ },
236
+ {
237
+ "site": "amazon",
238
+ "name": "search",
239
+ "description": "Amazon search results for product discovery and coarse filtering",
240
+ "domain": "amazon.com",
241
+ "strategy": "cookie",
242
+ "browser": true,
243
+ "args": [
244
+ {
245
+ "name": "query",
246
+ "type": "str",
247
+ "required": true,
248
+ "positional": true,
249
+ "help": "Search query, for example \"desk shelf organizer\""
250
+ },
251
+ {
252
+ "name": "limit",
253
+ "type": "int",
254
+ "default": 20,
255
+ "required": false,
256
+ "help": "Maximum number of results to return (default 20)"
257
+ }
258
+ ],
259
+ "columns": [
260
+ "rank",
261
+ "asin",
262
+ "title",
263
+ "price_text",
264
+ "rating_value",
265
+ "review_count"
266
+ ],
267
+ "type": "ts",
268
+ "modulePath": "amazon/search.js",
269
+ "navigateBefore": false
270
+ },
114
271
  {
115
272
  "site": "antigravity",
116
273
  "name": "dump",
@@ -5218,6 +5375,114 @@
5218
5375
  ],
5219
5376
  "type": "yaml"
5220
5377
  },
5378
+ {
5379
+ "site": "gemini",
5380
+ "name": "ask",
5381
+ "description": "Send a prompt to Gemini and return only the assistant response",
5382
+ "domain": "gemini.google.com",
5383
+ "strategy": "cookie",
5384
+ "browser": true,
5385
+ "args": [
5386
+ {
5387
+ "name": "prompt",
5388
+ "type": "str",
5389
+ "required": true,
5390
+ "positional": true,
5391
+ "help": "Prompt to send"
5392
+ },
5393
+ {
5394
+ "name": "timeout",
5395
+ "type": "str",
5396
+ "default": "60",
5397
+ "required": false,
5398
+ "help": "Max seconds to wait (default: 60)"
5399
+ },
5400
+ {
5401
+ "name": "new",
5402
+ "type": "str",
5403
+ "default": "false",
5404
+ "required": false,
5405
+ "help": "Start a new chat first (true/false, default: false)"
5406
+ }
5407
+ ],
5408
+ "columns": [
5409
+ "response"
5410
+ ],
5411
+ "timeout": 180,
5412
+ "type": "ts",
5413
+ "modulePath": "gemini/ask.js",
5414
+ "navigateBefore": false
5415
+ },
5416
+ {
5417
+ "site": "gemini",
5418
+ "name": "image",
5419
+ "description": "Generate images with Gemini web and save them locally",
5420
+ "domain": "gemini.google.com",
5421
+ "strategy": "cookie",
5422
+ "browser": true,
5423
+ "args": [
5424
+ {
5425
+ "name": "prompt",
5426
+ "type": "str",
5427
+ "required": true,
5428
+ "positional": true,
5429
+ "help": "Image prompt to send to Gemini"
5430
+ },
5431
+ {
5432
+ "name": "rt",
5433
+ "type": "str",
5434
+ "default": "1:1",
5435
+ "required": false,
5436
+ "help": "Ratio shorthand for aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3)"
5437
+ },
5438
+ {
5439
+ "name": "st",
5440
+ "type": "str",
5441
+ "default": "",
5442
+ "required": false,
5443
+ "help": "Style shorthand, e.g. anime, icon, watercolor"
5444
+ },
5445
+ {
5446
+ "name": "op",
5447
+ "type": "str",
5448
+ "default": "/home/runner/tmp/gemini-images",
5449
+ "required": false,
5450
+ "help": "Output directory shorthand"
5451
+ },
5452
+ {
5453
+ "name": "sd",
5454
+ "type": "boolean",
5455
+ "default": false,
5456
+ "required": false,
5457
+ "help": "Skip download shorthand; only show Gemini page link"
5458
+ }
5459
+ ],
5460
+ "columns": [
5461
+ "status",
5462
+ "file",
5463
+ "link"
5464
+ ],
5465
+ "timeout": 240,
5466
+ "type": "ts",
5467
+ "modulePath": "gemini/image.js",
5468
+ "navigateBefore": false
5469
+ },
5470
+ {
5471
+ "site": "gemini",
5472
+ "name": "new",
5473
+ "description": "Start a new conversation in Gemini web chat",
5474
+ "domain": "gemini.google.com",
5475
+ "strategy": "cookie",
5476
+ "browser": true,
5477
+ "args": [],
5478
+ "columns": [
5479
+ "Status",
5480
+ "Action"
5481
+ ],
5482
+ "type": "ts",
5483
+ "modulePath": "gemini/new.js",
5484
+ "navigateBefore": false
5485
+ },
5221
5486
  {
5222
5487
  "site": "google",
5223
5488
  "name": "news",
@@ -8079,28 +8344,6 @@
8079
8344
  "type": "ts",
8080
8345
  "modulePath": "medium/user.js"
8081
8346
  },
8082
- {
8083
- "site": "notebooklm",
8084
- "name": "bind-current",
8085
- "aliases": [
8086
- "use"
8087
- ],
8088
- "description": "Bind the current active NotebookLM notebook tab into the site:notebooklm workspace",
8089
- "domain": "notebooklm.google.com",
8090
- "strategy": "cookie",
8091
- "browser": true,
8092
- "args": [],
8093
- "columns": [
8094
- "workspace",
8095
- "tab_id",
8096
- "notebook_id",
8097
- "title",
8098
- "url"
8099
- ],
8100
- "type": "ts",
8101
- "modulePath": "notebooklm/bind-current.js",
8102
- "navigateBefore": false
8103
- },
8104
8347
  {
8105
8348
  "site": "notebooklm",
8106
8349
  "name": "current",
@@ -8231,6 +8474,35 @@
8231
8474
  "modulePath": "notebooklm/notes-get.js",
8232
8475
  "navigateBefore": false
8233
8476
  },
8477
+ {
8478
+ "site": "notebooklm",
8479
+ "name": "open",
8480
+ "aliases": [
8481
+ "select"
8482
+ ],
8483
+ "description": "Open one NotebookLM notebook in the automation workspace by id or URL",
8484
+ "domain": "notebooklm.google.com",
8485
+ "strategy": "cookie",
8486
+ "browser": true,
8487
+ "args": [
8488
+ {
8489
+ "name": "notebook",
8490
+ "type": "str",
8491
+ "required": true,
8492
+ "positional": true,
8493
+ "help": "Notebook id from list output, or a full NotebookLM notebook URL"
8494
+ }
8495
+ ],
8496
+ "columns": [
8497
+ "id",
8498
+ "title",
8499
+ "url",
8500
+ "source"
8501
+ ],
8502
+ "type": "ts",
8503
+ "modulePath": "notebooklm/open.js",
8504
+ "navigateBefore": false
8505
+ },
8234
8506
  {
8235
8507
  "site": "notebooklm",
8236
8508
  "name": "source-fulltext",