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.

1.1 KB
Raw Blame
import type { GoalEdgeKind, GoalNodeKind } from '@lobechat/types';

/** The glyph `lh goal show` prints before each node of the graph. */
export const nodeIcon: Record<GoalNodeKind, string> = {
  batch: 'β–¦',
  dead_end: 'βœ•',
  decision: 'β—†',
  experiment: 'βš—',
  finding: '●',
  hazard: '⚠',
  pattern: '↻',
  problem: 'β—‡',
  task: 'β–£',
  template: 'β–€',
  tool: 'βš’',
};

/**
 * Every edge kind reads `source <kind> target`, so a row listing its INCOMING
 * edges by kind states the relationship backwards: an incoming `depends_on`
 * means the other node depends on THIS one, not the reverse. Render the inverse
 * verb instead, so each entry is a true sentence about the row it sits on.
 */
export const inverseEdgeLabel: Record<GoalEdgeKind, string> = {
  answers: 'answered by',
  confirms: 'confirmed by',
  contains: 'inside',
  contradicts: 'contradicted by',
  decomposes: 'part of',
  depends_on: 'blocks',
  derived_from: 'ancestor of',
  investigates: 'investigated by',
  leads_to: 'follows',
  produces: 'produced by',
  refutes: 'refuted by',
  supports: 'supported by',
};