@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.
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  getAuthedUrl,
7
7
  useUiStore
8
- } from "./chunk-LKNU4NUC.js";
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-WZT2DOBJ.js.map
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
- return null;
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-LKNU4NUC.js.map
3079
+ //# sourceMappingURL=chunk-C7VSMOXN.js.map