Files
skillshare/herdr
Willie c677291e3d feat(herdr): hide disabled rows, group In sync by source, and split the panel into testable modules (#782)
* feat(herdr): hide disabled rows and group In sync by source

A source with many disabled skills buries the few rows that need
attention, and a long In sync list gives no sense of where skills
came from.

- Disabled rows are hidden by default; "Show disabled · n" lists them
  again and the choice is kept. A disabled hook with pending changes
  stays visible because it still needs a sync.
- In sync skills and agents can be grouped by their source repository
  (By source) or shown flat (List); a source with one row stays a
  plain row, and a filter opens every group.
- Opened plugin and MCP rows show their source, version and targets
  instead of an empty detail area.

* refactor(herdr): move the panel's logic out of main.js into testable modules

The bugs fixed in #773, #774 and #775 sat in main.js code that imports
Herdr, so node could not test it: the detached-job polling, the busy
state, and perform's op chain. Only model.js's parsing had tests.

Each concern now lives in a module that takes Herdr's functions as
arguments, so herdr/tests runs it:

- jobs.js runs skillshare: short reads as one exec, longer work
  detached and polled, with the sweep of old job folders and one
  JOB_MINUTES limit shared with SWEEP.
- channel.js carries requests, notices and one lock per machine
  through shared values. The install dialog used to check only a
  global busy string and then run without the lock; it now takes
  that machine's lock. Holders refresh the lock before each command
  and an untouched lock expires after a minute, because a dialog's
  task ends without cleanup when it closes.
- operations.js holds what each request runs and the conflict
  handling of a pull; perform only takes the lock and shows progress
  and the result.
- loader.js reads the Resources data and the Machines cards, and runs
  status alongside the snapshots.
2026-11-05 10:40:11 +08:00
..