CoAgent8
    Preparing search index...

    Interface IssueCliOptions

    Dependencies for hermetic unit testing of the issue CLI.

    interface IssueCliOptions {
        generateReportFn?: (options: BugReportOptions) => BugReportResult;
        openBrowser?: (
            url: string,
            onWarning?: (warning: string) => void,
        ) => boolean | void | Promise<boolean | void>;
        runDoctorFn?: (options?: DoctorOptions) => Promise<DoctorReport>;
        signal?: AbortSignal;
    }
    Index
    generateReportFn?: (options: BugReportOptions) => BugReportResult

    Type Declaration

      • (options: BugReportOptions): BugReportResult
      • Builds a sanitized bug report, the link to the bug report form and the prompt that shows both.

        Collects runtime environment parameters (Node.js, OS architecture, detected CLI versions), strips sensitive code blocks and credentials, and puts the report in a copy block to paste.

        Parameters

        • options: BugReportOptions

          Error message, context, and optional DoctorReport diagnostics.

        Returns BugReportResult

        Object containing title, body, the form URL, and markdown prompt.

    openBrowser?: (
        url: string,
        onWarning?: (warning: string) => void,
    ) => boolean | void | Promise<boolean | void>
    runDoctorFn?: (options?: DoctorOptions) => Promise<DoctorReport>
    signal?: AbortSignal