Skip to content

🧹 [code health improvement] Remove unused AnthropicStreamEvent type#22

Open
shantoislamdev wants to merge 2 commits into
mainfrom
code-health-remove-unused-anthropicstreamevent-4851406197394779149
Open

🧹 [code health improvement] Remove unused AnthropicStreamEvent type#22
shantoislamdev wants to merge 2 commits into
mainfrom
code-health-remove-unused-anthropicstreamevent-4851406197394779149

Conversation

@shantoislamdev

Copy link
Copy Markdown
Owner

🎯 What: Removed the unused AnthropicStreamEvent export type from src/types/anthropic.ts.
💡 Why: This type was defined but not utilized anywhere in the codebase. Removing dead code improves readability and maintainability.
Verification: Verified that the code builds (npm run build) and passes all tests (npm run test and npm run test -- --coverage) successfully without this type.
Result: A cleaner type definition file and improved code health.


PR created automatically by Jules for task 4851406197394779149 started by @shantoislamdev

@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b08085acd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/types/anthropic.ts
cache_read_input_tokens?: number;
}

// Streaming event types

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore the exported stream-event union

Because package.json exposes dist/index.d.ts and src/index.ts re-exports ./types, this type was part of the package's public TypeScript API rather than only internal dead code. Any downstream consumer doing import type { AnthropicStreamEvent } from 'claude-adapter' to type SSE handlers will now fail to type-check even though the individual event interfaces still exist, so this is a breaking change unless it is intentionally coordinated with a major release/deprecation.

Useful? React with 👍 / 👎.

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