@yourgpt/copilot-sdk 2.1.5-alpha.1 → 2.1.5-alpha.3

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.
Files changed (76) hide show
  1. package/dist/{chunk-4QXY2PBG.js → chunk-3AONOZLY.js} +2 -2
  2. package/dist/{chunk-4QXY2PBG.js.map → chunk-3AONOZLY.js.map} +1 -1
  3. package/dist/{chunk-JKGFQUHJ.cjs → chunk-MDS23G2S.cjs} +5 -5
  4. package/dist/{chunk-JKGFQUHJ.cjs.map → chunk-MDS23G2S.cjs.map} +1 -1
  5. package/dist/{chunk-5Q72LZ5H.js → chunk-PT2TOHG5.js} +7 -3
  6. package/dist/chunk-PT2TOHG5.js.map +1 -0
  7. package/dist/{chunk-ENFWM3EY.js → chunk-RKGRQRZU.js} +3 -3
  8. package/dist/{chunk-ENFWM3EY.js.map → chunk-RKGRQRZU.js.map} +1 -1
  9. package/dist/{chunk-IXWNDR7H.cjs → chunk-TCPAT3WG.cjs} +35 -31
  10. package/dist/chunk-TCPAT3WG.cjs.map +1 -0
  11. package/dist/{chunk-246B6X5D.cjs → chunk-TPB7XED6.cjs} +2 -2
  12. package/dist/{chunk-246B6X5D.cjs.map → chunk-TPB7XED6.cjs.map} +1 -1
  13. package/dist/{chunk-I3SQUNTT.cjs → chunk-WIXFZUEZ.cjs} +23 -23
  14. package/dist/{chunk-I3SQUNTT.cjs.map → chunk-WIXFZUEZ.cjs.map} +1 -1
  15. package/dist/{chunk-UXJ6LIZB.js → chunk-WZ2TOZ7M.js} +4 -4
  16. package/dist/{chunk-UXJ6LIZB.js.map → chunk-WZ2TOZ7M.js.map} +1 -1
  17. package/dist/core/index.cjs +82 -82
  18. package/dist/core/index.d.cts +3 -3
  19. package/dist/core/index.d.ts +3 -3
  20. package/dist/core/index.js +3 -3
  21. package/dist/{index-CiExk87c.d.cts → index-CzJB8Ddo.d.cts} +1 -1
  22. package/dist/{index-Dwrcf-CP.d.ts → index-D7169xuR.d.ts} +1 -1
  23. package/dist/mcp/index.d.cts +3 -3
  24. package/dist/mcp/index.d.ts +3 -3
  25. package/dist/react/index.cjs +65 -65
  26. package/dist/react/index.d.cts +8 -4
  27. package/dist/react/index.d.ts +8 -4
  28. package/dist/react/index.js +4 -4
  29. package/dist/styles.css +43 -0
  30. package/dist/tools/anthropic/index.d.cts +1 -1
  31. package/dist/tools/anthropic/index.d.ts +1 -1
  32. package/dist/tools/brave/index.cjs +2 -2
  33. package/dist/tools/brave/index.d.cts +1 -1
  34. package/dist/tools/brave/index.d.ts +1 -1
  35. package/dist/tools/brave/index.js +1 -1
  36. package/dist/tools/exa/index.cjs +2 -2
  37. package/dist/tools/exa/index.d.cts +1 -1
  38. package/dist/tools/exa/index.d.ts +1 -1
  39. package/dist/tools/exa/index.js +1 -1
  40. package/dist/tools/google/index.cjs +2 -2
  41. package/dist/tools/google/index.d.cts +1 -1
  42. package/dist/tools/google/index.d.ts +1 -1
  43. package/dist/tools/google/index.js +1 -1
  44. package/dist/tools/openai/index.cjs +2 -2
  45. package/dist/tools/openai/index.d.cts +1 -1
  46. package/dist/tools/openai/index.d.ts +1 -1
  47. package/dist/tools/openai/index.js +1 -1
  48. package/dist/tools/searxng/index.cjs +2 -2
  49. package/dist/tools/searxng/index.d.cts +1 -1
  50. package/dist/tools/searxng/index.d.ts +1 -1
  51. package/dist/tools/searxng/index.js +1 -1
  52. package/dist/tools/serper/index.cjs +2 -2
  53. package/dist/tools/serper/index.d.cts +1 -1
  54. package/dist/tools/serper/index.d.ts +1 -1
  55. package/dist/tools/serper/index.js +1 -1
  56. package/dist/tools/tavily/index.cjs +2 -2
  57. package/dist/tools/tavily/index.d.cts +1 -1
  58. package/dist/tools/tavily/index.d.ts +1 -1
  59. package/dist/tools/tavily/index.js +1 -1
  60. package/dist/tools/web-search/index.cjs +3 -3
  61. package/dist/tools/web-search/index.d.cts +2 -2
  62. package/dist/tools/web-search/index.d.ts +2 -2
  63. package/dist/tools/web-search/index.js +2 -2
  64. package/dist/{tools-DHZhF5km.d.cts → tools-tmksfhUo.d.cts} +9 -0
  65. package/dist/{tools-DHZhF5km.d.ts → tools-tmksfhUo.d.ts} +9 -0
  66. package/dist/{types-BdX7uPj0.d.cts → types-BLw7mxtW.d.cts} +1 -1
  67. package/dist/{types-BTyJu0WD.d.ts → types-BqwW3Baj.d.ts} +1 -1
  68. package/dist/ui/index.cjs +798 -417
  69. package/dist/ui/index.cjs.map +1 -1
  70. package/dist/ui/index.d.cts +337 -108
  71. package/dist/ui/index.d.ts +337 -108
  72. package/dist/ui/index.js +745 -365
  73. package/dist/ui/index.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/chunk-5Q72LZ5H.js.map +0 -1
  76. package/dist/chunk-IXWNDR7H.cjs.map +0 -1
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkIXWNDR7H_cjs = require('../chunk-IXWNDR7H.cjs');
4
- var chunkI3SQUNTT_cjs = require('../chunk-I3SQUNTT.cjs');
3
+ var chunkTCPAT3WG_cjs = require('../chunk-TCPAT3WG.cjs');
4
+ var chunkWIXFZUEZ_cjs = require('../chunk-WIXFZUEZ.cjs');
5
5
  require('../chunk-JGPDQDY4.cjs');
