Skip to content

Add uniqueness search section#32

Merged
konard merged 3 commits into
mainfrom
issue-27-77fbe1d5f177
May 10, 2026
Merged

Add uniqueness search section#32
konard merged 3 commits into
mainfrom
issue-27-77fbe1d5f177

Conversation

@konard
Copy link
Copy Markdown
Contributor

@konard konard commented May 10, 2026

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 /uniquness resolves to the new /uniqueness implementation.

What Changed

  • Added searchTextUniqueness() with default Wikimedia, OpenAlex, Crossref, and DuckDuckGo Instant Answer source adapters.
  • Added CLI commands uniqueness and uniquness, plus HTTP GET/POST /uniqueness and GET/POST /uniquness routes.
  • Added a static web Uniqueness page with statement coloring, summary metrics, source matches, Markdown output, and Links Notation output.
  • Added page issue-report capture for uniqueness input, status, rendered output, matches, Markdown, and Links Notation.
  • Captured issue requirements, API/CORS research, source probes, and solution notes under docs/case-studies/issue-27.
  • Added a minor changeset for the new public API and web/CLI/server surface.

Reproduction

Before this PR, there was no /uniquness or /uniqueness section, API, CLI command, or server route for checking whether statements already appear in public works.

To verify the fix locally:

  1. Run npm start and request http://127.0.0.1:3000/uniqueness?input=Earth%20orbits%20the%20Sun.&format=markdown.
  2. Run node src/cli.js uniquness --input "Earth orbits the Sun." --format markdown to verify the issue-title typo alias.
  3. Serve the static app and open web/#/uniqueness, then click Search.

Screenshot

Uniqueness page

Testing

  • node --test tests/issue-27.test.js
  • npm test
  • npm run check
  • bun test
  • deno test --allow-read
  • scripts/check-file-line-limits.sh
  • git diff --check
  • Playwright browser verification for web/#/uniqueness with mocked public API responses, screenshot capture, and zero browser console errors/warnings.

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #27
@konard konard self-assigned this May 10, 2026
@konard konard changed the title [WIP] Add /uniquness section Add uniqueness search section May 10, 2026
@konard konard marked this pull request as ready for review May 10, 2026 13:27
@konard
Copy link
Copy Markdown
Contributor Author

konard commented May 10, 2026

Working session summary

Implemented and pushed PR 32: #32

Added the /uniqueness section with /uniquness compatibility alias across library API, CLI, HTTP server, and static web UI. The PR also includes source adapters for Wikimedia/OpenAlex/Crossref/DuckDuckGo, issue-27 case-study docs and CORS probe data, a committed UI screenshot, a changeset, and regression tests for exact matches plus noisy unrelated provider results.

Verification passed locally:
node --test tests/issue-27.test.js, npm test, npm run check, bun test, deno test --allow-read, scripts/check-file-line-limits.sh, git diff --check, plus Playwright UI verification.

PR is ready for review, worktree is clean, and fresh CI passed on head 1f08550:


This summary was automatically extracted from the AI working session output.

@konard
Copy link
Copy Markdown
Contributor Author

konard commented May 10, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-5.5
  • Provider: OpenAI
  • Public pricing estimate: $24.903008

📊 Context and tokens usage:

  • 468.4K / 1.1M (45%) input tokens, 60.5K / 128K (47%) output tokens

Total: (468.4K + 17.5M cached) input tokens, 60.5K output tokens, $24.903008 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.5
  • Model: GPT-5.5 (gpt-5.5)

📎 Log file uploaded as Repository (75318KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard konard merged commit 4ec2049 into main May 10, 2026
23 checks passed
@konard
Copy link
Copy Markdown
Contributor Author

konard commented May 10, 2026

🎉 Auto-merged

This pull request has been automatically merged by hive-mind.

  • All CI checks have passed

Auto-merged by hive-mind with --auto-merge flag

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.

Add /uniquness section

1 participant