clawcontrol 0.1.3 → 0.1.5
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/clawcontrol.js +28 -0
- package/dist/index.js +0 -2
- package/package.json +3 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Thin wrapper so npm correctly registers the "clawcontrol" binary.
|
|
4
|
+
// The actual CLI is powered by Bun (required by @opentui/core), so we
|
|
5
|
+
// re-exec with bun pointing at the bundled dist/index.js.
|
|
6
|
+
|
|
7
|
+
import { execFileSync } from "node:child_process";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
import { dirname, resolve } from "node:path";
|
|
10
|
+
|
|
11
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const script = resolve(__dirname, "../dist/index.js");
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
execFileSync("bun", [script, ...process.argv.slice(2)], {
|
|
16
|
+
stdio: "inherit",
|
|
17
|
+
});
|
|
18
|
+
} catch (e) {
|
|
19
|
+
if (e.code === "ENOENT") {
|
|
20
|
+
console.error(
|
|
21
|
+
"\n ClawControl requires the Bun runtime." +
|
|
22
|
+
"\n Install it: curl -fsSL https://bun.sh/install | bash\n"
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
// Forward the child's exit code
|
|
27
|
+
process.exit(e.status ?? 1);
|
|
28
|
+
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawcontrol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "CLI tool for deploying and managing OpenClaw instances on VPS providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"clawcontrol": "
|
|
8
|
+
"clawcontrol": "bin/clawcontrol.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
+
"bin",
|
|
11
12
|
"dist",
|
|
12
13
|
"README.md",
|
|
13
14
|
"LICENSE"
|