Repository navigation
feat: dsh-side install channel — zero bili commands for dsh users (#949) - #950
Merged
Merged
Conversation
…lion-context' (#949) - exports["./dsh"] -> dist/agent/dsh-native.js; manifest dsh.bundle.patch declaration; dsh.bundle.patch.yml bundled (insert bili-native + compaction-basic auto:false) - dshBundleInstalled(): profile manifests listing billion-context in dsh.profile.bundles are skipped by install/remove (cordis rejects duplicate entry ids across layers) with pointers to the dsh-side commands; status reports bundle installs; dshNativeInstalled() (the 'bili dsh' launcher overlay gate) recognizes them - README/README.zh-CN: dsh-side install lane - verified end-to-end against dsh 0.1.5-rc.2: pnpm install, bundle reconcile, --dump-config layer stack, live boot self-spawning the proxy (bili.log) + parent-pid watchdog teardown
Contributor
📦 Built Package ArtifactBranch: Option A — Install from npm PR tag (recommended)npm install -g billion-context@pr-950Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pr950.tgz
npm install -g packageInstall instructions are refreshed on each push. |
Owner
Author
This was referenced Sep 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #949
What
dsh plugin --profile <name> add billion-contextinstalls the npm package into the profile via pnpm; dsh reads the package'sdsh.bundle.patchmanifest declaration and mounts it as a bundle layer automatically — same plugin, same behavior asbili plugin install dsh, but the user never runs a bili command.exports["./dsh"]->./dist/agent/dsh-native.js(new public subpath, like./server)"dsh": {"bundle": {"patch": "./dsh.bundle.patch.yml"}}+ the yml infiles(insertbili-native+compaction-basic auto:false)--patchoverlay.dshBundleInstalled()detects profiles whose manifest lists billion-context indsh.profile.bundles; install/remove skip them with pointers to the dsh-side commands,plugin statusreports them, anddshNativeInstalled()(thebili dshlauncher overlay gate) recognizes themVerified end-to-end (dsh 0.1.5-rc.2, local tarball via
dsh plugin add)dsh.profile.bundles+= billion-context--dump-configshows thebillion-contextlayer:bili-nativeinsert + compaction patchedauto:falseacp-proxy listening), parent-pid watchdog flushes on teardownbili plugin install dsh+plugin statuscorrectly skip/report the bundle profileKnown interaction (documented, not ours to fix)
dsh resolves bundle dirs from the dsh-install anchor first; on machines with a global billion-context <=0.1.119 (no declaration yet) that copy shadows the profile one and dsh treats it as a plain dependency. Self-heals once the global install is >= this release; pure dsh users (no global bili — the target audience) resolve the profile copy directly.
Preflight
npm run typecheckOKnpm test1881 pass / 0 fail / 2 skip (dsh suite 10->14: bundle detection + skip/report roundtrip)npm run buildOK;npm pack --dry-runshowsdsh.bundle.patch.ymlin the tarballNote: needs release >=0.1.120 to be usable from the npm registry.