Repository navigation
refactor: remove accidental Claude auth type exports - #129383
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
48d9fb9 to
ad3a8ca
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 11:24 AM ET / 15:24 UTC. ClawSweeper reviewWhat this changesThe PR makes two Claude credential helper types private and removes their named re-exports from the provider-auth plugin SDK entrypoint. Merge readinessKeep open for maintainer handling: the patch correctly removes two unshipped SDK type exports while retaining the null-only compatibility function, but exact-head CI must be refreshed before merge. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe provider-auth SDK is the public authentication helper surface consumed by plugins. It forwards the deprecated Claude credential reader while this change narrows which TypeScript names plugin authors can import. flowchart LR
A[Plugin code] --> B[Provider-auth SDK]
B --> C[Claude compatibility helper]
C --> D[Null-only credential reader]
B --> E[Public type export surface]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -4. Total -4 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the narrower SDK surface after rebasing and confirming the surface check and required CI are green on the exact merge head. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a declaration-surface cleanup, and source inspection establishes the preserved runtime reader behavior. Is this the best way to solve the issue? Yes: keeping the reader while localizing unused, unshipped supporting types is the narrowest approach consistent with the SDK’s export-budget contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d53ea9cf4d45. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
ad3a8ca to
44ba4f4
Compare
|
Fixed: The provider-auth Plugin SDK surface now keeps unused Claude compatibility types private while preserving the credential reader. |
Restore the intended Plugin SDK provider-auth surface by keeping two unused, unshipped Claude compatibility types private while preserving the credential reader. Refs openclaw#129052.
Summary
Restore the intentional plugin SDK public-export budget by removing two accidental, unshipped named type exports.
Root Cause
#129052 introduced
ProviderAuthClaudeCompatRuntimeandProviderAuthClaudeCompatPluginas named exports while adding internal Claude compatibility typing.Neither type is part of the intended public provider-auth contract, and no external or internal caller consumes the named exports. Their addition increased the SDK surface from the maintained
4340budget to4342.Changes
Compatibility
The exports were introduced on current
mainand have not shipped in a stable release, so no public deprecation or compatibility alias is required.Verification
4340Refs #129052