agentfootprint-lens 0.66.0 → 0.66.2

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.
@@ -1167,13 +1167,15 @@ function ReasoningLens(props) {
1167
1167
  });
1168
1168
  }, [context, rows]);
1169
1169
  const mover = props.cursor === void 0 && shared !== void 0 && cursor.total > 0 && cursor.at.step >= 0;
1170
- if (exchange === void 0 && declared === void 0) return null;
1170
+ const drawn = exchange !== void 0 || declared !== void 0;
1171
+ if (!drawn && !mover) return null;
1171
1172
  const fold = exchange?.reasoning;
1172
1173
  return /* @__PURE__ */ jsxs4(
1173
1174
  "div",
1174
1175
  {
1175
1176
  style: panel2,
1176
1177
  "data-testid": "reasoning-lens",
1178
+ "data-drawn": String(drawn),
1177
1179
  "data-step": cursor.at.step,
1178
1180
  "data-commit": cursor.at.commitIdx,
1179
1181
  ...fold !== void 0 ? { "data-calls": fold.cards.length } : {},
@@ -1181,8 +1183,8 @@ function ReasoningLens(props) {
1181
1183
  children: [
1182
1184
  /* @__PURE__ */ jsxs4("div", { style: header3, children: [
1183
1185
  /* @__PURE__ */ jsx4("span", { style: title3, children: LABELS4.lens }),
1184
- fold !== void 0 && /* @__PURE__ */ jsxs4("span", { style: dim4, children: [
1185
- fold.cards.length,
1186
+ /* @__PURE__ */ jsxs4("span", { style: dim4, children: [
1187
+ fold !== void 0 ? fold.cards.length : 0,
1186
1188
  " ",
1187
1189
  LABELS4.calls
1188
1190
  ] }),
@@ -1806,19 +1808,19 @@ function OntologyView(props) {
1806
1808
  const fold = useMemo5(() => record === void 0 ? void 0 : foldOntology(record), [record]);
1807
1809
  const layout = useMemo5(() => fold === void 0 ? void 0 : layoutOntology(fold), [fold]);
1808
1810
  const mover = props.cursor === void 0 && shared !== void 0 && cursor.total > 0 && cursor.at.step >= 0;
1809
- if (fold === void 0 || layout === void 0) return null;
1811
+ const drawn = fold !== void 0 && layout !== void 0;
1812
+ if (!drawn && !mover) return null;
1810
1813
  return /* @__PURE__ */ jsxs5(
1811
1814
  "div",
1812
1815
  {
1813
1816
  style: panel3,
1814
1817
  "data-testid": "ontology-view",
1815
- "data-id": fold.id,
1816
- "data-version": fold.version,
1817
- "data-hash": fold.hash,
1818
+ "data-drawn": String(drawn),
1819
+ ...drawn && { "data-id": fold.id, "data-version": fold.version, "data-hash": fold.hash },
1818
1820
  "data-step": cursor.at.step,
1819
1821
  "data-commit": cursor.at.commitIdx,
1820
1822
  children: [
1821
- /* @__PURE__ */ jsx5(Header, { fold }),
1823
+ drawn && /* @__PURE__ */ jsx5(Header, { fold }),
1822
1824
  mover && /* @__PURE__ */ jsx5("div", { "data-testid": "ontology-transport", children: /* @__PURE__ */ jsx5(
1823
1825
  TimeTravel,
1824
1826
  {
@@ -1829,7 +1831,7 @@ function OntologyView(props) {
1829
1831
  compact: true
1830
1832
  }
1831
1833
  ) }),
1832
- /* @__PURE__ */ jsxs5("div", { style: body, children: [
1834
+ drawn && /* @__PURE__ */ jsxs5("div", { style: body, children: [
1833
1835
  /* @__PURE__ */ jsx5(Chart, { fold, layout }),
1834
1836
  /* @__PURE__ */ jsx5(List, { fold })
1835
1837
  ] })
@@ -2388,29 +2390,33 @@ function ProofMap(props) {
2388
2390
  }, [context, rows]);
2389
2391
  const layout = useMemo6(() => fold === void 0 ? void 0 : layoutProofMap(fold), [fold]);
2390
2392
  const mover = props.cursor === void 0 && shared !== void 0 && cursor.total > 0 && cursor.at.step >= 0;
2391
- if (fold === void 0 || layout === void 0) return null;
2393
+ const drawn = fold !== void 0 && layout !== void 0;
2394
+ if (!drawn && !mover) return null;
2392
2395
  return /* @__PURE__ */ jsxs6(
2393
2396
  "div",
2394
2397
  {
2395
2398
  style: panel4,
2396
2399
  "data-testid": "proof-map",
2397
- "data-answer": String(fold.answer !== void 0),
2398
- "data-calls": fold.calls.length,
2399
- "data-contingent": fold.contingent.length,
2400
+ "data-drawn": String(drawn),
2401
+ ...drawn && {
2402
+ "data-answer": String(fold.answer !== void 0),
2403
+ "data-calls": fold.calls.length,
2404
+ "data-contingent": fold.contingent.length
2405
+ },
2400
2406
  "data-step": cursor.at.step,
2401
2407
  "data-commit": cursor.at.commitIdx,
2402
2408
  children: [
2403
2409
  /* @__PURE__ */ jsxs6("div", { style: header5, children: [
2404
2410
  /* @__PURE__ */ jsx6("span", { style: title5, children: LABELS6.view }),
2405
2411
  /* @__PURE__ */ jsxs6("span", { style: dim6, "data-testid": "proof-counts", children: [
2406
- fold.calls.length,
2412
+ drawn ? fold.calls.length : 0,
2407
2413
  " ",
2408
2414
  LABELS6.calls,
2409
2415
  " \xB7 ",
2410
- fold.tools.length,
2416
+ drawn ? fold.tools.length : 0,
2411
2417
  " ",
2412
2418
  LABELS6.tools,
2413
- fold.sources !== void 0 && /* @__PURE__ */ jsxs6(Fragment4, { children: [
2419
+ drawn && fold.sources !== void 0 && /* @__PURE__ */ jsxs6(Fragment4, { children: [
2414
2420
  " \xB7 ",
2415
2421
  fold.sources.length,
2416
2422
  " ",
@@ -2428,7 +2434,7 @@ function ProofMap(props) {
2428
2434
  compact: true
2429
2435
  }
2430
2436
  ) }),
2431
- /* @__PURE__ */ jsxs6("div", { style: body2, children: [
2437
+ drawn && /* @__PURE__ */ jsxs6("div", { style: body2, children: [
2432
2438
  /* @__PURE__ */ jsx6(Chart2, { fold, layout }),
2433
2439
  /* @__PURE__ */ jsx6(List2, { fold })
2434
2440
  ] })
@@ -2772,4 +2778,4 @@ export {
2772
2778
  layoutProofMap,
2773
2779
  ProofMap
2774
2780
  };
2775
- //# sourceMappingURL=chunk-R6TDIDHA.js.map
2781
+ //# sourceMappingURL=chunk-JPJKTMN6.js.map