Files
enricobuehler 554a884682
CI / build (push) Failing after 13s
CI / publish (push) Skipped
feat: the Lutris library source
The pilot of design/library-scanner-plugins.md M5 — the host's in-tree Lutris
scanner, lifted out into its own installable plugin.

The whole package is a config schema, a detect, a scan and a watchDirs. The
store claim, sync engine, __config surface, console registration and the
detect/scan/parity/uninstall CLI verbs all come from
@punktfunk/plugin-kit/library. That is the point of the framework, and the
reason one repo per plugin costs nothing in duplication.

Claiming the `lutris` store means these entries keep exactly the ids the built-in
scanner gave them, so Moonlight pins, cached art and the operator's
enabled/disabled state all survive the migration — and the host suppresses its
own scanner while this is installed.

Two deliberate departures from the Rust original, both documented inline:

  * art is emitted as file:// URLs rather than inlined data: URLs. The host
    proxies the bytes, so the reconcile payload stays small — inlining covers is
    what blew the 2 MB body limit at 49 titles during the playnite work, and is
    exactly why the POSIX art path was added to the host.
  * the untrusted-slug guard is carried over verbatim and tested. The slug comes
    from Lutris's own database and is interpolated into a path whose bytes the
    host's art proxy will serve to any paired client, so an escape there is an
    arbitrary-file-read primitive rather than a cosmetic bug.

effect is pinned to 4.0.0-beta.99 exact, matching what the kit is built against.
The floating ^4.0.0-beta.102 the older plugin repos carry produced two
structurally-incompatible copies of the Schema types and would not compile.

Verified locally against the kit: tsc clean, biome clean, 3 tests, bundle builds,
and the CLI runs (`detect` -> absent, `scan` -> 0 games, usage lists all four
verbs).

Not yet green in CI, and it cannot be until @punktfunk/plugin-kit@0.3.0 is
published — the dependency does not resolve from the registry yet, which is also
why there is no lockfile in this commit. Publish the kit, run one bun install,
commit the lock.

The release gate is `punktfunk-plugin-lutris parity --snapshot` / `--compare` on
a box that actually has Lutris installed. That has NOT been run.
2026-08-05 19:09:01 +02:00
..
2026-08-05 19:09:01 +02:00
2026-08-05 19:09:01 +02:00
2026-08-05 19:09:01 +02:00