()
| 74 | } |
| 75 | |
| 76 | export async function getModelAuditCurrentVersion(): Promise<string | null> { |
| 77 | try { |
| 78 | // Check the actual binary version (works with pip, pipx, or any installation method) |
| 79 | const { stdout } = await execAsync('modelaudit --version'); |
| 80 | const versionMatch = stdout.match(/modelaudit,?\s+version\s+(\S+)/i); |
| 81 | return versionMatch ? versionMatch[1] : null; |
| 82 | } catch { |
| 83 | return null; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | export async function checkModelAuditUpdates(): Promise<boolean> { |
| 88 | if (getEnvBool('PROMPTFOO_DISABLE_UPDATE')) { |
no outgoing calls
no test coverage detected
searching dependent graphs…