feat: Configure opencode permissions and add Nix dev shell target

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
2025-08-13 12:12:24 +02:00
parent 1353cdf909
commit 2fc3724083
2 changed files with 11 additions and 10 deletions

View File

@@ -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

View File

@@ -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"
}
}