docs: backfill developer entry#320
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 78ff7e15cf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # 1. 基础指标 | ||
| echo "## 1. 基础指标" | ||
| echo "- 总行数: $(wc -l < "$COORDINATOR")" | ||
| echo "- 公开方法数: $(grep -c "^ pub fn " "$COORDINATOR" || true)" |
There was a problem hiding this comment.
Include
pub async fn in public method counts
The coordinator audit script counts public methods with grep -c "^ pub fn ", which excludes public async APIs (for example start_dictation and stop_dictation in coordinator.rs). This systematically underreports the module's exported surface and skews downstream audit conclusions whenever a module exposes async public methods.
Useful? React with 👍 / 👎.
| echo "## 1. 基础指标" | ||
| echo "- 总行数: $(wc -l < "$COORDINATOR")" | ||
| echo "- 公开方法数: $(grep -c "^ pub fn " "$COORDINATOR" || true)" | ||
| echo "- 私有方法数: $(grep -c "^ fn " "$COORDINATOR" | awk '{print $1 - '$(grep -c "^ pub fn " "$COORDINATOR" || echo 0)'}')" |
There was a problem hiding this comment.
Stop subtracting public count from private function count
The private-method metric subtracts the public-function count from grep -c "^ fn ", but that grep already excludes pub fn, so the subtraction double-adjusts and produces incorrect values (it can even go negative if public functions outnumber private non-async methods). This makes the reported complexity numbers unreliable for planning and prioritization.
Useful? React with 👍 / 👎.
| # 7. 接口一致性 | ||
| echo "## 7. 接口一致性分析" | ||
| echo "### Volcengine 公开接口" | ||
| grep "pub fn\|pub async fn" "$ASR_DIR/volcengine.rs" | awk '{print $3}' | sed 's/(.*//; s/^/ - /' |
There was a problem hiding this comment.
Parse async method names correctly in ASR interface report
The interface listing extracts method names with awk '{print $3}', which works for pub fn but returns fn for pub async fn signatures. As a result, the generated "接口一致性分析" output is polluted with placeholder fn entries and hides actual API names, reducing the audit's usefulness for comparing providers.
Useful? React with 👍 / 👎.
|
怎么带了这么多文档( |
PR Reviewer Guide 🔍(Review updated until commit 34a140e)Here are some key observations to aid the review process:
|
78ff7e1 to
34a140e
Compare
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Persistent review updated to latest commit 34a140e |
sry 把本地的技术文档带进去了) 已改正 |
User description
概述
在 README.md 和 README.zh.md 中添加 Cooper 为开发者。
修改内容
测试
PR Type
Documentation
Description
File Walkthrough
README.md
Add Cooper as developer in English READMEREADME.md
README.zh.md
Add Cooper as developer in Chinese READMEREADME.zh.md