Repository navigation
fix(server): ship the plugin catalog in released bundles - #458
leoisadev1 wants to merge 2 commits into
Conversation
Exercise catalog loading in isolated release, source, and desktop layouts. Released entry points fail with the catalog-unavailable error; packaging tests cover manifests and logos. Model: GPT-6.1 Sol. Harness: Codex in T3 Code.
Released remote servers crashed outside the repository because the plugin catalog was neither bundled nor resolved beside the entry point. Copy catalog entries after both bundle passes and search the bundled catalog before existing repository and desktop fallbacks. Model: GPT-6.1 Sol. Harness: Codex in T3 Code.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| "scripts": { | ||
| "dev": "node --watch src/bin.ts", | ||
| "build:bundle": "vp pack && vp pack src/service-launcher.ts --out-dir dist --no-clean", | ||
| "build:bundle": "vp pack && vp pack src/service-launcher.ts --out-dir dist --no-clean && node scripts/copy-plugin-catalog.ts", |
There was a problem hiding this comment.
🔍 Desktop artifacts duplicate the catalog
The desktop build already stages a catalog in resources/plugins. Copying the full server distribution into desktop artifacts adds another, including inside Windows server.asar; removing either copy needs a loader and WSL check.
Was this helpful? React with 👍 or 👎 to provide feedback.
|
Summary
Released Akeru servers crash outside the source tree because the package omits the plugin catalog. Every server bundle now carries the manifests and logos inside
dist, and the loader checks that location before the existing repository and desktop fallbacks.The portable copy step runs after both bundle commands. npm, the remote installer archives, Docker, and desktop already carry the whole
distdirectory. Includes a patch changeset.Evidence
Before: a built npm tarball installed outside the repo failed with:
After: built the full server/web distribution, packed it with the publish metadata, and installed it into a temporary npm prefix. Then ran
servewith a disposable home and a free loopback port:distrelocation, built the Linux archive withscripts/package-remote.ts, extracted it intoversions/0.2.1, and started its bundledakeru servelauncher. All 160 catalog files in both installed artifacts match source byte for byte.Merge Danger
Door: two-way. Reverting restores the prior bundle layout; no persisted data or wire contracts change.
Blast radius: server packaging and catalog loading across npm, remote, Docker, and desktop distributions. Existing source and desktop lookup paths remain available.
Fixes AKR-222
Created with GPT-6.1 Sol in T3 Code.