@anona-labs/anona-compute 0.0.0-stage → 0.1.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,41 @@
1
+ #!/usr/bin/env node
2
+ // Shim: resolves and execs the real anona-compute binary from whichever
3
+ // platform-specific optionalDependency npm installed for this machine.
4
+ "use strict";
5
+
6
+ const { spawnSync } = require("node:child_process");
7
+
8
+ const PLATFORM_PACKAGES = {
9
+ "linux-x64": "@anona-labs/anona-compute-linux-x64",
10
+ "linux-arm64": "@anona-labs/anona-compute-linux-arm64",
11
+ "darwin-x64": "@anona-labs/anona-compute-darwin-x64",
12
+ "darwin-arm64": "@anona-labs/anona-compute-darwin-arm64",
13
+ "win32-x64": "@anona-labs/anona-compute-win32-x64",
14
+ "win32-arm64": "@anona-labs/anona-compute-win32-arm64",
15
+ };
16
+
17
+ const key = `${process.platform}-${process.arch}`;
18
+ const pkgName = PLATFORM_PACKAGES[key];
19
+ if (!pkgName) {
20
+ console.error(`@anona-labs/anona-compute: unsupported platform ${key}`);
21
+ process.exit(1);
22
+ }
23
+
24
+ const binName = process.platform === "win32" ? "anona-compute.exe" : "anona-compute";
25
+ let target;
26
+ try {
27
+ target = require.resolve(`${pkgName}/bin/${binName}`);
28
+ } catch {
29
+ console.error(
30
+ `@anona-labs/anona-compute: optional dependency ${pkgName} is missing; ` +
31
+ "reinstall with npm install -g @anona-labs/anona-compute."
32
+ );
33
+ process.exit(1);
34
+ }
35
+
36
+ const result = spawnSync(target, process.argv.slice(2), { stdio: "inherit" });
37
+ if (result.error) {
38
+ console.error(result.error.message);
39
+ process.exit(1);
40
+ }
41
+ process.exit(result.status === null ? 1 : result.status);
package/package.json CHANGED
@@ -1,6 +1,25 @@
1
1
  {
2
2
  "name": "@anona-labs/anona-compute",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Anona Compute CLI and MCP server",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/anonalabs/Anona-Compute.git",
9
+ "directory": "npm/anona-compute"
10
+ },
11
+ "bin": {
12
+ "anona-compute": "bin/anona-compute"
13
+ },
14
+ "files": [
15
+ "bin/anona-compute"
16
+ ],
17
+ "optionalDependencies": {
18
+ "@anona-labs/anona-compute-linux-x64": "0.1.0",
19
+ "@anona-labs/anona-compute-linux-arm64": "0.1.0",
20
+ "@anona-labs/anona-compute-darwin-x64": "0.1.0",
21
+ "@anona-labs/anona-compute-darwin-arm64": "0.1.0",
22
+ "@anona-labs/anona-compute-win32-x64": "0.1.0",
23
+ "@anona-labs/anona-compute-win32-arm64": "0.1.0"
24
+ }
25
+ }
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.