/**
 * Outreach Publisher Port
 *
 * Output port for posting outreach messages drafted by the contributor
 * pipeline to external channels. v1 supports Discord only (resolved spec
 * product-question 4) — Reddit/HN/X adapters can land later behind the
 * same port without rewriting callers.
 *
 * Implementations MUST:
 *   - Source credentials from existing config (no new secret storage).
 *   - Never log the bot token at any level (NFR-9 / spec security note).
 *
 * Posting itself is gated through `ISupervisorAgent.evaluate(...)` upstream
 * (NFR-5); the publisher trusts that gate has already authorized the call.
 */
/**
 * Base error for outreach publisher failures.
 */
export class OutreachPublisherError extends Error {
    constructor(message, cause) {
        super(message);
        this.name = 'OutreachPublisherError';
        Object.setPrototypeOf(this, new.target.prototype);
        if (cause)
            this.cause = cause;
    }
}
