/** * Tìm REDAI.md theo thứ tự ưu tiên: * 1. {cwd}/REDAI.md * 2. Parent dirs (đến root) * 3. ~/.redai/workspaces/{encoded-cwd}/REDAI.md */ export declare function findRedaiMd(cwd: string): string | null; /** * Tải toàn bộ context cho một cwd — inject vào đầu task cho AI Agent. * Thứ tự: REDAI.md → CLAUDE.md/AGENTS.md → README.md → file tree */ export declare function loadWorkspaceContext(cwd: string): Promise; /** Kiểm tra xem cwd có REDAI.md chưa — dùng trong setup command. */ export declare function hasRedaiMd(cwd: string): boolean; /** Trả về danh sách context files tìm thấy trong cwd. */ export declare function detectContextFiles(cwd: string): string[];