@copilotkit/shared 0.9.0-alpha.0 → 0.9.0-function-calling-fixes.2
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/.turbo/turbo-build.log +63 -59
- package/CHANGELOG.md +12 -0
- package/dist/constants/copilot-protocol.mjs +2 -3
- package/dist/constants/copilot-protocol.mjs.map +1 -1
- package/dist/constants/index.mjs +2 -4
- package/dist/constants/index.mjs.map +1 -1
- package/dist/index.mjs +497 -34
- package/dist/index.mjs.map +1 -1
- package/dist/types/action.mjs +0 -1
- package/dist/types/annotated-function.mjs +0 -1
- package/dist/types/index.mjs +0 -4
- package/dist/types/openai-assistant.mjs +0 -1
- package/dist/utils/annotated-function.mjs +153 -5
- package/dist/utils/annotated-function.mjs.map +1 -1
- package/dist/utils/decode-chat-completion-as-text.mjs +27 -3
- package/dist/utils/decode-chat-completion-as-text.mjs.map +1 -1
- package/dist/utils/decode-chat-completion.mjs +111 -3
- package/dist/utils/decode-chat-completion.mjs.map +1 -1
- package/dist/utils/index.mjs +494 -26
- package/dist/utils/index.mjs.map +1 -1
- package/dist/utils/parse-chat-completion.mjs +55 -3
- package/dist/utils/parse-chat-completion.mjs.map +1 -1
- package/dist/utils/utils.mjs +144 -11
- package/dist/utils/utils.mjs.map +1 -1
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
Debugger attached.
|
|
1
2
|
|
|
2
|
-
> @copilotkit/shared@0.
|
|
3
|
+
> @copilotkit/shared@0.9.0-function-calling-fixes.1 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit/CopilotKit/packages/shared
|
|
3
4
|
> tsup --clean
|
|
4
5
|
|
|
6
|
+
Debugger attached.
|
|
5
7
|
CLI Building entry: src/index.ts, src/constants/copilot-protocol.ts, src/constants/index.ts, src/types/action.ts, src/types/annotated-function.ts, src/types/index.ts, src/types/openai-assistant.ts, src/utils/annotated-function.ts, src/utils/decode-chat-completion-as-text.ts, src/utils/decode-chat-completion.ts, src/utils/index.ts, src/utils/parse-chat-completion.ts, src/utils/utils.test.ts, src/utils/utils.ts
|
|
6
8
|
CLI Using tsconfig: tsconfig.json
|
|
7
9
|
CLI tsup v6.7.0
|
|
@@ -10,90 +12,90 @@ CLI Target: node14
|
|
|
10
12
|
CLI Cleaning output folder
|
|
11
13
|
ESM Build start
|
|
12
14
|
CJS Build start
|
|
13
|
-
ESM dist/constants/index.mjs 187.00 B
|
|
14
|
-
ESM dist/types/annotated-function.mjs 79.00 B
|
|
15
|
-
ESM dist/utils/index.mjs 1001.00 B
|
|
16
15
|
ESM dist/utils/decode-chat-completion-as-text.mjs 170.00 B
|
|
16
|
+
ESM dist/utils/decode-chat-completion.mjs 150.00 B
|
|
17
17
|
ESM dist/utils/utils.test.mjs 170.00 B
|
|
18
|
+
ESM dist/utils/index.mjs 1001.00 B
|
|
18
19
|
ESM dist/utils/parse-chat-completion.mjs 147.00 B
|
|
19
|
-
ESM dist/chunk-UAPRMZEY.mjs 43.00 B
|
|
20
|
-
ESM dist/utils/utils.mjs 439.00 B
|
|
21
|
-
ESM dist/chunk-4MTSDAP6.mjs 729.00 B
|
|
22
|
-
ESM dist/chunk-2C54HQBI.mjs 4.92 KB
|
|
23
20
|
ESM dist/chunk-CBF2BIA7.mjs 3.62 KB
|
|
21
|
+
ESM dist/utils/utils.mjs 439.00 B
|
|
22
|
+
ESM dist/chunk-UAPRMZEY.mjs 43.00 B
|
|
24
23
|
ESM dist/index.mjs 1.23 KB
|
|
25
|
-
ESM dist/chunk-
|
|
26
|
-
ESM dist/
|
|
27
|
-
ESM dist/
|
|
28
|
-
ESM dist/
|
|
24
|
+
ESM dist/chunk-2C54HQBI.mjs 4.92 KB
|
|
25
|
+
ESM dist/chunk-4MTSDAP6.mjs 729.00 B
|
|
26
|
+
ESM dist/constants/copilot-protocol.mjs 166.00 B
|
|
27
|
+
ESM dist/types/index.mjs 162.00 B
|
|
28
|
+
ESM dist/types/annotated-function.mjs 79.00 B
|
|
29
|
+
ESM dist/constants/index.mjs 187.00 B
|
|
30
|
+
ESM dist/chunk-YBHX4Y25.mjs 43.00 B
|
|
31
|
+
ESM dist/utils/annotated-function.mjs 314.00 B
|
|
32
|
+
ESM dist/chunk-K7TZQSAZ.mjs 4.59 KB
|
|
29
33
|
ESM dist/chunk-DE5K76I2.mjs 43.00 B
|
|
34
|
+
ESM dist/chunk-3ZU7SB62.mjs 200.00 B
|
|
35
|
+
ESM dist/types/action.mjs 67.00 B
|
|
30
36
|
ESM dist/chunk-2M3YVRFS.mjs 43.00 B
|
|
31
|
-
ESM dist/chunk-
|
|
32
|
-
ESM dist/chunk-NAFEBKSO.mjs 43.00 B
|
|
33
|
-
ESM dist/types/openai-assistant.mjs 77.00 B
|
|
37
|
+
ESM dist/chunk-HW4V75UQ.mjs 1.63 KB
|
|
34
38
|
ESM dist/chunk-IAFBVORQ.mjs 43.00 B
|
|
35
|
-
ESM dist/
|
|
36
|
-
ESM dist/
|
|
37
|
-
ESM dist/constants/copilot-protocol.mjs 166.00 B
|
|
38
|
-
ESM dist/utils/annotated-function.mjs 314.00 B
|
|
39
|
-
ESM dist/constants/index.mjs.map 71.00 B
|
|
40
|
-
ESM dist/utils/index.mjs.map 71.00 B
|
|
41
|
-
ESM dist/types/annotated-function.mjs.map 71.00 B
|
|
39
|
+
ESM dist/types/openai-assistant.mjs 77.00 B
|
|
40
|
+
ESM dist/chunk-NAFEBKSO.mjs 43.00 B
|
|
42
41
|
ESM dist/utils/decode-chat-completion-as-text.mjs.map 71.00 B
|
|
42
|
+
ESM dist/utils/decode-chat-completion.mjs.map 71.00 B
|
|
43
43
|
ESM dist/utils/utils.test.mjs.map 352.00 B
|
|
44
|
-
ESM dist/
|
|
44
|
+
ESM dist/utils/index.mjs.map 71.00 B
|
|
45
45
|
ESM dist/utils/parse-chat-completion.mjs.map 71.00 B
|
|
46
|
-
ESM dist/chunk-4MTSDAP6.mjs.map 1.30 KB
|
|
47
|
-
ESM dist/chunk-HW4V75UQ.mjs.map 4.12 KB
|
|
48
46
|
ESM dist/chunk-CBF2BIA7.mjs.map 7.21 KB
|
|
49
|
-
ESM dist/utils/utils.mjs.map 71.00 B
|
|
50
|
-
ESM dist/chunk-3ZU7SB62.mjs.map 214.00 B
|
|
51
47
|
ESM dist/index.mjs.map 71.00 B
|
|
52
|
-
ESM dist/
|
|
53
|
-
ESM dist/chunk-NAFEBKSO.mjs.map 71.00 B
|
|
54
|
-
ESM dist/chunk-YBHX4Y25.mjs.map 71.00 B
|
|
55
|
-
ESM dist/types/openai-assistant.mjs.map 71.00 B
|
|
48
|
+
ESM dist/constants/copilot-protocol.mjs.map 71.00 B
|
|
56
49
|
ESM dist/chunk-2C54HQBI.mjs.map 12.00 KB
|
|
57
|
-
ESM dist/chunk-DE5K76I2.mjs.map 71.00 B
|
|
58
|
-
ESM dist/utils/decode-chat-completion.mjs.map 71.00 B
|
|
59
|
-
ESM dist/chunk-2M3YVRFS.mjs.map 71.00 B
|
|
60
50
|
ESM dist/types/index.mjs.map 71.00 B
|
|
51
|
+
ESM dist/types/annotated-function.mjs.map 71.00 B
|
|
52
|
+
ESM dist/chunk-YBHX4Y25.mjs.map 71.00 B
|
|
53
|
+
ESM dist/utils/annotated-function.mjs.map 71.00 B
|
|
61
54
|
ESM dist/chunk-K7TZQSAZ.mjs.map 8.35 KB
|
|
55
|
+
ESM dist/chunk-UAPRMZEY.mjs.map 71.00 B
|
|
56
|
+
ESM dist/chunk-DE5K76I2.mjs.map 71.00 B
|
|
57
|
+
ESM dist/chunk-3ZU7SB62.mjs.map 214.00 B
|
|
58
|
+
ESM dist/types/action.mjs.map 71.00 B
|
|
59
|
+
ESM dist/chunk-2M3YVRFS.mjs.map 71.00 B
|
|
60
|
+
ESM dist/chunk-HW4V75UQ.mjs.map 4.12 KB
|
|
61
|
+
ESM dist/utils/utils.mjs.map 71.00 B
|
|
62
|
+
ESM dist/chunk-4MTSDAP6.mjs.map 1.30 KB
|
|
63
|
+
ESM dist/types/openai-assistant.mjs.map 71.00 B
|
|
64
|
+
ESM dist/constants/index.mjs.map 71.00 B
|
|
65
|
+
ESM dist/chunk-NAFEBKSO.mjs.map 71.00 B
|
|
62
66
|
ESM dist/chunk-IAFBVORQ.mjs.map 71.00 B
|
|
63
|
-
ESM
|
|
64
|
-
ESM dist/utils/annotated-function.mjs.map 71.00 B
|
|
65
|
-
ESM ⚡️ Build success in 21ms
|
|
67
|
+
ESM ⚡️ Build success in 55ms
|
|
66
68
|
CJS dist/index.js 17.20 KB
|
|
67
|
-
CJS dist/
|
|
68
|
-
CJS dist/
|
|
69
|
-
CJS dist/utils/utils.test.js 184.00 B
|
|
70
|
-
CJS dist/utils/parse-chat-completion.js 2.68 KB
|
|
71
|
-
CJS dist/utils/decode-chat-completion.js 4.68 KB
|
|
72
|
-
CJS dist/utils/index.js 16.99 KB
|
|
73
|
-
CJS dist/utils/decode-chat-completion-as-text.js 1.82 KB
|
|
69
|
+
CJS dist/types/action.js 801.00 B
|
|
70
|
+
CJS dist/constants/index.js 1.25 KB
|
|
74
71
|
CJS dist/constants/copilot-protocol.js 1.25 KB
|
|
72
|
+
CJS dist/types/openai-assistant.js 841.00 B
|
|
75
73
|
CJS dist/types/annotated-function.js 849.00 B
|
|
74
|
+
CJS dist/utils/decode-chat-completion.js 4.68 KB
|
|
76
75
|
CJS dist/types/index.js 797.00 B
|
|
77
|
-
CJS dist/
|
|
78
|
-
CJS dist/
|
|
79
|
-
CJS dist/
|
|
80
|
-
CJS dist/
|
|
81
|
-
CJS dist/utils/
|
|
82
|
-
CJS dist/utils/
|
|
83
|
-
CJS dist/utils/utils.test.js.map 354.00 B
|
|
84
|
-
CJS dist/utils/parse-chat-completion.js.map 4.17 KB
|
|
85
|
-
CJS dist/utils/decode-chat-completion.js.map 7.26 KB
|
|
86
|
-
CJS dist/utils/index.js.map 33.08 KB
|
|
87
|
-
CJS dist/utils/decode-chat-completion-as-text.js.map 1.34 KB
|
|
88
|
-
CJS dist/constants/copilot-protocol.js.map 261.00 B
|
|
76
|
+
CJS dist/utils/index.js 16.99 KB
|
|
77
|
+
CJS dist/utils/utils.js 6.25 KB
|
|
78
|
+
CJS dist/utils/utils.test.js 184.00 B
|
|
79
|
+
CJS dist/utils/annotated-function.js 5.81 KB
|
|
80
|
+
CJS dist/utils/decode-chat-completion-as-text.js 1.82 KB
|
|
81
|
+
CJS dist/utils/parse-chat-completion.js 2.68 KB
|
|
89
82
|
CJS dist/constants/index.js.map 336.00 B
|
|
83
|
+
CJS dist/constants/copilot-protocol.js.map 261.00 B
|
|
84
|
+
CJS dist/types/openai-assistant.js.map 2.86 KB
|
|
85
|
+
CJS dist/utils/decode-chat-completion.js.map 7.26 KB
|
|
90
86
|
CJS dist/types/annotated-function.js.map 871.00 B
|
|
91
87
|
CJS dist/types/index.js.map 234.00 B
|
|
92
|
-
CJS dist/
|
|
88
|
+
CJS dist/utils/index.js.map 33.08 KB
|
|
89
|
+
CJS dist/utils/utils.test.js.map 354.00 B
|
|
90
|
+
CJS dist/utils/decode-chat-completion-as-text.js.map 1.34 KB
|
|
91
|
+
CJS dist/index.js.map 33.09 KB
|
|
93
92
|
CJS dist/types/action.js.map 4.59 KB
|
|
94
|
-
CJS
|
|
93
|
+
CJS dist/utils/parse-chat-completion.js.map 4.17 KB
|
|
94
|
+
CJS dist/utils/utils.js.map 12.08 KB
|
|
95
|
+
CJS dist/utils/annotated-function.js.map 8.41 KB
|
|
96
|
+
CJS ⚡️ Build success in 57ms
|
|
95
97
|
DTS Build start
|
|
96
|
-
DTS ⚡️ Build success in
|
|
98
|
+
DTS ⚡️ Build success in 1211ms
|
|
97
99
|
DTS dist/index.d.ts 1.31 KB
|
|
98
100
|
DTS dist/types/openai-assistant.d.ts 2.79 KB
|
|
99
101
|
DTS dist/types/annotated-function.d.ts 766.00 B
|
|
@@ -108,3 +110,5 @@ DTS dist/constants/index.d.ts 73.00 B
|
|
|
108
110
|
DTS dist/types/index.d.ts 428.00 B
|
|
109
111
|
DTS dist/utils/index.d.ts 892.00 B
|
|
110
112
|
DTS dist/utils/utils.test.d.ts 12.00 B
|
|
113
|
+
Waiting for the debugger to disconnect...
|
|
114
|
+
Waiting for the debugger to disconnect...
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @copilotkit/shared
|
|
2
2
|
|
|
3
|
+
## 0.9.0-function-calling-fixes.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fix backend function calling return values
|
|
8
|
+
|
|
9
|
+
## 0.9.0-function-calling-fixes.1
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- gpt-4-turbo-april-2024 function calling fixes
|
|
14
|
+
|
|
3
15
|
## 0.9.0-alpha.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/constants/copilot-protocol.ts"],"sourcesContent":["export const EXCLUDE_FROM_FORWARD_PROPS_KEYS = \"exclude_from_forward_props_keys\";\n"],"mappings":";AAAO,IAAM,kCAAkC;","names":[]}
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
EXCLUDE_FROM_FORWARD_PROPS_KEYS
|
|
4
|
-
} from "../chunk-3ZU7SB62.mjs";
|
|
1
|
+
// src/constants/copilot-protocol.ts
|
|
2
|
+
var EXCLUDE_FROM_FORWARD_PROPS_KEYS = "exclude_from_forward_props_keys";
|
|
5
3
|
export {
|
|
6
4
|
EXCLUDE_FROM_FORWARD_PROPS_KEYS
|
|
7
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/constants/copilot-protocol.ts"],"sourcesContent":["export const EXCLUDE_FROM_FORWARD_PROPS_KEYS = \"exclude_from_forward_props_keys\";\n"],"mappings":";AAAO,IAAM,kCAAkC;","names":[]}
|