6
6
  require('../chunk-BJYA5NDL.cjs');
7
- require('../chunk-JKGFQUHJ.cjs');
8
- var chunk246B6X5D_cjs = require('../chunk-246B6X5D.cjs');
7
+ require('../chunk-MDS23G2S.cjs');
8
+ var chunkTPB7XED6_cjs = require('../chunk-TPB7XED6.cjs');
9
9
  require('../chunk-NUXLAZOE.cjs');
10
10
  require('../chunk-TXLIY7GF.cjs');
11
11
  require('../chunk-CBAHCI4R.cjs');
@@ -21,247 +21,247 @@ require('../chunk-JEQ2X3Z6.cjs');
21
21
 
22
22
  Object.defineProperty(exports, "AbstractAgentLoop", {
23
23
  enumerable: true,
24
- get: function () { return chunkIXWNDR7H_cjs.AbstractAgentLoop; }
24
+ get: function () { return chunkTCPAT3WG_cjs.AbstractAgentLoop; }
25
25
  });
26
26
  Object.defineProperty(exports, "AbstractChat", {
27
27
  enumerable: true,
28
- get: function () { return chunkIXWNDR7H_cjs.AbstractChat; }
28
+ get: function () { return chunkTCPAT3WG_cjs.AbstractChat; }
29
29
  });
30
30
  Object.defineProperty(exports, "CopilotProvider", {
31
31
  enumerable: true,
32
- get: function () { return chunkIXWNDR7H_cjs.CopilotProvider; }
32
+ get: function () { return chunkTCPAT3WG_cjs.CopilotProvider; }
33
33
  });
34
34
  Object.defineProperty(exports, "MessageHistoryContext", {
35
35
  enumerable: true,
36
- get: function () { return chunkIXWNDR7H_cjs.MessageHistoryContext; }
36
+ get: function () { return chunkTCPAT3WG_cjs.MessageHistoryContext; }
37
37
  });
38
38
  Object.defineProperty(exports, "MessageTree", {
39
39
  enumerable: true,
40
- get: function () { return chunkIXWNDR7H_cjs.MessageTree; }
40
+ get: function () { return chunkTCPAT3WG_cjs.MessageTree; }
41
41
  });
42
42
  Object.defineProperty(exports, "ReactChat", {
43
43
  enumerable: true,
44
- get: function () { return chunkIXWNDR7H_cjs.ReactChat; }
44
+ get: function () { return chunkTCPAT3WG_cjs.ReactChat; }
45
45
  });
46
46
  Object.defineProperty(exports, "ReactChatState", {
47
47
  enumerable: true,
48
- get: function () { return chunkIXWNDR7H_cjs.ReactChatState; }
48
+ get: function () { return chunkTCPAT3WG_cjs.ReactChatState; }
49
49
  });
50
50
  Object.defineProperty(exports, "ReactThreadManager", {
51
51
  enumerable: true,
52
- get: function () { return chunkIXWNDR7H_cjs.ReactThreadManager; }
52
+ get: function () { return chunkTCPAT3WG_cjs.ReactThreadManager; }
53
53
  });
54
54
  Object.defineProperty(exports, "ReactThreadManagerState", {
55
55
  enumerable: true,
56
- get: function () { return chunkIXWNDR7H_cjs.ReactThreadManagerState; }
56
+ get: function () { return chunkTCPAT3WG_cjs.ReactThreadManagerState; }
57
57
  });
58
58
  Object.defineProperty(exports, "SkillProvider", {
59
59
  enumerable: true,
60
- get: function () { return chunkIXWNDR7H_cjs.SkillProvider; }
60
+ get: function () { return chunkTCPAT3WG_cjs.SkillProvider; }
61
61
  });
62
62
  Object.defineProperty(exports, "createMessageIntentHandler", {
63
63
  enumerable: true,
64
- get: function () { return chunkIXWNDR7H_cjs.createMessageIntentHandler; }
64
+ get: function () { return chunkTCPAT3WG_cjs.createMessageIntentHandler; }
65
65
  });
66
66
  Object.defineProperty(exports, "createPermissionStorage", {
67
67
  enumerable: true,
68
- get: function () { return chunkIXWNDR7H_cjs.createPermissionStorage; }
68
+ get: function () { return chunkTCPAT3WG_cjs.createPermissionStorage; }
69
69
  });
70
70
  Object.defineProperty(exports, "createReactChat", {
71
71
  enumerable: true,
72
- get: function () { return chunkIXWNDR7H_cjs.createReactChat; }
72
+ get: function () { return chunkTCPAT3WG_cjs.createReactChat; }
73
73
  });
74
74
  Object.defineProperty(exports, "createReactChatState", {
75
75
  enumerable: true,
76
- get: function () { return chunkIXWNDR7H_cjs.createReactChatState; }
76
+ get: function () { return chunkTCPAT3WG_cjs.createReactChatState; }
77
77
  });
