Skip to content

fix(deps): bump agents to ^0.3.10 to drop x402/wallet dependency chain - #4

Open
CEJ98 wants to merge 1 commit into
santmun:mainfrom
CEJ98:fix/agents-sdk-drop-x402-deps
Open

fix(deps): bump agents to ^0.3.10 to drop x402/wallet dependency chain#4
CEJ98 wants to merge 1 commit into
santmun:mainfrom
CEJ98:fix/agents-sdk-drop-x402-deps

Conversation

@CEJ98

@CEJ98 CEJ98 commented Aug 2, 2026

Copy link
Copy Markdown

Qué

Sube agents de ^0.1.0 a ^0.3.10 en package.json.

Por qué

agents@0.1.x (Cloudflare Agents SDK) trae colgando el stack de pagos x402 —
Coinbase CDP SDK, MetaMask SDK, WalletConnect, Solana kit— como dependencia
interna, aunque el bot nunca lo usa. Esas librerías de wallets arrastran
axios/ws/uuid con vulnerabilidades conocidas.

agents@0.3.10 ya no depende de x402.

Verificado (en este PR, con pnpm install / pnpm audit / pnpm test sobre el repo real)

Antes Después
Paquetes instalados +632 −417 netos
pnpm audit — hallazgos totales 28 12
pnpm audit — atribuibles a la cadena agents/x402/wallet 18 0
pnpm typecheck limpio
pnpm test 437/437 (65 archivos)

Los 12 hallazgos que quedan después del bump son de undici (vía ai/@ai-sdk/*),
@anthropic-ai/sdk, @modelcontextprotocol/sdk y @hono/node-server — no tienen
relación con agents ni con este bump, quedan fuera de alcance de este PR.

Alcance

Solo package.json + pnpm-lock.yaml. Sin cambios de código, sin refactor.

Summary by CodeRabbit

  • Chores
    • Updated the application’s agent tooling dependency to a newer version.

agents ^0.1.0 pulls in the Cloudflare Agents x402 payments stack
(Coinbase CDP SDK, MetaMask SDK, WalletConnect, Solana kit) even
though the bot never uses on-chain payments. Those wallet libraries
drag in vulnerable axios/ws/uuid transitively.

agents ^0.3.10 no longer depends on x402, which removes 417 unused
packages and cuts pnpm audit findings tied to that chain from 28 to
12 (the remaining 12 are unrelated undici/@anthropic-ai/sdk/
@modelcontextprotocol/sdk/@hono/node-server advisories, unaffected
by this bump).

Verified: pnpm install, pnpm typecheck (clean), pnpm test
(437/437 passing across 65 files).
@CEJ98
CEJ98 requested a review from santmun as a code owner August 2, 2026 22:11
@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 22dba1eb-01ec-4764-8d37-a2c2fdebb384

📥 Commits

Reviewing files that changed from the base of the PR and between 1f08537 and bf2a586.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • package.json

📝 Walkthrough

Walkthrough

The package manifest updates the agents dependency constraint from ^0.1.0 to ^0.3.10.

Changes

Agents dependency update

Layer / File(s) Summary
Update dependency constraint
package.json
The agents dependency constraint changes from ^0.1.0 to ^0.3.10.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: santmun

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the agents dependency upgrade and its purpose of removing the x402/wallet dependency chain.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant