Roo-Code/src/hooks/utils/orchestrationPaths.ts
2026-02-18 20:36:53 +03:00

24 lines
691 B
TypeScript

/**
* Centralizes all .orchestration/ path resolution.
* Every hook reads/writes through these helpers — no magic strings elsewhere.
*/
import path from "path"
export const ORCHESTRATION_DIR = ".orchestration"
export function getOrchestrationDir(cwd: string): string {
return path.join(cwd, ORCHESTRATION_DIR)
}
export function getActiveIntentsPath(cwd: string): string {
return path.join(cwd, ORCHESTRATION_DIR, "active_intents.yaml")
}
export function getTraceLedgerPath(cwd: string): string {
return path.join(cwd, ORCHESTRATION_DIR, "agent_trace.jsonl")
}
export function getIntentMapPath(cwd: string): string {
return path.join(cwd, ORCHESTRATION_DIR, "intent_map.md")
}