skill
Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making
Expose per-user starred state in the pages API
The adom-lbr Manager (adom/adom-lbr) wants to show a ★ next to boards the signed-in user has starred and pin them to the top of each list. There is currently no way to READ per-user star state:
adom-wiki page star <ref>works (write/toggle a star).adom-wiki page stats <ref>returns a totalstar_count— not per-user.GET /api/v1/pages?...&starred=trueis ignored: it returns the full list, not the caller's starred pages.- There is no
starredfield on pages-list items or on the single-page GET.
Ask: expose per-user star state to authenticated clients, either of:
- Add
starred: bool(for the authenticated user) toGET /api/v1/pageslist items and the single-pageGET /api/v1/pages/<slug>; or - Add
GET /api/v1/me/starsreturning the current user's starred slugs.
Either one lets the Manager (and other clients) read star state without a local workaround. The Manager is already forward-compatible: it reads a starred boolean per page and pins starred boards to the top — it just always sees false until this lands. Requested by barrett.