@copilotkit/react-core 1.87.1 → 1.88.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 (35) hide show
  1. package/dist/{copilotkit-Bop-sY6y.d.cts → copilotkit-BS_3fQrS.d.cts} +8 -3
  2. package/dist/{copilotkit-Bop-sY6y.d.cts.map → copilotkit-BS_3fQrS.d.cts.map} +1 -1
  3. package/dist/{copilotkit-BJ-6BoJ_.mjs → copilotkit-CYqkB8Nv.mjs} +67 -16
  4. package/dist/copilotkit-CYqkB8Nv.mjs.map +1 -0
  5. package/dist/{copilotkit-DFxtDD2N.cjs → copilotkit-D4AAgBT1.cjs} +67 -16
  6. package/dist/copilotkit-D4AAgBT1.cjs.map +1 -0
  7. package/dist/{copilotkit-BNPEXnEE.d.mts → copilotkit-RAr-1JSr.d.mts} +8 -3
  8. package/dist/{copilotkit-BNPEXnEE.d.mts.map → copilotkit-RAr-1JSr.d.mts.map} +1 -1
  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 +8 -3
  14. package/dist/index.umd.js.map +1 -1
  15. package/dist/v2/generative-ui.d.cts +132 -132
  16. package/dist/v2/generative-ui.d.cts.map +1 -1
  17. package/dist/v2/generative-ui.d.mts +132 -132
  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 +1 -1
  28. package/dist/v2/index.d.cts +2 -2
  29. package/dist/v2/index.d.mts +2 -2
  30. package/dist/v2/index.mjs +1 -1
  31. package/dist/v2/index.umd.js +66 -15
  32. package/dist/v2/index.umd.js.map +1 -1
  33. package/package.json +8 -8
  34. package/dist/copilotkit-BJ-6BoJ_.mjs.map +0 -1
  35. package/dist/copilotkit-DFxtDD2N.cjs.map +0 -1
@@ -1320,16 +1320,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1320
1320
  href: zod.ZodOptional<zod.ZodString>;
1321
1321
  copy: zod.ZodOptional<zod.ZodString>;
