@blade-hq/agent-kit 1.0.17 → 1.0.18
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/{chunk-MH34J2PH.js → chunk-ADVQBVGQ.js} +2 -2
- package/dist/{chunk-GBXOYOM7.js → chunk-JWWU2GWP.js} +66 -35
- package/dist/chunk-JWWU2GWP.js.map +1 -0
- package/dist/{chunk-CDOBBZKQ.js → chunk-MKZ4VTJ2.js} +2 -2
- package/dist/{chunk-5TKSNSAW.js → chunk-TLB4ORQT.js} +32 -2
- package/dist/{chunk-5TKSNSAW.js.map → chunk-TLB4ORQT.js.map} +1 -1
- package/dist/{chunk-2LKBNP7B.js → chunk-ZKOSOL3V.js} +3 -3
- package/dist/react/api/vibe-coding.js +1 -1
- package/dist/react/components/chat/index.js +4 -4
- package/dist/react/components/plan/index.js +3 -3
- package/dist/react/components/session/index.js +2 -2
- package/dist/react/components/workspace/index.js +2 -2
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-GBXOYOM7.js.map +0 -1
- /package/dist/{chunk-MH34J2PH.js.map → chunk-ADVQBVGQ.js.map} +0 -0
- /package/dist/{chunk-CDOBBZKQ.js.map → chunk-MKZ4VTJ2.js.map} +0 -0
- /package/dist/{chunk-2LKBNP7B.js.map → chunk-ZKOSOL3V.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useSessionStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TLB4ORQT.js";
|
|
4
4
|
|
|
5
5
|
// src/react/hooks/use-session.ts
|
|
6
6
|
function useSession() {
|
|
@@ -27,4 +27,4 @@ function useSession() {
|
|
|
27
27
|
export {
|
|
28
28
|
useSession
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-ADVQBVGQ.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getCodeLanguageFromFilename,
|
|
9
9
|
parseAskUserQuestion,
|
|
10
10
|
useHighlightedCodeHtml
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZKOSOL3V.js";
|
|
12
12
|
import {
|
|
13
13
|
Collapsible,
|
|
14
14
|
CollapsibleContent,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-H62LH2AG.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveSessionFilePreviewTarget
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MKZ4VTJ2.js";
|
|
20
20
|
import {
|
|
21
21
|
apiFetchResponse,
|
|
22
22
|
buildMessageContent,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
useUiBridgeStore,
|
|
61
61
|
useUiStore,
|
|
62
62
|
writeFile
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-TLB4ORQT.js";
|
|
64
64
|
import {
|
|
65
65
|
registerBridgeIframe,
|
|
66
66
|
tapBridgeEvent
|
|
@@ -96,7 +96,7 @@ function useChat(sessionId) {
|
|
|
96
96
|
const send = useCallback(
|
|
97
97
|
(msg, mode2, askuserAnswer, options) => {
|
|
98
98
|
const synthesizedAnswer = askuserAnswer ?? buildPendingAskUserAnswer(sessionId, msg);
|
|
99
|
-
getSocket().send(sessionId, msg, mode2, synthesizedAnswer, options);
|
|
99
|
+
void getSocket().send(sessionId, msg, mode2, synthesizedAnswer, options);
|
|
100
100
|
},
|
|
101
101
|
[sessionId]
|
|
102
102
|
);
|
|
@@ -2786,6 +2786,55 @@ function showVoiceInputErrorToast(error) {
|
|
|
2786
2786
|
duration: error.description ? 15e3 : void 0
|
|
2787
2787
|
});
|
|
2788
2788
|
}
|
|
2789
|
+
function HelpPopover({
|
|
2790
|
+
activeSessionId,
|
|
2791
|
+
SkillStatusBarComponent,
|
|
2792
|
+
onResyncSkills,
|
|
2793
|
+
isResyncingSkills,
|
|
2794
|
+
skillStatusBarClassName,
|
|
2795
|
+
skillStatusBarInnerClassName,
|
|
2796
|
+
composerHint
|
|
2797
|
+
}) {
|
|
2798
|
+
const [hovered, setHovered] = useState8(false);
|
|
2799
|
+
return /* @__PURE__ */ jsxs9(
|
|
2800
|
+
"div",
|
|
2801
|
+
{
|
|
2802
|
+
className: "group/help relative",
|
|
2803
|
+
onMouseEnter: () => setHovered(true),
|
|
2804
|
+
onFocusCapture: () => setHovered(true),
|
|
2805
|
+
children: [
|
|
2806
|
+
/* @__PURE__ */ jsx10(
|
|
2807
|
+
"button",
|
|
2808
|
+
{
|
|
2809
|
+
type: "button",
|
|
2810
|
+
"aria-label": "\u67E5\u770B\u8F93\u5165\u63D0\u793A",
|
|
2811
|
+
className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-lg text-[hsl(var(--muted-foreground))] transition-colors hover:text-[hsl(var(--foreground))]",
|
|
2812
|
+
children: /* @__PURE__ */ jsx10(CircleHelp, { size: 13 })
|
|
2813
|
+
}
|
|
2814
|
+
),
|
|
2815
|
+
/* @__PURE__ */ jsx10("div", { className: "pointer-events-auto absolute bottom-full right-0 z-30 hidden pb-2 group-hover/help:block group-focus-within/help:block", children: /* @__PURE__ */ jsxs9("div", { className: "min-w-64 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--popover))] p-3 text-left text-[11px] leading-5 text-[hsl(var(--popover-foreground))] shadow-lg", children: [
|
|
2816
|
+
activeSessionId && hovered ? /* @__PURE__ */ jsx10("div", { className: "mb-2 border-b border-[hsl(var(--border))] pb-2", children: /* @__PURE__ */ jsx10(
|
|
2817
|
+
SkillStatusBarComponent,
|
|
2818
|
+
{
|
|
2819
|
+
sessionId: activeSessionId,
|
|
2820
|
+
onResync: onResyncSkills,
|
|
2821
|
+
isResyncing: isResyncingSkills,
|
|
2822
|
+
vertical: true,
|
|
2823
|
+
className: skillStatusBarClassName,
|
|
2824
|
+
innerClassName: skillStatusBarInnerClassName
|
|
2825
|
+
}
|
|
2826
|
+
) }) : null,
|
|
2827
|
+
/* @__PURE__ */ jsxs9("div", { className: "space-y-0.5", children: [
|
|
2828
|
+
/* @__PURE__ */ jsx10("div", { children: "Shift+Enter \u6362\u884C" }),
|
|
2829
|
+
/* @__PURE__ */ jsx10("div", { children: "/ \u8C03\u7528\u6280\u80FD" }),
|
|
2830
|
+
/* @__PURE__ */ jsx10("div", { children: "@ \u5F15\u7528\u6587\u4EF6" }),
|
|
2831
|
+
composerHint && /* @__PURE__ */ jsx10("div", { children: composerHint })
|
|
2832
|
+
] })
|
|
2833
|
+
] }) })
|
|
2834
|
+
]
|
|
2835
|
+
}
|
|
2836
|
+
);
|
|
2837
|
+
}
|
|
2789
2838
|
function ChatInput({
|
|
2790
2839
|
onSend,
|
|
2791
2840
|
onAppend,
|
|
@@ -3856,36 +3905,18 @@ function ChatInput({
|
|
|
3856
3905
|
)
|
|
3857
3906
|
] }),
|
|
3858
3907
|
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-1.5", children: [
|
|
3859
|
-
/* @__PURE__ */
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
SkillStatusBarComponent,
|
|
3872
|
-
{
|
|
3873
|
-
sessionId: activeSessionId,
|
|
3874
|
-
onResync: onResyncSkills,
|
|
3875
|
-
isResyncing: isResyncingSkills,
|
|
3876
|
-
vertical: true,
|
|
3877
|
-
className: skillStatusBarClassName,
|
|
3878
|
-
innerClassName: skillStatusBarInnerClassName
|
|
3879
|
-
}
|
|
3880
|
-
) }) : null,
|
|
3881
|
-
/* @__PURE__ */ jsxs9("div", { className: "space-y-0.5", children: [
|
|
3882
|
-
/* @__PURE__ */ jsx10("div", { children: "Shift+Enter \u6362\u884C" }),
|
|
3883
|
-
/* @__PURE__ */ jsx10("div", { children: "/ \u8C03\u7528\u6280\u80FD" }),
|
|
3884
|
-
/* @__PURE__ */ jsx10("div", { children: "@ \u5F15\u7528\u6587\u4EF6" }),
|
|
3885
|
-
composerHint && /* @__PURE__ */ jsx10("div", { children: composerHint })
|
|
3886
|
-
] })
|
|
3887
|
-
] }) })
|
|
3888
|
-
] }),
|
|
3908
|
+
/* @__PURE__ */ jsx10(
|
|
3909
|
+
HelpPopover,
|
|
3910
|
+
{
|
|
3911
|
+
activeSessionId,
|
|
3912
|
+
SkillStatusBarComponent,
|
|
3913
|
+
onResyncSkills,
|
|
3914
|
+
isResyncingSkills,
|
|
3915
|
+
skillStatusBarClassName,
|
|
3916
|
+
skillStatusBarInnerClassName,
|
|
3917
|
+
composerHint
|
|
3918
|
+
}
|
|
3919
|
+
),
|
|
3889
3920
|
/* @__PURE__ */ jsx10(
|
|
3890
3921
|
"button",
|
|
3891
3922
|
{
|
|
@@ -8746,4 +8777,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
|
|
|
8746
8777
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
8747
8778
|
*--------------------------------------------------------------------------------------------*)
|
|
8748
8779
|
*/
|
|
8749
|
-
//# sourceMappingURL=chunk-
|
|
8780
|
+
//# sourceMappingURL=chunk-JWWU2GWP.js.map
|