multica/packages/core
Jiayuan Zhang 27c3ba5682 feat(web): add Accept: text/markdown header for Cloudflare Markdown for Agents
Prefer markdown responses from servers that support Cloudflare's Markdown
for Agents feature, reducing token usage by ~80% when available. Non-supporting
servers fall back to HTML as before.

- Update Accept header to prefer text/markdown in web_fetch requests
- Add text/markdown content-type handling to skip HTML parsing pipeline
- Capture x-markdown-tokens response header in WebFetchResult
- Add extractMarkdownTitle() helper for native markdown title extraction

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 19:47:17 +08:00
..
src feat(web): add Accept: text/markdown header for Cloudflare Markdown for Agents 2026-02-13 19:47:17 +08:00
package.json docs: add monorepo development workflow documentation 2026-02-13 09:21:47 +08:00
tsconfig.json refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
tsup.config.ts refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00