@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.
- package/dist/{chunk-WZT2DOBJ.js → chunk-2FTEBWEM.js} +2 -2
- package/dist/{chunk-LKNU4NUC.js → chunk-C7VSMOXN.js} +20 -2
- package/dist/chunk-C7VSMOXN.js.map +1 -0
- package/dist/{chunk-47YVQZQ7.js → chunk-CFZDKYT3.js} +2 -2
- package/dist/{chunk-WQYDTSSV.js → chunk-M2ZCTKY7.js} +2 -2
- package/dist/{chunk-LKOBHTL7.js → chunk-ZGM3H24C.js} +6 -5
- package/dist/chunk-ZGM3H24C.js.map +1 -0
- package/dist/react/api/vibe-coding.js +1 -1
- package/dist/react/components/chat/index.js +4 -4
- package/dist/react/components/plan/index.js +2 -2
- package/dist/react/components/session/index.js +2 -2
- package/dist/react/components/workspace/index.js +48 -23
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/index.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-LKNU4NUC.js.map +0 -1
- package/dist/chunk-LKOBHTL7.js.map +0 -1
- /package/dist/{chunk-WZT2DOBJ.js.map → chunk-2FTEBWEM.js.map} +0 -0
- /package/dist/{chunk-47YVQZQ7.js.map → chunk-CFZDKYT3.js.map} +0 -0
- /package/dist/{chunk-WQYDTSSV.js.map → chunk-M2ZCTKY7.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
getAuthedUrl,
|
|
7
7
|
useUiStore
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C7VSMOXN.js";
|
|
9
9
|
import {
|
|
10
10
|
cn,
|
|
11
11
|
copyToClipboard
|
|
@@ -1544,4 +1544,4 @@ export {
|
|
|
1544
1544
|
PlanSummaryCard,
|
|
1545
1545
|
extractLatestPlanMessages
|
|
1546
1546
|
};
|
|
1547
|
-
//# sourceMappingURL=chunk-
|
|
1547
|
+
//# sourceMappingURL=chunk-2FTEBWEM.js.map
|
|
@@ -1123,6 +1123,12 @@ function buildReasoning(turn) {
|
|
|
1123
1123
|
if (thinking.length === 0) return void 0;
|
|
1124
1124
|
return thinking.join("\n\n");
|
|
1125
1125
|
}
|
|
1126
|
+
function buildAskUserAnswerContent(turn) {
|
|
1127
|
+
const answerBlock = turn.blocks.find((block) => block.type === "ask_user_answer");
|
|
1128
|
+
if (!answerBlock || !isRecord3(answerBlock.content)) return null;
|
|
1129
|
+
const answer = answerBlock.content.answer;
|
|
1130
|
+
return typeof answer === "string" && answer.trim().length > 0 ? answer : null;
|
|
1131
|
+
}
|
|
1126
1132
|
function isModeChangeContent(value) {
|
|
1127
1133
|
return typeof value === "object" && value !== null && typeof value.from === "string" && typeof value.to === "string";
|
|
1128
1134
|
}
|
|
@@ -1184,7 +1190,19 @@ function projectionToMessage(turn) {
|
|
|
1184
1190
|
};
|
|
1185
1191
|
}
|
|
1186
1192
|
if (turn.blocks.some((block) => block.type === "ask_user_answer")) {
|
|
1187
|
-
|
|
1193
|
+
const answerContent = buildAskUserAnswerContent(turn);
|
|
1194
|
+
if (answerContent === null) return null;
|
|
1195
|
+
return {
|
|
1196
|
+
role: "user",
|
|
1197
|
+
content: answerContent,
|
|
1198
|
+
blocks: turn.blocks,
|
|
1199
|
+
kind: "ask_user_answer",
|
|
1200
|
+
loop_name: turn.loop_id,
|
|
1201
|
+
entry_id: turn.turn_id,
|
|
1202
|
+
status: turn.status,
|
|
1203
|
+
...typeof turn.duration_ms === "number" ? { duration_ms: turn.duration_ms } : {},
|
|
1204
|
+
...turn.started_at ? { timestamp: turn.started_at } : {}
|
|
1205
|
+
};
|
|
1188
1206
|
}
|
|
1189
1207
|
const content = buildMessageContent2(turn);
|
|
1190
1208
|
const reasoning = buildReasoning(turn);
|
|
@@ -3058,4 +3076,4 @@ export {
|
|
|
3058
3076
|
bootstrapBladeClient,
|
|
3059
3077
|
getBootstrappedClient
|
|
3060
3078
|
};
|
|
3061
|
-
//# sourceMappingURL=chunk-
|
|
3079
|
+
//# sourceMappingURL=chunk-C7VSMOXN.js.map
|