UNPKG

@agentled/cli

Version:

CLI for Agentled — manage workflows, apps, and knowledge from the command line. Zero context-window cost for AI agents.

20 lines 773 B
import { AgentledClient } from '../client.js'; import { printError, printOutput } from '../utils/output.js'; export function registerModelCommands(program) { const models = program.command('models').description('List available model choices'); models .command('list') .description('List models available to the workspace') .option('--format <fmt>', 'Output format', 'json') .action(async (opts) => { try { const result = await new AgentledClient().listModels(); printOutput(result, opts.format); } catch (error) { const message = error instanceof Error ? error.message : String(error); printError(message); } }); } //# sourceMappingURL=models.js.map