@yourgpt/copilot-sdk 1.2.3 → 1.2.5

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,153 +1,153 @@
1
1
  'use strict';
2
2
 
3
- var chunk2IPWAEIC_cjs = require('../chunk-2IPWAEIC.cjs');
3
+ var chunkOD6O6TQI_cjs = require('../chunk-OD6O6TQI.cjs');
4
4
  var chunkMTFU6EHR_cjs = require('../chunk-MTFU6EHR.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AbstractAgentLoop", {
9
9
  enumerable: true,
10
- get: function () { return chunk2IPWAEIC_cjs.AbstractAgentLoop; }
10
+ get: function () { return chunkOD6O6TQI_cjs.AbstractAgentLoop; }
11
11
  });
12
12
  Object.defineProperty(exports, "AbstractChat", {
13
13
  enumerable: true,
14
- get: function () { return chunk2IPWAEIC_cjs.AbstractChat; }
14
+ get: function () { return chunkOD6O6TQI_cjs.AbstractChat; }
15
15
  });
16
16
  Object.defineProperty(exports, "CopilotProvider", {
17
17
  enumerable: true,
18
- get: function () { return chunk2IPWAEIC_cjs.CopilotProvider; }
18
+ get: function () { return chunkOD6O6TQI_cjs.CopilotProvider; }
19
19
  });
20
20
  Object.defineProperty(exports, "ReactChat", {
21
21
  enumerable: true,
22
- get: function () { return chunk2IPWAEIC_cjs.ReactChat; }
22
+ get: function () { return chunkOD6O6TQI_cjs.ReactChat; }
23
23
  });
24
24
  Object.defineProperty(exports, "ReactChatState", {
25
25
  enumerable: true,
26
- get: function () { return chunk2IPWAEIC_cjs.ReactChatState; }
26
+ get: function () { return chunkOD6O6TQI_cjs.ReactChatState; }
27
27
  });
28
28
  Object.defineProperty(exports, "ReactThreadManager", {
29
29
  enumerable: true,
30
- get: function () { return chunk2IPWAEIC_cjs.ReactThreadManager; }
30
+ get: function () { return chunkOD6O6TQI_cjs.ReactThreadManager; }
31
31
  });
32
32
  Object.defineProperty(exports, "ReactThreadManagerState", {
33
33
  enumerable: true,
34
- get: function () { return chunk2IPWAEIC_cjs.ReactThreadManagerState; }
34
+ get: function () { return chunkOD6O6TQI_cjs.ReactThreadManagerState; }
35
35
  });
36
36
  Object.defineProperty(exports, "createPermissionStorage", {
37
37
  enumerable: true,
38
- get: function () { return chunk2IPWAEIC_cjs.createPermissionStorage; }
38
+ get: function () { return chunkOD6O6TQI_cjs.createPermissionStorage; }
39
39
  });
40
40
  Object.defineProperty(exports, "createReactChat", {
41
41
  enumerable: true,
42
- get: function () { return chunk2IPWAEIC_cjs.createReactChat; }
42
+ get: function () { return chunkOD6O6TQI_cjs.createReactChat; }
43
43
  });
44
44
  Object.defineProperty(exports, "createReactChatState", {
45
45
  enumerable: true,
46
- get: function () { return chunk2IPWAEIC_cjs.createReactChatState; }
46
+ get: function () { return chunkOD6O6TQI_cjs.createReactChatState; }
47
47
  });
48
48
  Object.defineProperty(exports, "createReactThreadManager", {
49
49
  enumerable: true,
50
- get: function () { return chunk2IPWAEIC_cjs.createReactThreadManager; }
50
+ get: function () { return chunkOD6O6TQI_cjs.createReactThreadManager; }
51
51
  });
52
52
  Object.defineProperty(exports, "createReactThreadManagerState", {
53
53
  enumerable: true,
54
- get: function () { return chunk2IPWAEIC_cjs.createReactThreadManagerState; }
54
+ get: function () { return chunkOD6O6TQI_cjs.createReactThreadManagerState; }
55
55
  });
56
56
  Object.defineProperty(exports, "createSessionPermissionCache", {
57
57
  enumerable: true,
58
- get: function () { return chunk2IPWAEIC_cjs.createSessionPermissionCache; }
58
+ get: function () { return chunkOD6O6TQI_cjs.createSessionPermissionCache; }
59
59
  });
60
60
  Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
61
61
  enumerable: true,
62
- get: function () { return chunk2IPWAEIC_cjs.formatKnowledgeResultsForAI; }
62
+ get: function () { return chunkOD6O6TQI_cjs.formatKnowledgeResultsForAI; }
63
63
  });
64
64
  Object.defineProperty(exports, "initialAgentLoopState", {
65
65
  enumerable: true,
66
- get: function () { return chunk2IPWAEIC_cjs.initialAgentLoopState; }
66
+ get: function () { return chunkOD6O6TQI_cjs.initialAgentLoopState; }
67
67
  });
