The package has no install hook and the inspected requests send only version-check traffic to npm. However, its first-chat background task automatically performs a global install of a newer related package unless the user has opted out, creating a meaningful unrequested code-update risk.
Static reason
No blocking static signals were detected.
Trigger
The first chat.message event after the plugin starts, when xp-gate is globally installed and an update is available.
Impact
A registry-delivered package update and its install behavior can run automatically during a chat session without an explicit update request.
Mechanism
The plugin checks npm metadata and runs npm install -g for the newer version unless ~/.xp-gate/config.json explicitly sets autoUpgrade to false.
Evidence
index.ts~/.xp-gate/xp-gate-version-check.json~/.xp-gate/xp-gate-version-check.json.tmp<npm root -g>/@boyingliu01/xp-gate