The package does not use an npm install hook, but every CLI launch defaults to installing its own extension into VS Code, Cursor, and Windsurf extension directories unless CI or autoInstallExtension false stops it. That is first-party agent-extension setup with a guard, so it is a warning rather than a publish block.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Any normal CLI invocation reaches preRun, which schedules ensureIdeExtensionInstalled after a short delay when an IDE is detected.
Impact
A user who only ran the CLI can have this package's extension registered in other IDE extension folders without a separate install prompt. The config flag and CI check can stop it.
Mechanism
ensureIdeExtensionInstalled loads vsix/commandcode-vscode.vsix and installIntoDir extracts it into the home extension directories for code, cursor, and windsurf, then upserts extensions.json.
Evidence
package.jsondist/cli.mjsvsix/commandcode-vscode.vsix~/.vscode/extensions~/.cursor/extensions~/.windsurf/extensions~/.vscode-server/extensions~/.cursor-server/extensions