omnish 2.1.9 → 2.2.1

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.
@@ -4,12 +4,17 @@
4
4
  "use strict";
5
5
 
6
6
  const INSTALL_SCRIPT_URL = "https://platform.omnish.dev/action/install-omnish.sh";
7
+ const INSTALL_SCRIPT_PS1_URL = "https://platform.omnish.dev/action/install-omnish.ps1";
7
8
 
8
9
  /** @param {string} [fallbackVersion] npm package version for unpkg fallback */
9
10
  function readBootstrapInstallScriptUrl(fallbackVersion) {
10
11
  return INSTALL_SCRIPT_URL;
11
12
  }
12
13
 
14
+ function readBootstrapInstallScriptPs1Url() {
15
+ return INSTALL_SCRIPT_PS1_URL;
16
+ }
17
+
13
18
  /** unpkg fallback when platform host is unreachable */
14
19
  function readBootstrapInstallScriptUnpkgUrl(pkg) {
15
20
  const name = (pkg && pkg.name) || "omnish";
@@ -19,6 +24,8 @@ function readBootstrapInstallScriptUnpkgUrl(pkg) {
19
24
 
20
25
  module.exports = {
21
26
  INSTALL_SCRIPT_URL,
27
+ INSTALL_SCRIPT_PS1_URL,
22
28
  readBootstrapInstallScriptUrl,
29
+ readBootstrapInstallScriptPs1Url,
23
30
  readBootstrapInstallScriptUnpkgUrl,
24
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnish",
3
- "version": "2.1.9",
3
+ "version": "2.2.1",
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",
@@ -33,6 +33,7 @@
33
33
  "scripts/node-version.cjs",
34
34
  "scripts/fix-node-pty-perms.mjs",
35
35
  "contrib/install-omnish.sh",
36
+ "contrib/install-omnish.ps1",
36
37
  "README.md",
37
38
  "CHANGELOG.md",
38
39
  "LICENSE",
@@ -4,12 +4,17 @@
4
4
  "use strict";
5
5
 
6
6
  const INSTALL_SCRIPT_URL = "https://platform.omnish.dev/action/install-omnish.sh";
7
+ const INSTALL_SCRIPT_PS1_URL = "https://platform.omnish.dev/action/install-omnish.ps1";
7
8
 
8
9
  /** @param {string} [fallbackVersion] npm package version for unpkg fallback */
9
10
  function readBootstrapInstallScriptUrl(fallbackVersion) {
10
11
  return INSTALL_SCRIPT_URL;
11
12
  }
12
13
 
14
+ function readBootstrapInstallScriptPs1Url() {
15
+ return INSTALL_SCRIPT_PS1_URL;
16
+ }
17
+
13
18
  /** unpkg fallback when platform host is unreachable */
14
19
  function readBootstrapInstallScriptUnpkgUrl(pkg) {
15
20
  const name = (pkg && pkg.name) || "omnish";
@@ -19,6 +24,8 @@ function readBootstrapInstallScriptUnpkgUrl(pkg) {
19
24
 
20
25
  module.exports = {
21
26
  INSTALL_SCRIPT_URL,
27
+ INSTALL_SCRIPT_PS1_URL,
22
28
  readBootstrapInstallScriptUrl,
29
+ readBootstrapInstallScriptPs1Url,
23
30
  readBootstrapInstallScriptUnpkgUrl,
24
31
  };
@@ -149,7 +149,11 @@ function formatNodeUpgradeHelp(result, platform) {
149
149
  );
150
150
  lines.push("");
151
151
  lines.push("RUN THIS INSTEAD — one command upgrades Node + installs omnish:");
152
- lines.push(" curl -fsSL " + bootstrap + " | bash");
152
+ if (platform === "win32") {
153
+ lines.push(" irm " + installUrl.readBootstrapInstallScriptPs1Url() + " | iex");
154
+ } else {
155
+ lines.push(" curl -fsSL " + bootstrap + " | bash");
156
+ }
153
157
  lines.push("");
154
158
  lines.push("Fallback (npm mirror):");
155
159
  lines.push(" curl -fsSL " + installUrl.readBootstrapInstallScriptUnpkgUrl(readPackageJson()) + " | bash");
@@ -161,8 +165,11 @@ function formatNodeUpgradeHelp(result, platform) {
161
165
  lines.push("");
162
166
 
163
167
  if (platform === "win32") {
168
+ lines.push("Windows — guided installer (PowerShell):");
169
+ lines.push(" irm " + installUrl.readBootstrapInstallScriptPs1Url() + " | iex");
170
+ lines.push("");
164
171
  lines.push("Windows — nvm-windows:");
165
- lines.push(" nvm i 22");
172
+ lines.push(" nvm install 22");
166
173
  lines.push(" nvm use 22");
167
174
  lines.push(" node -v");
168
175
  lines.push(" npm i -g omnish");