Skip to content

Package names of any length: the hub decides, not the CLI - #1053

Merged
Lorenzobattistela merged 1 commit into
mainfrom
short-names
Sep 25, 2026
Merged

Lorenzobattistela merged 1 commit into
mainfrom
short-names

Conversation

@Lorenzobattistela

@Lorenzobattistela Lorenzobattistela commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

The hub now auctions names shorter than 12 characters (bend-lang.com #44). For a short name, /publish-check answers something like "json is shorter than 12 characters: short names are won at auction, https://hub.bend-lang.com/n/json", and the CLI already prints the hub's reason.

Change

  • bend2/bend.ts, NAMED: {11,63} becomes {0,63}. That's the hub's ANY_NAME_RE (^[a-z][a-z0-9-]{0,63}$): a lowercase letter, then up to 63 of a-z, 0-9 and -. Whether a given short name is free, reserved, at auction or taken is now the hub's answer.
  • Error messages in name_hash (bend.ts) and named_parts (main.ts): "12 to 64 characters" becomes "1 to 64 characters".

…a short name instead of refusing it, so publish-check can send it to the auction and import [email protected]/... resolves

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Lorenzobattistela
Lorenzobattistela merged commit 11857ef into main Sep 25, 2026
@Lorenzobattistela
Lorenzobattistela deleted the short-names branch September 25, 2026 16:43
@Lorenzobattistela Lorenzobattistela mentioned this pull request Sep 25, 2026
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.

1 participant