//#region src/feedback.d.ts /** * Feedback submission builder shared by both agent surfaces. * * anonymize runs fully local and makes no network calls, so feedback is never * sent from here. Instead this module sanitizes the agent-authored title/body * and returns a prefilled GitHub new-issue URL (plus an equivalent `gh` command) * that a human opens and submits under their own account. The human approval and * the absence of any network call are the real controls; the sanitizer is a * coarse safety net. This module stays runtime-free. */ export declare const FEEDBACK_KINDS: readonly ["bug", "feature_request", "docs", "other"]; export type FeedbackKind = (typeof FEEDBACK_KINDS)[number]; export declare const MAX_FEEDBACK_TITLE_CHARS = 200; export declare const MAX_FEEDBACK_BODY_CHARS = 8000; type FeedbackInput = { kind: FeedbackKind; title: string; body: string; }; export type FeedbackSubmission = { title: string; /** Fully sanitized body with a provenance footer; nothing is lost to URL truncation. */ sanitizedBody: string; /** Total redactions across title and body, for the human to gauge stripping. */ redactions: number; /** Prefilled new-issue URL the human opens and submits. */ issueUrl: string; /** Equivalent `gh` command, safe to paste verbatim. */ ghCommand: string; }; /** * Sanitize the title and body, then build the prefilled GitHub submission. Pure: * no I/O and no network. The caller presents the result for a human to submit. */ export declare const buildFeedbackSubmission: ({ body, kind, title }: FeedbackInput) => FeedbackSubmission; //#endregion //# sourceMappingURL=feedback.d.mts.map