@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.
Files changed (63) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/SKILL.md +7 -2
  4. package/dist/build-manifest.js +2 -0
  5. package/dist/cli-manifest.json +604 -24
  6. package/dist/clis/reddit/comment.d.ts +1 -0
  7. package/dist/clis/reddit/comment.js +57 -0
  8. package/dist/clis/reddit/popular.yaml +40 -0
  9. package/dist/clis/reddit/read.yaml +76 -0
  10. package/dist/clis/reddit/save.d.ts +1 -0
  11. package/dist/clis/reddit/save.js +51 -0
  12. package/dist/clis/reddit/saved.d.ts +1 -0
  13. package/dist/clis/reddit/saved.js +46 -0
  14. package/dist/clis/reddit/search.yaml +37 -11
  15. package/dist/clis/reddit/subreddit.yaml +14 -4
  16. package/dist/clis/reddit/subscribe.d.ts +1 -0
  17. package/dist/clis/reddit/subscribe.js +50 -0
  18. package/dist/clis/reddit/upvote.d.ts +1 -0
  19. package/dist/clis/reddit/upvote.js +64 -0
  20. package/dist/clis/reddit/upvoted.d.ts +1 -0
  21. package/dist/clis/reddit/upvoted.js +46 -0
  22. package/dist/clis/reddit/user-comments.yaml +45 -0
  23. package/dist/clis/reddit/user-posts.yaml +43 -0
  24. package/dist/clis/reddit/user.yaml +39 -0
  25. package/dist/clis/twitter/article.d.ts +1 -0
  26. package/dist/clis/twitter/article.js +157 -0
  27. package/dist/clis/twitter/bookmark.d.ts +1 -0
  28. package/dist/clis/twitter/bookmark.js +63 -0
  29. package/dist/clis/twitter/follow.d.ts +1 -0
  30. package/dist/clis/twitter/follow.js +65 -0
  31. package/dist/clis/twitter/profile.js +110 -42
  32. package/dist/clis/twitter/thread.d.ts +1 -0
  33. package/dist/clis/twitter/thread.js +150 -0
  34. package/dist/clis/twitter/unbookmark.d.ts +1 -0
  35. package/dist/clis/twitter/unbookmark.js +62 -0
  36. package/dist/clis/twitter/unfollow.d.ts +1 -0
  37. package/dist/clis/twitter/unfollow.js +71 -0
  38. package/dist/main.js +31 -8
  39. package/dist/registry.d.ts +1 -0
  40. package/package.json +1 -1
  41. package/src/build-manifest.ts +3 -0
  42. package/src/clis/reddit/comment.ts +60 -0
  43. package/src/clis/reddit/popular.yaml +40 -0
  44. package/src/clis/reddit/read.yaml +76 -0
  45. package/src/clis/reddit/save.ts +54 -0
  46. package/src/clis/reddit/saved.ts +48 -0
  47. package/src/clis/reddit/search.yaml +37 -11
  48. package/src/clis/reddit/subreddit.yaml +14 -4
  49. package/src/clis/reddit/subscribe.ts +53 -0
  50. package/src/clis/reddit/upvote.ts +67 -0
  51. package/src/clis/reddit/upvoted.ts +48 -0
  52. package/src/clis/reddit/user-comments.yaml +45 -0
  53. package/src/clis/reddit/user-posts.yaml +43 -0
  54. package/src/clis/reddit/user.yaml +39 -0
  55. package/src/clis/twitter/article.ts +161 -0
  56. package/src/clis/twitter/bookmark.ts +67 -0
  57. package/src/clis/twitter/follow.ts +69 -0
  58. package/src/clis/twitter/profile.ts +113 -45
  59. package/src/clis/twitter/thread.ts +181 -0
  60. package/src/clis/twitter/unbookmark.ts +66 -0
  61. package/src/clis/twitter/unfollow.ts +75 -0
  62. package/src/main.ts +24 -5
  63. 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.6.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 --username elonmusk # ็”จๆˆท่ต„ๆ–™
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 # ็ƒญ้—จๅธ–ๅญ
@@ -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
  }