@manaflow-ai/cloudrouter 0.9.7 → 0.9.8
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/bin/cloudrouter +27 -0
- package/lib/cloudrouter +0 -0
- package/package.json +6 -6
package/bin/cloudrouter
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Launcher stub for cloudrouter CLI.
|
|
4
|
+
* This file is replaced by the native binary during postinstall.
|
|
5
|
+
* If postinstall didn't run, this falls back to lib/cloudrouter.
|
|
6
|
+
*/
|
|
7
|
+
const { execFileSync } = require("child_process");
|
|
8
|
+
const path = require("path");
|
|
9
|
+
const fs = require("fs");
|
|
10
|
+
|
|
11
|
+
const libBinary = path.join(__dirname, "..", "lib", "cloudrouter");
|
|
12
|
+
|
|
13
|
+
if (fs.existsSync(libBinary)) {
|
|
14
|
+
try {
|
|
15
|
+
const result = execFileSync(libBinary, process.argv.slice(2), {
|
|
16
|
+
stdio: "inherit",
|
|
17
|
+
env: process.env,
|
|
18
|
+
});
|
|
19
|
+
process.exit(0);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
process.exit(e.status || 1);
|
|
22
|
+
}
|
|
23
|
+
} else {
|
|
24
|
+
console.error("cloudrouter: binary not found. Try reinstalling:");
|
|
25
|
+
console.error(" npm install -g @manaflow-ai/cloudrouter");
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
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.
|
|
3
|
+
"version": "0.9.8",
|
|
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.
|
|
35
|
-
"@manaflow-ai/cloudrouter-darwin-x64": "0.9.
|
|
36
|
-
"@manaflow-ai/cloudrouter-linux-arm64": "0.9.
|
|
37
|
-
"@manaflow-ai/cloudrouter-linux-x64": "0.9.
|
|
38
|
-
"@manaflow-ai/cloudrouter-win32-x64": "0.9.
|
|
34
|
+
"@manaflow-ai/cloudrouter-darwin-arm64": "0.9.8",
|
|
35
|
+
"@manaflow-ai/cloudrouter-darwin-x64": "0.9.8",
|
|
36
|
+
"@manaflow-ai/cloudrouter-linux-arm64": "0.9.8",
|
|
37
|
+
"@manaflow-ai/cloudrouter-linux-x64": "0.9.8",
|
|
38
|
+
"@manaflow-ai/cloudrouter-win32-x64": "0.9.8"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=16"
|