create-auto-app 1.14.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/package.json +2 -2
  2. package/templates/typical/.gitignore +2 -3
  3. package/templates/typical/auto.config.ts +12 -15
  4. package/templates/typical/client/.gitignore +4 -0
  5. package/templates/typical/client/.storybook/main.ts +33 -0
  6. package/templates/typical/client/.storybook/preview.tsx +35 -0
  7. package/templates/typical/client/components.json +29 -0
  8. package/templates/typical/client/index.html +12 -0
  9. package/templates/typical/client/package.json +60 -0
  10. package/templates/typical/client/pnpm-lock.yaml +5252 -0
  11. package/templates/typical/client/public/mockServiceWorker.js +336 -0
  12. package/templates/typical/client/src/App.tsx +29 -0
  13. package/templates/typical/client/src/components/.gitkeep +0 -0
  14. package/templates/typical/client/src/components/ui/Accordion.stories.tsx +47 -0
  15. package/templates/typical/client/src/components/ui/Accordion.tsx +51 -0
  16. package/templates/typical/client/src/components/ui/Alert.stories.tsx +27 -0
  17. package/templates/typical/client/src/components/ui/Alert.tsx +49 -0
  18. package/templates/typical/client/src/components/ui/AlertDialog.stories.tsx +65 -0
  19. package/templates/typical/client/src/components/ui/AlertDialog.tsx +163 -0
  20. package/templates/typical/client/src/components/ui/AspectRatio.stories.tsx +33 -0
  21. package/templates/typical/client/src/components/ui/AspectRatio.tsx +9 -0
  22. package/templates/typical/client/src/components/ui/Avatar.stories.tsx +42 -0
  23. package/templates/typical/client/src/components/ui/Avatar.tsx +87 -0
  24. package/templates/typical/client/src/components/ui/Badge.stories.tsx +36 -0
  25. package/templates/typical/client/src/components/ui/Badge.tsx +40 -0
  26. package/templates/typical/client/src/components/ui/Breadcrumb.stories.tsx +52 -0
  27. package/templates/typical/client/src/components/ui/Breadcrumb.tsx +92 -0
  28. package/templates/typical/client/src/components/ui/Button.stories.tsx +92 -0
  29. package/templates/typical/client/src/components/ui/Button.tsx +62 -0
  30. package/templates/typical/client/src/components/ui/ButtonGroup.stories.tsx +30 -0
  31. package/templates/typical/client/src/components/ui/ButtonGroup.tsx +75 -0
  32. package/templates/typical/client/src/components/ui/Calendar.stories.tsx +38 -0
  33. package/templates/typical/client/src/components/ui/Calendar.tsx +159 -0
  34. package/templates/typical/client/src/components/ui/Card.stories.tsx +42 -0
  35. package/templates/typical/client/src/components/ui/Card.tsx +56 -0
  36. package/templates/typical/client/src/components/ui/Carousel.stories.tsx +54 -0
  37. package/templates/typical/client/src/components/ui/Carousel.tsx +216 -0
  38. package/templates/typical/client/src/components/ui/Chart.stories.tsx +38 -0
  39. package/templates/typical/client/src/components/ui/Chart.tsx +296 -0
  40. package/templates/typical/client/src/components/ui/Checkbox.stories.tsx +31 -0
  41. package/templates/typical/client/src/components/ui/Checkbox.tsx +29 -0
  42. package/templates/typical/client/src/components/ui/Collapsible.stories.tsx +56 -0
  43. package/templates/typical/client/src/components/ui/Collapsible.tsx +15 -0
  44. package/templates/typical/client/src/components/ui/Combobox.stories.tsx +73 -0
  45. package/templates/typical/client/src/components/ui/Combobox.tsx +267 -0
  46. package/templates/typical/client/src/components/ui/Command.stories.tsx +69 -0
  47. package/templates/typical/client/src/components/ui/Command.tsx +137 -0
  48. package/templates/typical/client/src/components/ui/ContextMenu.stories.tsx +66 -0
  49. package/templates/typical/client/src/components/ui/ContextMenu.tsx +211 -0
  50. package/templates/typical/client/src/components/ui/DesignSystem-Colors.mdx +68 -0
  51. package/templates/typical/client/src/components/ui/DesignSystem-Colors.stories.tsx +116 -0
  52. package/templates/typical/client/src/components/ui/DesignSystem-Layout.mdx +64 -0
  53. package/templates/typical/client/src/components/ui/DesignSystem-Layout.stories.tsx +166 -0
  54. package/templates/typical/client/src/components/ui/DesignSystem-Typography.mdx +31 -0
  55. package/templates/typical/client/src/components/ui/DesignSystem-Typography.stories.tsx +79 -0
  56. package/templates/typical/client/src/components/ui/Dialog.stories.tsx +72 -0
  57. package/templates/typical/client/src/components/ui/Dialog.tsx +136 -0
  58. package/templates/typical/client/src/components/ui/Direction.stories.tsx +36 -0
  59. package/templates/typical/client/src/components/ui/Direction.tsx +18 -0
  60. package/templates/typical/client/src/components/ui/Drawer.stories.tsx +68 -0
  61. package/templates/typical/client/src/components/ui/Drawer.tsx +106 -0
  62. package/templates/typical/client/src/components/ui/DropdownMenu.stories.tsx +72 -0
  63. package/templates/typical/client/src/components/ui/DropdownMenu.tsx +219 -0
  64. package/templates/typical/client/src/components/ui/Empty.stories.tsx +35 -0
  65. package/templates/typical/client/src/components/ui/Empty.tsx +85 -0
  66. package/templates/typical/client/src/components/ui/Field.stories.tsx +47 -0
  67. package/templates/typical/client/src/components/ui/Field.tsx +226 -0
  68. package/templates/typical/client/src/components/ui/Form.stories.tsx +44 -0
  69. package/templates/typical/client/src/components/ui/Form.tsx +136 -0
  70. package/templates/typical/client/src/components/ui/HoverCard.stories.tsx +47 -0
  71. package/templates/typical/client/src/components/ui/HoverCard.tsx +36 -0
  72. package/templates/typical/client/src/components/ui/Input.stories.tsx +38 -0
  73. package/templates/typical/client/src/components/ui/Input.tsx +21 -0
  74. package/templates/typical/client/src/components/ui/InputGroup.stories.tsx +50 -0
  75. package/templates/typical/client/src/components/ui/InputGroup.tsx +147 -0
  76. package/templates/typical/client/src/components/ui/InputOTP.stories.tsx +40 -0
  77. package/templates/typical/client/src/components/ui/InputOTP.tsx +68 -0
  78. package/templates/typical/client/src/components/ui/Item.stories.tsx +61 -0
  79. package/templates/typical/client/src/components/ui/Item.tsx +158 -0
  80. package/templates/typical/client/src/components/ui/Kbd.stories.tsx +54 -0
  81. package/templates/typical/client/src/components/ui/Kbd.tsx +18 -0
  82. package/templates/typical/client/src/components/ui/Label.stories.tsx +85 -0
  83. package/templates/typical/client/src/components/ui/Label.tsx +40 -0
  84. package/templates/typical/client/src/components/ui/Menubar.stories.tsx +76 -0
  85. package/templates/typical/client/src/components/ui/Menubar.tsx +236 -0
  86. package/templates/typical/client/src/components/ui/NativeSelect.stories.tsx +42 -0
  87. package/templates/typical/client/src/components/ui/NativeSelect.tsx +44 -0
  88. package/templates/typical/client/src/components/ui/NavigationMenu.stories.tsx +78 -0
  89. package/templates/typical/client/src/components/ui/NavigationMenu.tsx +142 -0
  90. package/templates/typical/client/src/components/ui/Pagination.stories.tsx +75 -0
  91. package/templates/typical/client/src/components/ui/Pagination.tsx +100 -0
  92. package/templates/typical/client/src/components/ui/Popover.stories.tsx +51 -0
  93. package/templates/typical/client/src/components/ui/Popover.tsx +52 -0
  94. package/templates/typical/client/src/components/ui/Progress.stories.tsx +28 -0
  95. package/templates/typical/client/src/components/ui/Progress.tsx +24 -0
  96. package/templates/typical/client/src/components/ui/RadioGroup.stories.tsx +48 -0
  97. package/templates/typical/client/src/components/ui/RadioGroup.tsx +31 -0
  98. package/templates/typical/client/src/components/ui/Resizable.stories.tsx +69 -0
  99. package/templates/typical/client/src/components/ui/Resizable.tsx +47 -0
  100. package/templates/typical/client/src/components/ui/ScrollArea.stories.tsx +43 -0
  101. package/templates/typical/client/src/components/ui/ScrollArea.tsx +46 -0
  102. package/templates/typical/client/src/components/ui/Select.stories.tsx +57 -0
  103. package/templates/typical/client/src/components/ui/Select.tsx +162 -0
  104. package/templates/typical/client/src/components/ui/Separator.stories.tsx +40 -0
  105. package/templates/typical/client/src/components/ui/Separator.tsx +26 -0
  106. package/templates/typical/client/src/components/ui/Sheet.stories.tsx +66 -0
  107. package/templates/typical/client/src/components/ui/Sheet.tsx +107 -0
  108. package/templates/typical/client/src/components/ui/Sidebar.stories.tsx +94 -0
  109. package/templates/typical/client/src/components/ui/Sidebar.tsx +675 -0
  110. package/templates/typical/client/src/components/ui/Skeleton.stories.tsx +38 -0
  111. package/templates/typical/client/src/components/ui/Skeleton.tsx +7 -0
  112. package/templates/typical/client/src/components/ui/Slider.stories.tsx +21 -0
  113. package/templates/typical/client/src/components/ui/Slider.tsx +54 -0
  114. package/templates/typical/client/src/components/ui/Sonner.stories.tsx +44 -0
  115. package/templates/typical/client/src/components/ui/Sonner.tsx +34 -0
  116. package/templates/typical/client/src/components/ui/Spinner.stories.tsx +23 -0
  117. package/templates/typical/client/src/components/ui/Spinner.tsx +9 -0
  118. package/templates/typical/client/src/components/ui/Switch.stories.tsx +35 -0
  119. package/templates/typical/client/src/components/ui/Switch.tsx +33 -0
  120. package/templates/typical/client/src/components/ui/Table.stories.tsx +65 -0
  121. package/templates/typical/client/src/components/ui/Table.tsx +75 -0
  122. package/templates/typical/client/src/components/ui/Tabs.stories.tsx +51 -0
  123. package/templates/typical/client/src/components/ui/Tabs.tsx +69 -0
  124. package/templates/typical/client/src/components/ui/Textarea.stories.tsx +24 -0
  125. package/templates/typical/client/src/components/ui/Textarea.tsx +18 -0
  126. package/templates/typical/client/src/components/ui/Toast.stories.tsx +112 -0
  127. package/templates/typical/client/src/components/ui/Toast.tsx +114 -0
  128. package/templates/typical/client/src/components/ui/Toaster.tsx +28 -0
  129. package/templates/typical/client/src/components/ui/Toggle.stories.tsx +40 -0
  130. package/templates/typical/client/src/components/ui/Toggle.tsx +41 -0
  131. package/templates/typical/client/src/components/ui/ToggleGroup.stories.tsx +58 -0
  132. package/templates/typical/client/src/components/ui/ToggleGroup.tsx +80 -0
  133. package/templates/typical/client/src/components/ui/Tooltip.stories.tsx +40 -0
  134. package/templates/typical/client/src/components/ui/Tooltip.tsx +42 -0
  135. package/templates/typical/client/src/hooks/.gitkeep +0 -0
  136. package/templates/typical/client/src/hooks/use-mobile.ts +19 -0
  137. package/templates/typical/client/src/hooks/use-toast.ts +186 -0
  138. package/templates/typical/client/src/index.css +123 -0
  139. package/templates/typical/client/src/lib/utils.ts +6 -0
  140. package/templates/typical/client/src/main.tsx +5 -0
  141. package/templates/typical/client/tsconfig.app.json +25 -0
  142. package/templates/typical/client/tsconfig.json +4 -0
  143. package/templates/typical/client/vite.config.ts +16 -0
  144. package/templates/typical/package.json +2 -1
  145. package/templates/typical/server/event-store.sqlite +0 -0
  146. package/templates/typical/server/package.json +30 -0
  147. package/templates/typical/server/pnpm-lock.yaml +3869 -0
  148. package/templates/typical/server/scripts/generate-schema.ts +31 -0
  149. package/templates/typical/server/src/domain/flows/health/query.resolver.ts +10 -0
  150. package/templates/typical/server/src/domain/shared/index.ts +1 -0
  151. package/templates/typical/server/src/domain/shared/types.ts +8 -0
  152. package/templates/typical/server/src/server.ts +34 -0
  153. package/templates/typical/server/src/utils/index.ts +1 -0
  154. package/templates/typical/server/src/utils/loadResolvers.ts +34 -0
  155. package/templates/typical/server/tsconfig.json +20 -0
  156. package/templates/typical/server/vitest.config.ts +7 -0
  157. package/templates/typical/auto.config.specs.ts +0 -47
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-auto-app",
3
- "version": "1.14.0",
3
+ "version": "1.16.0",
4
4
  "description": "Create Auto Engineer apps with no configuration",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "fs-extra": "^11.2.0",
