@copilotkitnext/core 1.53.1-next.0 → 1.53.1-next.2
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 +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +11 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.umd.js
CHANGED
|
@@ -193,6 +193,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
193
193
|
_defineProperty(this, "_runtimeConnectionStatus", CopilotKitCoreRuntimeConnectionStatus.Disconnected);
|
|
194
194
|
_defineProperty(this, "_runtimeTransport", "rest");
|
|
195
195
|
_defineProperty(this, "_audioFileTranscriptionEnabled", false);
|
|
196
|
+
_defineProperty(this, "_a2uiEnabled", false);
|
|
196
197
|
}
|
|
197
198
|
/**
|
|
198
199
|
* Get all agents as a readonly record
|
|
@@ -215,6 +216,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
215
216
|
get audioFileTranscriptionEnabled() {
|
|
216
217
|
return this._audioFileTranscriptionEnabled;
|
|
217
218
|
}
|
|
219
|
+
get a2uiEnabled() {
|
|
220
|
+
return this._a2uiEnabled;
|
|
221
|
+
}
|
|
218
222
|
/**
|
|
219
223
|
* Initialize agents from configuration
|
|
220
224
|
*/
|
|
@@ -321,6 +325,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
321
325
|
this._runtimeConnectionStatus = CopilotKitCoreRuntimeConnectionStatus.Disconnected;
|
|
322
326
|
this._runtimeVersion = void 0;
|
|
323
327
|
this._audioFileTranscriptionEnabled = false;
|
|
328
|
+
this._a2uiEnabled = false;
|
|
324
329
|
this.remoteAgents = {};
|
|
325
330
|
this._agents = this.localAgents;
|
|
326
331
|
await this.notifyRuntimeStatusChanged(CopilotKitCoreRuntimeConnectionStatus.Disconnected);
|
|
@@ -330,7 +335,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
330
335
|
this._runtimeConnectionStatus = CopilotKitCoreRuntimeConnectionStatus.Connecting;
|
|
331
336
|
await this.notifyRuntimeStatusChanged(CopilotKitCoreRuntimeConnectionStatus.Connecting);
|
|
332
337
|
try {
|
|
333
|
-
var _runtimeInfoResponse
|
|
338
|
+
var _runtimeInfoResponse$, _runtimeInfoResponse$2;
|
|
334
339
|
const runtimeInfoResponse = await this.fetchRuntimeInfo();
|
|
335
340
|
const { version, ...runtimeInfo } = runtimeInfoResponse;
|
|
336
341
|
const credentials = this.core.credentials;
|
|
@@ -352,12 +357,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
352
357
|
this._runtimeConnectionStatus = CopilotKitCoreRuntimeConnectionStatus.Connected;
|
|
353
358
|
this._runtimeVersion = version;
|
|
354
359
|
this._audioFileTranscriptionEnabled = (_runtimeInfoResponse$ = runtimeInfoResponse.audioFileTranscriptionEnabled) !== null && _runtimeInfoResponse$ !== void 0 ? _runtimeInfoResponse$ : false;
|
|
360
|
+
this._a2uiEnabled = (_runtimeInfoResponse$2 = runtimeInfoResponse.a2uiEnabled) !== null && _runtimeInfoResponse$2 !== void 0 ? _runtimeInfoResponse$2 : false;
|
|
355
361
|
await this.notifyRuntimeStatusChanged(CopilotKitCoreRuntimeConnectionStatus.Connected);
|
|
356
362
|
await this.notifyAgentsChanged();
|
|
357
363
|
} catch (error) {
|
|
358
364
|
this._runtimeConnectionStatus = CopilotKitCoreRuntimeConnectionStatus.Error;
|
|
359
365
|
this._runtimeVersion = void 0;
|
|
360
366
|
this._audioFileTranscriptionEnabled = false;
|
|
367
|
+
this._a2uiEnabled = false;
|
|
361
368
|
this.remoteAgents = {};
|
|
362
369
|
this._agents = this.localAgents;
|
|
363
370
|
await this.notifyRuntimeStatusChanged(CopilotKitCoreRuntimeConnectionStatus.Error);
|
|
@@ -1510,6 +1517,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
1510
1517
|
get audioFileTranscriptionEnabled() {
|
|
1511
1518
|
return this.agentRegistry.audioFileTranscriptionEnabled;
|
|
1512
1519
|
}
|
|
1520
|
+
get a2uiEnabled() {
|
|
1521
|
+
return this.agentRegistry.a2uiEnabled;
|
|
1522
|
+
}
|
|
1513
1523
|
/**
|
|
1514
1524
|
* Configuration updates
|
|
1515
1525
|
*/
|