The plugin automatically updates the related global XP-Gate CLI on first use, with opt-out configuration but no separate upgrade request. This is a real user-privilege change that merits a warning; the reviewed source does not establish a malicious payload or unrelated destination.
Static reason
No blocking static signals were detected.
Trigger
The first `chat.message` event after the plugin starts.
Impact
The global CLI’s code may change and run with the user’s privileges; the upgrade notification is sent after the update attempt.
Mechanism
Checks the npm registry for the latest XP-Gate version and, if the installed global CLI is outdated, invokes `npm install -g @boyingliu01/xp-gate@<version>`. The update is skipped when `autoUpgrade` is set to false.
Evidence
index.tspackage.json~/.xp-gate/config.json~/.xp-gate/xp-gate-version-check.json<npm root -g>/@boyingliu01/xp-gate
Network endpoints1
registry.npmjs.org/-/package/@boyingliu01/xp-gate/dist-tags