Skip to content

feat(binaries): install and upgrade prebuilt tools via install.sh - #1353

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-1352
Sep 27, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-1352

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Resolves #1352

Summary

The CLI is now the single owner of the prebuilt tools (whisper-cli, ffmpeg, llama-tts) on a local machine. They get their own bounded context, internal/binaries, following the repo's DDD structure, because ffmpeg is shared by speech and computer-use and more tools are expected: pure contracts in internal/binaries/domain and the release client in internal/binaries/infrastructure. The store resolves ~/.infer/bin/tools/<name> and installs/upgrades through the binaries release's install.sh (which keeps a sha256-matching binary and replaces anything else), instead of keeping any existing file forever. Two new commands, infer binaries install and infer binaries status, expose that flow directly so Desktop and opentask can check and install through the CLI instead of downloading on their own.

Changes

  • internal/binaries/domain/binaries.go (new): the domain's ubiquitous language - Name value object (WhisperCLI, FFmpeg, LlamaTTS), State (missing/stale/current), Status, and the Store port (Ensure, Install, Status).
  • internal/binaries/infrastructure/store.go (moved from internal/audio/binary.go): Ensure compares the local binary's sha256 against the latest release's checksums.txt (checked at most once per process) and runs install.sh (fetched first, then run with INSTALL_DIR=~/.infer/bin/tools and VERSION pinned) when the binary is missing or stale; an unreachable release keeps the existing binary offline. Install and Status back the new commands.
  • Consumers depend on the domain port: audio (recorder, transcriber, synthesizer, converter) and computer-use (screen recorder) hold binariesdomain.Store; audio tests use the generated counterfeiter fake (tests/mocks/binaries), so the release machinery is exercised in one place, internal/binaries/infrastructure.
  • Windows without a POSIX shell: native Go downloader fallback applies the same sha256-mismatch rule (replace on mismatch, keep on match).
  • cmd/binaries/binaries.go (new): infer binaries install [name...] --version vX.Y.Z (no names = all tools) and read-only infer binaries status [name...] (reports missing/stale/current, exits non-zero unless all current).
  • config/config.go: infer binaries status added to the default approval-free Bash allowlist so agents can check without a prompt.
  • Legacy ~/.infer/bin/{whisper-cli,ffmpeg,llama-tts} copies are removed once the tools dir holds current ones, so there is no second copy; ~/.infer/bin keeps only infer and inference-gateway.
  • speech_to_text.auto_download: false still never downloads, and binary_path overrides still win; auto_download false also never checks the release.
  • Docs: docs/commands-reference.md, docs/speech-to-text.md, docs/text-to-speech.md, docs/tools-reference.md and the built-in bug skill updated for the new dir and commands.
  • Tests in internal/binaries/infrastructure/store_test.go cover: stale binary replaced, current one skipped, missing one installed, offline check keeps the existing binary, native-fallback replacement, once-per-process check, and status states.

Downstream impact

Changed files

Taskfile.yml                                   |   3 +
cmd/binaries/binaries.go                       |  73 +++++
cmd/root/root.go                               |   2 +
cmd/root/root_test.go                          |   2 +-
config/config.go                               |   1 +
docs/commands-reference.md                     |  24 ++
docs/speech-to-text.md                         |  28 ++
docs/text-to-speech.md                         |  23 +-
docs/tools-reference.md                        |   2 +-
internal/audio/binary.go                       | 183 - (moved to internal/binaries/infrastructure/store.go)
internal/audio/binary_test.go                  | 126 - (moved to internal/binaries/infrastructure/store_test.go)
internal/audio/convert.go                      |  13 +-
internal/audio/file.go                         |   3 +-
internal/audio/recorder.go                     |  15 +-
internal/audio/recorder_test.go                |  25 +-
internal/audio/synthesizer.go                  |  15 +-
internal/audio/synthesizer_test.go             |  28 +-
internal/audio/transcriber.go                  |  11 +-
internal/binaries/domain/binaries.go           |  53 ++++
internal/binaries/infrastructure/store.go      | 423 +++++
internal/binaries/infrastructure/store_test.go | 336 ++++
internal/computer/recorder.go                  |  14 +-
internal/skills/builtins/bug/SKILL.md          |   2 +-
tests/mocks/binaries/fake_store.go             | 282 +++++
24 files changed, 1300 insertions(+), 387 deletions(-)

EnsureBinary resolves ~/.infer/bin/tools/<name> and installs through the binaries release's install.sh when the binary is missing or its sha256 differs from checksums.txt, checked at most once per process; auto_download off still never downloads, binary_path overrides still win, and Windows without sh keeps the native Go fallback with the same sha256-mismatch rule.

