@inf-monkeys-tech/monkeys-design 1.0.24 → 1.0.27
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 +8 -3
- package/dist/components/agent-workbench/index.d.ts +8 -3
- package/dist/components/agent-workbench/index.js +61 -21
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +61 -21
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/base/index.js +2 -0
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +2 -0
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js +2 -0
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +2 -0
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js +2 -0
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +2 -0
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/runtime/index.js +2 -0
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +2 -0
- 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 +2 -0
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +2 -0
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +2 -0
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +2 -0
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js +2 -0
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +2 -0
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/{details-model-235bb3448dca.d.mts → details-model-bc28e9593e3f.d.mts} +2 -1
- package/dist/{details-model-235bb3448dca.d.ts → details-model-bc28e9593e3f.d.ts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +25 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -13
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.d.mts +6 -2
- package/dist/locale/index.d.ts +6 -2
- package/dist/locale/index.js +4 -0
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.mjs +4 -0
- 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 +4 -0
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +4 -0
- package/dist/provider/index.mjs.map +1 -1
- package/dist/{types-a81dc2d284e3.d.mts → types-4c3363833cff.d.mts} +2 -0
- package/dist/{types-a81dc2d284e3.d.ts → types-4c3363833cff.d.ts} +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3061,6 +3061,7 @@ var enUS = {
|
|
|
3061
3061
|
attach: "Add photos or files",
|
|
3062
3062
|
voice: "Start voice input",
|
|
3063
3063
|
webSearch: "Web search",
|
|
3064
|
+
chatMode: "Chat mode",
|
|
3064
3065
|
model: "Model",
|
|
3065
3066
|
reasoning: "Reasoning effort",
|
|
3066
3067
|
permissions: "Permissions",
|
|
@@ -3110,6 +3111,7 @@ var enUS = {
|
|
|
3110
3111
|
},
|
|
3111
3112
|
navigation: {
|
|
3112
3113
|
search: "Search agents and sessions",
|
|
3114
|
+
searchSessions: "Search sessions",
|
|
3113
3115
|
searchShortcut: "Focus search",
|
|
3114
3116
|
clearSearch: "Clear search",
|
|
3115
3117
|
tabsLabel: "Agent workbench navigation",
|
|
@@ -3305,6 +3307,7 @@ var zhCN = {
|
|
|
3305
3307
|
attach: "\u6DFB\u52A0\u7167\u7247\u6216\u6587\u4EF6",
|
|
3306
3308
|
voice: "\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",
|
|
3307
3309
|
webSearch: "\u8054\u7F51\u641C\u7D22",
|
|
3310
|
+
chatMode: "\u5BF9\u8BDD\u6A21\u5F0F",
|
|
3308
3311
|
model: "\u6A21\u578B",
|
|
3309
3312
|
reasoning: "\u601D\u8003\u5F3A\u5EA6",
|
|
3310
3313
|
permissions: "\u6743\u9650",
|
|
@@ -3354,6 +3357,7 @@ var zhCN = {
|
|
|
3354
3357
|
},
|
|
3355
3358
|
navigation: {
|
|
3356
3359
|
search: "\u641C\u7D22\u667A\u80FD\u4F53\u548C\u4F1A\u8BDD",
|
|
3360
|
+
searchSessions: "\u641C\u7D22\u4F1A\u8BDD",
|
|
3357
3361
|
searchShortcut: "\u805A\u7126\u641C\u7D22\u6846",
|
|
3358
3362
|
clearSearch: "\u6E05\u9664\u641C\u7D22",
|
|
3359
3363
|
tabsLabel: "\u667A\u80FD\u4F53\u5DE5\u4F5C\u53F0\u5BFC\u822A",
|
|
@@ -17515,9 +17519,17 @@ function SessionActions({
|
|
|
17515
17519
|
] })
|
|
17516
17520
|
] });
|
|
17517
17521
|
}
|
|
17518
|
-
function AgentWorkbenchSidebar({
|
|
17522
|
+
function AgentWorkbenchSidebar({
|
|
17523
|
+
viewModel,
|
|
17524
|
+
navigationMode = "agents-and-sessions",
|
|
17525
|
+
headerActions,
|
|
17526
|
+
className,
|
|
17527
|
+
classNames,
|
|
17528
|
+
onIntent
|
|
17529
|
+
}) {
|
|
17519
17530
|
const { locale } = useMonkeysLocale();
|
|
17520
17531
|
const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
17532
|
+
const sessionsOnly = navigationMode === "sessions-only";
|
|
17521
17533
|
const searchRef = useRef(null);
|
|
17522
17534
|
const renameInputRef = useRef(null);
|
|
17523
17535
|
const [editingSessionId, setEditingSessionId] = useState();
|
|
@@ -17564,9 +17576,9 @@ function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames
|
|
|
17564
17576
|
return /* @__PURE__ */ jsx("nav", { "aria-label": messages.tabsLabel, className: cn2("h-full min-h-0", classNames?.root, className), children: /* @__PURE__ */ jsxs(
|
|
17565
17577
|
Tabs,
|
|
17566
17578
|
{
|
|
17567
|
-
value: viewModel.activeTab,
|
|
17579
|
+
value: sessionsOnly ? "sessions" : viewModel.activeTab,
|
|
17568
17580
|
onValueChange: (value) => {
|
|
17569
|
-
if (value === "agents" || value === "sessions") onIntent?.({ type: "change-tab", tab: value });
|
|
17581
|
+
if (!sessionsOnly && (value === "agents" || value === "sessions")) onIntent?.({ type: "change-tab", tab: value });
|
|
17570
17582
|
},
|
|
17571
17583
|
className: "flex h-full min-h-0 flex-col bg-background text-foreground",
|
|
17572
17584
|
children: [
|
|
@@ -17579,8 +17591,8 @@ function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames
|
|
|
17579
17591
|
ref: searchRef,
|
|
17580
17592
|
type: "search",
|
|
17581
17593
|
value: viewModel.searchQuery,
|
|
17582
|
-
"aria-label": messages.search,
|
|
17583
|
-
placeholder: messages.search,
|
|
17594
|
+
"aria-label": sessionsOnly ? messages.searchSessions : messages.search,
|
|
17595
|
+
placeholder: sessionsOnly ? messages.searchSessions : messages.search,
|
|
17584
17596
|
className: "min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden",
|
|
17585
17597
|
onChange: (event) => onIntent?.({ type: "change-search", query: event.target.value }),
|
|
17586
17598
|
onKeyDown: (event) => {
|
|
@@ -17592,15 +17604,15 @@ function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames
|
|
|
17592
17604
|
),
|
|
17593
17605
|
viewModel.searchQuery ? /* @__PURE__ */ 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__ */ jsx(X, { className: "size-3.5", "aria-hidden": "true" }) }) : /* @__PURE__ */ jsx("kbd", { className: "rounded border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "Ctrl K" })
|
|
17594
17606
|
] }),
|
|
17595
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
17596
|
-
/* @__PURE__ */ jsxs(TabsList, { className: cn2("grid min-w-0 flex-1 grid-cols-2 text-foreground", classNames?.tabs), "aria-label": messages.tabsLabel, children: [
|
|
17607
|
+
!sessionsOnly || headerActions ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
17608
|
+
!sessionsOnly ? /* @__PURE__ */ jsxs(TabsList, { className: cn2("grid min-w-0 flex-1 grid-cols-2 text-foreground", classNames?.tabs), "aria-label": messages.tabsLabel, children: [
|
|
17597
17609
|
/* @__PURE__ */ jsx(TabsTrigger, { value: "agents", children: messages.agents }),
|
|
17598
17610
|
/* @__PURE__ */ jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
|
|
17599
|
-
] }),
|
|
17611
|
+
] }) : null,
|
|
17600
17612
|
headerActions ? /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
|
|
17601
|
-
] })
|
|
17613
|
+
] }) : null
|
|
17602
17614
|
] }),
|
|
17603
|
-
/* @__PURE__ */ jsxs(TabsContent, { value: "agents", className: cn2("mt-0 min-h-0 flex-1 overflow-y-auto px-4 pb-4", classNames?.body), children: [
|
|
17615
|
+
!sessionsOnly ? /* @__PURE__ */ jsxs(TabsContent, { value: "agents", className: cn2("mt-0 min-h-0 flex-1 overflow-y-auto px-4 pb-4", classNames?.body), children: [
|
|
17604
17616
|
viewModel.capabilities.createAgent ? /* @__PURE__ */ jsxs("button", { type: "button", className: "mb-3 flex h-9 w-full items-center gap-2 rounded-md px-3 text-left text-sm font-medium hover:bg-muted", onClick: () => onIntent?.({ type: "create-agent" }), children: [
|
|
17605
17617
|
/* @__PURE__ */ jsx(Plus, { className: "size-4", "aria-hidden": "true" }),
|
|
17606
17618
|
messages.newAgent
|
|
@@ -17645,13 +17657,13 @@ function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames
|
|
|
17645
17657
|
},
|
|
17646
17658
|
item.id
|
|
17647
17659
|
)) })
|
|
17648
|
-
] }),
|
|
17660
|
+
] }) : null,
|
|
17649
17661
|
/* @__PURE__ */ jsxs(TabsContent, { value: "sessions", className: cn2("mt-0 min-h-0 flex-1 overflow-y-auto px-4 pb-4", classNames?.body), children: [
|
|
17650
17662
|
viewModel.capabilities.createSession ? /* @__PURE__ */ jsxs("button", { type: "button", className: "flex h-9 w-full items-center gap-2 rounded-md px-3 text-left text-sm font-medium hover:bg-muted", onClick: () => onIntent?.({ type: "create-session" }), children: [
|
|
17651
17663
|
/* @__PURE__ */ jsx(SquarePen, { className: "size-4", "aria-hidden": "true" }),
|
|
17652
17664
|
messages.newSession
|
|
17653
17665
|
] }) : null,
|
|
17654
|
-
viewModel.capabilities.manageCapabilities ? /* @__PURE__ */ jsxs("button", { type: "button", className: "mb-3 flex h-9 w-full items-center gap-2 rounded-md px-3 text-left text-sm font-medium hover:bg-muted", onClick: () => onIntent?.({ type: "open-capabilities" }), children: [
|
|
17666
|
+
!sessionsOnly && viewModel.capabilities.manageCapabilities ? /* @__PURE__ */ jsxs("button", { type: "button", className: "mb-3 flex h-9 w-full items-center gap-2 rounded-md px-3 text-left text-sm font-medium hover:bg-muted", onClick: () => onIntent?.({ type: "open-capabilities" }), children: [
|
|
17655
17667
|
/* @__PURE__ */ jsx(Blocks, { className: "size-4", "aria-hidden": "true" }),
|
|
17656
17668
|
messages.capabilities
|
|
17657
17669
|
] }) : null,
|
|
@@ -17708,7 +17720,7 @@ function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames
|
|
|
17708
17720
|
] }, item.id);
|
|
17709
17721
|
}) })
|
|
17710
17722
|
] }),
|
|
17711
|
-
viewModel.capabilities.manageAgentSettings ? /* @__PURE__ */ jsx("div", { className: cn2("shrink-0 border-t border-border p-4", classNames?.footer), children: /* @__PURE__ */ jsxs("button", { type: "button", className: "flex h-10 w-full items-center gap-2 rounded-md px-3 text-left text-sm font-medium hover:bg-muted", onClick: () => onIntent?.({ type: "open-agent-settings" }), children: [
|
|
17723
|
+
!sessionsOnly && viewModel.capabilities.manageAgentSettings ? /* @__PURE__ */ jsx("div", { className: cn2("shrink-0 border-t border-border p-4", classNames?.footer), children: /* @__PURE__ */ jsxs("button", { type: "button", className: "flex h-10 w-full items-center gap-2 rounded-md px-3 text-left text-sm font-medium hover:bg-muted", onClick: () => onIntent?.({ type: "open-agent-settings" }), children: [
|
|
17712
17724
|
/* @__PURE__ */ jsx(Settings, { className: "size-4", "aria-hidden": "true" }),
|
|
17713
17725
|
messages.settings
|
|
17714
17726
|
] }) }) : null
|