Added some protection layers
This commit is contained in:
parent
13b5c06780
commit
bae8538563
|
|
@ -6,11 +6,12 @@ const uneditableFiles = [
|
||||||
".env.local",
|
".env.local",
|
||||||
".env.development",
|
".env.development",
|
||||||
".env.production",
|
".env.production",
|
||||||
"src/lib/*.ts",
|
"**/src/lib/**.ts",
|
||||||
"opencode.json",
|
"opencode.json",
|
||||||
|
"**/.opencode/**",
|
||||||
];
|
];
|
||||||
|
|
||||||
export const FileProtectionPlugin: Plugin = async ({ client, $ }) => {
|
export const FileProtectionPlugin: Plugin = async () => {
|
||||||
return {
|
return {
|
||||||
"tool.execute.before": async (input, output) => {
|
"tool.execute.before": async (input, output) => {
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,6 @@
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noUncheckedSideEffectImports": true
|
"noUncheckedSideEffectImports": true
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"],
|
||||||
|
"exclude": ["src/lib"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user