Skip to content

Commit 8cc4bf5

Browse files
committed
docs: prepare 0.2.0 release notes
1 parent 57dc907 commit 8cc4bf5

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Changelog
2+
3+
All notable changes to this project are documented in this file.
4+
5+
## [0.2.0] - 2026-02-18
6+
7+
### Added
8+
- Added `raw` mode for markdown-preferred single-pass output (`--mode raw`), returning the HTTP response body without extraction or fallback conversion.
9+
- Added metadata front matter injection (`title`, `description`) for non-raw outputs, enabled by default with `--meta` and disabled via `--meta=false`.
10+
- Added metadata enrichment for direct markdown responses in `auto`/`static` mode by fetching HTML metadata when needed.
11+
- Added tests for MDX/markdown handling, metadata injection behavior, and front matter preservation.
12+
13+
### Changed
14+
- Migrated CLI argument parsing to `urfave/cli/v3`.
15+
- Standardized CLI usage around `--long-flag` style and more flexible flag/argument ordering.
16+
17+
### Fixed
18+
- Honored `text/markdown` responses directly (including MDX-like content) to avoid dropping sections during fallback conversion.
19+
- Improved fallback behavior for HTTP status errors in `auto` mode.
20+
- Tightened markdown detection and related review cleanups.
21+

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ A Go CLI that always tries to return Markdown for web pages in AI-agent workflow
88

99
Web fetch results are often raw HTML/JS/CSS, which is noisy for LLMs. This tool wraps a fallback pipeline so agents can expect Markdown output.
1010

11+
If you use tools like Codex or Claude Code, note that they may already include built-in HTML simplification/fetching. Whether you still need `agent-fetch` depends on your workflow.
12+
1113
## Behavior
1214

1315
`agent-fetch` uses four modes:
@@ -33,7 +35,7 @@ go install github.com/firede/agent-fetch/cmd/agent-fetch@latest
3335
Install a specific version:
3436

3537
```bash
36-
go install github.com/firede/agent-fetch/cmd/agent-fetch@v0.1.1
38+
go install github.com/firede/agent-fetch/cmd/agent-fetch@v0.2.0
3739
```
3840

3941
Make sure `$(go env GOPATH)/bin` (usually `~/go/bin`) is in your `PATH`.

README.zh.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
网页抓取结果通常是原始 HTML/JS/CSS,会给 LLM 带来大量噪音和 token 开销。这个工具封装了分级 fallback 流程,让 Agent 更稳定地拿到 Markdown 内容。
1010

11+
如果你使用 Codex、Claude Code 等工具,需要注意它们可能已内置 HTML 简化/抓取能力。是否仍需要 `agent-fetch`,应根据你的场景判断。
12+
1113
## 行为说明
1214

1315
`agent-fetch` 提供四种模式:
@@ -33,7 +35,7 @@ go install github.com/firede/agent-fetch/cmd/agent-fetch@latest
3335
安装指定版本:
3436

3537
```bash
36-
go install github.com/firede/agent-fetch/cmd/agent-fetch@v0.1.1
38+
go install github.com/firede/agent-fetch/cmd/agent-fetch@v0.2.0
3739
```
3840

3941
请确保 `$(go env GOPATH)/bin`(通常是 `~/go/bin`)已加入 `PATH`

0 commit comments

Comments
 (0)