(path: string)
| 64 | const seen = new Set<string>(); |
| 65 | |
| 66 | const collect = async (path: string): Promise<boolean> => { |
| 67 | const file = await readAgentFile(kaos, path); |
| 68 | if (file === undefined) return false; |
| 69 | const key = kaos.normpath(file.path); |
| 70 | if (seen.has(key)) return false; |
| 71 | seen.add(key); |
| 72 | discovered.push(file); |
| 73 | return true; |
| 74 | }; |
| 75 | |
| 76 | // User-level files come first so any project-level AGENTS.md overrides them. |
| 77 | // The brand dir follows KIMI_CODE_HOME (default ~/.kimi-code); the generic |
no test coverage detected