The source automatically checks for and installs an XP-Gate update globally on first use unless the user has configured an opt-out. This is related to the plugin’s purpose, but the default update changes the user’s global installation without an explicit update request, so it warrants a warning.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message after the plugin is loaded.
Impact
An update can change the user’s global XP-Gate installation without an explicit update request.
Mechanism
It checks the npm registry and, unless autoUpgrade is set to false, invokes npm install -g for the reported XP-Gate version.
Evidence
index.tspackage.json~/.xp-gate/xp-gate-version-check.json~/.xp-gate/opencode-plugin-version-check.json~/.xp-gate/upgrade-notice.json
Network endpoints2
registry.npmjs.org/-/package/%40boyingliu01%2Fxp-gate/dist-tagsregistry.npmjs.org/-/package/@boyingliu01%2Fopencode-plugin/dist-tags