/**
 * GitHub Issue Writer Port
 *
 * Output port for issue-level mutations (label, comment, assign) on GitHub.
 * Read-side concerns live in `IGitHubRepositoryService` and
 * `IExternalIssueFetcher`; this port is the single chokepoint for writes so
 * every mutation can be funnelled through the spec-093 supervisor approval
 * gate (NFR-5).
 *
 * Implementations MUST reuse the GitHub credentials already discovered by the
 * existing GitHub-integration code path (e.g. `gh auth token` resolution) —
 * no new auth flow, no new token storage (NFR-10).
 */
/**
 * Base error for all `IGitHubIssueWriter` failures. Concrete adapters wrap
 * transport errors in this so callers can distinguish writer failures from
 * domain failures without leaking SDK types into the application layer.
 */
export class GitHubIssueWriterError extends Error {
    constructor(message, cause) {
        super(message);
        this.name = 'GitHubIssueWriterError';
        Object.setPrototypeOf(this, new.target.prototype);
        if (cause)
            this.cause = cause;
    }
}
