@designa8/vibedesign-v6 1.10.6 → 1.10.7

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/index.js CHANGED
@@ -992,287 +992,189 @@ PromptInputBar.displayName = "PromptInputBar";
992
992
 
993
993
  // virtual-pkg:src/atoms/ChatScreen/ChatScreen.tsx
994
994
  import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
995
- var ChatEmptyIllustration = () => (
996
- // 112px container — stable width regardless of Tailwind spacing scale.
997
- /* @__PURE__ */ jsxs5(
998
- "div",
999
- {
1000
- className: "relative flex-shrink-0",
1001
- "aria-hidden": "true",
1002
- style: { width: 112 },
1003
- children: [
1004
- /* @__PURE__ */ jsx5(
1005
- "svg",
1006
- {
1007
- viewBox: "0 0 160 140",
1008
- width: "112",
1009
- height: "98",
1010
- className: "text-primary",
1011
- fill: "currentColor",
1012
- style: { opacity: 0.15, display: "block" },
1013
- children: /* @__PURE__ */ jsx5("path", { d: "M78 8c28-6 52 10 58 34 6 24-6 44-4 62 2 16-14 30-36 32-26 2-48-8-62-28-12-18-22-42-10-58C36 30 52 14 78 8z" })
1014
- }
1015
- ),
1016
- /* @__PURE__ */ jsx5("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs5(
1017
- "div",
1018
- {
1019
- className: "relative flex items-center justify-center rounded-full bg-primary shadow-sm",
1020
- style: { width: 64, height: 64 },
1021
- children: [
1022
- /* @__PURE__ */ jsxs5("div", { className: "flex flex-col", style: { width: 32, gap: 6 }, children: [
1023
- /* @__PURE__ */ jsx5(
1024
- "span",
1025
- {
1026
- className: "rounded-full bg-on-primary",
1027
- style: { height: 6, width: "100%" }
1028
- }
1029
- ),
1030
- /* @__PURE__ */ jsx5(
1031
- "span",
1032
- {
1033
- className: "rounded-full bg-on-primary",
1034
- style: { height: 6, width: "66%" }
1035
- }
1036
- )
1037
- ] }),
995
+ var ChatEmptyIllustration = () => /* @__PURE__ */ jsxs5(
996
+ "div",
997
+ {
998
+ className: "relative flex-shrink-0",
999
+ "aria-hidden": "true",
1000
+ style: { width: 112 },
1001
+ children: [
1002
+ /* @__PURE__ */ jsx5(
1003
+ "svg",
1004
+ {
1005
+ viewBox: "0 0 160 140",
1006
+ width: "112",
1007
+ height: "98",
1008
+ className: "text-primary",
1009
+ fill: "currentColor",
1010
+ style: { opacity: 0.15, display: "block" },
1011
+ children: /* @__PURE__ */ jsx5("path", { d: "M78 8c28-6 52 10 58 34 6 24-6 44-4 62 2 16-14 30-36 32-26 2-48-8-62-28-12-18-22-42-10-58C36 30 52 14 78 8z" })
1012
+ }
1013
+ ),
1014
+ /* @__PURE__ */ jsx5("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs5(
1015
+ "div",
1016
+ {
1017
+ className: "relative flex items-center justify-center rounded-full bg-primary shadow-sm",
1018
+ style: { width: 64, height: 64 },
1019
+ children: [
1020
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col", style: { width: 32, gap: 6 }, children: [
1038
1021
  /* @__PURE__ */ jsx5(
1039
1022
  "span",
1040
1023
  {
1041
- className: "absolute bg-primary",
1042
- style: {
1043
- width: 12,
1044
- height: 12,
1045
- bottom: -2,
1046
- right: 8,
1047
- transform: "rotate(45deg)",
1048
- borderRadius: 2
1049
- }
1024
+ className: "rounded-full bg-on-primary",
1025
+ style: { height: 6, width: "100%" }
1026
+ }
1027
+ ),
1028
+ /* @__PURE__ */ jsx5(
1029
+ "span",
1030
+ {
1031
+ className: "rounded-full bg-on-primary",
1032
+ style: { height: 6, width: "66%" }
1050
1033
  }
1051
1034
  )
1052
- ]
1053
- }
1054
- ) }),
1055
- /* @__PURE__ */ jsx5(
1056
- "svg",
1057
- {
1058
- viewBox: "0 0 24 24",
1059
- width: "12",
1060
- height: "12",
1061
- className: "absolute text-primary",
1062
- fill: "currentColor",
1063
- "aria-hidden": "true",
1064
- style: { left: 8, top: 16 },
1065
- children: /* @__PURE__ */ jsx5("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" })
1066
- }
1067
- ),
1068
- /* @__PURE__ */ jsx5(
1069
- "svg",
1070
- {
1071
- viewBox: "0 0 24 24",
1072
- width: "10",
1073
- height: "10",
1074
- className: "absolute text-primary",
1075
- fill: "currentColor",
1076
- "aria-hidden": "true",
1077
- style: { right: 12, top: 32 },
1078
- children: /* @__PURE__ */ jsx5("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" })
1079
- }
1080
- ),
1081
- /* @__PURE__ */ jsx5(
1082
- "svg",
1083
- {
1084
- viewBox: "0 0 24 24",
1085
- width: "8",
1086
- height: "8",
1087
- className: "absolute text-primary",
1088
- fill: "currentColor",
1089
- "aria-hidden": "true",
1090
- style: { left: 24, bottom: 24 },
1091
- children: /* @__PURE__ */ jsx5("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" })
1092
- }
1093
- ),
1094
- /* @__PURE__ */ jsx5(
1095
- "svg",
1096
- {
1097
- viewBox: "0 0 24 24",
1098
- width: "14",
1099
- height: "14",
1100
- className: "absolute text-primary",
1101
- fill: "currentColor",
1102
- "aria-hidden": "true",
1103
- style: { right: 8, bottom: 32 },
1104
- children: /* @__PURE__ */ jsx5("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" })
1105
- }
1106
- )
1107
- ]
1108
- }
1109
- )
1035
+ ] }),
1036
+ /* @__PURE__ */ jsx5(
1037
+ "span",
1038
+ {
1039
+ className: "absolute bg-primary",
1040
+ style: {
1041
+ width: 12,
1042
+ height: 12,
1043
+ bottom: -2,
1044
+ right: 8,
1045
+ transform: "rotate(45deg)",
1046
+ borderRadius: 2
1047
+ }
1048
+ }
1049
+ )
1050
+ ]
1051
+ }
1052
+ ) }),
1053
+ /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", width: "12", height: "12", className: "absolute text-primary", fill: "currentColor", "aria-hidden": "true", style: { left: 8, top: 16 }, children: /* @__PURE__ */ jsx5("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" }) }),
1054
+ /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", width: "10", height: "10", className: "absolute text-primary", fill: "currentColor", "aria-hidden": "true", style: { right: 12, top: 32 }, children: /* @__PURE__ */ jsx5("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" }) }),
1055
+ /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", width: "8", height: "8", className: "absolute text-primary", fill: "currentColor", "aria-hidden": "true", style: { left: 24, bottom: 24 }, children: /* @__PURE__ */ jsx5("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" }) }),
1056
+ /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", width: "14", height: "14", className: "absolute text-primary", fill: "currentColor", "aria-hidden": "true", style: { right: 8, bottom: 32 }, children: /* @__PURE__ */ jsx5("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" }) })
1057
+ ]
1058
+ }
1110
1059
  );
