@locusgraph/loop 0.7.0 → 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.
- package/dist/agent/pulse/marks/bars-mark.js +1 -1
- package/dist/agent/pulse/marks/orb-mark.js +1 -1
- package/dist/agent/pulse/pulse.js +1 -1
- package/dist/agent/steps/step-icon.js +1 -1
- package/dist/approval/spend/spend-meter.js +2 -2
- package/dist/cost/context.js +2 -2
- package/dist/cost/model-picker.js +2 -2
- package/dist/cost/shared/context-breakdown.js +1 -1
- package/dist/cost/shared/step-cost-row.js +2 -2
- package/dist/memory/cite.js +1 -1
- package/dist/memory/shared/source-mark.js +1 -1
- package/package.json +4 -4
|
@@ -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-
|
|
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;
|
|
@@ -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-
|
|
16
|
+
className: cn("size-1.5 rounded-pill bg-muted-foreground motion-safe:animate-pulse", delay)
|
|
17
17
|
}, delay))
|
|
18
18
|
});
|
|
19
19
|
}
|
|
@@ -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-
|
|
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-
|
|
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
|
}
|
package/dist/cost/context.js
CHANGED
|
@@ -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-
|
|
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
|
|
@@ -102,7 +102,7 @@ export function Context({
|
|
|
102
102
|
}), /*#__PURE__*/_jsx(HoverCardContent, {
|
|
103
103
|
align: "end",
|
|
104
104
|
sideOffset: 6,
|
|
105
|
-
className: "w-72 rounded-none border-0 bg-popover p-0
|
|
105
|
+
className: "w-72 rounded-none border-0 bg-popover p-0 ring-1 ring-border",
|
|
106
106
|
children: /*#__PURE__*/_jsx(ContextBreakdown, {
|
|
107
107
|
label: label,
|
|
108
108
|
usedTokens: usedTokens,
|
|
@@ -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-
|
|
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 {
|
|
@@ -158,7 +158,7 @@ export function ModelPicker(t0) {
|
|
|
158
158
|
t16 = /*#__PURE__*/_jsxs(DropdownMenuContent, {
|
|
159
159
|
align: "start",
|
|
160
160
|
sideOffset: 6,
|
|
161
|
-
className: "w-80 rounded-none border-0 bg-popover p-0
|
|
161
|
+
className: "w-80 rounded-none border-0 bg-popover p-0 ring-1 ring-border",
|
|
162
162
|
children: [t13, t15]
|
|
163
163
|
});
|
|
164
164
|
$[30] = t13;
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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
|
}
|
package/dist/memory/cite.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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.
|
|
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,12 +29,12 @@
|
|
|
29
29
|
"provenance": true
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@locusgraph/components": "^0.
|
|
32
|
+
"@locusgraph/components": "^0.8.0",
|
|
33
33
|
"react": "^19.2.0",
|
|
34
34
|
"react-dom": "^19.2.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@phosphor-icons/react": "2.1.10",
|
|
37
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
38
38
|
"@locusgraph/brand": "0.4.0",
|
|
39
39
|
"@locusgraph/utils": "0.1.3",
|
|
40
40
|
"@tanstack/react-virtual": "3.14.13",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"shiki": "^4.5.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@locusgraph/components": "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",
|