@yourgpt/copilot-sdk 2.1.5-alpha.7 → 2.1.6

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk5EGBIQYS_cjs = require('../chunk-5EGBIQYS.cjs');
4
- var chunkNPBOKT63_cjs = require('../chunk-NPBOKT63.cjs');
4
+ var chunk6ZTITCKU_cjs = require('../chunk-6ZTITCKU.cjs');
5
5
  require('../chunk-7GWEW2DU.cjs');
6
6
  require('../chunk-JGPDQDY4.cjs');
7
7
  require('../chunk-BJYA5NDL.cjs');
@@ -530,7 +530,7 @@ function useGenerativeUI(config = {}) {
530
530
  const toolName = config.name ?? "render_ui";
531
531
  const configRef = React__namespace.useRef(config);
532
532
  configRef.current = config;
533
- chunkNPBOKT63_cjs.useTool({
533
+ chunk6ZTITCKU_cjs.useTool({
534
534
  name: toolName,
535
535
  description: "Renders a rich UI component inline in the chat. Handled automatically by the SDK.",
536
536
  inputSchema: RENDER_UI_SCHEMA,
@@ -1,5 +1,5 @@
1
1
  import { cn, DotsLoader } from '../chunk-TXQ37MAO.js';
2
- import { useTool } from '../chunk-UZHGMDOK.js';
2
+ import { useTool } from '../chunk-2JNH3T6H.js';
3
3
  import '../chunk-J5D3AZF6.js';
4
4
  import '../chunk-EWVQWTNV.js';
5
5
  import '../chunk-VNLLW3ZI.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkM66XAHSW_cjs = require('../chunk-M66XAHSW.cjs');
4
- var chunkNPBOKT63_cjs = require('../chunk-NPBOKT63.cjs');
3
+ var chunkHIVSXIER_cjs = require('../chunk-HIVSXIER.cjs');
4
+ var chunk6ZTITCKU_cjs = require('../chunk-6ZTITCKU.cjs');
5
5
  var chunk7GWEW2DU_cjs = require('../chunk-7GWEW2DU.cjs');
6
6
  require('../chunk-JGPDQDY4.cjs');
7
7
  require('../chunk-BJYA5NDL.cjs');
@@ -22,243 +22,243 @@ require('../chunk-JEQ2X3Z6.cjs');
22
22
 
23
23
  Object.defineProperty(exports, "ReactChat", {
24
24
  enumerable: true,
25
- get: function () { return chunkM66XAHSW_cjs.ReactChat; }
25
+ get: function () { return chunkHIVSXIER_cjs.ReactChat; }
26
26
  });
27
27
  Object.defineProperty(exports, "ReactThreadManager", {
28
28
  enumerable: true,
29
- get: function () { return chunkM66XAHSW_cjs.ReactThreadManager; }
29
+ get: function () { return chunkHIVSXIER_cjs.ReactThreadManager; }
30
30
  });
31
31
  Object.defineProperty(exports, "ReactThreadManagerState", {
32
32
  enumerable: true,
33
- get: function () { return chunkM66XAHSW_cjs.ReactThreadManagerState; }
33
+ get: function () { return chunkHIVSXIER_cjs.ReactThreadManagerState; }
34
34
  });
35
35
  Object.defineProperty(exports, "createMessageIntentHandler", {
36
36
  enumerable: true,
37
- get: function () { return chunkM66XAHSW_cjs.createMessageIntentHandler; }
37
+ get: function () { return chunkHIVSXIER_cjs.createMessageIntentHandler; }
38
38
  });
39
39
  Object.defineProperty(exports, "createPermissionStorage", {
40
40
  enumerable: true,
41
- get: function () { return chunkM66XAHSW_cjs.createPermissionStorage; }
41
+ get: function () { return chunkHIVSXIER_cjs.createPermissionStorage; }
42
42
  });
43
43
  Object.defineProperty(exports, "createReactChat", {
44
44
  enumerable: true,
45
- get: function () { return chunkM66XAHSW_cjs.createReactChat; }
45
+ get: function () { return chunkHIVSXIER_cjs.createReactChat; }
46
46
  });
47
47
  Object.defineProperty(exports, "createReactThreadManager", {
48
48
  enumerable: true,
49
- get: function () { return chunkM66XAHSW_cjs.createReactThreadManager; }
49
+ get: function () { return chunkHIVSXIER_cjs.createReactThreadManager; }
50
50
  });
51
51
  Object.defineProperty(exports, "createReactThreadManagerState", {
52
52
  enumerable: true,
53
- get: function () { return chunkM66XAHSW_cjs.createReactThreadManagerState; }
53
+ get: function () { return chunkHIVSXIER_cjs.createReactThreadManagerState; }
54
54
  });
55
55
  Object.defineProperty(exports, "createSessionPermissionCache", {
56
56
  enumerable: true,
57
- get: function () { return chunkM66XAHSW_cjs.createSessionPermissionCache; }
57
+ get: function () { return chunkHIVSXIER_cjs.createSessionPermissionCache; }
58
58
  });
59
59
  Object.defineProperty(exports, "createToolIntentHandler", {
60
60
  enumerable: true,
61
- get: function () { return chunkM66XAHSW_cjs.createToolIntentHandler; }
61
+ get: function () { return chunkHIVSXIER_cjs.createToolIntentHandler; }
62
62
  });
63
63
  Object.defineProperty(exports, "defineSkill", {
64
64
  enumerable: true,
65
- get: function () { return chunkM66XAHSW_cjs.defineSkill; }
65
+ get: function () { return chunkHIVSXIER_cjs.defineSkill; }
66
66
  });
67
67
  Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
68
68
  enumerable: true,
69
- get: function () { return chunkM66XAHSW_cjs.formatKnowledgeResultsForAI; }
69
+ get: function () { return chunkHIVSXIER_cjs.formatKnowledgeResultsForAI; }
70
70
  });
71
71
  Object.defineProperty(exports, "searchKnowledgeBase", {
72
72
  enumerable: true,
73
- get: function () { return chunkM66XAHSW_cjs.searchKnowledgeBase; }
73
+ get: function () { return chunkHIVSXIER_cjs.searchKnowledgeBase; }
74
74
  });
75
75
  Object.defineProperty(exports, "useAIAction", {
76
76
  enumerable: true,
77
- get: function () { return chunkM66XAHSW_cjs.useAIAction; }
77
+ get: function () { return chunkHIVSXIER_cjs.useAIAction; }
78
78
  });
79
79
  Object.defineProperty(exports, "useAIActions", {
80
80
  enumerable: true,
81
- get: function () { return chunkM66XAHSW_cjs.useAIActions; }
81
+ get: function () { return chunkHIVSXIER_cjs.useAIActions; }
82
82
  });
83
83
  Object.defineProperty(exports, "useAITools", {
84
84
  enumerable: true,
85
- get: function () { return chunkM66XAHSW_cjs.useAITools; }
85
+ get: function () { return chunkHIVSXIER_cjs.useAITools; }
86
86
  });
87
87
  Object.defineProperty(exports, "useAgent", {
88
88
  enumerable: true,
89
- get: function () { return chunkM66XAHSW_cjs.useAgent; }
89
+ get: function () { return chunkHIVSXIER_cjs.useAgent; }
90
90
  });
91
91
  Object.defineProperty(exports, "useCapabilities", {
92
92
  enumerable: true,
93
- get: function () { return chunkM66XAHSW_cjs.useCapabilities; }
93
+ get: function () { return chunkHIVSXIER_cjs.useCapabilities; }
94
94
  });
95
95
  Object.defineProperty(exports, "useChat", {
96
96
  enumerable: true,
97
- get: function () { return chunkM66XAHSW_cjs.useChat; }
97
+ get: function () { return chunkHIVSXIER_cjs.useChat; }
98
98
  });
99
99
  Object.defineProperty(exports, "useContextStats", {
100
100
  enumerable: true,
101
- get: function () { return chunkM66XAHSW_cjs.useContextStats; }
101
+ get: function () { return chunkHIVSXIER_cjs.useContextStats; }
102
102
  });
103
103
  Object.defineProperty(exports, "useCopilotEvent", {
104
104
  enumerable: true,
105
- get: function () { return chunkM66XAHSW_cjs.useCopilotEvent; }
105
+ get: function () { return chunkHIVSXIER_cjs.useCopilotEvent; }
106
106
  });
107
107
  Object.defineProperty(exports, "useDevLogger", {
108
108
  enumerable: true,
109
- get: function () { return chunkM66XAHSW_cjs.useDevLogger; }
109
+ get: function () { return chunkHIVSXIER_cjs.useDevLogger; }
110
110
  });
111
111
  Object.defineProperty(exports, "useFeatureSupport", {
112
112
  enumerable: true,
113
- get: function () { return chunkM66XAHSW_cjs.useFeatureSupport; }
113
+ get: function () { return chunkHIVSXIER_cjs.useFeatureSupport; }
114
114
  });
115
115
  Object.defineProperty(exports, "useKnowledgeBase", {
116
116
  enumerable: true,
117
- get: function () { return chunkM66XAHSW_cjs.useKnowledgeBase; }
117
+ get: function () { return chunkHIVSXIER_cjs.useKnowledgeBase; }
118
118
  });
119
119
  Object.defineProperty(exports, "useMCPUIIntents", {
120
120
  enumerable: true,
121
- get: function () { return chunkM66XAHSW_cjs.useMCPUIIntents; }
121
+ get: function () { return chunkHIVSXIER_cjs.useMCPUIIntents; }
122
122
  });
123
123
  Object.defineProperty(exports, "useMessageCheckpoints", {
124
124
  enumerable: true,
125
- get: function () { return chunkM66XAHSW_cjs.useMessageCheckpoints; }
125
+ get: function () { return chunkHIVSXIER_cjs.useMessageCheckpoints; }
126
126
  });
127
127
  Object.defineProperty(exports, "useMessageMeta", {
128
128
  enumerable: true,
129
- get: function () { return chunkM66XAHSW_cjs.useMessageMeta; }
129
+ get: function () { return chunkHIVSXIER_cjs.useMessageMeta; }
130
130
  });
131
131
  Object.defineProperty(exports, "useSkill", {
132
132
  enumerable: true,
133
- get: function () { return chunkM66XAHSW_cjs.useSkill; }
133
+ get: function () { return chunkHIVSXIER_cjs.useSkill; }
134
134
  });
135
135
  Object.defineProperty(exports, "useSkillStatus", {
136
136
  enumerable: true,
137
- get: function () { return chunkM66XAHSW_cjs.useSkillStatus; }
137
+ get: function () { return chunkHIVSXIER_cjs.useSkillStatus; }
138
138
  });
139
139
  Object.defineProperty(exports, "useSuggestions", {
140
140
  enumerable: true,
141
- get: function () { return chunkM66XAHSW_cjs.useSuggestions; }
141
+ get: function () { return chunkHIVSXIER_cjs.useSuggestions; }
142
142
  });
143
143
  Object.defineProperty(exports, "useSupportedMediaTypes", {
144
144
  enumerable: true,
145
- get: function () { return chunkM66XAHSW_cjs.useSupportedMediaTypes; }
145
+ get: function () { return chunkHIVSXIER_cjs.useSupportedMediaTypes; }
146
146
  });
147
147
  Object.defineProperty(exports, "useThread", {
148
148
  enumerable: true,
149
- get: function () { return chunkM66XAHSW_cjs.useThread; }
149
+ get: function () { return chunkHIVSXIER_cjs.useThread; }
150
150
  });
151
151
  Object.defineProperty(exports, "useThreadManager", {
152
152
  enumerable: true,
153
- get: function () { return chunkM66XAHSW_cjs.useThreadManager; }
153
+ get: function () { return chunkHIVSXIER_cjs.useThreadManager; }
154
154
  });
155
155
  Object.defineProperty(exports, "useToolExecutor", {
156
156
  enumerable: true,
157
- get: function () { return chunkM66XAHSW_cjs.useToolExecutor; }
157
+ get: function () { return chunkHIVSXIER_cjs.useToolExecutor; }
158
158
  });
159
159
  Object.defineProperty(exports, "useToolWithSchema", {
160
160
  enumerable: true,
161
- get: function () { return chunkM66XAHSW_cjs.useToolWithSchema; }
161
+ get: function () { return chunkHIVSXIER_cjs.useToolWithSchema; }
162
162
  });
163
163
  Object.defineProperty(exports, "useToolsWithSchema", {
164
164
  enumerable: true,
165
- get: function () { return chunkM66XAHSW_cjs.useToolsWithSchema; }
165
+ get: function () { return chunkHIVSXIER_cjs.useToolsWithSchema; }
166
166
  });
167
167
  Object.defineProperty(exports, "AbstractAgentLoop", {
168
168
  enumerable: true,
169
- get: function () { return chunkNPBOKT63_cjs.AbstractAgentLoop; }
169
+ get: function () { return chunk6ZTITCKU_cjs.AbstractAgentLoop; }
170
170
  });
171
171
  Object.defineProperty(exports, "AbstractChat", {
172
172
  enumerable: true,
173
- get: function () { return chunkNPBOKT63_cjs.AbstractChat; }
173
+ get: function () { return chunk6ZTITCKU_cjs.AbstractChat; }
174
174
  });
175
175
  Object.defineProperty(exports, "CopilotProvider", {
176
176
  enumerable: true,
177
- get: function () { return chunkNPBOKT63_cjs.CopilotProvider; }
177
+ get: function () { return chunk6ZTITCKU_cjs.CopilotProvider; }
178
178
  });
179
179
  Object.defineProperty(exports, "MessageHistoryContext", {
180
180
  enumerable: true,
181
- get: function () { return chunkNPBOKT63_cjs.MessageHistoryContext; }
181
+ get: function () { return chunk6ZTITCKU_cjs.MessageHistoryContext; }
182
182
  });
183
183
  Object.defineProperty(exports, "MessageTree", {
184
184
  enumerable: true,
185
- get: function () { return chunkNPBOKT63_cjs.MessageTree; }
185
+ get: function () { return chunk6ZTITCKU_cjs.MessageTree; }
186
186
  });
187
187
  Object.defineProperty(exports, "ReactChatState", {
188
188
  enumerable: true,
189
- get: function () { return chunkNPBOKT63_cjs.ReactChatState; }
189
+ get: function () { return chunk6ZTITCKU_cjs.ReactChatState; }
190
190
  });
191
191
  Object.defineProperty(exports, "SkillProvider", {
192
192
  enumerable: true,
193
- get: function () { return chunkNPBOKT63_cjs.SkillProvider; }
193
+ get: function () { return chunk6ZTITCKU_cjs.SkillProvider; }
194
194
  });
195
195
  Object.defineProperty(exports, "createReactChatState", {
196
196
  enumerable: true,
197
- get: function () { return chunkNPBOKT63_cjs.createReactChatState; }
197
+ get: function () { return chunk6ZTITCKU_cjs.createReactChatState; }
198
198
  });
199
199
  Object.defineProperty(exports, "defaultMessageHistoryConfig", {
200
200
  enumerable: true,
201
- get: function () { return chunkNPBOKT63_cjs.defaultMessageHistoryConfig; }
201
+ get: function () { return chunk6ZTITCKU_cjs.defaultMessageHistoryConfig; }
202
202
  });
203
203
  Object.defineProperty(exports, "initialAgentLoopState", {
204
204
  enumerable: true,
205
- get: function () { return chunkNPBOKT63_cjs.initialAgentLoopState; }
205
+ get: function () { return chunk6ZTITCKU_cjs.initialAgentLoopState; }
206
206
  });
207
207
  Object.defineProperty(exports, "isCompactionMarker", {
208
208
  enumerable: true,
209
- get: function () { return chunkNPBOKT63_cjs.isCompactionMarker; }
209
+ get: function () { return chunk6ZTITCKU_cjs.isCompactionMarker; }
210
210
  });
211
211
  Object.defineProperty(exports, "keepToolPairsAtomic", {
212
212
  enumerable: true,
213
- get: function () { return chunkNPBOKT63_cjs.keepToolPairsAtomic; }
213
+ get: function () { return chunk6ZTITCKU_cjs.keepToolPairsAtomic; }
214
214
  });
215
215
  Object.defineProperty(exports, "toDisplayMessage", {
216
216
  enumerable: true,
217
- get: function () { return chunkNPBOKT63_cjs.toDisplayMessage; }
217
+ get: function () { return chunk6ZTITCKU_cjs.toDisplayMessage; }
218
218
  });
219
219
  Object.defineProperty(exports, "toLLMMessage", {
220
220
  enumerable: true,
221
- get: function () { return chunkNPBOKT63_cjs.toLLMMessage; }
221
+ get: function () { return chunk6ZTITCKU_cjs.toLLMMessage; }
222
222
  });
223
223
  Object.defineProperty(exports, "toLLMMessages", {
224
224
  enumerable: true,
225
- get: function () { return chunkNPBOKT63_cjs.toLLMMessages; }
225
+ get: function () { return chunk6ZTITCKU_cjs.toLLMMessages; }
226
226
  });
227
227
  Object.defineProperty(exports, "useAIContext", {
228
228
  enumerable: true,
229
- get: function () { return chunkNPBOKT63_cjs.useAIContext; }
229
+ get: function () { return chunk6ZTITCKU_cjs.useAIContext; }
230
230
  });
231
231
  Object.defineProperty(exports, "useAIContexts", {
232
232
  enumerable: true,
233
- get: function () { return chunkNPBOKT63_cjs.useAIContexts; }
233
+ get: function () { return chunk6ZTITCKU_cjs.useAIContexts; }
234
234
  });
235
235
  Object.defineProperty(exports, "useCopilot", {
236
236
  enumerable: true,
237
- get: function () { return chunkNPBOKT63_cjs.useCopilot; }
237
+ get: function () { return chunk6ZTITCKU_cjs.useCopilot; }
238
238
  });
239
239
  Object.defineProperty(exports, "useMCPClient", {
240
240
  enumerable: true,
241
- get: function () { return chunkNPBOKT63_cjs.useMCPClient; }
241
+ get: function () { return chunk6ZTITCKU_cjs.useMCPClient; }
242
242
  });
243
243
  Object.defineProperty(exports, "useMCPTools", {
244
244
  enumerable: true,
245
- get: function () { return chunkNPBOKT63_cjs.useMCPTools; }
245
+ get: function () { return chunk6ZTITCKU_cjs.useMCPTools; }
246
246
  });
247
247
  Object.defineProperty(exports, "useMessageHistory", {
248
248
  enumerable: true,
249
- get: function () { return chunkNPBOKT63_cjs.useMessageHistory; }
249
+ get: function () { return chunk6ZTITCKU_cjs.useMessageHistory; }
250
250
  });
251
251
  Object.defineProperty(exports, "useMessageHistoryContext", {
252
252
  enumerable: true,
253
- get: function () { return chunkNPBOKT63_cjs.useMessageHistoryContext; }
253
+ get: function () { return chunk6ZTITCKU_cjs.useMessageHistoryContext; }
254
254
  });
255
255
  Object.defineProperty(exports, "useTool", {
256
256
  enumerable: true,
257
- get: function () { return chunkNPBOKT63_cjs.useTool; }
257
+ get: function () { return chunk6ZTITCKU_cjs.useTool; }
258
258
  });
259
259
  Object.defineProperty(exports, "useTools", {
260
260
  enumerable: true,
261
- get: function () { return chunkNPBOKT63_cjs.useTools; }
261
+ get: function () { return chunk6ZTITCKU_cjs.useTools; }
262
262
  });
263
263
  Object.defineProperty(exports, "createLocalStorageAdapter", {
264
264
  enumerable: true,
@@ -514,6 +514,11 @@ interface ChatConfig {
514
514
  tools?: ToolDefinition[];
515
515
  /** Optional prompt/tool optimization controls */
516
516
  optimization?: ToolOptimizationConfig;
517
+ /**
518
+ * Custom error message extractor for non-2xx API responses.
519
+ * Receives HTTP status and parsed body — return a string or null to fall back to default.
520
+ */
521
+ parseError?: (status: number, body: unknown) => string | null | undefined;
517
522
  }
518
523
  /**
519
524
  * Server-side tool execution info (from streaming action events)
@@ -793,6 +798,7 @@ declare class AbstractChat<T extends UIMessage = UIMessage> {
793
798
  private sessionStatus;
794
799
  private eventHandlers;
795
800
  private streamState;
801
+ private _activePlaceholderMessageId;
796
802
  constructor(init: ChatInit<T>);
797
803
  get messages(): T[];
798
804
  get status(): ChatStatus$1;
@@ -1463,6 +1469,15 @@ interface CopilotProviderProps {
1463
1469
  onMessagesChange?: (messages: Message[]) => void;
1464
1470
  /** Callback when an error occurs */
1465
1471
  onError?: (error: Error) => void;
1472
+ /**
1473
+ * Custom error message extractor for non-2xx API responses.
1474
+ * Receives the HTTP status and parsed response body.
1475
+ * Return a string to override the default message, or null to use the default.
1476
+ *
1477
+ * @example
1478
+ * parseError: (status, body) => body?.errors?.[0]?.message ?? body?.detail ?? null
1479
+ */
1480
+ parseError?: (status: number, body: unknown) => string | null | undefined;
1466
1481
  /** Enable/disable streaming (default: true) */
1467
1482
  streaming?: boolean;
1468
1483
  /**
@@ -514,6 +514,11 @@ interface ChatConfig {
514
514
  tools?: ToolDefinition[];
515
515
  /** Optional prompt/tool optimization controls */
516
516
  optimization?: ToolOptimizationConfig;
517
+ /**
518
+ * Custom error message extractor for non-2xx API responses.
519
+ * Receives HTTP status and parsed body — return a string or null to fall back to default.
520
+ */
521
+ parseError?: (status: number, body: unknown) => string | null | undefined;
517
522
  }
518
523
  /**
519
524
  * Server-side tool execution info (from streaming action events)
@@ -793,6 +798,7 @@ declare class AbstractChat<T extends UIMessage = UIMessage> {
793
798
  private sessionStatus;
794
799
  private eventHandlers;
795
800
  private streamState;
801
+ private _activePlaceholderMessageId;
796
802
  constructor(init: ChatInit<T>);
797
803
  get messages(): T[];
798
804
  get status(): ChatStatus$1;
@@ -1463,6 +1469,15 @@ interface CopilotProviderProps {
1463
1469
  onMessagesChange?: (messages: Message[]) => void;
1464
1470
  /** Callback when an error occurs */
1465
1471
  onError?: (error: Error) => void;
1472
+ /**
1473
+ * Custom error message extractor for non-2xx API responses.
1474
+ * Receives the HTTP status and parsed response body.
1475
+ * Return a string to override the default message, or null to use the default.
1476
+ *
1477
+ * @example
1478
+ * parseError: (status, body) => body?.errors?.[0]?.message ?? body?.detail ?? null
1479
+ */
1480
+ parseError?: (status: number, body: unknown) => string | null | undefined;
1466
1481
  /** Enable/disable streaming (default: true) */
1467
1482
  streaming?: boolean;
1468
1483
  /**
@@ -1,5 +1,5 @@
1
- export { ReactChat, ReactThreadManager, ReactThreadManagerState, createMessageIntentHandler, createPermissionStorage, createReactChat, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, createToolIntentHandler, defineSkill, formatKnowledgeResultsForAI, searchKnowledgeBase, useAIAction, useAIActions, useAITools, useAgent, useCapabilities, useChat, useContextStats, useCopilotEvent, useDevLogger, useFeatureSupport, useKnowledgeBase, useMCPUIIntents, useMessageCheckpoints, useMessageMeta, useSkill, useSkillStatus, useSuggestions, useSupportedMediaTypes, useThread, useThreadManager, useToolExecutor, useToolWithSchema, useToolsWithSchema } from '../chunk-YHW6JZEF.js';
2
- export { AbstractAgentLoop, AbstractChat, CopilotProvider, MessageHistoryContext, MessageTree, ReactChatState, SkillProvider, createReactChatState, defaultMessageHistoryConfig, initialAgentLoopState, isCompactionMarker, keepToolPairsAtomic, toDisplayMessage, toLLMMessage, toLLMMessages, useAIContext, useAIContexts, useCopilot, useMCPClient, useMCPTools, useMessageHistory, useMessageHistoryContext, useTool, useTools } from '../chunk-UZHGMDOK.js';
1
+ export { ReactChat, ReactThreadManager, ReactThreadManagerState, createMessageIntentHandler, createPermissionStorage, createReactChat, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, createToolIntentHandler, defineSkill, formatKnowledgeResultsForAI, searchKnowledgeBase, useAIAction, useAIActions, useAITools, useAgent, useCapabilities, useChat, useContextStats, useCopilotEvent, useDevLogger, useFeatureSupport, useKnowledgeBase, useMCPUIIntents, useMessageCheckpoints, useMessageMeta, useSkill, useSkillStatus, useSuggestions, useSupportedMediaTypes, useThread, useThreadManager, useToolExecutor, useToolWithSchema, useToolsWithSchema } from '../chunk-SMNZHZM7.js';
2
+ export { AbstractAgentLoop, AbstractChat, CopilotProvider, MessageHistoryContext, MessageTree, ReactChatState, SkillProvider, createReactChatState, defaultMessageHistoryConfig, initialAgentLoopState, isCompactionMarker, keepToolPairsAtomic, toDisplayMessage, toLLMMessage, toLLMMessages, useAIContext, useAIContexts, useCopilot, useMCPClient, useMCPTools, useMessageHistory, useMessageHistoryContext, useTool, useTools } from '../chunk-2JNH3T6H.js';
3
3
  export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-J5D3AZF6.js';
4
4
  import '../chunk-EWVQWTNV.js';
5
5
  import '../chunk-VNLLW3ZI.js';
package/dist/styles.css CHANGED
@@ -148,6 +148,32 @@
148
148
  transform: scale(0.97);
149
149
  }
150
150
 
151
+ /* Popover Popup — entry/exit animation driven by Base UI data attributes */
152
+ .csdk-popover-popup {
153
+ opacity: 1;
154
+ transform: scale(1) translateY(0);
155
+ transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1),
156
+ transform 180ms cubic-bezier(0, 0, 0.2, 1);
157
+ }
158
+
159
+ .csdk-popover-popup[data-starting-style] {
160
+ opacity: 0;
161
+ transform: scale(0.96) translateY(-6px);
162
+ }
163
+
164
+ .csdk-popover-popup[data-ending-style] {
165
+ opacity: 0;
166
+ transform: scale(0.96) translateY(-6px);
167
+ transition-duration: 130ms;
168
+ transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
169
+ }
170
+
171
+ @media (prefers-reduced-motion: reduce) {
172
+ .csdk-popover-popup {
173
+ transition: none;
174
+ }
175
+ }
176
+
151
177
  /* Loader Animations */
152
178
  @keyframes csdk-spinner-fade {
153
179
  0%, 100% { opacity: 1; }