@@ -14,7 +14,7 @@ import { getPackageExecutionCommand } from "../../utils/package-runner";
1414import { setupBiome } from "./addons-setup" ;
1515
1616type UltraciteEditor = "vscode" | "zed" ;
17- type UltraciteRule =
17+ type UltraciteAgent =
1818 | "vscode-copilot"
1919 | "cursor"
2020 | "windsurf"
@@ -42,7 +42,7 @@ const EDITORS = {
4242 } ,
4343} as const ;
4444
45- const RULES = {
45+ const AGENTS = {
4646 "vscode-copilot" : {
4747 label : "VS Code Copilot" ,
4848 } ,
@@ -115,12 +115,12 @@ export async function setupUltracite(config: ProjectConfig, hasHusky: boolean) {
115115 } ) ) ,
116116 required : true ,
117117 } ) ,
118- rules : ( ) =>
119- autocompleteMultiselect < UltraciteRule > ( {
120- message : "Choose rules " ,
121- options : Object . entries ( RULES ) . map ( ( [ key , rule ] ) => ( {
122- value : key as UltraciteRule ,
123- label : rule . label ,
118+ agents : ( ) =>
119+ autocompleteMultiselect < UltraciteAgent > ( {
120+ message : "Choose agents " ,
121+ options : Object . entries ( AGENTS ) . map ( ( [ key , agent ] ) => ( {
122+ value : key as UltraciteAgent ,
123+ label : agent . label ,
124124 } ) ) ,
125125 required : true ,
126126 } ) ,
@@ -133,16 +133,16 @@ export async function setupUltracite(config: ProjectConfig, hasHusky: boolean) {
133133 ) ;
134134
135135 const editors = result . editors as UltraciteEditor [ ] ;
136- const rules = result . rules as UltraciteRule [ ] ;
136+ const agents = result . agents as UltraciteAgent [ ] ;
137137
138- const ultraciteArgs = [ "init" , "--pm" , packageManager ] ;
138+ const ultraciteArgs = [ "init" , "--pm" , packageManager , "--frameworks" , "react,next" ] ;
139139
140140 if ( editors . length > 0 ) {
141141 ultraciteArgs . push ( "--editors" , ...editors ) ;
142142 }
143143
144- if ( rules . length > 0 ) {
145- ultraciteArgs . push ( "--rules " , ...rules ) ;
144+ if ( agents . length > 0 ) {
145+ ultraciteArgs . push ( "--agents " , ...agents ) ;
146146 }
147147
148148 if ( hasHusky ) {
0 commit comments