@inf-monkeys-tech/monkeys-design 2.0.32 → 2.0.33
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/components/agent-workbench/index.d.mts +3 -1
- package/dist/components/agent-workbench/index.d.ts +3 -1
- package/dist/components/agent-workbench/index.js +18 -1
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +18 -1
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5110,6 +5110,8 @@ function AgentWorkbenchProcess({
|
|
|
5110
5110
|
className,
|
|
5111
5111
|
contentClassName,
|
|
5112
5112
|
label,
|
|
5113
|
+
title: processTitle,
|
|
5114
|
+
createdAt,
|
|
5113
5115
|
showStatusIcon = true,
|
|
5114
5116
|
variant,
|
|
5115
5117
|
density
|
|
@@ -5138,6 +5140,15 @@ function AgentWorkbenchProcess({
|
|
|
5138
5140
|
const duration = durationMs === void 0 ? void 0 : formatDuration3(durationMs);
|
|
5139
5141
|
const title = label ?? (status === "queued" ? messages.process.queued : status === "waiting_approval" ? messages.process.waitingApproval : status === "running" ? messages.process.running : status === "failed" ? messages.process.failed : status === "stopped" ? messages.process.stopped : duration ? messages.process.processedFor({ duration }) : messages.process.processed);
|
|
5140
5142
|
const showCount = totalCount !== void 0 && totalCount > 0;
|
|
5143
|
+
const displayTitle = processTitle ?? title;
|
|
5144
|
+
const parsedCreatedAt = createdAt ? new Date(createdAt) : void 0;
|
|
5145
|
+
const createdTime = parsedCreatedAt && Number.isFinite(parsedCreatedAt.getTime()) ? parsedCreatedAt.toLocaleTimeString(void 0, {
|
|
5146
|
+
hour: "2-digit",
|
|
5147
|
+
minute: "2-digit",
|
|
5148
|
+
second: "2-digit",
|
|
5149
|
+
hour12: false
|
|
5150
|
+
}) : void 0;
|
|
5151
|
+
const hasProcessDetails = processTitle !== void 0 && (createdTime !== void 0 || label !== void 0);
|
|
5141
5152
|
return /* @__PURE__ */ jsxs(
|
|
5142
5153
|
CollapsiblePrimitive.Root,
|
|
5143
5154
|
{
|
|
@@ -5188,7 +5199,13 @@ function AgentWorkbenchProcess({
|
|
|
5188
5199
|
"aria-hidden": "true"
|
|
5189
5200
|
}
|
|
5190
5201
|
) : null,
|
|
5191
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children:
|
|
5202
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: hasProcessDetails ? /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
|
|
5203
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-2 truncate", children: [
|
|
5204
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: displayTitle }),
|
|
5205
|
+
createdTime ? /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground/70", children: createdTime }) : null
|
|
5206
|
+
] }),
|
|
5207
|
+
label ? /* @__PURE__ */ jsx("span", { className: "truncate text-xs text-muted-foreground/70", children: label }) : null
|
|
5208
|
+
] }) : title }),
|
|
5192
5209
|
showCount ? /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs text-foreground", children: messages.process.completedCount({
|
|
5193
5210
|
completed: completedCount ?? 0,
|
|
5194
5211
|
total: totalCount
|