@jackwener/opencli 1.6.3 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/dist/clis/1688/item.js +3 -3
- package/dist/clis/1688/search.js +2 -2
- package/dist/clis/1688/shared.d.ts +1 -1
- package/dist/clis/1688/shared.js +1 -1
- package/dist/clis/1688/store.js +2 -2
- package/dist/clis/36kr/article.js +2 -2
- package/dist/clis/36kr/hot.js +2 -2
- package/dist/clis/36kr/news.js +1 -1
- package/dist/clis/36kr/search.js +2 -2
- package/dist/clis/_shared/desktop-commands.d.ts +5 -5
- package/dist/clis/_shared/desktop-commands.js +1 -1
- package/dist/clis/amazon/bestsellers.js +1 -1
- package/dist/clis/amazon/discussion.js +2 -2
- package/dist/clis/amazon/movers-shakers.js +1 -1
- package/dist/clis/amazon/new-releases.js +1 -1
- package/dist/clis/amazon/offer.js +2 -2
- package/dist/clis/amazon/product.js +2 -2
- package/dist/clis/amazon/rankings.d.ts +1 -1
- package/dist/clis/amazon/rankings.js +2 -2
- package/dist/clis/amazon/search.js +2 -2
- package/dist/clis/amazon/shared.d.ts +1 -1
- package/dist/clis/amazon/shared.js +1 -1
- package/dist/clis/antigravity/dump.d.ts +1 -1
- package/dist/clis/antigravity/dump.js +1 -1
- package/dist/clis/antigravity/extract-code.d.ts +1 -1
- package/dist/clis/antigravity/extract-code.js +1 -1
- package/dist/clis/antigravity/model.d.ts +1 -1
- package/dist/clis/antigravity/model.js +1 -1
- package/dist/clis/antigravity/new.d.ts +1 -1
- package/dist/clis/antigravity/new.js +1 -1
- package/dist/clis/antigravity/read.d.ts +1 -1
- package/dist/clis/antigravity/read.js +1 -1
- package/dist/clis/antigravity/send.d.ts +1 -1
- package/dist/clis/antigravity/send.js +1 -1
- package/dist/clis/antigravity/serve.js +3 -3
- package/dist/clis/antigravity/status.d.ts +1 -1
- package/dist/clis/antigravity/status.js +1 -1
- package/dist/clis/antigravity/watch.d.ts +1 -1
- package/dist/clis/antigravity/watch.js +1 -1
- package/dist/clis/apple-podcasts/commands.test.js +1 -1
- package/dist/clis/apple-podcasts/episodes.js +2 -2
- package/dist/clis/apple-podcasts/search.js +2 -2
- package/dist/clis/apple-podcasts/top.js +2 -2
- package/dist/clis/apple-podcasts/utils.js +1 -1
- package/dist/clis/arxiv/paper.js +2 -2
- package/dist/clis/arxiv/search.js +2 -2
- package/dist/clis/arxiv/utils.js +1 -1
- package/dist/clis/band/bands.js +2 -2
- package/dist/clis/band/mentions.js +2 -2
- package/dist/clis/band/post.js +4 -4
- package/dist/clis/band/posts.js +2 -2
- package/dist/clis/barchart/flow.js +1 -1
- package/dist/clis/barchart/greeks.js +1 -1
- package/dist/clis/barchart/options.js +1 -1
- package/dist/clis/barchart/quote.js +1 -1
- package/dist/clis/bbc/news.js +1 -1
- package/dist/clis/bilibili/comments.js +1 -1
- package/dist/clis/bilibili/comments.test.js +1 -1
- package/dist/clis/bilibili/download.js +3 -3
- package/dist/clis/bilibili/dynamic.js +1 -1
- package/dist/clis/bilibili/dynamic.test.js +1 -1
- package/dist/clis/bilibili/favorite.js +1 -1
- package/dist/clis/bilibili/feed.js +1 -1
- package/dist/clis/bilibili/following.js +2 -2
- package/dist/clis/bilibili/history.js +1 -1
- package/dist/clis/bilibili/me.js +1 -1
- package/dist/clis/bilibili/ranking.js +1 -1
- package/dist/clis/bilibili/search.js +1 -1
- package/dist/clis/bilibili/subtitle.js +2 -2
- package/dist/clis/bilibili/subtitle.test.js +2 -2
- package/dist/clis/bilibili/user-videos.js +1 -1
- package/dist/clis/bilibili/utils.d.ts +1 -1
- package/dist/clis/bilibili/utils.js +1 -1
- package/dist/clis/bloomberg/businessweek.js +1 -1
- package/dist/clis/bloomberg/economics.js +1 -1
- package/dist/clis/bloomberg/feeds.js +1 -1
- package/dist/clis/bloomberg/industries.js +1 -1
- package/dist/clis/bloomberg/main.js +1 -1
- package/dist/clis/bloomberg/markets.js +1 -1
- package/dist/clis/bloomberg/news.js +2 -2
- package/dist/clis/bloomberg/opinions.js +1 -1
- package/dist/clis/bloomberg/politics.js +1 -1
- package/dist/clis/bloomberg/tech.js +1 -1
- package/dist/clis/bloomberg/utils.js +1 -1
- package/dist/clis/boss/batchgreet.js +1 -1
- package/dist/clis/boss/chatlist.js +1 -1
- package/dist/clis/boss/chatmsg.js +1 -1
- package/dist/clis/boss/detail.js +1 -1
- package/dist/clis/boss/exchange.js +1 -1
- package/dist/clis/boss/greet.js +1 -1
- package/dist/clis/boss/invite.js +1 -1
- package/dist/clis/boss/joblist.js +1 -1
- package/dist/clis/boss/mark.js +2 -2
- package/dist/clis/boss/recommend.js +1 -1
- package/dist/clis/boss/resume.js +1 -1
- package/dist/clis/boss/search.js +1 -1
- package/dist/clis/boss/send.js +2 -2
- package/dist/clis/boss/stats.js +1 -1
- package/dist/clis/boss/utils.d.ts +1 -1
- package/dist/clis/chaoxing/assignments.js +2 -2
- package/dist/clis/chaoxing/exams.js +1 -1
- package/dist/clis/chaoxing/utils.d.ts +1 -1
- package/dist/clis/chatgpt/ask.d.ts +1 -1
- package/dist/clis/chatgpt/ask.js +2 -2
- package/dist/clis/chatgpt/model.d.ts +1 -1
- package/dist/clis/chatgpt/model.js +2 -2
- package/dist/clis/chatgpt/new.d.ts +1 -1
- package/dist/clis/chatgpt/new.js +2 -2
- package/dist/clis/chatgpt/read.d.ts +1 -1
- package/dist/clis/chatgpt/read.js +2 -2
- package/dist/clis/chatgpt/send.d.ts +1 -1
- package/dist/clis/chatgpt/send.js +2 -2
- package/dist/clis/chatgpt/status.d.ts +1 -1
- package/dist/clis/chatgpt/status.js +2 -2
- package/dist/clis/chatwise/ask.d.ts +1 -1
- package/dist/clis/chatwise/ask.js +2 -2
- package/dist/clis/chatwise/export.d.ts +1 -1
- package/dist/clis/chatwise/export.js +1 -1
- package/dist/clis/chatwise/history.d.ts +1 -1
- package/dist/clis/chatwise/history.js +1 -1
- package/dist/clis/chatwise/model.d.ts +1 -1
- package/dist/clis/chatwise/model.js +2 -2
- package/dist/clis/chatwise/read.d.ts +1 -1
- package/dist/clis/chatwise/read.js +1 -1
- package/dist/clis/chatwise/send.d.ts +1 -1
- package/dist/clis/chatwise/send.js +2 -2
- package/dist/clis/codex/ask.d.ts +1 -1
- package/dist/clis/codex/ask.js +2 -2
- package/dist/clis/codex/export.d.ts +1 -1
- package/dist/clis/codex/export.js +1 -1
- package/dist/clis/codex/extract-diff.d.ts +1 -1
- package/dist/clis/codex/extract-diff.js +1 -1
- package/dist/clis/codex/history.d.ts +1 -1
- package/dist/clis/codex/history.js +1 -1
- package/dist/clis/codex/model.d.ts +1 -1
- package/dist/clis/codex/model.js +1 -1
- package/dist/clis/codex/read.d.ts +1 -1
- package/dist/clis/codex/read.js +1 -1
- package/dist/clis/codex/send.d.ts +1 -1
- package/dist/clis/codex/send.js +2 -2
- package/dist/clis/coupang/add-to-cart.js +1 -1
- package/dist/clis/coupang/search.js +1 -1
- package/dist/clis/ctrip/search.js +2 -2
- package/dist/clis/ctrip/search.test.js +1 -1
- package/dist/clis/cursor/ask.d.ts +1 -1
- package/dist/clis/cursor/ask.js +2 -2
- package/dist/clis/cursor/composer.d.ts +1 -1
- package/dist/clis/cursor/composer.js +2 -2
- package/dist/clis/cursor/export.d.ts +1 -1
- package/dist/clis/cursor/export.js +1 -1
- package/dist/clis/cursor/extract-code.d.ts +1 -1
- package/dist/clis/cursor/extract-code.js +1 -1
- package/dist/clis/cursor/history.d.ts +1 -1
- package/dist/clis/cursor/history.js +1 -1
- package/dist/clis/cursor/model.d.ts +1 -1
- package/dist/clis/cursor/model.js +1 -1
- package/dist/clis/cursor/read.d.ts +1 -1
- package/dist/clis/cursor/read.js +2 -2
- package/dist/clis/cursor/send.d.ts +1 -1
- package/dist/clis/cursor/send.js +2 -2
- package/dist/clis/discord-app/channels.d.ts +1 -1
- package/dist/clis/discord-app/channels.js +1 -1
- package/dist/clis/discord-app/members.d.ts +1 -1
- package/dist/clis/discord-app/members.js +1 -1
- package/dist/clis/discord-app/read.d.ts +1 -1
- package/dist/clis/discord-app/read.js +1 -1
- package/dist/clis/discord-app/search.d.ts +1 -1
- package/dist/clis/discord-app/search.js +1 -1
- package/dist/clis/discord-app/send.d.ts +1 -1
- package/dist/clis/discord-app/send.js +1 -1
- package/dist/clis/discord-app/servers.d.ts +1 -1
- package/dist/clis/discord-app/servers.js +1 -1
- package/dist/clis/discord-app/status.d.ts +1 -1
- package/dist/clis/discord-app/status.js +1 -1
- package/dist/clis/douban/book-hot.js +1 -1
- package/dist/clis/douban/download.js +4 -4
- package/dist/clis/douban/download.test.js +3 -3
- package/dist/clis/douban/marks.js +1 -1
- package/dist/clis/douban/movie-hot.js +1 -1
- package/dist/clis/douban/photos.js +1 -1
- package/dist/clis/douban/reviews.js +1 -1
- package/dist/clis/douban/search.js +1 -1
- package/dist/clis/douban/utils.d.ts +1 -1
- package/dist/clis/douban/utils.js +1 -1
- package/dist/clis/doubao/ask.d.ts +1 -1
- package/dist/clis/doubao/ask.js +1 -1
- package/dist/clis/doubao/detail.d.ts +1 -1
- package/dist/clis/doubao/detail.js +1 -1
- package/dist/clis/doubao/detail.test.js +1 -1
- package/dist/clis/doubao/history.d.ts +1 -1
- package/dist/clis/doubao/history.js +1 -1
- package/dist/clis/doubao/history.test.js +1 -1
- package/dist/clis/doubao/meeting-summary.d.ts +1 -1
- package/dist/clis/doubao/meeting-summary.js +1 -1
- package/dist/clis/doubao/meeting-transcript.d.ts +1 -1
- package/dist/clis/doubao/meeting-transcript.js +1 -1
- package/dist/clis/doubao/new.d.ts +1 -1
- package/dist/clis/doubao/new.js +1 -1
- package/dist/clis/doubao/read.d.ts +1 -1
- package/dist/clis/doubao/read.js +1 -1
- package/dist/clis/doubao/send.d.ts +1 -1
- package/dist/clis/doubao/send.js +1 -1
- package/dist/clis/doubao/status.d.ts +1 -1
- package/dist/clis/doubao/status.js +1 -1
- package/dist/clis/doubao/utils.d.ts +1 -1
- package/dist/clis/doubao-app/ask.d.ts +1 -1
- package/dist/clis/doubao-app/ask.js +1 -1
- package/dist/clis/doubao-app/dump.d.ts +1 -1
- package/dist/clis/doubao-app/dump.js +1 -1
- package/dist/clis/doubao-app/new.d.ts +1 -1
- package/dist/clis/doubao-app/new.js +1 -1
- package/dist/clis/doubao-app/read.d.ts +1 -1
- package/dist/clis/doubao-app/read.js +1 -1
- package/dist/clis/doubao-app/screenshot.d.ts +1 -1
- package/dist/clis/doubao-app/screenshot.js +1 -1
- package/dist/clis/doubao-app/send.d.ts +1 -1
- package/dist/clis/doubao-app/send.js +1 -1
- package/dist/clis/doubao-app/status.d.ts +1 -1
- package/dist/clis/doubao-app/status.js +1 -1
- package/dist/clis/douyin/_shared/browser-fetch.d.ts +1 -1
- package/dist/clis/douyin/_shared/browser-fetch.js +1 -1
- package/dist/clis/douyin/_shared/imagex-upload.js +1 -1
- package/dist/clis/douyin/_shared/imagex-upload.test.js +1 -1
- package/dist/clis/douyin/_shared/public-api.d.ts +1 -1
- package/dist/clis/douyin/_shared/sts2.d.ts +1 -1
- package/dist/clis/douyin/_shared/sts2.js +1 -1
- package/dist/clis/douyin/_shared/sts2.test.js +1 -1
- package/dist/clis/douyin/_shared/tos-upload-short-read.test.js +1 -1
- package/dist/clis/douyin/_shared/tos-upload.js +1 -1
- package/dist/clis/douyin/_shared/transcode.d.ts +1 -1
- package/dist/clis/douyin/_shared/transcode.js +1 -1
- package/dist/clis/douyin/_shared/transcode.test.js +1 -1
- package/dist/clis/douyin/activities.js +1 -1
- package/dist/clis/douyin/activities.test.js +1 -1
- package/dist/clis/douyin/collections.js +1 -1
- package/dist/clis/douyin/collections.test.js +1 -1
- package/dist/clis/douyin/delete.js +1 -1
- package/dist/clis/douyin/delete.test.js +1 -1
- package/dist/clis/douyin/draft.js +2 -2
- package/dist/clis/douyin/draft.test.js +2 -2
- package/dist/clis/douyin/drafts.js +1 -1
- package/dist/clis/douyin/drafts.test.js +1 -1
- package/dist/clis/douyin/hashtag.js +2 -2
- package/dist/clis/douyin/hashtag.test.js +1 -1
- package/dist/clis/douyin/location.js +1 -1
- package/dist/clis/douyin/location.test.js +1 -1
- package/dist/clis/douyin/profile.js +2 -2
- package/dist/clis/douyin/profile.test.js +1 -1
- package/dist/clis/douyin/publish.js +2 -2
- package/dist/clis/douyin/publish.test.js +1 -1
- package/dist/clis/douyin/stats.js +1 -1
- package/dist/clis/douyin/stats.test.js +1 -1
- package/dist/clis/douyin/update.js +2 -2
- package/dist/clis/douyin/update.test.js +1 -1
- package/dist/clis/douyin/user-videos.js +1 -1
- package/dist/clis/douyin/user-videos.test.js +1 -1
- package/dist/clis/douyin/videos.js +1 -1
- package/dist/clis/douyin/videos.test.js +1 -1
- package/dist/clis/facebook/search.test.js +1 -1
- package/dist/clis/gemini/ask.d.ts +1 -1
- package/dist/clis/gemini/ask.js +1 -1
- package/dist/clis/gemini/deep-research-result.d.ts +1 -1
- package/dist/clis/gemini/deep-research-result.js +1 -1
- package/dist/clis/gemini/deep-research.d.ts +1 -1
- package/dist/clis/gemini/deep-research.js +1 -1
- package/dist/clis/gemini/image.d.ts +1 -1
- package/dist/clis/gemini/image.js +2 -2
- package/dist/clis/gemini/new.d.ts +1 -1
- package/dist/clis/gemini/new.js +1 -1
- package/dist/clis/gemini/utils.d.ts +1 -1
- package/dist/clis/gemini/utils.js +1 -1
- package/dist/clis/google/news.js +2 -2
- package/dist/clis/google/search.js +2 -2
- package/dist/clis/google/suggest.js +2 -2
- package/dist/clis/google/trends.js +2 -2
- package/dist/clis/grok/ask.d.ts +2 -2
- package/dist/clis/grok/ask.js +1 -1
- package/dist/clis/hf/top.js +2 -2
- package/dist/clis/hupu/detail.js +1 -1
- package/dist/clis/hupu/like.js +2 -2
- package/dist/clis/hupu/mentions.js +2 -2
- package/dist/clis/hupu/reply.js +2 -2
- package/dist/clis/hupu/search.js +1 -1
- package/dist/clis/hupu/unlike.js +2 -2
- package/dist/clis/hupu/utils.d.ts +1 -1
- package/dist/clis/hupu/utils.js +1 -1
- package/dist/clis/imdb/person.js +2 -2
- package/dist/clis/imdb/reviews.js +2 -2
- package/dist/clis/imdb/search.js +2 -2
- package/dist/clis/imdb/title.js +2 -2
- package/dist/clis/imdb/top.js +2 -2
- package/dist/clis/imdb/trending.js +2 -2
- package/dist/clis/imdb/utils.d.ts +1 -1
- package/dist/clis/imdb/utils.js +1 -1
- package/dist/clis/instagram/_shared/private-publish.d.ts +1 -1
- package/dist/clis/instagram/_shared/private-publish.js +1 -1
- package/dist/clis/instagram/_shared/protocol-capture.d.ts +1 -1
- package/dist/clis/instagram/_shared/runtime-info.d.ts +1 -1
- package/dist/clis/instagram/download.js +3 -3
- package/dist/clis/instagram/download.test.js +4 -4
- package/dist/clis/instagram/note.js +2 -2
- package/dist/clis/instagram/note.test.js +2 -2
- package/dist/clis/instagram/post.js +2 -2
- package/dist/clis/instagram/post.test.js +2 -2
- package/dist/clis/instagram/reel.js +3 -3
- package/dist/clis/instagram/reel.test.js +2 -2
- package/dist/clis/instagram/story.js +2 -2
- package/dist/clis/instagram/story.test.js +2 -2
- package/dist/clis/jd/item.js +1 -1
- package/dist/clis/jd/item.test.js +1 -1
- package/dist/clis/jike/comment.js +1 -1
- package/dist/clis/jike/create.js +1 -1
- package/dist/clis/jike/feed.js +1 -1
- package/dist/clis/jike/like.js +1 -1
- package/dist/clis/jike/notifications.js +1 -1
- package/dist/clis/jike/repost.js +1 -1
- package/dist/clis/jike/search.js +1 -1
- package/dist/clis/lesswrong/_helpers.js +1 -1
- package/dist/clis/lesswrong/comments.js +2 -2
- package/dist/clis/lesswrong/curated.js +1 -1
- package/dist/clis/lesswrong/frontpage.js +1 -1
- package/dist/clis/lesswrong/new.js +1 -1
- package/dist/clis/lesswrong/read.js +2 -2
- package/dist/clis/lesswrong/sequences.js +1 -1
- package/dist/clis/lesswrong/shortform.js +1 -1
- package/dist/clis/lesswrong/tag.js +2 -2
- package/dist/clis/lesswrong/tags.js +1 -1
- package/dist/clis/lesswrong/top-month.js +1 -1
- package/dist/clis/lesswrong/top-week.js +1 -1
- package/dist/clis/lesswrong/top-year.js +1 -1
- package/dist/clis/lesswrong/top.js +1 -1
- package/dist/clis/lesswrong/user-posts.js +1 -1
- package/dist/clis/lesswrong/user.js +2 -2
- package/dist/clis/linkedin/search.js +2 -2
- package/dist/clis/linkedin/timeline.js +2 -2
- package/dist/clis/linkedin/timeline.test.js +1 -1
- package/dist/clis/linux-do/category.js +1 -1
- package/dist/clis/linux-do/feed.d.ts +2 -2
- package/dist/clis/linux-do/feed.js +2 -2
- package/dist/clis/linux-do/hot.js +1 -1
- package/dist/clis/linux-do/latest.js +1 -1
- package/dist/clis/medium/feed.js +1 -1
- package/dist/clis/medium/search.js +1 -1
- package/dist/clis/medium/user.js +1 -1
- package/dist/clis/medium/utils.d.ts +1 -1
- package/dist/clis/medium/utils.js +1 -1
- package/dist/clis/notebooklm/compat.test.js +1 -1
- package/dist/clis/notebooklm/current.js +2 -2
- package/dist/clis/notebooklm/get.js +2 -2
- package/dist/clis/notebooklm/history.js +2 -2
- package/dist/clis/notebooklm/history.test.js +1 -1
- package/dist/clis/notebooklm/list.js +2 -2
- package/dist/clis/notebooklm/note-list.js +2 -2
- package/dist/clis/notebooklm/note-list.test.js +1 -1
- package/dist/clis/notebooklm/notes-get.js +2 -2
- package/dist/clis/notebooklm/notes-get.test.js +1 -1
- package/dist/clis/notebooklm/open.js +2 -2
- package/dist/clis/notebooklm/open.test.js +1 -1
- package/dist/clis/notebooklm/rpc.d.ts +1 -1
- package/dist/clis/notebooklm/rpc.js +1 -1
- package/dist/clis/notebooklm/rpc.test.js +1 -1
- package/dist/clis/notebooklm/source-fulltext.js +2 -2
- package/dist/clis/notebooklm/source-fulltext.test.js +1 -1
- package/dist/clis/notebooklm/source-get.js +2 -2
- package/dist/clis/notebooklm/source-get.test.js +1 -1
- package/dist/clis/notebooklm/source-guide.js +2 -2
- package/dist/clis/notebooklm/source-guide.test.js +1 -1
- package/dist/clis/notebooklm/source-list.js +2 -2
- package/dist/clis/notebooklm/status.js +1 -1
- package/dist/clis/notebooklm/summary.js +2 -2
- package/dist/clis/notebooklm/summary.test.js +1 -1
- package/dist/clis/notebooklm/utils.d.ts +1 -1
- package/dist/clis/notebooklm/utils.js +1 -1
- package/dist/clis/notion/export.d.ts +1 -1
- package/dist/clis/notion/export.js +1 -1
- package/dist/clis/notion/favorites.d.ts +1 -1
- package/dist/clis/notion/favorites.js +1 -1
- package/dist/clis/notion/new.d.ts +1 -1
- package/dist/clis/notion/new.js +1 -1
- package/dist/clis/notion/read.d.ts +1 -1
- package/dist/clis/notion/read.js +1 -1
- package/dist/clis/notion/search.d.ts +1 -1
- package/dist/clis/notion/search.js +1 -1
- package/dist/clis/notion/sidebar.d.ts +1 -1
- package/dist/clis/notion/sidebar.js +1 -1
- package/dist/clis/notion/status.d.ts +1 -1
- package/dist/clis/notion/status.js +1 -1
- package/dist/clis/notion/write.d.ts +1 -1
- package/dist/clis/notion/write.js +1 -1
- package/dist/clis/ones/common.d.ts +1 -1
- package/dist/clis/ones/common.js +1 -1
- package/dist/clis/ones/enrich-tasks.d.ts +1 -1
- package/dist/clis/ones/login.js +2 -2
- package/dist/clis/ones/logout.js +1 -1
- package/dist/clis/ones/me.js +2 -2
- package/dist/clis/ones/my-tasks.js +2 -2
- package/dist/clis/ones/resolve-labels.d.ts +1 -1
- package/dist/clis/ones/task-helpers.js +1 -1
- package/dist/clis/ones/task.js +2 -2
- package/dist/clis/ones/tasks.js +2 -2
- package/dist/clis/ones/token-info.js +2 -2
- package/dist/clis/ones/worklog.js +2 -2
- package/dist/clis/paperreview/commands.test.js +1 -1
- package/dist/clis/paperreview/feedback.js +2 -2
- package/dist/clis/paperreview/review.js +2 -2
- package/dist/clis/paperreview/submit.js +2 -2
- package/dist/clis/paperreview/utils.js +1 -1
- package/dist/clis/paperreview/utils.test.js +1 -1
- package/dist/clis/pixiv/download.js +4 -4
- package/dist/clis/pixiv/download.test.js +3 -3
- package/dist/clis/pixiv/illusts.js +2 -2
- package/dist/clis/pixiv/illusts.test.js +2 -2
- package/dist/clis/pixiv/search.js +1 -1
- package/dist/clis/pixiv/search.test.js +2 -2
- package/dist/clis/pixiv/test-utils.d.ts +1 -1
- package/dist/clis/pixiv/utils.d.ts +1 -1
- package/dist/clis/pixiv/utils.js +1 -1
- package/dist/clis/producthunt/browse.js +2 -2
- package/dist/clis/producthunt/hot.js +2 -2
- package/dist/clis/producthunt/posts.js +1 -1
- package/dist/clis/producthunt/today.js +1 -1
- package/dist/clis/reddit/comment.js +2 -2
- package/dist/clis/reddit/read.js +2 -2
- package/dist/clis/reddit/read.test.js +1 -1
- package/dist/clis/reddit/save.js +2 -2
- package/dist/clis/reddit/saved.js +2 -2
- package/dist/clis/reddit/subscribe.js +2 -2
- package/dist/clis/reddit/upvote.js +2 -2
- package/dist/clis/reddit/upvoted.js +2 -2
- package/dist/clis/reuters/search.js +1 -1
- package/dist/clis/sinablog/article.js +1 -1
- package/dist/clis/sinablog/hot.js +1 -1
- package/dist/clis/sinablog/search.js +1 -1
- package/dist/clis/sinablog/user.js +1 -1
- package/dist/clis/sinablog/utils.d.ts +1 -1
- package/dist/clis/sinafinance/news.js +2 -2
- package/dist/clis/sinafinance/rolling-news.js +1 -1
- package/dist/clis/sinafinance/stock-rank.js +1 -1
- package/dist/clis/sinafinance/stock.js +2 -2
- package/dist/clis/smzdm/search.js +1 -1
- package/dist/clis/spotify/spotify.js +2 -2
- package/dist/clis/spotify/utils.js +1 -1
- package/dist/clis/substack/feed.js +1 -1
- package/dist/clis/substack/publication.js +1 -1
- package/dist/clis/substack/search.js +2 -2
- package/dist/clis/substack/utils.d.ts +1 -1
- package/dist/clis/substack/utils.js +1 -1
- package/dist/clis/tieba/commands.test.js +1 -1
- package/dist/clis/tieba/hot.js +2 -2
- package/dist/clis/tieba/posts.js +2 -2
- package/dist/clis/tieba/read.js +2 -2
- package/dist/clis/tieba/search.js +2 -2
- package/dist/clis/twitter/accept.js +2 -2
- package/dist/clis/twitter/article.js +2 -2
- package/dist/clis/twitter/block.js +2 -2
- package/dist/clis/twitter/bookmark.js +2 -2
- package/dist/clis/twitter/bookmarks.js +2 -2
- package/dist/clis/twitter/delete.js +2 -2
- package/dist/clis/twitter/delete.test.js +2 -2
- package/dist/clis/twitter/download.js +3 -3
- package/dist/clis/twitter/follow.js +2 -2
- package/dist/clis/twitter/followers.js +2 -2
- package/dist/clis/twitter/following.js +2 -2
- package/dist/clis/twitter/hide-reply.js +2 -2
- package/dist/clis/twitter/like.js +2 -2
- package/dist/clis/twitter/likes.js +2 -2
- package/dist/clis/twitter/notifications.js +2 -2
- package/dist/clis/twitter/post.js +2 -2
- package/dist/clis/twitter/post.test.js +1 -1
- package/dist/clis/twitter/profile.js +2 -2
- package/dist/clis/twitter/reply-dm.js +2 -2
- package/dist/clis/twitter/reply.js +2 -2
- package/dist/clis/twitter/reply.test.js +1 -1
- package/dist/clis/twitter/search.js +2 -2
- package/dist/clis/twitter/search.test.js +1 -1
- package/dist/clis/twitter/shared.d.ts +1 -1
- package/dist/clis/twitter/thread.js +2 -2
- package/dist/clis/twitter/timeline.js +2 -2
- package/dist/clis/twitter/trending.js +2 -2
- package/dist/clis/twitter/unblock.js +2 -2
- package/dist/clis/twitter/unbookmark.js +2 -2
- package/dist/clis/twitter/unfollow.js +2 -2
- package/dist/clis/v2ex/daily.js +2 -2
- package/dist/clis/v2ex/me.js +2 -2
- package/dist/clis/v2ex/notifications.js +2 -2
- package/dist/clis/web/read.js +2 -2
- package/dist/clis/weibo/comments.js +1 -1
- package/dist/clis/weibo/feed.js +1 -1
- package/dist/clis/weibo/hot.js +1 -1
- package/dist/clis/weibo/me.js +2 -2
- package/dist/clis/weibo/post.js +2 -2
- package/dist/clis/weibo/search.js +2 -2
- package/dist/clis/weibo/user.js +2 -2
- package/dist/clis/weibo/utils.d.ts +1 -1
- package/dist/clis/weibo/utils.js +1 -1
- package/dist/clis/weixin/download.js +2 -2
- package/dist/clis/weread/book.js +2 -2
- package/dist/clis/weread/commands.test.js +2 -2
- package/dist/clis/weread/highlights.js +1 -1
- package/dist/clis/weread/notebooks.js +1 -1
- package/dist/clis/weread/notes.js +1 -1
- package/dist/clis/weread/private-api-regression.test.js +2 -2
- package/dist/clis/weread/ranking.js +1 -1
- package/dist/clis/weread/search-regression.test.js +1 -1
- package/dist/clis/weread/search.js +1 -1
- package/dist/clis/weread/shelf.js +3 -3
- package/dist/clis/weread/utils.d.ts +1 -1
- package/dist/clis/weread/utils.js +1 -1
- package/dist/clis/wikipedia/random.js +2 -2
- package/dist/clis/wikipedia/search.js +2 -2
- package/dist/clis/wikipedia/summary.js +2 -2
- package/dist/clis/wikipedia/trending.js +2 -2
- package/dist/clis/wikipedia/utils.js +1 -1
- package/dist/clis/xianyu/chat.js +2 -2
- package/dist/clis/xianyu/item.js +2 -2
- package/dist/clis/xianyu/item.test.js +2 -2
- package/dist/clis/xianyu/search.js +2 -2
- package/dist/clis/xianyu/utils.js +1 -1
- package/dist/clis/xiaohongshu/comments.js +2 -2
- package/dist/clis/xiaohongshu/comments.test.js +1 -1
- package/dist/clis/xiaohongshu/creator-note-detail.d.ts +1 -1
- package/dist/clis/xiaohongshu/creator-note-detail.js +1 -1
- package/dist/clis/xiaohongshu/creator-note-detail.test.js +1 -1
- package/dist/clis/xiaohongshu/creator-notes-summary.js +1 -1
- package/dist/clis/xiaohongshu/creator-notes.d.ts +1 -1
- package/dist/clis/xiaohongshu/creator-notes.js +1 -1
- package/dist/clis/xiaohongshu/creator-notes.test.js +1 -1
- package/dist/clis/xiaohongshu/creator-profile.js +1 -1
- package/dist/clis/xiaohongshu/creator-stats.js +1 -1
- package/dist/clis/xiaohongshu/download.js +3 -3
- package/dist/clis/xiaohongshu/download.test.js +3 -3
- package/dist/clis/xiaohongshu/note.js +2 -2
- package/dist/clis/xiaohongshu/note.test.js +1 -1
- package/dist/clis/xiaohongshu/publish.js +1 -1
- package/dist/clis/xiaohongshu/publish.test.js +1 -1
- package/dist/clis/xiaohongshu/search.js +2 -2
- package/dist/clis/xiaohongshu/search.test.js +1 -1
- package/dist/clis/xiaohongshu/user.js +1 -1
- package/dist/clis/xiaoyuzhou/episode.js +2 -2
- package/dist/clis/xiaoyuzhou/podcast-episodes.js +2 -2
- package/dist/clis/xiaoyuzhou/podcast.js +2 -2
- package/dist/clis/xiaoyuzhou/utils.js +1 -1
- package/dist/clis/xueqiu/comments.d.ts +1 -1
- package/dist/clis/xueqiu/comments.js +4 -4
- package/dist/clis/xueqiu/comments.test.js +3 -3
- package/dist/clis/xueqiu/danjuan-utils.d.ts +1 -1
- package/dist/clis/xueqiu/fund-holdings.js +1 -1
- package/dist/clis/xueqiu/fund-snapshot.js +1 -1
- package/dist/clis/yahoo-finance/quote.js +1 -1
- package/dist/clis/yollomi/background.js +2 -2
- package/dist/clis/yollomi/edit.js +2 -2
- package/dist/clis/yollomi/face-swap.js +2 -2
- package/dist/clis/yollomi/generate.js +2 -2
- package/dist/clis/yollomi/models.js +1 -1
- package/dist/clis/yollomi/object-remover.js +2 -2
- package/dist/clis/yollomi/remove-bg.js +2 -2
- package/dist/clis/yollomi/restore.js +2 -2
- package/dist/clis/yollomi/try-on.js +2 -2
- package/dist/clis/yollomi/upload.js +2 -2
- package/dist/clis/yollomi/upscale.js +2 -2
- package/dist/clis/yollomi/utils.d.ts +1 -1
- package/dist/clis/yollomi/utils.js +1 -1
- package/dist/clis/yollomi/video.js +2 -2
- package/dist/clis/youtube/channel.js +2 -2
- package/dist/clis/youtube/comments.js +2 -2
- package/dist/clis/youtube/search.js +1 -1
- package/dist/clis/youtube/transcript.js +2 -2
- package/dist/clis/youtube/utils.d.ts +1 -1
- package/dist/clis/youtube/video.js +2 -2
- package/dist/clis/yuanbao/ask.d.ts +1 -1
- package/dist/clis/yuanbao/ask.js +2 -2
- package/dist/clis/yuanbao/ask.test.js +1 -1
- package/dist/clis/yuanbao/new.d.ts +1 -1
- package/dist/clis/yuanbao/new.js +1 -1
- package/dist/clis/yuanbao/new.test.js +1 -1
- package/dist/clis/yuanbao/shared.d.ts +2 -2
- package/dist/clis/yuanbao/shared.js +1 -1
- package/dist/clis/zhihu/download.js +2 -2
- package/dist/clis/zhihu/question.js +2 -2
- package/dist/clis/zhihu/question.test.js +2 -2
- package/dist/clis/zsxq/dynamics.js +1 -1
- package/dist/clis/zsxq/groups.js +1 -1
- package/dist/clis/zsxq/search.js +1 -1
- package/dist/clis/zsxq/search.test.js +1 -1
- package/dist/clis/zsxq/topic.js +2 -2
- package/dist/clis/zsxq/topic.test.js +1 -1
- package/dist/clis/zsxq/topics.js +1 -1
- package/dist/clis/zsxq/topics.test.js +1 -1
- package/dist/clis/zsxq/utils.d.ts +1 -1
- package/dist/clis/zsxq/utils.js +1 -1
- package/dist/src/discovery.d.ts +5 -5
- package/dist/src/discovery.js +22 -70
- package/dist/src/engine.test.js +3 -3
- package/dist/src/package-exports.test.d.ts +1 -0
- package/dist/src/package-exports.test.js +75 -0
- package/dist/src/registry-api.d.ts +1 -1
- package/dist/src/version.js +7 -1
- package/package.json +15 -11
- package/dist/browser/cdp.d.ts +0 -1
- package/dist/browser/cdp.js +0 -2
- package/dist/browser/page.d.ts +0 -1
- package/dist/browser/page.js +0 -2
- package/dist/browser/utils.d.ts +0 -1
- package/dist/browser/utils.js +0 -2
- package/dist/download/article-download.d.ts +0 -1
- package/dist/download/article-download.js +0 -2
- package/dist/download/index.d.ts +0 -1
- package/dist/download/index.js +0 -2
- package/dist/download/media-download.d.ts +0 -1
- package/dist/download/media-download.js +0 -2
- package/dist/download/progress.d.ts +0 -1
- package/dist/download/progress.js +0 -2
- package/dist/pipeline/index.d.ts +0 -1
- package/dist/pipeline/index.js +0 -2
|
@@ -13,7 +13,7 @@ vi.mock('./utils.js', async () => {
|
|
|
13
13
|
requireNotebooklmSession: mockRequireNotebooklmSession,
|
|
14
14
|
};
|
|
15
15
|
});
|
|
16
|
-
import { getRegistry } from '
|
|
16
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
17
17
|
import './open.js';
|
|
18
18
|
describe('notebooklm open', () => {
|
|
19
19
|
const command = getRegistry().get('notebooklm/open');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthRequiredError, CliError } from '
|
|
1
|
+
import { AuthRequiredError, CliError } from '@jackwener/opencli/errors';
|
|
2
2
|
import { NOTEBOOKLM_DOMAIN } from './shared.js';
|
|
3
3
|
export function extractNotebooklmPageAuthFromHtml(html, sourcePath = '/', preferredTokens) {
|
|
4
4
|
const csrfMatch = html.match(/"SNlM0e":"([^"]+)"/);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it, vi } from 'vitest';
|
|
2
|
-
import { AuthRequiredError } from '
|
|
2
|
+
import { AuthRequiredError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { buildNotebooklmRpcBody, extractNotebooklmRpcResult, getNotebooklmPageAuth, parseNotebooklmChunkedResponse, } from './rpc.js';
|
|
4
4
|
describe('notebooklm rpc transport', () => {
|
|
5
5
|
it('extracts auth tokens from the page html via page evaluation', async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { EmptyResultError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { EmptyResultError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { NOTEBOOKLM_DOMAIN, NOTEBOOKLM_SITE } from './shared.js';
|
|
4
4
|
import { findNotebooklmSourceRow, getNotebooklmPageState, getNotebooklmSourceFulltextViaRpc, listNotebooklmSourcesFromPage, listNotebooklmSourcesViaRpc, requireNotebooklmSession, } from './utils.js';
|
|
5
5
|
cli({
|
|
@@ -17,7 +17,7 @@ vi.mock('./utils.js', async () => {
|
|
|
17
17
|
requireNotebooklmSession: mockRequireNotebooklmSession,
|
|
18
18
|
};
|
|
19
19
|
});
|
|
20
|
-
import { getRegistry } from '
|
|
20
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
21
21
|
import './source-fulltext.js';
|
|
22
22
|
describe('notebooklm source-fulltext', () => {
|
|
23
23
|
const command = getRegistry().get('notebooklm/source-fulltext');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { EmptyResultError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { EmptyResultError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { NOTEBOOKLM_DOMAIN, NOTEBOOKLM_SITE } from './shared.js';
|
|
4
4
|
import { findNotebooklmSourceRow, getNotebooklmPageState, listNotebooklmSourcesFromPage, listNotebooklmSourcesViaRpc, requireNotebooklmSession, } from './utils.js';
|
|
5
5
|
cli({
|
|
@@ -15,7 +15,7 @@ vi.mock('./utils.js', async () => {
|
|
|
15
15
|
requireNotebooklmSession: mockRequireNotebooklmSession,
|
|
16
16
|
};
|
|
17
17
|
});
|
|
18
|
-
import { getRegistry } from '
|
|
18
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
19
19
|
import './source-get.js';
|
|
20
20
|
describe('notebooklm source-get', () => {
|
|
21
21
|
const command = getRegistry().get('notebooklm/source-get');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { EmptyResultError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { EmptyResultError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { NOTEBOOKLM_DOMAIN, NOTEBOOKLM_SITE } from './shared.js';
|
|
4
4
|
import { findNotebooklmSourceRow, getNotebooklmPageState, getNotebooklmSourceGuideViaRpc, listNotebooklmSourcesFromPage, listNotebooklmSourcesViaRpc, requireNotebooklmSession, } from './utils.js';
|
|
5
5
|
cli({
|
|
@@ -17,7 +17,7 @@ vi.mock('./utils.js', async () => {
|
|
|
17
17
|
requireNotebooklmSession: mockRequireNotebooklmSession,
|
|
18
18
|
};
|
|
19
19
|
});
|
|
20
|
-
import { getRegistry } from '
|
|
20
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
21
21
|
import './source-guide.js';
|
|
22
22
|
describe('notebooklm source-guide', () => {
|
|
23
23
|
const command = getRegistry().get('notebooklm/source-guide');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { EmptyResultError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { EmptyResultError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { NOTEBOOKLM_DOMAIN, NOTEBOOKLM_SITE } from './shared.js';
|
|
4
4
|
import { getNotebooklmPageState, listNotebooklmSourcesFromPage, listNotebooklmSourcesViaRpc, requireNotebooklmSession, } from './utils.js';
|
|
5
5
|
cli({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { EmptyResultError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { EmptyResultError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { NOTEBOOKLM_DOMAIN, NOTEBOOKLM_SITE } from './shared.js';
|
|
4
4
|
import { getNotebooklmPageState, getNotebooklmSummaryViaRpc, readNotebooklmSummaryFromPage, requireNotebooklmSession, } from './utils.js';
|
|
5
5
|
cli({
|
|
@@ -15,7 +15,7 @@ vi.mock('./utils.js', async () => {
|
|
|
15
15
|
requireNotebooklmSession: mockRequireNotebooklmSession,
|
|
16
16
|
};
|
|
17
17
|
});
|
|
18
|
-
import { getRegistry } from '
|
|
18
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
19
19
|
import './summary.js';
|
|
20
20
|
describe('notebooklm summary', () => {
|
|
21
21
|
const command = getRegistry().get('notebooklm/summary');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IPage } from '
|
|
1
|
+
import type { IPage } from '@jackwener/opencli/types';
|
|
2
2
|
import { type NotebooklmHistoryRow, type NotebooklmNotebookDetailRow, type NotebooklmNoteDetailRow, type NotebooklmNoteRow, type NotebooklmPageKind, type NotebooklmPageState, type NotebooklmRow, type NotebooklmSourceFulltextRow, type NotebooklmSourceGuideRow, type NotebooklmSourceRow, type NotebooklmSummaryRow } from './shared.js';
|
|
3
3
|
export { buildNotebooklmRpcBody, extractNotebooklmRpcResult, fetchNotebooklmInPage, getNotebooklmPageAuth, parseNotebooklmChunkedResponse, stripNotebooklmAntiXssi, } from './rpc.js';
|
|
4
4
|
export declare function parseNotebooklmIdFromUrl(url: string): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthRequiredError, CliError } from '
|
|
1
|
+
import { AuthRequiredError, CliError } from '@jackwener/opencli/errors';
|
|
2
2
|
import { NOTEBOOKLM_DOMAIN, NOTEBOOKLM_HOME_URL, } from './shared.js';
|
|
3
3
|
import { callNotebooklmRpc, getNotebooklmPageAuth, } from './rpc.js';
|
|
4
4
|
export { buildNotebooklmRpcBody, extractNotebooklmRpcResult, fetchNotebooklmInPage, getNotebooklmPageAuth, parseNotebooklmChunkedResponse, stripNotebooklmAntiXssi, } from './rpc.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const exportCommand: import("
|
|
1
|
+
export declare const exportCommand: import("@jackwener/opencli/registry").CliCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const favoritesCommand: import("
|
|
1
|
+
export declare const favoritesCommand: import("@jackwener/opencli/registry").CliCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const newCommand: import("
|
|
1
|
+
export declare const newCommand: import("@jackwener/opencli/registry").CliCommand;
|
package/dist/clis/notion/new.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const readCommand: import("
|
|
1
|
+
export declare const readCommand: import("@jackwener/opencli/registry").CliCommand;
|
package/dist/clis/notion/read.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const searchCommand: import("
|
|
1
|
+
export declare const searchCommand: import("@jackwener/opencli/registry").CliCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sidebarCommand: import("
|
|
1
|
+
export declare const sidebarCommand: import("@jackwener/opencli/registry").CliCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const statusCommand: import("
|
|
1
|
+
export declare const statusCommand: import("@jackwener/opencli/registry").CliCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const writeCommand: import("
|
|
1
|
+
export declare const writeCommand: import("@jackwener/opencli/registry").CliCommand;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ONES 旧版 Project API — 经 Browser Bridge 在已登录标签页内 fetch(携带 Cookie)。
|
|
3
3
|
* 文档:https://developer.ones.cn/zh-CN/docs/api/readme/
|
|
4
4
|
*/
|
|
5
|
-
import type { IPage } from '
|
|
5
|
+
import type { IPage } from '@jackwener/opencli/types';
|
|
6
6
|
export declare const API_PREFIX = "/project/api/project";
|
|
7
7
|
export declare function getOnesBaseUrl(): string;
|
|
8
8
|
export declare function onesApiUrl(apiPath: string): string;
|
package/dist/clis/ones/common.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ONES 旧版 Project API — 经 Browser Bridge 在已登录标签页内 fetch(携带 Cookie)。
|
|
3
3
|
* 文档:https://developer.ones.cn/zh-CN/docs/api/readme/
|
|
4
4
|
*/
|
|
5
|
-
import { CliError } from '
|
|
5
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
6
6
|
export const API_PREFIX = '/project/api/project';
|
|
7
7
|
export function getOnesBaseUrl() {
|
|
8
8
|
const u = process.env.ONES_BASE_URL?.trim().replace(/\/+$/, '');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* peek 列表只有轻量字段,用 batch tasks/info 补全 summary 等(ONES 文档 #7)
|
|
3
3
|
*/
|
|
4
|
-
import type { IPage } from '
|
|
4
|
+
import type { IPage } from '@jackwener/opencli/types';
|
|
5
5
|
export declare function enrichPeekEntriesWithDetails(page: IPage, team: string, entries: Record<string, unknown>[], skipGoto: boolean): Promise<Record<string, unknown>[]>;
|
package/dist/clis/ones/login.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { getOnesBaseUrl, onesFetchInPage } from './common.js';
|
|
4
4
|
cli({
|
|
5
5
|
site: 'ones',
|
package/dist/clis/ones/logout.js
CHANGED
package/dist/clis/ones/me.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { onesFetchInPage } from './common.js';
|
|
4
4
|
cli({
|
|
5
5
|
site: 'ones',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { gotoOnesHome, onesFetchInPage, resolveOnesUserUuid } from './common.js';
|
|
4
4
|
import { enrichPeekEntriesWithDetails } from './enrich-tasks.js';
|
|
5
5
|
import { resolveTaskListLabels } from './resolve-labels.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 把 status / project 的 uuid 解析为中文名(团队级接口各查一次或按批)
|
|
3
3
|
*/
|
|
4
|
-
import type { IPage } from '
|
|
4
|
+
import type { IPage } from '@jackwener/opencli/types';
|
|
5
5
|
export declare function loadTaskStatusLabels(page: IPage, team: string, skipGoto: boolean): Promise<Map<string, string>>;
|
|
6
6
|
export declare function loadProjectLabels(page: IPage, team: string, projectUuids: string[], skipGoto: boolean): Promise<Map<string, string>>;
|
|
7
7
|
export declare function resolveTaskListLabels(page: IPage, team: string, entries: Record<string, unknown>[], skipGoto: boolean): Promise<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ONES filters/peek 响应解析(tasks / my-tasks 共用)
|
|
3
3
|
*/
|
|
4
|
-
import { CliError } from '
|
|
4
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
5
5
|
/** ONES task 里 field_values 常为 [{ field_uuid, value }, ...] */
|
|
6
6
|
function pickTitleFromFieldValuesArray(fv) {
|
|
7
7
|
if (!Array.isArray(fv))
|
package/dist/clis/ones/task.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { onesFetchInPage } from './common.js';
|
|
4
4
|
import { formatStamp } from './task-helpers.js';
|
|
5
5
|
/**
|
package/dist/clis/ones/tasks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { gotoOnesHome, onesFetchInPage } from './common.js';
|
|
4
4
|
import { enrichPeekEntriesWithDetails } from './enrich-tasks.js';
|
|
5
5
|
import { resolveTaskListLabels } from './resolve-labels.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { onesFetchInPage } from './common.js';
|
|
4
4
|
cli({
|
|
5
5
|
site: 'ones',
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Log/backfill work hours. Project API paths vary by deployment,
|
|
3
3
|
* so we try common endpoints in sequence.
|
|
4
4
|
*/
|
|
5
|
-
import { cli, Strategy } from '
|
|
6
|
-
import { CliError } from '
|
|
5
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
6
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
7
7
|
import { gotoOnesHome, onesFetchInPageWithMeta, resolveOnesUserUuid, summarizeOnesError, } from './common.js';
|
|
8
8
|
import { hoursToOnesManhourRaw } from './task-helpers.js';
|
|
9
9
|
function summarizeOnesMutationBody(parsed, status) {
|
|
@@ -17,7 +17,7 @@ vi.mock('./utils.js', async () => {
|
|
|
17
17
|
parseYesNo: mockParseYesNo,
|
|
18
18
|
};
|
|
19
19
|
});
|
|
20
|
-
import { getRegistry } from '
|
|
20
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
21
21
|
import './submit.js';
|
|
22
22
|
import './review.js';
|
|
23
23
|
import './feedback.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { PAPERREVIEW_DOMAIN, ensureSuccess, parseYesNo, requestJson, summarizeFeedback, validateHelpfulness, } from './utils.js';
|
|
4
4
|
cli({
|
|
5
5
|
site: 'paperreview',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { PAPERREVIEW_DOMAIN, buildReviewUrl, ensureSuccess, requestJson, summarizeReview, } from './utils.js';
|
|
4
4
|
cli({
|
|
5
5
|
site: 'paperreview',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cli, Strategy } from '
|
|
2
|
-
import { CliError } from '
|
|
1
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
2
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
3
3
|
import { PAPERREVIEW_DOMAIN, ensureApiSuccess, ensureSuccess, normalizeVenue, readPdfFile, requestJson, summarizeSubmission, uploadPresignedPdf, } from './utils.js';
|
|
4
4
|
cli({
|
|
5
5
|
site: 'paperreview',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { CliError, getErrorMessage } from '
|
|
3
|
+
import { CliError, getErrorMessage } from '@jackwener/opencli/errors';
|
|
4
4
|
export const PAPERREVIEW_DOMAIN = 'paperreview.ai';
|
|
5
5
|
export const PAPERREVIEW_BASE_URL = `https://${PAPERREVIEW_DOMAIN}`;
|
|
6
6
|
export const MAX_PDF_BYTES = 10 * 1024 * 1024;
|
|
@@ -2,7 +2,7 @@ import * as fs from 'node:fs/promises';
|
|
|
2
2
|
import * as os from 'node:os';
|
|
3
3
|
import * as path from 'node:path';
|
|
4
4
|
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
5
|
-
import { CliError } from '
|
|
5
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
6
6
|
import { MAX_PDF_BYTES, buildReviewUrl, parseYesNo, readPdfFile, requestJson, validateHelpfulness, } from './utils.js';
|
|
7
7
|
describe('paperreview utils', () => {
|
|
8
8
|
beforeEach(() => {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as fs from 'node:fs';
|
|
8
8
|
import * as path from 'node:path';
|
|
9
|
-
import { cli, Strategy } from '
|
|
10
|
-
import { formatCookieHeader, httpDownload } from '
|
|
11
|
-
import { formatBytes } from '
|
|
12
|
-
import { CommandExecutionError, getErrorMessage } from '
|
|
9
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
10
|
+
import { formatCookieHeader, httpDownload } from '@jackwener/opencli/download';
|
|
11
|
+
import { formatBytes } from '@jackwener/opencli/download/progress';
|
|
12
|
+
import { CommandExecutionError, getErrorMessage } from '@jackwener/opencli/errors';
|
|
13
13
|
import { pixivFetch } from './utils.js';
|
|
14
14
|
cli({
|
|
15
15
|
site: 'pixiv',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
2
|
-
import { getRegistry } from '
|
|
3
|
-
import { AuthRequiredError, CommandExecutionError } from '
|
|
2
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
3
|
+
import { AuthRequiredError, CommandExecutionError } from '@jackwener/opencli/errors';
|
|
4
4
|
import { createPageMock } from './test-utils.js';
|
|
5
5
|
// Mock download dependencies before importing the adapter
|
|
6
6
|
const { mockHttpDownload, mockMkdirSync } = vi.hoisted(() => ({
|
|
7
7
|
mockHttpDownload: vi.fn(),
|
|
8
8
|
mockMkdirSync: vi.fn(),
|
|
9
9
|
}));
|
|
10
|
-
vi.mock('
|
|
10
|
+
vi.mock('@jackwener/opencli/download', () => ({
|
|
11
11
|
formatCookieHeader: vi.fn().mockReturnValue('cookie=value'),
|
|
12
12
|
httpDownload: mockHttpDownload,
|
|
13
13
|
}));
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* 1. Fetch all illust IDs from the user's profile
|
|
6
6
|
* 2. Batch-fetch details for the most recent ones (max 48 IDs per request)
|
|
7
7
|
*/
|
|
8
|
-
import { cli, Strategy } from '
|
|
9
|
-
import { CommandExecutionError } from '
|
|
8
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
9
|
+
import { CommandExecutionError } from '@jackwener/opencli/errors';
|
|
10
10
|
import { pixivFetch, BATCH_SIZE } from './utils.js';
|
|
11
11
|
cli({
|
|
12
12
|
site: 'pixiv',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { beforeAll, describe, expect, it } from 'vitest';
|
|
2
|
-
import { getRegistry } from '
|
|
3
|
-
import { AuthRequiredError, CommandExecutionError } from '
|
|
2
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
3
|
+
import { AuthRequiredError, CommandExecutionError } from '@jackwener/opencli/errors';
|
|
4
4
|
import { createPageMock } from './test-utils.js';
|
|
5
5
|
import './illusts.js';
|
|
6
6
|
let cmd;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Uses the internal Ajax search API with browser cookies for authentication.
|
|
5
5
|
*/
|
|
6
|
-
import { cli, Strategy } from '
|
|
6
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
7
7
|
import { pixivFetch } from './utils.js';
|
|
8
8
|
cli({
|
|
9
9
|
site: 'pixiv',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { beforeAll, describe, expect, it } from 'vitest';
|
|
2
|
-
import { getRegistry } from '
|
|
3
|
-
import { AuthRequiredError, CommandExecutionError } from '
|
|
2
|
+
import { getRegistry } from '@jackwener/opencli/registry';
|
|
3
|
+
import { AuthRequiredError, CommandExecutionError } from '@jackwener/opencli/errors';
|
|
4
4
|
import { createPageMock } from './test-utils.js';
|
|
5
5
|
import './search.js';
|
|
6
6
|
let cmd;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* On failure the HTTP status code is used to distinguish auth (401/403),
|
|
6
6
|
* not-found (404), and other errors.
|
|
7
7
|
*/
|
|
8
|
-
import type { IPage } from '
|
|
8
|
+
import type { IPage } from '@jackwener/opencli/types';
|
|
9
9
|
/**
|
|
10
10
|
* Navigate to Pixiv (to attach cookies) then fetch a Pixiv Ajax API endpoint.
|
|
11
11
|
*
|
package/dist/clis/pixiv/utils.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* On failure the HTTP status code is used to distinguish auth (401/403),
|
|
6
6
|
* not-found (404), and other errors.
|
|
7
7
|
*/
|
|
8
|
-
import { AuthRequiredError, CommandExecutionError } from '
|
|
8
|
+
import { AuthRequiredError, CommandExecutionError } from '@jackwener/opencli/errors';
|
|
9
9
|
const PIXIV_DOMAIN = 'www.pixiv.net';
|
|
10
10
|
/**
|
|
11
11
|
* Navigate to Pixiv (to attach cookies) then fetch a Pixiv Ajax API endpoint.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Navigates to a Product Hunt category page and scrapes the top-rated products.
|
|
5
5
|
* Shows all-time best products for a category (ranked by review score, not daily votes).
|
|
6
6
|
*/
|
|
7
|
-
import { cli, Strategy } from '
|
|
8
|
-
import { CliError } from '
|
|
7
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
8
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
9
9
|
import { PRODUCTHUNT_CATEGORY_SLUGS } from './utils.js';
|
|
10
10
|
cli({
|
|
11
11
|
site: 'producthunt',
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Navigates to the Product Hunt homepage and scrapes rendered product cards.
|
|
5
5
|
*/
|
|
6
|
-
import { cli, Strategy } from '
|
|
7
|
-
import { CliError } from '
|
|
6
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
7
|
+
import { CliError } from '@jackwener/opencli/errors';
|
|
8
8
|
import { pickVoteCount } from './utils.js';
|
|
9
9
|
cli({
|
|
10
10
|
site: 'producthunt',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Product Hunt latest posts — public Atom feed, no browser needed.
|
|
3
3
|
*/
|
|
4
|
-
import { cli, Strategy } from '
|
|
4
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
5
5
|
import { fetchFeed, PRODUCTHUNT_CATEGORY_SLUGS } from './utils.js';
|
|
6
6
|
cli({
|
|
7
7
|
site: 'producthunt',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Shows the most recently published day's products (Product Hunt runs on
|
|
5
5
|
* Pacific Time; the feed date may differ from UTC local date by up to 1 day).
|
|
6
6
|
*/
|
|
7
|
-
import { cli, Strategy } from '
|
|
7
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
8
8
|
import { fetchFeed } from './utils.js';
|
|
9
9
|
cli({
|
|
10
10
|
site: 'producthunt',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommandExecutionError } from '
|
|
2
|
-
import { cli, Strategy } from '
|
|
1
|
+
import { CommandExecutionError } from '@jackwener/opencli/errors';
|
|
2
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
3
3
|
cli({
|
|
4
4
|
site: 'reddit',
|
|
5
5
|
name: 'comment',
|
package/dist/clis/reddit/read.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* - Configurable depth and replies-per-level
|
|
7
7
|
* - Indented output showing conversation threads
|
|
8
8
|
*/
|
|
9
|
-
import { cli, Strategy } from '
|
|
10
|
-
import { CommandExecutionError } from '
|
|
9
|
+
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
10
|
+
import { CommandExecutionError } from '@jackwener/opencli/errors';
|
|
11
11
|
cli({
|
|
12
12
|
site: 'reddit',
|
|
13
13
|
name: 'read',
|