@yourgpt/copilot-sdk 1.4.2 → 1.4.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.
- package/dist/{chunk-B3FE7HDI.js → chunk-ILVX5S3Y.js} +20 -4
- package/dist/chunk-ILVX5S3Y.js.map +1 -0
- package/dist/{chunk-ZR4YXLCM.cjs → chunk-N24PPVNQ.cjs} +20 -4
- package/dist/chunk-N24PPVNQ.cjs.map +1 -0
- package/dist/react/index.cjs +37 -37
- package/dist/react/index.d.cts +1 -0
- package/dist/react/index.d.ts +1 -0
- 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-B3FE7HDI.js.map +0 -1
- package/dist/chunk-ZR4YXLCM.cjs.map +0 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN24PPVNQ_cjs = require('../chunk-N24PPVNQ.cjs');
|
|
4
4
|
var chunkCVKN4H62_cjs = require('../chunk-CVKN4H62.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 chunkN24PPVNQ_cjs.AbstractAgentLoop; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "AbstractChat", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkN24PPVNQ_cjs.AbstractChat; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CopilotProvider", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkN24PPVNQ_cjs.CopilotProvider; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ReactChat", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkN24PPVNQ_cjs.ReactChat; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ReactChatState", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkN24PPVNQ_cjs.ReactChatState; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "ReactThreadManager", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkN24PPVNQ_cjs.ReactThreadManager; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "ReactThreadManagerState", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkN24PPVNQ_cjs.ReactThreadManagerState; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "createPermissionStorage", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkN24PPVNQ_cjs.createPermissionStorage; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "createReactChat", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkN24PPVNQ_cjs.createReactChat; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "createReactChatState", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkN24PPVNQ_cjs.createReactChatState; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "createReactThreadManager", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkN24PPVNQ_cjs.createReactThreadManager; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "createReactThreadManagerState", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkN24PPVNQ_cjs.createReactThreadManagerState; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "createSessionPermissionCache", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkN24PPVNQ_cjs.createSessionPermissionCache; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkN24PPVNQ_cjs.formatKnowledgeResultsForAI; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "initialAgentLoopState", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkN24PPVNQ_cjs.initialAgentLoopState; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "searchKnowledgeBase", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkN24PPVNQ_cjs.searchKnowledgeBase; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "useAIAction", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkN24PPVNQ_cjs.useAIAction; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "useAIActions", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkN24PPVNQ_cjs.useAIActions; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "useAIContext", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkN24PPVNQ_cjs.useAIContext; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "useAIContexts", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkN24PPVNQ_cjs.useAIContexts; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "useAITools", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkN24PPVNQ_cjs.useAITools; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "useAgent", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkN24PPVNQ_cjs.useAgent; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "useCapabilities", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkN24PPVNQ_cjs.useCapabilities; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "useChat", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkN24PPVNQ_cjs.useChat; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "useCopilot", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkN24PPVNQ_cjs.useCopilot; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "useDevLogger", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkN24PPVNQ_cjs.useDevLogger; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "useFeatureSupport", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkN24PPVNQ_cjs.useFeatureSupport; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "useKnowledgeBase", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkN24PPVNQ_cjs.useKnowledgeBase; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "useSuggestions", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkN24PPVNQ_cjs.useSuggestions; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "useSupportedMediaTypes", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkN24PPVNQ_cjs.useSupportedMediaTypes; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "useThreadManager", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkN24PPVNQ_cjs.useThreadManager; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "useTool", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkN24PPVNQ_cjs.useTool; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "useToolExecutor", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkN24PPVNQ_cjs.useToolExecutor; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "useToolWithSchema", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkN24PPVNQ_cjs.useToolWithSchema; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "useTools", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkN24PPVNQ_cjs.useTools; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "useToolsWithSchema", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkN24PPVNQ_cjs.useToolsWithSchema; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "createLocalStorageAdapter", {
|
|
153
153
|
enumerable: true,
|
package/dist/react/index.d.cts
CHANGED
package/dist/react/index.d.ts
CHANGED
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-ILVX5S3Y.js';
|
|
2
2
|
export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-55EABH45.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 chunkN24PPVNQ_cjs = require('../chunk-N24PPVNQ.cjs');
|
|
4
4
|
var chunkCVKN4H62_cjs = require('../chunk-CVKN4H62.cjs');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var tailwindMerge = require('tailwind-merge');
|
|
@@ -5133,7 +5133,7 @@ function useInternalThreadManager(config = {}) {
|
|
|
5133
5133
|
saveDebounce,
|
|
5134
5134
|
autoRestoreLastThread
|
|
5135
5135
|
};
|
|
5136
|
-
const threadManager =
|
|
5136
|
+
const threadManager = chunkN24PPVNQ_cjs.useThreadManager(threadManagerConfig);
|
|
5137
5137
|
const {
|
|
5138
5138
|
currentThread,
|
|
5139
5139
|
currentThreadId,
|
|
@@ -5143,7 +5143,7 @@ function useInternalThreadManager(config = {}) {
|
|
|
5143
5143
|
clearCurrentThread,
|
|
5144
5144
|
refreshThreads
|
|
5145
5145
|
} = threadManager;
|
|
5146
|
-
const { messages, setMessages, status, isLoading } =
|
|
5146
|
+
const { messages, setMessages, status, isLoading } = chunkN24PPVNQ_cjs.useCopilot();
|
|
5147
5147
|
const isLoadingMessagesRef = React18.useRef(false);
|
|
5148
5148
|
const savingToThreadRef = React18.useRef(null);
|
|
5149
5149
|
const lastSavedSnapshotRef = React18.useRef("");
|
|
@@ -5354,7 +5354,7 @@ function CopilotChatBase(props) {
|
|
|
5354
5354
|
approveToolExecution,
|
|
5355
5355
|
rejectToolExecution,
|
|
5356
5356
|
registeredTools
|
|
5357
|
-
} =
|
|
5357
|
+
} = chunkN24PPVNQ_cjs.useCopilot();
|
|
5358
5358
|
const toolExecutions = rawToolExecutions.map(
|
|
5359
5359
|
(exec) => ({
|
|
5360
5360
|
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-ILVX5S3Y.js';
|
|
2
2
|
import { createServerAdapter } from '../chunk-55EABH45.js';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|