Skip to content

Commit 25bca09

Browse files
committed
Update agent.ts
1 parent 60c2f5e commit 25bca09

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

packages/cli/src/commands/agent.ts

-29
Original file line numberDiff line numberDiff line change
@@ -283,32 +283,3 @@ agent
283283
logger.success(`Successfully updated configuration for agent ${result.id}`)
284284
});
285285

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-
})

0 commit comments

Comments
 (0)