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:
6
Makefile
6
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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user