Repository navigation
2.8.3: the packed release loads, with no node_modules and no build step - #93
Merged
Merged
Conversation
Automated verification
typechecktestsbuild |
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.
The release tarball could not be loaded by OpenCode. Found while switching a real installation to the packaged release: the files landed, the config was right, and every request still fell through to
API key not valid.Why
Host.resolve()inpackages/plugin/src/host.tsresolves a configured plugin directory by the conventional name at its root (index.js) —mainis only consulted throughexports, which this package does not map. The tarball had no root entry, and it also shipped no dependencies:distimportszod,proper-lockfile,@opencode-ai/plugin,@openauthjs/openauth. Unpacked, it was a directory OpenCode could not import, so the provider never registered.Fix
npm run bundlebuilds one self-containeddist/standalone.jswith esbuild (node builtins external).prepackruns build + bundle and writes a rootindex.jsthat re-exports it (gitignored; it exists only in the tarball).node_modules, and needs no build step on the other side.install.shnow says to runopencode service restart, and TROUBLESHOOTING has an entry for "installs but nothing answers", with the two log lines that identify the cause.Verified
npm pack:package/index.js,package/dist/standalone.js, zeronode_modulesentries.~/.local/share, pointedpluginsat it,opencode service restart, thenopencode run ... --model google/antigravity-gemini-3.8-flash→ answer received; 7 antigravity models listed.failed to load plugin ... Cannot find package 'jose').npm test: 1172 passed.