File size: 830 Bytes
1dbc34b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * @automaker/spec-parser
 *
 * XML spec parser for AutoMaker - parses and generates app_spec.txt XML.
 * This package provides utilities for:
 * - Parsing XML spec content into SpecOutput objects
 * - Converting SpecOutput objects back to XML
 * - Validating spec data
 */

// Re-export types from @automaker/types for convenience
export type { SpecOutput } from '@automaker/types';

// XML utilities
export { escapeXml, unescapeXml, extractXmlSection, extractXmlElements } from './xml-utils.js';

// XML to Spec parsing
export { xmlToSpec } from './xml-to-spec.js';
export type { ParseResult } from './xml-to-spec.js';

// Spec to XML conversion
export { specToXml } from './spec-to-xml.js';

// Validation
export { validateSpec, isValidSpecXml } from './validate.js';
export type { ValidationResult } from './validate.js';