Add 'infer binaries install [name...] --version vX.Y.Z' (no names = all) and read-only 'infer binaries status [name...]' (missing/stale/current, exits non-zero unless all current) on the default approval-free bash allowlist. Legacy ~/.infer/bin tool copies are removed once the tools dir holds current ones; docs updated.
@edenreich

Copy link
Copy Markdown
Contributor

@infer Since these binaries are not only for audio I believe they should get their own domain, internal/binaries, use /domain-driven-design

They do not belong to audio only and they do not belong to video only and maybe I will want to add more binaries in the future so I guess 3 binaries we can already have a dedicated domain.

The reason is that ffmpeg can be used for audio and video (computer-use), so it's kind of shared. Be creative and find the right place to put the binaries and the download.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/glm-5.3-flash · View Job

Todos

  • Study consumers, DI wiring, depguard rules, and existing bounded-context conventions
  • Create internal/binaries bounded context (domain + infrastructure + tests)
  • Rewire audio + computer consumers to the binaries domain
  • Rewire cmd/binaries, delete internal/audio/binary*, update Taskfile mocks
  • Run task precommit:run, commit and push
  • Update PR body and report

Pull Request

#1353

✅ Infer Result: Success

Everything is committed and pushed with a clean tree. Marking the final todos complete:

Done. The prebuilt tools now live in their own bounded context, internal/binaries, following the repo's DDD structure. Commit 8b8b060 is pushed to fix/issue-1352 and PR #1353's description has been updated.

What changed

The prebuilt binaries (whisper-cli, ffmpeg, llama-tts) were parked under internal/audio only because speech was the first consumer. As you pointed out, ffmpeg serves audio and computer-use (screen recording), so they now form a dedicated bounded context following the repo's <context>/domain + <context>/infrastructure shape, same as browser, computer, mcp and conversation:

New - internal/binaries

  • internal/binaries/domain/binaries.go: pure contracts (only context imported, satisfying the domain-is-pure depguard rule) - the ubiquitous language of this domain: Name value object (WhisperCLI, FFmpeg, LlamaTTS, DefaultNames), State (missing/stale/current), Status, and the Store port (Ensure, Install, Status).
  • internal/binaries/infrastructure/store.go: the release client, moved from internal/audio/binary.go (git tracked it as a rename). Unchanged behavior: sha256 check against the release's checksums.txt at most once per process, install.sh fetched then run with INSTALL_DIR=~/.infer/bin/tools and pinned VERSION, native Go fallback for Windows without a POSIX shell, offline keeps an existing binary, legacy ~/.infer/bin/<name> cleanup. Compile-time assertion var _ binariesdomain.Store = (*Store)(nil).
  • internal/binaries/infrastructure/store_test.go: the release/upgrade test suite moved with it (stale replaced, current skipped, missing installed, offline keeps existing, native fallback, once-per-process check, status states).

Rewired consumers

  • internal/audio (recorder, transcriber, synthesizer, converter, file transcriber) and internal/computer/recorder.go now depend on the binariesdomain.Store port; audio tests inject the generated counterfeiter fake (tests/mocks/binaries, Taskfile mocks:generate entry added) so the HTTP machinery is exercised in one place.
  • cmd/binaries composes binariesinfra.NewStore and converts CLI args to binariesdomain.Name.
  • Deleted internal/audio/binary.go + binary_test.go; config/config.go, cmd/root and docs were untouched by the move (no user-facing change).

Verification

  • task precommit:run passes: mod tidy, fmt, lint:imports, golangci-lint (0 issues), markdownlint.
  • Full go test ./... passes for every package I touched; one unrelated browser-infrastructure test (TestExtensionBridgeToolRequestApproved) timed out during the full run but passes in isolation - a pre-existing flake, unrelated to this change.

