@blade-hq/agent-kit 0.5.26 → 0.5.28

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.
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  getSessionFilePath,
7
7
  resolveSessionFilePreviewTarget
8
- } from "./chunk-4FCXKLXT.js";
8
+ } from "./chunk-XLQZDSJ5.js";
9
9
  import {
10
10
  formatToolName,
11
11
  getAuthedUrl,
12
12
  useUiStore
13
- } from "./chunk-UNO53NPU.js";
13
+ } from "./chunk-JWHBUVSM.js";
14
14
  import {
15
15
  cn,
16
16
  copyToClipboard
@@ -1933,4 +1933,4 @@ export {
1933
1933
  PlanSummaryCard,
1934
1934
  extractLatestPlanMessages
1935
1935
  };
1936
- //# sourceMappingURL=chunk-Y7FRTBUT.js.map
1936
+ //# sourceMappingURL=chunk-NIWUUKD4.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getCodeLanguageFromFilename,
9
9
  parseAskUserQuestion,
10
10
  useHighlightedCodeHtml
11
- } from "./chunk-Y7FRTBUT.js";
11
+ } from "./chunk-NIWUUKD4.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-4FCXKLXT.js";
19
+ } from "./chunk-XLQZDSJ5.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-UNO53NPU.js";
63
+ } from "./chunk-JWHBUVSM.js";
64
64
  import {
65
65
  registerBridgeIframe,
66
66
  tapBridgeEvent
@@ -3152,12 +3152,13 @@ function ChatInput({
3152
3152
  }
3153
3153
  editor.chain().focus("end").insertContent(text).run();
3154
3154
  });
3155
+ const editorReady = editor != null;
3155
3156
  useEffect7(() => {
3156
- if (!draftAppends?.length) {
3157
+ if (!editorReady || !draftAppends?.length) {
3157
3158
  return;
3158
3159
  }
3159
3160
  applyDraftAppends();
3160
- }, [applyDraftAppends, draftAppends, editor]);
3161
+ }, [applyDraftAppends, draftAppends, editorReady]);
3161
3162
  const applySendRequests = useEffectEvent2(() => {
3162
3163
  if (!activeSessionId) {
3163
3164
  return;
@@ -8533,4 +8534,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
8533
8534
  * Licensed under the MIT License. See License.txt in the project root for license information.
8534
8535
  *--------------------------------------------------------------------------------------------*)
8535
8536
  */
8536
- //# sourceMappingURL=chunk-QCDNRR74.js.map
8537
+ //# sourceMappingURL=chunk-UIQ35OUJ.js.map