New
-
MCP server.
ghostimport mcp lets an AI agent verify packages before
it imports or installs them, through three tools: check_packages,
check_install_command and scan_project. Still no runtime dependencies.
-
Agent hook.
ghostimport hook blocks install commands that would fetch
a package that doesn't exist, looks like a typosquat or ships an install script, and flags imports
of missing packages right after an edit. It fails open: a network error never blocks the agent.
- Install commands for npm, pnpm, yarn and bun are parsed, so the hook knows what they would fetch.
Changed
-
The unregistered-name and typosquat checks run by default.
--scary
is still accepted, so existing scripts keep working. The new --fast skips the deeper
registry checks.
- First release published from CI with an npm provenance attestation.
Breaking: library API
Public exports went from 11 to 7. Added: verifyPackages and
extractInstallTargets. Removed from the public API: extractSfcScripts,
loadCache, saveCache, loadConfig, walkFiles,
readPackageJsonDeps and the CacheEntry type. Renamed:
The CLI's JSON output follows the same field renames.