@copilotkit/web-inspector 2.0.0-rc.5 → 2.0.0-rc.7
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.cjs
CHANGED
|
@@ -1218,8 +1218,7 @@ var CpkThreadInspector = class CpkThreadInspector extends PortableLitElement {
|
|
|
1218
1218
|
this.provider = null;
|
|
1219
1219
|
this.thread = null;
|
|
1220
1220
|
this.runtimeUrl = "";
|
|
1221
|
-
this.
|
|
1222
|
-
this.resolveHeaders = CpkThreadInspector.ɵdefaultResolveHeaders;
|
|
1221
|
+
this.resolveHeaders = () => ({});
|
|
1223
1222
|
this.headersGeneration = 0;
|
|
1224
1223
|
this.threadInspectionAvailable = false;
|
|
1225
1224
|
this.agentStateInput = null;
|
|
@@ -1359,9 +1358,6 @@ var CpkThreadInspector = class CpkThreadInspector extends PortableLitElement {
|
|
|
1359
1358
|
static {
|
|
1360
1359
|
this.nextDomId = 1;
|
|
1361
1360
|
}
|
|
1362
|
-
static {
|
|
1363
|
-
this.ɵdefaultResolveHeaders = () => ({});
|
|
1364
|
-
}
|
|
1365
1361
|
static {
|
|
1366
1362
|
this.COLLAPSE_THRESHOLD = 800;
|
|
1367
1363
|
}
|
|
@@ -3092,16 +3088,9 @@ var CpkThreadInspector = class CpkThreadInspector extends PortableLitElement {
|
|
|
3092
3088
|
if (!controller.signal.aborted && this.threadId === threadId) this._loadingState = false;
|
|
3093
3089
|
}
|
|
3094
3090
|
}
|
|
3095
|
-
/**
|
|
3096
|
-
* `resolveHeaders` when a host actually set it; otherwise the deprecated
|
|
3097
|
-
* `headers` fallback. Never both — see the `headers` field's doc.
|
|
3098
|
-
*/
|
|
3099
|
-
ɵresolveInspectorHeaders() {
|
|
3100
|
-
return this.resolveHeaders === CpkThreadInspector.ɵdefaultResolveHeaders ? this.headers : this.resolveHeaders();
|
|
3101
|
-
}
|
|
3102
3091
|
async fetchRuntimeMessages(threadId, signal) {
|
|
3103
3092
|
const res = await fetch(this.getThreadInspectionUrl(threadId, "messages"), {
|
|
3104
|
-
headers: { ...await this
|
|
3093
|
+
headers: { ...await this.resolveHeaders() },
|
|
3105
3094
|
signal
|
|
3106
3095
|
});
|
|
3107
3096
|
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
@@ -3109,7 +3098,7 @@ var CpkThreadInspector = class CpkThreadInspector extends PortableLitElement {
|
|
|
3109
3098
|
}
|
|
3110
3099
|
async fetchRuntimeEvents(threadId, signal) {
|
|
3111
3100
|
const res = await fetch(this.getThreadInspectionUrl(threadId, "events"), {
|
|
3112
|
-
headers: { ...await this
|
|
3101
|
+
headers: { ...await this.resolveHeaders() },
|
|
3113
3102
|
signal
|
|
3114
3103
|
});
|
|
3115
3104
|
if (res.status === 501) return { status: "not-available" };
|
|
@@ -3121,7 +3110,7 @@ var CpkThreadInspector = class CpkThreadInspector extends PortableLitElement {
|
|
|
3121
3110
|
}
|
|
3122
3111
|
async fetchRuntimeState(threadId, signal) {
|
|
3123
3112
|
const res = await fetch(this.getThreadInspectionUrl(threadId, "state"), {
|
|
3124
|
-
headers: { ...await this
|
|
3113
|
+
headers: { ...await this.resolveHeaders() },
|
|
3125
3114
|
signal
|
|
3126
3115
|
});
|
|
3127
3116
|
if (res.status === 501) return { status: "not-available" };
|