mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
The CLI, GET /api/check and the check stream each wrote out the same sequence: group skills by URL and branch, ask the remote hash, skip the tree fetch when every skill matches, otherwise compare tree hashes and assign a status. A fix such as branch handling had to be made three times, and the sequence could only be tested against real repositories. internal/check now owns it as Plan and Resolution.Run, with the remote hash source injected and a per-remote progress callback. The CLI progress bar and the SSE counter are adapters on that callback; the JSON handler passes none. The callers disagreed in two places, and both behaviours are kept: the dashboard reports a skill removed upstream as update_available where the CLI says stale, and gives no source or version for a skill without a remote. The server adapter narrows the result accordingly. Refs #444