@jackwener/opencli 1.4.0 → 1.4.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/.github/actions/setup-chrome/action.yml +5 -4
- package/.github/workflows/ci.yml +17 -3
- package/.github/workflows/e2e-headed.yml +16 -3
- package/CHANGELOG.md +23 -0
- package/PRIVACY.md +57 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/SKILL.md +101 -2
- package/dist/cli-manifest.json +720 -32
- package/dist/clis/apple-podcasts/search.js +2 -1
- package/dist/clis/arxiv/search.js +2 -2
- package/dist/clis/bbc/news.js +0 -1
- package/dist/clis/ctrip/search.js +0 -1
- package/dist/clis/douyin/_shared/browser-fetch.d.ts +10 -0
- package/dist/clis/douyin/_shared/browser-fetch.js +30 -0
- package/dist/clis/douyin/_shared/browser-fetch.test.d.ts +1 -0
- package/dist/clis/douyin/_shared/browser-fetch.test.js +31 -0
- package/dist/clis/douyin/_shared/creation-id.d.ts +1 -0
- package/dist/clis/douyin/_shared/creation-id.js +5 -0
- package/dist/clis/douyin/_shared/creation-id.test.d.ts +1 -0
- package/dist/clis/douyin/_shared/creation-id.test.js +22 -0
- package/dist/clis/douyin/_shared/imagex-upload.d.ts +20 -0
- package/dist/clis/douyin/_shared/imagex-upload.js +53 -0
- package/dist/clis/douyin/_shared/imagex-upload.test.d.ts +1 -0
- package/dist/clis/douyin/_shared/imagex-upload.test.js +87 -0
- package/dist/clis/douyin/_shared/sts2.d.ts +8 -0
- package/dist/clis/douyin/_shared/sts2.js +15 -0
- package/dist/clis/douyin/_shared/text-extra.d.ts +18 -0
- package/dist/clis/douyin/_shared/text-extra.js +15 -0
- package/dist/clis/douyin/_shared/text-extra.test.d.ts +1 -0
- package/dist/clis/douyin/_shared/text-extra.test.js +37 -0
- package/dist/clis/douyin/_shared/timing.d.ts +2 -0
- package/dist/clis/douyin/_shared/timing.js +22 -0
- package/dist/clis/douyin/_shared/timing.test.d.ts +1 -0
- package/dist/clis/douyin/_shared/timing.test.js +28 -0
- package/dist/clis/douyin/_shared/tos-upload-short-read.test.d.ts +11 -0
- package/dist/clis/douyin/_shared/tos-upload-short-read.test.js +83 -0
- package/dist/clis/douyin/_shared/tos-upload.d.ts +53 -0
- package/dist/clis/douyin/_shared/tos-upload.js +295 -0
- package/dist/clis/douyin/_shared/tos-upload.test.d.ts +1 -0
- package/dist/clis/douyin/_shared/tos-upload.test.js +229 -0
- package/dist/clis/douyin/_shared/transcode.d.ts +27 -0
- package/dist/clis/douyin/_shared/transcode.js +45 -0
- package/dist/clis/douyin/_shared/transcode.test.d.ts +1 -0
- package/dist/clis/douyin/_shared/transcode.test.js +93 -0
- package/dist/clis/douyin/_shared/types.d.ts +26 -0
- package/dist/clis/douyin/_shared/types.js +1 -0
- package/dist/clis/douyin/activities.d.ts +1 -0
- package/dist/clis/douyin/activities.js +20 -0
- package/dist/clis/douyin/activities.test.d.ts +1 -0
- package/dist/clis/douyin/activities.test.js +22 -0
- package/dist/clis/douyin/collections.d.ts +1 -0
- package/dist/clis/douyin/collections.js +22 -0
- package/dist/clis/douyin/collections.test.d.ts +1 -0
- package/dist/clis/douyin/collections.test.js +23 -0
- package/dist/clis/douyin/delete.d.ts +1 -0
- package/dist/clis/douyin/delete.js +18 -0
- package/dist/clis/douyin/delete.test.d.ts +1 -0
- package/dist/clis/douyin/delete.test.js +11 -0
- package/dist/clis/douyin/draft.d.ts +14 -0
- package/dist/clis/douyin/draft.js +237 -0
- package/dist/clis/douyin/draft.test.d.ts +1 -0
- package/dist/clis/douyin/draft.test.js +11 -0
- package/dist/clis/douyin/drafts.d.ts +1 -0
- package/dist/clis/douyin/drafts.js +23 -0
- package/dist/clis/douyin/drafts.test.d.ts +1 -0
- package/dist/clis/douyin/drafts.test.js +11 -0
- package/dist/clis/douyin/hashtag.d.ts +1 -0
- package/dist/clis/douyin/hashtag.js +45 -0
- package/dist/clis/douyin/hashtag.test.d.ts +1 -0
- package/dist/clis/douyin/hashtag.test.js +25 -0
- package/dist/clis/douyin/location.d.ts +1 -0
- package/dist/clis/douyin/location.js +24 -0
- package/dist/clis/douyin/location.test.d.ts +1 -0
- package/dist/clis/douyin/location.test.js +23 -0
- package/dist/clis/douyin/profile.d.ts +1 -0
- package/dist/clis/douyin/profile.js +28 -0
- package/dist/clis/douyin/profile.test.d.ts +1 -0
- package/dist/clis/douyin/profile.test.js +11 -0
- package/dist/clis/douyin/publish.d.ts +14 -0
- package/dist/clis/douyin/publish.js +288 -0
- package/dist/clis/douyin/publish.test.d.ts +1 -0
- package/dist/clis/douyin/publish.test.js +38 -0
- package/dist/clis/douyin/stats.d.ts +1 -0
- package/dist/clis/douyin/stats.js +27 -0
- package/dist/clis/douyin/stats.test.d.ts +1 -0
- package/dist/clis/douyin/stats.test.js +22 -0
- package/dist/clis/douyin/update.d.ts +1 -0
- package/dist/clis/douyin/update.js +31 -0
- package/dist/clis/douyin/update.test.d.ts +1 -0
- package/dist/clis/douyin/update.test.js +11 -0
- package/dist/clis/douyin/videos.d.ts +1 -0
- package/dist/clis/douyin/videos.js +34 -0
- package/dist/clis/douyin/videos.test.d.ts +1 -0
- package/dist/clis/douyin/videos.test.js +11 -0
- package/dist/clis/hackernews/search.yaml +1 -1
- package/dist/clis/instagram/search.yaml +2 -1
- package/dist/clis/linux-do/search.yaml +3 -1
- package/dist/clis/medium/search.js +1 -1
- package/dist/clis/reuters/search.js +0 -1
- package/dist/clis/twitter/search.js +5 -3
- package/dist/clis/twitter/search.test.js +54 -2
- package/dist/clis/weibo/comments.d.ts +1 -0
- package/dist/clis/weibo/comments.js +53 -0
- package/dist/clis/weibo/feed.d.ts +1 -0
- package/dist/clis/weibo/feed.js +56 -0
- package/dist/clis/weibo/hot.js +0 -1
- package/dist/clis/weibo/me.d.ts +1 -0
- package/dist/clis/weibo/me.js +76 -0
- package/dist/clis/weibo/post.d.ts +1 -0
- package/dist/clis/weibo/post.js +75 -0
- package/dist/clis/weibo/user.d.ts +1 -0
- package/dist/clis/weibo/user.js +63 -0
- package/dist/clis/weibo/utils.d.ts +6 -0
- package/dist/clis/weibo/utils.js +30 -0
- package/dist/clis/weread/search.js +3 -2
- package/dist/clis/xueqiu/search.yaml +2 -1
- package/dist/clis/yahoo-finance/quote.js +0 -1
- package/dist/clis/youtube/channel.d.ts +1 -0
- package/dist/clis/youtube/channel.js +150 -0
- package/dist/clis/youtube/comments.d.ts +1 -0
- package/dist/clis/youtube/comments.js +95 -0
- package/dist/clis/youtube/search.js +0 -1
- package/dist/clis/zhihu/search.yaml +2 -1
- package/dist/external-clis.yaml +0 -17
- package/dist/weread-search-regression.test.d.ts +1 -0
- package/dist/weread-search-regression.test.js +39 -0
- package/docs/.vitepress/config.mts +13 -0
- package/docs/adapters/browser/douyin.md +75 -0
- package/docs/adapters/browser/twitter.md +6 -0
- package/docs/adapters/index.md +6 -1
- package/extension/dist/background.js +508 -518
- package/extension/manifest.json +6 -2
- package/extension/package.json +1 -1
- package/extension/popup.html +84 -0
- package/extension/popup.js +25 -0
- package/extension/src/background.ts +20 -1
- package/package.json +1 -1
- package/src/clis/apple-podcasts/search.ts +2 -1
- package/src/clis/arxiv/search.ts +2 -2
- package/src/clis/bbc/news.ts +0 -1
- package/src/clis/ctrip/search.ts +0 -1
- package/src/clis/douyin/_shared/browser-fetch.test.ts +38 -0
- package/src/clis/douyin/_shared/browser-fetch.ts +45 -0
- package/src/clis/douyin/_shared/creation-id.test.ts +26 -0
- package/src/clis/douyin/_shared/creation-id.ts +8 -0
- package/src/clis/douyin/_shared/imagex-upload.test.ts +113 -0
- package/src/clis/douyin/_shared/imagex-upload.ts +76 -0
- package/src/clis/douyin/_shared/sts2.ts +20 -0
- package/src/clis/douyin/_shared/text-extra.test.ts +42 -0
- package/src/clis/douyin/_shared/text-extra.ts +33 -0
- package/src/clis/douyin/_shared/timing.test.ts +38 -0
- package/src/clis/douyin/_shared/timing.ts +22 -0
- package/src/clis/douyin/_shared/tos-upload-short-read.test.ts +102 -0
- package/src/clis/douyin/_shared/tos-upload.test.ts +281 -0
- package/src/clis/douyin/_shared/tos-upload.ts +444 -0
- package/src/clis/douyin/_shared/transcode.test.ts +117 -0
- package/src/clis/douyin/_shared/transcode.ts +78 -0
- package/src/clis/douyin/_shared/types.ts +29 -0
- package/src/clis/douyin/activities.test.ts +25 -0
- package/src/clis/douyin/activities.ts +23 -0
- package/src/clis/douyin/collections.test.ts +26 -0
- package/src/clis/douyin/collections.ts +25 -0
- package/src/clis/douyin/delete.test.ts +12 -0
- package/src/clis/douyin/delete.ts +20 -0
- package/src/clis/douyin/draft.test.ts +12 -0
- package/src/clis/douyin/draft.ts +282 -0
- package/src/clis/douyin/drafts.test.ts +12 -0
- package/src/clis/douyin/drafts.ts +27 -0
- package/src/clis/douyin/hashtag.test.ts +28 -0
- package/src/clis/douyin/hashtag.ts +56 -0
- package/src/clis/douyin/location.test.ts +26 -0
- package/src/clis/douyin/location.ts +27 -0
- package/src/clis/douyin/profile.test.ts +12 -0
- package/src/clis/douyin/profile.ts +37 -0
- package/src/clis/douyin/publish.test.ts +45 -0
- package/src/clis/douyin/publish.ts +340 -0
- package/src/clis/douyin/stats.test.ts +25 -0
- package/src/clis/douyin/stats.ts +30 -0
- package/src/clis/douyin/update.test.ts +12 -0
- package/src/clis/douyin/update.ts +43 -0
- package/src/clis/douyin/videos.test.ts +12 -0
- package/src/clis/douyin/videos.ts +49 -0
- package/src/clis/hackernews/search.yaml +1 -1
- package/src/clis/instagram/search.yaml +2 -1
- package/src/clis/linux-do/search.yaml +3 -1
- package/src/clis/medium/search.ts +1 -1
- package/src/clis/reuters/search.ts +0 -1
- package/src/clis/twitter/search.test.ts +69 -2
- package/src/clis/twitter/search.ts +5 -3
- package/src/clis/weibo/comments.ts +54 -0
- package/src/clis/weibo/feed.ts +57 -0
- package/src/clis/weibo/hot.ts +0 -1
- package/src/clis/weibo/me.ts +77 -0
- package/src/clis/weibo/post.ts +77 -0
- package/src/clis/weibo/user.ts +64 -0
- package/src/clis/weibo/utils.ts +32 -0
- package/src/clis/weread/search.ts +3 -2
- package/src/clis/xueqiu/search.yaml +2 -1
- package/src/clis/yahoo-finance/quote.ts +0 -1
- package/src/clis/youtube/channel.ts +155 -0
- package/src/clis/youtube/comments.ts +97 -0
- package/src/clis/youtube/search.ts +0 -1
- package/src/clis/zhihu/search.yaml +2 -1
- package/src/external-clis.yaml +0 -17
- package/src/weread-search-regression.test.ts +44 -0
- package/tests/e2e/browser-public-extended.test.ts +162 -0
- package/tests/e2e/browser-public.test.ts +7 -146
- package/vitest.config.ts +24 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
name: Setup Chrome
|
|
2
|
-
description: Install real Chrome
|
|
1
|
+
name: Setup Chrome
|
|
2
|
+
description: Install real Chrome for browser testing (with xvfb on Linux)
|
|
3
3
|
|
|
4
4
|
outputs:
|
|
5
5
|
chrome-path:
|
|
@@ -19,8 +19,9 @@ runs:
|
|
|
19
19
|
shell: bash
|
|
20
20
|
run: |
|
|
21
21
|
echo "Chrome path: ${{ steps.setup-chrome.outputs.chrome-path }}"
|
|
22
|
-
${{ steps.setup-chrome.outputs.chrome-path }} --version
|
|
22
|
+
"${{ steps.setup-chrome.outputs.chrome-path }}" --version
|
|
23
23
|
|
|
24
|
-
- name: Install xvfb
|
|
24
|
+
- name: Install xvfb (Linux only)
|
|
25
|
+
if: runner.os == 'Linux'
|
|
25
26
|
shell: bash
|
|
26
27
|
run: sudo apt-get install -y xvfb
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -86,7 +86,13 @@ jobs:
|
|
|
86
86
|
smoke-test:
|
|
87
87
|
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
|
88
88
|
needs: build
|
|
89
|
-
runs-on:
|
|
89
|
+
runs-on: ${{ matrix.os }}
|
|
90
|
+
strategy:
|
|
91
|
+
fail-fast: false
|
|
92
|
+
matrix:
|
|
93
|
+
# NOTE: Windows excluded — browser-actions/setup-chrome hangs during
|
|
94
|
+
# Chrome MSI installation on Windows runners (known issue).
|
|
95
|
+
os: [ubuntu-latest, macos-latest]
|
|
90
96
|
steps:
|
|
91
97
|
- uses: actions/checkout@v6
|
|
92
98
|
|
|
@@ -98,17 +104,25 @@ jobs:
|
|
|
98
104
|
- name: Install dependencies
|
|
99
105
|
run: npm ci
|
|
100
106
|
|
|
101
|
-
- name: Setup Chrome
|
|
107
|
+
- name: Setup Chrome
|
|
102
108
|
uses: ./.github/actions/setup-chrome
|
|
103
109
|
id: setup-chrome
|
|
104
110
|
|
|
105
111
|
- name: Build
|
|
106
112
|
run: npm run build
|
|
107
113
|
|
|
108
|
-
- name: Run smoke tests
|
|
114
|
+
- name: Run smoke tests (Linux, via xvfb)
|
|
115
|
+
if: runner.os == 'Linux'
|
|
109
116
|
run: |
|
|
110
117
|
xvfb-run --auto-servernum --server-args="-screen 0 1280x720x24" \
|
|
111
118
|
npx vitest run tests/smoke/ --reporter=verbose
|
|
112
119
|
env:
|
|
113
120
|
OPENCLI_BROWSER_EXECUTABLE_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
|
|
121
|
+
|
|
122
|
+
- name: Run smoke tests (macOS / Windows)
|
|
123
|
+
if: runner.os != 'Linux'
|
|
124
|
+
run: npx vitest run tests/smoke/ --reporter=verbose
|
|
125
|
+
env:
|
|
126
|
+
OPENCLI_BROWSER_EXECUTABLE_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
|
|
114
127
|
timeout-minutes: 15
|
|
128
|
+
|
|
@@ -33,7 +33,13 @@ concurrency:
|
|
|
33
33
|
|
|
34
34
|
jobs:
|
|
35
35
|
e2e-headed:
|
|
36
|
-
runs-on:
|
|
36
|
+
runs-on: ${{ matrix.os }}
|
|
37
|
+
strategy:
|
|
38
|
+
fail-fast: false
|
|
39
|
+
matrix:
|
|
40
|
+
# NOTE: Windows excluded — browser-actions/setup-chrome hangs during
|
|
41
|
+
# Chrome MSI installation on Windows runners (known issue).
|
|
42
|
+
os: [ubuntu-latest, macos-latest]
|
|
37
43
|
timeout-minutes: 20
|
|
38
44
|
steps:
|
|
39
45
|
- uses: actions/checkout@v6
|
|
@@ -46,16 +52,23 @@ jobs:
|
|
|
46
52
|
- name: Install dependencies
|
|
47
53
|
run: npm ci
|
|
48
54
|
|
|
49
|
-
- name: Setup Chrome
|
|
55
|
+
- name: Setup Chrome
|
|
50
56
|
uses: ./.github/actions/setup-chrome
|
|
51
57
|
id: setup-chrome
|
|
52
58
|
|
|
53
59
|
- name: Build
|
|
54
60
|
run: npm run build
|
|
55
61
|
|
|
56
|
-
- name: Run E2E tests (
|
|
62
|
+
- name: Run E2E tests (Linux, via xvfb)
|
|
63
|
+
if: runner.os == 'Linux'
|
|
57
64
|
run: |
|
|
58
65
|
xvfb-run --auto-servernum --server-args="-screen 0 1280x720x24" \
|
|
59
66
|
npx vitest run tests/e2e/ --reporter=verbose
|
|
60
67
|
env:
|
|
61
68
|
OPENCLI_BROWSER_EXECUTABLE_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
|
|
69
|
+
|
|
70
|
+
- name: Run E2E tests (macOS / Windows)
|
|
71
|
+
if: runner.os != 'Linux'
|
|
72
|
+
run: npx vitest run tests/e2e/ --reporter=verbose
|
|
73
|
+
env:
|
|
74
|
+
OPENCLI_BROWSER_EXECUTABLE_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.1](https://github.com/jackwener/opencli/compare/v1.4.0...v1.4.1) (2026-03-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **douyin:** add Douyin creator center adapter — 14 commands, 8-phase publish pipeline ([#416](https://github.com/jackwener/opencli/issues/416))
|
|
9
|
+
* **weibo,youtube:** add Weibo commands and YouTube channel/comments ([#418](https://github.com/jackwener/opencli/issues/418))
|
|
10
|
+
* **twitter:** add filter option for search ([#410](https://github.com/jackwener/opencli/issues/410))
|
|
11
|
+
* **extension:** add popup UI, privacy policy, and CSP for Chrome Web Store ([#415](https://github.com/jackwener/opencli/issues/415))
|
|
12
|
+
* add url field to 9 search adapters (67% -> 97% coverage) ([#414](https://github.com/jackwener/opencli/issues/414))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **extension:** improve UX when daemon is not running — show hint in popup, reduce reconnect noise ([#424](https://github.com/jackwener/opencli/issues/424))
|
|
18
|
+
* remove incorrect gws and readwise external CLI entries ([#419](https://github.com/jackwener/opencli/issues/419), [#420](https://github.com/jackwener/opencli/issues/420))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### CI
|
|
22
|
+
|
|
23
|
+
* limit default e2e to bilibili/zhihu/v2ex, gate extended browser tests ([#421](https://github.com/jackwener/opencli/issues/421), [#423](https://github.com/jackwener/opencli/issues/423))
|
|
24
|
+
|
|
25
|
+
|
|
3
26
|
## [1.4.0](https://github.com/jackwener/opencli/compare/v1.3.3...v1.4.0) (2026-03-25)
|
|
4
27
|
|
|
5
28
|
|
package/PRIVACY.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Privacy Policy — OpenCLI Browser Extension
|
|
2
|
+
|
|
3
|
+
**Last updated**: 2026-03-25
|
|
4
|
+
|
|
5
|
+
## What the extension does
|
|
6
|
+
|
|
7
|
+
The OpenCLI Browser Extension is a bridge between the [OpenCLI](https://github.com/jackwener/opencli) command-line tool and your Chrome browser. It receives commands from a **locally running daemon** process via WebSocket (`localhost` only) and executes them in **isolated Chrome windows** that are separate from your normal browsing session.
|
|
8
|
+
|
|
9
|
+
## Data collection
|
|
10
|
+
|
|
11
|
+
The extension does **NOT** collect, store, transmit, or sell any personal data. Specifically:
|
|
12
|
+
|
|
13
|
+
- **No analytics or telemetry** — no data is sent to any remote server.
|
|
14
|
+
- **No user tracking** — no cookies, identifiers, or fingerprints are created.
|
|
15
|
+
- **No external network requests** — all communication is strictly `localhost` (WebSocket to `ws://localhost:19825`).
|
|
16
|
+
|
|
17
|
+
## Permissions explained
|
|
18
|
+
|
|
19
|
+
| Permission | Why it's needed |
|
|
20
|
+
|------------|----------------|
|
|
21
|
+
| `debugger` | Required to use Chrome DevTools Protocol (CDP) for browser automation — executing JavaScript, capturing page content, and taking screenshots in isolated windows. |
|
|
22
|
+
| `tabs` | Required to create and manage isolated automation windows and tabs, separate from the user's browsing session. |
|
|
23
|
+
| `cookies` | Required to read site-specific cookies (scoped by domain) so CLI commands can authenticate with websites the user is already logged into. Cookies are **never written, modified, or transmitted externally**. |
|
|
24
|
+
| `activeTab` | Required to identify the currently active tab for context-aware commands. |
|
|
25
|
+
| `alarms` | Required to maintain the WebSocket connection to the local daemon via periodic keepalive checks. |
|
|
26
|
+
|
|
27
|
+
## Data flow
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
User's terminal (opencli CLI)
|
|
31
|
+
↓ (spawns)
|
|
32
|
+
Local daemon process (localhost:19825)
|
|
33
|
+
↓ (WebSocket, localhost only)
|
|
34
|
+
Chrome Extension (this extension)
|
|
35
|
+
↓ (Chrome APIs)
|
|
36
|
+
Isolated Chrome automation window
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
All data stays on the user's machine. No data leaves `localhost`.
|
|
40
|
+
|
|
41
|
+
## Cookie access
|
|
42
|
+
|
|
43
|
+
The extension reads cookies **only** when explicitly requested by a CLI command, and **only** for the specific domain the command targets. It cannot and does not dump all cookies. Cookie data is returned to the local daemon process and is never sent to any external server.
|
|
44
|
+
|
|
45
|
+
## Third-party services
|
|
46
|
+
|
|
47
|
+
This extension does not integrate with, send data to, or receive data from any third-party service.
|
|
48
|
+
|
|
49
|
+
## Open source
|
|
50
|
+
|
|
51
|
+
This extension is fully open source. You can audit the complete source code at:
|
|
52
|
+
https://github.com/jackwener/opencli/tree/main/extension
|
|
53
|
+
|
|
54
|
+
## Contact
|
|
55
|
+
|
|
56
|
+
For privacy questions or concerns, please open an issue at:
|
|
57
|
+
https://github.com/jackwener/opencli/issues
|
package/README.md
CHANGED
|
@@ -150,7 +150,7 @@ Run `opencli list` for the live registry.
|
|
|
150
150
|
| **wikipedia** | `search` `summary` `random` `trending` | Public |
|
|
151
151
|
| **hackernews** | `top` `new` `best` `ask` `show` `jobs` `search` `user` | Public |
|
|
152
152
|
| **jd** | `item` | Browser |
|
|
153
|
-
| **linkedin** | `search` | Browser |
|
|
153
|
+
| **linkedin** | `search` `timeline` | Browser |
|
|
154
154
|
| **reuters** | `search` | Browser |
|
|
155
155
|
| **smzdm** | `search` | Browser |
|
|
156
156
|
| **web** | `read` | Browser |
|
package/README.zh-CN.md
CHANGED
|
@@ -152,7 +152,7 @@ npm install -g @jackwener/opencli@latest
|
|
|
152
152
|
| **wikipedia** | `search` `summary` `random` `trending` | 公开 |
|
|
153
153
|
| **hackernews** | `top` `new` `best` `ask` `show` `jobs` `search` `user` | 公共 API |
|
|
154
154
|
| **jd** | `item` | 浏览器 |
|
|
155
|
-
| **linkedin** | `search` | 浏览器 |
|
|
155
|
+
| **linkedin** | `search` `timeline` | 浏览器 |
|
|
156
156
|
| **reuters** | `search` | 浏览器 |
|
|
157
157
|
| **smzdm** | `search` | 浏览器 |
|
|
158
158
|
| **web** | `read` | 浏览器 |
|
package/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: opencli
|
|
3
3
|
description: "OpenCLI — Make any website or Electron App your CLI. Zero risk, AI-powered, reuse Chrome login."
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.1
|
|
5
5
|
author: jackwener
|
|
6
6
|
tags: [cli, browser, web, chrome-extension, cdp, bilibili, zhihu, twitter, github, v2ex, hackernews, reddit, xiaohongshu, xueqiu, youtube, boss, coupang, yollomi, AI, agent]
|
|
7
7
|
---
|
|
@@ -88,6 +88,9 @@ opencli xueqiu watchlist # 获取自选股/持仓列表
|
|
|
88
88
|
opencli xueqiu feed # 我的关注 timeline
|
|
89
89
|
opencli xueqiu hot --limit 10 # 雪球热榜
|
|
90
90
|
opencli xueqiu search "特斯拉" # 搜索 (query positional)
|
|
91
|
+
opencli xueqiu earnings-date SH600519 # 股票财报发布日期 (symbol positional)
|
|
92
|
+
opencli xueqiu fund-holdings # 蛋卷基金持仓明细 (支持 --account 过滤)
|
|
93
|
+
opencli xueqiu fund-snapshot # 蛋卷基金快照(总资产、子账户、持仓)
|
|
91
94
|
|
|
92
95
|
# GitHub (via gh External CLI)
|
|
93
96
|
opencli gh repo list # 列出仓库 (passthrough to gh)
|
|
@@ -106,6 +109,19 @@ opencli twitter follow elonmusk # 关注用户
|
|
|
106
109
|
opencli twitter unfollow elonmusk # 取消关注
|
|
107
110
|
opencli twitter bookmark https://x.com/... # 收藏推文
|
|
108
111
|
opencli twitter unbookmark https://x.com/... # 取消收藏
|
|
112
|
+
opencli twitter post "Hello world" # 发布推文 (text positional)
|
|
113
|
+
opencli twitter like https://x.com/... # 点赞推文 (url positional)
|
|
114
|
+
opencli twitter reply https://x.com/... "Nice!" # 回复推文 (url + text positional)
|
|
115
|
+
opencli twitter delete https://x.com/... # 删除推文 (url positional)
|
|
116
|
+
opencli twitter block elonmusk # 屏蔽用户 (username positional)
|
|
117
|
+
opencli twitter unblock elonmusk # 取消屏蔽 (username positional)
|
|
118
|
+
opencli twitter followers elonmusk # 用户的粉丝列表 (user positional)
|
|
119
|
+
opencli twitter following elonmusk # 用户的关注列表 (user positional)
|
|
120
|
+
opencli twitter notifications --limit 20 # 通知列表
|
|
121
|
+
opencli twitter hide-reply https://x.com/... # 隐藏回复 (url positional)
|
|
122
|
+
opencli twitter download elonmusk # 下载用户媒体 (username positional, 支持 --tweet-url)
|
|
123
|
+
opencli twitter accept "群,微信" # 自动接受含关键词的 DM 请求 (query positional)
|
|
124
|
+
opencli twitter reply-dm "消息内容" # 批量回复 DM (text positional)
|
|
109
125
|
|
|
110
126
|
# Reddit (browser)
|
|
111
127
|
opencli reddit hot --limit 10 # 热门帖子
|
|
@@ -132,9 +148,21 @@ opencli v2ex topic 1024 # 主题详情 (id positional)
|
|
|
132
148
|
opencli v2ex daily # 每日签到 (browser)
|
|
133
149
|
opencli v2ex me # 我的信息 (browser)
|
|
134
150
|
opencli v2ex notifications --limit 10 # 通知 (browser)
|
|
151
|
+
opencli v2ex node python # 节点话题列表 (name positional)
|
|
152
|
+
opencli v2ex nodes --limit 30 # 所有节点列表
|
|
153
|
+
opencli v2ex member username # 用户资料 (username positional)
|
|
154
|
+
opencli v2ex user username # 用户发帖列表 (username positional)
|
|
155
|
+
opencli v2ex replies 1024 # 主题回复列表 (id positional)
|
|
135
156
|
|
|
136
157
|
# Hacker News (public)
|
|
137
158
|
opencli hackernews top --limit 10 # Top stories
|
|
159
|
+
opencli hackernews new --limit 10 # Newest stories
|
|
160
|
+
opencli hackernews best --limit 10 # Best stories
|
|
161
|
+
opencli hackernews ask --limit 10 # Ask HN posts
|
|
162
|
+
opencli hackernews show --limit 10 # Show HN posts
|
|
163
|
+
opencli hackernews jobs --limit 10 # Job postings
|
|
164
|
+
opencli hackernews search "rust" # 搜索 (query positional)
|
|
165
|
+
opencli hackernews user dang # 用户资料 (username positional)
|
|
138
166
|
|
|
139
167
|
# BBC (public)
|
|
140
168
|
opencli bbc news --limit 10 # BBC News RSS headlines
|
|
@@ -204,11 +232,13 @@ opencli jike comment xxx "评论" # 评论 (id + text positional)
|
|
|
204
232
|
opencli jike repost xxx # 转发 (id positional)
|
|
205
233
|
opencli jike notifications # 通知
|
|
206
234
|
|
|
207
|
-
# Linux.do (public)
|
|
235
|
+
# Linux.do (public + browser)
|
|
208
236
|
opencli linux-do hot --limit 10 # 热门话题
|
|
209
237
|
opencli linux-do latest --limit 10 # 最新话题
|
|
210
238
|
opencli linux-do search "rust" # 搜索 (query positional)
|
|
211
239
|
opencli linux-do topic 1024 # 主题详情 (id positional)
|
|
240
|
+
opencli linux-do categories --limit 20 # 分类列表 (browser)
|
|
241
|
+
opencli linux-do category dev 7 # 分类内话题 (slug + id positional, browser)
|
|
212
242
|
|
|
213
243
|
# StackOverflow (public)
|
|
214
244
|
opencli stackoverflow hot --limit 10 # 热门问题
|
|
@@ -234,6 +264,12 @@ opencli yollomi video "提示词" --model kling-2-1 # 视频
|
|
|
234
264
|
opencli yollomi upload ./photo.jpg # 上传得 URL,供 img2img / 工具链使用
|
|
235
265
|
opencli yollomi remove-bg <image-url> # 去背景(免费)
|
|
236
266
|
opencli yollomi edit <image-url> "改成油画风格" # Qwen 图像编辑
|
|
267
|
+
opencli yollomi background <image-url> # AI 背景生成 (5 credits)
|
|
268
|
+
opencli yollomi face-swap --source <url> --target <url> # 换脸 (3 credits)
|
|
269
|
+
opencli yollomi object-remover <image-url> <mask-url> # AI 去除物体 (3 credits)
|
|
270
|
+
opencli yollomi restore <image-url> # AI 修复老照片 (4 credits)
|
|
271
|
+
opencli yollomi try-on --person <url> --cloth <url> # 虚拟试衣 (3 credits)
|
|
272
|
+
opencli yollomi upscale <image-url> # AI 超分辨率 (1 credit, 支持 --scale 2/4)
|
|
237
273
|
|
|
238
274
|
# Grok (default + explicit web)
|
|
239
275
|
opencli grok ask --prompt "问题" # 提问 Grok(兼容默认路径)
|
|
@@ -334,6 +370,69 @@ opencli devto user username # 用户文章 (username positional)
|
|
|
334
370
|
# Steam (public)
|
|
335
371
|
opencli steam top-sellers --limit 10 # 热销游戏
|
|
336
372
|
|
|
373
|
+
# Apple Podcasts (public)
|
|
374
|
+
opencli apple-podcasts top --limit 10 # 热门播客排行榜 (支持 --country us/cn/gb/jp)
|
|
375
|
+
opencli apple-podcasts search "科技" # 搜索播客 (query positional)
|
|
376
|
+
opencli apple-podcasts episodes 12345 # 播客剧集列表 (id positional, 用 search 获取 ID)
|
|
377
|
+
|
|
378
|
+
# arXiv (public)
|
|
379
|
+
opencli arxiv search "attention" # 搜索论文 (query positional)
|
|
380
|
+
opencli arxiv paper 1706.03762 # 论文详情 (id positional)
|
|
381
|
+
|
|
382
|
+
# Bloomberg (public RSS + browser)
|
|
383
|
+
opencli bloomberg main --limit 10 # Bloomberg 首页头条 (RSS)
|
|
384
|
+
opencli bloomberg markets --limit 10 # 市场新闻 (RSS)
|
|
385
|
+
opencli bloomberg tech --limit 10 # 科技新闻 (RSS)
|
|
386
|
+
opencli bloomberg politics --limit 10 # 政治新闻 (RSS)
|
|
387
|
+
opencli bloomberg economics --limit 10 # 经济新闻 (RSS)
|
|
388
|
+
opencli bloomberg opinions --limit 10 # 观点 (RSS)
|
|
389
|
+
opencli bloomberg industries --limit 10 # 行业新闻 (RSS)
|
|
390
|
+
opencli bloomberg businessweek --limit 10 # Businessweek (RSS)
|
|
391
|
+
opencli bloomberg feeds # 列出所有 RSS feed 别名
|
|
392
|
+
opencli bloomberg news "https://..." # 阅读 Bloomberg 文章全文 (link positional, browser)
|
|
393
|
+
|
|
394
|
+
# Coupang 쿠팡 (browser)
|
|
395
|
+
opencli coupang search "耳机" # 搜索商品 (query positional, 支持 --filter rocket)
|
|
396
|
+
opencli coupang add-to-cart 12345 # 加入购物车 (product-id positional, 或 --url)
|
|
397
|
+
|
|
398
|
+
# Dictionary (public)
|
|
399
|
+
opencli dictionary search "serendipity" # 单词释义 (word positional)
|
|
400
|
+
opencli dictionary synonyms "happy" # 近义词 (word positional)
|
|
401
|
+
opencli dictionary examples "ubiquitous" # 例句 (word positional)
|
|
402
|
+
|
|
403
|
+
# 豆包 Doubao Web (browser)
|
|
404
|
+
opencli doubao status # 检查豆包页面状态
|
|
405
|
+
opencli doubao new # 新建对话
|
|
406
|
+
opencli doubao send "你好" # 发送消息 (text positional)
|
|
407
|
+
opencli doubao read # 读取对话记录
|
|
408
|
+
opencli doubao ask "问题" # 一键提问并等回复 (text positional)
|
|
409
|
+
|
|
410
|
+
# 京东 JD (browser)
|
|
411
|
+
opencli jd item 100291143898 # 商品详情 (sku positional, 含价格/主图/规格)
|
|
412
|
+
|
|
413
|
+
# LinkedIn (browser)
|
|
414
|
+
opencli linkedin search "AI engineer" # 搜索职位 (query positional, 支持 --location/--company/--remote)
|
|
415
|
+
opencli linkedin timeline --limit 20 # 首页动态流
|
|
416
|
+
|
|
417
|
+
# Pixiv (browser)
|
|
418
|
+
opencli pixiv ranking --limit 20 # 插画排行榜 (支持 --mode daily/weekly/monthly)
|
|
419
|
+
opencli pixiv search "風景" # 搜索插画 (query positional)
|
|
420
|
+
opencli pixiv user 12345 # 画师资料 (uid positional)
|
|
421
|
+
opencli pixiv illusts 12345 # 画师作品列表 (user-id positional)
|
|
422
|
+
opencli pixiv detail 12345 # 插画详情 (id positional)
|
|
423
|
+
opencli pixiv download 12345 # 下载插画 (illust-id positional)
|
|
424
|
+
|
|
425
|
+
# Web (browser)
|
|
426
|
+
opencli web read --url "https://..." # 抓取任意网页并导出为 Markdown
|
|
427
|
+
|
|
428
|
+
# 微信公众号 Weixin (browser)
|
|
429
|
+
opencli weixin download --url "https://mp.weixin.qq.com/s/xxx" # 下载公众号文章为 Markdown
|
|
430
|
+
|
|
431
|
+
# 小宇宙 Xiaoyuzhou (public)
|
|
432
|
+
opencli xiaoyuzhou podcast 12345 # 播客资料 (id positional)
|
|
433
|
+
opencli xiaoyuzhou podcast-episodes 12345 # 播客剧集列表 (id positional)
|
|
434
|
+
opencli xiaoyuzhou episode 12345 # 单集详情 (id positional)
|
|
435
|
+
|
|
337
436
|
# Wikipedia (public)
|
|
338
437
|
opencli wikipedia search "AI" # 搜索 (query positional)
|
|
339
438
|
opencli wikipedia summary "Python" # 摘要 (title positional)
|