@locusgraph/loop 0.2.1 → 0.3.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/pulse.js +1 -1
- package/dist/agent/thinking/thinking.js +2 -2
- package/dist/agent/tool/tool-status.js +1 -1
- package/dist/approval/memory/memory-row.js +1 -1
- package/dist/approval/run/run-bar.js +1 -1
- package/dist/approval/spend/spend-meter.js +1 -1
- package/dist/approval/tool/tool-inputs.js +1 -1
- package/dist/chat/reply/markdown-components.js +2 -2
- package/dist/cost/context.js +1 -1
- package/dist/cost/cost.js +1 -1
- package/dist/cost/model-picker.js +1 -1
- package/dist/cost/shared/context-breakdown.js +1 -1
- package/dist/memory/cite.js +1 -1
- package/dist/memory/memorized.js +1 -1
- package/dist/memory/shared/disclosure.d.ts +2 -2
- package/dist/memory/shared/disclosure.js +1 -1
- package/dist/shared/panel.js +1 -1
- package/dist/thread/canvas/canvas.js +1 -1
- package/dist/thread/code/code.js +2 -2
- package/dist/thread/history/history.js +1 -1
- package/dist/thread/history/virtual-history-list.js +1 -1
- package/package.json +3 -3
|
@@ -46,7 +46,7 @@ function VisibleLabel({
|
|
|
46
46
|
});
|
|
47
47
|
const shimmers = variant === "shimmer" || variant === "glyph" || variant === "locus";
|
|
48
48
|
return /*#__PURE__*/_jsx("span", {
|
|
49
|
-
className: cn(shimmers && "motion-safe:shimmer"),
|
|
49
|
+
className: cn(shimmers && "motion-safe:locus-shimmer"),
|
|
50
50
|
children: label
|
|
51
51
|
});
|
|
52
52
|
}
|
|
@@ -96,7 +96,7 @@ export function Thinking(t0) {
|
|
|
96
96
|
} else {
|
|
97
97
|
t4 = $[4];
|
|
98
98
|
}
|
|
99
|
-
const t5 = streaming && "motion-safe:shimmer";
|
|
99
|
+
const t5 = streaming && "motion-safe:locus-shimmer";
|
|
100
100
|
let t6;
|
|
101
101
|
if ($[5] !== t5) {
|
|
102
102
|
t6 = cn(t5);
|
|
@@ -151,7 +151,7 @@ export function Thinking(t0) {
|
|
|
151
151
|
if ($[17] !== open || $[18] !== t11 || $[19] !== t8) {
|
|
152
152
|
t12 = /*#__PURE__*/_jsxs(CollapsibleTrigger, {
|
|
153
153
|
"aria-expanded": open,
|
|
154
|
-
className: "group eyebrow flex w-fit items-center gap-2 py-1 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70",
|
|
154
|
+
className: "group locus-eyebrow flex w-fit items-center gap-2 py-1 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70",
|
|
155
155
|
children: [t4, t8, t11]
|
|
156
156
|
});
|
|
157
157
|
$[17] = open;
|
|
@@ -28,7 +28,7 @@ export function ToolStatus({
|
|
|
28
28
|
"data-slot": "tool-status",
|
|
29
29
|
"data-state": state,
|
|
30
30
|
"aria-live": "polite",
|
|
31
|
-
className: "eyebrow flex shrink-0 items-center gap-1.5",
|
|
31
|
+
className: "locus-eyebrow flex shrink-0 items-center gap-1.5",
|
|
32
32
|
children: [/*#__PURE__*/_jsx(StatusDot, {
|
|
33
33
|
tone: toolStateTones[state]
|
|
34
34
|
}), toolStateLabels[state]]
|
|
@@ -59,7 +59,7 @@ export function MemoryRow({
|
|
|
59
59
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
60
60
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
61
61
|
children: [(memory.kind || memory.sensitive) && /*#__PURE__*/_jsxs("span", {
|
|
62
|
-
className: "eyebrow flex items-center gap-2",
|
|
62
|
+
className: "locus-eyebrow flex items-center gap-2",
|
|
63
63
|
children: [memory.kind && /*#__PURE__*/_jsx("span", {
|
|
64
64
|
children: memory.kind
|
|
65
65
|
}), memory.sensitive && /*#__PURE__*/_jsx(SensitiveMarker, {})]
|
|
@@ -55,7 +55,7 @@ export function RunBar({
|
|
|
55
55
|
}), /*#__PURE__*/_jsx("span", {
|
|
56
56
|
role: "status",
|
|
57
57
|
"aria-live": "polite",
|
|
58
|
-
className: "eyebrow shrink-0",
|
|
58
|
+
className: "locus-eyebrow shrink-0",
|
|
59
59
|
children: statusLabels[status]
|
|
60
60
|
}), elapsedMs !== undefined && /*#__PURE__*/_jsxs("span", {
|
|
61
61
|
className: "shrink-0 font-mono text-xs text-muted-foreground tabular-nums",
|
|
@@ -105,7 +105,7 @@ export function SpendMeter(props) {
|
|
|
105
105
|
"aria-hidden": true,
|
|
106
106
|
className: "relative h-4",
|
|
107
107
|
children: /*#__PURE__*/_jsxs("span", {
|
|
108
|
-
className: cn("eyebrow absolute bottom-0 whitespace-nowrap", labelAlignment(limitPosition)),
|
|
108
|
+
className: cn("locus-eyebrow absolute bottom-0 whitespace-nowrap", labelAlignment(limitPosition)),
|
|
109
109
|
style: {
|
|
110
110
|
left: `${limitPosition}%`
|
|
111
111
|
},
|
|
@@ -67,7 +67,7 @@ export function ToolInputs({
|
|
|
67
67
|
children: rawJson(input)
|
|
68
68
|
}), entries && /*#__PURE__*/_jsx("button", {
|
|
69
69
|
type: "button",
|
|
70
|
-
className: "eyebrow self-start outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/70 motion-safe:transition-colors",
|
|
70
|
+
className: "locus-eyebrow self-start outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/70 motion-safe:transition-colors",
|
|
71
71
|
"aria-expanded": showRaw,
|
|
72
72
|
"aria-controls": showRaw ? rawId : undefined,
|
|
73
73
|
onClick: () => setShowRaw(current => !current),
|
|
@@ -50,7 +50,7 @@ export const markdownComponents = {
|
|
|
50
50
|
className,
|
|
51
51
|
...props
|
|
52
52
|
}) => /*#__PURE__*/_jsx("h4", {
|
|
53
|
-
className: cn("eyebrow mt-5 mb-1.5 first:mt-0", className),
|
|
53
|
+
className: cn("locus-eyebrow mt-5 mb-1.5 first:mt-0", className),
|
|
54
54
|
...props
|
|
55
55
|
}),
|
|
56
56
|
ul: ({
|
|
@@ -128,7 +128,7 @@ export const markdownComponents = {
|
|
|
128
128
|
className,
|
|
129
129
|
...props
|
|
130
130
|
}) => /*#__PURE__*/_jsx("th", {
|
|
131
|
-
className: cn("eyebrow border-b bg-muted/30 px-3 py-2 text-left font-normal", className),
|
|
131
|
+
className: cn("locus-eyebrow border-b bg-muted/30 px-3 py-2 text-left font-normal", className),
|
|
132
132
|
...props
|
|
133
133
|
}),
|
|
134
134
|
td: ({
|
package/dist/cost/context.js
CHANGED
|
@@ -42,7 +42,7 @@ function BarContent({
|
|
|
42
42
|
children: [/*#__PURE__*/_jsxs("span", {
|
|
43
43
|
className: "flex items-baseline justify-between gap-4 font-mono text-[11px] tabular-nums",
|
|
44
44
|
children: [/*#__PURE__*/_jsx("span", {
|
|
45
|
-
className: "eyebrow",
|
|
45
|
+
className: "locus-eyebrow",
|
|
46
46
|
children: label
|
|
47
47
|
}), /*#__PURE__*/_jsxs("span", {
|
|
48
48
|
className: cn(status === "ok" && "text-foreground"),
|
package/dist/cost/cost.js
CHANGED
|
@@ -56,7 +56,7 @@ function AttemptRow({
|
|
|
56
56
|
children: [/*#__PURE__*/_jsxs("span", {
|
|
57
57
|
className: "flex min-w-0 items-baseline gap-2",
|
|
58
58
|
children: [/*#__PURE__*/_jsxs("span", {
|
|
59
|
-
className: "eyebrow",
|
|
59
|
+
className: "locus-eyebrow",
|
|
60
60
|
children: ["#", position + 1]
|
|
61
61
|
}), /*#__PURE__*/_jsx("span", {
|
|
62
62
|
className: cn("truncate", attempt.failed && "text-muted-foreground"),
|
|
@@ -34,7 +34,7 @@ export function ModelPicker({
|
|
|
34
34
|
sideOffset: 6,
|
|
35
35
|
className: "w-80 rounded-none border-0 bg-popover p-0 shadow-overlay ring-1 ring-border",
|
|
36
36
|
children: [/*#__PURE__*/_jsxs(DropdownMenuLabel, {
|
|
37
|
-
className: "eyebrow flex justify-between gap-3 border-b border-border px-3 py-2 font-normal",
|
|
37
|
+
className: "locus-eyebrow flex justify-between gap-3 border-b border-border px-3 py-2 font-normal",
|
|
38
38
|
children: [/*#__PURE__*/_jsx("span", {
|
|
39
39
|
children: label
|
|
40
40
|
}), /*#__PURE__*/_jsx("span", {
|
|
@@ -48,7 +48,7 @@ export function ContextBreakdown({
|
|
|
48
48
|
"data-slot": "context-breakdown",
|
|
49
49
|
className: "flex flex-col",
|
|
50
50
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
51
|
-
className: "eyebrow flex items-center gap-2 px-4 pt-3",
|
|
51
|
+
className: "locus-eyebrow flex items-center gap-2 px-4 pt-3",
|
|
52
52
|
children: [/*#__PURE__*/_jsx("span", {
|
|
53
53
|
children: label
|
|
54
54
|
}), /*#__PURE__*/_jsxs("span", {
|
package/dist/memory/cite.js
CHANGED
|
@@ -49,7 +49,7 @@ export function Cite({
|
|
|
49
49
|
sideOffset: 6,
|
|
50
50
|
className: "flex w-72 flex-col gap-2 rounded-none border-0 p-4 ring-1 ring-border",
|
|
51
51
|
children: [/*#__PURE__*/_jsxs("span", {
|
|
52
|
-
className: "eyebrow flex min-w-0 items-center gap-2",
|
|
52
|
+
className: "locus-eyebrow flex min-w-0 items-center gap-2",
|
|
53
53
|
children: [/*#__PURE__*/_jsx(SourceMark, {
|
|
54
54
|
citation: citation
|
|
55
55
|
}), /*#__PURE__*/_jsx("span", {
|
package/dist/memory/memorized.js
CHANGED
|
@@ -55,7 +55,7 @@ function MemorizedRow({
|
|
|
55
55
|
children: item.kind
|
|
56
56
|
})]
|
|
57
57
|
}), undone ? /*#__PURE__*/_jsxs("span", {
|
|
58
|
-
className: "eyebrow flex shrink-0 items-center gap-1.5",
|
|
58
|
+
className: "locus-eyebrow flex shrink-0 items-center gap-1.5",
|
|
59
59
|
children: [/*#__PURE__*/_jsx(StatusDot, {
|
|
60
60
|
tone: "idle"
|
|
61
61
|
}), "Undone"]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const eyebrowClass = "eyebrow [&_svg]:size-3.5 [&_svg]:shrink-0";
|
|
2
|
-
export declare const collapsibleTriggerClass = "group inline-flex w-fit items-center gap-2 py-1 outline-none transition-colors duration-150 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/70 motion-reduce:transition-none eyebrow [&_svg]:size-3.5 [&_svg]:shrink-0";
|
|
1
|
+
export declare const eyebrowClass = "locus-eyebrow [&_svg]:size-3.5 [&_svg]:shrink-0";
|
|
2
|
+
export declare const collapsibleTriggerClass = "group inline-flex w-fit items-center gap-2 py-1 outline-none transition-colors duration-150 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/70 motion-reduce:transition-none locus-eyebrow [&_svg]:size-3.5 [&_svg]:shrink-0";
|
|
3
3
|
export declare const chevronClass = "opacity-70 transition-transform duration-150 group-data-[state=open]:rotate-90 motion-reduce:transition-none";
|
|
4
4
|
export declare const ruledRowClass = "flex w-full items-center gap-3 px-3 py-2.5 text-left text-sm";
|
|
5
5
|
export declare const ruledListClass = "flex flex-col divide-y divide-border bg-card ring-1 ring-border";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const eyebrowClass = "eyebrow [&_svg]:size-3.5 [&_svg]:shrink-0";
|
|
1
|
+
export const eyebrowClass = "locus-eyebrow [&_svg]:size-3.5 [&_svg]:shrink-0";
|
|
2
2
|
export const collapsibleTriggerClass = `group inline-flex w-fit items-center gap-2 py-1 outline-none transition-colors duration-150 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/70 motion-reduce:transition-none ${eyebrowClass}`;
|
|
3
3
|
export const chevronClass = "opacity-70 transition-transform duration-150 group-data-[state=open]:rotate-90 motion-reduce:transition-none";
|
|
4
4
|
export const ruledRowClass = "flex w-full items-center gap-3 px-3 py-2.5 text-left text-sm";
|
package/dist/shared/panel.js
CHANGED
|
@@ -19,7 +19,7 @@ export function PanelHeader({
|
|
|
19
19
|
}) {
|
|
20
20
|
return /*#__PURE__*/_jsxs("header", {
|
|
21
21
|
"data-slot": "panel-header",
|
|
22
|
-
className: "eyebrow flex items-center gap-2 px-5 pt-4 [&_svg]:size-3.5 [&_svg]:shrink-0",
|
|
22
|
+
className: "locus-eyebrow flex items-center gap-2 px-5 pt-4 [&_svg]:size-3.5 [&_svg]:shrink-0",
|
|
23
23
|
children: [icon, /*#__PURE__*/_jsx("span", {
|
|
24
24
|
className: "min-w-0 truncate",
|
|
25
25
|
children: eyebrow
|
package/dist/thread/code/code.js
CHANGED
|
@@ -94,7 +94,7 @@ export function Code(t0) {
|
|
|
94
94
|
className: "min-w-0 truncate font-mono text-xs text-foreground",
|
|
95
95
|
children: filename
|
|
96
96
|
}) : /*#__PURE__*/_jsx("span", {
|
|
97
|
-
className: "eyebrow",
|
|
97
|
+
className: "locus-eyebrow",
|
|
98
98
|
children: language
|
|
99
99
|
});
|
|
100
100
|
$[10] = filename;
|
|
@@ -106,7 +106,7 @@ export function Code(t0) {
|
|
|
106
106
|
let t5;
|
|
107
107
|
if ($[13] !== filename || $[14] !== language) {
|
|
108
108
|
t5 = filename && /*#__PURE__*/_jsx("span", {
|
|
109
|
-
className: "eyebrow",
|
|
109
|
+
className: "locus-eyebrow",
|
|
110
110
|
children: language
|
|
111
111
|
});
|
|
112
112
|
$[13] = filename;
|
|
@@ -142,7 +142,7 @@ export function History(t0) {
|
|
|
142
142
|
"aria-labelledby": `thread-group-${group.key}`,
|
|
143
143
|
children: [/*#__PURE__*/_jsx("h3", {
|
|
144
144
|
id: `thread-group-${group.key}`,
|
|
145
|
-
className: "eyebrow px-2 pb-1",
|
|
145
|
+
className: "locus-eyebrow px-2 pb-1",
|
|
146
146
|
suppressHydrationWarning: true,
|
|
147
147
|
children: group.label
|
|
148
148
|
}), /*#__PURE__*/_jsx("ul", {
|
|
@@ -52,7 +52,7 @@ export function VirtualHistoryList({
|
|
|
52
52
|
style: rowOffsetStyle(virtualRow.start),
|
|
53
53
|
children: /*#__PURE__*/_jsx("h3", {
|
|
54
54
|
id: `thread-group-${row.groupKey}`,
|
|
55
|
-
className: "eyebrow px-2 pb-1",
|
|
55
|
+
className: "locus-eyebrow px-2 pb-1",
|
|
56
56
|
suppressHydrationWarning: true,
|
|
57
57
|
children: row.label
|
|
58
58
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusgraph/loop",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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.
|
|
32
|
+
"@locusgraph/components": "^0.3.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.
|
|
46
|
+
"@locusgraph/components": "0.3.0",
|
|
47
47
|
"@locusgraph/config": "0.1.1",
|
|
48
48
|
"@types/node": "^22.0.0",
|
|
49
49
|
"@types/react": "^19.2.0",
|