@blade-hq/agent-react 2612.0.0-beta.20 → 2612.0.0-beta.21
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/chat/AssistantTurnBlock.d.ts +1 -1
- package/dist/{chunk-KSVVYASW.js → chunk-GSKRNKEI.js} +260 -408
- package/dist/chunk-GSKRNKEI.js.map +1 -0
- package/dist/{chunk-TY7DRU2R.js → chunk-PAZSK73V.js} +2 -2
- package/dist/{chunk-C4FUFBG4.js → chunk-PPREDKQ2.js} +1 -10
- package/dist/chunk-PPREDKQ2.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/internal.js +3 -3
- package/dist/rich-input.js +11 -9
- package/dist/rich-input.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-C4FUFBG4.js.map +0 -1
- package/dist/chunk-KSVVYASW.js.map +0 -1
- /package/dist/{chunk-TY7DRU2R.js.map → chunk-PAZSK73V.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
useAgentSession,
|
|
8
8
|
useReplay,
|
|
9
9
|
useTopicAssetSubmissionAccess
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GSKRNKEI.js";
|
|
11
11
|
import {
|
|
12
12
|
BladeProvider,
|
|
13
13
|
useBladeClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PPREDKQ2.js";
|
|
15
15
|
import "./chunk-PR4QN5HX.js";
|
|
16
16
|
export {
|
|
17
17
|
BladeProvider,
|
package/dist/internal.js
CHANGED
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
useTopicAssetSubmissionAccess,
|
|
33
33
|
useTurnNavigation,
|
|
34
34
|
useTypewriterReveal
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GSKRNKEI.js";
|
|
36
36
|
import {
|
|
37
37
|
ConnectorPanel,
|
|
38
38
|
PluginTriggerStack,
|
|
39
39
|
TRIGGER_ICON_LIMIT,
|
|
40
40
|
selectionFromItem,
|
|
41
41
|
triggerSummary
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-PAZSK73V.js";
|
|
43
43
|
import {
|
|
44
44
|
BladeProvider,
|
|
45
45
|
Content2,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
useBladeHost,
|
|
67
67
|
useOptionalBladeClient,
|
|
68
68
|
useSessionPluginActivation
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-PPREDKQ2.js";
|
|
70
70
|
import "./chunk-PR4QN5HX.js";
|
|
71
71
|
|
|
72
72
|
// src/internal.ts
|
package/dist/rich-input.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PluginTriggerStack,
|
|
4
4
|
selectionFromItem,
|
|
5
5
|
triggerSummary
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PAZSK73V.js";
|
|
7
7
|
import {
|
|
8
8
|
Archive,
|
|
9
9
|
BookOpen,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
usePortalContainer,
|
|
63
63
|
useSessionHandle,
|
|
64
64
|
useSessionState
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-PPREDKQ2.js";
|
|
66
66
|
import {
|
|
67
67
|
__commonJS,
|
|
68
68
|
__require,
|
|
@@ -26149,6 +26149,7 @@ function SkillStatusBar({
|
|
|
26149
26149
|
}
|
|
26150
26150
|
].filter((item) => item.key !== "total" || skillStats.remote_configured);
|
|
26151
26151
|
const tokenSummary = useMemo6(() => {
|
|
26152
|
+
if (mode !== "developer") return null;
|
|
26152
26153
|
if (contextStatsLoading || contextStatsError || !contextStats) {
|
|
26153
26154
|
return {
|
|
26154
26155
|
detail: /* @__PURE__ */ jsx14("div", { className: "pt-1 text-[hsl(var(--muted-foreground))]", children: "\u4E0A\u4E0B\u6587\u7EDF\u8BA1\u4E0D\u53EF\u7528" }),
|
|
@@ -26174,7 +26175,7 @@ function SkillStatusBar({
|
|
|
26174
26175
|
label: contextStats.context_window > 0 ? `${formatTokensK(contextStats.tokens_used)} / ${formatTokensK(contextStats.context_window)} \u4F1A\u8BDD\u6D88\u606F\u4F30\u7B97` : `${formatTokensK(contextStats.tokens_used)} \u4F1A\u8BDD\u6D88\u606F\u4F30\u7B97`,
|
|
26175
26176
|
warn: tokenPressure.level === "critical"
|
|
26176
26177
|
};
|
|
26177
|
-
}, [contextStats, contextStatsError, contextStatsLoading, tokenPressure.level]);
|
|
26178
|
+
}, [mode, contextStats, contextStatsError, contextStatsLoading, tokenPressure.level]);
|
|
26178
26179
|
const containerClass = vertical ? "text-[11px] text-[hsl(var(--muted-foreground))]" : "bg-[hsl(var(--background))] px-5 pt-2";
|
|
26179
26180
|
const innerClass = vertical ? "" : "mx-auto max-w-3xl";
|
|
26180
26181
|
const listClass = vertical ? "flex flex-col items-stretch gap-1.5 text-[11px] text-[hsl(var(--muted-foreground))]" : "flex flex-wrap items-center gap-2 text-[10px] text-[hsl(var(--muted-foreground))]";
|
|
@@ -28405,6 +28406,7 @@ function ChatInput({
|
|
|
28405
28406
|
lite = false,
|
|
28406
28407
|
canCreateBoardTask = false
|
|
28407
28408
|
}) {
|
|
28409
|
+
const developer = useChatRenderMode() === "developer";
|
|
28408
28410
|
const isBusy = isStreaming || isCompacting;
|
|
28409
28411
|
const resolvedInputLabel = inputLabel?.trim() || "\u8F93\u5165\u6D88\u606F";
|
|
28410
28412
|
const initialInput = externalDraft?.value ?? initialDraft ?? "";
|
|
@@ -29009,7 +29011,7 @@ ${append2.text}` : append2.text;
|
|
|
29009
29011
|
return;
|
|
29010
29012
|
}
|
|
29011
29013
|
if (isCompacting) {
|
|
29012
|
-
notifyChat(environment, "info", "\u5BF9\u8BDD\u6B63\u5728\u6574\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u518D\u53D1\u9001");
|
|
29014
|
+
notifyChat(environment, "info", developer ? "\u5BF9\u8BDD\u6B63\u5728\u6574\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u518D\u53D1\u9001" : "\u6B63\u5728\u5904\u7406\uFF0C\u8BF7\u7A0D\u540E\u518D\u53D1\u9001");
|
|
29013
29015
|
return;
|
|
29014
29016
|
}
|
|
29015
29017
|
if (isStopping) {
|
|
@@ -29547,7 +29549,7 @@ ${append2.text}` : append2.text;
|
|
|
29547
29549
|
}
|
|
29548
29550
|
) : null,
|
|
29549
29551
|
onCommand && !lite ? /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
29550
|
-
/* @__PURE__ */ jsxs12(
|
|
29552
|
+
developer ? /* @__PURE__ */ jsxs12(
|
|
29551
29553
|
"button",
|
|
29552
29554
|
{
|
|
29553
29555
|
type: "button",
|
|
@@ -29562,7 +29564,7 @@ ${append2.text}` : append2.text;
|
|
|
29562
29564
|
"\u6574\u7406\u5BF9\u8BDD"
|
|
29563
29565
|
]
|
|
29564
29566
|
}
|
|
29565
|
-
),
|
|
29567
|
+
) : null,
|
|
29566
29568
|
/* @__PURE__ */ jsxs12(
|
|
29567
29569
|
"button",
|
|
29568
29570
|
{
|
|
@@ -29656,7 +29658,7 @@ ${append2.text}` : append2.text;
|
|
|
29656
29658
|
level: selectedReasoningLevel,
|
|
29657
29659
|
levels: reasoningLevels,
|
|
29658
29660
|
disabled: isCompacting,
|
|
29659
|
-
disabledReason: "\u5BF9\u8BDD\u6574\u7406\u5B8C\u6210\u540E\u53EF\u8C03\u6574",
|
|
29661
|
+
disabledReason: developer ? "\u5BF9\u8BDD\u6574\u7406\u5B8C\u6210\u540E\u53EF\u8C03\u6574" : "\u5904\u7406\u5B8C\u6210\u540E\u53EF\u8C03\u6574",
|
|
29660
29662
|
onChange: model.setReasoningLevel
|
|
29661
29663
|
}
|
|
29662
29664
|
) : null,
|
|
@@ -29750,8 +29752,8 @@ ${append2.text}` : append2.text;
|
|
|
29750
29752
|
{
|
|
29751
29753
|
type: "button",
|
|
29752
29754
|
disabled: true,
|
|
29753
|
-
"aria-label": "\u6B63\u5728\u6574\u7406\u5BF9\u8BDD",
|
|
29754
|
-
title: "\u6B63\u5728\u6574\u7406\u5BF9\u8BDD",
|
|
29755
|
+
"aria-label": developer ? "\u6B63\u5728\u6574\u7406\u5BF9\u8BDD" : "\u6B63\u5728\u5904\u7406",
|
|
29756
|
+
title: developer ? "\u6B63\u5728\u6574\u7406\u5BF9\u8BDD" : "\u6B63\u5728\u5904\u7406",
|
|
29755
29757
|
className: "flex h-10 w-10 items-center justify-center rounded-full bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] opacity-50",
|
|
29756
29758
|
children: /* @__PURE__ */ jsx23(LoaderCircle, { size: 16, className: "animate-spin" })
|
|
29757
29759
|
}
|