@blade-hq/agent-kit 0.5.24 → 0.5.26
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-DO-ltefK.d.ts → SkillStatusBar-qjGb3eKD.d.ts} +7 -4
- package/dist/{blade-client-Bhp0hHiZ.d.ts → blade-client-DA2h2P5I.d.ts} +48 -3
- package/dist/{chunk-QKSZPJQX.js → chunk-4FCXKLXT.js} +11 -5
- package/dist/chunk-4FCXKLXT.js.map +1 -0
- package/dist/{chunk-63IWZ3AO.js → chunk-6L6JFSR5.js} +2 -2
- package/dist/{chunk-7FGJNW56.js → chunk-QCDNRR74.js} +403 -326
- package/dist/chunk-QCDNRR74.js.map +1 -0
- package/dist/{chunk-DTDZFQRY.js → chunk-UNO53NPU.js} +27 -2
- package/dist/chunk-UNO53NPU.js.map +1 -0
- package/dist/{chunk-KW66QITV.js → chunk-Y7FRTBUT.js} +20 -4
- package/dist/chunk-Y7FRTBUT.js.map +1 -0
- package/dist/{chunk-7EVVRQ7G.js → chunk-ZWO6YBLA.js} +4 -3
- package/dist/chunk-ZWO6YBLA.js.map +1 -0
- package/dist/client/index.d.ts +4615 -2834
- package/dist/client/index.js +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 +4 -4
- package/dist/react/components/chat/index.js +5 -5
- package/dist/react/components/plan/index.js +4 -4
- package/dist/react/components/session/index.d.ts +1 -1
- package/dist/react/components/session/index.js +3 -3
- package/dist/react/components/workspace/index.d.ts +22 -2
- package/dist/react/components/workspace/index.js +31 -15
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/index.d.ts +24 -179
- package/dist/react/index.js +10 -7
- package/dist/react/index.js.map +1 -1
- package/dist/{session-BuaeCsMC.d.ts → session-B5v5KkVd.d.ts} +5 -3
- package/dist/sessions-BZ3y17sP.d.ts +174 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-7EVVRQ7G.js.map +0 -1
- package/dist/chunk-7FGJNW56.js.map +0 -1
- package/dist/chunk-DTDZFQRY.js.map +0 -1
- package/dist/chunk-KW66QITV.js.map +0 -1
- package/dist/chunk-QKSZPJQX.js.map +0 -1
- /package/dist/{chunk-63IWZ3AO.js.map → chunk-6L6JFSR5.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-ZWO6YBLA.js";
|
|
7
7
|
import {
|
|
8
8
|
createClientActions,
|
|
9
9
|
useCardStateStore
|
|
@@ -2797,6 +2797,19 @@ var AgentSocket = class {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
void this._ensureJoined(sessionId);
|
|
2799
2799
|
}
|
|
2800
|
+
subscribeAgentBoardProject(projectId) {
|
|
2801
|
+
this._ensureConnected();
|
|
2802
|
+
this.socket.emit("agent-board:project:subscribe", { project_id: Number(projectId) });
|
|
2803
|
+
}
|
|
2804
|
+
unsubscribeAgentBoardProject(projectId) {
|
|
2805
|
+
this.socket.emit("agent-board:project:unsubscribe", { project_id: Number(projectId) });
|
|
2806
|
+
}
|
|
2807
|
+
onAgentBoardTaskChanged(handler) {
|
|
2808
|
+
this.socket.on("agent-board:board-task:changed", handler);
|
|
2809
|
+
return () => {
|
|
2810
|
+
this.socket.off("agent-board:board-task:changed", handler);
|
|
2811
|
+
};
|
|
2812
|
+
}
|
|
2800
2813
|
unsubscribe() {
|
|
2801
2814
|
const previousSessionId = this.subscribedSession;
|
|
2802
2815
|
if (previousSessionId) {
|
|
@@ -2929,6 +2942,18 @@ var AgentSocket = class {
|
|
|
2929
2942
|
});
|
|
2930
2943
|
}
|
|
2931
2944
|
}
|
|
2945
|
+
/**
|
|
2946
|
+
* 在 agent loop 运行期间追加补充消息。
|
|
2947
|
+
* 消息会在下一轮 LLM 调用前以 user-supplement 形式注入。
|
|
2948
|
+
*/
|
|
2949
|
+
append(sessionId, message) {
|
|
2950
|
+
this._ensureConnected();
|
|
2951
|
+
this.socket.emit("chat:append", {
|
|
2952
|
+
session_id: sessionId,
|
|
2953
|
+
message
|
|
2954
|
+
});
|
|
2955
|
+
useChatStore.getState().addUserMessage(sessionId, message);
|
|
2956
|
+
}
|
|
2932
2957
|
stop(sessionId) {
|
|
2933
2958
|
return new Promise((resolve, reject) => {
|
|
2934
2959
|
this.socket.timeout(35e3).emit(
|
|
@@ -3203,4 +3228,4 @@ export {
|
|
|
3203
3228
|
bootstrapBladeClient,
|
|
3204
3229
|
getBootstrappedClient
|
|
3205
3230
|
};
|
|
3206
|
-
//# sourceMappingURL=chunk-
|
|
3231
|
+
//# sourceMappingURL=chunk-UNO53NPU.js.map
|