Repository navigation
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, andlr 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.
/v1serves every model-declaring operation of a Pack the operator puts on/v1, not only chat: embedding models answer on/v1/embeddings, appear inGET /v1/models, and discoverymodels.v1_pack_models[]gainspath.- A model enum declared by a Pack operation now claims those models even when the Pack has a catalogue, so model search,
lr execand/v1map embedding models to embeddings and chat models to chat. lr describeand preflight show model-scoped prices for operations that take a model, andlr treemarksblockedordeprecatedoperations.lr manage-listandlr manage-callprint 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.