1
This commit is contained in:
40
packages/shared/src/contracts/rpgCreationResultView.ts
Normal file
40
packages/shared/src/contracts/rpgCreationResultView.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import type { CustomWorldProfileRecord } from './runtime';
|
||||
import type { RpgAgentSessionSnapshot } from './rpgAgentSession';
|
||||
|
||||
export type RpgCreationResultProfileSource =
|
||||
| 'result_preview'
|
||||
| 'draft_profile'
|
||||
| 'none';
|
||||
|
||||
export type RpgCreationResultTargetStage =
|
||||
| 'agent-workspace'
|
||||
| 'custom-world-generating'
|
||||
| 'custom-world-result';
|
||||
|
||||
export type RpgCreationResultGenerationViewSource =
|
||||
| 'agent-draft-foundation'
|
||||
| null;
|
||||
|
||||
export type RpgCreationResultViewSource = 'agent-draft' | null;
|
||||
|
||||
export type RpgCreationResultRecoveryAction =
|
||||
| 'continue_agent'
|
||||
| 'resume_generation'
|
||||
| 'open_result'
|
||||
| 'missing_session';
|
||||
|
||||
export interface RpgCreationResultView {
|
||||
session: RpgAgentSessionSnapshot;
|
||||
profile: CustomWorldProfileRecord | null;
|
||||
profileSource: RpgCreationResultProfileSource;
|
||||
targetStage: RpgCreationResultTargetStage;
|
||||
generationViewSource: RpgCreationResultGenerationViewSource;
|
||||
resultViewSource: RpgCreationResultViewSource;
|
||||
canAutosaveLibrary: boolean;
|
||||
canSyncResultProfile: boolean;
|
||||
publishReady: boolean;
|
||||
canEnterWorld: boolean;
|
||||
blockerCount: number;
|
||||
recoveryAction: RpgCreationResultRecoveryAction;
|
||||
recoveryReason?: string | null;
|
||||
}
|
||||
Reference in New Issue
Block a user