Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

593 B
Raw Blame
import type { Command } from 'commander';

import { registerOpInspectCommand } from './inspect';
import { registerOpListCommand } from './list';
import { registerOpReplayCommand } from './replay';

/**
 * `lh trace op` — traces of a single agent operation. Sibling scopes (goal,
 * task) get their own group under `lh trace` rather than more flags here.
 */
export function registerOpCommand(parent: Command) {
  const op = parent.command('op').description('Traces of a single agent operation');

  registerOpInspectCommand(op);
  registerOpListCommand(op);
  registerOpReplayCommand(op);
}