Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

534 B
Raw Blame
const TOOLKIT_ALIASES: Record<string, string> = {
  feishu: 'larksuite',
  google_calendar: 'googlecalendar',
  google_drive: 'googledrive',
  google_sheets: 'googlesheets',
  lark: 'larksuite',
};

export function canonicalizeComposioToolkitSlug(slug: string): string {
  // `.trim()` keeps this in sync with the Rust `canonicalize_toolkit_slug`
  // (crates/openhuman-core/src/integrations/composio/tools.rs) so a stray-whitespace slug can't diverge.
  const key = slug.trim().toLowerCase();
  return TOOLKIT_ALIASES[key] ?? key;
}