chore(env): add Cloud Agent development environment for dyro - #46
Draft
Dandre126 wants to merge 1 commit into
Draft
chore(env): add Cloud Agent development environment for dyro#46Dandre126 wants to merge 1 commit into
Dandre126 wants to merge 1 commit into
Conversation
Adds .cursor/environment.json and an idempotent .cursor/install.sh that bootstraps the uv toolchain, provisions a managed CPython 3.12, runs a locked uv sync (all extras + dev), and installs the TypeScript interop runner deps. Mirrors the toolchain used by .github/workflows/ci.yml. Co-authored-by: Dandre Yang <Dandre126@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 reproducible Cursor Cloud Agent development environment for DyroEngineeringFlow (
dyro). Previously there was no.cursor/environment.json, so agents started with nouvtoolchain.This is a repository-managed environment: once merged to
main, future Cloud Agents automatically pick up.cursor/environment.json(highest-precedence config source) — no dashboard Save required.What's included
.cursor/environment.json— minimal repo-managed environment (name+install)..cursor/install.sh— an idempotent bootstrap that:uvpackage/environment manager (once, into~/.local/bin, already on the login PATH),python -m buildisolation don't depend on the base image shippingpython3.x-venv,uv lock --checkthenuv sync --locked --all-extras --dev(installs the project plusruff/build/twine),examples/typescript-runnerinterop deps vianpm ciwhen Node is present.Mirrors the toolchain in
.github/workflows/ci.yml(uv + locked sync). No dev servers, tests, or migrations run ininstall, so it terminates quickly and stays idempotent.Validation
On the setup VM
uv lock --checkuv sync --locked --all-extras --devuv run ruff check src tests experimentsuv run python -m unittest discover -s tests -t .uv run python -m compileall -q src tests experimentsuv run python -m build+ clean-venv wheel smokedyro dispatch doctor/bundle-stranger verify OKdyro --versiondyro 0.7.7npm ci && npm test)dyro consolelocal dashboardPrebuilt environment build + fresh Cloud Agent
A draft build was created from this branch on a READY VM snapshot and SUCCEEDED; a fresh Cloud Agent booted from that exact build id passed 12/12 read-only checks (
uv 0.12.5,dyro 0.7.7, managed CPython 3.12.14,uv sync --lockedmade no changes, ruff/compile clean,dyro dispatch --dry-run doctorJSON, TS interop test pass).Demo
dyro_console_dashboard_demo.mp4
Activation
Merging this PR activates the environment for future Cloud Agents (repo-managed config takes precedence over dashboard settings).
To show artifacts inline, enable in settings.