UNPKG

capsule-ai-cli

Version:

The AI Model Orchestrator - Intelligent multi-model workflows with device-locked licensing

36 lines 1.28 kB
import { AuthStatus } from './auth.js'; export interface AppState { currentModel: string; currentProvider: string; currentMode: 'agent' | 'plan' | 'orchestrator' | 'auto'; commandHistory: string[]; historyIndex: number; maxHistorySize: number; licenseStatus?: AuthStatus; } export declare class StateService { private state; private readonly DEFAULT_STATE; constructor(); private loadState; private saveState; setModel(model: string): void; getModel(): string; setProvider(provider: string): void; getProvider(): string; setMode(mode: 'agent' | 'plan' | 'orchestrator' | 'auto'): void; getMode(): 'agent' | 'plan' | 'orchestrator' | 'auto'; setLicenseStatus(status: AuthStatus): void; getLicenseStatus(): AuthStatus | undefined; addToHistory(command: string): void; getPreviousCommand(): string | null; getNextCommand(): string | null; getHistory(): string[]; clearHistory(): void; getAvailableModels(provider: string): Promise<string[]>; getAvailableModelsSync(provider: string): string[]; getAvailableProviders(): Promise<string[]>; getAvailableProvidersSync(): string[]; } export declare const stateService: StateService; //# sourceMappingURL=state.d.ts.map