@blade-hq/agent-kit 0.5.1 → 0.5.3
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/{AskUserQuestionBlock-CjvG_pUY.d.ts → AskUserQuestionBlock---kOTouk.d.ts} +2 -2
- package/dist/{SkillStatusBar-B7-EU8A4.d.ts → SkillStatusBar-BKAGU9tr.d.ts} +7 -5
- package/dist/{blade-client-BKiP6U73.d.ts → blade-client-R3cLVOYs.d.ts} +31 -5
- package/dist/{chunk-L2KVYOQP.js → chunk-BFF6D2XV.js} +2 -2
- package/dist/{chunk-UPHYN7CQ.js → chunk-IRCXJHXT.js} +2 -2
- package/dist/{chunk-ROGNJYST.js → chunk-Q6CSM5DE.js} +63 -5
- package/dist/chunk-Q6CSM5DE.js.map +1 -0
- package/dist/{chunk-75BPCDBW.js → chunk-RTBAPZIO.js} +277 -216
- package/dist/chunk-RTBAPZIO.js.map +1 -0
- package/dist/{chunk-DSBIKYKQ.js → chunk-UQEXX57F.js} +16 -10
- package/dist/chunk-UQEXX57F.js.map +1 -0
- package/dist/{chunk-DAFIIANJ.js → chunk-ZQQNSKQS.js} +2 -11
- package/dist/chunk-ZQQNSKQS.js.map +1 -0
- package/dist/client/index.d.ts +11 -7
- package/dist/client/index.js +1 -1
- package/dist/{projection-DIfyh6RK.d.ts → projection-BWYEFYNn.d.ts} +1 -1
- package/dist/react/api/vibe-coding.d.ts +3 -3
- package/dist/react/api/vibe-coding.js +2 -2
- package/dist/react/components/chat/index.d.ts +6 -6
- package/dist/react/components/chat/index.js +5 -5
- package/dist/react/components/plan/index.d.ts +3 -3
- package/dist/react/components/plan/index.js +3 -3
- package/dist/react/components/session/index.js +3 -3
- package/dist/react/components/workspace/index.js +32 -4
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/index.d.ts +15 -11
- package/dist/react/index.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-75BPCDBW.js.map +0 -1
- package/dist/chunk-DAFIIANJ.js.map +0 -1
- package/dist/chunk-DSBIKYKQ.js.map +0 -1
- package/dist/chunk-ROGNJYST.js.map +0 -1
- /package/dist/{chunk-L2KVYOQP.js.map → chunk-BFF6D2XV.js.map} +0 -0
- /package/dist/{chunk-UPHYN7CQ.js.map → chunk-IRCXJHXT.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-J3XVFPOV.js";
|
|
4
4
|
import {
|
|
5
5
|
BladeClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q6CSM5DE.js";
|
|
7
7
|
import {
|
|
8
8
|
createClientActions,
|
|
9
9
|
useCardStateStore
|
|
@@ -1143,8 +1143,6 @@ function extractModeFromBlocks(blocks) {
|
|
|
1143
1143
|
if (modeBlock && isModeChangeContent(modeBlock.content)) {
|
|
1144
1144
|
return modeBlock.content.to === "planning" || modeBlock.content.to === "executing" ? modeBlock.content.to : null;
|
|
1145
1145
|
}
|
|
1146
|
-
if (blocks.some((block) => block.type === "planning_enter")) return "planning";
|
|
1147
|
-
if (blocks.some((block) => block.type === "planning_exit")) return "executing";
|
|
1148
1146
|
return null;
|
|
1149
1147
|
}
|
|
1150
1148
|
function projectionToMessage(turn) {
|
|
@@ -1173,7 +1171,7 @@ function projectionToMessage(turn) {
|
|
|
1173
1171
|
};
|
|
1174
1172
|
}
|
|
1175
1173
|
const planningBlock = turn.blocks.find(
|
|
1176
|
-
(block) => block.type === "mode_change" || block.type === "
|
|
1174
|
+
(block) => block.type === "mode_change" || block.type === "plan_status"
|
|
1177
1175
|
);
|
|
1178
1176
|
if (planningBlock) {
|
|
1179
1177
|
if (planningBlock.type === "plan_status") {
|
|
@@ -1547,8 +1545,6 @@ function extractModeFromBlocks2(blocks) {
|
|
|
1547
1545
|
if (modeBlock && isPlainRecord(modeBlock.content) && (modeBlock.content.to === "planning" || modeBlock.content.to === "executing")) {
|
|
1548
1546
|
return modeBlock.content.to;
|
|
1549
1547
|
}
|
|
1550
|
-
if (blocks.some((block) => block.type === "planning_enter")) return "planning";
|
|
1551
|
-
if (blocks.some((block) => block.type === "planning_exit")) return "executing";
|
|
1552
1548
|
return null;
|
|
1553
1549
|
}
|
|
1554
1550
|
function toSelectionMap(value) {
|
|
@@ -2227,8 +2223,6 @@ function extractModeFromBlocks3(blocks) {
|
|
|
2227
2223
|
if (modeBlock && isRecord4(modeBlock.content) && typeof modeBlock.content.to === "string") {
|
|
2228
2224
|
return modeBlock.content.to;
|
|
2229
2225
|
}
|
|
2230
|
-
if (blocks.some((block) => block.type === "planning_enter")) return "planning";
|
|
2231
|
-
if (blocks.some((block) => block.type === "planning_exit")) return "executing";
|
|
2232
2226
|
return null;
|
|
2233
2227
|
}
|
|
2234
2228
|
function parseJsonRecord(value) {
|
|
@@ -2830,7 +2824,19 @@ var AgentSocket = class {
|
|
|
2830
2824
|
}
|
|
2831
2825
|
}
|
|
2832
2826
|
stop(sessionId) {
|
|
2833
|
-
|
|
2827
|
+
return new Promise((resolve, reject) => {
|
|
2828
|
+
this.socket.timeout(35e3).emit(
|
|
2829
|
+
"chat:stop",
|
|
2830
|
+
{ session_id: sessionId },
|
|
2831
|
+
(err, response) => {
|
|
2832
|
+
if (err) {
|
|
2833
|
+
reject(err);
|
|
2834
|
+
return;
|
|
2835
|
+
}
|
|
2836
|
+
resolve(response ?? {});
|
|
2837
|
+
}
|
|
2838
|
+
);
|
|
2839
|
+
});
|
|
2834
2840
|
}
|
|
2835
2841
|
compact(sessionId) {
|
|
2836
2842
|
return new Promise((resolve, reject) => {
|
|
@@ -3085,4 +3091,4 @@ export {
|
|
|
3085
3091
|
bootstrapBladeClient,
|
|
3086
3092
|
getBootstrappedClient
|
|
3087
3093
|
};
|
|
3088
|
-
//# sourceMappingURL=chunk-
|
|
3094
|
+
//# sourceMappingURL=chunk-UQEXX57F.js.map
|