fix: 0.1.0 사전 점검 차단 결함을 보정

공유 archive 마이그레이션과 런타임 설정 보존, AVIF 판별 및 문서 생성을 수정한다. 조건부 통합 격리를 보강하고 취약 의존성을 갱신하며 릴리스 메타데이터를 정리한다.
This commit is contained in:
2026-08-19 11:20:44 +00:00
parent b43d7601e7
commit 769d81f894
20 changed files with 1257 additions and 1888 deletions
+1 -1
View File
@@ -489,7 +489,7 @@ export class InMemoryTurnWorld {
// Runtime callbacks created before the world keep the original object
// reference. Mutate this object in place so a live settings action is
// observed by monthly handlers without restarting the daemon.
this.worldConfig = snapshot.worldConfig ?? {};
this.worldConfig = snapshot.worldConfig ?? { ...snapshot.scenarioConfig };
this.unitSet = snapshot.unitSet;
this.schedule = options.schedule;
this.generalTurnHandler =
@@ -82,6 +82,18 @@ const buildWorld = (stateOverride: Partial<TurnWorldState> = {}): InMemoryTurnWo
};
describe('runtime clock shift', () => {
it('preserves the scenario config when the raw world config is unavailable', () => {
const world = buildWorld();
expect(world.getWorldConfig()).toMatchObject({
stat: { total: 300 },
iconPath: '',
map: {},
const: {},
environment: { mapName: 'test', unitSet: 'default' },
});
});
it.each([
['accelerates', -15, '2026-07-30T09:45:00.000Z', '2026-07-30T09:55:00.000Z'],
['delays', 15, '2026-07-30T10:15:00.000Z', '2026-07-30T10:25:00.000Z'],