From 2fc3724083ad1a0b055c2c151de58c57644978f5 Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Wed, 13 Aug 2025 12:12:24 +0200 Subject: [PATCH] feat: Configure opencode permissions and add Nix dev shell target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode --- Makefile | 6 +++++- opencode.json | 15 ++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index c784490..c7c0f89 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -include .env export -.PHONY: help deploy-cloud build-usb flash-usb local-vm-run clean status destroy-cloud +.PHONY: help deploy-cloud build-usb flash-usb local-vm-run clean status destroy-cloud opencode DOMAIN := $(or $(WORKSHOP_DOMAIN),codecrispi.es) USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX) @@ -98,3 +98,7 @@ local-vm-run: clean: rm -rf result .direnv terraform/.terraform terraform/terraform.tfstate* @echo "Cleaned up build artifacts" + +opencode: + @echo "Starting opencode in Nix dev shell..." + nix develop --command opencode diff --git a/opencode.json b/opencode.json index 3a2b584..427f7e3 100644 --- a/opencode.json +++ b/opencode.json @@ -1,11 +1,8 @@ { - "build": "make build-usb", - "lint": "markdownlint . || true && jsonlint . || true && nixpkgs-fmt . || true", - "test": "make status-cloud" -, - "ask_before_executing_commands": true, - "ask_before_git_commands": true, - "ask_before_reading_file": "^(?!\./).*" -, - "includeCoAuthoredBy": false + "$schema": "https://opencode.ai/config.json", + "includeCoAuthoredBy": false, + "permission": { + "bash": "ask", + "edit": "ask" + } } \ No newline at end of file