const PLANU_CONFIG_VERSION = '1.0.0';
const DEFAULT_SPEC_LOCATION = 'planu/specs';
/**
 * Create a new PlanuConfig with defaults. Always uses modern spec location.
 */
export function createPlanuConfig() {
    const now = new Date().toISOString();
    return {
        version: PLANU_CONFIG_VERSION,
        specLocation: DEFAULT_SPEC_LOCATION,
        specNaming: 'modern',
        createdAt: now,
        updatedAt: now,
    };
}
/**
 * Serialize PlanuConfig to JSON string.
 */
export function serializePlanuConfig(config) {
    return JSON.stringify(config, null, 2);
}
/**
 * Determine spec file names based on naming convention.
 */
export function getSpecFileNames(naming) {
    if (naming === 'legacy') {
        return { spec: 'HU.md', technical: 'FICHA-TECNICA.md', progress: 'PROGRESS.md' };
    }
    return { spec: 'spec.md', technical: 'technical.md', progress: 'progress.md' };
}
/**
 * Check if a specLocation uses legacy naming.
 */
export function isLegacyLocation(specLocation) {
    return specLocation.includes('docs/sdd/specs');
}
//# sourceMappingURL=planu-config-writer.js.map