feat: add log clearing functionality to turn test harness and enhance NPC simulation logging

This commit is contained in:
2026-01-24 17:14:59 +00:00
parent 9ab801ddb8
commit c83795716b
2 changed files with 23 additions and 1 deletions
@@ -185,6 +185,7 @@ export const createTurnTestHarness = async (options: TurnTestHarnessOptions) =>
runOneTick,
runUntil,
getCollectedLogs: () => [...collectedLogs],
getAndClearCollectedLogs: () => collectedLogs.splice(0, collectedLogs.length),
};
};