[migrate] vanity import go.moleculesai.app/cli (internal#71 phase 2) #2

Merged
sdk-lead merged 2 commits from migrate/issue-71-vanity-imports into main 2026-05-09 00:59:40 +00:00

Summary

Second PR in the molecule-ai/internal#71 sweep. Migrates go.mod + every Go import + comment URLs + generated config templates off the dead github.com/Molecule-AI/ identity onto the vanity host go.moleculesai.app.

Pairs with the smoke PR (plugin-gh-identity#3, validates the lint-gate template) and the parallel molecule-controlplane + molecule-core PRs.

Files touched

  • — module declaration: →
  • 22 files — every import statement
  • — install section rewritten: leads with , drops the migration-in-progress hedge
  • , — comment URLs updated to git.moleculesai.app
  • , — generated config-file templates updated so new users get the live SCM URL
  • — module-path reference updated
  • NEW — structural test rejecting future github.com/Molecule-AI/ or Molecule-AI/molecule-monorepo references in any code/config/doc file

Test plan

  • — clean
  • FAIL ./... [setup failed]
    FAIL — green across all 7 packages (cmd/molecule, 5 internal packages, lint gate)
  • Mutation-tested: lint gate fails on injected canary string, passes on clean tree

Backwards compatibility

External consumers: only path is the new vanity URL. No prior install ever resolved (GitHub host suspended pre-migration), so no real-user breakage.

Security

No new untrusted input, auth, or data flows. Pure identifier rename + lint gate (read-only filesystem walk).

🤖 Generated with Claude Code

## Summary Second PR in the molecule-ai/internal#71 sweep. Migrates go.mod + every Go import + comment URLs + generated config templates off the dead github.com/Molecule-AI/ identity onto the vanity host go.moleculesai.app. Pairs with the smoke PR (plugin-gh-identity#3, validates the lint-gate template) and the parallel molecule-controlplane + molecule-core PRs. ## Files touched - — module declaration: → - 22 files — every import statement - — install section rewritten: leads with , drops the migration-in-progress hedge - , — comment URLs updated to git.moleculesai.app - , — generated config-file templates updated so new users get the live SCM URL - — module-path reference updated - **NEW** — structural test rejecting future github.com/Molecule-AI/ or Molecule-AI/molecule-monorepo references in any code/config/doc file ## Test plan - [x] — clean - [x] FAIL ./... [setup failed] FAIL — green across all 7 packages (cmd/molecule, 5 internal packages, lint gate) - [x] **Mutation-tested**: lint gate fails on injected canary string, passes on clean tree ## Backwards compatibility External consumers: only path is the new vanity URL. No prior install ever resolved (GitHub host suspended pre-migration), so no real-user breakage. ## Security No new untrusted input, auth, or data flows. Pure identifier rename + lint gate (read-only filesystem walk). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude-ceo-assistant added 1 commit 2026-05-07 22:27:07 +00:00
fix(post-suspension): vanity import path go.moleculesai.app/cli (closes molecule-ai/internal#71 phase 2)
All checks were successful
Release Go binaries / test (pull_request) Successful in 1m37s
Release Go binaries / release (pull_request) Has been skipped
76f37d928f
Migrates go.mod + 22 Go imports + README + comments + generated config
templates off the dead github.com/Molecule-AI/ identity onto the vanity
host go.moleculesai.app, owned by us.

Surfaces touched:
- go.mod module declaration: github.com/Molecule-AI/molecule-cli ->
  go.moleculesai.app/cli
- Every Go import statement under cmd/ + internal/
- README install section: rewritten to lead with the vanity install
  command (the previous text was migration-in-progress hedging)
- Comment URLs in internal/backends/backend.go + internal/cmd/connect.go
  (https://github.com/Molecule-AI/molecule-cli/issues/10) -> point at
  git.moleculesai.app/molecule-ai/molecule-cli
- Generated config templates in internal/cmd/init.go +
  internal/cmd/config.go: header URL updated so new users land on the
  live SCM
- Adds internal/lint/import_path_lint_test.go — structural test that
  walks every *.go / *.mod / Dockerfile / *.md / *.sh / *.yml in the
  module and rejects future references to github.com/Molecule-AI/ or
  Molecule-AI/molecule-monorepo. Mutation-tested before commit.

Test plan
- go build ./... clean
- go test ./... green (cmd/molecule + 5 internal packages + new lint
  gate, all pass)
- TestNoLegacyGitHubImportPaths fails on injected canary, passes on
  clean tree (no tautology)

Open dependency
- go.moleculesai.app responder must be deployed before
  'go install go.moleculesai.app/cli/cmd/molecule@latest' works
  externally. Internal builds + 'go build ./cmd/molecule' from a fresh
  clone work today (self-referential module path).
- Responder code prepared (worker.js, vendor-portable for CF Workers /
  Vercel Edge); deploy tracked separately under internal#71 phase 1.

Pairs with parallel migrations of plugin-gh-identity (#3) +
molecule-controlplane + molecule-core under the same internal#71 sweep.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
claude-ceo-assistant added 1 commit 2026-05-07 22:57:19 +00:00
lint: extend gate to .json files (internal#71 — package metadata drift)
All checks were successful
Release Go binaries / test (pull_request) Successful in 6m18s
Release Go binaries / release (pull_request) Has been skipped
15d8cec45f

Test comment from Integration Tester

Test comment from Integration Tester
sdk-lead merged commit d587919d17 into main 2026-05-09 00:59:40 +00:00
sdk-lead reviewed 2026-05-09 00:59:52 +00:00
sdk-lead left a comment
Member

LGTM

LGTM
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: molecule-ai/molecule-cli#2
No description provided.