From 3a19f750a11cb83266e892fdd85e588fcfa745ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=A4=A7=E7=8C=AB?= <16399091+binaricat@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:26:24 +0800 Subject: [PATCH] chore: add cloud environment setup config (#4303) --- .agents/environment.json | 3 +++ .gitignore | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .agents/environment.json diff --git a/.agents/environment.json b/.agents/environment.json new file mode 100644 index 000000000..f7d735bb6 --- /dev/null +++ b/.agents/environment.json @@ -0,0 +1,3 @@ +{ + "install": "if command -v apt-get >/dev/null 2>&1 && { ! command -v fish >/dev/null 2>&1 || ! command -v xvfb-run >/dev/null 2>&1; }; then sudo env DEBIAN_FRONTEND=noninteractive apt-get update -qq && sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq fish xvfb; fi && npm ci && npm run build:plugin-runtime-deps" +} diff --git a/.gitignore b/.gitignore index 56bb92cf4..09d013c17 100755 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,9 @@ # --- Layer 2: allowlist root directories --- # Un-ignore the directory entry, then everything under it. Git does not # traverse ignored directories, so both steps are required. +!.agents/ +/.agents/* +!/.agents/environment.json !.github/ !.github/** !application/