@manaflow-ai/cloudrouter 0.9.27 → 0.9.29

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.
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ const { execFileSync } = require("child_process");
3
+ const path = require("path");
4
+ const fs = require("fs");
5
+
6
+ // This is a placeholder that gets overwritten by postinstall.
7
+ // If postinstall didn't run (e.g. npx), fall back to lib/cloudrouter binary.
8
+ const libBinary = path.join(__dirname, "..", "lib", "cloudrouter");
9
+ if (fs.existsSync(libBinary)) {
10
+ try {
11
+ const result = execFileSync(libBinary, process.argv.slice(2), {
12
+ stdio: "inherit",
13
+ env: process.env,
14
+ });
15
+ process.exit(0);
16
+ } catch (e) {
17
+ process.exit(e.status || 1);
18
+ }
19
+ } else {
20
+ console.error("cloudrouter: binary not found. Try reinstalling: npm install -g @manaflow-ai/cloudrouter");
21
+ process.exit(1);
22
+ }
package/lib/cloudrouter CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manaflow-ai/cloudrouter",
3
- "version": "0.9.27",
3
+ "version": "0.9.29",
4
4
  "description": "CLI tool to instantly spin up cloud VMs preloaded with Chrome, VNC, SSH, and rsync",
5
5
  "keywords": [
6
6
  "cli",
@@ -31,11 +31,11 @@
31
31
  "postinstall": "node lib/postinstall.js"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@manaflow-ai/cloudrouter-darwin-arm64": "0.9.27",
35
- "@manaflow-ai/cloudrouter-darwin-x64": "0.9.27",
36
- "@manaflow-ai/cloudrouter-linux-arm64": "0.9.27",
37
- "@manaflow-ai/cloudrouter-linux-x64": "0.9.27",
38
- "@manaflow-ai/cloudrouter-win32-x64": "0.9.27"
34
+ "@manaflow-ai/cloudrouter-darwin-arm64": "0.9.29",
35
+ "@manaflow-ai/cloudrouter-darwin-x64": "0.9.29",
36
+ "@manaflow-ai/cloudrouter-linux-arm64": "0.9.29",
37
+ "@manaflow-ai/cloudrouter-linux-x64": "0.9.29",
38
+ "@manaflow-ai/cloudrouter-win32-x64": "0.9.29"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=16"