🐛 fix(scripts): include language list in AGENTS.md

This commit is contained in:
csh 2026-01-10 22:12:05 +08:00
parent c0d0737da7
commit f2df89d483
3 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,7 @@ if not exist "%ROOT%\AGENTS.md" (
>> "%ROOT%\AGENTS.md" echo 请以 `.agents/` 下的规则为准: >> "%ROOT%\AGENTS.md" echo 请以 `.agents/` 下的规则为准:
>> "%ROOT%\AGENTS.md" echo. >> "%ROOT%\AGENTS.md" echo.
>> "%ROOT%\AGENTS.md" echo - 入口:`.agents/index.md` >> "%ROOT%\AGENTS.md" echo - 入口:`.agents/index.md`
>> "%ROOT%\AGENTS.md" echo - 语言规则:`.agents/tsl/index.md`、`.agents/cpp/index.md`、`.agents/python/index.md`、`.agents/markdown/index.md`
echo Created AGENTS.md echo Created AGENTS.md
) )

View File

@ -148,6 +148,7 @@ if (-not (Test-Path $AgentsMd)) {
请以 `.agents/` 下的规则为准 请以 `.agents/` 下的规则为准
- 入口`.agents/index.md` - 入口`.agents/index.md`
- 语言规则`.agents/tsl/index.md``.agents/cpp/index.md``.agents/python/index.md``.agents/markdown/index.md`
'@ | Set-Content -Path $AgentsMd -Encoding UTF8 '@ | Set-Content -Path $AgentsMd -Encoding UTF8
Write-Host "Created AGENTS.md" Write-Host "Created AGENTS.md"
} }

View File

@ -154,6 +154,7 @@ if [ ! -f "$AGENTS_MD" ]; then
请以 `.agents/` 下的规则为准: 请以 `.agents/` 下的规则为准:
- 入口:`.agents/index.md` - 入口:`.agents/index.md`
- 语言规则:`.agents/tsl/index.md``.agents/cpp/index.md``.agents/python/index.md``.agents/markdown/index.md`
EOF EOF
echo "Created AGENTS.md" echo "Created AGENTS.md"
fi fi