agentfootprint-lens 0.23.10 → 0.24.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.
@@ -2135,10 +2135,10 @@ function slotKindForLocalId(localId) {
2135
2135
  if (localId === "sf-tools") return "tools";
2136
2136
  return void 0;
2137
2137
  }
2138
- function structureGraphFromRunner(runner) {
2139
- return structureGraphFromSpec(runner.getSpec().buildTimeStructure);
2138
+ function structureGraphFromRunner(runner, opts) {
2139
+ return structureGraphFromSpec(runner.getSpec().buildTimeStructure, opts);
2140
2140
  }
2141
- function structureGraphFromSpec(buildTimeStructure) {
2141
+ function structureGraphFromSpec(buildTimeStructure, opts) {
2142
2142
  const trace = createTraceStructureRecorder();
2143
2143
  const recorder = trace.recorder;
2144
2144
  const spec = buildTimeStructure;
@@ -2197,22 +2197,24 @@ function structureGraphFromSpec(buildTimeStructure) {
2197
2197
  ...baseGraph.edges,
2198
2198
  ...internal.edges.filter((e) => !seenEdges.has(e.id))
2199
2199
  ];
2200
- for (const node of nodes) {
2201
- const role = stageRole(node.id);
2202
- const data = node.data;
2203
- const { localStageId } = splitStageId(node.id);
2204
- const emphasis = emphasisForRole(role);
2205
- if (emphasis !== void 0) data.emphasis = emphasis;
2206
- if (data.icon === void 0) {
2207
- const icon = iconForRole(localStageId, role);
2208
- if (icon !== void 0) data.icon = icon;
2209
- }
2210
- const size = sizeForRole(role);
2211
- if (size !== void 0) data.size = size;
2212
- if (role === "hero-slot") {
2213
- node.type = "slotPill";
2214
- const slotKind = slotKindForLocalId(localStageId);
2215
- if (slotKind !== void 0) data.slotKind = slotKind;
2200
+ if (opts?.decorate !== false) {
2201
+ for (const node of nodes) {
2202
+ const role = stageRole(node.id);
2203
+ const data = node.data;
2204
+ const { localStageId } = splitStageId(node.id);
2205
+ const emphasis = emphasisForRole(role);
2206
+ if (emphasis !== void 0) data.emphasis = emphasis;
2207
+ if (data.icon === void 0) {
2208
+ const icon = iconForRole(localStageId, role);
2209
+ if (icon !== void 0) data.icon = icon;
2210
+ }
2211
+ const size = sizeForRole(role);
2212
+ if (size !== void 0) data.size = size;
2213
+ if (role === "hero-slot") {
2214
+ node.type = "slotPill";
2215
+ const slotKind = slotKindForLocalId(localStageId);
2216
+ if (slotKind !== void 0) data.slotKind = slotKind;
2217
+ }
2216
2218
  }
2217
2219
  }
2218
2220
  return { ...baseGraph, nodes, edges };
@@ -2518,4 +2520,4 @@ export {
2518
2520
  defaultSize,
2519
2521
  layoutLensGraph
2520
2522
  };
2521
- //# sourceMappingURL=chunk-ZJKD43L7.js.map
2523
+ //# sourceMappingURL=chunk-IEXY5QAK.js.map