/** * logs 命令 - 查看 runtime 执行日志与观察事件 */ import { Command } from 'commander'; import { type RuntimeObservationSummary } from '../../core/logger.js'; export interface RuntimeLogsOptions { json?: boolean; } export interface RuntimeLogsWorkflowContextSummary { source: 'runtime' | 'session' | 'current'; status: 'ready' | 'blocked'; 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[]; missingArtifacts: string[]; missingWorktreePath: string | null; missingCompactSessionId: string | null; } export interface RuntimeLogsThreadLinkageSummary { 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 RuntimeLogsContextDriftSummary { status: 'none' | 'aligned' | 'drifted'; reasons: string[]; } export interface RuntimeLogsSummary extends RuntimeObservationSummary { workflowContext: RuntimeLogsWorkflowContextSummary | null; threadLinkage: RuntimeLogsThreadLinkageSummary; currentWorkflowContext: RuntimeLogsWorkflowContextSummary | null; currentThreadLinkage: RuntimeLogsThreadLinkageSummary; contextDrift: RuntimeLogsContextDriftSummary; } export declare function createLogsCommand(basePath?: string): Command; export declare function runtimeLogsCommand(sessionId?: string, options?: RuntimeLogsOptions, basePath?: string): Promise; export declare function buildRuntimeLogsSummary(sessionId: string | undefined, basePath: string): Promise; //# sourceMappingURL=logs.d.ts.map