Skip to content

Keyword entità HTML: supporto input maiuscolo accentato + test hardening (v0.25.2)#65

Merged
aborruso merged 1 commit into
mainfrom
fix/html-entity-uppercase-and-test
Jul 13, 2026
Merged

Keyword entità HTML: supporto input maiuscolo accentato + test hardening (v0.25.2)#65
aborruso merged 1 commit into
mainfrom
fix/html-entity-uppercase-and-test

Conversation

@aborruso

Copy link
Copy Markdown
Member

Follow-up alla PR #64 (già mergiata), recepisce due rilievi Copilot arrivati dopo il merge.

Fix

  1. Uppercase accentatohtmlEntityKeywordVariants mappava solo le vocali accentate minuscole. Con una keyword in maiuscolo (CRIMINALITÀ) la variante HTML-encoded non veniva generata (la À maiuscola non era nel regex): pur essendo il match SPARQL LCASE-insensitive, senza la variante À il confronto sul dato grezzo criminalità falliva. Aggiunte À/È/É/Ì/Ò/Ù a mappa e regex.

  2. Test hardening — il test di regressione usava limit: 10, fragile: 19 atti matchano criminalità, quindi al variare dell'ordinamento ac19_2696 poteva uscire dalla finestra. Portato a limit: 100 e aggiunto un caso con input maiuscolo.

Verifica

  • tsc --noEmit OK, build CLI + Worker OK
  • npm test -- --run: 162/162 verdi (era 161 + 1 nuovo caso)
  • 43 tool invariati

Include il bump di versione 0.25.2 nei 5 punti di sync (release patch per questo bug ad alto impatto).

🤖 Generated with Claude Code

Recepiti due rilievi Copilot sulla PR #64:
- htmlEntityKeywordVariants ora mappa anche À/È/É/Ì/Ò/Ù → la variante
  encoded viene generata pure con keyword maiuscola (es. CRIMINALITÀ)
- test di regressione keyword: limit 10 → 100 (fragile all'ordinamento,
  19 atti matchano) + nuovo caso maiuscolo

Bump versione 0.25.2 nei 5 punti.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 13, 2026 16:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Questo PR è un follow-up al fix “keyword vs entità HTML” per i titoli Camera: estende la generazione delle varianti HTML-entity per gestire anche input maiuscolo accentato (es. CRIMINALITÀ) e irrobustisce il test di regressione, includendo anche il bump di versione a v0.25.2 nei punti di sync del progetto.

Changes:

  • Estesa htmlEntityKeywordVariants per includere le vocali accentate maiuscole (À/È/É/Ì/Ò/Ù) sia nella mappa sia nel regex di sostituzione.
  • Harden del test di regressione per bills --keyword: limit portato a 100 e aggiunto caso con input maiuscolo accentato.
  • Bump versione a 0.25.2 (package, manifest, server, worker, User-Agent) e aggiornamento LOG.md.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/core/html-entity-variants.ts Aggiunge supporto a entità HTML per vocali accentate maiuscole nella generazione varianti keyword.
src/tools/tools.test.ts Rende il test meno fragile (limit 100) e aggiunge regressione per keyword maiuscola accentata.
src/core/client.ts Aggiorna lo User-Agent alla nuova versione 0.25.2.
src/server.ts Aggiorna la versione esposta dal server MCP a 0.25.2.
src/worker.ts Aggiorna la versione esposta dal Worker a 0.25.2.
package.json Bump versione npm package a 0.25.2.
manifest.json Bump versione manifest a 0.25.2.
LOG.md Aggiunge entry di release v0.25.2 con contesto del fix e test hardening.

@greptile-apps

greptile-apps Bot commented Jul 13, 2026

Copy link
Copy Markdown

Greptile Summary

This PR releases a small keyword matching fix for HTML entity variants.

  • Bumps package, manifest, server, Worker, and User-Agent versions to 0.25.2.
  • Adds uppercase Italian accented vowels to htmlEntityKeywordVariants.
  • Hardens the Camera bills keyword tests with a larger result window and an uppercase accented input case.
  • Documents the patch release in LOG.md.

Important Files Changed

Filename Overview
src/core/html-entity-variants.ts Adds uppercase accented vowel mappings to the HTML entity variant helper.
src/tools/tools.test.ts Expands Camera bills keyword coverage for lowercase and uppercase accented input.
package.json Updates the npm package version to 0.25.2.
manifest.json Updates the DXT manifest version to 0.25.2.
src/core/client.ts Updates the SPARQL request User-Agent version string.
src/server.ts Updates the MCP server version metadata.
src/worker.ts Updates the Worker metadata endpoint version.
LOG.md Adds the v0.25.2 changelog entry.

Reviews (1): Last reviewed commit: "fix(camera): keyword entità HTML anche c..." | Re-trigger Greptile

@aborruso
aborruso merged commit ec4d56b into main Jul 13, 2026
3 checks passed
@aborruso
aborruso deleted the fix/html-entity-uppercase-and-test branch July 13, 2026 16:20
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.

2 participants