@copilotkit/react-core 1.87.1 → 1.89.0

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.
Files changed (38) hide show
  1. package/dist/{copilotkit-BNPEXnEE.d.mts → copilotkit-CfnudBCL.d.mts} +25 -5
  2. package/dist/copilotkit-CfnudBCL.d.mts.map +1 -0
  3. package/dist/{copilotkit-DFxtDD2N.cjs → copilotkit-DHJJxCeI.cjs} +330 -73
  4. package/dist/copilotkit-DHJJxCeI.cjs.map +1 -0
  5. package/dist/{copilotkit-BJ-6BoJ_.mjs → copilotkit-GWoyxfzS.mjs} +334 -77
  6. package/dist/copilotkit-GWoyxfzS.mjs.map +1 -0
  7. package/dist/{copilotkit-Bop-sY6y.d.cts → copilotkit-XLp7jKQk.d.cts} +25 -5
  8. package/dist/copilotkit-XLp7jKQk.d.cts.map +1 -0
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.d.cts +1 -1
  11. package/dist/index.d.mts +1 -1
  12. package/dist/index.mjs +1 -1
  13. package/dist/index.umd.js +22 -12
  14. package/dist/index.umd.js.map +1 -1
  15. package/dist/v2/generative-ui.d.cts +116 -116
  16. package/dist/v2/generative-ui.d.cts.map +1 -1
  17. package/dist/v2/generative-ui.d.mts +116 -116
  18. package/dist/v2/generative-ui.d.mts.map +1 -1
  19. package/dist/v2/headless.cjs +7 -2
  20. package/dist/v2/headless.cjs.map +1 -1
  21. package/dist/v2/headless.d.cts +5 -0
  22. package/dist/v2/headless.d.cts.map +1 -1
  23. package/dist/v2/headless.d.mts +5 -0
  24. package/dist/v2/headless.d.mts.map +1 -1
  25. package/dist/v2/headless.mjs +7 -2
  26. package/dist/v2/headless.mjs.map +1 -1
  27. package/dist/v2/index.cjs +19 -1
  28. package/dist/v2/index.css +1 -1
  29. package/dist/v2/index.d.cts +2 -2
  30. package/dist/v2/index.d.mts +2 -2
  31. package/dist/v2/index.mjs +2 -2
  32. package/dist/v2/index.umd.js +347 -72
  33. package/dist/v2/index.umd.js.map +1 -1
  34. package/package.json +10 -10
  35. package/dist/copilotkit-BJ-6BoJ_.mjs.map +0 -1
  36. package/dist/copilotkit-BNPEXnEE.d.mts.map +0 -1
  37. package/dist/copilotkit-Bop-sY6y.d.cts.map +0 -1
  38. package/dist/copilotkit-DFxtDD2N.cjs.map +0 -1
@@ -1321,15 +1321,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1321
1321
  copy: zod.ZodOptional<zod.ZodString>;
