@yourgpt/copilot-sdk 2.1.3 → 2.1.4

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
- var chunkR6LKHKAI_cjs = require('../chunk-R6LKHKAI.cjs');
4
- var chunkWQSK3Z4K_cjs = require('../chunk-WQSK3Z4K.cjs');
3
+ var chunkN6VZ7FOW_cjs = require('../chunk-N6VZ7FOW.cjs');
4
+ var chunkOQPRIB73_cjs = require('../chunk-OQPRIB73.cjs');
5
5
  require('../chunk-JGPDQDY4.cjs');
6
6
  require('../chunk-WAPGTQDR.cjs');
7
7
  var chunkPOZNNKNJ_cjs = require('../chunk-POZNNKNJ.cjs');
@@ -20,183 +20,183 @@ require('../chunk-JEQ2X3Z6.cjs');
20
20
 
21
21
  Object.defineProperty(exports, "AbstractAgentLoop", {
22
22
  enumerable: true,
23
- get: function () { return chunkR6LKHKAI_cjs.AbstractAgentLoop; }
23
+ get: function () { return chunkN6VZ7FOW_cjs.AbstractAgentLoop; }
24
24
  });
25
25
  Object.defineProperty(exports, "AbstractChat", {
26
26
  enumerable: true,
27
- get: function () { return chunkR6LKHKAI_cjs.AbstractChat; }
27
+ get: function () { return chunkN6VZ7FOW_cjs.AbstractChat; }
28
28
  });
29
29
  Object.defineProperty(exports, "CopilotProvider", {
30
30
  enumerable: true,
31
- get: function () { return chunkR6LKHKAI_cjs.CopilotProvider; }
31
+ get: function () { return chunkN6VZ7FOW_cjs.CopilotProvider; }
32
32
  });
33
33
  Object.defineProperty(exports, "ReactChat", {
34
34
  enumerable: true,
35
- get: function () { return chunkR6LKHKAI_cjs.ReactChat; }
35
+ get: function () { return chunkN6VZ7FOW_cjs.ReactChat; }
36
36
  });
37
37
  Object.defineProperty(exports, "ReactChatState", {
38
38
  enumerable: true,
39
- get: function () { return chunkR6LKHKAI_cjs.ReactChatState; }
39
+ get: function () { return chunkN6VZ7FOW_cjs.ReactChatState; }
40
40
  });
41
41
  Object.defineProperty(exports, "ReactThreadManager", {
42
42
  enumerable: true,
43
- get: function () { return chunkR6LKHKAI_cjs.ReactThreadManager; }
43
+ get: function () { return chunkN6VZ7FOW_cjs.ReactThreadManager; }
44
44
  });
45
45
  Object.defineProperty(exports, "ReactThreadManagerState", {
46
46
  enumerable: true,
47
- get: function () { return chunkR6LKHKAI_cjs.ReactThreadManagerState; }
47
+ get: function () { return chunkN6VZ7FOW_cjs.ReactThreadManagerState; }
48
48
  });
49
49
  Object.defineProperty(exports, "createMessageIntentHandler", {
50
50
  enumerable: true,
51
- get: function () { return chunkR6LKHKAI_cjs.createMessageIntentHandler; }
51
+ get: function () { return chunkN6VZ7FOW_cjs.createMessageIntentHandler; }
52
52
  });
53
53
  Object.defineProperty(exports, "createPermissionStorage", {
54
54
  enumerable: true,
55
- get: function () { return chunkR6LKHKAI_cjs.createPermissionStorage; }
55
+ get: function () { return chunkN6VZ7FOW_cjs.createPermissionStorage; }
56
56
  });
57
57
  Object.defineProperty(exports, "createReactChat", {
58
58
  enumerable: true,
59
- get: function () { return chunkR6LKHKAI_cjs.createReactChat; }
59
+ get: function () { return chunkN6VZ7FOW_cjs.createReactChat; }
60
60
  });
61
61
  Object.defineProperty(exports, "createReactChatState", {
62
62
  enumerable: true,
63
- get: function () { return chunkR6LKHKAI_cjs.createReactChatState; }
63
+ get: function () { return chunkN6VZ7FOW_cjs.createReactChatState; }
64
64
  });
65
65
  Object.defineProperty(exports, "createReactThreadManager", {
66
66
  enumerable: true,
67
- get: function () { return chunkR6LKHKAI_cjs.createReactThreadManager; }
67
+ get: function () { return chunkN6VZ7FOW_cjs.createReactThreadManager; }
68
68
  });
