Skip to content

fix(deps): restore hono-agents to ^3.0.7 — 0.19.0 never existed - #141

Closed
chitcommit wants to merge 1 commit into
mainfrom
fix-hono-agents-version
Closed

chitcommit wants to merge 1 commit into
mainfrom
fix-hono-agents-version

Conversation

@chitcommit

@chitcommit chitcommit commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

The break

npm ci has failed on every PR and every Workers Build since 2026-08-07:

npm error code ETARGET
npm error notarget No matching version found for hono-agents@^0.19.0.

Root cause

a60d0e1 — "chore(devops): align compatibility date and upgrade agents SDK to 0.19.0" — is a three-line commit that bumped compatibility_date in wrangler.jsonc and ui/wrangler.toml, and changed:

-    "hono-agents": "^3.0.7",
+    "hono-agents": "^0.19.0",

The version number belongs to a different package. Cloudflare's agents does publish 0.19.0; hono-agents has never published a 0.19.x — it ships on a 3.x line (currently 3.0.12). package-lock.json was never regenerated and still resolves 3.0.7, so manifest and lockfile have disagreed for six weeks. Had an install been run at the time, it would have failed immediately.

The fix

Restore the declaration the lockfile already names. Deliberately not jumping to 3.0.12 — this keeps the change to one variable and returns the repo to its last known-good state. Moving to 3.0.12 is a separate, reviewable decision.

Verification (local, real — no mocks)

Check Result
npm ci exit 0 — 274 packages added
installed hono-agents 3.0.7
npm run build (tsc --noEmit) exit 0, clean
real usage src/index.ts:3 imports agentsMiddleware from hono-agents

Impact

Unblocks CI for the whole repo, including #140.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AKKxbsxh4tozUMzBKADSTd

Summary by CodeRabbit

  • Chores
    • Updated the hono-agents dependency to version 3.0.7.

a60d0e1 ("chore(devops): align compatibility date and upgrade agents SDK to
0.19.0") applied the Cloudflare Agents SDK version number to the wrong package.
`agents@0.19.0` exists; `hono-agents` has never published a 0.19.x -- it ships
on a 3.x line (currently 3.0.12). package-lock.json was never regenerated and
still resolves 3.0.7, so npm ci has failed on every PR and every Workers Build
since 2026-08-07:

    npm error notarget No matching version found for hono-agents@^0.19.0.

Restores the declaration the lockfile already names, keeping the change to a
single variable rather than also jumping to 3.0.12.

Verified locally: npm ci succeeds (274 packages, hono-agents 3.0.7 installed)
and `npm run build` (tsc --noEmit) exits clean. src/index.ts:3 imports
agentsMiddleware from hono-agents, so 3.0.7 satisfies real usage.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKKxbsxh4tozUMzBKADSTd
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
chittycommand cdd16c2 Sep 18 2026, 01:41 AM

@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 72e0ea2e-6c80-4995-9d7b-12918cdbc616

📥 Commits

Reviewing files that changed from the base of the PR and between f2578a3 and cdd16c2.

📒 Files selected for processing (1)
  • package.json

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The package manifest updates the hono-agents dependency range from ^0.19.0 to ^3.0.7.

Changes

Dependency update

Layer / File(s) Summary
Update hono-agents version
package.json
The dependency range changes from ^0.19.0 to ^3.0.7.

Priority: ➖ Normal

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to cdd16

The dependency correction aligns installation with the lockfile and preserves the runtime integration.

🚥 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 identifies the dependency version restoration and explains that version 0.19.0 did not exist. It matches the main change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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