68
68
  Object.defineProperty(exports, "searchKnowledgeBase", {
69
69
  enumerable: true,
70
- get: function () { return chunk2IPWAEIC_cjs.searchKnowledgeBase; }
70
+ get: function () { return chunkOD6O6TQI_cjs.searchKnowledgeBase; }
71
71
  });
72
72
  Object.defineProperty(exports, "useAIAction", {
73
73
  enumerable: true,
74
- get: function () { return chunk2IPWAEIC_cjs.useAIAction; }
74
+ get: function () { return chunkOD6O6TQI_cjs.useAIAction; }
75
75
  });
76
76
  Object.defineProperty(exports, "useAIActions", {
77
77
  enumerable: true,
78
- get: function () { return chunk2IPWAEIC_cjs.useAIActions; }
78
+ get: function () { return chunkOD6O6TQI_cjs.useAIActions; }
79
79
  });
80
80
  Object.defineProperty(exports, "useAIContext", {
81
81
  enumerable: true,
82
- get: function () { return chunk2IPWAEIC_cjs.useAIContext; }
82
+ get: function () { return chunkOD6O6TQI_cjs.useAIContext; }
83
83
  });
84
84
  Object.defineProperty(exports, "useAIContexts", {
85
85
  enumerable: true,
86
- get: function () { return chunk2IPWAEIC_cjs.useAIContexts; }
86
+ get: function () { return chunkOD6O6TQI_cjs.useAIContexts; }
87
87
  });
88
88
  Object.defineProperty(exports, "useAITools", {
89
89
  enumerable: true,
90
- get: function () { return chunk2IPWAEIC_cjs.useAITools; }
90
+ get: function () { return chunkOD6O6TQI_cjs.useAITools; }
91
91
  });
92
92
  Object.defineProperty(exports, "useAgent", {
93
93
  enumerable: true,
94
- get: function () { return chunk2IPWAEIC_cjs.useAgent; }
94
+ get: function () { return chunkOD6O6TQI_cjs.useAgent; }
95
95
  });
96
96
  Object.defineProperty(exports, "useCapabilities", {
97
97
  enumerable: true,
98
- get: function () { return chunk2IPWAEIC_cjs.useCapabilities; }
98
+ get: function () { return chunkOD6O6TQI_cjs.useCapabilities; }
99
99
  });
100
100
  Object.defineProperty(exports, "useChat", {
101
101
  enumerable: true,
102
- get: function () { return chunk2IPWAEIC_cjs.useChat; }
102
+ get: function () { return chunkOD6O6TQI_cjs.useChat; }
103
103
  });
104
104
  Object.defineProperty(exports, "useCopilot", {
105
105
  enumerable: true,
106
- get: function () { return chunk2IPWAEIC_cjs.useCopilot; }
106
+ get: function () { return chunkOD6O6TQI_cjs.useCopilot; }
107
107
  });
108
108
  Object.defineProperty(exports, "useDevLogger", {
109
109
  enumerable: true,
110
- get: function () { return chunk2IPWAEIC_cjs.useDevLogger; }
110
+ get: function () { return chunkOD6O6TQI_cjs.useDevLogger; }
111
111
  });
112
112
  Object.defineProperty(exports, "useFeatureSupport", {
113
113
  enumerable: true,
114
- get: function () { return chunk2IPWAEIC_cjs.useFeatureSupport; }
114
+ get: function () { return chunkOD6O6TQI_cjs.useFeatureSupport; }
115
115
  });
116
116
  Object.defineProperty(exports, "useKnowledgeBase", {
117
117
  enumerable: true,
118
- get: function () { return chunk2IPWAEIC_cjs.useKnowledgeBase; }
118
+ get: function () { return chunkOD6O6TQI_cjs.useKnowledgeBase; }
119
119
  });
120
120
  Object.defineProperty(exports, "useSuggestions", {
121
121
  enumerable: true,
122
- get: function () { return chunk2IPWAEIC_cjs.useSuggestions; }
122
+ get: function () { return chunkOD6O6TQI_cjs.useSuggestions; }
123
123
  });
124
124
  Object.defineProperty(exports, "useSupportedMediaTypes", {
125
125
  enumerable: true,
126
- get: function () { return chunk2IPWAEIC_cjs.useSupportedMediaTypes; }
126
+ get: function () { return chunkOD6O6TQI_cjs.useSupportedMediaTypes; }
127
127
  });
128
128
  Object.defineProperty(exports, "useThreadManager", {
129
129
  enumerable: true,
130
- get: function () { return chunk2IPWAEIC_cjs.useThreadManager; }
130
+ get: function () { return chunkOD6O6TQI_cjs.useThreadManager; }
131
131
  });
132
132
  Object.defineProperty(exports, "useTool", {
133
133
  enumerable: true,
134
- get: function () { return chunk2IPWAEIC_cjs.useTool; }
134
+ get: function () { return chunkOD6O6TQI_cjs.useTool; }
135
135
  });
136
136
  Object.defineProperty(exports, "useToolExecutor", {
137
137
  enumerable: true,
138
- get: function () { return chunk2IPWAEIC_cjs.useToolExecutor; }
138
+ get: function () { return chunkOD6O6TQI_cjs.useToolExecutor; }
139
139
  });
