Loading...
Loading...
Compare original and translation side by side
review-ai-writingreview-ai-writing/beagle-docs:humanize-beagle [--dry-run] [--all] [--category <name>]--dry-run--all--category <name>content|vocabulary|formatting|communication|filler|code_docs/beagle-docs:humanize-beagle [--dry-run] [--all] [--category <name>]--dry-run--all--category <name>content|vocabulary|formatting|communication|filler|code_docs$ARGUMENTS--dry-run--all--category <name>$ARGUMENTS--dry-run--all--category <name>undefinedundefined
If working directory is dirty, warn:
```text
Warning: You have uncommitted changes. Creating a git stash before proceeding.
Run `git stash pop` to restore if needed.git stash push -u -m "beagle-docs: pre-humanize backup"
若工作目录存在未提交内容,发出警告:
```text
警告:您有未提交的更改。继续前将创建git暂存。如需恢复请运行`git stash pop`。git stash push -u -m "beagle-docs: pre-humanize backup"cat .beagle/ai-writing-review.json 2>/dev/null--all/beagle-docs:review-ai-writing --all/beagle-docs:review-ai-writingundefinedcat .beagle/ai-writing-review.json 2>/dev/null--all/beagle-docs:review-ai-writing --all/beagle-docs:review-ai-writingundefined
If stale, prompt: "Review results are stale. Re-run review? (y/n)"
若评审结果已过期,提示:"评审结果已过期,是否重新运行评审?(y/n)"references/vocabulary-swaps.mdai_vocabulary_highai_vocabulary_lowreferences/fix-strategies.mdreferences/developer-voice.mdai_vocabulary_highai_vocabulary_lowreferences/vocabulary-swaps.mdreferences/fix-strategies.mdreferences/developer-voice.md--categoryfix_safetychat_leakcutoff_disclaimerfiller_phraseheading_restatementemoji_decorationboldface_overuseai_vocabulary_highnarrating_obvioussynthetic_openersycophantic_tonevague_authorityexcessive_hedginggeneric_conclusioncopula_avoidancerhetorical_deviceem_dash_overusethematic_breaktitle_case_headingcurly_quotesnegative_parallelismchallenges_and_prospectspromotional_languageformulaic_structuresynonym_cyclingcommit_inflationtautological_docstringexhaustive_enumerationthis_noun_verbsai_vocabulary_lowapologetic_errorrule_of_threeinline_header_listunnecessary_tableregression_to_mean--categoryfix_safetychat_leakcutoff_disclaimerfiller_phraseheading_restatementemoji_decorationboldface_overuseai_vocabulary_highnarrating_obvioussynthetic_openersycophantic_tonevague_authorityexcessive_hedginggeneric_conclusioncopula_avoidancerhetorical_deviceem_dash_overusethematic_breaktitle_case_headingcurly_quotesnegative_parallelismchallenges_and_prospectspromotional_languageformulaic_structuresynonym_cyclingcommit_inflationtautological_docstringexhaustive_enumerationthis_noun_verbsai_vocabulary_lowapologetic_errorrule_of_threeinline_header_listunnecessary_tableregression_to_mean--dry-runundefined--dry-runundefined| # | File | Line | Type | Action |
|---|---|---|---|---|
| 1 | README.md | 3 | synthetic_opener | Delete "In today's rapidly evolving..." |
| 2 | src/auth.py | 15 | narrating_obvious | Delete "# Check if user exists" |
| 3 | README.md | 42 | ai_vocabulary_high | Replace "utilize" with "use" |
| ... |
Otherwise, apply fixes grouped by file to minimize file I/O:
1. Sort findings by file, then by line number (descending, to avoid offset drift)
2. For each file, apply all safe fixes in reverse line order
3. For git artifacts (`git:commit:*`, `git:pr:*`), skip — these can't be auto-fixed. Report them for manual attention.| 序号 | 文件 | 行号 | 类型 | 操作 |
|---|---|---|---|---|
| 1 | README.md | 3 | synthetic_opener | 删除“In today's rapidly evolving...” |
| 2 | src/auth.py | 15 | narrating_obvious | 删除“# Check if user exists” |
| 3 | README.md | 42 | ai_vocabulary_high | 将“utilize”替换为“use” |
| ... |
否则,按文件分组应用修复以减少文件I/O:
1. 按文件名排序问题,再按行号降序排列(避免行偏移问题)
2. 对每个文件,按行号逆序应用所有安全修复
3. 对于git artifacts(`git:commit:*`, `git:pr:*`),跳过——无法自动修复,需人工处理并提示。--dry-runundefined--dry-runundefined| # | File | Line | Type | Original | Suggested |
|---|---|---|---|---|---|
| 4 | README.md | 8 | promotional_language | "powerful, enterprise-grade solution" | "authentication library" |
| ... |
Otherwise, for each fix, prompt interactively:
```text
[README.md:8] Promotional language: "powerful, enterprise-grade solution"
Suggested: "authentication library"
(y)es / (n)o / (e)dit / (s)kip all:ynes| 序号 | 文件 | 行号 | 类型 | 原文 | 建议修改 |
|---|---|---|---|---|---|
| 4 | README.md | 8 | promotional_language | "powerful, enterprise-grade solution" | "authentication library" |
| ... |
否则,对每个修复进行交互式提示:
```text
[README.md:8] 推广性表述: "powerful, enterprise-grade solution"
建议修改: "authentication library"
(y)确认 / (n)跳过 / (e)编辑 / (s)跳过全部:ynesundefinedundefined
For modified source files, check syntax is still valid:
**Python:**
```bash
python3 -c "import ast; ast.parse(open('$file').read())"npx -y acorn --ecma2020 "$file" > /dev/null 2>&1git checkout -- "$file"
echo "Reverted $file due to validation failure"
对修改后的源码文件,检查语法是否仍有效:
**Python:**
```bash
python3 -c "import ast; ast.parse(open('$file').read())"npx -y acorn --ecma2020 "$file" > /dev/null 2>&1git checkout -- "$file"
echo "因验证失败,已回滚$file"undefinedundefined
```bash
git diff --stat
```bash
git diff --statrm .beagle/ai-writing-review.jsonReview file preserved at .beagle/ai-writing-review.json
Fix issues and re-run, or restore with: git stash poprm .beagle/ai-writing-review.json评审文件已保留在.beagle/ai-writing-review.json
修复问题后重新运行,或使用git stash pop恢复references/developer-voice.mdreferences/developer-voice.mdundefinedundefinedundefinedundefined