@amaster.ai/pi-wecom
v0.1.22
Published
Pi extension for WeCom (enterprise WeChat) workspace — contacts, messages, meetings, schedules, docs and more via wecom-cli.
Readme
@amaster.ai/pi-wecom

Pi extension for WeCom (企业微信) workspace — contacts, messages, meetings, schedules, docs and more via wecom-cli.
Features
- Auto-installs
wecom-cliif not present - Injects wecom-cli skills into the agent session
- Detects authentication status and prompts for QR code login if needed
Configuration
Add to ~/.pi/agent/settings.json or a trusted project's .pi/settings.json:
Project settings are loaded only after project trust is accepted. For environment-backed credentials, use user or agent settings because project settings do not expand ${ENV_VAR}.
{
"pi-wecom": {
"botId": "your_bot_id",
"botSecret": "your_bot_secret"
}
}| Field | Required | Description |
|-------|----------|-------------|
| botId | Yes | Bot ID from WeCom Admin Console |
| botSecret | Yes | Bot Secret |
Note: wecom-cli requires QR code scan for initial authentication. After the extension installs the CLI, run
wecom-cli auth init --noninteractiveto complete login.
Skills Provided
14 skills from wecom-cli covering:
wecomcli-shared— Shared setup and authentication checkswecomcli-message— Messages and conversationswecomcli-contact— Address book, user searchwecomcli-meeting— Create, cancel, manage meetingswecomcli-calendar— Schedule CRUD, free/busywecomcli-todo— Task managementwecomcli-email— Email search and readingwecomcli-disk— WeDrive files and folderswecomcli-media— Media upload and downloadwecomcli-doc-manage— Document search and permissionswecomcli-doc— Online documentswecomcli-sheet— Online spreadsheetswecomcli-smartsheet— Smart Sheet data and structurewecomcli-smartpage— Smart documents
CLI Reference
- Repository: https://github.com/WecomTeam/wecom-cli
- Install:
npm install -g @wecom/cli - Docs: https://github.com/WecomTeam/wecom-cli#readme
