Skip to content

refactor: finish de-brand layer 1 — neutral protocol namespace, drop leftover docs - #424

Merged
dahai80 merged 1 commit into
mainfrom
chore/debrand-finish
Dec 1, 2026
Merged

dahai80 merged 1 commit into
mainfrom
chore/debrand-finish

Conversation

@dahai80

@dahai80 dahai80 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Completes the remaining layer-1 items from issue #419 on top of #420 (12 files; #420 already converted most call sites to top-level alias imports, so the namespace rename is a small diff):

  • namespace Anthropic → Messages in messages-protocol.ts (+8 dotted-usage files; AnthropicDefault → MessagesDefault)
  • flatten the redundant Beta.Messages nesting — the inner namespace shadowed the outer Messages, making the aliased types circular
  • delete src/claude-api/ — orphaned upstream integration note, the only file in src/ still carrying brand strings
  • CostThresholdDialog: user-visible "Anthropic API" title → neutral cost-cap title
  • neutral wording in withRetry / compact comments

Scope notes:

Test plan

  • bun run typecheck clean
  • bun run lint: 33 warnings = main baseline, 0 errors
  • docs validator: 46 docs, ERROR 0 (47→46: deleted leftover doc)
  • bun test: 1892 tests, 0 fail
  • bun run build green

🤖 Generated with Claude Code

…leftover docs

Completes the remaining layer-1 items from issue #419 on top of #420:

- namespace Anthropic -> Messages in messages-protocol.ts (+94 dotted
  usages; default export alias AnthropicDefault -> MessagesDefault)
- flatten the redundant Beta.Messages nesting (types are already
  Beta-prefixed; the inner namespace shadowed the outer Messages and
  created circular type aliases)
- delete src/claude-api/ (orphaned upstream integration note, the only
  file still carrying Claude Code brand strings in src/)
- CostThresholdDialog: 'Anthropic API' -> neutral cost-cap title
- neutral wording in withRetry/compact comments

Live Anthropic network calls were already zero after #420 (remaining
refs are wire-format field names, kept per the layer-3 decision).
ANTHROPIC_API_KEY env fallback stays as interop compat for users with
existing keys.

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit f819805 into main Dec 1, 2026
2 checks passed
@dahai80
dahai80 deleted the chore/debrand-finish branch December 1, 2026 00:28
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