chore: add Cloud Agent development environment config - #6
Merged
Conversation
Co-authored-by: 867762462f <867762462f@gmail.com>
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.
What this changes
Adds a repository-managed Cloud Agent development environment at
.cursor/environment.json.renameis a zero-runtime-dependency, stdlib-only Python 3.11+ CLI. The only setup needed for development is installing the editable package with its dev extras (pytest+ruff). The config therefore uses Cursor's default base image (which already ships Python 3.12 andpip) and a single idempotentinstallstep:{ "name": "rename", "install": "pip install -e \".[dev]\"" }No
startorterminalsare needed —renameis a CLI with no long-running dev server.Validation
All checks were run on the Cloud Agent VM against this branch:
pip install -e ".[dev]"— succeeds, and is idempotent (ran twice cleanly)ruff check src tests— all checks passed (matches CI)pytest -q— 78 passed (matches CI)rename list/rename once/rename search; the tool discovered the session, previewed the stale-vs-new title, applied the rename (append-onlyai-titleline), and re-running was a correct no-op.The console script
rename(andpytest/ruff) install to~/.local/bin, which login shells already put onPATHvia~/.profile, so they are directly runnable in agent terminals.Checklist
pytestpasses