UNPKG

@agentled/cli

Version:

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

33 lines 1.45 kB
import { AgentledClient } from '../client.js'; import { printError, printOutput } from '../utils/output.js'; export function registerFeedbackCommands(program) { const feedback = program.command('feedback').description('Submit feedback to Agentled'); feedback .command('submit') .description('Submit workspace feedback') .requiredOption('--type <type>', 'bug | feature_request | escalation | ask') .requiredOption('--title <title>', 'Feedback title') .requiredOption('--description <description>', 'Feedback description') .option('--severity <severity>', 'low | medium | high | critical') .option('--user-email <email>', 'Contact email') .option('--source <source>', 'Feedback source label', 'cli') .option('--format <fmt>', 'Output format', 'json') .action(async (opts) => { try { const result = await new AgentledClient().submitFeedback({ type: opts.type, title: opts.title, description: opts.description, severity: opts.severity, userEmail: opts.userEmail, source: opts.source, }); printOutput(result, opts.format); } catch (error) { const message = error instanceof Error ? error.message : String(error); printError(message); } }); } //# sourceMappingURL=feedback.js.map