#!/usr/bin/env node
import {a,e}from'./chunk-D34YFK4M.js';import'./chunk-5TAVYPOV.js';import t from'chalk';async function p(d){let a$1=process.cwd(),s=a(a$1);if(!s||s.totalContent===0){console.log(t.yellow(`
  No university content found.`)),console.log(t.gray(`  Create content with: paradigm university add note --title "My Note"
`));return}let n=e(a$1),r={},l={},c={};for(let o of s.entries){r[o.type]=(r[o.type]||0)+1,o.difficulty&&(c[o.difficulty]=(c[o.difficulty]||0)+1);for(let e of o.tags)l[e]=(l[e]||0)+1;}if(d.json){console.log(JSON.stringify({totalContent:s.totalContent,typeCounts:r,difficultyCounts:c,tagCounts:l,diplomaCount:n.length},null,2));return}console.log(t.blue(`
  University Status
`)),console.log(t.white(`  Total content: ${s.totalContent}`));for(let[o,e]of Object.entries(r).sort())console.log(`    ${t.cyan(o)}: ${e}`);if(Object.keys(c).length>0){console.log(),console.log(t.white("  By difficulty:"));for(let[o,e]of Object.entries(c)){let i=o==="advanced"?t.red:o==="intermediate"?t.yellow:t.green;console.log(`    ${i(o)}: ${e}`);}}if(Object.keys(l).length>0){console.log(),console.log(t.white("  Top tags:"));let o=Object.entries(l).sort((e,i)=>i[1]-e[1]).slice(0,8);for(let[e,i]of o)console.log(`    ${t.gray(e)}: ${i}`);}if(console.log(),console.log(t.white(`  Diplomas earned: ${n.length}`)),n.length>0){for(let o of n.slice(0,5)){let e=o.passed?t.green("PASS"):t.red("FAIL");console.log(`    ${e} ${o.source} \u2014 ${o.student} (${o.percentage}%) ${t.gray(o.earnedAt.slice(0,10))}`);}n.length>5&&console.log(t.gray(`    ... and ${n.length-5} more`));}console.log();}export{p as universityStatusCommand};