/** * resume 命令 - 基于 session + runtime 的恢复入口 */ import { Command } from 'commander'; import type { AgentPermissionProfile } from '../../types/index.js'; import { type RuntimeLogsContextDriftSummary, type RuntimeLogsThreadLinkageSummary, type RuntimeLogsWorkflowContextSummary } from './logs.js'; export interface ResumeObservationSummary { readyTasks: number; blockedTasks: number; pendingReview: number; unreadMessages: number; } export interface ResumeSuperpowersSummary { enabled: boolean; taskSkills: string[]; requiredSkills: string[]; executionMode: 'subagent' | 'inline' | null; suggestedWorkflow: string | null; capabilities: Array<{ id: string; kind: string; owner: string; recommended: boolean; }>; } export interface ResumePermissionSummary { profile: AgentPermissionProfile; canWriteWorkspace: boolean; requiresApproval: boolean; } export interface ResumeRuntimeLogSummary { sessionId: string | null; lastEvent: string | null; lastTaskId: string | null; permissionProfile: string | null; command: string | null; workflowContext: RuntimeLogsWorkflowContextSummary | null; threadLinkage: RuntimeLogsThreadLinkageSummary; currentWorkflowContext: RuntimeLogsWorkflowContextSummary | null; currentThreadLinkage: RuntimeLogsThreadLinkageSummary; contextDrift: RuntimeLogsContextDriftSummary; } export interface ResumeLatestSuperpowersRunSummary { id: string; workflow: string; summary: string; taskId: string | null; sessionId: string | null; recordedAt: string; artifacts: string[]; } export interface ResumeWorkflowContextSummary { workflow: string; runId: string | null; owner: string | null; waveId: string | null; threadId: string | null; branch: string | null; worktreePath: string | null; compactFromSession: string | null; artifacts: string[]; } export interface ResumeThreadLinkageSummary { status: 'none' | 'ready' | 'blocked'; threadId: string | null; workflow: string | null; runId: string | null; branch: string | null; worktreePath: string | null; missingArtifacts: string[]; missingWorktreePath: string | null; missingThreadId: string | null; } export interface ResumeSummary { sessionId: string | null; sessionName: string | null; lastActive: string | null; runtimeStatus: string; runtimeSummary: string; currentTaskId: string | null; currentPhaseId: string | null; readyCount: number; blockedCount: number; pendingReviewCount: number; nextAction: string; guidance: string | null; shouldRead: string[]; observation: ResumeObservationSummary; superpowers: ResumeSuperpowersSummary; permissions: ResumePermissionSummary; runtimeLog: ResumeRuntimeLogSummary; latestSuperpowersRun: ResumeLatestSuperpowersRunSummary | null; workflowContext: ResumeWorkflowContextSummary | null; threadLinkage: ResumeThreadLinkageSummary; } export interface ResumeCommandOptions { json?: boolean; } export declare function createResumeCommand(): Command; export declare function buildResumeSummary(basePath?: string): Promise; export declare function resumeCommand(optionsOrBasePath?: ResumeCommandOptions | string, maybeBasePath?: string): Promise; //# sourceMappingURL=resume.d.ts.map