@copilotkit/shared 0.8.0-mme-fix-esm-error.2 → 0.8.0-mme-esm-error.1

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,5 +1,5 @@
1
1
 
2
- > @copilotkit/shared@0.8.0-mme-fix-esm-error.2 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/shared
2
+ > @copilotkit/shared@0.8.0-mme-esm-error.1 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/shared
3
3
  > tsup --clean
4
4
 
5
5
  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
@@ -10,47 +10,23 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 16.94 KB
14
- CJS dist/constants/copilot-protocol.js 1.25 KB
15
- CJS dist/constants/index.js 1.25 KB
16
- CJS dist/types/action.js 801.00 B
17
- CJS dist/types/annotated-function.js 849.00 B
18
- CJS dist/types/index.js 797.00 B
19
- CJS dist/types/openai-assistant.js 841.00 B
20
- CJS dist/utils/annotated-function.js 5.81 KB
21
- CJS dist/utils/decode-chat-completion-as-text.js 1.82 KB
22
- CJS dist/utils/decode-chat-completion.js 4.42 KB
23
- CJS dist/utils/index.js 16.74 KB
24
- CJS dist/utils/parse-chat-completion.js 2.68 KB
25
- CJS dist/utils/utils.test.js 184.00 B
26
- CJS dist/utils/utils.js 6.25 KB
27
- CJS dist/index.js.map 32.70 KB
28
- CJS dist/constants/copilot-protocol.js.map 261.00 B
29
- CJS dist/constants/index.js.map 336.00 B
30
- CJS dist/types/action.js.map 4.59 KB
31
- CJS dist/types/annotated-function.js.map 871.00 B
32
- CJS dist/types/index.js.map 234.00 B
33
- CJS dist/types/openai-assistant.js.map 2.86 KB
34
- CJS dist/utils/annotated-function.js.map 8.41 KB
35
- CJS dist/utils/decode-chat-completion-as-text.js.map 1.34 KB
36
- CJS dist/utils/decode-chat-completion.js.map 6.89 KB
37
- CJS dist/utils/index.js.map 32.70 KB
38
- CJS dist/utils/parse-chat-completion.js.map 4.15 KB
39
- CJS dist/utils/utils.test.js.map 354.00 B
40
- CJS dist/utils/utils.js.map 12.08 KB
41
- CJS ⚡️ Build success in 69ms
42
- ESM dist/index.mjs 1.23 KB
43
- ESM dist/constants/copilot-protocol.mjs 166.00 B
44
- ESM dist/types/action.mjs 67.00 B
45
- ESM dist/utils/annotated-function.mjs 314.00 B
13
+ ESM dist/utils/decode-chat-completion-as-text.mjs 170.00 B
14
+ ESM dist/utils/decode-chat-completion.mjs 150.00 B
15
+ ESM dist/utils/index.mjs 1001.00 B
16
+ ESM dist/utils/parse-chat-completion.mjs 147.00 B
17
+ ESM dist/utils/utils.test.mjs 170.00 B
18
+ ESM dist/utils/utils.mjs 439.00 B
46
19
  ESM dist/chunk-UAPRMZEY.mjs 43.00 B
20
+ ESM dist/index.mjs 1.23 KB
47
21
  ESM dist/chunk-4MTSDAP6.mjs 729.00 B
48
22
  ESM dist/chunk-NKEDWRKJ.mjs 3.36 KB
49
23
  ESM dist/chunk-TYZD5BQY.mjs 1.63 KB
50
24
  ESM dist/chunk-2C54HQBI.mjs 4.92 KB
25
+ ESM dist/constants/copilot-protocol.mjs 166.00 B
51
26
  ESM dist/constants/index.mjs 187.00 B
52
27
  ESM dist/chunk-2M3YVRFS.mjs 43.00 B
53
28
  ESM dist/chunk-3ZU7SB62.mjs 200.00 B
29
+ ESM dist/types/action.mjs 67.00 B
54
30
  ESM dist/types/annotated-function.mjs 79.00 B
55
31
  ESM dist/types/index.mjs 162.00 B
56
32
  ESM dist/chunk-DE5K76I2.mjs 43.00 B
