@wirecat/cli-base 0.66.0 → 0.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,14 @@ Versions before 0.8.0 are in the [git tags](https://github.com/WireCatLabs/cli-b
8
8
  Every entry says what changed as a caller sees it, why, and what to watch for — the rules are
9
9
  [`docs/dev/CONVENTIONS.md`](docs/dev/CONVENTIONS.md#the-changelog).
10
10
 
11
+ ## 0.66.1 — 31.10.2026
12
+
13
+ ### Fixed
14
+
15
+ - **`implicitTextTerms` counts a bare number as a word.** It left out every number token, so a question with a
16
+ number ("do logs expire after 21 days") looked like query syntax: cli-core's `--discover` then ran strict search
17
+ and usually found nothing. A number that is a field's value (`size:>2`) is still not a bare word.
18
+
11
19
  ## 0.66.0 — 31.10.2026
12
20
 
13
21
  ### Added
@@ -321,7 +321,7 @@ export const implicitTextTerms = (text) => {
321
321
  const tokens = tokensOf(text);
322
322
  if (tokens.some(({ kind }) => ["AND", "OR", "NOT", "+", "-", "!", "(", ")"].includes(kind)))
323
323
  return new Set();
324
- return new Set(tokens.flatMap((token, index) => token.kind === "term" &&
324
+ return new Set(tokens.flatMap((token, index) => (token.kind === "term" || token.kind === "number") &&
325
325
  ![":", "=", "<", ">", "<=", ">="].includes(tokens[index - 1]?.kind ?? "") &&
326
326
  ![":", "=", "<", ">", "<=", ">="].includes(tokens[index + 1]?.kind ?? "")
327
327
  ? [token.span.start]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-base",
3
- "version": "0.66.0",
3
+ "version": "0.66.1",
4
4
  "description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",