@blade-hq/agent-kit 1.0.10 → 1.0.12

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.
@@ -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-73SFX7A7.js.map
3405
+ //# sourceMappingURL=chunk-3UY7SD3P.js.map