@chat-js/cli 0.1.2 → 0.1.3
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.js +185 -177
- package/package.json +1 -1
- package/templates/chat-app/app/api/dev-login/route.ts +11 -4
- package/templates/chat-app/biome.jsonc +26 -0
- package/templates/chat-app/components/chat-sync.tsx +2 -4
- package/templates/chat-app/components/followup-suggestions.tsx +22 -14
- package/templates/chat-app/components/image-editor.tsx +1 -1
- package/templates/chat-app/components/part/weather.tsx +1 -1
- package/templates/chat-app/components/social-auth-providers.tsx +2 -0
- package/templates/chat-app/components/toolbar.tsx +1 -1
- package/templates/chat-app/lib/env-schema.ts +11 -33
- package/templates/chat-app/package.json +3 -2
- package/templates/chat-app/scripts/check-env.ts +11 -10
- package/templates/chat-app/.devtools/generations.json +0 -288
- package/templates/chat-app/.gemini/settings.json +0 -3
- package/templates/chat-app/.qwen/settings.json +0 -3
- package/templates/chat-app/next-env.d.ts +0 -6
- package/templates/chat-app/tsconfig.tsbuildinfo +0 -1
|
@@ -162,8 +162,9 @@
|
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
165
|
+
"@biomejs/biome": "^2.2.4",
|
|
165
166
|
"@playwright/test": "^1.50.1",
|
|
166
|
-
"@tailwindcss/postcss": "^4.1.12",
|
|
167
|
+
"@tailwindcss/postcss": "^4.1.12",
|
|
167
168
|
"@tailwindcss/typography": "^0.5.19",
|
|
168
169
|
"@types/node": "^22.8.6",
|
|
169
170
|
"@types/papaparse": "^5.3.15",
|
|
@@ -174,7 +175,7 @@
|
|
|
174
175
|
"evalite": "1.0.0-beta.8",
|
|
175
176
|
"pino-pretty": "^13.1.1",
|
|
176
177
|
"postcss": "^8",
|
|
177
|
-
"tailwindcss": "^4.1.12",
|
|
178
|
+
"tailwindcss": "^4.1.12",
|
|
178
179
|
"tsx": "^4.19.1",
|
|
179
180
|
"tw-animate-css": "^1.3.7",
|
|
180
181
|
"typescript": "5.8.3",
|
|
@@ -40,16 +40,14 @@ function validateFeatures(env: NodeJS.ProcessEnv): ValidationError[] {
|
|
|
40
40
|
errors.push(gatewayError);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
const featureEntries = Object.entries(featureEnvRequirements) as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
]
|
|
50
|
-
>;
|
|
43
|
+
const featureEntries = Object.entries(featureEnvRequirements) as [
|
|
44
|
+
keyof typeof featureEnvRequirements,
|
|
45
|
+
NonNullable<
|
|
46
|
+
(typeof featureEnvRequirements)[keyof typeof featureEnvRequirements]
|
|
47
|
+
>,
|
|
48
|
+
][];
|
|
51
49
|
for (const [feature, requirement] of featureEntries) {
|
|
52
|
-
if (!requirement
|
|
50
|
+
if (!(requirement && config.features[feature])) {
|
|
53
51
|
continue;
|
|
54
52
|
}
|
|
55
53
|
const missing = getMissingRequirement(requirement, env);
|
|
@@ -77,7 +75,10 @@ function validateAuthentication(env: NodeJS.ProcessEnv): ValidationError[] {
|
|
|
77
75
|
const requirement = authEnvRequirements[provider];
|
|
78
76
|
const missing = getMissingRequirement(requirement, env);
|
|
79
77
|
if (missing) {
|
|
80
|
-
errors.push({
|
|
78
|
+
errors.push({
|
|
79
|
+
feature: `authentication.${provider}`,
|
|
80
|
+
missing: [missing],
|
|
81
|
+
});
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
|