chore: add Amp orb setup and resume scripts - #32
Merged
Merged
Conversation
Install a stable Rust toolchain with rustfmt/clippy, fetch the locked crate graph, and warm a full workspace build so later orbs start ready to test. Resume only checks that cargo/rustc are on PATH. Amp-Thread-ID: https://ampcode.com/threads/T-01a0a633-11d2-7529-ae4c-9572c04b5518 Co-authored-by: Max Carter <undivisible@vk.com>
|
Capy couldn't review this pull request because Max's workspace is out of credits, add credits or enable auto-reload to resume automatic reviews. |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_0f254812-f5b2-447c-9247-464a4c051d7d) |
undivisible
added a commit
that referenced
this pull request
Sep 18, 2026
Install a stable Rust toolchain with rustfmt/clippy, fetch the locked crate graph, and warm a full workspace build so later orbs start ready to test. Resume only checks that cargo/rustc are on PATH. Amp-Thread-ID: https://ampcode.com/threads/T-01a0a633-11d2-7529-ae4c-9572c04b5518
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.
Adds idempotent
.agents/setup/.agents/resumefor Amp orbs: stable Rust with rustfmt/clippy,cargo fetch --locked, and a warmcargo build --locked --all-targets. Resume only verifies the toolchain..gitignorenow ignores.amp/portals/*.Verified locally: first setup after deps ~8s, warm setup ~1.4s, resume ~0.02s, login shell sees
rustc/cargo.Note
Low Risk
Dev-environment and ignore-list only; no application runtime, auth, or data-path changes.
Overview
Adds Amp orb bootstrap scripts under
.agents/so agent environments can provision and re-validate a Rust workspace without repeating full setup..agents/setupis an idempotent first-run path: installs missing Debian build deps (build-essential,libssl-dev, etc.), installs rustup if needed, pins stable with rustfmt and clippy, runscargo fetch --lockedandcargo build --locked --all-targets, and appends a one-time~/.bash_profilesnippet to source~/.cargo/env..agents/resumeis the fast path on session restore: exports the same Cargo/Rust paths, sourcescargo/envwhen present, and fails fast with a pointer to.agents/setupifrustc/cargoare missing (otherwise only sanity-checks versions)..gitignorenow ignores.amp/portals/*so local Amp portal artifacts are not committed.Reviewed by Cursor Bugbot for commit d1eb5df. Configure here.