@@ -26,6 +26,8 @@ interface CommandData {
2626 parentPath : string ;
2727 relativePath : string ;
2828 middlewares : string [ ] ;
29+ supportsAI : boolean ;
30+ description ?: string ;
2931}
3032
3133interface MiddlewareData {
@@ -52,12 +54,25 @@ const CommandDetails = ({
5254} ) => {
5355 return (
5456 < Card className = "p-4 mt-4 bg-muted/50 border-l-4 border-l-primary rounded-sm" >
55- < h3 className = "text-lg font-bold mb-2" > { command . name } </ h3 >
57+ < h3 className = "text-lg font-bold mb-2" >
58+ { command . name }
59+ { command . supportsAI && (
60+ < Badge variant = "outline" className = "ml-2" >
61+ ✨
62+ </ Badge >
63+ ) }
64+ </ h3 >
5665 < div className = "grid grid-cols-1 md:grid-cols-2 gap-2 text-sm" >
5766 < div >
5867 < p className = "text-muted-foreground" > ID:</ p >
5968 < p className = "font-mono text-xs break-all" > { command . id } </ p >
6069 </ div >
70+ { command . description && (
71+ < div >
72+ < p className = "text-muted-foreground" > Description:</ p >
73+ < p className = "italic" > { command . description } </ p >
74+ </ div >
75+ ) }
6176 < div >
6277 < p className = "text-muted-foreground" > Category:</ p >
6378 < p > { command . category || 'Uncategorized' } </ p >
@@ -106,13 +121,15 @@ const TreeNode = ({
106121 hasMiddleware = false ,
107122 onClick,
108123 isSelected,
124+ supportsAI,
109125} : {
110126 name : string ;
111127 children ?: React . ReactNode ;
112128 isCommand ?: boolean ;
113129 hasMiddleware ?: boolean ;
114130 onClick ?: ( ) => void ;
115131 isSelected ?: boolean ;
132+ supportsAI ?: boolean ;
116133} ) => {
117134 const [ isOpen , setIsOpen ] = useState ( true ) ;
118135 const hasChildren = Boolean ( children ) ;
@@ -159,6 +176,11 @@ const TreeNode = ({
159176 < Shield className = "h-3 w-3 mr-1" /> λ
160177 </ Badge >
161178 ) }
179+ { supportsAI && (
180+ < Badge variant = "outline" className = "ml-2 py-0 h-5" >
181+ ✨
182+ </ Badge >
183+ ) }
162184 </ div >
163185
164186 { hasChildren && isOpen && (
@@ -236,6 +258,7 @@ function CommandHierarchy() {
236258 key = { command . id }
237259 name = { command . name }
238260 isCommand = { true }
261+ supportsAI = { command . supportsAI }
239262 hasMiddleware = { command . middlewares . length > 0 }
240263 onClick = { ( ) => setSelectedCommand ( command . id ) }
241264 isSelected = { selectedCommand === command . id }
0 commit comments