@yizhuan-cli/cli 0.1.2 → 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.
Files changed (3) hide show
  1. package/README.md +20 -0
  2. package/package.json +1 -1
  3. package/src/index.js +10 -2
package/README.md CHANGED
@@ -34,5 +34,25 @@ yizhuan config path
34
34
  yizhuan config show
35
35
  yizhuan execute --ability membership
36
36
  yizhuan execute --ability works --query "百家号昨天新增了哪些作品"
37
+ yizhuan execute --ability accounts --params "{\"mode\":\"public_search\",\"platform\":\"toutiao\",\"keyword\":\"张三\"}"
37
38
  yizhuan execute --ability radar --params "{\"mode\":\"following\"}"
39
+ yizhuan execute --ability radar --params "{\"mode\":\"unfollow\",\"articleId\":\"205169870\"}"
38
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.2",
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
@@ -14,6 +14,7 @@ const ABILITIES = new Set([
14
14
  'radar',
15
15
  'membership',
16
16
  'favorites',
17
+ 'public_author_search',
17
18
  'author_query',
18
19
  'statistics',
19
20
  'content_search',
@@ -34,13 +35,20 @@ Usage:
34
35
  yizhuan config path
35
36
  yizhuan config show
36
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
+
37
44
  Abilities:
38
45
  works 作品查询
39
- accounts 作者查询
46
+ accounts 作者/账号查询,支持 mode=search/public_search(含全网搜索)
40
47
  hot_topics 热点查询
41
- radar 雷达查询
48
+ radar 雷达查询,支持 mode=following/follow/unfollow/works
42
49
  membership 会员查询
43
50
  favorites 收藏查询
51
+ public_author_search 作者全网搜索,兼容低层能力
44
52
 
45
53
  Config:
46
54
  ${CONFIG_PATH}