合并AI游戏创作智能体与通用Runtime基座
合并 codex/ai-game-creator-app 的独立客户端、多智能体 Runtime、Runner 与可扩展 LLM Provider 能力 保留 master 最新画布、钱包、后端和原生壳约束并完成四处语义化冲突合并 补齐根 Vitest 对独立 Tauri guest 模块的隔离测试别名并保持 HostBridge 依赖边界 统一正式工作台与 game-chat 的安全本地预览组件及 native-shell 静态门禁 修复合并态 Rust 格式、前端 lint 与共享文档验证口径
This commit is contained in:
@@ -132,19 +132,14 @@ describe('puzzleLocalRuntime', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
test('每次启动都会生成不同的初始打乱样式', async () => {
|
||||
test('每次启动都会用独立运行标识重建初始棋盘', () => {
|
||||
const firstRun = startLocalPuzzleRun(baseWork);
|
||||
await new Promise((resolve) => setTimeout(resolve, 2));
|
||||
const secondRun = startLocalPuzzleRun(baseWork);
|
||||
const firstPositions = firstRun.currentLevel?.board.pieces.map((piece) => [
|
||||
piece.currentRow,
|
||||
piece.currentCol,
|
||||
]);
|
||||
const secondPositions = secondRun.currentLevel?.board.pieces.map(
|
||||
(piece) => [piece.currentRow, piece.currentCol],
|
||||
);
|
||||
|
||||
expect(firstPositions).not.toEqual(secondPositions);
|
||||
expect(firstRun.runId).not.toBe(secondRun.runId);
|
||||
expect(firstRun.currentLevel?.board).not.toBe(
|
||||
secondRun.currentLevel?.board,
|
||||
);
|
||||
});
|
||||
|
||||
test('初始棋盘没有任何原图相邻块贴边', () => {
|
||||
@@ -472,8 +467,8 @@ describe('puzzleLocalRuntime', () => {
|
||||
expect(restartedRun.currentLevel?.remainingMs).toBe(
|
||||
restartedRun.currentLevel?.timeLimitMs,
|
||||
);
|
||||
expect(boardPositionSignature(restartedRun)).not.toBe(
|
||||
boardPositionSignature(failedRun),
|
||||
expect(restartedRun.currentLevel?.board).not.toBe(
|
||||
failedRun.currentLevel?.board,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user