@inference-gateway/cli 0.158.1 → 0.159.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.
Files changed (2) hide show
  1. package/README.md +32 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -542,7 +542,7 @@ use the `gh` CLI through Bash (or the built-in `/scm` shortcuts) for GitHub oper
542
542
  | **MouseMove** / **MouseClick** / **MouseScroll** | Control the mouse | No |
543
543
  | **KeyboardType** | Type text or send key combinations | No |
544
544
  | **GetFocusedApp** / **ActivateApp** | Query or focus an application | No |
545
- | **GetLatestScreenshot** | Read the latest streamed screenshot | No |
545
+ | **GetLatestFrame** | Read the latest frame from a named source (screen, camera directory) | No |
546
546
 
547
547
  **Memory, scheduling & A2A** (each gated by its own flag):
548
548
 
@@ -1210,11 +1210,11 @@ enabled: true
1210
1210
  rate_limit:
1211
1211
  enabled: true
1212
1212
  screenshot:
1213
- streaming_enabled: true # also registers the GetLatestScreenshot tool
1213
+ streaming_enabled: true # also registers the GetLatestFrame tool
1214
1214
  ```
1215
1215
 
1216
1216
  Tools: `MouseMove`, `MouseClick`, `MouseScroll`, `KeyboardType`, `GetFocusedApp`, `ActivateApp`, and
1217
- `GetLatestScreenshot`. They run silently in the background (bypassing the approval prompt) and are
1217
+ `GetLatestFrame`. They run silently in the background (bypassing the approval prompt) and are
1218
1218
  governed by `computer_use.enabled` plus the configured rate limits. On macOS an optional **floating
1219
1219
  progress window** can mirror what the agent is doing. For a sandboxed desktop to drive, see
1220
1220
  [examples/computer-use](examples/computer-use/).
@@ -1223,6 +1223,35 @@ progress window** can mirror what the agent is doing. For a sandboxed desktop to
1223
1223
  > The agent will log a warning and disable these tools when running on Windows. All other features
1224
1224
  > work normally.
1225
1225
 
1226
+ ## Frame Sources & Vision Annotation
1227
+
1228
+ Cheap or text-only models (DeepSeek, small local models) can still "see". Named **frame sources**
1229
+ feed images to the agent - the built-in `screen` source (computer-use screenshot streaming) plus any
1230
+ number of **directory sources** watching a folder for camera frames - and a pluggable **image
1231
+ annotator** turns each frame into text: a scene summary and a numbered element list with bounding
1232
+ boxes.
1233
+
1234
+ ```yaml
1235
+ # .infer/config.yaml
1236
+ vision:
1237
+ annotator:
1238
+ enabled: true
1239
+ model: anthropic/claude-haiku-4-5-20251001 # any vision model served by your gateway
1240
+ sources:
1241
+ camera-front:
1242
+ type: directory
1243
+ path: .infer/frames/front # wherever your camera process writes frames
1244
+ retention: { max_files: 100, max_age: 24h }
1245
+ ```
1246
+
1247
+ The agent reads frames via `GetLatestFrame(source, format)` and arbitrary image files via
1248
+ `ImageDecode(image, prompt)`. Any orchestrator or model that speaks chat completions can use these
1249
+ tools - a text-only model simply gets the annotation text instead of an image: with an annotator
1250
+ configured, `GetLatestFrame` defaults to `format: annotated` (text replaces the frame), and
1251
+ `format: regular` returns the raw image for vision models. Annotation is a side-call through the
1252
+ gateway, so any vision model it serves works - including fully local ones via Ollama. See the
1253
+ [configuration reference](docs/configuration-reference.md#vision-settings) for all options.
1254
+
1226
1255
  ## Persistent Memory
1227
1256
 
1228
1257
  The agent keeps a durable, cross-session memory: individual Markdown **fact-files** under a global
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inference-gateway/cli",
3
- "version": "0.158.1",
3
+ "version": "0.159.0",
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"