open-mail-cli 1.0.1 → 1.0.3
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 +20 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,6 +56,16 @@ In an era dominated by web-based email clients, **Open Mail CLI** brings the pow
|
|
|
56
56
|
- **Power Users** seeking keyboard-driven workflows
|
|
57
57
|
- **DevOps Engineers** integrating email into scripts and pipelines
|
|
58
58
|
|
|
59
|
+
## 🤖 Agent Skills
|
|
60
|
+
|
|
61
|
+
Open Mail CLI is available as an [Agent Skill](https://skills.sh) for AI coding agents (Claude Code, Cursor, etc.). Install the skill to give your agent the ability to send, receive, search, and manage emails.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npx skills add eric8810/open-mail-cli
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Once installed, the agent can use `mail-cli` commands to handle email tasks autonomously — sending messages, checking inbox, managing contacts, and more.
|
|
68
|
+
|
|
59
69
|
## 🚀 Quick Start
|
|
60
70
|
|
|
61
71
|
### Installation
|
|
@@ -230,6 +240,16 @@ If you find this project useful, please consider giving it a ⭐!
|
|
|
230
240
|
- **📦 导入/导出** - 完整支持 EML 和 MBOX 格式
|
|
231
241
|
- **🔐 多账户** - 无缝管理多个邮箱账户
|
|
232
242
|
|
|
243
|
+
## 🤖 Agent Skills
|
|
244
|
+
|
|
245
|
+
Open Mail CLI 已作为 [Agent Skill](https://skills.sh) 发布,支持 AI 编程代理(Claude Code、Cursor 等)。安装此 skill 可赋予你的 agent 收发、搜索和管理邮件的能力。
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
npx skills add eric8810/open-mail-cli
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
安装后,agent 可以自主使用 `mail-cli` 命令处理邮件任务——发送消息、查看收件箱、管理联系人等。
|
|
252
|
+
|
|
233
253
|
## 🚀 快速开始
|
|
234
254
|
|
|
235
255
|
### 安装
|
package/dist/index.js
CHANGED
|
@@ -304,6 +304,7 @@ var init_logger = __esm({
|
|
|
304
304
|
logFile;
|
|
305
305
|
levels;
|
|
306
306
|
currentLevel;
|
|
307
|
+
enableConsole;
|
|
307
308
|
/**
|
|
308
309
|
* Create a logger instance.
|
|
309
310
|
*/
|
|
@@ -317,6 +318,7 @@ var init_logger = __esm({
|
|
|
317
318
|
DEBUG: 3
|
|
318
319
|
};
|
|
319
320
|
this.currentLevel = this.levels.INFO;
|
|
321
|
+
this.enableConsole = false;
|
|
320
322
|
this.ensureLogDir();
|
|
321
323
|
}
|
|
322
324
|
/**
|
|
@@ -353,7 +355,9 @@ var init_logger = __esm({
|
|
|
353
355
|
log(level, message, meta = {}) {
|
|
354
356
|
if (this.levels[level] <= this.currentLevel) {
|
|
355
357
|
const formattedMessage = this.formatMessage(level, message, meta);
|
|
356
|
-
|
|
358
|
+
if (this.enableConsole) {
|
|
359
|
+
console.log(formattedMessage);
|
|
360
|
+
}
|
|
357
361
|
this.writeToFile(formattedMessage);
|
|
358
362
|
}
|
|
359
363
|
}
|
|
@@ -14336,7 +14340,7 @@ var import_commander2 = require("commander");
|
|
|
14336
14340
|
// package.json
|
|
14337
14341
|
var package_default = {
|
|
14338
14342
|
name: "open-mail-cli",
|
|
14339
|
-
version: "1.0.
|
|
14343
|
+
version: "1.0.3",
|
|
14340
14344
|
description: "A command-line email client with IMAP/SMTP support",
|
|
14341
14345
|
main: "dist/index.js",
|
|
14342
14346
|
bin: {
|