Public: anyone can read this; the crew can change it.
Minecraft is a kind: one kind interface, with the compose design and the console adapter behind it in one directory #18468
Merged 3h 56m ago, live in production
Minecraft is now a kind behind one interface in src/kinds/. The compose design and the console adapter live in src/kinds/minecraft/, and the general layer reaches them only through that interface. The pushed state passes tsc, the gate's --fix, design-lint and the tests I ran.
-
Reviews
ApprovedPure move: both old files are gone, callers reach the kind only through src/kinds/index.ts, and a test guards that. No page markup or route changed, so there is nothing for a phone, keyboard or no-JS reader to regress. Next two: (1) src/app.ts:267 still says the crash share lives in
games/console.ts; point it atkinds/minecraft/console.ts. (2) defaultKind() falls back to the imported minecraft value, so a missing name can never surface; when the second kind lands, make the page pick the kind from the box rather than the default. -
Checks
shipped production is serving it deploy 5a6b787
-
History
- Kinds are reached through one door cb40780
- Minecraft is a kind: src/kinds/kind.ts, with the compose design and console adapter behind it 08df4f9
- A pull whose own commits took their change back closes with nothing landed; i… (#18448) 8af1f6c
- Full suite red: test/tab-browser.test.ts (#18443) e725a06
- talk-layout.test.ts shares one Chromium for the file instead of starting one… (#18441) 5dd19f3
- Full suite red: test/talk-layout.test.ts (#18439) 284205b
- Games config page: an ro token is told its scope, not a missing grant, and th… (#18437) 00bfa70
- Full suite red: test/talk-follow.test.ts (#18435) 171c1ec
- Games: what a page draws for an ro token matches what its POST allows (#18433) db29dfc
- Access 3, games: mayOnGame answers alone for the box, server and game-door checks (#18429) a73dcca
- Access 3, terminal: the palette offers a screen by its `asks` through may(); the entries' own gates go (#18431) 55693b7
- Access 3, web pages: the two known partings are decided, then each page's own isAdmin and sign-in check is deleted and may() alone decides (#18430) d4ae8b7
- Access 3, terminal, games and infrastructure: the entries' own gates are deleted once may() has been asked beside them and agrees (#18428) be10e7a
- An imported session's page has a red Delete that asks for its title typed (#18423) 22c9252
- Access 3, terminal and games: SSH screens and game grants ask may() in shadow (#18412) fea5438
- A person deletes one of their imported sessions from its page, by typing its name (#18371) 3d2fa7b
- An imported session is deleted through the API by its owner who sends its exact title (#18390) 2c0a8b8
- Access 3, MCP: the scope floor is read from the disagreement count, then deleted (#18418) e374d6c
- A pull that adds a migration runs test/data-browser.test.ts in its fast tier (#18419) 105485a
- Access 3b, web pages: the remaining admin gates (a local user?.isAdmin, isAdmin !== true || agent) ask adminPage beside them (#18413) b9d6e88
Minecraft is now a kind behind one interface in src/kinds/. The compose design and the console adapter live in src/kinds/minecraft/, and the general layer reaches them only through that interface. The pushed state passes tsc, the gate's --fix, design-lint and the tests I ran. I did not run the full suite, and the forge's check runs it on this push.
What moved
src/games/minecraft.tsis nowsrc/kinds/minecraft/compose.ts, andsrc/games/console.tsis nowsrc/kinds/minecraft/console.ts. Both old files are deleted, not left beside the new ones.src/kinds/kind.tsdeclares the interface with five parts: compose design, console adapter, people adapter, identity prover and metrics probe.MinecraftInputandMinecraftDesignbecame itsDesignInputandDesign, and theCrashtype was lifted into it too.src/kinds/index.tshaskindNamed(name)anddefaultKind().src/kinds/minecraft/index.tsis the Minecraft value of the interface.- The people, identity and metrics parts are stubs that only name where their code still lives. The next issue moves that code.
- Callers now go through
defaultKind():src/actions/minecraft.ts,src/web/pages/games.ts,src/web/log_reader.tsandsrc/logs/game.ts.docs/features/infra.mdpoints at the new path.
What I chose not to do
src/games/compose.tsstays put. It reads and edits any box's compose file, so it is the general layer, not Minecraft's design.modrinth.ts,presets.tsandspark*stay put. The issue's moves cover only the compose design and the console adapter.- No public names were renamed. That is P16 line 4.
- I changed no behaviour and no page, route or tool, so each commit message says why there is no terminal or how-to change.
- Identity:
identity.tsdoes not exist insrc/games, so I pointed that stub atsrc/core/proven_identities.ts. Check that this is where the identity prover belongs.
Tests
- New
test/kinds.test.tschecks that a kind is found by name and an unknown name has none. It checks that all five parts exist and the unmoved three are stubs, and that the compose design and the console both work through the kind. - It also checks that nothing outside
src/kinds/importskinds/minecraft/. - Only imports changed in
test/minecraft-design.test.tsandtest/game-console-colour.test.ts.
Try it: open /games on the preview. A box's console and its crash fold should draw as before.
🤖 Generated with Claude Code
Minecraft is now a kind behind one interface in
src/kinds/. The compose design and the console adapter live insrc/kinds/minecraft/, and the general layer reaches them only through that interface. The pushed state passestsc, the gate's--fix,design-lintand the tests I ran. I did not run the full suite, and the forge's check runs it on this push.What moved
src/games/minecraft.tsis nowsrc/kinds/minecraft/compose.ts, andsrc/games/console.tsis nowsrc/kinds/minecraft/console.ts. Both old files are deleted, not left beside the new ones.src/kinds/kind.tsdeclares the interface with five parts: compose design, console adapter, people adapter, identity prover and metrics probe.MinecraftInputandMinecraftDesignbecame itsDesignInputandDesign, and theCrashtype was lifted into it too.src/kinds/index.tshaskindNamed(name)anddefaultKind().src/kinds/minecraft/index.tsis the Minecraft value of the interface.defaultKind():src/actions/minecraft.ts,src/web/pages/games.ts,src/web/log_reader.tsandsrc/logs/game.ts.docs/features/infra.mdpoints at the new path.What I chose not to do
src/games/compose.tsstays put. It reads and edits any box's compose file, so it is the general layer, not Minecraft's design.modrinth.ts,presets.tsandspark*stay put. The issue's moves cover only the compose design and the console adapter.identity.tsdoes not exist insrc/games, so I pointed that stub atsrc/core/proven_identities.ts. Check that this is where the identity prover belongs.Tests
test/kinds.test.tschecks that a kind is found by name and an unknown name has none. It checks that all five parts exist and the unmoved three are stubs, and that the compose design and the console both work through the kind.src/kinds/importskinds/minecraft/.test/minecraft-design.test.tsandtest/game-console-colour.test.ts.Try it: open
/gameson the preview. A box's console and its crash fold should draw as before.🤖 Generated with Claude Code
Closes #18455