@softmax-universe/nexus-cli 0.0.0-stage → 0.44.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.
Files changed (3) hide show
  1. package/bin/nexus.mjs +35 -0
  2. package/package.json +28 -4
  3. package/README.md +0 -3
package/bin/nexus.mjs ADDED
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from 'node:child_process';
3
+ import { createRequire } from 'node:module';
4
+
5
+ const PLATFORMS = {
6
+ 'linux:x64': '@softmax-universe/nexus-cli-linux-x64/bin/nexus',
7
+ 'linux:arm64': '@softmax-universe/nexus-cli-linux-arm64/bin/nexus',
8
+ 'darwin:arm64': '@softmax-universe/nexus-cli-darwin-arm64/bin/nexus',
9
+ };
10
+
11
+ const key = `${process.platform}:${process.arch}`;
12
+ const target = PLATFORMS[key];
13
+ if (!target) {
14
+ console.error(`Unsupported platform for @softmax-universe/nexus-cli: ${key}`);
15
+ process.exit(1);
16
+ }
17
+
18
+ const require = createRequire(import.meta.url);
19
+ let binary;
20
+ try {
21
+ binary = require.resolve(target);
22
+ } catch {
23
+ console.error(`Missing platform binary package (${target}). Reinstall @softmax-universe/nexus-cli.`);
24
+ process.exit(1);
25
+ }
26
+
27
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit' });
28
+ if (result.error) {
29
+ console.error(result.error.message);
30
+ process.exit(1);
31
+ }
32
+ if (result.signal) {
33
+ process.kill(process.pid, result.signal);
34
+ }
35
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,30 @@
1
1
  {
2
2
  "name": "@softmax-universe/nexus-cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.44.1",
4
+ "description": "Softmax Nexus CLI (native binary wrapper).",
5
+ "homepage": "https://softmax.nexus",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/softmax-universe/nexus-factory.git"
9
+ },
10
+ "license": "UNLICENSED",
11
+ "type": "module",
12
+ "bin": {
13
+ "nexus": "bin/nexus.mjs"
14
+ },
15
+ "files": [
16
+ "bin/nexus.mjs"
17
+ ],
18
+ "engines": {
19
+ "node": ">=18"
20
+ },
21
+ "optionalDependencies": {
22
+ "@softmax-universe/nexus-cli-linux-x64": "0.44.1",
23
+ "@softmax-universe/nexus-cli-linux-arm64": "0.44.1",
24
+ "@softmax-universe/nexus-cli-darwin-arm64": "0.44.1"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "registry": "https://registry.npmjs.org"
29
+ }
30
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.