shellmail 1.0.5 → 1.0.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/dist/index.js +13 -31
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -93,40 +93,22 @@ program
|
|
|
93
93
|
console.log(chalk.cyan(` ${result.address}\n`));
|
|
94
94
|
console.log(chalk.bold("Your API token:"));
|
|
95
95
|
console.log(chalk.yellow(` ${result.token}\n`));
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
]);
|
|
106
|
-
if (save) {
|
|
107
|
-
saveConfig({
|
|
108
|
-
token: result.token,
|
|
109
|
-
address: result.address,
|
|
110
|
-
});
|
|
111
|
-
console.log(chalk.green("\n✓ Config saved!\n"));
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
console.log(chalk.gray("\nSet SHELLMAIL_TOKEN env var to use the CLI:\n"));
|
|
115
|
-
console.log(chalk.cyan(` export SHELLMAIL_TOKEN="${result.token}"\n`));
|
|
116
|
-
}
|
|
117
|
-
// Show OpenClaw integration snippet
|
|
118
|
-
console.log(chalk.bold("─".repeat(50)));
|
|
119
|
-
console.log(chalk.bold("\nOpenClaw Integration\n"));
|
|
120
|
-
console.log(chalk.gray("Install the skill from ClawHub:\n"));
|
|
121
|
-
console.log(chalk.cyan(" clawhub install aaronbatchelder/shellmail\n"));
|
|
122
|
-
console.log(chalk.gray("Then set your token:\n"));
|
|
123
|
-
console.log(chalk.cyan(` export SHELLMAIL_TOKEN="${result.token}"\n`));
|
|
124
|
-
console.log(chalk.gray("Or add to your openclaw.json under skills.entries.shellmail.env\n"));
|
|
125
|
-
// Show CLI commands
|
|
96
|
+
// Always save to config
|
|
97
|
+
saveConfig({
|
|
98
|
+
token: result.token,
|
|
99
|
+
address: result.address,
|
|
100
|
+
});
|
|
101
|
+
console.log(chalk.green("✓ Token saved to ~/.shellmail/config.json\n"));
|
|
102
|
+
console.log(chalk.gray("⚠️ Save this token somewhere safe! It won't be shown again.\n"));
|
|
103
|
+
// Show next steps
|
|
126
104
|
console.log(chalk.bold("─".repeat(50)));
|
|
127
|
-
console.log(chalk.bold("\
|
|
105
|
+
console.log(chalk.bold("\nNext Steps\n"));
|
|
106
|
+
console.log(` 1. Send a test email to ${chalk.cyan(result.address)}`);
|
|
107
|
+
console.log(` 2. Run ${chalk.cyan("shellmail inbox")} to see it arrive\n`);
|
|
108
|
+
console.log(chalk.bold("Commands\n"));
|
|
128
109
|
console.log(` ${chalk.cyan("shellmail inbox")} Check your inbox`);
|
|
129
110
|
console.log(` ${chalk.cyan("shellmail otp -w 30")} Wait for an OTP code`);
|
|
111
|
+
console.log(` ${chalk.cyan("shellmail read <id>")} Read an email`);
|
|
130
112
|
console.log(` ${chalk.cyan("shellmail status")} Verify setup\n`);
|
|
131
113
|
});
|
|
132
114
|
// ── Inbox Command ────────────────────────────────────────
|