feat: Add feature state reconciliation on server startup

This commit is contained in:
gsxdsm
2026-02-17 09:56:54 -08:00
parent 57446b4fba
commit b5ad77b0f9
9 changed files with 274 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ const FEATURE_LIST_INVALIDATION_EVENTS: AutoModeEvent['type'][] = [
'plan_rejected',
'pipeline_step_started',
'pipeline_step_complete',
'feature_status_changed',
'features_reconciled',
];
/**

View File

@@ -359,6 +359,21 @@ export type AutoModeEvent =
title?: string;
status?: string;
}>;
}
| {
type: 'feature_status_changed';
featureId: string;
projectPath?: string;
status: string;
previousStatus: string;
reason?: string;
}
| {
type: 'features_reconciled';
projectPath?: string;
reconciledCount: number;
reconciledFeatureIds: string[];
message: string;
};
export type SpecRegenerationEvent =