@ai-matrx/content-ir 0.21.2 → 0.22.2

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,46 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.22.2
4
+ ### Unreleased
5
+
6
+ ### Portable registry declarations
7
+
8
+ - Install the React type declarations required by the public registry contracts.
9
+ The parser still has no React runtime dependency.
10
+ - Check the packed package from an empty TypeScript project through both ESM
11
+ and CommonJS with library checking enabled and no ambient workspace types.
12
+
13
+ ### Consumer action
14
+
15
+ - None required. Clean consumers no longer need to add `@types/react` manually.
16
+
17
+ ## 0.22.1
18
+
19
+ First published release of the 0.22 line (the `npm/content-ir-core/v0.22.0` tag never published: the
20
+ `one-code-range-rule` census was red against the relocated chat tree; it now records the real tree).
21
+
22
+ ## 0.22.0 (unpublished)
23
+
24
+ ### New subpath `@ai-matrx/content-ir/surfaces` — kind-aware text surfaces (rich-content extraction)
25
+
26
+ - Moved verbatim from `@ai-matrx/chat` `utils/content-ir/**` (parked there by chat-package-move P14): the JSON-kind
27
+ signal, embedded kind JSON, kind value → markdown, one-line and label projections, quoted-kind lift, escaped-kind
28
+ recovery, image-alt unwrap, the instance-title rule, the legacy quiz envelope, the envelope parity predicate and the
29
+ decision-answers ids. Pure TS, shared by both block splitters and the server-side shape doctors.
30
+ - `registerKindValueMarkdown` keeps its registration on `globalThis` (`Symbol.for("ai-matrx.content-ir.kind-value-markdown")`)
31
+ and announces an unregistered host once on the console.
32
+ - Strict-mode fixes only (`noUncheckedIndexedAccess` assertions where the bound is already checked); no behavior change.
33
+
34
+ ### `/source` `readXmlTag`: requires a `<` at `start`
35
+
36
+ - The chat copy carried the RC-B3r guard and this one did not: `description: >-` was read as a tag named `escription:`
37
+ when a caller started one character early. Now one reader with the guard; the chat copy is deleted in rich-content
38
+ phase 3.
39
+
40
+ ### Consumer action
41
+
42
+ - None required. New code should import these helpers from `@ai-matrx/content-ir/surfaces`, not from `@ai-matrx/chat`.
43
+
3
44
  ## 0.21.2
4
45
 
5
46
  ### `/source`: a ```json fence's string state never crosses a line end (never-raw R11 H2)
package/dist/index.cjs CHANGED
@@ -6059,6 +6059,7 @@ var XML_NAME_START = /[A-Za-z_]/;
6059
6059
  var XML_NAME_CHARACTER = /[\w.:-]/;
6060
6060
  var WHITESPACE = /\s/;
6061
6061
  function readXmlTag(content, start, find = (needle, from) => content.indexOf(needle, from)) {
6062
+ if (content[start] !== "<") return null;
6062
6063
  let cursor = start + 1;
6063
6064
  const isClosing = content[cursor] === "/";
6064
6065
  if (isClosing) cursor++;