@copilotkit/react-textarea 0.35.0-mme-cloud.4 → 0.35.0-mme-cloud.6

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,8 +1,8 @@
1
1
 
2
- > @copilotkit/react-textarea@0.35.0-mme-cloud.4 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-textarea
2
+ > @copilotkit/react-textarea@0.35.0-mme-cloud.6 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-textarea
3
3
  > tsup --clean
4
4
 
5
- CLI Building entry: src/index.tsx, src/components/index.ts, src/context/index.ts, src/hooks/index.ts, src/lib/debouncer.ts, src/lib/editor-to-text.ts, src/lib/get-text-around-cursor.ts, src/lib/retry.tsx, src/lib/stream-promise-flatten.ts, src/lib/utils.test.ts, src/lib/utils.ts, src/types/html-copilot-textarea-element.ts, src/types/index.ts, src/components/base-copilot-textarea/base-copilot-textarea.tsx, src/components/base-copilot-textarea/render-element.tsx, src/components/base-copilot-textarea/render-placeholder.tsx, src/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.tsx, src/components/base-copilot-textarea/use-add-branding-css.tsx, src/components/copilot-textarea/copilot-textarea.tsx, src/components/hovering-toolbar/hovering-editor-provider.tsx, src/components/hovering-toolbar/hovering-toolbar-components.tsx, src/components/hovering-toolbar/hovering-toolbar.tsx, src/components/manual-ui/chip-with-icon.tsx, src/components/source-search-box/source-search-box.tsx, src/components/ui/button.tsx, src/components/ui/card.tsx, src/components/ui/command.tsx, src/components/ui/dialog.tsx, src/components/ui/label.tsx, src/components/ui/separator.tsx, src/components/ui/textarea.tsx, src/hooks/base-copilot-textarea-implementation/use-autosuggestions.ts, src/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.tsx, src/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.ts, src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx, src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx, src/hooks/misc/use-autosize-textarea.tsx, src/lib/slatejs-edits/add-autocompletions.ts, src/lib/slatejs-edits/clear-autocompletions.ts, src/lib/slatejs-edits/replace-text.ts, src/lib/slatejs-edits/with-partial-history.ts, src/types/autosuggestions-config/autosuggestions-config-user-specified.tsx, src/types/autosuggestions-config/autosuggestions-config.tsx, src/types/autosuggestions-config/editing-api-config.tsx, src/types/autosuggestions-config/index.ts, src/types/autosuggestions-config/insertions-api-config.tsx, src/types/autosuggestions-config/suggestions-api-config.tsx, src/types/base/autosuggestion-state.ts, src/types/base/autosuggestions-bare-function.ts, src/types/base/base-autosuggestions-config.tsx, src/types/base/base-copilot-textarea-props.tsx, src/types/base/custom-editor.tsx, src/types/base/editor-autocomplete-state.ts, src/types/base/index.ts, src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/index.ts, src/types/autosuggestions-config/subtypes/make-system-prompt.ts, src/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.tsx
5
+ CLI Building entry: src/index.tsx, src/context/index.ts, src/components/index.ts, src/hooks/index.ts, src/lib/debouncer.ts, src/lib/editor-to-text.ts, src/lib/get-text-around-cursor.ts, src/lib/retry.tsx, src/lib/stream-promise-flatten.ts, src/lib/utils.test.ts, src/lib/utils.ts, src/types/html-copilot-textarea-element.ts, src/types/index.ts, src/components/base-copilot-textarea/base-copilot-textarea.tsx, src/components/base-copilot-textarea/render-element.tsx, src/components/base-copilot-textarea/render-placeholder.tsx, src/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.tsx, src/components/base-copilot-textarea/use-add-branding-css.tsx, src/components/copilot-textarea/copilot-textarea.tsx, src/components/hovering-toolbar/hovering-editor-provider.tsx, src/components/hovering-toolbar/hovering-toolbar-components.tsx, src/components/hovering-toolbar/hovering-toolbar.tsx, src/components/manual-ui/chip-with-icon.tsx, src/components/source-search-box/source-search-box.tsx, src/components/ui/button.tsx, src/components/ui/card.tsx, src/components/ui/command.tsx, src/components/ui/dialog.tsx, src/components/ui/label.tsx, src/components/ui/separator.tsx, src/components/ui/textarea.tsx, src/hooks/base-copilot-textarea-implementation/use-autosuggestions.ts, src/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.tsx, src/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.ts, src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx, src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx, src/hooks/misc/use-autosize-textarea.tsx, src/lib/slatejs-edits/add-autocompletions.ts, src/lib/slatejs-edits/clear-autocompletions.ts, src/lib/slatejs-edits/replace-text.ts, src/lib/slatejs-edits/with-partial-history.ts, src/types/autosuggestions-config/autosuggestions-config-user-specified.tsx, src/types/autosuggestions-config/autosuggestions-config.tsx, src/types/autosuggestions-config/editing-api-config.tsx, src/types/autosuggestions-config/index.ts, src/types/autosuggestions-config/insertions-api-config.tsx, src/types/autosuggestions-config/suggestions-api-config.tsx, src/types/base/autosuggestion-state.ts, src/types/base/autosuggestions-bare-function.ts, src/types/base/base-autosuggestions-config.tsx, src/types/base/base-copilot-textarea-props.tsx, src/types/base/custom-editor.tsx, src/types/base/editor-autocomplete-state.ts, src/types/base/index.ts, src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.tsx, src/components/hovering-toolbar/text-insertion-prompt-box/index.ts, src/types/autosuggestions-config/subtypes/make-system-prompt.ts, src/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.tsx
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v6.7.0
8
8
  CLI Using tsup config: /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-textarea/tsup.config.ts
