refactor: replace named re-exports with star re-exports in barrel files

Convert export { A, B, ... } from and export type { ... } from blocks
to export * from across all packages (ai, coding-agent, natives, tui, utils).
This commit is contained in:
can1357
2026-02-28 22:33:45 +01:00
parent 3f4659c181
commit 85c5fad2bc
29 changed files with 228 additions and 914 deletions
+1
View File
@@ -22,6 +22,7 @@ This repo contains multiple packages, but **`packages/coding-agent/`** is the pr
## Code Quality
- No `any` types unless absolutely necessary
- Prefer `export * from "./module"` over named re-export-from blocks, including `export type { ... } from`. In pure `index.ts` barrel files (re-exports only), use star re-exports even for single-specifier cases. If star re-exports create symbol ambiguity, remove the redundant export path instead of keeping duplicate exports.
- **No `private`/`protected`/`public` keyword on class fields or methods** — use ES native `#` private fields for encapsulation; leave members that need external access as bare (no keyword). The only place `private`/`protected`/`public` is allowed is on **constructor parameter properties** (e.g., `constructor(private readonly session: ToolSession)`), where TypeScript requires the keyword for the implicit field declaration.
```typescript