@copilotkitnext/core 1.53.1-next.1 → 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 CHANGED
@@ -148,6 +148,7 @@ var AgentRegistry = class {
148
148
  _runtimeConnectionStatus = CopilotKitCoreRuntimeConnectionStatus.Disconnected;
149
149
  _runtimeTransport = "rest";
150
150
  _audioFileTranscriptionEnabled = false;
151
+ _a2uiEnabled = false;
151
152
  constructor(core) {
152
153
  this.core = core;
153
154
  }
@@ -172,6 +173,9 @@ var AgentRegistry = class {
172
173
  get audioFileTranscriptionEnabled() {
173
174
  return this._audioFileTranscriptionEnabled;
174
175
  }
176
+ get a2uiEnabled() {
177
+ return this._a2uiEnabled;
178
+ }
175
179
  /**
176
180
  * Initialize agents from configuration
177
181
  */
@@ -278,6 +282,7 @@ var AgentRegistry = class {
278
282
  this._runtimeConnectionStatus = CopilotKitCoreRuntimeConnectionStatus.Disconnected;
279
283
  this._runtimeVersion = void 0;
280
284
  this._audioFileTranscriptionEnabled = false;
285
+ this._a2uiEnabled = false;
281
286
  this.remoteAgents = {};
282
287
  this._agents = this.localAgents;
283
288
  await this.notifyRuntimeStatusChanged(CopilotKitCoreRuntimeConnectionStatus.Disconnected);
@@ -308,12 +313,14 @@ var AgentRegistry = class {
308
313
  this._runtimeConnectionStatus = CopilotKitCoreRuntimeConnectionStatus.Connected;
309
314
  this._runtimeVersion = version;
310
315
  this._audioFileTranscriptionEnabled = runtimeInfoResponse.audioFileTranscriptionEnabled ?? false;
316
+ this._a2uiEnabled = runtimeInfoResponse.a2uiEnabled ?? false;
311
317
  await this.notifyRuntimeStatusChanged(CopilotKitCoreRuntimeConnectionStatus.Connected);
312
318
  await this.notifyAgentsChanged();
313
319
  } catch (error) {
314
320
  this._runtimeConnectionStatus = CopilotKitCoreRuntimeConnectionStatus.Error;
315
321
  this._runtimeVersion = void 0;
316
322
  this._audioFileTranscriptionEnabled = false;
323
+ this._a2uiEnabled = false;
317
324
  this.remoteAgents = {};
318
325
  this._agents = this.localAgents;
319
326
  await this.notifyRuntimeStatusChanged(CopilotKitCoreRuntimeConnectionStatus.Error);
@@ -1412,6 +1419,9 @@ var CopilotKitCore = class {
1412
1419
  get audioFileTranscriptionEnabled() {
1413
1420
  return this.agentRegistry.audioFileTranscriptionEnabled;
1414
1421
  }
1422
+ get a2uiEnabled() {
1423
+ return this.agentRegistry.a2uiEnabled;
1424
+ }
1415
1425
  /**
1416
1426
  * Configuration updates
1417
1427
  */