78
78
  Object.defineProperty(exports, "createReactThreadManager", {
79
79
  enumerable: true,
80
- get: function () { return chunkIXWNDR7H_cjs.createReactThreadManager; }
80
+ get: function () { return chunkTCPAT3WG_cjs.createReactThreadManager; }
81
81
  });
82
82
  Object.defineProperty(exports, "createReactThreadManagerState", {
83
83
  enumerable: true,
84
- get: function () { return chunkIXWNDR7H_cjs.createReactThreadManagerState; }
84
+ get: function () { return chunkTCPAT3WG_cjs.createReactThreadManagerState; }
85
85
  });
86
86
  Object.defineProperty(exports, "createSessionPermissionCache", {
87
87
  enumerable: true,
88
- get: function () { return chunkIXWNDR7H_cjs.createSessionPermissionCache; }
88
+ get: function () { return chunkTCPAT3WG_cjs.createSessionPermissionCache; }
89
89
  });
90
90
  Object.defineProperty(exports, "createToolIntentHandler", {
91
91
  enumerable: true,
92
- get: function () { return chunkIXWNDR7H_cjs.createToolIntentHandler; }
92
+ get: function () { return chunkTCPAT3WG_cjs.createToolIntentHandler; }
93
93
  });
94
94
  Object.defineProperty(exports, "defaultMessageHistoryConfig", {
95
95
  enumerable: true,
96
- get: function () { return chunkIXWNDR7H_cjs.defaultMessageHistoryConfig; }
96
+ get: function () { return chunkTCPAT3WG_cjs.defaultMessageHistoryConfig; }
97
97
  });
98
98
  Object.defineProperty(exports, "defineSkill", {
99
99
  enumerable: true,
100
- get: function () { return chunkIXWNDR7H_cjs.defineSkill; }
100
+ get: function () { return chunkTCPAT3WG_cjs.defineSkill; }
101
101
  });
102
102
  Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
103
103
  enumerable: true,
104
- get: function () { return chunkIXWNDR7H_cjs.formatKnowledgeResultsForAI; }
104
+ get: function () { return chunkTCPAT3WG_cjs.formatKnowledgeResultsForAI; }
105
105
  });
106
106
  Object.defineProperty(exports, "initialAgentLoopState", {
107
107
  enumerable: true,
108
- get: function () { return chunkIXWNDR7H_cjs.initialAgentLoopState; }
108
+ get: function () { return chunkTCPAT3WG_cjs.initialAgentLoopState; }
109
109
  });
110
110
  Object.defineProperty(exports, "isCompactionMarker", {
111
111
  enumerable: true,
112
- get: function () { return chunkIXWNDR7H_cjs.isCompactionMarker; }
112
+ get: function () { return chunkTCPAT3WG_cjs.isCompactionMarker; }
113
113
  });
114
114
  Object.defineProperty(exports, "keepToolPairsAtomic", {
115
115
  enumerable: true,
116
- get: function () { return chunkIXWNDR7H_cjs.keepToolPairsAtomic; }
116
+ get: function () { return chunkTCPAT3WG_cjs.keepToolPairsAtomic; }
117
117
  });
118
118
  Object.defineProperty(exports, "searchKnowledgeBase", {
119
119
  enumerable: true,
120
- get: function () { return chunkIXWNDR7H_cjs.searchKnowledgeBase; }
120
+ get: function () { return chunkTCPAT3WG_cjs.searchKnowledgeBase; }
121
121
  });
122
122
  Object.defineProperty(exports, "toDisplayMessage", {
123
123
  enumerable: true,
124
- get: function () { return chunkIXWNDR7H_cjs.toDisplayMessage; }
124
+ get: function () { return chunkTCPAT3WG_cjs.toDisplayMessage; }
125
125
  });
126
126
  Object.defineProperty(exports, "toLLMMessage", {
127
127
  enumerable: true,
128
- get: function () { return chunkIXWNDR7H_cjs.toLLMMessage; }
128
+ get: function () { return chunkTCPAT3WG_cjs.toLLMMessage; }
129
129
  });
130
130
  Object.defineProperty(exports, "toLLMMessages", {
131
131
  enumerable: true,
132
- get: function () { return chunkIXWNDR7H_cjs.toLLMMessages; }
132
+ get: function () { return chunkTCPAT3WG_cjs.toLLMMessages; }
133
133
  });
134
134
  Object.defineProperty(exports, "useAIAction", {
135
135
  enumerable: true,
136
- get: function () { return chunkIXWNDR7H_cjs.useAIAction; }
136
+ get: function () { return chunkTCPAT3WG_cjs.useAIAction; }
137
137
  });
138
138
  Object.defineProperty(exports, "useAIActions", {
139
139
  enumerable: true,
140
- get: function () { return chunkIXWNDR7H_cjs.useAIActions; }
140
+ get: function () { return chunkTCPAT3WG_cjs.useAIActions; }
141
141
  });
142
142
  Object.defineProperty(exports, "useAIContext", {
143
143
  enumerable: true,
144
- get: function () { return chunkIXWNDR7H_cjs.useAIContext; }
144
+ get: function () { return chunkTCPAT3WG_cjs.useAIContext; }
145
145
  });
146
146
  Object.defineProperty(exports, "useAIContexts", {
147
147
  enumerable: true,
148
- get: function () { return chunkIXWNDR7H_cjs.useAIContexts; }
148
+ get: function () { return chunkTCPAT3WG_cjs.useAIContexts; }
149
149
  });
