@digilogiclabs/create-saas-app 1.0.1

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.
Files changed (830) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +891 -0
  3. package/dist/.tsbuildinfo +1 -0
  4. package/dist/cli/commands/add.d.ts +6 -0
  5. package/dist/cli/commands/add.d.ts.map +1 -0
  6. package/dist/cli/commands/add.js +39 -0
  7. package/dist/cli/commands/add.js.map +1 -0
  8. package/dist/cli/commands/create.d.ts +35 -0
  9. package/dist/cli/commands/create.d.ts.map +1 -0
  10. package/dist/cli/commands/create.js +165 -0
  11. package/dist/cli/commands/create.js.map +1 -0
  12. package/dist/cli/commands/index.d.ts +4 -0
  13. package/dist/cli/commands/index.d.ts.map +1 -0
  14. package/dist/cli/commands/index.js +20 -0
  15. package/dist/cli/commands/index.js.map +1 -0
  16. package/dist/cli/commands/update.d.ts +6 -0
  17. package/dist/cli/commands/update.d.ts.map +1 -0
  18. package/dist/cli/commands/update.js +68 -0
  19. package/dist/cli/commands/update.js.map +1 -0
  20. package/dist/cli/index.d.ts +4 -0
  21. package/dist/cli/index.d.ts.map +1 -0
  22. package/dist/cli/index.js +61 -0
  23. package/dist/cli/index.js.map +1 -0
  24. package/dist/cli/prompts/index.d.ts +2 -0
  25. package/dist/cli/prompts/index.d.ts.map +1 -0
  26. package/dist/cli/prompts/index.js +18 -0
  27. package/dist/cli/prompts/index.js.map +1 -0
  28. package/dist/cli/prompts/project-setup.d.ts +5 -0
  29. package/dist/cli/prompts/project-setup.d.ts.map +1 -0
  30. package/dist/cli/prompts/project-setup.js +288 -0
  31. package/dist/cli/prompts/project-setup.js.map +1 -0
  32. package/dist/cli/utils/git.d.ts +9 -0
  33. package/dist/cli/utils/git.d.ts.map +1 -0
  34. package/dist/cli/utils/git.js +77 -0
  35. package/dist/cli/utils/git.js.map +1 -0
  36. package/dist/cli/utils/index.d.ts +5 -0
  37. package/dist/cli/utils/index.d.ts.map +1 -0
  38. package/dist/cli/utils/index.js +21 -0
  39. package/dist/cli/utils/index.js.map +1 -0
  40. package/dist/cli/utils/logger.d.ts +16 -0
  41. package/dist/cli/utils/logger.d.ts.map +1 -0
  42. package/dist/cli/utils/logger.js +55 -0
  43. package/dist/cli/utils/logger.js.map +1 -0
  44. package/dist/cli/utils/package-manager.d.ts +8 -0
  45. package/dist/cli/utils/package-manager.d.ts.map +1 -0
  46. package/dist/cli/utils/package-manager.js +92 -0
  47. package/dist/cli/utils/package-manager.js.map +1 -0
  48. package/dist/cli/utils/spinner.d.ts +7 -0
  49. package/dist/cli/utils/spinner.d.ts.map +1 -0
  50. package/dist/cli/utils/spinner.js +48 -0
  51. package/dist/cli/utils/spinner.js.map +1 -0
  52. package/dist/cli/validators/dependencies.d.ts +15 -0
  53. package/dist/cli/validators/dependencies.d.ts.map +1 -0
  54. package/dist/cli/validators/dependencies.js +108 -0
  55. package/dist/cli/validators/dependencies.js.map +1 -0
  56. package/dist/cli/validators/index.d.ts +3 -0
  57. package/dist/cli/validators/index.d.ts.map +1 -0
  58. package/dist/cli/validators/index.js +19 -0
  59. package/dist/cli/validators/index.js.map +1 -0
  60. package/dist/cli/validators/project-name.d.ts +5 -0
  61. package/dist/cli/validators/project-name.d.ts.map +1 -0
  62. package/dist/cli/validators/project-name.js +151 -0
  63. package/dist/cli/validators/project-name.js.map +1 -0
  64. package/dist/generators/file-processor.d.ts +28 -0
  65. package/dist/generators/file-processor.d.ts.map +1 -0
  66. package/dist/generators/file-processor.js +224 -0
  67. package/dist/generators/file-processor.js.map +1 -0
  68. package/dist/generators/index.d.ts +4 -0
  69. package/dist/generators/index.d.ts.map +1 -0
  70. package/dist/generators/index.js +20 -0
  71. package/dist/generators/index.js.map +1 -0
  72. package/dist/generators/package-installer.d.ts +29 -0
  73. package/dist/generators/package-installer.d.ts.map +1 -0
  74. package/dist/generators/package-installer.js +177 -0
  75. package/dist/generators/package-installer.js.map +1 -0
  76. package/dist/generators/template-generator.d.ts +61 -0
  77. package/dist/generators/template-generator.d.ts.map +1 -0
  78. package/dist/generators/template-generator.js +457 -0
  79. package/dist/generators/template-generator.js.map +1 -0
  80. package/dist/templates/mobile/base/template/.env.example +15 -0
  81. package/dist/templates/mobile/base/template/App.tsx +186 -0
  82. package/dist/templates/mobile/base/template/app/(auth)/login.tsx +44 -0
  83. package/dist/templates/mobile/base/template/app/(auth)/signup.tsx +43 -0
  84. package/dist/templates/mobile/base/template/app/checkout.tsx +20 -0
  85. package/dist/templates/mobile/base/template/app.json +44 -0
  86. package/dist/templates/mobile/base/template/babel.config.js +6 -0
  87. package/dist/templates/mobile/base/template/eas.json +19 -0
  88. package/dist/templates/mobile/base/template/package.json +54 -0
  89. package/dist/templates/mobile/ui-auth-payments/template/.env.example +20 -0
  90. package/dist/templates/mobile/ui-auth-payments/template/README.md +218 -0
  91. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +153 -0
  92. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/analytics.tsx +668 -0
  93. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +743 -0
  94. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +757 -0
  95. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/orders.tsx +402 -0
  96. package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +580 -0
  97. package/dist/templates/mobile/ui-auth-payments/template/app/_layout.tsx +134 -0
  98. package/dist/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +246 -0
  99. package/dist/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +362 -0
  100. package/dist/templates/mobile/ui-auth-payments/template/app/onboarding/index.tsx +193 -0
  101. package/dist/templates/mobile/ui-auth-payments/template/app/tour/index.tsx +272 -0
  102. package/dist/templates/mobile/ui-auth-payments/template/app.json +94 -0
  103. package/dist/templates/mobile/ui-auth-payments/template/babel.config.js +23 -0
  104. package/dist/templates/mobile/ui-auth-payments/template/eas.json +45 -0
  105. package/dist/templates/mobile/ui-auth-payments/template/expo-env.d.ts +3 -0
  106. package/dist/templates/mobile/ui-auth-payments/template/jest-setup.ts +74 -0
  107. package/dist/templates/mobile/ui-auth-payments/template/metro.config.js +11 -0
  108. package/dist/templates/mobile/ui-auth-payments/template/package.json +117 -0
  109. package/dist/templates/mobile/ui-auth-payments/template/tsconfig.json +31 -0
  110. package/dist/templates/mobile/ui-auth-payments-ai/template/.env.example +23 -0
  111. package/dist/templates/mobile/ui-auth-payments-ai/template/README.md +254 -0
  112. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +169 -0
  113. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/ai.tsx +522 -0
  114. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/analytics.tsx +668 -0
  115. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +743 -0
  116. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +676 -0
  117. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/orders.tsx +402 -0
  118. package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +580 -0
  119. package/dist/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +134 -0
  120. package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +246 -0
  121. package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +362 -0
  122. package/dist/templates/mobile/ui-auth-payments-ai/template/app/onboarding/index.tsx +193 -0
  123. package/dist/templates/mobile/ui-auth-payments-ai/template/app/tour/index.tsx +272 -0
  124. package/dist/templates/mobile/ui-auth-payments-ai/template/app.json +94 -0
  125. package/dist/templates/mobile/ui-auth-payments-ai/template/babel.config.js +23 -0
  126. package/dist/templates/mobile/ui-auth-payments-ai/template/eas.json +45 -0
  127. package/dist/templates/mobile/ui-auth-payments-ai/template/expo-env.d.ts +3 -0
  128. package/dist/templates/mobile/ui-auth-payments-ai/template/jest-setup.ts +74 -0
  129. package/dist/templates/mobile/ui-auth-payments-ai/template/metro.config.js +11 -0
  130. package/dist/templates/mobile/ui-auth-payments-ai/template/package.json +119 -0
  131. package/dist/templates/mobile/ui-auth-payments-ai/template/tsconfig.json +31 -0
  132. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/README.md +655 -0
  133. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/app/(tabs)/ai.tsx +683 -0
  134. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/app/_layout.tsx +134 -0
  135. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/app.json +74 -0
  136. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/babel.config.js +25 -0
  137. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/docs/MOBILE-SETUP.md +787 -0
  138. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/eas.json +25 -0
  139. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/expo-env.d.ts +3 -0
  140. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/hooks/useRAGSystem.ts +346 -0
  141. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/jest-setup.ts +37 -0
  142. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/lib/rag/config.ts +180 -0
  143. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/metro.config.js +11 -0
  144. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/package.json +124 -0
  145. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/scripts/setup-rag.js +599 -0
  146. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/tsconfig.json +32 -0
  147. package/dist/templates/shared/auth/firebase/web/config.ts +23 -0
  148. package/dist/templates/shared/auth/supabase/web/config.ts +8 -0
  149. package/dist/templates/web/base/template/.env.example +15 -0
  150. package/dist/templates/web/base/template/.eslintrc.js +8 -0
  151. package/dist/templates/web/base/template/README.md +68 -0
  152. package/dist/templates/web/base/template/next.config.js +15 -0
  153. package/dist/templates/web/base/template/package.json +59 -0
  154. package/dist/templates/web/base/template/postcss.config.js +7 -0
  155. package/dist/templates/web/base/template/src/app/auth/callback/route.ts +18 -0
  156. package/dist/templates/web/base/template/src/app/checkout/page.tsx +119 -0
  157. package/dist/templates/web/base/template/src/app/dashboard/page.tsx +366 -0
  158. package/dist/templates/web/base/template/src/app/error.tsx +97 -0
  159. package/dist/templates/web/base/template/src/app/globals.css +157 -0
  160. package/dist/templates/web/base/template/src/app/layout.tsx +35 -0
  161. package/dist/templates/web/base/template/src/app/loading.tsx +52 -0
  162. package/dist/templates/web/base/template/src/app/login/page.tsx +67 -0
  163. package/dist/templates/web/base/template/src/app/page.tsx +193 -0
  164. package/dist/templates/web/base/template/src/app/signup/page.tsx +67 -0
  165. package/dist/templates/web/base/template/src/components/__tests__/example.test.tsx +49 -0
  166. package/dist/templates/web/base/template/src/components/providers/app-providers.tsx +35 -0
  167. package/dist/templates/web/base/template/src/components/providers/theme-provider.tsx +94 -0
  168. package/dist/templates/web/base/template/src/components/shared/footer.tsx +36 -0
  169. package/dist/templates/web/base/template/src/components/shared/header.tsx +63 -0
  170. package/dist/templates/web/base/template/src/components/ui/badge.tsx +36 -0
  171. package/dist/templates/web/base/template/src/components/ui/button.tsx +56 -0
  172. package/dist/templates/web/base/template/src/components/ui/card.tsx +71 -0
  173. package/dist/templates/web/base/template/src/components/ui/theme-toggle.tsx +34 -0
  174. package/dist/templates/web/base/template/src/lib/auth-server.ts +177 -0
  175. package/dist/templates/web/base/template/src/lib/env.ts +46 -0
  176. package/dist/templates/web/base/template/src/lib/platform.ts +146 -0
  177. package/dist/templates/web/base/template/src/lib/utils.ts +140 -0
  178. package/dist/templates/web/base/template/src/test/setup.ts +79 -0
  179. package/dist/templates/web/base/template/tailwind.config.js +77 -0
  180. package/dist/templates/web/base/template/tsconfig.json +33 -0
  181. package/dist/templates/web/base/template/vitest.config.ts +17 -0
  182. package/dist/templates/web/base/template.backup/.env.example +15 -0
  183. package/dist/templates/web/base/template.backup.20250817/.env.example +15 -0
  184. package/dist/templates/web/ui-auth/template/.claude +21 -0
  185. package/dist/templates/web/ui-auth/template/.env.example +15 -0
  186. package/dist/templates/web/ui-auth/template/.eslintrc.js +8 -0
  187. package/dist/templates/web/ui-auth/template/README.md +68 -0
  188. package/dist/templates/web/ui-auth/template/context.md +105 -0
  189. package/dist/templates/web/ui-auth/template/next.config.js +12 -0
  190. package/dist/templates/web/ui-auth/template/package.json +51 -0
  191. package/dist/templates/web/ui-auth/template/postcss.config.js +7 -0
  192. package/dist/templates/web/ui-auth/template/src/app/auth/callback/route.ts +12 -0
  193. package/dist/templates/web/ui-auth/template/src/app/checkout/page.tsx +25 -0
  194. package/dist/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +801 -0
  195. package/dist/templates/web/ui-auth/template/src/app/error.tsx +67 -0
  196. package/dist/templates/web/ui-auth/template/src/app/globals.css +95 -0
  197. package/dist/templates/web/ui-auth/template/src/app/layout.tsx +33 -0
  198. package/dist/templates/web/ui-auth/template/src/app/loading.tsx +38 -0
  199. package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +109 -0
  200. package/dist/templates/web/ui-auth/template/src/app/page.tsx +305 -0
  201. package/dist/templates/web/ui-auth/template/src/app/setup/page.tsx +403 -0
  202. package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -0
  203. package/dist/templates/web/ui-auth/template/src/components/__tests__/example.test.tsx +49 -0
  204. package/dist/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +31 -0
  205. package/dist/templates/web/ui-auth/template/src/components/providers/theme-provider.tsx +94 -0
  206. package/dist/templates/web/ui-auth/template/src/components/shared/footer.tsx +36 -0
  207. package/dist/templates/web/ui-auth/template/src/components/shared/header.tsx +94 -0
  208. package/dist/templates/web/ui-auth/template/src/components/ui/badge.tsx +36 -0
  209. package/dist/templates/web/ui-auth/template/src/components/ui/theme-toggle.tsx +34 -0
  210. package/dist/templates/web/ui-auth/template/src/lib/env.ts +49 -0
  211. package/dist/templates/web/ui-auth/template/src/lib/platform.ts +137 -0
  212. package/dist/templates/web/ui-auth/template/src/lib/utils.ts +140 -0
  213. package/dist/templates/web/ui-auth/template/src/test/setup.ts +79 -0
  214. package/dist/templates/web/ui-auth/template/tailwind.config.js +77 -0
  215. package/dist/templates/web/ui-auth/template/tsconfig.json +33 -0
  216. package/dist/templates/web/ui-auth/template/vitest.config.ts +17 -0
  217. package/dist/templates/web/ui-auth/template.backup/.env.example +15 -0
  218. package/dist/templates/web/ui-auth/template.backup.20250817/.env.example +15 -0
  219. package/dist/templates/web/ui-auth-ai/template/.env.example +18 -0
  220. package/dist/templates/web/ui-auth-ai/template/README.md +170 -0
  221. package/dist/templates/web/ui-auth-ai/template/next.config.js +13 -0
  222. package/dist/templates/web/ui-auth-ai/template/package.json +39 -0
  223. package/dist/templates/web/ui-auth-ai/template/postcss.config.js +6 -0
  224. package/dist/templates/web/ui-auth-ai/template/src/app/globals.css +40 -0
  225. package/dist/templates/web/ui-auth-ai/template/src/app/layout.tsx +41 -0
  226. package/dist/templates/web/ui-auth-ai/template/src/app/page.tsx +193 -0
  227. package/dist/templates/web/ui-auth-ai/template/src/components/ai/audio-generator.tsx +141 -0
  228. package/dist/templates/web/ui-auth-ai/template/src/components/ai/video-generator.tsx +158 -0
  229. package/dist/templates/web/ui-auth-ai/template/src/components/auth/login-form.tsx +106 -0
  230. package/dist/templates/web/ui-auth-ai/template/src/components/ui/button.tsx +44 -0
  231. package/dist/templates/web/ui-auth-ai/template/src/components/ui/input.tsx +24 -0
  232. package/dist/templates/web/ui-auth-ai/template/src/components/ui/label.tsx +21 -0
  233. package/dist/templates/web/ui-auth-ai/template/src/components/ui/select.tsx +37 -0
  234. package/dist/templates/web/ui-auth-ai/template/src/components/ui/textarea.tsx +23 -0
  235. package/dist/templates/web/ui-auth-ai/template/src/hooks/useAuth.ts +1 -0
  236. package/dist/templates/web/ui-auth-ai/template/src/lib/supabase.ts +8 -0
  237. package/dist/templates/web/ui-auth-ai/template/src/lib/utils.ts +5 -0
  238. package/dist/templates/web/ui-auth-ai/template/src/providers/auth-provider.tsx +55 -0
  239. package/dist/templates/web/ui-auth-ai/template/tailwind.config.js +22 -0
  240. package/dist/templates/web/ui-auth-ai/template/tsconfig.json +28 -0
  241. package/dist/templates/web/ui-auth-payments/template/.env.example +51 -0
  242. package/dist/templates/web/ui-auth-payments/template/README.md +165 -0
  243. package/dist/templates/web/ui-auth-payments/template/middleware.ts +68 -0
  244. package/dist/templates/web/ui-auth-payments/template/next.config.js +12 -0
  245. package/dist/templates/web/ui-auth-payments/template/package-lock.json +12240 -0
  246. package/dist/templates/web/ui-auth-payments/template/package.json +55 -0
  247. package/dist/templates/web/ui-auth-payments/template/postcss.config.js +7 -0
  248. package/dist/templates/web/ui-auth-payments/template/src/app/auth/callback/route.ts +12 -0
  249. package/dist/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +211 -0
  250. package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +318 -0
  251. package/dist/templates/web/ui-auth-payments/template/src/app/dashboard/layout.tsx +22 -0
  252. package/dist/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +235 -0
  253. package/dist/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +801 -0
  254. package/dist/templates/web/ui-auth-payments/template/src/app/error.tsx +67 -0
  255. package/dist/templates/web/ui-auth-payments/template/src/app/globals.css +211 -0
  256. package/dist/templates/web/ui-auth-payments/template/src/app/layout.tsx +33 -0
  257. package/dist/templates/web/ui-auth-payments/template/src/app/loading.tsx +20 -0
  258. package/dist/templates/web/ui-auth-payments/template/src/app/login/loading.tsx +38 -0
  259. package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -0
  260. package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +350 -0
  261. package/dist/templates/web/ui-auth-payments/template/src/app/setup/page.tsx +507 -0
  262. package/dist/templates/web/ui-auth-payments/template/src/app/signup/loading.tsx +50 -0
  263. package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -0
  264. package/dist/templates/web/ui-auth-payments/template/src/components/__tests__/example.test.tsx +49 -0
  265. package/dist/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +52 -0
  266. package/dist/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +144 -0
  267. package/dist/templates/web/ui-auth-payments/template/src/components/client/newsletter-signup.tsx +68 -0
  268. package/dist/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +185 -0
  269. package/dist/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +34 -0
  270. package/dist/templates/web/ui-auth-payments/template/src/components/providers/theme-provider.tsx +94 -0
  271. package/dist/templates/web/ui-auth-payments/template/src/components/shared/footer.tsx +36 -0
  272. package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +230 -0
  273. package/dist/templates/web/ui-auth-payments/template/src/components/ui/badge.tsx +36 -0
  274. package/dist/templates/web/ui-auth-payments/template/src/components/ui/theme-toggle.tsx +34 -0
  275. package/dist/templates/web/ui-auth-payments/template/src/lib/actions/auth.ts +246 -0
  276. package/dist/templates/web/ui-auth-payments/template/src/lib/actions/index.ts +340 -0
  277. package/dist/templates/web/ui-auth-payments/template/src/lib/auth-server.ts +177 -0
  278. package/dist/templates/web/ui-auth-payments/template/src/lib/env.ts +49 -0
  279. package/dist/templates/web/ui-auth-payments/template/src/lib/platform.ts +146 -0
  280. package/dist/templates/web/ui-auth-payments/template/src/lib/utils.ts +140 -0
  281. package/dist/templates/web/ui-auth-payments/template/src/test/setup.ts +79 -0
  282. package/dist/templates/web/ui-auth-payments/template/tailwind.config.js +77 -0
  283. package/dist/templates/web/ui-auth-payments/template/tsconfig.json +33 -0
  284. package/dist/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +1 -0
  285. package/dist/templates/web/ui-auth-payments/template/vitest.config.ts +17 -0
  286. package/dist/templates/web/ui-auth-payments-ai/template/.claude +21 -0
  287. package/dist/templates/web/ui-auth-payments-ai/template/.env.example +60 -0
  288. package/dist/templates/web/ui-auth-payments-ai/template/README.md +207 -0
  289. package/dist/templates/web/ui-auth-payments-ai/template/context.md +169 -0
  290. package/dist/templates/web/ui-auth-payments-ai/template/middleware.ts +68 -0
  291. package/dist/templates/web/ui-auth-payments-ai/template/next.config.js +12 -0
  292. package/dist/templates/web/ui-auth-payments-ai/template/package-lock.json +12241 -0
  293. package/dist/templates/web/ui-auth-payments-ai/template/package.json +58 -0
  294. package/dist/templates/web/ui-auth-payments-ai/template/postcss.config.js +7 -0
  295. package/dist/templates/web/ui-auth-payments-ai/template/src/app/ai/page.tsx +310 -0
  296. package/dist/templates/web/ui-auth-payments-ai/template/src/app/api/ai/audio/route.ts +56 -0
  297. package/dist/templates/web/ui-auth-payments-ai/template/src/app/api/ai/chat/route.ts +49 -0
  298. package/dist/templates/web/ui-auth-payments-ai/template/src/app/api/ai/text/route.ts +64 -0
  299. package/dist/templates/web/ui-auth-payments-ai/template/src/app/api/ai/video/route.ts +73 -0
  300. package/dist/templates/web/ui-auth-payments-ai/template/src/app/auth/callback/route.ts +12 -0
  301. package/dist/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +422 -0
  302. package/dist/templates/web/ui-auth-payments-ai/template/src/app/checkout/page.tsx +142 -0
  303. package/dist/templates/web/ui-auth-payments-ai/template/src/app/dashboard/layout.tsx +22 -0
  304. package/dist/templates/web/ui-auth-payments-ai/template/src/app/dashboard/page.tsx +236 -0
  305. package/dist/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +801 -0
  306. package/dist/templates/web/ui-auth-payments-ai/template/src/app/error.tsx +67 -0
  307. package/dist/templates/web/ui-auth-payments-ai/template/src/app/globals.css +96 -0
  308. package/dist/templates/web/ui-auth-payments-ai/template/src/app/layout.tsx +35 -0
  309. package/dist/templates/web/ui-auth-payments-ai/template/src/app/loading.tsx +20 -0
  310. package/dist/templates/web/ui-auth-payments-ai/template/src/app/login/page.tsx +6 -0
  311. package/dist/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +364 -0
  312. package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +394 -0
  313. package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.backup +391 -0
  314. package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.bak +391 -0
  315. package/dist/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +532 -0
  316. package/dist/templates/web/ui-auth-payments-ai/template/src/app/setup/page.tsx +645 -0
  317. package/dist/templates/web/ui-auth-payments-ai/template/src/app/signup/page.tsx +6 -0
  318. package/dist/templates/web/ui-auth-payments-ai/template/src/components/__tests__/example.test.tsx +49 -0
  319. package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/auth-status.tsx +52 -0
  320. package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +163 -0
  321. package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +201 -0
  322. package/dist/templates/web/ui-auth-payments-ai/template/src/components/providers/app-providers.tsx +38 -0
  323. package/dist/templates/web/ui-auth-payments-ai/template/src/components/providers/theme-provider.tsx +96 -0
  324. package/dist/templates/web/ui-auth-payments-ai/template/src/components/shared/footer.tsx +36 -0
  325. package/dist/templates/web/ui-auth-payments-ai/template/src/components/shared/header.tsx +252 -0
  326. package/dist/templates/web/ui-auth-payments-ai/template/src/components/ui/badge.tsx +36 -0
  327. package/dist/templates/web/ui-auth-payments-ai/template/src/components/ui/theme-toggle.tsx +34 -0
  328. package/dist/templates/web/ui-auth-payments-ai/template/src/lib/actions/auth.ts +246 -0
  329. package/dist/templates/web/ui-auth-payments-ai/template/src/lib/actions/index.ts +14 -0
  330. package/dist/templates/web/ui-auth-payments-ai/template/src/lib/auth-server.ts +177 -0
  331. package/dist/templates/web/ui-auth-payments-ai/template/src/lib/env.ts +49 -0
  332. package/dist/templates/web/ui-auth-payments-ai/template/src/lib/platform.ts +155 -0
  333. package/dist/templates/web/ui-auth-payments-ai/template/src/lib/supabase/server.ts +72 -0
  334. package/dist/templates/web/ui-auth-payments-ai/template/src/lib/utils.ts +140 -0
  335. package/dist/templates/web/ui-auth-payments-ai/template/src/test/setup.ts +79 -0
  336. package/dist/templates/web/ui-auth-payments-ai/template/tailwind.config.js +77 -0
  337. package/dist/templates/web/ui-auth-payments-ai/template/tsconfig.json +33 -0
  338. package/dist/templates/web/ui-auth-payments-ai/template/tsconfig.tsbuildinfo +1 -0
  339. package/dist/templates/web/ui-auth-payments-ai/template/vitest.config.ts +17 -0
  340. package/dist/templates/web/ui-auth-payments-ai-rag/template/README.md +434 -0
  341. package/dist/templates/web/ui-auth-payments-ai-rag/template/components/rag/KnowledgeManager.tsx +642 -0
  342. package/dist/templates/web/ui-auth-payments-ai-rag/template/components/rag/RAGAnalytics.tsx +466 -0
  343. package/dist/templates/web/ui-auth-payments-ai-rag/template/components/rag/RAGChatInterface.tsx +393 -0
  344. package/dist/templates/web/ui-auth-payments-ai-rag/template/docs/GETTING-STARTED.md +457 -0
  345. package/dist/templates/web/ui-auth-payments-ai-rag/template/hooks/useRAGSystem.ts +478 -0
  346. package/dist/templates/web/ui-auth-payments-ai-rag/template/lib/rag/config.ts +250 -0
  347. package/dist/templates/web/ui-auth-payments-ai-rag/template/package.json +76 -0
  348. package/dist/templates/web/ui-auth-payments-ai-rag/template/scripts/setup-rag.js +622 -0
  349. package/dist/templates/web/ui-auth-payments-ai-rag/template/src/app/ai/page.tsx +396 -0
  350. package/dist/templates/web/ui-auth-payments-audio/template/.env.example +15 -0
  351. package/dist/templates/web/ui-auth-payments-audio/template/README.md +207 -0
  352. package/dist/templates/web/ui-auth-payments-audio/template/middleware.ts +68 -0
  353. package/dist/templates/web/ui-auth-payments-audio/template/next.config.js +12 -0
  354. package/dist/templates/web/ui-auth-payments-audio/template/package-lock.json +12241 -0
  355. package/dist/templates/web/ui-auth-payments-audio/template/package.json +55 -0
  356. package/dist/templates/web/ui-auth-payments-audio/template/postcss.config.js +7 -0
  357. package/dist/templates/web/ui-auth-payments-audio/template/src/app/auth/callback/route.ts +12 -0
  358. package/dist/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +211 -0
  359. package/dist/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +142 -0
  360. package/dist/templates/web/ui-auth-payments-audio/template/src/app/dashboard/layout.tsx +22 -0
  361. package/dist/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +237 -0
  362. package/dist/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +67 -0
  363. package/dist/templates/web/ui-auth-payments-audio/template/src/app/globals.css +96 -0
  364. package/dist/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +35 -0
  365. package/dist/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +20 -0
  366. package/dist/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +6 -0
  367. package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +403 -0
  368. package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.backup +391 -0
  369. package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.bak +391 -0
  370. package/dist/templates/web/ui-auth-payments-audio/template/src/app/setup/page.tsx +345 -0
  371. package/dist/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +6 -0
  372. package/dist/templates/web/ui-auth-payments-audio/template/src/components/__tests__/example.test.tsx +49 -0
  373. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +52 -0
  374. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +144 -0
  375. package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +185 -0
  376. package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +38 -0
  377. package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +96 -0
  378. package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/footer.tsx +36 -0
  379. package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +252 -0
  380. package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/badge.tsx +36 -0
  381. package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/theme-toggle.tsx +34 -0
  382. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/actions/auth.ts +246 -0
  383. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/actions/index.ts +14 -0
  384. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/auth-server.ts +177 -0
  385. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/env.ts +49 -0
  386. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/utils.ts +140 -0
  387. package/dist/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +79 -0
  388. package/dist/templates/web/ui-auth-payments-audio/template/tailwind.config.js +77 -0
  389. package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.json +33 -0
  390. package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +1 -0
  391. package/dist/templates/web/ui-auth-payments-audio/template/vitest.config.ts +17 -0
  392. package/dist/templates/web/ui-auth-payments-video/template/.env.example +15 -0
  393. package/dist/templates/web/ui-auth-payments-video/template/README.md +190 -0
  394. package/dist/templates/web/ui-auth-payments-video/template/next.config.js +12 -0
  395. package/dist/templates/web/ui-auth-payments-video/template/package.json +55 -0
  396. package/dist/templates/web/ui-auth-payments-video/template/postcss.config.js +7 -0
  397. package/dist/templates/web/ui-auth-payments-video/template/src/app/auth/callback/route.ts +12 -0
  398. package/dist/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +211 -0
  399. package/dist/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +142 -0
  400. package/dist/templates/web/ui-auth-payments-video/template/src/app/error.tsx +67 -0
  401. package/dist/templates/web/ui-auth-payments-video/template/src/app/globals.css +228 -0
  402. package/dist/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +33 -0
  403. package/dist/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +20 -0
  404. package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +109 -0
  405. package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +395 -0
  406. package/dist/templates/web/ui-auth-payments-video/template/src/app/setup/page.tsx +351 -0
  407. package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +128 -0
  408. package/dist/templates/web/ui-auth-payments-video/template/src/components/__tests__/example.test.tsx +49 -0
  409. package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +34 -0
  410. package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/theme-provider.tsx +94 -0
  411. package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/footer.tsx +36 -0
  412. package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +246 -0
  413. package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/badge.tsx +36 -0
  414. package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/theme-toggle.tsx +34 -0
  415. package/dist/templates/web/ui-auth-payments-video/template/src/lib/env.ts +49 -0
  416. package/dist/templates/web/ui-auth-payments-video/template/src/lib/utils.ts +140 -0
  417. package/dist/templates/web/ui-auth-payments-video/template/src/test/setup.ts +79 -0
  418. package/dist/templates/web/ui-auth-payments-video/template/tailwind.config.js +77 -0
  419. package/dist/templates/web/ui-auth-payments-video/template/tsconfig.json +33 -0
  420. package/dist/templates/web/ui-auth-payments-video/template/vitest.config.ts +17 -0
  421. package/dist/templates/web/ui-only/template/.env.example +15 -0
  422. package/dist/templates/web/ui-only/template/.eslintrc.js +8 -0
  423. package/dist/templates/web/ui-only/template/README.md +68 -0
  424. package/dist/templates/web/ui-only/template/next.config.js +12 -0
  425. package/dist/templates/web/ui-only/template/package.json +49 -0
  426. package/dist/templates/web/ui-only/template/postcss.config.js +7 -0
  427. package/dist/templates/web/ui-only/template/src/app/auth/callback/route.ts +12 -0
  428. package/dist/templates/web/ui-only/template/src/app/checkout/page.tsx +25 -0
  429. package/dist/templates/web/ui-only/template/src/app/error.tsx +67 -0
  430. package/dist/templates/web/ui-only/template/src/app/globals.css +42 -0
  431. package/dist/templates/web/ui-only/template/src/app/layout.tsx +33 -0
  432. package/dist/templates/web/ui-only/template/src/app/loading.tsx +20 -0
  433. package/dist/templates/web/ui-only/template/src/app/login/page.tsx +63 -0
  434. package/dist/templates/web/ui-only/template/src/app/page.tsx +91 -0
  435. package/dist/templates/web/ui-only/template/src/app/signup/page.tsx +79 -0
  436. package/dist/templates/web/ui-only/template/src/components/__tests__/example.test.tsx +49 -0
  437. package/dist/templates/web/ui-only/template/src/components/providers/app-providers.tsx +26 -0
  438. package/dist/templates/web/ui-only/template/src/components/providers/theme-provider.tsx +94 -0
  439. package/dist/templates/web/ui-only/template/src/components/shared/footer.tsx +36 -0
  440. package/dist/templates/web/ui-only/template/src/components/shared/header.tsx +53 -0
  441. package/dist/templates/web/ui-only/template/src/components/ui/badge.tsx +36 -0
  442. package/dist/templates/web/ui-only/template/src/components/ui/theme-toggle.tsx +34 -0
  443. package/dist/templates/web/ui-only/template/src/lib/env.ts +49 -0
  444. package/dist/templates/web/ui-only/template/src/lib/utils.ts +140 -0
  445. package/dist/templates/web/ui-only/template/src/test/setup.ts +79 -0
  446. package/dist/templates/web/ui-only/template/tailwind.config.js +77 -0
  447. package/dist/templates/web/ui-only/template/tsconfig.json +33 -0
  448. package/dist/templates/web/ui-only/template/vitest.config.ts +17 -0
  449. package/dist/templates/web/ui-only/template.backup/.env.example +15 -0
  450. package/dist/templates/web/ui-only/template.backup.20250817/.env.example +15 -0
  451. package/dist/templates/web/ui-package-test/template/next-env.d.ts +5 -0
  452. package/dist/templates/web/ui-package-test/template/package.json +42 -0
  453. package/dist/templates/web/ui-package-test/template/src/app/page.tsx +106 -0
  454. package/dist/templates/web/ui-package-test/template/tsconfig.json +41 -0
  455. package/package.json +106 -0
  456. package/src/templates/mobile/base/template/.env.example +15 -0
  457. package/src/templates/mobile/base/template/App.tsx +186 -0
  458. package/src/templates/mobile/base/template/app/(auth)/login.tsx +44 -0
  459. package/src/templates/mobile/base/template/app/(auth)/signup.tsx +43 -0
  460. package/src/templates/mobile/base/template/app/checkout.tsx +20 -0
  461. package/src/templates/mobile/base/template/app.json +44 -0
  462. package/src/templates/mobile/base/template/babel.config.js +6 -0
  463. package/src/templates/mobile/base/template/eas.json +19 -0
  464. package/src/templates/mobile/base/template/package.json +54 -0
  465. package/src/templates/mobile/ui-auth-payments/template/.env.example +20 -0
  466. package/src/templates/mobile/ui-auth-payments/template/README.md +218 -0
  467. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +153 -0
  468. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/analytics.tsx +668 -0
  469. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +743 -0
  470. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +757 -0
  471. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/orders.tsx +402 -0
  472. package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +580 -0
  473. package/src/templates/mobile/ui-auth-payments/template/app/_layout.tsx +134 -0
  474. package/src/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +246 -0
  475. package/src/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +362 -0
  476. package/src/templates/mobile/ui-auth-payments/template/app/onboarding/index.tsx +193 -0
  477. package/src/templates/mobile/ui-auth-payments/template/app/tour/index.tsx +272 -0
  478. package/src/templates/mobile/ui-auth-payments/template/app.json +94 -0
  479. package/src/templates/mobile/ui-auth-payments/template/babel.config.js +23 -0
  480. package/src/templates/mobile/ui-auth-payments/template/eas.json +45 -0
  481. package/src/templates/mobile/ui-auth-payments/template/expo-env.d.ts +3 -0
  482. package/src/templates/mobile/ui-auth-payments/template/jest-setup.ts +74 -0
  483. package/src/templates/mobile/ui-auth-payments/template/metro.config.js +11 -0
  484. package/src/templates/mobile/ui-auth-payments/template/package.json +117 -0
  485. package/src/templates/mobile/ui-auth-payments/template/tsconfig.json +31 -0
  486. package/src/templates/mobile/ui-auth-payments-ai/template/.env.example +23 -0
  487. package/src/templates/mobile/ui-auth-payments-ai/template/README.md +254 -0
  488. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +169 -0
  489. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/ai.tsx +522 -0
  490. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/analytics.tsx +668 -0
  491. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +743 -0
  492. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +676 -0
  493. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/orders.tsx +402 -0
  494. package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +580 -0
  495. package/src/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +134 -0
  496. package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +246 -0
  497. package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +362 -0
  498. package/src/templates/mobile/ui-auth-payments-ai/template/app/onboarding/index.tsx +193 -0
  499. package/src/templates/mobile/ui-auth-payments-ai/template/app/tour/index.tsx +272 -0
  500. package/src/templates/mobile/ui-auth-payments-ai/template/app.json +94 -0
  501. package/src/templates/mobile/ui-auth-payments-ai/template/babel.config.js +23 -0
  502. package/src/templates/mobile/ui-auth-payments-ai/template/eas.json +45 -0
  503. package/src/templates/mobile/ui-auth-payments-ai/template/expo-env.d.ts +3 -0
  504. package/src/templates/mobile/ui-auth-payments-ai/template/jest-setup.ts +74 -0
  505. package/src/templates/mobile/ui-auth-payments-ai/template/metro.config.js +11 -0
  506. package/src/templates/mobile/ui-auth-payments-ai/template/package.json +119 -0
  507. package/src/templates/mobile/ui-auth-payments-ai/template/tsconfig.json +31 -0
  508. package/src/templates/mobile/ui-auth-payments-ai-rag/template/README.md +655 -0
  509. package/src/templates/mobile/ui-auth-payments-ai-rag/template/app/(tabs)/ai.tsx +683 -0
  510. package/src/templates/mobile/ui-auth-payments-ai-rag/template/app/_layout.tsx +134 -0
  511. package/src/templates/mobile/ui-auth-payments-ai-rag/template/app.json +74 -0
  512. package/src/templates/mobile/ui-auth-payments-ai-rag/template/babel.config.js +25 -0
  513. package/src/templates/mobile/ui-auth-payments-ai-rag/template/docs/MOBILE-SETUP.md +787 -0
  514. package/src/templates/mobile/ui-auth-payments-ai-rag/template/eas.json +25 -0
  515. package/src/templates/mobile/ui-auth-payments-ai-rag/template/expo-env.d.ts +3 -0
  516. package/src/templates/mobile/ui-auth-payments-ai-rag/template/hooks/useRAGSystem.ts +346 -0
  517. package/src/templates/mobile/ui-auth-payments-ai-rag/template/jest-setup.ts +37 -0
  518. package/src/templates/mobile/ui-auth-payments-ai-rag/template/lib/rag/config.ts +180 -0
  519. package/src/templates/mobile/ui-auth-payments-ai-rag/template/metro.config.js +11 -0
  520. package/src/templates/mobile/ui-auth-payments-ai-rag/template/package.json +124 -0
  521. package/src/templates/mobile/ui-auth-payments-ai-rag/template/scripts/setup-rag.js +599 -0
  522. package/src/templates/mobile/ui-auth-payments-ai-rag/template/tsconfig.json +32 -0
  523. package/src/templates/shared/auth/firebase/web/config.ts +23 -0
  524. package/src/templates/shared/auth/supabase/web/config.ts +8 -0
  525. package/src/templates/web/base/template/.env.example +15 -0
  526. package/src/templates/web/base/template/.eslintrc.js +8 -0
  527. package/src/templates/web/base/template/README.md +68 -0
  528. package/src/templates/web/base/template/next.config.js +15 -0
  529. package/src/templates/web/base/template/package.json +59 -0
  530. package/src/templates/web/base/template/postcss.config.js +7 -0
  531. package/src/templates/web/base/template/src/app/auth/callback/route.ts +18 -0
  532. package/src/templates/web/base/template/src/app/checkout/page.tsx +119 -0
  533. package/src/templates/web/base/template/src/app/dashboard/page.tsx +366 -0
  534. package/src/templates/web/base/template/src/app/error.tsx +97 -0
  535. package/src/templates/web/base/template/src/app/globals.css +157 -0
  536. package/src/templates/web/base/template/src/app/layout.tsx +35 -0
  537. package/src/templates/web/base/template/src/app/loading.tsx +52 -0
  538. package/src/templates/web/base/template/src/app/login/page.tsx +67 -0
  539. package/src/templates/web/base/template/src/app/page.tsx +193 -0
  540. package/src/templates/web/base/template/src/app/signup/page.tsx +67 -0
  541. package/src/templates/web/base/template/src/components/__tests__/example.test.tsx +49 -0
  542. package/src/templates/web/base/template/src/components/providers/app-providers.tsx +35 -0
  543. package/src/templates/web/base/template/src/components/providers/theme-provider.tsx +94 -0
  544. package/src/templates/web/base/template/src/components/shared/footer.tsx +36 -0
  545. package/src/templates/web/base/template/src/components/shared/header.tsx +63 -0
  546. package/src/templates/web/base/template/src/components/ui/badge.tsx +36 -0
  547. package/src/templates/web/base/template/src/components/ui/button.tsx +56 -0
  548. package/src/templates/web/base/template/src/components/ui/card.tsx +71 -0
  549. package/src/templates/web/base/template/src/components/ui/theme-toggle.tsx +34 -0
  550. package/src/templates/web/base/template/src/lib/auth-server.ts +177 -0
  551. package/src/templates/web/base/template/src/lib/env.ts +46 -0
  552. package/src/templates/web/base/template/src/lib/platform.ts +146 -0
  553. package/src/templates/web/base/template/src/lib/utils.ts +140 -0
  554. package/src/templates/web/base/template/src/test/setup.ts +79 -0
  555. package/src/templates/web/base/template/tailwind.config.js +77 -0
  556. package/src/templates/web/base/template/tsconfig.json +33 -0
  557. package/src/templates/web/base/template/vitest.config.ts +17 -0
  558. package/src/templates/web/base/template.backup/.env.example +15 -0
  559. package/src/templates/web/base/template.backup.20250817/.env.example +15 -0
  560. package/src/templates/web/ui-auth/template/.claude +21 -0
  561. package/src/templates/web/ui-auth/template/.env.example +15 -0
  562. package/src/templates/web/ui-auth/template/.eslintrc.js +8 -0
  563. package/src/templates/web/ui-auth/template/README.md +68 -0
  564. package/src/templates/web/ui-auth/template/context.md +105 -0
  565. package/src/templates/web/ui-auth/template/next.config.js +12 -0
  566. package/src/templates/web/ui-auth/template/package.json +51 -0
  567. package/src/templates/web/ui-auth/template/postcss.config.js +7 -0
  568. package/src/templates/web/ui-auth/template/src/app/auth/callback/route.ts +12 -0
  569. package/src/templates/web/ui-auth/template/src/app/checkout/page.tsx +25 -0
  570. package/src/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +801 -0
  571. package/src/templates/web/ui-auth/template/src/app/error.tsx +67 -0
  572. package/src/templates/web/ui-auth/template/src/app/globals.css +95 -0
  573. package/src/templates/web/ui-auth/template/src/app/layout.tsx +33 -0
  574. package/src/templates/web/ui-auth/template/src/app/loading.tsx +38 -0
  575. package/src/templates/web/ui-auth/template/src/app/login/page.tsx +109 -0
  576. package/src/templates/web/ui-auth/template/src/app/page.tsx +305 -0
  577. package/src/templates/web/ui-auth/template/src/app/setup/page.tsx +403 -0
  578. package/src/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -0
  579. package/src/templates/web/ui-auth/template/src/components/__tests__/example.test.tsx +49 -0
  580. package/src/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +31 -0
  581. package/src/templates/web/ui-auth/template/src/components/providers/theme-provider.tsx +94 -0
  582. package/src/templates/web/ui-auth/template/src/components/shared/footer.tsx +36 -0
  583. package/src/templates/web/ui-auth/template/src/components/shared/header.tsx +94 -0
  584. package/src/templates/web/ui-auth/template/src/components/ui/badge.tsx +36 -0
  585. package/src/templates/web/ui-auth/template/src/components/ui/theme-toggle.tsx +34 -0
  586. package/src/templates/web/ui-auth/template/src/lib/env.ts +49 -0
  587. package/src/templates/web/ui-auth/template/src/lib/platform.ts +137 -0
  588. package/src/templates/web/ui-auth/template/src/lib/utils.ts +140 -0
  589. package/src/templates/web/ui-auth/template/src/test/setup.ts +79 -0
  590. package/src/templates/web/ui-auth/template/tailwind.config.js +77 -0
  591. package/src/templates/web/ui-auth/template/tsconfig.json +33 -0
  592. package/src/templates/web/ui-auth/template/vitest.config.ts +17 -0
  593. package/src/templates/web/ui-auth/template.backup/.env.example +15 -0
  594. package/src/templates/web/ui-auth/template.backup.20250817/.env.example +15 -0
  595. package/src/templates/web/ui-auth-ai/template/.env.example +18 -0
  596. package/src/templates/web/ui-auth-ai/template/README.md +170 -0
  597. package/src/templates/web/ui-auth-ai/template/next.config.js +13 -0
  598. package/src/templates/web/ui-auth-ai/template/package.json +39 -0
  599. package/src/templates/web/ui-auth-ai/template/postcss.config.js +6 -0
  600. package/src/templates/web/ui-auth-ai/template/src/app/globals.css +40 -0
  601. package/src/templates/web/ui-auth-ai/template/src/app/layout.tsx +41 -0
  602. package/src/templates/web/ui-auth-ai/template/src/app/page.tsx +193 -0
  603. package/src/templates/web/ui-auth-ai/template/src/components/ai/audio-generator.tsx +141 -0
  604. package/src/templates/web/ui-auth-ai/template/src/components/ai/video-generator.tsx +158 -0
  605. package/src/templates/web/ui-auth-ai/template/src/components/auth/login-form.tsx +106 -0
  606. package/src/templates/web/ui-auth-ai/template/src/components/ui/button.tsx +44 -0
  607. package/src/templates/web/ui-auth-ai/template/src/components/ui/input.tsx +24 -0
  608. package/src/templates/web/ui-auth-ai/template/src/components/ui/label.tsx +21 -0
  609. package/src/templates/web/ui-auth-ai/template/src/components/ui/select.tsx +37 -0
  610. package/src/templates/web/ui-auth-ai/template/src/components/ui/textarea.tsx +23 -0
  611. package/src/templates/web/ui-auth-ai/template/src/hooks/useAuth.ts +1 -0
  612. package/src/templates/web/ui-auth-ai/template/src/lib/supabase.ts +8 -0
  613. package/src/templates/web/ui-auth-ai/template/src/lib/utils.ts +5 -0
  614. package/src/templates/web/ui-auth-ai/template/src/providers/auth-provider.tsx +55 -0
  615. package/src/templates/web/ui-auth-ai/template/tailwind.config.js +22 -0
  616. package/src/templates/web/ui-auth-ai/template/tsconfig.json +28 -0
  617. package/src/templates/web/ui-auth-payments/template/.env.example +51 -0
  618. package/src/templates/web/ui-auth-payments/template/README.md +165 -0
  619. package/src/templates/web/ui-auth-payments/template/middleware.ts +68 -0
  620. package/src/templates/web/ui-auth-payments/template/next.config.js +12 -0
  621. package/src/templates/web/ui-auth-payments/template/package-lock.json +12240 -0
  622. package/src/templates/web/ui-auth-payments/template/package.json +55 -0
  623. package/src/templates/web/ui-auth-payments/template/postcss.config.js +7 -0
  624. package/src/templates/web/ui-auth-payments/template/src/app/auth/callback/route.ts +12 -0
  625. package/src/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +211 -0
  626. package/src/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +318 -0
  627. package/src/templates/web/ui-auth-payments/template/src/app/dashboard/layout.tsx +22 -0
  628. package/src/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +235 -0
  629. package/src/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +801 -0
  630. package/src/templates/web/ui-auth-payments/template/src/app/error.tsx +67 -0
  631. package/src/templates/web/ui-auth-payments/template/src/app/globals.css +211 -0
  632. package/src/templates/web/ui-auth-payments/template/src/app/layout.tsx +33 -0
  633. package/src/templates/web/ui-auth-payments/template/src/app/loading.tsx +20 -0
  634. package/src/templates/web/ui-auth-payments/template/src/app/login/loading.tsx +38 -0
  635. package/src/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -0
  636. package/src/templates/web/ui-auth-payments/template/src/app/page.tsx +350 -0
  637. package/src/templates/web/ui-auth-payments/template/src/app/setup/page.tsx +507 -0
  638. package/src/templates/web/ui-auth-payments/template/src/app/signup/loading.tsx +50 -0
  639. package/src/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -0
  640. package/src/templates/web/ui-auth-payments/template/src/components/__tests__/example.test.tsx +49 -0
  641. package/src/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +52 -0
  642. package/src/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +144 -0
  643. package/src/templates/web/ui-auth-payments/template/src/components/client/newsletter-signup.tsx +68 -0
  644. package/src/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +185 -0
  645. package/src/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +34 -0
  646. package/src/templates/web/ui-auth-payments/template/src/components/providers/theme-provider.tsx +94 -0
  647. package/src/templates/web/ui-auth-payments/template/src/components/shared/footer.tsx +36 -0
  648. package/src/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +230 -0
  649. package/src/templates/web/ui-auth-payments/template/src/components/ui/badge.tsx +36 -0
  650. package/src/templates/web/ui-auth-payments/template/src/components/ui/theme-toggle.tsx +34 -0
  651. package/src/templates/web/ui-auth-payments/template/src/lib/actions/auth.ts +246 -0
  652. package/src/templates/web/ui-auth-payments/template/src/lib/actions/index.ts +340 -0
  653. package/src/templates/web/ui-auth-payments/template/src/lib/auth-server.ts +177 -0
  654. package/src/templates/web/ui-auth-payments/template/src/lib/env.ts +49 -0
  655. package/src/templates/web/ui-auth-payments/template/src/lib/platform.ts +146 -0
  656. package/src/templates/web/ui-auth-payments/template/src/lib/utils.ts +140 -0
  657. package/src/templates/web/ui-auth-payments/template/src/test/setup.ts +79 -0
  658. package/src/templates/web/ui-auth-payments/template/tailwind.config.js +77 -0
  659. package/src/templates/web/ui-auth-payments/template/tsconfig.json +33 -0
  660. package/src/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +1 -0
  661. package/src/templates/web/ui-auth-payments/template/vitest.config.ts +17 -0
  662. package/src/templates/web/ui-auth-payments-ai/template/.claude +21 -0
  663. package/src/templates/web/ui-auth-payments-ai/template/.env.example +60 -0
  664. package/src/templates/web/ui-auth-payments-ai/template/README.md +207 -0
  665. package/src/templates/web/ui-auth-payments-ai/template/context.md +169 -0
  666. package/src/templates/web/ui-auth-payments-ai/template/middleware.ts +68 -0
  667. package/src/templates/web/ui-auth-payments-ai/template/next.config.js +12 -0
  668. package/src/templates/web/ui-auth-payments-ai/template/package-lock.json +12241 -0
  669. package/src/templates/web/ui-auth-payments-ai/template/package.json +58 -0
  670. package/src/templates/web/ui-auth-payments-ai/template/postcss.config.js +7 -0
  671. package/src/templates/web/ui-auth-payments-ai/template/src/app/ai/page.tsx +310 -0
  672. package/src/templates/web/ui-auth-payments-ai/template/src/app/api/ai/audio/route.ts +56 -0
  673. package/src/templates/web/ui-auth-payments-ai/template/src/app/api/ai/chat/route.ts +49 -0
  674. package/src/templates/web/ui-auth-payments-ai/template/src/app/api/ai/text/route.ts +64 -0
  675. package/src/templates/web/ui-auth-payments-ai/template/src/app/api/ai/video/route.ts +73 -0
  676. package/src/templates/web/ui-auth-payments-ai/template/src/app/auth/callback/route.ts +12 -0
  677. package/src/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +422 -0
  678. package/src/templates/web/ui-auth-payments-ai/template/src/app/checkout/page.tsx +142 -0
  679. package/src/templates/web/ui-auth-payments-ai/template/src/app/dashboard/layout.tsx +22 -0
  680. package/src/templates/web/ui-auth-payments-ai/template/src/app/dashboard/page.tsx +236 -0
  681. package/src/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +801 -0
  682. package/src/templates/web/ui-auth-payments-ai/template/src/app/error.tsx +67 -0
  683. package/src/templates/web/ui-auth-payments-ai/template/src/app/globals.css +96 -0
  684. package/src/templates/web/ui-auth-payments-ai/template/src/app/layout.tsx +35 -0
  685. package/src/templates/web/ui-auth-payments-ai/template/src/app/loading.tsx +20 -0
  686. package/src/templates/web/ui-auth-payments-ai/template/src/app/login/page.tsx +6 -0
  687. package/src/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +364 -0
  688. package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +394 -0
  689. package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.backup +391 -0
  690. package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.bak +391 -0
  691. package/src/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +532 -0
  692. package/src/templates/web/ui-auth-payments-ai/template/src/app/setup/page.tsx +645 -0
  693. package/src/templates/web/ui-auth-payments-ai/template/src/app/signup/page.tsx +6 -0
  694. package/src/templates/web/ui-auth-payments-ai/template/src/components/__tests__/example.test.tsx +49 -0
  695. package/src/templates/web/ui-auth-payments-ai/template/src/components/client/auth-status.tsx +52 -0
  696. package/src/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +163 -0
  697. package/src/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +201 -0
  698. package/src/templates/web/ui-auth-payments-ai/template/src/components/providers/app-providers.tsx +38 -0
  699. package/src/templates/web/ui-auth-payments-ai/template/src/components/providers/theme-provider.tsx +96 -0
  700. package/src/templates/web/ui-auth-payments-ai/template/src/components/shared/footer.tsx +36 -0
  701. package/src/templates/web/ui-auth-payments-ai/template/src/components/shared/header.tsx +252 -0
  702. package/src/templates/web/ui-auth-payments-ai/template/src/components/ui/badge.tsx +36 -0
  703. package/src/templates/web/ui-auth-payments-ai/template/src/components/ui/theme-toggle.tsx +34 -0
  704. package/src/templates/web/ui-auth-payments-ai/template/src/lib/actions/auth.ts +246 -0
  705. package/src/templates/web/ui-auth-payments-ai/template/src/lib/actions/index.ts +14 -0
  706. package/src/templates/web/ui-auth-payments-ai/template/src/lib/auth-server.ts +177 -0
  707. package/src/templates/web/ui-auth-payments-ai/template/src/lib/env.ts +49 -0
  708. package/src/templates/web/ui-auth-payments-ai/template/src/lib/platform.ts +155 -0
  709. package/src/templates/web/ui-auth-payments-ai/template/src/lib/supabase/server.ts +72 -0
  710. package/src/templates/web/ui-auth-payments-ai/template/src/lib/utils.ts +140 -0
  711. package/src/templates/web/ui-auth-payments-ai/template/src/test/setup.ts +79 -0
  712. package/src/templates/web/ui-auth-payments-ai/template/tailwind.config.js +77 -0
  713. package/src/templates/web/ui-auth-payments-ai/template/tsconfig.json +33 -0
  714. package/src/templates/web/ui-auth-payments-ai/template/tsconfig.tsbuildinfo +1 -0
  715. package/src/templates/web/ui-auth-payments-ai/template/vitest.config.ts +17 -0
  716. package/src/templates/web/ui-auth-payments-ai-rag/template/README.md +434 -0
  717. package/src/templates/web/ui-auth-payments-ai-rag/template/components/rag/KnowledgeManager.tsx +642 -0
  718. package/src/templates/web/ui-auth-payments-ai-rag/template/components/rag/RAGAnalytics.tsx +466 -0
  719. package/src/templates/web/ui-auth-payments-ai-rag/template/components/rag/RAGChatInterface.tsx +393 -0
  720. package/src/templates/web/ui-auth-payments-ai-rag/template/docs/GETTING-STARTED.md +457 -0
  721. package/src/templates/web/ui-auth-payments-ai-rag/template/hooks/useRAGSystem.ts +478 -0
  722. package/src/templates/web/ui-auth-payments-ai-rag/template/lib/rag/config.ts +250 -0
  723. package/src/templates/web/ui-auth-payments-ai-rag/template/package.json +76 -0
  724. package/src/templates/web/ui-auth-payments-ai-rag/template/scripts/setup-rag.js +622 -0
  725. package/src/templates/web/ui-auth-payments-ai-rag/template/src/app/ai/page.tsx +396 -0
  726. package/src/templates/web/ui-auth-payments-audio/template/.env.example +15 -0
  727. package/src/templates/web/ui-auth-payments-audio/template/README.md +207 -0
  728. package/src/templates/web/ui-auth-payments-audio/template/middleware.ts +68 -0
  729. package/src/templates/web/ui-auth-payments-audio/template/next.config.js +12 -0
  730. package/src/templates/web/ui-auth-payments-audio/template/package-lock.json +12241 -0
  731. package/src/templates/web/ui-auth-payments-audio/template/package.json +55 -0
  732. package/src/templates/web/ui-auth-payments-audio/template/postcss.config.js +7 -0
  733. package/src/templates/web/ui-auth-payments-audio/template/src/app/auth/callback/route.ts +12 -0
  734. package/src/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +211 -0
  735. package/src/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +142 -0
  736. package/src/templates/web/ui-auth-payments-audio/template/src/app/dashboard/layout.tsx +22 -0
  737. package/src/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +237 -0
  738. package/src/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +67 -0
  739. package/src/templates/web/ui-auth-payments-audio/template/src/app/globals.css +96 -0
  740. package/src/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +35 -0
  741. package/src/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +20 -0
  742. package/src/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +6 -0
  743. package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +403 -0
  744. package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.backup +391 -0
  745. package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.bak +391 -0
  746. package/src/templates/web/ui-auth-payments-audio/template/src/app/setup/page.tsx +345 -0
  747. package/src/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +6 -0
  748. package/src/templates/web/ui-auth-payments-audio/template/src/components/__tests__/example.test.tsx +49 -0
  749. package/src/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +52 -0
  750. package/src/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +144 -0
  751. package/src/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +185 -0
  752. package/src/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +38 -0
  753. package/src/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +96 -0
  754. package/src/templates/web/ui-auth-payments-audio/template/src/components/shared/footer.tsx +36 -0
  755. package/src/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +252 -0
  756. package/src/templates/web/ui-auth-payments-audio/template/src/components/ui/badge.tsx +36 -0
  757. package/src/templates/web/ui-auth-payments-audio/template/src/components/ui/theme-toggle.tsx +34 -0
  758. package/src/templates/web/ui-auth-payments-audio/template/src/lib/actions/auth.ts +246 -0
  759. package/src/templates/web/ui-auth-payments-audio/template/src/lib/actions/index.ts +14 -0
  760. package/src/templates/web/ui-auth-payments-audio/template/src/lib/auth-server.ts +177 -0
  761. package/src/templates/web/ui-auth-payments-audio/template/src/lib/env.ts +49 -0
  762. package/src/templates/web/ui-auth-payments-audio/template/src/lib/utils.ts +140 -0
  763. package/src/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +79 -0
  764. package/src/templates/web/ui-auth-payments-audio/template/tailwind.config.js +77 -0
  765. package/src/templates/web/ui-auth-payments-audio/template/tsconfig.json +33 -0
  766. package/src/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +1 -0
  767. package/src/templates/web/ui-auth-payments-audio/template/vitest.config.ts +17 -0
  768. package/src/templates/web/ui-auth-payments-video/template/.env.example +15 -0
  769. package/src/templates/web/ui-auth-payments-video/template/README.md +190 -0
  770. package/src/templates/web/ui-auth-payments-video/template/next.config.js +12 -0
  771. package/src/templates/web/ui-auth-payments-video/template/package.json +55 -0
  772. package/src/templates/web/ui-auth-payments-video/template/postcss.config.js +7 -0
  773. package/src/templates/web/ui-auth-payments-video/template/src/app/auth/callback/route.ts +12 -0
  774. package/src/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +211 -0
  775. package/src/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +142 -0
  776. package/src/templates/web/ui-auth-payments-video/template/src/app/error.tsx +67 -0
  777. package/src/templates/web/ui-auth-payments-video/template/src/app/globals.css +228 -0
  778. package/src/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +33 -0
  779. package/src/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +20 -0
  780. package/src/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +109 -0
  781. package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +395 -0
  782. package/src/templates/web/ui-auth-payments-video/template/src/app/setup/page.tsx +351 -0
  783. package/src/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +128 -0
  784. package/src/templates/web/ui-auth-payments-video/template/src/components/__tests__/example.test.tsx +49 -0
  785. package/src/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +34 -0
  786. package/src/templates/web/ui-auth-payments-video/template/src/components/providers/theme-provider.tsx +94 -0
  787. package/src/templates/web/ui-auth-payments-video/template/src/components/shared/footer.tsx +36 -0
  788. package/src/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +246 -0
  789. package/src/templates/web/ui-auth-payments-video/template/src/components/ui/badge.tsx +36 -0
  790. package/src/templates/web/ui-auth-payments-video/template/src/components/ui/theme-toggle.tsx +34 -0
  791. package/src/templates/web/ui-auth-payments-video/template/src/lib/env.ts +49 -0
  792. package/src/templates/web/ui-auth-payments-video/template/src/lib/utils.ts +140 -0
  793. package/src/templates/web/ui-auth-payments-video/template/src/test/setup.ts +79 -0
  794. package/src/templates/web/ui-auth-payments-video/template/tailwind.config.js +77 -0
  795. package/src/templates/web/ui-auth-payments-video/template/tsconfig.json +33 -0
  796. package/src/templates/web/ui-auth-payments-video/template/vitest.config.ts +17 -0
  797. package/src/templates/web/ui-only/template/.env.example +15 -0
  798. package/src/templates/web/ui-only/template/.eslintrc.js +8 -0
  799. package/src/templates/web/ui-only/template/README.md +68 -0
  800. package/src/templates/web/ui-only/template/next.config.js +12 -0
  801. package/src/templates/web/ui-only/template/package.json +49 -0
  802. package/src/templates/web/ui-only/template/postcss.config.js +7 -0
  803. package/src/templates/web/ui-only/template/src/app/auth/callback/route.ts +12 -0
  804. package/src/templates/web/ui-only/template/src/app/checkout/page.tsx +25 -0
  805. package/src/templates/web/ui-only/template/src/app/error.tsx +67 -0
  806. package/src/templates/web/ui-only/template/src/app/globals.css +42 -0
  807. package/src/templates/web/ui-only/template/src/app/layout.tsx +33 -0
  808. package/src/templates/web/ui-only/template/src/app/loading.tsx +20 -0
  809. package/src/templates/web/ui-only/template/src/app/login/page.tsx +63 -0
  810. package/src/templates/web/ui-only/template/src/app/page.tsx +91 -0
  811. package/src/templates/web/ui-only/template/src/app/signup/page.tsx +79 -0
  812. package/src/templates/web/ui-only/template/src/components/__tests__/example.test.tsx +49 -0
  813. package/src/templates/web/ui-only/template/src/components/providers/app-providers.tsx +26 -0
  814. package/src/templates/web/ui-only/template/src/components/providers/theme-provider.tsx +94 -0
  815. package/src/templates/web/ui-only/template/src/components/shared/footer.tsx +36 -0
  816. package/src/templates/web/ui-only/template/src/components/shared/header.tsx +53 -0
  817. package/src/templates/web/ui-only/template/src/components/ui/badge.tsx +36 -0
  818. package/src/templates/web/ui-only/template/src/components/ui/theme-toggle.tsx +34 -0
  819. package/src/templates/web/ui-only/template/src/lib/env.ts +49 -0
  820. package/src/templates/web/ui-only/template/src/lib/utils.ts +140 -0
  821. package/src/templates/web/ui-only/template/src/test/setup.ts +79 -0
  822. package/src/templates/web/ui-only/template/tailwind.config.js +77 -0
  823. package/src/templates/web/ui-only/template/tsconfig.json +33 -0
  824. package/src/templates/web/ui-only/template/vitest.config.ts +17 -0
  825. package/src/templates/web/ui-only/template.backup/.env.example +15 -0
  826. package/src/templates/web/ui-only/template.backup.20250817/.env.example +15 -0
  827. package/src/templates/web/ui-package-test/template/next-env.d.ts +5 -0
  828. package/src/templates/web/ui-package-test/template/package.json +42 -0
  829. package/src/templates/web/ui-package-test/template/src/app/page.tsx +106 -0
  830. package/src/templates/web/ui-package-test/template/tsconfig.json +41 -0
