ask-bridge 0.2.0 → 0.2.4

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.en.md +22 -14
  2. package/README.md +22 -14
  3. package/package.json +3 -2
package/README.en.md CHANGED
@@ -1,21 +1,21 @@
1
1
  # Ask Bridge 🦀
2
2
 
3
- `ask-bridge` is a powerful, lightweight command-line tool written in **Rust** that automates ChatGPT or Gemini directly in your real Chrome browser. It uses the **Model Context Protocol (MCP)** and **Chrome DevTools Protocol (CDP)** via the embedded `doggy8088/mcp-cli` Rust library dependency and `chrome-devtools-mcp` to control Chrome, input prompts, click submit, and print the response back to your terminal. ChatGPT is the default when no global provider is configured; use `--provider gemini` or the global config file to switch to Gemini.
3
+ `ask-bridge` is a powerful, lightweight command-line tool written in **Rust** that automates ChatGPT, Gemini or Claude directly in your real Chrome browser. It uses the **Model Context Protocol (MCP)** and **Chrome DevTools Protocol (CDP)** via the embedded `doggy8088/mcp-cli` Rust library dependency and `chrome-devtools-mcp` to control Chrome, input prompts, click submit, and print the response back to your terminal. ChatGPT is the default when no global provider is configured; use `--provider gemini`, `--provider claude`, or the global config file to switch providers.
4
4
 
5
5
  ## Design Intent
6
6
 
7
- The core purpose of `ask-bridge` is not to replace ChatGPT, Gemini, or any Coding Agent. It is to bridge them together. During software development, many AI-assisted tasks are exploratory: researching background information, summarizing documents, comparing options, digesting error messages, analyzing code snippets, drafting text, or clarifying uncertain technical questions. These tasks do not always need to be handled directly by the primary Coding Agent, and they do not always justify using the same agent budget that should be reserved for code editing, testing, refactoring, and integration work.
7
+ The core purpose of `ask-bridge` is not to replace ChatGPT, Gemini, Claude, or any Coding Agent. It is to bridge them together. During software development, many AI-assisted tasks are exploratory: researching background information, summarizing documents, comparing options, digesting error messages, analyzing code snippets, drafting text, or clarifying uncertain technical questions. These tasks do not always need to be handled directly by the primary Coding Agent, and they do not always justify using the same agent budget that should be reserved for code editing, testing, refactoring, and integration work.
8
8
 
9
- With `ask-bridge`, a Coding Agent can delegate low-risk, exploratory, and research-oriented tasks to the ChatGPT or Gemini websites, then bring the website response back into the terminal or the next step of the local workflow. Because ChatGPT and Gemini website usage quotas are typically separate from Coding Agent execution quotas, `ask-bridge` gives developers a more flexible way to allocate AI resources: the primary agent can focus on understanding the repository, modifying code, running tests, and integrating results, while website-based AI handles background research, text processing, and candidate solution generation.
9
+ With `ask-bridge`, a Coding Agent can delegate low-risk, exploratory, and research-oriented tasks to the ChatGPT, Gemini, or Claude websites, then bring the website response back into the terminal or the next step of the local workflow. Because ChatGPT, Gemini, and Claude website usage quotas are typically separate from Coding Agent execution quotas, `ask-bridge` gives developers a more flexible way to allocate AI resources: the primary agent can focus on understanding the repository, modifying code, running tests, and integrating results, while website-based AI handles background research, text processing, and candidate solution generation.
10
10
 
11
- In other words, `ask-bridge` is an external research bridge for AI Agents. It turns the manual workflow of switching to a browser, pasting a prompt, waiting for a response, and copying the result back into a command-line-driven automation capability. This lets an agent request help from ChatGPT or Gemini without leaving the local development workflow, then use the response as supporting context for its own judgment.
11
+ In other words, `ask-bridge` is an external research bridge for AI Agents. It turns the manual workflow of switching to a browser, pasting a prompt, waiting for a response, and copying the result back into a command-line-driven automation capability. This lets an agent request help from ChatGPT, Gemini, or Claude without leaving the local development workflow, then use the response as supporting context for its own judgment.
12
12
 
13
13
  This tool is especially useful for:
