Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

384 B
Raw Blame
/** Strings the search schema accepts and rewrites to the developer category. */
export const developerCategoryAliases = new Set([
  "repo",
  "code",
  "developer",
  "docs",
  "devdex",
  "repo_search",
  "developer_index",
]);

export function isDeveloperCategoryAlias(value: unknown): value is string {
  return typeof value === "string" && developerCategoryAliases.has(value);
}