@jackwener/opencli 1.6.4 → 1.6.6

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 (617) hide show
  1. package/dist/clis/1688/item.js +3 -3
  2. package/dist/clis/1688/search.js +2 -2
  3. package/dist/clis/1688/shared.d.ts +1 -1
  4. package/dist/clis/1688/shared.js +1 -1
  5. package/dist/clis/1688/store.js +2 -2
  6. package/dist/clis/36kr/article.js +2 -2
  7. package/dist/clis/36kr/hot.js +2 -2
  8. package/dist/clis/36kr/news.js +1 -1
  9. package/dist/clis/36kr/search.js +2 -2
  10. package/dist/clis/_shared/desktop-commands.d.ts +5 -5
  11. package/dist/clis/_shared/desktop-commands.js +1 -1
  12. package/dist/clis/amazon/bestsellers.js +1 -1
  13. package/dist/clis/amazon/discussion.js +2 -2
  14. package/dist/clis/amazon/movers-shakers.js +1 -1
  15. package/dist/clis/amazon/new-releases.js +1 -1
  16. package/dist/clis/amazon/offer.js +2 -2
  17. package/dist/clis/amazon/product.js +2 -2
  18. package/dist/clis/amazon/rankings.d.ts +1 -1
  19. package/dist/clis/amazon/rankings.js +2 -2
  20. package/dist/clis/amazon/search.js +2 -2
  21. package/dist/clis/amazon/shared.d.ts +1 -1
  22. package/dist/clis/amazon/shared.js +1 -1
  23. package/dist/clis/antigravity/dump.d.ts +1 -1
  24. package/dist/clis/antigravity/dump.js +1 -1
  25. package/dist/clis/antigravity/extract-code.d.ts +1 -1
  26. package/dist/clis/antigravity/extract-code.js +1 -1
  27. package/dist/clis/antigravity/model.d.ts +1 -1
  28. package/dist/clis/antigravity/model.js +1 -1
  29. package/dist/clis/antigravity/new.d.ts +1 -1
  30. package/dist/clis/antigravity/new.js +1 -1
  31. package/dist/clis/antigravity/read.d.ts +1 -1
  32. package/dist/clis/antigravity/read.js +1 -1
  33. package/dist/clis/antigravity/send.d.ts +1 -1
  34. package/dist/clis/antigravity/send.js +1 -1
  35. package/dist/clis/antigravity/serve.js +3 -3
  36. package/dist/clis/antigravity/status.d.ts +1 -1
  37. package/dist/clis/antigravity/status.js +1 -1
  38. package/dist/clis/antigravity/watch.d.ts +1 -1
  39. package/dist/clis/antigravity/watch.js +1 -1
  40. package/dist/clis/apple-podcasts/commands.test.js +1 -1
  41. package/dist/clis/apple-podcasts/episodes.js +2 -2
  42. package/dist/clis/apple-podcasts/search.js +2 -2
  43. package/dist/clis/apple-podcasts/top.js +2 -2
  44. package/dist/clis/apple-podcasts/utils.js +1 -1
  45. package/dist/clis/arxiv/paper.js +2 -2
  46. package/dist/clis/arxiv/search.js +2 -2
  47. package/dist/clis/arxiv/utils.js +1 -1
  48. package/dist/clis/band/bands.js +2 -2
  49. package/dist/clis/band/mentions.js +2 -2
  50. package/dist/clis/band/post.js +4 -4
  51. package/dist/clis/band/posts.js +2 -2
  52. package/dist/clis/barchart/flow.js +1 -1
  53. package/dist/clis/barchart/greeks.js +1 -1
  54. package/dist/clis/barchart/options.js +1 -1
  55. package/dist/clis/barchart/quote.js +1 -1
  56. package/dist/clis/bbc/news.js +1 -1
  57. package/dist/clis/bilibili/comments.js +1 -1
  58. package/dist/clis/bilibili/comments.test.js +1 -1
  59. package/dist/clis/bilibili/download.js +3 -3
  60. package/dist/clis/bilibili/dynamic.js +1 -1
  61. package/dist/clis/bilibili/dynamic.test.js +1 -1
  62. package/dist/clis/bilibili/favorite.js +1 -1
  63. package/dist/clis/bilibili/feed.js +1 -1
  64. package/dist/clis/bilibili/following.js +2 -2
  65. package/dist/clis/bilibili/history.js +1 -1
  66. package/dist/clis/bilibili/me.js +1 -1
  67. package/dist/clis/bilibili/ranking.js +1 -1
  68. package/dist/clis/bilibili/search.js +1 -1
  69. package/dist/clis/bilibili/subtitle.js +2 -2
  70. package/dist/clis/bilibili/subtitle.test.js +2 -2
  71. package/dist/clis/bilibili/user-videos.js +1 -1
  72. package/dist/clis/bilibili/utils.d.ts +1 -1
  73. package/dist/clis/bilibili/utils.js +1 -1
  74. package/dist/clis/bloomberg/businessweek.js +1 -1
  75. package/dist/clis/bloomberg/economics.js +1 -1
  76. package/dist/clis/bloomberg/feeds.js +1 -1
  77. package/dist/clis/bloomberg/industries.js +1 -1
  78. package/dist/clis/bloomberg/main.js +1 -1
  79. package/dist/clis/bloomberg/markets.js +1 -1
  80. package/dist/clis/bloomberg/news.js +2 -2
  81. package/dist/clis/bloomberg/opinions.js +1 -1
  82. package/dist/clis/bloomberg/politics.js +1 -1
  83. package/dist/clis/bloomberg/tech.js +1 -1
  84. package/dist/clis/bloomberg/utils.js +1 -1
  85. package/dist/clis/boss/batchgreet.js +1 -1
  86. package/dist/clis/boss/chatlist.js +1 -1
  87. package/dist/clis/boss/chatmsg.js +1 -1
  88. package/dist/clis/boss/detail.js +1 -1
  89. package/dist/clis/boss/exchange.js +1 -1
  90. package/dist/clis/boss/greet.js +1 -1
  91. package/dist/clis/boss/invite.js +1 -1
  92. package/dist/clis/boss/joblist.js +1 -1
  93. package/dist/clis/boss/mark.js +2 -2
  94. package/dist/clis/boss/recommend.js +1 -1
  95. package/dist/clis/boss/resume.js +1 -1
  96. package/dist/clis/boss/search.js +1 -1
  97. package/dist/clis/boss/send.js +2 -2
  98. package/dist/clis/boss/stats.js +1 -1
  99. package/dist/clis/boss/utils.d.ts +1 -1
  100. package/dist/clis/chaoxing/assignments.js +2 -2
  101. package/dist/clis/chaoxing/exams.js +1 -1
  102. package/dist/clis/chaoxing/utils.d.ts +1 -1
  103. package/dist/clis/chatgpt/ask.d.ts +1 -1
  104. package/dist/clis/chatgpt/ask.js +2 -2
  105. package/dist/clis/chatgpt/model.d.ts +1 -1
  106. package/dist/clis/chatgpt/model.js +2 -2
  107. package/dist/clis/chatgpt/new.d.ts +1 -1
  108. package/dist/clis/chatgpt/new.js +2 -2
  109. package/dist/clis/chatgpt/read.d.ts +1 -1
  110. package/dist/clis/chatgpt/read.js +2 -2
  111. package/dist/clis/chatgpt/send.d.ts +1 -1
  112. package/dist/clis/chatgpt/send.js +2 -2
  113. package/dist/clis/chatgpt/status.d.ts +1 -1
  114. package/dist/clis/chatgpt/status.js +2 -2
  115. package/dist/clis/chatwise/ask.d.ts +1 -1
  116. package/dist/clis/chatwise/ask.js +2 -2
  117. package/dist/clis/chatwise/export.d.ts +1 -1
  118. package/dist/clis/chatwise/export.js +1 -1
  119. package/dist/clis/chatwise/history.d.ts +1 -1
  120. package/dist/clis/chatwise/history.js +1 -1
  121. package/dist/clis/chatwise/model.d.ts +1 -1
  122. package/dist/clis/chatwise/model.js +2 -2
  123. package/dist/clis/chatwise/read.d.ts +1 -1
  124. package/dist/clis/chatwise/read.js +1 -1
  125. package/dist/clis/chatwise/send.d.ts +1 -1
  126. package/dist/clis/chatwise/send.js +2 -2
  127. package/dist/clis/codex/ask.d.ts +1 -1
  128. package/dist/clis/codex/ask.js +2 -2
  129. package/dist/clis/codex/export.d.ts +1 -1
  130. package/dist/clis/codex/export.js +1 -1
  131. package/dist/clis/codex/extract-diff.d.ts +1 -1
  132. package/dist/clis/codex/extract-diff.js +1 -1
  133. package/dist/clis/codex/history.d.ts +1 -1
  134. package/dist/clis/codex/history.js +1 -1
  135. package/dist/clis/codex/model.d.ts +1 -1
  136. package/dist/clis/codex/model.js +1 -1
  137. package/dist/clis/codex/read.d.ts +1 -1
  138. package/dist/clis/codex/read.js +1 -1
  139. package/dist/clis/codex/send.d.ts +1 -1
  140. package/dist/clis/codex/send.js +2 -2
  141. package/dist/clis/coupang/add-to-cart.js +1 -1
  142. package/dist/clis/coupang/search.js +1 -1
  143. package/dist/clis/ctrip/search.js +2 -2
  144. package/dist/clis/ctrip/search.test.js +1 -1
  145. package/dist/clis/cursor/ask.d.ts +1 -1
  146. package/dist/clis/cursor/ask.js +2 -2
  147. package/dist/clis/cursor/composer.d.ts +1 -1
  148. package/dist/clis/cursor/composer.js +2 -2
  149. package/dist/clis/cursor/export.d.ts +1 -1
  150. package/dist/clis/cursor/export.js +1 -1
  151. package/dist/clis/cursor/extract-code.d.ts +1 -1
  152. package/dist/clis/cursor/extract-code.js +1 -1
  153. package/dist/clis/cursor/history.d.ts +1 -1
  154. package/dist/clis/cursor/history.js +1 -1
  155. package/dist/clis/cursor/model.d.ts +1 -1
  156. package/dist/clis/cursor/model.js +1 -1
  157. package/dist/clis/cursor/read.d.ts +1 -1
  158. package/dist/clis/cursor/read.js +2 -2
  159. package/dist/clis/cursor/send.d.ts +1 -1
  160. package/dist/clis/cursor/send.js +2 -2
  161. package/dist/clis/discord-app/channels.d.ts +1 -1
  162. package/dist/clis/discord-app/channels.js +1 -1
  163. package/dist/clis/discord-app/members.d.ts +1 -1
  164. package/dist/clis/discord-app/members.js +1 -1
  165. package/dist/clis/discord-app/read.d.ts +1 -1
  166. package/dist/clis/discord-app/read.js +1 -1
  167. package/dist/clis/discord-app/search.d.ts +1 -1
  168. package/dist/clis/discord-app/search.js +1 -1
  169. package/dist/clis/discord-app/send.d.ts +1 -1
  170. package/dist/clis/discord-app/send.js +1 -1
  171. package/dist/clis/discord-app/servers.d.ts +1 -1
  172. package/dist/clis/discord-app/servers.js +1 -1
  173. package/dist/clis/discord-app/status.d.ts +1 -1
  174. package/dist/clis/discord-app/status.js +1 -1
  175. package/dist/clis/douban/book-hot.js +1 -1
  176. package/dist/clis/douban/download.js +4 -4
  177. package/dist/clis/douban/download.test.js +3 -3
  178. package/dist/clis/douban/marks.js +1 -1
  179. package/dist/clis/douban/movie-hot.js +1 -1
  180. package/dist/clis/douban/photos.js +1 -1
  181. package/dist/clis/douban/reviews.js +1 -1
  182. package/dist/clis/douban/search.js +1 -1
  183. package/dist/clis/douban/utils.d.ts +1 -1
  184. package/dist/clis/douban/utils.js +1 -1
  185. package/dist/clis/doubao/ask.d.ts +1 -1
  186. package/dist/clis/doubao/ask.js +1 -1
  187. package/dist/clis/doubao/detail.d.ts +1 -1
  188. package/dist/clis/doubao/detail.js +1 -1
  189. package/dist/clis/doubao/detail.test.js +1 -1
  190. package/dist/clis/doubao/history.d.ts +1 -1
  191. package/dist/clis/doubao/history.js +1 -1
  192. package/dist/clis/doubao/history.test.js +1 -1
  193. package/dist/clis/doubao/meeting-summary.d.ts +1 -1
  194. package/dist/clis/doubao/meeting-summary.js +1 -1
  195. package/dist/clis/doubao/meeting-transcript.d.ts +1 -1
  196. package/dist/clis/doubao/meeting-transcript.js +1 -1
  197. package/dist/clis/doubao/new.d.ts +1 -1
  198. package/dist/clis/doubao/new.js +1 -1
  199. package/dist/clis/doubao/read.d.ts +1 -1
  200. package/dist/clis/doubao/read.js +1 -1
  201. package/dist/clis/doubao/send.d.ts +1 -1
  202. package/dist/clis/doubao/send.js +1 -1
  203. package/dist/clis/doubao/status.d.ts +1 -1
  204. package/dist/clis/doubao/status.js +1 -1
  205. package/dist/clis/doubao/utils.d.ts +1 -1
  206. package/dist/clis/doubao-app/ask.d.ts +1 -1
  207. package/dist/clis/doubao-app/ask.js +1 -1
  208. package/dist/clis/doubao-app/dump.d.ts +1 -1
  209. package/dist/clis/doubao-app/dump.js +1 -1
  210. package/dist/clis/doubao-app/new.d.ts +1 -1
  211. package/dist/clis/doubao-app/new.js +1 -1
  212. package/dist/clis/doubao-app/read.d.ts +1 -1
  213. package/dist/clis/doubao-app/read.js +1 -1
  214. package/dist/clis/doubao-app/screenshot.d.ts +1 -1
  215. package/dist/clis/doubao-app/screenshot.js +1 -1
  216. package/dist/clis/doubao-app/send.d.ts +1 -1
  217. package/dist/clis/doubao-app/send.js +1 -1
  218. package/dist/clis/doubao-app/status.d.ts +1 -1
  219. package/dist/clis/doubao-app/status.js +1 -1
  220. package/dist/clis/douyin/_shared/browser-fetch.d.ts +1 -1
  221. package/dist/clis/douyin/_shared/browser-fetch.js +1 -1
  222. package/dist/clis/douyin/_shared/imagex-upload.js +1 -1
  223. package/dist/clis/douyin/_shared/imagex-upload.test.js +1 -1
  224. package/dist/clis/douyin/_shared/public-api.d.ts +1 -1
  225. package/dist/clis/douyin/_shared/sts2.d.ts +1 -1
  226. package/dist/clis/douyin/_shared/sts2.js +1 -1
  227. package/dist/clis/douyin/_shared/sts2.test.js +1 -1
  228. package/dist/clis/douyin/_shared/tos-upload-short-read.test.js +1 -1
  229. package/dist/clis/douyin/_shared/tos-upload.js +1 -1
  230. package/dist/clis/douyin/_shared/transcode.d.ts +1 -1
  231. package/dist/clis/douyin/_shared/transcode.js +1 -1
  232. package/dist/clis/douyin/_shared/transcode.test.js +1 -1
  233. package/dist/clis/douyin/activities.js +1 -1
  234. package/dist/clis/douyin/activities.test.js +1 -1
  235. package/dist/clis/douyin/collections.js +1 -1
  236. package/dist/clis/douyin/collections.test.js +1 -1
  237. package/dist/clis/douyin/delete.js +1 -1
  238. package/dist/clis/douyin/delete.test.js +1 -1
  239. package/dist/clis/douyin/draft.js +2 -2
  240. package/dist/clis/douyin/draft.test.js +2 -2
  241. package/dist/clis/douyin/drafts.js +1 -1
  242. package/dist/clis/douyin/drafts.test.js +1 -1
  243. package/dist/clis/douyin/hashtag.js +2 -2
  244. package/dist/clis/douyin/hashtag.test.js +1 -1
  245. package/dist/clis/douyin/location.js +1 -1
  246. package/dist/clis/douyin/location.test.js +1 -1
  247. package/dist/clis/douyin/profile.js +2 -2
  248. package/dist/clis/douyin/profile.test.js +1 -1
  249. package/dist/clis/douyin/publish.js +2 -2
  250. package/dist/clis/douyin/publish.test.js +1 -1
  251. package/dist/clis/douyin/stats.js +1 -1
  252. package/dist/clis/douyin/stats.test.js +1 -1
  253. package/dist/clis/douyin/update.js +2 -2
  254. package/dist/clis/douyin/update.test.js +1 -1
  255. package/dist/clis/douyin/user-videos.js +1 -1
  256. package/dist/clis/douyin/user-videos.test.js +1 -1
  257. package/dist/clis/douyin/videos.js +1 -1
  258. package/dist/clis/douyin/videos.test.js +1 -1
  259. package/dist/clis/facebook/search.test.js +1 -1
  260. package/dist/clis/gemini/ask.d.ts +1 -1
  261. package/dist/clis/gemini/ask.js +1 -1
  262. package/dist/clis/gemini/deep-research-result.d.ts +1 -1
  263. package/dist/clis/gemini/deep-research-result.js +1 -1
  264. package/dist/clis/gemini/deep-research.d.ts +1 -1
  265. package/dist/clis/gemini/deep-research.js +1 -1
  266. package/dist/clis/gemini/image.d.ts +1 -1
  267. package/dist/clis/gemini/image.js +2 -2
  268. package/dist/clis/gemini/new.d.ts +1 -1
  269. package/dist/clis/gemini/new.js +1 -1
  270. package/dist/clis/gemini/utils.d.ts +1 -1
  271. package/dist/clis/gemini/utils.js +1 -1
  272. package/dist/clis/google/news.js +2 -2
  273. package/dist/clis/google/search.js +2 -2
  274. package/dist/clis/google/suggest.js +2 -2
  275. package/dist/clis/google/trends.js +2 -2
  276. package/dist/clis/grok/ask.d.ts +2 -2
  277. package/dist/clis/grok/ask.js +1 -1
  278. package/dist/clis/hf/top.js +2 -2
  279. package/dist/clis/hupu/detail.js +1 -1
  280. package/dist/clis/hupu/like.js +2 -2
  281. package/dist/clis/hupu/mentions.js +2 -2
  282. package/dist/clis/hupu/reply.js +2 -2
  283. package/dist/clis/hupu/search.js +1 -1
  284. package/dist/clis/hupu/unlike.js +2 -2
  285. package/dist/clis/hupu/utils.d.ts +1 -1
  286. package/dist/clis/hupu/utils.js +1 -1
  287. package/dist/clis/imdb/person.js +2 -2
  288. package/dist/clis/imdb/reviews.js +2 -2
  289. package/dist/clis/imdb/search.js +2 -2
  290. package/dist/clis/imdb/title.js +2 -2
  291. package/dist/clis/imdb/top.js +2 -2
  292. package/dist/clis/imdb/trending.js +2 -2
  293. package/dist/clis/imdb/utils.d.ts +1 -1
  294. package/dist/clis/imdb/utils.js +1 -1
  295. package/dist/clis/instagram/_shared/private-publish.d.ts +1 -1
  296. package/dist/clis/instagram/_shared/private-publish.js +1 -1
  297. package/dist/clis/instagram/_shared/protocol-capture.d.ts +1 -1
  298. package/dist/clis/instagram/_shared/runtime-info.d.ts +1 -1
  299. package/dist/clis/instagram/download.js +3 -3
  300. package/dist/clis/instagram/download.test.js +4 -4
  301. package/dist/clis/instagram/note.js +2 -2
  302. package/dist/clis/instagram/note.test.js +2 -2
  303. package/dist/clis/instagram/post.js +2 -2
  304. package/dist/clis/instagram/post.test.js +2 -2
  305. package/dist/clis/instagram/reel.js +3 -3
  306. package/dist/clis/instagram/reel.test.js +2 -2
  307. package/dist/clis/instagram/story.js +2 -2
  308. package/dist/clis/instagram/story.test.js +2 -2
  309. package/dist/clis/jd/item.js +1 -1
  310. package/dist/clis/jd/item.test.js +1 -1
  311. package/dist/clis/jike/comment.js +1 -1
  312. package/dist/clis/jike/create.js +1 -1
  313. package/dist/clis/jike/feed.js +1 -1
  314. package/dist/clis/jike/like.js +1 -1
  315. package/dist/clis/jike/notifications.js +1 -1
  316. package/dist/clis/jike/repost.js +1 -1
  317. package/dist/clis/jike/search.js +1 -1
  318. package/dist/clis/lesswrong/_helpers.js +1 -1
  319. package/dist/clis/lesswrong/comments.js +2 -2
  320. package/dist/clis/lesswrong/curated.js +1 -1
  321. package/dist/clis/lesswrong/frontpage.js +1 -1
  322. package/dist/clis/lesswrong/new.js +1 -1
  323. package/dist/clis/lesswrong/read.js +2 -2
  324. package/dist/clis/lesswrong/sequences.js +1 -1
  325. package/dist/clis/lesswrong/shortform.js +1 -1
  326. package/dist/clis/lesswrong/tag.js +2 -2
  327. package/dist/clis/lesswrong/tags.js +1 -1
  328. package/dist/clis/lesswrong/top-month.js +1 -1
  329. package/dist/clis/lesswrong/top-week.js +1 -1
  330. package/dist/clis/lesswrong/top-year.js +1 -1
  331. package/dist/clis/lesswrong/top.js +1 -1
  332. package/dist/clis/lesswrong/user-posts.js +1 -1
  333. package/dist/clis/lesswrong/user.js +2 -2
  334. package/dist/clis/linkedin/search.js +2 -2
  335. package/dist/clis/linkedin/timeline.js +2 -2
  336. package/dist/clis/linkedin/timeline.test.js +1 -1
  337. package/dist/clis/linux-do/category.js +1 -1
  338. package/dist/clis/linux-do/feed.d.ts +2 -2
  339. package/dist/clis/linux-do/feed.js +2 -2
  340. package/dist/clis/linux-do/hot.js +1 -1
  341. package/dist/clis/linux-do/latest.js +1 -1
  342. package/dist/clis/medium/feed.js +1 -1
  343. package/dist/clis/medium/search.js +1 -1
  344. package/dist/clis/medium/user.js +1 -1
  345. package/dist/clis/medium/utils.d.ts +1 -1
  346. package/dist/clis/medium/utils.js +1 -1
  347. package/dist/clis/notebooklm/compat.test.js +1 -1
  348. package/dist/clis/notebooklm/current.js +2 -2
  349. package/dist/clis/notebooklm/get.js +2 -2
  350. package/dist/clis/notebooklm/history.js +2 -2
  351. package/dist/clis/notebooklm/history.test.js +1 -1
  352. package/dist/clis/notebooklm/list.js +2 -2
  353. package/dist/clis/notebooklm/note-list.js +2 -2
  354. package/dist/clis/notebooklm/note-list.test.js +1 -1
  355. package/dist/clis/notebooklm/notes-get.js +2 -2
  356. package/dist/clis/notebooklm/notes-get.test.js +1 -1
  357. package/dist/clis/notebooklm/open.js +2 -2
  358. package/dist/clis/notebooklm/open.test.js +1 -1
  359. package/dist/clis/notebooklm/rpc.d.ts +1 -1
  360. package/dist/clis/notebooklm/rpc.js +1 -1
  361. package/dist/clis/notebooklm/rpc.test.js +1 -1
  362. package/dist/clis/notebooklm/source-fulltext.js +2 -2
  363. package/dist/clis/notebooklm/source-fulltext.test.js +1 -1
  364. package/dist/clis/notebooklm/source-get.js +2 -2
  365. package/dist/clis/notebooklm/source-get.test.js +1 -1
  366. package/dist/clis/notebooklm/source-guide.js +2 -2
  367. package/dist/clis/notebooklm/source-guide.test.js +1 -1
  368. package/dist/clis/notebooklm/source-list.js +2 -2
  369. package/dist/clis/notebooklm/status.js +1 -1
  370. package/dist/clis/notebooklm/summary.js +2 -2
  371. package/dist/clis/notebooklm/summary.test.js +1 -1
  372. package/dist/clis/notebooklm/utils.d.ts +1 -1
  373. package/dist/clis/notebooklm/utils.js +1 -1
  374. package/dist/clis/notion/export.d.ts +1 -1
  375. package/dist/clis/notion/export.js +1 -1
  376. package/dist/clis/notion/favorites.d.ts +1 -1
  377. package/dist/clis/notion/favorites.js +1 -1
  378. package/dist/clis/notion/new.d.ts +1 -1
  379. package/dist/clis/notion/new.js +1 -1
  380. package/dist/clis/notion/read.d.ts +1 -1
  381. package/dist/clis/notion/read.js +1 -1
  382. package/dist/clis/notion/search.d.ts +1 -1
  383. package/dist/clis/notion/search.js +1 -1
  384. package/dist/clis/notion/sidebar.d.ts +1 -1
  385. package/dist/clis/notion/sidebar.js +1 -1
  386. package/dist/clis/notion/status.d.ts +1 -1
  387. package/dist/clis/notion/status.js +1 -1
  388. package/dist/clis/notion/write.d.ts +1 -1
  389. package/dist/clis/notion/write.js +1 -1
  390. package/dist/clis/ones/common.d.ts +1 -1
  391. package/dist/clis/ones/common.js +1 -1
  392. package/dist/clis/ones/enrich-tasks.d.ts +1 -1
  393. package/dist/clis/ones/login.js +2 -2
  394. package/dist/clis/ones/logout.js +1 -1
  395. package/dist/clis/ones/me.js +2 -2
  396. package/dist/clis/ones/my-tasks.js +2 -2
  397. package/dist/clis/ones/resolve-labels.d.ts +1 -1
  398. package/dist/clis/ones/task-helpers.js +1 -1
  399. package/dist/clis/ones/task.js +2 -2
  400. package/dist/clis/ones/tasks.js +2 -2
  401. package/dist/clis/ones/token-info.js +2 -2
  402. package/dist/clis/ones/worklog.js +2 -2
  403. package/dist/clis/paperreview/commands.test.js +1 -1
  404. package/dist/clis/paperreview/feedback.js +2 -2
  405. package/dist/clis/paperreview/review.js +2 -2
  406. package/dist/clis/paperreview/submit.js +2 -2
  407. package/dist/clis/paperreview/utils.js +1 -1
  408. package/dist/clis/paperreview/utils.test.js +1 -1
  409. package/dist/clis/pixiv/download.js +4 -4
  410. package/dist/clis/pixiv/download.test.js +3 -3
  411. package/dist/clis/pixiv/illusts.js +2 -2
  412. package/dist/clis/pixiv/illusts.test.js +2 -2
  413. package/dist/clis/pixiv/search.js +1 -1
  414. package/dist/clis/pixiv/search.test.js +2 -2
  415. package/dist/clis/pixiv/test-utils.d.ts +1 -1
  416. package/dist/clis/pixiv/utils.d.ts +1 -1
  417. package/dist/clis/pixiv/utils.js +1 -1
  418. package/dist/clis/producthunt/browse.js +2 -2
  419. package/dist/clis/producthunt/hot.js +2 -2
  420. package/dist/clis/producthunt/posts.js +1 -1
  421. package/dist/clis/producthunt/today.js +1 -1
  422. package/dist/clis/reddit/comment.js +2 -2
  423. package/dist/clis/reddit/read.js +2 -2
  424. package/dist/clis/reddit/read.test.js +1 -1
  425. package/dist/clis/reddit/save.js +2 -2
  426. package/dist/clis/reddit/saved.js +2 -2
  427. package/dist/clis/reddit/subscribe.js +2 -2
  428. package/dist/clis/reddit/upvote.js +2 -2
  429. package/dist/clis/reddit/upvoted.js +2 -2
  430. package/dist/clis/reuters/search.js +1 -1
  431. package/dist/clis/sinablog/article.js +1 -1
  432. package/dist/clis/sinablog/hot.js +1 -1
  433. package/dist/clis/sinablog/search.js +1 -1
  434. package/dist/clis/sinablog/user.js +1 -1
  435. package/dist/clis/sinablog/utils.d.ts +1 -1
  436. package/dist/clis/sinafinance/news.js +2 -2
  437. package/dist/clis/sinafinance/rolling-news.js +1 -1
  438. package/dist/clis/sinafinance/stock-rank.js +1 -1
  439. package/dist/clis/sinafinance/stock.js +2 -2
  440. package/dist/clis/smzdm/search.js +1 -1
  441. package/dist/clis/spotify/spotify.js +2 -2
  442. package/dist/clis/spotify/utils.js +1 -1
  443. package/dist/clis/substack/feed.js +1 -1
  444. package/dist/clis/substack/publication.js +1 -1
  445. package/dist/clis/substack/search.js +2 -2
  446. package/dist/clis/substack/utils.d.ts +1 -1
  447. package/dist/clis/substack/utils.js +1 -1
  448. package/dist/clis/tieba/commands.test.js +1 -1
  449. package/dist/clis/tieba/hot.js +2 -2
  450. package/dist/clis/tieba/posts.js +2 -2
  451. package/dist/clis/tieba/read.js +2 -2
  452. package/dist/clis/tieba/search.js +2 -2
  453. package/dist/clis/twitter/accept.js +2 -2
  454. package/dist/clis/twitter/article.js +2 -2
  455. package/dist/clis/twitter/block.js +2 -2
  456. package/dist/clis/twitter/bookmark.js +2 -2
  457. package/dist/clis/twitter/bookmarks.js +2 -2
  458. package/dist/clis/twitter/delete.js +2 -2
  459. package/dist/clis/twitter/delete.test.js +2 -2
  460. package/dist/clis/twitter/download.js +3 -3
  461. package/dist/clis/twitter/follow.js +2 -2
  462. package/dist/clis/twitter/followers.js +2 -2
  463. package/dist/clis/twitter/following.js +2 -2
  464. package/dist/clis/twitter/hide-reply.js +2 -2
  465. package/dist/clis/twitter/like.js +2 -2
  466. package/dist/clis/twitter/likes.js +2 -2
  467. package/dist/clis/twitter/notifications.js +2 -2
  468. package/dist/clis/twitter/post.js +2 -2
  469. package/dist/clis/twitter/post.test.js +1 -1
  470. package/dist/clis/twitter/profile.js +2 -2
  471. package/dist/clis/twitter/reply-dm.js +2 -2
  472. package/dist/clis/twitter/reply.js +2 -2
  473. package/dist/clis/twitter/reply.test.js +1 -1
  474. package/dist/clis/twitter/search.js +2 -2
  475. package/dist/clis/twitter/search.test.js +1 -1
  476. package/dist/clis/twitter/shared.d.ts +1 -1
  477. package/dist/clis/twitter/thread.js +2 -2
  478. package/dist/clis/twitter/timeline.js +2 -2
  479. package/dist/clis/twitter/trending.js +2 -2
  480. package/dist/clis/twitter/unblock.js +2 -2
  481. package/dist/clis/twitter/unbookmark.js +2 -2
  482. package/dist/clis/twitter/unfollow.js +2 -2
  483. package/dist/clis/v2ex/daily.js +2 -2
  484. package/dist/clis/v2ex/me.js +2 -2
  485. package/dist/clis/v2ex/notifications.js +2 -2
  486. package/dist/clis/web/read.js +2 -2
  487. package/dist/clis/weibo/comments.js +1 -1
  488. package/dist/clis/weibo/feed.js +1 -1
  489. package/dist/clis/weibo/hot.js +1 -1
  490. package/dist/clis/weibo/me.js +2 -2
  491. package/dist/clis/weibo/post.js +2 -2
  492. package/dist/clis/weibo/search.js +2 -2
  493. package/dist/clis/weibo/user.js +2 -2
  494. package/dist/clis/weibo/utils.d.ts +1 -1
  495. package/dist/clis/weibo/utils.js +1 -1
  496. package/dist/clis/weixin/download.js +2 -2
  497. package/dist/clis/weread/book.js +2 -2
  498. package/dist/clis/weread/commands.test.js +2 -2
  499. package/dist/clis/weread/highlights.js +1 -1
  500. package/dist/clis/weread/notebooks.js +1 -1
  501. package/dist/clis/weread/notes.js +1 -1
  502. package/dist/clis/weread/private-api-regression.test.js +2 -2
  503. package/dist/clis/weread/ranking.js +1 -1
  504. package/dist/clis/weread/search-regression.test.js +1 -1
  505. package/dist/clis/weread/search.js +1 -1
  506. package/dist/clis/weread/shelf.js +3 -3
  507. package/dist/clis/weread/utils.d.ts +1 -1
  508. package/dist/clis/weread/utils.js +1 -1
  509. package/dist/clis/wikipedia/random.js +2 -2
  510. package/dist/clis/wikipedia/search.js +2 -2
  511. package/dist/clis/wikipedia/summary.js +2 -2
  512. package/dist/clis/wikipedia/trending.js +2 -2
  513. package/dist/clis/wikipedia/utils.js +1 -1
  514. package/dist/clis/xianyu/chat.js +2 -2
  515. package/dist/clis/xianyu/item.js +2 -2
  516. package/dist/clis/xianyu/item.test.js +2 -2
  517. package/dist/clis/xianyu/search.js +2 -2
  518. package/dist/clis/xianyu/utils.js +1 -1
  519. package/dist/clis/xiaohongshu/comments.js +2 -2
  520. package/dist/clis/xiaohongshu/comments.test.js +1 -1
  521. package/dist/clis/xiaohongshu/creator-note-detail.d.ts +1 -1
  522. package/dist/clis/xiaohongshu/creator-note-detail.js +1 -1
  523. package/dist/clis/xiaohongshu/creator-note-detail.test.js +1 -1
  524. package/dist/clis/xiaohongshu/creator-notes-summary.js +1 -1
  525. package/dist/clis/xiaohongshu/creator-notes.d.ts +1 -1
  526. package/dist/clis/xiaohongshu/creator-notes.js +1 -1
  527. package/dist/clis/xiaohongshu/creator-notes.test.js +1 -1
  528. package/dist/clis/xiaohongshu/creator-profile.js +1 -1
  529. package/dist/clis/xiaohongshu/creator-stats.js +1 -1
  530. package/dist/clis/xiaohongshu/download.js +3 -3
  531. package/dist/clis/xiaohongshu/download.test.js +3 -3
  532. package/dist/clis/xiaohongshu/note.js +2 -2
  533. package/dist/clis/xiaohongshu/note.test.js +1 -1
  534. package/dist/clis/xiaohongshu/publish.js +1 -1
  535. package/dist/clis/xiaohongshu/publish.test.js +1 -1
  536. package/dist/clis/xiaohongshu/search.js +2 -2
  537. package/dist/clis/xiaohongshu/search.test.js +1 -1
  538. package/dist/clis/xiaohongshu/user.js +1 -1
  539. package/dist/clis/xiaoyuzhou/episode.js +2 -2
  540. package/dist/clis/xiaoyuzhou/podcast-episodes.js +2 -2
  541. package/dist/clis/xiaoyuzhou/podcast.js +2 -2
  542. package/dist/clis/xiaoyuzhou/utils.js +1 -1
  543. package/dist/clis/xueqiu/comments.d.ts +1 -1
  544. package/dist/clis/xueqiu/comments.js +4 -4
  545. package/dist/clis/xueqiu/comments.test.js +3 -3
  546. package/dist/clis/xueqiu/danjuan-utils.d.ts +1 -1
  547. package/dist/clis/xueqiu/fund-holdings.js +1 -1
  548. package/dist/clis/xueqiu/fund-snapshot.js +1 -1
  549. package/dist/clis/yahoo-finance/quote.js +1 -1
  550. package/dist/clis/yollomi/background.js +4 -4
  551. package/dist/clis/yollomi/edit.js +5 -5
  552. package/dist/clis/yollomi/face-swap.js +4 -4
  553. package/dist/clis/yollomi/generate.js +5 -5
  554. package/dist/clis/yollomi/models.js +1 -1
  555. package/dist/clis/yollomi/object-remover.js +4 -4
  556. package/dist/clis/yollomi/remove-bg.js +4 -4
  557. package/dist/clis/yollomi/restore.js +4 -4
  558. package/dist/clis/yollomi/try-on.js +4 -4
  559. package/dist/clis/yollomi/upload.js +5 -5
  560. package/dist/clis/yollomi/upscale.js +5 -5
  561. package/dist/clis/yollomi/utils.d.ts +1 -1
  562. package/dist/clis/yollomi/utils.js +1 -1
  563. package/dist/clis/yollomi/video.js +5 -5
  564. package/dist/clis/youtube/channel.js +2 -2
  565. package/dist/clis/youtube/comments.js +2 -2
  566. package/dist/clis/youtube/search.js +1 -1
  567. package/dist/clis/youtube/transcript.js +2 -2
  568. package/dist/clis/youtube/utils.d.ts +1 -1
  569. package/dist/clis/youtube/video.js +2 -2
  570. package/dist/clis/yuanbao/ask.d.ts +1 -1
  571. package/dist/clis/yuanbao/ask.js +36 -53
  572. package/dist/clis/yuanbao/ask.test.js +1 -1
  573. package/dist/clis/yuanbao/new.d.ts +1 -1
  574. package/dist/clis/yuanbao/new.js +1 -1
  575. package/dist/clis/yuanbao/new.test.js +1 -1
  576. package/dist/clis/yuanbao/shared.d.ts +2 -2
  577. package/dist/clis/yuanbao/shared.js +1 -1
  578. package/dist/clis/zhihu/download.js +2 -2
  579. package/dist/clis/zhihu/question.js +2 -2
  580. package/dist/clis/zhihu/question.test.js +2 -2
  581. package/dist/clis/zsxq/dynamics.js +1 -1
  582. package/dist/clis/zsxq/groups.js +1 -1
  583. package/dist/clis/zsxq/search.js +1 -1
  584. package/dist/clis/zsxq/search.test.js +1 -1
  585. package/dist/clis/zsxq/topic.js +2 -2
  586. package/dist/clis/zsxq/topic.test.js +1 -1
  587. package/dist/clis/zsxq/topics.js +1 -1
  588. package/dist/clis/zsxq/topics.test.js +1 -1
  589. package/dist/clis/zsxq/utils.d.ts +1 -1
  590. package/dist/clis/zsxq/utils.js +1 -1
  591. package/dist/src/discovery.d.ts +5 -5
  592. package/dist/src/discovery.js +20 -75
  593. package/dist/src/engine.test.js +6 -5
  594. package/dist/src/logger.d.ts +4 -0
  595. package/dist/src/logger.js +8 -0
  596. package/dist/src/package-exports.test.d.ts +1 -0
  597. package/dist/src/package-exports.test.js +112 -0
  598. package/dist/src/registry-api.d.ts +1 -1
  599. package/dist/src/utils.d.ts +3 -0
  600. package/dist/src/utils.js +22 -0
  601. package/package.json +15 -11
  602. package/dist/browser/cdp.d.ts +0 -1
  603. package/dist/browser/cdp.js +0 -2
  604. package/dist/browser/page.d.ts +0 -1
  605. package/dist/browser/page.js +0 -2
  606. package/dist/browser/utils.d.ts +0 -1
  607. package/dist/browser/utils.js +0 -2
  608. package/dist/download/article-download.d.ts +0 -1
  609. package/dist/download/article-download.js +0 -2
  610. package/dist/download/index.d.ts +0 -1
  611. package/dist/download/index.js +0 -2
  612. package/dist/download/media-download.d.ts +0 -1
  613. package/dist/download/media-download.js +0 -2
  614. package/dist/download/progress.d.ts +0 -1
  615. package/dist/download/progress.js +0 -2
  616. package/dist/pipeline/index.d.ts +0 -1
  617. package/dist/pipeline/index.js +0 -2
