@forbocai/test-game
v0.6.3
Published
Echoes of the Spire terminal micro-game harness for ForbocAI CLI coverage
Maintainers
Readme
Echoes of the Spire (@forbocai/test-game)
.-.
(o o) [VOID::WATCHER]
| O \\
\\ \\
`~~~'Terminal micro-game harness that maps gameplay scenarios to ForbocAI CLI command coverage.
Run
npm run build --workspace @forbocai/test-game
node packages/test-game/dist/cli.js --mode autoplayManual mode:
node packages/test-game/dist/cli.js --mode manualOptional command execution:
node packages/test-game/dist/cli.js --mode autoplay --execute shell--execute shell attempts to run forbocai ... commands and records failures/successes in transcript output.
Acceptance Mapping
- CLI coverage command matrix is represented in
src/features/autoplay/slices/scenarioSlice.ts. - Transcript is recorded in
src/features/terminal/slices/transcriptSlice.ts. - Coverage summary and incompleteness gate are enforced in
src/game.ts.
Functional Paradigm (RTK-Aligned)
- No classes; behavior is modeled with pure functions, slices, and action dispatch.
- State transitions are reducer-driven in feature slices.
- Orchestration (
runGame) composes slice actions and pure helpers, keeping logic explicit and testable. - BDD tests assert behavior using real store state and selectors/outputs.
