Client integration
Integrate the CX parser and give it an adapter for the features your client supports.
Download the parser
Use the versioned manifest to find the current source archive. The downloader checks the archive length and SHA-256 before writing it. Review the source and compile it into your app build.
node fetch-parser.mjsImplement a host adapter
- Compile
cx.tsand its sibling modules with Moment 2.x. - Call
reviewCx(source)and display the requested permissions. - Pass only approved permissions to
activateCx(source, host, approved). Implement the host callbacks your client supports. - Keep the returned cleanup function, or use
createCxSession()to manage enabled add-ons.
For a command, register it with your client and return a function that unregisters it. For a theme, apply the palette and return a function that restores the previous appearance. Reject unavailable capabilities before altering client state.
Update and roll back
Fetch updates in your build pipeline. Keep a reviewed version pinned, run parser and host tests, then promote it through your release process. Keep the previous verified build if the manifest is unavailable, the archive fails verification, or compatibility tests fail.