(evalsPath: string)
| 65 | } |
| 66 | |
| 67 | function readEvals(evalsPath: string): Array<{ id: number; prompt: string; expectations: string[] }> { |
| 68 | if (!fs.existsSync(evalsPath)) return []; |
| 69 | const raw = JSON.parse(fs.readFileSync(evalsPath, "utf8")) as { evals?: Array<{ id: number; prompt: string; expectations: string[] }> }; |
| 70 | return Array.isArray(raw.evals) ? raw.evals : []; |
| 71 | } |
| 72 | |
| 73 | |
| 74 | export async function publishSkillBundleToHub( |
no test coverage detected