@ai-matrx/content-ir 0.22.4 → 0.22.6

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.22.6
4
+
5
+ - `startsLikeTableRow` / `isGrowingDelimiterRow` (the streaming forms of the table rule) now live in `source/gfm-table.ts` beside the rest of THE GFM table rule; the public exports are unchanged (AP-2: `check-table-readers` green with an empty baseline).
6
+
7
+ **Consumer action:** none.
8
+
9
+ ## 0.22.5
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/content-ir-core/v0.22.4..npm/content-ir-core/v0.22.5 -- apps/shared/content-ir-core`).
13
+ No source changes intended and no consumer action required.
14
+
3
15
  ## 0.22.4
4
16
 
5
17
  - The cross-package one-code-range gate is green against Rich Content's readable-copy path, which now consumes the canonical `fenceOpenerOf`, `closeFence`, and `FenceLines` contract instead of defining a private fence parser.
@@ -1305,3 +1317,4 @@ unchanged. Two things are worth doing at your next working session:
1305
1317
  - Added ESM and declaration builds, package linting, packed-artifact analysis, and an isolated consumer canary.
1306
1318
  - Preserved all parser, session, normalization, schema conversion, and structural-validation behavior with the existing shared fixtures and fingerprint vectors.
1307
1319
 
1320
+
package/dist/index.cjs CHANGED
@@ -6407,6 +6407,12 @@ function findTableEnd(lines, start) {
6407
6407
  while (end < lines.length && continuesTable(lines[end] ?? "", container)) end += 1;
6408
6408
  return end;
6409
6409
  }
6410
+ function startsLikeTableRow(line) {
6411
+ return /^\s*\|/.test(line);
6412
+ }
6413
+ function isGrowingDelimiterRow(line) {
6414
+ return /^[\s|:-]*-[\s|:-]*$/.test(line);
6415
+ }
6410
6416
 
6411
6417
  // source/tokenize.ts
6412
6418
  var QUOTE_PREFIX = /^ {0,3}>(?: ?>)* ?/;
@@ -8485,12 +8491,6 @@ function findWholeTableStart(lines, from = 0) {
8485
8491
  for (let i = Math.max(0, from); i + 1 < lines.length; i += 1) if (tableStartsAt(lines, i)) return i;
8486
8492
  return -1;
8487
8493
  }
8488
- function startsLikeTableRow(line) {
8489
- return /^\s*\|/.test(line);
8490
- }
8491
- function isGrowingDelimiterRow(line) {
8492
- return /^[\s|:-]*-[\s|:-]*$/.test(line);
8493
- }
8494
8494
  function trailingTableStart(lines, end = lines.length) {
8495
8495
  const isTableLine = (line) => startsLikeTableRow(line) || continuesTable(line.trimStart());
8496
8496
  let start = end;