chore(context): drop cursor + aider adapters from generator

Cursor and Aider are not supported harnesses. Remove generate_cursor
and generate_aider, their no-arg calls, and their case arms. The active
adapters are claude (CLAUDE.md), agents (AGENTS.md), and system-prompt
(.context/system-prompt.txt).
This commit is contained in:
mathias
2026-06-22 09:00:55 +00:00
parent 63df6d3283
commit 7a27cf71a2
+3 -32
View File
@@ -40,10 +40,9 @@ if [ -n "$ROOT_CONTEXT" ] && [ -f "$ROOT_CONTEXT" ]; then
echo " Root context: $ROOT_CONTEXT" echo " Root context: $ROOT_CONTEXT"
else else
# No reachable root AGENT.md — common in CI's clean checkout. The root+project # No reachable root AGENT.md — common in CI's clean checkout. The root+project
# adapters (AGENTS.md, .cursorrules, .aider.conventions.md, system-prompt.txt) # adapters (AGENTS.md, system-prompt.txt) require the root context to
# require the root context to regenerate correctly, so we skip them entirely # regenerate correctly, so we skip them entirely and only regenerate CLAUDE.md
# and only regenerate CLAUDE.md (which is project-only and inherits root via # (which is project-only and inherits root via tree walk in Claude Code itself).
# tree walk in Claude Code itself).
echo " No root AGENT.md found — regenerating CLAUDE.md only" echo " No root AGENT.md found — regenerating CLAUDE.md only"
echo "Syncing project context from $PROJECT_FILE..." echo "Syncing project context from $PROJECT_FILE..."
cat "$PROJECT_FILE" > CLAUDE.md cat "$PROJECT_FILE" > CLAUDE.md
@@ -78,30 +77,6 @@ generate_agents() {
echo " → AGENTS.md (root + project; Crush, Pi, Antigravity)" echo " → AGENTS.md (root + project; Crush, Pi, Antigravity)"
} }
# ── Cursor ───────────────────────────────────────────────────
generate_cursor() {
{
echo "# Cursor rules — auto-generated"
echo "# Do not edit. Run: task context:sync"
echo ""
root_block
cat "$PROJECT_FILE"
} > .cursorrules
echo " → .cursorrules (root + project)"
}
# ── Aider ────────────────────────────────────────────────────
generate_aider() {
{ root_block; cat "$PROJECT_FILE"; } > .aider.conventions.md
if [ ! -f .aider.conf.yml ]; then
cat > .aider.conf.yml << 'YAML'
read: .aider.conventions.md
auto-commits: false
YAML
fi
echo " → .aider.conventions.md (root + project)"
}
# ── Generic system prompt (Open WebUI, Mods, etc.) ────────── # ── Generic system prompt (Open WebUI, Mods, etc.) ──────────
generate_system_prompt() { generate_system_prompt() {
{ {
@@ -142,8 +117,6 @@ echo "Syncing project context from $PROJECT_FILE..."
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
generate_claude generate_claude
generate_agents generate_agents
generate_cursor
generate_aider
generate_system_prompt generate_system_prompt
generate_mcp generate_mcp
else else
@@ -151,8 +124,6 @@ else
case "$adapter" in case "$adapter" in
claude) generate_claude ;; claude) generate_claude ;;
agents) generate_agents ;; agents) generate_agents ;;
cursor) generate_cursor ;;
aider) generate_aider ;;
prompt|system|openwebui|owui|generic) generate_system_prompt ;; prompt|system|openwebui|owui|generic) generate_system_prompt ;;
mcp) generate_mcp ;; mcp) generate_mcp ;;
*) echo "Unknown adapter: $adapter" ;; *) echo "Unknown adapter: $adapter" ;;