Package Exports
- bugnight
- bugnight/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bugnight) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
BugNight
AI-powered bug fixer - 给你的仓库雇一个 AI 夜班工程师。
安装
npm install -g bugnight使用
初始化
bugnight init这会在当前目录创建 .bugnight.yml 配置文件。
扫描 Bug
# 从本地 TODO/FIXME 扫描
bugnight scan
# 从 GitHub Issues 扫描
bugnight scan --source github
# 从 JSONL 文件扫描
bugnight scan --source jsonl --output bugs.jsonl手动执行
bugnight run
bugnight run --task bug-001夜间模式
# 定时运行(默认 22:00)
bugnight nightly
# 指定时间和最大任务数
bugnight nightly --time 23:00 --max 3
# 运行一次
bugnight nightly --once生成报告
bugnight report
bugnight report --date 2026-03-12
bugnight report --output report.md配置
创建 .bugnight.yml 文件:
repo: github.com/user/repo
branch: main
install: npm install
test: npm test
nightly_time: "22:00"
max_tasks: 5
model: claude
auto_pr: true
verify:
- typecheck
- test环境变量
GITHUB_TOKEN- GitHub API Token(用于创建 PR)GITLAB_TOKEN- GitLab API Token(用于创建 MR)BUGNIGHT_MODEL- 默认 AI 模型BUGNIGHT_AUTO_PR- 自动创建 PR(true/false)
许可证
MIT