feat(admin): apply durable runtime clock shifts

This commit is contained in:
2026-07-30 17:21:01 +00:00
parent d6904f2c9d
commit 7f31459385
23 changed files with 1889 additions and 93 deletions
+22
View File
@@ -51,6 +51,12 @@ export type TurnDaemonCommand =
| { type: 'pause'; requestId?: string; reason?: string }
| { type: 'resume'; requestId?: string; reason?: string }
| { type: 'shutdown'; requestId?: string; reason?: string }
| {
type: 'shiftSchedule';
requestId?: string;
actionId: string;
deltaMinutes: number;
}
| { type: 'getStatus'; requestId?: string }
| { type: 'troopCreate'; requestId?: string; generalId: number; troopName: string }
| { type: 'troopJoin'; requestId?: string; generalId: number; troopId: number }
@@ -214,6 +220,22 @@ export type TurnDaemonCommandResult =
commandType: TurnDaemonCommand['type'];
reason: string;
}
| {
type: 'shiftSchedule';
ok: true;
actionId: string;
deltaMinutes: number;
lastTurnTime: string;
shiftedGenerals: number;
shiftedAuctions: number;
checkpoint?: TurnCheckpoint;
}
| {
type: 'shiftSchedule';
ok: false;
actionId: string;
reason: string;
}
| {
type: 'auctionFinalize';
ok: true;