Skip to content

refactor(github-copilot): localize internal helpers#101393

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-native-sweep-20260707-v28
Jul 7, 2026
Merged

refactor(github-copilot): localize internal helpers#101393
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-native-sweep-20260707-v28

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The private GitHub Copilot provider implementation exposed five declarations that have no consumers outside their defining modules, plus one unused type re-export from token.ts. This widened the apparent internal API without providing a supported plugin contract.

Why This Change Was Made

Localize same-file-only declarations and remove the unused type re-export. The plugin entrypoint, api.ts facade, runtime functions, auth behavior, stream rewriting, and token resolution remain unchanged.

User Impact

No runtime behavior changes. Maintainers get a smaller, more accurate provider implementation surface.

Evidence

  • Blacksmith Testbox tbx_01kwxhm0bgg9b6dc31tf9y7xsx: 7 focused suites, 52 tests passed on the rebased head
  • Same Testbox: pnpm check:changed passed
  • oxfmt --check on all 5 changed files
  • git diff --check
  • Codex autoreview: no findings, patch correct at 0.89 confidence
  • models.test.ts has one unrelated existing failure because its response mock lacks arrayBuffer():
    • patch run: 28 other tests passed
    • clean origin/main baseline Testbox tbx_01kwxhbwtc9ry6gdsxbzt6j7ym: identical failure and stack

AI-assisted: yes. Transcript not attached.

@vincentkoc vincentkoc self-assigned this Jul 7, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 7, 2026 05:48
@clawsweeper

clawsweeper Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: refactor(github-copilot): localize internal helpers This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready proof for 22bd8391b23f68bb68995da419f0a145a90e857f:

  • Exact-head GitHub CI run 28844619777: passed.
  • Testbox tbx_01kwxhm0bgg9b6dc31tf9y7xsx: 7 focused suites, 52 tests passed; pnpm check:changed passed.
  • Full focused extension run: 80 tests passed; one pre-existing failure remained in extensions/github-copilot/models.test.ts because its mock response lacks arrayBuffer().
  • Clean origin/main baseline reproduced that identical failure and stack in Testbox tbx_01kwxhbwtc9ry6gdsxbzt6j7ym, with the other 28 tests passing.
  • oxfmt, git diff --check, and fresh Codex autoreview passed; autoreview found no actionable issue.
  • Maintainer review artifacts validated with zero findings and behavioral sweep status pass.
  • scripts/pr prepare-run 101393 passed after refreshing origin/main to 7b366e16b0b.

Known proof gap: the baseline-red GitHub Copilot token test cannot currently provide a green assertion until its response mock implements the repository HTTP body contract. The patch only narrows TypeScript export visibility and does not change that runtime path.

@vincentkoc
vincentkoc merged commit b662209 into main Jul 7, 2026
160 of 165 checks passed
@vincentkoc
vincentkoc deleted the refactor/deadcode-native-sweep-20260707-v28 branch July 7, 2026 05:58
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant