Skip to content

v1.108.94 - New tool: index_dependency (index the libraries a repo actually uses)

Choose a tag to compare

@jgravelle jgravelle released this 02 Jul 15:10

New tool: index_dependency - index the libraries your repo actually uses.

Agents constantly need API ground truth for third-party libraries, and until now the suite only indexed your own code. index_dependency(repo, package) resolves an npm or PyPI package to the version actually installed in the host repo (node_modules, or a repo-local .venv/venv/env virtualenv), reads the true version from package metadata (no registry lookup, fully local, nothing leaves your machine), and indexes it as its own queryable repo in one call.

  • npm: scoped names supported, pnpm symlink layouts resolved, version from package.json
  • PyPI: PEP-503-normalized dist-info matching, import-name queries via top_level.txt (ask for yaml, get PyYAML), version from METADATA
  • Compiled packages index fully: packages that ship only dist/ (normally a skip directory) surface their .js and .d.ts API surface
  • Version-visible repo ids (local/<name>@<version>-<hash>); re-indexing the same version is a cache hit, upgrades get a fresh snapshot
  • Honest throughout: not-installed errors list every path checked, single-module distributions are declared unsupported rather than half-indexed, truncation and thin-docs packages are reported explicitly

The dependency is snapshot-copied into the index store's own storage and indexed there, so it can never merge into your host repo's index. Standard tier; tool count is now 87. No INDEX_VERSION bump. +17 tests.

See CHANGELOG.md for details.