agentfootprint-lens 0.23.7 → 0.23.9

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
@@ -2930,7 +2930,6 @@ function layoutLensGraph(output, options = {}) {
2930
2930
  // src/react/Lens.tsx
2931
2931
  var import_react12 = __toESM(require("react"), 1);
2932
2932
  var import_agentfootprint5 = require("agentfootprint");
2933
- var import_flowchart5 = require("footprint-explainable-ui/flowchart");
2934
2933
 
2935
2934
  // src/react/lensNodeTypes.ts
2936
2935
  var import_flowchart3 = require("footprint-explainable-ui/flowchart");
@@ -3001,7 +3000,7 @@ var LensFlow = ({
3001
3000
  import_flowchart4.TracedFlow,
3002
3001
  {
3003
3002
  graph: chart.graph,
3004
- layout: chart.layout,
3003
+ ...chart.layout && { layout: chart.layout },
3005
3004
  ...traceRuntimeOverlay && { overlay: traceRuntimeOverlay },
3006
3005
  ...scrubIndex !== void 0 && { scrubIndex },
3007
3006
  ...onNodeClick && { onNodeClick },
@@ -3158,7 +3157,8 @@ var TimeTravel = ({
3158
3157
  focusSeq,
3159
3158
  onFocusChange,
3160
3159
  isLive,
3161
- compact
3160
+ compact,
3161
+ stepStrip = true
3162
3162
  }) => {
3163
3163
  const max = Math.max(0, total - 1);
3164
3164
  const step = (delta) => {
@@ -3238,7 +3238,40 @@ var TimeTravel = ({
3238
3238
  children: isLive ? "\u25CF Live" : "\u27F3 Live"
3239
3239
  }
3240
3240
  ),
3241
- compact ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { flex: 1 } }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { flex: 1, position: "relative", display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3241
+ compact ? stepStrip && total > 1 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3242
+ "div",
3243
+ {
3244
+ role: "group",
3245
+ "aria-label": "Steps",
3246
+ style: { flex: 1, display: "flex", alignItems: "center", gap: 2, minWidth: 120, padding: "0 4px" },
3247
+ children: Array.from({ length: total }, (_, i) => {
3248
+ const done = i < focusSeq;
3249
+ const here = i === focusSeq;
3250
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3251
+ "button",
3252
+ {
3253
+ onClick: () => onFocusChange(i),
3254
+ disabled,
3255
+ title: `Step ${i + 1} / ${total}`,
3256
+ "aria-label": `Go to step ${i + 1}`,
3257
+ "aria-current": here ? "step" : void 0,
3258
+ style: {
3259
+ flex: 1,
3260
+ minWidth: 3,
3261
+ height: here ? 16 : 9,
3262
+ padding: 0,
3263
+ border: "none",
3264
+ borderRadius: 3,
3265
+ cursor: disabled ? "default" : "pointer",
3266
+ background: here ? T.warning : done ? T.success : T.border,
3267
+ transition: "height 0.12s ease, background 0.12s ease"
3268
+ }
3269
+ },
3270
+ i
3271
+ );
3272
+ })
3273
+ }
3274
+ ) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { flex: 1 } }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { flex: 1, position: "relative", display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3242
3275
  "input",
3243
3276
  {
3244
3277
  type: "range",
@@ -5020,6 +5053,7 @@ var Lens = ({
5020
5053
  stepGraph,
5021
5054
  chart,
5022
5055
  view = "engineer",
5056
+ stepStrip = true,
5023
5057
  humanizer,
5024
5058
  appName,
5025
5059
  commentaryTemplates,
@@ -5035,7 +5069,9 @@ var Lens = ({
5035
5069
  graph: structureGraphFromRunner(
5036
5070
  runner
5037
5071
  ),
5038
- layout: import_flowchart5.dagreTraceLayout,
5072
+ // No `layout` → TracedFlow uses its built-in measure-then-layout
5073
+ // pipeline (content-exact sizing + fork-centering + straight spines),
5074
+ // and inherits every future eui layout improvement automatically.
5039
5075
  nodeTypes: LENS_NODE_TYPES
5040
5076
  } : void 0),
5041
5077
  [chart, runner]
@@ -5115,6 +5151,7 @@ var Lens = ({
5115
5151
  focusStep,
5116
5152
  onFocusChange: handleFocusChange,
5117
5153
  isLive,
5154
+ stepStrip,
5118
5155
  liveStreamLine,
5119
5156
  drillPath,
5120
5157
  onDrillInto: drillInto,
@@ -5163,6 +5200,7 @@ var EngineerView = ({
5163
5200
  focusStep,
5164
5201
  onFocusChange,
5165
5202
  isLive,
5203
+ stepStrip,
5166
5204
  liveStreamLine,
5167
5205
  drillPath,
5168
5206
  onDrillInto,
@@ -5430,6 +5468,7 @@ var EngineerView = ({
5430
5468
  TimeTravel,
5431
5469
  {
5432
5470
  compact: true,
5471
+ stepStrip,
5433
5472
  total,
5434
5473
  focusSeq: focusStep,
5435
5474
  onFocusChange,
@@ -5557,7 +5596,7 @@ var EngineerView = ({
5557
5596
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
5558
5597
  VLinePill,
5559
5598
  {
5560
- label: "Details",
5599
+ label: "Inspect",
5561
5600
  expanded: rightExpanded,
5562
5601
  side: "right",
5563
5602
  onClick: () => setRightExpanded((v2) => !v2)
@@ -6350,7 +6389,6 @@ var Card = ({
6350
6389
 
6351
6390
  // src/react/Replay.tsx
6352
6391
  var import_react13 = require("react");
6353
- var import_flowchart6 = require("footprint-explainable-ui/flowchart");
6354
6392
  var import_jsx_runtime9 = require("react/jsx-runtime");
6355
6393
  var Replay = ({
6356
6394
  trace,
@@ -6361,7 +6399,8 @@ var Replay = ({
6361
6399
  const chart = (0, import_react13.useMemo)(
6362
6400
  () => trace.structure === void 0 ? void 0 : {
6363
6401
  graph: structureGraphFromSpec(trace.structure),
6364
- layout: import_flowchart6.dagreTraceLayout,
6402
+ // No `layout` → use TracedFlow's built-in measure-then-layout pipeline
6403
+ // (content-exact + fork-centering); inherits eui layout fixes for free.
6365
6404
  nodeTypes: LENS_NODE_TYPES
6366
6405
  },
6367
6406
  [trace.structure]