Add support for middleware based running in run#26
Conversation
There was a problem hiding this comment.
Pull request overview
Adds middleware-aware execution to bolt run, allowing packages to be launched via AppManager/PackageManager when available, with a fallback to the existing direct (crun) execution path. This aligns run behavior with middleware installation state and extends the CLI/docs to support running by package ID, full name, or .bolt file.
Changes:
- Introduces Thunder JSON-RPC response parsing and a dedicated
ThunderErrorto standardize error handling. - Updates
bolt runto auto-detect middleware availability/installation, optionally push.boltfiles first, and adds--directto force direct mode. - Adds remote middleware helpers (
RemotePackageManager,RemoteAppManager) and updates CLI/docs accordingly.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| bolt/src/ThunderError.cjs | Adds ThunderError + response parsing helper for Thunder JSON-RPC. |
| bolt/src/Remote.cjs | Switches Thunder calls to parse/throw structured errors and return result directly. |
| bolt/src/RemotePackageManager.cjs | Adds middleware package-manager wrapper (install/state/active). |
| bolt/src/RemoteAppManager.cjs | Adds middleware app-manager wrapper (launch/focus/active). |
| bolt/src/push.cjs | Refactors middleware install path to use RemotePackageManager + ThunderError. |
| bolt/src/run.cjs | Implements middleware-first run with fallback to direct mode; adds --direct and remote-store deploy helper. |
| bolt/src/config.cjs | Adds AppManager callsign config. |
| bolt/src/bolt.cjs | Updates help text and plumbs raw CLI options through for warnings. |
| bolt/README.md | Updates bolt run usage and links to new docs/run.md. |
| bolt/docs/run.md | Adds detailed documentation for new bolt run behavior and modes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ref: #RDKEAPPRT-686
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Ref: #RDKEAPPRT-686