@@ -19,17 +19,18 @@ Browserslist: caniuse-lite is outdated. Please run:
19
19
  warn - https://tailwindcss.com/docs/upgrade-guide#configure-content-sources
20
20
  DTS Build start
21
21
  ESM dist/index.mjs 1.76 KB
22
- ESM dist/components/index.mjs 1.52 KB
23
22
  ESM dist/context/index.mjs 66.00 B
23
+ ESM dist/components/index.mjs 1.52 KB
24
24
  ESM dist/hooks/index.mjs 66.00 B
25
25
  ESM dist/lib/debouncer.mjs 147.00 B
26
26
  ESM dist/components/copilot-textarea/copilot-textarea.css 253.00 B
27
27
  ESM dist/components/base-copilot-textarea/base-copilot-textarea.css 258.00 B
28
28
  ESM dist/chunk-DE5K76I2.mjs 43.00 B
29
29
  ESM dist/chunk-WADHCMPK.mjs 43.00 B
30
+ ESM dist/chunk-IU3WTXLQ.mjs 43.00 B
30
31
  ESM dist/chunk-MMVDU6DF.mjs 43.00 B
31
- ESM dist/chunk-HWM2CVKO.mjs 1.88 KB
32
- ESM dist/chunk-RT4UTBH3.mjs 2.09 KB
32
+ ESM dist/chunk-PQIOU3E5.mjs 1.88 KB
33
+ ESM dist/chunk-SJ2TM5GA.mjs 2.34 KB
33
34
  ESM dist/chunk-QCPS6IYI.mjs 3.85 KB
34
35
  ESM dist/chunk-RUV6NBIF.mjs 43.00 B
35
36
  ESM dist/chunk-DKE57EAC.mjs 919.00 B
@@ -66,7 +67,6 @@ Browserslist: caniuse-lite is outdated. Please run:
66
67
  ESM dist/chunk-LCDTIJSD.mjs 905.00 B
67
68
  ESM dist/chunk-224UKA7C.mjs 1.13 KB
68
69
  ESM dist/chunk-XW3ICO4S.mjs 688.00 B
69
- ESM dist/chunk-IU3WTXLQ.mjs 43.00 B
70
70
  ESM dist/chunk-H4VKQGVU.mjs 43.00 B
71
71
  ESM dist/chunk-DFTV4TST.mjs 931.00 B
72
72
  ESM dist/lib/editor-to-text.mjs 158.00 B
@@ -111,9 +111,6 @@ Browserslist: caniuse-lite is outdated. Please run:
111
111
  ESM dist/components/ui/command.mjs 485.00 B
112
112
  ESM dist/components/ui/dialog.mjs 383.00 B
113
113
  ESM dist/components/ui/label.mjs 176.00 B
114
- ESM dist/components/ui/separator.mjs 921.00 B
115
- ESM dist/components/ui/textarea.mjs 886.00 B
116
- ESM dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs 286.00 B
117
114
  ESM dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.mjs 282.00 B
