@copilotkit/core 1.55.3-canary.1776260990 → 1.56.0
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 +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +10 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +16 -4
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +15 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -637,6 +637,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
637
637
|
this.runtimeMode = (_config$runtimeMode = config.runtimeMode) !== null && _config$runtimeMode !== void 0 ? _config$runtimeMode : _copilotkit_shared.RUNTIME_MODE_SSE;
|
|
638
638
|
this.intelligence = config.intelligence;
|
|
639
639
|
this._capabilities = config.capabilities;
|
|
640
|
+
if (config.debug) this.debug = config.debug;
|
|
640
641
|
if (this.transport === "single") this.singleEndpointUrl = this.runtimeUrl;
|
|
641
642
|
}
|
|
642
643
|
get capabilities() {
|
|
@@ -752,7 +753,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
752
753
|
transport: this.transport,
|
|
753
754
|
runtimeMode: this.runtimeMode,
|
|
754
755
|
intelligence: this.intelligence,
|
|
755
|
-
capabilities: this._capabilities
|
|
756
|
+
capabilities: this._capabilities,
|
|
757
|
+
debug: this.debug
|
|
756
758
|
});
|
|
757
759
|
cloned.threadId = this.threadId;
|
|
758
760
|
cloned.setState(this.state);
|
|
@@ -1082,6 +1084,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1082
1084
|
const runtimeInfoResponse = await this.fetchRuntimeInfo();
|
|
1083
1085
|
const { version, ...runtimeInfo } = runtimeInfoResponse;
|
|
1084
1086
|
const credentials = this.core.credentials;
|
|
1087
|
+
const rawDebug = this.core.debug;
|
|
1085
1088
|
this.remoteAgents = Object.fromEntries(Object.entries(runtimeInfo.agents).map(([id, { description, capabilities }]) => {
|
|
1086
1089
|
var _runtimeInfoResponse$;
|
|
1087
1090
|
const agent = new ProxiedCopilotRuntimeAgent({
|
|
@@ -1092,7 +1095,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1092
1095
|
credentials,
|
|
1093
1096
|
runtimeMode: (_runtimeInfoResponse$ = runtimeInfoResponse.mode) !== null && _runtimeInfoResponse$ !== void 0 ? _runtimeInfoResponse$ : _copilotkit_shared.RUNTIME_MODE_SSE,
|
|
1094
1097
|
intelligence: runtimeInfoResponse.intelligence,
|
|
1095
|
-
capabilities
|
|
1098
|
+
capabilities,
|
|
1099
|
+
debug: rawDebug ? (0, _copilotkit_shared.resolveDebugConfig)(rawDebug) : void 0
|
|
1096
1100
|
});
|
|
1097
1101
|
this.applyHeadersToAgent(agent);
|
|
1098
1102
|
return [id, agent];
|
|
@@ -2476,11 +2480,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2476
2480
|
return CopilotKitCoreRuntimeConnectionStatus;
|
|
2477
2481
|
}({});
|
|
2478
2482
|
var CopilotKitCore = class {
|
|
2479
|
-
constructor({ runtimeUrl, runtimeTransport = "auto", headers = {}, credentials, properties = {}, agents__unsafe_dev_only = {}, tools = [], suggestionsConfig = [] }) {
|
|
2483
|
+
constructor({ runtimeUrl, runtimeTransport = "auto", headers = {}, credentials, properties = {}, agents__unsafe_dev_only = {}, tools = [], suggestionsConfig = [], debug }) {
|
|
2480
2484
|
_defineProperty(this, "_headers", void 0);
|
|
2481
2485
|
_defineProperty(this, "_credentials", void 0);
|
|
2482
2486
|
_defineProperty(this, "_properties", void 0);
|
|
2483
2487
|
_defineProperty(this, "_defaultThrottleMs", void 0);
|
|
2488
|
+
_defineProperty(this, "_debug", void 0);
|
|
2484
2489
|
_defineProperty(this, "subscribers", /* @__PURE__ */ new Set());
|
|
2485
2490
|
_defineProperty(this, "agentRegistry", void 0);
|
|
2486
2491
|
_defineProperty(this, "contextStore", void 0);
|
|
@@ -2490,6 +2495,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2490
2495
|
this._headers = headers;
|
|
2491
2496
|
this._credentials = credentials;
|
|
2492
2497
|
this._properties = properties;
|
|
2498
|
+
this._debug = debug;
|
|
2493
2499
|
this.agentRegistry = new AgentRegistry(this);
|
|
2494
2500
|
this.contextStore = new ContextStore(this);
|
|
2495
2501
|
this.suggestionEngine = new SuggestionEngine(this);
|
|
@@ -2585,6 +2591,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2585
2591
|
}
|
|
2586
2592
|
this._defaultThrottleMs = value;
|
|
2587
2593
|
}
|
|
2594
|
+
get debug() {
|
|
2595
|
+
return this._debug;
|
|
2596
|
+
}
|
|
2597
|
+
setDebug(debug) {
|
|
2598
|
+
this._debug = debug;
|
|
2599
|
+
}
|
|
2588
2600
|
get runtimeConnectionStatus() {
|
|
2589
2601
|
return this.agentRegistry.runtimeConnectionStatus;
|
|
2590
2602
|
}
|