agentfootprint-lens 0.30.0 → 0.31.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.
@@ -2588,10 +2588,37 @@ function cursorProvenance(runner, cursorRuntimeStageId) {
2588
2588
  }
2589
2589
 
2590
2590
  // src/core/explainableShellProps.ts
2591
+ var SHELL_ENTRY_TYPES = {
2592
+ stage: true,
2593
+ step: true,
2594
+ condition: true,
2595
+ fork: true,
2596
+ selector: true,
2597
+ subflow: true,
2598
+ loop: true,
2599
+ break: true,
2600
+ error: true,
2601
+ pause: true,
2602
+ resume: true,
2603
+ emit: true,
2604
+ // eui >= 0.32.0 renders retry with its own icon, label and warning-weight
2605
+ // colour. Listing it here IS the passthrough — there is no separate branch.
2606
+ retry: true
2607
+ };
2608
+ var GENERIC_ENTRY_TYPE = "step";
2609
+ function isShellEntryType(type) {
2610
+ return Object.prototype.hasOwnProperty.call(SHELL_ENTRY_TYPES, type);
2611
+ }
2612
+ function toShellNarrativeEntries(entries) {
2613
+ return entries.map((entry) => {
2614
+ const { type } = entry;
2615
+ return isShellEntryType(type) ? { ...entry, type } : { ...entry, type: GENERIC_ENTRY_TYPE };
2616
+ });
2617
+ }
2591
2618
  function explainableShellPropsFromRunner(agent, recorder) {
2592
2619
  return {
2593
2620
  runtimeSnapshot: agent.getLastSnapshot() ?? null,
2594
- narrativeEntries: [...agent.getLastNarrativeEntries()],
2621
+ narrativeEntries: toShellNarrativeEntries(agent.getLastNarrativeEntries()),
2595
2622
  traceGraph: structureGraphFromRunner(agent, { decorate: false }),
2596
2623
  runtimeOverlay: recorder.runtime.getOverlay()
2597
2624
  };
@@ -2836,4 +2863,4 @@ export {
2836
2863
  defaultSize,
2837
2864
  layoutLensGraph
2838
2865
  };
2839
- //# sourceMappingURL=chunk-6UG5QBDF.js.map
2866
+ //# sourceMappingURL=chunk-4AJK5TZQ.js.map