feat(cli): add elysia + aisdk support and fix fastify ai example

This commit is contained in:
Aman Varshney
2025-09-09 23:39:35 +05:30
parent d0a9a5d223
commit e5ba83fe3b
7 changed files with 112 additions and 130 deletions

View File

@@ -912,13 +912,6 @@ export const analyzeStackCompatibility = (
"Todo example removed (requires a database but 'None' was selected)",
});
}
if (nextStack.backend === "elysia" && nextStack.examples.includes("ai")) {
incompatibleExamples.push("ai");
changes.push({
category: "examples",
message: "AI example removed (not compatible with Elysia backend)",
});
}
if (isSolid && nextStack.examples.includes("ai")) {
incompatibleExamples.push("ai");
changes.push({
@@ -942,19 +935,6 @@ export const analyzeStackCompatibility = (
notes.database.hasIssue = true;
notes.examples.hasIssue = true;
}
if (
nextStack.backend === "elysia" &&
uniqueIncompatibleExamples.includes("ai")
) {
notes.backend.notes.push(
"AI example is not compatible with Elysia. It will be removed.",
);
notes.examples.notes.push(
"AI example is not compatible with Elysia. It will be removed.",
);
notes.backend.hasIssue = true;
notes.examples.hasIssue = true;
}
if (isSolid && uniqueIncompatibleExamples.includes("ai")) {
notes.webFrontend.notes.push(
"AI example is not compatible with Solid. It will be removed.",
@@ -1551,9 +1531,6 @@ export const getDisabledReason = (
}
if (category === "examples" && optionId === "ai") {
if (finalStack.backend === "elysia") {
return "AI example is not compatible with Elysia backend. Try Hono, Express, or Fastify.";
}
if (finalStack.webFrontend.includes("solid")) {
return "AI example is not compatible with Solid frontend. Try React-based frontends.";
}