fix(cloud-connection): install-local accepts compiled stack bundles#1799
Merged
Conversation
A published version payload (dist/objectstack.json) nests its meta
under .manifest ({manifest:{id,…}, objects, views, …}) while ObjectQL's
registerApp expects the flat app shape — so every install of a
published compiled bundle died with 'Invalid manifest payload'. Found
running the org-private install loop E2E (publish hotcrm → bearer
catalog → install-local). Flatten on detection, both fetch and inline
paths.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Found running the original-goal E2E (publish a private package to the control plane → install it on a bound self-hosted runtime):
install-localrejected every published compiled bundle withInvalid manifest payload, because the version payload (dist/objectstack.json) nests its meta under.manifest({manifest:{id,…}, objects, views, …}) while ObjectQL'sregisterAppexpects the flat app shape (top-levelid+ sections). Only hand-written flat manifests could ever install.Flatten the bundle shape on detection — both the cloud-fetch and inline/file-import paths.
+2 tests (compiled-bundle flattening; flat manifest untouched); 44/44 green.
🤖 Generated with Claude Code