34
34
  "inquirer": "^9.2.15",
35
35
  "ora": "^8.0.1",
36
- "@auto-engineer/id": "1.14.0"
36
+ "@auto-engineer/id": "1.16.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/fs-extra": "^11.0.4",
@@ -1,4 +1,3 @@
1
1
  .context
2
- server*
3
- client*
4
- /.context/
2
+ # server*
3
+ # client*
@@ -822,6 +822,18 @@ export const plugins = [
822
822
  ];
823
823
 
824
824
  export const pipeline = define('kanban-todo')
825
+ .on('PipelineStarted')
826
+ .emit('StartServer', () => ({
827
+ serverDirectory: resolvePath('./server'),
828
+ }))
829
+ .emit('StartClient', () => ({
830
+ clientDirectory: resolvePath('./client'),
831
+ command: 'pnpm dev',
832
+ }))
833
+ .emit('StartStorybook', () => ({
834
+ storybookDirectory: resolvePath('./client'),
835
+ }))
836
+
825
837
  .on('SchemaExported')
826
838
  .emit('DetectChanges', (e: { data: SchemaExportedData }) => {
827
839
  projectRoot = e.data.directory;
@@ -903,21 +915,6 @@ export const pipeline = define('kanban-todo')
903
915
  outputDir: resolvePath('./.context'),
904
916
  };
905
917
  })
