Skip to content

Set up Amp orbs for working with this repository - #66

Merged
lexler merged 2 commits into
mainfrom
orb-setup
Oct 30, 2026
Merged

lexler merged 2 commits into
mainfrom
orb-setup

Conversation

@lexler

@lexler lexler commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Amp orbs are cloud machines where a coding agent can work on a repository. This adds .agents/setup, the script Amp runs to prepare an orb, so an agent there can run the site and the tests straight away. It installs Node 22, the version CI uses, plus the project's dependencies and test browsers. It also adds .amp/services.yaml, which tells an orb how to run the site.

The script only runs in orbs, so the website, CI and local development don't change. The .gitignore change covers files Amp generates in orbs.

The unit and browser tests pass in an orb with this setup.

Fresh orbs ship Node 26, under which Playwright 1.56's zip extractor
never settles, so `playwright install` hangs after the first file.
Setup installs Node 22 (the version CI uses) on the repository's PATH,
then npm ci, Playwright Chromium and WebKit with system packages,
habit-hooks with its plugins, and pytest.

Amp-Thread-ID: https://ampcode.com/threads/T-01a18ded-a697-70d0-8d84-d3b629511658
Co-authored-by: Lada Kesseler <archie.kesseler@gmail.com>
@lexler lexler changed the title Prepare orbs with Node 22, dependencies and Playwright browsers Start Amp orbs ready to work by adding a setup script that pins Node 22 Oct 30, 2026
@lexler lexler changed the title Start Amp orbs ready to work by adding a setup script that pins Node 22 Set up Amp orbs for working with this repository Oct 30, 2026
Builds the Cloudflare site and serves it with wrangler pages dev on
the port Amp assigns, so the Portal tab opens the site at /.

Amp-Thread-ID: https://ampcode.com/threads/T-01a18ded-a697-70d0-8d84-d3b629511658
Co-authored-by: Lada Kesseler <archie.kesseler@gmail.com>
@lexler
lexler merged commit f89cc6f into main Oct 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants