Skip to content

fix: restore app short-name lookup for older CLI clients (#71) - #74

Merged
shuv1337 merged 1 commit into
v2from
cursor/restore-app-short-name-lookup-5da0
Nov 4, 2026
Merged

shuv1337 merged 1 commit into
v2from
cursor/restore-app-short-name-lookup-5da0

Conversation

@shuv1337

@shuv1337 shuv1337 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Fixes #71

After the upstream v2 sync, a self-host request that supplies the organization's narrowed catalog returned that catalog unchanged. A CLI released before publisher scopes states no wire revision and sends a listing's short name, @slug/label, for the stored name @slug.executor.community/label. The public catalog already resolves that name. The organization catalog did not, so those clients could not list, read, or install the listing.

Short names now resolve inside the caller's catalog, with the same rules as the public catalog. A listing the caller cannot see is not a candidate, and a name that two visible listings share is refused. Revision 1 still reads each name as stored, so current clients are unchanged. Removing a listing by a short name stays refused: a removal names no commit, and by the time it arrives the short name can select a different listing.

self-host-short-names.spec.ts
team-registry.spec.ts

Tests

  • bun run typecheck: 9/9 projects, 0 errors.
  • bun run lint: passed.
  • Unfixed server, bun run e2e:self-host --workers 1 --test-name 'short package name': failed. The revision-0 catalog returned the stored scoped name instead of the short name the client sent.
  • Fixed server, the same command: passed (1 scenario, 5.5s). It covers the short-name catalog, source, and install, the revision-1 full name, and the refusal to unpublish by the short name.
  • bun run e2e:self-host --workers 1 --test-name 'Team registry publishes': passed (9.4s). This is the revision-1 organization catalog, source, and copy.
Open in Web Open in Cursor 

Self-host kept its narrowed catalog and skipped wire-revision lookup, so a
CLI that sends @slug/label could not find @slug.executor.community/label.
Resolve that short name inside the caller's catalog. Revision 1 and the
public registry keep the upstream lookup.

Co-authored-by: shuv <shuv1337@users.noreply.github.com>
@shuv1337
shuv1337 merged commit 1e3a5ff into v2 Nov 4, 2026
3 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.

Self-host: older CLI clients lose app short-name lookup after upstream v2 sync (#67)

2 participants