150
150
  Object.defineProperty(exports, "useAITools", {
151
151
  enumerable: true,
152
- get: function () { return chunkIXWNDR7H_cjs.useAITools; }
152
+ get: function () { return chunkTCPAT3WG_cjs.useAITools; }
153
153
  });
154
154
  Object.defineProperty(exports, "useAgent", {
155
155
  enumerable: true,
156
- get: function () { return chunkIXWNDR7H_cjs.useAgent; }
156
+ get: function () { return chunkTCPAT3WG_cjs.useAgent; }
157
157
  });
158
158
  Object.defineProperty(exports, "useCapabilities", {
159
159
  enumerable: true,
160
- get: function () { return chunkIXWNDR7H_cjs.useCapabilities; }
160
+ get: function () { return chunkTCPAT3WG_cjs.useCapabilities; }
161
161
  });
162
162
  Object.defineProperty(exports, "useChat", {
163
163
  enumerable: true,
164
- get: function () { return chunkIXWNDR7H_cjs.useChat; }
164
+ get: function () { return chunkTCPAT3WG_cjs.useChat; }
165
165
  });
166
166
  Object.defineProperty(exports, "useContextStats", {
167
167
  enumerable: true,
168
- get: function () { return chunkIXWNDR7H_cjs.useContextStats; }
168
+ get: function () { return chunkTCPAT3WG_cjs.useContextStats; }
169
169
  });
170
170
  Object.defineProperty(exports, "useCopilot", {
171
171
  enumerable: true,
172
- get: function () { return chunkIXWNDR7H_cjs.useCopilot; }
172
+ get: function () { return chunkTCPAT3WG_cjs.useCopilot; }
173
173
  });
174
174
  Object.defineProperty(exports, "useDevLogger", {
175
175
  enumerable: true,
176
- get: function () { return chunkIXWNDR7H_cjs.useDevLogger; }
176
+ get: function () { return chunkTCPAT3WG_cjs.useDevLogger; }
177
177
  });
178
178
  Object.defineProperty(exports, "useFeatureSupport", {
179
179
  enumerable: true,
180
- get: function () { return chunkIXWNDR7H_cjs.useFeatureSupport; }
180
+ get: function () { return chunkTCPAT3WG_cjs.useFeatureSupport; }
181
181
  });
182
182
  Object.defineProperty(exports, "useKnowledgeBase", {
183
183
  enumerable: true,
184
- get: function () { return chunkIXWNDR7H_cjs.useKnowledgeBase; }
184
+ get: function () { return chunkTCPAT3WG_cjs.useKnowledgeBase; }
185
185
  });
186
186
  Object.defineProperty(exports, "useMCPClient", {
187
187
  enumerable: true,
188
- get: function () { return chunkIXWNDR7H_cjs.useMCPClient; }
188
+ get: function () { return chunkTCPAT3WG_cjs.useMCPClient; }
189
189
  });
190
190
  Object.defineProperty(exports, "useMCPTools", {
191
191
  enumerable: true,
192
- get: function () { return chunkIXWNDR7H_cjs.useMCPTools; }
192
+ get: function () { return chunkTCPAT3WG_cjs.useMCPTools; }
193
193
  });
194
194
  Object.defineProperty(exports, "useMCPUIIntents", {
195
195
  enumerable: true,
196
- get: function () { return chunkIXWNDR7H_cjs.useMCPUIIntents; }
196
+ get: function () { return chunkTCPAT3WG_cjs.useMCPUIIntents; }
197
197
  });
198
198
  Object.defineProperty(exports, "useMessageHistory", {
199
199
  enumerable: true,
200
- get: function () { return chunkIXWNDR7H_cjs.useMessageHistory; }
200
+ get: function () { return chunkTCPAT3WG_cjs.useMessageHistory; }
201
201
  });
202
202
  Object.defineProperty(exports, "useMessageHistoryContext", {
203
203
  enumerable: true,
204
- get: function () { return chunkIXWNDR7H_cjs.useMessageHistoryContext; }
204
+ get: function () { return chunkTCPAT3WG_cjs.useMessageHistoryContext; }
205
205
  });
206
206
  Object.defineProperty(exports, "useSkill", {
207
207
  enumerable: true,
208
- get: function () { return chunkIXWNDR7H_cjs.useSkill; }
208
+ get: function () { return chunkTCPAT3WG_cjs.useSkill; }
209
209
  });
210
210
  Object.defineProperty(exports, "useSkillStatus", {
211
211
  enumerable: true,
212
- get: function () { return chunkIXWNDR7H_cjs.useSkillStatus; }
212
+ get: function () { return chunkTCPAT3WG_cjs.useSkillStatus; }
213
213
  });
214
214
  Object.defineProperty(exports, "useSuggestions", {
215
215
  enumerable: true,
216
- get: function () { return chunkIXWNDR7H_cjs.useSuggestions; }
216
+ get: function () { return chunkTCPAT3WG_cjs.useSuggestions; }
217
217
  });
218
218
  Object.defineProperty(exports, "useSupportedMediaTypes", {
219
219
  enumerable: true,
220
- get: function () { return chunkIXWNDR7H_cjs.useSupportedMediaTypes; }
220
+ get: function () { return chunkTCPAT3WG_cjs.useSupportedMediaTypes; }
221
221
  });
222
222
  Object.defineProperty(exports, "useThreadManager", {
223
223
  enumerable: true,
224
- get: function () { return chunkIXWNDR7H_cjs.useThreadManager; }
224
+ get: function () { return chunkTCPAT3WG_cjs.useThreadManager; }
225
225
  });
