@ai-matrx/agents 0.59.268 → 0.59.269

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,10 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## 0.59.268
3
+ ## 0.59.269
4
4
 
5
5
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/matrx-agents/src`.
7
7
 
8
+ ## 0.59.268
9
+
10
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 06a190b44e 5b7c48a99c -- apps/shared/matrx-agents/src`
11
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
12
+
8
13
  ## 0.59.267
9
14
  ### a kept value with no schema stays editable; a value's source reaches a phone
10
15
 
@@ -216,7 +216,18 @@ function mergeLevels(a, b) {
216
216
  ref: { ...a.ref, order: Math.min(a.ref.order ?? 0, b.ref.order ?? 0) },
217
217
  rows: [...a.rows, ...b.rows],
218
218
  groups,
219
- master: a.master ?? b.master
219
+ master: mergeMasters(a.master, b.master)
220
+ };
221
+ }
222
+ function mergeMasters(a, b) {
223
+ if (!a || !b) return a ?? b;
224
+ return {
225
+ level: a.level,
226
+ on: a.on || b.on,
227
+ onToggle: (next) => {
228
+ a.onToggle?.(next);
229
+ b.onToggle?.(next);
230
+ }
220
231
  };
221
232
  }
222
233
  function buildContextTree(levels) {
@@ -178,7 +178,18 @@ function mergeLevels(a, b) {
178
178
  ref: { ...a.ref, order: Math.min(a.ref.order ?? 0, b.ref.order ?? 0) },
179
179
  rows: [...a.rows, ...b.rows],
180
180
  groups,
181
- master: a.master ?? b.master
181
+ master: mergeMasters(a.master, b.master)
182
+ };
183
+ }
184
+ function mergeMasters(a, b) {
185
+ if (!a || !b) return a ?? b;
186
+ return {
187
+ level: a.level,
188
+ on: a.on || b.on,
189
+ onToggle: (next) => {
190
+ a.onToggle?.(next);
191
+ b.onToggle?.(next);
192
+ }
182
193
  };
183
194
  }
184
195
  function buildContextTree(levels) {