@copilotkit/web-inspector 1.70.2 → 1.70.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/index.umd.js CHANGED
@@ -2251,7 +2251,7 @@ Implement the smallest complete integration: wire every feature-required client
2251
2251
  {
2252
2252
  id: "memory",
2253
2253
  label: "Learning",
2254
- enabled: intelligenceConnected && input.memoriesOn,
2254
+ enabled: intelligenceConnected && input.learningOn,
2255
2255
  docsUrl: SERVICE_DOCS_URL.memory
2256
2256
  },
2257
2257
  {
@@ -2381,7 +2381,7 @@ Implement the smallest complete integration: wire every feature-required client
2381
2381
 
2382
2382
  //#endregion
2383
2383
  //#region package.json
2384
- var version = "1.70.2";
2384
+ var version = "1.70.3";
2385
2385
 
2386
2386
  //#endregion
2387
2387
  //#region src/lib/telemetry.ts
@@ -9393,7 +9393,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
9393
9393
  maybeShowDisclosure();
9394
9394
  }
9395
9395
  this.flushPendingWhatsNewTelemetry();
9396
- if (this.isOpen && this.selectedMenu === "memories") {
9396
+ if (this.isLearningStatusVisible()) {
9397
9397
  this.clearLearningSnapshot();
9398
9398
  this.refreshLearningSnapshot({ preserve: false });
9399
9399
  }
@@ -9422,7 +9422,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
9422
9422
  if (identity !== this.learningProjectIdentity) {
9423
9423
  this.learningProjectIdentity = identity;
9424
9424
  this.clearLearningSnapshot();
9425
- if (this.isOpen && this.selectedMenu === "memories") this.refreshLearningSnapshot({ preserve: false });
9425
+ if (this.isLearningStatusVisible()) this.refreshLearningSnapshot({ preserve: false });
9426
9426
  }
9427
9427
  this.requestUpdate();
9428
9428
  } } : {},
@@ -9589,6 +9589,10 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
9589
9589
  if (this.selectedContext !== "all-agents" && ((_this$core18 = this.core) === null || _this$core18 === void 0 ? void 0 : _this$core18.agents[this.selectedContext])) return this.selectedContext;
9590
9590
  return null;
9591
9591
  }
9592
+ /** Whether a visible surface needs the current Learning connection status. */
9593
+ isLearningStatusVisible() {
9594
+ return this.launcherHudOpen || this.isOpen && (this.selectedMenu === "home" || this.selectedMenu === "memories");
9595
+ }
9592
9596
  isLearningSetupActive() {
9593
9597
  var _this$core19;
9594
9598
  const runtimeUrl = (_this$core19 = this.core) === null || _this$core19 === void 0 ? void 0 : _this$core19.runtimeUrl;
@@ -9723,7 +9727,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
9723
9727
  runtimeUrl: this.core.runtimeUrl,
9724
9728
  agentId: learningAgentId
9725
9729
  });
