@jackwener/opencli 0.6.3 โ 0.7.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 +1 -1
- package/README.zh-CN.md +1 -1
- package/SKILL.md +7 -2
- package/dist/build-manifest.js +2 -0
- package/dist/cli-manifest.json +604 -24
- package/dist/clis/reddit/comment.d.ts +1 -0
- package/dist/clis/reddit/comment.js +57 -0
- package/dist/clis/reddit/popular.yaml +40 -0
- package/dist/clis/reddit/read.yaml +76 -0
- package/dist/clis/reddit/save.d.ts +1 -0
- package/dist/clis/reddit/save.js +51 -0
- package/dist/clis/reddit/saved.d.ts +1 -0
- package/dist/clis/reddit/saved.js +46 -0
- package/dist/clis/reddit/search.yaml +37 -11
- package/dist/clis/reddit/subreddit.yaml +14 -4
- package/dist/clis/reddit/subscribe.d.ts +1 -0
- package/dist/clis/reddit/subscribe.js +50 -0
- package/dist/clis/reddit/upvote.d.ts +1 -0
- package/dist/clis/reddit/upvote.js +64 -0
- package/dist/clis/reddit/upvoted.d.ts +1 -0
- package/dist/clis/reddit/upvoted.js +46 -0
- package/dist/clis/reddit/user-comments.yaml +45 -0
- package/dist/clis/reddit/user-posts.yaml +43 -0
- package/dist/clis/reddit/user.yaml +39 -0
- package/dist/clis/twitter/article.d.ts +1 -0
- package/dist/clis/twitter/article.js +157 -0
- package/dist/clis/twitter/bookmark.d.ts +1 -0
- package/dist/clis/twitter/bookmark.js +63 -0
- package/dist/clis/twitter/follow.d.ts +1 -0
- package/dist/clis/twitter/follow.js +65 -0
- package/dist/clis/twitter/profile.js +110 -42
- package/dist/clis/twitter/thread.d.ts +1 -0
- package/dist/clis/twitter/thread.js +150 -0
- package/dist/clis/twitter/unbookmark.d.ts +1 -0
- package/dist/clis/twitter/unbookmark.js +62 -0
- package/dist/clis/twitter/unfollow.d.ts +1 -0
- package/dist/clis/twitter/unfollow.js +71 -0
- package/dist/main.js +31 -8
- package/dist/registry.d.ts +1 -0
- package/package.json +1 -1
- package/src/build-manifest.ts +3 -0
- package/src/clis/reddit/comment.ts +60 -0
- package/src/clis/reddit/popular.yaml +40 -0
- package/src/clis/reddit/read.yaml +76 -0
- package/src/clis/reddit/save.ts +54 -0
- package/src/clis/reddit/saved.ts +48 -0
- package/src/clis/reddit/search.yaml +37 -11
- package/src/clis/reddit/subreddit.yaml +14 -4
- package/src/clis/reddit/subscribe.ts +53 -0
- package/src/clis/reddit/upvote.ts +67 -0
- package/src/clis/reddit/upvoted.ts +48 -0
- package/src/clis/reddit/user-comments.yaml +45 -0
- package/src/clis/reddit/user-posts.yaml +43 -0
- package/src/clis/reddit/user.yaml +39 -0
- package/src/clis/twitter/article.ts +161 -0
- package/src/clis/twitter/bookmark.ts +67 -0
- package/src/clis/twitter/follow.ts +69 -0
- package/src/clis/twitter/profile.ts +113 -45
- package/src/clis/twitter/thread.ts +181 -0
- package/src/clis/twitter/unbookmark.ts +66 -0
- package/src/clis/twitter/unfollow.ts +75 -0
- package/src/main.ts +24 -5
- package/src/registry.ts +1 -0
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ npm install -g @jackwener/opencli@latest
|
|
|
136
136
|
| **zhihu** | `hot` `search` `question` | ๐ Browser |
|
|
137
137
|
| **xiaohongshu** | `search` `notifications` `feed` `me` `user` | ๐ Browser |
|
|
138
138
|
| **xueqiu** | `feed` `hot-stock` `hot` `search` `stock` `watchlist` | ๐ Browser |
|
|
139
|
-
| **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `following` `followers` `notifications` `post` `reply` `delete` `like` | ๐ Browser |
|
|
139
|
+
| **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `following` `followers` `notifications` `post` `reply` `delete` `like` `article` `follow` `unfollow` `bookmark` `unbookmark` | ๐ Browser |
|
|
140
140
|
| **reddit** | `hot` `frontpage` `search` `subreddit` | ๐ Browser |
|
|
141
141
|
| **weibo** | `hot` | ๐ Browser |
|
|
142
142
|
| **boss** | `search` `detail` | ๐ Browser |
|
package/README.zh-CN.md
CHANGED
|
@@ -135,7 +135,7 @@ npm install -g @jackwener/opencli@latest
|
|
|
135
135
|
| **zhihu** | `hot` `search` `question` | ๐ ๆต่งๅจ |
|
|
136
136
|
| **xiaohongshu** | `search` `notifications` `feed` `me` `user` | ๐ ๆต่งๅจ |
|
|
137
137
|
| **xueqiu** | `feed` `hot-stock` `hot` `search` `stock` `watchlist` | ๐ ๆต่งๅจ |
|
|
138
|
-
| **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `following` `followers` `notifications` `post` `reply` `delete` `like` | ๐ ๆต่งๅจ |
|
|
138
|
+
| **twitter** | `trending` `bookmarks` `profile` `search` `timeline` `following` `followers` `notifications` `post` `reply` `delete` `like` `article` `follow` `unfollow` `bookmark` `unbookmark` | ๐ ๆต่งๅจ |
|
|
139
139
|
| **reddit** | `hot` `frontpage` `search` `subreddit` | ๐ ๆต่งๅจ |
|
|
140
140
|
| **weibo** | `hot` | ๐ ๆต่งๅจ |
|
|
141
141
|
| **boss** | `search` `detail` | ๐ ๆต่งๅจ |
|
package/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: opencli
|
|
3
3
|
description: "OpenCLI โ Make any website your CLI. Zero risk, AI-powered, reuse Chrome login."
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
author: jackwener
|
|
6
6
|
tags: [cli, browser, web, mcp, playwright, bilibili, zhihu, twitter, github, v2ex, hackernews, reddit, xiaohongshu, xueqiu, AI, agent]
|
|
7
7
|
---
|
|
@@ -86,8 +86,13 @@ opencli github search --keyword "cli" # ๆ็ดขไปๅบ
|
|
|
86
86
|
opencli twitter trending --limit 10 # ็ญ้จ่ฏ้ข
|
|
87
87
|
opencli twitter bookmarks --limit 20 # ่ทๅๆถ่็ไนฆ็ญพๆจๆ
|
|
88
88
|
opencli twitter search --keyword "AI" # ๆ็ดขๆจๆ
|
|
89
|
-
opencli twitter profile
|
|
89
|
+
opencli twitter profile elonmusk # ็จๆท่ตๆ
|
|
90
90
|
opencli twitter timeline --limit 20 # ๆถ้ด็บฟ
|
|
91
|
+
opencli twitter article 1891511252174299446 # ๆจๆ้ฟๆๅ
ๅฎน
|
|
92
|
+
opencli twitter follow elonmusk # ๅ
ณๆณจ็จๆท
|
|
93
|
+
opencli twitter unfollow elonmusk # ๅๆถๅ
ณๆณจ
|
|
94
|
+
opencli twitter bookmark https://x.com/... # ๆถ่ๆจๆ
|
|
95
|
+
opencli twitter unbookmark https://x.com/... # ๅๆถๆถ่
|
|
91
96
|
|
|
92
97
|
# Reddit (browser)
|
|
93
98
|
opencli reddit hot --limit 10 # ็ญ้จๅธๅญ
|
package/dist/build-manifest.js
CHANGED
|
@@ -107,6 +107,7 @@ function scanTs(filePath, site) {
|
|
|
107
107
|
const defaultMatch = body.match(/default\s*:\s*([^,}]+)/);
|
|
108
108
|
const requiredMatch = body.match(/required\s*:\s*(true|false)/);
|
|
109
109
|
const helpMatch = body.match(/help\s*:\s*['"`]([^'"`]*)['"`]/);
|
|
110
|
+
const positionalMatch = body.match(/positional\s*:\s*(true|false)/);
|
|
110
111
|
let defaultVal = undefined;
|
|
111
112
|
if (defaultMatch) {
|
|
112
113
|
const raw = defaultMatch[1].trim();
|
|
@@ -126,6 +127,7 @@ function scanTs(filePath, site) {
|
|
|
126
127
|
type: typeMatch?.[1] ?? 'str',
|
|
127
128
|
default: defaultVal,
|
|
128
129
|
required: requiredMatch?.[1] === 'true',
|
|
130
|
+
positional: positionalMatch?.[1] === 'true' || undefined,
|
|
129
131
|
help: helpMatch?.[1] ?? '',
|
|
130
132
|
});
|
|
131
133
|
}
|