import { type NativeSupervisorState } from './native-supervisor.js'; import { nativePortableContinuation } from './native-portable-continuation.js'; import { nativePortableStateSummary } from './native-portable-summary.js'; import type { NativeLocalExecutionState, NativePortableState } from './native-portable-types.js'; import type { NativeProjectPaths } from './native-types.js'; export interface NativePortableAcceptanceCounts { total: number; passed: number; failed: number; blocked: number; pending: number; } export interface NativePortableStatusProjection { schema: 'comet.native.status.v2'; name: string; phase: NativePortableState['phase']; status: NativePortableState['status']; stateVersion: number; coordinationMode?: NativePortableState['coordination_mode']; loop: NativePortableState['loop']; acceptance: NativePortableAcceptanceCounts; unresolvedAcceptanceIds: string[]; verificationResult: NativePortableState['verification_result']; blockers: ReturnType['blockers']; workspace: { projectRoot: string; isolation: NativePortableState['workspace']['isolation']; bindingState: 'aligned' | 'mismatch'; changeBranch: string | null; targetBranch: string | null; finish: NativePortableState['workspace']['finish']; message: string | null; }; localExecution: { status: 'available' | 'missing' | 'invalid' | 'stale' | 'not-expected'; operation: NativeLocalExecutionState['execution']; }; childSummary?: Record; readyChildren?: string[]; supervisorOverlay?: { status: 'repairable-legacy-overlay' | 'incompatible'; message: string; repairCommand: string | null; }; supervisor?: NativeSupervisorStatusProjection; continuation: ReturnType; details?: { stateVersion: number; supervisorStateVersion?: number; items: NativePortableStatusDetailItem[]; nextCursor: string | null; nextPageArgs: string[] | null; }; } export interface NativePortableStatusDetailItem { kind: 'acceptance' | 'spec-change' | 'builder-handoff' | 'verification' | 'history' | 'history-overflow' | 'workspace' | 'verification-report' | 'supervisor-integration' | 'supervisor-final-verification' | 'supervisor-child' | 'supervisor-history'; value: unknown; } export interface NativeSupervisorStatusProjection { schema: NativeSupervisorState['schema']; parent: string; integration: Pick; finalVerification: Pick; summary: { targetSpecs: number; implementationChildren: number; waiting: number; working: number; integrated: number; blocked: number; active: Array<{ name: string; summary: string | null; projectRoot: string | null; reason: string | null; }>; agents: { working: number; completed: number; }; risks: string[]; nextAction: string | null; }; } export declare function inspectNativePortableStatus(options: { paths: NativeProjectPaths; name: string; details?: boolean; cursor?: string; }): Promise; export declare function listNativePortableChangeNames(paths: NativeProjectPaths): Promise; export declare function listNativePortableStatus(options: { paths: NativeProjectPaths; offset?: number; limit?: number; }): Promise<{ schema: 'comet.native.status-page.v2'; items: NativePortableStatusProjection[]; total: number; nextOffset: number | null; }>; //# sourceMappingURL=native-portable-status.d.ts.map