9726
- if (previousLearningAgentId !== learningAgentId && this.isOpen && this.selectedMenu === "memories") {
9730
+ if (previousLearningAgentId !== learningAgentId && this.isLearningStatusVisible()) {
9727
9731
  this.clearLearningSnapshot();
9728
9732
  this.refreshLearningSnapshot({ preserve: false });
9729
9733
  }
@@ -10587,6 +10591,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
10587
10591
  this.resolveLauncherHudSide();
10588
10592
  this.launcherHudIntro = true;
10589
10593
  this.launcherHudOpen = true;
10594
+ this.refreshLearningSnapshot({ preserve: true });
10590
10595
  this.requestUpdate();
10591
10596
  this.launcherHudIntroEndTimer = setTimeout(() => {
10592
10597
  this.launcherHudIntroEndTimer = null;
@@ -10634,6 +10639,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
10634
10639
  }
10635
10640
  if (this.launcherHudOpen) return;
10636
10641
  this.launcherHudOpen = true;
10642
+ this.refreshLearningSnapshot({ preserve: true });
10637
10643
  this.requestUpdate();
10638
10644
  }
10639
10645
  closeLauncherHud() {
@@ -11018,7 +11024,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
11018
11024
  `;
11019
11025
  }
11020
11026
  getHomeModel() {
11021
- var _this$_core6, _this$_core7, _this$_core8, _this$_core9, _this$_core10, _this$_core11, _this$_core12, _this$announcementPre2, _this$announcementMar, _this$announcementHtm;
11027
+ var _this$_core6, _this$_core7, _this$learningSnapsho7, _this$_core8, _this$_core9, _this$_core10, _this$_core11, _this$_core12, _this$announcementPre2, _this$announcementMar, _this$announcementHtm;
11022
11028
  const lastRuntimeEvent = this.flattenedEvents[0];
11023
11029
  return buildHomeModel({
11024
11030
  intelligenceConnected: Boolean((_this$_core6 = this._core) === null || _this$_core6 === void 0 ? void 0 : _this$_core6.intelligence),
@@ -11032,7 +11038,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
11032
11038
  type: lastRuntimeEvent.type,
11033
11039
  timestamp: lastRuntimeEvent.timestamp
11034
11040
  } : void 0,
11035
- memoriesOn: this._memorySubscribed && !this._memoriesLoading && this._memoriesAvailable,
11041
+ learningOn: this.learningSupported && this.learningError === null && ((_this$learningSnapsho7 = this.learningSnapshot) === null || _this$learningSnapsho7 === void 0 ? void 0 : _this$learningSnapsho7.configuration.state) === "configured",
11036
11042
  a2uiOn: ((_this$_core8 = this._core) === null || _this$_core8 === void 0 ? void 0 : _this$_core8.a2uiEnabled) === true,
11037
11043
  openGenUiOn: ((_this$_core9 = this._core) === null || _this$_core9 === void 0 ? void 0 : _this$_core9.openGenerativeUIEnabled) === true,
11038
11044
  suggestionsOn: ((_this$_core10 = this._core) === null || _this$_core10 === void 0 ? void 0 : _this$_core10.suggestions) === true,
@@ -12639,7 +12645,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
12639
12645
  }
12640
12646
  this.ensureAnnouncementLoading();
12641
12647
  this.isOpen = true;
12642
- if (this.selectedMenu === "memories") this.refreshLearningSnapshot({ preserve: this.learningSnapshot !== null });
12648
+ if (this.isLearningStatusVisible()) this.refreshLearningSnapshot({ preserve: this.learningSnapshot !== null });
12643
12649
  this.cancelGestureTail();
12644
12650
  this.persistState();
12645
12651
  this.trackOpened(source, hadUnseenAnnouncement, firstOpen, activeSignalAtOpen);
@@ -15448,7 +15454,10 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
15448
15454
  this.cancelLearningPoll();
15449
15455
  this.cancelLearningRequest();
15450
15456
  }
15451
- if (key === "home" && previousMenu !== "home") this.homeViewedThisOpen = false;
15457
+ if (key === "home" && previousMenu !== "home") {
15458
+ this.refreshLearningSnapshot({ preserve: true });
15459
+ this.homeViewedThisOpen = false;
15460
+ }
15452
15461
  if (key === "ag-ui-events" || key === "agents") {
15453
15462
  if (!(this.pendingScrollToEventId !== null || this.pendingScrollToToolCallId !== null)) requestAnimationFrame(() => {
15454
15463
  const scroller = this.activeRoot.querySelector("#cpk-main-scroll");
@@ -15480,7 +15489,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
15480
15489
  this.expandedRows.clear();
15481
15490
  this.autoSelectLatestThread();
15482
15491
  if (this.selectedMenu === "playground") this.startPlaygroundSession(false);
15483
- else if (this.selectedMenu === "memories") {
15492
+ else if (this.isLearningStatusVisible()) {
15484
15493
  this.clearLearningSnapshot();
15485
15494
  this.refreshLearningSnapshot({ preserve: false });
15486
15495
  }
@@ -18346,8 +18355,8 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
18346
18355
 
18347
18356
  .cpk-launcher-hud__toggle[data-enabled="true"]
18348
18357
  .cpk-launcher-hud__toggle-track {
18349
- border-color: var(--hud-accent);
18350
- background: color-mix(in srgb, var(--hud-accent) 76%, transparent);
18358
+ border-color: #087653;
18359
+ background: #087653;
18351
18360
  }
18352
18361
 
18353
18362
  .cpk-launcher-hud__toggle[data-enabled="true"]
@@ -18370,8 +18379,8 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
18370
18379
  .cpk-launcher-hud[data-color-scheme="light"]
18371
18380
  .cpk-launcher-hud__toggle[data-enabled="true"]
18372
18381
  .cpk-launcher-hud__toggle-track {
18373
- border-color: #6757b0;
18374
- background: #7563c7;
18382
+ border-color: #087653;
18383
+ background: #087653;
18375
18384
  }
18376
18385
 
18377
18386
  .cpk-launcher-hud[data-color-scheme="light"]