mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
- Added a new `/sync` endpoint to synchronize the project specification with the current codebase and feature state. - Introduced `syncSpec` function to handle the synchronization logic, updating technology stack, implemented features, and roadmap phases. - Enhanced the running state management to track synchronization tasks alongside existing generation tasks. - Updated UI components to support synchronization actions, including loading indicators and status updates. - Improved logging and error handling for better visibility during sync operations. These changes enhance project management capabilities by ensuring that the specification remains up-to-date with the latest code and feature developments.
31 lines
982 B
TypeScript
31 lines
982 B
TypeScript
import type { FeatureCount } from './types';
|
|
|
|
// Delay before reloading spec file to ensure it's written to disk
|
|
export const SPEC_FILE_WRITE_DELAY = 500;
|
|
|
|
// Interval for polling backend status during generation
|
|
export const STATUS_CHECK_INTERVAL_MS = 2000;
|
|
|
|
// Feature count options with labels and warnings
|
|
export const FEATURE_COUNT_OPTIONS: {
|
|
value: FeatureCount;
|
|
label: string;
|
|
warning?: string;
|
|
}[] = [
|
|
{ value: 20, label: '20' },
|
|
{ value: 50, label: '50', warning: 'May take up to 5 minutes' },
|
|
{ value: 100, label: '100', warning: 'May take up to 5 minutes' },
|
|
];
|
|
|
|
// Phase display labels for UI
|
|
export const PHASE_LABELS: Record<string, string> = {
|
|
initialization: 'Initializing...',
|
|
setup: 'Setting up tools...',
|
|
analysis: 'Analyzing project structure...',
|
|
spec_complete: 'Spec created! Generating features...',
|
|
feature_generation: 'Creating features from roadmap...',
|
|
working: 'Working...',
|
|
complete: 'Complete!',
|
|
error: 'Error occurred',
|
|
};
|