summaryrefslogtreecommitdiffhomepage
path: root/opencode.json
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-26 22:12:23 -0400
committerDax Raad <[email protected]>2025-06-26 22:17:08 -0400
commitf8b78f08b497c7f405c2c725def58347f7c104b3 (patch)
treebff0c705e99ec42368e26e660bdb7e472ee6e24a /opencode.json
parenta4f32d602b156deff93aae995e9312ea6f069006 (diff)
downloadopencode-f8b78f08b497c7f405c2c725def58347f7c104b3.tar.gz
opencode-f8b78f08b497c7f405c2c725def58347f7c104b3.zip
add auto formatting and experimental hooks feature
Diffstat (limited to 'opencode.json')
-rw-r--r--opencode.json14
1 files changed, 13 insertions, 1 deletions
diff --git a/opencode.json b/opencode.json
index 720ece5c1..59748f927 100644
--- a/opencode.json
+++ b/opencode.json
@@ -1,3 +1,15 @@
{
- "$schema": "https://opencode.ai/config.json"
+ "$schema": "https://opencode.ai/config.json",
+ "experimental": {
+ "hook": {
+ "file_edited": {
+ ".json": []
+ },
+ "session_completed": [
+ {
+ "command": ["touch", "./node_modules/foo"]
+ }
+ ]
+ }
+ }
}