@forbocai/test-game 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/chunk-27XG6FHM.mjs +751 -0
- package/dist/chunk-4XIOL463.mjs +745 -0
- package/dist/chunk-NNRCMKGA.mjs +694 -0
- package/dist/cli.d.mts +17 -0
- package/dist/cli.d.ts +17 -0
- package/dist/cli.js +823 -0
- package/dist/cli.mjs +56 -0
- package/dist/index.d.mts +54 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +774 -0
- package/dist/index.mjs +8 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Echoes of the Spire (`@forbocai/test-game`)
|
|
2
|
+
|
|
3
|
+
<!-- AESTHETIC_PROTOCOL_COMPLIANCE -->
|
|
4
|
+
<!-- SYSTEM_OVERRIDE // NEURAL_LINK_ESTABLISHED -->
|
|
5
|
+
<!-- ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ ᚷ ᚹ -->
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
.-.
|
|
9
|
+
(o o) [VOID::WATCHER]
|
|
10
|
+
| O \\
|
|
11
|
+
\\ \\
|
|
12
|
+
`~~~'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Terminal micro-game harness that maps gameplay scenarios to ForbocAI CLI command coverage.
|
|
16
|
+
|
|
17
|
+
## Run
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm run build --workspace @forbocai/test-game
|
|
21
|
+
node packages/test-game/dist/cli.js --mode autoplay
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Manual mode:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
node packages/test-game/dist/cli.js --mode manual
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Optional command execution:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
node packages/test-game/dist/cli.js --mode autoplay --execute shell
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`--execute shell` attempts to run `forbocai ...` commands and records failures/successes in transcript output.
|
|
37
|
+
|
|
38
|
+
## Acceptance Mapping
|
|
39
|
+
|
|
40
|
+
- CLI coverage command matrix is represented in `src/features/autoplay/slices/scenarioSlice.ts`.
|
|
41
|
+
- Transcript is recorded in `src/features/terminal/slices/transcriptSlice.ts`.
|
|
42
|
+
- Coverage summary and incompleteness gate are enforced in `src/game.ts`.
|
|
43
|
+
|
|
44
|
+
## Functional Paradigm (RTK-Aligned)
|
|
45
|
+
|
|
46
|
+
- No classes; behavior is modeled with pure functions, slices, and action dispatch.
|
|
47
|
+
- State transitions are reducer-driven in feature slices.
|
|
48
|
+
- Orchestration (`runGame`) composes slice actions and pure helpers, keeping logic explicit and testable.
|
|
49
|
+
- BDD tests assert behavior using real store state and selectors/outputs.
|