@@ -0,0 +1,28 @@
1
+ export interface FileProcessorOptions {
2
+ templateVariables: Record<string, unknown>;
3
+ fileExtensions: string[];
4
+ ignorePatterns: string[];
5
+ preserveBinaryFiles: boolean;
6
+ }
7
+ export declare class FileProcessor {
8
+ private options;
9
+ constructor(options?: Partial<FileProcessorOptions>);
10
+ processFile(sourcePath: string, targetPath: string): Promise<void>;
11
+ processDirectory(sourceDir: string, targetDir: string): Promise<void>;
12
+ private processTemplateFile;
13
+ private copyBinaryFile;
14
+ private shouldProcessAsTemplate;
15
+ private shouldIgnoreFile;
16
+ private getFilesRecursively;
17
+ setTemplateVariables(variables: Record<string, unknown>): void;
18
+ addFileExtension(extension: string): void;
19
+ addIgnorePattern(pattern: string): void;
20
+ validateTemplate(templatePath: string): Promise<boolean>;
21
+ getTemplateInfo(templatePath: string): Promise<{
22
+ name: string;
23
+ description: string;
24
+ version: string;
25
+ dependencies: string[];
26
+ } | null>;
27
+ }
28
+ //# sourceMappingURL=file-processor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-processor.d.ts","sourceRoot":"","sources":["../../src/generators/file-processor.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAuB;gBAE1B,OAAO,GAAE,OAAO,CAAC,oBAAoB,CAAM;IAyC1C,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBlE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAyBpE,mBAAmB;YAanB,cAAc;YAUd,uBAAuB;IA8BrC,OAAO,CAAC,gBAAgB;YAeV,mBAAmB;IAoB1B,oBAAoB,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAI9D,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAMzC,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAMjC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IA0BxD,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAC1D,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,EAAE,CAAC;KACxB,GAAG,IAAI,CAAC;CAqBV"}
@@ -0,0 +1,224 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FileProcessor = void 0;
7
+ const path_1 = __importDefault(require("path"));
8
+ const fs_extra_1 = __importDefault(require("fs-extra"));
9
+ const mustache_1 = __importDefault(require("mustache"));
10
+ const logger_1 = require("../cli/utils/logger");
11
+ class FileProcessor {
12
+ constructor(options = {}) {
13
+ this.options = {
14
+ templateVariables: {},
15
+ fileExtensions: [
16
+ '.js',
17
+ '.jsx',
18
+ '.ts',
19
+ '.tsx',
20
+ '.json',
21
+ '.md',
22
+ '.txt',
23
+ '.yml',
24
+ '.yaml',
25
+ '.xml',
26
+ '.html',
27
+ '.css',
28
+ '.scss',
29
+ '.sass',
30
+ '.less',
31
+ '.env',
32
+ '.gitignore',
33
+ '.eslintrc',
34
+ '.prettierrc',
35
+ '.editorconfig',
36
+ '.nvmrc',
37
+ '.toml',
38
+ ],
39
+ ignorePatterns: [
40
+ 'node_modules/**',
41
+ '.git/**',
42
+ 'dist/**',
43
+ 'build/**',
44
+ '*.log',
45
+ '.DS_Store',
46
+ 'Thumbs.db',
47
+ ],
48
+ preserveBinaryFiles: true,
49
+ ...options,
50
+ };
51
+ }
52
+ async processFile(sourcePath, targetPath) {
53
+ try {
54
+ // Ensure target directory exists
55
+ await fs_extra_1.default.ensureDir(path_1.default.dirname(targetPath));
56
+ // Check if file should be processed as template
57
+ if (await this.shouldProcessAsTemplate(sourcePath)) {
58
+ await this.processTemplateFile(sourcePath, targetPath);
59
+ }
60
+ else {
61
+ await this.copyBinaryFile(sourcePath, targetPath);
62
+ }
63
+ }
64
+ catch (error) {
65
+ logger_1.logger.error(`Failed to process file ${sourcePath}:`, error);
66
+ throw error;
67
+ }
68
+ }
69
+ async processDirectory(sourceDir, targetDir) {
70
+ try {
71
+ // Ensure target directory exists
72
+ await fs_extra_1.default.ensureDir(targetDir);
73
+ // Get all files in source directory
74
+ const files = await this.getFilesRecursively(sourceDir);
75
+ for (const file of files) {
76
+ const sourcePath = path_1.default.join(sourceDir, file);
77
+ const targetPath = path_1.default.join(targetDir, file);
78
+ // Skip ignored files
79
+ if (this.shouldIgnoreFile(file)) {
80
+ continue;
81
+ }
82
+ await this.processFile(sourcePath, targetPath);
83
+ }
84
+ }
85
+ catch (error) {
86
+ logger_1.logger.error(`Failed to process directory ${sourceDir}:`, error);
87
+ throw error;
88
+ }
89
+ }
90
+ async processTemplateFile(sourcePath, targetPath) {
91
+ try {
92
+ const content = await fs_extra_1.default.readFile(sourcePath, 'utf-8');
93
+ const processedContent = mustache_1.default.render(content, this.options.templateVariables);
94
+ await fs_extra_1.default.writeFile(targetPath, processedContent);
95
+ logger_1.logger.debug(`Processed template file: ${path_1.default.basename(sourcePath)}`);
96
+ }
97
+ catch (error) {
98
+ logger_1.logger.error(`Failed to process template file ${sourcePath}:`, error);
99
+ throw error;
100
+ }
101
+ }
102
+ async copyBinaryFile(sourcePath, targetPath) {
103
+ try {
104
+ await fs_extra_1.default.copy(sourcePath, targetPath);
105
+ logger_1.logger.debug(`Copied binary file: ${path_1.default.basename(sourcePath)}`);
106
+ }
107
+ catch (error) {
108
+ logger_1.logger.error(`Failed to copy binary file ${sourcePath}:`, error);
109
+ throw error;
110
+ }
111
+ }
112
+ async shouldProcessAsTemplate(filePath) {
113
+ const ext = path_1.default.extname(filePath).toLowerCase();
114
+ // Only process files with supported extensions
115
+ if (!this.options.fileExtensions.includes(ext) && ext) {
116
+ return false;
117
+ }
118
+ try {
119
+ // Read file content to check for mustache variables
120
+ const content = await fs_extra_1.default.readFile(filePath, 'utf-8');
121
+ // If file contains mustache variables, process as template
122
+ if (content.includes('{{') && content.includes('}}')) {
123
+ return true;
124
+ }
125
+ // For .tsx/.jsx files without mustache variables, don't process to preserve template literals
126
+ if (['.tsx', '.jsx'].includes(ext)) {
127
+ return false;
128
+ }
129
+ // Process other supported files (package.json, config files, etc.)
130
+ return true;
131
+ }
132
+ catch (_error) {
133
+ // If we can't read the file, default to template processing
134
+ return true;
135
+ }
136
+ }
137
+ shouldIgnoreFile(filePath) {
138
+ return this.options.ignorePatterns.some((pattern) => {
139
+ // Simple pattern matching (could be enhanced with glob patterns)
140
+ if (pattern.endsWith('/**')) {
141
+ const dir = pattern.slice(0, -3);
142
+ return filePath.startsWith(dir + '/');
143
+ }
144
+ if (pattern.startsWith('*.')) {
145
+ const ext = pattern.slice(1);
146
+ return filePath.endsWith(ext);
147
+ }
148
+ return filePath.includes(pattern);
149
+ });
150
+ }
151
+ async getFilesRecursively(dir) {
152
+ const files = [];
153
+ const items = await fs_extra_1.default.readdir(dir);
154
+ for (const item of items) {
155
+ const fullPath = path_1.default.join(dir, item);
156
+ const stat = await fs_extra_1.default.stat(fullPath);
157
+ if (stat.isDirectory()) {
158
+ const subFiles = await this.getFilesRecursively(fullPath);
159
+ files.push(...subFiles.map((f) => path_1.default.join(item, f)));
160
+ }
161
+ else {
162
+ files.push(item);
163
+ }
164
+ }
165
+ return files;
166
+ }
167
+ setTemplateVariables(variables) {
168
+ this.options.templateVariables = { ...this.options.templateVariables, ...variables };
169
+ }
170
+ addFileExtension(extension) {
171
+ if (!this.options.fileExtensions.includes(extension)) {
172
+ this.options.fileExtensions.push(extension);
173
+ }
174
+ }
175
+ addIgnorePattern(pattern) {
176
+ if (!this.options.ignorePatterns.includes(pattern)) {
177
+ this.options.ignorePatterns.push(pattern);
178
+ }
179
+ }
180
+ async validateTemplate(templatePath) {
181
+ try {
182
+ // Check if template directory exists
183
+ if (!(await fs_extra_1.default.pathExists(templatePath))) {
184
+ logger_1.logger.error(`Template directory not found: ${templatePath}`);
185
+ return false;
186
+ }
187
+ // Check if template has required files
188
+ const requiredFiles = ['package.json'];
189
+ for (const file of requiredFiles) {
190
+ const filePath = path_1.default.join(templatePath, file);
191
+ if (!(await fs_extra_1.default.pathExists(filePath))) {
192
+ logger_1.logger.error(`Required template file missing: ${file}`);
193
+ return false;
194
+ }
195
+ }
196
+ return true;
197
+ }
198
+ catch (error) {
199
+ logger_1.logger.error('Template validation failed:', error);
200
+ return false;
201
+ }
202
+ }
203
+ async getTemplateInfo(templatePath) {
204
+ try {
205
+ const packageJsonPath = path_1.default.join(templatePath, 'package.json');
206
+ if (!(await fs_extra_1.default.pathExists(packageJsonPath))) {
207
+ return null;
208
+ }
209
+ const packageJson = await fs_extra_1.default.readJson(packageJsonPath);
210
+ return {
211
+ name: packageJson.name || 'Unknown',
212
+ description: packageJson.description || 'No description',
213
+ version: packageJson.version || '1.0.0',
214
+ dependencies: Object.keys(packageJson.dependencies || {}),
215
+ };
216
+ }
217
+ catch (error) {
218
+ logger_1.logger.error('Failed to get template info:', error);
219
+ return null;
220
+ }
221
+ }
222
+ }
223
+ exports.FileProcessor = FileProcessor;
224
+ //# sourceMappingURL=file-processor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-processor.js","sourceRoot":"","sources":["../../src/generators/file-processor.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,wDAA0B;AAC1B,wDAAgC;AAChC,gDAA6C;AAS7C,MAAa,aAAa;IAGxB,YAAY,UAAyC,EAAE;QACrD,IAAI,CAAC,OAAO,GAAG;YACb,iBAAiB,EAAE,EAAE;YACrB,cAAc,EAAE;gBACd,KAAK;gBACL,MAAM;gBACN,KAAK;gBACL,MAAM;gBACN,OAAO;gBACP,KAAK;gBACL,MAAM;gBACN,MAAM;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;gBACP,MAAM;gBACN,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,YAAY;gBACZ,WAAW;gBACX,aAAa;gBACb,eAAe;gBACf,QAAQ;gBACR,OAAO;aACR;YACD,cAAc,EAAE;gBACd,iBAAiB;gBACjB,SAAS;gBACT,SAAS;gBACT,UAAU;gBACV,OAAO;gBACP,WAAW;gBACX,WAAW;aACZ;YACD,mBAAmB,EAAE,IAAI;YACzB,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,UAAkB,EAAE,UAAkB;QAC7D,IAAI,CAAC;YACH,iCAAiC;YACjC,MAAM,kBAAE,CAAC,SAAS,CAAC,cAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;YAE7C,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YAEvD,OAAO;gBACL,IAAI,EAAE,WAAW,CAAC,IAAI,IAAI,SAAS;gBACnC,WAAW,EAAE,WAAW,CAAC,WAAW,IAAI,gBAAgB;gBACxD,OAAO,EAAE,WAAW,CAAC,OAAO,IAAI,OAAO;gBACvC,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,IAAI,EAAE,CAAC;aAC1D,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,eAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC;YACpD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF;AAlPD,sCAkPC"}
@@ -0,0 +1,4 @@
1
+ export * from './template-generator';
2
+ export * from './package-installer';
3
+ export * from './file-processor';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./template-generator"), exports);
18
+ __exportStar(require("./package-installer"), exports);
19
+ __exportStar(require("./file-processor"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,sDAAoC;AACpC,mDAAiC"}
@@ -0,0 +1,29 @@
1
+ export declare class PackageInstaller {
2
+ private projectPath;
3
+ constructor(projectPath: string);
4
+ install(): Promise<void>;
5
+ installDependencies(dependencies: string[], dev?: boolean): Promise<void>;
6
+ updatePackageJson(updates: Partial<{
7
+ name: string;
8
+ version: string;
9
+ description: string;
10
+ author: string;
11
+ license: string;
12
+ scripts: Record<string, string>;
13
+ dependencies: Record<string, string>;
14
+ devDependencies: Record<string, string>;
15
+ keywords: string[];
16
+ repository: unknown;
17
+ bugs: unknown;
18
+ homepage: string;
19
+ }>): Promise<void>;
20
+ addScript(name: string, command: string): Promise<void>;
21
+ removeScript(name: string): Promise<void>;
22
+ getDependencies(): Promise<{
23
+ dependencies: Record<string, string>;
24
+ devDependencies: Record<string, string>;
25
+ }>;
26
+ hasLockFile(): Promise<boolean>;
27
+ cleanInstall(): Promise<void>;
28
+ }
29
+ //# sourceMappingURL=package-installer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-installer.d.ts","sourceRoot":"","sources":["../../src/generators/package-installer.ts"],"names":[],"mappings":"AAUA,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,WAAW,CAAS;gBAEhB,WAAW,EAAE,MAAM;IAIlB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAuCxB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,GAAG,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAyCvE,iBAAiB,CAC5B,OAAO,EAAE,OAAO,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,UAAU,EAAE,OAAO,CAAC;QACpB,IAAI,EAAE,OAAO,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC,GACD,OAAO,CAAC,IAAI,CAAC;IAoBH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBvD,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBzC,eAAe,IAAI,OAAO,CAAC;QACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACzC,CAAC;IAeW,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAY/B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CA0B3C"}
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PackageInstaller = void 0;
7
+ const path_1 = __importDefault(require("path"));
8
+ const fs_extra_1 = __importDefault(require("fs-extra"));
9
+ const execa_1 = __importDefault(require("execa"));
10
+ const package_manager_1 = require("../cli/utils/package-manager");
11
+ const logger_1 = require("../cli/utils/logger");
12
+ class PackageInstaller {
13
+ constructor(projectPath) {
14
+ this.projectPath = projectPath;
15
+ }
16
+ async install() {
17
+ try {
18
+ // Check if package.json exists
19
+ const packageJsonPath = path_1.default.join(this.projectPath, 'package.json');
20
+ if (!(await fs_extra_1.default.pathExists(packageJsonPath))) {
21
+ throw new Error('package.json not found in project directory');
22
+ }
23
+ // Detect package manager
24
+ const packageManager = await (0, package_manager_1.detectPackageManager)(this.projectPath);
25
+ // Verify package manager is available
26
+ if (!(await (0, package_manager_1.isPackageManagerAvailable)(packageManager))) {
27
+ throw new Error(`Package manager "${packageManager}" is not available`);
28
+ }
29
+ logger_1.logger.debug(`Installing dependencies with ${packageManager}...`);
30
+ // Get install command
31
+ const command = await (0, package_manager_1.getInstallCommand)(packageManager);
32
+ // Add --legacy-peer-deps flag for npm
33
+ if (packageManager === 'npm') {
34
+ command.push('--legacy-peer-deps');
35
+ }
36
+ // Run installation
37
+ await (0, execa_1.default)(command[0], command.slice(1), {
38
+ cwd: this.projectPath,
39
+ stdio: 'pipe',
40
+ });
41
+ logger_1.logger.debug('Dependencies installed successfully');
42
+ }
43
+ catch (error) {
44
+ logger_1.logger.error('Package installation failed:', error);
45
+ throw error;
46
+ }
47
+ }
48
+ async installDependencies(dependencies, dev = false) {
49
+ try {
50
+ if (dependencies.length === 0) {
51
+ return;
52
+ }
53
+ const packageManager = await (0, package_manager_1.detectPackageManager)(this.projectPath);
54
+ if (!(await (0, package_manager_1.isPackageManagerAvailable)(packageManager))) {
55
+ throw new Error(`Package manager "${packageManager}" is not available`);
56
+ }
57
+ logger_1.logger.debug(`Installing ${dev ? 'dev ' : ''}dependencies: ${dependencies.join(', ')}`);
58
+ // Get add command
59
+ const command = packageManager === 'yarn'
60
+ ? ['yarn', 'add', ...(dev ? ['-D'] : []), ...dependencies]
61
+ : packageManager === 'pnpm'
62
+ ? ['pnpm', 'add', ...(dev ? ['-D'] : []), ...dependencies]
63
+ : [
64
+ 'npm',
65
+ 'install',
66
+ ...(dev ? ['--save-dev'] : []),
67
+ '--legacy-peer-deps',
68
+ ...dependencies,
69
+ ];
70
+ // Run installation
71
+ await (0, execa_1.default)(command[0], command.slice(1), {
72
+ cwd: this.projectPath,
73
+ stdio: 'pipe',
74
+ });
75
+ logger_1.logger.debug(`${dev ? 'Dev d' : 'D'}ependencies installed successfully`);
76
+ }
77
+ catch (error) {
78
+ logger_1.logger.error(`Failed to install ${dev ? 'dev ' : ''}dependencies:`, error);
79
+ throw error;
80
+ }
81
+ }
82
+ async updatePackageJson(updates) {
83
+ try {
84
+ const packageJsonPath = path_1.default.join(this.projectPath, 'package.json');
85
+ if (!(await fs_extra_1.default.pathExists(packageJsonPath))) {
86
+ throw new Error('package.json not found');
87
+ }
88
+ const packageJson = await fs_extra_1.default.readJson(packageJsonPath);
89
+ const updatedPackageJson = { ...packageJson, ...updates };
90
+ await fs_extra_1.default.writeJson(packageJsonPath, updatedPackageJson, { spaces: 2 });
91
+ logger_1.logger.debug('package.json updated successfully');
92
+ }
93
+ catch (error) {
94
+ logger_1.logger.error('Failed to update package.json:', error);
95
+ throw error;
96
+ }
97
+ }
98
+ async addScript(name, command) {
99
+ try {
100
+ const packageJsonPath = path_1.default.join(this.projectPath, 'package.json');
101
+ const packageJson = await fs_extra_1.default.readJson(packageJsonPath);
102
+ if (!packageJson.scripts) {
103
+ packageJson.scripts = {};
104
+ }
105
+ packageJson.scripts[name] = command;
106
+ await fs_extra_1.default.writeJson(packageJsonPath, packageJson, { spaces: 2 });
107
+ logger_1.logger.debug(`Script "${name}" added to package.json`);
108
+ }
109
+ catch (error) {
110
+ logger_1.logger.error(`Failed to add script "${name}":`, error);
111
+ throw error;
112
+ }
113
+ }
114
+ async removeScript(name) {
115
+ try {
116
+ const packageJsonPath = path_1.default.join(this.projectPath, 'package.json');
117
+ const packageJson = await fs_extra_1.default.readJson(packageJsonPath);
118
+ if (packageJson.scripts && packageJson.scripts[name]) {
119
+ delete packageJson.scripts[name];
120
+ await fs_extra_1.default.writeJson(packageJsonPath, packageJson, { spaces: 2 });
121
+ logger_1.logger.debug(`Script "${name}" removed from package.json`);
122
+ }
123
+ }
124
+ catch (error) {
125
+ logger_1.logger.error(`Failed to remove script "${name}":`, error);
126
+ throw error;
127
+ }
128
+ }
129
+ async getDependencies() {
130
+ try {
131
+ const packageJsonPath = path_1.default.join(this.projectPath, 'package.json');
132
+ const packageJson = await fs_extra_1.default.readJson(packageJsonPath);
133
+ return {
134
+ dependencies: packageJson.dependencies || {},
135
+ devDependencies: packageJson.devDependencies || {},
136
+ };
137
+ }
138
+ catch (error) {
139
+ logger_1.logger.error('Failed to read dependencies:', error);
140
+ return { dependencies: {}, devDependencies: {} };
141
+ }
142
+ }
143
+ async hasLockFile() {
144
+ const lockFiles = ['package-lock.json', 'yarn.lock', 'pnpm-lock.yaml'];
145
+ for (const lockFile of lockFiles) {
146
+ if (await fs_extra_1.default.pathExists(path_1.default.join(this.projectPath, lockFile))) {
147
+ return true;
148
+ }
149
+ }
150
+ return false;
151
+ }
152
+ async cleanInstall() {
153
+ try {
154
+ // Remove node_modules and lock files
155
+ const nodeModulesPath = path_1.default.join(this.projectPath, 'node_modules');
156
+ const lockFiles = ['package-lock.json', 'yarn.lock', 'pnpm-lock.yaml'];
157
+ if (await fs_extra_1.default.pathExists(nodeModulesPath)) {
158
+ await fs_extra_1.default.remove(nodeModulesPath);
159
+ }
160
+ for (const lockFile of lockFiles) {
161
+ const lockPath = path_1.default.join(this.projectPath, lockFile);
162
+ if (await fs_extra_1.default.pathExists(lockPath)) {
163
+ await fs_extra_1.default.remove(lockPath);
164
+ }
165
+ }
166
+ // Fresh install
167
+ await this.install();
168
+ logger_1.logger.debug('Clean install completed');
169
+ }
170
+ catch (error) {
171
+ logger_1.logger.error('Clean install failed:', error);
172
+ throw error;
173
+ }
174
+ }
175
+ }
176
+ exports.PackageInstaller = PackageInstaller;
177
+ //# sourceMappingURL=package-installer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-installer.js","sourceRoot":"","sources":["../../src/generators/package-installer.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,wDAA0B;AAC1B,k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eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;YACpE,MAAM,SAAS,GAAG,CAAC,mBAAmB,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;YAEvE,IAAI,MAAM,kBAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;gBACzC,MAAM,kBAAE,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YACnC,CAAC;YAED,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;gBACjC,MAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;gBACvD,IAAI,MAAM,kBAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;oBAClC,MAAM,kBAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBAC5B,CAAC;YACH,CAAC;YAED,gBAAgB;YAChB,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;YAErB,eAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC1C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,eAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;YAC7C,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CACF;AAtND,4CAsNC"}
@@ -0,0 +1,61 @@
1
+ import { ProjectConfig } from '../cli/commands/create';
2
+ export interface TemplateContext {
3
+ projectName: string;
4
+ platform: string;
5
+ template: string;
6
+ auth: string;
7
+ database: string;
8
+ theme: string;
9
+ themeColor: string;
10
+ defaultTheme: string;
11
+ ai: {
12
+ enabled: boolean;
13
+ capabilities: string[];
14
+ provider: string;
15
+ hasText: boolean;
16
+ hasAudio: boolean;
17
+ hasVideo: boolean;
18
+ };
19
+ packageName: string;
20
+ className: string;
21
+ camelCaseName: string;
22
+ kebabCaseName: string;
23
+ titleCaseName: string;
24
+ slugNameCamelCase: string;
25
+ description: string;
26
+ author: string;
27
+ year: number;
28
+ generatedDate: string;
29
+ generatorVersion: string;
30
+ uiVersion: string;
31
+ authVersion: string;
32
+ paymentsVersion: string;
33
+ aiVersion: string;
34
+ dependencies: Record<string, string>;
35
+ devDependencies: Record<string, string>;
36
+ scripts: Record<string, string>;
37
+ }
38
+ export declare class TemplateGenerator {
39
+ private config;
40
+ private context;
41
+ private templatesDir;
42
+ constructor(config: ProjectConfig);
43
+ private createTemplateContext;
44
+ private getDependencies;
45
+ private getDevDependencies;
46
+ private getScripts;
47
+ generate(outputPath: string): Promise<void>;
48
+ private generateWebProject;
49
+ private generateMobileProject;
50
+ private copyTemplate;
51
+ private copyAndProcessFiles;
52
+ private copySharedResources;
53
+ private protectJSXObjectLiterals;
54
+ private isJSXObjectLiteral;
55
+ private isTextFile;
56
+ private toPascalCase;
57
+ private toCamelCase;
58
+ private toTitleCase;
59
+ private createMobileAssets;
60
+ }
61
+ //# sourceMappingURL=template-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-generator.d.ts","sourceRoot":"","sources":["../../src/generators/template-generator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE;QACF,OAAO,EAAE,OAAO,CAAC;QACjB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;QAClB,QAAQ,EA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