@mlpal/yodex 0.1.0
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/README.md +10 -0
- package/bin/yodex.js +18 -0
- package/package.json +24 -0
package/README.md
ADDED
package/bin/yodex.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
const { spawnSync } = require("child_process");
|
|
4
|
+
const pkg = "@mlpal/yodex-" + process.platform + "-" + process.arch;
|
|
5
|
+
const binName = process.platform === "win32" ? "yodex.exe" : "yodex";
|
|
6
|
+
let binPath;
|
|
7
|
+
try {
|
|
8
|
+
binPath = require.resolve(pkg + "/bin/" + binName);
|
|
9
|
+
} catch {
|
|
10
|
+
console.error(
|
|
11
|
+
"yodex: no prebuilt binary for " + process.platform + "-" + process.arch + " (" + pkg + ").\n" +
|
|
12
|
+
"Supported: darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64",
|
|
13
|
+
);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
const r = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
17
|
+
if (r.error) { console.error("yodex: failed to launch binary:", r.error.message); process.exit(1); }
|
|
18
|
+
process.exit(r.status == null ? 1 : r.status);
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mlpal/yodex",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "yodex — MLPal's model-agnostic coding agent CLI",
|
|
5
|
+
"bin": {
|
|
6
|
+
"yodex": "bin/yodex.js"
|
|
7
|
+
},
|
|
8
|
+
"optionalDependencies": {
|
|
9
|
+
"@mlpal/yodex-darwin-arm64": "0.1.0",
|
|
10
|
+
"@mlpal/yodex-darwin-x64": "0.1.0",
|
|
11
|
+
"@mlpal/yodex-linux-x64": "0.1.0",
|
|
12
|
+
"@mlpal/yodex-linux-arm64": "0.1.0",
|
|
13
|
+
"@mlpal/yodex-win32-x64": "0.1.0"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"bin",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"license": "UNLICENSED",
|
|
23
|
+
"homepage": "https://mlpal.ai"
|
|
24
|
+
}
|