feat(25-02): add doctor and repair Quick Action buttons

- Add 'paperforge-doctor' action: runs 'python -m paperforge doctor'
- Add 'paperforge-repair' action: runs 'python -m paperforge repair'
- ACTIONS array now has 4 entries: sync, ocr, doctor, repair
- Existing _runAction() handles both new commands unchanged (thin CLI shell)
This commit is contained in:
Research Assistant 2026-05-04 11:23:56 +08:00
parent dbeb17f1bc
commit 972b894b1d

View file

@ -171,6 +171,22 @@ const ACTIONS = [
cmd: 'ocr',
okMsg: 'OCR started',
},
{
id: 'paperforge-doctor',
title: 'Run Doctor',
desc: 'Verify PaperForge setup \u2014 check configs, Zotero, paths, and index health',
icon: '\u2695', // ⚕
cmd: 'doctor',
okMsg: 'Doctor complete',
},
{
id: 'paperforge-repair',
title: 'Repair Issues',
desc: 'Fix three-way state divergence, path errors, and rebuild index',
icon: '\u21BA', // ↺
cmd: 'repair',
okMsg: 'Repair complete',
},
];
class PaperForgeStatusView extends ItemView {