Repository navigation
Add amika snapshot create/list/delete commands - #282
Merged
Merged
Conversation
Add client support for the sandbox-snapshot endpoints: ListSandboxSnapshots (with optional repository_id / source_sandbox_id filters), CreateSandboxSnapshot, GetSandboxScrubPreview, and DeleteSandboxSnapshot. The create request and the get/delete/preview calls forward the source-sandbox or snapshot reference as a name-or-id `ref` (sandbox_ref field / by=ref query), letting the server resolve it id-first. Also add ListRepositories, needed to resolve a --repo filter to an id. Covered by httptest-based path and parse tests.
Add the `amika snapshot` command group (create, list with ls alias, delete with rm/remove aliases). create is interactive by default: it prompts for the capture mode and, for scrub_and_delete, previews the injected secrets to be removed and confirms before the destructive capture; --no-interactive requires --mode and --name. list filters by --sandbox and --repo, each accepting a name or id resolved client-side to the id-based API filters. delete forwards each name-or-id reference to the server, which resolves it. Snapshots are remote-only, so every subcommand talks to the API directly.
Cover repoBasename, snapshotSource/deref, the name-or-id resolution for --sandbox (resolveSandboxID) and --repo (resolveRepositoryID, including ambiguous-basename and not-found cases) against an httptest server, and the --no-interactive validation that requires --sandbox, --mode, and --name.
jdc123
added a commit
that referenced
this pull request
Jul 17, 2026
Release `amika@v0.12.0` by bumping `DEFAULT_VERSION` in `install.sh` from `0.11.2` to `0.12.0`. ## Changes since amika@v0.11.2 **Sandbox & CLI:** - Add top-level `amika scp` command for SSH file copy (#278) - Add `amika snapshot create/list/delete` commands (#282) - Add `--snapshot` flag to `amika sandbox create` (#285) - Support remote mode in `service list` (#283) - Add (then hide) the `--github-auth-mode` flag on `sandbox create` (#270, #273) - Show command aliases in `amika` CLI help output (#263) **Sandbox images & VM snapshots:** - Install amika and amikalog CLIs in sandbox images (#280) - Auto-install amikalog hooks in sandbox images (#281) - Bump L/XL sandbox disk to 24 GB / 32 GB (#279) - Match VM snapshot sizes to container sizes; add XL (#272) - Version linux-vm snapshots by git short hash (#276) - Don't publish the xs VM snapshot for coder-dind (#275) - Publish Daytona linux-vm snapshots and restore setuid on VM boot (#271) - Drop user@host line from sandbox shell prompt (#269) - Clear stale dockerd pidfile before starting daemon (#268) **TypeScript SDK:** - Release TypeScript SDK v0.10.0 with sandbox snapshot support (#287, #284) - Add `*.functional.test.ts` convention and prod guard (#286) - Document AgentCredentialRef resolution rules (#267) **Docs & internal:** - Keep README local-first and add Amika Cloud section (#260) - Fix stale API route paths in CLI client comments (#264)
dbmikus
pushed a commit
that referenced
this pull request
Oct 23, 2026
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 5.0.0 to 6.1.0. ## Release notes Sourced from pnpm/action-setup's releases. ### v6.1.0 ### What's Changed - feat: support pnpm v12 by `@zkochan` in pnpm/action-setup#288 Full Changelog: pnpm/action-setup@v6.0.10...v6.1.0 ### v6.0.10 ### What's Changed - docs(README): point users to the successor pnpm/setup action by `@BlackHole1` in pnpm/action-setup#282 - refactor: introduce restore keys for cache by `@SukkaW` in pnpm/action-setup#280 - ci: use pnpm 11 for `pr-check` by `@jamietanna` in pnpm/action-setup#284 - fix: update pnpm to v11.19.0 by `@jamietanna` in pnpm/action-setup#283 - docs: update README to include devEngines.packageManager by `@nemchik` in pnpm/action-setup#273 ### New Contributors - `@jamietanna` made their first contribution in pnpm/action-setup#284 - `@nemchik` made their first contribution in pnpm/action-setup#273 Full Changelog: pnpm/action-setup@v6...v6.0.10 ### v6.0.9 ### What's Changed - fix: update pnpm to v11.7.0 by `@zkochan` in pnpm/action-setup#267 Full Changelog: pnpm/action-setup@v6...v6.0.9 ### v6.0.8 ### What's Changed - docs(README): fix `cache_dependency_path` type by `@haines` in pnpm/action-setup#257 - fix: drop patchPnpmEnv so standalone+self-update works on Windows by `@zkochan` in pnpm/action-setup#258 - fix: update pnpm to 11.1.1 by `@mungodewar` in pnpm/action-setup#248 ### New Contributors - `@mungodewar` made their first contribution in pnpm/action-setup#248 Full Changelog: pnpm/action-setup@v6.0.7...v6.0.8 ### v6.0.7 ### What's Changed - fix: honor devEngines.packageManager.onFail=error (#252) by `@zkochan` in pnpm/action-setup#254 - fix: restore inputs from state in post by `@haines` in pnpm/action-setup#255 - fix: self-update bootstrap to packageManager-pinned version (#233) by `@zkochan` in pnpm/action-setup#256 ### New Contributors - `@haines` made their first contribution in pnpm/action-setup#255 Full Changelog: pnpm/action-setup@v6.0.6...v6.0.7 ... (truncated) ## Commits - `ea17c68` feat: support pnpm v12 (#288) - `0977fd9` docs: Update README to include devEngines.packageManager (#273) - `48261ac` fix: update pnpm to v11.19.0 (#283) - `75677f7` ci: use pnpm 11 for `pr-check` (#284) - `769ae71` refactor: introduce restore keys for cache (#280) - `6fed91f` docs(README): point users to the successor pnpm/setup action (#282) - `0ebf471` fix: update pnpm to v11.7.0 (#267) - `0e279bb` fix: update pnpm to 11.1.1 (#248) - `3e83581` fix: drop patchPnpmEnv so standalone+self-update works on Windows (#258) - `551b42e` docs(README): fix `cache_dependency_path` type (#257) - Additional commits viewable in compare view
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
Adds an
amika snapshotcommand group for snapshots captured from running remote sandboxes, backed by the new sandbox-snapshot API.Behavior
scrub_and_deletepreviews the injected secrets that will be removed (viaGET /sandbox-snapshots/scrub-preview) and confirms before the destructive capture.--no-interactiveskips prompts and requires--modeand--name. Capture is async (202); the command points the user atsnapshot list.--sandboxand--repo, each accepting a name or id. The CLI resolves these to ids client-side (sandbox via the sandboxes list, repo via the repositories list, matching id then repo-name basename) and passes the id-based API filters.name-or-idreference straight to the server (by=ref), which resolves it id-first.Design note
The CLI never sniffs name-vs-id itself. It forwards the raw user reference as a
ref(the create request'ssandbox_reffield,by=refon get/delete/preview), and the API resolves it. This matches the API-side convention (gofixpoint/amika-mono#682).API client
Adds
ListSandboxSnapshots,CreateSandboxSnapshot,GetSandboxScrubPreview,DeleteSandboxSnapshot, andListRepositories, with httptest-based path/parse tests.Testing
go build ./...,go vet ./...,go test ./...all green.repoBasename, source/deref formatting,--sandbox/--reporesolution (id, name/basename, ambiguous, not-found), and--no-interactivevalidation.