feat: read-only mqdh status ecosystem view (#16 slice) #19

Merged
cflmy merged 1 commits from codex/issue-16-status-view into main 2026-11-30 20:44:30 +08:00
Owner

概述

marqdo-app-harness#16 的首个可交付切片:只读生态版本视图 mqdh status [--json]。复用现有 MdhRuntime.status(),不触发安装/网络/更新;不是完整“最新版本/发布说明/下载入口”检查。

交付

  • packages/marqdo/harness/src/cli/main.ts:新增 status 命令,JSON schema marqdo.mqdh.status(app home/workspace、platform/node、ecosystem current/runtime、Bundle version/modules/digest、tools、market/knowledge 计数、privacy 常量);文本输出同样信息。
  • scripts/mqdh.mjs:产品命令集合 + status(避免落到 DSH 转发)。
  • docs/mqdh/ARCHITECTURE.md 命令列表;证据 docs/mqdh/evidence/2026-11-30-status-command.md。
  • 测试 packages/marqdo/harness/tests/cli.test.ts:JSON/文本断言,空安装如实显示 not installed/false。

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

node --import tsx/esm --test packages/marqdo/harness/tests/*.test.ts
  77 pass, 0 fail, 3 skipped
pnpm run typecheck → 5 passed, 0 failed

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

边界

  • 只读视图;不做 latest/release-notes/official-download 聚合(#16 余下部分)。
  • 未运行完整 e2e/浏览器/真实 Gitea 提交流程;这些仍 UNVERIFIED。

refs #16

## 概述 `marqdo-app-harness#16` 的首个可交付切片:只读生态版本视图 `mqdh status [--json]`。复用现有 `MdhRuntime.status()`,不触发安装/网络/更新;不是完整“最新版本/发布说明/下载入口”检查。 ## 交付 - `packages/marqdo/harness/src/cli/main.ts`:新增 `status` 命令,JSON schema `marqdo.mqdh.status`(app home/workspace、platform/node、ecosystem current/runtime、Bundle version/modules/digest、tools、market/knowledge 计数、privacy 常量);文本输出同样信息。 - `scripts/mqdh.mjs`:产品命令集合 + `status`(避免落到 DSH 转发)。 - `docs/mqdh/ARCHITECTURE.md` 命令列表;证据 `docs/mqdh/evidence/2026-11-30-status-command.md`。 - 测试 `packages/marqdo/harness/tests/cli.test.ts`:JSON/文本断言,空安装如实显示 not installed/false。 ## 验证(本机,Linux x86_64 / glibc 2.43) ```text node --import tsx/esm --test packages/marqdo/harness/tests/*.test.ts 77 pass, 0 fail, 3 skipped pnpm run typecheck → 5 passed, 0 failed ``` 组件 CI 以平台为准;未创建 release。 ## 边界 - 只读视图;不做 latest/release-notes/official-download 聚合(#16 余下部分)。 - 未运行完整 e2e/浏览器/真实 Gitea 提交流程;这些仍 UNVERIFIED。 refs #16
cflmy added 1 commit 2026-11-30 20:21:50 +08:00
Start the app-harness#16 version-visibility slice with `mqdh status [--json]`:
one read-only report of the application version/home/workspace, platform and
Node, ecosystem candidate/version, Bundle version/modules/digest, installed tool
versions, market/knowledge counts and the privacy constants. JSON uses the
stable schema marqdo.mqdh.status.

The launcher product-command set and HELP include status; ARCHITECTURE records
the command. The CLI test covers JSON and text output for an empty install and
asserts the honest "not installed"/false values. This is not the full latest
version/release-notes/download view from #16; that remains UNVERIFIED.

Verified locally: all downstream node tests 77 pass/3 skipped; typecheck gates
5/5 pass.
cflmy merged commit eceb13a70a into main 2026-11-30 20:44:30 +08:00
Author
Owner

合并结果

  • PR #19 合并:eceb13a70a723d8623cbf7f4b1b6979bdc303680;新增只读 mqdh status [--json](app/平台/Node/运行时/Bundle/tools/market/knowledge/privacy 版本视图)。
  • 组件 CI:push #36 / PR #37 success(install/build/test)。
  • 本地:下游 node tests 77 pass/3 skipped;typecheck 5/5 pass。
  • 该切片不是 #16 完整「最新版本/发布说明/下载入口」聚合,亦未做真实 Gitea 提交端到端;这些保持 UNVERIFIED。
  • 根 gitlink:将在下一个根 PR 中与 #15 格式补丁一起固定(当前根仍 6c84ad4)。
## 合并结果 - PR #19 合并:`eceb13a70a723d8623cbf7f4b1b6979bdc303680`;新增只读 `mqdh status [--json]`(app/平台/Node/运行时/Bundle/tools/market/knowledge/privacy 版本视图)。 - 组件 CI:push #36 / PR #37 success(install/build/test)。 - 本地:下游 node tests 77 pass/3 skipped;typecheck 5/5 pass。 - 该切片不是 #16 完整「最新版本/发布说明/下载入口」聚合,亦未做真实 Gitea 提交端到端;这些保持 UNVERIFIED。 - 根 gitlink:将在下一个根 PR 中与 #15 格式补丁一起固定(当前根仍 `6c84ad4`)。
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#19