The reachable postinstall hook installs the package's own shell completions into user directories, an install-time setup that warrants a warning. The reviewed telemetry is disclosed, opt-out, and limited to anonymous diagnostics.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
npm postinstall, unless CI or LOKI_NO_COMPLETIONS disables the completion installer.
Impact
Modifies the user's shell-completion files without a separate command to install them.
Mechanism
The hook invokes the Loki CLI with --postinstall; the CLI writes completion scripts and a version marker.
Evidence
package.jsonbin/loki-postinstall.jsloki-ts/dist/loki.jsautonomy/telemetry.sh~/.local/share/bash-completion/completions/loki~/.config/fish/completions/loki.fish/opt/homebrew/share/zsh/site-functions/_loki/usr/local/share/zsh/site-functions/_loki~/.zfunc/_loki~/.loki/completions-version