@locusgraph/loop 0.7.1 → 0.8.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.
@@ -21,7 +21,7 @@ function Bar(t0) {
21
21
  if ($[0] !== ref) {
22
22
  t1 = /*#__PURE__*/_jsx("span", {
23
23
  ref: ref,
24
- className: "h-full w-[0.16em] origin-center scale-y-[0.35] rounded-full bg-current"
24
+ className: "h-full w-[0.16em] origin-center scale-y-[0.35] rounded-pill bg-current"
25
25
  });
26
26
  $[0] = ref;
27
27
  $[1] = t1;
@@ -24,7 +24,7 @@ export function OrbMark() {
24
24
  children: /*#__PURE__*/_jsx("span", {
25
25
  ref: ref,
26
26
  "data-slot": "pulse-orb",
27
- className: "size-[0.8em] rounded-full bg-foreground"
27
+ className: "size-[0.8em] rounded-pill bg-foreground"
28
28
  })
29
29
  });
30
30
  $[0] = ref;
@@ -13,7 +13,7 @@ function TypingDots() {
13
13
  "aria-hidden": true,
14
14
  className: "flex h-5 items-center gap-1",
15
15
  children: dotDelays.map(delay => /*#__PURE__*/_jsx("span", {
16
- className: cn("size-1.5 rounded-full bg-muted-foreground motion-safe:animate-pulse", delay)
16
+ className: cn("size-1.5 rounded-pill bg-muted-foreground motion-safe:animate-pulse", delay)
17
17
  }, delay))
18
18
  });
19
19
  }
@@ -36,7 +36,7 @@ function StepGlyph({
36
36
  "aria-hidden": true
37
37
  });
38
38
  return /*#__PURE__*/_jsx("span", {
39
- className: "size-1.5 rounded-full bg-current"
39
+ className: "size-1.5 rounded-pill bg-current"
40
40
  });
41
41
  }
