@yizhuan-cli/cli 0.1.3-beta.0 → 0.1.3-beta.1

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 CHANGED
@@ -36,4 +36,23 @@ yizhuan execute --ability membership
36
36
  yizhuan execute --ability works --query "百家号昨天新增了哪些作品"
37
37
  yizhuan execute --ability accounts --params "{\"mode\":\"public_search\",\"platform\":\"toutiao\",\"keyword\":\"张三\"}"
38
38
  yizhuan execute --ability radar --params "{\"mode\":\"following\"}"
39
+ yizhuan execute --ability radar --params "{\"mode\":\"unfollow\",\"articleId\":\"205169870\"}"
39
40
  ```
41
+
42
+ ## 支持的典型能力
43
+
44
+ - 作品查询:`yizhuan execute --ability works --query "AI 相关的热门作品有哪些"`
45
+ - 作者查询:`yizhuan execute --ability accounts --query "查询张三这个作者"`
46
+ - 作者全网搜索:`yizhuan execute --ability accounts --params "{\"mode\":\"public_search\",\"platform\":\"toutiao\",\"keyword\":\"张三\"}"`
47
+ - 关注全网作者:`yizhuan execute --ability accounts --params "{\"mode\":\"follow_public_author\",\"platform\":\"toutiao\",\"keyword\":\"张三\",\"extAuthorId\":\"author-1\"}"`
48
+ - 热点查询:`yizhuan execute --ability hot_topics --query "查询头条平台热点话题"`
49
+ - 雷达查询:`yizhuan execute --ability radar --params "{\"mode\":\"following\"}"`
50
+ - 取消关注雷达作者:先查询关注列表拿到 `articleId`,再执行 `yizhuan execute --ability radar --params "{\"mode\":\"unfollow\",\"articleId\":\"205169870\"}"`
51
+ - 会员查询:`yizhuan execute --ability membership --query "我的会员什么时候到期"`
52
+
53
+ 如果你是通过 Codex、Cursor、Claude Code 这类 Agent 使用 CLI,也可以直接用自然语言提问,例如:
54
+
55
+ - `在头条号全网搜索张三这个作者`
56
+ - `查询 AI 相关的热门文章`
57
+ - `取消关注陈某某先生`
58
+ - `我的会员什么时候到期`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yizhuan-cli/cli",
3
- "version": "0.1.3-beta.0",
3
+ "version": "0.1.3-beta.1",
4
4
  "description": "易撰命令行工具,用于通过 API Key 查询易撰真实数据。",
5
5
  "private": false,
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -35,11 +35,17 @@ Usage:
35
35
  yizhuan config path
36
36
  yizhuan config show
37
37
 
38
+ Examples:
39
+ yizhuan execute --ability works --query "百家号昨天新增了哪些作品"
40
+ yizhuan execute --ability accounts --params "{\\"mode\\":\\"public_search\\",\\"platform\\":\\"toutiao\\",\\"keyword\\":\\"张三\\"}"
41
+ yizhuan execute --ability radar --params "{\\"mode\\":\\"following\\"}"
42
+ yizhuan execute --ability radar --params "{\\"mode\\":\\"unfollow\\",\\"articleId\\":\\"205169870\\"}"
43
+
38
44
  Abilities:
39
45
  works 作品查询
40
- accounts 作者/账号查询,支持 mode=search/public_search
46
+ accounts 作者/账号查询,支持 mode=search/public_search(含全网搜索)
41
47
  hot_topics 热点查询
42
- radar 雷达查询
48
+ radar 雷达查询,支持 mode=following/follow/unfollow/works
43
49
  membership 会员查询
44
50
  favorites 收藏查询
45
51
  public_author_search 作者全网搜索,兼容低层能力