@blade-hq/agent-react 2612.0.0-beta.87 → 2612.0.0-beta.88

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.
Files changed (40) hide show
  1. package/dist/SessionPluginConfigForm-Y657MKRX.js +9 -0
  2. package/dist/chat/ChatPanel.d.ts +3 -1
  3. package/dist/chat/chat-column-width.d.ts +2 -2
  4. package/dist/{chunk-GBZEFIGW.js → chunk-5ESAKOUV.js} +2 -2
  5. package/dist/{chunk-K6N5CQDP.js → chunk-5UGLGKFI.js} +205 -7
  6. package/dist/chunk-5UGLGKFI.js.map +1 -0
  7. package/dist/{chunk-34MHG656.js → chunk-7LVZQ4LS.js} +95 -77
  8. package/dist/chunk-7LVZQ4LS.js.map +1 -0
  9. package/dist/{chunk-J6YPRDQH.js → chunk-GXHHSZSS.js} +2 -2
  10. package/dist/{chunk-G6OC5I4W.js → chunk-LOXIHCL2.js} +13 -7
  11. package/dist/{chunk-G6OC5I4W.js.map → chunk-LOXIHCL2.js.map} +1 -1
  12. package/dist/{chunk-WG2HHYGK.js → chunk-NADWKQYZ.js} +76 -11
  13. package/dist/{chunk-WG2HHYGK.js.map → chunk-NADWKQYZ.js.map} +1 -1
  14. package/dist/{chunk-JFGBDNDD.js → chunk-PWUFWSMN.js} +3 -3
  15. package/dist/{chunk-GJZGRIDJ.js → chunk-QKI7OC5D.js} +245 -19
  16. package/dist/chunk-QKI7OC5D.js.map +1 -0
  17. package/dist/{chunk-5ZV73E5D.js → chunk-SEJUZPT5.js} +10 -1
  18. package/dist/chunk-SEJUZPT5.js.map +1 -0
  19. package/dist/{chunk-BZHMZBYT.js → chunk-VTEKA5HD.js} +281 -102
  20. package/dist/{chunk-BZHMZBYT.js.map → chunk-VTEKA5HD.js.map} +1 -1
  21. package/dist/connectors.js +3 -3
  22. package/dist/index.js +9 -9
  23. package/dist/internal.d.ts +1 -1
  24. package/dist/internal.js +616 -46
  25. package/dist/internal.js.map +1 -1
  26. package/dist/questions.js +4 -4
  27. package/dist/rich-input.js +647 -826
  28. package/dist/rich-input.js.map +1 -1
  29. package/dist/tool-details.js +5 -5
  30. package/package.json +2 -2
  31. package/dist/SessionPluginConfigForm-2KG4TG4W.js +0 -9
  32. package/dist/chat-WA7YIAHD.css +0 -180
  33. package/dist/chunk-34MHG656.js.map +0 -1
  34. package/dist/chunk-5ZV73E5D.js.map +0 -1
  35. package/dist/chunk-GJZGRIDJ.js.map +0 -1
  36. package/dist/chunk-K6N5CQDP.js.map +0 -1
  37. /package/dist/{SessionPluginConfigForm-2KG4TG4W.js.map → SessionPluginConfigForm-Y657MKRX.js.map} +0 -0
  38. /package/dist/{chunk-GBZEFIGW.js.map → chunk-5ESAKOUV.js.map} +0 -0
  39. /package/dist/{chunk-J6YPRDQH.js.map → chunk-GXHHSZSS.js.map} +0 -0
  40. /package/dist/{chunk-JFGBDNDD.js.map → chunk-PWUFWSMN.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MarkdownContent
3
- } from "./chunk-G6OC5I4W.js";
3
+ } from "./chunk-LOXIHCL2.js";
4
4
  import {
5
5
  cn,
6
6
  extractToolFilePath,
@@ -9,10 +9,10 @@ import {
9
9
  useBladeClient,
10
10
  useHighlightedCode,
11
11
  useOptionalBladeClient
12
- } from "./chunk-BZHMZBYT.js";
12
+ } from "./chunk-VTEKA5HD.js";
13
13
  import {
14
14
  dist_exports2 as dist_exports
15
- } from "./chunk-J6YPRDQH.js";
15
+ } from "./chunk-GXHHSZSS.js";
16
16
  import {
17
17
  ChevronLeft,
18
18
  ChevronRight,
@@ -29,7 +29,7 @@ import {
29
29
  Plus,
30
30
  RotateCcw,
31
31
  X
32
- } from "./chunk-5ZV73E5D.js";
32
+ } from "./chunk-SEJUZPT5.js";
33
33
  import {
34
34
  __export
35
35
  } from "./chunk-PR4QN5HX.js";
@@ -26240,6 +26240,49 @@ ${html}`;
26240
26240
  }
26241
26241
 
26242
26242
  // src/chat/lib/code-language.ts
26243
+ var SUPPORTED_LANGUAGES = [
26244
+ "python",
26245
+ "javascript",
26246
+ "typescript",
26247
+ "tsx",
26248
+ "jsx",
26249
+ "yaml",
26250
+ "markdown",
26251
+ "bash",
26252
+ "json",
26253
+ "go",
26254
+ "rust",
26255
+ "css",
26256
+ "html"
26257
+ ];
26258
+ var LANGUAGE_ALIASES = {
26259
+ bash: "bash",
26260
+ css: "css",
26261
+ go: "go",
26262
+ golang: "go",
26263
+ htm: "html",
26264
+ html: "html",
26265
+ javascript: "javascript",
26266
+ js: "javascript",
26267
+ json: "json",
26268
+ jsonc: "json",
26269
+ jsx: "jsx",
26270
+ markdown: "markdown",
26271
+ md: "markdown",
26272
+ py: "python",
26273
+ python: "python",
26274
+ rs: "rust",
26275
+ rust: "rust",
26276
+ scss: "css",
26277
+ sh: "bash",
26278
+ shell: "bash",
26279
+ ts: "typescript",
26280
+ tsx: "tsx",
26281
+ typescript: "typescript",
26282
+ yaml: "yaml",
26283
+ yml: "yaml",
26284
+ zsh: "bash"
26285
+ };
26243
26286
  var FILE_EXTENSION_ALIASES = {
26244
26287
  ".bash": "bash",
26245
26288
  ".css": "css",
@@ -26262,6 +26305,10 @@ var FILE_EXTENSION_ALIASES = {
26262
26305
  ".yml": "yaml",
26263
26306
  ".zsh": "bash"
26264
26307
  };
26308
+ function normalizeCodeLanguage(language) {
26309
+ if (!language) return null;
26310
+ return LANGUAGE_ALIASES[language.trim().toLowerCase()] ?? null;
26311
+ }
26265
26312
  function getCodeLanguageFromFilename(filePath) {
26266
26313
  if (!filePath) return null;
26267
26314
  const dotIndex = filePath.lastIndexOf(".");
@@ -26431,9 +26478,6 @@ function BashRenderer({ toolCall }) {
26431
26478
  ] });
26432
26479
  }
26433
26480
 
26434
- // src/chat/tool-renderers/FileEditRenderer.tsx
26435
- import { useLayoutEffect as useLayoutEffect2, useRef as useRef4 } from "react";
26436
-
26437
26481
  // src/chat/tool-renderers/write-preview-scroll.ts
26438
26482
  function shouldFollowWritePreview(toolName, status) {
26439
26483
  return toolName === "Write" && status === "pending";
@@ -26443,6 +26487,7 @@ function scrollWritePreviewToLatest(preview) {
26443
26487
  }
26444
26488
 
26445
26489
  // src/chat/tool-renderers/FileEditRenderer.tsx
26490
+ import { useLayoutEffect as useLayoutEffect2, useRef as useRef4 } from "react";
26446
26491
  import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
26447
26492
  var MAX_DIFF_LINES = 200;
26448
26493
  var FILE_PATH_FIELDS = ["file_path", "path"];
@@ -26694,9 +26739,6 @@ function FileEditRenderer({ toolCall }) {
26694
26739
  ] });
26695
26740
  }
26696
26741
 
26697
- // src/chat/tool-renderers/FileReadRenderer.tsx
26698
- import { useState as useState6 } from "react";
26699
-
26700
26742
  // src/chat/ImageLightbox.tsx
26701
26743
  import { useCallback, useEffect as useEffect5, useRef as useRef5, useState as useState5 } from "react";
26702
26744
  import { Fragment, jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
@@ -26997,6 +27039,7 @@ function LightboxDialog({ children, className, onClose, onClick, onKeyDown }) {
26997
27039
  }
26998
27040
 
26999
27041
  // src/chat/tool-renderers/FileReadRenderer.tsx
27042
+ import { useState as useState6 } from "react";
27000
27043
  import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
27001
27044
  var NUMBERED_LINE_RE = /^(\s*\d+)\t([\s\S]*)$/;
27002
27045
  function parseReadResult(result) {
@@ -27363,7 +27406,29 @@ export {
27363
27406
  McpAppCard,
27364
27407
  MessageImage,
27365
27408
  ToolUiCardView,
27409
+ SUPPORTED_LANGUAGES,
27410
+ normalizeCodeLanguage,
27411
+ getCodeLanguageFromFilename,
27412
+ getResultText,
27413
+ getResultImages,
27414
+ parseJsonValue,
27415
+ isPlainObject3 as isPlainObject,
27416
+ getStringValue,
27417
+ getNumberValue,
27418
+ getBooleanValue,
27419
+ extractErrorMessage,
27420
+ getFileName,
27421
+ getCodeLanguage,
27422
+ formatBytes,
27423
+ CodePreview,
27424
+ BashRenderer,
27425
+ shouldFollowWritePreview,
27426
+ scrollWritePreviewToLatest,
27427
+ FileEditRenderer,
27366
27428
  ImageLightbox,
27429
+ FileReadRenderer,
27430
+ SearchRenderer,
27431
+ SubmitResultRenderer,
27367
27432
  getRenderer
27368
27433
  };
27369
27434
  /*! Bundled license information:
@@ -27375,4 +27440,4 @@ export {
27375
27440
  * MIT Licensed
27376
27441
  *)
27377
27442
  */
27378
- //# sourceMappingURL=chunk-WG2HHYGK.js.map
27443
+ //# sourceMappingURL=chunk-NADWKQYZ.js.map