@@ -19,17 +19,13 @@ import { checkForUpdates } from './utils/version.js';
1919
2020const displayBanner = ( ) : void => {
2121 console. log ( ) ;
22- console . log (
23- chalk . cyan . bold ( ' ╔═══════════════════════════════════════════╗' )
24- ) ;
22+ console . log ( chalk . cyan . bold ( ' ╔═══════════════════════════════════════════╗' ) ) ;
2523 console . log (
2624 chalk . cyan . bold ( ' ║' ) +
2725 chalk . white . bold ( ' 🤖 AgentKit CLI ' ) +
2826 chalk . cyan . bold ( '║' )
2927 ) ;
30- console . log (
31- chalk . cyan . bold ( ' ╚═══════════════════════════════════════════╝' )
32- ) ;
28+ console . log ( chalk . cyan . bold ( ' ╚═══════════════════════════════════════════╝' ) ) ;
3329 console . log ( ) ;
3430} ;
3531
@@ -43,15 +39,9 @@ const displayVersionInfo = async (): Promise<void> => {
4339 const user = await getMe ( ) ;
4440 const displayName = user . name || user . email ;
4541 const aliasDisplay = user . verifiedAlias
46- ? chalk . gray ( ' (@' ) +
47- chalk . green . bold ( user . verifiedAlias ) +
48- chalk . gray ( ')' )
42+ ? chalk . gray ( ' (@' ) + chalk . green . bold ( user . verifiedAlias ) + chalk . gray ( ')' )
4943 : '' ;
50- console . log (
51- chalk . gray ( ' Logged in as: ' ) +
52- chalk . green . bold ( displayName ) +
53- aliasDisplay
54- ) ;
44+ console . log ( chalk . gray ( ' Logged in as: ' ) + chalk . green . bold ( displayName ) + aliasDisplay ) ;
5545 } else {
5646 console . log (
5747 chalk . gray ( ' Status: ' ) +
@@ -105,9 +95,7 @@ const displayVersionInfo = async (): Promise<void> => {
10595
10696const displayCustomHelp = ( ) : void => {
10797 console. log (
108- chalk . white . bold ( ' Usage: ' ) +
109- chalk . cyan ( 'agent' ) +
110- chalk . gray ( ' [command] [options]' )
98+ chalk . white . bold ( ' Usage: ' ) + chalk . cyan ( 'agent' ) + chalk . gray ( ' [command] [options]' )
11199 ) ;
112100 console . log ( ) ;
113101 console . log ( chalk . white . bold ( ' Commands:' ) ) ;
@@ -170,24 +158,16 @@ const displayCustomHelp = (): void => {
170158 console . log ( ) ;
171159 console . log ( chalk . white . bold ( ' Options:' ) ) ;
172160 console . log ( ) ;
161+ console . log ( ` ${ chalk . cyan . bold ( '-v, --version' ) } ${ chalk . white ( 'Display version number' ) } ` ) ;
173162 console . log (
174- ` ${ chalk . cyan . bold ( '-v, --version' ) } ${ chalk . white (
175- 'Display version number'
176- ) } `
177- ) ;
178- console . log (
179- ` ${ chalk . cyan . bold ( '-h, --help' ) } ${ chalk . white (
180- 'Display this help message'
181- ) } `
163+ ` ${ chalk . cyan . bold ( '-h, --help' ) } ${ chalk . white ( 'Display this help message' ) } `
182164 ) ;
183165 console . log ( ) ;
184166 console . log ( chalk . white . bold ( ' Examples:' ) ) ;
185167 console . log ( ) ;
186168 console . log ( chalk . white ( ' $ ' ) + chalk . cyan ( 'agent init my-agent' ) ) ;
187169 console . log (
188- chalk . white ( ' $ ' ) +
189- chalk . cyan ( 'agent run my-agent' ) +
190- chalk . white ( ' "Hello, how are you?"' )
170+ chalk . white ( ' $ ' ) + chalk . cyan ( 'agent run my-agent' ) + chalk . white ( ' "Hello, how are you?"' )
191171 ) ;
192172 console . log ( chalk . white ( ' $ ' ) + chalk . cyan ( 'agent list' ) ) ;
193173 console . log ( ) ;
@@ -232,11 +212,7 @@ program
232212 . command ( 'publish' )
233213 . description ( 'Publish agent to registry' )
234214 . argument ( '[path]' , 'Path to agent file' )
235- . option (
236- '-v, --visibility <visibility>' ,
237- 'Visibility (public or private)' ,
238- 'public'
239- )
215+ . option ( '-v, --visibility <visibility>' , 'Visibility (public or private)' , 'public' )
240216 . option ( '--version <version>' , 'Override version' )
241217 . option ( '-t, --tag <tag...>' , 'Add tags' )
242218 . option ( '-c, --changelog <message>' , 'Changelog message' )
@@ -262,25 +238,13 @@ program
262238 . action ( searchCommand ) ;
263239
264240// Auth commands
265- program
266- . command ( 'login' )
267- . description ( 'Login to the Agentage registry' )
268- . action ( loginCommand ) ;
241+ program . command ( 'login' ) . description ( 'Login to the Agentage registry' ) . action ( loginCommand ) ;
269242
270- program
271- . command ( 'logout' )
272- . description ( 'Logout from the Agentage registry' )
273- . action ( logoutCommand ) ;
243+ program . command ( 'logout' ) . description ( 'Logout from the Agentage registry' ) . action ( logoutCommand ) ;
274244
275- program
276- . command ( 'whoami' )
277- . description ( 'Display the currently logged in user' )
278- . action ( whoamiCommand ) ;
245+ program . command ( 'whoami' ) . description ( 'Display the currently logged in user' ) . action ( whoamiCommand ) ;
279246
280- program
281- . command ( 'update' )
282- . description ( 'Update the CLI to the latest version' )
283- . action ( updateCommand ) ;
247+ program . command ( 'update' ) . description ( 'Update the CLI to the latest version' ) . action ( updateCommand ) ;
284248
285249// Handle help flag explicitly
286250if ( process . argv . includes ( '-h' ) || process . argv . includes ( '--help' ) ) {
0 commit comments