cli: garbled usage text, omitted help flags, zero token reporting in do --json, and workspace defaulting
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- cli, developer-experience
Hướng nghiên cứu
Start with cmd/codeaf/main.go and inspect the help text and usage templates around line 479, then review cmd/codeaf/do.go for token aggregation and cmd/codeaf/engine.go for workspace defaults. Run the listed help, JSON, and engine commands from a repository to reproduce the issues. Done means corrected help coverage and wording, accurate token values in do --json, and repository-aware workspace defaults.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
CLI help text contains syntax errors and missing flag documentation, codeaf do --json omits token counts, and engine workspace flags default to user home instead of current directory.
Items & Observed Behavior
- Garbled CLI help sentence: Line 479 of
cmd/codeaf/main.gocontains a malformed sentence:"None takes --yolo, and What do and run can still refuse is a plan whose price crosses". - Omitted CLI flags in
--help:codeaf --helpomits documentation fordo --slots,--best,--cheap,--pin,--check-model,chat --max-cost,--max-hours, and theenginesubcommand. - Zero token count in
do --json: Runningcodeaf do --jsonoutputs"tokens": {"in": 0, "out": 0}despite reporting non-zero"spend_usd". - Engine workspace defaults to home: Running
codeaf engine --statusorcodeaf engine --stopfrom within a repository defaults--workspaceto~instead of the current working directory.
Expected Behavior
- Help and usage strings must be grammatically correct and list all supported flags.
do --jsonoutput must accurately aggregate and report token usage.- Subcommands should detect and use the active git root / working directory by default.
Root Cause / Location
cmd/codeaf/main.go: CLI help documentation and string templates.cmd/codeaf/do.go: Token counter aggregation into the JSON envelope.cmd/codeaf/engine.go: Default workspace resolution logic.
—
Drafted with CodeAF · reviewed and owned by the author
- Ngôn ngữ chính
- Go
- Star
- 115
- Fork
- 14
- Merge trung bình
- 9 giờ 37 phút
- Pull request đã merge (30 ngày)
- 755
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Agent-Field/CodeAF
-
area:chat bug sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Agent-Field/CodeAF#1592 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:headless bug sev:critical
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1566 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Agent-Field/CodeAF#1510 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:tests bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Agent-Field/CodeAF#1489 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:chat bug good first issue sev:papercut
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Agent-Field/CodeAF#1470 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Agent-Field/CodeAF
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
rossoctl/context-guru#346 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
prime-radiant-inc/evener#2883 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
gravitational/teleport#69805 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Under Poisson sampling, the `PLDAccountant` composes the inner event both before and after samplingĐang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 78/100
google/differential-privacy#496 ·