feat(lint): add Wiki Fixer with LLM-driven auto-repair#267
Open
6tizer wants to merge 1 commit into
Open
Conversation
Introduces an automatic wiki issue fixer powered by LLM, addressing Issue nashsu#196 where lint detects errors but cannot auto-correct. Features: - Auto Fix button on each fixable lint item (broken-link, no-outlinks, semantic types) - Fix All button for batch repair of all fixable issues - 6 fix strategies: orphan (direct), others via LLM prompts - Progress tracking via activity store - Excludes "suggestion" type from auto-fix (requires human judgment) Changes: - New src/lib/lint-fixer.ts with fixLintResult/fixAllLintResults/isFixable - New src/lib/lint-fixer.test.ts with 18 unit tests (all passing) - LintView UI: Auto Fix (Sparkles) + Fix All (Zap) buttons - i18n: autoFix/fixAll/fixingAll in en.json + zh.json Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #196 - lint now has auto-repair capability for broken links, missing cross-references, contradictions, stale content, and missing pages.
Summary
Introduces a Wiki Fixer Agent that automatically repairs LLM Wiki issues detected by the lint system. Previously, lint could only identify problems; users had to manually review and fix each issue. This PR adds LLM-powered auto-repair for most issue types.
Features
[[wikilink]][[wikilinks]]to existing pagesChanges
src/lib/lint-fixer.ts— core fixer logic withfixLintResult(),fixAllLintResults(),isFixable()src/lib/lint-fixer.test.ts— 18 unit tests (all passing)src/components/lint/lint-view.tsx— UI enhancements (Auto Fix + Fix All buttons)src/i18n/en.json+src/i18n/zh.json— new translation keysTest plan
🤖 Generated with Claude Code
via Happy