14
14
 
15
15
  - Sending large documents, error messages, or code snippets to a website-based AI for summarization, comparison, or first-pass analysis.
16
16
  - Letting a Coding Agent outsource background research, alternative analysis, or checklist generation before implementation.
17
17
  - Moving AI tasks that do not directly modify project files out of the primary agent workflow.
18
- - Reusing existing ChatGPT or Gemini web accounts for interactive website features outside an API workflow.
18
+ - Reusing existing ChatGPT, Gemini, or Claude web accounts for interactive website features outside an API workflow.
19
19
 
20
20
  `ask-bridge` does not guarantee that provider output is correct, and it should not replace local tests, official documentation checks, or human review. Its role is to reduce the operational cost of exploratory AI work and let the primary Coding Agent obtain external AI assistance with less friction.
21
21
 
@@ -29,7 +29,7 @@ Unlike typical API clients, `ask-bridge` operates inside a real Chrome browser w
29
29
  ## 🌟 Key Features
30
30
 
31
31
  - **🦀 100% Rust Core**: Extremely fast, lightweight, and compile-once, run-anywhere binary.
32
- - **Multi-provider support**: Choose ChatGPT or Gemini with `--provider chatgpt|gemini`.
32
+ - **Multi-provider support**: Choose ChatGPT, Gemini, or Claude with `--provider chatgpt|gemini|claude`.
33
33
  - **Global provider config**: Set the default provider in `~/.config/ask-bridge/config.json`; CLI `--provider` overrides the config file.
34
34
  - **🌐 Real Browser Automation**: Directly interacts with Chrome on port `9223` (isolated debug profile).
35
35
  - **🔒 Persistent Login**: Uses a dedicated local profile directory (`~/.config/ask-bridge/chrome-profile`) so you never lose your login state.
@@ -37,8 +37,8 @@ Unlike typical API clients, `ask-bridge` operates inside a real Chrome browser w
37
37
  - **🌀 TUI Thinking Animation**: Displays a rotating spinner while waiting for the provider to reply, then clears it once output starts.
38
38
  - **🧠 Intelligent Tab Management**: Reuses existing provider tabs if open, focuses them, or opens new ones, avoiding tab clutter.
39
39
  - **🖥️ Pipe & Stdin Support**: Supports piping prompts via `stdin` (e.g. `cat report.txt | ask-bridge "summarize this"`).
40
- - **📎 Image & File Attachments**: Attach local images to ChatGPT with `--image`, or documents (PDF, Word, Excel, plain text, Markdown, JSON, etc.) with `--file`; Gemini currently supports `--file` and rejects `--image`.
41
- - **🔀 Model Switching**: Use `--model` to switch the provider model before the prompt is sent, such as ChatGPT `GPT-5.4` or Gemini `3.5 Flash`.
40
+ - **📎 Image & File Attachments**: Attach local images with `--image` (supported on ChatGPT and Claude), or documents (PDF, Word, Excel, plain text, Markdown, JSON, etc.) with `--file`; Gemini currently supports `--file` and rejects `--image`.
41
+ - **🔀 Model Switching**: Use `--model` to switch the provider model before the prompt is sent, such as ChatGPT `GPT-5.4`, Gemini `3.5 Flash`, or Claude `Sonnet`.
42
42
  - **🔍 Quiet by Default & Verbose Mode**: Quiet and clean output by default (displaying only the generated response), with an optional `--verbose` flag to display full browser state logs if needed.
43
43
  - **Version Info**: Use `-v` or `--version` to print the current version number.
44
44
 
@@ -112,7 +112,7 @@ The compiled binary will be located at `target/release/ask-bridge`.
112
112
 
113
113
  ### 4. Install the Agent Skill
114
114
 
115
- This repository provides an `ask-bridge` Agent Skill so Skills-compatible Coding Agents can use `ask-bridge` to delegate exploratory research, summarization, document analysis, or option comparison tasks to the ChatGPT or Gemini websites.
115
+ This repository provides an `ask-bridge` Agent Skill so Skills-compatible Coding Agents can use `ask-bridge` to delegate exploratory research, summarization, document analysis, or option comparison tasks to the ChatGPT, Gemini, or Claude websites.
116
116
 
