@cosmicstack/mercury-agent 1.1.4 → 1.1.6

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  <p align="center">
2
2
  <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="docs/card-dark.png">
4
- <source media="(prefers-color-scheme: light)" srcset="docs/card-light.png">
5
- <img alt="Mercury — Soul-Driven AI Agent" src="docs/card-light.png" width="600">
3
+ <source media="(prefers-color-scheme: dark)" srcset="docs/img/card-dark.png">
4
+ <source media="(prefers-color-scheme: light)" srcset="docs/img/card-light.png">
5
+ <img alt="Mercury — Soul-Driven AI Agent" src="docs/img/card-light.png" width="600">
6
6
  </picture>
7
7
  </p>
8
8
 
@@ -39,12 +39,13 @@ npm i -g @cosmicstack/mercury-agent
39
39
  mercury
40
40
  ```
41
41
 
42
- First run triggers the setup wizard enter your name, an API key, and optionally a Telegram bot token. Takes 30 seconds.
42
+ First run triggers the setup wizard (name, provider, optional Telegram). After setup, Mercury opens the Ink TUI startup screen and asks for your permission mode (`Ask Me` or `Allow All`) before chat starts.
43
43
 
44
44
  To reconfigure later (change keys, name, settings):
45
45
 
46
46
  ```bash
47
47
  mercury doctor
48
+ mercury doctor --platform
48
49
  ```
49
50
 
50
51
  ## Why Mercury?
@@ -59,6 +60,8 @@ Every AI agent can read files, run commands, and fetch URLs. Most do it silently
59
60
  - **Always on** — Run as a background daemon on any OS. Auto-restarts on crash. Starts on boot. Cron scheduling, heartbeat monitoring, and proactive notifications.
60
61
  - **Extensible** — Install community skills with a single command. Schedule skills as recurring tasks. Based on the [Agent Skills](https://agentskills.io) specification.
61
62
 
63
+ Mercury now seeds a default `web-search` skill on first run in `~/.mercury/skills/web-search/SKILL.md`.
64
+
62
65
  ## Daemon Mode
63
66
 
64
67
  **One command to make Mercury persistent:**
@@ -115,7 +118,8 @@ In daemon mode, Telegram becomes your primary channel — CLI is log-only since
115
118
  | `mercury restart` | Restart the background process |
116
119
  | `mercury stop` | Stop a background process |
117
120
  | `mercury logs` | View recent daemon logs |
118
- | `mercury doctor` | Reconfigure (Enter to keep current values) |
121
+ | `mercury doctor` | Reconfigure setup (name, providers, channels, permissions defaults) |
122
+ | `mercury doctor --platform` | Show cross-platform terminal/daemon compatibility diagnostics |
119
123
  | `mercury setup` | Re-run the setup wizard |
120
124
  | `mercury status` | Show config and daemon status |
121
125
  | `mercury help` | Show full manual |
@@ -149,6 +153,11 @@ Type these during a conversation — they don't consume API tokens. Work on both
149
153
  | `/budget reset` | Reset usage to zero |
150
154
  | `/budget set <n>` | Change daily token budget |
151
155
  | `/permissions` | Change permission mode (Ask Me / Allow All) |
156
+ | `/view` | Toggle progress view (balanced/detailed) |
157
+ | `/view balanced` | Set compact progress view |
158
+ | `/view detailed` | Set full progress view |
159
+ | `/code agent <task>` | Delegate a coding task to a sub-agent in background |
160
+ | `/ws exit` | Exit workspace IDE mode back to general chat |
152
161
  | `/tasks` | List scheduled tasks |
153
162
  | `/memory` | View and manage second brain memory |
154
163
  | `/unpair` | Telegram: reset all access |
@@ -170,9 +179,24 @@ Type these during a conversation — they don't consume API tokens. Work on both
170
179
 
171
180
  | Channel | Features |
172
181
  |---------|----------|
173
- | **CLI** | Readline prompt, arrow-key command menus, real-time text streaming with markdown re-rendering, permission mode picker |
182
+ | **CLI** | Ink TUI, startup permission mode picker, interactive permission prompts (arrow keys + Enter; Y/N/A shortcuts), progress views (balanced/detailed), real-time streaming |
174
183
  | **Telegram** | HTML formatting, editable streaming messages, file uploads, typing indicators, multi-user access with admin/member roles |
175
184
 
185
+ ### Workspace/Coding Shortcuts (CLI)
186
+
187
+ - `Ctrl+P` → switch to Plan mode
188
+ - `Ctrl+X` → switch to Execute mode
189
+ - `Esc` or `Ctrl+Q` → exit workspace to general chat
190
+ - `Ctrl+V` → toggle progress view (`/view` is fallback when terminal intercepts Ctrl+V)
191
+
192
+ ### Spotify UI Notes (CLI)
193
+
194
+ - Spotify deck supports keyboard shortcuts: `N` next, `P` previous, `+/-` volume, `Z` now playing.
195
+ - Inline album art is optional and safe-gated:
196
+ - Enable with `MERCURY_SPOTIFY_ART=1`
197
+ - Currently renders only in local iTerm sessions
198
+ - Automatically falls back to text-only UI in SSH/mobile/light terminals
199
+
176
200
  ### Telegram Access
177
201
 
178
202
  Mercury uses an **organization access model** with admins and members.
package/README.zh-CN.md CHANGED
@@ -21,7 +21,7 @@ npm i -g @cosmicstack/mercury-agent
21
21
  mercury
22
22
  ```
