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
|
-include .env
|
||||||
export
|
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)
|
DOMAIN := $(or $(WORKSHOP_DOMAIN),codecrispi.es)
|
||||||
USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX)
|
USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX)
|
||||||
@@ -98,3 +98,7 @@ local-vm-run:
|
|||||||
clean:
|
clean:
|
||||||
rm -rf result .direnv terraform/.terraform terraform/terraform.tfstate*
|
rm -rf result .direnv terraform/.terraform terraform/terraform.tfstate*
|
||||||
@echo "Cleaned up build artifacts"
|
@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",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
"lint": "markdownlint . || true && jsonlint . || true && nixpkgs-fmt . || true",
|
"includeCoAuthoredBy": false,
|
||||||
"test": "make status-cloud"
|
"permission": {
|
||||||
,
|
"bash": "ask",
|
||||||
"ask_before_executing_commands": true,
|
"edit": "ask"
|
||||||
"ask_before_git_commands": true,
|
}
|
||||||
"ask_before_reading_file": "^(?!\./).*"
|
|
||||||
,
|
|
||||||
"includeCoAuthoredBy": false
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user