@every-env/cli
Version:
Multi-agent orchestrator for AI-powered development workflows
76 lines • 1.71 kB
TypeScript
export type Phase = 1 | 2 | 3 | 4;
export type TaskStatus = 'new' | 'ready' | 'revised' | 'active' | 'running' | 'in-review' | 'approved' | 'needs-work' | 'testing' | 'completed';
export interface Task {
id: string;
title: string;
status: TaskStatus;
createdAt: Date;
progress?: number;
stats?: {
added: number;
removed: number;
};
elapsed?: string;
patterns?: number;
}
export interface TaskLists {
plan: Task[];
delegate: Task[];
assess: Task[];
codify: Task[];
}
export type InputMode = 'idle' | 'typing';
export interface AppState {
currentPhase: Phase;
selectedIndex: number | null;
inputValue: string;
inputMode: InputMode;
showHelp: boolean;
showLogs: string | null;
commandFeedback: string | null;
tasks: TaskLists;
}
export type Action = {
type: 'SET_PHASE';
phase: Phase;
} | {
type: 'SET_SELECTED_INDEX';
index: number | null;
} | {
type: 'SET_INPUT_VALUE';
value: string;
} | {
type: 'SET_INPUT_MODE';
mode: InputMode;
} | {
type: 'SET_SHOW_HELP';
show: boolean;
} | {
type: 'SET_SHOW_LOGS';
taskId: string | null;
} | {
type: 'SET_COMMAND_FEEDBACK';
message: string | null;
} | {
type: 'ADD_TASK';
phase: keyof TaskLists;
task: Task;
} | {
type: 'UPDATE_TASK';
phase: keyof TaskLists;
taskId: string;
updates: Partial<Task>;
} | {
type: 'DELETE_TASK';
phase: keyof TaskLists;
taskId: string;
} | {
type: 'MOVE_TASK';
fromPhase: keyof TaskLists;
toPhase: keyof TaskLists;
taskId: string;
} | {
type: 'LOAD_STATE';
state: Partial<AppState>;
};
//# sourceMappingURL=index.d.ts.map