@inf-monkeys-tech/monkeys-design 1.0.74 → 1.0.75
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 -2
- package/dist/components/agent-workbench/index.d.ts +2 -2
- package/dist/components/agent-workbench/index.js +117 -7
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +118 -9
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/{details-model-49d05d8a4e6d.d.mts → details-model-eb8fafc32d00.d.mts} +35 -3
- package/dist/{details-model-49d05d8a4e6d.d.ts → details-model-eb8fafc32d00.d.ts} +35 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +117 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -9
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile, AgentWorkbenchQuickStartViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
3
|
export { AgentWorkbenchQuickStartCategory, AgentWorkbenchQuickStartIcon, AgentWorkbenchQuickStartSection, AgentWorkbenchQuickStartTemplate, AgentWorkbenchQuickStartViewModel } from '@inf-monkeys-tech/monkeys';
|
|
4
|
-
import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-
|
|
5
|
-
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps,
|
|
4
|
+
import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-eb8fafc32d00.mjs';
|
|
5
|
+
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, H as AgentWorkbenchApproval, I as AgentWorkbenchApprovalData, J as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, K as AgentWorkbenchExploreCardMedia, L as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, M as AgentWorkbenchExploreMediaTreatment, N as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarIntent, w as AgentWorkbenchSidebarProps, x as AgentWorkbenchTaskDetails, y as AgentWorkbenchTaskDetailsClassNames, z as AgentWorkbenchTaskDetailsProps, B as AgentWorkbenchTerminalModel, C as AgentWorkbenchTool, D as AgentWorkbenchToolClassNames, E as AgentWorkbenchToolProps, F as createAgentWorkbenchActivityModel, G as createAgentWorkbenchDetailsModel } from '../../details-model-eb8fafc32d00.mjs';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ReactNode, HTMLAttributes, ButtonHTMLAttributes, ComponentType } from 'react';
|
|
8
8
|
type AgentWorkbenchComposerIntent = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile, AgentWorkbenchQuickStartViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
3
|
export { AgentWorkbenchQuickStartCategory, AgentWorkbenchQuickStartIcon, AgentWorkbenchQuickStartSection, AgentWorkbenchQuickStartTemplate, AgentWorkbenchQuickStartViewModel } from '@inf-monkeys-tech/monkeys';
|
|
4
|
-
import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-
|
|
5
|
-
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps,
|
|
4
|
+
import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-eb8fafc32d00.js';
|
|
5
|
+
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, H as AgentWorkbenchApproval, I as AgentWorkbenchApprovalData, J as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, K as AgentWorkbenchExploreCardMedia, L as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, M as AgentWorkbenchExploreMediaTreatment, N as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarIntent, w as AgentWorkbenchSidebarProps, x as AgentWorkbenchTaskDetails, y as AgentWorkbenchTaskDetailsClassNames, z as AgentWorkbenchTaskDetailsProps, B as AgentWorkbenchTerminalModel, C as AgentWorkbenchTool, D as AgentWorkbenchToolClassNames, E as AgentWorkbenchToolProps, F as createAgentWorkbenchActivityModel, G as createAgentWorkbenchDetailsModel } from '../../details-model-eb8fafc32d00.js';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ReactNode, HTMLAttributes, ButtonHTMLAttributes, ComponentType } from 'react';
|
|
8
8
|
type AgentWorkbenchComposerIntent = {
|
|
@@ -1835,11 +1835,13 @@ function AgentWorkbenchExploreSidebar({
|
|
|
1835
1835
|
loading = false,
|
|
1836
1836
|
error,
|
|
1837
1837
|
showDraftSession = !selectedSessionId,
|
|
1838
|
+
deleteSessions = false,
|
|
1838
1839
|
defaultGroupId,
|
|
1839
1840
|
className,
|
|
1840
1841
|
renderItemMedia,
|
|
1841
1842
|
onIntent
|
|
1842
1843
|
}) {
|
|
1844
|
+
const navigationMessages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
1843
1845
|
const searchRef = React5.useRef(null);
|
|
1844
1846
|
const [activeGroupId, setActiveGroupId] = React5.useState(
|
|
1845
1847
|
defaultGroupId ?? groups[0]?.id ?? ""
|
|
@@ -1945,15 +1947,50 @@ function AgentWorkbenchExploreSidebar({
|
|
|
1945
1947
|
children: labels.draftSession
|
|
1946
1948
|
}
|
|
1947
1949
|
) : null,
|
|
1948
|
-
filteredSessions.map((session) => /* @__PURE__ */ jsxRuntime.
|
|
1949
|
-
"
|
|
1950
|
+
filteredSessions.map((session) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1951
|
+
"div",
|
|
1950
1952
|
{
|
|
1951
|
-
type: "button",
|
|
1952
|
-
title: session.title,
|
|
1953
1953
|
"aria-current": session.id === selectedSessionId ? "page" : void 0,
|
|
1954
|
-
className: "
|
|
1955
|
-
|
|
1956
|
-
|
|
1954
|
+
className: "group flex h-10 w-full min-w-0 items-center rounded-[var(--radius)] border border-transparent bg-muted/60 text-foreground transition hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-primary/10",
|
|
1955
|
+
children: [
|
|
1956
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1957
|
+
"button",
|
|
1958
|
+
{
|
|
1959
|
+
type: "button",
|
|
1960
|
+
title: session.title,
|
|
1961
|
+
className: "h-full min-w-0 flex-1 truncate px-3 text-left text-sm font-semibold",
|
|
1962
|
+
onClick: () => onIntent?.({ type: "select-session", sessionId: session.id }),
|
|
1963
|
+
children: session.title
|
|
1964
|
+
}
|
|
1965
|
+
),
|
|
1966
|
+
deleteSessions ? /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu2, { children: [
|
|
1967
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1968
|
+
Button,
|
|
1969
|
+
{
|
|
1970
|
+
type: "button",
|
|
1971
|
+
variant: "ghost",
|
|
1972
|
+
size: "icon",
|
|
1973
|
+
"aria-label": navigationMessages.actions,
|
|
1974
|
+
className: "mr-1 size-8 shrink-0 text-muted-foreground opacity-0 transition-opacity group-aria-[current=page]:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100",
|
|
1975
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { className: "size-4", "aria-hidden": "true" })
|
|
1976
|
+
}
|
|
1977
|
+
) }),
|
|
1978
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContent, { align: "end", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1979
|
+
DropdownMenuItem,
|
|
1980
|
+
{
|
|
1981
|
+
className: "text-destructive-text",
|
|
1982
|
+
onSelect: () => onIntent?.({
|
|
1983
|
+
type: "delete-session",
|
|
1984
|
+
sessionId: session.id
|
|
1985
|
+
}),
|
|
1986
|
+
children: [
|
|
1987
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "mr-2 size-4", "aria-hidden": "true" }),
|
|
1988
|
+
navigationMessages.delete
|
|
1989
|
+
]
|
|
1990
|
+
}
|
|
1991
|
+
) })
|
|
1992
|
+
] }) : null
|
|
1993
|
+
]
|
|
1957
1994
|
},
|
|
1958
1995
|
session.id
|
|
1959
1996
|
))
|
|
@@ -3358,6 +3395,78 @@ var AgentWorkbenchThreadShell = React5.forwardRef(
|
|
|
3358
3395
|
);
|
|
3359
3396
|
}
|
|
3360
3397
|
);
|
|
3398
|
+
function cssSize(value) {
|
|
3399
|
+
return typeof value === "number" ? `${value}px` : value;
|
|
3400
|
+
}
|
|
3401
|
+
function AgentWorkbenchShell({
|
|
3402
|
+
sidebar,
|
|
3403
|
+
children,
|
|
3404
|
+
details,
|
|
3405
|
+
sidebarOpen = true,
|
|
3406
|
+
detailsOpen = true,
|
|
3407
|
+
sidebarWidth = 280,
|
|
3408
|
+
detailsWidth = 360,
|
|
3409
|
+
className,
|
|
3410
|
+
classNames,
|
|
3411
|
+
style,
|
|
3412
|
+
...rootProps
|
|
3413
|
+
}) {
|
|
3414
|
+
const hasSidebar = sidebar !== void 0 && sidebarOpen;
|
|
3415
|
+
const hasDetails = details !== void 0 && detailsOpen;
|
|
3416
|
+
const shellStyle = {
|
|
3417
|
+
"--agent-workbench-sidebar-width": hasSidebar ? cssSize(sidebarWidth) : "0px",
|
|
3418
|
+
"--agent-workbench-details-width": hasDetails ? cssSize(detailsWidth) : "0px",
|
|
3419
|
+
gridTemplateColumns: hasSidebar && hasDetails ? "var(--agent-workbench-sidebar-width) minmax(0, 1fr) var(--agent-workbench-details-width)" : hasSidebar ? "var(--agent-workbench-sidebar-width) minmax(0, 1fr)" : hasDetails ? "minmax(0, 1fr) var(--agent-workbench-details-width)" : "minmax(0, 1fr)",
|
|
3420
|
+
...style
|
|
3421
|
+
};
|
|
3422
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3423
|
+
"div",
|
|
3424
|
+
{
|
|
3425
|
+
...rootProps,
|
|
3426
|
+
"data-agent-workbench-shell": "true",
|
|
3427
|
+
"data-sidebar-open": hasSidebar ? "true" : "false",
|
|
3428
|
+
"data-details-open": hasDetails ? "true" : "false",
|
|
3429
|
+
className: cn2(
|
|
3430
|
+
"grid size-full min-h-0 min-w-0 overflow-hidden bg-background text-foreground",
|
|
3431
|
+
classNames?.root,
|
|
3432
|
+
className
|
|
3433
|
+
),
|
|
3434
|
+
style: shellStyle,
|
|
3435
|
+
children: [
|
|
3436
|
+
hasSidebar ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3437
|
+
"aside",
|
|
3438
|
+
{
|
|
3439
|
+
"data-agent-workbench-region": "sidebar",
|
|
3440
|
+
className: cn2(
|
|
3441
|
+
"min-h-0 min-w-0 overflow-hidden border-r border-border bg-background",
|
|
3442
|
+
classNames?.sidebar
|
|
3443
|
+
),
|
|
3444
|
+
children: sidebar
|
|
3445
|
+
}
|
|
3446
|
+
) : null,
|
|
3447
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3448
|
+
"main",
|
|
3449
|
+
{
|
|
3450
|
+
"data-agent-workbench-region": "main",
|
|
3451
|
+
className: cn2("min-h-0 min-w-0 overflow-hidden", classNames?.main),
|
|
3452
|
+
children
|
|
3453
|
+
}
|
|
3454
|
+
),
|
|
3455
|
+
hasDetails ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3456
|
+
"aside",
|
|
3457
|
+
{
|
|
3458
|
+
"data-agent-workbench-region": "details",
|
|
3459
|
+
className: cn2(
|
|
3460
|
+
"min-h-0 min-w-0 overflow-hidden border-l border-border bg-background",
|
|
3461
|
+
classNames?.details
|
|
3462
|
+
),
|
|
3463
|
+
children: details
|
|
3464
|
+
}
|
|
3465
|
+
) : null
|
|
3466
|
+
]
|
|
3467
|
+
}
|
|
3468
|
+
);
|
|
3469
|
+
}
|
|
3361
3470
|
function formatDuration3(durationMs) {
|
|
3362
3471
|
const totalSeconds = Math.max(0, Math.floor(durationMs / 1e3));
|
|
3363
3472
|
const hours = Math.floor(totalSeconds / 3600);
|
|
@@ -3837,6 +3946,7 @@ exports.AgentWorkbenchMessageActions = AgentWorkbenchMessageActions;
|
|
|
3837
3946
|
exports.AgentWorkbenchMessageContent = AgentWorkbenchMessageContent;
|
|
3838
3947
|
exports.AgentWorkbenchProcess = AgentWorkbenchProcess;
|
|
3839
3948
|
exports.AgentWorkbenchQuickStart = AgentWorkbenchQuickStart;
|
|
3949
|
+
exports.AgentWorkbenchShell = AgentWorkbenchShell;
|
|
3840
3950
|
exports.AgentWorkbenchSidebar = AgentWorkbenchSidebar;
|
|
3841
3951
|
exports.AgentWorkbenchTaskDetails = AgentWorkbenchTaskDetails;
|
|
3842
3952
|
exports.AgentWorkbenchThread = AgentWorkbenchThread;
|