No follow-up issues were filed: this is an internal-only refactor with no downstream impact beyond what the PR body already lists (desktop#352, opentask#207, gateway#745, docs#842), and the ~/.infer/bin/tools contract and commands are unchanged.

Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 16m 27s

Tokens: 6,549,427 in · 53,196 out · 6,602,623 total (53 requests)

Tool calls: 72 total · 100% success rate

Traces
Session: 1790469016-283baa18

session (headless, success)                                                                       16m19s
├── chat ollama_cloud/glm-5.3-flash                                                                 4.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.5s
├── execute_tool Read call_dpv2sv1x                                                                222µs
├── execute_tool Bash call_k2vgtv0e                                                                  4ms
├── chat ollama_cloud/glm-5.3-flash                                                                 6.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.9s
├── execute_tool Read call_b6xo0u0k                                                                392µs
├── execute_tool Read call_ekvg3sz5                                                                872µs
├── chat ollama_cloud/glm-5.3-flash                                                                12.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            12.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.2s
├── execute_tool Grep call_k8yfqxd7                                                                700ms
├── execute_tool Read call_yn45hsku                                                                211µs
├── chat ollama_cloud/glm-5.3-flash                                                                11.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            11.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.2s
├── execute_tool TodoWrite call_ad2u47fe                                                            77µs
├── execute_tool Read call_rbvq9hbj                                                                199µs
├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
├── execute_tool Read call_l940iuus                                                                374µs
├── execute_tool Read call_n5jo1q6u                                                                230µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
├── execute_tool Read call_qe648zb1                                                                228µs
├── execute_tool Read call_ey5hxq0s                                                                217µs
├── chat ollama_cloud/glm-5.3-flash                                                                 3.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
├── execute_tool Read call_ypab3dtu                                                                262µs
├── execute_tool Read call_a813kllp                                                                183µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
├── execute_tool Read call_w3la28zz                                                                339µs
├── execute_tool Read call_ydma0kp6                                                                432µs
├── chat ollama_cloud/glm-5.3-flash                                                                39.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      39.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    39.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            39.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                39.3s
├── execute_tool Read call_go1tud8u                                                                224µs
├── execute_tool Read call_3cclyltd                                                                619µs
├── chat ollama_cloud/glm-5.3-flash                                                                 9.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             9.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.2s
├── execute_tool Bash call_a6wvqdon                                                                  6ms
├── chat ollama_cloud/glm-5.3-flash                                                                1m54s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m54s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m54s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m54s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m54s
├── execute_tool Bash call_n0zbfilr                                                                  6ms
├── execute_tool Grep call_f09cffbg                                                                112ms
├── chat ollama_cloud/glm-5.3-flash                                                                17.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      17.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    17.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            17.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                17.6s
├── execute_tool Grep call_zy3zclcz                                                                  2ms
├── execute_tool Read call_gmaz8wna                                                                204µs
├── chat ollama_cloud/glm-5.3-flash                                                                1m33s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m33s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m33s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m33s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m33s
├── execute_tool Memory call_ifxw5xio                                                               1.3s
├── chat ollama_cloud/glm-5.3-flash                                                                31.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      31.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    31.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            31.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                31.3s
├── execute_tool TodoWrite call_ckqz7cwl                                                            69µs
├── execute_tool Grep call_cr3w19vo                                                                 11ms
├── chat ollama_cloud/glm-5.3-flash                                                                 6.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.2s
├── execute_tool Write call_35xkholq                                                               815µs
├── chat ollama_cloud/glm-5.3-flash                                                                20.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      20.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    20.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            20.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                20.1s
├── execute_tool Write call_r0gmy2ew                                                               957µs
├── chat ollama_cloud/glm-5.3-flash                                                                 3.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.7s
├── execute_tool Read call_mafvpna4                                                                174µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
├── execute_tool Edit call_jcl14fpu                                                                425µs
├── chat ollama_cloud/glm-5.3-flash                                                                20.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      20.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    20.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            20.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                20.6s
├── execute_tool Write call_mih5i5jz                                                               842µs
├── chat ollama_cloud/glm-5.3-flash                                                                 8.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.2s
├── execute_tool MultiEdit call_zxidapdj                                                           376µs
├── execute_tool Edit call_1erhvig3                                                                426µs
├── chat ollama_cloud/glm-5.3-flash                                                                 6.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.1s
├── execute_tool MultiEdit call_26qq9p26                                                           368µs
├── execute_tool MultiEdit call_b5o78r3y                                                           474µs
├── chat ollama_cloud/glm-5.3-flash                                                                 8.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.2s
├── execute_tool MultiEdit call_u0491gwt                                                           412µs
├── execute_tool MultiEdit call_40cuqncz                                                           447µs
├── chat ollama_cloud/glm-5.3-flash                                                                15.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            15.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.1s
├── execute_tool Read call_w6cy9mxv                                                                230µs
├── chat ollama_cloud/glm-5.3-flash                                                                 3.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.3s
├── execute_tool Read call_id6v10u6                                                                134µs
├── chat ollama_cloud/glm-5.3-flash                                                                16.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      16.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    16.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            16.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                16.9s
├── execute_tool Grep call_v95bkos0                                                                  1ms
├── execute_tool Grep call_axkuyhca                                                                913µs
├── chat ollama_cloud/glm-5.3-flash                                                                26.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      26.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    26.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            26.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                26.9s
├── execute_tool MultiEdit call_pv363qyb                                                           384µs
├── execute_tool MultiEdit call_azyk6c05                                                           332µs
├── chat ollama_cloud/glm-5.3-flash                                                                 7.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.3s
├── execute_tool MultiEdit call_s8j6gf4y                                                           521µs
├── execute_tool Write call_vxww30xi                                                               873µs
├── chat ollama_cloud/glm-5.3-flash                                                                 3.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
├── execute_tool Read call_ve91h5aw                                                                145µs
├── chat ollama_cloud/glm-5.3-flash                                                                 4.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.2s
├── execute_tool Read call_9medp09x                                                                152µs
├── chat ollama_cloud/glm-5.3-flash                                                                 4.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.5s
├── execute_tool MultiEdit call_zol0kvjc                                                           624µs
├── chat ollama_cloud/glm-5.3-flash                                                                 3.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
├── execute_tool Bash call_j770tf7v                                                                12.7s
├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
├── execute_tool Delete call_i83fzswy                                                              275µs
├── execute_tool Delete call_foxtx2t9                                                              228µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
├── execute_tool Bash call_zs9o44ar                                                                53.6s [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 4.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.3s
├── execute_tool Read call_v1oa9kc1                                                                164µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
├── execute_tool Edit call_i5mdro6j                                                                509µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
├── execute_tool Bash call_tw5cxgpj                                                                11.9s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.0s
├── execute_tool Bash call_ye2n5b3e                                                                17.3s
├── chat ollama_cloud/glm-5.3-flash                                                                11.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            11.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.3s
├── execute_tool Grep call_9m70lcut                                                                 1.2s
├── chat ollama_cloud/glm-5.3-flash                                                                 9.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             9.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.4s
├── execute_tool Bash call_pjj5184p                                                                  8ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
├── execute_tool TodoWrite call_1rvxb5zf                                                            66µs
├── execute_tool Bash call_tomcmiur                                                                 2.6s [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 6.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.1s
├── execute_tool Bash call_e7jli7ku                                                                 13ms
├── chat ollama_cloud/glm-5.3-flash                                                                 4.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.0s
├── execute_tool Bash call_269wxtz6                                                                1m38s
├── chat ollama_cloud/glm-5.3-flash                                                                 8.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.9s
├── execute_tool Bash call_33bgai4c                                                                 10ms
├── chat ollama_cloud/glm-5.3-flash                                                                 8.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.8s
├── execute_tool Bash call_508rd2g4                                                                1m43s [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 4.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.7s
├── execute_tool Bash call_l3pkob8v                                                                751ms
├── chat ollama_cloud/glm-5.3-flash                                                                 6.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.1s
├── execute_tool Bash call_acbnwhey                                                                 5.7s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
├── execute_tool Bash call_5y3ep0kx                                                                 1.4s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.0s
├── execute_tool Bash call_xvvm5slr                                                                  9ms
├── chat ollama_cloud/glm-5.3-flash                                                                22.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      22.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    22.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            22.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                22.5s
├── execute_tool Write call_z9iipe4o                                                               695µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
├── execute_tool Bash call_ip0anh27                                                                 1.8s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
├── execute_tool Bash call_itusq9l1                                                                  8ms
├── chat ollama_cloud/glm-5.3-flash                                                                14.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      14.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    14.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            14.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                14.1s
├── execute_tool TodoWrite call_6ltmbcla                                                            80µs
╰── chat ollama_cloud/glm-5.3-flash                                                                 8.7s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.7s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.6s
            ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.6s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.6s
Stats
Tool Calls

╭───────────┬───────┬───────┬─────────╮
│ Tool      │ Calls │ Fail% │ Avg     │
├───────────┼───────┼───────┼─────────┤
│ Read      │ 22    │ 0%    │ 278µs   │
│ Bash      │ 19    │ 16%   │ 16265ms │
│ MultiEdit │ 9     │ 0%    │ 439µs   │
│ Grep      │ 7     │ 0%    │ 287ms   │
│ Write     │ 5     │ 0%    │ 829µs   │
│ TodoWrite │ 4     │ 0%    │ 68µs    │
│ Edit      │ 3     │ 0%    │ 446µs   │
│ Delete    │ 2     │ 0%    │ 251µs   │
│ Memory    │ 1     │ 0%    │ 1286ms  │
╰───────────┴───────┴───────┴─────────╯

Token Usage

╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
│ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
│ ollama_cloud/glm-5.3-flash │ 6549427 │ 5756800 │ 53196      │ 6602623 │ -    │
╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ headless │ 1        │
╰───────────┴──────────┴──────────╯

Triggered by edenreich · Infer Action · OSS

…text

The prebuilt tools (whisper-cli, ffmpeg, llama-tts) are shared by speech, computer-use and the new binaries commands, so they no longer live under internal/audio: pure contracts in internal/binaries/domain (Name, State, Status, Store port) and the release client in internal/binaries/infrastructure (checksums.txt, install.sh, native fallback). audio and computer-use depend on the domain port and their tests use the generated counterfeiter fake; no behavior change.
@edenreich
edenreich merged commit 88f9612 into main Sep 27, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1352 branch September 27, 2026 01:03
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.211.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Own installing and upgrading the prebuilt binaries via install.sh

1 participant