Add Cloud Agent development environment setup - #1
Open
dunknowcoding wants to merge 1 commit into
Open
Conversation
Co-authored-by: DunnoCoding_Plus <dunknowcoding@users.noreply.github.com>
dunknowcoding
marked this pull request as ready for review
August 26, 2026 17:23
Copilot stopped reviewing on behalf of
dunknowcoding due to an error
August 26, 2026 17:24
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a Cursor “Cloud Agent” bootstrap environment for the RoboServo Arduino library, installing a pinned Arduino CLI + AVR core and validating the toolchain by compiling key examples.
Changes:
- Add an idempotent installer script to fetch/verify Arduino CLI, install
arduino:avr@1.8.7, and compile examples. - Add Cursor environment definition to run the installer during environment setup.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .cursor/install.sh | Bootstraps Arduino CLI + AVR core and verifies by compiling examples. |
| .cursor/environment.json | Defines the Cursor environment and runs the install script. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| mkdir -p "$BIN_DIR" | ||
| export PATH="$BIN_DIR:$PATH" | ||
|
|
||
| # Ensure ~/.local/bin is on PATH for future non-login shells. |
Comment on lines
+26
to
+31
| local archive="/tmp/arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz" | ||
| curl --fail --location --retry 6 --retry-all-errors --retry-delay 10 \ | ||
| --output "$archive" \ | ||
| "https://github.com/arduino/arduino-cli/releases/download/v${ARDUINO_CLI_VERSION}/arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz" | ||
| echo "${ARDUINO_CLI_SHA256} ${archive}" | sha256sum --check --strict | ||
| tar -xzf "$archive" -C "$BIN_DIR" arduino-cli |
| @@ -0,0 +1,5 @@ | |||
| { | |||
| "name": "RoboServo", | |||
| "user": "ubuntu", | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Cloud Agent development environment for the RoboServo Arduino library. The environment provisions the same toolchain CI uses so agents can compile the example sketches out of the box.
RoboServo is an Arduino library (not a runnable service), so "running the application" means compiling the example sketches against a real embedded toolchain. This mirrors
.github/workflows/ci.yml.Changes
.cursor/environment.json— defines the environment (user: ubuntu,install: bash .cursor/install.sh)..cursor/install.sh— idempotent bootstrap that:v1.5.1(with SHA-256 verification, matching CI),arduino:avr@1.8.7core,HBridgeDriver,StepDirDriver,FourWireStepper,Pca9685Servos) forarduino:avr:unoas a smoke test.Verification
All four CI examples compile successfully. Additional AVR-compatible examples (
BasicServo,MultipleServos,Servo360,ServoAndMotor,ADCServoControl,PlatformSmoke) also compile. Examples that fail on AVR (e.g.HighSpeedServo) do so because they use platform-specific APIs likeSerial.printffor ESP32/ESP8266 targets — expected, not an environment problem.