File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -196,20 +196,20 @@ async function main(): Promise<void> {
196196 const result = await handlePublish ( agentIds )
197197
198198 if ( result . success && result . publisherId && result . agents ) {
199- console . log ( green ( '✅ Successfully published:' ) )
199+ logger . info ( green ( '✅ Successfully published:' ) )
200200 for ( const agent of result . agents ) {
201- console . log (
201+ logger . info (
202202 cyan (
203203 ` - ${ agent . displayName } (${ result . publisherId } /${ agent . id } @${ agent . version } )` ,
204204 ) ,
205205 )
206206 }
207207 process . exit ( 0 )
208208 } else {
209- console . log ( red ( '❌ Publish failed' ) )
210- if ( result . error ) console . log ( red ( `Error: ${ result . error } ` ) )
211- if ( result . details ) console . log ( red ( result . details ) )
212- if ( result . hint ) console . log ( yellow ( `Hint: ${ result . hint } ` ) )
209+ logger . error ( red ( '❌ Publish failed' ) )
210+ if ( result . error ) logger . error ( red ( `Error: ${ result . error } ` ) )
211+ if ( result . details ) logger . error ( red ( result . details ) )
212+ if ( result . hint ) logger . warn ( yellow ( `Hint: ${ result . hint } ` ) )
213213 process . exit ( 1 )
214214 }
215215 }
You can’t perform that action at this time.
0 commit comments