@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.
Files changed (3) hide show
  1. package/README.md +10 -0
  2. package/bin/yodex.js +18 -0
  3. package/package.json +24 -0
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # yodex
2
+
3
+ MLPal's model-agnostic coding agent CLI.
4
+
5
+ ```sh
6
+ npm i -g @mlpal/yodex
7
+ yodex --help
8
+ ```
9
+
10
+ Create an MLPal API key at https://mlpal.ai and set `YODEX_API_KEY` to start.
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
+ }