Files
Regolith/src/cli/types.ts
tanmay11k 4b2b22d044
Some checks failed
Update token count / update-tokens (push) Has been cancelled
feat: add regolith onboard CLI wizard with daemon installation
- Interactive setup wizard: deps check, env config, WhatsApp auth, daemon install, health check
- CLI entry point via yargs with bin registration (regolith onboard)
- Flags: --install-daemon, --non-interactive, --pairing-code, --json, --skip-*
- launchd (macOS) and systemd (Linux) service installation
- Refactored whatsapp-auth.ts to export authenticate() for programmatic use
- 72 tests across 6 test files
- Updated README.md and CLAUDE.md with onboard CLI docs
2026-02-19 14:05:18 -05:00

32 lines
769 B
TypeScript

export interface WizardFlags {
installDaemon: boolean;
nonInteractive: boolean;
pairingCode: boolean;
json: boolean;
skipDeps: boolean;
skipEnv: boolean;
skipWhatsapp: boolean;
skipHealth: boolean;
}
export interface StepResult {
name: string;
status: 'passed' | 'failed' | 'skipped' | 'warning';
message: string;
details?: Record<string, unknown>;
}
export interface WizardContext {
flags: WizardFlags;
projectRoot: string;
platform: 'darwin' | 'linux';
envValues: Record<string, string>;
containerRuntime: 'apple-container' | 'docker' | null;
containerVersion: string | null;
whatsappAuthed: boolean;
daemonInstalled: boolean;
results: StepResult[];
}
export type WizardStep = (ctx: WizardContext) => Promise<StepResult>;