@inf-monkeys-tech/monkeys-design 1.0.13 → 1.0.14
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 +3 -1
- package/dist/components/agent-workbench/index.d.ts +3 -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/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { AgentWorkbenchNavigationViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
3
4
|
type AgentWorkbenchSidebarIntent = {
|
|
4
5
|
type: 'change-search';
|
|
5
6
|
query: string;
|
|
@@ -50,11 +51,12 @@ interface AgentWorkbenchSidebarClassNames {
|
|
|
50
51
|
}
|
|
51
52
|
interface AgentWorkbenchSidebarProps {
|
|
52
53
|
viewModel: AgentWorkbenchNavigationViewModel;
|
|
54
|
+
headerActions?: ReactNode;
|
|
53
55
|
className?: string;
|
|
54
56
|
classNames?: AgentWorkbenchSidebarClassNames;
|
|
55
57
|
onIntent?: (intent: AgentWorkbenchSidebarIntent) => void;
|
|
56
58
|
}
|
|
57
|
-
declare function AgentWorkbenchSidebar({ viewModel, className, classNames, onIntent }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
declare function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames, onIntent }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
58
60
|
interface AgentWorkbenchApprovalIntent {
|
|
59
61
|
approvalId: string;
|
|
60
62
|
approved: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { AgentWorkbenchNavigationViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
3
4
|
type AgentWorkbenchSidebarIntent = {
|
|
4
5
|
type: 'change-search';
|
|
5
6
|
query: string;
|
|
@@ -50,11 +51,12 @@ interface AgentWorkbenchSidebarClassNames {
|
|
|
50
51
|
}
|
|
51
52
|
interface AgentWorkbenchSidebarProps {
|
|
52
53
|
viewModel: AgentWorkbenchNavigationViewModel;
|
|
54
|
+
headerActions?: ReactNode;
|
|
53
55
|
className?: string;
|
|
54
56
|
classNames?: AgentWorkbenchSidebarClassNames;
|
|
55
57
|
onIntent?: (intent: AgentWorkbenchSidebarIntent) => void;
|
|
56
58
|
}
|
|
57
|
-
declare function AgentWorkbenchSidebar({ viewModel, className, classNames, onIntent }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
declare function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames, onIntent }: AgentWorkbenchSidebarProps): react_jsx_runtime.JSX.Element;
|
|
58
60
|
interface AgentWorkbenchApprovalIntent {
|
|
59
61
|
approvalId: string;
|
|
60
62
|
approved: boolean;
|
|
@@ -726,7 +726,7 @@ function SessionActions({
|
|
|
726
726
|
] })
|
|
727
727
|
] });
|
|
728
728
|
}
|
|
729
|
-
function AgentWorkbenchSidebar({ viewModel, className, classNames, onIntent }) {
|
|
729
|
+
function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames, onIntent }) {
|
|
730
730
|
const { locale } = useMonkeysLocale();
|
|
731
731
|
const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
732
732
|
const searchRef = React2.useRef(null);
|
|
@@ -803,9 +803,12 @@ function AgentWorkbenchSidebar({ viewModel, className, classNames, onIntent }) {
|
|
|
803
803
|
),
|
|
804
804
|
viewModel.searchQuery ? /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "flex size-6 items-center justify-center rounded-md hover:bg-muted", "aria-label": messages.clearSearch, onClick: () => onIntent?.({ type: "change-search", query: "" }), children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3.5", "aria-hidden": "true" }) }) : /* @__PURE__ */ jsxRuntime.jsx("kbd", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "Ctrl K" })
|
|
805
805
|
] }),
|
|
806
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
807
|
-
/* @__PURE__ */ jsxRuntime.
|
|
808
|
-
|
|
806
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
807
|
+
/* @__PURE__ */ jsxRuntime.jsxs(TabsList, { className: cn2("grid min-w-0 flex-1 grid-cols-2 text-foreground", classNames?.tabs), "aria-label": messages.tabsLabel, children: [
|
|
808
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "agents", children: messages.agents }),
|
|
809
|
+
/* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
|
|
810
|
+
] }),
|
|
811
|
+
headerActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
|
|
809
812
|
] })
|
|
810
813
|
] }),
|
|
811
814
|
/* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "agents", className: cn2("mt-0 min-h-0 flex-1 overflow-y-auto px-4 pb-4", classNames?.body), children: [
|