feat: update check shows release notes and download (#16) #20

Merged
cflmy merged 1 commits from codex/issue-16-update-notes into main 2026-11-30 22:21:48 +08:00
Owner

概述

marqdo-app-harness#16 目标 4 的切片:mqdh update check 展示发布说明/官方下载 URL/Release 页面/已知限制。发布说明唯一来源是可信 Gitea Release body(截断 8 KiB),不建第二份清单。

交付

  • release/gitea.ts:候选携带 notes(Release body)与 browser_url。
  • distribution/updater.ts:UpdateCandidate 新增 notes/release_url;UpdateState.latest 持久化。
  • CLI update check 文本新增 published/download/release/known limits/release notes;JSON 直接包含。
  • 文档:DISTRIBUTION.md §4 字段说明;RELEASING.md §7 发布说明来源规则。
  • 测试:updater.test.ts fake Release 带 body,断言 latest.notes/latest.release_url。

验证(本机,Linux x86_64 / glibc 2.43)

updater tests 3 pass; all downstream node tests 77 pass/3 skipped
pnpm run typecheck → 5/5 gates PASS

组件 CI 以平台为准;未创建 release/tag。

边界

  • 发布说明作为数据显示,不执行、不冒充已验证。
  • 完整生态最新版本聚合与 E09 通知/对账仍 UNVERIFIED;未做真实 Gitea/浏览器端到端。

refs #16

## 概述 `marqdo-app-harness#16` 目标 4 的切片:`mqdh update check` 展示**发布说明/官方下载 URL/Release 页面/已知限制**。发布说明唯一来源是可信 Gitea Release body(截断 8 KiB),不建第二份清单。 ## 交付 - `release/gitea.ts`:候选携带 `notes`(Release body)与 `browser_url`。 - `distribution/updater.ts`:`UpdateCandidate` 新增 `notes`/`release_url`;`UpdateState.latest` 持久化。 - CLI `update check` 文本新增 published/download/release/known limits/release notes;JSON 直接包含。 - 文档:`DISTRIBUTION.md` §4 字段说明;`RELEASING.md` §7 发布说明来源规则。 - 测试:`updater.test.ts` fake Release 带 body,断言 `latest.notes`/`latest.release_url`。 ## 验证(本机,Linux x86_64 / glibc 2.43) ```text updater tests 3 pass; all downstream node tests 77 pass/3 skipped pnpm run typecheck → 5/5 gates PASS ``` 组件 CI 以平台为准;未创建 release/tag。 ## 边界 - 发布说明作为数据显示,不执行、不冒充已验证。 - 完整生态最新版本聚合与 E09 通知/对账仍 UNVERIFIED;未做真实 Gitea/浏览器端到端。 refs #16
cflmy added 1 commit 2026-11-30 21:57:38 +08:00
Continue app-harness#16 goal 4: the application update check now displays the
trusted release metadata a user needs to decide.

- release/gitea.ts reads the trusted Gitea release body (truncated to 8 KiB)
  into the candidate alongside the already-validated manifest/asset.
- UpdateCandidate gains notes and release_url; UpdateState.latest persists both.
- mqdh update check text output adds published/download/release URL/known limits
  and release notes; JSON already carries the same fields.
- DISTRIBUTION documents the fields; RELEASING names the Gitea release body as
  the single source of release notes (no second list).
- updater.test.ts fake release carries a body and asserts notes/release_url.

Verified locally: updater tests 3/3, all downstream node tests 77 pass/3
skipped, typecheck 5/5. No release/tag; full ecosystem latest-version view and
E09 notification/reconciliation remain UNVERIFIED.
cflmy merged commit 28df81ee11 into main 2026-11-30 22:21:48 +08:00
Author
Owner

合并结果

  • PR #20 合并:28df81ee11d2dccc0a1a2606394c477ff7b09987;mqdh update check 现展示发布说明(可信 Gitea Release body,截断 8 KiB)、官方下载 URL、Release 页面、published 与 known limits;JSON latest.notes/latest.release_url。
  • 组件 CI:push #39 / PR #40 success(install/build/test)。
  • 本地:updater tests 3/3、下游 node tests 77 pass/3 skipped、typecheck 5/5。
  • 该切片仍不是完整生态最新版本聚合,E09 通知/对账、真实 Gitea/浏览器端到端仍 UNVERIFIED;未创建 release/tag。
  • 根 gitlink:当前仍 eceb13a;下一次根 PR 会固定本提交。
## 合并结果 - PR #20 合并:`28df81ee11d2dccc0a1a2606394c477ff7b09987`;`mqdh update check` 现展示发布说明(可信 Gitea Release body,截断 8 KiB)、官方下载 URL、Release 页面、published 与 known limits;JSON `latest.notes`/`latest.release_url`。 - 组件 CI:push #39 / PR #40 success(install/build/test)。 - 本地:updater tests 3/3、下游 node tests 77 pass/3 skipped、typecheck 5/5。 - 该切片仍不是完整生态最新版本聚合,E09 通知/对账、真实 Gitea/浏览器端到端仍 UNVERIFIED;未创建 release/tag。 - 根 gitlink:当前仍 `eceb13a`;下一次根 PR 会固定本提交。
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cflmy/marqdo-app-harness#20