@@ -2,9 +2,9 @@
2
2
  * Yollomi AI background generator — POST /api/ai/ai-background-generator
3
3
  */
4
4
  import * as path from 'node:path';
5
- import chalk from 'chalk';
6
- import { cli, Strategy } from '../../src/registry.js';
7
- import { CliError } from '../../src/errors.js';
5
+ import { cli, Strategy } from '@jackwener/opencli/registry';
6
+ import { CliError } from '@jackwener/opencli/errors';
7
+ import { log } from '@jackwener/opencli/logger';
8
8
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
9
9
  cli({
10
10
  site: 'yollomi',
@@ -22,7 +22,7 @@ cli({
22
22
  func: async (page, kwargs) => {
23
23
  const imageUrl = kwargs.image;
24
24
  const prompt = kwargs.prompt;
25
- process.stderr.write(chalk.dim('Generating background...\n'));
25
+ log.status('Generating background...');
26
26
  const data = await yollomiPost(page, '/api/ai/ai-background-generator', {
27
27
  images: [imageUrl],
28
28
  prompt: prompt || undefined,
@@ -3,9 +3,9 @@
3
3
  * Matches frontend workspace-generator.tsx for qwen-image-edit model.
4
4
  */
5
5
  import * as path from 'node:path';
6
- import chalk from 'chalk';
7
- import { cli, Strategy } from '../../src/registry.js';
8
- import { CliError } from '../../src/errors.js';
6
+ import { cli, Strategy } from '@jackwener/opencli/registry';
7
+ import { CliError } from '@jackwener/opencli/errors';
8
+ import { log } from '@jackwener/opencli/logger';
9
9
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
10
10
  cli({
11
11
  site: 'yollomi',
@@ -33,7 +33,7 @@ cli({
33
33
  body = { image: imageInput, prompt, go_fast: true, output_format: 'png' };
34
34
  }
35
35
  const apiPath = modelId === 'qwen-image-edit-plus' ? '/api/ai/qwen-image-edit-plus' : '/api/ai/qwen-image-edit';
36
- process.stderr.write(chalk.dim(`Editing with ${modelId}...\n`));
36
+ log.status(`Editing with ${modelId}...`);
37
37
  const data = await yollomiPost(page, apiPath, body);
38
38
  const images = data.images || (data.image ? [data.image] : []);
39
39
  if (!images.length)
@@ -46,7 +46,7 @@ cli({
46
46
  const filename = `yollomi_edit_${Date.now()}.png`;
47
47
  const { path: fp, size } = await downloadOutput(url, kwargs.output, filename);
48
48
  if (credits !== undefined)
49
- process.stderr.write(chalk.dim(`Credits remaining: ${credits}\n`));
49
+ log.status(`Credits remaining: ${credits}`);
50
50
  return [{ status: 'saved', file: path.relative('.', fp), size: fmtBytes(size), credits: credits ?? '-', url }];
51
51
  }
52
52
  catch {
@@ -3,9 +3,9 @@
3
3
  * Uses swap_image / input_image field names matching the frontend.
4
4
  */
5
5
  import * as path from 'node:path';
6
- import chalk from 'chalk';
7
- import { cli, Strategy } from '../../src/registry.js';
8
- import { CliError } from '../../src/errors.js';
6
+ import { cli, Strategy } from '@jackwener/opencli/registry';
7
+ import { CliError } from '@jackwener/opencli/errors';
8
+ import { log } from '@jackwener/opencli/logger';
9
9
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
10
10
  cli({
11
11
  site: 'yollomi',
@@ -21,7 +21,7 @@ cli({
21
21
  ],
22
22
  columns: ['status', 'file', 'size', 'url'],
23
23
  func: async (page, kwargs) => {
24
- process.stderr.write(chalk.dim('Swapping faces...\n'));
24
+ log.status('Swapping faces...');
25
25
  const data = await yollomiPost(page, '/api/ai/face-swap', {
26
26
  swap_image: kwargs.source,
27
27
  input_image: kwargs.target,
@@ -7,9 +7,9 @@
7
7
  * POST /api/ai/flux-2-pro { prompt, aspectRatio, imageUrl?, ... }
8
8
  */
9
9
  import * as path from 'node:path';
10
- import chalk from 'chalk';
11
- import { cli, Strategy } from '../../src/registry.js';
12
- import { CliError } from '../../src/errors.js';
10
+ import { cli, Strategy } from '@jackwener/opencli/registry';
11
+ import { CliError } from '@jackwener/opencli/errors';
12
+ import { log } from '@jackwener/opencli/logger';
13
13
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes, MODEL_ROUTES } from './utils.js';
14
14
  function getDimensions(ratio) {
15
15
  const map = {
@@ -63,7 +63,7 @@ cli({
63
63
  if (kwargs.image)
64
64
  body.imageUrl = kwargs.image;
65
65
  }
66
- process.stderr.write(chalk.dim(`Generating with ${modelId}...\n`));
66
+ log.status(`Generating with ${modelId}...`);
67
67
  const data = await yollomiPost(page, apiPath, body);
68
68
  const images = data.images || (data.image ? [data.image] : []);
69
69
  if (!images.length)
@@ -94,7 +94,7 @@ cli({
94
94
  }
95
95
  }
96
96
  if (data.remainingCredits !== undefined)
97
- process.stderr.write(chalk.dim(`Credits remaining: ${data.remainingCredits}\n`));
97
+ log.status(`Credits remaining: ${data.remainingCredits}`);
98
98
  return results;
99
99
  },
100
100
  });
@@ -1,4 +1,4 @@
1
- import { cli, Strategy } from '../../src/registry.js';
1
+ import { cli, Strategy } from '@jackwener/opencli/registry';
2
2
  import { IMAGE_MODELS, VIDEO_MODELS, TOOL_MODELS } from './utils.js';
3
3
  cli({
4
4
  site: 'yollomi',
@@ -2,9 +2,9 @@
2
2
  * Yollomi object remover — POST /api/ai/object-remover
3
3
  */
4
4
  import * as path from 'node:path';
5
- import chalk from 'chalk';
6
- import { cli, Strategy } from '../../src/registry.js';
7
- import { CliError } from '../../src/errors.js';
5
+ import { cli, Strategy } from '@jackwener/opencli/registry';
6
+ import { CliError } from '@jackwener/opencli/errors';
7
+ import { log } from '@jackwener/opencli/logger';
8
8
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
9
9
  cli({
10
10
  site: 'yollomi',
@@ -20,7 +20,7 @@ cli({
20
20
  ],
21
21
  columns: ['status', 'file', 'size', 'url'],
22
22
  func: async (page, kwargs) => {
23
- process.stderr.write(chalk.dim('Removing object...\n'));
23
+ log.status('Removing object...');
24
24
  const data = await yollomiPost(page, '/api/ai/object-remover', {
25
25
  image: kwargs.image,
26
26
  mask: kwargs.mask,
@@ -2,9 +2,9 @@
2
2
  * Yollomi background removal — POST /api/ai/remove-bg (free, 0 credits)
3
3
  */
4
4
  import * as path from 'node:path';
5
- import chalk from 'chalk';
6
- import { cli, Strategy } from '../../src/registry.js';
7
- import { CliError } from '../../src/errors.js';
5
+ import { cli, Strategy } from '@jackwener/opencli/registry';
6
+ import { CliError } from '@jackwener/opencli/errors';
7
+ import { log } from '@jackwener/opencli/logger';
8
8
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
9
9
  cli({
10
10
  site: 'yollomi',
@@ -19,7 +19,7 @@ cli({
19
19
  ],
20
20
  columns: ['status', 'file', 'size', 'url'],
21
21
  func: async (page, kwargs) => {
22
- process.stderr.write(chalk.dim('Removing background...\n'));
22
+ log.status('Removing background...');
23
23
  const data = await yollomiPost(page, '/api/ai/remove-bg', { imageUrl: kwargs.image });
24
24
  const url = data.image || (data.images?.[0]);
25
25
  if (!url)
@@ -2,9 +2,9 @@
2
2
  * Yollomi photo restoration — POST /api/ai/photo-restoration
3
3
  */
4
4
  import * as path from 'node:path';
5
- import chalk from 'chalk';
6
- import { cli, Strategy } from '../../src/registry.js';
7
- import { CliError } from '../../src/errors.js';
5
+ import { cli, Strategy } from '@jackwener/opencli/registry';
6
+ import { CliError } from '@jackwener/opencli/errors';
7
+ import { log } from '@jackwener/opencli/logger';
8
8
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
9
9
  cli({
10
10
  site: 'yollomi',
@@ -19,7 +19,7 @@ cli({
19
19
  ],
20
20
  columns: ['status', 'file', 'size', 'url'],
21
21
  func: async (page, kwargs) => {
22
- process.stderr.write(chalk.dim('Restoring photo...\n'));
22
+ log.status('Restoring photo...');
23
23
  const data = await yollomiPost(page, '/api/ai/photo-restoration', { imageUrl: kwargs.image });
24
24
  const url = data.image || (data.images?.[0]);
25
25
  if (!url)
@@ -2,9 +2,9 @@
2
2
  * Yollomi virtual try-on — POST /api/ai/virtual-try-on
3
3
  */
4
4
  import * as path from 'node:path';
5
- import chalk from 'chalk';
6
- import { cli, Strategy } from '../../src/registry.js';
7
- import { CliError } from '../../src/errors.js';
5
+ import { cli, Strategy } from '@jackwener/opencli/registry';
6
+ import { CliError } from '@jackwener/opencli/errors';
7
+ import { log } from '@jackwener/opencli/logger';
8
8
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
9
9
  cli({
10
10
  site: 'yollomi',
@@ -21,7 +21,7 @@ cli({
21
21
  ],
22
22
  columns: ['status', 'file', 'size', 'url'],
23
23
  func: async (page, kwargs) => {
24
- process.stderr.write(chalk.dim('Processing virtual try-on...\n'));
24
+ log.status('Processing virtual try-on...');
25
25
  const data = await yollomiPost(page, '/api/ai/virtual-try-on', {
26
26
  person_image: kwargs.person,
27
27
  cloth_image: kwargs.cloth,
@@ -6,9 +6,9 @@
6
6
  */
7
7
  import * as fs from 'node:fs';
8
8
  import * as path from 'node:path';
9
- import chalk from 'chalk';
10
- import { cli, Strategy } from '../../src/registry.js';
11
- import { CliError } from '../../src/errors.js';
9
+ import { cli, Strategy } from '@jackwener/opencli/registry';
10
+ import { CliError } from '@jackwener/opencli/errors';
11
+ import { log } from '@jackwener/opencli/logger';
12
12
  import { YOLLOMI_DOMAIN, ensureOnYollomi, fmtBytes } from './utils.js';
13
13
  const MIME_MAP = {
14
14
  '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg',
@@ -42,7 +42,7 @@ cli({
42
42
  throw new CliError('FILE_TOO_LARGE', `File too large: ${fmtBytes(data.length)}`, `Max ${mime.startsWith('video/') ? '20MB' : '10MB'} (upload larger videos from a URL)`);
43
43
  const b64 = data.toString('base64');
44
44
  const fileName = path.basename(filePath);
45
- process.stderr.write(chalk.dim(`Uploading ${fileName} (${fmtBytes(data.length)})...\n`));
45
+ log.status(`Uploading ${fileName} (${fmtBytes(data.length)})...`);
46
46
  await ensureOnYollomi(page);
47
47
  const result = await page.evaluate(`
48
48
  (async () => {
@@ -65,7 +65,7 @@ cli({
65
65
  throw new CliError('UPLOAD_ERROR', result?.data?.error || 'Upload failed', 'Make sure you are logged in to yollomi.com');
66
66
  }
67
67
  const url = result.data.url;
68
- process.stderr.write(chalk.green(`Uploaded! Use this URL as input for other commands.\n`));
68
+ log.success('Uploaded! Use this URL as input for other commands.');
69
69
  return [{ status: 'uploaded', file: fileName, size: fmtBytes(data.length), url }];
70
70
  },
71
71
  });
@@ -2,9 +2,9 @@
2
2
  * Yollomi image upscaling — POST /api/ai/image-upscaler
3
3
  */
4
4
  import * as path from 'node:path';
5
- import chalk from 'chalk';
6
- import { cli, Strategy } from '../../src/registry.js';
7
- import { CliError } from '../../src/errors.js';
5
+ import { cli, Strategy } from '@jackwener/opencli/registry';
6
+ import { CliError } from '@jackwener/opencli/errors';
7
+ import { log } from '@jackwener/opencli/logger';
8
8
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
9
9
  cli({
10
10
  site: 'yollomi',
@@ -21,7 +21,7 @@ cli({
21
21
  columns: ['status', 'file', 'size', 'scale', 'url'],
22
22
  func: async (page, kwargs) => {
23
23
  const scale = parseInt(kwargs.scale, 10);
24
- process.stderr.write(chalk.dim(`Upscaling ${scale}x...\n`));
24
+ log.status(`Upscaling ${scale}x...`);
25
25
  const data = await yollomiPost(page, '/api/ai/image-upscaler', {
26
26
  imageUrl: kwargs.image,
27
27
  scale,
@@ -43,7 +43,7 @@ cli({
43
43
  const filename = `yollomi_upscale_${scale}x_${Date.now()}${ext}`;
44
44
  const { path: fp, size } = await downloadOutput(url, kwargs.output, filename);
45
45
  if (data.remainingCredits !== undefined)
46
- process.stderr.write(chalk.dim(`Credits remaining: ${data.remainingCredits}\n`));
46
+ log.status(`Credits remaining: ${data.remainingCredits}`);
47
47
  return [{ status: 'saved', file: path.relative('.', fp), size: fmtBytes(size), scale: `${scale}x`, url }];
48
48
  }
49
49
  catch {
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Auth: browser session cookies from NextAuth — just log in to yollomi.com in Chrome.
9
9
  */
10
- import type { IPage } from '../../src/types.js';
10
+ import type { IPage } from '@jackwener/opencli/types';
11
11
  export declare const YOLLOMI_DOMAIN = "yollomi.com";
12
12
  /**
13
13
  * Ensure the browser tab is on yollomi.com.
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import * as fs from 'node:fs';
11
11
  import * as path from 'node:path';
12
- import { CliError } from '../../src/errors.js';
12
+ import { CliError } from '@jackwener/opencli/errors';
13
13
  export const YOLLOMI_DOMAIN = 'yollomi.com';
14
14
  /**
15
15
  * Ensure the browser tab is on yollomi.com.
@@ -3,9 +3,9 @@
3
3
  * Matches the frontend video-generator.tsx request format exactly.
4
4
  */
5
5
  import * as path from 'node:path';
6
- import chalk from 'chalk';
7
- import { cli, Strategy } from '../../src/registry.js';
8
- import { CliError } from '../../src/errors.js';
6
+ import { cli, Strategy } from '@jackwener/opencli/registry';
7
+ import { CliError } from '@jackwener/opencli/errors';
8
+ import { log } from '@jackwener/opencli/logger';
9
9
  import { YOLLOMI_DOMAIN, yollomiPost, downloadOutput, fmtBytes } from './utils.js';
10
10
  cli({
11
11
  site: 'yollomi',
@@ -31,7 +31,7 @@ cli({
31
31
  if (kwargs.image)
32
32
  inputs.image = kwargs.image;
33
33
  const body = { modelId, prompt, inputs };
34
- process.stderr.write(chalk.dim(`Generating video with ${modelId} (may take a while)...\n`));
34
+ log.status(`Generating video with ${modelId} (may take a while)...`);
35
35
  const data = await yollomiPost(page, '/api/ai/video', body);
36
36
  const videoUrl = data.video || '';
37
37
  if (!videoUrl)
@@ -46,7 +46,7 @@ cli({
46
46
  const filename = `yollomi_${modelId}_${Date.now()}.mp4`;
47
47
  const { path: fp, size } = await downloadOutput(videoUrl, outputDir, filename);
48
48
  if (credits !== undefined)
49
- process.stderr.write(chalk.dim(`Credits remaining: ${credits}\n`));
49
+ log.status(`Credits remaining: ${credits}`);
50
50
  return [{ status: 'saved', file: path.relative('.', fp), size: fmtBytes(size), credits: credits ?? '-', url: videoUrl }];
51
51
  }
52
52
  catch {
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * YouTube channel — get channel info and recent videos via InnerTube API.
3
3
  */
4
- import { cli, Strategy } from '../../src/registry.js';
5
- import { CommandExecutionError } from '../../src/errors.js';
4
+ import { cli, Strategy } from '@jackwener/opencli/registry';
5
+ import { CommandExecutionError } from '@jackwener/opencli/errors';
6
6
  cli({
7
7
  site: 'youtube',
8
8
  name: 'channel',
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * YouTube comments — get video comments via InnerTube API.
3
3
  */
4
- import { cli, Strategy } from '../../src/registry.js';
5
- import { CommandExecutionError } from '../../src/errors.js';
4
+ import { cli, Strategy } from '@jackwener/opencli/registry';
5
+ import { CommandExecutionError } from '@jackwener/opencli/errors';
6
6
  import { parseVideoId } from './utils.js';
7
7
  cli({
8
8
  site: 'youtube',
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * YouTube search — innertube API via browser session.
3
3
  */
4
- import { cli, Strategy } from '../../src/registry.js';
4
+ import { cli, Strategy } from '@jackwener/opencli/registry';
5
5
  cli({
6
6
  site: 'youtube',
7
7
  name: 'search',
@@ -9,10 +9,10 @@
9
9
  * --mode grouped (default): sentences merged, speaker detection, chapters
10
10
  * --mode raw: every caption segment as-is with precise timestamps
11
11
  */
12
- import { cli, Strategy } from '../../src/registry.js';
12
+ import { cli, Strategy } from '@jackwener/opencli/registry';
13
13
  import { parseVideoId, prepareYoutubeApiPage } from './utils.js';
14
14
  import { groupTranscriptSegments, formatGroupedTranscript, } from './transcript-group.js';
15
- import { CommandExecutionError, EmptyResultError } from '../../src/errors.js';
15
+ import { CommandExecutionError, EmptyResultError } from '@jackwener/opencli/errors';
16
16
  cli({
17
17
  site: 'youtube',
18
18
  name: 'transcript',
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared YouTube utilities — URL parsing, video ID extraction, etc.
3
3
  */
4
- import type { IPage } from '../../src/types.js';
4
+ import type { IPage } from '@jackwener/opencli/types';
5
5
  /**
6
6
  * Extract a YouTube video ID from a URL or bare video ID string.
7
7
  * Supports: watch?v=, youtu.be/, /shorts/, /embed/, /live/, /v/
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * YouTube video metadata — fetch watch HTML and parse bootstrap data without opening the watch UI.
3
3
  */
4
- import { cli, Strategy } from '../../src/registry.js';
4
+ import { cli, Strategy } from '@jackwener/opencli/registry';
5
5
  import { extractJsonAssignmentFromHtml, parseVideoId, prepareYoutubeApiPage } from './utils.js';
6
- import { CommandExecutionError } from '../../src/errors.js';
6
+ import { CommandExecutionError } from '@jackwener/opencli/errors';
7
7
  cli({
8
8
  site: 'youtube',
9
9
  name: 'video',
@@ -8,7 +8,7 @@ export declare function updateStableState(previousText: string, stableCount: num
8
8
  previousText: string;
9
9
  stableCount: number;
10
10
  };
11
- export declare const askCommand: import("../../src/registry.js").CliCommand;
11
+ export declare const askCommand: import("@jackwener/opencli/registry").CliCommand;
12
12
  export declare const __test__: {
13
13
  collectYuanbaoTranscriptAdditions: typeof collectYuanbaoTranscriptAdditions;
14
14
  convertYuanbaoHtmlToMarkdown: typeof convertYuanbaoHtmlToMarkdown;
@@ -1,6 +1,6 @@
1
- import { cli, Strategy } from '../../src/registry.js';
2
- import TurndownService from 'turndown';
3
- import { CommandExecutionError, TimeoutError } from '../../src/errors.js';
1
+ import { cli, Strategy } from '@jackwener/opencli/registry';
2
+ import { htmlToMarkdown } from '@jackwener/opencli/utils';
3
+ import { CommandExecutionError, TimeoutError } from '@jackwener/opencli/errors';
4
4
  import { YUANBAO_DOMAIN, IS_VISIBLE_JS, authRequired, isOnYuanbao, ensureYuanbaoPage, hasLoginGate } from './shared.js';
5
5
  const YUANBAO_RESPONSE_POLL_INTERVAL_SECONDS = 2;
6
6
  const YUANBAO_MIN_WAIT_MS = 8_000;
@@ -20,57 +20,40 @@ function normalizeBooleanFlag(value, fallback) {
20
20
  const normalized = String(value).trim().toLowerCase();
21
21
  return normalized === 'true' || normalized === '1' || normalized === 'yes' || normalized === 'on';
22
22
  }
23
- function createYuanbaoTurndown() {
24
- const td = new TurndownService({
25
- headingStyle: 'atx',
26
- codeBlockStyle: 'fenced',
27
- bulletListMarker: '-',
28
- });
29
- td.addRule('linebreak', {
30
- filter: 'br',
31
- replacement: () => '\n',
32
- });
33
- td.addRule('table', {
34
- filter: 'table',
35
- replacement: (content) => `\n\n${content}\n\n`,
36
- });
37
- td.addRule('tableSection', {
38
- filter: ['thead', 'tbody', 'tfoot'],
39
- replacement: (content) => content,
40
- });
41
- td.addRule('tableRow', {
42
- filter: 'tr',
43
- replacement: (content, node) => {
44
- const element = node;
45
- const cells = Array.from(element.children);
46
- const isHeaderRow = element.parentElement?.tagName === 'THEAD'
47
- || (cells.length > 0 && cells.every((cell) => cell.tagName === 'TH'));
48
- const row = `${content}\n`;
49
- if (!isHeaderRow)
50
- return row;
51
- const separator = `| ${cells.map(() => '---').join(' | ')} |\n`;
52
- return `${row}${separator}`;
53
- },
54
- });
55
- td.addRule('tableCell', {
56
- filter: ['th', 'td'],
57
- replacement: (content, node) => {
58
- const element = node;
59
- const index = element.parentElement ? Array.from(element.parentElement.children).indexOf(element) : 0;
60
- const prefix = index === 0 ? '| ' : ' ';
61
- return `${prefix}${content.trim()} |`;
62
- },
63
- });
64
- return td;
65
- }
66
- const yuanbaoTurndown = createYuanbaoTurndown();
67
23
  export function convertYuanbaoHtmlToMarkdown(value) {
68
- const markdown = yuanbaoTurndown.turndown(value || '');
69
- return markdown
70
- .replace(/\u00a0/g, ' ')
71
- .replace(/\n{4,}/g, '\n\n\n')
72
- .replace(/[ \t]+$/gm, '')
73
- .trim();
24
+ return htmlToMarkdown(value, (td) => {
25
+ td.addRule('table', {
26
+ filter: 'table',
27
+ replacement: (content) => `\n\n${content}\n\n`,
28
+ });
29
+ td.addRule('tableSection', {
30
+ filter: ['thead', 'tbody', 'tfoot'],
31
+ replacement: (content) => content,
32
+ });
33
+ td.addRule('tableRow', {
34
+ filter: 'tr',
35
+ replacement: (content, node) => {
36
+ const element = node;
37
+ const cells = Array.from(element.children);
38
+ const isHeaderRow = element.parentElement?.tagName === 'THEAD'
39
+ || (cells.length > 0 && cells.every((cell) => cell.tagName === 'TH'));
40
+ const row = `${content}\n`;
41
+ if (!isHeaderRow)
42
+ return row;
43
+ const separator = `| ${cells.map(() => '---').join(' | ')} |\n`;
44
+ return `${row}${separator}`;
45
+ },
46
+ });
47
+ td.addRule('tableCell', {
48
+ filter: ['th', 'td'],
49
+ replacement: (content, node) => {
50
+ const element = node;
51
+ const index = element.parentElement ? Array.from(element.parentElement.children).indexOf(element) : 0;
52
+ const prefix = index === 0 ? '| ' : ' ';
53
+ return `${prefix}${content.trim()} |`;
54
+ },
55
+ });
56
+ });
74
57
  }
75
58
  export function sanitizeYuanbaoResponseText(value, promptText) {
76
59
  let sanitized = value
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, it, vi } from 'vitest';
2
- import { AuthRequiredError, CommandExecutionError, TimeoutError } from '../../src/errors.js';
2
+ import { AuthRequiredError, CommandExecutionError, TimeoutError } from '@jackwener/opencli/errors';
3
3
  import { __test__ } from './ask.js';
4
4
  import { askCommand } from './ask.js';
5
5
  describe('yuanbao ask helpers', () => {
@@ -1 +1 @@
1
- export declare const newCommand: import("../../src/registry.js").CliCommand;
1
+ export declare const newCommand: import("@jackwener/opencli/registry").CliCommand;
@@ -1,4 +1,4 @@
1
- import { cli, Strategy } from '../../src/registry.js';
1
+ import { cli, Strategy } from '@jackwener/opencli/registry';
2
2
  import { YUANBAO_DOMAIN, YUANBAO_URL, IS_VISIBLE_JS, authRequired, ensureYuanbaoPage, hasLoginGate } from './shared.js';
3
3
  async function getCurrentUrl(page) {
4
4
  const result = await page.evaluate('window.location.href').catch(() => '');
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, it, vi } from 'vitest';
2
- import { AuthRequiredError } from '../../src/errors.js';
2
+ import { AuthRequiredError } from '@jackwener/opencli/errors';
3
3
  import { newCommand } from './new.js';
4
4
  function createNewPageMock(overrides = {}) {
5
5
  const currentUrl = overrides.currentUrl ?? 'https://yuanbao.tencent.com/';
@@ -1,5 +1,5 @@
1
- import type { IPage } from '../../src/types.js';
2
- import { AuthRequiredError } from '../../src/errors.js';
1
+ import type { IPage } from '@jackwener/opencli/types';
2
+ import { AuthRequiredError } from '@jackwener/opencli/errors';
3
3
  export declare const YUANBAO_DOMAIN = "yuanbao.tencent.com";
4
4
  export declare const YUANBAO_URL = "https://yuanbao.tencent.com/";
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { AuthRequiredError } from '../../src/errors.js';
1
+ import { AuthRequiredError } from '@jackwener/opencli/errors';
2
2
  export const YUANBAO_DOMAIN = 'yuanbao.tencent.com';
3
3
  export const YUANBAO_URL = 'https://yuanbao.tencent.com/';
4
4
  const SESSION_HINT = 'Likely login/auth/challenge/session issue in the existing yuanbao.tencent.com browser session.';
@@ -4,8 +4,8 @@
4
4
  * Usage:
5
5
  * opencli zhihu download --url "https://zhuanlan.zhihu.com/p/xxx" --output ./zhihu
6
6
  */
7
- import { cli, Strategy } from '../../src/registry.js';
8
- import { downloadArticle } from '../../download/article-download.js';
7
+ import { cli, Strategy } from '@jackwener/opencli/registry';
8
+ import { downloadArticle } from '@jackwener/opencli/download/article-download';
9
9
  cli({
10
10
  site: 'zhihu',
11
11
  name: 'download',
@@ -1,5 +1,5 @@
1
- import { cli, Strategy } from '../../src/registry.js';
2
- import { AuthRequiredError, CliError } from '../../src/errors.js';
1
+ import { cli, Strategy } from '@jackwener/opencli/registry';
2
+ import { AuthRequiredError, CliError } from '@jackwener/opencli/errors';
3
3
  function stripHtml(html) {
4
4
  return html
5
5
  .replace(/<[^>]+>/g, '')
@@ -1,6 +1,6 @@
1
1
  import { describe, expect, it, vi } from 'vitest';
2
- import { getRegistry } from '../../src/registry.js';
3
- import { AuthRequiredError, CliError } from '../../src/errors.js';
2
+ import { getRegistry } from '@jackwener/opencli/registry';
3
+ import { AuthRequiredError, CliError } from '@jackwener/opencli/errors';
4
4
  import './question.js';
5
5
  describe('zhihu question', () => {
6
6
  it('returns answers from the Zhihu API', async () => {
@@ -1,4 +1,4 @@
1
- import { cli, Strategy } from '../../src/registry.js';
1
+ import { cli, Strategy } from '@jackwener/opencli/registry';
2
2
  import { ensureZsxqAuth, ensureZsxqPage, fetchFirstJson, getTopicText, getTopicAuthor, getTopicUrl, } from './utils.js';
3
3
  cli({
4
4
  site: 'zsxq',
@@ -1,4 +1,4 @@
1
- import { cli, Strategy } from '../../src/registry.js';
1
+ import { cli, Strategy } from '@jackwener/opencli/registry';
2
2
  import { ensureZsxqAuth, ensureZsxqPage, fetchFirstJson, getGroupsFromResponse, } from './utils.js';
3
3
  cli({
4
4
  site: 'zsxq',
@@ -1,4 +1,4 @@
1
- import { cli, Strategy } from '../../src/registry.js';
1
+ import { cli, Strategy } from '@jackwener/opencli/registry';
2
2
  import { getActiveGroupId, ensureZsxqAuth, ensureZsxqPage, fetchFirstJson, getGroupsFromResponse, getTopicsFromResponse, toTopicRow, } from './utils.js';
3
3
  cli({
4
4
  site: 'zsxq',
@@ -1,5 +1,5 @@
1
1
  import { beforeEach, describe, expect, it, vi } from 'vitest';
2
- import { getRegistry } from '../../src/registry.js';
2
+ import { getRegistry } from '@jackwener/opencli/registry';
3
3
  import './search.js';
4
4
  describe('zsxq search command', () => {
5
5
  beforeEach(() => {
@@ -1,5 +1,5 @@
1
- import { cli, Strategy } from '../../src/registry.js';
2
- import { CliError } from '../../src/errors.js';
1
+ import { cli, Strategy } from '@jackwener/opencli/registry';
2
+ import { CliError } from '@jackwener/opencli/errors';
3
3
  import { browserJsonRequest, ensureZsxqAuth, ensureZsxqPage, fetchFirstJson, getCommentsFromResponse, getTopicFromResponse, getTopicUrl, summarizeComments, toTopicRow, } from './utils.js';
4
4
  cli({
5
5
  site: 'zsxq',