Skip to content

0.2.0

Choose a tag to compare

@timmo001 timmo001 released this 06 Oct 08:40
· 194 commits to main since this release
84ad921

Every part of triage can now run on whichever machine suits it. A small always-on box such as a Home Assistant Green can run the server, while the machine with the models decides on issues and suggests fixes for it. This release also brings the Home Assistant app, Arch packages and a Linux binary.

Workers

  • triage work --decide and --suggest fetch issues from a server, ask your local models about them, and send the answers back, so the models only need to be reachable from the worker. It uses the same settings as serve --decide and serve --suggest, so a machine's settings mean the same whichever role it has.
  • Add a worker with triage workers add <name>. Worker tokens can only fetch work and send back answers.
  • The server's daily limits (TRIAGE_DECIDE_DAILY and TRIAGE_SUGGEST_DAILY) now cover the server and all its workers together. Nothing queues up while a worker is off.

Managing a server remotely

  • hosts, admins and workers take --server <url> to manage a server over its API as an admin, with the token in TRIAGE_ADMIN_TOKEN, so you don't need a shell on the server.
  • TRIAGE_SERVER_ADMIN_TOKEN gives a server an admin token from its settings, at least 32 characters, to get started with. It isn't stored or listed.
  • Any setting can also come from a JSON file at TRIAGE_OPTIONS, with lowercase keys and no TRIAGE_ prefix. Environment variables win over the file.

Home Assistant

The Triage app runs the server on Home Assistant OS, for amd64 and aarch64. Add this repository to the app store, install Triage, set its admin token and start it. Its documentation tab explains adding hosts and workers.

Arch Linux

  • triage-bin (each release) and triage-git (main) are in the timmo pacman repository.
  • They install three user services, none of them enabled: triage-agent.service collects and uploads, triage-server.service runs the server, and triage-worker.service runs triage work. See the README for setting each one up.
  • Each release also has the Linux binary attached.

Capture

  • Long crash messages are kept whole.
  • Blank error lines are skipped.
  • Transient scopes and generated units, which get a new name each time, are grouped as one issue.

Packages

  • Server image: ghcr.io/timmo001/triage:0.2.0, now for amd64 and arm64
  • Home Assistant app image: ghcr.io/timmo001/triage-app:0.2.0, which runs as root, as the Supervisor needs
  • @timmo001/effect-triage: shared schemas and the API, now with the work and token endpoints, on npm and JSR
  • @timmo001/effect-triage-client: the Effect client, on npm and JSR

Full Changelog: 0.1.0...0.2.0