@ai-matrx/records 0.81.3 → 0.82.0

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,22 @@
1
1
  # Changelog — @ai-matrx/records
2
2
 
3
+ ## Unreleased — lane DESCRIBE-BENCH2: a rollup or lookup in the wrong shape is read, not refused
4
+
5
+ - `autofixDescribeSpec` (so `describeCheck` and the live box) rewrites a rollup or lookup written as `{rollup:{relation,field,fn}}`, `{lookup:{relationField,targetField}}`, `rollupVia/rollupField/rollupFn`, `through/aggregate` and ~20 other spellings into the validator's `via` / `pick` / `agg`, with an auto-fix note, when the relation field, the far field and the aggregate word are unambiguous (sum/total, count, avg/average/mean, min, max …). A rollup through a single link makes that link a list (and its relationship `many`). An unknown relation or aggregate is left for the check to name — nothing is invented.
6
+ - `describeVocabulary()` gains `rollup_shape` and `lookup_shape`: the rule in one sentence and one tiny example in the validator's keys, handed to every describe arm.
7
+ - Confirmed: the 20% governance quota is a gallery bar and the describe profile does not refuse it (0.80.9; guarded by `governance-quota.test.ts`).
8
+ - Bench scripts read a raw answer through the platform's whole-document repair (`content-ir` json-extract), never a hand slice; the scorer re-runs the box's post-processing (safeReuses → describeCheck) with the current package.
9
+
10
+ **Consumer action:** none (matrx-frontend picks it up on update).
11
+
12
+ ## 0.82.0 — workbook bytes from print, no alchemy
13
+
14
+ - Spreadsheet import/export reads and writes through `@ai-matrx/print/xlsx` (the one SheetJS
15
+ engine). records no longer depends on `@ai-matrx/alchemy`, removing the records -> alchemy
16
+ layer violation (architecture step 13).
17
+
18
+ Consumer action: none.
19
+
3
20
  ## 0.81.3
4
21
  ### lane DRILL-FACTS: a records page is its count
5
22
 
@@ -944,7 +944,7 @@ function exportCellText(value) {
944
944
  return JSON.stringify(value);
945
945
  }
946
946
  async function exportPageXlsx(page2, labels = {}, sheetLabel = "Records") {
947
- const { writeWorkbookBytes } = await import("@ai-matrx/alchemy/operate/formats/xlsx");
947
+ const { writeWorkbookBytes } = await import("@ai-matrx/print/xlsx");
948
948
  const header = page2.columns.map((c) => labels[c] ?? c);
949
949
  const body = page2.rows.map((row) => page2.columns.map((c) => exportCellText(row[c])));
950
950
  const name = sheetLabel.replace(/[\\/?*[\]:]/g, " ").trim().slice(0, 31) || "Records";