Releases: johanneslatzel/llm-chat-web
Releases · johanneslatzel/llm-chat-web
v0.3.0
Breaking
- Removed
rawmode fromWebFetchTool— therawparameter is no longer accepted; content-type is now auto-detected and dispatched to the appropriate handler WebFetchToolconstructor now accepts an optionalFetchRegistryas second parameterWebToolsPackageconstructor now accepts an optionalFetchRegistryas third parameter
Features
- Content-type handler dispatch —
WebFetchToolnow auto-detects response content type and routes to a matching handler viaFetchRegistry - New content handlers:
HtmlHandler,JsonHandler,XmlHandler,CsvHandler,MarkdownHandler,PlainTextHandler,GenericTextHandler - JSON pretty-printing —
application/jsonresponses are parsed and re-serialized with 2-space indentation for readability - Automatic support for XML, CSV, and Markdown responses (returned as-is)
FetchRegistrywith lazy initialization and custom handler support — register your own handlers that take priority over built-in defaults- New public exports:
ContentHandlerRegistry(alias forFetchRegistry), all content handler classes, and theContentHandlerinterface type
Internal
- Updated
@johannes.latzel/llm-chatdependency from^0.5.0to^0.6.0 truncatefunction refactored fromweb-fetch.tsintolib/content-handlers/util.tswith improved boundary detection (paragraph → sentence → word → hard cut)- Config classes (
WebSearchConfiguration,WebFetchConfiguration) now have JSDoc annotations on all properties - All docs files rewritten: README, architecture.md, configuration.md, quickstart.md, usage.md
- New test suite for content handlers and
FetchRegistry - Various dependency bumps (
@typescript-eslint/*8.61.1→8.62.0,nanoid3.3.12→3.3.15,semver7.8.4→7.8.5,@types/node22.19.21→22.20.0) - README badge upgraded to NodeI co-branded shield
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Breaking
- BatchWebFetchTool removed — use
WebFetchToolwithurls(array) instead. - Concurrency settings moved from
BatchWebFetchConfigurationtoWebFetchConfiguration.concurrency/WebSearchConfiguration.concurrency(env:LLM_CHAT_WEB_FETCH_CONCURRENCY,LLM_CHAT_WEB_SEARCH_CONCURRENCY). WebSearchTool.query→queries(string →string[]).WebFetchTool.url→urls(string →string[]).- Tool
.execute()returnsToolResult[]viaResultBuilder.from().
Features
- WebToolsPackage — single
ToolPackagefor bothweb_searchandweb_fetch. - Array inputs — both tools accept multiple items per call; each returns its own
ToolResult. - Concurrency control —
p-map-based limiting (default 3, configurable via env). - Error isolation — per-item failures don't cascade.
Internal
- Added
p-mapdependency, bumped@johannes.latzel/llm-chatto^0.5.0. - Added
npm run clean:packandnpm run clean:installscripts. - Updated docs.
Full Changelog: v0.1.2...v0.2.0
v0.1.2
- feat: better env var parsing
- dep: udpated llm-chat to version v0.4.1
- test: coverage increased to 100%
- chore: removed unused dev deps
Full Changelog: v0.1.1...v0.1.2