@blade-hq/agent-kit 0.5.22 → 0.5.24
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/{SkillStatusBar-Dn5im-__.d.ts → SkillStatusBar-DO-ltefK.d.ts} +3 -0
- package/dist/{chunk-QF2LUFUM.js → chunk-63IWZ3AO.js} +2 -2
- package/dist/{chunk-IE6AP6CS.js → chunk-7FGJNW56.js} +13 -5
- package/dist/chunk-7FGJNW56.js.map +1 -0
- package/dist/{chunk-CCMNSYPI.js → chunk-DTDZFQRY.js} +24 -2
- package/dist/chunk-DTDZFQRY.js.map +1 -0
- package/dist/chunk-H62LH2AG.js +37 -0
- package/dist/chunk-H62LH2AG.js.map +1 -0
- package/dist/{chunk-ER4RLUJW.js → chunk-KW66QITV.js} +285 -96
- package/dist/chunk-KW66QITV.js.map +1 -0
- package/dist/{chunk-3YAZYX2V.js → chunk-QKSZPJQX.js} +4 -37
- package/dist/chunk-QKSZPJQX.js.map +1 -0
- package/dist/client/index.d.ts +57 -0
- package/dist/react/api/vibe-coding.js +1 -1
- package/dist/react/components/chat/index.d.ts +2 -2
- package/dist/react/components/chat/index.js +5 -4
- package/dist/react/components/plan/index.js +3 -2
- package/dist/react/components/plan/index.js.map +1 -1
- package/dist/react/components/session/index.js +2 -2
- package/dist/react/components/workspace/index.js +5 -3
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +6 -5
- package/dist/react/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-3YAZYX2V.js.map +0 -1
- package/dist/chunk-CCMNSYPI.js.map +0 -1
- package/dist/chunk-ER4RLUJW.js.map +0 -1
- package/dist/chunk-IE6AP6CS.js.map +0 -1
- /package/dist/{chunk-QF2LUFUM.js.map → chunk-63IWZ3AO.js.map} +0 -0
|
@@ -182,6 +182,7 @@ interface SessionState extends ClientAwareState {
|
|
|
182
182
|
loading: boolean;
|
|
183
183
|
modes: Record<string, SessionMode>;
|
|
184
184
|
rewindDrafts: Record<string, string>;
|
|
185
|
+
errorMessages: Record<string, string>;
|
|
185
186
|
/** Session IDs that were just created and haven't had their first history load yet */
|
|
186
187
|
_freshSessions: Set<string>;
|
|
187
188
|
fetchSessions: () => Promise<void>;
|
|
@@ -203,6 +204,8 @@ interface SessionState extends ClientAwareState {
|
|
|
203
204
|
*/
|
|
204
205
|
patchSession: (sessionId: string, patch: Partial<SessionInfo>) => void;
|
|
205
206
|
pinSession: (sessionId: string, pinned: boolean) => Promise<void>;
|
|
207
|
+
setErrorMessage: (sessionId: string, message: string) => void;
|
|
208
|
+
clearErrorMessage: (sessionId: string) => void;
|
|
206
209
|
setRewindDraft: (sessionId: string, text: string | null) => void;
|
|
207
210
|
setMode: (sessionId: string, mode: SessionMode) => void;
|
|
208
211
|
togglePlanningMode: (sessionId: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useSessionStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DTDZFQRY.js";
|
|
4
4
|
|
|
5
5
|
// src/react/hooks/use-session.ts
|
|
6
6
|
function useSession() {
|
|
@@ -27,4 +27,4 @@ function useSession() {
|
|
|
27
27
|
export {
|
|
28
28
|
useSession
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-63IWZ3AO.js.map
|
|
@@ -8,13 +8,15 @@ import {
|
|
|
8
8
|
getCodeLanguageFromFilename,
|
|
9
9
|
parseAskUserQuestion,
|
|
10
10
|
useHighlightedCodeHtml
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KW66QITV.js";
|
|
12
12
|
import {
|
|
13
13
|
Collapsible,
|
|
14
14
|
CollapsibleContent,
|
|
15
|
-
CollapsibleTrigger
|
|
15
|
+
CollapsibleTrigger
|
|
16
|
+
} from "./chunk-H62LH2AG.js";
|
|
17
|
+
import {
|
|
16
18
|
resolveSessionFilePreviewTarget
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QKSZPJQX.js";
|
|
18
20
|
import {
|
|
19
21
|
apiFetchResponse,
|
|
20
22
|
buildMessageContent,
|
|
@@ -58,7 +60,7 @@ import {
|
|
|
58
60
|
useUiBridgeStore,
|
|
59
61
|
useUiStore,
|
|
60
62
|
writeFile
|
|
61
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-DTDZFQRY.js";
|
|
62
64
|
import {
|
|
63
65
|
registerBridgeIframe,
|
|
64
66
|
tapBridgeEvent
|
|
@@ -77,6 +79,7 @@ import {
|
|
|
77
79
|
} from "./chunk-PZ5AY32C.js";
|
|
78
80
|
|
|
79
81
|
// src/react/components/chat/ChatView.tsx
|
|
82
|
+
import { CircleAlert } from "lucide-react";
|
|
80
83
|
import { Eye } from "lucide-react";
|
|
81
84
|
import { useCallback as useCallback13, useMemo as useMemo18 } from "react";
|
|
82
85
|
|
|
@@ -8332,6 +8335,7 @@ function ChatView({
|
|
|
8332
8335
|
stop
|
|
8333
8336
|
} = useChat(sessionId);
|
|
8334
8337
|
const session = useSessionStore((s) => s.sessions.find((ss) => ss.id === sessionId));
|
|
8338
|
+
const errorMessage = useSessionStore((s) => s.errorMessages[sessionId]);
|
|
8335
8339
|
const mode = useSessionStore((s) => s.modes[sessionId] ?? "executing");
|
|
8336
8340
|
const toggleMode = useCallback13(
|
|
8337
8341
|
() => useSessionStore.getState().togglePlanningMode(sessionId),
|
|
@@ -8360,6 +8364,10 @@ function ChatView({
|
|
|
8360
8364
|
"\u4F60\u6B63\u5728\u67E5\u770B\u5206\u4EAB\u7684\u4F1A\u8BDD\uFF08\u53EA\u8BFB\uFF09"
|
|
8361
8365
|
] }),
|
|
8362
8366
|
!isViewer && /* @__PURE__ */ jsx36(ConnectionBanner, {}),
|
|
8367
|
+
errorMessage && /* @__PURE__ */ jsxs31("div", { className: "flex items-start gap-2 border-b border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800 dark:border-red-800/30 dark:bg-red-950/30 dark:text-red-300", children: [
|
|
8368
|
+
/* @__PURE__ */ jsx36(CircleAlert, { size: 16, className: "mt-0.5 shrink-0" }),
|
|
8369
|
+
/* @__PURE__ */ jsx36("span", { children: errorMessage })
|
|
8370
|
+
] }),
|
|
8363
8371
|
/* @__PURE__ */ jsx36(
|
|
8364
8372
|
MessageList,
|
|
8365
8373
|
{
|
|
@@ -8448,4 +8456,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
|
|
|
8448
8456
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
8449
8457
|
*--------------------------------------------------------------------------------------------*)
|
|
8450
8458
|
*/
|
|
8451
|
-
//# sourceMappingURL=chunk-
|
|
8459
|
+
//# sourceMappingURL=chunk-7FGJNW56.js.map
|