mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
fix(agents): model rehearsal modes as discriminants
This commit is contained in:
@@ -68,14 +68,16 @@ type InventoryRequest = {
|
||||
configPath: string;
|
||||
};
|
||||
|
||||
type RehearsalRequest = {
|
||||
type RehearsalRequestBase = {
|
||||
schemaVersion: 1;
|
||||
mode: "migrate" | "read-only";
|
||||
privateStateRoot: string;
|
||||
agents: AgentDatabaseRequest[];
|
||||
pluginPersistence: PluginPersistenceDeclaration[];
|
||||
};
|
||||
|
||||
type RehearsalRequest = RehearsalRequestBase &
|
||||
({ mode: "migrate" } | { mode: "read-only" });
|
||||
|
||||
type ParsedRequest = InventoryRequest | RehearsalRequest;
|
||||
|
||||
type DatabaseSnapshot = {
|
||||
|
||||
Reference in New Issue
Block a user