Skip to content

chore: update @anthropic-ai/claude-agent-sdk to 0.2.47 and @anthropic-ai/sdk to 0.77.0#880

Merged
Connoropolous merged 3 commits intomainfrom
cypack-827
Feb 19, 2026
Merged

chore: update @anthropic-ai/claude-agent-sdk to 0.2.47 and @anthropic-ai/sdk to 0.77.0#880
Connoropolous merged 3 commits intomainfrom
cypack-827

Conversation

@cyrusagent
Copy link
Copy Markdown
Contributor

@cyrusagent cyrusagent commented Feb 19, 2026

Summary

Updates Anthropic SDK packages to their latest versions:

  • @anthropic-ai/claude-agent-sdk: 0.2.34 → 0.2.47
  • @anthropic-ai/sdk: 0.73.0 → 0.77.0

Key Changes from SDK Updates

claude-agent-sdk (0.2.35 → 0.2.47)

  • Claude Sonnet 4.6 support (v0.2.45)
  • New promptSuggestion() method for context-based prompt suggestions (v0.2.47)
  • Improved memory usage for large shell command outputs (v0.2.45)
  • Fixed streaming behavior with background subagents (v0.2.45)
  • Added tool_use_id correlation for task notifications (v0.2.47)

sdk (0.73.0 → 0.77.0)

  • Added claude-sonnet-4-6 model (v0.75.0)
  • Enabled fast-mode for claude-opus-4-6 (v0.74.0)
  • Fixed UserLocation and error code types (v0.77.0)

See full changelog: https://github.com/anthropics/claude-agent-sdk-typescript/blob/main/CHANGELOG.md

Implementation

Packages Updated

  • packages/core/package.json
  • packages/claude-runner/package.json
  • packages/simple-agent-runner/package.json

Compatibility Fixes

  1. Added speed field to BetaUsage objects

    • The new SDK version requires a speed field in usage objects
    • Updated in codex-runner and gemini-runner (3 locations each)
    • Set to "standard" for NonNullableUsage, null for nullable usage
  2. Fixed TypeScript inference issues

    • Added explicit any type annotations for ContentBlock filters in claude-runner
    • Resolves TypeScript errors with the updated BetaContentBlock type
  3. Formatting fixes

    • Auto-fixed line length formatting in ClaudeRunner.ts with Biome

Testing

  • ✅ All affected packages pass TypeScript type checking
  • ✅ Linting clean (Biome)
  • ✅ All package dependencies installed correctly
  • ✅ Build successful for all packages

Related PRs

This PR supersedes the following older SDK update PRs:

These older PRs and their associated Linear issues will be closed once this is merged.

Linear Issue

Closes CYPACK-827

cyrusagent and others added 2 commits February 19, 2026 00:25
…-ai/sdk to 0.77.0

Updated Anthropic SDK packages to latest versions:
- @anthropic-ai/claude-agent-sdk: 0.2.34 → 0.2.47
- @anthropic-ai/sdk: 0.73.0 → 0.77.0

Key changes from SDK updates:
- Added Claude Sonnet 4.6 support
- New promptSuggestion() method for context-based suggestions
- Improved memory usage for large shell command outputs
- Fixed streaming behavior with background subagents

Compatibility fixes:
- Added `speed` field to BetaUsage objects in codex-runner and gemini-runner
- Added type annotations for ContentBlock filters in claude-runner
- Fixed line length formatting in ClaudeRunner.ts

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@cyrusagent cyrusagent marked this pull request as ready for review February 19, 2026 08:28
@Connoropolous
Copy link
Copy Markdown
Contributor

@cyrusagent can you update this from main, and regenerate the pnpm-lock.yaml ?

@cyrusagent-staging
Copy link
Copy Markdown

I only respond to members of this organization. If you believe this is an error, please contact your organization admin.

@PaytonWebber
Copy link
Copy Markdown
Collaborator

@cyrusagent are you alive?

@cyrusagent-staging
Copy link
Copy Markdown

I only respond to members of this organization. If you believe this is an error, please contact your organization admin.

@PaytonWebber
Copy link
Copy Markdown
Collaborator

@cyrusagent are you there?

@PaytonWebber
Copy link
Copy Markdown
Collaborator

@cyrusagent hello?

@PaytonWebber
Copy link
Copy Markdown
Collaborator

@cyrusagent are you alive?

@PaytonWebber
Copy link
Copy Markdown
Collaborator

@cyrusagent hello?

@PaytonWebber
Copy link
Copy Markdown
Collaborator

@cyrusagent you there?

@cyrusagent
Copy link
Copy Markdown
Contributor

cyrusagent Bot commented Feb 19, 2026

I only respond to members of this organization. If you believe this is an error, please contact your organization admin.

@PaytonWebber
Copy link
Copy Markdown
Collaborator

@cyrusagent how about now?

@cyrusagent
Copy link
Copy Markdown
Contributor

cyrusagent Bot commented Feb 19, 2026

I only respond to members of this organization. If you believe this is an error, please contact your organization admin.

@PaytonWebber
Copy link
Copy Markdown
Collaborator

@cyrusagent hey are you there?

@cyrusagent
Copy link
Copy Markdown
Contributor

cyrusagent Bot commented Feb 19, 2026

Yes, I'm here! How can I help with this PR?

@Connoropolous
Copy link
Copy Markdown
Contributor

@cyrusagent can you update this from main, and regenerate the pnpm-lock.yaml ?

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cyrusagent
Copy link
Copy Markdown
Contributor

cyrusagent Bot commented Feb 19, 2026

Done. Merged main into cypack-827 and regenerated pnpm-lock.yaml. Build and typecheck both pass.

@Connoropolous Connoropolous merged commit cf20756 into main Feb 19, 2026
6 checks passed
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.

3 participants