@foris/ai-agent 0.9.1-beta.1 → 0.9.1-beta.2
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/dist/ai-agent.es.js +2523 -47815
- package/dist/ai-agent.umd.js +4 -934
- package/dist/components/ai-elements/code-block.d.ts +1 -1
- package/package.json +51 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from '../ui/button';
|
|
2
2
|
import { type ComponentProps, type HTMLAttributes } from 'react';
|
|
3
3
|
/** Languages supported by the code block (subset bundled for single-file output) */
|
|
4
|
-
export type CodeBlockLanguage = 'json' | 'typescript' | 'ts' | 'javascript' | 'js' | 'markdown' | 'md' | 'html' | 'css' | 'python' | 'py' | 'yaml' | 'yml';
|
|
4
|
+
export type CodeBlockLanguage = 'json' | 'typescript' | 'ts' | 'javascript' | 'js' | 'markdown' | 'md' | 'html' | 'css' | 'python' | 'py' | 'yaml' | 'yml' | 'rust' | 'rs' | 'go' | 'csharp' | 'cs' | 'sql' | 'shellscript' | 'sh' | 'bash' | 'toml';
|
|
5
5
|
type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
6
|
code: string;
|
|
7
7
|
language: CodeBlockLanguage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/ai-agent",
|
|
3
|
-
"version": "0.9.1-beta.
|
|
3
|
+
"version": "0.9.1-beta.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,12 +21,55 @@
|
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "tsc && vite build",
|
|
24
|
+
"build:analyze": "tsc && ANALYZE=true vite build",
|
|
24
25
|
"test:watch": "vitest --ui",
|
|
25
26
|
"coverage": "vitest run --coverage"
|
|
26
27
|
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
|
|
28
|
+
"dependencies": {},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@ai-sdk/react": ">=2.0.0",
|
|
31
|
+
"@codemirror/lang-json": ">=6.0.0",
|
|
32
|
+
"@foris/avocado-icons": "workspace:*",
|
|
33
|
+
"@radix-ui/react-collapsible": ">=1.0.0",
|
|
34
|
+
"@radix-ui/react-dialog": ">=1.0.0",
|
|
35
|
+
"@radix-ui/react-dropdown-menu": ">=2.0.0",
|
|
36
|
+
"@radix-ui/react-hover-card": ">=1.0.0",
|
|
37
|
+
"@radix-ui/react-progress": ">=1.0.0",
|
|
38
|
+
"@radix-ui/react-scroll-area": ">=1.0.0",
|
|
39
|
+
"@radix-ui/react-select": ">=2.0.0",
|
|
40
|
+
"@radix-ui/react-separator": ">=1.0.0",
|
|
41
|
+
"@radix-ui/react-slot": ">=1.0.0",
|
|
42
|
+
"@radix-ui/react-tooltip": ">=1.0.0",
|
|
43
|
+
"@radix-ui/react-use-controllable-state": ">=1.0.0",
|
|
44
|
+
"@shikijs/langs": ">=3.20.0",
|
|
45
|
+
"@shikijs/themes": ">=3.20.0",
|
|
46
|
+
"@shikijs/transformers": ">=3.20.0",
|
|
47
|
+
"@tailwindcss/postcss": ">=4.0.0",
|
|
48
|
+
"@uiw/react-codemirror": ">=4.23.0",
|
|
49
|
+
"@xyflow/react": ">=12.0.0",
|
|
50
|
+
"ai": ">=5.0.0",
|
|
51
|
+
"class-variance-authority": ">=0.7.0",
|
|
52
|
+
"clsx": ">=2.0.0",
|
|
53
|
+
"cmdk": ">=1.0.0",
|
|
54
|
+
"embla-carousel-react": ">=8.0.0",
|
|
55
|
+
"lucide-react": ">=0.500.0",
|
|
56
|
+
"motion": ">=12.0.0",
|
|
57
|
+
"nanoid": ">=5.0.0",
|
|
58
|
+
"postcss": ">=8.0.0",
|
|
59
|
+
"react": ">=18.0.0",
|
|
60
|
+
"react-dom": ">=18.0.0",
|
|
61
|
+
"react-markdown": ">=10.0.0",
|
|
62
|
+
"shiki": ">=3.20.0",
|
|
63
|
+
"streamdown": ">=1.6.0",
|
|
64
|
+
"tailwind-merge": ">=3.0.0",
|
|
65
|
+
"tokenlens": ">=1.0.0",
|
|
66
|
+
"use-stick-to-bottom": ">=1.0.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
29
69
|
"@ai-sdk/react": "2.0.117",
|
|
70
|
+
"@codemirror/lang-json": "6.0.1",
|
|
71
|
+
"@foris/avocado-icons": "workspace:*",
|
|
72
|
+
"@foris/tsconfig": "workspace:*",
|
|
30
73
|
"@radix-ui/react-collapsible": "1.1.12",
|
|
31
74
|
"@radix-ui/react-dialog": "1.1.15",
|
|
32
75
|
"@radix-ui/react-dropdown-menu": "2.1.16",
|
|
@@ -38,6 +81,8 @@
|
|
|
38
81
|
"@radix-ui/react-slot": "1.2.4",
|
|
39
82
|
"@radix-ui/react-tooltip": "1.2.8",
|
|
40
83
|
"@radix-ui/react-use-controllable-state": "1.2.2",
|
|
84
|
+
"@shikijs/langs": "3.20.0",
|
|
85
|
+
"@shikijs/themes": "3.20.0",
|
|
41
86
|
"@tailwindcss/postcss": "4.1.18",
|
|
42
87
|
"@uiw/react-codemirror": "4.25.4",
|
|
43
88
|
"@xyflow/react": "12.10.0",
|
|
@@ -53,19 +98,11 @@
|
|
|
53
98
|
"react": "18.3.1",
|
|
54
99
|
"react-dom": "18.3.1",
|
|
55
100
|
"react-markdown": "10.1.0",
|
|
56
|
-
"@shikijs/langs": "3.20.0",
|
|
57
|
-
"@shikijs/themes": "3.20.0",
|
|
58
101
|
"shiki": "3.20.0",
|
|
59
102
|
"streamdown": "1.6.10",
|
|
60
103
|
"tailwind-merge": "3.4.0",
|
|
61
104
|
"tokenlens": "1.3.1",
|
|
62
|
-
"use-stick-to-bottom": "1.1.1"
|
|
63
|
-
},
|
|
64
|
-
"peerDependencies": {
|
|
65
|
-
"streamdown": ">=1.6.0"
|
|
66
|
-
},
|
|
67
|
-
"devDependencies": {
|
|
68
|
-
"@foris/tsconfig": "workspace:*",
|
|
105
|
+
"use-stick-to-bottom": "1.1.1",
|
|
69
106
|
"@shikijs/transformers": "3.20.0",
|
|
70
107
|
"@testing-library/jest-dom": "6.4.0",
|
|
71
108
|
"@testing-library/react": "14.2.0",
|
|
@@ -86,6 +123,7 @@
|
|
|
86
123
|
"vite": "5.0.12",
|
|
87
124
|
"vite-plugin-dts": "3.7.1",
|
|
88
125
|
"vite-plugin-static-copy": "1.0.0",
|
|
89
|
-
"vitest": "1.2.2"
|
|
126
|
+
"vitest": "1.2.2",
|
|
127
|
+
"rollup-plugin-visualizer": "5.12.0"
|
|
90
128
|
}
|
|
91
129
|
}
|