@jackwener/opencli 1.6.9 → 1.7.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 (531) hide show
  1. package/README.md +128 -59
  2. package/README.zh-CN.md +134 -78
  3. package/dist/clis/_shared/common.d.ts +3 -0
  4. package/dist/clis/_shared/common.js +22 -0
  5. package/dist/clis/bilibili/hot.js +35 -0
  6. package/dist/clis/bluesky/feeds.d.ts +1 -0
  7. package/dist/clis/bluesky/feeds.js +27 -0
  8. package/dist/clis/bluesky/followers.d.ts +1 -0
  9. package/dist/clis/bluesky/followers.js +27 -0
  10. package/dist/clis/bluesky/following.d.ts +1 -0
  11. package/dist/clis/bluesky/following.js +27 -0
  12. package/dist/clis/bluesky/profile.d.ts +1 -0
  13. package/dist/clis/bluesky/profile.js +29 -0
  14. package/dist/clis/bluesky/search.d.ts +1 -0
  15. package/dist/clis/bluesky/search.js +28 -0
  16. package/dist/clis/bluesky/starter-packs.d.ts +1 -0
  17. package/dist/clis/bluesky/starter-packs.js +28 -0
  18. package/dist/clis/bluesky/thread.d.ts +1 -0
  19. package/dist/clis/bluesky/thread.js +30 -0
  20. package/dist/clis/bluesky/trending.d.ts +1 -0
  21. package/dist/clis/bluesky/trending.js +19 -0
  22. package/dist/clis/bluesky/user.d.ts +1 -0
  23. package/dist/clis/bluesky/user.js +33 -0
  24. package/dist/clis/cnki/search.d.ts +1 -0
  25. package/dist/clis/cnki/search.js +60 -0
  26. package/dist/clis/cnki/search.test.d.ts +1 -0
  27. package/dist/clis/cnki/search.test.js +18 -0
  28. package/dist/clis/devto/tag.d.ts +1 -0
  29. package/dist/clis/devto/tag.js +32 -0
  30. package/dist/clis/devto/top.d.ts +1 -0
  31. package/dist/clis/devto/top.js +26 -0
  32. package/dist/clis/devto/user.d.ts +1 -0
  33. package/dist/clis/devto/user.js +31 -0
  34. package/dist/clis/dictionary/examples.d.ts +1 -0
  35. package/dist/clis/dictionary/examples.js +27 -0
  36. package/dist/clis/dictionary/search.d.ts +1 -0
  37. package/dist/clis/dictionary/search.js +29 -0
  38. package/dist/clis/dictionary/synonyms.d.ts +1 -0
  39. package/dist/clis/dictionary/synonyms.js +27 -0
  40. package/dist/clis/douban/subject.d.ts +1 -0
  41. package/dist/clis/douban/subject.js +118 -0
  42. package/dist/clis/douban/top250.d.ts +1 -0
  43. package/dist/clis/douban/top250.js +67 -0
  44. package/dist/clis/facebook/add-friend.d.ts +1 -0
  45. package/dist/clis/facebook/add-friend.js +43 -0
  46. package/dist/clis/facebook/events.d.ts +1 -0
  47. package/dist/clis/facebook/events.js +40 -0
  48. package/dist/clis/facebook/feed.d.ts +1 -0
  49. package/dist/clis/facebook/feed.js +59 -0
  50. package/dist/clis/facebook/friends.d.ts +1 -0
  51. package/dist/clis/facebook/friends.js +38 -0
  52. package/dist/clis/facebook/groups.d.ts +1 -0
  53. package/dist/clis/facebook/groups.js +46 -0
  54. package/dist/clis/facebook/join-group.d.ts +1 -0
  55. package/dist/clis/facebook/join-group.js +44 -0
  56. package/dist/clis/facebook/memories.d.ts +1 -0
  57. package/dist/clis/facebook/memories.js +35 -0
  58. package/dist/clis/facebook/notifications.d.ts +1 -0
  59. package/dist/clis/facebook/notifications.js +36 -0
  60. package/dist/clis/facebook/profile.d.ts +1 -0
  61. package/dist/clis/facebook/profile.js +37 -0
  62. package/dist/clis/facebook/search.d.ts +1 -0
  63. package/dist/clis/facebook/search.js +38 -0
  64. package/dist/clis/facebook/search.test.d.ts +1 -1
  65. package/dist/clis/facebook/search.test.js +6 -9
  66. package/dist/clis/gitee/index.d.ts +3 -0
  67. package/dist/clis/gitee/index.js +3 -0
  68. package/dist/clis/gitee/search.d.ts +1 -0
  69. package/dist/clis/gitee/search.js +136 -0
  70. package/dist/clis/gitee/trending.d.ts +1 -0
  71. package/dist/clis/gitee/trending.js +567 -0
  72. package/dist/clis/gitee/user.d.ts +1 -0
  73. package/dist/clis/gitee/user.js +199 -0
  74. package/dist/clis/gitee/user.test.d.ts +1 -0
  75. package/dist/clis/gitee/user.test.js +63 -0
  76. package/dist/clis/hackernews/ask.d.ts +1 -0
  77. package/dist/clis/hackernews/ask.js +29 -0
  78. package/dist/clis/hackernews/best.d.ts +1 -0
  79. package/dist/clis/hackernews/best.js +29 -0
  80. package/dist/clis/hackernews/jobs.d.ts +1 -0
  81. package/dist/clis/hackernews/jobs.js +27 -0
  82. package/dist/clis/hackernews/new.d.ts +1 -0
  83. package/dist/clis/hackernews/new.js +29 -0
  84. package/dist/clis/hackernews/search.d.ts +1 -0
  85. package/dist/clis/hackernews/search.js +36 -0
  86. package/dist/clis/hackernews/show.d.ts +1 -0
  87. package/dist/clis/hackernews/show.js +29 -0
  88. package/dist/clis/hackernews/top.d.ts +1 -0
  89. package/dist/clis/hackernews/top.js +29 -0
  90. package/dist/clis/hackernews/user.d.ts +1 -0
  91. package/dist/clis/hackernews/user.js +22 -0
  92. package/dist/clis/hupu/hot.d.ts +1 -0
  93. package/dist/clis/hupu/hot.js +40 -0
  94. package/dist/clis/instagram/comment.d.ts +1 -0
  95. package/dist/clis/instagram/comment.js +47 -0
  96. package/dist/clis/instagram/explore.d.ts +1 -0
  97. package/dist/clis/instagram/explore.js +41 -0
  98. package/dist/clis/instagram/follow.d.ts +1 -0
  99. package/dist/clis/instagram/follow.js +43 -0
  100. package/dist/clis/instagram/followers.d.ts +1 -0
  101. package/dist/clis/instagram/followers.js +45 -0
  102. package/dist/clis/instagram/following.d.ts +1 -0
  103. package/dist/clis/instagram/following.js +45 -0
  104. package/dist/clis/instagram/like.d.ts +1 -0
  105. package/dist/clis/instagram/like.js +45 -0
  106. package/dist/clis/instagram/profile.d.ts +1 -0
  107. package/dist/clis/instagram/profile.js +39 -0
  108. package/dist/clis/instagram/save.d.ts +1 -0
  109. package/dist/clis/instagram/save.js +45 -0
  110. package/dist/clis/instagram/saved.d.ts +1 -0
  111. package/dist/clis/instagram/saved.js +38 -0
  112. package/dist/clis/instagram/search.d.ts +1 -0
  113. package/dist/clis/instagram/search.js +38 -0
  114. package/dist/clis/instagram/unfollow.d.ts +1 -0
  115. package/dist/clis/instagram/unfollow.js +40 -0
  116. package/dist/clis/instagram/unlike.d.ts +1 -0
  117. package/dist/clis/instagram/unlike.js +45 -0
  118. package/dist/clis/instagram/unsave.d.ts +1 -0
  119. package/dist/clis/instagram/unsave.js +45 -0
  120. package/dist/clis/instagram/user.d.ts +1 -0
  121. package/dist/clis/instagram/user.js +48 -0
  122. package/dist/clis/jd/add-cart.d.ts +1 -0
  123. package/dist/clis/jd/add-cart.js +71 -0
  124. package/dist/clis/jd/cart.d.ts +1 -0
  125. package/dist/clis/jd/cart.js +79 -0
  126. package/dist/clis/jd/commands.test.d.ts +5 -0
  127. package/dist/clis/jd/commands.test.js +64 -0
  128. package/dist/clis/jd/detail.d.ts +1 -0
  129. package/dist/clis/jd/detail.js +62 -0
  130. package/dist/clis/jd/reviews.d.ts +1 -0
  131. package/dist/clis/jd/reviews.js +54 -0
  132. package/dist/clis/jd/search.d.ts +1 -0
  133. package/dist/clis/jd/search.js +65 -0
  134. package/dist/clis/jianyu/detail.d.ts +1 -0
  135. package/dist/clis/jianyu/detail.js +20 -0
  136. package/dist/clis/jianyu/search.d.ts +41 -4
  137. package/dist/clis/jianyu/search.js +458 -96
  138. package/dist/clis/jianyu/search.test.js +105 -0
  139. package/dist/clis/jianyu/shared/china-bid-search.d.ts +12 -0
  140. package/dist/clis/jianyu/shared/china-bid-search.js +165 -0
  141. package/dist/clis/jianyu/shared/procurement-contract.d.ts +68 -0
  142. package/dist/clis/jianyu/shared/procurement-contract.js +324 -0
  143. package/dist/clis/jianyu/shared/procurement-contract.test.d.ts +1 -0
  144. package/dist/clis/jianyu/shared/procurement-contract.test.js +72 -0
  145. package/dist/clis/jianyu/shared/procurement-detail.d.ts +6 -0
  146. package/dist/clis/jianyu/shared/procurement-detail.js +92 -0
  147. package/dist/clis/jianyu/shared/procurement-detail.test.d.ts +1 -0
  148. package/dist/clis/jianyu/shared/procurement-detail.test.js +72 -0
  149. package/dist/clis/jike/post.d.ts +1 -0
  150. package/dist/clis/jike/post.js +61 -0
  151. package/dist/clis/jike/topic.d.ts +1 -0
  152. package/dist/clis/jike/topic.js +51 -0
  153. package/dist/clis/jike/user.d.ts +1 -0
  154. package/dist/clis/jike/user.js +50 -0
  155. package/dist/clis/jimeng/generate.d.ts +1 -0
  156. package/dist/clis/jimeng/generate.js +83 -0
  157. package/dist/clis/jimeng/history.d.ts +1 -0
  158. package/dist/clis/jimeng/history.js +47 -0
  159. package/dist/clis/jimeng/new.d.ts +1 -0
  160. package/dist/clis/jimeng/new.js +43 -0
  161. package/dist/clis/jimeng/workspaces.d.ts +1 -0
  162. package/dist/clis/jimeng/workspaces.js +41 -0
  163. package/dist/clis/linux-do/categories.d.ts +1 -0
  164. package/dist/clis/linux-do/categories.js +65 -0
  165. package/dist/clis/linux-do/search.d.ts +1 -0
  166. package/dist/clis/linux-do/search.js +41 -0
  167. package/dist/clis/linux-do/tags.d.ts +1 -0
  168. package/dist/clis/linux-do/tags.js +39 -0
  169. package/dist/clis/linux-do/topic-content.test.js +5 -5
  170. package/dist/clis/linux-do/topic.d.ts +1 -0
  171. package/dist/clis/linux-do/topic.js +56 -0
  172. package/dist/clis/linux-do/user-posts.d.ts +1 -0
  173. package/dist/clis/linux-do/user-posts.js +61 -0
  174. package/dist/clis/linux-do/user-topics.d.ts +1 -0
  175. package/dist/clis/linux-do/user-topics.js +48 -0
  176. package/dist/clis/lobsters/active.d.ts +1 -0
  177. package/dist/clis/lobsters/active.js +26 -0
  178. package/dist/clis/lobsters/hot.d.ts +1 -0
  179. package/dist/clis/lobsters/hot.js +26 -0
  180. package/dist/clis/lobsters/newest.d.ts +1 -0
  181. package/dist/clis/lobsters/newest.js +26 -0
  182. package/dist/clis/lobsters/tag.d.ts +1 -0
  183. package/dist/clis/lobsters/tag.js +32 -0
  184. package/dist/clis/pixiv/detail.d.ts +1 -0
  185. package/dist/clis/pixiv/detail.js +58 -0
  186. package/dist/clis/pixiv/ranking.d.ts +1 -0
  187. package/dist/clis/pixiv/ranking.js +59 -0
  188. package/dist/clis/pixiv/user.d.ts +1 -0
  189. package/dist/clis/pixiv/user.js +52 -0
  190. package/dist/clis/reddit/frontpage.d.ts +1 -0
  191. package/dist/clis/reddit/frontpage.js +31 -0
  192. package/dist/clis/reddit/hot.d.ts +1 -0
  193. package/dist/clis/reddit/hot.js +45 -0
  194. package/dist/clis/reddit/popular.d.ts +1 -0
  195. package/dist/clis/reddit/popular.js +41 -0
  196. package/dist/clis/reddit/search.d.ts +1 -0
  197. package/dist/clis/reddit/search.js +65 -0
  198. package/dist/clis/reddit/subreddit.d.ts +1 -0
  199. package/dist/clis/reddit/subreddit.js +52 -0
  200. package/dist/clis/reddit/user-comments.d.ts +1 -0
  201. package/dist/clis/reddit/user-comments.js +44 -0
  202. package/dist/clis/reddit/user-posts.d.ts +1 -0
  203. package/dist/clis/reddit/user-posts.js +42 -0
  204. package/dist/clis/reddit/user.d.ts +1 -0
  205. package/dist/clis/reddit/user.js +37 -0
  206. package/dist/clis/stackoverflow/bounties.d.ts +1 -0
  207. package/dist/clis/stackoverflow/bounties.js +27 -0
  208. package/dist/clis/stackoverflow/hot.d.ts +1 -0
  209. package/dist/clis/stackoverflow/hot.js +24 -0
  210. package/dist/clis/stackoverflow/search.d.ts +1 -0
  211. package/dist/clis/stackoverflow/search.js +27 -0
  212. package/dist/clis/stackoverflow/unanswered.d.ts +1 -0
  213. package/dist/clis/stackoverflow/unanswered.js +26 -0
  214. package/dist/clis/steam/top-sellers.d.ts +1 -0
  215. package/dist/clis/steam/top-sellers.js +25 -0
  216. package/dist/clis/taobao/add-cart.d.ts +1 -0
  217. package/dist/clis/taobao/add-cart.js +149 -0
  218. package/dist/clis/taobao/cart.d.ts +1 -0
  219. package/dist/clis/taobao/cart.js +95 -0
  220. package/dist/clis/taobao/commands.test.d.ts +5 -0
  221. package/dist/clis/taobao/commands.test.js +64 -0
  222. package/dist/clis/taobao/detail.d.ts +1 -0
  223. package/dist/clis/taobao/detail.js +70 -0
  224. package/dist/clis/taobao/reviews.d.ts +1 -0
  225. package/dist/clis/taobao/reviews.js +76 -0
  226. package/dist/clis/taobao/search.d.ts +1 -0
  227. package/dist/clis/taobao/search.js +96 -0
  228. package/dist/clis/tiktok/comment.d.ts +1 -0
  229. package/dist/clis/tiktok/comment.js +57 -0
  230. package/dist/clis/tiktok/explore.d.ts +1 -0
  231. package/dist/clis/tiktok/explore.js +35 -0
  232. package/dist/clis/tiktok/follow.d.ts +1 -0
  233. package/dist/clis/tiktok/follow.js +39 -0
  234. package/dist/clis/tiktok/following.d.ts +1 -0
  235. package/dist/clis/tiktok/following.js +42 -0
  236. package/dist/clis/tiktok/friends.d.ts +1 -0
  237. package/dist/clis/tiktok/friends.js +43 -0
  238. package/dist/clis/tiktok/like.d.ts +1 -0
  239. package/dist/clis/tiktok/like.js +33 -0
  240. package/dist/clis/tiktok/live.d.ts +1 -0
  241. package/dist/clis/tiktok/live.js +47 -0
  242. package/dist/clis/tiktok/notifications.d.ts +1 -0
  243. package/dist/clis/tiktok/notifications.js +49 -0
  244. package/dist/clis/tiktok/profile.d.ts +1 -0
  245. package/dist/clis/tiktok/profile.js +54 -0
  246. package/dist/clis/tiktok/save.d.ts +1 -0
  247. package/dist/clis/tiktok/save.js +29 -0
  248. package/dist/clis/tiktok/search.d.ts +1 -0
  249. package/dist/clis/tiktok/search.js +39 -0
  250. package/dist/clis/tiktok/unfollow.d.ts +1 -0
  251. package/dist/clis/tiktok/unfollow.js +44 -0
  252. package/dist/clis/tiktok/unlike.d.ts +1 -0
  253. package/dist/clis/tiktok/unlike.js +33 -0
  254. package/dist/clis/tiktok/unsave.d.ts +1 -0
  255. package/dist/clis/tiktok/unsave.js +31 -0
  256. package/dist/clis/tiktok/user.d.ts +1 -0
  257. package/dist/clis/tiktok/user.js +41 -0
  258. package/dist/clis/v2ex/hot.d.ts +1 -0
  259. package/dist/clis/v2ex/hot.js +25 -0
  260. package/dist/clis/v2ex/latest.d.ts +1 -0
  261. package/dist/clis/v2ex/latest.js +25 -0
  262. package/dist/clis/v2ex/member.d.ts +1 -0
  263. package/dist/clis/v2ex/member.js +27 -0
  264. package/dist/clis/v2ex/node.d.ts +1 -0
  265. package/dist/clis/v2ex/node.js +38 -0
  266. package/dist/clis/v2ex/nodes.d.ts +1 -0
  267. package/dist/clis/v2ex/nodes.js +25 -0
  268. package/dist/clis/v2ex/replies.d.ts +1 -0
  269. package/dist/clis/v2ex/replies.js +26 -0
  270. package/dist/clis/v2ex/topic.d.ts +1 -0
  271. package/dist/clis/v2ex/topic.js +30 -0
  272. package/dist/clis/v2ex/user.d.ts +1 -0
  273. package/dist/clis/v2ex/user.js +33 -0
  274. package/dist/clis/xiaoe/catalog.d.ts +1 -0
  275. package/dist/clis/xiaoe/catalog.js +161 -0
  276. package/dist/clis/xiaoe/content.d.ts +1 -0
  277. package/dist/clis/xiaoe/content.js +39 -0
  278. package/dist/clis/xiaoe/courses.d.ts +1 -0
  279. package/dist/clis/xiaoe/courses.js +69 -0
  280. package/dist/clis/xiaoe/detail.d.ts +1 -0
  281. package/dist/clis/xiaoe/detail.js +35 -0
  282. package/dist/clis/xiaoe/play-url.d.ts +1 -0
  283. package/dist/clis/xiaoe/play-url.js +120 -0
  284. package/dist/clis/xiaohongshu/feed.d.ts +1 -0
  285. package/dist/clis/xiaohongshu/feed.js +32 -0
  286. package/dist/clis/xiaohongshu/notifications.d.ts +1 -0
  287. package/dist/clis/xiaohongshu/notifications.js +38 -0
  288. package/dist/clis/xueqiu/earnings-date.d.ts +1 -0
  289. package/dist/clis/xueqiu/earnings-date.js +61 -0
  290. package/dist/clis/xueqiu/feed.d.ts +1 -0
  291. package/dist/clis/xueqiu/feed.js +48 -0
  292. package/dist/clis/xueqiu/groups.d.ts +1 -0
  293. package/dist/clis/xueqiu/groups.js +25 -0
  294. package/dist/clis/xueqiu/hot-stock.d.ts +1 -0
  295. package/dist/clis/xueqiu/hot-stock.js +44 -0
  296. package/dist/clis/xueqiu/hot.d.ts +1 -0
  297. package/dist/clis/xueqiu/hot.js +44 -0
  298. package/dist/clis/xueqiu/kline.d.ts +1 -0
  299. package/dist/clis/xueqiu/kline.js +64 -0
  300. package/dist/clis/xueqiu/search.d.ts +1 -0
  301. package/dist/clis/xueqiu/search.js +49 -0
  302. package/dist/clis/xueqiu/stock.d.ts +1 -0
  303. package/dist/clis/xueqiu/stock.js +72 -0
  304. package/dist/clis/xueqiu/watchlist.d.ts +1 -0
  305. package/dist/clis/xueqiu/watchlist.js +45 -0
  306. package/dist/clis/zhihu/hot.d.ts +1 -0
  307. package/dist/clis/zhihu/hot.js +43 -0
  308. package/dist/clis/zhihu/search.d.ts +1 -0
  309. package/dist/clis/zhihu/search.js +52 -0
  310. package/dist/src/browser/bridge.js +1 -1
  311. package/dist/src/browser/daemon-client.d.ts +16 -4
  312. package/dist/src/browser/daemon-client.js +33 -15
  313. package/dist/src/browser/daemon-client.test.js +0 -3
  314. package/dist/src/browser/dom-helpers.test.js +3 -2
  315. package/dist/src/browser/errors.d.ts +26 -1
  316. package/dist/src/browser/errors.js +40 -7
  317. package/dist/src/browser/errors.test.d.ts +1 -0
  318. package/dist/src/browser/errors.test.js +51 -0
  319. package/dist/src/browser/page.d.ts +9 -8
  320. package/dist/src/browser/page.js +33 -31
  321. package/dist/src/browser.test.js +25 -6
  322. package/dist/src/build-manifest.d.ts +5 -11
  323. package/dist/src/build-manifest.js +6 -75
  324. package/dist/src/build-manifest.test.js +1 -39
  325. package/dist/src/cascade.js +3 -2
  326. package/dist/src/cli.d.ts +3 -3
  327. package/dist/src/cli.js +71 -71
  328. package/dist/src/cli.test.js +20 -15
  329. package/dist/src/clis/binance/asks.d.ts +1 -0
  330. package/dist/src/clis/binance/asks.js +20 -0
  331. package/dist/src/clis/binance/commands.test.d.ts +3 -1
  332. package/dist/src/clis/binance/commands.test.js +10 -6
  333. package/dist/src/clis/binance/depth.d.ts +1 -0
  334. package/dist/src/clis/binance/depth.js +20 -0
  335. package/dist/src/clis/binance/gainers.d.ts +1 -0
  336. package/dist/src/clis/binance/gainers.js +21 -0
  337. package/dist/src/clis/binance/klines.d.ts +1 -0
  338. package/dist/src/clis/binance/klines.js +20 -0
  339. package/dist/src/clis/binance/losers.d.ts +1 -0
  340. package/dist/src/clis/binance/losers.js +21 -0
  341. package/dist/src/clis/binance/pairs.d.ts +1 -0
  342. package/dist/src/clis/binance/pairs.js +20 -0
  343. package/dist/src/clis/binance/price.d.ts +1 -0
  344. package/dist/src/clis/binance/price.js +17 -0
  345. package/dist/src/clis/binance/prices.d.ts +1 -0
  346. package/dist/src/clis/binance/prices.js +18 -0
  347. package/dist/src/clis/binance/ticker.d.ts +1 -0
  348. package/dist/src/clis/binance/ticker.js +20 -0
  349. package/dist/src/clis/binance/top.d.ts +1 -0
  350. package/dist/src/clis/binance/top.js +20 -0
  351. package/dist/src/clis/binance/trades.d.ts +1 -0
  352. package/dist/src/clis/binance/trades.js +19 -0
  353. package/dist/src/commands/daemon.d.ts +2 -6
  354. package/dist/src/commands/daemon.js +2 -58
  355. package/dist/src/commands/daemon.test.js +24 -120
  356. package/dist/src/completion-fast.d.ts +25 -0
  357. package/dist/src/completion-fast.js +140 -0
  358. package/dist/src/completion.d.ts +1 -0
  359. package/dist/src/completion.js +1 -0
  360. package/dist/src/constants.d.ts +0 -2
  361. package/dist/src/constants.js +0 -2
  362. package/dist/src/daemon.d.ts +1 -1
  363. package/dist/src/daemon.js +2 -15
  364. package/dist/src/diagnostic.test.js +2 -2
  365. package/dist/src/discovery.d.ts +3 -3
  366. package/dist/src/discovery.js +34 -97
  367. package/dist/src/download/index.d.ts +1 -1
  368. package/dist/src/engine.test.js +4 -19
  369. package/dist/src/execution.js +5 -1
  370. package/dist/src/generate-verified.d.ts +105 -0
  371. package/dist/src/generate-verified.js +696 -0
  372. package/dist/src/generate-verified.test.d.ts +1 -0
  373. package/dist/src/generate-verified.test.js +925 -0
  374. package/dist/src/generate.d.ts +9 -1
  375. package/dist/src/generate.js +2 -2
  376. package/dist/src/main.js +65 -12
  377. package/dist/src/pipeline/steps/download.d.ts +1 -17
  378. package/dist/src/pipeline/steps/download.js +20 -31
  379. package/dist/src/pipeline/steps/intercept.d.ts +1 -1
  380. package/dist/src/pipeline/steps/intercept.js +1 -1
  381. package/dist/src/pipeline/steps/tap.d.ts +1 -1
  382. package/dist/src/pipeline/steps/tap.js +1 -1
  383. package/dist/src/plugin-scaffold.d.ts +2 -2
  384. package/dist/src/plugin-scaffold.js +24 -21
  385. package/dist/src/plugin-scaffold.test.js +1 -1
  386. package/dist/src/plugin.d.ts +1 -1
  387. package/dist/src/plugin.js +4 -6
  388. package/dist/src/plugin.test.js +31 -31
  389. package/dist/src/record.js +26 -25
  390. package/dist/src/runtime-detect.js +3 -7
  391. package/dist/src/scripts/framework.d.ts +3 -0
  392. package/dist/src/scripts/framework.js +8 -4
  393. package/dist/src/scripts/store.d.ts +5 -1
  394. package/dist/src/scripts/store.js +5 -1
  395. package/dist/src/skill-generate.d.ts +30 -0
  396. package/dist/src/skill-generate.js +75 -0
  397. package/dist/src/skill-generate.test.d.ts +1 -0
  398. package/dist/src/skill-generate.test.js +173 -0
  399. package/dist/src/synthesize.d.ts +1 -1
  400. package/dist/src/synthesize.js +7 -8
  401. package/dist/src/types.d.ts +3 -1
  402. package/package.json +4 -3
  403. package/dist/clis/bilibili/hot.yaml +0 -38
  404. package/dist/clis/bluesky/feeds.yaml +0 -29
  405. package/dist/clis/bluesky/followers.yaml +0 -33
  406. package/dist/clis/bluesky/following.yaml +0 -33
  407. package/dist/clis/bluesky/profile.yaml +0 -27
  408. package/dist/clis/bluesky/search.yaml +0 -34
  409. package/dist/clis/bluesky/starter-packs.yaml +0 -34
  410. package/dist/clis/bluesky/thread.yaml +0 -32
  411. package/dist/clis/bluesky/trending.yaml +0 -27
  412. package/dist/clis/bluesky/user.yaml +0 -34
  413. package/dist/clis/devto/tag.yaml +0 -34
  414. package/dist/clis/devto/top.yaml +0 -29
  415. package/dist/clis/devto/user.yaml +0 -33
  416. package/dist/clis/dictionary/examples.yaml +0 -25
  417. package/dist/clis/dictionary/search.yaml +0 -27
  418. package/dist/clis/dictionary/synonyms.yaml +0 -25
  419. package/dist/clis/douban/subject.yaml +0 -107
  420. package/dist/clis/douban/top250.yaml +0 -70
  421. package/dist/clis/facebook/add-friend.yaml +0 -43
  422. package/dist/clis/facebook/events.yaml +0 -44
  423. package/dist/clis/facebook/feed.yaml +0 -63
  424. package/dist/clis/facebook/friends.yaml +0 -42
  425. package/dist/clis/facebook/groups.yaml +0 -50
  426. package/dist/clis/facebook/join-group.yaml +0 -44
  427. package/dist/clis/facebook/memories.yaml +0 -39
  428. package/dist/clis/facebook/notifications.yaml +0 -40
  429. package/dist/clis/facebook/profile.yaml +0 -37
  430. package/dist/clis/facebook/search.yaml +0 -47
  431. package/dist/clis/hackernews/ask.yaml +0 -38
  432. package/dist/clis/hackernews/best.yaml +0 -38
  433. package/dist/clis/hackernews/jobs.yaml +0 -36
  434. package/dist/clis/hackernews/new.yaml +0 -38
  435. package/dist/clis/hackernews/search.yaml +0 -44
  436. package/dist/clis/hackernews/show.yaml +0 -38
  437. package/dist/clis/hackernews/top.yaml +0 -38
  438. package/dist/clis/hackernews/user.yaml +0 -25
  439. package/dist/clis/hupu/hot.yaml +0 -43
  440. package/dist/clis/instagram/comment.yaml +0 -52
  441. package/dist/clis/instagram/explore.yaml +0 -43
  442. package/dist/clis/instagram/follow.yaml +0 -41
  443. package/dist/clis/instagram/followers.yaml +0 -51
  444. package/dist/clis/instagram/following.yaml +0 -51
  445. package/dist/clis/instagram/like.yaml +0 -46
  446. package/dist/clis/instagram/profile.yaml +0 -42
  447. package/dist/clis/instagram/save.yaml +0 -46
  448. package/dist/clis/instagram/saved.yaml +0 -40
  449. package/dist/clis/instagram/search.yaml +0 -44
  450. package/dist/clis/instagram/unfollow.yaml +0 -38
  451. package/dist/clis/instagram/unlike.yaml +0 -46
  452. package/dist/clis/instagram/unsave.yaml +0 -46
  453. package/dist/clis/instagram/user.yaml +0 -54
  454. package/dist/clis/jike/post.yaml +0 -59
  455. package/dist/clis/jike/topic.yaml +0 -53
  456. package/dist/clis/jike/user.yaml +0 -52
  457. package/dist/clis/jimeng/generate.yaml +0 -85
  458. package/dist/clis/jimeng/history.yaml +0 -46
  459. package/dist/clis/linux-do/categories.yaml +0 -70
  460. package/dist/clis/linux-do/search.yaml +0 -48
  461. package/dist/clis/linux-do/tags.yaml +0 -41
  462. package/dist/clis/linux-do/topic.yaml +0 -62
  463. package/dist/clis/linux-do/user-posts.yaml +0 -67
  464. package/dist/clis/linux-do/user-topics.yaml +0 -54
  465. package/dist/clis/lobsters/active.yaml +0 -29
  466. package/dist/clis/lobsters/hot.yaml +0 -29
  467. package/dist/clis/lobsters/newest.yaml +0 -29
  468. package/dist/clis/lobsters/tag.yaml +0 -34
  469. package/dist/clis/pixiv/detail.yaml +0 -49
  470. package/dist/clis/pixiv/ranking.yaml +0 -53
  471. package/dist/clis/pixiv/user.yaml +0 -46
  472. package/dist/clis/reddit/frontpage.yaml +0 -30
  473. package/dist/clis/reddit/hot.yaml +0 -47
  474. package/dist/clis/reddit/popular.yaml +0 -40
  475. package/dist/clis/reddit/search.yaml +0 -61
  476. package/dist/clis/reddit/subreddit.yaml +0 -50
  477. package/dist/clis/reddit/user-comments.yaml +0 -46
  478. package/dist/clis/reddit/user-posts.yaml +0 -44
  479. package/dist/clis/reddit/user.yaml +0 -40
  480. package/dist/clis/stackoverflow/bounties.yaml +0 -29
  481. package/dist/clis/stackoverflow/hot.yaml +0 -28
  482. package/dist/clis/stackoverflow/search.yaml +0 -33
  483. package/dist/clis/stackoverflow/unanswered.yaml +0 -28
  484. package/dist/clis/steam/top-sellers.yaml +0 -29
  485. package/dist/clis/tiktok/comment.yaml +0 -66
  486. package/dist/clis/tiktok/explore.yaml +0 -39
  487. package/dist/clis/tiktok/follow.yaml +0 -39
  488. package/dist/clis/tiktok/following.yaml +0 -46
  489. package/dist/clis/tiktok/friends.yaml +0 -47
  490. package/dist/clis/tiktok/like.yaml +0 -38
  491. package/dist/clis/tiktok/live.yaml +0 -51
  492. package/dist/clis/tiktok/notifications.yaml +0 -52
  493. package/dist/clis/tiktok/profile.yaml +0 -45
  494. package/dist/clis/tiktok/save.yaml +0 -34
  495. package/dist/clis/tiktok/search.yaml +0 -47
  496. package/dist/clis/tiktok/unfollow.yaml +0 -44
  497. package/dist/clis/tiktok/unlike.yaml +0 -38
  498. package/dist/clis/tiktok/unsave.yaml +0 -36
  499. package/dist/clis/tiktok/user.yaml +0 -44
  500. package/dist/clis/v2ex/hot.yaml +0 -28
  501. package/dist/clis/v2ex/latest.yaml +0 -28
  502. package/dist/clis/v2ex/member.yaml +0 -29
  503. package/dist/clis/v2ex/node.yaml +0 -34
  504. package/dist/clis/v2ex/nodes.yaml +0 -31
  505. package/dist/clis/v2ex/replies.yaml +0 -32
  506. package/dist/clis/v2ex/topic.yaml +0 -33
  507. package/dist/clis/v2ex/user.yaml +0 -34
  508. package/dist/clis/xiaoe/catalog.yaml +0 -129
  509. package/dist/clis/xiaoe/content.yaml +0 -43
  510. package/dist/clis/xiaoe/courses.yaml +0 -73
  511. package/dist/clis/xiaoe/detail.yaml +0 -39
  512. package/dist/clis/xiaoe/play-url.yaml +0 -124
  513. package/dist/clis/xiaohongshu/feed.yaml +0 -31
  514. package/dist/clis/xiaohongshu/notifications.yaml +0 -37
  515. package/dist/clis/xueqiu/earnings-date.yaml +0 -69
  516. package/dist/clis/xueqiu/feed.yaml +0 -53
  517. package/dist/clis/xueqiu/groups.yaml +0 -23
  518. package/dist/clis/xueqiu/hot-stock.yaml +0 -49
  519. package/dist/clis/xueqiu/hot.yaml +0 -46
  520. package/dist/clis/xueqiu/kline.yaml +0 -65
  521. package/dist/clis/xueqiu/search.yaml +0 -55
  522. package/dist/clis/xueqiu/stock.yaml +0 -69
  523. package/dist/clis/xueqiu/watchlist.yaml +0 -46
  524. package/dist/clis/zhihu/hot.yaml +0 -46
  525. package/dist/clis/zhihu/search.yaml +0 -59
  526. package/dist/src/daemon.test.js +0 -65
  527. package/dist/src/idle-manager.d.ts +0 -19
  528. package/dist/src/idle-manager.js +0 -54
  529. package/dist/src/yaml-schema.d.ts +0 -29
  530. package/dist/src/yaml-schema.js +0 -22
  531. /package/dist/{src/daemon.test.d.ts → clis/bilibili/hot.d.ts} +0 -0
