@huyuan-ai/cli 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dist/cli/program.js +2 -2
- package/dist/cli/program.js.map +1 -1
- package/dist/constants.d.ts +15 -4
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +32 -10
- package/dist/constants.js.map +1 -1
- package/dist/core/gateway-token.d.ts +5 -0
- package/dist/core/gateway-token.d.ts.map +1 -0
- package/dist/core/gateway-token.js +53 -0
- package/dist/core/gateway-token.js.map +1 -0
- package/dist/core/huyuan-skill.d.ts +5 -0
- package/dist/core/huyuan-skill.d.ts.map +1 -0
- package/dist/core/huyuan-skill.js +80 -0
- package/dist/core/huyuan-skill.js.map +1 -0
- package/dist/core/install.d.ts.map +1 -1
- package/dist/core/install.js +4 -47
- package/dist/core/install.js.map +1 -1
- package/dist/core/skills-hub.d.ts +22 -0
- package/dist/core/skills-hub.d.ts.map +1 -0
- package/dist/core/skills-hub.js +131 -0
- package/dist/core/skills-hub.js.map +1 -0
- package/dist/integrations/opencli/bootstrap.js +2 -2
- package/dist/integrations/opencli/bootstrap.js.map +1 -1
- package/dist/integrations/opencli/commands/doubao-ask-with-citations.js +1 -1
- package/dist/integrations/opencli/commands/doubao-ask-with-citations.js.map +1 -1
- package/dist/integrations/opencli/execute-registry-command.js +3 -3
- package/dist/integrations/opencli/execute-registry-command.js.map +1 -1
- package/dist/sites/huyuan-skill/check.d.ts +2 -0
- package/dist/sites/huyuan-skill/check.d.ts.map +1 -0
- package/dist/sites/huyuan-skill/check.js +103 -0
- package/dist/sites/huyuan-skill/check.js.map +1 -0
- package/dist/sites/huyuan-skill/install-from-hub.d.ts +3 -0
- package/dist/sites/huyuan-skill/install-from-hub.d.ts.map +1 -0
- package/dist/sites/huyuan-skill/install-from-hub.js +60 -0
- package/dist/sites/huyuan-skill/install-from-hub.js.map +1 -0
- package/dist/sites/huyuan-skill/list.d.ts +2 -0
- package/dist/sites/huyuan-skill/list.d.ts.map +1 -0
- package/dist/sites/huyuan-skill/list.js +44 -0
- package/dist/sites/huyuan-skill/list.js.map +1 -0
- package/dist/sites/huyuan-skill/register.d.ts +4 -0
- package/dist/sites/huyuan-skill/register.d.ts.map +1 -0
- package/dist/sites/huyuan-skill/register.js +69 -0
- package/dist/sites/huyuan-skill/register.js.map +1 -0
- package/dist/sites/huyuan-skill/search.d.ts +2 -0
- package/dist/sites/huyuan-skill/search.d.ts.map +1 -0
- package/dist/sites/huyuan-skill/search.js +45 -0
- package/dist/sites/huyuan-skill/search.js.map +1 -0
- package/dist/sites/huyuan-skill/skill-md-version.d.ts +11 -0
- package/dist/sites/huyuan-skill/skill-md-version.d.ts.map +1 -0
- package/dist/sites/huyuan-skill/skill-md-version.js +74 -0
- package/dist/sites/huyuan-skill/skill-md-version.js.map +1 -0
- package/dist/sites/huyuan-skill/skills-hub.d.ts +24 -0
- package/dist/sites/huyuan-skill/skills-hub.d.ts.map +1 -0
- package/dist/sites/huyuan-skill/skills-hub.js +131 -0
- package/dist/sites/huyuan-skill/skills-hub.js.map +1 -0
- package/dist/utils/install-root.d.ts +5 -0
- package/dist/utils/install-root.d.ts.map +1 -0
- package/dist/utils/install-root.js +13 -0
- package/dist/utils/install-root.js.map +1 -0
- package/package.json +1 -1
- package/vendor/opencli/dist/cli-manifest.json +546 -2
- package/vendor/opencli/dist/clis/1688/item.js +3 -3
- package/vendor/opencli/dist/clis/1688/search.js +2 -2
- package/vendor/opencli/dist/clis/1688/shared.d.ts +1 -1
- package/vendor/opencli/dist/clis/1688/shared.js +1 -1
- package/vendor/opencli/dist/clis/1688/store.js +2 -2
- package/vendor/opencli/dist/clis/36kr/article.js +2 -2
- package/vendor/opencli/dist/clis/36kr/hot.js +12 -6
- package/vendor/opencli/dist/clis/36kr/news.js +1 -1
- package/vendor/opencli/dist/clis/36kr/search.js +12 -6
- package/vendor/opencli/dist/clis/_shared/desktop-commands.d.ts +5 -5
- package/vendor/opencli/dist/clis/_shared/desktop-commands.js +1 -1
- package/vendor/opencli/dist/clis/amazon/bestsellers.js +1 -1
- package/vendor/opencli/dist/clis/amazon/discussion.js +2 -2
- package/vendor/opencli/dist/clis/amazon/movers-shakers.js +1 -1
- package/vendor/opencli/dist/clis/amazon/new-releases.js +1 -1
- package/vendor/opencli/dist/clis/amazon/offer.js +2 -2
- package/vendor/opencli/dist/clis/amazon/product.js +2 -2
- package/vendor/opencli/dist/clis/amazon/rankings.d.ts +1 -1
- package/vendor/opencli/dist/clis/amazon/rankings.js +2 -2
- package/vendor/opencli/dist/clis/amazon/search.js +2 -2
- package/vendor/opencli/dist/clis/amazon/shared.d.ts +1 -1
- package/vendor/opencli/dist/clis/amazon/shared.js +1 -1
- package/vendor/opencli/dist/clis/antigravity/dump.d.ts +1 -1
- package/vendor/opencli/dist/clis/antigravity/dump.js +1 -1
- package/vendor/opencli/dist/clis/antigravity/extract-code.d.ts +1 -1
- package/vendor/opencli/dist/clis/antigravity/extract-code.js +1 -1
- package/vendor/opencli/dist/clis/antigravity/model.d.ts +1 -1
- package/vendor/opencli/dist/clis/antigravity/model.js +1 -1
- package/vendor/opencli/dist/clis/antigravity/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/antigravity/new.js +1 -1
- package/vendor/opencli/dist/clis/antigravity/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/antigravity/read.js +1 -1
- package/vendor/opencli/dist/clis/antigravity/send.d.ts +1 -1
- package/vendor/opencli/dist/clis/antigravity/send.js +1 -1
- package/vendor/opencli/dist/clis/antigravity/serve.js +3 -3
- package/vendor/opencli/dist/clis/antigravity/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/antigravity/status.js +1 -1
- package/vendor/opencli/dist/clis/antigravity/watch.d.ts +1 -1
- package/vendor/opencli/dist/clis/antigravity/watch.js +1 -1
- package/vendor/opencli/dist/clis/apple-podcasts/commands.test.js +1 -1
- package/vendor/opencli/dist/clis/apple-podcasts/episodes.js +2 -2
- package/vendor/opencli/dist/clis/apple-podcasts/search.js +2 -2
- package/vendor/opencli/dist/clis/apple-podcasts/top.js +2 -2
- package/vendor/opencli/dist/clis/apple-podcasts/utils.js +1 -1
- package/vendor/opencli/dist/clis/arxiv/paper.js +2 -2
- package/vendor/opencli/dist/clis/arxiv/search.js +2 -2
- package/vendor/opencli/dist/clis/arxiv/utils.js +1 -1
- package/vendor/opencli/dist/clis/band/bands.js +2 -2
- package/vendor/opencli/dist/clis/band/mentions.js +2 -2
- package/vendor/opencli/dist/clis/band/post.js +4 -4
- package/vendor/opencli/dist/clis/band/posts.js +2 -2
- package/vendor/opencli/dist/clis/barchart/flow.js +1 -1
- package/vendor/opencli/dist/clis/barchart/greeks.js +1 -1
- package/vendor/opencli/dist/clis/barchart/options.js +1 -1
- package/vendor/opencli/dist/clis/barchart/quote.js +1 -1
- package/vendor/opencli/dist/clis/bbc/news.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/comments.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/comments.test.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/download.js +3 -3
- package/vendor/opencli/dist/clis/bilibili/dynamic.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/dynamic.test.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/favorite.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/feed.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/following.js +2 -2
- package/vendor/opencli/dist/clis/bilibili/history.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/me.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/ranking.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/search.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/subtitle.js +2 -2
- package/vendor/opencli/dist/clis/bilibili/subtitle.test.js +2 -2
- package/vendor/opencli/dist/clis/bilibili/user-videos.js +1 -1
- package/vendor/opencli/dist/clis/bilibili/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/bilibili/utils.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/businessweek.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/economics.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/feeds.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/industries.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/main.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/markets.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/news.js +2 -2
- package/vendor/opencli/dist/clis/bloomberg/opinions.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/politics.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/tech.js +1 -1
- package/vendor/opencli/dist/clis/bloomberg/utils.js +1 -1
- package/vendor/opencli/dist/clis/boss/batchgreet.js +1 -1
- package/vendor/opencli/dist/clis/boss/chatlist.js +1 -1
- package/vendor/opencli/dist/clis/boss/chatmsg.js +1 -1
- package/vendor/opencli/dist/clis/boss/detail.js +1 -1
- package/vendor/opencli/dist/clis/boss/exchange.js +1 -1
- package/vendor/opencli/dist/clis/boss/greet.js +1 -1
- package/vendor/opencli/dist/clis/boss/invite.js +1 -1
- package/vendor/opencli/dist/clis/boss/joblist.js +1 -1
- package/vendor/opencli/dist/clis/boss/mark.js +2 -2
- package/vendor/opencli/dist/clis/boss/recommend.js +1 -1
- package/vendor/opencli/dist/clis/boss/resume.js +1 -1
- package/vendor/opencli/dist/clis/boss/search.js +1 -1
- package/vendor/opencli/dist/clis/boss/send.js +2 -2
- package/vendor/opencli/dist/clis/boss/stats.js +1 -1
- package/vendor/opencli/dist/clis/boss/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/chaoxing/assignments.js +2 -2
- package/vendor/opencli/dist/clis/chaoxing/exams.js +1 -1
- package/vendor/opencli/dist/clis/chaoxing/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatgpt/ask.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatgpt/ask.js +2 -2
- package/vendor/opencli/dist/clis/chatgpt/model.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatgpt/model.js +2 -2
- package/vendor/opencli/dist/clis/chatgpt/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatgpt/new.js +2 -2
- package/vendor/opencli/dist/clis/chatgpt/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatgpt/read.js +2 -2
- package/vendor/opencli/dist/clis/chatgpt/send.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatgpt/send.js +2 -2
- package/vendor/opencli/dist/clis/chatgpt/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatgpt/status.js +2 -2
- package/vendor/opencli/dist/clis/chatwise/ask.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatwise/ask.js +2 -2
- package/vendor/opencli/dist/clis/chatwise/export.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatwise/export.js +1 -1
- package/vendor/opencli/dist/clis/chatwise/history.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatwise/history.js +1 -1
- package/vendor/opencli/dist/clis/chatwise/model.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatwise/model.js +2 -2
- package/vendor/opencli/dist/clis/chatwise/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatwise/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatwise/read.js +1 -1
- package/vendor/opencli/dist/clis/chatwise/screenshot.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatwise/send.d.ts +1 -1
- package/vendor/opencli/dist/clis/chatwise/send.js +2 -2
- package/vendor/opencli/dist/clis/chatwise/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/ask.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/ask.js +2 -2
- package/vendor/opencli/dist/clis/codex/dump.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/export.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/export.js +1 -1
- package/vendor/opencli/dist/clis/codex/extract-diff.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/extract-diff.js +1 -1
- package/vendor/opencli/dist/clis/codex/history.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/history.js +1 -1
- package/vendor/opencli/dist/clis/codex/model.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/model.js +1 -1
- package/vendor/opencli/dist/clis/codex/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/read.js +1 -1
- package/vendor/opencli/dist/clis/codex/screenshot.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/send.d.ts +1 -1
- package/vendor/opencli/dist/clis/codex/send.js +2 -2
- package/vendor/opencli/dist/clis/codex/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/coupang/add-to-cart.js +1 -1
- package/vendor/opencli/dist/clis/coupang/search.js +1 -1
- package/vendor/opencli/dist/clis/ctrip/search.js +2 -2
- package/vendor/opencli/dist/clis/ctrip/search.test.js +1 -1
- package/vendor/opencli/dist/clis/cursor/ask.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/ask.js +2 -2
- package/vendor/opencli/dist/clis/cursor/composer.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/composer.js +2 -2
- package/vendor/opencli/dist/clis/cursor/dump.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/export.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/export.js +1 -1
- package/vendor/opencli/dist/clis/cursor/extract-code.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/extract-code.js +1 -1
- package/vendor/opencli/dist/clis/cursor/history.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/history.js +1 -1
- package/vendor/opencli/dist/clis/cursor/model.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/model.js +1 -1
- package/vendor/opencli/dist/clis/cursor/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/read.js +2 -2
- package/vendor/opencli/dist/clis/cursor/screenshot.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/send.d.ts +1 -1
- package/vendor/opencli/dist/clis/cursor/send.js +2 -2
- package/vendor/opencli/dist/clis/cursor/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/discord-app/channels.d.ts +1 -1
- package/vendor/opencli/dist/clis/discord-app/channels.js +1 -1
- package/vendor/opencli/dist/clis/discord-app/members.d.ts +1 -1
- package/vendor/opencli/dist/clis/discord-app/members.js +1 -1
- package/vendor/opencli/dist/clis/discord-app/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/discord-app/read.js +1 -1
- package/vendor/opencli/dist/clis/discord-app/search.d.ts +1 -1
- package/vendor/opencli/dist/clis/discord-app/search.js +1 -1
- package/vendor/opencli/dist/clis/discord-app/send.d.ts +1 -1
- package/vendor/opencli/dist/clis/discord-app/send.js +1 -1
- package/vendor/opencli/dist/clis/discord-app/servers.d.ts +1 -1
- package/vendor/opencli/dist/clis/discord-app/servers.js +1 -1
- package/vendor/opencli/dist/clis/discord-app/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/discord-app/status.js +1 -1
- package/vendor/opencli/dist/clis/douban/book-hot.js +1 -1
- package/vendor/opencli/dist/clis/douban/download.js +4 -4
- package/vendor/opencli/dist/clis/douban/download.test.js +3 -3
- package/vendor/opencli/dist/clis/douban/marks.js +1 -1
- package/vendor/opencli/dist/clis/douban/movie-hot.js +1 -1
- package/vendor/opencli/dist/clis/douban/photos.js +1 -1
- package/vendor/opencli/dist/clis/douban/reviews.js +1 -1
- package/vendor/opencli/dist/clis/douban/search.js +1 -1
- package/vendor/opencli/dist/clis/douban/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/douban/utils.js +1 -1
- package/vendor/opencli/dist/clis/doubao/ask.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/ask.js +1 -1
- package/vendor/opencli/dist/clis/doubao/detail.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/detail.js +1 -1
- package/vendor/opencli/dist/clis/doubao/detail.test.js +1 -1
- package/vendor/opencli/dist/clis/doubao/history.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/history.js +1 -1
- package/vendor/opencli/dist/clis/doubao/history.test.js +1 -1
- package/vendor/opencli/dist/clis/doubao/meeting-summary.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/meeting-summary.js +1 -1
- package/vendor/opencli/dist/clis/doubao/meeting-transcript.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/meeting-transcript.js +1 -1
- package/vendor/opencli/dist/clis/doubao/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/new.js +1 -1
- package/vendor/opencli/dist/clis/doubao/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/read.js +1 -1
- package/vendor/opencli/dist/clis/doubao/send.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/send.js +1 -1
- package/vendor/opencli/dist/clis/doubao/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao/status.js +1 -1
- package/vendor/opencli/dist/clis/doubao/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao-app/ask.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao-app/ask.js +1 -1
- package/vendor/opencli/dist/clis/doubao-app/dump.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao-app/dump.js +1 -1
- package/vendor/opencli/dist/clis/doubao-app/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao-app/new.js +1 -1
- package/vendor/opencli/dist/clis/doubao-app/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao-app/read.js +1 -1
- package/vendor/opencli/dist/clis/doubao-app/screenshot.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao-app/screenshot.js +1 -1
- package/vendor/opencli/dist/clis/doubao-app/send.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao-app/send.js +1 -1
- package/vendor/opencli/dist/clis/doubao-app/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/doubao-app/status.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/browser-fetch.d.ts +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/browser-fetch.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/imagex-upload.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/imagex-upload.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/public-api.d.ts +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/sts2.d.ts +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/sts2.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/sts2.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/tos-upload-short-read.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/tos-upload.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/transcode.d.ts +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/transcode.js +1 -1
- package/vendor/opencli/dist/clis/douyin/_shared/transcode.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/activities.js +1 -1
- package/vendor/opencli/dist/clis/douyin/activities.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/collections.js +1 -1
- package/vendor/opencli/dist/clis/douyin/collections.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/delete.js +1 -1
- package/vendor/opencli/dist/clis/douyin/delete.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/draft.js +2 -2
- package/vendor/opencli/dist/clis/douyin/draft.test.js +2 -2
- package/vendor/opencli/dist/clis/douyin/drafts.js +1 -1
- package/vendor/opencli/dist/clis/douyin/drafts.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/hashtag.js +2 -2
- package/vendor/opencli/dist/clis/douyin/hashtag.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/location.js +1 -1
- package/vendor/opencli/dist/clis/douyin/location.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/profile.js +2 -2
- package/vendor/opencli/dist/clis/douyin/profile.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/publish.js +2 -2
- package/vendor/opencli/dist/clis/douyin/publish.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/stats.js +1 -1
- package/vendor/opencli/dist/clis/douyin/stats.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/update.js +2 -2
- package/vendor/opencli/dist/clis/douyin/update.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/user-videos.js +1 -1
- package/vendor/opencli/dist/clis/douyin/user-videos.test.js +1 -1
- package/vendor/opencli/dist/clis/douyin/videos.js +1 -1
- package/vendor/opencli/dist/clis/douyin/videos.test.js +1 -1
- package/vendor/opencli/dist/clis/facebook/search.test.js +1 -1
- package/vendor/opencli/dist/clis/gemini/ask.d.ts +1 -1
- package/vendor/opencli/dist/clis/gemini/ask.js +1 -1
- package/vendor/opencli/dist/clis/gemini/deep-research-result.d.ts +1 -0
- package/vendor/opencli/dist/clis/gemini/deep-research-result.js +91 -0
- package/vendor/opencli/dist/clis/gemini/deep-research-result.test.js +154 -0
- package/vendor/opencli/dist/clis/gemini/deep-research.d.ts +1 -0
- package/vendor/opencli/dist/clis/gemini/deep-research.js +98 -0
- package/vendor/opencli/dist/clis/gemini/deep-research.test.js +184 -0
- package/vendor/opencli/dist/clis/gemini/image.d.ts +1 -1
- package/vendor/opencli/dist/clis/gemini/image.js +2 -2
- package/vendor/opencli/dist/clis/gemini/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/gemini/new.js +1 -1
- package/vendor/opencli/dist/clis/gemini/reply-state.test.js +30 -0
- package/vendor/opencli/dist/clis/gemini/utils.d.ts +30 -1
- package/vendor/opencli/dist/clis/gemini/utils.js +1014 -2
- package/vendor/opencli/dist/clis/gemini/utils.test.js +21 -1
- package/vendor/opencli/dist/clis/google/news.js +2 -2
- package/vendor/opencli/dist/clis/google/search.js +2 -2
- package/vendor/opencli/dist/clis/google/suggest.js +2 -2
- package/vendor/opencli/dist/clis/google/trends.js +2 -2
- package/vendor/opencli/dist/clis/grok/ask.d.ts +2 -2
- package/vendor/opencli/dist/clis/grok/ask.js +1 -1
- package/vendor/opencli/dist/clis/hf/top.js +2 -2
- package/vendor/opencli/dist/clis/hupu/detail.js +1 -1
- package/vendor/opencli/dist/clis/hupu/like.js +2 -2
- package/vendor/opencli/dist/clis/hupu/mentions.js +159 -0
- package/vendor/opencli/dist/clis/hupu/reply.js +2 -2
- package/vendor/opencli/dist/clis/hupu/search.js +1 -1
- package/vendor/opencli/dist/clis/hupu/unlike.js +2 -2
- package/vendor/opencli/dist/clis/hupu/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/hupu/utils.js +1 -1
- package/vendor/opencli/dist/clis/imdb/person.js +2 -2
- package/vendor/opencli/dist/clis/imdb/reviews.js +2 -2
- package/vendor/opencli/dist/clis/imdb/search.js +2 -2
- package/vendor/opencli/dist/clis/imdb/title.js +2 -2
- package/vendor/opencli/dist/clis/imdb/top.js +2 -2
- package/vendor/opencli/dist/clis/imdb/trending.js +2 -2
- package/vendor/opencli/dist/clis/imdb/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/imdb/utils.js +1 -1
- package/vendor/opencli/dist/clis/instagram/_shared/private-publish.d.ts +1 -1
- package/vendor/opencli/dist/clis/instagram/_shared/private-publish.js +1 -1
- package/vendor/opencli/dist/clis/instagram/_shared/protocol-capture.d.ts +1 -1
- package/vendor/opencli/dist/clis/instagram/_shared/runtime-info.d.ts +1 -1
- package/vendor/opencli/dist/clis/instagram/download.js +3 -3
- package/vendor/opencli/dist/clis/instagram/download.test.js +4 -4
- package/vendor/opencli/dist/clis/instagram/note.js +2 -2
- package/vendor/opencli/dist/clis/instagram/note.test.js +2 -2
- package/vendor/opencli/dist/clis/instagram/post.js +2 -2
- package/vendor/opencli/dist/clis/instagram/post.test.js +2 -2
- package/vendor/opencli/dist/clis/instagram/reel.js +3 -3
- package/vendor/opencli/dist/clis/instagram/reel.test.js +2 -2
- package/vendor/opencli/dist/clis/instagram/story.js +2 -2
- package/vendor/opencli/dist/clis/instagram/story.test.js +2 -2
- package/vendor/opencli/dist/clis/jd/item.js +1 -1
- package/vendor/opencli/dist/clis/jd/item.test.js +1 -1
- package/vendor/opencli/dist/clis/jike/comment.js +1 -1
- package/vendor/opencli/dist/clis/jike/create.js +1 -1
- package/vendor/opencli/dist/clis/jike/feed.js +1 -1
- package/vendor/opencli/dist/clis/jike/like.js +1 -1
- package/vendor/opencli/dist/clis/jike/notifications.js +1 -1
- package/vendor/opencli/dist/clis/jike/repost.js +1 -1
- package/vendor/opencli/dist/clis/jike/search.js +1 -1
- package/vendor/opencli/dist/clis/lesswrong/_helpers.d.ts +15 -0
- package/vendor/opencli/dist/clis/lesswrong/_helpers.js +75 -0
- package/vendor/opencli/dist/clis/lesswrong/comments.js +64 -0
- package/vendor/opencli/dist/clis/lesswrong/curated.js +30 -0
- package/vendor/opencli/dist/clis/lesswrong/frontpage.js +30 -0
- package/vendor/opencli/dist/clis/lesswrong/new.js +30 -0
- package/vendor/opencli/dist/clis/lesswrong/read.js +45 -0
- package/vendor/opencli/dist/clis/lesswrong/sequences.js +27 -0
- package/vendor/opencli/dist/clis/lesswrong/shortform.js +30 -0
- package/vendor/opencli/dist/clis/lesswrong/tag.js +45 -0
- package/vendor/opencli/dist/clis/lesswrong/tags.js +27 -0
- package/vendor/opencli/dist/clis/lesswrong/top-month.js +30 -0
- package/vendor/opencli/dist/clis/lesswrong/top-week.js +30 -0
- package/vendor/opencli/dist/clis/lesswrong/top-year.js +30 -0
- package/vendor/opencli/dist/clis/lesswrong/top.js +30 -0
- package/vendor/opencli/dist/clis/lesswrong/user-posts.js +41 -0
- package/vendor/opencli/dist/clis/lesswrong/user.js +44 -0
- package/vendor/opencli/dist/clis/linkedin/search.js +2 -2
- package/vendor/opencli/dist/clis/linkedin/timeline.js +2 -2
- package/vendor/opencli/dist/clis/linkedin/timeline.test.js +1 -1
- package/vendor/opencli/dist/clis/linux-do/category.js +1 -1
- package/vendor/opencli/dist/clis/linux-do/feed.d.ts +2 -2
- package/vendor/opencli/dist/clis/linux-do/feed.js +2 -2
- package/vendor/opencli/dist/clis/linux-do/hot.js +1 -1
- package/vendor/opencli/dist/clis/linux-do/latest.js +1 -1
- package/vendor/opencli/dist/clis/medium/feed.js +1 -1
- package/vendor/opencli/dist/clis/medium/search.js +1 -1
- package/vendor/opencli/dist/clis/medium/user.js +1 -1
- package/vendor/opencli/dist/clis/medium/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/medium/utils.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/compat.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/current.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/get.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/history.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/history.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/list.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/note-list.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/note-list.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/notes-get.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/notes-get.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/open.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/open.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/rpc.d.ts +1 -1
- package/vendor/opencli/dist/clis/notebooklm/rpc.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/rpc.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/source-fulltext.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/source-fulltext.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/source-get.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/source-get.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/source-guide.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/source-guide.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/source-list.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/status.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/summary.js +2 -2
- package/vendor/opencli/dist/clis/notebooklm/summary.test.js +1 -1
- package/vendor/opencli/dist/clis/notebooklm/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/notebooklm/utils.js +1 -1
- package/vendor/opencli/dist/clis/notion/export.d.ts +1 -1
- package/vendor/opencli/dist/clis/notion/export.js +1 -1
- package/vendor/opencli/dist/clis/notion/favorites.d.ts +1 -1
- package/vendor/opencli/dist/clis/notion/favorites.js +1 -1
- package/vendor/opencli/dist/clis/notion/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/notion/new.js +1 -1
- package/vendor/opencli/dist/clis/notion/read.d.ts +1 -1
- package/vendor/opencli/dist/clis/notion/read.js +1 -1
- package/vendor/opencli/dist/clis/notion/search.d.ts +1 -1
- package/vendor/opencli/dist/clis/notion/search.js +1 -1
- package/vendor/opencli/dist/clis/notion/sidebar.d.ts +1 -1
- package/vendor/opencli/dist/clis/notion/sidebar.js +1 -1
- package/vendor/opencli/dist/clis/notion/status.d.ts +1 -1
- package/vendor/opencli/dist/clis/notion/status.js +1 -1
- package/vendor/opencli/dist/clis/notion/write.d.ts +1 -1
- package/vendor/opencli/dist/clis/notion/write.js +1 -1
- package/vendor/opencli/dist/clis/ones/common.d.ts +1 -1
- package/vendor/opencli/dist/clis/ones/common.js +1 -1
- package/vendor/opencli/dist/clis/ones/enrich-tasks.d.ts +1 -1
- package/vendor/opencli/dist/clis/ones/login.js +2 -2
- package/vendor/opencli/dist/clis/ones/logout.js +1 -1
- package/vendor/opencli/dist/clis/ones/me.js +2 -2
- package/vendor/opencli/dist/clis/ones/my-tasks.js +2 -2
- package/vendor/opencli/dist/clis/ones/resolve-labels.d.ts +1 -1
- package/vendor/opencli/dist/clis/ones/task-helpers.js +1 -1
- package/vendor/opencli/dist/clis/ones/task.js +2 -2
- package/vendor/opencli/dist/clis/ones/tasks.js +2 -2
- package/vendor/opencli/dist/clis/ones/token-info.js +2 -2
- package/vendor/opencli/dist/clis/ones/worklog.js +2 -2
- package/vendor/opencli/dist/clis/paperreview/commands.test.js +1 -1
- package/vendor/opencli/dist/clis/paperreview/feedback.js +2 -2
- package/vendor/opencli/dist/clis/paperreview/review.js +2 -2
- package/vendor/opencli/dist/clis/paperreview/submit.js +2 -2
- package/vendor/opencli/dist/clis/paperreview/utils.js +1 -1
- package/vendor/opencli/dist/clis/paperreview/utils.test.js +1 -1
- package/vendor/opencli/dist/clis/pixiv/download.js +4 -4
- package/vendor/opencli/dist/clis/pixiv/download.test.js +3 -3
- package/vendor/opencli/dist/clis/pixiv/illusts.js +2 -2
- package/vendor/opencli/dist/clis/pixiv/illusts.test.js +2 -2
- package/vendor/opencli/dist/clis/pixiv/search.js +1 -1
- package/vendor/opencli/dist/clis/pixiv/search.test.js +2 -2
- package/vendor/opencli/dist/clis/pixiv/test-utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/pixiv/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/pixiv/utils.js +1 -1
- package/vendor/opencli/dist/clis/producthunt/browse.js +2 -2
- package/vendor/opencli/dist/clis/producthunt/hot.js +2 -2
- package/vendor/opencli/dist/clis/producthunt/posts.js +1 -1
- package/vendor/opencli/dist/clis/producthunt/today.js +1 -1
- package/vendor/opencli/dist/clis/reddit/comment.js +2 -2
- package/vendor/opencli/dist/clis/reddit/read.js +2 -2
- package/vendor/opencli/dist/clis/reddit/read.test.js +1 -1
- package/vendor/opencli/dist/clis/reddit/save.js +2 -2
- package/vendor/opencli/dist/clis/reddit/saved.js +2 -2
- package/vendor/opencli/dist/clis/reddit/subscribe.js +2 -2
- package/vendor/opencli/dist/clis/reddit/upvote.js +2 -2
- package/vendor/opencli/dist/clis/reddit/upvoted.js +2 -2
- package/vendor/opencli/dist/clis/reuters/search.js +1 -1
- package/vendor/opencli/dist/clis/sinablog/article.js +1 -1
- package/vendor/opencli/dist/clis/sinablog/hot.js +1 -1
- package/vendor/opencli/dist/clis/sinablog/search.js +1 -1
- package/vendor/opencli/dist/clis/sinablog/user.js +1 -1
- package/vendor/opencli/dist/clis/sinablog/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/sinafinance/news.js +2 -2
- package/vendor/opencli/dist/clis/sinafinance/rolling-news.js +1 -1
- package/vendor/opencli/dist/clis/sinafinance/stock-rank.js +1 -1
- package/vendor/opencli/dist/clis/sinafinance/stock.js +2 -2
- package/vendor/opencli/dist/clis/smzdm/search.js +1 -1
- package/vendor/opencli/dist/clis/spotify/spotify.js +2 -2
- package/vendor/opencli/dist/clis/spotify/utils.js +1 -1
- package/vendor/opencli/dist/clis/substack/feed.js +1 -1
- package/vendor/opencli/dist/clis/substack/publication.js +1 -1
- package/vendor/opencli/dist/clis/substack/search.js +2 -2
- package/vendor/opencli/dist/clis/substack/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/substack/utils.js +1 -1
- package/vendor/opencli/dist/clis/tieba/commands.test.js +1 -1
- package/vendor/opencli/dist/clis/tieba/hot.js +2 -2
- package/vendor/opencli/dist/clis/tieba/posts.js +2 -2
- package/vendor/opencli/dist/clis/tieba/read.js +2 -2
- package/vendor/opencli/dist/clis/tieba/search.js +2 -2
- package/vendor/opencli/dist/clis/twitter/accept.js +2 -2
- package/vendor/opencli/dist/clis/twitter/article.js +2 -2
- package/vendor/opencli/dist/clis/twitter/block.js +2 -2
- package/vendor/opencli/dist/clis/twitter/bookmark.js +2 -2
- package/vendor/opencli/dist/clis/twitter/bookmarks.js +2 -2
- package/vendor/opencli/dist/clis/twitter/delete.d.ts +6 -0
- package/vendor/opencli/dist/clis/twitter/delete.js +82 -47
- package/vendor/opencli/dist/clis/twitter/delete.test.d.ts +1 -0
- package/vendor/opencli/dist/clis/twitter/delete.test.js +73 -0
- package/vendor/opencli/dist/clis/twitter/download.js +3 -3
- package/vendor/opencli/dist/clis/twitter/follow.js +2 -2
- package/vendor/opencli/dist/clis/twitter/followers.js +2 -2
- package/vendor/opencli/dist/clis/twitter/following.js +2 -2
- package/vendor/opencli/dist/clis/twitter/hide-reply.js +2 -2
- package/vendor/opencli/dist/clis/twitter/like.js +2 -2
- package/vendor/opencli/dist/clis/twitter/likes.js +2 -2
- package/vendor/opencli/dist/clis/twitter/notifications.js +2 -2
- package/vendor/opencli/dist/clis/twitter/post.js +2 -2
- package/vendor/opencli/dist/clis/twitter/post.test.js +1 -1
- package/vendor/opencli/dist/clis/twitter/profile.js +2 -2
- package/vendor/opencli/dist/clis/twitter/reply-dm.js +2 -2
- package/vendor/opencli/dist/clis/twitter/reply.js +2 -2
- package/vendor/opencli/dist/clis/twitter/reply.test.js +1 -1
- package/vendor/opencli/dist/clis/twitter/search.js +2 -2
- package/vendor/opencli/dist/clis/twitter/search.test.js +1 -1
- package/vendor/opencli/dist/clis/twitter/shared.d.ts +1 -1
- package/vendor/opencli/dist/clis/twitter/thread.js +2 -2
- package/vendor/opencli/dist/clis/twitter/timeline.js +2 -2
- package/vendor/opencli/dist/clis/twitter/trending.js +2 -2
- package/vendor/opencli/dist/clis/twitter/unblock.js +2 -2
- package/vendor/opencli/dist/clis/twitter/unbookmark.js +2 -2
- package/vendor/opencli/dist/clis/twitter/unfollow.js +2 -2
- package/vendor/opencli/dist/clis/v2ex/daily.js +2 -2
- package/vendor/opencli/dist/clis/v2ex/me.js +2 -2
- package/vendor/opencli/dist/clis/v2ex/notifications.js +2 -2
- package/vendor/opencli/dist/clis/web/read.js +2 -2
- package/vendor/opencli/dist/clis/weibo/comments.js +1 -1
- package/vendor/opencli/dist/clis/weibo/feed.js +1 -1
- package/vendor/opencli/dist/clis/weibo/hot.js +1 -1
- package/vendor/opencli/dist/clis/weibo/me.js +2 -2
- package/vendor/opencli/dist/clis/weibo/post.js +2 -2
- package/vendor/opencli/dist/clis/weibo/search.js +2 -2
- package/vendor/opencli/dist/clis/weibo/user.js +2 -2
- package/vendor/opencli/dist/clis/weibo/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/weibo/utils.js +1 -1
- package/vendor/opencli/dist/clis/weixin/download.js +2 -2
- package/vendor/opencli/dist/clis/weread/book.js +2 -2
- package/vendor/opencli/dist/clis/weread/commands.test.js +2 -2
- package/vendor/opencli/dist/clis/weread/highlights.js +1 -1
- package/vendor/opencli/dist/clis/weread/notebooks.js +1 -1
- package/vendor/opencli/dist/clis/weread/notes.js +1 -1
- package/vendor/opencli/dist/clis/weread/private-api-regression.test.js +2 -2
- package/vendor/opencli/dist/clis/weread/ranking.js +1 -1
- package/vendor/opencli/dist/clis/weread/search-regression.test.js +1 -1
- package/vendor/opencli/dist/clis/weread/search.js +1 -1
- package/vendor/opencli/dist/clis/weread/shelf.js +3 -3
- package/vendor/opencli/dist/clis/weread/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/weread/utils.js +1 -1
- package/vendor/opencli/dist/clis/wikipedia/random.js +2 -2
- package/vendor/opencli/dist/clis/wikipedia/search.js +2 -2
- package/vendor/opencli/dist/clis/wikipedia/summary.js +2 -2
- package/vendor/opencli/dist/clis/wikipedia/trending.js +2 -2
- package/vendor/opencli/dist/clis/wikipedia/utils.js +1 -1
- package/vendor/opencli/dist/clis/xianyu/chat.js +2 -2
- package/vendor/opencli/dist/clis/xianyu/item.js +2 -2
- package/vendor/opencli/dist/clis/xianyu/item.test.js +2 -2
- package/vendor/opencli/dist/clis/xianyu/search.js +2 -2
- package/vendor/opencli/dist/clis/xianyu/utils.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/comments.js +2 -2
- package/vendor/opencli/dist/clis/xiaohongshu/comments.test.js +3 -3
- package/vendor/opencli/dist/clis/xiaohongshu/creator-note-detail.d.ts +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/creator-note-detail.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/creator-note-detail.test.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/creator-notes-summary.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/creator-notes.d.ts +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/creator-notes.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/creator-notes.test.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/creator-profile.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/creator-stats.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/download.js +3 -3
- package/vendor/opencli/dist/clis/xiaohongshu/download.test.js +3 -3
- package/vendor/opencli/dist/clis/xiaohongshu/note-helpers.d.ts +2 -2
- package/vendor/opencli/dist/clis/xiaohongshu/note-helpers.js +5 -3
- package/vendor/opencli/dist/clis/xiaohongshu/note.d.ts +4 -0
- package/vendor/opencli/dist/clis/xiaohongshu/note.js +10 -12
- package/vendor/opencli/dist/clis/xiaohongshu/note.test.js +6 -6
- package/vendor/opencli/dist/clis/xiaohongshu/publish.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/publish.test.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/search.js +2 -2
- package/vendor/opencli/dist/clis/xiaohongshu/search.test.js +1 -1
- package/vendor/opencli/dist/clis/xiaohongshu/user.js +1 -1
- package/vendor/opencli/dist/clis/xiaoyuzhou/episode.js +2 -2
- package/vendor/opencli/dist/clis/xiaoyuzhou/podcast-episodes.js +2 -2
- package/vendor/opencli/dist/clis/xiaoyuzhou/podcast.js +2 -2
- package/vendor/opencli/dist/clis/xiaoyuzhou/utils.js +1 -1
- package/vendor/opencli/dist/clis/xueqiu/comments.d.ts +1 -1
- package/vendor/opencli/dist/clis/xueqiu/comments.js +4 -4
- package/vendor/opencli/dist/clis/xueqiu/comments.test.js +3 -3
- package/vendor/opencli/dist/clis/xueqiu/danjuan-utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/xueqiu/fund-holdings.js +1 -1
- package/vendor/opencli/dist/clis/xueqiu/fund-snapshot.js +1 -1
- package/vendor/opencli/dist/clis/yahoo-finance/quote.js +1 -1
- package/vendor/opencli/dist/clis/yollomi/background.js +4 -4
- package/vendor/opencli/dist/clis/yollomi/edit.js +5 -5
- package/vendor/opencli/dist/clis/yollomi/face-swap.js +4 -4
- package/vendor/opencli/dist/clis/yollomi/generate.js +5 -5
- package/vendor/opencli/dist/clis/yollomi/models.js +1 -1
- package/vendor/opencli/dist/clis/yollomi/object-remover.js +4 -4
- package/vendor/opencli/dist/clis/yollomi/remove-bg.js +4 -4
- package/vendor/opencli/dist/clis/yollomi/restore.js +4 -4
- package/vendor/opencli/dist/clis/yollomi/try-on.js +4 -4
- package/vendor/opencli/dist/clis/yollomi/upload.js +5 -5
- package/vendor/opencli/dist/clis/yollomi/upscale.js +5 -5
- package/vendor/opencli/dist/clis/yollomi/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/yollomi/utils.js +1 -1
- package/vendor/opencli/dist/clis/yollomi/video.js +5 -5
- package/vendor/opencli/dist/clis/youtube/channel.js +2 -2
- package/vendor/opencli/dist/clis/youtube/comments.js +2 -2
- package/vendor/opencli/dist/clis/youtube/search.js +1 -1
- package/vendor/opencli/dist/clis/youtube/transcript.js +2 -2
- package/vendor/opencli/dist/clis/youtube/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/youtube/video.js +2 -2
- package/vendor/opencli/dist/clis/yuanbao/ask.d.ts +1 -1
- package/vendor/opencli/dist/clis/yuanbao/ask.js +36 -53
- package/vendor/opencli/dist/clis/yuanbao/ask.test.js +1 -1
- package/vendor/opencli/dist/clis/yuanbao/new.d.ts +1 -1
- package/vendor/opencli/dist/clis/yuanbao/new.js +1 -1
- package/vendor/opencli/dist/clis/yuanbao/new.test.js +1 -1
- package/vendor/opencli/dist/clis/yuanbao/shared.d.ts +2 -2
- package/vendor/opencli/dist/clis/yuanbao/shared.js +1 -1
- package/vendor/opencli/dist/clis/zhihu/download.js +2 -2
- package/vendor/opencli/dist/clis/zhihu/question.js +2 -2
- package/vendor/opencli/dist/clis/zhihu/question.test.js +2 -2
- package/vendor/opencli/dist/clis/zsxq/dynamics.js +1 -1
- package/vendor/opencli/dist/clis/zsxq/groups.js +1 -1
- package/vendor/opencli/dist/clis/zsxq/search.js +1 -1
- package/vendor/opencli/dist/clis/zsxq/search.test.js +1 -1
- package/vendor/opencli/dist/clis/zsxq/topic.js +2 -2
- package/vendor/opencli/dist/clis/zsxq/topic.test.js +1 -1
- package/vendor/opencli/dist/clis/zsxq/topics.js +1 -1
- package/vendor/opencli/dist/clis/zsxq/topics.test.js +1 -1
- package/vendor/opencli/dist/clis/zsxq/utils.d.ts +1 -1
- package/vendor/opencli/dist/clis/zsxq/utils.js +1 -1
- package/vendor/opencli/dist/{build-manifest.js → src/build-manifest.js} +5 -4
- package/vendor/opencli/dist/{cascade.js → src/cascade.js} +16 -31
- package/vendor/opencli/dist/src/cli.d.ts +22 -0
- package/vendor/opencli/dist/{cli.js → src/cli.js} +78 -8
- package/vendor/opencli/dist/{cli.test.js → src/cli.test.js} +84 -1
- package/vendor/opencli/dist/{commanderAdapter.d.ts → src/commanderAdapter.d.ts} +1 -0
- package/vendor/opencli/dist/{commanderAdapter.js → src/commanderAdapter.js} +26 -46
- package/vendor/opencli/dist/src/diagnostic.d.ts +38 -0
- package/vendor/opencli/dist/src/diagnostic.js +71 -0
- package/vendor/opencli/dist/src/diagnostic.test.d.ts +1 -0
- package/vendor/opencli/dist/src/diagnostic.test.js +84 -0
- package/vendor/opencli/dist/{discovery.d.ts → src/discovery.d.ts} +11 -2
- package/vendor/opencli/dist/{discovery.js → src/discovery.js} +71 -37
- package/vendor/opencli/dist/src/doctor.test.d.ts +1 -0
- package/vendor/opencli/dist/src/download/index.test.d.ts +1 -0
- package/vendor/opencli/dist/src/electron-apps.test.d.ts +1 -0
- package/vendor/opencli/dist/src/engine.test.d.ts +1 -0
- package/vendor/opencli/dist/{engine.test.js → src/engine.test.js} +6 -5
- package/vendor/opencli/dist/src/errors.test.d.ts +1 -0
- package/vendor/opencli/dist/{execution.js → src/execution.js} +25 -4
- package/vendor/opencli/dist/src/execution.test.d.ts +1 -0
- package/vendor/opencli/dist/src/extension-manifest-regression.test.d.ts +1 -0
- package/vendor/opencli/dist/src/external.test.d.ts +1 -0
- package/vendor/opencli/dist/{interceptor.d.ts → src/interceptor.d.ts} +2 -0
- package/vendor/opencli/dist/{interceptor.js → src/interceptor.js} +3 -6
- package/vendor/opencli/dist/src/launcher.test.d.ts +1 -0
- package/vendor/opencli/dist/{logger.d.ts → src/logger.d.ts} +4 -0
- package/vendor/opencli/dist/{logger.js → src/logger.js} +8 -0
- package/vendor/opencli/dist/{main.js → src/main.js} +3 -2
- package/vendor/opencli/dist/src/node-network.test.d.ts +1 -0
- package/vendor/opencli/dist/src/output.test.d.ts +1 -0
- package/vendor/opencli/dist/src/package-exports.test.d.ts +1 -0
- package/vendor/opencli/dist/src/package-exports.test.js +112 -0
- package/vendor/opencli/dist/src/pipeline/steps/download.test.d.ts +1 -0
- package/vendor/opencli/dist/src/pipeline/steps/fetch.test.d.ts +1 -0
- package/vendor/opencli/dist/{record.js → src/record.js} +1 -1
- package/vendor/opencli/dist/src/record.test.d.ts +1 -0
- package/vendor/opencli/dist/{registry-api.d.ts → src/registry-api.d.ts} +1 -1
- package/vendor/opencli/dist/src/runtime-detect.test.d.ts +1 -0
- package/vendor/opencli/dist/src/serialization.test.d.ts +1 -0
- package/vendor/opencli/dist/{synthesize.d.ts → src/synthesize.d.ts} +0 -4
- package/vendor/opencli/dist/{synthesize.js → src/synthesize.js} +4 -15
- package/vendor/opencli/dist/src/tui.test.d.ts +1 -0
- package/vendor/opencli/dist/{utils.d.ts → src/utils.d.ts} +3 -0
- package/vendor/opencli/dist/{utils.js → src/utils.js} +22 -0
- package/vendor/opencli/dist/{version.js → src/version.js} +7 -1
- package/vendor/opencli/dist/src/weixin-download.test.d.ts +1 -0
- package/vendor/opencli/dist/{weixin-download.test.js → src/weixin-download.test.js} +1 -1
- package/vendor/opencli/dist/cli.d.ts +0 -9
- /package/vendor/opencli/dist/{browser.test.d.ts → clis/gemini/deep-research-result.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser/cdp.test.d.ts → clis/gemini/deep-research.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser/daemon-client.test.d.ts → clis/hupu/mentions.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser/dom-helpers.test.d.ts → clis/lesswrong/comments.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser/page.test.d.ts → clis/lesswrong/curated.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser/stealth.test.d.ts → clis/lesswrong/frontpage.d.ts} +0 -0
- /package/vendor/opencli/dist/{build-manifest.test.d.ts → clis/lesswrong/new.d.ts} +0 -0
- /package/vendor/opencli/dist/{capabilityRouting.test.d.ts → clis/lesswrong/read.d.ts} +0 -0
- /package/vendor/opencli/dist/{cli.test.d.ts → clis/lesswrong/sequences.d.ts} +0 -0
- /package/vendor/opencli/dist/{commanderAdapter.test.d.ts → clis/lesswrong/shortform.d.ts} +0 -0
- /package/vendor/opencli/dist/{commands/daemon.test.d.ts → clis/lesswrong/tag.d.ts} +0 -0
- /package/vendor/opencli/dist/{completion.test.d.ts → clis/lesswrong/tags.d.ts} +0 -0
- /package/vendor/opencli/dist/{daemon.test.d.ts → clis/lesswrong/top-month.d.ts} +0 -0
- /package/vendor/opencli/dist/{doctor.test.d.ts → clis/lesswrong/top-week.d.ts} +0 -0
- /package/vendor/opencli/dist/{download/index.test.d.ts → clis/lesswrong/top-year.d.ts} +0 -0
- /package/vendor/opencli/dist/{electron-apps.test.d.ts → clis/lesswrong/top.d.ts} +0 -0
- /package/vendor/opencli/dist/{engine.test.d.ts → clis/lesswrong/user-posts.d.ts} +0 -0
- /package/vendor/opencli/dist/{errors.test.d.ts → clis/lesswrong/user.d.ts} +0 -0
- /package/vendor/opencli/dist/{analysis.d.ts → src/analysis.d.ts} +0 -0
- /package/vendor/opencli/dist/{analysis.js → src/analysis.js} +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/base-page.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/base-page.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/bridge.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/bridge.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/cdp.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/cdp.js +0 -0
- /package/vendor/opencli/dist/{extension-manifest-regression.test.d.ts → src/browser/cdp.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/cdp.test.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/daemon-client.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/daemon-client.js +0 -0
- /package/vendor/opencli/dist/{external.test.d.ts → src/browser/daemon-client.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/daemon-client.test.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/discover.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/discover.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/dom-helpers.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/dom-helpers.js +0 -0
- /package/vendor/opencli/dist/{launcher.test.d.ts → src/browser/dom-helpers.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/dom-helpers.test.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/dom-snapshot.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/dom-snapshot.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/dom-snapshot.test.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/dom-snapshot.test.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/errors.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/errors.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/index.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/index.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/page.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/page.js +0 -0
- /package/vendor/opencli/dist/{node-network.test.d.ts → src/browser/page.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/page.test.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/stealth.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/stealth.js +0 -0
- /package/vendor/opencli/dist/{output.test.d.ts → src/browser/stealth.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/stealth.test.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/tabs.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/tabs.js +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/utils.d.ts +0 -0
- /package/vendor/opencli/dist/{browser → src/browser}/utils.js +0 -0
- /package/vendor/opencli/dist/{execution.test.d.ts → src/browser.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{browser.test.js → src/browser.test.js} +0 -0
- /package/vendor/opencli/dist/{build-manifest.d.ts → src/build-manifest.d.ts} +0 -0
- /package/vendor/opencli/dist/{pipeline/steps/download.test.d.ts → src/build-manifest.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{build-manifest.test.js → src/build-manifest.test.js} +0 -0
- /package/vendor/opencli/dist/{capabilityRouting.d.ts → src/capabilityRouting.d.ts} +0 -0
- /package/vendor/opencli/dist/{capabilityRouting.js → src/capabilityRouting.js} +0 -0
- /package/vendor/opencli/dist/{pipeline/steps/fetch.test.d.ts → src/capabilityRouting.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{capabilityRouting.test.js → src/capabilityRouting.test.js} +0 -0
- /package/vendor/opencli/dist/{cascade.d.ts → src/cascade.d.ts} +0 -0
- /package/vendor/opencli/dist/{record.test.d.ts → src/cli.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{runtime-detect.test.d.ts → src/commanderAdapter.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{commanderAdapter.test.js → src/commanderAdapter.test.js} +0 -0
- /package/vendor/opencli/dist/{commands → src/commands}/daemon.d.ts +0 -0
- /package/vendor/opencli/dist/{commands → src/commands}/daemon.js +0 -0
- /package/vendor/opencli/dist/{serialization.test.d.ts → src/commands/daemon.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{commands → src/commands}/daemon.test.js +0 -0
- /package/vendor/opencli/dist/{completion.d.ts → src/completion.d.ts} +0 -0
- /package/vendor/opencli/dist/{completion.js → src/completion.js} +0 -0
- /package/vendor/opencli/dist/{tui.test.d.ts → src/completion.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{completion.test.js → src/completion.test.js} +0 -0
- /package/vendor/opencli/dist/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/vendor/opencli/dist/{constants.js → src/constants.js} +0 -0
- /package/vendor/opencli/dist/{daemon.d.ts → src/daemon.d.ts} +0 -0
- /package/vendor/opencli/dist/{daemon.js → src/daemon.js} +0 -0
- /package/vendor/opencli/dist/{weixin-download.test.d.ts → src/daemon.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{daemon.test.js → src/daemon.test.js} +0 -0
- /package/vendor/opencli/dist/{doctor.d.ts → src/doctor.d.ts} +0 -0
- /package/vendor/opencli/dist/{doctor.js → src/doctor.js} +0 -0
- /package/vendor/opencli/dist/{doctor.test.js → src/doctor.test.js} +0 -0
- /package/vendor/opencli/dist/{download → src/download}/article-download.d.ts +0 -0
- /package/vendor/opencli/dist/{download → src/download}/article-download.js +0 -0
- /package/vendor/opencli/dist/{download → src/download}/index.d.ts +0 -0
- /package/vendor/opencli/dist/{download → src/download}/index.js +0 -0
- /package/vendor/opencli/dist/{download → src/download}/index.test.js +0 -0
- /package/vendor/opencli/dist/{download → src/download}/media-download.d.ts +0 -0
- /package/vendor/opencli/dist/{download → src/download}/media-download.js +0 -0
- /package/vendor/opencli/dist/{download → src/download}/progress.d.ts +0 -0
- /package/vendor/opencli/dist/{download → src/download}/progress.js +0 -0
- /package/vendor/opencli/dist/{electron-apps.d.ts → src/electron-apps.d.ts} +0 -0
- /package/vendor/opencli/dist/{electron-apps.js → src/electron-apps.js} +0 -0
- /package/vendor/opencli/dist/{electron-apps.test.js → src/electron-apps.test.js} +0 -0
- /package/vendor/opencli/dist/{errors.d.ts → src/errors.d.ts} +0 -0
- /package/vendor/opencli/dist/{errors.js → src/errors.js} +0 -0
- /package/vendor/opencli/dist/{errors.test.js → src/errors.test.js} +0 -0
- /package/vendor/opencli/dist/{execution.d.ts → src/execution.d.ts} +0 -0
- /package/vendor/opencli/dist/{execution.test.js → src/execution.test.js} +0 -0
- /package/vendor/opencli/dist/{explore.d.ts → src/explore.d.ts} +0 -0
- /package/vendor/opencli/dist/{explore.js → src/explore.js} +0 -0
- /package/vendor/opencli/dist/{extension-manifest-regression.test.js → src/extension-manifest-regression.test.js} +0 -0
- /package/vendor/opencli/dist/{external-clis.yaml → src/external-clis.yaml} +0 -0
- /package/vendor/opencli/dist/{external.d.ts → src/external.d.ts} +0 -0
- /package/vendor/opencli/dist/{external.js → src/external.js} +0 -0
- /package/vendor/opencli/dist/{external.test.js → src/external.test.js} +0 -0
- /package/vendor/opencli/dist/{generate.d.ts → src/generate.d.ts} +0 -0
- /package/vendor/opencli/dist/{generate.js → src/generate.js} +0 -0
- /package/vendor/opencli/dist/{hooks.d.ts → src/hooks.d.ts} +0 -0
- /package/vendor/opencli/dist/{hooks.js → src/hooks.js} +0 -0
- /package/vendor/opencli/dist/{hooks.test.d.ts → src/hooks.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{hooks.test.js → src/hooks.test.js} +0 -0
- /package/vendor/opencli/dist/{idle-manager.d.ts → src/idle-manager.d.ts} +0 -0
- /package/vendor/opencli/dist/{idle-manager.js → src/idle-manager.js} +0 -0
- /package/vendor/opencli/dist/{interceptor.test.d.ts → src/interceptor.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{interceptor.test.js → src/interceptor.test.js} +0 -0
- /package/vendor/opencli/dist/{launcher.d.ts → src/launcher.d.ts} +0 -0
- /package/vendor/opencli/dist/{launcher.js → src/launcher.js} +0 -0
- /package/vendor/opencli/dist/{launcher.test.js → src/launcher.test.js} +0 -0
- /package/vendor/opencli/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/vendor/opencli/dist/{node-network.d.ts → src/node-network.d.ts} +0 -0
- /package/vendor/opencli/dist/{node-network.js → src/node-network.js} +0 -0
- /package/vendor/opencli/dist/{node-network.test.js → src/node-network.test.js} +0 -0
- /package/vendor/opencli/dist/{output.d.ts → src/output.d.ts} +0 -0
- /package/vendor/opencli/dist/{output.js → src/output.js} +0 -0
- /package/vendor/opencli/dist/{output.test.js → src/output.test.js} +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/executor.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/executor.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/executor.test.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/executor.test.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/index.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/index.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/registry.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/registry.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/browser.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/browser.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/download.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/download.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/download.test.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/fetch.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/fetch.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/fetch.test.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/intercept.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/intercept.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/tap.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/tap.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/transform.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/steps/transform.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/template.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/template.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/template.test.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/template.test.js +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/transform.test.d.ts +0 -0
- /package/vendor/opencli/dist/{pipeline → src/pipeline}/transform.test.js +0 -0
- /package/vendor/opencli/dist/{plugin-manifest.d.ts → src/plugin-manifest.d.ts} +0 -0
- /package/vendor/opencli/dist/{plugin-manifest.js → src/plugin-manifest.js} +0 -0
- /package/vendor/opencli/dist/{plugin-manifest.test.d.ts → src/plugin-manifest.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{plugin-manifest.test.js → src/plugin-manifest.test.js} +0 -0
- /package/vendor/opencli/dist/{plugin-scaffold.d.ts → src/plugin-scaffold.d.ts} +0 -0
- /package/vendor/opencli/dist/{plugin-scaffold.js → src/plugin-scaffold.js} +0 -0
- /package/vendor/opencli/dist/{plugin-scaffold.test.d.ts → src/plugin-scaffold.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{plugin-scaffold.test.js → src/plugin-scaffold.test.js} +0 -0
- /package/vendor/opencli/dist/{plugin.d.ts → src/plugin.d.ts} +0 -0
- /package/vendor/opencli/dist/{plugin.js → src/plugin.js} +0 -0
- /package/vendor/opencli/dist/{plugin.test.d.ts → src/plugin.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{plugin.test.js → src/plugin.test.js} +0 -0
- /package/vendor/opencli/dist/{record.d.ts → src/record.d.ts} +0 -0
- /package/vendor/opencli/dist/{record.test.js → src/record.test.js} +0 -0
- /package/vendor/opencli/dist/{registry-api.js → src/registry-api.js} +0 -0
- /package/vendor/opencli/dist/{registry.d.ts → src/registry.d.ts} +0 -0
- /package/vendor/opencli/dist/{registry.js → src/registry.js} +0 -0
- /package/vendor/opencli/dist/{registry.test.d.ts → src/registry.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{registry.test.js → src/registry.test.js} +0 -0
- /package/vendor/opencli/dist/{runtime-detect.d.ts → src/runtime-detect.d.ts} +0 -0
- /package/vendor/opencli/dist/{runtime-detect.js → src/runtime-detect.js} +0 -0
- /package/vendor/opencli/dist/{runtime-detect.test.js → src/runtime-detect.test.js} +0 -0
- /package/vendor/opencli/dist/{runtime.d.ts → src/runtime.d.ts} +0 -0
- /package/vendor/opencli/dist/{runtime.js → src/runtime.js} +0 -0
- /package/vendor/opencli/dist/{scripts → src/scripts}/framework.d.ts +0 -0
- /package/vendor/opencli/dist/{scripts → src/scripts}/framework.js +0 -0
- /package/vendor/opencli/dist/{scripts → src/scripts}/interact.d.ts +0 -0
- /package/vendor/opencli/dist/{scripts → src/scripts}/interact.js +0 -0
- /package/vendor/opencli/dist/{scripts → src/scripts}/store.d.ts +0 -0
- /package/vendor/opencli/dist/{scripts → src/scripts}/store.js +0 -0
- /package/vendor/opencli/dist/{serialization.d.ts → src/serialization.d.ts} +0 -0
- /package/vendor/opencli/dist/{serialization.js → src/serialization.js} +0 -0
- /package/vendor/opencli/dist/{serialization.test.js → src/serialization.test.js} +0 -0
- /package/vendor/opencli/dist/{snapshotFormatter.d.ts → src/snapshotFormatter.d.ts} +0 -0
- /package/vendor/opencli/dist/{snapshotFormatter.js → src/snapshotFormatter.js} +0 -0
- /package/vendor/opencli/dist/{snapshotFormatter.test.d.ts → src/snapshotFormatter.test.d.ts} +0 -0
- /package/vendor/opencli/dist/{snapshotFormatter.test.js → src/snapshotFormatter.test.js} +0 -0
- /package/vendor/opencli/dist/{tui.d.ts → src/tui.d.ts} +0 -0
- /package/vendor/opencli/dist/{tui.js → src/tui.js} +0 -0
- /package/vendor/opencli/dist/{tui.test.js → src/tui.test.js} +0 -0
- /package/vendor/opencli/dist/{types.d.ts → src/types.d.ts} +0 -0
- /package/vendor/opencli/dist/{types.js → src/types.js} +0 -0
- /package/vendor/opencli/dist/{update-check.d.ts → src/update-check.d.ts} +0 -0
- /package/vendor/opencli/dist/{update-check.js → src/update-check.js} +0 -0
- /package/vendor/opencli/dist/{validate.d.ts → src/validate.d.ts} +0 -0
- /package/vendor/opencli/dist/{validate.js → src/validate.js} +0 -0
- /package/vendor/opencli/dist/{verify.d.ts → src/verify.d.ts} +0 -0
- /package/vendor/opencli/dist/{verify.js → src/verify.js} +0 -0
- /package/vendor/opencli/dist/{version.d.ts → src/version.d.ts} +0 -0
- /package/vendor/opencli/dist/{yaml-schema.d.ts → src/yaml-schema.d.ts} +0 -0
- /package/vendor/opencli/dist/{yaml-schema.js → src/yaml-schema.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doubao-ask-with-citations.js","sourceRoot":"","sources":["../../../../src/integrations/opencli/commands/doubao-ask-with-citations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,EAAE,GAAG,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"doubao-ask-with-citations.js","sourceRoot":"","sources":["../../../../src/integrations/opencli/commands/doubao-ask-with-citations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACxG,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAoB,MAAM,iDAAiD,CAAC;AAalG,SAAS,4BAA4B;IACnC,OAAO;;;;;;;;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,IAAI,EAAE;gBAC7C;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,sBAAsB,OAAO,oCAAoC;oBACvE,SAAS,EAAE,IAAI;iBAChB;aACF,CAAC;QACJ,CAAC;QAED,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,yBAAyB,CACnD,IAAI,EACJ,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,EAAE,EAChG,OAAO,CACR,CAAC;QAEF,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAChD,OAAO;YACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE;YAC7C,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE;SAChE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { executeCommand } from '../../../vendor/opencli/dist/execution.js';
|
|
2
|
-
import { render } from '../../../vendor/opencli/dist/output.js';
|
|
3
|
-
import { fullName, getRegistry } from '../../../vendor/opencli/dist/registry.js';
|
|
1
|
+
import { executeCommand } from '../../../vendor/opencli/dist/src/execution.js';
|
|
2
|
+
import { render } from '../../../vendor/opencli/dist/src/output.js';
|
|
3
|
+
import { fullName, getRegistry } from '../../../vendor/opencli/dist/src/registry.js';
|
|
4
4
|
/**
|
|
5
5
|
* 执行已注册在 opencli registry 中的命令并渲染输出(须在 bootstrapOpencli 之后调用)。
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-registry-command.js","sourceRoot":"","sources":["../../../src/integrations/opencli/execute-registry-command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"execute-registry-command.js","sourceRoot":"","sources":["../../../src/integrations/opencli/execute-registry-command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAsB,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAQrF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,WAAmB,EACnB,MAAwC,EACxC,OAAgB,EAChB,UAAmC;IAEnC,MAAM,GAAG,GAAG,WAAW,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC3C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,CAAC,KAAK,CACX,OAAO,WAAW,uDAAuD,CAC1E,CAAC;QACF,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAEzB,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QAC1D,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS;YAAE,OAAO;QAEpD,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC;QACzD,IAAI,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,MAAM,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,KAAK,KAAK,CAAC;QACxE,IAAI,CAAC,cAAc,IAAI,MAAM,KAAK,OAAO,IAAI,QAAQ,CAAC,aAAa,EAAE,CAAC;YACpE,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC;QAClC,CAAC;QAED,MAAM,UAAU,GAAkB;YAChC,GAAG,EAAE,MAAM;YACX,WAAW,EAAE,cAAc;YAC3B,KAAK,EAAE,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,EAAE;YAC1C,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,GAAG,IAAI;YACpC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC;SAC3B,CAAC;QACF,IAAI,QAAQ,CAAC,OAAO,KAAK,SAAS;YAAE,UAAU,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QAC1E,MAAM,WAAW,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC;QACnD,IAAI,WAAW,KAAK,SAAS;YAAE,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;QAEpE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;QAChE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/check.ts"],"names":[],"mappings":"AAoCA,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAiFzD"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import Table from 'cli-table3';
|
|
2
|
+
import { access, constants as fsConstants } from 'node:fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fetchGatewayToken } from '../../core/gateway-token.js';
|
|
5
|
+
import { getSkillInstallRoot } from '../../utils/install-root.js';
|
|
6
|
+
import { fetchSkillsIndex } from './skills-hub.js';
|
|
7
|
+
import { compareSemver, readLocalSkillVersion } from './skill-md-version.js';
|
|
8
|
+
function statusForRow(entry, installed, localVer) {
|
|
9
|
+
if (!installed) {
|
|
10
|
+
return { status: '未安装', bucket: 'notInstalled' };
|
|
11
|
+
}
|
|
12
|
+
const remote = entry.version?.trim();
|
|
13
|
+
if (!remote) {
|
|
14
|
+
return { status: '索引无版本', bucket: 'noRemote' };
|
|
15
|
+
}
|
|
16
|
+
if (!localVer) {
|
|
17
|
+
return { status: '本地版本未知', bucket: 'unknown' };
|
|
18
|
+
}
|
|
19
|
+
const cmp = compareSemver(localVer, remote);
|
|
20
|
+
if (cmp === null) {
|
|
21
|
+
return { status: '无法比较', bucket: 'bad' };
|
|
22
|
+
}
|
|
23
|
+
if (cmp < 0) {
|
|
24
|
+
return { status: '可更新', bucket: 'update' };
|
|
25
|
+
}
|
|
26
|
+
if (cmp > 0) {
|
|
27
|
+
return { status: '本地较新', bucket: 'ahead' };
|
|
28
|
+
}
|
|
29
|
+
return { status: '已是最新', bucket: 'ok' };
|
|
30
|
+
}
|
|
31
|
+
export async function runHuyuanSkillCheck() {
|
|
32
|
+
console.log('正在连接 Huyuan 授权中心...');
|
|
33
|
+
const token = await fetchGatewayToken();
|
|
34
|
+
console.log('正在获取技能索引...');
|
|
35
|
+
const index = await fetchSkillsIndex(token);
|
|
36
|
+
const root = getSkillInstallRoot();
|
|
37
|
+
let nUpdate = 0;
|
|
38
|
+
let nOk = 0;
|
|
39
|
+
let nAhead = 0;
|
|
40
|
+
let nUnknown = 0;
|
|
41
|
+
let nBad = 0;
|
|
42
|
+
let nNoRemote = 0;
|
|
43
|
+
let nNotInstalled = 0;
|
|
44
|
+
const table = new Table({
|
|
45
|
+
head: ['id', 'local', 'remote', 'status'],
|
|
46
|
+
wordWrap: true,
|
|
47
|
+
});
|
|
48
|
+
for (const entry of index.skills) {
|
|
49
|
+
const skillMdPath = path.join(root, entry.id, 'SKILL.md');
|
|
50
|
+
let installed = false;
|
|
51
|
+
try {
|
|
52
|
+
await access(skillMdPath, fsConstants.F_OK);
|
|
53
|
+
installed = true;
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
installed = false;
|
|
57
|
+
}
|
|
58
|
+
const localVer = installed ? await readLocalSkillVersion(skillMdPath) : undefined;
|
|
59
|
+
const { status, bucket } = statusForRow(entry, installed, localVer);
|
|
60
|
+
switch (bucket) {
|
|
61
|
+
case 'update':
|
|
62
|
+
nUpdate++;
|
|
63
|
+
break;
|
|
64
|
+
case 'ok':
|
|
65
|
+
nOk++;
|
|
66
|
+
break;
|
|
67
|
+
case 'ahead':
|
|
68
|
+
nAhead++;
|
|
69
|
+
break;
|
|
70
|
+
case 'unknown':
|
|
71
|
+
nUnknown++;
|
|
72
|
+
break;
|
|
73
|
+
case 'bad':
|
|
74
|
+
nBad++;
|
|
75
|
+
break;
|
|
76
|
+
case 'noRemote':
|
|
77
|
+
nNoRemote++;
|
|
78
|
+
break;
|
|
79
|
+
case 'notInstalled':
|
|
80
|
+
nNotInstalled++;
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
table.push([
|
|
86
|
+
entry.id,
|
|
87
|
+
localVer ?? '—',
|
|
88
|
+
entry.version?.trim() ?? '—',
|
|
89
|
+
status,
|
|
90
|
+
]);
|
|
91
|
+
}
|
|
92
|
+
console.log(table.toString());
|
|
93
|
+
console.log([
|
|
94
|
+
`待更新: ${String(nUpdate)}`,
|
|
95
|
+
`已是最新: ${String(nOk)}`,
|
|
96
|
+
`未安装: ${String(nNotInstalled)}`,
|
|
97
|
+
`本地较新: ${String(nAhead)}`,
|
|
98
|
+
`本地版本未知: ${String(nUnknown)}`,
|
|
99
|
+
`索引无版本: ${String(nNoRemote)}`,
|
|
100
|
+
`无法比较: ${String(nBad)}`,
|
|
101
|
+
].join(' | '));
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=check.js.map
|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AM,CAAC,QAAQ,CAAC,EAAE;QAC7B,UAAU,MAAM,CAAC,SAAS,CAAC,EAAE;QAC7B,SAAS,MAAM,CAAC,IAAI,CAAC,EAAE;KACxB,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-from-hub.d.ts","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/install-from-hub.ts"],"names":[],"mappings":"AAkCA,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBxE;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BvE"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { access, constants as fsConstants } from 'node:fs/promises';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fetchGatewayToken } from '../../core/gateway-token.js';
|
|
4
|
+
import { getSkillInstallRoot } from '../../utils/install-root.js';
|
|
5
|
+
import { assertSkillEntryExists, downloadSkillTree, fetchSkillsIndex, findSkillById, } from './skills-hub.js';
|
|
6
|
+
const SKILL_ID_PATTERN = /^[a-zA-Z0-9._-]+$/;
|
|
7
|
+
const SKILL_ID_MAX_LEN = 100;
|
|
8
|
+
function assertValidSkillId(skillId) {
|
|
9
|
+
if (!skillId || skillId.length > SKILL_ID_MAX_LEN) {
|
|
10
|
+
throw new Error(`无效的技能 id:长度应在 1~${String(SKILL_ID_MAX_LEN)} 之间`);
|
|
11
|
+
}
|
|
12
|
+
if (!SKILL_ID_PATTERN.test(skillId)) {
|
|
13
|
+
throw new Error('无效的技能 id:仅允许字母、数字、点、下划线与连字符');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
async function assertLocalSkillInstalled(skillId, targetAbs) {
|
|
17
|
+
const skillMd = path.join(targetAbs, 'SKILL.md');
|
|
18
|
+
try {
|
|
19
|
+
await access(skillMd, fsConstants.F_OK);
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
throw new Error(`尚未安装技能「${skillId}」。请先执行:huyuan-ai-cli huyuan-skill install ${skillId}`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export async function installSkillFromHub(skillId) {
|
|
26
|
+
assertValidSkillId(skillId);
|
|
27
|
+
console.log('正在连接 Huyuan 授权中心...');
|
|
28
|
+
const token = await fetchGatewayToken();
|
|
29
|
+
console.log('正在获取技能索引...');
|
|
30
|
+
const index = await fetchSkillsIndex(token);
|
|
31
|
+
const entry = findSkillById(index, skillId);
|
|
32
|
+
if (!entry) {
|
|
33
|
+
throw new Error(`未找到技能:${skillId}(请先执行 huyuan-ai-cli huyuan-skill list 查看可用技能)`);
|
|
34
|
+
}
|
|
35
|
+
const root = getSkillInstallRoot();
|
|
36
|
+
const targetAbs = path.join(root, skillId);
|
|
37
|
+
console.log(`正在安装技能: ${skillId}...`);
|
|
38
|
+
await downloadSkillTree(token, entry, targetAbs);
|
|
39
|
+
await assertSkillEntryExists(targetAbs);
|
|
40
|
+
console.log(`安装完成:${targetAbs}`);
|
|
41
|
+
}
|
|
42
|
+
export async function updateSkillFromHub(skillId) {
|
|
43
|
+
assertValidSkillId(skillId);
|
|
44
|
+
const root = getSkillInstallRoot();
|
|
45
|
+
const targetAbs = path.join(root, skillId);
|
|
46
|
+
await assertLocalSkillInstalled(skillId, targetAbs);
|
|
47
|
+
console.log('正在连接 Huyuan 授权中心...');
|
|
48
|
+
const token = await fetchGatewayToken();
|
|
49
|
+
console.log('正在获取技能索引...');
|
|
50
|
+
const index = await fetchSkillsIndex(token);
|
|
51
|
+
const entry = findSkillById(index, skillId);
|
|
52
|
+
if (!entry) {
|
|
53
|
+
throw new Error(`未找到技能:${skillId}(请先执行 huyuan-ai-cli huyuan-skill list 查看可用技能)`);
|
|
54
|
+
}
|
|
55
|
+
console.log(`正在更新技能: ${skillId}...`);
|
|
56
|
+
await downloadSkillTree(token, entry, targetAbs);
|
|
57
|
+
await assertSkillEntryExists(targetAbs);
|
|
58
|
+
console.log(`更新完成:${targetAbs}`);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=install-from-hub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-from-hub.js","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/install-from-hub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,GACd,MAAM,iBAAiB,CAAC;AAEzB,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;AAC7C,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B,SAAS,kBAAkB,CAAC,OAAe;IACzC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,gBAAgB,EAAE,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;IACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;AACH,CAAC;AAED,KAAK,UAAU,yBAAyB,CAAC,OAAe,EAAE,SAAiB;IACzE,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACjD,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAAC,MAAM,C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AAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACnC,MAAM,KAAK,GAAG,MAAM,iBAAiB,EAAE,CAAC;IAExC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC3B,MAAM,KAAK,GAAG,MAAM,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,SAAS,OAAO,+CAA+C,CAChE,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,KAAK,CAAC,CAAC;IAErC,MAAM,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IACjD,MAAM,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAExC,OAAO,CAAC,GAAG,CAAC,QAAQ,SAAS,EAAE,CAAC,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/list.ts"],"names":[],"mappings":"AAQA,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAwCtD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import Table from 'cli-table3';
|
|
2
|
+
import { access, constants as fsConstants } from 'node:fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fetchGatewayToken } from '../../core/gateway-token.js';
|
|
5
|
+
import { getSkillInstallRoot } from '../../utils/install-root.js';
|
|
6
|
+
import { fetchSkillsIndex } from './skills-hub.js';
|
|
7
|
+
import { readLocalSkillVersion } from './skill-md-version.js';
|
|
8
|
+
export async function listRemoteSkills() {
|
|
9
|
+
console.log('正在连接 Huyuan 授权中心...');
|
|
10
|
+
const token = await fetchGatewayToken();
|
|
11
|
+
console.log('正在获取技能索引...');
|
|
12
|
+
const index = await fetchSkillsIndex(token);
|
|
13
|
+
const root = getSkillInstallRoot();
|
|
14
|
+
const table = new Table({
|
|
15
|
+
head: ['id', 'version', 'name', '已安装', '本地版本', 'description'],
|
|
16
|
+
wordWrap: true,
|
|
17
|
+
});
|
|
18
|
+
for (const s of index.skills) {
|
|
19
|
+
const skillMdPath = path.join(root, s.id, 'SKILL.md');
|
|
20
|
+
let installed = false;
|
|
21
|
+
try {
|
|
22
|
+
await access(skillMdPath, fsConstants.F_OK);
|
|
23
|
+
installed = true;
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
installed = false;
|
|
27
|
+
}
|
|
28
|
+
const localVer = installed
|
|
29
|
+
? (await readLocalSkillVersion(skillMdPath)) ?? '未知'
|
|
30
|
+
: '—';
|
|
31
|
+
const installedLabel = installed ? '是' : '否';
|
|
32
|
+
table.push([
|
|
33
|
+
s.id,
|
|
34
|
+
s.version ?? '',
|
|
35
|
+
s.name ?? '',
|
|
36
|
+
installedLabel,
|
|
37
|
+
localVer,
|
|
38
|
+
s.description ?? '',
|
|
39
|
+
]);
|
|
40
|
+
}
|
|
41
|
+
console.log(table.toString());
|
|
42
|
+
console.log(`TOTAL: ${String(index.skills.length)}`);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EA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AI,IAAI,EAAE;YACZ,cAAc;YACd,QAAQ;YACR,CAAC,CAAC,WAAW,IAAI,EAAE;SACpB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9B,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMzC,gEAAgE;AAChE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAgF1D"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { installSkillFromHub, updateSkillFromHub } from './install-from-hub.js';
|
|
2
|
+
import { listRemoteSkills } from './list.js';
|
|
3
|
+
import { runHuyuanSkillCheck } from './check.js';
|
|
4
|
+
import { searchRemoteSkills } from './search.js';
|
|
5
|
+
/** 注册 `huyuan-ai-cli huyuan-skill ...`;文案侧重帮助用户理解前置条件与各子命令职责 */
|
|
6
|
+
export function registerHuyuanSkill(program) {
|
|
7
|
+
const g = program
|
|
8
|
+
.command('huyuan-skill')
|
|
9
|
+
.description('互远私有技能库(GitHub WeDAOLabs/skills-hub):需先 login。提供列出/搜索远端索引、检查与远端版本差异、安装或整目录更新到本地技能目录(INSTALL_ROOT,默认 ~/.agents/skills)。');
|
|
10
|
+
g.command('search')
|
|
11
|
+
.description('在远端 skills.index.yaml 中按关键词筛选技能(子串匹配 id、中文名、tags,忽略大小写);仅查询索引,不改动本地文件。')
|
|
12
|
+
.argument('<query...>', '搜索关键词,多个词用空格分隔(例:workflow daily)')
|
|
13
|
+
.action(async (queryParts) => {
|
|
14
|
+
try {
|
|
15
|
+
await searchRemoteSkills(queryParts.join(' '));
|
|
16
|
+
}
|
|
17
|
+
catch (err) {
|
|
18
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
19
|
+
process.exitCode = 1;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
g.command('check')
|
|
23
|
+
.description('对索引中每条技能:读取本地 INSTALL_ROOT/<id>/SKILL.md 的版本号,与索引中的远端版本比较(x.y.z),标出可更新、已是最新、未安装等;末尾汇总各类数量。')
|
|
24
|
+
.action(async () => {
|
|
25
|
+
try {
|
|
26
|
+
await runHuyuanSkillCheck();
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
30
|
+
process.exitCode = 1;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
g.command('list')
|
|
34
|
+
.description('列出索引中全部技能及远端版本/描述;并探测本地是否已安装(存在 SKILL.md)及本地 frontmatter 版本号,便于与远端对照。')
|
|
35
|
+
.action(async () => {
|
|
36
|
+
try {
|
|
37
|
+
await listRemoteSkills();
|
|
38
|
+
}
|
|
39
|
+
catch (err) {
|
|
40
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
41
|
+
process.exitCode = 1;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
g.command('install')
|
|
45
|
+
.description('首次或重装:从 skills-hub 按索引 path 下载该技能整目录到 INSTALL_ROOT;若目标目录已存在会先删除再写入,本地修改会被覆盖。')
|
|
46
|
+
.argument('<skillId>', '与 skills.index.yaml 中 id 一致(例:huyuan-ai-daily-work-log;可先 list / search)')
|
|
47
|
+
.action(async (skillId) => {
|
|
48
|
+
try {
|
|
49
|
+
await installSkillFromHub(skillId);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
53
|
+
process.exitCode = 1;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
g.command('update')
|
|
57
|
+
.description('在已安装前提下,拉取远端最新内容并覆盖本地该技能目录;若本地尚未安装会提示先执行 install(逻辑与 install 相同,仅多一层「已安装」校验)。')
|
|
58
|
+
.argument('<skillId>', '与 skills.index.yaml 中 id 一致;须已在 INSTALL_ROOT 下存在该技能目录与 SKILL.md')
|
|
59
|
+
.action(async (skillId) => {
|
|
60
|
+
try {
|
|
61
|
+
await updateSkillFromHub(skillId);
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
65
|
+
process.exitCode = 1;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/register.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,gEAAgE;AAChE,MAAM,UAAU,mBAAmB,CAAC,OAAgB;IAClD,MAAM,CAAC,GAAG,OAAO;SACd,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CACV,wHAAwH,CACzH,CAAC;IAEJ,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;SAChB,WAAW,CACV,wEAAwE,CACzE;SACA,QAAQ,CAAC,YAAY,EAAE,kCAAkC,CAAC;SAC1D,MAAM,CAAC,KAAK,EAAE,UAAoB,EAAE,EAAE;QACrC,IAAI,CAAC;YACH,MAAM,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAA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O,CAAC,CAAC;QACrC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;YAChE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACvB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;SAChB,WAAW,CACV,+EAA+E,CAChF;SACA,QAAQ,CACP,WAAW,EACX,iEAAiE,CAClE;SACA,MAAM,CAAC,KAAK,EAAE,OAAe,EAAE,EAAE;QAChC,IAAI,CAAC;YACH,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;YAChE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACvB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/search.ts"],"names":[],"mappings":"AAqBA,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BxE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Table from 'cli-table3';
|
|
2
|
+
import { fetchGatewayToken } from '../../core/gateway-token.js';
|
|
3
|
+
import { fetchSkillsIndex } from './skills-hub.js';
|
|
4
|
+
function skillMatchesQuery(skill, qNorm) {
|
|
5
|
+
if (skill.id.toLowerCase().includes(qNorm)) {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
if (skill.name?.toLowerCase().includes(qNorm)) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
if (skill.tags) {
|
|
12
|
+
for (const t of skill.tags) {
|
|
13
|
+
if (t.toLowerCase().includes(qNorm)) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
export async function searchRemoteSkills(rawQuery) {
|
|
21
|
+
const query = rawQuery.trim();
|
|
22
|
+
if (!query) {
|
|
23
|
+
throw new Error('请输入搜索关键词(例如:huyuan-ai-cli huyuan-skill search training)');
|
|
24
|
+
}
|
|
25
|
+
const qNorm = query.toLowerCase();
|
|
26
|
+
console.log('正在连接 Huyuan 授权中心...');
|
|
27
|
+
const token = await fetchGatewayToken();
|
|
28
|
+
console.log('正在获取技能索引...');
|
|
29
|
+
const index = await fetchSkillsIndex(token);
|
|
30
|
+
const matched = index.skills.filter((s) => skillMatchesQuery(s, qNorm));
|
|
31
|
+
const table = new Table({
|
|
32
|
+
head: ['id', 'version', 'name', 'tags', 'description'],
|
|
33
|
+
wordWrap: true,
|
|
34
|
+
});
|
|
35
|
+
for (const s of matched) {
|
|
36
|
+
const tagsStr = s.tags?.length ? s.tags.join(', ') : '';
|
|
37
|
+
table.push([s.id, s.version ?? '', s.name ?? '', tagsStr, s.description ?? '']);
|
|
38
|
+
}
|
|
39
|
+
console.log(table.toString());
|
|
40
|
+
console.log(`TOTAL_MATCHED: ${String(matched.length)}`);
|
|
41
|
+
if (matched.length === 0) {
|
|
42
|
+
console.log('未找到匹配项,可尝试更换关键词或执行 huyuan-ai-cli huyuan-skill list 查看全部技能。');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,M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CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAExE,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC;QACtB,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC;QACtD,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IAEH,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACxB,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACxD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,CAAC;IAClF,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9B,OAAO,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACxD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,4DAA4D,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 解析 SKILL.md 首段 YAML frontmatter,读取 `version` 字段(与 skills-hub 仓库约定一致)。
|
|
3
|
+
*/
|
|
4
|
+
export declare function parseVersionFromSkillMdContent(content: string): string | undefined;
|
|
5
|
+
export declare function readLocalSkillVersion(skillMdPath: string): Promise<string | undefined>;
|
|
6
|
+
/**
|
|
7
|
+
* 比较两段 semver(仅支持 `数字.数字.数字`)。
|
|
8
|
+
* @returns `-1` a<b,`0` 相等,`1` a>b,`null` 任一侧非法
|
|
9
|
+
*/
|
|
10
|
+
export declare function compareSemver(a: string, b: string): -1 | 0 | 1 | null;
|
|
11
|
+
//# sourceMappingURL=skill-md-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-md-version.d.ts","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/skill-md-version.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAgClF;AAED,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAG5F;AAWD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAiBrE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { readFile } from 'node:fs/promises';
|
|
2
|
+
import yaml from 'js-yaml';
|
|
3
|
+
/**
|
|
4
|
+
* 解析 SKILL.md 首段 YAML frontmatter,读取 `version` 字段(与 skills-hub 仓库约定一致)。
|
|
5
|
+
*/
|
|
6
|
+
export function parseVersionFromSkillMdContent(content) {
|
|
7
|
+
const lines = content.split(/\r?\n/);
|
|
8
|
+
if (lines[0]?.trim() !== '---') {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
let end = -1;
|
|
12
|
+
for (let i = 1; i < lines.length; i++) {
|
|
13
|
+
if (lines[i]?.trim() === '---') {
|
|
14
|
+
end = i;
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if (end < 0) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
const block = lines.slice(1, end).join('\n');
|
|
22
|
+
try {
|
|
23
|
+
const data = yaml.load(block);
|
|
24
|
+
if (typeof data !== 'object' || data === null || !('version' in data)) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
const v = data.version;
|
|
28
|
+
if (typeof v === 'string') {
|
|
29
|
+
return v.trim();
|
|
30
|
+
}
|
|
31
|
+
if (typeof v === 'number') {
|
|
32
|
+
return String(v);
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export async function readLocalSkillVersion(skillMdPath) {
|
|
41
|
+
const raw = await readFile(skillMdPath, 'utf-8');
|
|
42
|
+
return parseVersionFromSkillMdContent(raw);
|
|
43
|
+
}
|
|
44
|
+
/** 解析为 major.minor.patch,否则 null */
|
|
45
|
+
function parseSemverParts(v) {
|
|
46
|
+
const m = v.trim().match(/^(\d+)\.(\d+)\.(\d+)$/);
|
|
47
|
+
if (!m) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return [Number(m[1]), Number(m[2]), Number(m[3])];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 比较两段 semver(仅支持 `数字.数字.数字`)。
|
|
54
|
+
* @returns `-1` a<b,`0` 相等,`1` a>b,`null` 任一侧非法
|
|
55
|
+
*/
|
|
56
|
+
export function compareSemver(a, b) {
|
|
57
|
+
const pa = parseSemverParts(a);
|
|
58
|
+
const pb = parseSemverParts(b);
|
|
59
|
+
if (!pa || !pb) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
for (let i = 0; i < 3; i++) {
|
|
63
|
+
const x = pa[i] ?? 0;
|
|
64
|
+
const y = pb[i] ?? 0;
|
|
65
|
+
if (x < y) {
|
|
66
|
+
return -1;
|
|
67
|
+
}
|
|
68
|
+
if (x > y) {
|
|
69
|
+
return 1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return 0;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=skill-md-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-md-version.js","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/skill-md-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,OAAe;IAC5D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC;IACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,KAAK,EAAE,CAAC;YAC/B,GAAG,GAAG,CAAC,CAAC;YACR,MAAM;QACR,CAAC;IACH,CAAC;IACD,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAY,CAAC;QACzC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,EAAE,CAAC;YACtE,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,CAAC,GAAI,IAA6B,CAAC,OAAO,CAAC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MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACrB,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YACV,OAAO,CAAC,CAAC,CAAC;QACZ,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YACV,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type SkillIndexEntry = {
|
|
2
|
+
id: string;
|
|
3
|
+
version?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
path: string;
|
|
7
|
+
/** 与 skills.index.yaml 中 tags 一致,供 search 匹配 */
|
|
8
|
+
tags?: string[];
|
|
9
|
+
};
|
|
10
|
+
export type SkillsIndexFile = {
|
|
11
|
+
schemaVersion?: number;
|
|
12
|
+
skills: SkillIndexEntry[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 拉取并解析 skills.index.yaml
|
|
16
|
+
*/
|
|
17
|
+
export declare function fetchSkillsIndex(token: string): Promise<SkillsIndexFile>;
|
|
18
|
+
export declare function findSkillById(index: SkillsIndexFile, skillId: string): SkillIndexEntry | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* 将索引 path 所在目录(SKILL.md 的父目录)完整下载到 targetDir。
|
|
21
|
+
*/
|
|
22
|
+
export declare function downloadSkillTree(token: string, indexEntry: SkillIndexEntry, targetDir: string): Promise<void>;
|
|
23
|
+
export declare function assertSkillEntryExists(targetDir: string): Promise<void>;
|
|
24
|
+
//# sourceMappingURL=skills-hub.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills-hub.d.ts","sourceRoot":"","sources":["../../../src/sites/huyuan-skill/skills-hub.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,eAAe,EAAE,CAAC;CAC3B,CAAC;AA2CF;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAoC9E;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,MAAM,GACd,eAAe,GAAG,SAAS,CAE7B;AAsED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,eAAe,EAC3B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAMf;AAED,wBAAsB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO7E"}
|