From 595caf8ccba33e0b0e715f0b805fa91b0b410250 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 5 Sep 2026 14:36:15 +0000 Subject: [PATCH] Add Cloud Agent dev environment for ComfyUI docs Co-authored-by: Daxiong (Lin) --- .cursor/environment.json | 11 +++++++++++ .cursor/install.sh | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .cursor/environment.json create mode 100755 .cursor/install.sh diff --git a/.cursor/environment.json b/.cursor/environment.json new file mode 100644 index 000000000..fbb1bb4ae --- /dev/null +++ b/.cursor/environment.json @@ -0,0 +1,11 @@ +{ + "name": "ComfyUI Docs", + "install": "bash .cursor/install.sh", + "terminals": [ + { + "name": "mint-dev", + "command": "npm run dev" + } + ], + "ports": [{ "name": "docs dev server", "port": 3000 }] +} diff --git a/.cursor/install.sh b/.cursor/install.sh new file mode 100755 index 000000000..d5a92a65d --- /dev/null +++ b/.cursor/install.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Cloud Agent install for the ComfyUI docs repo. +# Idempotent: safe to run repeatedly against cached or partial state. + +cd "$(dirname "$0")/.." + +# Node dependencies for the Mintlify docs site (mint, sharp). +npm ci + +# Bun toolchain for the i18n / CMS / analytics pipelines (translate, cms:*, analytics:*). +# Skip the download when bun is already available. +if ! command -v bun >/dev/null 2>&1; then + export BUN_INSTALL="$HOME/.bun" + curl -fsSL https://bun.sh/install | bash + # Expose bun on the default PATH for login and non-login shells. + sudo ln -sf "$HOME/.bun/bin/bun" /usr/local/bin/bun +fi + +bun --version