mattermost-mobile-upstream/.cursor/scripts/cloud-agent-start.sh
Nick Misasi 46c2da9d4e
Add Cursor Cloud Agent environment for PR babysitting (#10128)
* Add a Linux Cursor Cloud Agent environment for PR babysitting.

This gives cloud agents Node, GitHub CLI, and the same lint/tsc/Jest install path as PR CI, without Android or iOS native tooling.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Document Cloud Agent babysitter smoke checks from live validation.

Add the Ubuntu CI commands this VM can actually run, note gh/i18n footguns, and ship an optional smoke script for the next environment round.

Co-authored-by: nick.misasi <nick.misasi@mattermost.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 12:03:39 -04:00

18 lines
498 B
Bash
Executable File

#!/usr/bin/env bash
# Cursor Cloud Agent start script.
# This environment does not run Docker or app servers — only materialize
# cloud-only instructions for the agent.
set -Eeuo pipefail
log() { printf '[cloud-agent-start] %s\n' "$*" >&2; }
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
if [ -f .cursor/cursor.md ]; then
cp .cursor/cursor.md .cursor/AGENTS.md
log "Materialized Cloud Agent instructions at .cursor/AGENTS.md"
fi
log "Start complete (no long-lived processes)"