@@ -59,24 +35,24 @@
59
35
  ESM dist/types/openai-assistant.mjs 77.00 B
60
36
  ESM dist/chunk-IAFBVORQ.mjs 43.00 B
61
37
  ESM dist/chunk-K7TZQSAZ.mjs 4.59 KB
62
- ESM dist/utils/decode-chat-completion-as-text.mjs 170.00 B
63
- ESM dist/utils/decode-chat-completion.mjs 150.00 B
64
- ESM dist/utils/index.mjs 1001.00 B
65
- ESM dist/utils/parse-chat-completion.mjs 147.00 B
66
- ESM dist/utils/utils.test.mjs 170.00 B
67
- ESM dist/utils/utils.mjs 439.00 B
68
- ESM dist/index.mjs.map 71.00 B
69
- ESM dist/constants/copilot-protocol.mjs.map 71.00 B
70
- ESM dist/types/action.mjs.map 71.00 B
71
- ESM dist/utils/annotated-function.mjs.map 71.00 B
38
+ ESM dist/utils/annotated-function.mjs 314.00 B
39
+ ESM dist/utils/decode-chat-completion-as-text.mjs.map 71.00 B
40
+ ESM dist/utils/decode-chat-completion.mjs.map 71.00 B
41
+ ESM dist/utils/index.mjs.map 71.00 B
42
+ ESM dist/utils/parse-chat-completion.mjs.map 71.00 B
43
+ ESM dist/utils/utils.test.mjs.map 352.00 B
44
+ ESM dist/utils/utils.mjs.map 71.00 B
72
45
  ESM dist/chunk-UAPRMZEY.mjs.map 71.00 B
46
+ ESM dist/index.mjs.map 71.00 B
73
47
  ESM dist/chunk-4MTSDAP6.mjs.map 1.30 KB
74
48
  ESM dist/chunk-NKEDWRKJ.mjs.map 6.85 KB
75
49
  ESM dist/chunk-TYZD5BQY.mjs.map 4.10 KB
76
50
  ESM dist/chunk-2C54HQBI.mjs.map 12.00 KB
51
+ ESM dist/constants/copilot-protocol.mjs.map 71.00 B
77
52
  ESM dist/constants/index.mjs.map 71.00 B
78
53
  ESM dist/chunk-2M3YVRFS.mjs.map 71.00 B
79
54
  ESM dist/chunk-3ZU7SB62.mjs.map 214.00 B
55
+ ESM dist/types/action.mjs.map 71.00 B
80
56
  ESM dist/types/annotated-function.mjs.map 71.00 B
81
57
  ESM dist/types/index.mjs.map 71.00 B
82
58
  ESM dist/chunk-DE5K76I2.mjs.map 71.00 B
@@ -85,15 +61,39 @@
85
61
  ESM dist/types/openai-assistant.mjs.map 71.00 B
86
62
  ESM dist/chunk-IAFBVORQ.mjs.map 71.00 B
87
63
  ESM dist/chunk-K7TZQSAZ.mjs.map 8.35 KB