117
117
  Install it with `npx skills`; you do not need to copy the `skills/` directory manually:
118
118
 
@@ -138,23 +138,25 @@ Before sending prompts, you need to log in to the selected provider. ChatGPT is
138
138
  ask-bridge login
139
139
  ```
140
140
 
141
- For Gemini:
141
+ For Gemini or Claude:
142
142
 
143
143
  ```bash
144
144
  ask-bridge --provider gemini login
145
+ ask-bridge --provider claude login
145
146
  ```
146
147
 
147
148
  - This will automatically launch Google Chrome with a dedicated, persistent debug profile.
148
- - Log in manually to the selected provider page, such as `https://chatgpt.com/` or `https://gemini.google.com/app`.
149
+ - Log in manually to the selected provider page, such as `https://chatgpt.com/`, `https://gemini.google.com/app`, or `https://claude.ai/new`.
149
150
  - Once logged in, return to your terminal and press **`[Enter]`**.
150
151
  - The tool will verify your login status and save your profile. You only need to do this **once**!
151
152
 
152
153
  #### Global Provider Config
153
154
 
154
- To use Gemini by default when `--provider` is not specified:
155
+ To use Gemini or Claude by default when `--provider` is not specified:
155
156
 
156
157
  ```bash
157
158
  ask-bridge config --provider gemini
159
+ ask-bridge config --provider claude
158
160
  ```
159
161
 
160
162
  To switch the default back to ChatGPT:
@@ -182,6 +184,7 @@ Simply pass your prompt as an argument:
182
184
  ```bash
183
185
  ask-bridge "What is the difference between a struct and a tuple in Rust?"
184
186
  ask-bridge --provider gemini "What is the difference between a struct and a tuple in Rust?"
187
+ ask-bridge --provider claude "What is the difference between a struct and a tuple in Rust?"
185
188
  ```
186
189
 
187
190
  - Chrome will open or focus on your selected provider tab.
@@ -264,18 +267,19 @@ Instead of piping file contents into the prompt, you can upload local files as a
264
267
 
265
268
  #### Attach images
266
269
 
267
- Use `--image` (repeatable) to attach one or more local images. This currently supports ChatGPT; Gemini image input is not enabled and exits with an explicit error when used with `--provider gemini`.
270
+ Use `--image` (repeatable) to attach one or more local images. This currently supports ChatGPT and Claude; Gemini image input is not enabled and exits with an explicit error when used with `--provider gemini`.
268
271
 
269
272
  ```bash
270
273
  ask-bridge "Describe this image." --image screenshot.png
271
274
  ask-bridge "Compare these two images." --image v1.png --image v2.png
275
+ ask-bridge --provider claude "Describe this image." --image screenshot.png
272
276
  ```
273
277
 
274
278
  Supported formats include PNG, JPEG, GIF, WebP, SVG, BMP, and more.
275
279
 
276
280
  #### Attach documents
277
281
 
278
- Use `--file` (repeatable) to attach documents such as PDF, Word, Excel, PowerPoint, plain text, Markdown, CSV, JSON, or source code. This flow supports both ChatGPT and Gemini.
282
+ Use `--file` (repeatable) to attach documents such as PDF, Word, Excel, PowerPoint, plain text, Markdown, CSV, JSON, or source code. This flow supports ChatGPT, Gemini, and Claude.
279
283
 
280
284
  ```bash
281
285
  ask-bridge "Summarize this PDF." --file report.pdf
@@ -299,6 +303,8 @@ ask-bridge "Prove this math problem." --model o3
299
303
  ask-bridge "Quickly translate this." --model 即時
300
304
  ask-bridge --provider gemini "Introduce Rust in a few sentences." --model "3.5 Flash"
301
305
  ask-bridge --provider gemini "Introduce Rust in a few sentences." --model "3.1 Pro"
306
+ ask-bridge --provider claude "Introduce Rust in a few sentences." --model Sonnet
307
+ ask-bridge --provider claude "Prove this math problem." --model Opus
302
308
  ```
303
309
 
304
310
  Available model names (depending on your account entitlements and provider UI):