23
23
 
24
- 首次运行会启动配置向导。你需要输入姓名、模型 API Key,并可选择配置 Telegram Bot Token。之后如需重新配置:
24
+ 首次运行会启动配置向导(姓名、模型、可选 Telegram)。完成后会进入 Ink TUI 启动画面,并在进入聊天前让你选择权限模式(`Ask Me` / `Allow All`)。之后如需重新配置:
25
25
 
26
26
  ```bash
27
27
  mercury doctor
@@ -76,7 +76,7 @@ mercury status # 查看运行状态
76
76
  | `mercury restart` | 重启后台进程 |
77
77
  | `mercury stop` | 停止后台进程 |
78
78
  | `mercury logs` | 查看近期日志 |
79
- | `mercury doctor` | 重新配置,回车保留现有值 |
79
+ | `mercury doctor` | 重新配置 Mercury(姓名、Provider、频道、权限默认项) |
80
80
  | `mercury setup` | 重新运行配置向导 |
81
81
  | `mercury status` | 查看配置和守护进程状态 |
82
82
  | `mercury help` | 查看完整手册 |
@@ -110,6 +110,9 @@ mercury status # 查看运行状态
110
110
  | `/budget reset` | 将用量重置为零 |
111
111
  | `/budget set <n>` | 修改每日 Token 预算 |
112
112
  | `/permissions` | 修改权限模式 |
113
+ | `/view` | 切换进度视图(balanced/detailed) |
114
+ | `/view balanced` | 使用精简进度视图 |
115
+ | `/view detailed` | 使用详细进度视图 |
113
116
  | `/tasks` | 列出定时任务 |
114
117
  | `/memory` | 查看和管理 Second Brain 记忆 |
115
118
  | `/unpair` | Telegram:重置所有访问 |
@@ -131,7 +134,7 @@ mercury status # 查看运行状态
131
134
 
132
135
  | 渠道 | 能力 |
133
136
  |------|------|
134
- | CLI | Readline 提示符、方向键命令菜单、实时文本流、Markdown 重渲染、权限模式选择 |
137
+ | CLI | Ink TUI、启动权限模式选择、交互式权限审批(方向键 + Enter,支持 Y/N/A 快捷键)、balanced/detailed 进度视图、实时文本流 |
135
138
  | Telegram | HTML 格式化、可编辑流式消息、文件上传、输入状态、多用户访问和管理员/成员角色 |
136
139
 
137
140
  ### Telegram 访问模型