88
- ESM dist/utils/decode-chat-completion-as-text.mjs.map 71.00 B
89
- ESM dist/utils/decode-chat-completion.mjs.map 71.00 B
90
- ESM dist/utils/index.mjs.map 71.00 B
91
- ESM dist/utils/parse-chat-completion.mjs.map 71.00 B
92
- ESM dist/utils/utils.test.mjs.map 352.00 B
93
- ESM dist/utils/utils.mjs.map 71.00 B
94
- ESM ⚡️ Build success in 72ms
64
+ ESM dist/utils/annotated-function.mjs.map 71.00 B
65
+ ESM ⚡️ Build success in 75ms
66
+ CJS dist/index.js 16.94 KB
67
+ CJS dist/constants/index.js 1.25 KB
68
+ CJS dist/types/action.js 801.00 B
69
+ CJS dist/utils/annotated-function.js 5.81 KB
70
+ CJS dist/types/annotated-function.js 849.00 B
71
+ CJS dist/types/index.js 797.00 B
72
+ CJS dist/types/openai-assistant.js 841.00 B
73
+ CJS dist/utils/decode-chat-completion-as-text.js 1.82 KB
74
+ CJS dist/utils/decode-chat-completion.js 4.42 KB
75
+ CJS dist/utils/index.js 16.74 KB
76
+ CJS dist/utils/parse-chat-completion.js 2.68 KB
77
+ CJS dist/utils/utils.test.js 184.00 B
78
+ CJS dist/utils/utils.js 6.25 KB
79
+ CJS dist/constants/copilot-protocol.js 1.25 KB
80
+ CJS dist/index.js.map 32.70 KB
81
+ CJS dist/constants/index.js.map 336.00 B
82
+ CJS dist/types/action.js.map 4.59 KB
83
+ CJS dist/utils/annotated-function.js.map 8.41 KB
84
+ CJS dist/types/annotated-function.js.map 871.00 B
85
+ CJS dist/types/index.js.map 234.00 B
86
+ CJS dist/types/openai-assistant.js.map 2.86 KB
87
+ CJS dist/utils/decode-chat-completion-as-text.js.map 1.34 KB
88
+ CJS dist/utils/decode-chat-completion.js.map 6.89 KB
89
+ CJS dist/utils/index.js.map 32.70 KB
90
+ CJS dist/utils/parse-chat-completion.js.map 4.15 KB
91
+ CJS dist/utils/utils.test.js.map 354.00 B
92
+ CJS dist/utils/utils.js.map 12.08 KB
93
+ CJS dist/constants/copilot-protocol.js.map 261.00 B
94
+ CJS ⚡️ Build success in 78ms
95
95
  DTS Build start
96
- DTS ⚡️ Build success in 2183ms
96
+ DTS ⚡️ Build success in 2174ms
97
97
  DTS dist/index.d.ts 1.27 KB
98
98
  DTS dist/types/openai-assistant.d.ts 2.79 KB
99
99
  DTS dist/types/annotated-function.d.ts 766.00 B
package/CHANGELOG.md CHANGED
@@ -1,29 +1,17 @@
1
1
  # @copilotkit/shared
2
2
 
3
- ## 0.8.0-mme-fix-esm-error.2
3
+ ## 0.8.0-mme-esm-error.1
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - ESM by default
7
+ - declare esm/cjs/types in export
8
8
 
9
- ## 0.8.0-mme-fix-esm-error.1
9
+ ## 0.8.0-mme-esm-error.0
10
10
 
11
11
  ### Minor Changes
12
12
 
13
13
  - ESM by default
14
14
 
15
- ## 0.8.0-mme-fix-esm-error.0
16
-
17
- ### Minor Changes
18
-
19
- - Use esm by default
20
-
21
- ## 0.8.0-mme-fix-esm-error.0
22
-
23
- ### Minor Changes
24
-
25
- - Add distinct exports for cjs and esm
26
-
27
15
  ## 0.7.0
28
16
 
29
17
  ### Minor Changes
package/package.json CHANGED
@@ -4,12 +4,16 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.8.0-mme-fix-esm-error.2",
7
+ "version": "0.8.0-mme-esm-error.1",
8
8
  "sideEffects": false,
9
9
  "main": "./dist/index.js",
10
10
  "module": "./dist/index.mjs",
11
11
  "exports": {
12
- ".": "./dist/index.mjs"
12
+ ".": {
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.js",
15
+ "types": "./dist/index.d.ts"
16
+ }
13
17
  },
14
18
  "types": "./dist/index.d.ts",
15
19
  "license": "MIT",
@@ -21,8 +25,8 @@
21
25
  "ts-jest": "^29.1.1",
22
26
  "tsup": "^6.7.0",
23
27
  "typescript": "^5.2.3",
24
- "eslint-config-custom": "0.9.0-mme-fix-esm-error.3",
25
- "tsconfig": "0.13.0-mme-fix-esm-error.3"
28
+ "eslint-config-custom": "0.9.0-mme-esm-error.1",
29
+ "tsconfig": "0.13.0-mme-esm-error.1"
26
30
  },
27
31
  "dependencies": {},
28
32
  "scripts": {