#!/usr/bin/env node
import {d}from'./chunk-7YTAA6XA.js';import'./chunk-XHJ27CER.js';import e from'chalk';async function v(t){let l=process.cwd(),o={};t.author&&(o.author=t.author),t.type&&(o.type=t.type),t.symbol&&(o.symbol=t.symbol),t.tags&&(o.tags=t.tags.split(",")),t.from&&(o.dateFrom=t.from),t.to&&(o.dateTo=t.to),o.limit=parseInt(t.limit||"20",10);let n=await d(l,o);if(t.json){console.log(JSON.stringify(n,null,2));return}if(n.length===0){console.log(e.gray(`
No lore entries found.
`)),console.log(e.gray("Record one with: paradigm lore record"));return}console.log(e.cyan(`
  Lore Entries (${n.length})
`));let c={"agent-session":e.hex("#818cf8"),"human-note":e.hex("#34d399"),decision:e.hex("#fbbf24"),review:e.hex("#c084fc"),incident:e.hex("#f87171"),milestone:e.hex("#60a5fa")};for(let r of n){let i=r.type||"note",g=c[i]||e.white,a=new Date(r.timestamp),y=a.toLocaleDateString("en-US",{month:"short",day:"numeric"}),f=a.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),m=r.agent?"\u{1F916}":"\u{1F464}",d=r.verification?.status==="pass"?e.green("\u2713"):r.verification?.status==="fail"?e.red("\u2717"):r.verification?.status==="partial"?e.yellow("\u26A0"):e.gray("\xB7"),h=r.review?e.yellow("\u2605".repeat(r.review.quality)+"\u2606".repeat(5-r.review.quality)):"";console.log(`  ${e.gray(r.id)} ${g(i.padEnd(14))} ${d} ${e.white(r.title)}`),console.log(`  ${e.gray(y+" "+f)}  ${m} ${e.gray(r.author)}  ${(r.symbols_touched||[]).map(u=>e.cyan(u)).join(" ")} ${h}`),console.log();}}export{v as loreListCommand};