@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.
@@ -145,9 +145,11 @@ interface AgentWorkbenchProcessProps extends AgentWorkbenchAppearanceOptions {
145
145
  className?: string;
146
146
  contentClassName?: string;
147
147
  label?: string;
148
+ title?: string;
149
+ createdAt?: Date | string;
148
150
  showStatusIcon?: boolean;
149
151
  }
150
- declare function AgentWorkbenchProcess({ status, children, durationMs, completedCount, totalCount, open, defaultOpen, onOpenChange, className, contentClassName, label, showStatusIcon, variant, density, }: AgentWorkbenchProcessProps): react_jsx_runtime.JSX.Element;
152
+ declare function AgentWorkbenchProcess({ status, children, durationMs, completedCount, totalCount, open, defaultOpen, onOpenChange, className, contentClassName, label, title: processTitle, createdAt, showStatusIcon, variant, density, }: AgentWorkbenchProcessProps): react_jsx_runtime.JSX.Element;
151
153
  type AgentWorkbenchActionKind = "command" | "file" | "read" | "search" | "tool";
152
154
  type AgentWorkbenchActionStatus = "completed" | "denied" | "failed" | "pending" | "running";
153
155
  interface AgentWorkbenchActionProps {
@@ -145,9 +145,11 @@ interface AgentWorkbenchProcessProps extends AgentWorkbenchAppearanceOptions {
145
145
  className?: string;
146
146
  contentClassName?: string;
147
147
  label?: string;
148
+ title?: string;
149
+ createdAt?: Date | string;
148
150
  showStatusIcon?: boolean;
149
151
  }
150
- declare function AgentWorkbenchProcess({ status, children, durationMs, completedCount, totalCount, open, defaultOpen, onOpenChange, className, contentClassName, label, showStatusIcon, variant, density, }: AgentWorkbenchProcessProps): react_jsx_runtime.JSX.Element;
152
+ declare function AgentWorkbenchProcess({ status, children, durationMs, completedCount, totalCount, open, defaultOpen, onOpenChange, className, contentClassName, label, title: processTitle, createdAt, showStatusIcon, variant, density, }: AgentWorkbenchProcessProps): react_jsx_runtime.JSX.Element;
151
153
  type AgentWorkbenchActionKind = "command" | "file" | "read" | "search" | "tool";
152
154
  type AgentWorkbenchActionStatus = "completed" | "denied" | "failed" | "pending" | "running";
153
155
  interface AgentWorkbenchActionProps {
@@ -5142,6 +5142,8 @@ function AgentWorkbenchProcess({
5142
5142
  className,
5143
5143
  contentClassName,
5144
5144
  label,
5145
+ title: processTitle,
5146
+ createdAt,
5145
5147
  showStatusIcon = true,
5146
5148
  variant,
5147
5149
  density
@@ -5170,6 +5172,15 @@ function AgentWorkbenchProcess({
5170
5172
  const duration = durationMs === void 0 ? void 0 : formatDuration3(durationMs);
5171
5173
  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);
5172
5174
  const showCount = totalCount !== void 0 && totalCount > 0;
5175
+ const displayTitle = processTitle ?? title;
5176
+ const parsedCreatedAt = createdAt ? new Date(createdAt) : void 0;
5177
+ const createdTime = parsedCreatedAt && Number.isFinite(parsedCreatedAt.getTime()) ? parsedCreatedAt.toLocaleTimeString(void 0, {
5178
+ hour: "2-digit",
5179
+ minute: "2-digit",
5180
+ second: "2-digit",
5181
+ hour12: false
5182
+ }) : void 0;
5183
+ const hasProcessDetails = processTitle !== void 0 && (createdTime !== void 0 || label !== void 0);
5173
5184
  return /* @__PURE__ */ jsxRuntime.jsxs(
5174
5185
  CollapsiblePrimitive__namespace.Root,
5175
5186
  {
@@ -5220,7 +5231,13 @@ function AgentWorkbenchProcess({
5220
5231
  "aria-hidden": "true"
5221
5232
  }
5222
5233
  ) : null,
5223
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", children: title }),
5234
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", children: hasProcessDetails ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 flex-col", children: [
5235
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 items-center gap-2 truncate", children: [
5236
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: displayTitle }),
5237
+ createdTime ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground/70", children: createdTime }) : null
5238
+ ] }),
5239
+ label ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-xs text-muted-foreground/70", children: label }) : null
5240
+ ] }) : title }),
5224
5241
  showCount ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs text-foreground", children: messages.process.completedCount({
5225
5242
  completed: completedCount ?? 0,
5226
5243
  total: totalCount