@blade-hq/agent-react 2612.0.0-beta.111 → 2612.0.0-beta.113
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/README.md +11 -0
- package/dist/{McpAppCard-ADVDKC2C.js → McpAppCard-NJEKKEEN.js} +3 -3
- package/dist/McpAppFrame-IQK5AOMD.js +9 -0
- package/dist/{SessionPluginConfigForm-DWVDFK6A.js → SessionPluginConfigForm-VXONUDM4.js} +2 -2
- package/dist/chat/AssistantTurnBlock.d.ts +1 -1
- package/dist/chat/AttachmentPreviewDialog.d.ts +1 -6
- package/dist/chat/ChatLoadingIndicator.d.ts +2 -1
- package/dist/chat/ChatPanel.d.ts +3 -3
- package/dist/chat/LightComposer.d.ts +1 -1
- package/dist/chat/chat-run.d.ts +4 -0
- package/dist/chat/customization.d.ts +1 -2
- package/dist/chat/index.d.ts +0 -1
- package/dist/chat/message-list-blocks.d.ts +1 -0
- package/dist/chat/runtime/actions.d.ts +1 -0
- package/dist/chat/runtime/environment.d.ts +1 -1
- package/dist/chat.css +1 -1
- package/dist/{chunk-MG4RF573.js → chunk-22JUW3EQ.js} +3 -3
- package/dist/{chunk-J6BSKVVK.js → chunk-3KJJIH5K.js} +1 -35
- package/dist/chunk-3KJJIH5K.js.map +1 -0
- package/dist/{chunk-IOIKCFRO.js → chunk-4WFRH7FG.js} +28 -8
- package/dist/{chunk-IOIKCFRO.js.map → chunk-4WFRH7FG.js.map} +1 -1
- package/dist/{chunk-6XZERPQY.js → chunk-5JDQG2JJ.js} +4 -4
- package/dist/{chunk-BEBV7M7V.js → chunk-5XLLPGSU.js} +8798 -9470
- package/dist/chunk-5XLLPGSU.js.map +1 -0
- package/dist/{chunk-UJ5WH5NK.js → chunk-AZVPNN6K.js} +3 -3
- package/dist/{chunk-UJ5WH5NK.js.map → chunk-AZVPNN6K.js.map} +1 -1
- package/dist/{chunk-QBQE4TPT.js → chunk-M6SNZHK3.js} +18 -13
- package/dist/chunk-M6SNZHK3.js.map +1 -0
- package/dist/{chunk-WEOW475M.js → chunk-N2SQZ2HY.js} +5 -5
- package/dist/{chunk-PKLEJPUS.js → chunk-VYTLF6JE.js} +12 -13
- package/dist/chunk-VYTLF6JE.js.map +1 -0
- package/dist/{chunk-PLTQP66W.js → chunk-XLG3BTUA.js} +25 -7
- package/dist/chunk-XLG3BTUA.js.map +1 -0
- package/dist/components/McpAppFrame.d.ts +2 -0
- package/dist/components/use-session-plugin-activation.d.ts +3 -1
- package/dist/connectors.js +3 -3
- package/dist/embed/entry.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -8
- package/dist/internal.js +192 -21
- package/dist/internal.js.map +1 -1
- package/dist/questions.js +4 -4
- package/dist/rich-input/ChatInput.d.ts +1 -1
- package/dist/rich-input/ComposerControls.d.ts +15 -0
- package/dist/rich-input.js +91 -72
- package/dist/rich-input.js.map +1 -1
- package/dist/style.full.css +2 -2
- package/dist/tool-details.js +5 -5
- package/package.json +2 -2
- package/public-api.md +34 -1
- package/dist/McpAppFrame-VEOUJL5E.js +0 -9
- package/dist/chat/LiteMessageList.d.ts +0 -93
- package/dist/chunk-BEBV7M7V.js.map +0 -1
- package/dist/chunk-J6BSKVVK.js.map +0 -1
- package/dist/chunk-PKLEJPUS.js.map +0 -1
- package/dist/chunk-PLTQP66W.js.map +0 -1
- package/dist/chunk-QBQE4TPT.js.map +0 -1
- /package/dist/{McpAppCard-ADVDKC2C.js.map → McpAppCard-NJEKKEEN.js.map} +0 -0
- /package/dist/{McpAppFrame-VEOUJL5E.js.map → McpAppFrame-IQK5AOMD.js.map} +0 -0
- /package/dist/{SessionPluginConfigForm-DWVDFK6A.js.map → SessionPluginConfigForm-VXONUDM4.js.map} +0 -0
- /package/dist/{chunk-MG4RF573.js.map → chunk-22JUW3EQ.js.map} +0 -0
- /package/dist/{chunk-6XZERPQY.js.map → chunk-5JDQG2JJ.js.map} +0 -0
- /package/dist/{chunk-WEOW475M.js.map → chunk-N2SQZ2HY.js.map} +0 -0
package/dist/rich-input.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useComposerChannels,
|
|
10
10
|
useDismissedBackgroundTasks,
|
|
11
11
|
visibleSkills
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VYTLF6JE.js";
|
|
13
13
|
import {
|
|
14
14
|
BackgroundLogDialog,
|
|
15
15
|
MODEL_REASONING_LEVELS_KEY,
|
|
@@ -47,8 +47,8 @@ import {
|
|
|
47
47
|
useSessionDataInvalidation,
|
|
48
48
|
useSessionSkills,
|
|
49
49
|
useSkillStats
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-M6SNZHK3.js";
|
|
51
|
+
import "./chunk-22JUW3EQ.js";
|
|
52
52
|
import {
|
|
53
53
|
cn,
|
|
54
54
|
notifyChat,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
useSessionHandle,
|
|
60
60
|
useSessionSource,
|
|
61
61
|
useSessionState
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-AZVPNN6K.js";
|
|
63
63
|
import {
|
|
64
64
|
useBladeClient
|
|
65
65
|
} from "./chunk-FR3ON5R4.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
cn as cn2,
|
|
72
72
|
dist_exports4 as dist_exports,
|
|
73
73
|
usePortalContainer
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-N2SQZ2HY.js";
|
|
75
75
|
import {
|
|
76
76
|
Archive,
|
|
77
77
|
ArrowUp,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
Square,
|
|
106
106
|
Terminal,
|
|
107
107
|
X
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-3KJJIH5K.js";
|
|
109
109
|
import {
|
|
110
110
|
__commonJS,
|
|
111
111
|
__require,
|
|
@@ -531,7 +531,7 @@ import { useState as useState2 } from "react";
|
|
|
531
531
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
532
532
|
var originalOrder = ["upload", "reference", "voice", "model", "mode", "workspace"];
|
|
533
533
|
function hasCustomComposerPlacement(placement) {
|
|
534
|
-
return Boolean(placement && (placement.more.length || placement.direct.length !== originalOrder.length || placement.direct.some((id, index) => id !== originalOrder[index])));
|
|
534
|
+
return Boolean(placement && (Object.keys(placement.presentation ?? {}).length || placement.extra?.length || placement.more.length || placement.direct.length !== originalOrder.length || placement.direct.some((id, index) => id !== originalOrder[index])));
|
|
535
535
|
}
|
|
536
536
|
function ComposerControlMenu({ label, icon, children }) {
|
|
537
537
|
return /* @__PURE__ */ jsxs2(dist_exports.Root, { children: [
|
|
@@ -545,16 +545,34 @@ function ComposerControlMenu({ label, icon, children }) {
|
|
|
545
545
|
function ComposerControls({ placement, controls, moreContent, children }) {
|
|
546
546
|
const [open, setOpen] = useState2(false);
|
|
547
547
|
if (!hasCustomComposerPlacement(placement)) return children;
|
|
548
|
-
const
|
|
548
|
+
const entriesFor = (region) => {
|
|
549
|
+
const entries = placement[region].map((id) => ({ id, element: controls[id] }));
|
|
550
|
+
for (const action of placement.extra ?? []) {
|
|
551
|
+
if (action.region !== region) continue;
|
|
552
|
+
entries.splice(action.index ?? entries.length, 0, {
|
|
553
|
+
id: action.id,
|
|
554
|
+
element: /* @__PURE__ */ jsxs2("button", { type: "button", title: action.title, onClick: () => {
|
|
555
|
+
if (region === "more") setOpen(false);
|
|
556
|
+
action.onSelect();
|
|
557
|
+
}, className: "inline-flex h-8 shrink-0 items-center gap-1 rounded-full px-2 text-xs hover:bg-[hsl(var(--accent))]", children: [
|
|
558
|
+
action.icon,
|
|
559
|
+
action.title
|
|
560
|
+
] })
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
return entries.flatMap(({ id, element }) => element ? [/* @__PURE__ */ jsx2("div", { "data-composer-control": id, children: element }, id)] : []);
|
|
564
|
+
};
|
|
565
|
+
const direct = entriesFor("direct");
|
|
566
|
+
const more = entriesFor("more");
|
|
549
567
|
return /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-wrap items-center gap-1", "aria-label": "\u8F93\u5165\u9009\u9879", children: [
|
|
550
|
-
|
|
568
|
+
direct,
|
|
551
569
|
more.length || moreContent ? /* @__PURE__ */ jsxs2(dist_exports.Root, { open, onOpenChange: setOpen, children: [
|
|
552
570
|
/* @__PURE__ */ jsx2(dist_exports.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs2("button", { type: "button", "aria-label": "\u66F4\u591A", title: "\u66F4\u591A", className: "inline-flex h-8 items-center gap-1 rounded-full px-2 text-xs text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))]", children: [
|
|
553
571
|
/* @__PURE__ */ jsx2(Ellipsis, { size: 17 }),
|
|
554
572
|
/* @__PURE__ */ jsx2("span", { className: "hidden sm:inline", children: "\u66F4\u591A" })
|
|
555
573
|
] }) }),
|
|
556
574
|
/* @__PURE__ */ jsx2(dist_exports.Portal, { children: /* @__PURE__ */ jsxs2(dist_exports.Content, { side: "top", align: "start", sideOffset: 8, collisionPadding: 12, className: "z-40 max-h-[70vh] w-[min(320px,calc(100vw-2rem))] overflow-y-auto rounded-xl border border-[hsl(var(--border))] bg-[hsl(var(--popover))] p-2 text-[hsl(var(--popover-foreground))] shadow-lg [&_[data-composer-label]]:inline", children: [
|
|
557
|
-
more
|
|
575
|
+
more,
|
|
558
576
|
moreContent
|
|
559
577
|
] }) })
|
|
560
578
|
] }) : null
|
|
@@ -28085,6 +28103,7 @@ function ChatInput({
|
|
|
28085
28103
|
onOpenSkills,
|
|
28086
28104
|
inputLabel = "\u8F93\u5165\u6D88\u606F",
|
|
28087
28105
|
placeholderText,
|
|
28106
|
+
planningPlaceholderText,
|
|
28088
28107
|
typewriterPlaceholder = false,
|
|
28089
28108
|
onDoubleEscape,
|
|
28090
28109
|
composerHint,
|
|
@@ -28092,7 +28111,6 @@ function ChatInput({
|
|
|
28092
28111
|
slotBelowActions,
|
|
28093
28112
|
initialDraft,
|
|
28094
28113
|
initialDraftKey,
|
|
28095
|
-
lite = false,
|
|
28096
28114
|
canCreateBoardTask = false
|
|
28097
28115
|
}) {
|
|
28098
28116
|
const developer = useChatRenderMode() === "developer";
|
|
@@ -28944,7 +28962,7 @@ ${append2.text}` : append2.text;
|
|
|
28944
28962
|
};
|
|
28945
28963
|
const [showAddContext, setShowAddContext] = useState11(false);
|
|
28946
28964
|
const isPlanning = mode === "planning";
|
|
28947
|
-
const fullPlaceholder = isPlanning ? "\u89C4\u5212\u8FDB\u884C\u4E2D\u2026 \u53EF\u8F93\u5165\u8865\u5145\u9700\u6C42\u6216\u7B49\u5F85\u5B8C\u6210" : placeholderText ?? "\u6D88\u606F";
|
|
28965
|
+
const fullPlaceholder = isPlanning ? planningPlaceholderText ?? "\u89C4\u5212\u8FDB\u884C\u4E2D\u2026 \u53EF\u8F93\u5165\u8865\u5145\u9700\u6C42\u6216\u7B49\u5F85\u5B8C\u6210" : placeholderText ?? "\u6D88\u606F";
|
|
28948
28966
|
const [typedPlaceholder, setTypedPlaceholder] = useState11(() => {
|
|
28949
28967
|
if (!typewriterPlaceholder) return fullPlaceholder;
|
|
28950
28968
|
const reduceMotion = typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -29056,9 +29074,10 @@ ${append2.text}` : append2.text;
|
|
|
29056
29074
|
}
|
|
29057
29075
|
) : null
|
|
29058
29076
|
] });
|
|
29077
|
+
const presentation = controlPlacement?.presentation;
|
|
29059
29078
|
const modelControl = /* @__PURE__ */ jsx24(Fragment6, { children: /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2 rounded-lg px-3 py-2", children: [
|
|
29060
|
-
/* @__PURE__ */ jsx24(Sparkles, { size: 14, className: "shrink-0", "aria-hidden": "true" }),
|
|
29061
|
-
/* @__PURE__ */ jsx24("span", { className: "shrink-0", children: "\u6A21\u578B" }),
|
|
29079
|
+
presentation?.model?.icon ?? /* @__PURE__ */ jsx24(Sparkles, { size: 14, className: "shrink-0", "aria-hidden": "true" }),
|
|
29080
|
+
/* @__PURE__ */ jsx24("span", { className: "shrink-0", children: presentation?.model?.label ?? "\u6A21\u578B" }),
|
|
29062
29081
|
/* @__PURE__ */ jsx24(
|
|
29063
29082
|
ModelSelector,
|
|
29064
29083
|
{
|
|
@@ -29070,25 +29089,27 @@ ${append2.text}` : append2.text;
|
|
|
29070
29089
|
}
|
|
29071
29090
|
)
|
|
29072
29091
|
] }) });
|
|
29073
|
-
const voiceControl = !isStreaming && !isCompacting && asrEnabled && (isRecording || isVoiceStarting || !hasComposerContent) ? /* @__PURE__ */
|
|
29092
|
+
const voiceControl = !isStreaming && !isCompacting && asrEnabled && (isRecording || isVoiceStarting || !hasComposerContent) ? /* @__PURE__ */ jsxs14(
|
|
29074
29093
|
"button",
|
|
29075
29094
|
{
|
|
29076
29095
|
type: "button",
|
|
29077
29096
|
onClick: voice.toggle,
|
|
29078
|
-
"aria-label": isRecording || isVoiceStarting ? "\u505C\u6B62\u8BED\u97F3\u8F93\u5165" : "\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",
|
|
29079
|
-
title: isVoiceStarting ? "\u6B63\u5728\u8FDE\u63A5\u8BED\u97F3\u8F93\u5165\uFF0C\u70B9\u51FB\u53D6\u6D88" : isRecording ? "\u505C\u6B62\u8BED\u97F3\u8F93\u5165" : "\u8BED\u97F3\u8F93\u5165",
|
|
29080
|
-
className: `flex h-9 w-9 shrink-0 items-center justify-center rounded-full transition-colors duration-150 disabled:opacity-40 ${isRecording ? "bg-[hsl(var(--swf-success-soft))] text-[hsl(var(--swf-success))]" : "text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--foreground))]"}`,
|
|
29081
|
-
children:
|
|
29097
|
+
"aria-label": isRecording || isVoiceStarting ? "\u505C\u6B62\u8BED\u97F3\u8F93\u5165" : presentation?.voice?.label ?? "\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",
|
|
29098
|
+
title: isVoiceStarting ? "\u6B63\u5728\u8FDE\u63A5\u8BED\u97F3\u8F93\u5165\uFF0C\u70B9\u51FB\u53D6\u6D88" : isRecording ? "\u505C\u6B62\u8BED\u97F3\u8F93\u5165" : presentation?.voice?.label ?? "\u8BED\u97F3\u8F93\u5165",
|
|
29099
|
+
className: `flex h-9 ${presentation?.voice?.label ? "gap-1 px-2 text-xs" : "w-9"} shrink-0 items-center justify-center rounded-full transition-colors duration-150 disabled:opacity-40 ${isRecording ? "bg-[hsl(var(--swf-success-soft))] text-[hsl(var(--swf-success))]" : "text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--foreground))]"}`,
|
|
29100
|
+
children: [
|
|
29101
|
+
isVoiceStarting ? /* @__PURE__ */ jsx24(LoaderCircle, { size: 18, className: "animate-spin" }) : isRecording ? /* @__PURE__ */ jsx24(VoiceWaveform, { level: voiceLevel, size: 18 }) : presentation?.voice?.icon ?? /* @__PURE__ */ jsx24(Mic, { size: 19, strokeWidth: 1.85 }),
|
|
29102
|
+
presentation?.voice?.label
|
|
29103
|
+
]
|
|
29082
29104
|
}
|
|
29083
29105
|
) : null;
|
|
29084
29106
|
const customPlacement = hasCustomComposerPlacement(controlPlacement);
|
|
29085
|
-
const hasMoreOptions = !lite;
|
|
29086
29107
|
const showQueueShortcut = Boolean(input.trim()) && !isSendDisabled && !isStopping && !isRecording && (!isStreaming || queueWhileRunning && !hasRunningSendBlockers());
|
|
29087
29108
|
return /* @__PURE__ */ jsxs14(Fragment6, { children: [
|
|
29088
29109
|
/* @__PURE__ */ jsx24("div", { className: `px-5 pb-3 pt-0 ${className ?? ""}`, children: /* @__PURE__ */ jsxs14("div", { className: `mx-auto ${maxWidthClassName} ${innerClassName ?? ""}`, children: [
|
|
29089
|
-
statusBarAddon ||
|
|
29110
|
+
statusBarAddon || activeSessionId ? /* @__PURE__ */ jsxs14("div", { className: "mb-2 flex flex-wrap items-center gap-2 empty:mb-0", children: [
|
|
29090
29111
|
statusBarAddon,
|
|
29091
|
-
|
|
29112
|
+
activeSessionId ? /* @__PURE__ */ jsx24(BackgroundTasksPill, { sessionId: activeSessionId }) : null
|
|
29092
29113
|
] }) : null,
|
|
29093
29114
|
(!isModelLoading || bannerModelPickerOpen) && !hasAvailableModel ? /* @__PURE__ */ jsxs14("div", { className: "mb-2 flex items-center justify-between gap-3 rounded-xl border border-[hsl(var(--destructive))]/30 bg-[hsl(var(--destructive))]/8 px-3 py-1.5 text-xs text-[hsl(var(--destructive))]", children: [
|
|
29094
29115
|
/* @__PURE__ */ jsx24("span", { className: "min-w-0 flex-1 leading-5", children: modelAvailabilityMessage || "\u6A21\u578B\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u6216\u91CD\u65B0\u9009\u62E9\u6A21\u578B" }),
|
|
@@ -29260,8 +29281,8 @@ ${append2.text}` : append2.text;
|
|
|
29260
29281
|
}
|
|
29261
29282
|
),
|
|
29262
29283
|
/* @__PURE__ */ jsx24(ComposerControls, { placement: controlPlacement, controls: {
|
|
29263
|
-
upload: /* @__PURE__ */ jsx24(ComposerControlMenu, { label: "\u4E0A\u4F20", icon: /* @__PURE__ */ jsx24(Paperclip, { size: 16 }), children: uploadControls }),
|
|
29264
|
-
reference: /* @__PURE__ */ jsxs14(ComposerControlMenu, { label: "\u5F15\u7528\u4E0E\u6280\u80FD", icon: /* @__PURE__ */ jsx24(Sparkles, { size: 16 }), children: [
|
|
29284
|
+
upload: /* @__PURE__ */ jsx24(ComposerControlMenu, { label: presentation?.upload?.label ?? "\u4E0A\u4F20", icon: presentation?.upload?.icon ?? /* @__PURE__ */ jsx24(Paperclip, { size: 16 }), children: uploadControls }),
|
|
29285
|
+
reference: /* @__PURE__ */ jsxs14(ComposerControlMenu, { label: presentation?.reference?.label ?? "\u5F15\u7528\u4E0E\u6280\u80FD", icon: presentation?.reference?.icon ?? /* @__PURE__ */ jsx24(Sparkles, { size: 16 }), children: [
|
|
29265
29286
|
" ",
|
|
29266
29287
|
/* @__PURE__ */ jsx24(
|
|
29267
29288
|
ConnectButton,
|
|
@@ -29278,10 +29299,10 @@ ${append2.text}` : append2.text;
|
|
|
29278
29299
|
/* @__PURE__ */ jsx24("button", { type: "button", onClick: () => editor?.chain().focus().insertContent("@").run(), className: "block w-full rounded-lg px-3 py-2 text-left text-sm hover:bg-[hsl(var(--accent))]", children: "\u5F15\u7528\u6587\u4EF6" }),
|
|
29279
29300
|
/* @__PURE__ */ jsx24("button", { type: "button", onClick: () => editor?.chain().focus().insertContent("/").run(), className: "block w-full rounded-lg px-3 py-2 text-left text-sm hover:bg-[hsl(var(--accent))]", children: "\u9009\u62E9\u6280\u80FD" })
|
|
29280
29301
|
] }),
|
|
29281
|
-
mode:
|
|
29302
|
+
mode: /* @__PURE__ */ jsx24(ComposerControlMenu, { label: presentation?.mode?.label ?? "\u6A21\u5F0F", icon: presentation?.mode?.icon ?? /* @__PURE__ */ jsx24(SlidersHorizontal, { size: 16 }), children: modeControls }),
|
|
29282
29303
|
model: modelControl,
|
|
29283
29304
|
voice: voiceControl
|
|
29284
|
-
}, moreContent:
|
|
29305
|
+
}, moreContent: onCommand && canCreateBoardTask || activeSessionId ? /* @__PURE__ */ jsxs14(Fragment6, { children: [
|
|
29285
29306
|
onCommand && canCreateBoardTask ? /* @__PURE__ */ jsx24(dist_exports.Close, { asChild: true, children: /* @__PURE__ */ jsxs14(
|
|
29286
29307
|
"button",
|
|
29287
29308
|
{
|
|
@@ -29352,54 +29373,52 @@ ${append2.text}` : append2.text;
|
|
|
29352
29373
|
}
|
|
29353
29374
|
}
|
|
29354
29375
|
),
|
|
29355
|
-
|
|
29356
|
-
|
|
29357
|
-
|
|
29358
|
-
|
|
29359
|
-
|
|
29360
|
-
|
|
29361
|
-
|
|
29362
|
-
|
|
29363
|
-
|
|
29364
|
-
|
|
29365
|
-
|
|
29366
|
-
|
|
29367
|
-
|
|
29368
|
-
|
|
29369
|
-
|
|
29376
|
+
/* @__PURE__ */ jsx24("div", { className: "my-1 h-px bg-[hsl(var(--border)/0.75)]" }),
|
|
29377
|
+
/* @__PURE__ */ jsx24(
|
|
29378
|
+
InputActionSubmenu,
|
|
29379
|
+
{
|
|
29380
|
+
label: "\u66F4\u591A\u9009\u9879",
|
|
29381
|
+
icon: /* @__PURE__ */ jsx24(SlidersHorizontal, { size: 16, "aria-hidden": "true" }),
|
|
29382
|
+
open: moreOptionsOpen,
|
|
29383
|
+
onOpenChange: (open) => {
|
|
29384
|
+
setMoreOptionsOpen(open);
|
|
29385
|
+
if (open) setConnectMenuOpen(false);
|
|
29386
|
+
},
|
|
29387
|
+
children: /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-0.5 py-0.5 text-xs", children: [
|
|
29388
|
+
onCommand && canCreateBoardTask ? /* @__PURE__ */ jsxs14(
|
|
29389
|
+
"button",
|
|
29390
|
+
{
|
|
29391
|
+
type: "button",
|
|
29392
|
+
onClick: () => {
|
|
29393
|
+
setMoreOptionsOpen(false);
|
|
29394
|
+
setActionMenuOpen(false);
|
|
29395
|
+
void onCommand("create_board_task");
|
|
29396
|
+
},
|
|
29397
|
+
className: "flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left text-xs transition-colors hover:bg-[hsl(var(--accent))]",
|
|
29398
|
+
children: [
|
|
29399
|
+
/* @__PURE__ */ jsx24(ListPlus, { size: 14, className: "shrink-0" }),
|
|
29400
|
+
/* @__PURE__ */ jsx24("span", { children: "\u521B\u5EFA\u540E\u53F0\u4EFB\u52A1" })
|
|
29401
|
+
]
|
|
29402
|
+
}
|
|
29403
|
+
) : null,
|
|
29404
|
+
modeControls,
|
|
29405
|
+
modelControl,
|
|
29406
|
+
activeSessionId && moreOptionsOpen ? /* @__PURE__ */ jsxs14("div", { className: "border-t border-[hsl(var(--border))] px-3 py-2.5", children: [
|
|
29407
|
+
/* @__PURE__ */ jsx24(
|
|
29408
|
+
SkillStatusBarComponent,
|
|
29370
29409
|
{
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29375
|
-
|
|
29376
|
-
},
|
|
29377
|
-
className: "flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left text-xs transition-colors hover:bg-[hsl(var(--accent))]",
|
|
29378
|
-
children: [
|
|
29379
|
-
/* @__PURE__ */ jsx24(ListPlus, { size: 14, className: "shrink-0" }),
|
|
29380
|
-
/* @__PURE__ */ jsx24("span", { children: "\u521B\u5EFA\u540E\u53F0\u4EFB\u52A1" })
|
|
29381
|
-
]
|
|
29410
|
+
sessionId: activeSessionId,
|
|
29411
|
+
onOpenSkills,
|
|
29412
|
+
vertical: true,
|
|
29413
|
+
className: skillStatusBarClassName,
|
|
29414
|
+
innerClassName: skillStatusBarInnerClassName
|
|
29382
29415
|
}
|
|
29383
|
-
)
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
|
|
29388
|
-
|
|
29389
|
-
{
|
|
29390
|
-
sessionId: activeSessionId,
|
|
29391
|
-
onOpenSkills,
|
|
29392
|
-
vertical: true,
|
|
29393
|
-
className: skillStatusBarClassName,
|
|
29394
|
-
innerClassName: skillStatusBarInnerClassName
|
|
29395
|
-
}
|
|
29396
|
-
),
|
|
29397
|
-
composerHint ? /* @__PURE__ */ jsx24("div", { className: "mt-2 border-t border-[hsl(var(--border))] pt-2 text-[hsl(var(--muted-foreground))]", children: composerHint }) : null
|
|
29398
|
-
] }) : null
|
|
29399
|
-
] })
|
|
29400
|
-
}
|
|
29401
|
-
)
|
|
29402
|
-
] }) : null
|
|
29416
|
+
),
|
|
29417
|
+
composerHint ? /* @__PURE__ */ jsx24("div", { className: "mt-2 border-t border-[hsl(var(--border))] pt-2 text-[hsl(var(--muted-foreground))]", children: composerHint }) : null
|
|
29418
|
+
] }) : null
|
|
29419
|
+
] })
|
|
29420
|
+
}
|
|
29421
|
+
)
|
|
29403
29422
|
]
|
|
29404
29423
|
}
|
|
29405
29424
|
) })
|