@burdenoff/microfe-vibecontrols 2026.1111.1 → 2026.1111.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.
|
@@ -1,62 +1,111 @@
|
|
|
1
1
|
import { AgentManagerMessageItem as e } from "./AgentManagerMessageItem.js";
|
|
2
2
|
import { AgentManagerStreamingIndicator as t } from "./AgentManagerStreamingIndicator.js";
|
|
3
3
|
import { useTr as n } from "../../shared/hooks/useTr.js";
|
|
4
|
-
import { useEffect as r,
|
|
5
|
-
import { MessageSquare as
|
|
6
|
-
import { jsx as
|
|
4
|
+
import { useEffect as r, useRef as i } from "react";
|
|
5
|
+
import { MessageSquare as a } from "lucide-react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
7
8
|
// src/components/agent-manager/AgentManagerMessageList.tsx
|
|
8
|
-
var l = (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
let e
|
|
9
|
+
var l = (l) => {
|
|
10
|
+
"use memo";
|
|
11
|
+
let u = c(53), { messages: d, isStreaming: f, onCancelStream: p, searchQuery: m, bookmarkedIds: h, onToggleBookmark: g, flashMessageId: _ } = l, v = i(null), y = i(null), b = n(), x;
|
|
12
|
+
u[0] === m ? x = u[1] : (x = m?.trim().toLowerCase() ?? "", u[0] = m, u[1] = x);
|
|
13
|
+
let S = x, C;
|
|
14
|
+
bb0: {
|
|
15
|
+
if (!S) {
|
|
16
|
+
C = d;
|
|
17
|
+
break bb0;
|
|
18
|
+
}
|
|
19
|
+
let e;
|
|
20
|
+
if (u[2] !== d || u[3] !== S) {
|
|
21
|
+
let t;
|
|
22
|
+
u[5] === S ? t = u[6] : (t = (e) => e.content.toLowerCase().includes(S), u[5] = S, u[6] = t), e = d.filter(t), u[2] = d, u[3] = S, u[4] = e;
|
|
23
|
+
} else e = u[4];
|
|
24
|
+
C = e;
|
|
25
|
+
}
|
|
26
|
+
let w = C, T;
|
|
27
|
+
u[7] === _ ? T = u[8] : (T = () => {
|
|
28
|
+
let e = y.current;
|
|
29
|
+
e && (_ || e.scrollHeight - e.scrollTop - e.clientHeight < 100 && (e.scrollTop = e.scrollHeight));
|
|
30
|
+
}, u[7] = _, u[8] = T);
|
|
31
|
+
let E;
|
|
32
|
+
u[9] !== _ || u[10] !== f || u[11] !== d ? (E = [
|
|
33
|
+
d,
|
|
34
|
+
f,
|
|
35
|
+
_
|
|
36
|
+
], u[9] = _, u[10] = f, u[11] = d, u[12] = E) : E = u[12], r(T, E);
|
|
37
|
+
let D, O;
|
|
38
|
+
if (u[13] === Symbol.for("react.memo_cache_sentinel") ? (D = () => {
|
|
39
|
+
let e = y.current;
|
|
19
40
|
e && (e.scrollTop = e.scrollHeight);
|
|
20
|
-
}, []),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
}, O = [], u[13] = D, u[14] = O) : (D = u[13], O = u[14]), r(D, O), d.length === 0 && !f) {
|
|
42
|
+
let e;
|
|
43
|
+
u[15] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ o("div", {
|
|
44
|
+
className: "size-12 rounded-full bg-bg-sunken flex items-center justify-center mb-3",
|
|
45
|
+
children: /* @__PURE__ */ o(a, { className: "size-6 text-text-muted" })
|
|
46
|
+
}), u[15] = e) : e = u[15];
|
|
47
|
+
let t;
|
|
48
|
+
u[16] === b ? t = u[17] : (t = b("vibecontrols.agentManager.messageList.startConversation", "Start a conversation"), u[16] = b, u[17] = t);
|
|
49
|
+
let n;
|
|
50
|
+
u[18] === t ? n = u[19] : (n = /* @__PURE__ */ o("p", {
|
|
51
|
+
className: "text-sm font-medium text-text-primary",
|
|
52
|
+
children: t
|
|
53
|
+
}), u[18] = t, u[19] = n);
|
|
54
|
+
let r;
|
|
55
|
+
u[20] === b ? r = u[21] : (r = b("vibecontrols.agentManager.messageList.typeMessage", "Type a message below to begin interacting with the AI agent."), u[20] = b, u[21] = r);
|
|
56
|
+
let i;
|
|
57
|
+
u[22] === r ? i = u[23] : (i = /* @__PURE__ */ o("p", {
|
|
58
|
+
className: "text-xs text-text-secondary mt-1 max-w-xs",
|
|
59
|
+
children: r
|
|
60
|
+
}), u[22] = r, u[23] = i);
|
|
61
|
+
let c;
|
|
62
|
+
return u[24] !== i || u[25] !== n ? (c = /* @__PURE__ */ s("div", {
|
|
63
|
+
className: "flex-1 flex flex-col items-center justify-center px-4 text-center",
|
|
64
|
+
children: [
|
|
65
|
+
e,
|
|
66
|
+
n,
|
|
67
|
+
i
|
|
68
|
+
]
|
|
69
|
+
}), u[24] = i, u[25] = n, u[26] = c) : c = u[26], c;
|
|
70
|
+
}
|
|
71
|
+
let k;
|
|
72
|
+
u[27] === b ? k = u[28] : (k = b("vibecontrols.agentManager.messageList.agentConversation", "Agent conversation"), u[27] = b, u[28] = k);
|
|
73
|
+
let A;
|
|
74
|
+
u[29] !== w.length || u[30] !== S || u[31] !== b ? (A = S && w.length === 0 && /* @__PURE__ */ o("div", {
|
|
75
|
+
className: "flex items-center justify-center py-8",
|
|
76
|
+
children: /* @__PURE__ */ o("p", {
|
|
77
|
+
className: "text-sm text-text-tertiary",
|
|
78
|
+
children: b("vibecontrols.agentManager.messageList.noResults", "No messages match your search")
|
|
79
|
+
})
|
|
80
|
+
}), u[29] = w.length, u[30] = S, u[31] = b, u[32] = A) : A = u[32];
|
|
81
|
+
let j;
|
|
82
|
+
if (u[33] !== h || u[34] !== w || u[35] !== _ || u[36] !== S || u[37] !== g) {
|
|
83
|
+
let t;
|
|
84
|
+
u[39] !== h || u[40] !== _ || u[41] !== S || u[42] !== g ? (t = (t) => /* @__PURE__ */ o(e, {
|
|
85
|
+
message: t,
|
|
86
|
+
searchQuery: S,
|
|
87
|
+
isBookmarked: h?.has(t.id) ?? !1,
|
|
88
|
+
onToggleBookmark: g,
|
|
89
|
+
flashMessageId: _
|
|
90
|
+
}, t.id), u[39] = h, u[40] = _, u[41] = S, u[42] = g, u[43] = t) : t = u[43], j = w.map(t), u[33] = h, u[34] = w, u[35] = _, u[36] = S, u[37] = g, u[38] = j;
|
|
91
|
+
} else j = u[38];
|
|
92
|
+
let M;
|
|
93
|
+
u[44] !== f || u[45] !== p ? (M = f && p && /* @__PURE__ */ o(t, { onCancel: p }), u[44] = f, u[45] = p, u[46] = M) : M = u[46];
|
|
94
|
+
let N;
|
|
95
|
+
u[47] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ o("div", { ref: v }), u[47] = N) : N = u[47];
|
|
96
|
+
let P;
|
|
97
|
+
return u[48] !== M || u[49] !== k || u[50] !== A || u[51] !== j ? (P = /* @__PURE__ */ s("div", {
|
|
98
|
+
ref: y,
|
|
38
99
|
className: "flex-1 overflow-y-auto p-4 space-y-3 min-h-0",
|
|
39
100
|
role: "log",
|
|
40
101
|
"aria-live": "polite",
|
|
41
|
-
"aria-label":
|
|
102
|
+
"aria-label": k,
|
|
42
103
|
children: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
children: v("vibecontrols.agentManager.messageList.noResults", "No messages match your search")
|
|
48
|
-
})
|
|
49
|
-
}),
|
|
50
|
-
b.map((t) => /* @__PURE__ */ s(e, {
|
|
51
|
-
message: t,
|
|
52
|
-
searchQuery: y,
|
|
53
|
-
isBookmarked: p?.has(t.id) ?? !1,
|
|
54
|
-
onToggleBookmark: m,
|
|
55
|
-
flashMessageId: h
|
|
56
|
-
}, t.id)),
|
|
57
|
-
u && d && /* @__PURE__ */ s(t, { onCancel: d }),
|
|
58
|
-
/* @__PURE__ */ s("div", { ref: g })
|
|
104
|
+
A,
|
|
105
|
+
j,
|
|
106
|
+
M,
|
|
107
|
+
N
|
|
59
108
|
]
|
|
60
|
-
});
|
|
109
|
+
}), u[48] = M, u[49] = k, u[50] = A, u[51] = j, u[52] = P) : P = u[52], P;
|
|
61
110
|
};
|
|
62
111
|
export { l as AgentManagerMessageList };
|