Skip to content

feat(catalog): link Open Mercato Modules as a live site - #19

Merged
pkarw merged 9 commits into
mainfrom
feat/catalog-launched
Nov 3, 2026
Merged

pkarw merged 9 commits into
mainfrom
feat/catalog-launched

Conversation

@wojciechszyjka

@wojciechszyjka wojciechszyjka commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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, /submit and module pages under /m/<package>, checked 2026-10-30). Until now the tool printed its links with "has not launched yet" and describe --open refused to open them. With catalogLaunched = true (src/package.ts), the links print without the pending note, describe --open opens the public submit page, and where the note used to be, describe and the message after publish print the module's own catalog page (https://modules.openmercato.com/m/<package>, answers once the module is listed).

📋 Scope

  • src/package.ts: flag on; new catalogModuleUrl next to catalogSubmitUrl, honoring MERCATO_CATALOG_URL the 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 message Its page once listed: <url> instead of the pending note; --help drops "(not launched yet)" via the existing flag.
  • README, docs/guide.md: drop the "not launched" texts. CHANGELOG entry under Unreleased; the unreleased describe entry loses its pending-launch sentence.

💥 Compatibility

describe output gains one comment line in the header; parsers that skip # lines are unaffected (BACKWARD_COMPATIBILITY.md protects fields, not comments). The pending note never shipped in a release (0.5.1 has no describe).

🧪 Validation

  • npm run typecheck: pass. npm test: 247 tests, 242 pass, 0 fail, 5 skipped (env-gated real-framework tests), also with MERCATO_CATALOG_URL set in the shell. npm pack --dry-run: 59 files.
  • Review pass: no blockers or majors; one minor fixed (fixtures now clear 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.
  • New and updated assertions: test/describe.test.cjs (submit and module page on the public catalog, no pending note, --open opens the public submit page, MERCATO_CATALOG_URL overrides both links and --open, a non-http override is ignored), test/config-cli.test.cjs and test/link-cli.test.cjs (publish message links both pages, no pending note; publish with MERCATO_CATALOG_URL links the override), test/module.test.cjs (--help links the live submit page).

📋 Progress

See the tracking plan.

@wojciechszyjka wojciechszyjka self-assigned this Oct 30, 2026
@wojciechszyjka

Copy link
Copy Markdown
Contributor Author

🤖 om-auto-review-pr started a review of this PR (autofix). Claim held by this run.

@wojciechszyjka wojciechszyjka left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 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 inherited MERCATO_CATALOG_URL from 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: with catalogLaunched = true the pending-note branches in describe.ts and cli.ts are unreachable and untested. The brief asked to flip the flag, not remove the switch; removing it is a separate cleanup.

Checks

  • Compatibility: describe gains one # comment line; no YAML field changes (BACKWARD_COMPATIBILITY.md row for describe output). The pending note never shipped in a release.
  • Security: catalogModuleUrl takes a package name validated by validatePackageName before describe or publish uses it, and the same origin rules as catalogSubmitUrl; openCatalogPage still opens only URLs under catalogUrl.
  • Scope: matches the tracking plan; no unrelated files.

Validation (head d6e28bc)

  • npm run typecheck: pass
  • npm test (run with MERCATO_CATALOG_URL set 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.

@wojciechszyjka

Copy link
Copy Markdown
Contributor Author

🤖 om-auto-review-pr completed: COMMENTED (no blockers or majors). Lock released.

@wojciechszyjka wojciechszyjka removed their assignment Oct 30, 2026
@wojciechszyjka

Copy link
Copy Markdown
Contributor Author

🤖 om-auto-create-pr - run summary

Final status: complete
catalogLaunched is on: describe, publish and --help link https://modules.openmercato.com without the pending note, and describe and publish also print the module page. Docs and CHANGELOG are updated. The PR is ready for review.
🧪 Local gate green (typecheck, 242/247 tests pass with 5 env-gated skips, pack). The review pass found no blockers; one minor was fixed in d6e28bc. CI checks were pending when this was posted; they gate the merge. This run follows them until they finish. Approval and merge are left to a maintainer.
Engine: om-auto-create-pr (steps: 3, --loop: no)
Current change and scope

@wojciechszyjka
wojciechszyjka marked this pull request as ready for review October 30, 2026 09:43
@wojciechszyjka

Copy link
Copy Markdown
Contributor Author

🤖 om-auto-review-pr - CI result: all 7 checks pass on e42fdc2 (unit tests on node 24/26 and npm 12, Tests against Open Mercato, both create/publish/install runs, CLA). No further follow-up from this agent; approval and merge are left to a maintainer.

@pkarw
pkarw merged commit 5b7849c into main Nov 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants