@blade-hq/agent-react 2612.0.0-beta.39 → 2612.0.0-beta.40
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-6PSSFMTQ.js → chunk-5S4H3CJD.js} +6 -2
- package/dist/chunk-5S4H3CJD.js.map +1 -0
- package/dist/{chunk-PQZC5LMU.js → chunk-5X6RBFGB.js} +1784 -933
- package/dist/chunk-5X6RBFGB.js.map +1 -0
- package/dist/{chunk-MHXY4KAY.js → chunk-KUZPP6OU.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/internal.js +3 -3
- package/dist/rich-input.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-6PSSFMTQ.js.map +0 -1
- package/dist/chunk-PQZC5LMU.js.map +0 -1
- /package/dist/{chunk-MHXY4KAY.js.map → chunk-KUZPP6OU.js.map} +0 -0
|
@@ -5699,6 +5699,7 @@ var TOOL_NAME_ALIASES = {
|
|
|
5699
5699
|
ask_user_question: "AskUserQuestion",
|
|
5700
5700
|
bash: "Bash",
|
|
5701
5701
|
bg_bash: "BgBash",
|
|
5702
|
+
code_mode_run: "CodeMode",
|
|
5702
5703
|
edit: "Edit",
|
|
5703
5704
|
exit_plan_mode: "ExitPlanMode",
|
|
5704
5705
|
file_edit: "Edit",
|
|
@@ -5719,6 +5720,7 @@ var TOOL_NAME_ALIASES = {
|
|
|
5719
5720
|
var TOOL_DISPLAY_LABELS = {
|
|
5720
5721
|
Bash: "\u6267\u884C\u547D\u4EE4",
|
|
5721
5722
|
BgBash: "\u540E\u53F0\u6267\u884C\u547D\u4EE4",
|
|
5723
|
+
CodeMode: "\u6267\u884C\u7A0B\u5E8F",
|
|
5722
5724
|
Read: "\u8BFB\u53D6\u6587\u4EF6",
|
|
5723
5725
|
Write: "\u5199\u5165\u6587\u4EF6",
|
|
5724
5726
|
Edit: "\u7F16\u8F91\u6587\u4EF6",
|
|
@@ -5802,6 +5804,7 @@ function isInternalStatusFile(filePath) {
|
|
|
5802
5804
|
function formatToolName(name) {
|
|
5803
5805
|
const trimmed = name.trim();
|
|
5804
5806
|
if (!trimmed) return name;
|
|
5807
|
+
if (trimmed === "code:run" || trimmed === "code__run") return "CodeMode";
|
|
5805
5808
|
const stripped = trimmed.split(":").pop()?.split("/").pop()?.split(".").pop()?.trim() || trimmed;
|
|
5806
5809
|
const normalized = stripped.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[^a-zA-Z0-9]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
|
|
5807
5810
|
return TOOL_NAME_ALIASES[normalized] ?? stripped;
|
|
@@ -5810,7 +5813,8 @@ function getToolDisplayLabel(toolCall) {
|
|
|
5810
5813
|
const normalized = formatToolName(toolCall.name);
|
|
5811
5814
|
const args = safeParseJson(toolCall.arguments);
|
|
5812
5815
|
const displayName = toolCall.display_name?.trim() ?? "";
|
|
5813
|
-
const
|
|
5816
|
+
const explicitLabel = displayName === toolCall.name ? "" : displayName;
|
|
5817
|
+
const baseLabel = explicitLabel || TOOL_DISPLAY_LABELS[normalized] || displayName || normalized;
|
|
5814
5818
|
const metaDisplayName = getStringArgValue(args, "_meta_display_name");
|
|
5815
5819
|
if (metaDisplayName) {
|
|
5816
5820
|
return metaDisplayName;
|
|
@@ -27025,4 +27029,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
27025
27029
|
* See the LICENSE file in the root directory of this source tree.
|
|
27026
27030
|
*)
|
|
27027
27031
|
*/
|
|
27028
|
-
//# sourceMappingURL=chunk-
|
|
27032
|
+
//# sourceMappingURL=chunk-5S4H3CJD.js.map
|