#!/usr/bin/env node
import'./chunk-5TAVYPOV.js';import*as i from'fs';import*as n from'path';import t from'chalk';async function y(){let s=process.cwd(),c=[{title:"Required (you create and maintain these):",color:t.yellow,entries:[{path:".paradigm/config.yaml",description:"Project configuration \u2014 discipline, conventions, AI settings"},{path:"portal.yaml",description:"Security gates and route protection"},{path:".purpose",description:"Component/flow/gate declarations (one per directory)"}]},{title:"Optional (you can create these):",color:t.cyan,entries:[{path:".paradigm/agents.yaml",description:"Custom agent definitions for this project"},{path:".paradigm/roster.yaml",description:"Which agents are active on this project"},{path:".paradigm/habits.yaml",description:"Behavioral compliance rules"}]},{title:"Auto-generated (do not edit manually):",color:t.magenta,entries:[{path:".paradigm/scan-index.json",description:"Symbol index \u2014 rebuilt by paradigm scan / pre-commit hook"},{path:".paradigm/flow-index.json",description:"Flow index \u2014 rebuilt by paradigm scan"},{path:".paradigm/navigator.yaml",description:"Navigation index \u2014 rebuilt automatically"},{path:".paradigm/team-state.yaml",description:"Orchestration state \u2014 managed by Maestro"},{path:".paradigm/history/",description:"Implementation history \u2014 recorded by hooks",isDirectory:true},{path:".paradigm/events/",description:"Event stream \u2014 written by hooks and tools",isDirectory:true},{path:".paradigm/lore/",description:"Session history \u2014 recorded via paradigm_lore_record",isDirectory:true},{path:".paradigm/notebooks/",description:"Agent knowledge \u2014 managed via paradigm_notebook_add",isDirectory:true}]},{title:"IDE Integration:",color:t.blue,entries:[{path:".cursorrules",description:"Cursor IDE instructions (auto-generated)"},{path:".cursor/rules/",description:"Cursor rule files (auto-generated)",isDirectory:true},{path:".cursor/hooks/",description:"Cursor hook scripts (auto-generated)",isDirectory:true},{path:"CLAUDE.md",description:"Claude Code context file"},{path:"AGENTS.md",description:"Agent definitions for Claude Code"},{path:"plugins/paradigm/",description:"Claude Code plugin (skills, hooks, agents)",isDirectory:true}]}];console.log(t.bold(`
Paradigm Project Files
`));for(let o of c){console.log(`  ${o.color(o.title)}`);let p=Math.max(...o.entries.map(e=>e.path.length));for(let e of o.entries){let r=n.join(s,e.path),a=e.isDirectory?i.existsSync(r)&&i.statSync(r).isDirectory():i.existsSync(r),d=a?t.green("\u2713"):t.gray("\u2013"),l=" ".repeat(p-e.path.length+2),g=a?t.white(e.path):t.gray(e.path),h=t.gray(e.description);console.log(`    ${d} ${g}${l}${h}`);}console.log("");}}export{y as explainFilesCommand};