The update targets the package’s own companion CLI through the npm registry, but it installs globally by default during plugin startup and requires an opt-out rather than a user request. This is an unexpected automatic overwrite, so it warrants a warning rather than a malicious verdict.
Static reason
No blocking static signals were detected.
Trigger
Once, on the first chat.message event, if xp-gate is installed globally and a newer version is available.
Impact
Replaces the user's global xp-gate installation without a separate upgrade request.
Mechanism
Fetches the latest version from the npm registry and runs npm install -g; the user can disable this with autoUpgrade: false in ~/.xp-gate/config.json.
Evidence
index.tsglobal npm installation of @boyingliu01/xp-gate~/.xp-gate/xp-gate-version-check.json~/.xp-gate/opencode-plugin-version-check.json~/.xp-gate/upgrade-notice.json