@industry-theme/principal-view-panels 0.12.73 → 0.12.74

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.
@@ -5,23 +5,22 @@
5
5
  * Uses event schemas defined in canvas nodes to determine which node
6
6
  * should be highlighted when an event is played back.
7
7
  */
8
- import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
9
- import type { OtelAttributes } from '@principal-ai/principal-view-core';
8
+ import type { ExtendedCanvas, OtelAttributes } from '@principal-ai/principal-view-core';
10
9
  /**
11
10
  * Event from execution artifact
12
11
  */
13
12
  export interface ExecutionEvent {
14
13
  name: string;
15
14
  time: number;
15
+ /** Kept for API compatibility - not currently used for matching */
16
16
  attributes?: OtelAttributes;
17
17
  }
18
18
  /**
19
19
  * Maps an execution event to a canvas node ID.
20
20
  *
21
- * Strategy:
22
- * 1. Primary: Match event name to node's pv.event.name
23
- * 2. Fallback: Match event attributes to node's pv.otel.resourceMatch
24
- * 3. Default: Return null (no highlight)
21
+ * Matches by event name using the canonical getNodeEventName() from core,
22
+ * which supports all event reference formats (pv.event.name, pv.eventRef,
23
+ * top-level event.name, top-level eventRef).
25
24
  *
26
25
  * @param event - The execution event to map
27
26
  * @param canvas - The canvas containing nodes with OTEL metadata
@@ -1 +1 @@
1
- {"version":3,"file":"EventNodeMapper.d.ts","sourceRoot":"","sources":["../../../src/panels/execution-viewer/EventNodeMapper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,mCAAmC,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,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