@copilotkit/web-inspector 2.0.0-rc.6 → 2.0.0-rc.8
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 +4 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -15
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -15
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -15
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +5 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -4324,7 +4324,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
|
|
|
4324
4324
|
|
|
4325
4325
|
//#endregion
|
|
4326
4326
|
//#region package.json
|
|
4327
|
-
var version = "2.0.0-rc.
|
|
4327
|
+
var version = "2.0.0-rc.8";
|
|
4328
4328
|
|
|
4329
4329
|
//#endregion
|
|
4330
4330
|
//#region src/lib/telemetry.ts
|
|
@@ -6089,8 +6089,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
|
|
|
6089
6089
|
this.provider = null;
|
|
6090
6090
|
this.thread = null;
|
|
6091
6091
|
this.runtimeUrl = "";
|
|
6092
|
-
this.
|
|
6093
|
-
this.resolveHeaders = CpkThreadInspector.ɵdefaultResolveHeaders;
|
|
6092
|
+
this.resolveHeaders = () => ({});
|
|
6094
6093
|
this.headersGeneration = 0;
|
|
6095
6094
|
this.threadInspectionAvailable = false;
|
|
6096
6095
|
this.agentStateInput = null;
|
|
@@ -6532,16 +6531,9 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
|
|
|
6532
6531
|
if (!controller.signal.aborted && this.threadId === threadId) this._loadingState = false;
|
|
6533
6532
|
}
|
|
6534
6533
|
}
|
|
6535
|
-
/**
|
|
6536
|
-
* `resolveHeaders` when a host actually set it; otherwise the deprecated
|
|
6537
|
-
* `headers` fallback. Never both — see the `headers` field's doc.
|
|
6538
|
-
*/
|
|
6539
|
-
ɵresolveInspectorHeaders() {
|
|
6540
|
-
return this.resolveHeaders === CpkThreadInspector.ɵdefaultResolveHeaders ? this.headers : this.resolveHeaders();
|
|
6541
|
-
}
|
|
6542
6534
|
async fetchRuntimeMessages(threadId, signal) {
|
|
6543
6535
|
const res = await fetch(this.getThreadInspectionUrl(threadId, "messages"), {
|
|
6544
|
-
headers: { ...await this
|
|
6536
|
+
headers: { ...await this.resolveHeaders() },
|
|
6545
6537
|
signal
|
|
6546
6538
|
});
|
|
6547
6539
|
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
@@ -6549,7 +6541,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
|
|
|
6549
6541
|
}
|
|
6550
6542
|
async fetchRuntimeEvents(threadId, signal) {
|
|
6551
6543
|
const res = await fetch(this.getThreadInspectionUrl(threadId, "events"), {
|
|
6552
|
-
headers: { ...await this
|
|
6544
|
+
headers: { ...await this.resolveHeaders() },
|
|
6553
6545
|
signal
|
|
6554
6546
|
});
|
|
6555
6547
|
if (res.status === 501) return { status: "not-available" };
|
|
@@ -6562,7 +6554,7 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
|
|
|
6562
6554
|
async fetchRuntimeState(threadId, signal) {
|
|
6563
6555
|
var _data$state;
|
|
6564
6556
|
const res = await fetch(this.getThreadInspectionUrl(threadId, "state"), {
|
|
6565
|
-
headers: { ...await this
|
|
6557
|
+
headers: { ...await this.resolveHeaders() },
|
|
6566
6558
|
signal
|
|
6567
6559
|
});
|
|
6568
6560
|
if (res.status === 501) return { status: "not-available" };
|
|
@@ -7943,7 +7935,6 @@ ${(0, lit_directives_unsafe_html_js.unsafeHTML)(highlightedJson(parsed))}</pre
|
|
|
7943
7935
|
_activatedTabs: { state: true }
|
|
7944
7936
|
};
|
|
7945
7937
|
CpkThreadInspector.nextDomId = 1;
|
|
7946
|
-
CpkThreadInspector.ɵdefaultResolveHeaders = () => ({});
|
|
7947
7938
|
CpkThreadInspector.COLLAPSE_THRESHOLD = 800;
|
|
7948
7939
|
CpkThreadInspector.MESSAGE_REFRESH_INTERVAL_MS = 1e3;
|
|
7949
7940
|
CpkThreadInspector.TAB_LIST = [
|