Remove legacy React/Ink TUI and fix TypeScript errors

- Delete old tui/ React/Ink implementation (App.tsx, components/, hooks/, store.ts)
  - Migrate to tui-solid/ as the sole TUI implementation
  - Update tui/index.ts to re-export from tui-solid and @/types/tui

  TypeScript fixes:
  - Add missing PreCompact to hook event constants
  - Fix path aliases (@src/ -> @/, @constants/)
  - Remove unused imports across service files
  - Add explicit type annotations to callback parameters
  - Replace Bun.file/write with Node.js fs/promises in mcp/registry
  - Fix Map.some() -> Array.from().some() in registry
  - Fix addServer() call signature
  - Add missing description to brain-mcp schema items
  - Fix typo in progress-bar import (@interfactes -> @interfaces)
This commit is contained in:
2026-02-04 01:21:43 -05:00
parent 5c2d79c802
commit c1b4384890
61 changed files with 80 additions and 8123 deletions

View File

@@ -42,6 +42,7 @@ export const HOOK_EVENT_LABELS: Record<HookEventType, string> = {
SessionStart: "Session Start",
SessionEnd: "Session End",
UserPromptSubmit: "User Prompt Submit",
PreCompact: "Pre-Compact",
Stop: "Stop",
};
@@ -55,6 +56,7 @@ export const HOOK_EVENT_DESCRIPTIONS: Record<HookEventType, string> = {
SessionStart: "Runs when a new session begins.",
SessionEnd: "Runs when a session ends.",
UserPromptSubmit: "Runs when user submits a prompt. Can modify or block.",
PreCompact: "Runs before context compaction. For custom compaction logic.",
Stop: "Runs when execution is stopped (interrupt, complete, or error).",
};
@@ -67,6 +69,7 @@ export const HOOK_EVENT_TYPES: readonly HookEventType[] = [
"SessionStart",
"SessionEnd",
"UserPromptSubmit",
"PreCompact",
"Stop",
] as const;