@ai-matrx/agents 0.21.4 → 0.21.5

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,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.21.5
4
+
5
+ ### Fixed (in `./context`)
6
+
7
+ - A record that merely has a `content` key (a note `{ id, title, content }`) was treated as a rich
8
+ envelope: its size was measured on `.content` only, and it was sent as
9
+ `{ id, title, content, label, max_inline_chars }`, which the server reads as raw content — the
10
+ page limit was silently lost. Envelope detection now matches the server exactly: own `content`
11
+ and every key in `RICH_ENVELOPE_KEYS` (aidream `_RICH_FORM_KEYS`); anything else is wrapped as
12
+ `{ content: record, … }`. Applies to `resolveContextRow` sizing, `buildContextWire` and
13
+ `serverDefaultMax`.
14
+
15
+ ### Added
16
+
17
+ - `RICH_ENVELOPE_KEYS`, `isRichEnvelope(value)`, `splitContextValue(value)` (the twin of aidream
18
+ `_split_rich_context_value`). Corpus `envelope_cases`, run here and by aidream pytest.
19
+
20
+ ### Consumer action
21
+
22
+ - matrx-frontend: no API change; drop any local "is this an envelope" check in favor of
23
+ `isRichEnvelope` / `splitContextValue` from `@ai-matrx/agents/context`.
24
+
3
25
  ## 0.21.4
4
26
 
5
27
  Automatic changed-only republish (docs/metadata drift since the last tag — see