@@ -13,7 +13,7 @@ import type {
1313 CliSubcommand ,
1414} from '../../utils/meow-with-subcommands.mts'
1515
16- export const CMD_NAME = 'ai '
16+ export const CMD_NAME = 'ask '
1717
1818const description = 'Natural language interface - describe what you want to do'
1919
@@ -260,7 +260,7 @@ async function suggestAlternatives(input: string): Promise<string[]> {
260260 return suggestions
261261}
262262
263- export const cmdAi : CliSubcommand = {
263+ export const cmdAsk : CliSubcommand = {
264264 description,
265265 hidden,
266266 async run (
@@ -301,7 +301,7 @@ export const cmdAi: CliSubcommand = {
301301
302302 Description
303303 Use natural language to describe what you want to do.
304- The AI will translate your intent into the appropriate Socket CLI command.
304+ Socket will translate your intent into the appropriate CLI command.
305305
306306 Tips
307307 • Be specific about what you want to achieve
@@ -326,9 +326,9 @@ export const cmdAi: CliSubcommand = {
326326 if ( ! query ) {
327327 logger . error ( 'Please provide a natural language query' )
328328 logger . log ( '\nExamples:' )
329- logger . log ( ' socket ai "scan for vulnerabilities"' )
330- logger . log ( ' socket ai "fix critical issues"' )
331- logger . log ( ' socket ai "is express safe"' )
329+ logger . log ( ' socket ask "scan for vulnerabilities"' )
330+ logger . log ( ' socket ask "fix critical issues"' )
331+ logger . log ( ' socket ask "is express safe"' )
332332 return
333333 }
334334
@@ -356,7 +356,7 @@ export const cmdAi: CliSubcommand = {
356356 // Display the interpreted command
357357 const commandStr = `socket ${ intent . command . join ( ' ' ) } `
358358
359- logger . log ( colors . cyan ( '🤖 AI Translation:' ) )
359+ logger . log ( colors . cyan ( '🤖 Translation:' ) )
360360 logger . log ( ` ${ colors . gray ( '"' + query + '"' ) } ` )
361361 logger . log ( ` ↓` )
362362 logger . log ( ` ${ colors . bold ( commandStr ) } ` )
@@ -385,7 +385,7 @@ export const cmdAi: CliSubcommand = {
385385 logger . log ( '\n💡 To execute this command:' )
386386 logger . log ( ` ${ colors . bold ( commandStr ) } ` )
387387 logger . log ( '\n Or run with --execute flag to auto-execute:' )
388- logger . log ( ` socket ai "${ query } " --execute` )
388+ logger . log ( ` socket ask "${ query } " --execute` )
389389 } else {
390390 logger . warn ( '\n⚠️ Confidence too low for auto-execution' )
391391 logger . log ( ' Please run the command manually:' )
0 commit comments