1322
1322
  }, "strip", zod.ZodTypeAny, {
1323
1323
  label?: string | undefined;
1324
- icon?: string | undefined;
1325
- text?: string | undefined;
1326
- href?: string | undefined;
1327
- weight?: number | undefined;
1328
- variant?: "default" | "primary" | "soft" | "borderless" | undefined;
1329
- size?: "sm" | "md" | "lg" | undefined;
1330
- color?: "primary" | "secondary" | "danger" | undefined;
1331
- pill?: boolean | undefined;
1332
- block?: boolean | undefined;
1333
1324
  checks?: {
1334
1325
  message?: string | undefined;
1335
1326
  condition?: boolean | zod.objectOutputType<{
@@ -1339,13 +1330,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1339
1330
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1340
1331
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1341
1332
  }[] | undefined;
1342
- disabled?: boolean | undefined;
1343
- loading?: boolean | undefined;
1344
- submit?: boolean | undefined;
1345
- uniform?: boolean | undefined;
1346
- copy?: string | undefined;
1347
- }, {
1348
- label?: string | undefined;
1349
1333
  icon?: string | undefined;
1350
1334
  text?: string | undefined;
1351
1335
  href?: string | undefined;
@@ -1355,6 +1339,13 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1355
1339
  color?: "primary" | "secondary" | "danger" | undefined;
1356
1340
  pill?: boolean | undefined;
1357
1341
  block?: boolean | undefined;
1342
+ disabled?: boolean | undefined;
1343
+ loading?: boolean | undefined;
1344
+ submit?: boolean | undefined;
1345
+ uniform?: boolean | undefined;
1346
+ copy?: string | undefined;
1347
+ }, {
1348
+ label?: string | undefined;
1358
1349
  checks?: {
1359
1350
  message?: string | undefined;
1360
1351
  condition?: boolean | zod.objectInputType<{
@@ -1364,6 +1355,15 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1364
1355
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1365
1356
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1366
1357
  }[] | undefined;
1358
+ icon?: string | undefined;
1359
+ text?: string | undefined;
1360
+ href?: string | undefined;
1361
+ weight?: number | undefined;
1362
+ variant?: "default" | "primary" | "soft" | "borderless" | undefined;
1363
+ size?: "sm" | "md" | "lg" | undefined;
1364
+ color?: "primary" | "secondary" | "danger" | undefined;
1365
+ pill?: boolean | undefined;
1366
+ block?: boolean | undefined;
1367
1367
  disabled?: boolean | undefined;
1368
1368
  loading?: boolean | undefined;
1369
1369
  submit?: boolean | undefined;
@@ -1676,11 +1676,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1676
1676
  label?: string | undefined;
1677
1677
  required?: boolean | undefined;
1678
1678
  name?: string | undefined;
1679
- value?: string | number | undefined;
1680
- weight?: number | undefined;
1681
- variant?: "number" | "url" | "shortText" | "longText" | "obscured" | "email" | "tel" | undefined;
1682
- size?: "sm" | "md" | "lg" | "xl" | undefined;
1683
- pill?: boolean | undefined;
1684
1679
  checks?: {
1685
1680
  message?: string | undefined;
1686
1681
  condition?: boolean | zod.objectOutputType<{
@@ -1690,6 +1685,11 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1690
1685
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1691
1686
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1692
1687
  }[] | undefined;
1688
+ value?: string | number | undefined;
1689
+ weight?: number | undefined;
1690
+ variant?: "number" | "url" | "shortText" | "longText" | "obscured" | "email" | "tel" | undefined;
1691
+ size?: "sm" | "md" | "lg" | "xl" | undefined;
1692
+ pill?: boolean | undefined;
1693
1693
  disabled?: boolean | undefined;
1694
1694
  placeholder?: string | undefined;
1695
1695
  invalid?: boolean | undefined;
@@ -1699,11 +1699,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1699
1699
  label?: string | undefined;
1700
1700
  required?: boolean | undefined;
1701
1701
  name?: string | undefined;
1702
- value?: string | number | undefined;
1703
- weight?: number | undefined;
1704
- variant?: "number" | "url" | "shortText" | "longText" | "obscured" | "email" | "tel" | undefined;
1705
- size?: "sm" | "md" | "lg" | "xl" | undefined;
1706
- pill?: boolean | undefined;
1707
1702
  checks?: {
1708
1703
  message?: string | undefined;
1709
1704
  condition?: boolean | zod.objectInputType<{
@@ -1713,6 +1708,11 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1713
1708
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1714
1709
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1715
1710
  }[] | undefined;
1711
+ value?: string | number | undefined;
1712
+ weight?: number | undefined;
1713
+ variant?: "number" | "url" | "shortText" | "longText" | "obscured" | "email" | "tel" | undefined;
1714
+ size?: "sm" | "md" | "lg" | "xl" | undefined;
1715
+ pill?: boolean | undefined;
1716
1716
  disabled?: boolean | undefined;
1717
1717
  placeholder?: string | undefined;
1718
1718
  invalid?: boolean | undefined;
@@ -1771,10 +1771,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1771
1771
  label?: string | undefined;
1772
1772
  required?: boolean | undefined;
1773
1773
  name?: string | undefined;
1774
- value?: string | undefined;
1775
- rows?: number | undefined;
1776
- weight?: number | undefined;
1777
- size?: "sm" | "md" | "lg" | "xl" | undefined;
1778
1774
  checks?: {
1779
1775
  message?: string | undefined;
1780
1776
  condition?: boolean | zod.objectOutputType<{
@@ -1784,6 +1780,10 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1784
1780
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1785
1781
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1786
1782
  }[] | undefined;
1783
+ value?: string | undefined;
1784
+ rows?: number | undefined;
1785
+ weight?: number | undefined;
1786
+ size?: "sm" | "md" | "lg" | "xl" | undefined;
1787
1787
  disabled?: boolean | undefined;
1788
1788
  placeholder?: string | undefined;
1789
1789
  invalid?: boolean | undefined;
@@ -1793,10 +1793,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1793
1793
  label?: string | undefined;
1794
1794
  required?: boolean | undefined;
1795
1795
  name?: string | undefined;
1796
- value?: string | undefined;
1797
- rows?: number | undefined;
1798
- weight?: number | undefined;
1799
- size?: "sm" | "md" | "lg" | "xl" | undefined;
1800
1796
  checks?: {
1801
1797
  message?: string | undefined;
1802
1798
  condition?: boolean | zod.objectInputType<{
@@ -1806,6 +1802,10 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1806
1802
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1807
1803
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1808
1804
  }[] | undefined;
1805
+ value?: string | undefined;
1806
+ rows?: number | undefined;
1807
+ weight?: number | undefined;
1808
+ size?: "sm" | "md" | "lg" | "xl" | undefined;
1809
1809
  disabled?: boolean | undefined;
1810
1810
  placeholder?: string | undefined;
1811
1811
  invalid?: boolean | undefined;
@@ -1878,6 +1878,15 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1878
1878
  label?: string | undefined;
1879
1879
  required?: boolean | undefined;
1880
1880
  name?: string | undefined;
1881
+ checks?: {
1882
+ message?: string | undefined;
1883
+ condition?: boolean | zod.objectOutputType<{
1884
+ valid: zod.ZodBoolean;
1885
+ message: zod.ZodOptional<zod.ZodString>;
1886
+ code: zod.ZodOptional<zod.ZodString>;
1887
+ severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1888
+ }, zod.ZodTypeAny, "passthrough"> | undefined;
1889
+ }[] | undefined;
1881
1890
  icon?: string | undefined;
1882
1891
  value?: string | undefined;
1883
1892
  options?: (string | {
@@ -1888,15 +1897,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1888
1897
  size?: "sm" | "md" | "lg" | "xl" | undefined;
1889
1898
  pill?: boolean | undefined;
1890
1899
  block?: boolean | undefined;
1891
- checks?: {
1892
- message?: string | undefined;
1893
- condition?: boolean | zod.objectOutputType<{
1894
- valid: zod.ZodBoolean;
1895
- message: zod.ZodOptional<zod.ZodString>;
1896
- code: zod.ZodOptional<zod.ZodString>;
1897
- severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1898
- }, zod.ZodTypeAny, "passthrough"> | undefined;
1899
- }[] | undefined;
1900
1900
  disabled?: boolean | undefined;
1901
1901
  placeholder?: string | undefined;
1902
1902
  clearable?: boolean | undefined;
@@ -1906,6 +1906,15 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1906
1906
  label?: string | undefined;
1907
1907
  required?: boolean | undefined;
1908
1908
  name?: string | undefined;
1909
+ checks?: {
1910
+ message?: string | undefined;
1911
+ condition?: boolean | zod.objectInputType<{
1912
+ valid: zod.ZodBoolean;
1913
+ message: zod.ZodOptional<zod.ZodString>;
1914
+ code: zod.ZodOptional<zod.ZodString>;
1915
+ severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1916
+ }, zod.ZodTypeAny, "passthrough"> | undefined;
1917
+ }[] | undefined;
1909
1918
  icon?: string | undefined;
1910
1919
  value?: string | undefined;
1911
1920
  options?: (string | {
@@ -1916,15 +1925,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1916
1925
  size?: "sm" | "md" | "lg" | "xl" | undefined;
1917
1926
  pill?: boolean | undefined;
1918
1927
  block?: boolean | undefined;
1919
- checks?: {
1920
- message?: string | undefined;
1921
- condition?: boolean | zod.objectInputType<{
1922
- valid: zod.ZodBoolean;
1923
- message: zod.ZodOptional<zod.ZodString>;
1924
- code: zod.ZodOptional<zod.ZodString>;
1925
- severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1926
- }, zod.ZodTypeAny, "passthrough"> | undefined;
1927
- }[] | undefined;
1928
1928
  disabled?: boolean | undefined;
1929
1929
  placeholder?: string | undefined;
1930
1930
  clearable?: boolean | undefined;
@@ -1979,9 +1979,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1979
1979
  label?: string | undefined;
1980
1980
  required?: boolean | undefined;
1981
1981
  name?: string | undefined;
1982
- value?: boolean | undefined;
1983
- weight?: number | undefined;
1984
- lineThrough?: boolean | undefined;
1985
1982
  checks?: {
1986
1983
  message?: string | undefined;
1987
1984
  condition?: boolean | zod.objectOutputType<{
@@ -1991,15 +1988,15 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1991
1988
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1992
1989
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1993
1990
  }[] | undefined;
1991
+ value?: boolean | undefined;
1992
+ weight?: number | undefined;
1993
+ lineThrough?: boolean | undefined;
1994
1994
  disabled?: boolean | undefined;
1995
1995
  shape?: "round" | "square" | undefined;
1996
1996
  }, {
1997
1997
  label?: string | undefined;
1998
1998
  required?: boolean | undefined;
1999
1999
  name?: string | undefined;
2000
- value?: boolean | undefined;
2001
- weight?: number | undefined;
2002
- lineThrough?: boolean | undefined;
2003
2000
  checks?: {
2004
2001
  message?: string | undefined;
2005
2002
  condition?: boolean | zod.objectInputType<{
@@ -2009,6 +2006,9 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2009
2006
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2010
2007
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2011
2008
  }[] | undefined;
2009
+ value?: boolean | undefined;
2010
+ weight?: number | undefined;
2011
+ lineThrough?: boolean | undefined;
2012
2012
  disabled?: boolean | undefined;
2013
2013
  shape?: "round" | "square" | undefined;
2014
2014
  }>;
@@ -2088,14 +2088,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2088
2088
  label?: string | undefined;
2089
2089
  required?: boolean | undefined;
2090
2090
  name?: string | undefined;
2091
- value?: string | undefined;
2092
- options?: (string | {
2093
- value: string;
2094
- description?: string | undefined;
2095
- label?: string | undefined;
2096
- })[] | undefined;
2097
- direction?: "col" | "row" | undefined;
2098
- variant?: "list" | "pills" | "cards" | undefined;
2099
2091
  checks?: {
2100
2092
  message?: string | undefined;
2101
2093
  condition?: boolean | zod.objectOutputType<{
@@ -2105,11 +2097,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2105
2097
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2106
2098
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2107
2099
  }[] | undefined;
2108
- disabled?: boolean | undefined;
2109
- }, {
2110
- label?: string | undefined;
2111
- required?: boolean | undefined;
2112
- name?: string | undefined;
2113
2100
  value?: string | undefined;
2114
2101
  options?: (string | {
2115
2102
  value: string;
@@ -2118,6 +2105,11 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2118
2105
  })[] | undefined;
2119
2106
  direction?: "col" | "row" | undefined;
2120
2107
  variant?: "list" | "pills" | "cards" | undefined;
2108
+ disabled?: boolean | undefined;
2109
+ }, {
2110
+ label?: string | undefined;
2111
+ required?: boolean | undefined;
2112
+ name?: string | undefined;
2121
2113
  checks?: {
2122
2114
  message?: string | undefined;
2123
2115
  condition?: boolean | zod.objectInputType<{
@@ -2127,6 +2119,14 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2127
2119
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2128
2120
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2129
2121
  }[] | undefined;
2122
+ value?: string | undefined;
2123
+ options?: (string | {
2124
+ value: string;
2125
+ description?: string | undefined;
2126
+ label?: string | undefined;
2127
+ })[] | undefined;
2128
+ direction?: "col" | "row" | undefined;
2129
+ variant?: "list" | "pills" | "cards" | undefined;
2130
2130
  disabled?: boolean | undefined;
2131
2131
  }>;
2132
2132
  Slider: zod.ZodObject<{
@@ -2189,10 +2189,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2189
2189
  }, "strip", zod.ZodTypeAny, {
2190
2190
  label?: string | undefined;
2191
2191
  name?: string | undefined;
2192
- value?: number | undefined;
2193
- min?: number | undefined;
2194
- max?: number | undefined;
2195
- weight?: number | undefined;
2196
2192
  checks?: {
2197
2193
  message?: string | undefined;
2198
2194
  condition?: boolean | zod.objectOutputType<{
@@ -2202,6 +2198,10 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2202
2198
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2203
2199
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2204
2200
  }[] | undefined;
2201
+ value?: number | undefined;
2202
+ min?: number | undefined;
2203
+ max?: number | undefined;
2204
+ weight?: number | undefined;
2205
2205
  disabled?: boolean | undefined;
2206
2206
  step?: number | undefined;
2207
2207
  steps?: number | undefined;
@@ -2214,10 +2214,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2214
2214
  }, {
2215
2215
  label?: string | undefined;
2216
2216
  name?: string | undefined;
2217
- value?: number | undefined;
2218
- min?: number | undefined;
2219
- max?: number | undefined;
2220
- weight?: number | undefined;
2221
2217
  checks?: {
2222
2218
  message?: string | undefined;
2223
2219
  condition?: boolean | zod.objectInputType<{
@@ -2227,6 +2223,10 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2227
2223
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2228
2224
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2229
2225
  }[] | undefined;
2226
+ value?: number | undefined;
2227
+ min?: number | undefined;
2228
+ max?: number | undefined;
2229
+ weight?: number | undefined;
2230
2230
  disabled?: boolean | undefined;
2231
2231
  step?: number | undefined;
2232
2232
  steps?: number | undefined;
@@ -2295,16 +2295,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2295
2295
  disabled: zod.ZodOptional<zod.ZodBoolean>;
2296
2296
  }, "strip", zod.ZodTypeAny, {
2297
2297
  label?: string | undefined;
2298
- value?: string | undefined;
2299
- options?: (string | {
2300
- value: string;
2301
- description?: string | undefined;
2302
- label?: string | undefined;
2303
- })[] | undefined;
2304
- variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
2305
- size?: "sm" | "md" | "lg" | "xl" | undefined;
2306
- pill?: boolean | undefined;
2307
- block?: boolean | undefined;
2308
2298
  checks?: {
2309
2299
  message?: string | undefined;
2310
2300
  condition?: boolean | zod.objectOutputType<{
@@ -2314,9 +2304,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2314
2304
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2315
2305
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2316
2306
  }[] | undefined;
2317
- disabled?: boolean | undefined;
2318
- }, {
2319
- label?: string | undefined;
2320
2307
  value?: string | undefined;
2321
2308
  options?: (string | {
2322
2309
  value: string;
@@ -2327,6 +2314,9 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2327
2314
  size?: "sm" | "md" | "lg" | "xl" | undefined;
2328
2315
  pill?: boolean | undefined;
2329
2316
  block?: boolean | undefined;
2317
+ disabled?: boolean | undefined;
2318
+ }, {
2319
+ label?: string | undefined;
2330
2320
  checks?: {
2331
2321
  message?: string | undefined;
2332
2322
  condition?: boolean | zod.objectInputType<{
@@ -2336,6 +2326,16 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2336
2326
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2337
2327
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2338
2328
  }[] | undefined;
2329
+ value?: string | undefined;
2330
+ options?: (string | {
2331
+ value: string;
2332
+ description?: string | undefined;
2333
+ label?: string | undefined;
2334
+ })[] | undefined;
2335
+ variant?: "outline" | "soft" | "solid" | "ghost" | undefined;
2336
+ size?: "sm" | "md" | "lg" | "xl" | undefined;
2337
+ pill?: boolean | undefined;
2338
+ block?: boolean | undefined;
2339
2339
  disabled?: boolean | undefined;
2340
2340
  }>;
2341
2341
  ChoicePicker: zod.ZodObject<{
@@ -2398,14 +2398,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2398
2398
  }, "strip", zod.ZodTypeAny, {
2399
2399
  label?: string | undefined;
2400
2400
  required?: boolean | undefined;
2401
- value?: string[] | undefined;
2402
- options?: (string | {
2403
- value: string;
2404
- description?: string | undefined;
2405
- label?: string | undefined;
2406
- })[] | undefined;
2407
- weight?: number | undefined;
2408
- variant?: "multipleSelection" | "mutuallyExclusive" | undefined;
2409
2401
  checks?: {
2410
2402
  message?: string | undefined;
2411
2403
  condition?: boolean | zod.objectOutputType<{
@@ -2415,12 +2407,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2415
2407
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2416
2408
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2417
2409
  }[] | undefined;
2418
- disabled?: boolean | undefined;
2419
- displayStyle?: "checkbox" | "chips" | undefined;
2420
- filterable?: boolean | undefined;
2421
- }, {
2422
- label?: string | undefined;
2423
- required?: boolean | undefined;
2424
2410
  value?: string[] | undefined;
2425
2411
  options?: (string | {
2426
2412
  value: string;
@@ -2429,6 +2415,12 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2429
2415
  })[] | undefined;
2430
2416
  weight?: number | undefined;
2431
2417
  variant?: "multipleSelection" | "mutuallyExclusive" | undefined;
2418
+ disabled?: boolean | undefined;
2419
+ displayStyle?: "checkbox" | "chips" | undefined;
2420
+ filterable?: boolean | undefined;
2421
+ }, {
2422
+ label?: string | undefined;
2423
+ required?: boolean | undefined;
2432
2424
  checks?: {
2433
2425
  message?: string | undefined;
2434
2426
  condition?: boolean | zod.objectInputType<{
@@ -2438,6 +2430,14 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2438
2430
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2439
2431
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2440
2432
  }[] | undefined;
2433
+ value?: string[] | undefined;
2434
+ options?: (string | {
2435
+ value: string;
2436
+ description?: string | undefined;
2437
+ label?: string | undefined;
2438
+ })[] | undefined;
2439
+ weight?: number | undefined;
2440
+ variant?: "multipleSelection" | "mutuallyExclusive" | undefined;
2441
2441
  disabled?: boolean | undefined;
2442
2442
  displayStyle?: "checkbox" | "chips" | undefined;
2443
2443
  filterable?: boolean | undefined;
@@ -2494,11 +2494,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2494
2494
  }, "strip", zod.ZodTypeAny, {
2495
2495
  label?: string | undefined;
2496
2496
  required?: boolean | undefined;
2497
- value?: string | undefined;
2498
- min?: string | undefined;
2499
- max?: string | undefined;
2500
- weight?: number | undefined;
2501
- block?: boolean | undefined;
2502
2497
  checks?: {
2503
2498
  message?: string | undefined;
2504
2499
  condition?: boolean | zod.objectOutputType<{
@@ -2508,6 +2503,11 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2508
2503
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2509
2504
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2510
2505
  }[] | undefined;
2506
+ value?: string | undefined;
2507
+ min?: string | undefined;
2508
+ max?: string | undefined;
2509
+ weight?: number | undefined;
2510
+ block?: boolean | undefined;
2511
2511
  disabled?: boolean | undefined;
2512
2512
  placeholder?: string | undefined;
2513
2513
  clearable?: boolean | undefined;
@@ -2517,11 +2517,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2517
2517
  }, {
2518
2518
  label?: string | undefined;
2519
2519
  required?: boolean | undefined;
2520
- value?: string | undefined;
2521
- min?: string | undefined;
2522
- max?: string | undefined;
2523
- weight?: number | undefined;
2524
- block?: boolean | undefined;
2525
2520
  checks?: {
2526
2521
  message?: string | undefined;
2527
2522
  condition?: boolean | zod.objectInputType<{
@@ -2531,6 +2526,11 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2531
2526
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2532
2527
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2533
2528
  }[] | undefined;
2529
+ value?: string | undefined;
2530
+ min?: string | undefined;
2531
+ max?: string | undefined;
2532
+ weight?: number | undefined;
2533
+ block?: boolean | undefined;
2534
2534
  disabled?: boolean | undefined;
2535
2535
  placeholder?: string | undefined;
2536
2536
  clearable?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"generative-ui.d.mts","names":[],"sources":["../../src/v2/generative-ui/GenerativeUISurface.tsx","../../src/v2/generative-ui/markdown/MarkdownSurfaces.tsx","../../src/v2/generative-ui/standard/index.ts"],"mappings":";;;;;;;;;;UAWU,4BAAA;;EAER,EAAA;;;;;EAKA,WAAA;EAPQ;EASR,QAAA,GAAW,SAAA;EACX,SAAA;EADoB;;;;;;EAQpB,UAAA;AAAA;;AAOF;;;KAAY,wBAAA,YACC,YAAA,QAAoB,YAAA,SAC7B,4BAAA;EAD6B;;;;EAQzB,EAAA,EAAI,EAAA;EAO2C;;;;;;EAA/C,UAAA,YAAsB,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CAA/V,gBAAA;;;;;;;;gCAA+V,eAAA;eAA/V,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAA4hD,gBAAA;;;;;;;;;;;;;;;;;;;;;;;gCAA+1B,eAAA;eAA/1B,GAAA,CAAA,UAAA"}
1
+ {"version":3,"file":"generative-ui.d.mts","names":[],"sources":["../../src/v2/generative-ui/GenerativeUISurface.tsx","../../src/v2/generative-ui/markdown/MarkdownSurfaces.tsx","../../src/v2/generative-ui/standard/index.ts"],"mappings":";;;;;;;;;;UAWU,4BAAA;;EAER,EAAA;;;;;EAKA,WAAA;EAPQ;EASR,QAAA,GAAW,SAAA;EACX,SAAA;EADoB;;;;;;EAQpB,UAAA;AAAA;;AAOF;;;KAAY,wBAAA,YACC,YAAA,QAAoB,YAAA,SAC7B,4BAAA;EAD6B;;;;EAQzB,EAAA,EAAI,EAAA;EAO2C;;;;;;EAA/C,UAAA,YAAsB,yBAAA,CAA0B,EAAA;AAAA;EAEhD,EAAA;EAAgB,UAAA;AAAA;;;;;AAmBxB;;;;;;;;;;iBAAgB,mBAAA,YACH,YAAA,QAAoB,YAAA,MAAA,CAAA;EAE/B,EAAA;EACA,WAAA;EACA,EAAA;EACA,UAAA;EACA,QAAA;EACA,SAAA;EACA;AAAA,GACC,wBAAA,CAAyB,EAAA,IAAG,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCnE1B,aAAA,GAAgB,IAAA,CAAK,cAAA,QAAsB,UAAA;;;;;;;KAkEpC,qBAAA,GAAwB,aAAA;wEAElC,OAAA,UDtEA;ECwEA,SAAA;AAAA;;;;;;ADlDF;;;;;;;;;;;;;iBCwJgB,gBAAA,CAAA;EACd,OAAA;EACA,SAAA;EAAA,GACG;AAAA,GACF,qBAAA,GAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;;;;ADzLiD;;;;;;;;;;;;AA6BzE;;cEYa,UAAA,EAAU,YAAA,mCAAA,6BAAA;;UAGrB,GAAA,C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;;;;;;;;;;;;;;;;;;gCAA/V,gBAAA;;;;;;;;gCAA+V,eAAA;eAA/V,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAA+kD,gBAAA;;;;;;;;;;;;;;;;;;;;;;gCAAq0B,eAAA;eAAr0B,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;gBAAqsK,GAAA,CAAA,SAAA;yCAAhuE,GAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;gCAA/V,gBAAA;;;;;;;;gCAA+V,eAAA;eAA/V,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAssD,gBAAA;;;;;;;;;;;;;;;;;;;;;;;gCAAy3B,eAAA;eAAz3B,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;iBAA45J,GAAA,CAAA,SAAA;yCAAp3D,GAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;gCAA/V,gBAAA;;;;;;;;gCAA+V,eAAA;eAA/V,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;gCAAo3C,gBAAA;;;;;;;;;;;;;;;;;;;;;;;gCAA+1B,eAAA;eAA/1B,GAAA,CAAA,UAAA"}
@@ -394,6 +394,11 @@ const ALL_UPDATES = [
394
394
  UseAgentUpdate.OnStateChanged,
395
395
  UseAgentUpdate.OnRunStatusChanged
396
396
  ];
397
+ /**
398
+ * Returns the selected agent and its readiness, subscribing to agent updates.
399
+ * Uses a shared agent by default, or a private proxy when `agentId`,
400
+ * `runtimeAgentId`, and `threadId` are supplied together.
401
+ */
397
402
  function useAgent({ agentId, threadId, runtimeAgentId, updates, throttleMs } = {}) {
398
403
  if (threadId != null && runtimeAgentId == null) throw new Error(`useAgent: \`threadId\` requires \`runtimeAgentId\`. A threadId is written onto a single agent, but an agent resolved by agentId alone is shared, so scoping a thread to it would clobber other useAgent callers. Pass a distinct local \`agentId\` and the runtime agent to route to, e.g. useAgent({ agentId: "chat-1", runtimeAgentId: "${agentId ?? "default"}", threadId }).`);
399
404
  if (runtimeAgentId != null && threadId == null) throw new Error(`useAgent: \`runtimeAgentId\` requires \`threadId\`. A proxied agent exists to scope a thread to a private instance; without a threadId it behaves like the shared agent while adding a registration and a local agentId to keep unique. Either pass the thread, e.g. useAgent({ agentId: "${agentId ?? "chat-1"}", runtimeAgentId: "${runtimeAgentId}", threadId }), or bind to the agent directly with useAgent({ agentId: "${runtimeAgentId}" }).`);
@@ -520,7 +525,7 @@ function useAgent({ agentId, threadId, runtimeAgentId, updates, throttleMs } = {
520
525
  copilotkit.runtimeUrl,
521
526
  copilotkit.runtimeTransport,
522
527
  copilotkit.credentials,
523
- JSON.stringify(copilotkit.headers)
528
+ copilotkit.ɵheadersGeneration
524
529
  ]);
525
530
  (0, react.useEffect)(() => {
526
531
  if (updateFlags.length === 0) return;
@@ -563,7 +568,7 @@ function useAgent({ agentId, threadId, runtimeAgentId, updates, throttleMs } = {
563
568
  if (agent instanceof _copilotkit_core.ProxiedCopilotRuntimeAgent) agent.credentials = copilotkit.credentials;
564
569
  }, [
565
570
  agent,
566
- JSON.stringify(copilotkit.headers),
571
+ copilotkit.ɵheadersGeneration,
567
572
  copilotkit.credentials
568
573
  ]);
569
574
  const configThreadId = chatConfig?.threadId;