@columenlabs/lumen-ui 0.1.247 → 0.1.248

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.
@@ -67,9 +67,11 @@ function itemMarkdown(i, depth, name) {
67
67
  case 'handoff':
68
68
  return [
69
69
  `${h} ${i.label} (${i.why})`,
70
- `Task: ${i.task}`,
70
+ i.task ? `Task: ${i.task}` : '',
71
71
  ...i.items.map((x) => itemMarkdown(x, depth + 1, i.label)),
72
- ].join('\n\n');
72
+ ]
73
+ .filter(Boolean)
74
+ .join('\n\n');
73
75
  case 'advice':
74
76
  return `_${i.error ? 'Could not ask' : 'Asked'} ${i.label} for advice._`;
75
77
  case 'fresh':
@@ -526,7 +526,7 @@ const WHY = {
526
526
  check_failed: 'a check failed',
527
527
  };
528
528
  function HandOff({ item, onSettle, busy, }) {
529
- return (_jsxs("section", { className: "flex flex-col gap-2 border-l-2 border-primary/40 pl-3", children: [_jsxs("p", { className: "flex items-center gap-1.5 text-xs", children: [_jsx(CornerDownRightIcon, { className: "size-3.5 text-muted-foreground" }), _jsx("span", { className: "font-medium", children: item.label }), _jsxs("span", { className: "text-muted-foreground", children: ["\u00B7 ", WHY[item.why]] }), item.usage && (_jsx("span", { className: "ml-auto text-muted-foreground tabular-nums", children: usd(item.usage.usd) }))] }), _jsx("p", { className: "text-muted-foreground text-xs", children: item.task }), _jsx(Items, { items: item.items, onSettle: onSettle, busy: busy })] }));
529
+ return (_jsxs("section", { className: "flex flex-col gap-2 border-l-2 border-primary/40 pl-3", children: [_jsxs("p", { className: "flex items-center gap-1.5 text-xs", children: [_jsx(CornerDownRightIcon, { className: "size-3.5 text-muted-foreground" }), _jsx("span", { className: "font-medium", children: item.label }), _jsxs("span", { className: "text-muted-foreground", children: ["\u00B7 ", WHY[item.why]] }), item.usage && (_jsx("span", { className: "ml-auto text-muted-foreground tabular-nums", children: usd(item.usage.usd) }))] }), item.task && _jsx("p", { className: "text-muted-foreground text-xs", children: item.task }), _jsx(Items, { items: item.items, onSettle: onSettle, busy: busy })] }));
530
530
  }
531
531
  /** The composer's triggers: `@` points at a thing (the `sources`), `#` picks the tier for one message. */
532
532
  const POINT = '@';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@columenlabs/lumen-ui",
3
- "version": "0.1.247",
3
+ "version": "0.1.248",
4
4
  "description": "Lumen: shared React components (frame, views, widgets, charts, drawers).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,7 +49,7 @@
49
49
  "@codemirror/lang-javascript": "6.2.5",
50
50
  "@codemirror/lang-json": "6.0.2",
51
51
  "@codemirror/lang-sql": "6.10.0",
52
- "@columenlabs/lumen-ui-types": "0.1.247",
52
+ "@columenlabs/lumen-ui-types": "0.1.248",
53
53
  "@dnd-kit/core": "6.3.1",
54
54
  "@dnd-kit/sortable": "10.0.0",
55
55
  "@dnd-kit/utilities": "3.2.2",