118
115
  ESM dist/components/base-copilot-textarea/use-add-branding-css.mjs 180.00 B
119
116
  ESM dist/components/copilot-textarea/copilot-textarea.mjs 1.57 KB
@@ -128,9 +125,12 @@ Browserslist: caniuse-lite is outdated. Please run:
128
125
  ESM dist/components/base-copilot-textarea/base-copilot-textarea.mjs 1.27 KB
129
126
  ESM dist/components/base-copilot-textarea/render-element.mjs 190.00 B
130
127
  ESM dist/components/base-copilot-textarea/render-placeholder.mjs 202.00 B
128
+ ESM dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs 286.00 B
129
+ ESM dist/components/ui/separator.mjs 921.00 B
130
+ ESM dist/components/ui/textarea.mjs 886.00 B
131
131
  ESM dist/index.mjs.map 71.00 B
132
- ESM dist/components/index.mjs.map 71.00 B
133
132
  ESM dist/context/index.mjs.map 71.00 B
133
+ ESM dist/components/index.mjs.map 71.00 B
134
134
  ESM dist/hooks/index.mjs.map 71.00 B
135
135
  ESM dist/lib/debouncer.mjs.map 71.00 B
136
136
  ESM dist/components/copilot-textarea/copilot-textarea.css.map 432.00 B
@@ -138,9 +138,10 @@ Browserslist: caniuse-lite is outdated. Please run:
138
138
  ESM dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs 47.00 B
139
139
  ESM dist/chunk-DE5K76I2.mjs.map 71.00 B
140
140
  ESM dist/chunk-WADHCMPK.mjs.map 71.00 B
141
+ ESM dist/chunk-IU3WTXLQ.mjs.map 71.00 B
141
142
  ESM dist/chunk-MMVDU6DF.mjs.map 71.00 B
142
- ESM dist/chunk-HWM2CVKO.mjs.map 3.41 KB
143
- ESM dist/chunk-RT4UTBH3.mjs.map 4.52 KB
143
+ ESM dist/chunk-PQIOU3E5.mjs.map 3.41 KB
144
+ ESM dist/chunk-SJ2TM5GA.mjs.map 4.86 KB
144
145
  ESM dist/chunk-QCPS6IYI.mjs.map 7.62 KB
145
146
  ESM dist/chunk-RUV6NBIF.mjs.map 71.00 B
146
147
  ESM dist/chunk-DKE57EAC.mjs.map 1.65 KB
@@ -177,7 +178,6 @@ Browserslist: caniuse-lite is outdated. Please run:
177
178
  ESM dist/chunk-LCDTIJSD.mjs.map 5.30 KB
178
179
  ESM dist/chunk-224UKA7C.mjs.map 1.71 KB
179
180
  ESM dist/chunk-XW3ICO4S.mjs.map 947.00 B
180
- ESM dist/chunk-IU3WTXLQ.mjs.map 71.00 B
181
181
  ESM dist/chunk-H4VKQGVU.mjs.map 71.00 B
182
182
  ESM dist/chunk-DFTV4TST.mjs.map 1.62 KB
183
183
  ESM dist/lib/editor-to-text.mjs.map 71.00 B
@@ -223,9 +223,6 @@ Browserslist: caniuse-lite is outdated. Please run:
223
223
  ESM dist/components/ui/command.mjs.map 71.00 B
224
224
  ESM dist/components/ui/dialog.mjs.map 71.00 B
225
225
  ESM dist/components/ui/label.mjs.map 71.00 B
226
- ESM dist/components/ui/separator.mjs.map 1.20 KB
227
- ESM dist/components/ui/textarea.mjs.map 1.11 KB
228
- ESM dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs.map 71.00 B
229
226
  ESM dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.mjs.map 71.00 B
230
227
  ESM dist/components/base-copilot-textarea/use-add-branding-css.mjs.map 71.00 B
231
228
  ESM dist/components/copilot-textarea/copilot-textarea.mjs.map 71.00 B
@@ -240,14 +237,17 @@ Browserslist: caniuse-lite is outdated. Please run:
240
237
  ESM dist/components/base-copilot-textarea/base-copilot-textarea.mjs.map 71.00 B
241
238
  ESM dist/components/base-copilot-textarea/render-element.mjs.map 71.00 B
