@yizhuan-cli/cli 0.1.3-beta.0 → 0.1.3-beta.2
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 +23 -0
- package/package.json +1 -1
- package/src/index.js +9 -2
package/README.md
CHANGED
|
@@ -36,4 +36,27 @@ 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\":\"timeline\",\"timeRange\":\"7d\"}"
|
|
40
|
+
yizhuan execute --ability radar --params "{\"mode\":\"unfollow\",\"articleId\":\"205169870\"}"
|
|
39
41
|
```
|
|
42
|
+
|
|
43
|
+
## 支持的典型能力
|
|
44
|
+
|
|
45
|
+
- 作品查询:`yizhuan execute --ability works --query "AI 相关的热门作品有哪些"`
|
|
46
|
+
- 作者查询:`yizhuan execute --ability accounts --query "查询张三这个作者"`
|
|
47
|
+
- 作者全网搜索:`yizhuan execute --ability accounts --params "{\"mode\":\"public_search\",\"platform\":\"toutiao\",\"keyword\":\"张三\"}"`
|
|
48
|
+
- 关注全网作者:`yizhuan execute --ability accounts --params "{\"mode\":\"follow_public_author\",\"platform\":\"toutiao\",\"keyword\":\"张三\",\"extAuthorId\":\"author-1\"}"`
|
|
49
|
+
- 热点查询:`yizhuan execute --ability hot_topics --query "查询头条平台热点话题"`
|
|
50
|
+
- 雷达查询:`yizhuan execute --ability radar --params "{\"mode\":\"following\"}"`
|
|
51
|
+
- 竞品动态:`yizhuan execute --ability radar --params "{\"mode\":\"timeline\",\"timeRange\":\"7d\"}"`
|
|
52
|
+
- 竞品动态筛选:`yizhuan execute --ability radar --params "{\"mode\":\"timeline\",\"timeRange\":\"7d\",\"platform\":\"baijiahao\",\"keyword\":\"AI\"}"`
|
|
53
|
+
- 取消关注雷达作者:先查询关注列表拿到 `articleId`,再执行 `yizhuan execute --ability radar --params "{\"mode\":\"unfollow\",\"articleId\":\"205169870\"}"`
|
|
54
|
+
- 会员查询:`yizhuan execute --ability membership --query "我的会员什么时候到期"`
|
|
55
|
+
|
|
56
|
+
如果你是通过 Codex、Cursor、Claude Code 这类 Agent 使用 CLI,也可以直接用自然语言提问,例如:
|
|
57
|
+
|
|
58
|
+
- `在头条号全网搜索张三这个作者`
|
|
59
|
+
- `查询我关注账号近7天的竞品动态`
|
|
60
|
+
- `查询 AI 相关的热门文章`
|
|
61
|
+
- `取消关注陈某某先生`
|
|
62
|
+
- `我的会员什么时候到期`
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -35,11 +35,18 @@ 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\\":\\"timeline\\",\\"timeRange\\":\\"7d\\"}"
|
|
43
|
+
yizhuan execute --ability radar --params "{\\"mode\\":\\"unfollow\\",\\"articleId\\":\\"205169870\\"}"
|
|
44
|
+
|
|
38
45
|
Abilities:
|
|
39
46
|
works 作品查询
|
|
40
|
-
accounts 作者/账号查询,支持 mode=search/public_search
|
|
47
|
+
accounts 作者/账号查询,支持 mode=search/public_search(含全网搜索)
|
|
41
48
|
hot_topics 热点查询
|
|
42
|
-
radar
|
|
49
|
+
radar 雷达查询,支持 mode=following/timeline/follow/unfollow/works
|
|
43
50
|
membership 会员查询
|
|
44
51
|
favorites 收藏查询
|
|
45
52
|
public_author_search 作者全网搜索,兼容低层能力
|