226
226
  Object.defineProperty(exports, "useTool", {
227
227
  enumerable: true,
228
- get: function () { return chunkIXWNDR7H_cjs.useTool; }
228
+ get: function () { return chunkTCPAT3WG_cjs.useTool; }
229
229
  });
230
230
  Object.defineProperty(exports, "useToolExecutor", {
231
231
  enumerable: true,
232
- get: function () { return chunkIXWNDR7H_cjs.useToolExecutor; }
232
+ get: function () { return chunkTCPAT3WG_cjs.useToolExecutor; }
233
233
  });
234
234
  Object.defineProperty(exports, "useToolWithSchema", {
235
235
  enumerable: true,
236
- get: function () { return chunkIXWNDR7H_cjs.useToolWithSchema; }
236
+ get: function () { return chunkTCPAT3WG_cjs.useToolWithSchema; }
237
237
  });
238
238
  Object.defineProperty(exports, "useTools", {
239
239
  enumerable: true,
240
- get: function () { return chunkIXWNDR7H_cjs.useTools; }
240
+ get: function () { return chunkTCPAT3WG_cjs.useTools; }
241
241
  });
242
242
  Object.defineProperty(exports, "useToolsWithSchema", {
243
243
  enumerable: true,
244
- get: function () { return chunkIXWNDR7H_cjs.useToolsWithSchema; }
244
+ get: function () { return chunkTCPAT3WG_cjs.useToolsWithSchema; }
245
245
  });
246
246
  Object.defineProperty(exports, "createLocalStorageAdapter", {
247
247
  enumerable: true,
248
- get: function () { return chunkI3SQUNTT_cjs.createLocalStorageAdapter; }
248
+ get: function () { return chunkWIXFZUEZ_cjs.createLocalStorageAdapter; }
249
249
  });
250
250
  Object.defineProperty(exports, "createMemoryAdapter", {
251
251
  enumerable: true,
252
- get: function () { return chunkI3SQUNTT_cjs.createMemoryAdapter; }
252
+ get: function () { return chunkWIXFZUEZ_cjs.createMemoryAdapter; }
253
253
  });
254
254
  Object.defineProperty(exports, "createServerAdapter", {
255
255
  enumerable: true,
256
- get: function () { return chunkI3SQUNTT_cjs.createServerAdapter; }
256
+ get: function () { return chunkWIXFZUEZ_cjs.createServerAdapter; }
257
257
  });
258
258
  Object.defineProperty(exports, "generateSuggestionReason", {
259
259
  enumerable: true,
260
- get: function () { return chunkI3SQUNTT_cjs.generateSuggestionReason; }
260
+ get: function () { return chunkWIXFZUEZ_cjs.generateSuggestionReason; }
261
261
  });
262
262
  Object.defineProperty(exports, "tool", {
263
263
  enumerable: true,
264
- get: function () { return chunk246B6X5D_cjs.tool; }
264
+ get: function () { return chunkTPB7XED6_cjs.tool; }
265
265
  });
266
266
  //# sourceMappingURL=index.cjs.map
267
267
  //# sourceMappingURL=index.cjs.map
@@ -5,12 +5,12 @@ import * as React$1 from 'react';
5
5
  import React__default from 'react';
6
6
  import { L as LLMConfig, l as ToolsConfig, s as ActionDefinition, o as CapturedContext, m as ToolConsentRequest, T as ToolType, n as ToolConsentResponse, S as ScreenshotOptions, C as ConsoleLogOptions, N as NetworkRequestOptions, I as IntentDetectionResult, y as InternalKnowledgeBaseConfig, B as InternalKnowledgeBaseSearchResponse, z as InternalKnowledgeBaseResult, Y as ThreadManagerState, Z as LoadStatus, U as ThreadManagerConfig, F as ThreadManager, V as ThreadManagerCallbacks, W as CreateThreadOptions, X as UpdateThreadOptions } from '../ThreadManager-Cw5fwyCN.cjs';
7
7
  export { A as ActionParameter, q as CloudConfig, r as CopilotConfig, _ as LocalStorageAdapterConfig, J as createLocalStorageAdapter, O as createMemoryAdapter, i as generateSuggestionReason } from '../ThreadManager-Cw5fwyCN.cjs';
8
- import { T as ToolDefinition, t as ToolOptimizationConfig, r as ContextUsage, f as ToolSource, P as PermissionLevel, c as ToolInputSchema, y as ToolExecution$1, e as ToolContext, b as ToolResponse$1, g as ToolRenderProps, i as ToolResultConfig, D as AIResponseMode, u as ToolSet, U as UnifiedToolCall, G as PermissionStorageConfig, H as PermissionStorageAdapter } from '../tools-DHZhF5km.cjs';
9
- export { z as AgentLoopConfig, q as ContextUsagePart, h as ToolConfig, a as ToolExecutionStatus, F as ToolPermission, v as ToolSetEntry, I as tool } from '../tools-DHZhF5km.cjs';
8
+ import { T as ToolDefinition, t as ToolOptimizationConfig, r as ContextUsage, f as ToolSource, P as PermissionLevel, c as ToolInputSchema, y as ToolExecution$1, e as ToolContext, b as ToolResponse$1, g as ToolRenderProps, i as ToolResultConfig, D as AIResponseMode, u as ToolSet, U as UnifiedToolCall, G as PermissionStorageConfig, H as PermissionStorageAdapter } from '../tools-tmksfhUo.cjs';
9
+ export { z as AgentLoopConfig, q as ContextUsagePart, h as ToolConfig, a as ToolExecutionStatus, F as ToolPermission, v as ToolSetEntry, I as tool } from '../tools-tmksfhUo.cjs';
10
10
  import { A as AsyncThreadStorageAdapter, M as MessageAttachment, T as ToolCall, d as Message, S as Source, a as Thread, b as ThreadData, c as ThreadStorageAdapter } from '../types-BeFBBZ5i.cjs';
