(rootPath, excludeFiles = [])
| 38 | } |
| 39 | |
| 40 | async function computeDeferredComponents(rootPath, excludeFiles = []) { |
| 41 | const files = await gatherDeferredTextFiles(rootPath, excludeFiles); |
| 42 | const components = []; |
| 43 | for (const filePath of files) { |
| 44 | const content = await readText(filePath); |
| 45 | components.push( |
| 46 | createComponent( |
| 47 | relativePath(rootPath, filePath), |
| 48 | filePath, |
| 49 | estimateTokenCount(content), |
| 50 | "Deferred supporting file", |
| 51 | ), |
| 52 | ); |
| 53 | } |
| 54 | return components; |
| 55 | } |
| 56 | |
| 57 | async function readInvocationPolicy(rootPath) { |
| 58 | const policyPath = path.join(rootPath, "agents", "openai.yaml"); |
no test coverage detected