rauta-ai 0.1.1 → 0.2.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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ provision GPUs, and track AI spend. Same gateway as the Rauta MCP tools.
16
16
  This package is a thin launcher: it downloads the static Go binary for your
17
17
  platform (darwin/linux, arm64/amd64) once per version. It prefers
18
18
  `rauta-<os>-<arch>` on [rauta.ai/cli](https://rauta.ai/cli/install.sh), then
19
- falls back to `infra-arena-*` and/or infra-arena.ai, caches it, and passes
19
+ falls back to `infra-arena-*` and/or rauta.ai, caches it, and passes
20
20
  through.
21
21
 
22
22
  ```
@@ -25,4 +25,4 @@ curl -fsSL https://rauta.ai/cli/install.sh | sh
25
25
 
26
26
  Docs: <https://rauta.ai/docs> · Rauta Labs, Inc.
27
27
 
28
- Legacy: `npx infra-arena` still works and prints a rename notice.
28
+ Legacy: `npx rauta-ai` still works and prints a rename notice.
package/bin/rauta-ai.js CHANGED
@@ -3,7 +3,7 @@
3
3
  //
4
4
  // Package name is `rauta-ai` until npm clears unscoped `rauta` (similarity
5
5
  // filter vs ramda/auto/oauth). Prefer CDN artifacts named rauta-*; fall back
6
- // to infra-arena-* on both rauta.ai and infra-arena.ai during the interim
6
+ // to infra-arena-* on both rauta.ai and rauta.ai during the interim
7
7
  // rename window. This shim downloads once, caches it, and execs with stdio
8
8
  // passed through.
9
9
  'use strict';
@@ -16,7 +16,7 @@ const path = require('node:path');
16
16
 
17
17
  const pkg = require('../package.json');
18
18
  const PRIMARY_BASE = process.env.RAUTA_CLI_BASE || process.env.INFRA_ARENA_CLI_BASE || 'https://rauta.ai/cli';
19
- const FALLBACK_BASE = 'https://infra-arena.ai/cli';
19
+ const FALLBACK_BASE = 'https://rauta.ai/cli';
20
20
 
21
21
  function fail(msg) {
22
22
  process.stderr.write(`rauta-ai: ${msg}\n`);
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+ // `rauta-box` -- a thin alias for `rauta-ai box`, so connecting a machine reads
3
+ // as one purposeful command rather than a subcommand of a general CLI:
4
+ //
5
+ // npx -p rauta-ai rauta-box connect <pairing-code>
6
+ //
7
+ // It is the SAME binary and the same code path; this shim only prepends the
8
+ // `box` verb before delegating, so there is no second implementation to drift.
9
+ //
10
+ // Note on `npx rauta-box` (no -p): npx resolves the PACKAGE from the command
11
+ // name, so the bare form needs a package literally named `rauta-box` on the
12
+ // registry. Publishing one is a release decision, not a code change -- until
13
+ // then the canonical, always-working form is `npx rauta-ai box connect ...`,
14
+ // which is what the gateway hands users (see boxConnectCommand in
15
+ // workers/gateway/src/boxPlanner.ts -- the single source of that string).
16
+ 'use strict';
17
+
18
+ const path = require('node:path');
19
+ const { spawnSync } = require('node:child_process');
20
+
21
+ const args = process.argv.slice(2);
22
+ // Do not double-prepend if someone already typed the verb.
23
+ const argv = args[0] === 'box' ? args : ['box', ...args];
24
+
25
+ const result = spawnSync(process.execPath, [path.join(__dirname, 'rauta-ai.js'), ...argv], {
26
+ stdio: 'inherit',
27
+ });
28
+ process.exit(result.status === null ? 1 : result.status);
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "rauta-ai",
3
- "version": "0.1.1",
4
- "description": "CLI for Rauta (rauta.ai) — GPU infrastructure, compared in public. Interim package name while unscoped `rauta` awaits npm similarity clearance. Sign up, connect provider keys (BYOK), buy prepaid credits, provision GPUs, and track AI spend from your terminal.",
3
+ "version": "0.2.1",
4
+ "description": "CLI for Rauta (rauta.ai) — GPU infrastructure, compared in public. Canonical install: `npx rauta-ai`. Interim package name while unscoped `rauta` awaits npm similarity clearance. Sign up, connect provider keys (BYOK), buy prepaid credits, provision GPUs, and track AI spend from your terminal.",
5
5
  "bin": {
6
6
  "rauta-ai": "bin/rauta-ai.js",
7
- "rauta": "bin/rauta-ai.js"
7
+ "rauta": "bin/rauta-ai.js",
8
+ "rauta-box": "bin/rauta-box.js"
8
9
  },
9
10
  "files": [
10
11
  "bin/rauta-ai.js",
12
+ "bin/rauta-box.js",
11
13
  "README.md"
12
14
  ],
13
15
  "engines": {
@@ -17,7 +19,7 @@
17
19
  "homepage": "https://rauta.ai/docs",
18
20
  "repository": {
19
21
  "type": "git",
20
- "url": "git+https://github.com/infra-arena/infra-arena.git",
22
+ "url": "https://github.com/rauta-labs/rauta.git",
21
23
  "directory": "cli"
22
24
  },
23
25
  "bugs": {