11
11
  export { P as PersistenceConfig, j as ThreadStorageAdapter } from '../types-BeFBBZ5i.cjs';
12
- import { G as MCPServerConfig, U as UseMCPClientConfig, D as UseMCPClientReturn, E as UseMCPToolsConfig, F as UseMCPToolsReturn } from '../types-BdX7uPj0.cjs';
13
- export { b as MCPClientState } from '../types-BdX7uPj0.cjs';
12
+ import { G as MCPServerConfig, U as UseMCPClientConfig, D as UseMCPClientReturn, E as UseMCPToolsConfig, F as UseMCPToolsReturn } from '../types-BLw7mxtW.cjs';
13
+ export { b as MCPClientState } from '../types-BLw7mxtW.cjs';
14
14
  import { S as SkillDefinition, R as ResolvedSkill } from '../types-BckL3hiw.cjs';
15
15
  export { C as ClientInlineSkill, b as SkillSource, c as SkillStrategy } from '../types-BckL3hiw.cjs';
16
16
  import { U as UseMCPUIIntentsConfig, m as UseMCPUIIntentsReturn } from '../types-B20VCJXL.cjs';
@@ -557,6 +557,8 @@ interface ToolExecution {
557
557
  error?: string;
558
558
  startedAt?: Date;
559
559
  completedAt?: Date;
560
+ /** Title shown in approval UI (from tool's approvalTitle) */
561
+ approvalTitle?: string;
560
562
  /** Custom approval message from tool definition */
561
563
  approvalMessage?: string;
562
564
  /** Data passed from user's approval action (e.g., selected supervisor) */
@@ -1740,6 +1742,8 @@ interface UseToolConfig<TParams = Record<string, unknown>> {
1740
1742
  available?: boolean;
1741
1743
  /** Require user approval */
1742
1744
  needsApproval?: boolean;
1745
+ /** Custom approval title shown in the approval UI */
1746
+ approvalTitle?: string | ((params: TParams) => string);
1743
1747
  /** Custom approval message (can be string or function that receives params) */
1744
1748
  approvalMessage?: string | ((params: TParams) => string);
1745
1749
  /**
@@ -5,12 +5,12 @@ import * as React$1 from 'react';
5
5
  import React__default from 'react';
6
6
  import { L as LLMConfig, l as ToolsConfig, s as ActionDefinition, o as CapturedContext, m as ToolConsentRequest, T as ToolType, n as ToolConsentResponse, S as ScreenshotOptions, C as ConsoleLogOptions, N as NetworkRequestOptions, I as IntentDetectionResult, y as InternalKnowledgeBaseConfig, B as InternalKnowledgeBaseSearchResponse, z as InternalKnowledgeBaseResult, Y as ThreadManagerState, Z as LoadStatus, U as ThreadManagerConfig, F as ThreadManager, V as ThreadManagerCallbacks, W as CreateThreadOptions, X as UpdateThreadOptions } from '../ThreadManager-BEAECB7Y.js';
7
7
  export { A as ActionParameter, q as CloudConfig, r as CopilotConfig, _ as LocalStorageAdapterConfig, J as createLocalStorageAdapter, O as createMemoryAdapter, i as generateSuggestionReason } from '../ThreadManager-BEAECB7Y.js';
8
- import { T as ToolDefinition, t as ToolOptimizationConfig, r as ContextUsage, f as ToolSource, P as PermissionLevel, c as ToolInputSchema, y as ToolExecution$1, e as ToolContext, b as ToolResponse$1, g as ToolRenderProps, i as ToolResultConfig, D as AIResponseMode, u as ToolSet, U as UnifiedToolCall, G as PermissionStorageConfig, H as PermissionStorageAdapter } from '../tools-DHZhF5km.js';
9
- export { z as AgentLoopConfig, q as ContextUsagePart, h as ToolConfig, a as ToolExecutionStatus, F as ToolPermission, v as ToolSetEntry, I as tool } from '../tools-DHZhF5km.js';
8
+ import { T as ToolDefinition, t as ToolOptimizationConfig, r as ContextUsage, f as ToolSource, P as PermissionLevel, c as ToolInputSchema, y as ToolExecution$1, e as ToolContext, b as ToolResponse$1, g as ToolRenderProps, i as ToolResultConfig, D as AIResponseMode, u as ToolSet, U as UnifiedToolCall, G as PermissionStorageConfig, H as PermissionStorageAdapter } from '../tools-tmksfhUo.js';
9
+ export { z as AgentLoopConfig, q as ContextUsagePart, h as ToolConfig, a as ToolExecutionStatus, F as ToolPermission, v as ToolSetEntry, I as tool } from '../tools-tmksfhUo.js';
10
10
  import { A as AsyncThreadStorageAdapter, M as MessageAttachment, T as ToolCall, d as Message, S as Source, a as Thread, b as ThreadData, c as ThreadStorageAdapter } from '../types-BeFBBZ5i.js';
11
11
  export { P as PersistenceConfig, j as ThreadStorageAdapter } from '../types-BeFBBZ5i.js';
12
- import { G as MCPServerConfig, U as UseMCPClientConfig, D as UseMCPClientReturn, E as UseMCPToolsConfig, F as UseMCPToolsReturn } from '../types-BTyJu0WD.js';
13
- export { b as MCPClientState } from '../types-BTyJu0WD.js';
12
+ import { G as MCPServerConfig, U as UseMCPClientConfig, D as UseMCPClientReturn, E as UseMCPToolsConfig, F as UseMCPToolsReturn } from '../types-BqwW3Baj.js';
13
+ export { b as MCPClientState } from '../types-BqwW3Baj.js';
14
14
  import { S as SkillDefinition, R as ResolvedSkill } from '../types-BckL3hiw.js';
15
15
  export { C as ClientInlineSkill, b as SkillSource, c as SkillStrategy } from '../types-BckL3hiw.js';
16
16
  import { U as UseMCPUIIntentsConfig, m as UseMCPUIIntentsReturn } from '../types-B20VCJXL.js';
@@ -557,6 +557,8 @@ interface ToolExecution {
557
557
  error?: string;
558
558
  startedAt?: Date;
559
559
  completedAt?: Date;
560
+ /** Title shown in approval UI (from tool's approvalTitle) */
561
+ approvalTitle?: string;
560
562
  /** Custom approval message from tool definition */
561
563
  approvalMessage?: string;
562
564
  /** Data passed from user's approval action (e.g., selected supervisor) */
@@ -1740,6 +1742,8 @@ interface UseToolConfig<TParams = Record<string, unknown>> {
1740
1742
  available?: boolean;
1741
1743
  /** Require user approval */
1742
1744
  needsApproval?: boolean;
1745
+ /** Custom approval title shown in the approval UI */
1746
+ approvalTitle?: string | ((params: TParams) => string);
1743
1747
  /** Custom approval message (can be string or function that receives params) */
1744
1748
  approvalMessage?: string | ((params: TParams) => string);
1745
1749
  /**
@@ -1,9 +1,9 @@
1
- export { AbstractAgentLoop, AbstractChat, CopilotProvider, MessageHistoryContext, MessageTree, ReactChat, ReactChatState, ReactThreadManager, ReactThreadManagerState, SkillProvider, createMessageIntentHandler, createPermissionStorage, createReactChat, createReactChatState, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, createToolIntentHandler, defaultMessageHistoryConfig, defineSkill, formatKnowledgeResultsForAI, initialAgentLoopState, isCompactionMarker, keepToolPairsAtomic, searchKnowledgeBase, toDisplayMessage, toLLMMessage, toLLMMessages, useAIAction, useAIActions, useAIContext, useAIContexts, useAITools, useAgent, useCapabilities, useChat, useContextStats, useCopilot, useDevLogger, useFeatureSupport, useKnowledgeBase, useMCPClient, useMCPTools, useMCPUIIntents, useMessageHistory, useMessageHistoryContext, useSkill, useSkillStatus, useSuggestions, useSupportedMediaTypes, useThreadManager, useTool, useToolExecutor, useToolWithSchema, useTools, useToolsWithSchema } from '../chunk-5Q72LZ5H.js';
2
- export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-UXJ6LIZB.js';
1
+ export { AbstractAgentLoop, AbstractChat, CopilotProvider, MessageHistoryContext, MessageTree, ReactChat, ReactChatState, ReactThreadManager, ReactThreadManagerState, SkillProvider, createMessageIntentHandler, createPermissionStorage, createReactChat, createReactChatState, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, createToolIntentHandler, defaultMessageHistoryConfig, defineSkill, formatKnowledgeResultsForAI, initialAgentLoopState, isCompactionMarker, keepToolPairsAtomic, searchKnowledgeBase, toDisplayMessage, toLLMMessage, toLLMMessages, useAIAction, useAIActions, useAIContext, useAIContexts, useAITools, useAgent, useCapabilities, useChat, useContextStats, useCopilot, useDevLogger, useFeatureSupport, useKnowledgeBase, useMCPClient, useMCPTools, useMCPUIIntents, useMessageHistory, useMessageHistoryContext, useSkill, useSkillStatus, useSuggestions, useSupportedMediaTypes, useThreadManager, useTool, useToolExecutor, useToolWithSchema, useTools, useToolsWithSchema } from '../chunk-PT2TOHG5.js';
2
+ export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-WZ2TOZ7M.js';
3
3
  import '../chunk-EWVQWTNV.js';
4
4
  import '../chunk-VNLLW3ZI.js';
5
- import '../chunk-ENFWM3EY.js';
6
- export { tool } from '../chunk-4QXY2PBG.js';
5
+ import '../chunk-RKGRQRZU.js';
6
+ export { tool } from '../chunk-3AONOZLY.js';
7
7
  import '../chunk-LLM7AHMO.js';
8
8
  import '../chunk-RQ74USYU.js';
9
9
  import '../chunk-7W7QLZNC.js';
package/dist/styles.css CHANGED
@@ -60,6 +60,49 @@
60
60
  }
61
61
  }
62
62
 
63
+ /* Confirmation Card Animations */
64
+ /* Uses @starting-style for reliable first-paint entry in React (more robust than @keyframes) */
65
+
66
+ .csdk-confirm-card {
67
+ opacity: 1;
68
+ transform: scale(1) translateY(0);
69
+ transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1),
70
+ transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
71
+ }
72
+
73
+ @starting-style {
74
+ .csdk-confirm-card {
75
+ opacity: 0;
76
+ transform: scale(0.96) translateY(6px);
77
+ }
78
+ }
79
+
80
+ .csdk-confirm-result {
81
+ opacity: 1;
82
+ transform: translateY(0);
83
+ transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
84
+ transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
85
+ }
86
+
87
+ @starting-style {
88
+ .csdk-confirm-result {
89
+ opacity: 0;
90
+ transform: translateY(3px);
91
+ }
92
+ }
93
+
94
+ .csdk-confirm-btn {
95
+ transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
96
+ opacity 140ms ease,
97
+ background-color 120ms ease,
98
+ color 120ms ease,
99
+ border-color 120ms ease;
100
+ }
101
+
102
+ .csdk-confirm-btn:active {
103
+ transform: scale(0.97);
104
+ }
105
+
63
106
  /* Loader Animations */
64
107
  @keyframes csdk-spinner-fade {
65
108
  0%, 100% { opacity: 1; }
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.cjs';
2
2
  export { a as anthropicProvider } from '../../anthropic-DGalr_Fw.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.js';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.js';
2
2
  export { a as anthropicProvider } from '../../anthropic-DkCEDYOt.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk246B6X5D_cjs = require('../../chunk-246B6X5D.cjs');
3
+ var chunkTPB7XED6_cjs = require('../../chunk-TPB7XED6.cjs');
4
4
  var chunkNUXLAZOE_cjs = require('../../chunk-NUXLAZOE.cjs');
5
5
  require('../../chunk-TXLIY7GF.cjs');
6
6
  require('../../chunk-CBAHCI4R.cjs');
@@ -70,7 +70,7 @@ function braveSearch(config) {
70
70
  };
71
71
  } catch (error) {
72
72
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
73
- return chunk246B6X5D_cjs.failure(errorMessage);
73
+ return chunkTPB7XED6_cjs.failure(errorMessage);
74
74
  }
75
75
  }
76
76
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.cjs';
2
2
  export { b as braveProvider } from '../../brave-DdnWb7Gb.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.js';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.js';
2
2
  export { b as braveProvider } from '../../brave-DsI9n7Wr.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-4QXY2PBG.js';
1
+ import { failure } from '../../chunk-3AONOZLY.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-LLM7AHMO.js';
3
3
  import '../../chunk-RQ74USYU.js';
4
4
  import '../../chunk-7W7QLZNC.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk246B6X5D_cjs = require('../../chunk-246B6X5D.cjs');
3
+ var chunkTPB7XED6_cjs = require('../../chunk-TPB7XED6.cjs');
4
4
  var chunkNUXLAZOE_cjs = require('../../chunk-NUXLAZOE.cjs');
5
5
  require('../../chunk-TXLIY7GF.cjs');
6
6
  require('../../chunk-CBAHCI4R.cjs');
@@ -75,7 +75,7 @@ function exaSearch(config) {
75
75
  };
76
76
  } catch (error) {
77
77
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
78
- return chunk246B6X5D_cjs.failure(errorMessage);
78
+ return chunkTPB7XED6_cjs.failure(errorMessage);
79
79
  }
