@blade-hq/agent-kit 0.5.3 → 0.5.5
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-BKAGU9tr.d.ts → SkillStatusBar-BtvQmvxZ.d.ts} +2 -2
- package/dist/{blade-client-R3cLVOYs.d.ts → blade-client-CqWTKQhP.d.ts} +1 -1
- package/dist/{chunk-IRCXJHXT.js → chunk-3ZEWA2YM.js} +2 -2
- package/dist/{chunk-ZQQNSKQS.js → chunk-557R7QZV.js} +2 -2
- package/dist/{chunk-UQEXX57F.js → chunk-HWOVPFWG.js} +15 -13
- package/dist/chunk-HWOVPFWG.js.map +1 -0
- package/dist/{chunk-BFF6D2XV.js → chunk-NEI66DW6.js} +2 -2
- package/dist/{chunk-RTBAPZIO.js → chunk-S6EPGDAL.js} +15 -6
- package/dist/chunk-S6EPGDAL.js.map +1 -0
- package/dist/client/index.d.ts +346 -5
- package/dist/react/api/vibe-coding.d.ts +3 -3
- package/dist/react/api/vibe-coding.js +1 -1
- package/dist/react/components/chat/index.d.ts +4 -4
- package/dist/react/components/chat/index.js +4 -4
- package/dist/react/components/plan/index.js +2 -2
- package/dist/react/components/session/index.d.ts +1 -1
- package/dist/react/components/session/index.js +2 -2
- package/dist/react/components/workspace/index.js +2 -2
- package/dist/react/index.d.ts +44 -7
- package/dist/react/index.js +70 -6
- package/dist/react/index.js.map +1 -1
- package/dist/{session-nZdIuWrS.d.ts → session-ADRevzHD.d.ts} +11 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-RTBAPZIO.js.map +0 -1
- package/dist/chunk-UQEXX57F.js.map +0 -1
- /package/dist/{chunk-IRCXJHXT.js.map → chunk-3ZEWA2YM.js.map} +0 -0
- /package/dist/{chunk-ZQQNSKQS.js.map → chunk-557R7QZV.js.map} +0 -0
- /package/dist/{chunk-BFF6D2XV.js.map → chunk-NEI66DW6.js.map} +0 -0
|
@@ -3,8 +3,8 @@ import * as react from 'react';
|
|
|
3
3
|
import { ComponentType, ReactNode } from 'react';
|
|
4
4
|
import { C as ChatMessage, A as AskUserAnswerData, T as ToolCallInfo, M as MessageContent } from './AskUserQuestionBlock---kOTouk.js';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
|
-
import { M as ModeId, S as SessionInfo, a as SessionStatus } from './session-
|
|
7
|
-
import { j as BladeClient } from './blade-client-
|
|
6
|
+
import { M as ModeId, S as SessionInfo, a as SessionStatus } from './session-ADRevzHD.js';
|
|
7
|
+
import { j as BladeClient } from './blade-client-CqWTKQhP.js';
|
|
8
8
|
import { C as ContentBlock } from './projection-BWYEFYNn.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
|
|
2
2
|
import * as arktype_internal_variants_string_ts from 'arktype/internal/variants/string.ts';
|
|
3
3
|
import { T as TurnProjection } from './projection-BWYEFYNn.js';
|
|
4
|
-
import { S as SessionInfo, T as TemplateId, b as SessionDetail, c as Solution, B as BizRole } from './session-
|
|
4
|
+
import { S as SessionInfo, T as TemplateId, b as SessionDetail, c as Solution, B as BizRole } from './session-ADRevzHD.js';
|
|
5
5
|
import { Socket } from 'socket.io-client';
|
|
6
6
|
|
|
7
7
|
declare class BladeApiError extends Error {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
apiFetchResponse,
|
|
3
3
|
getAuthedUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWOVPFWG.js";
|
|
5
5
|
|
|
6
6
|
// src/react/lib/session-file-preview.ts
|
|
7
7
|
var IMAGE_EXTS = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]);
|
|
@@ -124,4 +124,4 @@ export {
|
|
|
124
124
|
CollapsibleTrigger,
|
|
125
125
|
CollapsibleContent
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=chunk-
|
|
127
|
+
//# sourceMappingURL=chunk-3ZEWA2YM.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
getAuthedUrl,
|
|
7
7
|
useUiStore
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HWOVPFWG.js";
|
|
9
9
|
import {
|
|
10
10
|
cn,
|
|
11
11
|
copyToClipboard
|
|
@@ -1576,4 +1576,4 @@ export {
|
|
|
1576
1576
|
PlanSummaryCard,
|
|
1577
1577
|
extractLatestPlanMessages
|
|
1578
1578
|
};
|
|
1579
|
-
//# sourceMappingURL=chunk-
|
|
1579
|
+
//# sourceMappingURL=chunk-557R7QZV.js.map
|
|
@@ -1124,17 +1124,17 @@ function buildMessageContent2(turn) {
|
|
|
1124
1124
|
return JSON.stringify(block.content);
|
|
1125
1125
|
}).join("");
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1128
|
-
const thinking = turn.blocks.filter((block) => block.type === "thinking").map((block) => typeof block.content === "string" ? block.content : JSON.stringify(block.content)).filter(Boolean);
|
|
1129
|
-
if (thinking.length === 0) return void 0;
|
|
1130
|
-
return thinking.join("\n\n");
|
|
1131
|
-
}
|
|
1132
|
-
function buildAskUserAnswerContent(turn) {
|
|
1127
|
+
function askUserAnswerContent(turn) {
|
|
1133
1128
|
const answerBlock = turn.blocks.find((block) => block.type === "ask_user_answer");
|
|
1134
1129
|
if (!answerBlock || !isRecord3(answerBlock.content)) return null;
|
|
1135
1130
|
const answer = answerBlock.content.answer;
|
|
1136
1131
|
return typeof answer === "string" && answer.trim().length > 0 ? answer : null;
|
|
1137
1132
|
}
|
|
1133
|
+
function buildReasoning(turn) {
|
|
1134
|
+
const thinking = turn.blocks.filter((block) => block.type === "thinking").map((block) => typeof block.content === "string" ? block.content : JSON.stringify(block.content)).filter(Boolean);
|
|
1135
|
+
if (thinking.length === 0) return void 0;
|
|
1136
|
+
return thinking.join("\n\n");
|
|
1137
|
+
}
|
|
1138
1138
|
function isModeChangeContent(value) {
|
|
1139
1139
|
return typeof value === "object" && value !== null && typeof value.from === "string" && typeof value.to === "string";
|
|
1140
1140
|
}
|
|
@@ -1193,14 +1193,12 @@ function projectionToMessage(turn) {
|
|
|
1193
1193
|
status: turn.status
|
|
1194
1194
|
};
|
|
1195
1195
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
if (answerContent === null) return null;
|
|
1196
|
+
const askAnswer = askUserAnswerContent(turn);
|
|
1197
|
+
if (askAnswer !== null) {
|
|
1199
1198
|
return {
|
|
1200
1199
|
role: "user",
|
|
1201
|
-
content:
|
|
1200
|
+
content: askAnswer,
|
|
1202
1201
|
blocks: turn.blocks,
|
|
1203
|
-
kind: "ask_user_answer",
|
|
1204
1202
|
loop_name: turn.loop_id,
|
|
1205
1203
|
entry_id: turn.turn_id,
|
|
1206
1204
|
status: turn.status,
|
|
@@ -1278,7 +1276,11 @@ function applyPlanningSideEffects(sessionId, turns) {
|
|
|
1278
1276
|
}
|
|
1279
1277
|
}
|
|
1280
1278
|
function materialize(turns) {
|
|
1281
|
-
const messages = turns.map(projectionToMessage).filter((message) => message !== null)
|
|
1279
|
+
const messages = turns.map(projectionToMessage).filter((message) => message !== null).filter((message, index, allMessages) => {
|
|
1280
|
+
if (!message.blocks?.some((block) => block.type === "ask_user_answer")) return true;
|
|
1281
|
+
const next = allMessages[index + 1];
|
|
1282
|
+
return !(next?.role === "user" && next.content === message.content);
|
|
1283
|
+
});
|
|
1282
1284
|
const activeCompaction = [...turns].reverse().find(
|
|
1283
1285
|
(turn) => turn.kind === "compaction" && turn.status === "streaming" && typeof turn.compaction_id === "string"
|
|
1284
1286
|
);
|
|
@@ -3091,4 +3093,4 @@ export {
|
|
|
3091
3093
|
bootstrapBladeClient,
|
|
3092
3094
|
getBootstrappedClient
|
|
3093
3095
|
};
|
|
3094
|
-
//# sourceMappingURL=chunk-
|
|
3096
|
+
//# sourceMappingURL=chunk-HWOVPFWG.js.map
|