iwe
Added
docssubcommand — prints the embedded query language, configuration, and document schema references (iwe docs query,iwe docs config,iwe docs schema); bareiwe docslists the topics.initnow fits the configuration to the existing files instead of writing a fixed template — it detects the library directory, source format, link style and path conventions, date formats, key naming, search language, and the markdown formatting tokens, and labels every value detected, assumed, or overridden.initmeasures how many filesiwe normalizewould rewrite under both the detected settings and the iwe defaults, and reports the two side by side before writing anything.initflags:--auto(-y) writes without prompting,--dry-runprints the proposal and writes nothing,--defaultskeeps the old fixed template,--jsonemits a machine-readable report.initper-setting overrides applied on top of detection:--library,--link-format,--refs-extension,--format,--date-format.initreports findings that map to no setting — CRLF endings, setext headers, embeds and callouts, tag styles, frontmatter fields, duplicate titles, filename case collisions, and unresolved links.initcan add an<!-- iwe -->section toAGENTS.mddescribing the graph's conventions and register theiwecMCP server in.mcp.json, offered when the directory already shows signs of agent use; the files are only written after an interactive confirmation — otherwise the snippets are printed instead.
Changed
squashkeeps the source document's YAML frontmatter in its output (previously dropped).initat a terminal lists every setting with the detected value, marks the rows where detection differs from the defaults, and asks one question: write the detected settings or the defaults; with no terminal attached it behaves as--auto(previously it always wrote the fixed template with no output).initwrites each detected value with a comment citing its evidence, and emits configuration sections in a stable order (previously the generated file's section order varied between runs).initsets thelink_typeof the generatedextract,extract_all, andlinkactions to the chosen link format (was alwaysmarkdown).initexits 2 when.iwealready exists and reports it on stderr (was: exit 0 with a message only visible under--verbose).
Fixed
- Processing a document with an indented HTML block no longer crashes.
iwes
Fixed
- Opening a document with an indented HTML block no longer crashes the server.
iwec
Changed
iwe_squashkeeps the document's YAML frontmatter in its output (previously dropped).
Fixed
- Reading a document with an indented HTML block no longer crashes the server.
liwe
Added
Graphdocument-index helpers:has_key,refresh_ref_text,reindex_keys,rebuild_indexes,raw_metadata,get_document_references_to, androot_section_keys;DocumentReference { source_key, source_title }names a document that links to another.Tree::new_generated,Tree::with_line_range_generated, andTree::with_new_idsbuild trees with freshly-allocated node ids.frontmatter_from_str,frontmatter_to_string, and theFrontmattertype alias for parsing and rendering document frontmatter.
Changed
Keyis backed byArc<str>and read throughas_str()(was a publicrelative_path: Arc<String>field), and gains string-basedSerialize/Deserialize.
Fixed
- Reading a document with an indented HTML block no longer panics; the block is dropped as before.