mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 16:27:37 +01:00
* feat(packages): read what each project is built from The fleet's shared-package catalogue is read from the fleet brief's one fetch of bitbaum/fleet registers/packages.json (no second fetch; the snapshot now carries the catalogue too). A new sync reads each project's package.json and lockfile at its default-branch head through the existing GitHub token rules, keeps the dependencies that are fleet packages (npm ranges, npm aliases, git tags and shas, monorepo paths) and stores them as observations: - project_packages: one row per (project, package) — spec, resolved version, source, commit, observed time - project_package_scans: one row per project — last read, head sha, catalogue fingerprint, outcome — so an unchanged repo costs one request and a repo that could not be read keeps its rows and says why POST /api/packages/sync reads all of the caller's projects (or one), four at a time, never failing all for one. Latest versions come from npm or the package repo's highest semver tag, cached, with a page deadline and the register's version as a labelled fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf * feat(packages): Packages pages and "Built from" on every project - /packages (under Fleet): every fleet package with its latest version, how many of your projects use it and how many are behind; searchable - /packages/[slug]: what it is, install command, repository, and your projects on it with version and status, behind first; an unlisted slug explains itself instead of 404ing - Project Story tab: "Built from" lists the project's fleet packages with a behind badge linking to the package page - Pages read the repositories again on arrival when the data is over six hours old; Refresh does it on demand; failed reads are named with a reason Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf * docs(packages): changelog entry and the Packages view in CLAUDE.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf --------- Co-authored-by: Claude <noreply@anthropic.com>