#!/usr/bin/env node
import {g,i as i$1}from'./chunk-7YTAA6XA.js';import'./chunk-XHJ27CER.js';import e from'chalk';async function i(n,r){let l=process.cwd(),o=await g(l,n);if(!o){console.error(e.red(`
  Entry not found: ${n}
`)),process.exitCode=1;return}if(r.dryRun){console.log(e.cyan(`
  [dry-run] Would delete lore entry:`)),console.log(e.white(`    ${o.id} - ${o.title}`)),console.log(e.gray(`    Type: ${o.type} | Author: ${o.author} | ${o.timestamp}`)),console.log(e.gray(`    Symbols: ${(o.symbols_touched||[]).join(", ")}`)),console.log(e.cyan(`
  [dry-run] No changes made.
`));return}if(!r.yes){console.log(e.yellow(`
  Will delete lore entry:`)),console.log(e.white(`    ${o.id} - ${o.title}`)),console.log(e.gray(`    Type: ${o.type} | Author: ${o.author} | ${o.timestamp}`)),console.log(e.gray(`    Symbols: ${(o.symbols_touched||[]).join(", ")}`)),console.log(e.gray(`
  Use --yes to confirm deletion.
`));return}await i$1(l,n)?console.log(e.green(`
  Deleted lore entry: ${n}
`)):(console.error(e.red(`
  Failed to delete: ${n}
`)),process.exitCode=1);}export{i as loreDeleteCommand};