69
69
  Object.defineProperty(exports, "createReactThreadManagerState", {
70
70
  enumerable: true,
71
- get: function () { return chunkR6LKHKAI_cjs.createReactThreadManagerState; }
71
+ get: function () { return chunkN6VZ7FOW_cjs.createReactThreadManagerState; }
72
72
  });
73
73
  Object.defineProperty(exports, "createSessionPermissionCache", {
74
74
  enumerable: true,
75
- get: function () { return chunkR6LKHKAI_cjs.createSessionPermissionCache; }
75
+ get: function () { return chunkN6VZ7FOW_cjs.createSessionPermissionCache; }
76
76
  });
77
77
  Object.defineProperty(exports, "createToolIntentHandler", {
78
78
  enumerable: true,
79
- get: function () { return chunkR6LKHKAI_cjs.createToolIntentHandler; }
79
+ get: function () { return chunkN6VZ7FOW_cjs.createToolIntentHandler; }
80
80
  });
81
81
  Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
82
82
  enumerable: true,
83
- get: function () { return chunkR6LKHKAI_cjs.formatKnowledgeResultsForAI; }
83
+ get: function () { return chunkN6VZ7FOW_cjs.formatKnowledgeResultsForAI; }
84
84
  });
85
85
  Object.defineProperty(exports, "initialAgentLoopState", {
86
86
  enumerable: true,
87
- get: function () { return chunkR6LKHKAI_cjs.initialAgentLoopState; }
87
+ get: function () { return chunkN6VZ7FOW_cjs.initialAgentLoopState; }
88
88
  });
89
89
  Object.defineProperty(exports, "searchKnowledgeBase", {
90
90
  enumerable: true,
91
- get: function () { return chunkR6LKHKAI_cjs.searchKnowledgeBase; }
91
+ get: function () { return chunkN6VZ7FOW_cjs.searchKnowledgeBase; }
92
92
  });
93
93
  Object.defineProperty(exports, "useAIAction", {
94
94
  enumerable: true,
95
- get: function () { return chunkR6LKHKAI_cjs.useAIAction; }
95
+ get: function () { return chunkN6VZ7FOW_cjs.useAIAction; }
96
96
  });
97
97
  Object.defineProperty(exports, "useAIActions", {
98
98
  enumerable: true,
99
- get: function () { return chunkR6LKHKAI_cjs.useAIActions; }
99
+ get: function () { return chunkN6VZ7FOW_cjs.useAIActions; }
100
100
  });
101
101
  Object.defineProperty(exports, "useAIContext", {
102
102
  enumerable: true,
103
- get: function () { return chunkR6LKHKAI_cjs.useAIContext; }
103
+ get: function () { return chunkN6VZ7FOW_cjs.useAIContext; }
104
104
  });
105
105
  Object.defineProperty(exports, "useAIContexts", {
106
106
  enumerable: true,
107
- get: function () { return chunkR6LKHKAI_cjs.useAIContexts; }
107
+ get: function () { return chunkN6VZ7FOW_cjs.useAIContexts; }
108
108
  });
109
109
  Object.defineProperty(exports, "useAITools", {
110
110
  enumerable: true,
111
- get: function () { return chunkR6LKHKAI_cjs.useAITools; }
111
+ get: function () { return chunkN6VZ7FOW_cjs.useAITools; }
112
112
  });
113
113
  Object.defineProperty(exports, "useAgent", {
114
114
  enumerable: true,
115
- get: function () { return chunkR6LKHKAI_cjs.useAgent; }
115
+ get: function () { return chunkN6VZ7FOW_cjs.useAgent; }
116
116
  });
117
117
  Object.defineProperty(exports, "useCapabilities", {
118
118
  enumerable: true,
119
- get: function () { return chunkR6LKHKAI_cjs.useCapabilities; }
119
+ get: function () { return chunkN6VZ7FOW_cjs.useCapabilities; }
120
120
  });
121
121
  Object.defineProperty(exports, "useChat", {
122
122
  enumerable: true,
123
- get: function () { return chunkR6LKHKAI_cjs.useChat; }
123
+ get: function () { return chunkN6VZ7FOW_cjs.useChat; }
124
124
  });
