Repository navigation
chore(ai): перенос конфигурации проекта в rulesync-канон - #47
Merged
Merged
Conversation
Add .rulesync as the single source for the project's rules, MCP servers and permissions, and generate the Claude, Codex and OpenCode project files from it. Replace the AGENTS.md -> CLAUDE.md symlink with a real file so generation cannot write through it and clobber CLAUDE.md. Ignore .env for direnv-provided project secrets and add .envrc that inherits the parent secrets before loading a local .env. Graphify is the only project MCP server and carries no credential, so the rules and MCP sets import unchanged. OpenCode now reads the server from opencode.jsonc, which is the surface it did not have before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Переносит конфигурацию проекта в нейтральный источник
.rulesync/, из которого генерируются файлы Claude, Codex и OpenCode.Что перенесено
.rulesync/mcp.jsonc(graphify).mcp.json,.codex/config.toml,opencode.jsonc.rulesync/rules/overview.mdCLAUDE.md,AGENTS.md.rulesync/permissions.jsonc.claude/settings.json,.codex/config.toml,opencode.jsonc.mcp.jsonнет ни одной, поэтому переносить в переменные окружения нечего;.envне создавался..envдобавлен в.gitignore, а.envrcсначала наследует родительские секреты (source_up_if_exists), затем грузит локальный.env.AGENTS.md -> CLAUDE.mdзаменён настоящим файлом до генерации, иначе rulesync пишет сквозь симлинк и затираетCLAUDE.md.graphifyизopencode.jsonc— это та поверхность, которой у проекта раньше не было.Что осталось
.codex/config.tomlсгенерирован, но проект не отмечен trusted, поэтому Codex не грузит проектный слой, иcodex mcp listего не показывает. Слой заработает после подтверждения доверия при первом запуске.scripts/convert_claude_projects_to_codex.pyизbim-ba/agentsтоже пишет.codex/config.toml; следующий его запуск перезапишет файл от rulesync. Единственный владелец — rulesync; конвертер выводится из эксплуатации отдельно (Plan E)..rulesync/mcp.jsoncнесёт/home/sava/git/bim-ba/refract/graphify-out/graph.json, унаследованный из.mcp.json; на другом клоне путь придётся поправить..rulesync/hooks.jsoncизrulesync initудалён: в проекте нет хуков, а пустой источник порождал no-op файлы загрузчика.Проверено
rulesync generate --check— зелёный.ruff format --check,ruff check,ty check,pytest— зелёные (325 passed, 100% coverage).graphify; Codex — нет по причине доверия выше.