#6193 [GUI] control app: native /v1/models rows mirror status, architecture and aliases (#6180)
closed · @FluxNimbusAi · 0 commentaires · Sur GitHub
Description
**Problem and result:** The native `/v1/models` rows dropped the engine's `status` object, `architecture` modalities and alias entries — clients could not tell loaded from unloadable and aliases were invisible under their own ids. The context-window half of that gap (`context_length`, `meta.n_ctx`) landed upstream independently in the meantime (#3931, #5893); this PR is the remainder: rows mirror `status`, `architecture`, and one full row per distinct alias with `alias_of` naming the canonical id.
**Related discussion:** #6180.
**Approach:** Extends the merged `app/host/server/native-models.mjs`: keeps the ready filter and the never-invent-a-number `tokens()` semantics, adds `status: {value:'loaded'}` and `architecture` from `i.vision`, then emits alias rows after each instance row, skipping non-string, empty or canonical-equal aliases. Upstream's two test files are updated for the new rows and this branch carries the meta test ported from the original layout.
**Validation:** Passed — `node --test` on `native-models.test.mjs`, `native-models-context.test.mjs`, `native-models-meta.test.mjs`: 16/16 green on node 26.12.1 at head `f13232ead` (rebased onto the 0.2.16 layout, base `58ee32277`). Failed: none. Not run: full `app/host` `npm test` (esbuild absent on the test rig), live packaged-app E2E.
**Limits:** 4 files, +115/−10, host-JS only — disjoint from #6116 (terminal/serve) and #6189 (engine CPU tests). `/health` + `/props` proxying and the canonical-id rename (#6180 items 2-3) stay out of scope.
Sur le site
Liens install, modèles, releases.