@forwardimpact/libeval 0.1.43 → 0.1.45

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.
@@ -40,6 +40,7 @@ export class TraceCollector {
40
40
  * Malformed lines are silently skipped.
41
41
  * @param {string} line - A single JSON line from stream-json output
42
42
  */
43
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: NDJSON envelope unwrap + orchestrator/system/assistant/user dispatch
43
44
  addLine(line) {
44
45
  const trimmed = line.trim();
45
46
  if (!trimmed) return;
@@ -74,6 +75,9 @@ export class TraceCollector {
74
75
  ...(typeof event.turns === "number" && { turns: event.turns }),
75
76
  };
76
77
  }
78
+ if (event.type === "meta" && typeof event.discussion_id === "string") {
79
+ this.discussionId = event.discussion_id;
80
+ }
77
81
  return;
78
82
  }
79
83