mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 13:44:54 +00:00
> spark-template@0.0.0 lint:check > eslint . /home/runner/work/low-code-react-app-b/low-code-react-app-b/packages/spark-tools/src/lib/spark-runtime.ts Warning: 17:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 25:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 40:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 53:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/packages/spark-tools/src/sparkVitePlugin.ts Warning: 3:10 warning 'resolve' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 19:20 warning 'config' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 19:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/packages/spark-tools/src/vitePhosphorIconProxyPlugin.ts Warning: 24:15 warning 'code' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 24:29 warning 'id' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/packages/spark/src/spark-runtime.ts Warning: 11:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 14:89 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 34:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 47:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/packages/spark/src/types.d.ts Warning: 11:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 12:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 17:77 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 18:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/App.new.tsx Warning: 2:17 warning 'Toaster' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 90:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 116:32 warning 'exportDialogOpen' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 116:50 warning 'setExportDialogOpen' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 116:71 warning 'generatedCode' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 116:86 warning 'handleDownloadZip' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/App.refactored.tsx Warning: 2:10 warning 'useKV' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 79:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/App.router.tsx Warning: 13:10 warning 'LoadingFallback' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 161:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 315:11 warning 'featureToggles' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 359:9 warning 'stateContext' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 365:9 warning 'actionContext' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/App.simple.tsx Warning: 58:30 warning 'project' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/App.tsx Warning: 13:10 warning 'LoadingFallback' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 168:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ComponentTreeBuilder.tsx Warning: 277:30 warning 'err' is defined but never used @typescript-eslint/no-unused-vars Error: 277:35 error Empty block statement no-empty /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ErrorPanel.tsx Warning: 9:10 warning 'Separator' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 37:10 warning 'autoRepairEnabled' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 37:29 warning 'setAutoRepairEnabled' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 155:9 warning 'toggleErrorExpanded' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 208:6 warning React Hook useEffect has missing dependencies: 'errors.length', 'files.length', and 'scanForErrors'. Either include them or remove the dependency array react-hooks/exhaustive-deps Warning: 321:85 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/FaviconDesigner.tsx Warning: 7:10 warning 'Tabs' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 7:16 warning 'TabsContent' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 7:29 warning 'TabsList' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 7:39 warning 'TabsTrigger' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 25:3 warning 'ArrowCounterClockwise' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 27:3 warning 'FloppyDisk' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 33:3 warning 'MagicWand' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 129:6 warning React Hook useEffect has a missing dependency: 'drawCanvas'. Either include it or remove the dependency array react-hooks/exhaustive-deps Warning: 268:11 warning 'data' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Error: 312:9 error Unexpected lexical declaration in case block no-case-declarations Error: 313:9 error Unexpected lexical declaration in case block no-case-declarations Error: 316:9 error Unexpected lexical declaration in case block no-case-declarations Warning: 695:13 warning 'imageData' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/FeatureIdeaCloud.tsx Warning: 235:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 237:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 371:9 warning The 'safeGroups' logical expression could make the dependencies of useEffect Hook (at line 441) change on every render. To fix this, wrap the initialization of 'safeGroups' in its own useMemo() Hook react-hooks/exhaustive-deps Warning: 372:9 warning The 'safeEdges' logical expression could make the dependencies of useEffect Hook (at line 446) change on every render. Move it inside the useEffect callback. Alternatively, wrap the initialization of 'safeEdges' in its own useMemo() Hook react-hooks/exhaustive-deps Warning: 373:9 warning The 'safeNodePositions' logical expression could make the dependencies of useEffect Hook (at line 441) change on every render. Move it inside the useEffect callback. Alternatively, wrap the initialization of 'safeNodePositions' in its own useMemo() Hook react-hooks/exhaustive-deps Warning: 470:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 472:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 496:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 924:65 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 1324:101 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 1339:99 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/FeatureIdeaCloud/utils.ts Warning: 8:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/FeatureIdeaCloud/utils.tsx Warning: 50:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 55:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/FeatureToggleSettings.tsx Warning: 1:16 warning 'CardContent' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 2:10 warning 'Label' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/FileExplorer.tsx Warning: 179:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/FlaskDesigner.tsx Warning: 461:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 548:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/JSONComponentTreeManager.tsx Warning: 6:10 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 7:36 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 7:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 10:44 warning 'trees' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 10:51 warning 'onTreesChange' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 13:45 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/JSONDemoPage.tsx Warning: 16:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 16:47 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 20:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 30:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 31:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 40:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 41:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 134:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/JSONModelDesigner.tsx Warning: 6:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 7:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 10:37 warning 'models' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 10:45 warning 'onModelsChange' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 13:45 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/JSONPageRenderer.tsx Warning: 12:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 24:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 30:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 31:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 32:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 36:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 38:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 39:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 39:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:63 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:70 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 51:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 52:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Error: 76:9 error Unexpected lexical declaration in case block no-case-declarations Warning: 79:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Error: 84:9 error Unexpected lexical declaration in case block no-case-declarations Error: 85:9 error Unexpected lexical declaration in case block no-case-declarations Warning: 94:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 103:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 126:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 146:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 146:55 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Error: 163:9 error Unexpected lexical declaration in case block no-case-declarations Warning: 165:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 185:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 202:57 warning 'props' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 202:64 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/JSONUIPage.tsx Warning: 3:37 warning 'Layout' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 7:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 11:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 15:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 17:79 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 27:66 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 37:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/JSONUIShowcase.tsx Warning: 12:10 warning 'FileCode' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 45:9 warning 'currentExample' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/JSONWorkflowDesigner.tsx Warning: 6:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 7:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 7:54 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 10:40 warning 'workflows' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 10:51 warning 'onWorkflowsChange' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 13:45 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/KeyboardShortcutsDialog.tsx Warning: 8:10 warning 'Card' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 8:16 warning 'CardContent' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/LambdaDesigner.tsx Warning: 4:16 warning 'CardContent' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 225:59 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/NavigationMenu.tsx Warning: 28:3 warning 'Cloud' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/PlaywrightDesigner.tsx Warning: 246:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ProjectDashboard.new.tsx Warning: 17:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 50:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ProjectSettingsDesigner.tsx Warning: 326:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/SassStylesShowcase.tsx Warning: 2:10 warning 'ScrollArea' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 4:10 warning 'Badge' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 5:10 warning 'Button' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 6:10 warning 'Code' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 6:16 warning 'Palette' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 6:25 warning 'Sparkle' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/SchemaEditorPage.tsx Warning: 30:5 warning 'handleDragEnd' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 103:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/StorybookDesigner.tsx Warning: 56:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 78:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/TemplateExplorer.tsx Warning: 41:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 160:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/UnitTestDesigner.tsx Warning: 251:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/WorkflowDesigner.tsx Warning: 26:3 warning 'Sparkle' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 33:3 warning 'Pencil' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 301:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 346:63 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/atoms/ComponentPaletteItem.tsx Warning: 13:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/atoms/ComponentTreeNode.tsx Warning: 38:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/atoms/DataList.tsx Warning: 5:10 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 6:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/atoms/DetailRow.tsx Warning: 1:10 warning 'Card' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 1:16 warning 'CardContent' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/atoms/PropertyEditorField.tsx Warning: 10:10 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/atoms/SeedDataStatus.tsx Warning: 3:20 warning 'Check' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 3:27 warning 'X' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/atoms/json-ui/IconRenderer.tsx Warning: 1:10 warning 'ReactNode' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 2:10 warning 'ComponentSchema' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 4:10 warning 'cn' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 14:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/CanvasRenderer.tsx Warning: 36:11 warning 'def' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/ComponentBindingDialog.tsx Warning: 32:52 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/ComponentTree.tsx Warning: 4:10 warning 'Button' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 5:16 warning 'Plus' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/DataSourceCard.tsx Warning: 3:10 warning 'Input' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 4:10 warning 'Label' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/DataSourceEditorDialog.tsx Warning: 6:10 warning 'Select' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 6:18 warning 'SelectContent' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 6:33 warning 'SelectItem' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 6:45 warning 'SelectTrigger' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 6:60 warning 'SelectValue' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 8:22 warning 'DataSourceType' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 111:30 warning 'err' is defined but never used @typescript-eslint/no-unused-vars Warning: 131:28 warning 'err' is defined but never used @typescript-eslint/no-unused-vars Warning: 151:30 warning 'err' is defined but never used @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/GitHubBuildStatus.tsx Warning: 48:50 warning 'defaultBranch' is assigned a value but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 57:6 warning React Hook useEffect has a missing dependency: 'fetchData'. Either include it or remove the dependency array react-hooks/exhaustive-deps /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/LazyBarChart.tsx Warning: 7:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/LazyInlineMonacoEditor.tsx Warning: 16:13 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/LazyLineChart.tsx Warning: 7:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/LazyMonacoEditor.tsx Warning: 49:17 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/PropertyEditor.tsx Warning: 28:49 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 41:86 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 41:101 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/molecules/TreeCard.tsx Warning: 1:16 warning 'CardContent' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/orchestration/ComponentRenderer.tsx Warning: 9:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 25:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 26:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 100:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 100:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/orchestration/PageRenderer.tsx Warning: 14:51 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 27:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 28:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/organisms/JSONUIShowcase.tsx Warning: 1:20 warning 'useEffect' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 11:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 12:12 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:16 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 23:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/organisms/SchemaCodeViewer.tsx Warning: 1:10 warning 'Button' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 4:16 warning 'Eye' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 9:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 12:36 warning 'components' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/organisms/SchemaEditorLayout.tsx Warning: 1:23 warning 'PageSchema' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/organisms/TreeListPanel.tsx Warning: 2:10 warning 'Button' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ui/badge.tsx Warning: 46:17 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ui/button.tsx Warning: 64:18 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ui/form.tsx Warning: 157:3 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ui/navigation-menu.tsx Warning: 167:3 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ui/sidebar.tsx Warning: 725:3 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/components/ui/toggle.tsx Warning: 45:18 warning Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components react-refresh/only-export-components /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/config/orchestration/PageRenderer.tsx Warning: 10:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 16:9 warning The 'context' object makes the dependencies of useCallback Hook (at line 30) change on every render. Move it inside the useCallback callback. Alternatively, wrap the initialization of 'context' in its own useMemo() Hook react-hooks/exhaustive-deps Warning: 24:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 48:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/config/orchestration/action-executor.ts Warning: 6:36 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 7:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 8:45 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 29:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 40:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/config/orchestration/component-registry.ts Warning: 31:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 66:59 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/config/orchestration/data-source-manager.ts Warning: 7:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 58:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 60:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/config/orchestration/schema.ts Warning: 29:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/config/page-loader.ts Warning: 97:95 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 97:131 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 97:153 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 104:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/core/use-clipboard.ts Warning: 14:14 warning 'error' is defined but never used @typescript-eslint/no-unused-vars Warning: 24:14 warning 'error' is defined but never used @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-array.ts Warning: 6:9 warning The 'safeItems' logical expression could make the dependencies of useCallback Hook (at line 41) change on every render. To fix this, wrap the initialization of 'safeItems' in its own useMemo() Hook react-hooks/exhaustive-deps Warning: 6:9 warning The 'safeItems' logical expression could make the dependencies of useCallback Hook (at line 48) change on every render. To fix this, wrap the initialization of 'safeItems' in its own useMemo() Hook react-hooks/exhaustive-deps /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-crud.ts Warning: 17:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-data-source.ts Warning: 5:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 17:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 21:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 22:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 23:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-data-sources.ts Warning: 6:51 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Error: 11:5 error React Hook "useKV" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function react-hooks/rules-of-hooks Warning: 16:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 18:36 warning 'index' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars Warning: 34:6 warning React Hook useEffect has missing dependencies: 'dataSources', 'kvSources', and 'kvStates'. Either include them or remove the dependency array react-hooks/exhaustive-deps Warning: 52:60 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 70:74 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 86:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-filter.ts Warning: 6:10 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-json-data.ts Warning: 6:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:48 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:63 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 27:59 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 28:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 31:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-local-storage.ts Warning: 1:20 warning 'useEffect' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-pagination.ts Warning: 4:10 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:31 warning 'T' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-search-filter.ts Warning: 6:48 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 15:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 37:54 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-seed-templates.ts Warning: 12:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 126:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-selection.ts Warning: 9:55 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/data/use-sort.ts Warning: 11:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/forms/use-form-field.ts Warning: 3:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 8:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 14:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 65:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 71:60 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/forms/use-form.ts Warning: 9:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/json-ui/use-data-sources.ts Warning: 5:51 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 8:9 warning 'staticSources' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 20:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:66 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 52:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/json-ui/use-json-renderer.ts Warning: 2:10 warning 'ComponentSchema' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 6:51 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 6:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 19:53 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 29:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 29:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 29:84 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 30:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/orchestration/use-actions.ts Warning: 2:10 warning 'PageSchema' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 5:82 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 12:45 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 62:65 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 78:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 78:66 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 82:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 87:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 87:66 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 91:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 92:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 98:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 98:66 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 102:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 102:54 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 107:39 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 116:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 116:70 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 128:72 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/orchestration/use-page.ts Warning: 2:22 warning 'DataSource' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 17:67 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 20:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 45:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-action-executor.ts Warning: 8:68 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 29:54 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 110:72 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-component-registry.ts Warning: 12:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 34:60 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 38:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 39:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-confirm-dialog.ts Warning: 39:6 warning React Hook useCallback has a missing dependency: 'state'. Either include it or remove the dependency array react-hooks/exhaustive-deps Warning: 46:6 warning React Hook useCallback has a missing dependency: 'state'. Either include it or remove the dependency array react-hooks/exhaustive-deps /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-data-binding.ts Warning: 4:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 10:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 10:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 45:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-drag-drop.ts Warning: 6:9 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-event-handlers.ts Warning: 4:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 4:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 11:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 39:65 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 39:75 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:48 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:58 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-form-state.ts Warning: 3:38 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 10:53 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 18:55 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 22:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 22:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 36:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 70:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-form.ts Warning: 4:10 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 15:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 23:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 35:64 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 57:51 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-json-export.ts Warning: 5:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 26:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 37:68 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/ui/use-list-operations.ts Warning: 11:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/use-ai-operations.ts Warning: 4:10 warning 'ProjectFile' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 4:23 warning 'PrismaModel' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 4:36 warning 'ThemeConfig' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/use-last-saved.ts Warning: 3:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 8:6 warning React Hook useEffect was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies react-hooks/exhaustive-deps /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/use-project-loader.ts Warning: 4:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 5:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 6:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 7:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 8:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 10:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 11:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 12:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 14:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 15:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 16:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 17:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/hooks/use-pwa.ts Warning: 32:54 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/ai-service.ts Error: 1:1 error Do not use "@ts-nocheck" because it alters compilation errors @typescript-eslint/ban-ts-comment /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/component-definitions.ts Warning: 8:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/component-registry.ts Warning: 2:10 warning 'lazyWithRetry' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/error-repair-service.ts Error: 1:1 error Do not use "@ts-nocheck" because it alters compilation errors @typescript-eslint/ban-ts-comment Warning: 23:11 warning 'errors' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 83:26 warning 'index' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/generators.ts Warning: 1:122 warning 'FlaskEndpoint' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/component-registry.ts Warning: 38:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 43:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 44:13 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 45:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 46:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 47:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 48:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 49:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 50:15 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 51:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 52:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 53:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 54:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 55:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 56:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 57:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 167:74 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 171:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/component-registry.tsx Warning: 22:55 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 68:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/component-renderer.tsx Warning: 7:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 8:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 11:64 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 11:71 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Error: 41:17 error React Hook "useMemo" is called conditionally. React Hooks must be called in the exact same order in every component render react-hooks/rules-of-hooks Warning: 42:36 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 52:95 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/hooks.ts Warning: 8:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 39:6 warning React Hook useCallback has a missing dependency: 'config'. Either include it or remove the dependency array react-hooks/exhaustive-deps Warning: 62:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 85:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 86:22 warning 'setLoadingMap' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 87:20 warning 'setErrorMap' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 91:54 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 107:6 warning React Hook useEffect has missing dependencies: 'sources' and 'updateData'. Either include them or remove the dependency array react-hooks/exhaustive-deps Warning: 119:81 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 121:70 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 125:59 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/page-renderer.tsx Warning: 9:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 13:29 warning 'updatePath' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 23:83 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 49:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 49:60 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/renderer.tsx Warning: 4:49 warning 'mergeClassNames' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 9:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 10:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 11:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 39:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 66:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 78:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 127:13 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 128:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 129:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 130:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 134:68 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/schema.ts Warning: 30:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/utils.ts Warning: 1:113 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 1:120 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 14:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 14:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 20:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 20:63 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 20:69 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 35:78 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 45:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 45:64 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/json-ui/validator.ts Warning: 16:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 45:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 65:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 101:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 108:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 109:64 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/lazy-loader.ts Warning: 11:55 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 55:59 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 63:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 65:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 90:53 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 93:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/library-loader.ts Warning: 1:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 105:8 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/pwa-icons.ts Warning: 25:9 warning 'innerSize' is assigned a value but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 74:14 warning 'error' is defined but never used @typescript-eslint/no-unused-vars /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/lib/schema-renderer.tsx Warning: 8:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 9:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 64:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 130:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 131:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 131:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/router/RouterProvider.tsx Warning: 2:25 warning 'Navigate' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 10:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 11:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/router/routes.tsx Warning: 1:10 warning 'lazy' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 12:7 warning Fast refresh only works when a file only exports components. Move your component(s) to a separate file react-refresh/only-export-components Warning: 17:10 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 20:91 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 34:7 warning Fast refresh only works when a file only exports components. Move your component(s) to a separate file react-refresh/only-export-components Warning: 40:4 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 42:95 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 43:97 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 73:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 74:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/schemas/dashboard-schema.ts Warning: 31:49 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 43:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 44:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 209:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 258:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 258:69 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/schemas/page-schemas.ts Warning: 30:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 31:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/schemas/ui-schema.ts Warning: 9:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/types/json-ui.ts Warning: 1:10 warning 'ReactNode' is defined but never used. Allowed unused vars must match /^_/u @typescript-eslint/no-unused-vars Warning: 24:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 25:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 25:44 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 34:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 35:35 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 35:49 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 35:57 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 43:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 43:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 49:37 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 55:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 85:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 86:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 87:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/types/page-schema.ts Warning: 15:41 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/types/project.ts Warning: 29:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 88:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 207:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any Warning: 265:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any /home/runner/work/low-code-react-app-b/low-code-react-app-b/src/vite-end.d.ts Warning: 8:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any ✖ 536 problems (12 errors, 524 warnings) Error: Process completed with exit code 1.
302 lines
9.2 KiB
TypeScript
302 lines
9.2 KiB
TypeScript
import { PrismaModel, ComponentNode, ThemeConfig, ProjectFile } from '@/types/project'
|
|
import { ProtectedLLMService } from './protected-llm-service'
|
|
|
|
export class AIService {
|
|
static async generateComponent(description: string): Promise<ComponentNode | null> {
|
|
try {
|
|
// @ts-expect-error - spark.llmPrompt exists at runtime
|
|
const prompt = window.spark.llmPrompt`You are a React component generator. Generate a component tree structure based on this description: ${description}
|
|
|
|
Return a valid JSON object with a single property "component" containing the component structure. The component should follow this format:
|
|
{
|
|
"component": {
|
|
"id": "unique-id",
|
|
"type": "Box",
|
|
"name": "ComponentName",
|
|
"props": {
|
|
"sx": { "p": 2 }
|
|
},
|
|
"children": []
|
|
}
|
|
}
|
|
|
|
Make sure to use appropriate Material UI components and props. Keep the structure clean and semantic.`
|
|
|
|
const result = await ProtectedLLMService.safeLLMCall(
|
|
prompt,
|
|
{ jsonMode: true, priority: 'medium', category: 'generate-component' }
|
|
)
|
|
|
|
if (result) {
|
|
const parsed = JSON.parse(result)
|
|
return parsed.component
|
|
}
|
|
return null
|
|
} catch (error) {
|
|
console.error('AI component generation failed:', error)
|
|
return null
|
|
}
|
|
}
|
|
|
|
static async generatePrismaModel(description: string, existingModels: PrismaModel[]): Promise<PrismaModel | null> {
|
|
try {
|
|
const existingModelNames = existingModels.map(m => m.name).join(', ')
|
|
|
|
// @ts-expect-error - spark.llmPrompt exists at runtime
|
|
const prompt = window.spark.llmPrompt`You are a Prisma schema expert. Create a Prisma model based on this description: ${description}
|
|
|
|
Existing models in the schema: ${existingModelNames || 'none'}
|
|
|
|
Return a valid JSON object with a single property "model" containing the model structure:
|
|
{
|
|
"model": {
|
|
"id": "unique-id-here",
|
|
"name": "ModelName",
|
|
"fields": [
|
|
{
|
|
"id": "field-id-1",
|
|
"name": "id",
|
|
"type": "String",
|
|
"isRequired": true,
|
|
"isUnique": true,
|
|
"isArray": false,
|
|
"defaultValue": "uuid()"
|
|
},
|
|
{
|
|
"id": "field-id-2",
|
|
"name": "fieldName",
|
|
"type": "String",
|
|
"isRequired": true,
|
|
"isUnique": false,
|
|
"isArray": false
|
|
}
|
|
]
|
|
}
|
|
}`
|
|
|
|
const result = await ProtectedLLMService.safeLLMCall(
|
|
prompt,
|
|
{ jsonMode: true, priority: 'medium', category: 'generate-model' }
|
|
)
|
|
|
|
if (result) {
|
|
const parsed = JSON.parse(result)
|
|
return parsed.model
|
|
}
|
|
return null
|
|
} catch (error) {
|
|
console.error('AI model generation failed:', error)
|
|
return null
|
|
}
|
|
}
|
|
|
|
static async generateCodeFromDescription(
|
|
description: string,
|
|
fileType: 'component' | 'page' | 'api' | 'utility'
|
|
): Promise<string | null> {
|
|
try {
|
|
const fileTypeInstructions = {
|
|
component: "Create a reusable React component with TypeScript. Use Material UI components and proper typing.",
|
|
page: "Create a Next.js page component with 'use client' directive if needed. Use Material UI and proper page structure.",
|
|
api: "Create a Next.js API route handler with proper types and error handling.",
|
|
utility: "Create a utility function with TypeScript types and JSDoc comments."
|
|
}
|
|
|
|
// @ts-expect-error - spark.llmPrompt exists at runtime
|
|
const prompt = window.spark.llmPrompt`You are a Next.js developer. ${fileTypeInstructions[fileType]}
|
|
|
|
Description: ${description}
|
|
|
|
Generate clean, production-ready code following Next.js 14 and Material UI best practices. Include all necessary imports.
|
|
|
|
Return ONLY the code without any markdown formatting or explanations.`
|
|
|
|
const result = await ProtectedLLMService.safeLLMCall(
|
|
prompt,
|
|
{ jsonMode: false, priority: 'high', category: 'generate-code' }
|
|
)
|
|
|
|
return result ? result.trim() : null
|
|
} catch (error) {
|
|
console.error('AI code generation failed:', error)
|
|
return null
|
|
}
|
|
}
|
|
|
|
static async improveCode(code: string, instruction: string): Promise<string | null> {
|
|
try {
|
|
// @ts-expect-error - spark.llmPrompt exists at runtime
|
|
const prompt = window.spark.llmPrompt`You are a code improvement assistant. Improve the following code based on this instruction: ${instruction}
|
|
|
|
Original code:
|
|
${code}
|
|
|
|
Return ONLY the improved code without any markdown formatting or explanations.`
|
|
|
|
const result = await ProtectedLLMService.safeLLMCall(
|
|
prompt,
|
|
{ jsonMode: false, priority: 'high', category: 'improve-code' }
|
|
)
|
|
|
|
return result ? result.trim() : null
|
|
} catch (error) {
|
|
console.error('AI code improvement failed:', error)
|
|
return null
|
|
}
|
|
}
|
|
|
|
static async generateThemeFromDescription(description: string): Promise<Partial<ThemeConfig> | null> {
|
|
try {
|
|
// @ts-expect-error - spark.llmPrompt exists at runtime
|
|
const prompt = window.spark.llmPrompt`You are a UI/UX designer. Generate a Material UI theme configuration based on this description: ${description}
|
|
|
|
Return a valid JSON object with a single property "theme" containing:
|
|
{
|
|
"theme": {
|
|
"primaryColor": "#hex-color",
|
|
"secondaryColor": "#hex-color",
|
|
"errorColor": "#hex-color",
|
|
"warningColor": "#ff9800",
|
|
"successColor": "#hex-color",
|
|
"fontFamily": "font-name, fallback",
|
|
"fontSize": {
|
|
"small": 12,
|
|
"medium": 14,
|
|
"large": 20
|
|
},
|
|
"spacing": 8,
|
|
"borderRadius": 4
|
|
}
|
|
}`
|
|
|
|
const result = await ProtectedLLMService.safeLLMCall(
|
|
prompt,
|
|
{ jsonMode: true, priority: 'low', category: 'generate-theme' }
|
|
)
|
|
|
|
if (result) {
|
|
const parsed = JSON.parse(result)
|
|
return parsed.theme
|
|
}
|
|
return null
|
|
} catch (error) {
|
|
console.error('AI theme generation failed:', error)
|
|
return null
|
|
}
|
|
}
|
|
|
|
static async suggestFieldsForModel(modelName: string, existingFields: string[]): Promise<string[] | null> {
|
|
try {
|
|
const existingFieldsStr = existingFields.join(', ')
|
|
// @ts-expect-error - spark.llmPrompt exists at runtime
|
|
const prompt = window.spark.llmPrompt`You are a database architect. Suggest additional useful fields for a Prisma model named ${modelName}.
|
|
|
|
Existing fields: ${existingFieldsStr}
|
|
|
|
Return a valid JSON object with a single property "fields" containing an array of field name suggestions (strings only):
|
|
{
|
|
"fields": ["fieldName1", "fieldName2", "fieldName3"]
|
|
}
|
|
|
|
Suggest 3-5 common fields that would be useful for this model type. Use camelCase naming.`
|
|
|
|
const result = await ProtectedLLMService.safeLLMCall(
|
|
prompt,
|
|
{ jsonMode: true, priority: 'low', category: 'suggest-fields' }
|
|
)
|
|
|
|
if (result) {
|
|
const parsed = JSON.parse(result)
|
|
return parsed.fields
|
|
}
|
|
return null
|
|
} catch (error) {
|
|
console.error('AI field suggestion failed:', error)
|
|
return null
|
|
}
|
|
}
|
|
|
|
static async explainCode(code: string): Promise<string | null> {
|
|
try {
|
|
// @ts-expect-error - spark.llmPrompt exists at runtime
|
|
const prompt = window.spark.llmPrompt`You are a code teacher. Explain what this code does in simple terms:
|
|
${code}
|
|
|
|
Provide a clear, concise explanation suitable for developers.`
|
|
|
|
const result = await ProtectedLLMService.safeLLMCall(
|
|
prompt,
|
|
{ jsonMode: false, priority: 'low', category: 'explain-code', model: 'gpt-4o-mini' }
|
|
)
|
|
|
|
return result ? result.trim() : null
|
|
} catch (error) {
|
|
console.error('AI code explanation failed:', error)
|
|
return null
|
|
}
|
|
}
|
|
|
|
static async generateCompleteApp(description: string): Promise<{ files: ProjectFile[], models: PrismaModel[], theme: Partial<ThemeConfig> } | null> {
|
|
try {
|
|
// @ts-expect-error - spark.llmPrompt exists at runtime
|
|
const prompt = window.spark.llmPrompt`You are a full-stack architect. Generate a complete Next.js application structure based on this description: ${description}
|
|
|
|
Return a valid JSON object with properties "files", "models", and "theme":
|
|
{
|
|
"files": [
|
|
{
|
|
"id": "unique-id",
|
|
"name": "page.tsx",
|
|
"path": "/src/app/page.tsx",
|
|
"content": "full code content here",
|
|
"language": "typescript"
|
|
}
|
|
],
|
|
"models": [
|
|
{
|
|
"id": "unique-id",
|
|
"name": "User",
|
|
"fields": [
|
|
{
|
|
"id": "field-id",
|
|
"name": "id",
|
|
"type": "String",
|
|
"isRequired": true,
|
|
"isUnique": true,
|
|
"isArray": false,
|
|
"defaultValue": "uuid()"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"theme": {
|
|
"primaryColor": "#1976d2",
|
|
"secondaryColor": "#dc004e",
|
|
"errorColor": "#f44336",
|
|
"warningColor": "#ff9800",
|
|
"successColor": "#4caf50",
|
|
"fontFamily": "Roboto, Arial, sans-serif",
|
|
"fontSize": { "small": 12, "medium": 14, "large": 20 },
|
|
"spacing": 8,
|
|
"borderRadius": 4
|
|
}
|
|
}
|
|
|
|
Create 2-4 essential files for the app structure. Include appropriate Prisma models. Design a cohesive theme.`
|
|
|
|
const result = await ProtectedLLMService.safeLLMCall(
|
|
prompt,
|
|
{ jsonMode: true, priority: 'high', category: 'generate-app' }
|
|
)
|
|
|
|
if (result) {
|
|
return JSON.parse(result)
|
|
}
|
|
return null
|
|
} catch (error) {
|
|
console.error('AI app generation failed:', error)
|
|
return null
|
|
}
|
|
}
|
|
}
|