Skip to content

LocalRouter 0.4.2

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Oct 17:55

LocalRouter 0.4.2 lets local Agents maintain Packs without a console step and serves Pack embeddings on /v1.

  • Agent maintenance is on by default. lr manage-token [agent-code] issues a distinct maintenance-only Token at once through the loopback identity handshake, saves it mode 0600, and lr manage-* uses it automatically. The Token maintains Packs only through the reviewed draft lifecycle (draft → review → exact-digest apply, with rollback) and cannot call services; a service identity cannot widen itself into one. Turning 「Agent 维护」 off on the console Tokens page rejects every maintenance Token at once and is remembered.
  • Policy files from earlier releases did not record the switch when it was off, so they load as on. Operators who want it off turn it off once after upgrading.
  • /v1 serves every model-declaring operation of a Pack the operator puts on /v1, not only chat: embedding models answer on /v1/embeddings, appear in GET /v1/models, and discovery models.v1_pack_models[] gains path.
  • A model enum declared by a Pack operation now claims those models even when the Pack has a catalogue, so model search, lr exec and /v1 map embedding models to embeddings and chat models to chat.
  • lr describe and preflight show model-scoped prices for operations that take a model, and lr tree marks blocked or deprecated operations.
  • lr manage-list and lr manage-call print the gateway's structured error instead of failing silently.

Contract schema stays 19. Upgrade with the archive installer; existing configuration, credentials and state are preserved. Provider accounts and private Pack configuration are not included.