export interface Context { currentIteration: string; currentTask: string; currentAssignee: string; lastUpdated: string; lastAction: string; lastIntent: string; interruptedAt: string; iterationStatus: string; pendingTasks: number; inProgressTasks: number; completedTasks: number; blockedTasks: number; customAliases: Record; history: ContextHistoryEntry[]; hotfix?: HotfixEntry; } export interface HotfixEntry { taskId: string; startedAt: string; graceEndsAt: string; mustSyncBy: string; } export interface ContextHistoryEntry { command: string; timestamp: string; iteration?: string; task?: string; } export declare function loadContext(): Promise; export declare function saveContext(context: Context): Promise; export declare function updateContext(partial: Partial): Promise; export declare function recordHistory(command: string, iteration?: string, task?: string): Promise; export declare function detectActiveIteration(): Promise; export declare function detectCurrentAssignee(): Promise; export declare function getDefaultIteration(iteration?: string): Promise; export declare function getDefaultAssignee(assignee?: string): Promise; /** 标记任务为 hotfix,宽限期 30 分钟 */ export declare function startHotfix(taskId: string): Promise; /** 清除 hotfix 标记 */ export declare function clearHotfix(): Promise; /** 获取当前 hotfix 状态(给 validate/progress 用) */ export declare function getHotfixStatus(): Promise<{ inHotfix: boolean; graceExpired: boolean; mandatoryExpired: boolean; taskId: string; } | null>; /** * 根据简短迭代名(如 Q1)查找完整迭代路径 * 返回项目根目录下的 Iteration-NNN-q1 */ export declare function getIterationDir(name: string): Promise; //# sourceMappingURL=context.d.ts.map