From 972b894b1ddba3bd493acf9534c0767bda23cdc3 Mon Sep 17 00:00:00 2001 From: Research Assistant Date: Mon, 4 May 2026 11:23:56 +0800 Subject: [PATCH] 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) --- paperforge/plugin/main.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/paperforge/plugin/main.js b/paperforge/plugin/main.js index 5d5dd8b9..8c15141d 100644 --- a/paperforge/plugin/main.js +++ b/paperforge/plugin/main.js @@ -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 {