chore(domain): stop guiding users to buy or delegate new domains
Merged
CA
5d ago+56+56+01234567890123456789-37-37-01234567890123456789
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 buyanddomain zone delegateare registered with{ hidden: true }(the same mechanism asenvandsetup), so they drop out of help but still run. Re-enabling is removing the flag.src/index.ts: thedomaingroup description no longer offers buying. Thezonegroup andzone recordsdescriptions now describe existing zones and no longer tell anyone to run or re-runzone delegate.src/commands/domain.ts: removed the printed hintsbuy one: insta domain buy โฆ(after search),order again: insta domain buy โฆ(canceled order indomain status),(search: insta domain search <keyword>)(emptydomain list),start one: insta domain zone delegate <domain>(emptyzone list), and the "re-runzone delegateto re-import" advice inzone recordsand in thezone delegateanswer.README.md: theinsta domainrow no longer listssearchorbuy.- No new commands, so no MCP tool is owed. Not in this PR:
skills/insta/cli-reference.mdand the MCPinsta_search_domains/insta_buy_domaintools still describe buying and BYO delegation.
Verify
Run with Node 20.20.2:
npm run typecheck: passesnpm test: 106 files, 2245 tests passnpm run build: passes- New test in
test/help-surface.test.ts:insta domain --helplists neithersearchnorbuy,insta domain zone --helplists exactlylist,records,release, neither root nor domain help mentions buying orzone delegate, anddomain search --help,domain buy --help,domain zone delegate --helpeach still resolve to their own usage line. test/domain.test.tsandtest/zone.test.tsnow assert the removed hints are absent.
๐ค Generated with Claude Code