@@ -0,0 +1,173 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import { mapOutcomeToSkillOutput } from './skill-generate.js';
3
+ import { Strategy } from './registry.js';
4
+ describe('mapOutcomeToSkillOutput', () => {
5
+ const baseStats = {
6
+ endpoint_count: 1,
7
+ api_endpoint_count: 1,
8
+ candidate_count: 1,
9
+ verified: false,
10
+ repair_attempted: false,
11
+ explore_dir: '/tmp/test',
12
+ };
13
+ it('maps success outcome correctly', () => {
14
+ const outcome = {
15
+ status: 'success',
16
+ adapter: {
17
+ site: 'demo',
18
+ name: 'hot',
19
+ command: 'demo/hot',
20
+ strategy: Strategy.PUBLIC,
21
+ path: '/tmp/demo/hot.verified.ts',
22
+ metadata_path: '/tmp/demo/hot.meta.json',
23
+ reusability: 'verified-artifact',
24
+ },
25
+ reusability: 'verified-artifact',
26
+ stats: { ...baseStats, verified: true },
27
+ };
28
+ const result = mapOutcomeToSkillOutput(outcome);
29
+ expect(result.conclusion).toBe('success');
30
+ expect(result.reusability).toBe('verified-artifact');
31
+ expect(result.command).toBe('demo/hot');
32
+ expect(result.strategy).toBe('public');
33
+ expect(result.path).toBe('/tmp/demo/hot.verified.ts');
34
+ expect(result.message).toContain('demo/hot');
35
+ expect(result.reason).toBeUndefined();
36
+ expect(result.suggested_action).toBeUndefined();
37
+ });
38
+ it('maps blocked outcome with no-viable-api-surface', () => {
39
+ const outcome = {
40
+ status: 'blocked',
41
+ reason: 'no-viable-api-surface',
42
+ stage: 'explore',
43
+ confidence: 'high',
44
+ message: 'No API endpoints',
45
+ stats: { ...baseStats, api_endpoint_count: 0 },
46
+ };
47
+ const result = mapOutcomeToSkillOutput(outcome);
48
+ expect(result.conclusion).toBe('blocked');
49
+ expect(result.reason).toBe('no-viable-api-surface');
50
+ expect(result.message).toContain('JSON API');
51
+ expect(result.command).toBeUndefined();
52
+ expect(result.suggested_action).toBeUndefined();
53
+ });
54
+ it('maps blocked outcome with auth-too-complex', () => {
55
+ const outcome = {
56
+ status: 'blocked',
57
+ reason: 'auth-too-complex',
58
+ stage: 'cascade',
59
+ confidence: 'high',
60
+ stats: baseStats,
61
+ };
62
+ const result = mapOutcomeToSkillOutput(outcome);
63
+ expect(result.conclusion).toBe('blocked');
64
+ expect(result.reason).toBe('auth-too-complex');
65
+ expect(result.message).toContain('认证');
66
+ });
67
+ it('maps blocked outcome with execution-environment-unavailable', () => {
68
+ const outcome = {
69
+ status: 'blocked',
70
+ reason: 'execution-environment-unavailable',
71
+ stage: 'verify',
72
+ confidence: 'high',
73
+ stats: baseStats,
74
+ };
75
+ const result = mapOutcomeToSkillOutput(outcome);
76
+ expect(result.conclusion).toBe('blocked');
77
+ expect(result.reason).toBe('execution-environment-unavailable');
78
+ expect(result.message).toContain('doctor');
79
+ });
80
+ it('maps needs-human-check with unsupported-required-args', () => {
81
+ const outcome = {
82
+ status: 'needs-human-check',
83
+ escalation: {
84
+ stage: 'synthesize',
85
+ reason: 'unsupported-required-args',
86
+ confidence: 'high',
87
+ suggested_action: 'ask-for-sample-arg',
88
+ candidate: {
89
+ name: 'detail',
90
+ command: 'demo/detail',
91
+ path: '/tmp/demo/detail.verified.ts',
92
+ reusability: 'unverified-candidate',
93
+ },
94
+ },
95
+ reusability: 'unverified-candidate',
96
+ message: 'required args: id',
97
+ stats: baseStats,
98
+ };
99
+ const result = mapOutcomeToSkillOutput(outcome);
100
+ expect(result.conclusion).toBe('needs-human-check');
101
+ expect(result.reason).toBe('unsupported-required-args');
102
+ expect(result.suggested_action).toBe('ask-for-sample-arg');
103
+ expect(result.reusability).toBe('unverified-candidate');
104
+ expect(result.path).toBe('/tmp/demo/detail.verified.ts');
105
+ expect(result.message).toContain('required args: id');
106
+ });
107
+ it('maps needs-human-check with empty-result (inspect-with-browser)', () => {
108
+ const outcome = {
109
+ status: 'needs-human-check',
110
+ escalation: {
111
+ stage: 'fallback',
112
+ reason: 'empty-result',
113
+ confidence: 'low',
114
+ suggested_action: 'inspect-with-browser',
115
+ candidate: {
116
+ name: 'hot',
117
+ command: 'demo/hot',
118
+ path: null,
119
+ reusability: 'unverified-candidate',
120
+ },
121
+ },
122
+ reusability: 'unverified-candidate',
123
+ stats: { ...baseStats, repair_attempted: true },
124
+ };
125
+ const result = mapOutcomeToSkillOutput(outcome);
126
+ expect(result.conclusion).toBe('needs-human-check');
127
+ expect(result.reason).toBe('empty-result');
128
+ expect(result.suggested_action).toBe('inspect-with-browser');
129
+ expect(result.path).toBeUndefined();
130
+ expect(result.message).toContain('空结果');
131
+ });
132
+ it('maps needs-human-check with verify-inconclusive and path', () => {
133
+ const outcome = {
134
+ status: 'needs-human-check',
135
+ escalation: {
136
+ stage: 'verify',
137
+ reason: 'verify-inconclusive',
138
+ confidence: 'low',
139
+ suggested_action: 'manual-review',
140
+ candidate: {
141
+ name: 'hot',
142
+ command: 'demo/hot',
143
+ path: '/tmp/demo/hot.verified.ts',
144
+ reusability: 'unverified-candidate',
145
+ },
146
+ },
147
+ reusability: 'unverified-candidate',
148
+ stats: baseStats,
149
+ };
150
+ const result = mapOutcomeToSkillOutput(outcome);
151
+ expect(result.conclusion).toBe('needs-human-check');
152
+ expect(result.reason).toBe('verify-inconclusive');
153
+ expect(result.suggested_action).toBe('manual-review');
154
+ expect(result.path).toBe('/tmp/demo/hot.verified.ts');
155
+ expect(result.message).toContain('/tmp/demo/hot.verified.ts');
156
+ });
157
+ it('output satisfies SkillOutput contract shape', () => {
158
+ const outcome = {
159
+ status: 'blocked',
160
+ reason: 'no-viable-candidate',
161
+ stage: 'synthesize',
162
+ confidence: 'medium',
163
+ stats: baseStats,
164
+ };
165
+ const result = mapOutcomeToSkillOutput(outcome);
166
+ // Every SkillOutput must have conclusion + message
167
+ expect(result).toHaveProperty('conclusion');
168
+ expect(result).toHaveProperty('message');
169
+ expect(['success', 'blocked', 'needs-human-check']).toContain(result.conclusion);
170
+ expect(typeof result.message).toBe('string');
171
+ expect(result.message.length).toBeGreaterThan(0);
172
+ });
173
+ });
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Synthesize candidate CLIs from explore artifacts.
3
- * Generates evaluate-based YAML pipelines (matching hand-written adapter patterns).
3
+ * Generates evaluate-based pipelines (matching hand-written adapter patterns).
4
4
  */