1111
1060
  var ChatEmptyStateContent = ({
1112
1061
  title,
1113
1062
  description
1114
- }) => (
1115
- // Use inline gap so the layout is robust when gap-lg is absent in the consumer theme.
1116
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center px-lg", style: { gap: 24 }, children: [
1117
- /* @__PURE__ */ jsx5(ChatEmptyIllustration, {}),
1118
- /* @__PURE__ */ jsxs5("div", { className: "flex min-w-0 flex-col gap-xs", children: [
1119
- /* @__PURE__ */ jsx5("h2", { className: "text-heading-sm font-weight-heading-sm text-ink", children: title }),
1120
- /* @__PURE__ */ jsx5("p", { className: "text-body-sm text-muted", style: { maxWidth: "24rem" }, children: description })
1121
- ] })
1063
+ }) => /* @__PURE__ */ jsxs5("div", { className: "flex items-center px-lg", style: { gap: 24 }, children: [
1064
+ /* @__PURE__ */ jsx5(ChatEmptyIllustration, {}),
1065
+ /* @__PURE__ */ jsxs5("div", { className: "flex min-w-0 flex-col gap-xs", children: [
1066
+ /* @__PURE__ */ jsx5("h2", { className: "text-heading-sm font-weight-heading-sm text-ink", children: title }),
1067
+ /* @__PURE__ */ jsx5("p", { className: "text-body-sm text-muted", style: { maxWidth: "24rem" }, children: description })
1122
1068
  ] })
1123
- );
1124
- var ChevronIcon2 = ({ expanded }) => /* @__PURE__ */ jsx5(
1125
- "svg",
1126
- {
1127
- xmlns: "http://www.w3.org/2000/svg",
1128
- viewBox: "0 0 24 24",
1129
- fill: "none",
1130
- stroke: "currentColor",
1131
- strokeWidth: "2",
1132
- strokeLinecap: "round",
1133
- strokeLinejoin: "round",
1134
- className: "size-4 text-muted flex-shrink-0 transition-transform duration-200",
1135
- style: { transform: expanded ? "rotate(180deg)" : "rotate(0deg)" },
1136
- "aria-hidden": "true",
1137
- children: /* @__PURE__ */ jsx5("polyline", { points: "6 9 12 15 18 9" })
1069
+ ] });
1070
+ var TimelineKindIcon = ({
1071
+ kind,
1072
+ status
1073
+ }) => {
1074
+ const colorClass = status === "error" ? "text-semantic-error" : status === "running" ? "text-primary" : "text-semantic-success";
1075
+ if (kind === "thinking") {
1076
+ return /* @__PURE__ */ jsxs5("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: [
1077
+ /* @__PURE__ */ jsx5("circle", { cx: "12", cy: "12", r: "10" }),
1078
+ /* @__PURE__ */ jsx5("path", { d: "M12 8v4l2 2" })
1079
+ ] });
1138
1080
  }
