CoAgent8
    Preparing search index...

    Module diagnostics/issue

    Privacy-sanitizing issue generator and GitHub bug report builder.

    • Code Block Elimination: CommonMark-compliant fence parsing strips repository code blocks (delimited by 3+ backticks or tildes) to avoid leaking proprietary code in public bug reports.
    • Diff Stripping: Erases raw Git diffs (diff --git ..., --- a/... +++ b/...) from reports.
    • Credential & Path Masking: Strips recognized API keys, Bearer/Basic tokens, private keys, passwords, and the local user's home directory (~) using redactDiagnostic. Redaction strictly precedes byte truncation to ensure credential prefixes cannot be exposed.
    • Paste Flow: Links to the repository's bug report form (/issues/new?template=bug_report.yml) without report data in the URL; the report, with system architecture, Node runtime, OS version and detected CLI versions only (no readiness or quota), goes in a copy block to paste.
    BugReportOptions
    BugReportResult
    GITHUB_BUG_REPORT_TEMPLATE_URL
    GITHUB_NEW_ISSUE_BASE
    MAX_ENCODED_ISSUE_URL_LENGTH
    generateBugReport
    sanitizeText