@blade-hq/agent-kit 1.0.16 → 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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useSessionStore
3
- } from "./chunk-QEYZZDLM.js";
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-OMIVYL5D.js.map
30
+ //# sourceMappingURL=chunk-ADVQBVGQ.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getCodeLanguageFromFilename,
9
9
  parseAskUserQuestion,
10
10
  useHighlightedCodeHtml
11
- } from "./chunk-J3PQU7BQ.js";
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-U4KVB5OB.js";
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-QEYZZDLM.js";
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__ */ jsxs9("div", { className: "group/help relative", children: [
3860
- /* @__PURE__ */ jsx10(
3861
- "button",
3862
- {
3863
- type: "button",
3864
- "aria-label": "\u67E5\u770B\u8F93\u5165\u63D0\u793A",
3865
- 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))]",
3866
- children: /* @__PURE__ */ jsx10(CircleHelp, { size: 13 })
3867
- }
3868
- ),
3869
- /* @__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: [
3870
- activeSessionId ? /* @__PURE__ */ jsx10("div", { className: "mb-2 border-b border-[hsl(var(--border))] pb-2", children: /* @__PURE__ */ jsx10(
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-JHUSL3JZ.js.map
8780
+ //# sourceMappingURL=chunk-JWWU2GWP.js.map