diff --git a/images/platform/insights/dependencies-light.png b/images/platform/insights/dependencies-light.png new file mode 100644 index 0000000..05a4644 Binary files /dev/null and b/images/platform/insights/dependencies-light.png differ diff --git a/platform/insights.mdx b/platform/insights.mdx index 62c302d..7b855fe 100644 --- a/platform/insights.mdx +++ b/platform/insights.mdx @@ -49,7 +49,7 @@ Code Insights is available on every plan, including Free. See [Plans and pricing ## Hand an insight to your agent -Every card in [Findings](/platform/insights/findings) and [Repository health](/platform/insights/repository-health), and each row in [Different versions in use](/platform/insights/dependencies), has **Copy fix prompt for my agent**. Paste it into Claude Code, Cursor, Codex or any coding agent. The prompt includes: +Every card in [Findings](/platform/insights/findings) and [Repository health](/platform/insights/repository-health), and each row in [Version drift](/platform/insights/dependencies), has **Copy fix prompt for my agent**. Paste it into Claude Code, Cursor, Codex or any coding agent. The prompt includes: - the repository, and the Git revision that was analyzed - the file, lines and commit behind the insight diff --git a/platform/insights/dependencies.mdx b/platform/insights/dependencies.mdx index 7e202fb..8a47d39 100644 --- a/platform/insights/dependencies.mdx +++ b/platform/insights/dependencies.mdx @@ -2,17 +2,38 @@ title: "Dependencies in Code Insights" sidebarTitle: "Dependencies" description: "See every declared package and where the same library is pinned to different versions across repositories." -keywords: ["dependency inventory", "dependency version skew", "different versions in use", "all dependencies", "package versions"] +keywords: ["dependency inventory", "dependency version skew", "version drift", "different versions in use", "all dependencies", "package versions"] surface: "cloud" icon: "package" --- -**Dependencies** in [Code Insights](/platform/insights) lists every package your repositories declare, read from their dependency files on each index. +**Dependencies** in [Code Insights](/platform/insights) lists every package your repositories declare, read from their dependency files on each index. It sits with **Findings**, **Repository health**, **Trends**, and **PR checks**. -- **Different versions in use** lists packages pinned to different versions in different repositories, with that sentence under the title. Each row reads like "requests is on 3 versions across 5 repositories" and has **Copy fix prompt for my agent**. This is version skew: the same library can behave differently from one service to the next. -- **All dependencies** lists every package and version, plus the manifest or lockfile and line where it's declared. Use **Search packages by name**, or pick one repository. **More** loads the next page. +Code Insights Dependencies tab for Graphify-Labs/graphify, with All dependencies, package versions, manifest locations, and version drift badges -**What to do.** Start with **Different versions in use**. Agree on one version, then ask your agent to update each repository and run its tests. The fix prompt tells the agent to investigate first and not to change code until you say so. See [Hand an insight to your agent](/platform/insights#hand-an-insight-to-your-agent). +Use **Search packages…** and **Search** to find a package by name. Four dropdowns sit to the right of search: + +- Repository, which defaults to **All repositories** +- Ecosystem: **npm**, **PyPI**, **crates**, **Go**, **Maven** +- Kind: **Runtime**, **Dev**, **Optional** +- Packages: **All packages** or **Drifted only** + +Two sub-tabs sit under the filters: **All dependencies** and **Version drift**. **Version drift** shows a count badge. + +## All dependencies + +When you pick a repository, the list says "Dependencies declared in this repository." Each row shows the package and version, then the ecosystem, kind and group, then the manifest or lockfile and line where it's declared, for example `pyproject.toml:145` or `uv.lock:26`. Some rows carry a badge such as "2 versions across 2 repositories." + +## Version drift + +**Version drift** is version skew: the same library can behave differently from one service to the next. + +- When one repository is selected, the list says "Packages in this repository that are pinned to a different version in another repository." +- When **All repositories** is selected, it says "Packages pinned to different versions in different repositories." + +Each row lists every version, the repositories pinned to that version, and **Copy fix prompt for my agent**. + +**What to do.** Start with **Version drift**. Agree on one version, then ask your agent to update each repository and run its tests. The fix prompt tells the agent to investigate first and not to change code until you say so. See [Hand an insight to your agent](/platform/insights#hand-an-insight-to-your-agent). If the tab says dependencies aren't available yet, wait for the next index, or check the build on [Repositories](/platform/repositories).