@inf-monkeys-tech/monkeys-design 1.0.9 → 1.0.10-canary.61.1.0a6fb1f
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 +20 -2
- package/dist/components/agent-workbench/index.d.ts +20 -2
- package/dist/components/agent-workbench/index.js +148 -27
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +150 -30
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/base/index.js +8 -1
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +8 -1
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js +8 -1
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +8 -1
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js +8 -1
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +8 -1
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/runtime/index.js +8 -1
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +8 -1
- package/dist/components/runtime/index.mjs.map +1 -1
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +8 -1
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +8 -1
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +8 -1
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +8 -1
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js +8 -1
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +8 -1
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +161 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -31
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.d.mts +16 -2
- package/dist/locale/index.d.ts +16 -2
- package/dist/locale/index.js +21 -3
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.mjs +21 -3
- package/dist/locale/index.mjs.map +1 -1
- package/dist/provider/index.d.mts +2 -2
- package/dist/provider/index.d.ts +2 -2
- package/dist/provider/index.js +21 -3
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +21 -3
- package/dist/provider/index.mjs.map +1 -1
- package/dist/{types-fed4675a38fa.d.mts → types-3d3e043f0ccb.d.mts} +10 -1
- package/dist/{types-fed4675a38fa.d.ts → types-3d3e043f0ccb.d.ts} +10 -1
- package/package.json +3 -3
|
@@ -79,9 +79,27 @@ interface AgentWorkbenchActivityModel {
|
|
|
79
79
|
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
80
80
|
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
81
81
|
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
82
|
-
run?: AgentWorkbenchEventOf<'status'
|
|
82
|
+
run?: AgentWorkbenchEventOf<'status'> & {
|
|
83
|
+
resolvedDurationMs?: number;
|
|
84
|
+
};
|
|
83
85
|
}
|
|
84
86
|
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
87
|
+
interface AgentWorkbenchToolClassNames {
|
|
88
|
+
root?: string;
|
|
89
|
+
trigger?: string;
|
|
90
|
+
content?: string;
|
|
91
|
+
input?: string;
|
|
92
|
+
output?: string;
|
|
93
|
+
}
|
|
94
|
+
interface AgentWorkbenchToolProps {
|
|
95
|
+
event: AgentWorkbenchEventOf<'tool'>;
|
|
96
|
+
expanded?: boolean;
|
|
97
|
+
defaultExpanded?: boolean;
|
|
98
|
+
className?: string;
|
|
99
|
+
classNames?: AgentWorkbenchToolClassNames;
|
|
100
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
101
|
+
}
|
|
102
|
+
declare function AgentWorkbenchTool({ event, expanded, defaultExpanded, className, classNames, onExpandedChange, }: AgentWorkbenchToolProps): react_jsx_runtime.JSX.Element;
|
|
85
103
|
interface AgentWorkbenchTerminalModel {
|
|
86
104
|
terminalId: string;
|
|
87
105
|
stdin: string;
|
|
@@ -108,4 +126,4 @@ interface AgentWorkbenchDetailsModel {
|
|
|
108
126
|
};
|
|
109
127
|
}
|
|
110
128
|
declare function createAgentWorkbenchDetailsModel(viewModel: AgentSessionViewModel): AgentWorkbenchDetailsModel;
|
|
111
|
-
export { AgentWorkbenchActivity, type AgentWorkbenchActivityClassNames, type AgentWorkbenchActivityModel, type AgentWorkbenchActivityProps, type AgentWorkbenchApprovalIntent, type AgentWorkbenchArtifactIntent, type AgentWorkbenchDetailsIntent, type AgentWorkbenchDetailsModel, type AgentWorkbenchDetailsState, type AgentWorkbenchDetailsTab, type AgentWorkbenchEventOf, AgentWorkbenchTaskDetails, type AgentWorkbenchTaskDetailsClassNames, type AgentWorkbenchTaskDetailsProps, type AgentWorkbenchTerminalModel, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel };
|
|
129
|
+
export { AgentWorkbenchActivity, type AgentWorkbenchActivityClassNames, type AgentWorkbenchActivityModel, type AgentWorkbenchActivityProps, type AgentWorkbenchApprovalIntent, type AgentWorkbenchArtifactIntent, type AgentWorkbenchDetailsIntent, type AgentWorkbenchDetailsModel, type AgentWorkbenchDetailsState, type AgentWorkbenchDetailsTab, type AgentWorkbenchEventOf, AgentWorkbenchTaskDetails, type AgentWorkbenchTaskDetailsClassNames, type AgentWorkbenchTaskDetailsProps, type AgentWorkbenchTerminalModel, AgentWorkbenchTool, type AgentWorkbenchToolClassNames, type AgentWorkbenchToolProps, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel };
|
|
@@ -79,9 +79,27 @@ interface AgentWorkbenchActivityModel {
|
|
|
79
79
|
approvals: AgentWorkbenchEventOf<'approval'>[];
|
|
80
80
|
artifacts: AgentWorkbenchEventOf<'artifact'>[];
|
|
81
81
|
usage?: AgentWorkbenchEventOf<'usage'>;
|
|
82
|
-
run?: AgentWorkbenchEventOf<'status'
|
|
82
|
+
run?: AgentWorkbenchEventOf<'status'> & {
|
|
83
|
+
resolvedDurationMs?: number;
|
|
84
|
+
};
|
|
83
85
|
}
|
|
84
86
|
declare function createAgentWorkbenchActivityModel(viewModel: AgentSessionViewModel): AgentWorkbenchActivityModel;
|
|
87
|
+
interface AgentWorkbenchToolClassNames {
|
|
88
|
+
root?: string;
|
|
89
|
+
trigger?: string;
|
|
90
|
+
content?: string;
|
|
91
|
+
input?: string;
|
|
92
|
+
output?: string;
|
|
93
|
+
}
|
|
94
|
+
interface AgentWorkbenchToolProps {
|
|
95
|
+
event: AgentWorkbenchEventOf<'tool'>;
|
|
96
|
+
expanded?: boolean;
|
|
97
|
+
defaultExpanded?: boolean;
|
|
98
|
+
className?: string;
|
|
99
|
+
classNames?: AgentWorkbenchToolClassNames;
|
|
100
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
101
|
+
}
|
|
102
|
+
declare function AgentWorkbenchTool({ event, expanded, defaultExpanded, className, classNames, onExpandedChange, }: AgentWorkbenchToolProps): react_jsx_runtime.JSX.Element;
|
|
85
103
|
interface AgentWorkbenchTerminalModel {
|
|
86
104
|
terminalId: string;
|
|
87
105
|
stdin: string;
|
|
@@ -108,4 +126,4 @@ interface AgentWorkbenchDetailsModel {
|
|
|
108
126
|
};
|
|
109
127
|
}
|
|
110
128
|
declare function createAgentWorkbenchDetailsModel(viewModel: AgentSessionViewModel): AgentWorkbenchDetailsModel;
|
|
111
|
-
export { AgentWorkbenchActivity, type AgentWorkbenchActivityClassNames, type AgentWorkbenchActivityModel, type AgentWorkbenchActivityProps, type AgentWorkbenchApprovalIntent, type AgentWorkbenchArtifactIntent, type AgentWorkbenchDetailsIntent, type AgentWorkbenchDetailsModel, type AgentWorkbenchDetailsState, type AgentWorkbenchDetailsTab, type AgentWorkbenchEventOf, AgentWorkbenchTaskDetails, type AgentWorkbenchTaskDetailsClassNames, type AgentWorkbenchTaskDetailsProps, type AgentWorkbenchTerminalModel, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel };
|
|
129
|
+
export { AgentWorkbenchActivity, type AgentWorkbenchActivityClassNames, type AgentWorkbenchActivityModel, type AgentWorkbenchActivityProps, type AgentWorkbenchApprovalIntent, type AgentWorkbenchArtifactIntent, type AgentWorkbenchDetailsIntent, type AgentWorkbenchDetailsModel, type AgentWorkbenchDetailsState, type AgentWorkbenchDetailsTab, type AgentWorkbenchEventOf, AgentWorkbenchTaskDetails, type AgentWorkbenchTaskDetailsClassNames, type AgentWorkbenchTaskDetailsProps, type AgentWorkbenchTerminalModel, AgentWorkbenchTool, type AgentWorkbenchToolClassNames, type AgentWorkbenchToolProps, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel };
|
|
@@ -108,7 +108,14 @@ var enUS = {
|
|
|
108
108
|
taskNoDetail: "No additional details",
|
|
109
109
|
tool: {
|
|
110
110
|
input: "Input",
|
|
111
|
-
output: "Output"
|
|
111
|
+
output: "Output",
|
|
112
|
+
status: {
|
|
113
|
+
pending: "Pending",
|
|
114
|
+
running: "Running",
|
|
115
|
+
completed: "Completed",
|
|
116
|
+
failed: "Error",
|
|
117
|
+
denied: "Denied"
|
|
118
|
+
}
|
|
112
119
|
},
|
|
113
120
|
approval: {
|
|
114
121
|
approve: "Approve",
|
|
@@ -253,6 +260,29 @@ var EVENT_CAPABILITIES = {
|
|
|
253
260
|
artifact: "artifacts",
|
|
254
261
|
usage: "usage"
|
|
255
262
|
};
|
|
263
|
+
function projectRun(events) {
|
|
264
|
+
const statuses = events.filter(
|
|
265
|
+
(event) => event.eventType === "status"
|
|
266
|
+
);
|
|
267
|
+
const run = statuses.at(-1);
|
|
268
|
+
if (!run) return void 0;
|
|
269
|
+
if (run.payload.status !== "stopped" || run.payload.durationMs !== void 0) return run;
|
|
270
|
+
const runStatuses = run.runId ? statuses.filter((event) => event.runId === run.runId && event.sequence <= run.sequence) : statuses.filter((event) => event.sequence <= run.sequence);
|
|
271
|
+
let previousStoppedIndex = -1;
|
|
272
|
+
for (let index = runStatuses.length - 1; index >= 0; index -= 1) {
|
|
273
|
+
const event = runStatuses[index];
|
|
274
|
+
if (event.sequence < run.sequence && event.payload.status === "stopped") {
|
|
275
|
+
previousStoppedIndex = index;
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
const started = runStatuses.slice(previousStoppedIndex + 1).reverse().find((event) => event.payload.status === "running" || event.payload.status === "queued");
|
|
280
|
+
const startedAt = started?.payload.startedAt ?? started?.occurredAt;
|
|
281
|
+
const stoppedAt = run.payload.stoppedAt ?? run.occurredAt;
|
|
282
|
+
if (!startedAt || !stoppedAt) return run;
|
|
283
|
+
const durationMs = Date.parse(stoppedAt) - Date.parse(startedAt);
|
|
284
|
+
return Number.isFinite(durationMs) && durationMs >= 0 ? { ...run, resolvedDurationMs: durationMs } : run;
|
|
285
|
+
}
|
|
256
286
|
function isVisible(event, capabilities) {
|
|
257
287
|
const capability = EVENT_CAPABILITIES[event.eventType];
|
|
258
288
|
return capability ? capabilities[capability] === true : true;
|
|
@@ -308,10 +338,107 @@ function createAgentWorkbenchActivityModel(viewModel) {
|
|
|
308
338
|
usage: [...visibleEvents].reverse().find(
|
|
309
339
|
(event) => event.eventType === "usage"
|
|
310
340
|
),
|
|
311
|
-
run:
|
|
312
|
-
|
|
313
|
-
|
|
341
|
+
run: projectRun(visibleEvents)
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
function JsonValue({ value, className }) {
|
|
345
|
+
if (value === void 0) return null;
|
|
346
|
+
const content = typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
347
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
348
|
+
"pre",
|
|
349
|
+
{
|
|
350
|
+
className: cn(
|
|
351
|
+
"max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted p-3 font-mono text-xs text-foreground",
|
|
352
|
+
className
|
|
353
|
+
),
|
|
354
|
+
children: content
|
|
355
|
+
}
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
function ToolStatus({ status }) {
|
|
359
|
+
useMonkeysLocaleMessages().agentWorkbench.tool.status;
|
|
360
|
+
const commonClassName = "size-3.5 shrink-0";
|
|
361
|
+
if (status === "pending") {
|
|
362
|
+
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock3, { className: commonClassName, "aria-hidden": "true" });
|
|
363
|
+
}
|
|
364
|
+
if (status === "running") {
|
|
365
|
+
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: cn(commonClassName, "animate-spin"), "aria-hidden": "true" });
|
|
366
|
+
}
|
|
367
|
+
if (status === "completed") {
|
|
368
|
+
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: cn(commonClassName, "text-primary"), "aria-hidden": "true" });
|
|
369
|
+
}
|
|
370
|
+
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XCircle, { className: cn(commonClassName, "text-destructive-text"), "aria-hidden": "true" });
|
|
371
|
+
}
|
|
372
|
+
function AgentWorkbenchTool({
|
|
373
|
+
event,
|
|
374
|
+
expanded,
|
|
375
|
+
defaultExpanded = event.payload.status === "failed",
|
|
376
|
+
className,
|
|
377
|
+
classNames,
|
|
378
|
+
onExpandedChange
|
|
379
|
+
}) {
|
|
380
|
+
const messages = useMonkeysLocaleMessages().agentWorkbench.tool;
|
|
381
|
+
const [uncontrolledExpanded, setUncontrolledExpanded] = react.useState(defaultExpanded);
|
|
382
|
+
const isControlled = expanded !== void 0;
|
|
383
|
+
const isExpanded = expanded ?? uncontrolledExpanded;
|
|
384
|
+
const status = event.payload.status;
|
|
385
|
+
const setExpanded = (nextExpanded) => {
|
|
386
|
+
if (!isControlled) setUncontrolledExpanded(nextExpanded);
|
|
387
|
+
onExpandedChange?.(nextExpanded);
|
|
314
388
|
};
|
|
389
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
390
|
+
"details",
|
|
391
|
+
{
|
|
392
|
+
open: isExpanded,
|
|
393
|
+
className: cn(
|
|
394
|
+
"group rounded-lg border border-border bg-card text-card-foreground",
|
|
395
|
+
classNames?.root,
|
|
396
|
+
className
|
|
397
|
+
),
|
|
398
|
+
"data-tool-status": status,
|
|
399
|
+
children: [
|
|
400
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
401
|
+
"summary",
|
|
402
|
+
{
|
|
403
|
+
className: cn(
|
|
404
|
+
"flex cursor-pointer list-none items-center gap-2 px-3 py-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring [&::-webkit-details-marker]:hidden",
|
|
405
|
+
classNames?.trigger
|
|
406
|
+
),
|
|
407
|
+
onClick: (event2) => {
|
|
408
|
+
event2.preventDefault();
|
|
409
|
+
setExpanded(!isExpanded);
|
|
410
|
+
},
|
|
411
|
+
children: [
|
|
412
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.TerminalSquare, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": "true" }),
|
|
413
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate font-medium", children: event.payload.toolName }),
|
|
414
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex shrink-0 items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground", children: [
|
|
415
|
+
/* @__PURE__ */ jsxRuntime.jsx(ToolStatus, { status }),
|
|
416
|
+
messages.status[status]
|
|
417
|
+
] }),
|
|
418
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
419
|
+
lucideReact.ChevronDown,
|
|
420
|
+
{
|
|
421
|
+
className: "size-4 shrink-0 text-muted-foreground transition-transform group-open:rotate-180",
|
|
422
|
+
"aria-hidden": "true"
|
|
423
|
+
}
|
|
424
|
+
)
|
|
425
|
+
]
|
|
426
|
+
}
|
|
427
|
+
),
|
|
428
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("space-y-3 border-t border-border px-3 py-3 text-sm", classNames?.content), children: [
|
|
429
|
+
event.payload.input !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
430
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-medium text-muted-foreground", children: messages.input }),
|
|
431
|
+
/* @__PURE__ */ jsxRuntime.jsx(JsonValue, { value: event.payload.input, className: classNames?.input })
|
|
432
|
+
] }) : null,
|
|
433
|
+
event.payload.output !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
434
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-medium text-muted-foreground", children: messages.output }),
|
|
435
|
+
/* @__PURE__ */ jsxRuntime.jsx(JsonValue, { value: event.payload.output, className: classNames?.output })
|
|
436
|
+
] }) : null,
|
|
437
|
+
event.payload.error ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive-text", role: "alert", children: event.payload.error }) : null
|
|
438
|
+
] })
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
);
|
|
315
442
|
}
|
|
316
443
|
function ActivityDetails({
|
|
317
444
|
icon: Icon,
|
|
@@ -378,7 +505,7 @@ function StatusIcon({ status }) {
|
|
|
378
505
|
}
|
|
379
506
|
return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "size-4 text-muted-foreground", "aria-hidden": "true" });
|
|
380
507
|
}
|
|
381
|
-
function
|
|
508
|
+
function JsonValue2({ value }) {
|
|
382
509
|
if (value === void 0) return null;
|
|
383
510
|
const content = typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
384
511
|
return /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted p-3 font-mono text-xs text-foreground", children: content });
|
|
@@ -390,7 +517,9 @@ function formatDuration(durationMs) {
|
|
|
390
517
|
const seconds = totalSeconds % 60;
|
|
391
518
|
return minutes > 0 ? `${minutes}m ${seconds}s` : `${seconds}s`;
|
|
392
519
|
}
|
|
393
|
-
function RunStatus({
|
|
520
|
+
function RunStatus({
|
|
521
|
+
event
|
|
522
|
+
}) {
|
|
394
523
|
const messages = useMonkeysLocaleMessages().agentWorkbench;
|
|
395
524
|
const status = event.payload.status;
|
|
396
525
|
if (status !== "stopping" && status !== "stopped") return null;
|
|
@@ -402,7 +531,9 @@ function RunStatus({ event }) {
|
|
|
402
531
|
children: [
|
|
403
532
|
status === "stopping" ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleStop, { className: "size-4", "aria-hidden": "true" }),
|
|
404
533
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: status === "stopping" ? messages.run.stopping : messages.run.stoppedAfter({
|
|
405
|
-
duration: formatDuration(
|
|
534
|
+
duration: formatDuration(
|
|
535
|
+
event.payload.durationMs ?? event.resolvedDurationMs ?? 0
|
|
536
|
+
)
|
|
406
537
|
}) })
|
|
407
538
|
]
|
|
408
539
|
}
|
|
@@ -490,26 +621,15 @@ function AgentWorkbenchActivity({
|
|
|
490
621
|
event.payload.taskId
|
|
491
622
|
)),
|
|
492
623
|
tools.map((event) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
493
|
-
|
|
624
|
+
AgentWorkbenchTool,
|
|
494
625
|
{
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
503
|
-
event.payload.input !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
504
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-medium text-muted-foreground", children: messages.tool.input }),
|
|
505
|
-
/* @__PURE__ */ jsxRuntime.jsx(JsonValue, { value: event.payload.input })
|
|
506
|
-
] }) : null,
|
|
507
|
-
event.payload.output !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
508
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs font-medium text-muted-foreground", children: messages.tool.output }),
|
|
509
|
-
/* @__PURE__ */ jsxRuntime.jsx(JsonValue, { value: event.payload.output })
|
|
510
|
-
] }) : null,
|
|
511
|
-
event.payload.error ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive-text", role: "alert", children: event.payload.error }) : null
|
|
512
|
-
] })
|
|
626
|
+
event,
|
|
627
|
+
defaultExpanded: event.payload.status === "failed",
|
|
628
|
+
classNames: {
|
|
629
|
+
root: classNames?.item,
|
|
630
|
+
trigger: classNames?.trigger,
|
|
631
|
+
content: classNames?.content
|
|
632
|
+
}
|
|
513
633
|
},
|
|
514
634
|
event.payload.toolCallId
|
|
515
635
|
)),
|
|
@@ -528,7 +648,7 @@ function AgentWorkbenchActivity({
|
|
|
528
648
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
529
649
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-medium", children: event.payload.title }),
|
|
530
650
|
event.payload.description ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: event.payload.description }) : null,
|
|
531
|
-
event.payload.requestedAction !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
651
|
+
event.payload.requestedAction !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx(JsonValue2, { value: event.payload.requestedAction }) }) : null,
|
|
532
652
|
requested ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex flex-wrap gap-2", children: [
|
|
533
653
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
534
654
|
"button",
|
|
@@ -1090,6 +1210,7 @@ function AgentWorkbenchTaskDetails({
|
|
|
1090
1210
|
|
|
1091
1211
|
exports.AgentWorkbenchActivity = AgentWorkbenchActivity;
|
|
1092
1212
|
exports.AgentWorkbenchTaskDetails = AgentWorkbenchTaskDetails;
|
|
1213
|
+
exports.AgentWorkbenchTool = AgentWorkbenchTool;
|
|
1093
1214
|
exports.createAgentWorkbenchActivityModel = createAgentWorkbenchActivityModel;
|
|
1094
1215
|
exports.createAgentWorkbenchDetailsModel = createAgentWorkbenchDetailsModel;
|
|
1095
1216
|
//# sourceMappingURL=index.js.map
|