242
239
  ESM dist/components/base-copilot-textarea/render-placeholder.mjs.map 71.00 B
240
+ ESM dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs.map 71.00 B
241
+ ESM dist/components/ui/separator.mjs.map 1.20 KB
242
+ ESM dist/components/ui/textarea.mjs.map 1.11 KB
243
243
  ESM dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs.map 71.00 B
244
244
  ESM dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.mjs.map 71.00 B
245
- ESM ⚡️ Build success in 2034ms
246
- CJS dist/index.js 79.68 KB
245
+ ESM ⚡️ Build success in 1592ms
247
246
  CJS dist/index.css 18.82 KB
248
- CJS dist/components/index.js 79.49 KB
249
- CJS dist/components/index.css 242.00 B
247
+ CJS dist/index.js 79.92 KB
250
248
  CJS dist/context/index.js 803.00 B
249
+ CJS dist/components/index.js 79.73 KB
250
+ CJS dist/components/index.css 242.00 B
251
251
  CJS dist/hooks/index.js 797.00 B
252
252
  CJS dist/lib/debouncer.js 2.38 KB
253
253
  CJS dist/lib/editor-to-text.js 2.35 KB
@@ -258,13 +258,13 @@ Browserslist: caniuse-lite is outdated. Please run:
258
258
  CJS dist/lib/utils.js 3.08 KB
259
259
  CJS dist/types/html-copilot-textarea-element.js 893.00 B
260
260
  CJS dist/types/index.js 10.66 KB
261
- CJS dist/components/base-copilot-textarea/base-copilot-textarea.js 63.75 KB
262
261
  CJS dist/components/base-copilot-textarea/base-copilot-textarea.css 258.00 B
263
262
  CJS dist/components/base-copilot-textarea/render-element.js 2.94 KB
263
+ CJS dist/components/base-copilot-textarea/base-copilot-textarea.js 63.75 KB
264
264
  CJS dist/components/base-copilot-textarea/render-placeholder.js 2.84 KB
265
265
  CJS dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.js 4.02 KB
266
266
  CJS dist/components/base-copilot-textarea/use-add-branding-css.js 3.19 KB
267
- CJS dist/components/copilot-textarea/copilot-textarea.js 79.42 KB
267
+ CJS dist/components/copilot-textarea/copilot-textarea.js 79.67 KB
268
268
  CJS dist/components/copilot-textarea/copilot-textarea.css 253.00 B
269
269
  CJS dist/components/hovering-toolbar/hovering-editor-provider.js 1.85 KB
270
270
  CJS dist/components/hovering-toolbar/hovering-toolbar-components.js 5.55 KB
@@ -281,7 +281,7 @@ Browserslist: caniuse-lite is outdated. Please run:
281
281
  CJS dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.js 6.34 KB
282
282
  CJS dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.js 6.35 KB
283
283
  CJS dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.js 6.04 KB
284
- CJS dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js 4.95 KB
284
+ CJS dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js 5.19 KB
285
285
  CJS dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js 6.74 KB
286
286
  CJS dist/hooks/misc/use-autosize-textarea.js 1.48 KB
287
287
  CJS dist/lib/slatejs-edits/add-autocompletions.js 1.63 KB
@@ -307,11 +307,11 @@ Browserslist: caniuse-lite is outdated. Please run:
307
307
  CJS dist/components/hovering-toolbar/text-insertion-prompt-box/index.js 25.19 KB
308
308
  CJS dist/types/autosuggestions-config/subtypes/make-system-prompt.js 881.00 B
309
309
  CJS dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js 906.00 B
310
- CJS dist/index.js.map 142.82 KB
311
310
  CJS dist/index.css.map 29.12 KB
312
- CJS dist/components/index.js.map 143.02 KB
313
- CJS dist/components/index.css.map 429.00 B
311
+ CJS dist/index.js.map 143.16 KB
314
312
  CJS dist/context/index.js.map 139.00 B
313
+ CJS dist/components/index.js.map 143.35 KB
314
+ CJS dist/components/index.css.map 429.00 B
315
315
  CJS dist/hooks/index.js.map 137.00 B
316
316
  CJS dist/lib/debouncer.js.map 1.68 KB
317
317
  CJS dist/lib/editor-to-text.js.map 2.86 KB
