/
AlexandrNarbaev
/
opencode_initializer
Обзор
Документация
Войти
/
AlexandrNarbaev
/
opencode_initializer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
scripts/sync-agents.py
21 строка
669 B
Alexandr Narbaev
feat(v2.0.2): remove Moonshot/LiteLLM, restore test gates, wire dead modules
03 авг 2026, 22:59
03 авг 2026, 22:59
0eff737
Код
Авторство
О чём код?
#!/usr/bin/env python3 """ Remove Kimi proxy sections from AGENTS.md files. """ import os, re, glob PROJECTS_DIR = '/home/alexandr-narbaev/Projects' for agents_file in sorted(glob.glob(f"{PROJECTS_DIR}/*/AGENTS.md")): proj = os.path.basename(os.path.dirname(agents_file)) with open(agents_file) as f: content = f.read() new_content = re.sub(r'\n## Kimi/Moonshot Proxy.*?(?=\n## |\n---|\Z)', '', content, flags=re.DOTALL) if new_content != content: with open(agents_file, 'w') as f: f.write(new_content) print(f"[{proj}] Kimi section removed") else: print(f"[{proj}] nothing to remove") print("\nDone")