@@ -306,6 +312,7 @@ Available model names (depending on your account entitlements and provider UI):
306
312
  - **ChatGPT models**: `GPT-5.5`, `GPT-5.4`, `GPT-5.3`, `o3`
307
313
  - **ChatGPT thinking levels**: `智慧`, `即時`, `中等`, `高`, `超高`, `專業`
308
314
  - **Gemini modes**: `3.5 Flash`, `3.1 Flash-Lite`, `3.1 Pro`
315
+ - **Claude models**: `Sonnet`, `Opus`, `Haiku` (actual names depend on the claude.ai menu and your plan)
309
316
 
310
317
  > If the requested name is not found in the menu, `ask-bridge` reports `Model switch failed: error: model not found in menu` and aborts without submitting the prompt.
311
318
 
@@ -316,6 +323,7 @@ To quickly launch the browser and open the selected provider without sending any
316
323
  ```bash
317
324
  ask-bridge open
318
325
  ask-bridge --provider gemini open
326
+ ask-bridge --provider claude open
319
327
  ```
320
328
 
321
329
  ### 11. Close the Browser Instance
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
1
  # Ask Bridge 🦀
2
2
 
3
- `ask-bridge` 是以 Rust 撰寫的輕量命令列工具,可透過真實 Chrome 瀏覽器自動操作 ChatGPT 與 Gemini。它使用 Model Context Protocol MCP 與 Chrome DevTools Protocol CDP,並透過內建的 `doggy8088/mcp-cli` Rust library dependency 搭配 `chrome-devtools-mcp` 控制 Chrome、輸入 prompt、送出訊息,並將回覆輸出到終端機。未設定全域 provider 時預設使用 ChatGPT,可用 `--provider gemini` 或全域設定檔切換到 Gemini。
3
+ `ask-bridge` 是以 Rust 撰寫的輕量命令列工具,可透過真實 Chrome 瀏覽器自動操作 ChatGPT、Gemini 與 Claude。它使用 Model Context Protocol MCP 與 Chrome DevTools Protocol CDP,並透過內建的 `doggy8088/mcp-cli` Rust library dependency 搭配 `chrome-devtools-mcp` 控制 Chrome、輸入 prompt、送出訊息,並將回覆輸出到終端機。未設定全域 provider 時預設使用 ChatGPT,可用 `--provider gemini`、`--provider claude` 或全域設定檔切換 provider。
4
4
 
5
5
  ## 設計意圖
6
6
 
7
- `ask-bridge` 的核心目的不是取代 ChatGPT、Gemini 或任何 Coding Agent,而是把它們橋接在一起。開發過程中常會出現大量探索性的 AI 需求,例如查資料、整理文件、比較方案、摘要錯誤訊息、分析程式片段、產生初稿或協助釐清不確定的技術問題。這類任務通常不一定需要由主要 Coding Agent 親自完成,也不一定值得消耗與程式碼編輯、測試、重構等高價值工作相同的 agent 額度。
7
+ `ask-bridge` 的核心目的不是取代 ChatGPT、Gemini、Claude 或任何 Coding Agent,而是把它們橋接在一起。開發過程中常會出現大量探索性的 AI 需求,例如查資料、整理文件、比較方案、摘要錯誤訊息、分析程式片段、產生初稿或協助釐清不確定的技術問題。這類任務通常不一定需要由主要 Coding Agent 親自完成,也不一定值得消耗與程式碼編輯、測試、重構等高價值工作相同的 agent 額度。
8
8
 
9
- 透過 `ask-bridge`,Coding Agent 可以把這些低風險、探索性、可委派的研究工作轉交給 ChatGPT 或 Gemini 網站處理,再把網站回覆取回終端機或後續工作流程中。由於 ChatGPT、Gemini 網站的使用額度與 Coding Agent 的執行額度通常分開計算,`ask-bridge` 可以讓開發者更有彈性地分配 AI 資源:主要 agent 專注在理解專案、修改程式、執行測試與整合結果;網站型 AI 則負責背景研究、文字處理與候選方案產出。
9
+ 透過 `ask-bridge`,Coding Agent 可以把這些低風險、探索性、可委派的研究工作轉交給 ChatGPT、Gemini 或 Claude 網站處理,再把網站回覆取回終端機或後續工作流程中。由於 ChatGPT、Gemini、Claude 網站的使用額度與 Coding Agent 的執行額度通常分開計算,`ask-bridge` 可以讓開發者更有彈性地分配 AI 資源:主要 agent 專注在理解專案、修改程式、執行測試與整合結果;網站型 AI 則負責背景研究、文字處理與候選方案產出。
10
10
 
