SIGN IN SIGN UP

Fix/preview write tool rescue (#11)

* feat: 重定位 headline → Agentic HTML Editor · preview source 改可编辑 + Refresh

- 顶栏 tagline / OG / README hero / cover.html 全部换为 trq212 论点版: "Markdown 是草稿, HTML 才是给人读的成品 —— 本地 agent 直接写 HTML"
- 不动 wordmark "HTML Anything" / npm 包名 / repo 名, 只动叙事
- preview 的 Source tab 改成可编辑 textarea (实时存到任务), 加 editHint / lockedHint
- 预览顶上加 Refresh 按钮, 强制重挂 iframe 修流式提交后偶发未重绘

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(convert): rescue HTML when agent uses Write tool (#7)

When an agent (notably Claude with bypassPermissions) decided to save the
generated HTML to a file via the Write tool, only the chatty confirmation
("已输出至 …/output.html") streamed back as text. extract-html.ts then
wrapped that one-liner in its fallback scaffold, so the preview iframe
rendered the confirmation instead of the document.

- Strengthen the shared design directives and the diff-edit prompt to
  forbid Write / Edit / MultiEdit / Bash / any file-system tools and
  require the HTML to stream inline.
- Add rescueHtmlFromToolUse() in argv.ts plus a new `kind: "html"` parse
  result. Claude / cursor-agent / gemini / qoder assistant messages now
  pull `input.content` from any Write-style tool_use targeting an .html
  path, suppressing the chatty text fallback for that turn.
- Propagate a new `{ type: "html" }` InvokeEvent through invoke.ts and
  the SSE bridge; use-convert.ts handles it via setHtmlFor (replace, not
  append) so the rescued document overwrites any preamble + "已输出至 …"
  text and bumps outputBytes/firstByteAt for the metrics bar.

Closes #7

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs: enhance README and README.zh-CN with team attribution and project context

- Added a new attribution paragraph in both English and Chinese versions of the README, highlighting the team behind the project and linking to the Open Design initiative.
- Emphasized the production-grade nature and collaborative effort of the project, enhancing clarity for new users.

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
T
Tom Huang committed
a3fac16d31ed75addce4bd2d9c7097ce075bb71d
Parent: 4227732
Committed by GitHub <noreply@github.com> on 5/14/2026, 2:22:33 PM