The plugin performs an undisclosed, default-on global update of its related CLI on first use, controlled only by an opt-out setting. The behavior fits the product's purpose and does not show data theft, so this warrants a warning rather than a block.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message event after the plugin starts.
Impact
This can replace the user's global CLI with remotely supplied package code without an explicit update request.
Mechanism
The plugin checks the npm registry and, unless autoUpgrade is explicitly false in ~/.xp-gate/config.json, runs npm install -g for an available newer @boyingliu01/xp-gate version.
Evidence
index.ts~/.xp-gate/xp-gate-version-check.json~/.xp-gate/xp-gate-version-check.json.tmpthe global npm installation of @boyingliu01/xp-gate
Network endpoints2
registry.npmjs.org/-/package/${encodeURIComponent(XP_GATE_NPM_PKG)}/dist-tagsregistry.npmjs.org