File tree 1 file changed +0
-29
lines changed
packages/cli/src/commands
1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -283,32 +283,3 @@ agent
283
283
logger . success ( `Successfully updated configuration for agent ${ result . id } ` )
284
284
} ) ;
285
285
286
- agent
287
- . command ( "storage" )
288
- . description ( "list files in character storage" )
289
- . option ( "--json" , "output as JSON" )
290
- . action ( async ( opts ) => {
291
- try {
292
- const response = await fetch ( `${ AGENT_RUNTIME_URL } /storage` )
293
- if ( ! response . ok ) {
294
- throw new Error ( `Failed to list storage: ${ response . statusText } ` )
295
- }
296
- const { files } = await response . json ( )
297
-
298
- // Sort files alphabetically
299
- const sortedFiles = files . sort ( )
300
-
301
- if ( opts . json ) {
302
- logger . info ( JSON . stringify ( sortedFiles , null , 2 ) )
303
- } else {
304
- logger . info ( "\nCharacter files in storage:" )
305
- console . table ( sortedFiles . map ( ( file , index ) => ( {
306
- Index : index ,
307
- Filename : file
308
- } ) ) )
309
- logger . info ( "" )
310
- }
311
- } catch ( error ) {
312
- handleError ( error )
313
- }
314
- } )
You can’t perform that action at this time.
0 commit comments