mirror of
https://github.com/zeronsh/comet.git
synced 2026-11-16 18:57:19 +00:00
Beta users couldn't install a plugin on another of their devices from Settings → Plugins: since R6 (#1139) a peer was refused ReviewPlugin (local_only) and DecidePlugin {allow: true} (peer_refused) at both ends, and ReviewPlugin wasn't forwardable, so the sending engine minted a review for its own plugin list ("There's no plugin …"). A file couldn't be sent at all. Now a verified peer (the edge's fromDevice, same account) may mint a plugin review and allow with it; a review is bound to who minted it (reviews::Origin), so B's review for A is good only to A over the link, never to B's own app, an unverified dial or an agent. The sending engine carries reviews, allows and files only for its own app (zeron_rpc::app_forward_only), never an agent's token. A .zeron-plugin file goes over in 384 KiB pieces (StagePluginPackage, then InstallPlugin {upload}), since relay requests aren't chunked. Templates' consent and signing stay local. An older engine's refusal is said as the version it needs (REMOTE_APPROVALS_SINCE). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
546 lines
24 KiB
546 lines
24 KiB