5
5
  import type { ExploreAuthSummary, ExploreEndpointArtifact, ExploreManifest } from './explore.js';
6
6
  interface RecommendedArg {
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * Synthesize candidate CLIs from explore artifacts.
3
- * Generates evaluate-based YAML pipelines (matching hand-written adapter patterns).
3
+ * Generates evaluate-based pipelines (matching hand-written adapter patterns).
4
4
  */
5
5
  import * as fs from 'node:fs';
6
6
  import * as path from 'node:path';
7
- import yaml from 'js-yaml';
8
7
  import { VOLATILE_PARAMS, SEARCH_PARAMS, LIMIT_PARAMS, PAGINATION_PARAMS } from './constants.js';
9
8
  export function synthesizeFromExplore(target, opts = {}) {
10
9
  const exploreDir = resolveExploreDir(target);
@@ -20,8 +19,8 @@ export function synthesizeFromExplore(target, opts = {}) {
20
19
  if (!endpoint)
21
20
  continue;
22
21
  const candidate = buildCandidateYaml(site, bundle.manifest, cap, endpoint);
23
- const filePath = path.join(targetDir, `${candidate.name}.yaml`);
24
- fs.writeFileSync(filePath, yaml.dump(candidate.yaml, { sortKeys: false, lineWidth: 120 }));
22
+ const filePath = path.join(targetDir, `${candidate.name}.json`);
23
+ fs.writeFileSync(filePath, JSON.stringify(candidate.yaml, null, 2));
25
24
  candidates.push({ name: candidate.name, path: filePath, strategy: cap.strategy });
26
25
  }
27
26
  const index = { site, target_url: bundle.manifest.target_url, generated_from: exploreDir, candidate_count: candidates.length, candidates };
@@ -94,7 +93,7 @@ function buildTemplatedUrl(rawUrl, cap, _endpoint) {
94
93
  }
95
94
  /**
96
95
  * Build inline evaluate script for browser-based fetch+parse.
97
- * Follows patterns from bilibili/hot.yaml and twitter/trending.yaml.
96
+ * Follows patterns from bilibili/hot.ts and twitter/trending.ts.
98
97
  */
99
98
  function buildEvaluateScript(url, itemPath, endpoint) {
100
99
  const pathChain = itemPath.split('.').map((p) => `?.${p}`).join('');
@@ -117,7 +116,7 @@ function buildEvaluateScript(url, itemPath, endpoint) {
117
116
  '})()\n',
118
117
  ].join('\n');
119
118
  }
120
- // ── YAML pipeline generation ───────────────────────────────────────────────
119
+ // ── Pipeline generation ────────────────────────────────────────────────────
121
120
  function buildCandidateYaml(site, manifest, cap, endpoint) {
122
121
  const needsBrowser = cap.strategy !== 'public';
123
122
  const pipeline = [];
@@ -153,13 +152,13 @@ function buildCandidateYaml(site, manifest, cap, endpoint) {
153
152
  pipeline.push({ tap: tapStep });
154
153
  }
155
154
  else if (needsBrowser) {
156
- // Browser-based: navigate + evaluate (like bilibili/hot.yaml, twitter/trending.yaml)
155
+ // Browser-based: navigate + evaluate (like bilibili/hot, twitter/trending)
157
156
  pipeline.push({ navigate: manifest.target_url });
158
157
  const itemPath = cap.itemPath ?? 'data.data.list';
159
158
  pipeline.push({ evaluate: buildEvaluateScript(templatedUrl, itemPath, endpoint) });
160
159
  }
161
160
  else {
162
- // Public API: direct fetch (like hackernews/top.yaml)
161
+ // Public API: direct fetch (like hackernews/top)
163
162
  pipeline.push({ fetch: { url: templatedUrl } });
164
163
  if (cap.itemPath)
165
164
  pipeline.push({ select: cap.itemPath });
@@ -85,7 +85,9 @@ export interface IPage {
85
85
  closeWindow?(): Promise<void>;
86
86
  /** Returns the current page URL, or null if unavailable. */
87
87
  getCurrentUrl?(): Promise<string | null>;
88
- /** Returns the active tab ID, or undefined if not yet resolved. */
88
+ /** Returns the active page identity (targetId), or undefined if not yet resolved. */
89
+ getActivePage?(): string | undefined;
90
+ /** @deprecated Use getActivePage() instead */
89
91
  getActiveTabId?(): number | undefined;
90
92
  /** Send a raw CDP command via chrome.debugger passthrough. */
91
93
  cdp?(method: string, params?: Record<string, unknown>): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackwener/opencli",
3
- "version": "1.6.9",
3
+ "version": "1.7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -48,13 +48,14 @@
48
48
  "copy-yaml": "node scripts/copy-yaml.cjs",
49
49
  "start": "node dist/src/main.js",
50
50
  "start:bun": "bun dist/src/main.js",
51
+ "preuninstall": "node -e \"fetch('http://127.0.0.1:19825/shutdown',{method:'POST',headers:{'X-OpenCLI':'1'},signal:AbortSignal.timeout(3000)}).catch(()=>{})\" || true",
51
52
  "postinstall": "node scripts/postinstall.js || true; node scripts/fetch-adapters.js || true",
52
53
  "typecheck": "tsc --noEmit",
53
54
  "lint": "tsc --noEmit",
54
55
  "prepare": "[ -d src ] && npm run build || true",
55
56
  "prepublishOnly": "npm run build",
56
- "test": "vitest run --project unit",
57
- "test:bun": "bun vitest run --project unit",
57
+ "test": "vitest run --project unit --project extension",
58
+ "test:bun": "bun vitest run --project unit --project extension",
58
59
  "test:adapter": "vitest run --project adapter",
59
60
  "test:all": "vitest run",
60
61
  "test:e2e": "vitest run --project e2e",
@@ -1,38 +0,0 @@
1
- site: bilibili
2
- name: hot
3
- description: B站热门视频
4
- domain: www.bilibili.com
5
-
6
- args:
7
- limit:
8
- type: int
9
- default: 20
10
- description: Number of videos
11
-
12
- pipeline:
13
- - navigate: https://www.bilibili.com
14
-
15
- - evaluate: |
16
- (async () => {
17
- const res = await fetch('https://api.bilibili.com/x/web-interface/popular?ps=${{ args.limit }}&pn=1', {
18
- credentials: 'include'
19
- });
20
- const data = await res.json();
21
- return (data?.data?.list || []).map((item) => ({
22
- title: item.title,
23
- author: item.owner?.name,
24
- play: item.stat?.view,
25
- danmaku: item.stat?.danmaku,
26
- }));
27
- })()
28
-
29
- - map:
30
- rank: ${{ index + 1 }}
31
- title: ${{ item.title }}
32
- author: ${{ item.author }}
33
- play: ${{ item.play }}
34
- danmaku: ${{ item.danmaku }}
35
-
36
- - limit: ${{ args.limit }}
37
-
38
- columns: [rank, title, author, play, danmaku]
@@ -1,29 +0,0 @@
1
- site: bluesky
2
- name: feeds
3
- description: Popular Bluesky feed generators
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- limit:
10
- type: int
11
- default: 20
12
- description: Number of feeds
13
-
14
- pipeline:
15
- - fetch:
16
- url: https://public.api.bsky.app/xrpc/app.bsky.unspecced.getPopularFeedGenerators?limit=${{ args.limit }}
17
-
18
- - select: feeds
19
-
20
- - map:
21
- rank: ${{ index + 1 }}
22
- name: ${{ item.displayName }}
23
- likes: ${{ item.likeCount }}
24
- creator: ${{ item.creator.handle }}
25
- description: ${{ item.description }}
26
-
27
- - limit: ${{ args.limit }}
28
-
29
- columns: [rank, name, likes, creator, description]
@@ -1,33 +0,0 @@
1
- site: bluesky
2
- name: followers
3
- description: List followers of a Bluesky user
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- handle:
10
- type: str
11
- required: true
12
- positional: true
13
- description: "Bluesky handle"
14
- limit:
15
- type: int
16
- default: 20
17
- description: Number of followers
18
-
19
- pipeline:
20
- - fetch:
21
- url: https://public.api.bsky.app/xrpc/app.bsky.graph.getFollowers?actor=${{ args.handle }}&limit=${{ args.limit }}
22
-
23
- - select: followers
24
-
25
- - map:
26
- rank: ${{ index + 1 }}
27
- handle: ${{ item.handle }}
28
- name: ${{ item.displayName }}
29
- description: ${{ item.description }}
30
-
31
- - limit: ${{ args.limit }}
32
-
33
- columns: [rank, handle, name, description]
@@ -1,33 +0,0 @@
1
- site: bluesky
2
- name: following
3
- description: List accounts a Bluesky user is following
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- handle:
10
- type: str
11
- required: true
12
- positional: true
13
- description: "Bluesky handle"
14
- limit:
15
- type: int
16
- default: 20
17
- description: Number of accounts
18
-
19
- pipeline:
20
- - fetch:
21
- url: https://public.api.bsky.app/xrpc/app.bsky.graph.getFollows?actor=${{ args.handle }}&limit=${{ args.limit }}
22
-
23
- - select: follows
24
-
25
- - map:
26
- rank: ${{ index + 1 }}
27
- handle: ${{ item.handle }}
28
- name: ${{ item.displayName }}
29
- description: ${{ item.description }}
30
-
31
- - limit: ${{ args.limit }}
32
-
33
- columns: [rank, handle, name, description]
@@ -1,27 +0,0 @@
1
- site: bluesky
2
- name: profile
3
- description: Get Bluesky user profile info
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- handle:
10
- type: str
11
- required: true
12
- positional: true
13
- description: "Bluesky handle (e.g. bsky.app, jay.bsky.team)"
14
-
15
- pipeline:
16
- - fetch:
17
- url: https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${{ args.handle }}
18
-
19
- - map:
20
- handle: ${{ item.handle }}
21
- name: ${{ item.displayName }}
22
- followers: ${{ item.followersCount }}
23
- following: ${{ item.followsCount }}
24
- posts: ${{ item.postsCount }}
25
- description: ${{ item.description }}
26
-
27
- columns: [handle, name, followers, following, posts, description]
@@ -1,34 +0,0 @@
1
- site: bluesky
2
- name: search
3
- description: Search Bluesky users
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- query:
10
- type: str
11
- required: true
12
- positional: true
13
- description: Search query
14
- limit:
15
- type: int
16
- default: 10
17
- description: Number of results
18
-
19
- pipeline:
20
- - fetch:
21
- url: https://public.api.bsky.app/xrpc/app.bsky.actor.searchActors?q=${{ args.query }}&limit=${{ args.limit }}
22
-
23
- - select: actors
24
-
25
- - map:
26
- rank: ${{ index + 1 }}
27
- handle: ${{ item.handle }}
28
- name: ${{ item.displayName }}
29
- followers: ${{ item.followersCount }}
30
- description: ${{ item.description }}
31
-
32
- - limit: ${{ args.limit }}
33
-
34
- columns: [rank, handle, name, followers, description]
@@ -1,34 +0,0 @@
1
- site: bluesky
2
- name: starter-packs
3
- description: Get starter packs created by a Bluesky user
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- handle:
10
- type: str
11
- required: true
12
- positional: true
13
- description: "Bluesky handle"
14
- limit:
15
- type: int
16
- default: 10
17
- description: Number of starter packs
18
-
19
- pipeline:
20
- - fetch:
21
- url: https://public.api.bsky.app/xrpc/app.bsky.graph.getActorStarterPacks?actor=${{ args.handle }}&limit=${{ args.limit }}
22
-
23
- - select: starterPacks
24
-
25
- - map:
26
- rank: ${{ index + 1 }}
27
- name: ${{ item.record.name }}
28
- description: ${{ item.record.description }}
29
- members: ${{ item.listItemCount }}
30
- joins: ${{ item.joinedAllTimeCount }}
31
-
32
- - limit: ${{ args.limit }}
33
-
34
- columns: [rank, name, description, members, joins]
@@ -1,32 +0,0 @@
1
- site: bluesky
2
- name: thread
3
- description: Get a Bluesky post thread with replies
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- uri:
10
- type: str
11
- required: true
12
- positional: true
13
- description: "Post AT URI (at://did:.../app.bsky.feed.post/...) or bsky.app URL"
14
- limit:
15
- type: int
16
- default: 20
17
- description: Number of replies
18
-
19
- pipeline:
20
- - fetch:
21
- url: https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread?uri=${{ args.uri }}&depth=2
22
-
23
- - select: thread
24
-
25
- - map:
26
- author: ${{ item.post.author.handle }}
27
- text: ${{ item.post.record.text }}
28
- likes: ${{ item.post.likeCount }}
29
- reposts: ${{ item.post.repostCount }}
30
- replies_count: ${{ item.post.replyCount }}
31
-
32
- columns: [author, text, likes, reposts, replies_count]
@@ -1,27 +0,0 @@
1
- site: bluesky
2
- name: trending
3
- description: Trending topics on Bluesky
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- limit:
10
- type: int
11
- default: 20
12
- description: Number of topics
13
-
14
- pipeline:
15
- - fetch:
16
- url: https://public.api.bsky.app/xrpc/app.bsky.unspecced.getTrendingTopics
17
-
18
- - select: topics
19
-
20
- - map:
21
- rank: ${{ index + 1 }}
22
- topic: ${{ item.topic }}
23
- link: ${{ item.link }}
24
-
25
- - limit: ${{ args.limit }}
26
-
27
- columns: [rank, topic, link]
@@ -1,34 +0,0 @@
1
- site: bluesky
2
- name: user
3
- description: Get recent posts from a Bluesky user
4
- domain: public.api.bsky.app
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- handle:
10
- type: str
11
- required: true
12
- positional: true
13
- description: "Bluesky handle (e.g. bsky.app)"
14
- limit:
15
- type: int
16
- default: 20
17
- description: Number of posts
18
-
19
- pipeline:
20
- - fetch:
21
- url: https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=${{ args.handle }}&limit=${{ args.limit }}
22
-
23
- - select: feed
24
-
25
- - map:
26
- rank: ${{ index + 1 }}
27
- text: ${{ item.post.record.text }}
28
- likes: ${{ item.post.likeCount }}
29
- reposts: ${{ item.post.repostCount }}
30
- replies: ${{ item.post.replyCount }}
31
-
32
- - limit: ${{ args.limit }}
33
-
34
- columns: [rank, text, likes, reposts, replies]
@@ -1,34 +0,0 @@
1
- site: devto
2
- name: tag
3
- description: Latest DEV.to articles for a specific tag
4
- domain: dev.to
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- tag:
10
- type: str
11
- required: true
12
- positional: true
13
- description: "Tag name (e.g. javascript, python, webdev)"
14
- limit:
15
- type: int
16
- default: 20
17
- description: Number of articles
18
-
19
- pipeline:
20
- - fetch:
21
- url: https://dev.to/api/articles?tag=${{ args.tag }}&per_page=${{ args.limit }}
22
-
23
- - map:
24
- rank: ${{ index + 1 }}
25
- title: ${{ item.title }}
26
- author: ${{ item.user.username }}
27
- reactions: ${{ item.public_reactions_count }}
28
- comments: ${{ item.comments_count }}
29
- tags: ${{ item.tag_list | join(', ') }}
30
- url: ${{ item.url }}
31
-
32
- - limit: ${{ args.limit }}
33
-
34
- columns: [rank, title, author, reactions, comments, tags]
@@ -1,29 +0,0 @@
1
- site: devto
2
- name: top
3
- description: Top DEV.to articles of the day
4
- domain: dev.to
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- limit:
10
- type: int
11
- default: 20
12
- description: Number of articles
13
-
14
- pipeline:
15
- - fetch:
16
- url: https://dev.to/api/articles?top=1&per_page=${{ args.limit }}
17
-
18
- - map:
19
- rank: ${{ index + 1 }}
20
- title: ${{ item.title }}
21
- author: ${{ item.user.username }}
22
- reactions: ${{ item.public_reactions_count }}
23
- comments: ${{ item.comments_count }}
24
- tags: ${{ item.tag_list | join(', ') }}
25
- url: ${{ item.url }}
26
-
27
- - limit: ${{ args.limit }}
28
-
29
- columns: [rank, title, author, reactions, comments, tags]