@leeoohoo/aichat 1.0.1 → 1.0.7
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/index.cjs.js +56 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.d.ts +543 -62
- package/dist/index.esm.js +17171 -14413
- package/dist/index.esm.js.map +1 -1
- package/package.json +10 -75
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leeoohoo/aichat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "A complete React AI chat component with session management, MCP support, and SQLite persistence",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"files": [
|
|
@@ -14,18 +14,15 @@
|
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"import": "./dist/index.esm.js",
|
|
17
|
-
"require": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs.js",
|
|
18
18
|
"types": "./dist/index.d.ts"
|
|
19
19
|
},
|
|
20
20
|
"./styles": "./dist/index.css"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"dev": "vite",
|
|
24
|
-
"dev:server": "node server/index.js",
|
|
25
|
-
"dev:full": "concurrently \"npm run dev\" \"npm run dev:server\"",
|
|
26
24
|
"build": "tsc && vite build",
|
|
27
25
|
"build:lib": "vite build --config vite.lib.config.ts",
|
|
28
|
-
"build:server": "npm run build && npm run dev:server",
|
|
29
26
|
"preview": "vite preview",
|
|
30
27
|
"prepublishOnly": "npm run build:lib",
|
|
31
28
|
"test": "vitest",
|
|
@@ -34,12 +31,7 @@
|
|
|
34
31
|
"lint:fix": "eslint . --ext ts,tsx --fix",
|
|
35
32
|
"type-check": "tsc --noEmit",
|
|
36
33
|
"storybook": "storybook dev -p 6006",
|
|
37
|
-
"build-storybook": "storybook build"
|
|
38
|
-
"electron": "electron .",
|
|
39
|
-
"electron:dev": "NODE_ENV=development wait-on http://localhost:3001 && NODE_ENV=development electron .",
|
|
40
|
-
"electron:dev:full": "concurrently \"npm run dev:server\" \"wait-on http://localhost:3001 && electron .\"",
|
|
41
|
-
"electron:build": "npm run build && electron-builder",
|
|
42
|
-
"dist": "npm run build && electron-builder --publish=never"
|
|
34
|
+
"build-storybook": "storybook build"
|
|
43
35
|
},
|
|
44
36
|
"dependencies": {
|
|
45
37
|
"@headlessui/react": "^2.2.7",
|
|
@@ -53,30 +45,23 @@
|
|
|
53
45
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
54
46
|
"@tailwindcss/typography": "^0.5.16",
|
|
55
47
|
"axios": "^1.6.0",
|
|
56
|
-
"better-sqlite3": "^12.2.0",
|
|
57
48
|
"class-variance-authority": "^0.7.0",
|
|
58
49
|
"clsx": "^2.0.0",
|
|
59
|
-
"concurrently": "^9.2.1",
|
|
60
|
-
"cors": "^2.8.5",
|
|
61
50
|
"date-fns": "^4.1.0",
|
|
62
|
-
"
|
|
63
|
-
"drizzle-orm": "^0.29.0",
|
|
64
|
-
"express": "^4.21.2",
|
|
51
|
+
"drizzle-orm": "^0.44.6",
|
|
65
52
|
"framer-motion": "^11.0.0",
|
|
66
53
|
"highlight.js": "^11.9.0",
|
|
67
54
|
"immer": "^10.0.0",
|
|
68
55
|
"katex": "^0.16.0",
|
|
69
56
|
"lucide-react": "^0.400.0",
|
|
70
57
|
"openai": "^4.20.0",
|
|
71
|
-
"react": "
|
|
72
|
-
"react-dom": "
|
|
58
|
+
"react": ">=18.0.0",
|
|
59
|
+
"react-dom": ">=18.0.0",
|
|
73
60
|
"react-markdown": "^9.0.0",
|
|
74
61
|
"rehype-highlight": "^7.0.0",
|
|
75
62
|
"rehype-katex": "^7.0.0",
|
|
76
63
|
"remark-gfm": "^4.0.0",
|
|
77
64
|
"remark-math": "^6.0.0",
|
|
78
|
-
"sqlite": "^5.1.1",
|
|
79
|
-
"sqlite3": "^5.1.7",
|
|
80
65
|
"tailwind-merge": "^2.0.0",
|
|
81
66
|
"uuid": "^9.0.0",
|
|
82
67
|
"zustand": "^4.5.0"
|
|
@@ -89,8 +74,8 @@
|
|
|
89
74
|
"@testing-library/jest-dom": "^6.0.0",
|
|
90
75
|
"@testing-library/react": "^14.0.0",
|
|
91
76
|
"@testing-library/user-event": "^14.0.0",
|
|
92
|
-
"@types/better-sqlite3": "^7.6.0",
|
|
93
77
|
"@types/katex": "^0.16.0",
|
|
78
|
+
"@types/node": "^24.7.2",
|
|
94
79
|
"@types/react": "^18.2.0",
|
|
95
80
|
"@types/react-dom": "^18.2.0",
|
|
96
81
|
"@types/uuid": "^9.0.0",
|
|
@@ -98,9 +83,6 @@
|
|
|
98
83
|
"@typescript-eslint/parser": "^6.0.0",
|
|
99
84
|
"@vitejs/plugin-react": "^4.0.0",
|
|
100
85
|
"autoprefixer": "^10.4.0",
|
|
101
|
-
"drizzle-kit": "^0.20.0",
|
|
102
|
-
"electron": "^38.1.0",
|
|
103
|
-
"electron-builder": "^26.0.12",
|
|
104
86
|
"eslint": "^8.45.0",
|
|
105
87
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
106
88
|
"eslint-plugin-react-refresh": "^0.4.0",
|
|
@@ -113,8 +95,7 @@
|
|
|
113
95
|
"vite": "^5.0.0",
|
|
114
96
|
"vite-plugin-dts": "^4.5.4",
|
|
115
97
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
116
|
-
"vitest": "^1.0.0"
|
|
117
|
-
"wait-on": "^8.0.4"
|
|
98
|
+
"vitest": "^1.0.0"
|
|
118
99
|
},
|
|
119
100
|
"peerDependencies": {
|
|
120
101
|
"react": ">=18.0.0",
|
|
@@ -140,51 +121,5 @@
|
|
|
140
121
|
"bugs": {
|
|
141
122
|
"url": "https://github.com/ai-chat/react-component/issues"
|
|
142
123
|
},
|
|
143
|
-
"homepage": "https://github.com/ai-chat/react-component#readme"
|
|
144
|
-
"build": {
|
|
145
|
-
"appId": "com.aichat.desktop",
|
|
146
|
-
"productName": "AI Chat Desktop",
|
|
147
|
-
"directories": {
|
|
148
|
-
"output": "release"
|
|
149
|
-
},
|
|
150
|
-
"files": [
|
|
151
|
-
"dist/**/*",
|
|
152
|
-
"server/**/*",
|
|
153
|
-
"electron/**/*",
|
|
154
|
-
"data/**/*",
|
|
155
|
-
"node_modules/**/*"
|
|
156
|
-
],
|
|
157
|
-
"mac": {
|
|
158
|
-
"category": "public.app-category.productivity",
|
|
159
|
-
"target": [
|
|
160
|
-
{
|
|
161
|
-
"target": "dmg",
|
|
162
|
-
"arch": [
|
|
163
|
-
"x64",
|
|
164
|
-
"arm64"
|
|
165
|
-
]
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
"win": {
|
|
170
|
-
"target": [
|
|
171
|
-
{
|
|
172
|
-
"target": "nsis",
|
|
173
|
-
"arch": [
|
|
174
|
-
"x64"
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
"linux": {
|
|
180
|
-
"target": [
|
|
181
|
-
{
|
|
182
|
-
"target": "AppImage",
|
|
183
|
-
"arch": [
|
|
184
|
-
"x64"
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
}
|
|
124
|
+
"homepage": "https://github.com/ai-chat/react-component#readme"
|
|
190
125
|
}
|