80
80
  }
81
81
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.cjs';
2
2
  export { e as exaProvider } from '../../exa-jJSPhyUW.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.js';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.js';
2
2
  export { e as exaProvider } from '../../exa-Dp9U-WTc.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-4QXY2PBG.js';
1
+ import { failure } from '../../chunk-3AONOZLY.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-LLM7AHMO.js';
3
3
  import '../../chunk-RQ74USYU.js';
4
4
  import '../../chunk-7W7QLZNC.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk246B6X5D_cjs = require('../../chunk-246B6X5D.cjs');
3
+ var chunkTPB7XED6_cjs = require('../../chunk-TPB7XED6.cjs');
4
4
  var chunkNUXLAZOE_cjs = require('../../chunk-NUXLAZOE.cjs');
5
5
  require('../../chunk-TXLIY7GF.cjs');
6
6
  require('../../chunk-CBAHCI4R.cjs');
@@ -66,7 +66,7 @@ function googleSearch(config) {
66
66
  };
67
67
  } catch (error) {
68
68
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
69
- return chunk246B6X5D_cjs.failure(errorMessage);
69
+ return chunkTPB7XED6_cjs.failure(errorMessage);
70
70
  }
71
71
  }
72
72
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.cjs';
2
2
  export { g as googleProvider } from '../../google-CHU2yycE.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.js';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.js';
