@ai-matrx/content-ir 0.14.0 → 0.14.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
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.1 — 2026-09-25
4
+
5
+ **Single-dollar math: an adversarial review of the widened rule** (RC-B2's
6
+ single-letter shapes, shipped in 0.14.0). Stored-text impact, every row diffed
7
+ 0.13.0 → 0.14.x: 11 chat text parts gain 37 math spans, 0 lost; notes, agent
8
+ messages, templates and skills unchanged; every gained span is a real shape
9
+ (`f(x)`, `(x, y)`, `(-x, y)`, `f(x-y)`). Two synthetic false positives found
10
+ by probing (none in stored data) are closed: a contraction (`$I'm$` — a prime
11
+ is never followed by a letter) and an abbreviation (`$e.g. (x)$` — a lone
12
+ letter is never followed by a period) stay text. Guard: 6 new cases in
13
+ `__tests__/single-dollar-math.test.ts` (3 red before).
14
+
15
+ **Consumer action:** none.
16
+
3
17
  ## 0.14.0 — 2026-09-25
4
18
 
5
19
  **`/source` — RC-B3 polish: the re-verification residuals, and the verifier's
package/dist/index.cjs CHANGED
@@ -5239,6 +5239,7 @@ function isMathShape(content) {
5239
5239
  const words = content.match(/[A-Za-z]+/g);
5240
5240
  if (!words) return false;
5241
5241
  if (!words.every((w) => w.length === 1 || FUNCTION_NAMES.has(w))) return false;
5242
+ if (/[A-Za-z]'+[A-Za-z]/.test(content) || /(?:^|[\s(,])[A-Za-z]\.(?:[A-Za-z]\.|\s|$)/.test(content)) return false;
5242
5243
  return /[A-Za-z]'*\(|[A-Za-z]'|\b[A-Za-z]\s+[A-Za-z]\b|\([^)]*[A-Za-z][^)]*\)/.test(content);
5243
5244
  }
5244
5245
  function isSingleDollarMath(content, after) {