1322
1322
  }, "strip", zod.ZodTypeAny, {
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
1323
  checks?: {
1334
1324
  message?: string | undefined;
1335
1325
  condition?: boolean | zod.objectOutputType<{
@@ -1339,12 +1329,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1339
1329
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1340
1330
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1341
1331
  }[] | undefined;
1342
- disabled?: boolean | undefined;
1343
- loading?: boolean | undefined;
1344
- submit?: boolean | undefined;
1345
- uniform?: boolean | undefined;
1346
- copy?: string | undefined;
1347
- }, {
1348
1332
  label?: string | undefined;
1349
1333
  icon?: string | undefined;
1350
1334
  text?: string | undefined;
@@ -1355,6 +1339,12 @@ 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
+ }, {
1358
1348
  checks?: {
1359
1349
  message?: string | undefined;
1360
1350
  condition?: boolean | zod.objectInputType<{
@@ -1364,6 +1354,16 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1364
1354
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1365
1355
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1366
1356
  }[] | undefined;
1357
+ label?: string | 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;
@@ -1673,14 +1673,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1673
1673
  autoSelect: zod.ZodOptional<zod.ZodBoolean>;
1674
1674
  mask: zod.ZodOptional<zod.ZodString>;
1675
1675
  }, "strip", zod.ZodTypeAny, {
1676
- label?: string | undefined;
1677
- required?: boolean | undefined;
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
1676
  checks?: {
1685
1677
  message?: string | undefined;
1686
1678
  condition?: boolean | zod.objectOutputType<{
@@ -1690,12 +1682,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1690
1682
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1691
1683
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1692
1684
  }[] | undefined;
1693
- disabled?: boolean | undefined;
1694
- placeholder?: string | undefined;
1695
- invalid?: boolean | undefined;
1696
- autoSelect?: boolean | undefined;
1697
- mask?: string | undefined;
1698
- }, {
1699
1685
  label?: string | undefined;
1700
1686
  required?: boolean | undefined;
1701
1687
  name?: string | undefined;
@@ -1704,6 +1690,12 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1704
1690
  variant?: "number" | "url" | "shortText" | "longText" | "obscured" | "email" | "tel" | undefined;
1705
1691
  size?: "sm" | "md" | "lg" | "xl" | undefined;
1706
1692
  pill?: boolean | undefined;
1693
+ disabled?: boolean | undefined;
1694
+ placeholder?: string | undefined;
1695
+ invalid?: boolean | undefined;
1696
+ autoSelect?: boolean | undefined;
1697
+ mask?: string | undefined;
1698
+ }, {
1707
1699
  checks?: {
1708
1700
  message?: string | undefined;
1709
1701
  condition?: boolean | zod.objectInputType<{
@@ -1713,6 +1705,14 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1713
1705
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1714
1706
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1715
1707
  }[] | undefined;
1708
+ label?: string | undefined;
1709
+ required?: boolean | undefined;
1710
+ name?: string | 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;
@@ -1768,13 +1768,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1768
1768
  invalid: zod.ZodOptional<zod.ZodBoolean>;
1769
1769
  size: zod.ZodOptional<zod.ZodEnum<["sm", "md", "lg", "xl"]>>;
1770
1770
  }, "strip", zod.ZodTypeAny, {
1771
- label?: string | undefined;
1772
- required?: boolean | undefined;
1773
- name?: string | undefined;
1774
- value?: string | undefined;
1775
- rows?: number | undefined;
1776
- weight?: number | undefined;
1777
- size?: "sm" | "md" | "lg" | "xl" | undefined;
1778
1771
  checks?: {
1779
1772
  message?: string | undefined;
1780
1773
  condition?: boolean | zod.objectOutputType<{
@@ -1784,12 +1777,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1784
1777
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1785
1778
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1786
1779
  }[] | undefined;
1787
- disabled?: boolean | undefined;
1788
- placeholder?: string | undefined;
1789
- invalid?: boolean | undefined;
1790
- maxRows?: number | undefined;
1791
- autoResize?: boolean | undefined;
1792
- }, {
1793
1780
  label?: string | undefined;
1794
1781
  required?: boolean | undefined;
1795
1782
  name?: string | undefined;
@@ -1797,6 +1784,12 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1797
1784
  rows?: number | undefined;
1798
1785
  weight?: number | undefined;
1799
1786
  size?: "sm" | "md" | "lg" | "xl" | undefined;
1787
+ disabled?: boolean | undefined;
1788
+ placeholder?: string | undefined;
1789
+ invalid?: boolean | undefined;
1790
+ maxRows?: number | undefined;
1791
+ autoResize?: boolean | undefined;
1792
+ }, {
1800
1793
  checks?: {
1801
1794
  message?: string | undefined;
1802
1795
  condition?: boolean | zod.objectInputType<{
@@ -1806,6 +1799,13 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1806
1799
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1807
1800
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1808
1801
  }[] | undefined;
1802
+ label?: string | undefined;
1803
+ required?: boolean | undefined;
1804
+ name?: string | 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;
@@ -1875,6 +1875,15 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1875
1875
  size: zod.ZodOptional<zod.ZodEnum<["sm", "md", "lg", "xl"]>>;
1876
1876
  pill: zod.ZodOptional<zod.ZodBoolean>;
1877
1877
  }, "strip", zod.ZodTypeAny, {
1878
+ checks?: {
1879
+ message?: string | undefined;
1880
+ condition?: boolean | zod.objectOutputType<{
1881
+ valid: zod.ZodBoolean;
1882
+ message: zod.ZodOptional<zod.ZodString>;
1883
+ code: zod.ZodOptional<zod.ZodString>;
1884
+ severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1885
+ }, zod.ZodTypeAny, "passthrough"> | undefined;
1886
+ }[] | undefined;
1878
1887
  label?: string | undefined;
1879
1888
  required?: boolean | undefined;
1880
1889
  name?: string | undefined;
@@ -1888,21 +1897,21 @@ 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;
1900
+ disabled?: boolean | undefined;
1901
+ placeholder?: string | undefined;
1902
+ clearable?: boolean | undefined;
1903
+ clearLabel?: string | undefined;
1904
+ searchable?: boolean | undefined;
1905
+ }, {
1891
1906
  checks?: {
1892
1907
  message?: string | undefined;
1893
- condition?: boolean | zod.objectOutputType<{
1908
+ condition?: boolean | zod.objectInputType<{
1894
1909
  valid: zod.ZodBoolean;
1895
1910
  message: zod.ZodOptional<zod.ZodString>;
1896
1911
  code: zod.ZodOptional<zod.ZodString>;
1897
1912
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1898
1913
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1899
1914
  }[] | undefined;
1900
- disabled?: boolean | undefined;
1901
- placeholder?: string | undefined;
1902
- clearable?: boolean | undefined;
1903
- clearLabel?: string | undefined;
1904
- searchable?: boolean | undefined;
1905
- }, {
1906
1915
  label?: string | undefined;
1907
1916
  required?: boolean | undefined;
1908
1917
  name?: string | undefined;
@@ -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;
@@ -1976,12 +1976,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1976
1976
  lineThrough: zod.ZodOptional<zod.ZodBoolean>;
1977
1977
  shape: zod.ZodOptional<zod.ZodEnum<["round", "square"]>>;
1978
1978
  }, "strip", zod.ZodTypeAny, {
1979
- label?: string | undefined;
1980
- required?: boolean | undefined;
1981
- name?: string | undefined;
1982
- value?: boolean | undefined;
1983
- weight?: number | undefined;
1984
- lineThrough?: boolean | undefined;
1985
1979
  checks?: {
1986
1980
  message?: string | undefined;
1987
1981
  condition?: boolean | zod.objectOutputType<{
@@ -1991,15 +1985,15 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
1991
1985
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
1992
1986
  }, zod.ZodTypeAny, "passthrough"> | undefined;
1993
1987
  }[] | undefined;
1994
- disabled?: boolean | undefined;
1995
- shape?: "round" | "square" | undefined;
1996
- }, {
1997
1988
  label?: string | undefined;
1998
1989
  required?: boolean | undefined;
1999
1990
  name?: string | undefined;
2000
1991
  value?: boolean | undefined;
2001
1992
  weight?: number | undefined;
2002
1993
  lineThrough?: boolean | undefined;
1994
+ disabled?: boolean | undefined;
1995
+ shape?: "round" | "square" | undefined;
1996
+ }, {
2003
1997
  checks?: {
2004
1998
  message?: string | undefined;
2005
1999
  condition?: boolean | zod.objectInputType<{
@@ -2009,6 +2003,12 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2009
2003
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2010
2004
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2011
2005
  }[] | undefined;
2006
+ label?: string | undefined;
2007
+ required?: boolean | undefined;
2008
+ name?: string | 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
  }>;
@@ -2085,6 +2085,15 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2085
2085
  disabled: zod.ZodOptional<zod.ZodBoolean>;
2086
2086
  required: zod.ZodOptional<zod.ZodBoolean>;
2087
2087
  }, "strip", zod.ZodTypeAny, {
2088
+ checks?: {
2089
+ message?: string | undefined;
2090
+ condition?: boolean | zod.objectOutputType<{
2091
+ valid: zod.ZodBoolean;
2092
+ message: zod.ZodOptional<zod.ZodString>;
2093
+ code: zod.ZodOptional<zod.ZodString>;
2094
+ severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2095
+ }, zod.ZodTypeAny, "passthrough"> | undefined;
2096
+ }[] | undefined;
2088
2097
  label?: string | undefined;
2089
2098
  required?: boolean | undefined;
2090
2099
  name?: string | undefined;
@@ -2096,17 +2105,17 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2096
2105
  })[] | undefined;
2097
2106
  direction?: "col" | "row" | undefined;
2098
2107
  variant?: "list" | "pills" | "cards" | undefined;
2108
+ disabled?: boolean | undefined;
2109
+ }, {
2099
2110
  checks?: {
2100
2111
  message?: string | undefined;
2101
- condition?: boolean | zod.objectOutputType<{
2112
+ condition?: boolean | zod.objectInputType<{
2102
2113
  valid: zod.ZodBoolean;
2103
2114
  message: zod.ZodOptional<zod.ZodString>;
2104
2115
  code: zod.ZodOptional<zod.ZodString>;
2105
2116
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2106
2117
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2107
2118
  }[] | undefined;
2108
- disabled?: boolean | undefined;
2109
- }, {
2110
2119
  label?: string | undefined;
2111
2120
  required?: boolean | undefined;
2112
2121
  name?: string | undefined;
@@ -2118,15 +2127,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2118
2127
  })[] | undefined;
2119
2128
  direction?: "col" | "row" | undefined;
2120
2129
  variant?: "list" | "pills" | "cards" | undefined;
2121
- checks?: {
2122
- message?: string | undefined;
2123
- condition?: boolean | zod.objectInputType<{
2124
- valid: zod.ZodBoolean;
2125
- message: zod.ZodOptional<zod.ZodString>;
2126
- code: zod.ZodOptional<zod.ZodString>;
2127
- severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2128
- }, zod.ZodTypeAny, "passthrough"> | undefined;
2129
- }[] | undefined;
2130
2130
  disabled?: boolean | undefined;
2131
2131
  }>;
2132
2132
  Slider: zod.ZodObject<{
@@ -2187,12 +2187,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2187
2187
  disabled: zod.ZodOptional<zod.ZodBoolean>;
2188
2188
  name: zod.ZodOptional<zod.ZodString>;
2189
2189
  }, "strip", zod.ZodTypeAny, {
2190
- label?: string | undefined;
2191
- name?: string | undefined;
2192
- value?: number | undefined;
2193
- min?: number | undefined;
2194
- max?: number | undefined;
2195
- weight?: number | undefined;
2196
2190
  checks?: {
2197
2191
  message?: string | undefined;
2198
2192
  condition?: boolean | zod.objectOutputType<{
@@ -2202,6 +2196,12 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2202
2196
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2203
2197
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2204
2198
  }[] | undefined;
2199
+ label?: string | undefined;
2200
+ name?: string | 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;
@@ -2212,12 +2212,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2212
2212
  }[] | undefined;
2213
2213
  sliderStyle?: "continuous" | "discrete" | undefined;
2214
2214
  }, {
2215
- label?: string | undefined;
2216
- name?: string | undefined;
2217
- value?: number | undefined;
2218
- min?: number | undefined;
2219
- max?: number | undefined;
2220
- weight?: number | undefined;
2221
2215
  checks?: {
2222
2216
  message?: string | undefined;
2223
2217
  condition?: boolean | zod.objectInputType<{
@@ -2227,6 +2221,12 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2227
2221
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2228
2222
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2229
2223
  }[] | undefined;
2224
+ label?: string | undefined;
2225
+ name?: string | 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;
@@ -2294,6 +2294,15 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2294
2294
  variant: zod.ZodOptional<zod.ZodEnum<["solid", "soft", "outline", "ghost"]>>;
2295
2295
  disabled: zod.ZodOptional<zod.ZodBoolean>;
2296
2296
  }, "strip", zod.ZodTypeAny, {
2297
+ checks?: {
2298
+ message?: string | undefined;
2299
+ condition?: boolean | zod.objectOutputType<{
2300
+ valid: zod.ZodBoolean;
2301
+ message: zod.ZodOptional<zod.ZodString>;
2302
+ code: zod.ZodOptional<zod.ZodString>;
2303
+ severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2304
+ }, zod.ZodTypeAny, "passthrough"> | undefined;
2305
+ }[] | undefined;
2297
2306
  label?: string | undefined;
2298
2307
  value?: string | undefined;
2299
2308
  options?: (string | {
@@ -2305,17 +2314,17 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2305
2314
  size?: "sm" | "md" | "lg" | "xl" | undefined;
2306
2315
  pill?: boolean | undefined;
2307
2316
  block?: boolean | undefined;
2317
+ disabled?: boolean | undefined;
2318
+ }, {
2308
2319
  checks?: {
2309
2320
  message?: string | undefined;
2310
- condition?: boolean | zod.objectOutputType<{
2321
+ condition?: boolean | zod.objectInputType<{
2311
2322
  valid: zod.ZodBoolean;
2312
2323
  message: zod.ZodOptional<zod.ZodString>;
2313
2324
  code: zod.ZodOptional<zod.ZodString>;
2314
2325
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2315
2326
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2316
2327
  }[] | undefined;
2317
- disabled?: boolean | undefined;
2318
- }, {
2319
2328
  label?: string | undefined;
2320
2329
  value?: string | undefined;
2321
2330
  options?: (string | {
@@ -2327,15 +2336,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2327
2336
  size?: "sm" | "md" | "lg" | "xl" | undefined;
2328
2337
  pill?: boolean | undefined;
2329
2338
  block?: boolean | undefined;
2330
- checks?: {
2331
- message?: string | undefined;
2332
- condition?: boolean | zod.objectInputType<{
2333
- valid: zod.ZodBoolean;
2334
- message: zod.ZodOptional<zod.ZodString>;
2335
- code: zod.ZodOptional<zod.ZodString>;
2336
- severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2337
- }, zod.ZodTypeAny, "passthrough"> | undefined;
2338
- }[] | undefined;
2339
2339
  disabled?: boolean | undefined;
2340
2340
  }>;
2341
2341
  ChoicePicker: zod.ZodObject<{
@@ -2396,16 +2396,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2396
2396
  disabled: zod.ZodOptional<zod.ZodBoolean>;
2397
2397
  required: zod.ZodOptional<zod.ZodBoolean>;
2398
2398
  }, "strip", zod.ZodTypeAny, {
2399
- label?: string | undefined;
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
2399
  checks?: {
2410
2400
  message?: string | undefined;
2411
2401
  condition?: boolean | zod.objectOutputType<{
@@ -2415,10 +2405,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2415
2405
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2416
2406
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2417
2407
  }[] | undefined;
2418
- disabled?: boolean | undefined;
2419
- displayStyle?: "checkbox" | "chips" | undefined;
2420
- filterable?: boolean | undefined;
2421
- }, {
2422
2408
  label?: string | undefined;
2423
2409
  required?: boolean | undefined;
2424
2410
  value?: string[] | undefined;
@@ -2429,6 +2415,10 @@ 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
+ }, {
2432
2422
  checks?: {
2433
2423
  message?: string | undefined;
2434
2424
  condition?: boolean | zod.objectInputType<{
@@ -2438,6 +2428,16 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2438
2428
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2439
2429
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2440
2430
  }[] | undefined;
2431
+ label?: string | undefined;
2432
+ required?: boolean | 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;
@@ -2492,13 +2492,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2492
2492
  clearable: zod.ZodOptional<zod.ZodBoolean>;
2493
2493
  block: zod.ZodOptional<zod.ZodBoolean>;
2494
2494
  }, "strip", zod.ZodTypeAny, {
2495
- label?: string | undefined;
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
2495
  checks?: {
2503
2496
  message?: string | undefined;
2504
2497
  condition?: boolean | zod.objectOutputType<{
@@ -2508,13 +2501,6 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2508
2501
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2509
2502
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2510
2503
  }[] | undefined;
2511
- disabled?: boolean | undefined;
2512
- placeholder?: string | undefined;
2513
- clearable?: boolean | undefined;
2514
- enableDate?: boolean | undefined;
2515
- enableTime?: boolean | undefined;
2516
- timeStep?: number | undefined;
2517
- }, {
2518
2504
  label?: string | undefined;
2519
2505
  required?: boolean | undefined;
2520
2506
  value?: string | undefined;
@@ -2522,6 +2508,13 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2522
2508
  max?: string | undefined;
2523
2509
  weight?: number | undefined;
2524
2510
  block?: boolean | undefined;
2511
+ disabled?: boolean | undefined;
2512
+ placeholder?: string | undefined;
2513
+ clearable?: boolean | undefined;
2514
+ enableDate?: boolean | undefined;
2515
+ enableTime?: boolean | undefined;
2516
+ timeStep?: number | undefined;
2517
+ }, {
2525
2518
  checks?: {
2526
2519
  message?: string | undefined;
2527
2520
  condition?: boolean | zod.objectInputType<{
@@ -2531,6 +2524,13 @@ declare const standardUI: GenerativeUI<_copilotkit_shared_generative_ui0.Generat
2531
2524
  severity: zod.ZodOptional<zod.ZodEnum<["error", "warning", "info"]>>;
2532
2525
  }, zod.ZodTypeAny, "passthrough"> | undefined;
2533
2526
  }[] | undefined;
2527
+ label?: string | undefined;
2528
+ required?: boolean | 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,yBAAA,CAA0B,EAAA;AAAA;EAEhD,EAAA;EAAgB,UAAA;AAAA;;;;;AAmBxB;;;;;;;;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;;;;;;;;;;;;;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,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAA6iD,gBAAA;;;;;;;;;;;;;;;;;;;;;;gCAAq0B,eAAA;eAAr0B,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;gBAA+pK,GAAA,CAAA,SAAA;yCAAxpE,GAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;gCAA/V,gBAAA;;;;;;;;gCAA+V,eAAA;eAA/V,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAA8nD,gBAAA;;;;;;;;;;;;;;;;;;;;;;;gCAAy3B,eAAA;eAAz3B,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;iBAA45J,GAAA,CAAA,SAAA;yCAA5yD,GAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;gCAA/V,gBAAA;;;;;;;;gCAA+V,eAAA;eAA/V,GAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;gCAA4yC,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;