@inference/cli 0.0.222-beta.816 → 0.0.224-beta.818
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 +7 -2
- package/bin/inf.cjs +9 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -4,12 +4,17 @@ Command-line interface for [Inference.net](https://inference.net) -- manage trai
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Global install (npm, Bun, pnpm, or Yarn Classic):**
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install
|
|
10
|
+
npm install --global @inference/cli
|
|
11
|
+
bun install --global @inference/cli
|
|
12
|
+
pnpm add --global @inference/cli
|
|
13
|
+
yarn global add @inference/cli
|
|
11
14
|
```
|
|
12
15
|
|
|
16
|
+
Run `inf update` to update a supported global installation through the package manager that installed it (npm, Bun, pnpm, or Yarn Classic v1 — Yarn Berry v2+ is not supported because it removed `yarn global`). It prints the version it replaced; run `inf --version` afterward to confirm the new version. Project-local installs should be updated through that project's package manager. `npx` and `bunx` fetch a current release when you run them, so rerun the command instead of using `inf update`. Windows global installs are not yet supported by `inf update` — rerun your package manager's install command to update.
|
|
17
|
+
|
|
13
18
|
**Via npx (no install):**
|
|
14
19
|
|
|
15
20
|
```bash
|
package/bin/inf.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
5
|
const { execFileSync } = require("child_process");
|
|
6
|
-
const { existsSync } = require("fs");
|
|
6
|
+
const { existsSync, realpathSync } = require("fs");
|
|
7
7
|
const path = require("path");
|
|
8
8
|
|
|
9
9
|
const PLATFORM_PACKAGES = {
|
|
@@ -49,9 +49,15 @@ function getBinaryPath() {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
try {
|
|
52
|
-
|
|
52
|
+
const binaryPath = getBinaryPath();
|
|
53
|
+
execFileSync(binaryPath, process.argv.slice(2), {
|
|
53
54
|
stdio: "inherit",
|
|
54
|
-
|
|
55
|
+
// Set after spreading so callers cannot forge installation provenance.
|
|
56
|
+
env: {
|
|
57
|
+
...process.env,
|
|
58
|
+
INF_CLI_LAUNCHER_PATH: realpathSync(__filename),
|
|
59
|
+
INF_CLI_PAYLOAD_PATH: realpathSync(binaryPath),
|
|
60
|
+
},
|
|
55
61
|
});
|
|
56
62
|
} catch (err) {
|
|
57
63
|
if (err && typeof err.status === "number") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inference/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.224-beta.818",
|
|
4
4
|
"description": "Inference.net CLI - manage training runs, evals, datasets, and inferences from your terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"ai"
|
|
27
27
|
],
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@inference/cli-darwin-arm64": "0.0.
|
|
30
|
-
"@inference/cli-darwin-x64": "0.0.
|
|
31
|
-
"@inference/cli-linux-x64": "0.0.
|
|
32
|
-
"@inference/cli-linux-arm64": "0.0.
|
|
29
|
+
"@inference/cli-darwin-arm64": "0.0.224-beta.818",
|
|
30
|
+
"@inference/cli-darwin-x64": "0.0.224-beta.818",
|
|
31
|
+
"@inference/cli-linux-x64": "0.0.224-beta.818",
|
|
32
|
+
"@inference/cli-linux-arm64": "0.0.224-beta.818"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "bun run clean:bin && bun run build:cli",
|