@inf-monkeys-tech/monkeys-design 1.0.54 → 1.0.56
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 +43 -8
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +43 -9
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/{details-model-2eb132663bb1.d.mts → details-model-765193fe43be.d.mts} +15 -2
- package/dist/{details-model-2eb132663bb1.d.ts → details-model-765193fe43be.d.ts} +15 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -8
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
|
-
import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-
|
|
4
|
-
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchSidebar, r as AgentWorkbenchSidebarClassNames, s as AgentWorkbenchSidebarIntent, t as AgentWorkbenchSidebarProps, u as AgentWorkbenchTaskDetails, v as AgentWorkbenchTaskDetailsClassNames, w as AgentWorkbenchTaskDetailsProps, x as AgentWorkbenchTerminalModel, y as AgentWorkbenchTool, z as AgentWorkbenchToolClassNames, B as AgentWorkbenchToolProps, C as createAgentWorkbenchActivityModel, D as createAgentWorkbenchDetailsModel } from '../../details-model-
|
|
3
|
+
import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-765193fe43be.mjs';
|
|
4
|
+
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, E as AgentWorkbenchExploreCardMedia, F as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, G as AgentWorkbenchExploreMediaTreatment, H as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchSidebar, r as AgentWorkbenchSidebarClassNames, s as AgentWorkbenchSidebarIntent, t as AgentWorkbenchSidebarProps, u as AgentWorkbenchTaskDetails, v as AgentWorkbenchTaskDetailsClassNames, w as AgentWorkbenchTaskDetailsProps, x as AgentWorkbenchTerminalModel, y as AgentWorkbenchTool, z as AgentWorkbenchToolClassNames, B as AgentWorkbenchToolProps, C as createAgentWorkbenchActivityModel, D as createAgentWorkbenchDetailsModel } from '../../details-model-765193fe43be.mjs';
|
|
5
5
|
import { ReactNode, ComponentType } from 'react';
|
|
6
6
|
type AgentWorkbenchComposerIntent = {
|
|
7
7
|
type: 'change-mode';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
|
-
import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-
|
|
4
|
-
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchSidebar, r as AgentWorkbenchSidebarClassNames, s as AgentWorkbenchSidebarIntent, t as AgentWorkbenchSidebarProps, u as AgentWorkbenchTaskDetails, v as AgentWorkbenchTaskDetailsClassNames, w as AgentWorkbenchTaskDetailsProps, x as AgentWorkbenchTerminalModel, y as AgentWorkbenchTool, z as AgentWorkbenchToolClassNames, B as AgentWorkbenchToolProps, C as createAgentWorkbenchActivityModel, D as createAgentWorkbenchDetailsModel } from '../../details-model-
|
|
3
|
+
import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-765193fe43be.js';
|
|
4
|
+
export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, E as AgentWorkbenchExploreCardMedia, F as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, G as AgentWorkbenchExploreMediaTreatment, H as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchSidebar, r as AgentWorkbenchSidebarClassNames, s as AgentWorkbenchSidebarIntent, t as AgentWorkbenchSidebarProps, u as AgentWorkbenchTaskDetails, v as AgentWorkbenchTaskDetailsClassNames, w as AgentWorkbenchTaskDetailsProps, x as AgentWorkbenchTerminalModel, y as AgentWorkbenchTool, z as AgentWorkbenchToolClassNames, B as AgentWorkbenchToolProps, C as createAgentWorkbenchActivityModel, D as createAgentWorkbenchDetailsModel } from '../../details-model-765193fe43be.js';
|
|
5
5
|
import { ReactNode, ComponentType } from 'react';
|
|
6
6
|
type AgentWorkbenchComposerIntent = {
|
|
7
7
|
type: 'change-mode';
|
|
@@ -1746,6 +1746,46 @@ function AgentWorkbenchSidebar({
|
|
|
1746
1746
|
}
|
|
1747
1747
|
) });
|
|
1748
1748
|
}
|
|
1749
|
+
function AgentWorkbenchExploreCardMedia({
|
|
1750
|
+
item,
|
|
1751
|
+
src = item.imageUrl,
|
|
1752
|
+
className,
|
|
1753
|
+
onError
|
|
1754
|
+
}) {
|
|
1755
|
+
if (!src) return null;
|
|
1756
|
+
const variant = item.mediaVariant ?? "cover";
|
|
1757
|
+
const isLogo = variant === "logo";
|
|
1758
|
+
const showLabel = variant === "cover-with-label";
|
|
1759
|
+
const treatmentClass = item.mediaTreatment === "monochrome-light" ? "brightness-0 invert" : item.mediaTreatment === "invert" ? "invert" : "";
|
|
1760
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1761
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1762
|
+
"span",
|
|
1763
|
+
{
|
|
1764
|
+
className: cn2(
|
|
1765
|
+
isLogo ? "flex size-full items-center justify-center bg-[var(--monkeys-color-card-dark)] p-5" : "block size-full",
|
|
1766
|
+
className
|
|
1767
|
+
),
|
|
1768
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1769
|
+
"img",
|
|
1770
|
+
{
|
|
1771
|
+
src,
|
|
1772
|
+
alt: "",
|
|
1773
|
+
className: cn2(
|
|
1774
|
+
"transition-transform duration-300 group-hover:scale-[1.03]",
|
|
1775
|
+
isLogo ? "max-h-full max-w-full object-contain" : "size-full object-cover",
|
|
1776
|
+
treatmentClass
|
|
1777
|
+
),
|
|
1778
|
+
onError
|
|
1779
|
+
}
|
|
1780
|
+
)
|
|
1781
|
+
}
|
|
1782
|
+
),
|
|
1783
|
+
showLabel ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pointer-events-none absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 via-black/30 to-transparent px-3 pb-2.5 pt-8 text-white", children: [
|
|
1784
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-base font-semibold leading-tight", children: item.title }),
|
|
1785
|
+
item.subtitle ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-0.5 block text-[11px] leading-tight text-white/75", children: item.subtitle }) : null
|
|
1786
|
+
] }) : null
|
|
1787
|
+
] });
|
|
1788
|
+
}
|
|
1749
1789
|
function AgentWorkbenchExploreSidebar({
|
|
1750
1790
|
sessions,
|
|
1751
1791
|
groups,
|
|
@@ -1879,19 +1919,13 @@ function AgentWorkbenchExploreSidebar({
|
|
|
1879
1919
|
type: "button",
|
|
1880
1920
|
"aria-label": item.title,
|
|
1881
1921
|
className: "group relative aspect-[1.27] overflow-hidden rounded-xl border border-white/15 bg-card text-left transition hover:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
|
1922
|
+
style: Number.isFinite(activeGroup.itemAspectRatio) && Number(activeGroup.itemAspectRatio) > 0 ? { aspectRatio: activeGroup.itemAspectRatio } : void 0,
|
|
1882
1923
|
onClick: () => onIntent?.({
|
|
1883
1924
|
type: "select-item",
|
|
1884
1925
|
groupId: activeGroup.id,
|
|
1885
1926
|
item
|
|
1886
1927
|
}),
|
|
1887
|
-
children: renderItemMedia?.(item, activeGroup) ??
|
|
1888
|
-
"img",
|
|
1889
|
-
{
|
|
1890
|
-
src: item.imageUrl,
|
|
1891
|
-
alt: "",
|
|
1892
|
-
className: "size-full object-cover transition-transform duration-300 group-hover:scale-[1.03]"
|
|
1893
|
-
}
|
|
1894
|
-
) : null)
|
|
1928
|
+
children: renderItemMedia?.(item, activeGroup) ?? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkbenchExploreCardMedia, { item })
|
|
1895
1929
|
},
|
|
1896
1930
|
item.id
|
|
1897
1931
|
)) })
|
|
@@ -3585,6 +3619,7 @@ exports.AgentWorkbenchActivity = AgentWorkbenchActivity;
|
|
|
3585
3619
|
exports.AgentWorkbenchArtifactSummary = AgentWorkbenchArtifactSummary;
|
|
3586
3620
|
exports.AgentWorkbenchArtifactWorkspace = AgentWorkbenchArtifactWorkspace;
|
|
3587
3621
|
exports.AgentWorkbenchComposer = AgentWorkbenchComposer;
|
|
3622
|
+
exports.AgentWorkbenchExploreCardMedia = AgentWorkbenchExploreCardMedia;
|
|
3588
3623
|
exports.AgentWorkbenchExploreSidebar = AgentWorkbenchExploreSidebar;
|
|
3589
3624
|
exports.AgentWorkbenchProcess = AgentWorkbenchProcess;
|
|
3590
3625
|
exports.AgentWorkbenchQuickStart = AgentWorkbenchQuickStart;
|