rauta-ai 0.1.2 → 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/bin/rauta-box.js +28 -0
- package/package.json +4 -2
package/bin/rauta-box.js
ADDED
|
@@ -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
|
|
3
|
+
"version": "0.2.1",
|
|
4
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": {
|