125
125
  Object.defineProperty(exports, "useCopilot", {
126
126
  enumerable: true,
127
- get: function () { return chunkR6LKHKAI_cjs.useCopilot; }
127
+ get: function () { return chunkN6VZ7FOW_cjs.useCopilot; }
128
128
  });
129
129
  Object.defineProperty(exports, "useDevLogger", {
130
130
  enumerable: true,
131
- get: function () { return chunkR6LKHKAI_cjs.useDevLogger; }
131
+ get: function () { return chunkN6VZ7FOW_cjs.useDevLogger; }
132
132
  });
133
133
  Object.defineProperty(exports, "useFeatureSupport", {
134
134
  enumerable: true,
135
- get: function () { return chunkR6LKHKAI_cjs.useFeatureSupport; }
135
+ get: function () { return chunkN6VZ7FOW_cjs.useFeatureSupport; }
136
136
  });
137
137
  Object.defineProperty(exports, "useKnowledgeBase", {
138
138
  enumerable: true,
139
- get: function () { return chunkR6LKHKAI_cjs.useKnowledgeBase; }
139
+ get: function () { return chunkN6VZ7FOW_cjs.useKnowledgeBase; }
140
140
  });
141
141
  Object.defineProperty(exports, "useMCPClient", {
142
142
  enumerable: true,
143
- get: function () { return chunkR6LKHKAI_cjs.useMCPClient; }
143
+ get: function () { return chunkN6VZ7FOW_cjs.useMCPClient; }
144
144
  });
145
145
  Object.defineProperty(exports, "useMCPTools", {
146
146
  enumerable: true,
147
- get: function () { return chunkR6LKHKAI_cjs.useMCPTools; }
147
+ get: function () { return chunkN6VZ7FOW_cjs.useMCPTools; }
148
148
  });
149
149
  Object.defineProperty(exports, "useMCPUIIntents", {
150
150
  enumerable: true,
151
- get: function () { return chunkR6LKHKAI_cjs.useMCPUIIntents; }
151
+ get: function () { return chunkN6VZ7FOW_cjs.useMCPUIIntents; }
152
152
  });
153
153
  Object.defineProperty(exports, "useSuggestions", {
154
154
  enumerable: true,
155
- get: function () { return chunkR6LKHKAI_cjs.useSuggestions; }
155
+ get: function () { return chunkN6VZ7FOW_cjs.useSuggestions; }
156
156
  });
157
157
  Object.defineProperty(exports, "useSupportedMediaTypes", {
158
158
  enumerable: true,
159
- get: function () { return chunkR6LKHKAI_cjs.useSupportedMediaTypes; }
159
+ get: function () { return chunkN6VZ7FOW_cjs.useSupportedMediaTypes; }
160
160
  });
161
161
  Object.defineProperty(exports, "useThreadManager", {
162
162
  enumerable: true,
163
- get: function () { return chunkR6LKHKAI_cjs.useThreadManager; }
163
+ get: function () { return chunkN6VZ7FOW_cjs.useThreadManager; }
164
164
  });
165
165
  Object.defineProperty(exports, "useTool", {
166
166
  enumerable: true,
167
- get: function () { return chunkR6LKHKAI_cjs.useTool; }
167
+ get: function () { return chunkN6VZ7FOW_cjs.useTool; }
168
168
  });
169
169
  Object.defineProperty(exports, "useToolExecutor", {
170
170
  enumerable: true,
171
- get: function () { return chunkR6LKHKAI_cjs.useToolExecutor; }
171
+ get: function () { return chunkN6VZ7FOW_cjs.useToolExecutor; }
172
172
  });
173
173
  Object.defineProperty(exports, "useToolWithSchema", {
174
174
  enumerable: true,
175
- get: function () { return chunkR6LKHKAI_cjs.useToolWithSchema; }
175
+ get: function () { return chunkN6VZ7FOW_cjs.useToolWithSchema; }
176
176
  });
177
177
  Object.defineProperty(exports, "useTools", {
178
178
  enumerable: true,
179
- get: function () { return chunkR6LKHKAI_cjs.useTools; }
179
+ get: function () { return chunkN6VZ7FOW_cjs.useTools; }
180
180
  });
181
181
  Object.defineProperty(exports, "useToolsWithSchema", {
182
182
  enumerable: true,
183
- get: function () { return chunkR6LKHKAI_cjs.useToolsWithSchema; }
183
+ get: function () { return chunkN6VZ7FOW_cjs.useToolsWithSchema; }
184
184
  });