@@ -322,13 +322,13 @@ Browserslist: caniuse-lite is outdated. Please run:
322
322
  CJS dist/lib/utils.js.map 2.53 KB
323
323
  CJS dist/types/html-copilot-textarea-element.js.map 280.00 B
324
324
  CJS dist/types/index.js.map 18.56 KB
325
- CJS dist/components/base-copilot-textarea/base-copilot-textarea.js.map 113.32 KB
326
325
  CJS dist/components/base-copilot-textarea/base-copilot-textarea.css.map 432.00 B
327
326
  CJS dist/components/base-copilot-textarea/render-element.js.map 1.75 KB
327
+ CJS dist/components/base-copilot-textarea/base-copilot-textarea.js.map 113.32 KB
328
328
  CJS dist/components/base-copilot-textarea/render-placeholder.js.map 1020.00 B
329
329
  CJS dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.js.map 5.80 KB
330
330
  CJS dist/components/base-copilot-textarea/use-add-branding-css.js.map 3.50 KB
331
- CJS dist/components/copilot-textarea/copilot-textarea.js.map 142.84 KB
331
+ CJS dist/components/copilot-textarea/copilot-textarea.js.map 143.18 KB
332
332
  CJS dist/components/copilot-textarea/copilot-textarea.css.map 432.00 B
333
333
  CJS dist/components/hovering-toolbar/hovering-editor-provider.js.map 1.40 KB
334
334
  CJS dist/components/hovering-toolbar/hovering-toolbar-components.js.map 3.75 KB
@@ -345,7 +345,7 @@ Browserslist: caniuse-lite is outdated. Please run:
345
345
  CJS dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.js.map 10.30 KB
346
346
  CJS dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.js.map 9.92 KB
347
347
  CJS dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.js.map 10.48 KB
348
- CJS dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map 5.49 KB
348
+ CJS dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map 5.83 KB
349
349
  CJS dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js.map 8.60 KB
350
350
  CJS dist/hooks/misc/use-autosize-textarea.js.map 1.17 KB
351
351
  CJS dist/lib/slatejs-edits/add-autocompletions.js.map 1.08 KB
@@ -371,8 +371,8 @@ Browserslist: caniuse-lite is outdated. Please run:
371
371
  CJS dist/components/hovering-toolbar/text-insertion-prompt-box/index.js.map 37.98 KB
372
372
  CJS dist/types/autosuggestions-config/subtypes/make-system-prompt.js.map 268.00 B
373
373
  CJS dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js.map 283.00 B
374
- CJS ⚡️ Build success in 2069ms
375
- DTS ⚡️ Build success in 16150ms
374
+ CJS ⚡️ Build success in 1644ms
375
+ DTS ⚡️ Build success in 16059ms
376
376
  DTS dist/index.d.ts 1.34 KB
377
377
  DTS dist/components/base-copilot-textarea/base-copilot-textarea.d.ts 1.62 KB
378
378
  DTS dist/components/copilot-textarea/copilot-textarea.d.ts 1.36 KB
@@ -387,8 +387,8 @@ Browserslist: caniuse-lite is outdated. Please run:
387
387
  DTS dist/types/autosuggestions-config/suggestions-api-config.d.ts 682.00 B
388
388
  DTS dist/types/autosuggestions-config/insertions-api-config.d.ts 673.00 B
389
389
  DTS dist/types/autosuggestions-config/editing-api-config.d.ts 646.00 B
390
- DTS dist/components/index.d.ts 954.00 B
391
390
  DTS dist/context/index.d.ts 12.00 B
391
+ DTS dist/components/index.d.ts 954.00 B
392
392
  DTS dist/hooks/index.d.ts 12.00 B
393
393
  DTS dist/lib/debouncer.d.ts 372.00 B
394
394
  DTS dist/lib/editor-to-text.d.ts 243.00 B
package/CHANGELOG.md CHANGED
@@ -1,10 +1,34 @@
1
1
  # ui
2
2
 
3
+ ## 0.35.0-mme-cloud.6
4
+
5
+ ### Minor Changes
6
+
7
+ - Upgrade langchain
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @copilotkit/react-core@0.25.0-mme-cloud.6
13
+ - @copilotkit/shared@0.9.0-mme-cloud.6
14
+
15
+ ## 0.35.0-mme-cloud.5
16
+
17
+ ### Minor Changes
18
+
19
+ - Update comments
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+ - @copilotkit/react-core@0.25.0-mme-cloud.5
25
+ - @copilotkit/shared@0.9.0-mme-cloud.5
26
+
3
27
  ## 0.35.0-mme-cloud.4
