From 28c2579fd21d0d4c60b5f861b53a026541dbc294 Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 20 Oct 2026 17:32:42 +0200 Subject: [PATCH] fix(search): take a WhatsApp chat id unquoted, on cli-base 0.47.3 cli-base 0.47.3 keeps an `@` followed by a letter inside a term, so `chat:@lid` and `chat:@g.us` no longer fail with query.unsupported-operator. cli-core now requires cli-base >=0.47.3 so a CLI cannot pair it with a parser that still refuses them. The `email` field help and docs/mentions.md said emails must be quoted because `@` is an operator; that was already false for addresses, and the examples are unquoted now. STANDARD.md is regenerated from the cli-base 0.47.3 standards (`--qr-file` gone, `--alias` added). Co-Authored-By: Claude Opus 5.5 (1M context) --- CHANGELOG.md | 7 +++++++ docs/dev/STANDARD.md | 2 +- docs/mentions.md | 2 +- docs/search/query-language.md | 2 +- package.json | 4 ++-- pnpm-lock.yaml | 10 +++++----- src/search/lucene/registry.test.ts | 9 +++++++++ src/search/lucene/registry.ts | 2 +- 8 files changed, 27 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c002d358f..f73ed43ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ shape of this file. ## Unreleased +### Fixed + +- **A WhatsApp chat id works unquoted in a query.** `chat:133…@lid` and `chat:120…@g.us` parse as one term; before, + `@lid` was refused with `query.unsupported-operator`. The fix is in cli-base 0.47.3, so cli-core now needs + `@wirecat/cli-base >=0.47.3`: a CLI pinned to 0.47.0–0.47.2 must raise its own cli-base pin with this release. + Emails in the `email` field help and the search docs are unquoted too. + ## 0.374.0 — 20.10.2026 ### Added diff --git a/docs/dev/STANDARD.md b/docs/dev/STANDARD.md index cff960335..535daaf95 100644 --- a/docs/dev/STANDARD.md +++ b/docs/dev/STANDARD.md @@ -333,7 +333,6 @@ table. "Not" lists the words a term replaces. How `cli-dev lint` runs over a CLI | `--by` | `` | choice | what the answer counts or groups by: a field or a calendar unit | | | `--context` | `` | count | how many messages before and after each hit | messages | | `--events` | | switch | also print edits, deletions and other changes; every line names its event | | -| `--qr-file` | `` | path | write the login QR code to this PNG instead of drawing it | | | `--all-versions` | | switch | also the earlier versions a newer one replaced | | | `--measure` | `` | choice | the metric a ranking is ordered by | | | `--newest` | | switch | newest first instead of best first | | @@ -483,6 +482,7 @@ table. "Not" lists the words a term replaces. How `cli-dev lint` runs over a CLI | `--render` | `` | choice | how returned cell values are represented: formatted display values, unformatted values or formulas | | | `--context-source` | `` | string | explicitly selected communications source, optionally with its scoped continuation cursor; repeat for more sources | | | `--context-query` | `` | string | literal words to find within the communications selected for preparation | | +| `--alias` | `` | string | another name of the thing, searched as its own alternative beside its name; repeat for more | | | `--context-since-time` | `