Skip to content

fix(client): register the bundle under the package name - #25

Closed
N-o-c-t-i-s wants to merge 1 commit into
PerryLink:mainfrom
N-o-c-t-i-s:fix/client-module-id
Closed

N-o-c-t-i-s wants to merge 1 commit into
PerryLink:mainfrom
N-o-c-t-i-s:fix/client-module-id

Conversation

@N-o-c-t-i-s

Copy link
Copy Markdown

The shipped lib/client.js registered id: "dsh-github", but the host keys client graph rows by package name, so @perrylink/dsh-github was never imported — a desktop profile that installs the plugin fails to boot its client half. The bundler now derives the id from package.json, the artifact is rebuilt, and test/client-bundle.test.ts asserts the registration id equals the package name (it fails against the old bundle).

The host keys client graph rows by package name, so `id: "dsh-github"` left
`@perrylink/dsh-github` unimportable and the host never mounted the client
half. Derive the id from package.json, rebuild the artifact, and assert the
registration id in the bundle test.
@azagreev

Copy link
Copy Markdown

+1 — independently reproduced the same non-bootable desktop profile with 0.7.24 (environment and crash logs in #16; the test/client-bundle.test.ts assertion added here is exactly the guard this needs).

Could this be merged and published as 0.7.25? npm still serves 0.7.24 as latest, so affected desktop users cannot pick up the fix yet.

@PerryLink

Copy link
Copy Markdown
Owner

Thanks — this is the same contract as #24, which landed and shipped in 0.7.25 (the wrapper id now comes from package.json.name, with the bundle test asserting it). Closing as a duplicate to keep one thread; the guard you added covers the same regression.

@PerryLink PerryLink closed this Oct 22, 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.

3 participants