#!/usr/bin/env node
import {g,f}from'./chunk-WS2N27RX.js';import'./chunk-5TAVYPOV.js';import e from'chalk';async function $(r,o,t){let c=process.cwd();["correct","partial","incorrect"].includes(o)||(console.error(e.red(`
  Invalid verdict: "${o}". Must be one of: correct, partial, incorrect
`)),process.exit(1));let n=await g(c,r);if(n||(console.error(e.red(`
  Entry not found: ${r}
`)),process.exit(1)),await f(c,r,{verdict:o,assessed_by:t.assessor||"unknown",assessed_at:new Date().toISOString(),notes:t.notes})){let d={correct:e.green,partial:e.yellow,incorrect:e.red}[o]||e.white;if(console.log(e.green(`
  Assessment recorded for ${r}`)),console.log(`  Verdict: ${d(o)}`),n.confidence!=null){let s=(o==="correct"?1:o==="partial"?.5:0)-n.confidence,a=`${s>0?"+":""}${s.toFixed(2)}`,g=Math.abs(s)<=.1?e.green:Math.abs(s)<=.3?e.yellow:e.red;console.log(`  Confidence: ${n.confidence.toFixed(2)} | Delta: ${g(a)}`),s>.1?console.log(e.gray("  Under-confident (outcome better than predicted)")):s<-0.1?console.log(e.gray("  Over-confident (outcome worse than predicted)")):console.log(e.gray("  Well-calibrated"));}else console.log(e.gray("  No confidence recorded \u2014 delta not computed"));console.log();}else console.error(e.red(`
  Failed to assess entry: ${r}
`)),process.exit(1);}export{$ as loreAssessCommand};