11
- 換句話說,`ask-bridge` 是一個給 AI Agent 使用的外部研究橋接器:它把原本需要人類切換瀏覽器、貼上 prompt、等待回覆、再複製結果的流程,包裝成可由命令列驅動的自動化能力。這讓 agent 可以在不離開本機工作流程的情況下,自主向 ChatGPT 或 Gemini 發出請求,取得輔助資訊,並將其納入後續判斷。
11
+ 換句話說,`ask-bridge` 是一個給 AI Agent 使用的外部研究橋接器:它把原本需要人類切換瀏覽器、貼上 prompt、等待回覆、再複製結果的流程,包裝成可由命令列驅動的自動化能力。這讓 agent 可以在不離開本機工作流程的情況下,自主向 ChatGPT、Gemini 或 Claude 發出請求,取得輔助資訊,並將其納入後續判斷。
12
12
 
13
13
  此工具特別適合:
14
14
 
15
15
  - 將大型文件、錯誤訊息或程式片段交給網站型 AI 做摘要、比對或初步分析。
16
16
  - 讓 Coding Agent 在實作前先委外蒐集背景資料、整理替代方案或產生檢查清單。
17
17
  - 把不需要直接修改專案檔案的 AI 任務移出主要 agent 執行流程。
18
- - 利用既有 ChatGPT 或 Gemini 網頁帳號的能力,處理 API 以外的互動式網站功能。
18
+ - 利用既有 ChatGPT、Gemini 或 Claude 網頁帳號的能力,處理 API 以外的互動式網站功能。
19
19
 
20
20
  `ask-bridge` 不保證網站 provider 的輸出一定正確,也不應取代本機測試、官方文件查證或人工審查。它的定位是降低探索性 AI 工作的操作成本,讓主要 Coding Agent 能以更低摩擦取得外部 AI 協助。
21
21
 
@@ -28,7 +28,7 @@
28
28
  ## 主要功能
29
29
 
30
30
  - **100% Rust 核心**:快速、輕量,編譯後即可執行。
31
- - **多 provider 支援**:使用 `--provider chatgpt|gemini` 選擇 ChatGPT 或 Gemini。
31
+ - **多 provider 支援**:使用 `--provider chatgpt|gemini|claude` 選擇 ChatGPT、Gemini 或 Claude。
32
32
  - **全域 provider 設定**:可在 `~/.config/ask-bridge/config.json` 指定預設 provider,CLI 的 `--provider` 會覆蓋設定檔。
33
33
  - **真實瀏覽器自動化**:直接控制監聽 `9223` port 的 Chrome debug profile。
34
34
  - **持久登入狀態**:使用專屬本機 profile 目錄 `~/.config/ask-bridge/chrome-profile`,避免重複登入。
@@ -36,8 +36,8 @@
36
36
  - **思考動畫**:等待 provider 回覆時,在終端機顯示旋轉 spinner,開始輸出內容後自動清除。
37
37
  - **智慧分頁管理**:可重用既有 provider 分頁、聚焦分頁,或開啟新分頁,避免分頁過度增加。
38
38
  - **Pipe 與 stdin 支援**:支援透過 standard input 傳入 prompt,例如 `cat report.txt | ask-bridge "summarize this"`。
