baro-ai 0.81.1 → 0.81.2

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.
@@ -48187,15 +48187,16 @@ function parseSegmentResponse(raw, targets, decisionIds, maxObligations) {
48187
48187
  }
48188
48188
  const decisionRank = new Map(decisionIds.map((id, index) => [id, index]));
48189
48189
  const draftDecisionIds = [];
48190
+ const DRAFT_KEYS = [
48191
+ "adrIds",
48192
+ "invariantIds",
48193
+ "subject",
48194
+ "scenario",
48195
+ "expectedOutcome",
48196
+ "evidence"
48197
+ ];
48190
48198
  const numbered = value.obligations.map((candidate, index) => {
48191
- if (!exactRecord3(candidate, [
48192
- "adrIds",
48193
- "invariantIds",
48194
- "subject",
48195
- "scenario",
48196
- "expectedOutcome",
48197
- "evidence"
48198
- ])) {
48199
+ if (!exactRecord3(candidate, DRAFT_KEYS) && !exactRecord3(candidate, [...DRAFT_KEYS, "id"])) {
48199
48200
  throw new ArchitectObligationSegmentError(
48200
48201
  `architect obligation draft ${index + 1} must use the exact shape without an id`
48201
48202
  );