Repository navigation
chore: add Amp orb setup script - #40
Merged
Merged
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-01a11848-c0e7-7012-96e5-da928487522d Co-authored-by: Alexis Cramatte <alexis.cramatte@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.
Why
Fresh Amp orbs (Debian 12) start without rustup, the pinned Node version, or the native desktop prerequisites, so agents reinstall them in every thread.
.agents/setupruns once per fresh orb, and Amp snapshots the result, so later orbs start ready.How
.agents/setupis non-interactive and idempotent. It:webkit2gtk-driver, …), skipping any already present;rust-toolchain.toml(1.93.1);docs/phase4.md/CI) and git-cliff 2.14.1 (permise.toml), both checked against pinned checksums;PATHonce in~/.bash_profile, so login shells and supervised services see them;npm ciinapps/desktop, thencargo fetchand pre-builds core/CLI (buildandclippy);tauri-driver2.0.6.The desktop crate is not pre-built (that adds ~2m40s).
.gitignorenow ignores.amp/portals/*.Tests
In an Amp orb:
.agents/setup: exit 0, 1m50s.~/.bash_profileblock appears once.env -i … bash -lclogin shell:nodev24.18.0,rustc1.93.1,git-cliff,tauri-driver,WebKitWebDriver,Xvfball resolve;cargo test --locked -p notes-core -p notes-cli --all-featurespasses;npm run typecheckpasses.cargo test --locked -p notes-desktop --no-runbuilds after setup (not part of the script).