@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.
- package/dist/{chunk-XPV4Y2CT.js → chunk-6NJKNYYW.js} +15 -16
- package/dist/chunk-6NJKNYYW.js.map +1 -0
- package/dist/{chunk-2IPWAEIC.cjs → chunk-OD6O6TQI.cjs} +15 -16
- package/dist/chunk-OD6O6TQI.cjs.map +1 -0
- package/dist/react/index.cjs +37 -37
- package/dist/react/index.js +1 -1
- package/dist/ui/index.cjs +4 -4
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2IPWAEIC.cjs.map +0 -1
- package/dist/chunk-XPV4Y2CT.js.map +0 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
10
|
+
get: function () { return chunkOD6O6TQI_cjs.AbstractAgentLoop; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "AbstractChat", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkOD6O6TQI_cjs.AbstractChat; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CopilotProvider", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkOD6O6TQI_cjs.CopilotProvider; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ReactChat", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkOD6O6TQI_cjs.ReactChat; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ReactChatState", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkOD6O6TQI_cjs.ReactChatState; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "ReactThreadManager", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkOD6O6TQI_cjs.ReactThreadManager; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "ReactThreadManagerState", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkOD6O6TQI_cjs.ReactThreadManagerState; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "createPermissionStorage", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkOD6O6TQI_cjs.createPermissionStorage; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "createReactChat", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkOD6O6TQI_cjs.createReactChat; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "createReactChatState", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkOD6O6TQI_cjs.createReactChatState; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "createReactThreadManager", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkOD6O6TQI_cjs.createReactThreadManager; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "createReactThreadManagerState", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkOD6O6TQI_cjs.createReactThreadManagerState; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "createSessionPermissionCache", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkOD6O6TQI_cjs.createSessionPermissionCache; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkOD6O6TQI_cjs.formatKnowledgeResultsForAI; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "initialAgentLoopState", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkOD6O6TQI_cjs.initialAgentLoopState; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "searchKnowledgeBase", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkOD6O6TQI_cjs.searchKnowledgeBase; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "useAIAction", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkOD6O6TQI_cjs.useAIAction; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "useAIActions", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkOD6O6TQI_cjs.useAIActions; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "useAIContext", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkOD6O6TQI_cjs.useAIContext; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "useAIContexts", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkOD6O6TQI_cjs.useAIContexts; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "useAITools", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkOD6O6TQI_cjs.useAITools; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "useAgent", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkOD6O6TQI_cjs.useAgent; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "useCapabilities", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkOD6O6TQI_cjs.useCapabilities; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "useChat", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkOD6O6TQI_cjs.useChat; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "useCopilot", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkOD6O6TQI_cjs.useCopilot; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "useDevLogger", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkOD6O6TQI_cjs.useDevLogger; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "useFeatureSupport", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkOD6O6TQI_cjs.useFeatureSupport; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "useKnowledgeBase", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkOD6O6TQI_cjs.useKnowledgeBase; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "useSuggestions", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkOD6O6TQI_cjs.useSuggestions; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "useSupportedMediaTypes", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkOD6O6TQI_cjs.useSupportedMediaTypes; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "useThreadManager", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkOD6O6TQI_cjs.useThreadManager; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "useTool", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkOD6O6TQI_cjs.useTool; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "useToolExecutor", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkOD6O6TQI_cjs.useToolExecutor; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "useToolWithSchema", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkOD6O6TQI_cjs.useToolWithSchema; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "useTools", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkOD6O6TQI_cjs.useTools; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "useToolsWithSchema", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkOD6O6TQI_cjs.useToolsWithSchema; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "createLocalStorageAdapter", {
|
|
153
153
|
enumerable: true,
|
package/dist/react/index.js
CHANGED
|
@@ -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-
|
|
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
|
|
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 =
|
|
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 } =
|
|
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
|
-
} =
|
|
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-
|
|
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';
|