Read JSON (#1081)
Fixes #1037 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Enable JSON file support in codebase scanning so common configs and data (e.g., package.json, vercel.json, translations) are included. Adds .json to the allowed extensions and removes special-casing for package.json/vercel.json. <!-- End of auto-generated description by cubic. -->
This commit is contained in:
@@ -1 +1 @@
|
|||||||
["should not be included b/c it's json"]
|
["even json is included"]
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ You need to first add Supabase to your app and then we can add auth.
|
|||||||
===
|
===
|
||||||
role: user
|
role: user
|
||||||
message: This is my codebase. <dyad-file path="manual/baz.json">
|
message: This is my codebase. <dyad-file path="manual/baz.json">
|
||||||
// File contents excluded from context
|
["even json is included"]
|
||||||
|
|
||||||
</dyad-file>
|
</dyad-file>
|
||||||
|
|
||||||
<dyad-file path="manual/file.ts">
|
<dyad-file path="manual/file.ts">
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ You need to first add Supabase to your app and then we can add auth.
|
|||||||
===
|
===
|
||||||
role: user
|
role: user
|
||||||
message: This is my codebase. <dyad-file path="manual/baz.json">
|
message: This is my codebase. <dyad-file path="manual/baz.json">
|
||||||
// File contents excluded from context
|
["even json is included"]
|
||||||
|
|
||||||
</dyad-file>
|
</dyad-file>
|
||||||
|
|
||||||
<dyad-file path="manual/file.ts">
|
<dyad-file path="manual/file.ts">
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "manual/baz.json",
|
"path": "manual/baz.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "[\"even json is included\"]\n",
|
||||||
"force": true
|
"force": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "manual/baz.json",
|
"path": "manual/baz.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "[\"even json is included\"]\n",
|
||||||
"force": true
|
"force": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "manual/baz.json",
|
"path": "manual/baz.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "[\"even json is included\"]\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -388,17 +388,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -383,17 +383,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -384,17 +384,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -388,17 +388,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -388,17 +388,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -388,17 +388,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -396,17 +396,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -404,17 +404,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "components.json",
|
"path": "components.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"$schema\": \"https://ui.shadcn.com/schema.json\",\n \"style\": \"default\",\n \"rsc\": false,\n \"tsx\": true,\n \"tailwind\": {\n \"config\": \"tailwind.config.ts\",\n \"css\": \"src/index.css\",\n \"baseColor\": \"slate\",\n \"cssVariables\": true,\n \"prefix\": \"\"\n },\n \"aliases\": {\n \"components\": \"@/components\",\n \"utils\": \"@/lib/utils\",\n \"ui\": \"@/components/ui\",\n \"lib\": \"@/lib\",\n \"hooks\": \"@/hooks\"\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -412,17 +412,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.app.json",
|
"path": "tsconfig.app.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"useDefineForClassFields\": true,\n \"lib\": [\"ES2020\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n \"jsx\": \"react-jsx\",\n\n /* Linting */\n \"strict\": false,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noImplicitAny\": false,\n \"noFallthroughCasesInSwitch\": false,\n\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n }\n },\n \"include\": [\"src\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.json",
|
"path": "tsconfig.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ],\n \"compilerOptions\": {\n \"baseUrl\": \".\",\n \"paths\": {\n \"@/*\": [\"./src/*\"]\n },\n \"noImplicitAny\": false,\n \"noUnusedParameters\": false,\n \"skipLibCheck\": true,\n \"allowJs\": true,\n \"noUnusedLocals\": false,\n \"strictNullChecks\": false\n }\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "tsconfig.node.json",
|
"path": "tsconfig.node.json",
|
||||||
"content": "// File contents excluded from context",
|
"content": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\"],\n \"module\": \"ESNext\",\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"moduleResolution\": \"bundler\",\n \"allowImportingTsExtensions\": true,\n \"isolatedModules\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"strict\": true,\n \"noUnusedLocals\": false,\n \"noUnusedParameters\": false,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
||||||
"force": false
|
"force": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ const ALLOWED_EXTENSIONS = [
|
|||||||
".scss",
|
".scss",
|
||||||
".sass",
|
".sass",
|
||||||
".less",
|
".less",
|
||||||
|
// Oftentimes used as config (e.g. package.json, vercel.json) or data files (e.g. translations)
|
||||||
|
".json",
|
||||||
// GitHub Actions
|
// GitHub Actions
|
||||||
".yml",
|
".yml",
|
||||||
".yaml",
|
".yaml",
|
||||||
@@ -58,7 +60,7 @@ const EXCLUDED_DIRS = ["node_modules", ".git", "dist", "build", ".next"];
|
|||||||
const EXCLUDED_FILES = ["pnpm-lock.yaml", "package-lock.json"];
|
const EXCLUDED_FILES = ["pnpm-lock.yaml", "package-lock.json"];
|
||||||
|
|
||||||
// Files to always include, regardless of extension
|
// Files to always include, regardless of extension
|
||||||
const ALWAYS_INCLUDE_FILES = ["package.json", "vercel.json", ".gitignore"];
|
const ALWAYS_INCLUDE_FILES = [".gitignore"];
|
||||||
|
|
||||||
// File patterns to always omit (contents will be replaced with a placeholder)
|
// File patterns to always omit (contents will be replaced with a placeholder)
|
||||||
// We don't want to send environment variables to the LLM because they
|
// We don't want to send environment variables to the LLM because they
|
||||||
@@ -69,11 +71,23 @@ const ALWAYS_OMITTED_FILES = [".env", ".env.local"];
|
|||||||
//
|
//
|
||||||
// Why are we not using path.join here?
|
// Why are we not using path.join here?
|
||||||
// Because we have already normalized the path to use /.
|
// Because we have already normalized the path to use /.
|
||||||
|
//
|
||||||
|
// Note: these files are only omitted when NOT using smart context.
|
||||||
|
//
|
||||||
|
// Why do we omit these files when not using smart context?
|
||||||
|
//
|
||||||
|
// Because these files are typically low-signal and adding them
|
||||||
|
// to the context can cause users to much more quickly hit their
|
||||||
|
// free rate limits.
|
||||||
const OMITTED_FILES = [
|
const OMITTED_FILES = [
|
||||||
...ALWAYS_OMITTED_FILES,
|
...ALWAYS_OMITTED_FILES,
|
||||||
"src/components/ui",
|
"src/components/ui",
|
||||||
"eslint.config",
|
"eslint.config",
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
|
"tsconfig.app.json",
|
||||||
|
"tsconfig.node.json",
|
||||||
|
"tsconfig.base.json",
|
||||||
|
"components.json",
|
||||||
];
|
];
|
||||||
|
|
||||||
// Maximum file size to include (in bytes) - 1MB
|
// Maximum file size to include (in bytes) - 1MB
|
||||||
|
|||||||
Reference in New Issue
Block a user