140
140
  Object.defineProperty(exports, "useToolWithSchema", {
141
141
  enumerable: true,
142
- get: function () { return chunk2IPWAEIC_cjs.useToolWithSchema; }
142
+ get: function () { return chunkOD6O6TQI_cjs.useToolWithSchema; }
143
143
  });
144
144
  Object.defineProperty(exports, "useTools", {
145
145
  enumerable: true,
146
- get: function () { return chunk2IPWAEIC_cjs.useTools; }
146
+ get: function () { return chunkOD6O6TQI_cjs.useTools; }
147
147
  });
148
148
  Object.defineProperty(exports, "useToolsWithSchema", {
149
149
  enumerable: true,
150
- get: function () { return chunk2IPWAEIC_cjs.useToolsWithSchema; }
150
+ get: function () { return chunkOD6O6TQI_cjs.useToolsWithSchema; }
151
151
  });
152
152
  Object.defineProperty(exports, "createLocalStorageAdapter", {
153
153
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { AbstractAgentLoop, AbstractChat, CopilotProvider, ReactChat, ReactChatState, ReactThreadManager, ReactThreadManagerState, createPermissionStorage, createReactChat, createReactChatState, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, formatKnowledgeResultsForAI, initialAgentLoopState, searchKnowledgeBase, useAIAction, useAIActions, useAIContext, useAIContexts, useAITools, useAgent, useCapabilities, useChat, useCopilot, useDevLogger, useFeatureSupport, useKnowledgeBase, useSuggestions, useSupportedMediaTypes, useThreadManager, useTool, useToolExecutor, useToolWithSchema, useTools, useToolsWithSchema } from '../chunk-XPV4Y2CT.js';
1
+ export { AbstractAgentLoop, AbstractChat, CopilotProvider, ReactChat, ReactChatState, ReactThreadManager, ReactThreadManagerState, createPermissionStorage, createReactChat, createReactChatState, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, formatKnowledgeResultsForAI, initialAgentLoopState, searchKnowledgeBase, useAIAction, useAIActions, useAIContext, useAIContexts, useAITools, useAgent, useCapabilities, useChat, useCopilot, useDevLogger, useFeatureSupport, useKnowledgeBase, useSuggestions, useSupportedMediaTypes, useThreadManager, useTool, useToolExecutor, useToolWithSchema, useTools, useToolsWithSchema } from '../chunk-6NJKNYYW.js';
2
2
  export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-CVD3X4MN.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
package/dist/ui/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2IPWAEIC_cjs = require('../chunk-2IPWAEIC.cjs');
3
+ var chunkOD6O6TQI_cjs = require('../chunk-OD6O6TQI.cjs');
4
4
  var chunkMTFU6EHR_cjs = require('../chunk-MTFU6EHR.cjs');
5
5
  var clsx = require('clsx');
6
6
  var tailwindMerge = require('tailwind-merge');
@@ -4915,7 +4915,7 @@ function useInternalThreadManager(config = {}) {
4915
4915
  saveDebounce,
4916
4916
  autoRestoreLastThread
4917
4917
  };
4918
- const threadManager = chunk2IPWAEIC_cjs.useThreadManager(threadManagerConfig);
4918
+ const threadManager = chunkOD6O6TQI_cjs.useThreadManager(threadManagerConfig);
4919
4919
  const {
4920
4920
  currentThread,
4921
4921
  currentThreadId,
@@ -4925,7 +4925,7 @@ function useInternalThreadManager(config = {}) {
4925
4925
  clearCurrentThread,
4926
4926
  refreshThreads
4927
4927
  } = threadManager;
4928
- const { messages, setMessages, status, isLoading } = chunk2IPWAEIC_cjs.useCopilot();
4928
+ const { messages, setMessages, status, isLoading } = chunkOD6O6TQI_cjs.useCopilot();
4929
4929
  const isLoadingMessagesRef = React8.useRef(false);
4930
4930
  const savingToThreadRef = React8.useRef(null);
4931
4931
  const lastSavedSnapshotRef = React8.useRef("");
@@ -5135,7 +5135,7 @@ function CopilotChat(props) {
5135
5135
  approveToolExecution,
5136
5136
  rejectToolExecution,
5137
5137
  registeredTools
5138
- } = chunk2IPWAEIC_cjs.useCopilot();
5138
+ } = chunkOD6O6TQI_cjs.useCopilot();
5139
5139
  const toolExecutions = rawToolExecutions.map(
5140
5140
  (exec) => ({
5141
5141
  id: exec.id,
package/dist/ui/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useCopilot, useThreadManager } from '../chunk-XPV4Y2CT.js';
1
+ import { useCopilot, useThreadManager } from '../chunk-6NJKNYYW.js';
2
2
  import { createServerAdapter } from '../chunk-CVD3X4MN.js';
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yourgpt/copilot-sdk",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "Build AI copilots with app context awareness",
5
5
  "type": "module",
6
6
  "exports": {