create-metaclaw 3.3.0 → 3.3.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.
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ import { execFileSync } from "child_process";
3
+ import { fileURLToPath } from "url";
4
+ import { dirname, join } from "path";
5
+ import { existsSync } from "fs";
6
+
7
+ const __dirname = dirname(fileURLToPath(import.meta.url));
8
+ const root = join(__dirname, "..");
9
+ const entry = join(root, "installer", "index.ts");
10
+
11
+ // Find tsx - check .bin for both unix and windows
12
+ const candidates = [
13
+ join(root, "node_modules", ".bin", "tsx.cmd"),
14
+ join(root, "node_modules", ".bin", "tsx"),
15
+ "tsx",
16
+ ];
17
+
18
+ let tsx = candidates.find((c) => c === "tsx" || existsSync(c)) || "tsx";
19
+
20
+ try {
21
+ execFileSync(tsx, [entry], { stdio: "inherit", cwd: root, shell: tsx.endsWith(".cmd") });
22
+ } catch (e) {
23
+ process.exit(e.status || 1);
24
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "create-metaclaw",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "MetaClaw — Autonomous AI Agent Platform by Yonder Zenith LLC",
5
5
  "type": "module",
6
6
  "bin": {
7
- "create-metaclaw": "installer/index.ts"
7
+ "create-metaclaw": "bin/create-metaclaw.mjs"
8
8
  },
9
9
  "scripts": {
10
10
  "start": "tsx installer/index.ts",