import { OLLAMA_PORT } from "../config.js"; export function aiderConfig(modelName: string): string { return `# ============================================================================= # Aider Configuration — ${modelName} via Ollama # ============================================================================= # Point Aider at Ollama's OpenAI-compatible endpoint model: openai/${modelName} # Architect mode for better code planning architect: true editor-model: openai/${modelName} # Git integration auto-commits: true dirty-commits: true attribute-author: false attribute-committer: false # UI preferences pretty: true stream: true dark-mode: true # Code style code-theme: monokai show-diffs: true # Disable analytics analytics-disable: true `; } export function aiderEnv(): string { return `# Ollama serves an OpenAI-compatible API — no real key needed OPENAI_API_KEY=sk-not-needed OPENAI_API_BASE=http://127.0.0.1:${OLLAMA_PORT}/v1 `; }