@inf-monkeys-tech/monkeys-design 1.0.31 → 1.0.32
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 +2 -1
- package/dist/components/agent-workbench/index.d.ts +2 -1
- package/dist/components/agent-workbench/index.js +7 -4
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +7 -4
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/base/index.js +1 -1
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +1 -1
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js +1 -1
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +1 -1
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +1 -1
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/runtime/index.js +1 -1
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +1 -1
- package/dist/components/runtime/index.mjs.map +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +1 -1
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +1 -1
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js +1 -1
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +1 -1
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.js +2 -2
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.mjs +2 -2
- package/dist/locale/index.mjs.map +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +2 -2
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -106,8 +106,9 @@ interface AgentWorkbenchProcessProps {
|
|
|
106
106
|
className?: string;
|
|
107
107
|
contentClassName?: string;
|
|
108
108
|
label?: string;
|
|
109
|
+
showStatusIcon?: boolean;
|
|
109
110
|
}
|
|
110
|
-
declare function AgentWorkbenchProcess({ status, children, durationMs, completedCount, totalCount, open, defaultOpen, onOpenChange, className, contentClassName, label, }: AgentWorkbenchProcessProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
declare function AgentWorkbenchProcess({ status, children, durationMs, completedCount, totalCount, open, defaultOpen, onOpenChange, className, contentClassName, label, showStatusIcon, }: AgentWorkbenchProcessProps): react_jsx_runtime.JSX.Element;
|
|
111
112
|
type AgentWorkbenchActionKind = 'command' | 'file' | 'read' | 'search' | 'tool';
|
|
112
113
|
type AgentWorkbenchActionStatus = 'completed' | 'denied' | 'failed' | 'pending' | 'running';
|
|
113
114
|
interface AgentWorkbenchActionProps {
|
|
@@ -106,8 +106,9 @@ interface AgentWorkbenchProcessProps {
|
|
|
106
106
|
className?: string;
|
|
107
107
|
contentClassName?: string;
|
|
108
108
|
label?: string;
|
|
109
|
+
showStatusIcon?: boolean;
|
|
109
110
|
}
|
|
110
|
-
declare function AgentWorkbenchProcess({ status, children, durationMs, completedCount, totalCount, open, defaultOpen, onOpenChange, className, contentClassName, label, }: AgentWorkbenchProcessProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
declare function AgentWorkbenchProcess({ status, children, durationMs, completedCount, totalCount, open, defaultOpen, onOpenChange, className, contentClassName, label, showStatusIcon, }: AgentWorkbenchProcessProps): react_jsx_runtime.JSX.Element;
|
|
111
112
|
type AgentWorkbenchActionKind = 'command' | 'file' | 'read' | 'search' | 'tool';
|
|
112
113
|
type AgentWorkbenchActionStatus = 'completed' | 'denied' | 'failed' | 'pending' | 'running';
|
|
113
114
|
interface AgentWorkbenchActionProps {
|
|
@@ -206,7 +206,7 @@ var enUS = {
|
|
|
206
206
|
process: {
|
|
207
207
|
running: "Working",
|
|
208
208
|
processed: "Processed",
|
|
209
|
-
processedFor: ({ duration }) => `
|
|
209
|
+
processedFor: ({ duration }) => `Worked for ${duration}`,
|
|
210
210
|
completedCount: ({ completed, total }) => `${completed}/${total} completed`
|
|
211
211
|
},
|
|
212
212
|
artifactWorkspace: {
|
|
@@ -2453,8 +2453,10 @@ function AgentWorkbenchThread({
|
|
|
2453
2453
|
}
|
|
2454
2454
|
function formatDuration3(durationMs) {
|
|
2455
2455
|
const totalSeconds = Math.max(0, Math.floor(durationMs / 1e3));
|
|
2456
|
-
const
|
|
2456
|
+
const hours = Math.floor(totalSeconds / 3600);
|
|
2457
|
+
const minutes = Math.floor(totalSeconds % 3600 / 60);
|
|
2457
2458
|
const seconds = totalSeconds % 60;
|
|
2459
|
+
if (hours > 0) return minutes > 0 ? `${hours}h ${minutes}m` : `${hours}h`;
|
|
2458
2460
|
if (minutes === 0) return `${seconds}s`;
|
|
2459
2461
|
return `${minutes}m ${seconds}s`;
|
|
2460
2462
|
}
|
|
@@ -2472,7 +2474,8 @@ function AgentWorkbenchProcess({
|
|
|
2472
2474
|
onOpenChange,
|
|
2473
2475
|
className,
|
|
2474
2476
|
contentClassName,
|
|
2475
|
-
label
|
|
2477
|
+
label,
|
|
2478
|
+
showStatusIcon = true
|
|
2476
2479
|
}) {
|
|
2477
2480
|
const messages = useMonkeysLocaleMessages().agentWorkbench;
|
|
2478
2481
|
const controlled = open !== void 0;
|
|
@@ -2506,7 +2509,7 @@ function AgentWorkbenchProcess({
|
|
|
2506
2509
|
{
|
|
2507
2510
|
className: "flex min-h-9 w-full min-w-0 items-center gap-2 border-b border-border/70 py-2 text-left text-sm text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",
|
|
2508
2511
|
children: [
|
|
2509
|
-
isActive(status) ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 shrink-0 animate-spin", "aria-hidden": "true" }) : status === "failed" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleAlert, { className: "size-4 shrink-0 text-destructive-text", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock3, { className: "size-4 shrink-0", "aria-hidden": "true" }),
|
|
2512
|
+
showStatusIcon ? isActive(status) ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 shrink-0 animate-spin", "aria-hidden": "true" }) : status === "failed" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleAlert, { className: "size-4 shrink-0 text-destructive-text", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock3, { className: "size-4 shrink-0", "aria-hidden": "true" }) : null,
|
|
2510
2513
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", children: title }),
|
|
2511
2514
|
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({
|
|
2512
2515
|
completed: completedCount ?? 0,
|