Repository navigation
refactor(plugins): deduplicate plugin TypeScript project boundaries - #117474
Conversation
|
Merged via squash.
|
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 12:11 PM ET / 16:11 UTC. ClawSweeper reviewWhat this changesThis PR moves common TypeScript plugin project-boundary settings from 125 package-local tsconfig files into Merge readinessThe supplied patch and exact-head validation report support a clean internal refactor, but the local checkout cannot hydrate the PR commit or refresh GitHub because network access is unavailable. No discrete correctness or security defect is established; refresh the exact-head/merge-result proof before merge because the branch is behind current Priority: P3 Review scores
Verification
How this fits togetherBundled plugin TypeScript projects define package-local compile boundaries used by build and CI checks. Each plugin tsconfig extends shared boundary configuration, which TypeScript resolves before the package-boundary test and extension compilation run. flowchart LR
A[Bundled plugin tsconfig] --> B[Shared boundary configuration]
B --> C[TypeScript config resolution]
C --> D[Package-boundary contract tests]
D --> E[Extension compilation and CI]
Before merge
Agent review detailsSecurityNone. Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve one canonical package-boundary definition in the shared config, with exact-head proof that TypeScript still resolves each normal and xAI plugin project to the same package-relative roots and exclusions after rebasing. Do we have a high-confidence way to reproduce the issue? Not applicable: the intended behavior is compile-time project-boundary equivalence, and the PR supplies exact-head package-boundary/build validation rather than a user-facing reproduction path. Is this the best way to solve the issue? Yes, conditionally: centralizing a policy repeated in every plugin is the coherent owner-boundary fix, provided the refreshed merge result preserves TypeScript's effective per-package configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8b21c23cc263. LabelsLabel changes:
Label 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
|
What Problem This Solves
Maintainer-requested repository cleanup: 125 bundled plugin projects repeated the same package root and source inclusion/exclusion policy, creating 1,615 unnecessary configuration lines and 125 places where plugin boundaries could drift.
Why This Change Was Made
Move the canonical
rootDir,include, andexcludepolicy into the existing shared plugin project configuration using TypeScript's${configDir}substitution. Keep every package-local project and preserve xAI's complete custom path aliases and boundary stubs. Strengthen the existing contract test so individual projects cannot silently reintroduce duplicate policy.User Impact
No user-visible runtime, plugin installation, public API, or published package changes. Every plugin compiles the same 4,623 source files with the same effective compiler options and security boundaries. The repository loses 1,615 production/configuration lines, or 1,607 lines net including stronger regression coverage.
Evidence
tsgoconfiguration expansion, Windows drive-letter/case-insensitive path behavior, and published-plugin package allowlists.tbx_01kyyxea2yttzv9mxnq2ytt4x9: complete remote pipeline exited0.pnpm test src/plugins/contracts/extension-package-project-boundaries.test.ts test/scripts/check-extension-package-tsc-boundary.test.ts test/scripts/prepare-extension-package-boundary-artifacts.test.ts— 48 tests passed.pnpm run test:extensions:package-boundary— all 125 plugin projects compiled; both deliberate outside-package import canaries remained rejected.pnpm build— complete production, public SDK, bundled-plugin, and Control UI build passed.pnpm check:changed— core, core-test, plugin, and plugin-test typechecks; complete core/plugin lint; formatting; dead-code scan; dependency/plugin/security guards all passed.gpt-5.6-sol,xhighreasoning, and P0–P2 scope: clean; TruffleHog scan clean.