Skip to content

[codex] Add reviewable Auto Link workflow#456

Open
nan-doctor wants to merge 16 commits into
nashsu:mainfrom
nan-doctor:main
Open

[codex] Add reviewable Auto Link workflow#456
nan-doctor wants to merge 16 commits into
nashsu:mainfrom
nan-doctor:main

Conversation

@nan-doctor

Copy link
Copy Markdown

Overview

Adds a reviewable Auto Link workflow to the wiki reader so suggested wikilinks can be inspected before any file is changed.

Main changes

  • Split wikilink discovery and application into separate suggestion/apply APIs while preserving the existing automatic enrichment entry point.
  • Build and validate a page catalog, recall alternative targets, and rank suggestions into High, Medium, and Low confidence bands.
  • Add a reader toolbar action and review dialog with default selection for high-confidence suggestions, target alternatives, per-term/per-target ignore actions, and explicit apply/cancel controls.
  • Persist project-scoped ignore rules and guard review mutations against stale file or project state.
  • Avoid duplicate/overlapping links and terms that already fall inside existing wikilinks.
  • Add the Auto Link design specification and focused automated coverage.

Validation

  • npm run typecheck
  • npx vitest run src/lib/enrich-wikilinks.test.ts src/lib/enrich-wikilinks.scenarios.test.ts src/lib/page-catalog.test.ts src/lib/auto-link-ignore.test.ts src/lib/auto-link-candidates.test.ts src/lib/auto-link-review-state.test.ts src/lib/auto-link-review.test.ts
    • 7 test files passed
    • 87 tests passed
  • Manually verified in the Tauri desktop app: the Auto Link action is visible, opens the review dialog, presents confidence-banded suggestions, and can be cancelled without writing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant