@copilotkit/web-inspector 1.57.0 → 1.57.1

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/index.umd.js CHANGED
@@ -1959,7 +1959,6 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(event.payload))}
1959
1959
  this.agentSubscriptions = /* @__PURE__ */ new Map();
1960
1960
  this.agentEvents = /* @__PURE__ */ new Map();
1961
1961
  this.agentMessages = /* @__PURE__ */ new Map();
1962
- this.agentRunThreadId = /* @__PURE__ */ new Map();
1963
1962
  this.liveMessageVersion = /* @__PURE__ */ new Map();
1964
1963
  this.agentStates = /* @__PURE__ */ new Map();
1965
1964
  this.flattenedEvents = [];
@@ -2457,12 +2456,6 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(event.payload))}
2457
2456
  this._threadsErrorByAgent.delete(agentId);
2458
2457
  this._threads = Array.from(this._threadsByAgent.values()).flat();
2459
2458
  this.requestUpdate();
2460
- },
2461
- onAgentRunStarted: ({ agent }) => {
2462
- this.subscribeToAgent(agent);
2463
- const runThreadId = agent.threadId;
2464
- if (agent.agentId && runThreadId) this.agentRunThreadId.set(agent.agentId, runThreadId);
2465
- this.requestUpdate();
2466
2459
  }
2467
2460
  };
2468
2461
  this.coreUnsubscribe = core.subscribe(this.coreSubscriber).unsubscribe;
@@ -2706,7 +2699,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(event.payload))}
2706
2699
  const messages = this.normalizeAgentMessages(agent.messages);
2707
2700
  if (messages) this.agentMessages.set(agent.agentId, messages);
2708
2701
  else this.agentMessages.delete(agent.agentId);
2709
- const runThreadId = this.agentRunThreadId.get(agent.agentId);
2702
+ const runThreadId = agent.threadId;
2710
2703
  if (runThreadId) {
2711
2704
  var _this$liveMessageVers;
2712
2705
  this.liveMessageVersion.set(runThreadId, ((_this$liveMessageVers = this.liveMessageVersion.get(runThreadId)) !== null && _this$liveMessageVers !== void 0 ? _this$liveMessageVers : 0) + 1);