shellmail 1.0.4 → 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.
Files changed (2) hide show
  1. package/dist/index.js +13 -32
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -93,41 +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
- console.log(chalk.gray("⚠️ Save this token! It won't be shown again.\n"));
97
- // Save to config
98
- const { save } = await inquirer.prompt([
99
- {
100
- type: "confirm",
101
- name: "save",
102
- message: "Save token to ~/.shellmail/config.json?",
103
- default: true,
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("Add this to your openclaw.json:\n"));
121
- console.log(chalk.cyan(`"shellmail": {
122
- "apiUrl": "https://shellmail.ai",
123
- "token": "${result.token}"
124
- }`));
125
- console.log(chalk.gray("\n(inside skills.entries)\n"));
126
- // 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
127
104
  console.log(chalk.bold("─".repeat(50)));
128
- console.log(chalk.bold("\nCLI Commands\n"));
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"));
129
109
  console.log(` ${chalk.cyan("shellmail inbox")} Check your inbox`);
130
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`);
131
112
  console.log(` ${chalk.cyan("shellmail status")} Verify setup\n`);
132
113
  });
133
114
  // ── Inbox Command ────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shellmail",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "CLI for ShellMail - Email for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",