@jackwener/opencli 1.6.8 → 1.6.10

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 (572) hide show
  1. package/README.md +117 -59
  2. package/README.zh-CN.md +123 -79
  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.d.ts +1 -0
  6. package/dist/clis/bilibili/hot.js +35 -0
  7. package/dist/clis/bluesky/feeds.d.ts +1 -0
  8. package/dist/clis/bluesky/feeds.js +27 -0
  9. package/dist/clis/bluesky/followers.d.ts +1 -0
  10. package/dist/clis/bluesky/followers.js +27 -0
  11. package/dist/clis/bluesky/following.d.ts +1 -0
  12. package/dist/clis/bluesky/following.js +27 -0
  13. package/dist/clis/bluesky/profile.d.ts +1 -0
  14. package/dist/clis/bluesky/profile.js +29 -0
  15. package/dist/clis/bluesky/search.d.ts +1 -0
  16. package/dist/clis/bluesky/search.js +28 -0
  17. package/dist/clis/bluesky/starter-packs.d.ts +1 -0
  18. package/dist/clis/bluesky/starter-packs.js +28 -0
  19. package/dist/clis/bluesky/thread.d.ts +1 -0
  20. package/dist/clis/bluesky/thread.js +30 -0
  21. package/dist/clis/bluesky/trending.d.ts +1 -0
  22. package/dist/clis/bluesky/trending.js +19 -0
  23. package/dist/clis/bluesky/user.d.ts +1 -0
  24. package/dist/clis/bluesky/user.js +33 -0
  25. package/dist/clis/cnki/search.d.ts +1 -0
  26. package/dist/clis/cnki/search.js +60 -0
  27. package/dist/clis/cnki/search.test.d.ts +1 -0
  28. package/dist/clis/cnki/search.test.js +18 -0
  29. package/dist/clis/devto/tag.d.ts +1 -0
  30. package/dist/clis/devto/tag.js +32 -0
  31. package/dist/clis/devto/top.d.ts +1 -0
  32. package/dist/clis/devto/top.js +26 -0
  33. package/dist/clis/devto/user.d.ts +1 -0
  34. package/dist/clis/devto/user.js +31 -0
  35. package/dist/clis/dictionary/examples.d.ts +1 -0
  36. package/dist/clis/dictionary/examples.js +27 -0
  37. package/dist/clis/dictionary/search.d.ts +1 -0
  38. package/dist/clis/dictionary/search.js +29 -0
  39. package/dist/clis/dictionary/synonyms.d.ts +1 -0
  40. package/dist/clis/dictionary/synonyms.js +27 -0
  41. package/dist/clis/douban/subject.d.ts +1 -0
  42. package/dist/clis/douban/subject.js +118 -0
  43. package/dist/clis/douban/top250.d.ts +1 -0
  44. package/dist/clis/douban/top250.js +67 -0
  45. package/dist/clis/facebook/add-friend.d.ts +1 -0
  46. package/dist/clis/facebook/add-friend.js +43 -0
  47. package/dist/clis/facebook/events.d.ts +1 -0
  48. package/dist/clis/facebook/events.js +40 -0
  49. package/dist/clis/facebook/feed.d.ts +1 -0
  50. package/dist/clis/facebook/feed.js +59 -0
  51. package/dist/clis/facebook/friends.d.ts +1 -0
  52. package/dist/clis/facebook/friends.js +38 -0
  53. package/dist/clis/facebook/groups.d.ts +1 -0
  54. package/dist/clis/facebook/groups.js +46 -0
  55. package/dist/clis/facebook/join-group.d.ts +1 -0
  56. package/dist/clis/facebook/join-group.js +44 -0
  57. package/dist/clis/facebook/memories.d.ts +1 -0
  58. package/dist/clis/facebook/memories.js +35 -0
  59. package/dist/clis/facebook/notifications.d.ts +1 -0
  60. package/dist/clis/facebook/notifications.js +36 -0
  61. package/dist/clis/facebook/profile.d.ts +1 -0
  62. package/dist/clis/facebook/profile.js +37 -0
  63. package/dist/clis/facebook/search.d.ts +1 -0
  64. package/dist/clis/facebook/search.js +38 -0
  65. package/dist/clis/facebook/search.test.d.ts +1 -1
  66. package/dist/clis/facebook/search.test.js +6 -9
  67. package/dist/clis/gitee/index.d.ts +3 -0
  68. package/dist/clis/gitee/index.js +3 -0
  69. package/dist/clis/gitee/search.d.ts +1 -0
  70. package/dist/clis/gitee/search.js +136 -0
  71. package/dist/clis/gitee/trending.d.ts +1 -0
  72. package/dist/clis/gitee/trending.js +567 -0
  73. package/dist/clis/gitee/user.d.ts +1 -0
  74. package/dist/clis/gitee/user.js +199 -0
  75. package/dist/clis/gitee/user.test.d.ts +1 -0
  76. package/dist/clis/gitee/user.test.js +63 -0
  77. package/dist/clis/hackernews/ask.d.ts +1 -0
  78. package/dist/clis/hackernews/ask.js +29 -0
  79. package/dist/clis/hackernews/best.d.ts +1 -0
  80. package/dist/clis/hackernews/best.js +29 -0
  81. package/dist/clis/hackernews/jobs.d.ts +1 -0
  82. package/dist/clis/hackernews/jobs.js +27 -0
  83. package/dist/clis/hackernews/new.d.ts +1 -0
  84. package/dist/clis/hackernews/new.js +29 -0
  85. package/dist/clis/hackernews/search.d.ts +1 -0
  86. package/dist/clis/hackernews/search.js +36 -0
  87. package/dist/clis/hackernews/show.d.ts +1 -0
  88. package/dist/clis/hackernews/show.js +29 -0
  89. package/dist/clis/hackernews/top.d.ts +1 -0
  90. package/dist/clis/hackernews/top.js +29 -0
  91. package/dist/clis/hackernews/user.d.ts +1 -0
  92. package/dist/clis/hackernews/user.js +22 -0
  93. package/dist/clis/hupu/hot.d.ts +1 -0
  94. package/dist/clis/hupu/hot.js +40 -0
  95. package/dist/clis/instagram/comment.d.ts +1 -0
  96. package/dist/clis/instagram/comment.js +47 -0
  97. package/dist/clis/instagram/explore.d.ts +1 -0
  98. package/dist/clis/instagram/explore.js +41 -0
  99. package/dist/clis/instagram/follow.d.ts +1 -0
  100. package/dist/clis/instagram/follow.js +43 -0
  101. package/dist/clis/instagram/followers.d.ts +1 -0
  102. package/dist/clis/instagram/followers.js +45 -0
  103. package/dist/clis/instagram/following.d.ts +1 -0
  104. package/dist/clis/instagram/following.js +45 -0
  105. package/dist/clis/instagram/like.d.ts +1 -0
  106. package/dist/clis/instagram/like.js +45 -0
  107. package/dist/clis/instagram/profile.d.ts +1 -0
  108. package/dist/clis/instagram/profile.js +39 -0
  109. package/dist/clis/instagram/save.d.ts +1 -0
  110. package/dist/clis/instagram/save.js +45 -0
  111. package/dist/clis/instagram/saved.d.ts +1 -0
  112. package/dist/clis/instagram/saved.js +38 -0
  113. package/dist/clis/instagram/search.d.ts +1 -0
  114. package/dist/clis/instagram/search.js +38 -0
  115. package/dist/clis/instagram/unfollow.d.ts +1 -0
  116. package/dist/clis/instagram/unfollow.js +40 -0
  117. package/dist/clis/instagram/unlike.d.ts +1 -0
  118. package/dist/clis/instagram/unlike.js +45 -0
  119. package/dist/clis/instagram/unsave.d.ts +1 -0
  120. package/dist/clis/instagram/unsave.js +45 -0
  121. package/dist/clis/instagram/user.d.ts +1 -0
  122. package/dist/clis/instagram/user.js +48 -0
  123. package/dist/clis/jd/add-cart.d.ts +1 -0
  124. package/dist/clis/jd/add-cart.js +71 -0
  125. package/dist/clis/jd/cart.d.ts +1 -0
  126. package/dist/clis/jd/cart.js +79 -0
  127. package/dist/clis/jd/commands.test.d.ts +5 -0
  128. package/dist/clis/jd/commands.test.js +64 -0
  129. package/dist/clis/jd/detail.d.ts +1 -0
  130. package/dist/clis/jd/detail.js +62 -0
  131. package/dist/clis/jd/reviews.d.ts +1 -0
  132. package/dist/clis/jd/reviews.js +54 -0
  133. package/dist/clis/jd/search.d.ts +1 -0
  134. package/dist/clis/jd/search.js +65 -0
  135. package/dist/clis/jianyu/search.d.ts +14 -0
  136. package/dist/clis/jianyu/search.js +135 -0
  137. package/dist/clis/jianyu/search.test.d.ts +1 -0
  138. package/dist/clis/jianyu/search.test.js +23 -0
  139. package/dist/clis/jike/post.d.ts +1 -0
  140. package/dist/clis/jike/post.js +61 -0
  141. package/dist/clis/jike/topic.d.ts +1 -0
  142. package/dist/clis/jike/topic.js +51 -0
  143. package/dist/clis/jike/user.d.ts +1 -0
  144. package/dist/clis/jike/user.js +50 -0
  145. package/dist/clis/jimeng/generate.d.ts +1 -0
  146. package/dist/clis/jimeng/generate.js +83 -0
  147. package/dist/clis/jimeng/history.d.ts +1 -0
  148. package/dist/clis/jimeng/history.js +47 -0
  149. package/dist/clis/jimeng/new.d.ts +1 -0
  150. package/dist/clis/jimeng/new.js +43 -0
  151. package/dist/clis/jimeng/workspaces.d.ts +1 -0
  152. package/dist/clis/jimeng/workspaces.js +41 -0
  153. package/dist/clis/linux-do/categories.d.ts +1 -0
  154. package/dist/clis/linux-do/categories.js +65 -0
  155. package/dist/clis/linux-do/search.d.ts +1 -0
  156. package/dist/clis/linux-do/search.js +41 -0
  157. package/dist/clis/linux-do/tags.d.ts +1 -0
  158. package/dist/clis/linux-do/tags.js +39 -0
  159. package/dist/clis/linux-do/topic-content.test.js +5 -5
  160. package/dist/clis/linux-do/topic.d.ts +1 -0
  161. package/dist/clis/linux-do/topic.js +56 -0
  162. package/dist/clis/linux-do/user-posts.d.ts +1 -0
  163. package/dist/clis/linux-do/user-posts.js +61 -0
  164. package/dist/clis/linux-do/user-topics.d.ts +1 -0
  165. package/dist/clis/linux-do/user-topics.js +48 -0
  166. package/dist/clis/lobsters/active.d.ts +1 -0
  167. package/dist/clis/lobsters/active.js +26 -0
  168. package/dist/clis/lobsters/hot.d.ts +1 -0
  169. package/dist/clis/lobsters/hot.js +26 -0
  170. package/dist/clis/lobsters/newest.d.ts +1 -0
  171. package/dist/clis/lobsters/newest.js +26 -0
  172. package/dist/clis/lobsters/tag.d.ts +1 -0
  173. package/dist/clis/lobsters/tag.js +32 -0
  174. package/dist/clis/pixiv/detail.d.ts +1 -0
  175. package/dist/clis/pixiv/detail.js +58 -0
  176. package/dist/clis/pixiv/ranking.d.ts +1 -0
  177. package/dist/clis/pixiv/ranking.js +59 -0
  178. package/dist/clis/pixiv/user.d.ts +1 -0
  179. package/dist/clis/pixiv/user.js +52 -0
  180. package/dist/clis/quark/ls.d.ts +1 -0
  181. package/dist/clis/quark/ls.js +63 -0
  182. package/dist/clis/quark/mkdir.d.ts +1 -0
  183. package/dist/clis/quark/mkdir.js +36 -0
  184. package/dist/clis/quark/mv.d.ts +1 -0
  185. package/dist/clis/quark/mv.js +53 -0
  186. package/dist/clis/quark/rename.d.ts +1 -0
  187. package/dist/clis/quark/rename.js +26 -0
  188. package/dist/clis/quark/rm.d.ts +1 -0
  189. package/dist/clis/quark/rm.js +24 -0
  190. package/dist/clis/quark/save.d.ts +1 -0
  191. package/dist/clis/quark/save.js +80 -0
  192. package/dist/clis/quark/share-tree.d.ts +1 -0
  193. package/dist/clis/quark/share-tree.js +45 -0
  194. package/dist/clis/quark/utils.d.ts +50 -0
  195. package/dist/clis/quark/utils.js +146 -0
  196. package/dist/clis/quark/utils.test.d.ts +1 -0
  197. package/dist/clis/quark/utils.test.js +58 -0
  198. package/dist/clis/reddit/frontpage.d.ts +1 -0
  199. package/dist/clis/reddit/frontpage.js +31 -0
  200. package/dist/clis/reddit/hot.d.ts +1 -0
  201. package/dist/clis/reddit/hot.js +45 -0
  202. package/dist/clis/reddit/popular.d.ts +1 -0
  203. package/dist/clis/reddit/popular.js +41 -0
  204. package/dist/clis/reddit/search.d.ts +1 -0
  205. package/dist/clis/reddit/search.js +65 -0
  206. package/dist/clis/reddit/subreddit.d.ts +1 -0
  207. package/dist/clis/reddit/subreddit.js +52 -0
  208. package/dist/clis/reddit/user-comments.d.ts +1 -0
  209. package/dist/clis/reddit/user-comments.js +44 -0
  210. package/dist/clis/reddit/user-posts.d.ts +1 -0
  211. package/dist/clis/reddit/user-posts.js +42 -0
  212. package/dist/clis/reddit/user.d.ts +1 -0
  213. package/dist/clis/reddit/user.js +37 -0
  214. package/dist/clis/stackoverflow/bounties.d.ts +1 -0
  215. package/dist/clis/stackoverflow/bounties.js +27 -0
  216. package/dist/clis/stackoverflow/hot.d.ts +1 -0
  217. package/dist/clis/stackoverflow/hot.js +24 -0
  218. package/dist/clis/stackoverflow/search.d.ts +1 -0
  219. package/dist/clis/stackoverflow/search.js +27 -0
  220. package/dist/clis/stackoverflow/unanswered.d.ts +1 -0
  221. package/dist/clis/stackoverflow/unanswered.js +26 -0
  222. package/dist/clis/steam/top-sellers.d.ts +1 -0
  223. package/dist/clis/steam/top-sellers.js +25 -0
  224. package/dist/clis/taobao/add-cart.d.ts +1 -0
  225. package/dist/clis/taobao/add-cart.js +149 -0
  226. package/dist/clis/taobao/cart.d.ts +1 -0
  227. package/dist/clis/taobao/cart.js +95 -0
  228. package/dist/clis/taobao/commands.test.d.ts +5 -0
  229. package/dist/clis/taobao/commands.test.js +64 -0
  230. package/dist/clis/taobao/detail.d.ts +1 -0
  231. package/dist/clis/taobao/detail.js +70 -0
  232. package/dist/clis/taobao/reviews.d.ts +1 -0
  233. package/dist/clis/taobao/reviews.js +76 -0
  234. package/dist/clis/taobao/search.d.ts +1 -0
  235. package/dist/clis/taobao/search.js +96 -0
  236. package/dist/clis/tiktok/comment.d.ts +1 -0
  237. package/dist/clis/tiktok/comment.js +57 -0
  238. package/dist/clis/tiktok/explore.d.ts +1 -0
  239. package/dist/clis/tiktok/explore.js +35 -0
  240. package/dist/clis/tiktok/follow.d.ts +1 -0
  241. package/dist/clis/tiktok/follow.js +39 -0
  242. package/dist/clis/tiktok/following.d.ts +1 -0
  243. package/dist/clis/tiktok/following.js +42 -0
  244. package/dist/clis/tiktok/friends.d.ts +1 -0
  245. package/dist/clis/tiktok/friends.js +43 -0
  246. package/dist/clis/tiktok/like.d.ts +1 -0
  247. package/dist/clis/tiktok/like.js +33 -0
  248. package/dist/clis/tiktok/live.d.ts +1 -0
  249. package/dist/clis/tiktok/live.js +47 -0
  250. package/dist/clis/tiktok/notifications.d.ts +1 -0
  251. package/dist/clis/tiktok/notifications.js +49 -0
  252. package/dist/clis/tiktok/profile.d.ts +1 -0
  253. package/dist/clis/tiktok/profile.js +54 -0
  254. package/dist/clis/tiktok/save.d.ts +1 -0
  255. package/dist/clis/tiktok/save.js +29 -0
  256. package/dist/clis/tiktok/search.d.ts +1 -0
  257. package/dist/clis/tiktok/search.js +39 -0
  258. package/dist/clis/tiktok/unfollow.d.ts +1 -0
  259. package/dist/clis/tiktok/unfollow.js +44 -0
  260. package/dist/clis/tiktok/unlike.d.ts +1 -0
  261. package/dist/clis/tiktok/unlike.js +33 -0
  262. package/dist/clis/tiktok/unsave.d.ts +1 -0
  263. package/dist/clis/tiktok/unsave.js +31 -0
  264. package/dist/clis/tiktok/user.d.ts +1 -0
  265. package/dist/clis/tiktok/user.js +41 -0
  266. package/dist/clis/twitter/reply.js +3 -8
  267. package/dist/clis/twitter/reply.test.js +5 -5
  268. package/dist/clis/v2ex/hot.d.ts +1 -0
  269. package/dist/clis/v2ex/hot.js +25 -0
  270. package/dist/clis/v2ex/latest.d.ts +1 -0
  271. package/dist/clis/v2ex/latest.js +25 -0
  272. package/dist/clis/v2ex/member.d.ts +1 -0
  273. package/dist/clis/v2ex/member.js +27 -0
  274. package/dist/clis/v2ex/node.d.ts +1 -0
  275. package/dist/clis/v2ex/node.js +38 -0
  276. package/dist/clis/v2ex/nodes.d.ts +1 -0
  277. package/dist/clis/v2ex/nodes.js +25 -0
  278. package/dist/clis/v2ex/replies.d.ts +1 -0
  279. package/dist/clis/v2ex/replies.js +26 -0
  280. package/dist/clis/v2ex/topic.d.ts +1 -0
  281. package/dist/clis/v2ex/topic.js +30 -0
  282. package/dist/clis/v2ex/user.d.ts +1 -0
  283. package/dist/clis/v2ex/user.js +33 -0
  284. package/dist/clis/xiaoe/catalog.d.ts +1 -0
  285. package/dist/clis/xiaoe/catalog.js +125 -0
  286. package/dist/clis/xiaoe/content.d.ts +1 -0
  287. package/dist/clis/xiaoe/content.js +39 -0
  288. package/dist/clis/xiaoe/courses.d.ts +1 -0
  289. package/dist/clis/xiaoe/courses.js +69 -0
  290. package/dist/clis/xiaoe/detail.d.ts +1 -0
  291. package/dist/clis/xiaoe/detail.js +35 -0
  292. package/dist/clis/xiaoe/play-url.d.ts +1 -0
  293. package/dist/clis/xiaoe/play-url.js +120 -0
  294. package/dist/clis/xiaohongshu/feed.d.ts +1 -0
  295. package/dist/clis/xiaohongshu/feed.js +32 -0
  296. package/dist/clis/xiaohongshu/note.js +8 -3
  297. package/dist/clis/xiaohongshu/note.test.js +11 -0
  298. package/dist/clis/xiaohongshu/notifications.d.ts +1 -0
  299. package/dist/clis/xiaohongshu/notifications.js +38 -0
  300. package/dist/clis/xueqiu/earnings-date.d.ts +1 -0
  301. package/dist/clis/xueqiu/earnings-date.js +61 -0
  302. package/dist/clis/xueqiu/feed.d.ts +1 -0
  303. package/dist/clis/xueqiu/feed.js +48 -0
  304. package/dist/clis/xueqiu/groups.d.ts +1 -0
  305. package/dist/clis/xueqiu/groups.js +25 -0
  306. package/dist/clis/xueqiu/hot-stock.d.ts +1 -0
  307. package/dist/clis/xueqiu/hot-stock.js +44 -0
  308. package/dist/clis/xueqiu/hot.d.ts +1 -0
  309. package/dist/clis/xueqiu/hot.js +44 -0
  310. package/dist/clis/xueqiu/kline.d.ts +1 -0
  311. package/dist/clis/xueqiu/kline.js +64 -0
  312. package/dist/clis/xueqiu/search.d.ts +1 -0
  313. package/dist/clis/xueqiu/search.js +49 -0
  314. package/dist/clis/xueqiu/stock.d.ts +1 -0
  315. package/dist/clis/xueqiu/stock.js +72 -0
  316. package/dist/clis/xueqiu/watchlist.d.ts +1 -0
  317. package/dist/clis/xueqiu/watchlist.js +45 -0
  318. package/dist/clis/zhihu/answer.d.ts +1 -0
  319. package/dist/clis/zhihu/answer.js +194 -0
  320. package/dist/clis/zhihu/answer.test.d.ts +1 -0
  321. package/dist/clis/zhihu/answer.test.js +81 -0
  322. package/dist/clis/zhihu/comment.d.ts +1 -0
  323. package/dist/clis/zhihu/comment.js +335 -0
  324. package/dist/clis/zhihu/comment.test.d.ts +1 -0
  325. package/dist/clis/zhihu/comment.test.js +54 -0
  326. package/dist/clis/zhihu/favorite.d.ts +1 -0
  327. package/dist/clis/zhihu/favorite.js +224 -0
  328. package/dist/clis/zhihu/favorite.test.d.ts +1 -0
  329. package/dist/clis/zhihu/favorite.test.js +196 -0
  330. package/dist/clis/zhihu/follow.d.ts +1 -0
  331. package/dist/clis/zhihu/follow.js +80 -0
  332. package/dist/clis/zhihu/follow.test.d.ts +1 -0
  333. package/dist/clis/zhihu/follow.test.js +45 -0
  334. package/dist/clis/zhihu/hot.d.ts +1 -0
  335. package/dist/clis/zhihu/hot.js +43 -0
  336. package/dist/clis/zhihu/like.d.ts +1 -0
  337. package/dist/clis/zhihu/like.js +91 -0
  338. package/dist/clis/zhihu/like.test.d.ts +1 -0
  339. package/dist/clis/zhihu/like.test.js +64 -0
  340. package/dist/clis/zhihu/search.d.ts +1 -0
  341. package/dist/clis/zhihu/search.js +52 -0
  342. package/dist/clis/zhihu/target.d.ts +24 -0
  343. package/dist/clis/zhihu/target.js +91 -0
  344. package/dist/clis/zhihu/target.test.d.ts +1 -0
  345. package/dist/clis/zhihu/target.test.js +77 -0
  346. package/dist/clis/zhihu/write-shared.d.ts +32 -0
  347. package/dist/clis/zhihu/write-shared.js +221 -0
  348. package/dist/clis/zhihu/write-shared.test.d.ts +1 -0
  349. package/dist/clis/zhihu/write-shared.test.js +175 -0
  350. package/dist/src/browser/bridge.d.ts +2 -0
  351. package/dist/src/browser/bridge.js +30 -24
  352. package/dist/src/browser/daemon-client.d.ts +30 -10
  353. package/dist/src/browser/daemon-client.js +42 -27
  354. package/dist/src/browser/daemon-client.test.js +32 -25
  355. package/dist/src/browser/dom-helpers.test.js +3 -2
  356. package/dist/src/browser/errors.d.ts +26 -1
  357. package/dist/src/browser/errors.js +40 -7
  358. package/dist/src/browser/errors.test.d.ts +1 -0
  359. package/dist/src/browser/errors.test.js +51 -0
  360. package/dist/src/browser/index.d.ts +2 -1
  361. package/dist/src/browser/index.js +1 -1
  362. package/dist/src/browser/page.d.ts +9 -8
  363. package/dist/src/browser/page.js +33 -31
  364. package/dist/src/browser.test.js +27 -8
  365. package/dist/src/build-manifest.d.ts +5 -11
  366. package/dist/src/build-manifest.js +6 -75
  367. package/dist/src/build-manifest.test.js +1 -39
  368. package/dist/src/cascade.js +3 -2
  369. package/dist/src/cli.d.ts +3 -3
  370. package/dist/src/cli.js +73 -65
  371. package/dist/src/cli.test.js +20 -15
  372. package/dist/src/clis/binance/asks.d.ts +1 -0
  373. package/dist/src/clis/binance/asks.js +20 -0
  374. package/dist/src/clis/binance/commands.test.d.ts +3 -0
  375. package/dist/src/clis/binance/commands.test.js +58 -0
  376. package/dist/src/clis/binance/depth.d.ts +1 -0
  377. package/dist/src/clis/binance/depth.js +20 -0
  378. package/dist/src/clis/binance/gainers.d.ts +1 -0
  379. package/dist/src/clis/binance/gainers.js +21 -0
  380. package/dist/src/clis/binance/klines.d.ts +1 -0
  381. package/dist/src/clis/binance/klines.js +20 -0
  382. package/dist/src/clis/binance/losers.d.ts +1 -0
  383. package/dist/src/clis/binance/losers.js +21 -0
  384. package/dist/src/clis/binance/pairs.d.ts +1 -0
  385. package/dist/src/clis/binance/pairs.js +20 -0
  386. package/dist/src/clis/binance/price.d.ts +1 -0
  387. package/dist/src/clis/binance/price.js +17 -0
  388. package/dist/src/clis/binance/prices.d.ts +1 -0
  389. package/dist/src/clis/binance/prices.js +18 -0
  390. package/dist/src/clis/binance/ticker.d.ts +1 -0
  391. package/dist/src/clis/binance/ticker.js +20 -0
  392. package/dist/src/clis/binance/top.d.ts +1 -0
  393. package/dist/src/clis/binance/top.js +20 -0
  394. package/dist/src/clis/binance/trades.d.ts +1 -0
  395. package/dist/src/clis/binance/trades.js +19 -0
  396. package/dist/src/commanderAdapter.js +19 -6
  397. package/dist/src/completion-fast.d.ts +25 -0
  398. package/dist/src/completion-fast.js +140 -0
  399. package/dist/src/completion.d.ts +1 -0
  400. package/dist/src/completion.js +1 -0
  401. package/dist/src/diagnostic.d.ts +1 -0
  402. package/dist/src/diagnostic.js +64 -2
  403. package/dist/src/diagnostic.test.js +93 -3
  404. package/dist/src/discovery.d.ts +3 -3
  405. package/dist/src/discovery.js +34 -97
  406. package/dist/src/doctor.d.ts +2 -0
  407. package/dist/src/doctor.js +59 -31
  408. package/dist/src/doctor.test.js +89 -16
  409. package/dist/src/download/index.d.ts +1 -1
  410. package/dist/src/engine.test.js +4 -19
  411. package/dist/src/execution.js +1 -13
  412. package/dist/src/explore.js +1 -1
  413. package/dist/src/generate-verified.d.ts +105 -0
  414. package/dist/src/generate-verified.js +696 -0
  415. package/dist/src/generate-verified.test.d.ts +1 -0
  416. package/dist/src/generate-verified.test.js +925 -0
  417. package/dist/src/generate.d.ts +11 -6
  418. package/dist/src/generate.js +4 -7
  419. package/dist/src/main.js +65 -12
  420. package/dist/src/pipeline/steps/download.d.ts +1 -17
  421. package/dist/src/pipeline/steps/download.js +20 -31
  422. package/dist/src/pipeline/steps/intercept.d.ts +1 -1
  423. package/dist/src/pipeline/steps/intercept.js +1 -1
  424. package/dist/src/pipeline/steps/tap.d.ts +1 -1
  425. package/dist/src/pipeline/steps/tap.js +1 -1
  426. package/dist/src/plugin-scaffold.d.ts +2 -2
  427. package/dist/src/plugin-scaffold.js +24 -21
  428. package/dist/src/plugin-scaffold.test.js +1 -1
  429. package/dist/src/plugin.d.ts +3 -2
  430. package/dist/src/plugin.js +29 -14
  431. package/dist/src/plugin.test.js +47 -32
  432. package/dist/src/record.js +26 -25
  433. package/dist/src/runtime-detect.js +3 -7
  434. package/dist/src/scripts/framework.d.ts +3 -0
  435. package/dist/src/scripts/framework.js +8 -4
  436. package/dist/src/scripts/store.d.ts +5 -1
  437. package/dist/src/scripts/store.js +5 -1
  438. package/dist/src/skill-generate.d.ts +30 -0
  439. package/dist/src/skill-generate.js +75 -0
  440. package/dist/src/skill-generate.test.d.ts +1 -0
  441. package/dist/src/skill-generate.test.js +173 -0
  442. package/dist/src/synthesize.d.ts +1 -1
  443. package/dist/src/synthesize.js +7 -8
  444. package/dist/src/types.d.ts +3 -1
  445. package/package.json +5 -5
  446. package/dist/clis/bilibili/hot.yaml +0 -38
  447. package/dist/clis/bluesky/feeds.yaml +0 -29
  448. package/dist/clis/bluesky/followers.yaml +0 -33
  449. package/dist/clis/bluesky/following.yaml +0 -33
  450. package/dist/clis/bluesky/profile.yaml +0 -27
  451. package/dist/clis/bluesky/search.yaml +0 -34
  452. package/dist/clis/bluesky/starter-packs.yaml +0 -34
  453. package/dist/clis/bluesky/thread.yaml +0 -32
  454. package/dist/clis/bluesky/trending.yaml +0 -27
  455. package/dist/clis/bluesky/user.yaml +0 -34
  456. package/dist/clis/devto/tag.yaml +0 -34
  457. package/dist/clis/devto/top.yaml +0 -29
  458. package/dist/clis/devto/user.yaml +0 -33
  459. package/dist/clis/dictionary/examples.yaml +0 -25
  460. package/dist/clis/dictionary/search.yaml +0 -27
  461. package/dist/clis/dictionary/synonyms.yaml +0 -25
  462. package/dist/clis/douban/subject.yaml +0 -107
  463. package/dist/clis/douban/top250.yaml +0 -70
  464. package/dist/clis/facebook/add-friend.yaml +0 -43
  465. package/dist/clis/facebook/events.yaml +0 -44
  466. package/dist/clis/facebook/feed.yaml +0 -63
  467. package/dist/clis/facebook/friends.yaml +0 -42
  468. package/dist/clis/facebook/groups.yaml +0 -50
  469. package/dist/clis/facebook/join-group.yaml +0 -44
  470. package/dist/clis/facebook/memories.yaml +0 -39
  471. package/dist/clis/facebook/notifications.yaml +0 -40
  472. package/dist/clis/facebook/profile.yaml +0 -37
  473. package/dist/clis/facebook/search.yaml +0 -47
  474. package/dist/clis/hackernews/ask.yaml +0 -38
  475. package/dist/clis/hackernews/best.yaml +0 -38
  476. package/dist/clis/hackernews/jobs.yaml +0 -36
  477. package/dist/clis/hackernews/new.yaml +0 -38
  478. package/dist/clis/hackernews/search.yaml +0 -44
  479. package/dist/clis/hackernews/show.yaml +0 -38
  480. package/dist/clis/hackernews/top.yaml +0 -38
  481. package/dist/clis/hackernews/user.yaml +0 -25
  482. package/dist/clis/hupu/hot.yaml +0 -43
  483. package/dist/clis/instagram/comment.yaml +0 -52
  484. package/dist/clis/instagram/explore.yaml +0 -43
  485. package/dist/clis/instagram/follow.yaml +0 -41
  486. package/dist/clis/instagram/followers.yaml +0 -51
  487. package/dist/clis/instagram/following.yaml +0 -51
  488. package/dist/clis/instagram/like.yaml +0 -46
  489. package/dist/clis/instagram/profile.yaml +0 -42
  490. package/dist/clis/instagram/save.yaml +0 -46
  491. package/dist/clis/instagram/saved.yaml +0 -40
  492. package/dist/clis/instagram/search.yaml +0 -44
  493. package/dist/clis/instagram/unfollow.yaml +0 -38
  494. package/dist/clis/instagram/unlike.yaml +0 -46
  495. package/dist/clis/instagram/unsave.yaml +0 -46
  496. package/dist/clis/instagram/user.yaml +0 -54
  497. package/dist/clis/jike/post.yaml +0 -59
  498. package/dist/clis/jike/topic.yaml +0 -53
  499. package/dist/clis/jike/user.yaml +0 -52
  500. package/dist/clis/jimeng/generate.yaml +0 -85
  501. package/dist/clis/jimeng/history.yaml +0 -46
  502. package/dist/clis/linux-do/categories.yaml +0 -70
  503. package/dist/clis/linux-do/search.yaml +0 -48
  504. package/dist/clis/linux-do/tags.yaml +0 -41
  505. package/dist/clis/linux-do/topic.yaml +0 -62
  506. package/dist/clis/linux-do/user-posts.yaml +0 -67
  507. package/dist/clis/linux-do/user-topics.yaml +0 -54
  508. package/dist/clis/lobsters/active.yaml +0 -29
  509. package/dist/clis/lobsters/hot.yaml +0 -29
  510. package/dist/clis/lobsters/newest.yaml +0 -29
  511. package/dist/clis/lobsters/tag.yaml +0 -34
  512. package/dist/clis/pixiv/detail.yaml +0 -49
  513. package/dist/clis/pixiv/ranking.yaml +0 -53
  514. package/dist/clis/pixiv/user.yaml +0 -46
  515. package/dist/clis/reddit/frontpage.yaml +0 -30
  516. package/dist/clis/reddit/hot.yaml +0 -47
  517. package/dist/clis/reddit/popular.yaml +0 -40
  518. package/dist/clis/reddit/search.yaml +0 -61
  519. package/dist/clis/reddit/subreddit.yaml +0 -50
  520. package/dist/clis/reddit/user-comments.yaml +0 -46
  521. package/dist/clis/reddit/user-posts.yaml +0 -44
  522. package/dist/clis/reddit/user.yaml +0 -40
  523. package/dist/clis/stackoverflow/bounties.yaml +0 -29
  524. package/dist/clis/stackoverflow/hot.yaml +0 -28
  525. package/dist/clis/stackoverflow/search.yaml +0 -33
  526. package/dist/clis/stackoverflow/unanswered.yaml +0 -28
  527. package/dist/clis/steam/top-sellers.yaml +0 -29
  528. package/dist/clis/tiktok/comment.yaml +0 -66
  529. package/dist/clis/tiktok/explore.yaml +0 -39
  530. package/dist/clis/tiktok/follow.yaml +0 -39
  531. package/dist/clis/tiktok/following.yaml +0 -46
  532. package/dist/clis/tiktok/friends.yaml +0 -47
  533. package/dist/clis/tiktok/like.yaml +0 -38
  534. package/dist/clis/tiktok/live.yaml +0 -51
  535. package/dist/clis/tiktok/notifications.yaml +0 -52
  536. package/dist/clis/tiktok/profile.yaml +0 -45
  537. package/dist/clis/tiktok/save.yaml +0 -34
  538. package/dist/clis/tiktok/search.yaml +0 -47
  539. package/dist/clis/tiktok/unfollow.yaml +0 -44
  540. package/dist/clis/tiktok/unlike.yaml +0 -38
  541. package/dist/clis/tiktok/unsave.yaml +0 -36
  542. package/dist/clis/tiktok/user.yaml +0 -44
  543. package/dist/clis/v2ex/hot.yaml +0 -28
  544. package/dist/clis/v2ex/latest.yaml +0 -28
  545. package/dist/clis/v2ex/member.yaml +0 -29
  546. package/dist/clis/v2ex/node.yaml +0 -34
  547. package/dist/clis/v2ex/nodes.yaml +0 -31
  548. package/dist/clis/v2ex/replies.yaml +0 -32
  549. package/dist/clis/v2ex/topic.yaml +0 -33
  550. package/dist/clis/v2ex/user.yaml +0 -34
  551. package/dist/clis/xiaoe/catalog.yaml +0 -129
  552. package/dist/clis/xiaoe/content.yaml +0 -43
  553. package/dist/clis/xiaoe/courses.yaml +0 -73
  554. package/dist/clis/xiaoe/detail.yaml +0 -39
  555. package/dist/clis/xiaoe/play-url.yaml +0 -124
  556. package/dist/clis/xiaohongshu/feed.yaml +0 -31
  557. package/dist/clis/xiaohongshu/notifications.yaml +0 -37
  558. package/dist/clis/xueqiu/earnings-date.yaml +0 -69
  559. package/dist/clis/xueqiu/feed.yaml +0 -53
  560. package/dist/clis/xueqiu/groups.yaml +0 -23
  561. package/dist/clis/xueqiu/hot-stock.yaml +0 -49
  562. package/dist/clis/xueqiu/hot.yaml +0 -46
  563. package/dist/clis/xueqiu/kline.yaml +0 -65
  564. package/dist/clis/xueqiu/search.yaml +0 -55
  565. package/dist/clis/xueqiu/stock.yaml +0 -69
  566. package/dist/clis/xueqiu/watchlist.yaml +0 -46
  567. package/dist/clis/zhihu/hot.yaml +0 -46
  568. package/dist/clis/zhihu/search.yaml +0 -59
  569. package/dist/src/browser/discover.d.ts +0 -15
  570. package/dist/src/browser/discover.js +0 -19
  571. package/dist/src/yaml-schema.d.ts +0 -29
  572. package/dist/src/yaml-schema.js +0 -22
