feat: persisted update view in mqdh status (#16) #21

Merged
cflmy merged 1 commits from codex/issue-16-status-update into main 2026-12-01 09:43:49 +08:00
Owner

概述

app-harness#16 切片:mqdh status [--json] 增加持久化更新视图(channel、上次检查时间、是否可更新、最新候选、最后错误),只读持久化状态、不触网;显式 mqdh update check 仍是唯一刷新检查入口。

交付

  • MdhStatus.update: UpdateState;MdhRuntime.status() 返回 updater.state()(读本地 update.json,无网络)。
  • CLI status JSON 输出 update;文本新增 update: channel=… checked=… available=… latest=… [error=…]。
  • DISTRIBUTION.md §4 区分只读状态视图 vs 显式检查。
  • 测试:cli.test.ts 断言空安装的 update.schema/channel/checked_at/latest 与文本行。

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

pnpm run typecheck → 5/5 PASS
node --test packages/marqdo/harness/tests/cli.test.ts → 6 pass
node --test packages/marqdo/harness/tests/*.test.ts → 77 pass / 3 skipped

证据:docs/mqdh/evidence/2026-11-30-status-update-view.md。

边界

  • 不刷新/不提示/不下载/不安装;E09 通知/对账、真实 Gitea 反馈提交仍 UNVERIFIED。
  • 未创建 release/tag。

refs #16

## 概述 `app-harness#16` 切片:`mqdh status [--json]` 增加**持久化更新视图**(channel、上次检查时间、是否可更新、最新候选、最后错误),只读持久化状态、不触网;显式 `mqdh update check` 仍是唯一刷新检查入口。 ## 交付 - `MdhStatus.update: UpdateState`;`MdhRuntime.status()` 返回 `updater.state()`(读本地 `update.json`,无网络)。 - CLI `status` JSON 输出 `update`;文本新增 `update: channel=… checked=… available=… latest=… [error=…]`。 - `DISTRIBUTION.md` §4 区分只读状态视图 vs 显式检查。 - 测试:`cli.test.ts` 断言空安装的 `update.schema/channel/checked_at/latest` 与文本行。 ## 验证(本机,Linux x86_64 / glibc 2.43) ```text pnpm run typecheck → 5/5 PASS node --test packages/marqdo/harness/tests/cli.test.ts → 6 pass node --test packages/marqdo/harness/tests/*.test.ts → 77 pass / 3 skipped ``` 证据:`docs/mqdh/evidence/2026-11-30-status-update-view.md`。 ## 边界 - 不刷新/不提示/不下载/不安装;E09 通知/对账、真实 Gitea 反馈提交仍 UNVERIFIED。 - 未创建 release/tag。 refs #16
cflmy added 1 commit 2026-12-01 09:25:34 +08:00
Continue app-harness#16: MdhStatus carries the persisted UpdateState and
mqdh status [--json] shows channel, last check time, availability, latest
candidate and the last update error without triggering a network check.
DISTRIBUTION distinguishes this read-only view from the explicit update check;
the CLI test asserts the empty-install values and text line.

Verified locally: typecheck 5/5, cli test 6 pass, all downstream node tests
77 pass/3 skipped. No release/tag; E09 notification/reconciliation and real
Gitea feedback E2E remain UNVERIFIED.
cflmy merged commit 7e2f1ac325 into main 2026-12-01 09:43:49 +08:00
Author
Owner

合并结果

  • PR #21 合并:7e2f1ac325382604dad699336cc1cec26f4336ee;mqdh status [--json] 增加只读持久化更新视图(channel/上次检查/可更新/最新候选/最后错误),不触网。
  • 组件 CI:push #42 / PR #43 success。
  • 本地:typecheck 5/5、cli test 6 pass、全部下游 node tests 77 pass/3 skipped。
  • 证据:docs/mqdh/evidence/2026-11-30-status-update-view.md。
  • 根 gitlink:当前仍 28df81e;下一次根变更时一并固定本提交。
  • 边界:不刷新/不提示/不下载/不安装;E09 通知对账、真实 Gitea 反馈 E2E 仍 UNVERIFIED;未创建 release/tag。
## 合并结果 - PR #21 合并:`7e2f1ac325382604dad699336cc1cec26f4336ee`;`mqdh status [--json]` 增加只读持久化更新视图(channel/上次检查/可更新/最新候选/最后错误),不触网。 - 组件 CI:push #42 / PR #43 success。 - 本地:typecheck 5/5、cli test 6 pass、全部下游 node tests 77 pass/3 skipped。 - 证据:`docs/mqdh/evidence/2026-11-30-status-update-view.md`。 - 根 gitlink:当前仍 `28df81e`;下一次根变更时一并固定本提交。 - 边界:不刷新/不提示/不下载/不安装;E09 通知对账、真实 Gitea 反馈 E2E 仍 UNVERIFIED;未创建 release/tag。
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#21