Skip to content

Remove unused desktop and Unix CLI runtime dependencies - #350762

Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
mainfrom
dmitriv/dependency-audit-84831471
Nov 28, 2026
Merged

Dmitriy Vasyura (dmitrivMS) merged 1 commit into
mainfrom
dmitriv/dependency-audit-84831471

Conversation

@dmitrivMS

@dmitrivMS Dmitriy Vasyura (dmitrivMS) commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Remove @anthropic-ai/sdk and @types/semver from the desktop production dependency graph. Core uses the Anthropic package through type-only imports and uses the SemVer declarations for its vendored implementation. Both remain development dependencies at their existing versions. The separately packaged Claude Agent SDK is unchanged.

Limit the CLI's pin-project and shell-escape dependencies to Windows. Their only consumers are the Windows named-pipe implementation and Windows service registration, respectively. Neither crate is needed in the Linux or macOS build. No package versions change.

Keep Anthropic API and semver types available to development without shipping them as core runtime dependencies. Scope the named-pipe and service-registration crates to the Windows CLI.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added debt Code quality issues engineering VS Code - Build / issue tracking / etc. dependencies Pull requests that update a dependency file labels Nov 27, 2026
Copilot AI balanced review requested due to automatic review settings November 27, 2026 16:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the change reducing unnecessary runtime dependencies.

No open issues 🎉

1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

This PR reduces unnecessary runtime dependencies in VS Code’s desktop package and Unix CLI builds without changing package versions.

Changes:

  • Moves @anthropic-ai/sdk and @types/semver to development dependencies, with matching lockfile updates.
  • Limits pin-project and shell-escape to Windows CLI builds.
  • Leaves the separately packaged Claude Agent SDK unchanged.

No actionable findings remain. Dependency checks are reported as passing; Windows cargo check remains incomplete because OpenSSL development files were unavailable.

File Description
pnpm-lock.yaml Aligns the root dependency classifications with the manifest.
package.json Moves the Anthropic SDK and SemVer declarations to development dependencies.
cli/​Cargo.toml Restricts two CLI dependencies to Windows targets.

Review effort: Balanced

@dmitrivMS Dmitriy Vasyura (dmitrivMS) added this to the 1.149.0 milestone Nov 28, 2026
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) marked this pull request as ready for review November 28, 2026 00:12
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit f1c9272 Nov 28, 2026
149 of 151 checks passed
@dmitrivMS
Dmitriy Vasyura (dmitrivMS) deleted the dmitriv/dependency-audit-84831471 branch November 28, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues dependencies Pull requests that update a dependency file engineering VS Code - Build / issue tracking / etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants