add AI agents files
This commit is contained in:
parent
5a903af22a
commit
9b9ae5c7f5
79 changed files with 2399 additions and 23 deletions
9
.opencode/plugins/env-protection.js
Normal file
9
.opencode/plugins/env-protection.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export const EnvProtection = async ({ project, client, $, directory, worktree }) => {
|
||||
return {
|
||||
'tool.execute.before': async (input, output) => {
|
||||
if (input.tool === 'read' && output.args.filePath.includes('.env')) {
|
||||
throw new Error('Do not read .env files');
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue