The shipped OpenCode plugin performs a default-path global self-update from npm, but it checks the autoUpgrade: false off-switch. The current rules specifically classify same-package npm self-updates with an off-switch as suspicious even when undisclosed, so the earlier remote-code block does not apply.
Static reason
One or more suspicious static signals were detected.
Trigger
The plugin's first `chat.message` event in a session, if a global XP-Gate install exists and npm reports a newer version.
Impact
Changes the user's global XP-Gate installation without a per-update prompt. The current rules classify same-package npm self-updates with an off-switch as suspicious, rather than requiring a block.
Mechanism
Fetches the package's npm dist-tags, compares `latest` with the global install, and runs a global npm install unless `autoUpgrade` is set to false.
Evidence
plugins/opencode/index.tsplugins/opencode/package.json~/.xp-gate/config.json~/.xp-gate/xp-gate-version-check.jsonGlobal npm installation of @boyingliu01/xp-gate