@ixo/editor 6.27.0 → 6.27.1

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.
@@ -12985,8 +12985,20 @@ async function retryPendingRunTimelineEvents(params) {
12985
12985
  ...lastEventId ? { lastEventId } : {}
12986
12986
  };
12987
12987
  }
12988
+ function toCanonicalJsonSafe(value) {
12989
+ if (typeof value === "number") {
12990
+ return Number.isSafeInteger(value) ? value : String(value);
12991
+ }
12992
+ if (Array.isArray(value)) return value.map(toCanonicalJsonSafe);
12993
+ if (value && typeof value === "object") {
12994
+ const result = {};
12995
+ for (const [key, entry] of Object.entries(value)) result[key] = toCanonicalJsonSafe(entry);
12996
+ return result;
12997
+ }
12998
+ return value;
12999
+ }
12988
13000
  function boundRunEventJson(value) {
12989
- const json = value === void 0 ? null : JSON.parse(JSON.stringify(value));
13001
+ const json = value === void 0 ? null : toCanonicalJsonSafe(JSON.parse(JSON.stringify(value)));
12990
13002
  if (jsonByteLength(json) <= MAX_RUN_ACTION_OUTPUT_BYTES) return json;
12991
13003
  const wrapped = json && typeof json === "object" && !Array.isArray(json) ? boundRunActionOutput(json).output : boundRunActionOutput({ value: json }).output;
12992
13004
  return wrapped;
@@ -18563,4 +18575,4 @@ export {
18563
18575
  executeQueuedFlowAgentCoreCommands,
18564
18576
  FlowAgentService
18565
18577
  };
18566
- //# sourceMappingURL=chunk-JNON3IP3.js.map
18578
+ //# sourceMappingURL=chunk-WGCOGBWG.js.map