@tangle-network/sandbox-ui 3.0.0 → 3.0.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.
Files changed (30) hide show
  1. package/dist/{AgentTree-CJRVpgPq.js → AgentTree-Cju8jn51.js} +1 -1
  2. package/dist/{ResearchReport-CSNpZ-pj.js → ResearchReport-vqefUbVp.js} +1 -1
  3. package/dist/{VirtualList-DLh2JE0F.js → VirtualList-CMynqkkh.js} +95 -67
  4. package/dist/globals.css +86 -25
  5. package/dist/{index-D2_4ONCz.d.ts → index-DpzFSqjG.d.ts} +1 -7
  6. package/dist/index.d.ts +3 -3
  7. package/dist/index.js +8 -8
  8. package/dist/record/ResearchReport.js +1 -1
  9. package/dist/{record-Ct_MZeZC.js → record-B_4XWfUz.js} +2 -2
  10. package/dist/record.js +1 -1
  11. package/dist/report-viewer.js +126 -86
  12. package/dist/run/live.js +1 -1
  13. package/dist/run/record.js +3 -3
  14. package/dist/run.js +3 -3
  15. package/dist/runtime-viewer/{AgentGraphCanvas-CcBWMidO-DIW8tof6.js → AgentGraphCanvas-DGq7_u8--WPFPgd72.js} +2178 -2205
  16. package/dist/runtime-viewer/latest-events-CRq9sGkK-YFXUh9qO.js +9586 -0
  17. package/dist/runtime-viewer/{sandbox-ui-CUj4Q1P_.css → sandbox-ui-BEziPi7D.css} +1 -1
  18. package/dist/styles.css +87 -26
  19. package/dist/tailwind.css +72 -13
  20. package/dist/{tree-data-B_IXAIgg.js → tree-data-9D309DqD.js} +1 -1
  21. package/dist/utils.d.ts +2 -2
  22. package/dist/utils.js +1 -1
  23. package/dist/vault-tree.js +1 -1
  24. package/dist/{workspace--GvnZNpH.js → workspace-BrS_rHWN.js} +12 -18
  25. package/dist/{workspace-files-pane-C0PeY6rY.js → workspace-files-pane-Di_rn4FL.js} +1 -1
  26. package/dist/workspace-viewer.js +9062 -9494
  27. package/dist/workspace.d.ts +1 -1
  28. package/dist/workspace.js +2 -2
  29. package/package.json +6 -6
  30. package/dist/runtime-viewer/latest-events-BfRc-7l9-QhJD89rn.js +0 -3808
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- export { TOOL_CATEGORY_ICONS, cn, copyText, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatDuration, formatUptime, getToolCategory, getToolDisplayMetadata, getToolErrorText, ixControl, ixControlAfter, ixControlSoft, ixField, ixRow, ixSelected, ixTabUnderline, plainTextFromMarkdown, timeAgo, truncateText } from "@tangle-network/ui/utils";
1
+ export { TOOL_CATEGORY_ICONS, cn, copyText, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatAxisDuration, formatBytes, formatClock, formatCompact, formatCost, formatCount, formatDuration, formatSpanDuration, formatUptime, formatUtcTime, getToolCategory, getToolDisplayMetadata, getToolErrorText, ixControl, ixControlAfter, ixControlSoft, ixField, ixRow, ixSelected, ixTabUnderline, plainTextFromMarkdown, timeAgo, truncateText } from "@tangle-network/ui/utils";
@@ -1 +1 @@
1
- export { r as VAULT_TREE_CHILD_PAGE, i as VaultTree, t as fileTreeFromPaths, n as filterFileNodes } from "./tree-data-B_IXAIgg.js";
1
+ export { r as VAULT_TREE_CHILD_PAGE, i as VaultTree, t as fileTreeFromPaths, n as filterFileNodes } from "./tree-data-9D309DqD.js";
@@ -1,7 +1,7 @@
1
1
  import { t as cn$1 } from "./utils-BER_bdgE.js";
2
2
  import { r as ShellHeader } from "./shell-header-CwqDzC4I.js";
3
3
  import { t as MOTION_CONTROL } from "./motion-2Ine0j_s.js";
4
- import "./workspace-files-pane-C0PeY6rY.js";
4
+ import "./workspace-files-pane-Di_rn4FL.js";
5
5
  import { ArtifactPane, ArtifactPane as ArtifactPane$1, EmptyState, Input, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@tangle-network/ui/primitives";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { Markdown } from "@tangle-network/ui/markdown";
@@ -1091,27 +1091,21 @@ function RuntimePane({ title = "Runtime", subtitle = "Session state, execution o
1091
1091
  const MINUTE = 6e4;
1092
1092
  const HOUR = 60 * MINUTE;
1093
1093
  const DAY = 24 * HOUR;
1094
- const WEEK = 7 * DAY;
1095
- const MONTH = 30 * DAY;
1096
- const YEAR = 365 * DAY;
1097
- /**
1098
- * Compact age for a session rail: `now`, `5m`, `3h`, `2d`, `3w`, `4mo`, `1y`.
1099
- * Unlike `timeAgo` from `@tangle-network/ui/utils` it accepts any date input,
1100
- * rolls past hours into days and beyond, and carries no "ago" suffix, so it
1101
- * fits a "codex · 2h" meta line. A future or unparseable date reads `now` /
1102
- * empty rather than a negative count. `now` is injectable for deterministic tests.
1103
- */
1094
+ const UNITS = [
1095
+ ["y", 365 * DAY],
1096
+ ["mo", 30 * DAY],
1097
+ ["w", 7 * DAY],
1098
+ ["d", DAY],
1099
+ ["h", HOUR],
1100
+ ["m", MINUTE]
1101
+ ];
1102
+ /** Compact age without an ago suffix; invalid dates are empty and future dates read now. */
1104
1103
  function formatRelativeAge(date, now = Date.now()) {
1105
1104
  const timestamp = date instanceof Date ? date.getTime() : new Date(date).getTime();
1106
1105
  if (Number.isNaN(timestamp)) return "";
1107
1106
  const elapsed = Math.max(0, now - timestamp);
1108
- if (elapsed < MINUTE) return "now";
1109
- if (elapsed < HOUR) return `${Math.floor(elapsed / MINUTE)}m`;
1110
- if (elapsed < DAY) return `${Math.floor(elapsed / HOUR)}h`;
1111
- if (elapsed < WEEK) return `${Math.floor(elapsed / DAY)}d`;
1112
- if (elapsed < MONTH) return `${Math.floor(elapsed / WEEK)}w`;
1113
- if (elapsed < YEAR) return `${Math.floor(elapsed / MONTH)}mo`;
1114
- return `${Math.floor(elapsed / YEAR)}y`;
1107
+ const unit = UNITS.find(([, duration]) => !(elapsed < duration));
1108
+ return unit ? `${Math.floor(elapsed / unit[1])}${unit[0]}` : "now";
1115
1109
  }
1116
1110
  // src/workspace/session-optimistic.ts
1117
1111
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as cn } from "./utils-BER_bdgE.js";
2
- import { i as VaultTree, n as filterFileNodes, t as fileTreeFromPaths } from "./tree-data-B_IXAIgg.js";
2
+ import { i as VaultTree, n as filterFileNodes, t as fileTreeFromPaths } from "./tree-data-9D309DqD.js";
3
3
  import { Button, EmptyState, Input, SegmentedControl } from "@tangle-network/ui/primitives";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { useEffect, useId, useMemo, useRef, useState } from "react";