@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.cjs +20 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +20 -11
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +23 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/home-briefing.cjs +1 -1
- package/dist/lib/home-briefing.cjs.map +1 -1
- package/dist/lib/home-briefing.mjs +1 -1
- package/dist/lib/home-briefing.mjs.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -6477,7 +6477,7 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
6477
6477
|
require_telemetry.maybeShowDisclosure();
|
|
6478
6478
|
}
|
|
6479
6479
|
this.flushPendingWhatsNewTelemetry();
|
|
6480
|
-
if (this.
|
|
6480
|
+
if (this.isLearningStatusVisible()) {
|
|
6481
6481
|
this.clearLearningSnapshot();
|
|
6482
6482
|
this.refreshLearningSnapshot({ preserve: false });
|
|
6483
6483
|
}
|
|
@@ -6505,7 +6505,7 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
6505
6505
|
if (identity !== this.learningProjectIdentity) {
|
|
6506
6506
|
this.learningProjectIdentity = identity;
|
|
6507
6507
|
this.clearLearningSnapshot();
|
|
6508
|
-
if (this.
|
|
6508
|
+
if (this.isLearningStatusVisible()) this.refreshLearningSnapshot({ preserve: false });
|
|
6509
6509
|
}
|
|
6510
6510
|
this.requestUpdate();
|
|
6511
6511
|
} } : {},
|
|
@@ -6670,6 +6670,10 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
6670
6670
|
if (this.selectedContext !== "all-agents" && this.core?.agents[this.selectedContext]) return this.selectedContext;
|
|
6671
6671
|
return null;
|
|
6672
6672
|
}
|
|
6673
|
+
/** Whether a visible surface needs the current Learning connection status. */
|
|
6674
|
+
isLearningStatusVisible() {
|
|
6675
|
+
return this.launcherHudOpen || this.isOpen && (this.selectedMenu === "home" || this.selectedMenu === "memories");
|
|
6676
|
+
}
|
|
6673
6677
|
isLearningSetupActive() {
|
|
6674
6678
|
const runtimeUrl = this.core?.runtimeUrl;
|
|
6675
6679
|
if (!runtimeUrl) return false;
|
|
@@ -6799,7 +6803,7 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
6799
6803
|
runtimeUrl: this.core.runtimeUrl,
|
|
6800
6804
|
agentId: learningAgentId
|
|
6801
6805
|
});
|
|
6802
|
-
if (previousLearningAgentId !== learningAgentId && this.
|
|
6806
|
+
if (previousLearningAgentId !== learningAgentId && this.isLearningStatusVisible()) {
|
|
6803
6807
|
this.clearLearningSnapshot();
|
|
6804
6808
|
this.refreshLearningSnapshot({ preserve: false });
|
|
6805
6809
|
}
|
|
@@ -8883,8 +8887,8 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
8883
8887
|
|
|
8884
8888
|
.cpk-launcher-hud__toggle[data-enabled="true"]
|
|
8885
8889
|
.cpk-launcher-hud__toggle-track {
|
|
8886
|
-
border-color:
|
|
8887
|
-
background:
|
|
8890
|
+
border-color: #087653;
|
|
8891
|
+
background: #087653;
|
|
8888
8892
|
}
|
|
8889
8893
|
|
|
8890
8894
|
.cpk-launcher-hud__toggle[data-enabled="true"]
|
|
@@ -8907,8 +8911,8 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
8907
8911
|
.cpk-launcher-hud[data-color-scheme="light"]
|
|
8908
8912
|
.cpk-launcher-hud__toggle[data-enabled="true"]
|
|
8909
8913
|
.cpk-launcher-hud__toggle-track {
|
|
8910
|
-
border-color: #
|
|
8911
|
-
background: #
|
|
8914
|
+
border-color: #087653;
|
|
8915
|
+
background: #087653;
|
|
8912
8916
|
}
|
|
8913
8917
|
|
|
8914
8918
|
.cpk-launcher-hud[data-color-scheme="light"]
|
|
@@ -9811,6 +9815,7 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
9811
9815
|
this.resolveLauncherHudSide();
|
|
9812
9816
|
this.launcherHudIntro = true;
|
|
9813
9817
|
this.launcherHudOpen = true;
|
|
9818
|
+
this.refreshLearningSnapshot({ preserve: true });
|
|
9814
9819
|
this.requestUpdate();
|
|
9815
9820
|
this.launcherHudIntroEndTimer = setTimeout(() => {
|
|
9816
9821
|
this.launcherHudIntroEndTimer = null;
|
|
@@ -9858,6 +9863,7 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
9858
9863
|
}
|
|
9859
9864
|
if (this.launcherHudOpen) return;
|
|
9860
9865
|
this.launcherHudOpen = true;
|
|
9866
|
+
this.refreshLearningSnapshot({ preserve: true });
|
|
9861
9867
|
this.requestUpdate();
|
|
9862
9868
|
}
|
|
9863
9869
|
closeLauncherHud() {
|
|
@@ -10252,7 +10258,7 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
10252
10258
|
type: lastRuntimeEvent.type,
|
|
10253
10259
|
timestamp: lastRuntimeEvent.timestamp
|
|
10254
10260
|
} : void 0,
|
|
10255
|
-
|
|
10261
|
+
learningOn: this.learningSupported && this.learningError === null && this.learningSnapshot?.configuration.state === "configured",
|
|
10256
10262
|
a2uiOn: this._core?.a2uiEnabled === true,
|
|
10257
10263
|
openGenUiOn: this._core?.openGenerativeUIEnabled === true,
|
|
10258
10264
|
suggestionsOn: this._core?.suggestions === true,
|
|
@@ -11830,7 +11836,7 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
11830
11836
|
}
|
|
11831
11837
|
this.ensureAnnouncementLoading();
|
|
11832
11838
|
this.isOpen = true;
|
|
11833
|
-
if (this.
|
|
11839
|
+
if (this.isLearningStatusVisible()) this.refreshLearningSnapshot({ preserve: this.learningSnapshot !== null });
|
|
11834
11840
|
this.cancelGestureTail();
|
|
11835
11841
|
this.persistState();
|
|
11836
11842
|
this.trackOpened(source, hadUnseenAnnouncement, firstOpen, activeSignalAtOpen);
|
|
@@ -14575,7 +14581,10 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
14575
14581
|
this.cancelLearningPoll();
|
|
14576
14582
|
this.cancelLearningRequest();
|
|
14577
14583
|
}
|
|
14578
|
-
if (key === "home" && previousMenu !== "home")
|
|
14584
|
+
if (key === "home" && previousMenu !== "home") {
|
|
14585
|
+
this.refreshLearningSnapshot({ preserve: true });
|
|
14586
|
+
this.homeViewedThisOpen = false;
|
|
14587
|
+
}
|
|
14579
14588
|
if (key === "ag-ui-events" || key === "agents") {
|
|
14580
14589
|
if (!(this.pendingScrollToEventId !== null || this.pendingScrollToToolCallId !== null)) requestAnimationFrame(() => {
|
|
14581
14590
|
const scroller = this.activeRoot.querySelector("#cpk-main-scroll");
|
|
@@ -14607,7 +14616,7 @@ var WebInspectorElement = class WebInspectorElement extends lit.LitElement {
|
|
|
14607
14616
|
this.expandedRows.clear();
|
|
14608
14617
|
this.autoSelectLatestThread();
|
|
14609
14618
|
if (this.selectedMenu === "playground") this.startPlaygroundSession(false);
|
|
14610
|
-
else if (this.
|
|
14619
|
+
else if (this.isLearningStatusVisible()) {
|
|
14611
14620
|
this.clearLearningSnapshot();
|
|
14612
14621
|
this.refreshLearningSnapshot({ preserve: false });
|
|
14613
14622
|
}
|