@smart-cloud/ai-kit-ui 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-cloud/ai-kit-ui",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -20,8 +20,8 @@
20
20
  "@emotion/cache": "^11.14.0",
21
21
  "@emotion/react": "^11.14.0",
22
22
  "@mantine/colors-generator": "^8.3.15",
23
- "@smart-cloud/ai-kit-core": "^1.2.0",
24
- "@smart-cloud/wpsuite-core": "^2.2.1",
23
+ "@smart-cloud/ai-kit-core": "^1.2.1",
24
+ "@smart-cloud/wpsuite-core": "^2.2.2",
25
25
  "@tabler/icons-react": "^3.36.1",
26
26
  "chroma-js": "^3.2.0",
27
27
  "react-markdown": "^10.1.0",
package/src/useAiRun.ts CHANGED
@@ -161,7 +161,7 @@ export function useAiRun<T>(): UseAiRunResult<T> {
161
161
  setError(null);
162
162
  return null;
163
163
  }
164
- throw new Error(getErrorMessage(err));
164
+ throw new Error(getErrorMessage(err), { cause: err });
165
165
  } finally {
166
166
  setBusy(false);
167
167
  setStatusEvent(null);