39
- - **圖片與文件上傳**:可透過 `--image` 附上 ChatGPT 圖片,或透過 `--file` 附上文件(PDF、Word、Excel、純文字、Markdown、JSON 等皆可),一次可指定多個檔案;Gemini 目前支援 `--file`,不支援 `--image` 圖片輸入。
40
- - **模型切換**:使用 `--model` 在送出 prompt 前自動切換 provider 模型(如 ChatGPT 的 `GPT-5.4`、`o3`,或 Gemini 的 `3.5 Flash`、`3.1 Pro`)。
39
+ - **圖片與文件上傳**:可透過 `--image` 附上圖片(支援 ChatGPT 與 Claude),或透過 `--file` 附上文件(PDF、Word、Excel、純文字、Markdown、JSON 等皆可),一次可指定多個檔案;Gemini 目前支援 `--file`,不支援 `--image` 圖片輸入。
40
+ - **模型切換**:使用 `--model` 在送出 prompt 前自動切換 provider 模型(如 ChatGPT 的 `GPT-5.4`、`o3`,Gemini 的 `3.5 Flash`、`3.1 Pro`,或 Claude 的 `Sonnet`、`Opus`)。
41
41
  - **預設安靜模式與 verbose 模式**:預設只輸出最終回覆;加上 `--verbose` 可顯示背景瀏覽器控制流程。
42
42
  - **版本資訊**:使用 `-v` 或 `--version` 顯示目前版本號。
43
43
 
@@ -107,7 +107,7 @@ cargo build --release
107
107
 
108
108
  ### 4. 安裝 Agent Skill
109
109
 
110
- 本專案提供 `ask-bridge` Agent Skill,讓支援 Skills 的 Coding Agent 可以在適合的情境下,自主使用 `ask-bridge` 將探索性研究、摘要、文件分析或方案比較等工作委派給 ChatGPT 或 Gemini 網站。
110
+ 本專案提供 `ask-bridge` Agent Skill,讓支援 Skills 的 Coding Agent 可以在適合的情境下,自主使用 `ask-bridge` 將探索性研究、摘要、文件分析或方案比較等工作委派給 ChatGPT、Gemini 或 Claude 網站。
111
111
 
112
112
  請使用 `npx skills` 安裝,不需要手動複製 `skills/` 目錄:
113
113
 
@@ -131,16 +131,17 @@ npx skills add doggy8088/ask-bridge --skill ask-bridge --agent codex --global
131
131
  ask-bridge login
132
132
  ```
133
133
 
134
- 若要登入 Gemini:
134
+ 若要登入 Gemini 或 Claude:
135
135
 
136
136
  ```bash
137
137
  ask-bridge --provider gemini login
138
+ ask-bridge --provider claude login
138
139
  ```
139
140
 
140
141
  此命令會:
141
142
 
142
143
  - 使用專屬且持久化的 debug profile 啟動 Google Chrome。
143
- - 開啟所選 provider 頁面,例如 `https://chatgpt.com/` 或 `https://gemini.google.com/app`。
144
+ - 開啟所選 provider 頁面,例如 `https://chatgpt.com/`、`https://gemini.google.com/app` 或 `https://claude.ai/new`。
144
145
  - 等待你手動登入帳號。
145
146
  - 在你回到終端機按 Enter 後,驗證登入狀態並保存 profile。
146
147
 
@@ -148,10 +149,11 @@ ask-bridge --provider gemini login
148
149
 
149
150
  #### 全域 provider 設定
150
151
 
151
- 若希望未指定 `--provider` 時預設使用 Gemini,可用 `ask-bridge config` 指定:
152
+ 若希望未指定 `--provider` 時預設使用 Gemini 或 Claude,可用 `ask-bridge config` 指定:
152
153
 
153
154
  ```bash
154
155
  ask-bridge config --provider gemini
156
+ ask-bridge config --provider claude
155
157
  ```
156
158
 
157
159
  若要改回 ChatGPT:
@@ -179,6 +181,7 @@ ask-bridge --provider chatgpt "請摘要這段內容。"
179
181
  ```bash
180
182
  ask-bridge "Rust struct 和 tuple 有什麼差異?"
181
183
  ask-bridge --provider gemini "Rust struct 和 tuple 有什麼差異?"
184
+ ask-bridge --provider claude "Rust struct 和 tuple 有什麼差異?"
182
185
  ```
183
186
 
184
187
  執行後:
@@ -263,18 +266,19 @@ cat src/main.rs | ask-bridge "這段 Rust code 有記憶體洩漏風險嗎?"
263
266
 
264
267
  #### 附上圖片
265
268
 
