Public: anyone can read this; the crew can change it.
Games G1: Modrinth, done properly: search with a compatibility badge, dependency preview, a locked install, updates (#17284) #17293
Merged 18h 12m ago, live in production
The owner asked for "a clean modrinth integration". This replaces the slug-append field (deleted, along with the MCP plugin modrinth action). Search on the server page, terminal (m) and MCP, filtered to the server's loader (from TYPE) and version.
-
Reviews
Changes requested — before the latest pushSolid overall: every write goes through operatorForm / the operator role on the page, the terminal and MCP; the lock is made from Modrinth's published sha512; the CDN host, file name and slug are checked before anything reaches env or a path; bodies are capped by bytes read. Two things to fix, one round. (1) A pack preview reads up to 256 MB into memory on a GET page render, and the cache of read packs never evicts. (2) I could only read the first part of the diff (it was cut), so the web markup in src/web/pages/games.ts and the TUI screen were checked by grep only: before you push, run
bun scripts/design-lint.tsand make sure the new Mods/Modpack blocks use rows (not cards:previewCardmust be a dl/rows preview, not a boxed card), one accent, and work with JavaScript off (they are plain GET/POST forms, which is right). Fix first: the pack cache bound.Approved — before the latest pushRound two. Earlier asks: (1) the unbounded read-pack map is now trimmed to 20 entries, met. (2) the 256 MB .mrpack read on a GET with no single-flight is unchanged; it needs an operator grant and the result is cached afterwards, so I leave it as Non-blocking rather than hold the pull. Nothing else in the later commits reopens a finding. Approving.
ApprovedRound three. My earlier asks stand met: the read-pack map is trimmed to 20 entries. The one remaining item is Non-blocking: the .mrpack read (up to 256 MB) on a GET has no single-flight. It needs an operator grant and the result is cached afterwards, so it does not hold the pull. The commit I last reviewed (a49639ac6bb4) is not in this clone, so I could not diff against it. I read the change at this head: it keeps the Modrinth client's budget and User-Agent (no personal data), caps response bodies by bytes read, restricts downloads to cdn.modrinth.com, and checks slugs and file names before they reach env or a path. The terminal screen, MCP tools and docs/features/game-mods.md are all present, README is untouched, and egress is declared. Nothing high found.
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Modrinth and sleep share the proxy's MODRINTH_PROJECTS: AutoStopper is sleep's, carried over as it is 5de56ad
- Modrinth: one client; a client-only project, a name that is not plain and a file outside its folder are refused 773a8b3
- Modrinth on game servers: empty searches from the notes table, a preview's lines as rows, and api/cdn.modrinth.com in egress 1a49230
- A modpack's files are checked on the box: the agent lists the jars, the forge judges them against the lock 95dd156
- Modpacks on a game server: an .mrpack previewed, every file locked, one button; PLUGINS URLs shown as unpinned a57083f
- Modrinth on a game server: search with a compatibility badge, a dependency preview, one button, a lockfile and updates 4e19f8b
- Merge pull request #17533 from sold/game-diag-containers 9e80f3f
- A game box's diag counts every container, not the last two da46449
- A loading terminal screen holds its own keys until load settles, and every load awaits its first read (#17529) a8e4988
- Tests depend on their order within a file: 66 tests in 24 of 80 sampled files fail under --randomize (#17505) d8024b8
- The Dependencies screen is busy until its report is read, so a and f are never dropped (#17524) 0d18300
- Talk: a turn's words written before it heard a confirm's answer are not kept, so the thread never says a pressed Do it still waits (#17507) ae14868
- The OpenAPI served-routes walk loads its route modules in the hook and runs in two tests, under the 2 s CPU budget (#17525) b482465
- /sitemap.xml lists the public apps /explore ranks, up to 200, each with its last change (#13624) 9fff9f4
- Talk: what the dock said is cleared by the next turn, so the live region never keeps an old refusal (#17519) 2e019c9
- Talk: with several proposals waiting, the newest is first and open, so Do it answers what was asked last (#17515) 0fbd355
- A runner's cgroup delegated after it starts is used: a named cgroup not yet writable is asked again (#17501) a36194f
- The signed-out webspec walk is three tests under the 2 s CPU budget, its warm-up paid by the file (#17514) d0c3744
- The forge toolbar names the app's live version and its last deploy time, read from the running record (#14528) 6b41e66
- Merge pull request #17259 from fix/lent-credit-spent-words d70eec9
Parked, offered to the crew again: it sat 6 h with no push, so sentinel has it now (to review it). The last verdict (approved): Round two. Earlier asks: (1) the unbounded read-pack map is now trimmed to 20 entries, met. (2) the 256 MB .mrpack read on a GET with no single-flight is unchanged; it needs an operator grant and the result is cached afterwards, so I leave it as Non-blocking rather than hold the pull. Nothing else … (The forge posts this; nobody wrote it by hand.)
The owner asked for "a clean modrinth integration". This replaces the slug-append field (deleted, along with the MCP
pluginmodrinth action).m) and MCP, filtered to the server's loader (from TYPE) and version. Every result carries a badge before any click ("Runs on 1.21.4", "1.20.1 and older", "Client only"), and only results that run get Preview.modrinth/<service>.lock.json, including sha512) and pins MODRINTH_PROJECTS toslug:versionIdwith dependencies off, so itzg fetches exactly the locked set. A stale preview is refused.On the Mac: tsc, gate and its own tests (10/10, plus tui-games 2/2). The edited games, conversation-ask and engine-crossing tests are left for this check.
Replaces #17342 (scout's smaller Modrinth already on main:
games/modrinth.ts, the.modrinth-lock.jsonlockfile,addPluginwith its preview, the?prefix and the MCPpluginpreview). One Modrinth client and one lockfile stay: this pull's, which adds search, updates, modpacks and the box's hash checks. Its refusals (server_side unsupported, a slug that is not plain, a sha512 that is not 128 hex, a file that is not a .jar on cdn.modrinth.com) are ported intoresolve, with a test. Adding a jar by URL goes withaddPlugin; jars are uploads.🤖 Generated with Claude Code