iwe
Added
retrieve --limit, and--max-tokens/--max-document-tokensonretrieveandfind, to bound output for context-limited callers.0disables a limit. Awarning:line is printed to stderr when output is truncated.
Changed
findmarkdown output is now a compact index (one line per document) instead of full document blocks; a document body is rendered only when the projection includes$content(via--project/--add-fields). Useretrievefor full content.
Removed
retrieve --no-content— removed;retrievealways returns content. Usefindfor a metadata-only index.retrieve --dry-run— removed.
iwec
Added
iwe_retrieveandiwe_findacceptmax_tokens/max_document_tokens(andiwe_retrievealimit) to bound output; all are unlimited unless set. When a limit trims the output, the tool appends a second content block with a JSON truncation summary (truncated,emitted,matched,clipped,tokens,budget,hint) alongside the unchanged primary JSON.
Removed
iwe_retrievetoolno_contentparameter — removed; the tool always returns content.
liwe
Added
tokensmodule (count_tokens,truncate_to_tokens) backed bytiktoken-rs.RetrieveOptionsgainslimit,max_tokens,max_document_tokens;FindOptionsgainsmax_tokens,max_document_tokens;RetrieveOutput/FindOutputgain atruncationsummary.
Removed
RetrieveOptions::no_contentfield — removed;DocumentReaderalways populatescontent.