Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -1,15 +1,32 @@
|
||||
import type { ProvisioningAction } from './provisioning.js';
|
||||
import type { LaunchRecipeSummary } from './deployment-plan.js';
|
||||
|
||||
export const provisioningPhases = ['requested', 'eligibility', 'startup-queue', 'prepare',
|
||||
'container-action', 'cleanup', 'verify-container', 'verify-game',
|
||||
'verify-map', 'verify-plutonium', 'verify-stopped'] as const;
|
||||
export type ProvisioningPhase = typeof provisioningPhases[number];
|
||||
export const provisioningPhases = [
|
||||
'requested',
|
||||
'eligibility',
|
||||
'startup-queue',
|
||||
'prepare',
|
||||
'container-action',
|
||||
'cleanup',
|
||||
'verify-container',
|
||||
'verify-game',
|
||||
'verify-map',
|
||||
'verify-plutonium',
|
||||
'verify-stopped'
|
||||
] as const;
|
||||
export type ProvisioningPhase = (typeof provisioningPhases)[number];
|
||||
export type EvidenceResult = 'pass' | 'waiting' | 'fail' | 'unknown';
|
||||
export type EvidenceSource = 'agent' | 'rcon' | 'telemetry' | 'combined' | 'manifest' | null;
|
||||
|
||||
export interface ProvisioningCheck {
|
||||
key: 'container' | 'game' | 'map' | 'plutonium-release' | 'plutonium-version' | 'occupancy' | 'stopped';
|
||||
key:
|
||||
| 'container'
|
||||
| 'game'
|
||||
| 'map'
|
||||
| 'plutonium-release'
|
||||
| 'plutonium-version'
|
||||
| 'occupancy'
|
||||
| 'stopped';
|
||||
label: string;
|
||||
result: EvidenceResult;
|
||||
source: EvidenceSource;
|
||||
@@ -46,7 +63,11 @@ export interface ProvisioningProgress {
|
||||
blocker: ProvisioningBlocker | null;
|
||||
checks: ProvisioningCheck[];
|
||||
checkpoints: ProvisioningCheckpoint[];
|
||||
command: { state: 'attempted' | 'accepted' | 'rejected' | 'uncertain'; at: string; message: string } | null;
|
||||
command: {
|
||||
state: 'attempted' | 'accepted' | 'rejected' | 'uncertain';
|
||||
at: string;
|
||||
message: string;
|
||||
} | null;
|
||||
recovery: RecoveryObservation | null;
|
||||
recipeStatus: 'queued' | 'attempted' | null;
|
||||
}
|
||||
@@ -105,7 +126,14 @@ export interface ProvisioningDetail {
|
||||
cancellation?: { cleanupId: string; state: string; stage: string; error: string | null } | null;
|
||||
backend?: 'native';
|
||||
workerActivity?: WorkerActivity[];
|
||||
agentOperation?: { id: string; hostId: string; state: string; updatedAt: string; createdAt: string; error: string | null } | null;
|
||||
agentOperation?: {
|
||||
id: string;
|
||||
hostId: string;
|
||||
state: string;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
error: string | null;
|
||||
} | null;
|
||||
deployment: ProvisioningDeployment;
|
||||
events: ProvisioningEvent[];
|
||||
activity: { total: number; latestId: number | null; failureExcerpt: ProvisioningEvent | null };
|
||||
@@ -122,7 +150,11 @@ export interface ProvisioningDetail {
|
||||
warningMessages: string[];
|
||||
generatedAt: string;
|
||||
}
|
||||
export interface WorkerActivity { key: string; label: string; startedAt: string }
|
||||
export interface WorkerActivity {
|
||||
key: string;
|
||||
label: string;
|
||||
startedAt: string;
|
||||
}
|
||||
export interface ProvisioningEventPage {
|
||||
events: ProvisioningEvent[];
|
||||
total: number;
|
||||
|
||||
Reference in New Issue
Block a user