-
Notifications
You must be signed in to change notification settings - Fork 396
Open
Description
Feature Description
目前 chatgpt 命名空间用于 macOS 桌面应用适配器(AppleScript + AX API)。我想新增一个 ChatGPT Web 适配器(chatgpt.com,基于浏览器),提供类似的命令(ask、send、read、new)。
两者都面向 ChatGPT,但底层机制完全不同,存在命名冲突:
桌面端(当前 chatgpt) |
Web 端(提议新增) | |
|---|---|---|
| Domain | localhost |
chatgpt.com |
| Browser | false |
true |
| 机制 | AppleScript + macOS Accessibility API | 浏览器会话(DOM / XHR 拦截) |
| 平台 | 仅 macOS | 跨平台 |
Use Case
- Web 适配器跨平台(macOS / Linux / Windows),桌面端仅限 macOS
- Web 适配器可利用浏览器会话复用,支持登录态功能
- 命名一致性:
discord-app(桌面端)已有先例
Proposed Solution
将现有桌面适配器从 chatgpt 重命名为 chatgpt-app,与 discord-app 的命名约定一致(-app 后缀 = 桌面应用适配器)。Web 适配器使用更短的 chatgpt。
opencli chatgpt ask "hello" # → Web (chatgpt.com)
opencli chatgpt-app ask "hello" # → macOS 桌面应用
桌面适配器是 5 天前加入的(2afbb99),breaking change 影响很小。
Alternatives Considered
- Web 端用
chatgpt-web:无破坏性变更,但-web后缀在项目中没有先例 - 用
--mode app|web标志区分:命令最精简,但browser: true/false根本不同,实现复杂度高
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels