Added some protection layers

This commit is contained in:
Umar Adilov 2025-12-03 19:28:48 +05:00
parent 13b5c06780
commit bae8538563
2 changed files with 5 additions and 3 deletions

View File

@ -6,11 +6,12 @@ const uneditableFiles = [
".env.local",
".env.development",
".env.production",
"src/lib/*.ts",
"**/src/lib/**.ts",
"opencode.json",
"**/.opencode/**",
];
export const FileProtectionPlugin: Plugin = async ({ client, $ }) => {
export const FileProtectionPlugin: Plugin = async () => {
return {
"tool.execute.before": async (input, output) => {
if (

View File

@ -24,5 +24,6 @@
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
"include": ["src"],
"exclude": ["src/lib"]
}