omnish 2.1.5 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnish",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "omnish — allowlisted inbox → your real shell (WhatsApp, Telegram, Discord, Slack, and 20+ channels). No AI.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -127,6 +127,16 @@ function formatNodeUpgradeHelp(result, platform) {
127
127
  var lines = [];
128
128
  var c = shellComment(platform);
129
129
  lines.push("");
130
+ lines.push("=== omnish: upgrade Node to 22.13+ (you have " + result.current + ") ===");
131
+ lines.push("");
132
+ if (platform !== "win32" && platform !== "darwin") {
133
+ lines.push("QUICK FIX — Debian/Ubuntu VPS (replaces old apt Node 12):");
134
+ lines.push(" curl -fsSL https://deb.nodesource.com/setup_22.x | bash -");
135
+ lines.push(" apt-get install -y nodejs");
136
+ lines.push(" node -v");
137
+ lines.push(" npm i -g omnish");
138
+ lines.push("");
139
+ }
130
140
  lines.push("omnish needs a newer Node.js to install and run.");
131
141
  lines.push(" Required : Node " + result.required + " (see package.json engines)");
132
142
  lines.push(" You have : " + result.current);
@@ -136,20 +146,20 @@ function formatNodeUpgradeHelp(result, platform) {
136
146
  lines.push("packages that require Node 22+. Older Node cannot install or run omnish.");
137
147
  lines.push("");
138
148
  lines.push("Pick one upgrade path, then re-run:");
139
- lines.push(" npm install -g omnish");
149
+ lines.push(" npm i -g omnish");
140
150
  lines.push("");
141
151
 
142
152
  if (platform === "win32") {
143
153
  lines.push("Windows — nvm-windows (recommended if you use nvm):");
144
- lines.push(" nvm install 22");
154
+ lines.push(" nvm i 22");
145
155
  lines.push(" nvm use 22");
146
156
  lines.push(" node -v");
147
- lines.push(" npm install -g omnish");
157
+ lines.push(" npm i -g omnish");
148
158
  lines.push("");
149
159
  lines.push("Windows — official installer / winget:");
150
160
  lines.push(" winget install OpenJS.NodeJS.LTS");
151
161
  lines.push(" node -v");
152
- lines.push(" npm install -g omnish");
162
+ lines.push(" npm i -g omnish");
153
163
  lines.push("");
154
164
  lines.push("If npm still uses an old Node, open a new terminal after upgrading.");
155
165
  return lines.join("\n");
@@ -162,21 +172,21 @@ function formatNodeUpgradeHelp(result, platform) {
162
172
  " curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash",
163
173
  );
164
174
  lines.push(c + " restart your shell, then:");
165
- lines.push(" nvm install 22");
175
+ lines.push(" nvm i 22");
166
176
  lines.push(" nvm alias default 22");
167
177
  lines.push(" node -v");
168
- lines.push(" npm install -g omnish");
178
+ lines.push(" npm i -g omnish");
169
179
  lines.push("");
170
180
  lines.push("macOS — Homebrew:");
171
181
  lines.push(" brew install node@22");
172
182
  lines.push(" brew link --overwrite --force node@22");
173
183
  lines.push(" node -v");
174
- lines.push(" npm install -g omnish");
184
+ lines.push(" npm i -g omnish");
175
185
  lines.push("");
176
186
  lines.push("macOS — fnm:");
177
- lines.push(" fnm install 22");
187
+ lines.push(" fnm use --install-if-missing 22");
178
188
  lines.push(" fnm default 22");
179
- lines.push(" npm install -g omnish");
189
+ lines.push(" npm i -g omnish");
180
190
  return lines.join("\n");
181
191
  }
182
192
 
@@ -184,7 +194,7 @@ function formatNodeUpgradeHelp(result, platform) {
184
194
  lines.push(" curl -fsSL https://deb.nodesource.com/setup_22.x | bash -");
185
195
  lines.push(" apt-get install -y nodejs");
186
196
  lines.push(" node -v");
187
- lines.push(" npm install -g omnish");
197
+ lines.push(" npm i -g omnish");
188
198
  lines.push("");
189
199
  lines.push("Linux — nvm (install + set default + install omnish):");
190
200
  lines.push(c + " install nvm: https://github.com/nvm-sh/nvm#installing-and-updating");
@@ -192,15 +202,15 @@ function formatNodeUpgradeHelp(result, platform) {
192
202
  " curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash",
193
203
  );
194
204
  lines.push(c + " restart your shell, then:");
195
- lines.push(" nvm install 22");
205
+ lines.push(" nvm i 22");
196
206
  lines.push(" nvm alias default 22");
197
207
  lines.push(" node -v");
198
- lines.push(" npm install -g omnish");
208
+ lines.push(" npm i -g omnish");
199
209
  lines.push("");
200
210
  lines.push("Linux — fnm:");
201
- lines.push(" fnm install 22");
211
+ lines.push(" fnm use --install-if-missing 22");
202
212
  lines.push(" fnm default 22");
203
- lines.push(" npm install -g omnish");
213
+ lines.push(" npm i -g omnish");
204
214
  lines.push("");
205
215
  lines.push("Linux — official builds:");
206
216
  lines.push(" https://nodejs.org/en/download (pick 22.x)");
@@ -226,7 +236,7 @@ function formatNativeModuleNodeHint(overrides) {
226
236
  "",
227
237
  "Fix:",
228
238
  " 1. Switch to Node 22+ and set it as default (see commands below)",
229
- " 2. Reinstall: npm install -g omnish",
239
+ " 2. Reinstall: npm i -g omnish",
230
240
  " 3. Or rebuild natives: npm rebuild -g omnish",
231
241
  formatNodeUpgradeHelp(result),
232
242
  ];