The plugin updates its related CLI through npm automatically on the first chat message, unless the user has opted out in a config file. This is a meaningful default code-install capability, but the target is the publisher's companion tool and no unrelated collection or malicious payload was found.
Static reason
No blocking static signals were detected.
Trigger
First chat.message after the plugin starts, when an update is available and autoUpgrade is not false.
Impact
Updates globally installed executable code and may run its package installation behavior without a separate upgrade request.
Mechanism
Checks npm for the latest @boyingliu01/xp-gate version, then invokes npm install -g for that version.
Evidence
index.ts~/.xp-gate/xp-gate-version-check.json~/.xp-gate/xp-gate-version-check.json.tmpnpm global package directory: @boyingliu01/xp-gate
Network endpoints1
registry.npmjs.org/-/package/@boyingliu01%2Fxp-gate/dist-tags