4
28
 
5
29
  ### Minor Changes
6
30
 
7
- - Include reason in guardrails response
31
+ - Update comments
8
32
 
9
33
  ### Patch Changes
10
34
 
@@ -16,49 +40,59 @@
16
40
 
17
41
  ### Minor Changes
18
42
 
19
- - Retrieve public API key
43
+ - 85c029b: streamline cloud configuration
44
+ - Rename
45
+ - a5ade3b: Support input guardrails (cloud)
46
+ - 12ff590: Unify api key handling
47
+ - f0c4745: Include reason in guardrails response
48
+ - 17f4b1b: Retrieve public API key
20
49
 
21
50
  ### Patch Changes
22
51
 
52
+ - Updated dependencies [85c029b]
23
53
  - Updated dependencies
54
+ - Updated dependencies [a5ade3b]
55
+ - Updated dependencies [12ff590]
56
+ - Updated dependencies [f0c4745]
57
+ - Updated dependencies [17f4b1b]
24
58
  - @copilotkit/react-core@0.25.0-mme-cloud.3
25
59
  - @copilotkit/shared@0.9.0-mme-cloud.3
26
60
 
27
- ## 0.35.0-mme-cloud.2
61
+ ## 0.35.0-function-calling-fixes.2
28
62
 
29
63
  ### Minor Changes
30
64
 
31
- - streamline cloud configuration
65
+ - fix backend function calling return values
32
66
 
33
67
  ### Patch Changes
34
68
 
35
69
  - Updated dependencies
36
- - @copilotkit/react-core@0.25.0-mme-cloud.2
37
- - @copilotkit/shared@0.9.0-mme-cloud.2
70
+ - @copilotkit/react-core@0.25.0-function-calling-fixes.2
71
+ - @copilotkit/shared@0.9.0-function-calling-fixes.2
38
72
 
39
- ## 0.35.0-mme-cloud.1
73
+ ## 0.35.0-function-calling-fixes.1
40
74
 
41
75
  ### Minor Changes
42
76
 
43
- - Unify api key handling
77
+ - gpt-4-turbo-april-2024 function calling fixes
44
78
 
45
79
  ### Patch Changes
46
80
 
47
81
  - Updated dependencies
48
- - @copilotkit/react-core@0.25.0-mme-cloud.1
49
- - @copilotkit/shared@0.9.0-mme-cloud.1
82
+ - @copilotkit/react-core@0.25.0-function-calling-fixes.1
83
+ - @copilotkit/shared@0.9.0-function-calling-fixes.1
50
84
 
51
- ## 0.35.0-mme-cloud.0
85
+ ## 0.35.0-alpha.0
52
86
 
53
87
  ### Minor Changes
54
88
 
55
- - Support input guardrails (cloud)
89
+ - gpt-4-turbo-april-2024
56
90
 
57
91
  ### Patch Changes
58
92
 
59
93
  - Updated dependencies
60
- - @copilotkit/react-core@0.25.0-mme-cloud.0
61
- - @copilotkit/shared@0.9.0-mme-cloud.0
94
+ - @copilotkit/shared@0.9.0-alpha.0
95
+ - @copilotkit/react-core@0.25.0-alpha.0
62
96
 
63
97
  ## 0.34.0
64
98
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useMakeStandardAutosuggestionFunction
3
- } from "./chunk-RT4UTBH3.mjs";
3
+ } from "./chunk-SJ2TM5GA.mjs";
4
4
  import {
5
5
  useMakeStandardInsertionOrEditingFunction
6
6
  } from "./chunk-QCPS6IYI.mjs";
