refactor: move hook system files to src/hooks/ to match submission requirements

- Move HookEngine.ts from src/core/hooks/ to src/hooks/
- Move OrchestrationDataModel.ts from src/core/orchestration/ to src/hooks/
- Move SelectActiveIntentTool.ts from src/core/tools/ to src/hooks/
- Update all import paths in presentAssistantMessage.ts and test files
- Consolidate all hook-related files in clean src/hooks/ directory as required
This commit is contained in:
Sumeyaaaa 2026-02-18 15:40:47 +03:00
parent b0bb6c73dc
commit b73021c357
5 changed files with 15 additions and 13 deletions

View file

@ -37,11 +37,10 @@ import { generateImageTool } from "../tools/GenerateImageTool"
import { applyDiffTool as applyDiffToolClass } from "../tools/ApplyDiffTool"
import { isValidToolName, validateToolUse } from "../tools/validateToolUse"
import { codebaseSearchTool } from "../tools/CodebaseSearchTool"
import { selectActiveIntentTool } from "../tools/SelectActiveIntentTool"
import { formatResponse } from "../prompts/responses"
import { sanitizeToolUseId } from "../../utils/tool-id"
import { HookEngine } from "../hooks/HookEngine"
import { HookEngine } from "../../hooks/HookEngine"
import { selectActiveIntentTool } from "../../hooks/SelectActiveIntentTool"
/**
* Processes and presents assistant message content to the user interface.

View file

@ -4,9 +4,9 @@ import * as fs from "fs/promises"
import * as path from "path"
import * as os from "os"
import { selectActiveIntentTool } from "../SelectActiveIntentTool"
import { selectActiveIntentTool } from "../../../hooks/SelectActiveIntentTool"
import type { ToolUse } from "../../../shared/tools"
import type { AgentTraceEntry } from "../../orchestration/OrchestrationDataModel"
import type { AgentTraceEntry } from "../../../hooks/OrchestrationDataModel"
describe("SelectActiveIntentTool - Phase 1 End-to-End Test", () => {
let testWorkspaceDir: string

View file

@ -1,7 +1,7 @@
import { Task } from "../task/Task"
import type { ToolUse } from "../../shared/tools"
import { Task } from "../core/task/Task"
import type { ToolUse } from "../shared/tools"
import type { ToolName } from "@roo-code/types"
import { OrchestrationDataModel, type ActiveIntent } from "../orchestration/OrchestrationDataModel"
import { OrchestrationDataModel, type ActiveIntent } from "./OrchestrationDataModel"
import * as vscode from "vscode"
import * as path from "path"
import * as fs from "fs/promises"
@ -339,3 +339,4 @@ export class HookEngine {
}
}
}

View file

@ -257,3 +257,4 @@ This file contains persistent knowledge shared across parallel sessions (Archite
return this.orchestrationDir
}
}

View file

@ -1,8 +1,8 @@
import { Task } from "../task/Task"
import { formatResponse } from "../prompts/responses"
import { BaseTool, ToolCallbacks } from "./BaseTool"
import type { ToolUse } from "../../shared/tools"
import { OrchestrationDataModel } from "../orchestration/OrchestrationDataModel"
import { Task } from "../core/task/Task"
import { formatResponse } from "../core/prompts/responses"
import { BaseTool, ToolCallbacks } from "../core/tools/BaseTool"
import type { ToolUse } from "../shared/tools"
import { OrchestrationDataModel } from "./OrchestrationDataModel"
interface SelectActiveIntentParams {
intent_id: string
@ -126,3 +126,4 @@ ${recentHistorySection}
}
export const selectActiveIntentTool = new SelectActiveIntentTool()