create-gentiq-app 0.13.0 → 0.14.0-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/package.json
CHANGED
|
@@ -8,6 +8,7 @@ from pydantic_ai import Agent, RunContext
|
|
|
8
8
|
|
|
9
9
|
from gentiq import (
|
|
10
10
|
AgentDeps,
|
|
11
|
+
CORSConfig,
|
|
11
12
|
GentiqApp,
|
|
12
13
|
ProgressUpdateEvent,
|
|
13
14
|
User,
|
|
@@ -85,6 +86,10 @@ app = GentiqApp[AppContext](
|
|
|
85
86
|
storage_engine="filesystem", # or minio for production
|
|
86
87
|
title_agent=create_title_agent(model_name="gpt-5-nano"),
|
|
87
88
|
send_to_logfire=True,
|
|
89
|
+
# Cross-origin policy. Omit (or pass cors=False) and no CORS middleware is
|
|
90
|
+
# installed at all — correct when the frontend is same-origin or proxied, as
|
|
91
|
+
# the Vite dev server does. List every browser origin that calls this API directly.
|
|
92
|
+
cors=CORSConfig(allow_origins=["http://localhost:5173"]),
|
|
88
93
|
)
|
|
89
94
|
|
|
90
95
|
|
|
@@ -10,11 +10,19 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@ai-sdk/react": "^2.0.125",
|
|
14
|
+
"@tanstack/react-query": "^5.90.19",
|
|
15
|
+
"ai": "^5.0.123",
|
|
13
16
|
"gentiq": "workspace:*",
|
|
17
|
+
"i18next": "^25.8.10",
|
|
18
|
+
"katex": "^0.16.28",
|
|
14
19
|
"lucide-react": "^0.542.0",
|
|
20
|
+
"next-themes": "^0.4.6",
|
|
15
21
|
"react": "^19.2.0",
|
|
16
22
|
"react-dom": "^19.2.0",
|
|
17
|
-
"react-
|
|
23
|
+
"react-i18next": "^16.5.4",
|
|
24
|
+
"react-router-dom": "^7.13.1",
|
|
25
|
+
"sonner": "^2.0.7"
|
|
18
26
|
},
|
|
19
27
|
"devDependencies": {
|
|
20
28
|
"@eslint/js": "^9.39.1",
|
|
@@ -30,4 +38,4 @@
|
|
|
30
38
|
"typescript-eslint": "^8.48.0",
|
|
31
39
|
"vite": "^7.3.1"
|
|
32
40
|
}
|
|
33
|
-
}
|
|
41
|
+
}
|
|
@@ -3,6 +3,9 @@ import { GentiqProvider, ChatUI, RequireAuth, UserLoginPage, SharedChatView } fr
|
|
|
3
3
|
import { AdminPanel } from 'gentiq/admin'
|
|
4
4
|
import type { ToolCallComponentProps, GentiqComponents } from 'gentiq'
|
|
5
5
|
import 'gentiq/style.css'
|
|
6
|
+
// Math styling comes straight from katex so your bundler emits its 60 font faces
|
|
7
|
+
// as separate cacheable files. Drop this import if your agent never emits math.
|
|
8
|
+
import 'katex/dist/katex.min.css'
|
|
6
9
|
import './index.css'
|
|
7
10
|
import { Sun, CloudRain, Snowflake, Wind, Cloud, Sparkles, Lightbulb, Zap } from 'lucide-react'
|
|
8
11
|
|