The plugin automatically installs the latest version of its related CLI globally during normal use, with only an undocumented opt-out. Because the update comes from the official npm registry and targets a tool required by the plugin, this is a warning-level consent risk rather than clear malicious behavior.
Static reason
No blocking static signals were detected.; previous stored version diff introduced dangerous source
Trigger
The first chat.message after plugin startup, when the installed xp-gate CLI is older than the registry's latest version and autoUpgrade is not explicitly disabled.
Impact
Replaces the user's global CLI with newly published package code without an explicit update request.
Mechanism
Queries npm's registry for the latest version and invokes npm install -g for @boyingliu01/xp-gate.
Evidence
index.tspackage.jsonREADME.md~/.xp-gate/config.json~/.xp-gate/xp-gate-version-check.json~/.xp-gate/xp-gate-version-check.json.tmpglobal npm installation of @boyingliu01/xp-gate