| @objectstack/objectql | patch |
|---|---|
| @objectstack/rest | patch |
fix(metadata): package-scope the layered (Studio editor) read via ?package= (ADR-0048)
The ?layers=true single-item read (the Studio metadata editor's 3-state
code/overlay/effective view) ignored packageId, so editing one of two
same-named items from different packages resolved ambiguously (first match).
protocol.getMetaItemLayerednow threadspackageIdinto the code layer (metadataService.get+lookupArtifactItem+registry.getItem) and thesys_metadataoverlay query (package_idprefer-local).registry.getArtifactItem(type, name, currentPackageId?)andlookupArtifactItemgained the optional package-scope hint.rest-serverthreads?package=into the layered branch.
This completes the per-route package-scoped resolution audit: the runtime
render surface (dashboard/report/page/doc) was already scoped; this closes the
Studio editor (/apps/:appName/metadata/:type/:name). Frontend counterpart
sends ?package= from the metadata list row's owning package.