Chat plugin for Synra, published as an external npm package.
- Multi-entry plugin structure under
src/ui,src/worker,src/shared,src/host - Built with
vp pack - UI pages emitted to
dist/ui/pages/** - Worker-focused runtime contract via
@synra/plugin-sdk
vp install
vp run build
vp check- Bump version with SemVer (
patchfor fixes,minorfor backward-compatible additions,majorfor breaking changes). - Run
vp check. - Publish to npm:
npm publish --access public- Package naming follows
@synra-plugin/*. - Runtime metadata is exposed via
package.json#synra.
- UI (
entries.ui) sends and receives chat frames via@synra/plugin-sdk/hooks(useSynraPluginEnvelope,usePairedDevices). No Electron main process orentries.hostis required for messaging between paired peers on LAN/TCP. entries.hostis optional: reserve it for desktop-only actions resolved by the shell (see Synra plugin runtime layers). Mobile-only deployments use UI + shared code paths.entries.workerexposes helpers only; the host decides how (or whether) to load workers on each platform (Phase 2 in the mobile plugin rollout plan).custom.chat.textis the logical event name for chat payloads (on the wire under_plugin.chat.*); keep it stable for compatibility with installed hosts.