@blade-hq/agent-kit 0.4.23 → 0.5.0

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.
@@ -8,13 +8,13 @@ import {
8
8
  getCodeLanguageFromFilename,
9
9
  parseAskUserQuestion,
10
10
  useHighlightedCodeHtml
11
- } from "./chunk-WZT2DOBJ.js";
11
+ } from "./chunk-2FTEBWEM.js";
12
12
  import {
13
13
  Collapsible,
14
14
  CollapsibleContent,
15
15
  CollapsibleTrigger,
16
16
  resolveSessionFilePreviewTarget
17
- } from "./chunk-47YVQZQ7.js";
17
+ } from "./chunk-CFZDKYT3.js";
18
18
  import {
19
19
  buildMessageContent,
20
20
  buildToolPreviewKey,
@@ -56,7 +56,7 @@ import {
56
56
  useUiBridgeStore,
57
57
  useUiStore,
58
58
  writeFile
59
- } from "./chunk-LKNU4NUC.js";
59
+ } from "./chunk-C7VSMOXN.js";
60
60
  import {
61
61
  registerBridgeIframe,
62
62
  tapBridgeEvent
@@ -3091,7 +3091,8 @@ function ChatInput({
3091
3091
  if (fileRef) {
3092
3092
  try {
3093
3093
  const { path, name } = JSON.parse(fileRef);
3094
- const sandboxPath = `/workspace/${path}`;
3094
+ const normalizedPath = path.replace(/^\.?\//, "");
3095
+ const sandboxPath = path.startsWith("/") ? path : activeSessionId ? `/root/\u667A\u80FD\u52A9\u624B\u5DE5\u4F5C\u7A7A\u95F4/${activeSessionId}/${normalizedPath}` : normalizedPath;
3095
3096
  const editor2 = editorRef.current;
3096
3097
  if (editor2) {
3097
3098
  editor2.commands.focus("end");
@@ -8172,4 +8173,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
8172
8173
  * Licensed under the MIT License. See License.txt in the project root for license information.
8173
8174
  *--------------------------------------------------------------------------------------------*)
8174
8175
  */
8175
- //# sourceMappingURL=chunk-LKOBHTL7.js.map
8176
+ //# sourceMappingURL=chunk-ZGM3H24C.js.map