@@ -1,33 +0,0 @@
1
- site: devto
2
- name: user
3
- description: Recent DEV.to articles from a specific user
4
- domain: dev.to
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- username:
10
- type: str
11
- required: true
12
- positional: true
13
- description: "DEV.to username (e.g. ben, thepracticaldev)"
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?username=${{ args.username }}&per_page=${{ args.limit }}
22
-
23
- - map:
24
- rank: ${{ index + 1 }}
25
- title: ${{ item.title }}
26
- reactions: ${{ item.public_reactions_count }}
27
- comments: ${{ item.comments_count }}
28
- tags: ${{ item.tag_list | join(', ') }}
29
- url: ${{ item.url }}
30
-
31
- - limit: ${{ args.limit }}
32
-
33
- columns: [rank, title, reactions, comments, tags]
@@ -1,25 +0,0 @@
1
- site: dictionary
2
- name: examples
3
- description: Read real-world example sentences utilizing the word
4
- domain: api.dictionaryapi.dev
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- word:
10
- type: string
11
- required: true
12
- positional: true
13
- description: Word to get example sentences for
14
-
15
- pipeline:
16
- - fetch:
17
- url: "https://api.dictionaryapi.dev/api/v2/entries/en/${{ args.word | urlencode }}"
18
-
19
- - map:
20
- word: "${{ item.word }}"
21
- example: "${{ (() => { if (item.meanings) { for (const m of item.meanings) { if (m.definitions) { for (const d of m.definitions) { if (d.example) return d.example; } } } } return 'No example found in API.'; })() }}"
22
-
23
- - limit: 1
24
-
25
- columns: [word, example]
@@ -1,27 +0,0 @@
1
- site: dictionary
2
- name: search
3
- description: Search the Free Dictionary API for definitions, parts of speech, and pronunciations.
4
- domain: api.dictionaryapi.dev
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- word:
10
- type: string
11
- required: true
12
- positional: true
13
- description: Word to define (e.g., serendipity)
14
-
15
- pipeline:
16
- - fetch:
17
- url: "https://api.dictionaryapi.dev/api/v2/entries/en/${{ args.word | urlencode }}"
18
-
19
- - map:
20
- word: "${{ item.word }}"
21
- phonetic: "${{ (() => { if (item.phonetic) return item.phonetic; if (item.phonetics) { for (const p of item.phonetics) { if (p.text) return p.text; } } return ''; })() }}"
22
- type: "${{ (() => { if (item.meanings && item.meanings[0] && item.meanings[0].partOfSpeech) return item.meanings[0].partOfSpeech; return 'N/A'; })() }}"
23
- definition: "${{ (() => { if (item.meanings && item.meanings[0] && item.meanings[0].definitions && item.meanings[0].definitions[0] && item.meanings[0].definitions[0].definition) return item.meanings[0].definitions[0].definition; return 'No definition found in API.'; })() }}"
24
-
25
- - limit: 1
26
-
27
- columns: [word, phonetic, type, definition]
@@ -1,25 +0,0 @@
1
- site: dictionary
2
- name: synonyms
3
- description: Find synonyms for a specific word
4
- domain: api.dictionaryapi.dev
5
- strategy: public
6
- browser: false
7
-
8
- args:
9
- word:
10
- type: string
11
- required: true
12
- positional: true
13
- description: Word to find synonyms for (e.g., serendipity)
14
-
15
- pipeline:
16
- - fetch:
17
- url: "https://api.dictionaryapi.dev/api/v2/entries/en/${{ args.word | urlencode }}"
18
-
19
- - map:
20
- word: "${{ item.word }}"
21
- synonyms: "${{ (() => { const s = new Set(); if (item.meanings) { for (const m of item.meanings) { if (m.synonyms) { for (const syn of m.synonyms) s.add(syn); } if (m.definitions) { for (const d of m.definitions) { if (d.synonyms) { for (const syn of d.synonyms) s.add(syn); } } } } } const arr = Array.from(s); return arr.length > 0 ? arr.slice(0, 5).join(', ') : 'No synonyms found in API.'; })() }}"
22
-
23
- - limit: 1
24
-
25
- columns: [word, synonyms]
@@ -1,107 +0,0 @@
1
- site: douban
2
- name: subject
3
- description: 获取电影详情
4
- domain: movie.douban.com
5
- strategy: cookie
6
- browser: true
7
-
8
- args:
9
- id:
10
- positional: true
11
- required: true
12
- type: str
13
- description: 电影 ID
14
-
15
- pipeline:
16
- - navigate: https://movie.douban.com/subject/${{ args.id }}
17
-
18
- - evaluate: |
19
- (async () => {
20
- const id = '${{ args.id }}';
21
-
22
- // Wait for page to load
23
- await new Promise(r => setTimeout(r, 2000));
24
-
25
- // Extract title - v:itemreviewed contains "中文名 OriginalName"
26
- const titleEl = document.querySelector('span[property="v:itemreviewed"]');
27
- const fullTitle = titleEl?.textContent?.trim() || '';
28
-
29
- // Split title and originalTitle
30
- // Douban format: "中文名 OriginalName" - split by first space that separates CJK from non-CJK
31
- let title = fullTitle;
32
- let originalTitle = '';
33
- const titleMatch = fullTitle.match(/^([\u4e00-\u9fff\u3000-\u303f\uff00-\uffef]+(?:\s*[\u4e00-\u9fff\u3000-\u303f\uff00-\uffef·::!?]+)*)\s+(.+)$/);
34
- if (titleMatch) {
35
- title = titleMatch[1].trim();
36
- originalTitle = titleMatch[2].trim();
37
- }
38
-
39
- // Extract year
40
- const yearEl = document.querySelector('.year');
41
- const year = yearEl?.textContent?.trim().replace(/[()()]/g, '') || '';
42
-
43
- // Extract rating
44
- const ratingEl = document.querySelector('strong[property="v:average"]');
45
- const rating = parseFloat(ratingEl?.textContent || '0');
46
-
47
- // Extract rating count
48
- const ratingCountEl = document.querySelector('span[property="v:votes"]');
49
- const ratingCount = parseInt(ratingCountEl?.textContent || '0', 10);
50
-
51
- // Extract genres
52
- const genreEls = document.querySelectorAll('span[property="v:genre"]');
53
- const genres = Array.from(genreEls).map(el => el.textContent?.trim()).filter(Boolean).join(',');
54
-
55
- // Extract directors
56
- const directorEls = document.querySelectorAll('a[rel="v:directedBy"]');
57
- const directors = Array.from(directorEls).map(el => el.textContent?.trim()).filter(Boolean).join(',');
58
-
59
- // Extract casts
60
- const castEls = document.querySelectorAll('a[rel="v:starring"]');
61
- const casts = Array.from(castEls).slice(0, 5).map(el => el.textContent?.trim()).filter(Boolean);
62
-
63
- // Extract info section for country and duration
64
- const infoEl = document.querySelector('#info');
65
- const infoText = infoEl?.textContent || '';
66
-
67
- // Extract country/region from #info as list
68
- let country = [];
69
- const countryMatch = infoText.match(/制片国家\/地区:\s*([^\n]+)/);
70
- if (countryMatch) {
71
- country = countryMatch[1].trim().split(/\s*\/\s*/).filter(Boolean);
72
- }
73
-
74
- // Extract duration from #info as pure number in min
75
- const durationEl = document.querySelector('span[property="v:runtime"]');
76
- let durationRaw = durationEl?.textContent?.trim() || '';
77
- if (!durationRaw) {
78
- const durationMatch = infoText.match(/片长:\s*([^\n]+)/);
79
- if (durationMatch) {
80
- durationRaw = durationMatch[1].trim();
81
- }
82
- }
83
- const durationNumMatch = durationRaw.match(/(\d+)/);
84
- const duration = durationNumMatch ? parseInt(durationNumMatch[1], 10) : null;
85
-
86
- // Extract summary
87
- const summaryEl = document.querySelector('span[property="v:summary"]');
88
- const summary = summaryEl?.textContent?.trim() || '';
89
-
90
- return [{
91
- id,
92
- title,
93
- originalTitle,
94
- year,
95
- rating,
96
- ratingCount,
97
- genres,
98
- directors,
99
- casts,
100
- country,
101
- duration,
102
- summary: summary.substring(0, 200),
103
- url: `https://movie.douban.com/subject/${id}`
104
- }];
105
- })()
106
-
107
- columns: [id, title, originalTitle, year, rating, ratingCount, genres, directors, casts, country, duration, summary, url]
@@ -1,70 +0,0 @@
1
- site: douban
2
- name: top250
3
- description: 豆瓣电影 Top250
4
- domain: movie.douban.com
5
- strategy: cookie
6
- browser: true
7
-
8
- args:
9
- limit:
10
- type: int
11
- default: 250
12
- description: 返回结果数量
13
-
14
- pipeline:
15
- - navigate: https://movie.douban.com/top250
16
-
17
- - evaluate: |
18
- async () => {
19
- const results = [];
20
- const limit = ${{ args.limit }};
21
-
22
- const parsePage = (doc) => {
23
- const items = doc.querySelectorAll('.item');
24
- for (const item of items) {
25
- if (results.length >= limit) break;
26
-
27
- const rankEl = item.querySelector('.pic em');
28
- const linkEl = item.querySelector('a');
29
- const titleEl = item.querySelector('.title');
30
- const ratingEl = item.querySelector('.rating_num');
31
-
32
- const href = linkEl?.href || '';
33
- const matchResult = href.match(/subject\/(\d+)/);
34
- const id = matchResult ? matchResult[1] : '';
35
-
36
- const title = titleEl?.textContent?.trim() || '';
37
- const rank = parseInt(rankEl?.textContent || '0', 10);
38
- const rating = ratingEl?.textContent?.trim() || '';
39
-
40
- if (id && title) {
41
- results.push({
42
- rank: rank || results.length + 1,
43
- id,
44
- title,
45
- rating: rating ? parseFloat(rating) : 0,
46
- url: href
47
- });
48
- }
49
- }
50
- };
51
-
52
- parsePage(document);
53
-
54
- for (let start = 25; start < 250 && results.length < limit; start += 25) {
55
- const resp = await fetch(`https://movie.douban.com/top250?start=${start}`);
56
- if (!resp.ok) break;
57
- const html = await resp.text();
58
- if (!html) break;
59
-
60
- const doc = new DOMParser().parseFromString(html, 'text/html');
61
- parsePage(doc);
62
- await new Promise(r => setTimeout(r, 150));
63
- }
64
-
65
- return results;
66
- }
67
-
68
- - limit: ${{ args.limit }}
69
-
70
- columns: [rank, id, title, rating, url]
@@ -1,43 +0,0 @@
1
- site: facebook
2
- name: add-friend
3
- description: Send a friend request on Facebook
4
- domain: www.facebook.com
5
-
6
- args:
7
- username:
8
- type: str
9
- required: true
10
- positional: true
11
- description: Facebook username or profile URL
12
-
13
- pipeline:
14
- - navigate:
15
- url: https://www.facebook.com/${{ args.username }}
16
- settleMs: 3000
17
-
18
- - evaluate: |
19
- (async () => {
20
- const username = ${{ args.username | json }};
21
- // Find "Add Friend" button
22
- const buttons = Array.from(document.querySelectorAll('[role="button"]'));
23
- const addBtn = buttons.find(b => {
24
- const text = b.textContent.trim();
25
- return text === '加好友' || text === 'Add Friend' || text === 'Add friend';
26
- });
27
-
28
- if (!addBtn) {
29
- // Check if already friends
30
- const isFriend = buttons.some(b => {
31
- const t = b.textContent.trim();
32
- return t === '好友' || t === 'Friends' || t.includes('已发送') || t.includes('Pending');
33
- });
34
- if (isFriend) return [{ status: 'Already friends or request pending', username }];
35
- return [{ status: 'Add Friend button not found', username }];
36
- }
37
-
38
- addBtn.click();
39
- await new Promise(r => setTimeout(r, 1500));
40
- return [{ status: 'Friend request sent', username }];
41
- })()
42
-
43
- columns: [status, username]
@@ -1,44 +0,0 @@
1
- site: facebook
2
- name: events
3
- description: Browse Facebook event categories
4
- domain: www.facebook.com
5
-
6
- args:
7
- limit:
8
- type: int
9
- default: 15
10
- description: Number of categories
11
-
12
- pipeline:
13
- - navigate:
14
- url: https://www.facebook.com/events
15
- settleMs: 3000
16
-
17
- - evaluate: |
18
- (() => {
19
- const limit = ${{ args.limit }};
20
- // Try actual event items first
21
- const articles = document.querySelectorAll('[role="article"]');
22
- if (articles.length > 0) {
23
- return Array.from(articles).slice(0, limit).map((el, i) => ({
24
- index: i + 1,
25
- name: el.textContent.trim().replace(/\s+/g, ' ').substring(0, 120),
26
- }));
27
- }
28
-
29
- // List event categories from sidebar navigation
30
- const links = Array.from(document.querySelectorAll('[role="navigation"] a'))
31
- .filter(a => {
32
- const href = a.href || '';
33
- const text = a.textContent.trim();
34
- return href.includes('/events/') && text.length > 1 && text.length < 60 &&
35
- !href.includes('create');
36
- });
37
-
38
- return links.slice(0, limit).map((a, i) => ({
39
- index: i + 1,
40
- name: a.textContent.trim(),
41
- }));
42
- })()
43
-
44
- columns: [index, name]
@@ -1,63 +0,0 @@
1
- site: facebook
2
- name: feed
3
- description: Get your Facebook news feed
4
- domain: www.facebook.com
5
-
6
- args:
7
- limit:
8
- type: int
9
- default: 10
10
- description: Number of posts
11
-
12
- pipeline:
13
- - navigate:
14
- url: https://www.facebook.com/
15
- settleMs: 4000
16
-
17
- - evaluate: |
18
- (() => {
19
- const limit = ${{ args.limit }};
20
- const posts = document.querySelectorAll('[role="article"]');
21
- return Array.from(posts)
22
- .filter(el => {
23
- const text = el.textContent.trim();
24
- // Filter out "People you may know" suggestions (both CN and EN)
25
- return text.length > 30 &&
26
- !text.startsWith('可能认识') &&
27
- !text.startsWith('People you may know') &&
28
- !text.startsWith('People You May Know');
29
- })
30
- .slice(0, limit)
31
- .map((el, i) => {
32
- // Author from header link
33
- const headerLink = el.querySelector('h2 a, h3 a, h4 a, strong a');
34
- const author = headerLink ? headerLink.textContent.trim() : '';
35
-
36
- // Post text: grab visible spans, filter noise
37
- const spans = Array.from(el.querySelectorAll('div[dir="auto"]'))
38
- .map(s => s.textContent.trim())
39
- .filter(t => t.length > 10 && t.length < 500);
40
- const content = spans.length > 0 ? spans[0] : '';
41
-
42
- // Engagement: find like/comment/share counts (CN + EN)
43
- const allText = el.textContent;
44
- const likesMatch = allText.match(/所有心情:([\d,.\s]*[\d万亿KMk]+)/) ||
45
- allText.match(/All:\s*([\d,.KMk]+)/) ||
46
- allText.match(/([\d,.KMk]+)\s*(?:likes?|reactions?)/i);
47
- const commentsMatch = allText.match(/([\d,.]+\s*[万亿]?)\s*条评论/) ||
48
- allText.match(/([\d,.KMk]+)\s*comments?/i);
49
- const sharesMatch = allText.match(/([\d,.]+\s*[万亿]?)\s*次分享/) ||
50
- allText.match(/([\d,.KMk]+)\s*shares?/i);
51
-
52
- return {
53
- index: i + 1,
54
- author: author.substring(0, 50),
55
- content: content.replace(/\n/g, ' ').substring(0, 120),
56
- likes: likesMatch ? likesMatch[1] : '-',
57
- comments: commentsMatch ? commentsMatch[1] : '-',
58
- shares: sharesMatch ? sharesMatch[1] : '-',
59
- };
60
- });
61
- })()
62
-
63
- columns: [index, author, content, likes, comments, shares]
@@ -1,42 +0,0 @@
1
- site: facebook
2
- name: friends
3
- description: Get Facebook friend suggestions
4
- domain: www.facebook.com
5
-
6
- args:
7
- limit:
8
- type: int
9
- default: 10
10
- description: Number of friend suggestions
11
-
12
- pipeline:
13
- - navigate:
14
- url: https://www.facebook.com/friends
15
- settleMs: 3000
16
-
17
- - evaluate: |
18
- (() => {
19
- const limit = ${{ args.limit }};
20
- const items = document.querySelectorAll('[role="listitem"]');
21
- return Array.from(items)
22
- .slice(0, limit)
23
- .map((el, i) => {
24
- const text = el.textContent.trim().replace(/\s+/g, ' ');
25
- // Extract mutual info if present (before name extraction to avoid pollution)
26
- const mutualMatch = text.match(/([\d,]+)\s*位.*(?:关注|共同|mutual)/);
27
- // Extract name: remove mutual info, action buttons, etc.
28
- let name = text
29
- .replace(/[\d,]+\s*位.*(?:关注了|共同好友|mutual friends?)/, '')
30
- .replace(/加好友.*/, '').replace(/Add [Ff]riend.*/, '')
31
- .replace(/移除$/, '').replace(/Remove$/, '')
32
- .trim();
33
- return {
34
- index: i + 1,
35
- name: name.substring(0, 50),
36
- mutual: mutualMatch ? mutualMatch[1] : '-',
37
- };
38
- })
39
- .filter(item => item.name.length > 0);
40
- })()
41
-
42
- columns: [index, name, mutual]
@@ -1,50 +0,0 @@
1
- site: facebook
2
- name: groups
3
- description: List your Facebook groups
4
- domain: www.facebook.com
5
-
6
- args:
7
- limit:
8
- type: int
9
- default: 20
10
- description: Number of groups
11
-
12
- pipeline:
13
- - navigate:
14
- url: https://www.facebook.com/groups/feed/
15
- settleMs: 3000
16
-
17
- - evaluate: |
18
- (() => {
19
- const limit = ${{ args.limit }};
20
- const links = Array.from(document.querySelectorAll('a'))
21
- .filter(a => {
22
- const href = a.href || '';
23
- return href.includes('/groups/') &&
24
- !href.includes('/feed') &&
25
- !href.includes('/discover') &&
26
- !href.includes('/joins') &&
27
- !href.includes('category=create') &&
28
- a.textContent.trim().length > 2;
29
- });
30
-
31
- // Deduplicate by href
32
- const seen = new Set();
33
- const groups = [];
34
- for (const a of links) {
35
- const href = a.href.split('?')[0];
36
- if (seen.has(href)) continue;
37
- seen.add(href);
38
- const raw = a.textContent.trim().replace(/\s+/g, ' ');
39
- // Split name from "上次发帖" info
40
- const parts = raw.split(/上次发帖|Last post/);
41
- groups.push({
42
- name: (parts[0] || '').trim().substring(0, 60),
43
- last_post: parts[1] ? parts[1].replace(/^[::]/, '').trim() : '-',
44
- url: href,
45
- });
46
- }
47
- return groups.slice(0, limit).map((g, i) => ({ index: i + 1, ...g }));
48
- })()
49
-
50
- columns: [index, name, last_post, url]
@@ -1,44 +0,0 @@
1
- site: facebook
2
- name: join-group
3
- description: Join a Facebook group
4
- domain: www.facebook.com
5
-
6
- args:
7
- group:
8
- type: str
9
- required: true
10
- positional: true
11
- description: Group ID or URL path (e.g. '1876150192925481' or group name)
12
-
13
- pipeline:
14
- - navigate:
15
- url: https://www.facebook.com/groups/${{ args.group }}
16
- settleMs: 3000
17
-
18
- - evaluate: |
19
- (async () => {
20
- const group = ${{ args.group | json }};
21
- const groupName = document.querySelector('h1')?.textContent?.trim() || group;
22
-
23
- // Find "Join Group" button
24
- const buttons = Array.from(document.querySelectorAll('[role="button"]'));
25
- const joinBtn = buttons.find(b => {
26
- const text = b.textContent.trim();
27
- return text === '加入小组' || text === 'Join group' || text === 'Join Group';
28
- });
29
-
30
- if (!joinBtn) {
31
- const isMember = buttons.some(b => {
32
- const t = b.textContent.trim();
33
- return t === '已加入' || t === 'Joined' || t === '成员' || t === 'Member';
34
- });
35
- if (isMember) return [{ status: 'Already a member', group: groupName }];
36
- return [{ status: 'Join button not found', group: groupName }];
37
- }
38
-
39
- joinBtn.click();
40
- await new Promise(r => setTimeout(r, 1500));
41
- return [{ status: 'Join request sent', group: groupName }];
42
- })()
43
-
44
- columns: [status, group]
@@ -1,39 +0,0 @@
1
- site: facebook
2
- name: memories
3
- description: Get your Facebook memories (On This Day)
4
- domain: www.facebook.com
5
-
6
- args:
7
- limit:
8
- type: int
9
- default: 10
10
- description: Number of memories
11
-
12
- pipeline:
13
- - navigate:
14
- url: https://www.facebook.com/onthisday
15
- settleMs: 4000
16
-
17
- - evaluate: |
18
- (() => {
19
- const limit = ${{ args.limit }};
20
- const articles = document.querySelectorAll('[role="article"]');
21
- return Array.from(articles)
22
- .slice(0, limit)
23
- .map((el, i) => {
24
- const headerLink = el.querySelector('h2 a, h3 a, h4 a, strong a');
25
- const spans = Array.from(el.querySelectorAll('div[dir="auto"]'))
26
- .map(s => s.textContent.trim())
27
- .filter(t => t.length > 5 && t.length < 500);
28
- const timeEl = el.querySelector('a[href*="/posts/"] span, a[href*="story_fbid"] span');
29
- return {
30
- index: i + 1,
31
- source: headerLink ? headerLink.textContent.trim().substring(0, 50) : '-',
32
- content: (spans[0] || '').replace(/\n/g, ' ').substring(0, 150),
33
- time: timeEl ? timeEl.textContent.trim() : '-',
34
- };
35
- })
36
- .filter(item => item.content.length > 0 || item.source !== '-');
37
- })()
38
-
39
- columns: [index, source, content, time]
@@ -1,40 +0,0 @@
1
- site: facebook
2
- name: notifications
3
- description: Get recent Facebook notifications
4
- domain: www.facebook.com
5
-
6
- args:
7
- limit:
8
- type: int
9
- default: 15
10
- description: Number of notifications
11
-
12
- pipeline:
13
- - navigate:
14
- url: https://www.facebook.com/notifications
15
- settleMs: 3000
16
-
17
- - evaluate: |
18
- (() => {
19
- const limit = ${{ args.limit }};
20
- const items = document.querySelectorAll('[role="listitem"]');
21
- return Array.from(items)
22
- .filter(el => el.querySelectorAll('a').length > 0)
23
- .slice(0, limit)
24
- .map((el, i) => {
25
- const raw = el.textContent.trim().replace(/\s+/g, ' ');
26
- // Remove leading "未读" and trailing "标记为已读"
27
- const cleaned = raw.replace(/^未读/, '').replace(/标记为已读$/, '').replace(/^Unread/, '').replace(/Mark as read$/, '').trim();
28
- // Try to extract time (last segment like "11小时", "5天", "1周")
29
- const timeMatch = cleaned.match(/(\d+\s*(?:分钟|小时|天|周|个月|minutes?|hours?|days?|weeks?|months?))\s*$/);
30
- const time = timeMatch ? timeMatch[1] : '';
31
- const text = timeMatch ? cleaned.slice(0, -timeMatch[0].length).trim() : cleaned;
32
- return {
33
- index: i + 1,
34
- text: text.substring(0, 150),
35
- time: time || '-',
36
- };
37
- });
38
- })()
39
-
40
- columns: [index, text, time]