parseMarkdownSections() | function | Parse markdown content into classified sections. Splits on ## and ### he… |
classifySection() | function | Classify a markdown section based on its heading and content. Uses heuristic… |
extractProperties() | function | Extract key-value properties from markdown bullet lists. Matches patterns li… |
extractPermissions() | function | Extract permission entries from markdown content. Handles two formats: 1. St… |
headingToIdentifier() | function | Normalize a heading into a valid CANT identifier. Converts “Code Review Agen… |
headingToEventName() | function | Map a hook heading to a CAAMP event name. Converts headings like “On Session… |
getCaampEvents() | function | Get the full set of CAAMP event names. |
serializeCantDocument() | function | Serialize a CANT document IR into .cant file text. Produces a complete .cant… |
formatValue() | function | Format a property value for .cant output. - Strings are double-quoted - Arra… |
propertiesToIR() | function | Convert extracted properties to CANT property IR format. Maps known markdown… |
migrateMarkdown() | function | Migrate a markdown file to CANT format. Parses the markdown into sections, c… |
showDiff() | function | Show a color-coded diff of the migration result. Displays: - A summary heade… |
showSummary() | function | Generate a simple text-only summary (no color). Suitable for logging or non-… |
isNativeAvailable() | function | Check if the native addon is available |
cantParseNative() | function | Parse a CANT message using the native addon |
cantClassifyDirectiveNative() | function | Classify a directive using the native addon |
initCantParser() | function | Initialize the CANT parser With napi-rs native addons, this is a no-op (nati… |
parseCANTMessage() | function | Parse a CANT message If the native addon is available, uses the Rust cant-co… |
initWasm() | function | Initialize the WASM module Must be called before using any WASM functions |
isWasmAvailable() | function | Check if WASM is available |
cantParseWASM() | function | Parse a CANT message using WASM |
cantClassifyDirectiveWASM() | function | Classify a directive using WASM |