@forbocai/test-game 0.6.0 → 0.6.2
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/dist/cli.mjs +743 -3
- package/dist/index.d.mts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.mjs +742 -4
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Shared type contracts for command coverage, transcript, and scenario runtime.
|
|
3
3
|
* In the quiet between turns, the protocol still remembers.
|
|
4
4
|
*/
|
|
5
|
-
type ExecutionMode = 'simulate' | 'shell';
|
|
6
5
|
type PlayMode = 'manual' | 'autoplay';
|
|
7
6
|
type CommandGroup = 'status' | 'npc_lifecycle' | 'npc_process_chat' | 'memory_list' | 'memory_recall' | 'memory_store' | 'memory_clear' | 'memory_export' | 'bridge_rules' | 'bridge_validate' | 'bridge_preset' | 'soul_export' | 'soul_import' | 'soul_list' | 'soul_chat' | 'ghost_lifecycle' | 'cortex_init';
|
|
8
7
|
type CommandSpec = {
|
|
@@ -10,7 +9,7 @@ type CommandSpec = {
|
|
|
10
9
|
command: string;
|
|
11
10
|
expectedRoutes: string[];
|
|
12
11
|
};
|
|
13
|
-
type TranscriptStatus = 'ok' | 'error'
|
|
12
|
+
type TranscriptStatus = 'ok' | 'error';
|
|
14
13
|
type TranscriptEntry = {
|
|
15
14
|
id: string;
|
|
16
15
|
scenarioId: string;
|
|
@@ -39,9 +38,8 @@ type GameRunResult = {
|
|
|
39
38
|
* Runs a full game session in manual or autoplay mode.
|
|
40
39
|
* The run is marked incomplete if any required CLI command group is missing.
|
|
41
40
|
*/
|
|
42
|
-
declare const runGame: ({ mode
|
|
41
|
+
declare const runGame: ({ mode }: {
|
|
43
42
|
mode: PlayMode;
|
|
44
|
-
execute: ExecutionMode;
|
|
45
43
|
}) => Promise<GameRunResult>;
|
|
46
44
|
|
|
47
45
|
/**
|
|
@@ -51,4 +49,4 @@ declare const runGame: ({ mode, execute }: {
|
|
|
51
49
|
|
|
52
50
|
declare const REQUIRED_GROUPS: CommandGroup[];
|
|
53
51
|
|
|
54
|
-
export { type CommandGroup, type
|
|
52
|
+
export { type CommandGroup, type GameRunResult, type PlayMode, REQUIRED_GROUPS, type ScenarioStep, runGame };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Shared type contracts for command coverage, transcript, and scenario runtime.
|
|
3
3
|
* In the quiet between turns, the protocol still remembers.
|
|
4
4
|
*/
|
|
5
|
-
type ExecutionMode = 'simulate' | 'shell';
|
|
6
5
|
type PlayMode = 'manual' | 'autoplay';
|
|
7
6
|
type CommandGroup = 'status' | 'npc_lifecycle' | 'npc_process_chat' | 'memory_list' | 'memory_recall' | 'memory_store' | 'memory_clear' | 'memory_export' | 'bridge_rules' | 'bridge_validate' | 'bridge_preset' | 'soul_export' | 'soul_import' | 'soul_list' | 'soul_chat' | 'ghost_lifecycle' | 'cortex_init';
|
|
8
7
|
type CommandSpec = {
|
|
@@ -10,7 +9,7 @@ type CommandSpec = {
|
|
|
10
9
|
command: string;
|
|
11
10
|
expectedRoutes: string[];
|
|
12
11
|
};
|
|
13
|
-
type TranscriptStatus = 'ok' | 'error'
|
|
12
|
+
type TranscriptStatus = 'ok' | 'error';
|
|
14
13
|
type TranscriptEntry = {
|
|
15
14
|
id: string;
|
|
16
15
|
scenarioId: string;
|
|
@@ -39,9 +38,8 @@ type GameRunResult = {
|
|
|
39
38
|
* Runs a full game session in manual or autoplay mode.
|
|
40
39
|
* The run is marked incomplete if any required CLI command group is missing.
|
|
41
40
|
*/
|
|
42
|
-
declare const runGame: ({ mode
|
|
41
|
+
declare const runGame: ({ mode }: {
|
|
43
42
|
mode: PlayMode;
|
|
44
|
-
execute: ExecutionMode;
|
|
45
43
|
}) => Promise<GameRunResult>;
|
|
46
44
|
|
|
47
45
|
/**
|
|
@@ -51,4 +49,4 @@ declare const runGame: ({ mode, execute }: {
|
|
|
51
49
|
|
|
52
50
|
declare const REQUIRED_GROUPS: CommandGroup[];
|
|
53
51
|
|
|
54
|
-
export { type CommandGroup, type
|
|
52
|
+
export { type CommandGroup, type GameRunResult, type PlayMode, REQUIRED_GROUPS, type ScenarioStep, runGame };
|