Add AGENTS.md, docs/ (CHANGELOG, CHANGELOG_webui, README), and pkg/constant/version.go.
801 B
801 B
AGENTS.md
Safety Rules
- Dev branch naming:
{feat|fix|docs|chore}/{branch-name}(e.g.feat/file-tag-done,fix/tree-render). - Before
git commit: rungit branch --show-current. If onmaster, do NOT commit — ask user for a branch name (suggest one based on the changes, e.g.docs/simplify-branch-workflow), create it, commit there. - General changes →
docs/CHANGELOG.md; WebUI changes →docs/CHANGELOG_webui.md(files underweb/). Higher versions on top. ANGELOG entry format: same entry has English line then Chinese line on consecutive lines (no blank line between them); different entries are separated by a blank line. - Version control: When bumping a version, update both the changelog and the corresponding version constant:
pkg/constant/version.gofor backend.