266
- 使用 `--image` 附上一或多張本機圖片(可重複指定)。此功能目前支援 ChatGPT;Gemini 圖片輸入尚未支援,搭配 `--provider gemini` 使用會立即回報錯誤。
269
+ 使用 `--image` 附上一或多張本機圖片(可重複指定)。此功能目前支援 ChatGPT 與 Claude;Gemini 圖片輸入尚未支援,搭配 `--provider gemini` 使用會立即回報錯誤。
267
270
 
268
271
  ```bash
269
272
  ask-bridge "請描述這張圖片的內容。" --image screenshot.png
270
273
  ask-bridge "比較這兩張圖的差異。" --image v1.png --image v2.png
274
+ ask-bridge --provider claude "請描述這張圖片的內容。" --image screenshot.png
271
275
  ```
272
276
 
273
277
  支援的格式包含 PNG、JPEG、GIF、WebP、SVG、BMP 等。
274
278
 
275
279
  #### 附上文件
276
280
 
277
- 使用 `--file` 附上一或多份本機文件(可重複指定),例如 PDF、Word、Excel、PowerPoint、純文字、Markdown、CSV、JSON、程式碼等。ChatGPT 與 Gemini 都支援此流程。
281
+ 使用 `--file` 附上一或多份本機文件(可重複指定),例如 PDF、Word、Excel、PowerPoint、純文字、Markdown、CSV、JSON、程式碼等。ChatGPT、Gemini 與 Claude 都支援此流程。
278
282
 
279
283
  ```bash
280
284
  ask-bridge "請摘要這份 PDF 的重點。" --file report.pdf
@@ -302,6 +306,8 @@ ask-bridge "證明這個數學問題。" --model o3
302
306
  ask-bridge "快速翻譯這段話。" --model 即時
303
307
  ask-bridge --provider gemini "用幾句話介紹 Rust。" --model "3.5 Flash"
304
308
  ask-bridge --provider gemini "用幾句話介紹 Rust。" --model "3.1 Pro"
309
+ ask-bridge --provider claude "用幾句話介紹 Rust。" --model Sonnet
310
+ ask-bridge --provider claude "證明這個數學問題。" --model Opus
305
311
  ```
306
312
 
307
313
  可用的模型名稱(視帳號權限與 provider UI 而定):
@@ -309,6 +315,7 @@ ask-bridge --provider gemini "用幾句話介紹 Rust。" --model "3.1 Pro"
309
315
  - **ChatGPT 模型**:`GPT-5.5`、`GPT-5.4`、`GPT-5.3`、`o3`
310
316
  - **ChatGPT 思考強度**:`智慧`、`即時`、`中等`、`高`、`超高`、`專業`
311
317
  - **Gemini 模式**:`3.5 Flash`、`3.1 Flash-Lite`、`3.1 Pro`
318
+ - **Claude 模型**:`Sonnet`、`Opus`、`Haiku`(實際名稱依 claude.ai 選單與帳號方案而定)
312
319
 
313
320
  > 若指定的名稱在選單中找不到,`ask-bridge` 會回報 `Model switch failed: error: model not found in menu` 並中止,不會送出 prompt。
314
321
 
@@ -319,6 +326,7 @@ ask-bridge --provider gemini "用幾句話介紹 Rust。" --model "3.1 Pro"
319
326
  ```bash
320
327
  ask-bridge open
321
328
  ask-bridge --provider gemini open
329
+ ask-bridge --provider claude open
322
330
  ```
323
331
 
324
332
  ### 11. 關閉瀏覽器 instance
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ask-bridge",
3
- "version": "0.2.0",
4
- "description": "Automate ChatGPT or Gemini from the command line through Chrome.",
3
+ "version": "0.2.4",
4
+ "description": "Automate ChatGPT, Gemini or Claude from the command line through Chrome.",
5
5
  "bin": {
6
6
  "ask-bridge": "npm/cli.cjs",
7
7
  "ask": "npm/cli.cjs"
@@ -25,6 +25,7 @@
25
25
  "keywords": [
26
26
  "chatgpt",
27
27
  "gemini",
28
+ "claude",
28
29
  "chrome",
29
30
  "rust",
30
31
  "cli"