1139
- );
1140
- var PlanCardBlock = ({ plan }) => {
1141
- const [titleExpanded, setTitleExpanded] = React5.useState(false);
1142
- const titleRef = React5.useRef(null);
1143
- const [isOverflowing, setIsOverflowing] = React5.useState(false);
1144
- React5.useEffect(() => {
1145
- const el = titleRef.current;
1146
- if (!el) return;
1147
- const check = () => {
1148
- if (el) {
1149
- setIsOverflowing(el.scrollHeight > el.clientHeight + 2);
1150
- }
1151
- };
1152
- check();
1153
- const ro = new ResizeObserver(check);
1154
- ro.observe(el);
1155
- return () => ro.disconnect();
1156
- }, [plan.title]);
1157
- const hasActivity = plan.tasks.some(
1158
- (t) => t.status === "in_progress" || t.status === "done" || t.status === "failed"
1159
- );
1160
- const visibleTasks = plan.tasks.filter(
1161
- (t) => t.status === "in_progress" || t.status === "done" || t.status === "failed"
1162
- );
1163
- return /* @__PURE__ */ jsxs5("div", { className: "mt-md rounded-xl border border-hairline bg-canvas shadow-sm overflow-hidden", children: [
1164
- /* @__PURE__ */ jsxs5("div", { className: "flex items-start gap-sm px-lg py-md border-b border-hairline-soft", children: [
1165
- /* @__PURE__ */ jsxs5(
1166
- "svg",
1081
+ if (kind === "read") {
1082
+ return /* @__PURE__ */ jsxs5("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: [
1083
+ /* @__PURE__ */ jsx5("path", { d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" }),
1084
+ /* @__PURE__ */ jsx5("path", { d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z" })
1085
+ ] });
1086
+ }
1087
+ if (kind === "write") {
1088
+ return /* @__PURE__ */ jsxs5("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: [
1089
+ /* @__PURE__ */ jsx5("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
1090
+ /* @__PURE__ */ jsx5("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
1091
+ ] });
1092
+ }
1093
+ if (kind === "verify") {
1094
+ return /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: /* @__PURE__ */ jsx5("polyline", { points: "20 6 9 17 4 12" }) });
1095
+ }
1096
+ return /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: /* @__PURE__ */ jsx5("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" }) });
1097
+ };
1098
+ var TimelineRow = ({ item, isLast }) => {
1099
+ const borderColor = item.status === "error" ? "border-semantic-error" : item.status === "running" ? "border-primary" : "border-semantic-success";
1100
+ return /* @__PURE__ */ jsxs5("div", { className: "flex gap-sm", children: [
1101
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col items-center", style: { width: 20 }, children: [
1102
+ /* @__PURE__ */ jsx5(
1103
+ "div",
1167
1104
  {
1168
- xmlns: "http://www.w3.org/2000/svg",
1169
- viewBox: "0 0 24 24",
1170
- fill: "none",
1171
- stroke: "currentColor",
1172
- strokeWidth: "2",
1173
- strokeLinecap: "round",
1174
- strokeLinejoin: "round",
1175
- className: "size-4 text-primary flex-shrink-0 mt-xs",
1176
- "aria-hidden": "true",
1177
- children: [
1178
- /* @__PURE__ */ jsx5("line", { x1: "8", y1: "6", x2: "21", y2: "6" }),
1179
- /* @__PURE__ */ jsx5("line", { x1: "8", y1: "12", x2: "21", y2: "12" }),
1180
- /* @__PURE__ */ jsx5("line", { x1: "8", y1: "18", x2: "21", y2: "18" }),
1181
- /* @__PURE__ */ jsx5("line", { x1: "3", y1: "6", x2: "3.01", y2: "6" }),
1182
- /* @__PURE__ */ jsx5("line", { x1: "3", y1: "12", x2: "3.01", y2: "12" }),
1183
- /* @__PURE__ */ jsx5("line", { x1: "3", y1: "18", x2: "3.01", y2: "18" })
1184
- ]
1105
+ className: [
1106
+ "flex items-center justify-center rounded-full flex-shrink-0 border",
1107
+ borderColor,
1108
+ "bg-canvas"
1109
+ ].join(" "),
1110
+ style: { width: 20, height: 20 },
1111
+ children: item.status === "running" ? /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", width: "10", height: "10", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", className: "text-primary animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ jsx5("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }) : /* @__PURE__ */ jsx5(TimelineKindIcon, { kind: item.kind, status: item.status })
1185
1112
  }
1186
1113
  ),
1187
- /* @__PURE__ */ jsxs5("div", { className: "flex-1 min-w-0 flex items-start gap-xs", children: [
1188
- /* @__PURE__ */ jsx5(
1189
- "span",
1190
- {
1191
- ref: titleRef,
1192
- className: "text-body-sm font-weight-heading-sm text-primary flex-1 min-w-0",
1193
- style: titleExpanded ? void 0 : {
1194
- display: "-webkit-box",
1195
- WebkitLineClamp: 2,
1196
- WebkitBoxOrient: "vertical",
1197
- overflow: "hidden"
1198
- },
1199
- children: plan.title
1200
- }
1201
- ),
1202
- isOverflowing && /* @__PURE__ */ jsx5(
1203
- Button,
1204
- {
1205
- variant: "ghost",
1206
- size: "sm",
1207
- type: "button",
1208
- onClick: () => setTitleExpanded((prev) => !prev),
1209
- "aria-label": titleExpanded ? "Collapse plan title" : "Expand plan title",
1210
- className: "flex-shrink-0 !p-xxs !rounded-xs",
1211
- children: /* @__PURE__ */ jsx5(ChevronIcon2, { expanded: titleExpanded })
1212
- }
1213
- )
1214
- ] })
1114
+ !isLast && /* @__PURE__ */ jsx5("div", { className: "flex-1 w-px bg-hairline-soft", style: { minHeight: 8 } })
1215
1115
  ] }),
1216
- hasActivity && visibleTasks.length > 0 && /* @__PURE__ */ jsx5("ol", { className: "flex flex-col divide-y divide-hairline-soft", children: visibleTasks.map((task) => /* @__PURE__ */ jsxs5(
1217
- "li",
1116
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col min-w-0 pb-sm", children: [
1117
+ /* @__PURE__ */ jsx5(
1118
+ "span",
1119
+ {
1120
+ className: [
1121
+ "text-body-sm",
1122
+ item.status === "error" ? "text-semantic-error" : item.status === "running" ? "text-ink font-weight-heading-sm" : "text-muted"
1123
+ ].join(" "),
1124
+ children: item.label
1125
+ }
1126
+ ),
1127
+ item.detail && /* @__PURE__ */ jsx5("span", { className: "text-caption text-muted-soft mt-xxs", children: item.detail })
1128
+ ] })
1129
+ ] });
1130
+ };
1131
+ var TimelineBlock = ({ items }) => {
1132
+ const [expanded, setExpanded] = React5.useState(false);
1133
+ if (items.length === 0) return null;
1134
+ const latestItem = items[items.length - 1];
1135
+ const hasMore = items.length > 1;
1136
+ return /* @__PURE__ */ jsxs5("div", { className: "mt-md rounded-xl border border-hairline bg-canvas overflow-hidden", children: [
1137
+ /* @__PURE__ */ jsxs5(
1138
+ Button,
1218
1139
  {
1219
- className: "flex items-center gap-md px-lg py-md",
1140
+ variant: "ghost",
1141
+ size: "sm",
1142
+ type: "button",
1143
+ onClick: () => setExpanded((prev) => !prev),
1144
+ "aria-expanded": expanded,
1145
+ "aria-label": expanded ? "Collapse agent steps" : "Expand agent steps",
1146
+ className: "w-full flex items-center gap-sm !px-md !py-sm !text-left !justify-start !rounded-none",
1220
1147
  children: [
1221
- task.status === "in_progress" && /* @__PURE__ */ jsx5(
1222
- "span",
1223
- {
1224
- className: "flex-shrink-0 size-3 rounded-full bg-primary animate-pulse",
1225
- "aria-label": "In progress"
1226
- }
1227
- ),
1228
- task.status === "done" && /* @__PURE__ */ jsx5("span", { className: "flex-shrink-0", "aria-label": "Done", children: /* @__PURE__ */ jsx5(
1229
- "svg",
1230
- {
1231
- xmlns: "http://www.w3.org/2000/svg",
1232
- viewBox: "0 0 24 24",
1233
- fill: "none",
1234
- stroke: "currentColor",
1235
- strokeWidth: "2.5",
1236
- strokeLinecap: "round",
1237
- strokeLinejoin: "round",
1238
- className: "size-4 text-semantic-success",
1239
- "aria-hidden": "true",
1240
- children: /* @__PURE__ */ jsx5("polyline", { points: "20 6 9 17 4 12" })
1241
- }
1242
- ) }),
1243
- task.status === "failed" && /* @__PURE__ */ jsx5("span", { className: "flex-shrink-0", "aria-label": "Failed", children: /* @__PURE__ */ jsxs5(
1148
+ /* @__PURE__ */ jsx5("span", { className: "flex-shrink-0 flex items-center justify-center", style: { width: 20, height: 20 }, children: latestItem.status === "running" ? /* @__PURE__ */ jsx5("svg", { viewBox: "0 0 24 24", width: "12", height: "12", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", className: "text-primary animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ jsx5("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }) : /* @__PURE__ */ jsx5(TimelineKindIcon, { kind: latestItem.kind, status: latestItem.status }) }),
1149
+ /* @__PURE__ */ jsxs5("span", { className: "flex-1 min-w-0 text-body-sm text-muted truncate", children: [
1150
+ latestItem.label,
1151
+ hasMore && !expanded && /* @__PURE__ */ jsxs5("span", { className: "ml-xs text-caption text-muted-soft", children: [
1152
+ "(+",
1153
+ items.length - 1,
1154
+ " more)"
1155
+ ] })
1156
+ ] }),
1157
+ hasMore && /* @__PURE__ */ jsx5(
1244
1158
  "svg",
1245
1159
  {
1246
- xmlns: "http://www.w3.org/2000/svg",
1247
1160
  viewBox: "0 0 24 24",
1161
+ width: "14",
1162
+ height: "14",
1248
1163
  fill: "none",
1249
1164
  stroke: "currentColor",
1250
- strokeWidth: "2.5",
1165
+ strokeWidth: "2",
1251
1166
  strokeLinecap: "round",
1252
1167
  strokeLinejoin: "round",
1253
- className: "size-4 text-semantic-error",
1168
+ className: "text-muted flex-shrink-0 transition-transform duration-200",
1169
+ style: { transform: expanded ? "rotate(180deg)" : "rotate(0deg)" },
1254
1170
  "aria-hidden": "true",
1255
- children: [
1256
- /* @__PURE__ */ jsx5("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1257
- /* @__PURE__ */ jsx5("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1258
- ]
1259
- }
1260
- ) }),
1261
- /* @__PURE__ */ jsx5(
1262
- "span",
1263
- {
1264
- className: [
1265
- "text-body-sm",
1266
- task.status === "in_progress" ? "font-weight-heading-sm text-ink" : task.status === "done" ? "line-through text-muted" : task.status === "failed" ? "text-semantic-error" : "text-ink"
1267
- ].filter(Boolean).join(" "),
1268
- children: task.label
1171
+ children: /* @__PURE__ */ jsx5("polyline", { points: "6 9 12 15 18 9" })
1269
1172
  }
1270
- ),
1271
- task.status === "in_progress" && task.currentTool && /* @__PURE__ */ jsx5("span", { className: "ml-auto text-caption text-muted flex-shrink-0", children: task.currentTool })
1173
+ )
1272
1174
  ]
1273
- },
1274
- task.id
1275
- )) })
1175
+ }
1176
+ ),
1177
+ expanded && hasMore && /* @__PURE__ */ jsx5("div", { className: "px-md pb-sm pt-xs border-t border-hairline-soft", children: items.map((item, idx) => /* @__PURE__ */ jsx5(TimelineRow, { item, isLast: idx === items.length - 1 }, item.id)) })
1276
1178
  ] });
1277
1179
  };
1278
1180
  var AIAvatar = () => /* @__PURE__ */ jsx5(
@@ -1314,7 +1216,7 @@ var AiMessage = ({ message }) => /* @__PURE__ */ jsxs5("div", { className: "flex
1314
1216
  /* @__PURE__ */ jsx5("span", { className: "text-body-sm text-primary", children: message.currentToolLabel ?? "Working\u2026" })
1315
1217
  ] }),
1316
1218
  /* @__PURE__ */ jsx5("p", { className: "text-body-sm text-body leading-relaxed", children: message.content }),
1317
- message.plan && /* @__PURE__ */ jsx5(PlanCardBlock, { plan: message.plan }),
1219
+ message.timeline && message.timeline.length > 0 && /* @__PURE__ */ jsx5(TimelineBlock, { items: message.timeline }),
1318
1220
  message.postContent && /* @__PURE__ */ jsx5("p", { className: "text-body-sm text-body leading-relaxed mt-md", children: message.postContent })
1319
1221
  ] })
