Restructure src/ modules with consistent internal organization

Reorganize major src/ directories to follow a consistent pattern with
core/, menu/, submenu/, inputs/, logs/, layout/, feedback/ subdirectories.

Changes by module:

- stores/: Move 5 store files to stores/core/
- utils/: Create core/ (terminal, tools, etc.) and menu/ (progress-bar)
- api/: Create copilot/core/, copilot/auth/, ollama/core/
- providers/: Create core/, copilot/core/, copilot/auth/, ollama/core/, login/core/
- ui/: Create core/, banner/core/, banner/menu/, spinner/core/,
       input-editor/core/, components/core/, components/menu/
- tools/: Create core/ for registry.ts and types.ts
- tui-solid/: Reorganize components/ into menu/, submenu/, inputs/,
              logs/, modals/, panels/, layout/, feedback/
- commands/: Create core/ for runner.ts and handlers.ts
- services/: Create core/ for agent.ts, permissions.ts, session.ts,
             executor.ts, config.ts

All imports updated to use new paths. TypeScript compilation verified.
This commit is contained in:
2026-02-04 18:47:03 -05:00
parent c1b4384890
commit f0609e423e
191 changed files with 3162 additions and 824 deletions

View File

@@ -9,7 +9,7 @@ import {
errorMessage,
failSpinner,
headerMessage,
} from "@utils/terminal";
} from "@utils/core/terminal";
import {
INTENT_KEYWORDS,
CLASSIFICATION_CONFIDENCE,

View File

@@ -9,8 +9,8 @@ import {
hightLigthedJson,
headerMessage,
infoMessage,
} from "@utils/terminal";
import { getConfig } from "@services/config";
} from "@utils/core/terminal";
import { getConfig } from "@services/core/config";
import {
VALID_CONFIG_KEYS,
VALID_PROVIDERS,

View File

@@ -12,7 +12,7 @@ import {
startSpinner,
succeedSpinner,
successMessage,
} from "@utils/terminal";
} from "@utils/core/terminal";
import type { CommandOptions } from "@/types/index";
export const handlePlan = async (options: CommandOptions): Promise<void> => {

View File

@@ -2,7 +2,7 @@
* Run command handler
*/
import { execute } from "@commands/runner";
import { execute } from "@commands/core/runner";
import type { CommandOptions } from "@/types/index";
export const handleRun = async (options: CommandOptions): Promise<void> => {

View File

@@ -2,7 +2,7 @@
* Serve command handler
*/
import { boxMessage, warningMessage, infoMessage } from "@utils/terminal";
import { boxMessage, warningMessage, infoMessage } from "@utils/core/terminal";
import type { CommandOptions } from "@/types/index";
import { SERVER_INFO } from "@constants/serve";

View File

@@ -12,8 +12,8 @@ import {
errorMessage,
headerMessage,
filePath,
} from "@utils/terminal";
import { getConfig } from "@services/config";
} from "@utils/core/terminal";
import { getConfig } from "@services/core/config";
import type { CommandOptions } from "@/types/index";
export const handleValidate = async (