mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
31f58ae699
- Add VitePress with full navigation, sidebar, i18n (en/zh), local search - Create 50+ doc pages: guide, adapters (browser + desktop), developer, advanced - Migrate content from README.md, CONTRIBUTING.md, TESTING.md, CDP.md, CLI-ELECTRON.md - Migrate all 11 adapter READMEs to structured documentation - Add new pages: architecture, yaml-adapter guide, ts-adapter guide, ai-workflow - Add GitHub Actions workflow for deploying to GitHub Pages - Add Chinese locale pages (getting-started, installation, browser-bridge, etc.) - Add docs:dev, docs:build, docs:preview npm scripts
29 lines
1.2 KiB
Markdown
29 lines
1.2 KiB
Markdown
# WeChat (微信)
|
|
|
|
Control **WeChat Mac Desktop** from the terminal via AppleScript + Accessibility API.
|
|
|
|
> **Note:** WeChat is a native macOS app (not Electron), so CDP is not available. This adapter uses AppleScript keyboard simulation and clipboard operations.
|
|
|
|
## Prerequisites
|
|
|
|
1. WeChat must be running and logged in
|
|
2. Terminal must have **Accessibility permission** (System Settings → Privacy & Security → Accessibility)
|
|
|
|
## Commands
|
|
|
|
| Command | Description |
|
|
|---------|-------------|
|
|
| `opencli wechat status` | Check if WeChat is running |
|
|
| `opencli wechat send "msg"` | Send message in the active chat (clipboard paste + Enter) |
|
|
| `opencli wechat read` | Read current chat content (Cmd+A → Cmd+C) |
|
|
| `opencli wechat search "keyword"` | Open search and type a query (Cmd+F) |
|
|
| `opencli wechat chats` | Switch to Chats tab (Cmd+1) |
|
|
| `opencli wechat contacts` | Switch to Contacts tab (Cmd+2) |
|
|
|
|
## Limitations
|
|
|
|
- **No CDP support** — WeChat is native Cocoa, not Electron
|
|
- `send` requires the correct conversation to be already open
|
|
- `read` captures whatever is visible via select-all + copy
|
|
- `search` types the query but cannot programmatically click results
|