mirror of
https://github.com/affaan-m/ECC.git
synced 2026-08-17 21:15:40 +02:00
* feat: add retention feedback loop * test: retire obsolete README parity row guard * fix: harden public feedback guidance * fix: let feedback CLI output flush * test: keep feedback help coverage focused
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
const REPOSITORY_ISSUES_URL = 'https://github.com/affaan-m/ECC/issues/new';
|
|
|
|
const FEEDBACK_ROUTES = Object.freeze({
|
|
problem: `${REPOSITORY_ISSUES_URL}?template=install-problem.yml`,
|
|
feedback: `${REPOSITORY_ISSUES_URL}?template=quick-feedback.yml`,
|
|
feature: `${REPOSITORY_ISSUES_URL}?template=feature-request.yml`,
|
|
});
|
|
|
|
function getFeedbackPayload() {
|
|
return {
|
|
schemaVersion: 'ecc.feedback.v1',
|
|
privacy: 'public-github',
|
|
diagnosticsUploaded: false,
|
|
routes: { ...FEEDBACK_ROUTES },
|
|
};
|
|
}
|
|
|
|
function problemReportLines() {
|
|
return [
|
|
'Report this problem (public GitHub issue):',
|
|
FEEDBACK_ROUTES.problem,
|
|
'ECC does not upload diagnostics. Redact paths, repository names, prompts, and secrets before sharing output.',
|
|
];
|
|
}
|
|
|
|
function exitFeedbackLines() {
|
|
return [
|
|
'Optional 20-second exit feedback (public GitHub issue):',
|
|
FEEDBACK_ROUTES.feedback,
|
|
'ECC does not upload diagnostics or block uninstall.',
|
|
];
|
|
}
|
|
|
|
module.exports = {
|
|
FEEDBACK_ROUTES,
|
|
exitFeedbackLines,
|
|
getFeedbackPayload,
|
|
problemReportLines,
|
|
};
|