Add uniqueness search section#32
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #27
Working session summaryImplemented and pushed PR 32: #32 Added the Verification passed locally: PR is ready for review, worktree is clean, and fresh CI passed on head
This summary was automatically extracted from the AI working session output. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (468.4K + 17.5M cached) input tokens, 60.5K output tokens, $24.903008 cost 🤖 Models used:
📎 Log file uploaded as Repository (75318KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
🎉 Auto-mergedThis pull request has been automatically merged by hive-mind.
Auto-merged by hive-mind with --auto-merge flag |
Summary
Fixes #27.
Adds a new statement uniqueness workflow that searches detected statements across public sources and estimates whether prior exact or similar wording already exists. The issue title typo is supported as an alias, so
/uniqunessresolves to the new/uniquenessimplementation.What Changed
searchTextUniqueness()with default Wikimedia, OpenAlex, Crossref, and DuckDuckGo Instant Answer source adapters.uniquenessanduniquness, plus HTTPGET/POST /uniquenessandGET/POST /uniqunessroutes.docs/case-studies/issue-27.Reproduction
Before this PR, there was no
/uniqunessor/uniquenesssection, API, CLI command, or server route for checking whether statements already appear in public works.To verify the fix locally:
npm startand requesthttp://127.0.0.1:3000/uniqueness?input=Earth%20orbits%20the%20Sun.&format=markdown.node src/cli.js uniquness --input "Earth orbits the Sun." --format markdownto verify the issue-title typo alias.web/#/uniqueness, then click Search.Screenshot
Testing
node --test tests/issue-27.test.jsnpm testnpm run checkbun testdeno test --allow-readscripts/check-file-line-limits.shgit diff --checkweb/#/uniquenesswith mocked public API responses, screenshot capture, and zero browser console errors/warnings.