JSPM

bugnight

0.1.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 6
    • Score
      100M100P100Q61731F
    • License MIT

    AI-powered bug fixer - 给你的仓库雇一个 AI 夜班工程师

    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