@agent-inspect/viewer 6.12.2 → 6.13.0

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/dist/index.cjs CHANGED
@@ -2419,11 +2419,16 @@ function projectLogicalEvents(events) {
2419
2419
  }
2420
2420
  if (!remapped) {
2421
2421
  if (!logicalById.has(originalParentId) && !logicalByRawId.has(originalParentId)) {
2422
- diagnostics.push({
2423
- code: "AI_LOGICAL_PARENT_UNRESOLVED",
2424
- message: `Parent ${originalParentId} unresolved for ${event.eventId}.`,
2425
- eventIds: [event.eventId]
2426
- });
2422
+ const mapping = event.attributes?.parentMapping;
2423
+ const unresolved = mapping === "unresolved" || event.attributes?.parentUnresolved === true || event.attributes?.unresolvedParent === true || // LangGraph/framework scaffolding sentinel labels are not event ids.
2424
+ /^LangGraph$/i.test(originalParentId) || originalParentId.startsWith("unresolved:");
2425
+ if (!unresolved) {
2426
+ diagnostics.push({
2427
+ code: "AI_LOGICAL_PARENT_UNRESOLVED",
2428
+ message: `Parent ${originalParentId} unresolved for ${event.eventId}.`,
2429
+ eventIds: [event.eventId]
2430
+ });
2431
+ }
2427
2432
  }
2428
2433
  normalized.push(event);
2429
2434
  continue;