1320
1222
  ] });
@@ -1343,29 +1245,28 @@ var ChatScreen = React5.forwardRef(
1343
1245
  {
1344
1246
  id: "1",
1345
1247
  role: "user",
1346
- content: "Build a `PromptInputBar` Molecule that reproduces the Lovable-style prompt bar with placeholder and the bottom toolbar.",
1248
+ content: "Build a `PromptInputBar` Molecule that reproduces the Lovable-style prompt bar.",
1347
1249
  userInitials: "DU"
1348
1250
  },
1349
1251
  {
1350
1252
  id: "2",
1351
1253
  role: "ai",
1352
- content: "I'll build the `PromptInputBar` Molecule to match the Lovable-style prompt bar. It will include a soft surface background, large rounded container, textarea with placeholder, and the bottom toolbar with `+`, `Visual edits`, `Build` mode dropdown, mic, and send buttons.\n\nHere's my plan for building this component:",
1353
- plan: {
1354
- title: "Plan: Build the PromptInputBar Molecule with all toolbar controls, placeholder text, and mode-switching behaviour for the Lovable editor canvas",
1355
- tasks: [
1356
- { id: "p1", label: "Create the PromptInputBar structure and styling", status: "done" },
1357
- { id: "p2", label: "Add textarea with placeholder", status: "done" },
1358
- { id: "p3", label: "Build bottom toolbar with all button elements", status: "done" },
1359
- { id: "p4", label: "Add interactions and states" },
1360
- { id: "p5", label: "Create stories and tests" }
1361
- ]
1362
- },
1363
- postContent: "The plan above outlines all the steps. Let me start building the component now."
1254
+ content: "I'll build the `PromptInputBar` Molecule now. Here's what the agent is doing:",
1255
+ timeline: [
1256
+ { id: "t1", kind: "thinking", label: "Planning component structure", status: "done" },
1257
+ { id: "t2", kind: "read", label: "Reading design tokens", detail: "colors, spacing, typography", status: "done" },
1258
+ { id: "t3", kind: "write", label: "Writing PromptInputBar.tsx", status: "done" },
1259
+ { id: "t4", kind: "verify", label: "Verifying atom", status: "running" }
1260
+ ],
1261
+ postContent: "The component is being verified \u2014 it will be ready shortly."
1364
1262
  },
1365
1263
  {
1366
1264
  id: "3",
1367
1265
  role: "ai",
1368
- content: "Let me start building the `PromptInputBar` Molecule."
1266
+ content: "Done! The `PromptInputBar` atom has been created and verified.",
1267
+ timeline: [
1268
+ { id: "t5", kind: "verify", label: "Atom verified successfully", status: "done" }
1269
+ ]
1369
1270
  }
1370
1271
  ];
1371
1272
  const [messages, setMessages] = React5.useState(
@@ -1478,7 +1379,7 @@ var DeleteIcon = () => /* @__PURE__ */ jsxs6(
1478
1379
  ]
1479
1380
  }
1480
1381
  );
1481
- var ChevronIcon3 = ({ open }) => /* @__PURE__ */ jsx6(
1382
+ var ChevronIcon2 = ({ open }) => /* @__PURE__ */ jsx6(
1482
1383
  "svg",
1483
1384
  {
1484
1385
  "aria-hidden": "true",
@@ -1572,7 +1473,7 @@ var WorkspaceMenu = React6.forwardRef(
1572
1473
  style: { minWidth: "200px" },
1573
1474
  children: [
1574
1475
  /* @__PURE__ */ jsx6("span", { className: "flex-1 text-left truncate text-body-sm font-weight-heading-sm", children: workspaceName }),
1575
- /* @__PURE__ */ jsx6(ChevronIcon3, { open })
1476
+ /* @__PURE__ */ jsx6(ChevronIcon2, { open })
1576
1477
  ]
1577
1478
  }
1578
1479
  ),