MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / collectRepairKeysFromSelectedRun

Function collectRepairKeysFromSelectedRun

static/js/selfcheck.js:365–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

363}
364
365function collectRepairKeysFromSelectedRun() {
366 const run = selfcheckState.selectedRun;
367 if (!run) return [];
368 const checks = Array.isArray(run?.result_data?.checks) ? run.result_data.checks : [];
369 const keys = [];
370 checks.forEach((check) => {
371 const fixes = Array.isArray(check?.fixes) ? check.fixes : [];
372 fixes.forEach((key) => {
373 const text = String(key || '').trim();
374 if (text && !keys.includes(text)) {
375 keys.push(text);
376 }
377 });
378 });
379 if (keys.length) return keys;
380 return Object.keys(selfcheckState.repairCatalog || {});
381}
382
383function collectCheckedPreviewKeys() {
384 const nodes = Array.from(document.querySelectorAll('.repair-center-key:checked'));

Callers 1

previewRepairCenterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected