Commit graph

10 commits

Author SHA1 Message Date
Research Assistant
abab8df3f5 feat(phase-10): add consistency audit script
- Add scripts/consistency_audit.py with 4 automated checks
- Check 1: No old command names in active code/docs
- Check 2: No paperforge_lite references in Python code
- Check 3: No dead internal links in markdown
- Check 4: Command docs have required sections

Fix violations found by audit:
- Update paperforge/ocr_diagnostics.py error messages to use new commands
- Update pipeline/worker/literature_pipeline.py generated content to use /pf-deep
- Update scripts/welcome.py to recommend /pf-deep
- Update skills/literature-qa/prompt_deep_subagent.md title to /pf-deep
- Update skills/literature-qa/scripts/ld_deep.py docstrings to /pf-deep
- Fix dead links in docs/COMMANDS.md and command/*.md
- Update AGENTS.md migration section to reference MIGRATION-v1.2.md
- Update paperforge/cli.py module docstring to use current commands
2026-04-24 18:06:35 +08:00
Research Assistant
cf761d1aa8 docs(phase-10): unify command/*.md template
- Standardize all 5 command docs with unified template:
  Purpose, CLI Equivalent, Prerequisites, Arguments,
  Example, Output, Error Handling, Platform Notes, See Also
- Preserve all existing functional content
- Add platform notes for OpenCode/Codex/Claude Code
- Add cross-references to AGENTS.md and COMMANDS.md
2026-04-24 17:52:19 +08:00
Research Assistant
86c90c87cb chore(09-command-unification): remove deprecated /LD-* and /lp-* command docs
- Delete ld-deep.md
- Delete ld-paper.md
- Delete lp-ocr.md
- Delete lp-index-refresh.md
- Delete lp-selection-sync.md
- Delete lp-status.md

All functionality migrated to unified /pf-* namespace
2026-04-24 16:38:41 +08:00
Research Assistant
1752043141 feat(09-command-unification): create new /pf-* agent command docs
- Add pf-deep.md replacing /LD-deep
- Add pf-paper.md replacing /LD-paper
- Add pf-ocr.md replacing /lp-ocr
- Add pf-sync.md replacing /lp-selection-sync + /lp-index-refresh
- Add pf-status.md replacing /lp-status
- Update command references to python -m paperforge
- Unify OCR and sync documentation
2026-04-24 16:38:34 +08:00
Research Assistant
6052c823e6 Add run_repair() function for three-way OCR state divergence repair 2026-04-24 00:02:32 +08:00
Research Assistant
2a3295ed38 feat(02-03): add ocr doctor CLI dispatch, tests, and docs
- Convert ocr parser to sub-subcommands (run, doctor)
- Add _cmd_ocr_doctor() with formatted tiered report output
- Update dispatch logic to route ocr doctor subcommand
- Add CLI dispatch test for doctor command
- Update command/lp-ocr.md with doctor documentation
2026-04-23 12:59:04 +08:00
Research Assistant
51d35d6999 feat(01-04): replace unresolved path-token commands with stable paperforge commands
- command/lp-*.md: replace python <system_dir>/... with paperforge status|selection-sync|index-refresh|ocr run; add fallback legacy command section
- command/ld-deep.md: update queue preflight to 'paperforge deep-reading'; add paperforge paths --json for variable resolution
- README.md: update core commands section to show paperforge first, legacy as fallback
- docs/INSTALLATION.md: add paperforge paths/status as primary verification
- docs/setup-guide.md: replace python pipeline/worker/... with paperforge selection-sync/index-refresh
- setup_wizard.py DoneStep: add pip install -e . and paperforge commands as primary next steps

All 15 tests in tests/test_command_docs.py pass.
2026-04-23 11:40:24 +08:00
Research Assistant
881457dd92 Fix configurable Lite setup paths 2026-04-23 01:44:13 +08:00
Research Assistant
c607dd0441 rename: LiteraturePipeline -> PaperForge in all paths and references 2026-04-22 22:10:16 +08:00
Research Assistant
68f65ea69a feat: add agent commands deployment
- Add command/ directory with core lp commands:
  lp-selection-sync, lp-index-refresh, lp-ocr, lp-status
  ld-deep, ld-paper
- Update setup.py to deploy commands to .opencode/command/
2026-04-21 23:40:07 +08:00