@inference-gateway/cli 0.178.2 → 0.179.0
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 +19 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -139,20 +139,10 @@ infer --help
|
|
|
139
139
|
### Using Go Install
|
|
140
140
|
|
|
141
141
|
```bash
|
|
142
|
-
go install github.com/inference-gateway/cli@latest
|
|
142
|
+
go install github.com/inference-gateway/cli/cmd/infer@latest
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
This installs the binary as `
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
mv $(go env GOPATH)/bin/cli $(go env GOPATH)/bin/infer
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
Or use an alias:
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
alias infer="$(go env GOPATH)/bin/cli"
|
|
155
|
-
```
|
|
145
|
+
This installs the binary as `infer`.
|
|
156
146
|
|
|
157
147
|
### Using Nix Flake / Flox
|
|
158
148
|
|
|
@@ -269,7 +259,7 @@ For advanced verification with Cosign signatures, see [Binary Verification Guide
|
|
|
269
259
|
```bash
|
|
270
260
|
git clone https://github.com/inference-gateway/cli.git
|
|
271
261
|
cd cli
|
|
272
|
-
go build -o infer cmd/infer
|
|
262
|
+
go build -o infer ./cmd/infer
|
|
273
263
|
sudo mv infer /usr/local/bin/
|
|
274
264
|
```
|
|
275
265
|
|
|
@@ -278,7 +268,7 @@ On Windows, build with:
|
|
|
278
268
|
```powershell
|
|
279
269
|
git clone https://github.com/inference-gateway/cli.git
|
|
280
270
|
cd cli
|
|
281
|
-
go build -o infer.exe cmd/infer
|
|
271
|
+
go build -o infer.exe ./cmd/infer
|
|
282
272
|
# The binary is at .\infer.exe
|
|
283
273
|
```
|
|
284
274
|
|
|
@@ -552,10 +542,7 @@ use the `gh` CLI through Bash (or the built-in `/scm` shortcuts) for GitHub oper
|
|
|
552
542
|
|
|
553
543
|
| Tool | Purpose | Approval |
|
|
554
544
|
| ------ | --------- | ---------- |
|
|
555
|
-
| **
|
|
556
|
-
| **KeyboardType** | Type text or send key combinations | No |
|
|
557
|
-
| **GetFocusedApp** / **ActivateApp** | Query or focus an application | No |
|
|
558
|
-
| **GetUIElements** / **PressUIElement** | Read the accessibility tree / press an element by title without moving the cursor (macOS) | No |
|
|
545
|
+
| **Computer** | Read the accessibility tree, press labelled controls, capture screenshots, and control mouse/keyboard | Configurable |
|
|
559
546
|
| **GetLatestFrame** | Read the latest frame from a named source (screen, camera directory) | No |
|
|
560
547
|
|
|
561
548
|
**Memory, scheduling & A2A** (each gated by its own flag):
|
|
@@ -1213,9 +1200,9 @@ infer skills uninstall pdf # Remove a skill folder by name
|
|
|
1213
1200
|
|
|
1214
1201
|
## Computer Use
|
|
1215
1202
|
|
|
1216
|
-
When enabled, the agent can control the desktop -
|
|
1217
|
-
|
|
1218
|
-
across **macOS**, **
|
|
1203
|
+
When enabled, the agent can inspect and control the desktop - read accessible controls, press them by
|
|
1204
|
+
label, capture screenshots, move and click the mouse, scroll, and type text or key combinations. The
|
|
1205
|
+
display backend is detected automatically across **macOS**, **Linux**, and **Windows**.
|
|
1219
1206
|
|
|
1220
1207
|
Computer Use is **off by default**. Turn it on in `computer_use.yaml` (or `infer config set computer_use.enabled true`):
|
|
1221
1208
|
|
|
@@ -1228,20 +1215,21 @@ screenshot:
|
|
|
1228
1215
|
streaming_enabled: true # also registers the GetLatestFrame tool
|
|
1229
1216
|
```
|
|
1230
1217
|
|
|
1231
|
-
Tools: `
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1218
|
+
Tools: `Computer` and `GetLatestFrame`. `Computer` is action-based. Its `accessibility` action is the
|
|
1219
|
+
preferred first observation on macOS: it returns compact `{role,label,state,bbox}` text in the same
|
|
1220
|
+
coordinate space as screenshots, without a screenshot or vision-model call. Its `press` action invokes
|
|
1221
|
+
an element's accessibility action by exact label without moving the cursor. Use `screenshot` only when
|
|
1222
|
+
the accessibility tree is unavailable, empty, or insufficient; the remaining actions control the
|
|
1223
|
+
pointer and keyboard.
|
|
1224
|
+
|
|
1225
|
+
The macOS AX bridge is implemented in Go with PureGo and runs in a short-lived helper process, so a
|
|
1226
|
+
native accessibility failure degrades to screenshot guidance without taking down the CLI. Linux AT-SPI
|
|
1227
|
+
and Windows UIA providers are not implemented yet and report that fallback explicitly. Computer-use
|
|
1228
|
+
actions are governed by `computer_use.enabled`, rate limits, and `computer_use.approval`. The
|
|
1237
1229
|
[desktop app](https://github.com/inference-gateway/desktop) visualizes what the agent is doing
|
|
1238
1230
|
(monitor, screen overlay, approvals). For a sandboxed desktop to drive, see
|
|
1239
1231
|
[examples/computer-use](examples/computer-use/).
|
|
1240
1232
|
|
|
1241
|
-
> **⚠️ Windows note:** Computer use (mouse, keyboard, screenshot tools) is **not supported on Windows**.
|
|
1242
|
-
> The agent will log a warning and disable these tools when running on Windows. All other features
|
|
1243
|
-
> work normally.
|
|
1244
|
-
|
|
1245
1233
|
## Frame Sources & Vision Annotation
|
|
1246
1234
|
|
|
1247
1235
|
Cheap or text-only models (DeepSeek, small local models) can still "see". Named **frame sources**
|