42
42
  export function StepIcon({
@@ -118,10 +118,10 @@ export function SpendMeter(props) {
118
118
  "aria-valuemax": scale,
119
119
  "aria-valuenow": projected,
120
120
  "aria-valuetext": `${formatMicroUsd(projected)} after the next step, ${limitLabel.toLowerCase()} ${formatMicroUsd(limit)}`,
121
- className: "relative h-1 rounded-full bg-muted-foreground/15",
121
+ className: "relative h-1 rounded-pill bg-muted-foreground/15",
122
122
  children: [/*#__PURE__*/_jsx("span", {
123
123
  "aria-hidden": true,
124
- className: cn("absolute inset-y-0 left-0 rounded-l-full", muted ? "bg-muted-foreground/30" : "bg-muted-foreground/60"),
124
+ className: cn("absolute inset-y-0 left-0 rounded-l-pill", muted ? "bg-muted-foreground/30" : "bg-muted-foreground/60"),
125
125
  style: {
126
126
  width: `${baseWidth}%`
127
127
  }
@@ -80,7 +80,7 @@ export function Context({
80
80
  "aria-valuenow": percent,
81
81
  "aria-valuetext": `${percent}%, ${summary}`,
82
82
  tabIndex: hasBreakdown ? 0 : undefined,
83
- className: cn("locus-focus-ring", statusTone[status], variant === "ring" ? "inline-flex h-control-xs items-center gap-1.5 rounded-full px-2 transition-colors duration-150 motion-reduce:transition-none" : "flex w-full flex-col gap-2", variant === "ring" && hasBreakdown && "cursor-default hover:bg-accent", className),
83
+ className: cn("locus-focus-ring", statusTone[status], variant === "ring" ? "inline-flex h-control-xs items-center gap-1.5 rounded-pill px-2 transition-colors duration-150 motion-reduce:transition-none" : "flex w-full flex-col gap-2", variant === "ring" && hasBreakdown && "cursor-default hover:bg-accent", className),
84
84
  children: variant === "ring" ? /*#__PURE__*/_jsx(RingContent, {
85
85
  percent: percent,
86
86
  status: status
@@ -39,7 +39,7 @@ export function ModelPicker(t0) {
39
39
  const t4 = `${label}: ${selected?.name ?? "none selected"}`;
40
40
  let t5;
41
41
  if ($[5] !== className) {
42
- t5 = cn("group inline-flex h-control-sm max-w-full items-center gap-1.5 rounded-full px-2.5 text-xs locus-focus-ring transition-colors duration-150 hover:bg-accent disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent motion-reduce:transition-none", className);
42
+ t5 = cn("group inline-flex h-control-sm max-w-full items-center gap-1.5 rounded-pill px-2.5 text-xs locus-focus-ring transition-colors duration-150 hover:bg-accent disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent motion-reduce:transition-none", className);
43
43
  $[5] = className;
44
44
  $[6] = t5;
45
45
  } else {
@@ -54,7 +54,7 @@ export function ContextBreakdown({
54
54
  className: "ml-auto flex items-center gap-1.5",
55
55
  children: [/*#__PURE__*/_jsx("span", {
56
56
  "aria-hidden": true,
57
- className: cn("size-1.5 rounded-full", statusDot[status])
57
+ className: cn("size-1.5 rounded-pill", statusDot[status])
58
58
  }), statusWord[status]]
59
59
  })]
60
60
  }), /*#__PURE__*/_jsxs("div", {
@@ -58,9 +58,9 @@ export function StepCostRow({
58
58
  })]
59
59
  }), /*#__PURE__*/_jsx("span", {
60
60
  "aria-hidden": true,
61
- className: "relative h-1 w-full overflow-hidden rounded-full bg-muted-foreground/10 max-sm:col-span-3 max-sm:row-start-2",
61
+ className: "relative h-1 w-full overflow-hidden rounded-pill bg-muted-foreground/10 max-sm:col-span-3 max-sm:row-start-2",
62
62
  children: /*#__PURE__*/_jsx("span", {
63
- className: cn("absolute inset-y-0 left-0 rounded-full transition-[width] duration-300 motion-reduce:transition-none", barTone(step)),
63
+ className: cn("absolute inset-y-0 left-0 rounded-pill transition-[width] duration-300 motion-reduce:transition-none", barTone(step)),
64
64
  style: {
65
65
  width: `${barWidth(cost, maxCost)}%`
66
66
  }
@@ -5,7 +5,7 @@ import { cn, HoverCard, HoverCardContent, HoverCardTrigger } from "@locusgraph/c
5
5
  import { hostLabel } from "./shared/host-label.js";
6
6
  import { SourceMark } from "./shared/source-mark.js";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
- const pillClass = "inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-muted px-1 text-2xs leading-none font-medium text-muted-foreground tabular-nums no-underline transition-colors duration-150 locus-focus-ring hover:bg-interactive/15 hover:text-interactive data-[state=open]:bg-interactive/15 data-[state=open]:text-interactive motion-reduce:transition-none";
8
+ const pillClass = "inline-flex h-4 min-w-4 items-center justify-center rounded-pill bg-muted px-1 text-2xs leading-none font-medium text-muted-foreground tabular-nums no-underline transition-colors duration-150 locus-focus-ring hover:bg-interactive/15 hover:text-interactive data-[state=open]:bg-interactive/15 data-[state=open]:text-interactive motion-reduce:transition-none";
9
9
  export function citationLabel(citation) {
10
10
  return `Source ${citation.index}: ${citation.title}`;
11
11
  }
@@ -8,7 +8,7 @@ export function SourceMark({
8
8
  return /*#__PURE__*/_jsx("span", {
9
9
  "aria-hidden": true,
10
10
  "data-slot": "source-mark",
11
- className: cn("flex size-4 shrink-0 items-center justify-center rounded-full bg-muted text-2xs leading-none font-medium text-muted-foreground uppercase", className),
11
+ className: cn("flex size-4 shrink-0 items-center justify-center rounded-pill bg-muted text-2xs leading-none font-medium text-muted-foreground uppercase", className),
12
12
  children: sourceInitial(citation)
13
13
  });
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusgraph/loop",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Agent components for LocusGraph apps: chat, agent steps, human-in-the-loop approvals, memory and cost. Takes Vercel AI SDK UIMessage parts; never calls a model.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "provenance": true
30
30
  },
31
31
  "peerDependencies": {
32
- "@locusgraph/components": "^0.7.0",
32
+ "@locusgraph/components": "^0.8.0",
33
33
  "react": "^19.2.0",
34
34
  "react-dom": "^19.2.0"
35
35
  },
@@ -43,7 +43,7 @@
43
43
  "shiki": "^4.5.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@locusgraph/components": "0.7.0",
46
+ "@locusgraph/components": "0.8.0",
47
47
  "@locusgraph/config": "0.1.2",
48
48
  "@types/node": "^22.0.0",
49
49
  "@types/react": "^19.2.0",