@blade-hq/agent-kit 1.0.10 → 1.0.11
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-73SFX7A7.js → chunk-3UY7SD3P.js} +12 -1
- package/dist/{chunk-73SFX7A7.js.map → chunk-3UY7SD3P.js.map} +1 -1
- package/dist/{chunk-PEKXKWGO.js → chunk-4K25SSZ4.js} +3 -3
- package/dist/{chunk-LENFWWJW.js → chunk-CM3H6ZNV.js} +2 -2
- package/dist/{chunk-TKM7RF32.js → chunk-CVCQSRVP.js} +2 -2
- package/dist/{chunk-ZHETUOD4.js → chunk-DXDLZXDP.js} +4 -4
- 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 +3 -3
- package/dist/react/components/session/index.js +2 -2
- package/dist/react/components/workspace/index.js +2 -2
- package/dist/react/index.d.ts +9 -0
- package/dist/react/index.js +5 -5
- package/package.json +1 -1
- /package/dist/{chunk-PEKXKWGO.js.map → chunk-4K25SSZ4.js.map} +0 -0
- /package/dist/{chunk-LENFWWJW.js.map → chunk-CM3H6ZNV.js.map} +0 -0
- /package/dist/{chunk-TKM7RF32.js.map → chunk-CVCQSRVP.js.map} +0 -0
- /package/dist/{chunk-ZHETUOD4.js.map → chunk-DXDLZXDP.js.map} +0 -0
|
@@ -2954,6 +2954,17 @@ var AgentSocket = class {
|
|
|
2954
2954
|
this.socket.off("agent-board:file-op", handler);
|
|
2955
2955
|
};
|
|
2956
2956
|
}
|
|
2957
|
+
/**
|
|
2958
|
+
* 订阅 session:updated(智能体意图等会话属性变更)。全局 handler 只会
|
|
2959
|
+
* patch 已在 useSessionStore 列表里的会话;看板任务这类不在列表里的
|
|
2960
|
+
* 会话,由调用方通过本方法自行消费意图更新。
|
|
2961
|
+
*/
|
|
2962
|
+
onSessionUpdated(handler) {
|
|
2963
|
+
this.socket.on("session:updated", handler);
|
|
2964
|
+
return () => {
|
|
2965
|
+
this.socket.off("session:updated", handler);
|
|
2966
|
+
};
|
|
2967
|
+
}
|
|
2957
2968
|
unsubscribe() {
|
|
2958
2969
|
const previousSessionId = this.subscribedSession;
|
|
2959
2970
|
if (previousSessionId) {
|
|
@@ -3391,4 +3402,4 @@ export {
|
|
|
3391
3402
|
bootstrapBladeClient,
|
|
3392
3403
|
getBootstrappedClient
|
|
3393
3404
|
};
|
|
3394
|
-
//# sourceMappingURL=chunk-
|
|
3405
|
+
//# sourceMappingURL=chunk-3UY7SD3P.js.map
|