chore(domain): stop guiding users to buy or delegate new domains

Merged
CA
4d ago
+56-37

What

The InstaCloud platform has paused new domain orders (POST /orgs/:orgId/domains/orders answers 409 domain_purchase_paused) and new delegation of domains registered elsewhere (POST /orgs/:orgId/zones answers 409 byo_delegation_paused). The CLI still advertised both and printed hints that led straight into those 409s.

This PR stops the CLI from guiding users or agents to buy a domain or to delegate a domain registered elsewhere. Everything that still works is unchanged: domain attach / check / detach, every verb for domains already bought through InstaCloud (list, status, renew, delegate, nameservers, records, transfer), and existing BYO zones (zone list / records / release).

How

  • src/index.ts: domain search, domain buy and domain zone delegate are registered with { hidden: true } (the same mechanism as env and setup), so they drop out of help but still run. Re-enabling is removing the flag.
  • src/index.ts: the domain group description no longer offers buying. The zone group and zone records descriptions now describe existing zones and no longer tell anyone to run or re-run zone delegate.
  • src/commands/domain.ts: removed the printed hints buy one: insta domain buy โ€ฆ (after search), order again: insta domain buy โ€ฆ (canceled order in domain status), (search: insta domain search <keyword>) (empty domain list), start one: insta domain zone delegate <domain> (empty zone list), and the "re-run zone delegate to re-import" advice in zone records and in the zone delegate answer.
  • README.md: the insta domain row no longer lists search or buy.
  • No new commands, so no MCP tool is owed. Not in this PR: skills/insta/cli-reference.md and the MCP insta_search_domains / insta_buy_domain tools still describe buying and BYO delegation.

Verify

Run with Node 20.20.2:

  • npm run typecheck: passes
  • npm test: 106 files, 2245 tests pass
  • npm run build: passes
  • New test in test/help-surface.test.ts: insta domain --help lists neither search nor buy, insta domain zone --help lists exactly list, records, release, neither root nor domain help mentions buying or zone delegate, and domain search --help, domain buy --help, domain zone delegate --help each still resolve to their own usage line.
  • test/domain.test.ts and test/zone.test.ts now assert the removed hints are absent.

๐Ÿค– Generated with Claude Code