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.
- package/dist/{chunk-ZJKD43L7.js → chunk-IEXY5QAK.js} +22 -20
- package/dist/{chunk-ZJKD43L7.js.map → chunk-IEXY5QAK.js.map} +1 -1
- package/dist/core.cjs +21 -19
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/{index-BH_ctbLK.d.cts → index-s0_b2QTu.d.cts} +19 -3
- package/dist/{index-BH_ctbLK.d.ts → index-s0_b2QTu.d.ts} +19 -3
- package/dist/index.cjs +54 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
2201
|
-
const
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
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-
|
|
2523
|
+
//# sourceMappingURL=chunk-IEXY5QAK.js.map
|