UNPKG

@capgo/cli

Version:
42 lines (41 loc) 1.22 kB
export type StepKind = 'auto' | 'human_gate' | 'choice' | 'done' | 'error' | 'info'; export type LiveUpdatePhase = 'preflight' | 'prepare' | 'integrate' | 'validate' | 'done'; export type Platform = 'ios' | 'android'; export interface ChoiceOption { value: string; label?: string; note?: string; } export interface CollectField { field: string; desc: string; } export interface NextAction { tool: string; with?: Record<string, unknown>; call?: string; instruction: string; } export interface NextStepResult { onboarding: 'capgo-live-update'; phase: LiveUpdatePhase; state: string; platform?: Platform; progress: number; kind: StepKind; summary: string; roadmap?: string[]; context?: Record<string, unknown>; options?: ChoiceOption[]; human?: { instruction: string; resourceUri?: string; }; collect?: CollectField[]; next?: NextAction; rules?: string[]; } export declare const NEXT_STEP_TOOL = "capgo_live_update_onboarding_next_step"; export declare const LIVE_UPDATE_ROADMAP: string[]; export declare const LIVE_UPDATE_RULES: string[]; export declare function renderResult(result: NextStepResult): string;