@cosmicstack/mercury-agent 0.4.1 → 0.5.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/README.md +18 -8
- package/dist/index.js +2441 -1028
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,6 +110,13 @@ In daemon mode, Telegram becomes your primary channel — CLI is log-only since
|
|
|
110
110
|
| `mercury setup` | Re-run the setup wizard |
|
|
111
111
|
| `mercury status` | Show config and daemon status |
|
|
112
112
|
| `mercury help` | Show full manual |
|
|
113
|
+
| `mercury telegram list` | List approved and pending Telegram users |
|
|
114
|
+
| `mercury telegram approve <code\|id>` | Approve a pairing code or pending request |
|
|
115
|
+
| `mercury telegram reject <id>` | Reject a pending Telegram access request |
|
|
116
|
+
| `mercury telegram remove <id>` | Remove an approved Telegram user |
|
|
117
|
+
| `mercury telegram promote <id>` | Promote a Telegram member to admin |
|
|
118
|
+
| `mercury telegram demote <id>` | Demote a Telegram admin to member |
|
|
119
|
+
| `mercury telegram reset` | Clear all Telegram access and start fresh |
|
|
113
120
|
| `mercury service install` | Install as system service (auto-start on boot) |
|
|
114
121
|
| `mercury service uninstall` | Uninstall system service |
|
|
115
122
|
| `mercury service status` | Show system service status |
|
|
@@ -149,17 +156,20 @@ Type these during a conversation — they don't consume API tokens. Work on both
|
|
|
149
156
|
|
|
150
157
|
| Channel | Features |
|
|
151
158
|
|---------|----------|
|
|
152
|
-
| **CLI** | Readline prompt, real-time text streaming, markdown rendering
|
|
153
|
-
| **Telegram** | HTML formatting, file uploads
|
|
159
|
+
| **CLI** | Readline prompt, arrow-key command menus, real-time text streaming, markdown rendering |
|
|
160
|
+
| **Telegram** | HTML formatting, file uploads, typing indicators, multi-user access with admin/member roles |
|
|
154
161
|
|
|
155
|
-
### Telegram
|
|
162
|
+
### Telegram Access
|
|
156
163
|
|
|
157
|
-
Mercury uses
|
|
164
|
+
Mercury uses an **organization access model** with admins and members.
|
|
158
165
|
|
|
159
|
-
- **
|
|
160
|
-
- **
|
|
161
|
-
- **
|
|
162
|
-
-
|
|
166
|
+
- **First-time setup:** Send `/start` to your bot, receive a pairing code, enter it in the CLI with `mercury telegram approve <code>`. You become the first admin.
|
|
167
|
+
- **Additional users:** Send `/start` to request access. Admins approve or reject from the CLI.
|
|
168
|
+
- **Roles:** Admins can approve/reject requests, promote/demote users, and reset access. Members can chat with Mercury.
|
|
169
|
+
- **Reset:** Admins can send `/unpair` in Telegram or run `mercury telegram reset` in the CLI to clear all access and start fresh.
|
|
170
|
+
- Private chats only — group messages are always ignored.
|
|
171
|
+
|
|
172
|
+
CLI commands: `mercury telegram list|approve|reject|remove|promote|demote|reset`
|
|
163
173
|
|
|
164
174
|
## Scheduler
|
|
165
175
|
|