agentfootprint-lens 0.30.0 → 0.30.1
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-6UG5QBDF.js → chunk-RVKVX5J2.js} +26 -2
- package/dist/{chunk-6UG5QBDF.js.map → chunk-RVKVX5J2.js.map} +1 -1
- package/dist/core.cjs +25 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +25 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -2588,10 +2588,34 @@ 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
|
+
};
|
|
2605
|
+
var GENERIC_ENTRY_TYPE = "step";
|
|
2606
|
+
function isShellEntryType(type) {
|
|
2607
|
+
return Object.prototype.hasOwnProperty.call(SHELL_ENTRY_TYPES, type);
|
|
2608
|
+
}
|
|
2609
|
+
function toShellNarrativeEntries(entries) {
|
|
2610
|
+
return entries.map((entry) => {
|
|
2611
|
+
const { type } = entry;
|
|
2612
|
+
return isShellEntryType(type) ? { ...entry, type } : { ...entry, type: GENERIC_ENTRY_TYPE };
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2591
2615
|
function explainableShellPropsFromRunner(agent, recorder) {
|
|
2592
2616
|
return {
|
|
2593
2617
|
runtimeSnapshot: agent.getLastSnapshot() ?? null,
|
|
2594
|
-
narrativeEntries:
|
|
2618
|
+
narrativeEntries: toShellNarrativeEntries(agent.getLastNarrativeEntries()),
|
|
2595
2619
|
traceGraph: structureGraphFromRunner(agent, { decorate: false }),
|
|
2596
2620
|
runtimeOverlay: recorder.runtime.getOverlay()
|
|
2597
2621
|
};
|
|
@@ -2836,4 +2860,4 @@ export {
|
|
|
2836
2860
|
defaultSize,
|
|
2837
2861
|
layoutLensGraph
|
|
2838
2862
|
};
|
|
2839
|
-
//# sourceMappingURL=chunk-
|
|
2863
|
+
//# sourceMappingURL=chunk-RVKVX5J2.js.map
|