2
2
  export { g as googleProvider } from '../../google-Da8IQxaI.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-4QXY2PBG.js';
1
+ import { failure } from '../../chunk-3AONOZLY.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-LLM7AHMO.js';
3
3
  import '../../chunk-RQ74USYU.js';
4
4
  import '../../chunk-7W7QLZNC.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk246B6X5D_cjs = require('../../chunk-246B6X5D.cjs');
3
+ var chunkTPB7XED6_cjs = require('../../chunk-TPB7XED6.cjs');
4
4
  var chunkNUXLAZOE_cjs = require('../../chunk-NUXLAZOE.cjs');
5
5
  require('../../chunk-TXLIY7GF.cjs');
6
6
  require('../../chunk-CBAHCI4R.cjs');
@@ -68,7 +68,7 @@ function openaiSearch(config) {
68
68
  } catch (error) {
69
69
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
70
70
  console.error("[OpenAI Search] Error:", errorMessage);
71
- return chunk246B6X5D_cjs.failure(errorMessage);
71
+ return chunkTPB7XED6_cjs.failure(errorMessage);
72
72
  }
73
73
  }
74
74
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.cjs';
2
2
  export { o as openaiProvider } from '../../openai-HVSCuXgO.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.js';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.js';
2
2
  export { o as openaiProvider } from '../../openai-Cam8hF4f.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-4QXY2PBG.js';
1
+ import { failure } from '../../chunk-3AONOZLY.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-LLM7AHMO.js';
3
3
  import '../../chunk-RQ74USYU.js';
4
4
  import '../../chunk-7W7QLZNC.js';