Repository navigation
feat(catalog): link Open Mercato Modules as a live site - #19
Conversation
Set catalogLaunched now that https://modules.openmercato.com answers. describe and publish print the module page (/m/<package>) where the pending-launch note was, and describe --open opens the public submit page.
|
🤖 |
wojciechszyjka
left a comment
There was a problem hiding this comment.
🤖 om-auto-review-pr review
Verdict: no blockers, no majors. Submitted as a comment review: this run does not approve, and the owner has not taken part. A maintainer decides on approval and merge.
Findings
- minor (fixed in d6e28bc)
test/config-cli.test.cjs,test/link-cli.test.cjs: the CLI fixtures inheritedMERCATO_CATALOG_URLfrom the shell, so a developer with it set would fail the new live-catalog assertions. Both fixtures now clear it; the publish override test passes it explicitly. - nit (kept by design)
src/package.ts: withcatalogLaunched = truethe pending-note branches indescribe.tsandcli.tsare unreachable and untested. The brief asked to flip the flag, not remove the switch; removing it is a separate cleanup.
Checks
- Compatibility:
describegains one#comment line; no YAML field changes (BACKWARD_COMPATIBILITY.mdrow fordescribeoutput). The pending note never shipped in a release. - Security:
catalogModuleUrltakes a package name validated byvalidatePackageNamebefore describe or publish uses it, and the same origin rules ascatalogSubmitUrl;openCatalogPagestill opens only URLs undercatalogUrl. - Scope: matches the tracking plan; no unrelated files.
Validation (head d6e28bc)
npm run typecheck: passnpm test(run withMERCATO_CATALOG_URLset in the shell): 247 tests, 242 pass, 0 fail, 5 skipped (env-gated real-framework tests)npm pack --dry-run: pass, 59 files
CI checks were still pending when this review was posted; they gate the merge.
|
🤖 |
🤖
|
|
🤖 |
Tracking plan: .ai/runs/2026-10-30-catalog-launched.md
Status: complete
🎯 What changes
Open Mercato Modules answers at https://modules.openmercato.com (200 on
/,/modules.json,/submitand module pages under/m/<package>, checked 2026-10-30). Until now the tool printed its links with "has not launched yet" anddescribe --openrefused to open them. WithcatalogLaunched = true(src/package.ts), the links print without the pending note,describe --openopens the public submit page, and where the note used to be,describeand the message afterpublishprint the module's own catalog page (https://modules.openmercato.com/m/<package>, answers once the module is listed).📋 Scope
src/package.ts: flag on; newcatalogModuleUrlnext tocatalogSubmitUrl, honoringMERCATO_CATALOG_URLthe same way. The pending-note branch stays behind the flag.src/describe.ts: header comment# Once listed, its page is <url>instead of the pending note. No YAML field changes.src/cli.ts: publish messageIts page once listed: <url>instead of the pending note;--helpdrops "(not launched yet)" via the existing flag.docs/guide.md: drop the "not launched" texts. CHANGELOG entry under Unreleased; the unreleaseddescribeentry loses its pending-launch sentence.💥 Compatibility
describeoutput gains one comment line in the header; parsers that skip#lines are unaffected (BACKWARD_COMPATIBILITY.mdprotects fields, not comments). The pending note never shipped in a release (0.5.1 has nodescribe).🧪 Validation
npm run typecheck: pass.npm test: 247 tests, 242 pass, 0 fail, 5 skipped (env-gated real-framework tests), also withMERCATO_CATALOG_URLset in the shell.npm pack --dry-run: 59 files.MERCATO_CATALOG_URL), one nit kept by design (the pending-note branch stays behind the flag). Posted as a comment review; approval and merge are left to a maintainer.test/describe.test.cjs(submit and module page on the public catalog, no pending note,--openopens the public submit page,MERCATO_CATALOG_URLoverrides both links and--open, a non-http override is ignored),test/config-cli.test.cjsandtest/link-cli.test.cjs(publish message links both pages, no pending note; publish withMERCATO_CATALOG_URLlinks the override),test/module.test.cjs(--helplinks the live submit page).📋 Progress
See the tracking plan.