@@ -57,4 +57,4 @@ var CopilotTextarea = React.forwardRef(
57
57
  export {
58
58
  CopilotTextarea
59
59
  };
60
- //# sourceMappingURL=chunk-HWM2CVKO.mjs.map
60
+ //# sourceMappingURL=chunk-PQIOU3E5.mjs.map
@@ -8,11 +8,14 @@ import {
8
8
  } from "./chunk-MRXNTQOX.mjs";
9
9
 
10
10
  // src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx
11
+ import { COPILOT_CLOUD_PUBLIC_API_KEY_HEADER } from "@copilotkit/shared";
11
12
  import { CopilotContext } from "@copilotkit/react-core";
12
13
  import { useCallback, useContext } from "react";
13
14
  import { fetchAndDecodeChatCompletionAsText } from "@copilotkit/react-core";
14
15
  function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategories, apiConfig) {
15
16
  const { getContextString, copilotApiConfig } = useContext(CopilotContext);
17
+ const publicApiKey = copilotApiConfig.publicApiKey;
18
+ const headers = __spreadValues({}, publicApiKey ? { [COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
16
19
  return useCallback(
17
20
  (editorState, abortSignal) => __async(this, null, function* () {
18
21
  const res = yield retry(() => __async(this, null, function* () {
@@ -40,7 +43,8 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
40
43
  messages
41
44
  }, apiConfig.forwardedParams), {
42
45
  copilotConfig: copilotApiConfig,
43
- signal: abortSignal
46
+ signal: abortSignal,
47
+ headers
44
48
  }));
45
49
  if (!response.events) {
46
50
  throw new Error("Failed to fetch chat completion");
@@ -65,4 +69,4 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
65
69
  export {
66
70
  useMakeStandardAutosuggestionFunction
67
71
  };
68
- //# sourceMappingURL=chunk-RT4UTBH3.mjs.map
72
+ //# sourceMappingURL=chunk-SJ2TM5GA.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx"],"sourcesContent":["import { COPILOT_CLOUD_PUBLIC_API_KEY_HEADER, Message } from \"@copilotkit/shared\";\nimport { CopilotContext } from \"@copilotkit/react-core\";\nimport { useCallback, useContext } from \"react\";\nimport { AutosuggestionsBareFunction, MinimalChatGPTMessage } from \"../../types\";\nimport { retry } from \"../../lib/retry\";\nimport { InsertionEditorState } from \"../../types/base/autosuggestions-bare-function\";\nimport { SuggestionsApiConfig } from \"../../types/autosuggestions-config/suggestions-api-config\";\nimport { fetchAndDecodeChatCompletionAsText } from \"@copilotkit/react-core\";\n\n/**\n * Returns a memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.\n * The function takes in the text before and after the cursor, and an abort signal.\n * It sends a POST request to the API endpoint with the messages array containing the system message, few shot messages, and user messages.\n * The function returns the suggestion from the API response.\n *\n * @param textareaPurpose - The purpose of the textarea. This is included in the system message.\n * @param apiEndpoint - The API endpoint to send the autosuggestion request to.\n * @param makeSystemMessage - A function that takes in a context string and returns a system message to include in the autosuggestion request.\n * @param fewShotMessages - An array of few shot messages to include in the autosuggestion request.\n * @param contextCategories - The categories of context strings we want to include. By default, we include the (default) \"global\" context category.\n * @returns A memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.\n */\nexport function useMakeStandardAutosuggestionFunction(\n textareaPurpose: string,\n contextCategories: string[],\n apiConfig: SuggestionsApiConfig,\n): AutosuggestionsBareFunction {\n const { getContextString, copilotApiConfig } = useContext(CopilotContext);\n const publicApiKey = copilotApiConfig.publicApiKey;\n const headers = {\n ...(publicApiKey ? { [COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {}),\n };\n\n return useCallback(\n async (editorState: InsertionEditorState, abortSignal: AbortSignal) => {\n const res = await retry(async () => {\n const messages: MinimalChatGPTMessage[] = [\n {\n role: \"system\",\n content: apiConfig.makeSystemPrompt(\n textareaPurpose,\n getContextString([], contextCategories),\n ),\n },\n ...apiConfig.fewShotMessages,\n {\n role: \"user\",\n name: \"TextAfterCursor\",\n content: editorState.textAfterCursor,\n },\n {\n role: \"user\",\n name: \"TextBeforeCursor\",\n content: editorState.textBeforeCursor,\n },\n ];\n\n const response = await fetchAndDecodeChatCompletionAsText({\n messages: messages as Message[],\n ...apiConfig.forwardedParams,\n copilotConfig: copilotApiConfig,\n signal: abortSignal,\n headers: headers,\n });\n\n if (!response.events) {\n throw new Error(\"Failed to fetch chat completion\");\n }\n\n const reader = response.events.getReader();\n\n let result = \"\";\n while (!abortSignal.aborted) {\n const { done, value } = await reader.read();\n if (done) {\n break;\n }\n result += value;\n }\n return result;\n });\n\n return res;\n },\n [apiConfig, getContextString, contextCategories, textareaPurpose],\n );\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAS,2CAAoD;AAC7D,SAAS,sBAAsB;AAC/B,SAAS,aAAa,kBAAkB;AAKxC,SAAS,0CAA0C;AAe5C,SAAS,sCACd,iBACA,mBACA,WAC6B;AAC7B,QAAM,EAAE,kBAAkB,iBAAiB,IAAI,WAAW,cAAc;AACxE,QAAM,eAAe,iBAAiB;AACtC,QAAM,UAAU,mBACV,eAAe,EAAE,CAAC,mCAAmC,GAAG,aAAa,IAAI,CAAC;AAGhF,SAAO;AAAA,IACL,CAAO,aAAmC,gBAA6B;AACrE,YAAM,MAAM,MAAM,MAAM,MAAY;AAClC,cAAM,WAAoC;AAAA,UACxC;AAAA,YACE,MAAM;AAAA,YACN,SAAS,UAAU;AAAA,cACjB;AAAA,cACA,iBAAiB,CAAC,GAAG,iBAAiB;AAAA,YACxC;AAAA,UACF;AAAA,UACA,GAAG,UAAU;AAAA,UACb;AAAA,YACE,MAAM;AAAA,YACN,MAAM;AAAA,YACN,SAAS,YAAY;AAAA,UACvB;AAAA,UACA;AAAA,YACE,MAAM;AAAA,YACN,MAAM;AAAA,YACN,SAAS,YAAY;AAAA,UACvB;AAAA,QACF;AAEA,cAAM,WAAW,MAAM,mCAAmC;AAAA,UACxD;AAAA,WACG,UAAU,kBAF2C;AAAA,UAGxD,eAAe;AAAA,UACf,QAAQ;AAAA,UACR;AAAA,QACF,EAAC;AAED,YAAI,CAAC,SAAS,QAAQ;AACpB,gBAAM,IAAI,MAAM,iCAAiC;AAAA,QACnD;AAEA,cAAM,SAAS,SAAS,OAAO,UAAU;AAEzC,YAAI,SAAS;AACb,eAAO,CAAC,YAAY,SAAS;AAC3B,gBAAM,EAAE,MAAM,MAAM,IAAI,MAAM,OAAO,KAAK;AAC1C,cAAI,MAAM;AACR;AAAA,UACF;AACA,oBAAU;AAAA,QACZ;AACA,eAAO;AAAA,MACT,EAAC;AAED,aAAO;AAAA,IACT;AAAA,IACA,CAAC,WAAW,kBAAkB,mBAAmB,eAAe;AAAA,EAClE;AACF;","names":[]}
@@ -85,6 +85,7 @@ module.exports = __toCommonJS(copilot_textarea_exports);
85
85
  var import_react15 = __toESM(require("react"));
86
86
 
87
87
  // src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx
88
+ var import_shared = require("@copilotkit/shared");
88
89
  var import_react_core = require("@copilotkit/react-core");
89
90
  var import_react = require("react");
90
91
 
@@ -107,6 +108,8 @@ function retry(fn, retriesLeft = 2, interval = 200, backoff = 1.5) {
107
108
  var import_react_core2 = require("@copilotkit/react-core");
108
109
  function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategories, apiConfig) {
109
110
  const { getContextString, copilotApiConfig } = (0, import_react.useContext)(import_react_core.CopilotContext);
111
+ const publicApiKey = copilotApiConfig.publicApiKey;
112
+ const headers = __spreadValues({}, publicApiKey ? { [import_shared.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
110
113
  return (0, import_react.useCallback)(
111
114
  (editorState2, abortSignal) => __async(this, null, function* () {
112
115
  const res = yield retry(() => __async(this, null, function* () {
@@ -134,7 +137,8 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
134
137
  messages
135
138
  }, apiConfig.forwardedParams), {
136
139
  copilotConfig: copilotApiConfig,
137
- signal: abortSignal
140
+ signal: abortSignal,
141
+ headers
138
142
  }));
139
143
  if (!response.events) {
140
144
  throw new Error("Failed to fetch chat completion");