@inf-monkeys-tech/monkeys-design 1.0.13 → 1.0.14-canary.76.1.f2d536e
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 +41 -166
- package/dist/components/agent-workbench/index.d.ts +41 -166
- package/dist/components/agent-workbench/index.js +239 -5
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +240 -7
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/base/index.js +23 -0
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +23 -0
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.js +23 -0
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +23 -0
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.js +23 -0
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +23 -0
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/runtime/index.js +23 -0
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +23 -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 +23 -0
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +23 -0
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +23 -0
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +23 -0
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.js +23 -0
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +23 -0
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/details-model-36745da2e20f.d.mts +186 -0
- package/dist/details-model-36745da2e20f.d.ts +186 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +58 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -5
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.d.mts +66 -2
- package/dist/locale/index.d.ts +66 -2
- package/dist/locale/index.js +50 -0
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.mjs +50 -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 +50 -0
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +50 -0
- package/dist/provider/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-37967a434f7c.d.mts → types-fad7f358d712.d.mts} +24 -0
- package/dist/{types-37967a434f7c.d.ts → types-fad7f358d712.d.ts} +24 -0
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { resolveThemeTokens, buildApplicationHandoffUrl } from '@inf-monkeys-tec
|
|
|
3
3
|
import * as React2 from 'react';
|
|
4
4
|
import React2__default, { forwardRef, useId, useState, useRef, useEffect, createElement, createContext, useCallback, useMemo, useContext, Children, isValidElement, Fragment as Fragment$1, useLayoutEffect } from 'react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
-
import { ChevronDown, Check, ChevronRight, Circle, ChevronUp, Search, X, Plus, Pin, SquarePen, Blocks, Settings, TerminalSquare, Clock3, FileOutput, Download, RefreshCw, Bot, Image, Loader2, CheckCircle2, AlertCircle, Ellipsis, Pencil, Trash2, XCircle, CircleStop, Copy, RotateCcw, FileCode2, Files, TestTube2 } from 'lucide-react';
|
|
7
6
|
import * as DropdownMenu2 from '@radix-ui/react-dropdown-menu';
|
|
8
7
|
import { twMerge } from 'tailwind-merge';
|
|
9
8
|
import * as ContextMenu from '@radix-ui/react-context-menu';
|
|
@@ -18,6 +17,7 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
18
17
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
19
18
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
20
19
|
import { cva } from 'class-variance-authority';
|
|
20
|
+
import { ChevronDown, Check, ChevronRight, Circle, ChevronUp, Search, X, Plus, Pin, SquarePen, Blocks, Settings, TerminalSquare, Clock3, FileOutput, Download, RefreshCw, Bot, Image, Loader2, CheckCircle2, AlertCircle, Ellipsis, Pencil, Trash2, XCircle, CircleStop, Copy, RotateCcw, FileCode2, Files, TestTube2 } from 'lucide-react';
|
|
21
21
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
22
22
|
import { useSensors, useSensor, PointerSensor, DndContext, DragOverlay, useDroppable, useDraggable } from '@dnd-kit/core';
|
|
23
23
|
import { toast as toast$1, Toaster } from 'sonner';
|
|
@@ -3053,6 +3053,29 @@ var enUS = {
|
|
|
3053
3053
|
reasoning: "Reasoning",
|
|
3054
3054
|
plan: "Plan",
|
|
3055
3055
|
taskNoDetail: "No additional details",
|
|
3056
|
+
composer: {
|
|
3057
|
+
send: "Send message",
|
|
3058
|
+
stop: "Stop generating",
|
|
3059
|
+
queue: "Queue message",
|
|
3060
|
+
attach: "Add photos or files",
|
|
3061
|
+
voice: "Start voice input",
|
|
3062
|
+
webSearch: "Web search",
|
|
3063
|
+
model: "Model",
|
|
3064
|
+
reasoning: "Reasoning effort",
|
|
3065
|
+
permissions: "Permissions",
|
|
3066
|
+
removeAttachment: "Remove attachment",
|
|
3067
|
+
editQueued: "Edit queued message",
|
|
3068
|
+
deleteQueued: "Delete queued message",
|
|
3069
|
+
moveUp: "Move message up",
|
|
3070
|
+
moveDown: "Move message down",
|
|
3071
|
+
queued: "Queued messages",
|
|
3072
|
+
uploading: "Uploading",
|
|
3073
|
+
noModels: "No models available",
|
|
3074
|
+
message: "Message",
|
|
3075
|
+
attachmentOnly: "Attachment",
|
|
3076
|
+
reasoningOptions: { low: "Low", medium: "Medium", high: "High", xhigh: "Extra high" },
|
|
3077
|
+
permissionOptions: { "approval-required": "Approval required", "auto-approve": "Auto approve", "full-access": "Full access" }
|
|
3078
|
+
},
|
|
3056
3079
|
tool: {
|
|
3057
3080
|
input: "Input",
|
|
3058
3081
|
output: "Output",
|
|
@@ -3266,6 +3289,29 @@ var zhCN = {
|
|
|
3266
3289
|
reasoning: "\u601D\u8003\u8FC7\u7A0B",
|
|
3267
3290
|
plan: "\u6267\u884C\u8BA1\u5212",
|
|
3268
3291
|
taskNoDetail: "\u6682\u65E0\u66F4\u591A\u8BE6\u60C5",
|
|
3292
|
+
composer: {
|
|
3293
|
+
send: "\u53D1\u9001\u6D88\u606F",
|
|
3294
|
+
stop: "\u505C\u6B62\u751F\u6210",
|
|
3295
|
+
queue: "\u6392\u961F\u53D1\u9001",
|
|
3296
|
+
attach: "\u6DFB\u52A0\u7167\u7247\u6216\u6587\u4EF6",
|
|
3297
|
+
voice: "\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",
|
|
3298
|
+
webSearch: "\u8054\u7F51\u641C\u7D22",
|
|
3299
|
+
model: "\u6A21\u578B",
|
|
3300
|
+
reasoning: "\u601D\u8003\u5F3A\u5EA6",
|
|
3301
|
+
permissions: "\u6743\u9650",
|
|
3302
|
+
removeAttachment: "\u79FB\u9664\u9644\u4EF6",
|
|
3303
|
+
editQueued: "\u7F16\u8F91\u6392\u961F\u6D88\u606F",
|
|
3304
|
+
deleteQueued: "\u5220\u9664\u6392\u961F\u6D88\u606F",
|
|
3305
|
+
moveUp: "\u4E0A\u79FB\u6D88\u606F",
|
|
3306
|
+
moveDown: "\u4E0B\u79FB\u6D88\u606F",
|
|
3307
|
+
queued: "\u6392\u961F\u6D88\u606F",
|
|
3308
|
+
uploading: "\u4E0A\u4F20\u4E2D",
|
|
3309
|
+
noModels: "\u6682\u65E0\u53EF\u7528\u6A21\u578B",
|
|
3310
|
+
message: "\u6D88\u606F",
|
|
3311
|
+
attachmentOnly: "\u9644\u4EF6",
|
|
3312
|
+
reasoningOptions: { low: "\u4F4E", medium: "\u4E2D", high: "\u9AD8", xhigh: "\u6700\u9AD8" },
|
|
3313
|
+
permissionOptions: { "approval-required": "\u9700\u8981\u6279\u51C6", "auto-approve": "\u81EA\u52A8\u6279\u51C6", "full-access": "\u5B8C\u5168\u8BBF\u95EE" }
|
|
3314
|
+
},
|
|
3269
3315
|
tool: {
|
|
3270
3316
|
input: "\u8F93\u5165",
|
|
3271
3317
|
output: "\u8F93\u51FA",
|
|
@@ -3491,6 +3537,10 @@ function mergeMonkeysLocaleMessages(base, override) {
|
|
|
3491
3537
|
agentWorkbench: {
|
|
3492
3538
|
...base.agentWorkbench,
|
|
3493
3539
|
...override.agentWorkbench,
|
|
3540
|
+
composer: {
|
|
3541
|
+
...base.agentWorkbench.composer,
|
|
3542
|
+
...override.agentWorkbench?.composer
|
|
3543
|
+
},
|
|
3494
3544
|
tool: {
|
|
3495
3545
|
...base.agentWorkbench.tool,
|
|
3496
3546
|
...override.agentWorkbench?.tool,
|
|
@@ -17375,7 +17425,7 @@ function SessionActions({
|
|
|
17375
17425
|
] })
|
|
17376
17426
|
] });
|
|
17377
17427
|
}
|
|
17378
|
-
function AgentWorkbenchSidebar({ viewModel, className, classNames, onIntent }) {
|
|
17428
|
+
function AgentWorkbenchSidebar({ viewModel, headerActions, className, classNames, onIntent }) {
|
|
17379
17429
|
const { locale } = useMonkeysLocale();
|
|
17380
17430
|
const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
17381
17431
|
const searchRef = useRef(null);
|
|
@@ -17452,9 +17502,12 @@ function AgentWorkbenchSidebar({ viewModel, className, classNames, onIntent }) {
|
|
|
17452
17502
|
),
|
|
17453
17503
|
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" })
|
|
17454
17504
|
] }),
|
|
17455
|
-
/* @__PURE__ */ jsxs(
|
|
17456
|
-
/* @__PURE__ */
|
|
17457
|
-
|
|
17505
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
17506
|
+
/* @__PURE__ */ jsxs(TabsList, { className: cn2("grid min-w-0 flex-1 grid-cols-2 text-foreground", classNames?.tabs), "aria-label": messages.tabsLabel, children: [
|
|
17507
|
+
/* @__PURE__ */ jsx(TabsTrigger, { value: "agents", children: messages.agents }),
|
|
17508
|
+
/* @__PURE__ */ jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
|
|
17509
|
+
] }),
|
|
17510
|
+
headerActions ? /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
|
|
17458
17511
|
] })
|
|
17459
17512
|
] }),
|
|
17460
17513
|
/* @__PURE__ */ jsxs(TabsContent, { value: "agents", className: cn2("mt-0 min-h-0 flex-1 overflow-y-auto px-4 pb-4", classNames?.body), children: [
|