- db-utils.ts: shared openDb() (WAL, busy_timeout, foreign_keys, mkdirSync) - 5 DB modules use openDb() instead of duplicated PRAGMA boilerplate - bttask-db shares btmsg-db's Database handle (was duplicate connection) - misc-handlers.ts: 14 inline handlers extracted from index.ts - index.ts: 349→195 lines (only window controls remain inline) - updater.ts: removed dead getLastKnownVersion() - Net reduction: ~700 lines of duplicated boilerplate |
||
|---|---|---|
| .. | ||
| agent-handlers.ts | ||
| btmsg-handlers.ts | ||
| files-handlers.ts | ||
| git-handlers.ts | ||
| misc-handlers.ts | ||
| path-guard.ts | ||
| plugin-handlers.ts | ||
| provider-handlers.ts | ||
| pty-handlers.ts | ||
| remote-handlers.ts | ||
| search-handlers.ts | ||
| settings-handlers.ts | ||