@leeoohoo/aichat 1.0.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.
package/package.json ADDED
@@ -0,0 +1,190 @@
1
+ {
2
+ "name": "@leeoohoo/aichat",
3
+ "version": "1.0.0",
4
+ "description": "A complete React AI chat component with session management, MCP support, and SQLite persistence",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.esm.js",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.esm.js",
17
+ "require": "./dist/index.js",
18
+ "types": "./dist/index.d.ts"
19
+ },
20
+ "./styles": "./dist/index.css"
21
+ },
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "dev:server": "node server/index.js",
25
+ "dev:full": "concurrently \"npm run dev\" \"npm run dev:server\"",
26
+ "build": "tsc && vite build",
27
+ "build:lib": "vite build --config vite.lib.config.ts",
28
+ "build:server": "npm run build && npm run dev:server",
29
+ "preview": "vite preview",
30
+ "prepublishOnly": "npm run build:lib",
31
+ "test": "vitest",
32
+ "test:ui": "vitest --ui",
33
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
34
+ "lint:fix": "eslint . --ext ts,tsx --fix",
35
+ "type-check": "tsc --noEmit",
36
+ "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"
43
+ },
44
+ "dependencies": {
45
+ "@headlessui/react": "^2.2.7",
46
+ "@heroicons/react": "^2.2.0",
47
+ "@modelcontextprotocol/sdk": "^0.5.0",
48
+ "@radix-ui/react-dialog": "^1.0.5",
49
+ "@radix-ui/react-dropdown-menu": "^2.0.6",
50
+ "@radix-ui/react-select": "^2.0.0",
51
+ "@radix-ui/react-switch": "^1.0.3",
52
+ "@radix-ui/react-tabs": "^1.0.4",
53
+ "@radix-ui/react-tooltip": "^1.0.7",
54
+ "@tailwindcss/typography": "^0.5.16",
55
+ "axios": "^1.6.0",
56
+ "better-sqlite3": "^12.2.0",
57
+ "class-variance-authority": "^0.7.0",
58
+ "clsx": "^2.0.0",
59
+ "concurrently": "^9.2.1",
60
+ "cors": "^2.8.5",
61
+ "date-fns": "^4.1.0",
62
+ "dotenv": "^17.2.2",
63
+ "drizzle-orm": "^0.29.0",
64
+ "express": "^4.21.2",
65
+ "framer-motion": "^11.0.0",
66
+ "highlight.js": "^11.9.0",
67
+ "immer": "^10.0.0",
68
+ "katex": "^0.16.0",
69
+ "lucide-react": "^0.400.0",
70
+ "openai": "^4.20.0",
71
+ "react": "^18.2.0",
72
+ "react-dom": "^18.2.0",
73
+ "react-markdown": "^9.0.0",
74
+ "rehype-highlight": "^7.0.0",
75
+ "rehype-katex": "^7.0.0",
76
+ "remark-gfm": "^4.0.0",
77
+ "remark-math": "^6.0.0",
78
+ "sqlite": "^5.1.1",
79
+ "sqlite3": "^5.1.7",
80
+ "tailwind-merge": "^2.0.0",
81
+ "uuid": "^9.0.0",
82
+ "zustand": "^4.5.0"
83
+ },
84
+ "devDependencies": {
85
+ "@rollup/plugin-typescript": "^11.0.0",
86
+ "@storybook/addon-essentials": "^7.0.0",
87
+ "@storybook/react": "^7.0.0",
88
+ "@storybook/react-vite": "^7.0.0",
89
+ "@testing-library/jest-dom": "^6.0.0",
90
+ "@testing-library/react": "^14.0.0",
91
+ "@testing-library/user-event": "^14.0.0",
92
+ "@types/better-sqlite3": "^7.6.0",
93
+ "@types/katex": "^0.16.0",
94
+ "@types/react": "^18.2.0",
95
+ "@types/react-dom": "^18.2.0",
96
+ "@types/uuid": "^9.0.0",
97
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
98
+ "@typescript-eslint/parser": "^6.0.0",
99
+ "@vitejs/plugin-react": "^4.0.0",
100
+ "autoprefixer": "^10.4.0",
101
+ "drizzle-kit": "^0.20.0",
102
+ "electron": "^38.1.0",
103
+ "electron-builder": "^26.0.12",
104
+ "eslint": "^8.45.0",
105
+ "eslint-plugin-react-hooks": "^4.6.0",
106
+ "eslint-plugin-react-refresh": "^0.4.0",
107
+ "jsdom": "^23.0.0",
108
+ "postcss": "^8.4.0",
109
+ "rollup": "^4.0.0",
110
+ "rollup-plugin-dts": "^6.0.0",
111
+ "tailwindcss": "^3.4.0",
112
+ "typescript": "^5.0.0",
113
+ "vite": "^5.0.0",
114
+ "vite-plugin-dts": "^4.5.4",
115
+ "vite-plugin-lib-inject-css": "^2.2.2",
116
+ "vitest": "^1.0.0",
117
+ "wait-on": "^8.0.4"
118
+ },
119
+ "peerDependencies": {
120
+ "react": ">=18.0.0",
121
+ "react-dom": ">=18.0.0"
122
+ },
123
+ "keywords": [
124
+ "react",
125
+ "ai",
126
+ "chat",
127
+ "openai",
128
+ "mcp",
129
+ "sqlite",
130
+ "markdown",
131
+ "typescript",
132
+ "component"
133
+ ],
134
+ "author": "AI Chat Team",
135
+ "license": "MIT",
136
+ "repository": {
137
+ "type": "git",
138
+ "url": "https://github.com/ai-chat/react-component.git"
139
+ },
140
+ "bugs": {
141
+ "url": "https://github.com/ai-chat/react-component/issues"
142
+ },
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
+ }
190
+ }