"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.canonicalAdrTemplate = exports.DEFAULT_ADR_STATUS = exports.ADR_TEMPLATE_FILE_NAME = void 0;
exports.renderAdrTemplate = renderAdrTemplate;
exports.ADR_TEMPLATE_FILE_NAME = '_template.md';
exports.DEFAULT_ADR_STATUS = 'Proposed';
exports.canonicalAdrTemplate = `# {{ADR_ID}}: {{ADR_TITLE}}

Status: {{ADR_STATUS}}

## Context
Describe the architectural problem or constraint that requires a decision.

Include relevant inputs such as:
- architecture style
- infrastructure constraints
- operational needs
- product requirements

## Decision
Clearly describe the chosen approach.

## Consequences
Explain the implications of the decision, including:
- benefits
- trade-offs
- operational impact
- potential future reconsiderations.

## Alternatives Considered
Optional.

## Migration Plan
Optional.

## References
Optional.
`;
function renderAdrTemplate(template, input) {
    return template
        .replace(/\{\{ADR_ID\}\}/g, input.adrId)
        .replace(/\{\{ADR_TITLE\}\}/g, input.title)
        .replace(/\{\{ADR_STATUS\}\}/g, input.status ?? exports.DEFAULT_ADR_STATUS);
}
//# sourceMappingURL=adrTemplate.js.map