906
- .emit('StartServer', () => ({
907
- serverDirectory: resolvePath('./server'),
908
- }))
909
-
910
- .on('ReactClientGenerated')
911
- .emit('StartClient', (e: { data: { targetDir: string } }) => ({
912
- clientDirectory: e.data.targetDir,
913
- command: 'pnpm dev',
914
- }))
915
- .emit('StartStorybook', (e: { data: { targetDir: string } }) => ({
916
- storybookDirectory: e.data.targetDir,
917
- }))
918
-
919
- .on('StorybookStarted')
920
- .emit('TriggerJobGraph', () => ({}))
921
918
 
922
919
  .on('IAValidationFailed')
923
920
  .emit('GenerateIA', (e: { data: IAValidationFailedData }) => {
@@ -0,0 +1,4 @@
1
+ node_modules
2
+ dist
3
+ *.local
4
+ .DS_Store
@@ -0,0 +1,33 @@
1
+ import { fileURLToPath } from 'node:url';
2
+ import { dirname } from 'node:path';
3
+ import type { StorybookConfig } from '@storybook/react-vite';
4
+
5
+ const config: StorybookConfig = {
6
+ stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'],
7
+ addons: [
8
+ getAbsolutePath('@storybook/addon-docs'),
9
+ {
10
+ name: getAbsolutePath('@storybook/addon-mcp'),
11
+ options: {
12
+ toolsets: {
13
+ dev: true,
14
+ docs: true,
15
+ },
16
+ },
17
+ },
18
+ ],
19
+ staticDirs: ['../public'],
20
+ features: {
21
+ experimentalComponentsManifest: true,
22
+ },
23
+ framework: {
24
+ name: getAbsolutePath('@storybook/react-vite'),
25
+ options: {},
26
+ },
27
+ };
28
+
29
+ export default config;
30
+
31
+ function getAbsolutePath(value: string): any {
32
+ return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)));
33
+ }
@@ -0,0 +1,35 @@
1
+ import type { Preview } from '@storybook/react-vite';
2
+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
3
+ import { initialize, mswLoader } from 'msw-storybook-addon';
4
+ import '../src/index.css';
5
+
6
+ initialize();
7
+
8
+ const queryClient = new QueryClient({
9
+ defaultOptions: {
10
+ queries: {
11
+ retry: false,
12
+ },
13
+ },
14
+ });
15
+
16
+ const preview: Preview = {
17
+ decorators: [
18
+ (Story) => (
19
+ <QueryClientProvider client={queryClient}>
20
+ <Story />
21
+ </QueryClientProvider>
22
+ ),
23
+ ],
24
+ parameters: {
25
+ controls: {
26
+ matchers: {
27
+ color: /(background|color)$/i,
28
+ date: /Date$/i,
29
+ },
30
+ },
31
+ },
32
+ loaders: [mswLoader],
33
+ };
34
+
35
+ export default preview;
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": false,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "src/index.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/utils",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/hooks"
19
+ },
20
+ "iconLibrary": "lucide",
21
+ "registries": {
22
+ "@shadcraft": {
23
+ "url": "https://registry-shadcraft.vercel.app/r/{name}",
24
+ "headers": {
25
+ "X-License-Key": "${SHADCRAFT_LICENSE_KEY}"
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>React App</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ <script type="module" src="/src/main.tsx"></script>
11
+ </body>
12
+ </html>
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "react-client",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc -b && vite build",
9
+ "preview": "vite preview",
10
+ "type-check": "tsc --noEmit -p tsconfig.app.json",
11
+ "storybook": "storybook dev -p 6006",
12
+ "build-storybook": "storybook build"
13
+ },
14
+ "dependencies": {
15
+ "@base-ui/react": "^1.1.0",
16
+ "@hookform/resolvers": "^5.2.2",
17
+ "@tanstack/react-query": "^5.90.19",
18
+ "class-variance-authority": "^0.7.1",
19
+ "clsx": "^2.1.1",
20
+ "cmdk": "^1.1.1",
21
+ "date-fns": "^4.1.0",
22
+ "embla-carousel-react": "^8.6.0",
23
+ "input-otp": "^1.4.2",
24
+ "lucide-react": "^0.539.0",
25
+ "next-themes": "^0.4.6",
26
+ "radix-ui": "^1.4.3",
27
+ "react": "^19.0.0",
28
+ "react-day-picker": "^9.13.0",
29
+ "react-dom": "^19.0.0",
30
+ "react-hook-form": "^7.71.1",
31
+ "react-resizable-panels": "^4.6.1",
32
+ "react-router-dom": "^7.13.0",
33
+ "recharts": "2.15.4",
34
+ "sonner": "^2.0.7",
35
+ "tailwind-merge": "^3.3.1",
36
+ "vaul": "^1.1.2",
37
+ "zod": "^4.3.6"
38
+ },
39
+ "devDependencies": {
40
+ "@storybook/addon-docs": "^10.2.8",
41
+ "@storybook/addon-mcp": "^0.2.2",
42
+ "@storybook/react-vite": "^10.2.8",
43
+ "@tailwindcss/vite": "^4.1.16",
44
+ "@types/react": "^19.2.7",
45
+ "@types/react-dom": "^19.2.3",
46
+ "@vitejs/plugin-react-swc": "^4.2.2",
47
+ "msw": "^2.12.10",
48
+ "msw-storybook-addon": "^2.0.6",
49
+ "storybook": "^10.2.8",
50
+ "tailwindcss": "^4.1.16",
51
+ "tw-animate-css": "^1.3.7",
52
+ "typescript": "^5.9.3",
53
+ "vite": "^7.3.0"
54
+ },
55
+ "msw": {
56
+ "workerDirectory": [
57
+ "public"
58
+ ]
59
+ }
60
+ }