@inference-gateway/cli 0.134.0 → 0.135.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 +75 -3
- package/bin/install.js +2 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -126,9 +126,9 @@ infer --help
|
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
> **Not recommended for production.** For production or CI, prefer the
|
|
129
|
-
> [install script](#using-install-script), [
|
|
130
|
-
> [building from source](#build-from-source). Prebuilt binaries cover Linux and
|
|
131
|
-
> amd64/arm64
|
|
129
|
+
> [install script](#using-install-script), [Nix flake](#using-nix-flake--flox),
|
|
130
|
+
> [container image](#using-container-image), or [building from source](#build-from-source). Prebuilt binaries cover Linux, macOS, and Windows on
|
|
131
|
+
> amd64/arm64.
|
|
132
132
|
|
|
133
133
|
### Using Go Install
|
|
134
134
|
|
|
@@ -148,6 +148,32 @@ Or use an alias:
|
|
|
148
148
|
alias infer="$(go env GOPATH)/bin/cli"
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
+
### Using Nix Flake / Flox
|
|
152
|
+
|
|
153
|
+
With Nix (flakes enabled), run directly without installing:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
nix run github:inference-gateway/cli
|
|
157
|
+
|
|
158
|
+
# Pin a specific release
|
|
159
|
+
nix run github:inference-gateway/cli/v0.135.0
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Or install into your profile:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
nix profile install github:inference-gateway/cli
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
With [Flox](https://flox.dev), pin it in your environment manifest (`.flox/env/manifest.toml`):
|
|
169
|
+
|
|
170
|
+
```toml
|
|
171
|
+
[install]
|
|
172
|
+
infer.flake = "github:inference-gateway/cli"
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Then `flox activate` makes `infer` available in the environment. Pin a release by appending the tag: `github:inference-gateway/cli/v0.135.0`.
|
|
176
|
+
|
|
151
177
|
### Using Container Image
|
|
152
178
|
|
|
153
179
|
```bash
|
|
@@ -164,6 +190,8 @@ docker run -it --rm --network inference-gateway ghcr.io/inference-gateway/cli:la
|
|
|
164
190
|
|
|
165
191
|
### Using Install Script
|
|
166
192
|
|
|
193
|
+
**Linux/macOS:**
|
|
194
|
+
|
|
167
195
|
```bash
|
|
168
196
|
# Latest version
|
|
169
197
|
curl -fsSL https://raw.githubusercontent.com/inference-gateway/cli/main/install.sh | bash
|
|
@@ -175,10 +203,41 @@ curl -fsSL https://raw.githubusercontent.com/inference-gateway/cli/main/install.
|
|
|
175
203
|
curl -fsSL https://raw.githubusercontent.com/inference-gateway/cli/main/install.sh | bash -s -- --install-dir $HOME/.local/bin
|
|
176
204
|
```
|
|
177
205
|
|
|
206
|
+
**Windows (PowerShell 5.1+ / pwsh):**
|
|
207
|
+
|
|
208
|
+
```powershell
|
|
209
|
+
# Latest version
|
|
210
|
+
.\install.ps1
|
|
211
|
+
|
|
212
|
+
# Specific version
|
|
213
|
+
.\install.ps1 -Version v0.1.0
|
|
214
|
+
|
|
215
|
+
# Custom installation directory
|
|
216
|
+
$env:INSTALL_DIR = "C:\tools"; .\install.ps1
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Or run directly from GitHub:
|
|
220
|
+
|
|
221
|
+
```powershell
|
|
222
|
+
# Download and run
|
|
223
|
+
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/inference-gateway/cli/main/install.ps1'))
|
|
224
|
+
```
|
|
225
|
+
|
|
178
226
|
### Manual Download
|
|
179
227
|
|
|
180
228
|
Download the latest release binary for your platform from the [releases page](https://github.com/inference-gateway/cli/releases).
|
|
181
229
|
|
|
230
|
+
Available binaries:
|
|
231
|
+
|
|
232
|
+
| Platform | Binary |
|
|
233
|
+
| -------- | ------ |
|
|
234
|
+
| Linux amd64 | `infer-linux-amd64` |
|
|
235
|
+
| Linux arm64 | `infer-linux-arm64` |
|
|
236
|
+
| macOS amd64 (Intel) | `infer-darwin-amd64` |
|
|
237
|
+
| macOS arm64 (Apple Silicon) | `infer-darwin-arm64` |
|
|
238
|
+
| Windows amd64 | `infer-windows-amd64` (rename to `infer.exe`) |
|
|
239
|
+
| Windows arm64 | `infer-windows-arm64` (rename to `infer.exe`) |
|
|
240
|
+
|
|
182
241
|
**Verify the binary** (recommended for security):
|
|
183
242
|
|
|
184
243
|
```bash
|
|
@@ -208,6 +267,15 @@ go build -o infer cmd/infer/main.go
|
|
|
208
267
|
sudo mv infer /usr/local/bin/
|
|
209
268
|
```
|
|
210
269
|
|
|
270
|
+
On Windows, build with:
|
|
271
|
+
|
|
272
|
+
```powershell
|
|
273
|
+
git clone https://github.com/inference-gateway/cli.git
|
|
274
|
+
cd cli
|
|
275
|
+
go build -o infer.exe cmd/infer/main.go
|
|
276
|
+
# The binary is at .\infer.exe
|
|
277
|
+
```
|
|
278
|
+
|
|
211
279
|
## Quick Start
|
|
212
280
|
|
|
213
281
|
1. **Initialize your project**:
|
|
@@ -1374,6 +1442,10 @@ governed by `computer_use.enabled` plus the configured rate limits. On macOS an
|
|
|
1374
1442
|
progress window** can mirror what the agent is doing. For a sandboxed desktop to drive, see
|
|
1375
1443
|
[examples/computer-use](examples/computer-use/).
|
|
1376
1444
|
|
|
1445
|
+
> **⚠️ Windows note:** Computer use (mouse, keyboard, screenshot tools) is **not supported on Windows**.
|
|
1446
|
+
> The agent will log a warning and disable these tools when running on Windows. All other features
|
|
1447
|
+
> work normally.
|
|
1448
|
+
|
|
1377
1449
|
## Persistent Memory
|
|
1378
1450
|
|
|
1379
1451
|
The agent keeps a durable, cross-session memory: individual Markdown **fact-files** under a global
|
package/bin/install.js
CHANGED
|
@@ -20,7 +20,7 @@ const BASE_URL =
|
|
|
20
20
|
`https://github.com/${REPO}/releases/download/v${version}`;
|
|
21
21
|
|
|
22
22
|
// Maps Node's process.platform / process.arch onto the release asset names.
|
|
23
|
-
const PLATFORMS = { linux: "linux", darwin: "darwin" };
|
|
23
|
+
const PLATFORMS = { linux: "linux", darwin: "darwin", win32: "windows" };
|
|
24
24
|
const ARCHES = { x64: "amd64", arm64: "arm64" };
|
|
25
25
|
|
|
26
26
|
const binName = process.platform === "win32" ? "infer.exe" : "infer";
|
|
@@ -37,7 +37,7 @@ function resolveAsset() {
|
|
|
37
37
|
if (!goos || !goarch) {
|
|
38
38
|
fail(
|
|
39
39
|
`unsupported platform ${process.platform}/${process.arch}. ` +
|
|
40
|
-
`Prebuilt binaries are published for linux and
|
|
40
|
+
`Prebuilt binaries are published for linux, darwin, and win32 on amd64/arm64 only. ` +
|
|
41
41
|
`Install from source instead: https://github.com/${REPO}#installation`
|
|
42
42
|
);
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inference-gateway/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.135.1",
|
|
4
4
|
"description": "A Git-first CLI coding agent that turns ideas, issues, and tasks into real code changes.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"infer": "bin/run.js"
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"os": [
|
|
42
42
|
"linux",
|
|
43
|
-
"darwin"
|
|
43
|
+
"darwin",
|
|
44
|
+
"win32"
|
|
44
45
|
],
|
|
45
46
|
"cpu": [
|
|
46
47
|
"x64",
|