refactor: wave 1 - extract leaf modules, rename catch-all files, split index.ts hooks
- Split 25+ index.ts files into hook.ts + extracted modules - Rename all catch-all utils.ts/helpers.ts to domain-specific names - Split src/tools/lsp/ into ~15 focused modules - Split src/tools/delegate-task/ into ~18 focused modules - Separate shared types from implementation - 155 files changed, 60+ new files created - All typecheck clean, 61 tests pass
This commit is contained in:
@@ -7,13 +7,13 @@
|
||||
* 3. Default (Claude, etc.) → default.ts (optimized for Claude series)
|
||||
*/
|
||||
|
||||
export { isPlannerAgent, isGptModel, getUltraworkSource } from "./utils"
|
||||
export type { UltraworkSource } from "./utils"
|
||||
export { isPlannerAgent, isGptModel, getUltraworkSource } from "./source-detector"
|
||||
export type { UltraworkSource } from "./source-detector"
|
||||
export { ULTRAWORK_PLANNER_SECTION, getPlannerUltraworkMessage } from "./planner"
|
||||
export { ULTRAWORK_GPT_MESSAGE, getGptUltraworkMessage } from "./gpt5.2"
|
||||
export { ULTRAWORK_DEFAULT_MESSAGE, getDefaultUltraworkMessage } from "./default"
|
||||
|
||||
import { getUltraworkSource } from "./utils"
|
||||
import { getUltraworkSource } from "./source-detector"
|
||||
import { getPlannerUltraworkMessage } from "./planner"
|
||||
import { getGptUltraworkMessage } from "./gpt5.2"
|
||||
import { getDefaultUltraworkMessage } from "./default"
|
||||
|
||||
+4
-1
@@ -36,7 +36,10 @@ export type UltraworkSource = "planner" | "gpt" | "default"
|
||||
/**
|
||||
* Determines which ultrawork message source to use.
|
||||
*/
|
||||
export function getUltraworkSource(agentName?: string, modelID?: string): UltraworkSource {
|
||||
export function getUltraworkSource(
|
||||
agentName?: string,
|
||||
modelID?: string
|
||||
): UltraworkSource {
|
||||
// Priority 1: Planner agents
|
||||
if (isPlannerAgent(agentName)) {
|
||||
return "planner"
|
||||
Reference in New Issue
Block a user