@yourgpt/copilot-sdk 2.1.6 → 2.1.8
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/{chunk-SMNZHZM7.js → chunk-H3LX6FTP.js} +3 -3
- package/dist/{chunk-SMNZHZM7.js.map → chunk-H3LX6FTP.js.map} +1 -1
- package/dist/{chunk-6ZTITCKU.cjs → chunk-IDAQU3FP.cjs} +16 -3
- package/dist/chunk-IDAQU3FP.cjs.map +1 -0
- package/dist/{chunk-2JNH3T6H.js → chunk-ISOMZAYN.js} +16 -3
- package/dist/chunk-ISOMZAYN.js.map +1 -0
- package/dist/{chunk-HIVSXIER.cjs → chunk-JFVTY757.cjs} +16 -16
- package/dist/{chunk-HIVSXIER.cjs.map → chunk-JFVTY757.cjs.map} +1 -1
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.js +1 -1
- package/dist/react/index.cjs +62 -62
- package/dist/react/index.d.cts +4 -0
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.js +2 -2
- package/dist/styles.css +21 -0
- package/dist/ui/index.cjs +5 -5
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-2JNH3T6H.js.map +0 -1
- package/dist/chunk-6ZTITCKU.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5EGBIQYS_cjs = require('../chunk-5EGBIQYS.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkIDAQU3FP_cjs = require('../chunk-IDAQU3FP.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
|
-
|
|
533
|
+
chunkIDAQU3FP_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,
|
package/dist/react/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkJFVTY757_cjs = require('../chunk-JFVTY757.cjs');
|
|
4
|
+
var chunkIDAQU3FP_cjs = require('../chunk-IDAQU3FP.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
|
|
25
|
+
get: function () { return chunkJFVTY757_cjs.ReactChat; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ReactThreadManager", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkJFVTY757_cjs.ReactThreadManager; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ReactThreadManagerState", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkJFVTY757_cjs.ReactThreadManagerState; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createMessageIntentHandler", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkJFVTY757_cjs.createMessageIntentHandler; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createPermissionStorage", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkJFVTY757_cjs.createPermissionStorage; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "createReactChat", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkJFVTY757_cjs.createReactChat; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "createReactThreadManager", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkJFVTY757_cjs.createReactThreadManager; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "createReactThreadManagerState", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkJFVTY757_cjs.createReactThreadManagerState; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "createSessionPermissionCache", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkJFVTY757_cjs.createSessionPermissionCache; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "createToolIntentHandler", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkJFVTY757_cjs.createToolIntentHandler; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "defineSkill", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkJFVTY757_cjs.defineSkill; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkJFVTY757_cjs.formatKnowledgeResultsForAI; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "searchKnowledgeBase", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkJFVTY757_cjs.searchKnowledgeBase; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "useAIAction", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkJFVTY757_cjs.useAIAction; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "useAIActions", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkJFVTY757_cjs.useAIActions; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "useAITools", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkJFVTY757_cjs.useAITools; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "useAgent", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkJFVTY757_cjs.useAgent; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "useCapabilities", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkJFVTY757_cjs.useCapabilities; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "useChat", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkJFVTY757_cjs.useChat; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "useContextStats", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkJFVTY757_cjs.useContextStats; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "useCopilotEvent", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkJFVTY757_cjs.useCopilotEvent; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "useDevLogger", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkJFVTY757_cjs.useDevLogger; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "useFeatureSupport", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkJFVTY757_cjs.useFeatureSupport; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "useKnowledgeBase", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkJFVTY757_cjs.useKnowledgeBase; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "useMCPUIIntents", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkJFVTY757_cjs.useMCPUIIntents; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "useMessageCheckpoints", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkJFVTY757_cjs.useMessageCheckpoints; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "useMessageMeta", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkJFVTY757_cjs.useMessageMeta; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "useSkill", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkJFVTY757_cjs.useSkill; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "useSkillStatus", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkJFVTY757_cjs.useSkillStatus; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "useSuggestions", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkJFVTY757_cjs.useSuggestions; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "useSupportedMediaTypes", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkJFVTY757_cjs.useSupportedMediaTypes; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "useThread", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkJFVTY757_cjs.useThread; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "useThreadManager", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkJFVTY757_cjs.useThreadManager; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "useToolExecutor", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkJFVTY757_cjs.useToolExecutor; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "useToolWithSchema", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkJFVTY757_cjs.useToolWithSchema; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "useToolsWithSchema", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkJFVTY757_cjs.useToolsWithSchema; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "AbstractAgentLoop", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkIDAQU3FP_cjs.AbstractAgentLoop; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "AbstractChat", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkIDAQU3FP_cjs.AbstractChat; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "CopilotProvider", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkIDAQU3FP_cjs.CopilotProvider; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "MessageHistoryContext", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkIDAQU3FP_cjs.MessageHistoryContext; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "MessageTree", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkIDAQU3FP_cjs.MessageTree; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "ReactChatState", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkIDAQU3FP_cjs.ReactChatState; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "SkillProvider", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkIDAQU3FP_cjs.SkillProvider; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "createReactChatState", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkIDAQU3FP_cjs.createReactChatState; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "defaultMessageHistoryConfig", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkIDAQU3FP_cjs.defaultMessageHistoryConfig; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "initialAgentLoopState", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkIDAQU3FP_cjs.initialAgentLoopState; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "isCompactionMarker", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkIDAQU3FP_cjs.isCompactionMarker; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "keepToolPairsAtomic", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkIDAQU3FP_cjs.keepToolPairsAtomic; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "toDisplayMessage", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkIDAQU3FP_cjs.toDisplayMessage; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "toLLMMessage", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkIDAQU3FP_cjs.toLLMMessage; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "toLLMMessages", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkIDAQU3FP_cjs.toLLMMessages; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "useAIContext", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkIDAQU3FP_cjs.useAIContext; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "useAIContexts", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkIDAQU3FP_cjs.useAIContexts; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "useCopilot", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkIDAQU3FP_cjs.useCopilot; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "useMCPClient", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkIDAQU3FP_cjs.useMCPClient; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "useMCPTools", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkIDAQU3FP_cjs.useMCPTools; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "useMessageHistory", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkIDAQU3FP_cjs.useMessageHistory; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "useMessageHistoryContext", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkIDAQU3FP_cjs.useMessageHistoryContext; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "useTool", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkIDAQU3FP_cjs.useTool; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "useTools", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkIDAQU3FP_cjs.useTools; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "createLocalStorageAdapter", {
|
|
264
264
|
enumerable: true,
|
package/dist/react/index.d.cts
CHANGED
|
@@ -204,6 +204,10 @@ type StreamChunk = {
|
|
|
204
204
|
} | {
|
|
205
205
|
type: "error";
|
|
206
206
|
message: string;
|
|
207
|
+
} | {
|
|
208
|
+
/** Emitted early in the stream (before message events) when server storage creates a session */
|
|
209
|
+
type: "thread:created";
|
|
210
|
+
threadId: string;
|
|
207
211
|
} | {
|
|
208
212
|
type: "done";
|
|
209
213
|
messages?: Array<{
|
package/dist/react/index.d.ts
CHANGED
|
@@ -204,6 +204,10 @@ type StreamChunk = {
|
|
|
204
204
|
} | {
|
|
205
205
|
type: "error";
|
|
206
206
|
message: string;
|
|
207
|
+
} | {
|
|
208
|
+
/** Emitted early in the stream (before message events) when server storage creates a session */
|
|
209
|
+
type: "thread:created";
|
|
210
|
+
threadId: string;
|
|
207
211
|
} | {
|
|
208
212
|
type: "done";
|
|
209
213
|
messages?: Array<{
|
package/dist/react/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-H3LX6FTP.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-ISOMZAYN.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
|
@@ -301,3 +301,24 @@
|
|
|
301
301
|
color: hsl(var(--muted-foreground));
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
+
/* ── Streamdown code block overrides ──────────────────────────────────────────
|
|
305
|
+
* @streamdown/code injects hardcoded Tailwind classes (bg-sidebar, bg-background)
|
|
306
|
+
* which can conflict with the host app's theme. We override them here using
|
|
307
|
+
* SDK-scoped CSS variables so consumers can customise via --csdk-code-* vars.
|
|
308
|
+
* --------------------------------------------------------------------------- */
|
|
309
|
+
|
|
310
|
+
.csdk-message-content [data-streamdown="code-block"] {
|
|
311
|
+
background: var(--csdk-code-bg, hsl(var(--muted)));
|
|
312
|
+
border-color: var(--csdk-code-border, hsl(var(--border)));
|
|
313
|
+
border-radius: var(--csdk-code-radius, 0.5rem);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.csdk-message-content [data-streamdown="code-block-body"] {
|
|
317
|
+
background: var(--csdk-code-body-bg, hsl(var(--card)));
|
|
318
|
+
border-color: var(--csdk-code-border, hsl(var(--border)));
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.csdk-message-content [data-streamdown="code-block-header"] {
|
|
322
|
+
color: hsl(var(--muted-foreground));
|
|
323
|
+
}
|
|
324
|
+
|
package/dist/ui/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJFVTY757_cjs = require('../chunk-JFVTY757.cjs');
|
|
4
4
|
var chunkJO4BHPAD_cjs = require('../chunk-JO4BHPAD.cjs');
|
|
5
5
|
var chunk5EGBIQYS_cjs = require('../chunk-5EGBIQYS.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkIDAQU3FP_cjs = require('../chunk-IDAQU3FP.cjs');
|
|
7
7
|
var chunk7GWEW2DU_cjs = require('../chunk-7GWEW2DU.cjs');
|
|
8
8
|
require('../chunk-JGPDQDY4.cjs');
|
|
9
9
|
require('../chunk-BJYA5NDL.cjs');
|
|
@@ -6880,7 +6880,7 @@ function useInternalThreadManager(config = {}) {
|
|
|
6880
6880
|
} = config;
|
|
6881
6881
|
const [state, dispatch] = React19.useReducer(threadReducer, INITIAL_STATE);
|
|
6882
6882
|
const isLoadingRef = React19.useRef(false);
|
|
6883
|
-
const threadManager =
|
|
6883
|
+
const threadManager = chunkJFVTY757_cjs.useThreadManager({
|
|
6884
6884
|
adapter,
|
|
6885
6885
|
saveDebounce,
|
|
6886
6886
|
autoRestoreLastThread
|
|
@@ -6902,7 +6902,7 @@ function useInternalThreadManager(config = {}) {
|
|
|
6902
6902
|
switchBranch,
|
|
6903
6903
|
threadId: sdkThreadId,
|
|
6904
6904
|
setActiveThread
|
|
6905
|
-
} =
|
|
6905
|
+
} = chunkIDAQU3FP_cjs.useCopilot();
|
|
6906
6906
|
React19.useEffect(() => {
|
|
6907
6907
|
if (!enabled || state.initialized || !currentThread) return;
|
|
6908
6908
|
dispatch({ type: "RESTORE_START" });
|
|
@@ -7132,7 +7132,7 @@ function CopilotChatBase(props) {
|
|
|
7132
7132
|
getBranchInfo,
|
|
7133
7133
|
editMessage,
|
|
7134
7134
|
error: chatError
|
|
7135
|
-
} =
|
|
7135
|
+
} = chunkIDAQU3FP_cjs.useCopilot();
|
|
7136
7136
|
const toolExecutions = rawToolExecutions.map(
|
|
7137
7137
|
(exec) => ({
|
|
7138
7138
|
id: exec.id,
|
package/dist/ui/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useThreadManager } from '../chunk-
|
|
1
|
+
import { useThreadManager } from '../chunk-H3LX6FTP.js';
|
|
2
2
|
import { DEFAULT_MCP_UI_SANDBOX, parseMCPUIMessage } from '../chunk-G4SF2PNQ.js';
|
|
3
3
|
import { cn, Loader, TextShimmerLoader } from '../chunk-TXQ37MAO.js';
|
|
4
4
|
export { Loader, cn } from '../chunk-TXQ37MAO.js';
|
|
5
|
-
import { useCopilot } from '../chunk-
|
|
5
|
+
import { useCopilot } from '../chunk-ISOMZAYN.js';
|
|
6
6
|
import { createLocalStorageAdapter, createServerAdapter } from '../chunk-J5D3AZF6.js';
|
|
7
7
|
import '../chunk-EWVQWTNV.js';
|
|
8
8
|
import '../chunk-VNLLW3ZI.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yourgpt/copilot-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "Copilot SDK for building Production-ready AI Copilots for any product. Connect any LLM, deploy on your infrastructure, own your data.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/core/index.d.ts",
|