185
185
  Object.defineProperty(exports, "createLocalStorageAdapter", {
186
186
  enumerable: true,
187
- get: function () { return chunkWQSK3Z4K_cjs.createLocalStorageAdapter; }
187
+ get: function () { return chunkOQPRIB73_cjs.createLocalStorageAdapter; }
188
188
  });
189
189
  Object.defineProperty(exports, "createMemoryAdapter", {
190
190
  enumerable: true,
191
- get: function () { return chunkWQSK3Z4K_cjs.createMemoryAdapter; }
191
+ get: function () { return chunkOQPRIB73_cjs.createMemoryAdapter; }
192
192
  });
193
193
  Object.defineProperty(exports, "createServerAdapter", {
194
194
  enumerable: true,
195
- get: function () { return chunkWQSK3Z4K_cjs.createServerAdapter; }
195
+ get: function () { return chunkOQPRIB73_cjs.createServerAdapter; }
196
196
  });
197
197
  Object.defineProperty(exports, "generateSuggestionReason", {
198
198
  enumerable: true,
199
- get: function () { return chunkWQSK3Z4K_cjs.generateSuggestionReason; }
199
+ get: function () { return chunkOQPRIB73_cjs.generateSuggestionReason; }
200
200
  });
201
201
  Object.defineProperty(exports, "tool", {
202
202
  enumerable: true,
@@ -1382,19 +1382,21 @@ interface UseAIToolsReturn {
1382
1382
  declare function useAITools(options?: UseAIToolsOptions): UseAIToolsReturn;
1383
1383
 
1384
1384
  /**
1385
- * Configuration for registering a tool (legacy format)
1385
+ * Configuration for registering a tool
1386
1386
  */
1387
1387
  interface UseToolConfig<TParams = Record<string, unknown>> {
1388
1388
  /** Unique tool name */
1389
1389
  name: string;
1390
1390
  /** Tool description for LLM */
1391
1391
  description: string;
1392
- /** JSON Schema for input parameters */
1393
- inputSchema: {
1394
- type: "object";
1395
- properties: Record<string, unknown>;
1396
- required?: string[];
1397
- };
1392
+ /**
1393
+ * Input schema - accepts either:
1394
+ * - Zod schema: z.object({ name: z.string() })
1395
+ * - JSON Schema: { type: "object", properties: { name: { type: "string" } } }
1396
+ *
1397
+ * Zod schemas are automatically converted to JSON Schema at runtime.
1398
+ */
1399
+ inputSchema: any;
1398
1400
  /** Handler function */
1399
1401
  handler: (params: TParams, context?: ToolContext) => Promise<ToolResponse$1> | ToolResponse$1;
1400
1402
  /** Optional render function for UI */
@@ -1418,22 +1420,37 @@ interface UseToolConfig<TParams = Record<string, unknown>> {
1418
1420
  * This hook registers a tool that can be called by the AI during a conversation.
1419
1421
  * The tool will execute on the client side.
1420
1422
  *
1423
+ * Supports both Zod schemas and JSON schemas for inputSchema.
1424
+ *
1421
1425
  * @example
1422
1426
  * ```tsx
1427
+ * // Using Zod schema (recommended)
1428
+ * import { z } from "zod";
1429
+ *
1423
1430
  * useTool({
1424
1431
  * name: "navigate_to_page",
1425
1432
  * description: "Navigate to a specific page in the app",
1433
+ * inputSchema: z.object({
1434
+ * path: z.string().describe("The path to navigate to"),
1435
+ * }),
1436
+ * handler: async ({ path }) => {
1437
+ * router.push(path);
1438
+ * return { success: true, message: `Navigated to ${path}` };
1439
+ * },
1440
+ * });
1441
+ *
1442
+ * // Using JSON Schema
1443
+ * useTool({
1444
+ * name: "open_modal",
1445
+ * description: "Open a modal dialog",
1426
1446
  * inputSchema: {
1427
1447
  * type: "object",
1428
1448
  * properties: {
1429
- * path: { type: "string", description: "The path to navigate to" },
1449
+ * modalId: { type: "string" },
1430
1450
  * },
1431
- * required: ["path"],
1432
- * },
1433
- * handler: async ({ path }) => {
1434
- * router.push(path);
1435
- * return { success: true, message: `Navigated to ${path}` };
1451
+ * required: ["modalId"],
1436
1452
  * },
1453
+ * handler: async ({ modalId }) => { ... },
1437
1454
  * });
1438
1455
  * ```
1439
1456
  */
@@ -1382,19 +1382,21 @@ interface UseAIToolsReturn {
1382
1382
  declare function useAITools(options?: UseAIToolsOptions): UseAIToolsReturn;
1383
1383
 
1384
1384
  /**
1385
- * Configuration for registering a tool (legacy format)
1385
+ * Configuration for registering a tool
1386
1386
  */
1387
1387
  interface UseToolConfig<TParams = Record<string, unknown>> {
1388
1388
  /** Unique tool name */
1389
1389
  name: string;
1390
1390
  /** Tool description for LLM */
1391
1391
  description: string;
1392
- /** JSON Schema for input parameters */
1393
- inputSchema: {
1394
- type: "object";
1395
- properties: Record<string, unknown>;
1396
- required?: string[];
1397
- };
1392
+ /**
1393
+ * Input schema - accepts either:
1394
+ * - Zod schema: z.object({ name: z.string() })
1395
+ * - JSON Schema: { type: "object", properties: { name: { type: "string" } } }
1396
+ *
1397
+ * Zod schemas are automatically converted to JSON Schema at runtime.
1398
+ */
1399
+ inputSchema: any;
1398
1400
  /** Handler function */
1399
1401
  handler: (params: TParams, context?: ToolContext) => Promise<ToolResponse$1> | ToolResponse$1;
1400
1402
  /** Optional render function for UI */
@@ -1418,22 +1420,37 @@ interface UseToolConfig<TParams = Record<string, unknown>> {
1418
1420
  * This hook registers a tool that can be called by the AI during a conversation.
1419
1421
  * The tool will execute on the client side.
1420
1422
  *
1423
+ * Supports both Zod schemas and JSON schemas for inputSchema.
1424
+ *
1421
1425
  * @example
1422
1426
  * ```tsx
1427
+ * // Using Zod schema (recommended)
1428
+ * import { z } from "zod";
1429
+ *
1423
1430
  * useTool({
1424
1431
  * name: "navigate_to_page",
1425
1432
  * description: "Navigate to a specific page in the app",
1433
+ * inputSchema: z.object({
1434
+ * path: z.string().describe("The path to navigate to"),
1435
+ * }),
1436
+ * handler: async ({ path }) => {
1437
+ * router.push(path);
1438
+ * return { success: true, message: `Navigated to ${path}` };
1439
+ * },
1440
+ * });
1441
+ *
1442
+ * // Using JSON Schema
1443
+ * useTool({
1444
+ * name: "open_modal",
1445
+ * description: "Open a modal dialog",
1426
1446
  * inputSchema: {
1427
1447
  * type: "object",
1428
1448
  * properties: {
1429
- * path: { type: "string", description: "The path to navigate to" },
1449
+ * modalId: { type: "string" },
1430
1450
  * },
1431
- * required: ["path"],
1432
- * },
1433
- * handler: async ({ path }) => {
1434
- * router.push(path);
1435
- * return { success: true, message: `Navigated to ${path}` };
1451
+ * required: ["modalId"],
1436
1452
  * },
1453
+ * handler: async ({ modalId }) => { ... },
1437
1454
  * });
1438
1455
  * ```
1439
1456
  */
@@ -1,5 +1,5 @@
1
- export { AbstractAgentLoop, AbstractChat, CopilotProvider, ReactChat, ReactChatState, ReactThreadManager, ReactThreadManagerState, createMessageIntentHandler, createPermissionStorage, createReactChat, createReactChatState, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, createToolIntentHandler, formatKnowledgeResultsForAI, initialAgentLoopState, searchKnowledgeBase, useAIAction, useAIActions, useAIContext, useAIContexts, useAITools, useAgent, useCapabilities, useChat, useCopilot, useDevLogger, useFeatureSupport, useKnowledgeBase, useMCPClient, useMCPTools, useMCPUIIntents, useSuggestions, useSupportedMediaTypes, useThreadManager, useTool, useToolExecutor, useToolWithSchema, useTools, useToolsWithSchema } from '../chunk-DMBFN7KO.js';
2
- export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-VFV5FVVI.js';
1
+ export { AbstractAgentLoop, AbstractChat, CopilotProvider, ReactChat, ReactChatState, ReactThreadManager, ReactThreadManagerState, createMessageIntentHandler, createPermissionStorage, createReactChat, createReactChatState, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, createToolIntentHandler, formatKnowledgeResultsForAI, initialAgentLoopState, searchKnowledgeBase, useAIAction, useAIActions, useAIContext, useAIContexts, useAITools, useAgent, useCapabilities, useChat, useCopilot, useDevLogger, useFeatureSupport, useKnowledgeBase, useMCPClient, useMCPTools, useMCPUIIntents, useSuggestions, useSupportedMediaTypes, useThreadManager, useTool, useToolExecutor, useToolWithSchema, useTools, useToolsWithSchema } from '../chunk-7PKGRYHY.js';
2
+ export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-37KEHUCE.js';
3
3
  import '../chunk-EWVQWTNV.js';
4
4
  import '../chunk-LZMBBGWH.js';
5
5
  export { tool } from '../chunk-QLH6TSCC.js';
package/dist/ui/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkR6LKHKAI_cjs = require('../chunk-R6LKHKAI.cjs');
4
- var chunkWQSK3Z4K_cjs = require('../chunk-WQSK3Z4K.cjs');
3
+ var chunkN6VZ7FOW_cjs = require('../chunk-N6VZ7FOW.cjs');
4
+ var chunkOQPRIB73_cjs = require('../chunk-OQPRIB73.cjs');
5
5
  var chunkJO4BHPAD_cjs = require('../chunk-JO4BHPAD.cjs');
6
6
  require('../chunk-JGPDQDY4.cjs');
7
7
  require('../chunk-WAPGTQDR.cjs');
@@ -5945,7 +5945,7 @@ function useInternalThreadManager(config = {}) {
5945
5945
  saveDebounce,
5946
5946
  autoRestoreLastThread
5947
5947
  };
5948
- const threadManager = chunkR6LKHKAI_cjs.useThreadManager(threadManagerConfig);
5948
+ const threadManager = chunkN6VZ7FOW_cjs.useThreadManager(threadManagerConfig);
5949
5949
  const {
5950
5950
  currentThread,
5951
5951
  currentThreadId,
@@ -5955,7 +5955,7 @@ function useInternalThreadManager(config = {}) {
5955
5955
  clearCurrentThread,
5956
5956
  refreshThreads
5957
5957
  } = threadManager;
5958
- const { messages, setMessages, status, isLoading } = chunkR6LKHKAI_cjs.useCopilot();
5958
+ const { messages, setMessages, status, isLoading } = chunkN6VZ7FOW_cjs.useCopilot();
5959
5959
  const isLoadingMessagesRef = React20.useRef(false);
5960
5960
  const savingToThreadRef = React20.useRef(null);
5961
5961
  const lastSavedSnapshotRef = React20.useRef("");
@@ -6122,7 +6122,7 @@ function parsePersistenceConfig(persistence, onThreadChange) {
6122
6122
  };
6123
6123
  case "server":
6124
6124
  return {
6125
- adapter: chunkWQSK3Z4K_cjs.createServerAdapter({
6125
+ adapter: chunkOQPRIB73_cjs.createServerAdapter({
6126
6126
  endpoint: persistence.endpoint,
6127
6127
  headers: persistence.headers
6128
6128
  }),
@@ -6172,7 +6172,7 @@ function CopilotChatBase(props) {
6172
6172
  approveToolExecution,
6173
6173
  rejectToolExecution,
6174
6174
  registeredTools
6175
- } = chunkR6LKHKAI_cjs.useCopilot();
6175
+ } = chunkN6VZ7FOW_cjs.useCopilot();
6176
6176
  const toolExecutions = rawToolExecutions.map(
6177
6177
  (exec) => ({
6178
6178
  id: exec.id,
package/dist/ui/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { useCopilot, useThreadManager } from '../chunk-DMBFN7KO.js';
2
- import { createServerAdapter } from '../chunk-VFV5FVVI.js';
1
+ import { useCopilot, useThreadManager } from '../chunk-7PKGRYHY.js';
2
+ import { createServerAdapter } from '../chunk-37KEHUCE.js';
3
3
  import { DEFAULT_MCP_UI_SANDBOX, parseMCPUIMessage } from '../chunk-G4SF2PNQ.js';
4
4
  import '../chunk-EWVQWTNV.js';
5
5
  import '../chunk-LZMBBGWH.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yourgpt/copilot-sdk",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
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",