Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

740 B
Raw Blame
import type { GuidanceRef } from '@inkeep/open-knowledge-core/agent-registry';
import { EDITOR_LABELS } from '@inkeep/open-knowledge-core/constants/editors';
import { t } from '@lingui/core/macro';

export function followupHintText(ref: GuidanceRef | undefined): string | null {
  if (ref === undefined) return null;
  const agentId = ref.params?.agent;
  if (typeof agentId !== 'string') return null;
  const agent = EDITOR_LABELS[agentId as keyof typeof EDITOR_LABELS] ?? agentId;
  if (ref.id !== 'followup.enable-manually') return null;
  return t({
    id: 'followup.enable-manually',
    message: `${agent} keeps project MCP servers off until you turn them on under Customize → MCPs. OpenKnowledge can't see that setting.`,
  });
}