mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #19] [MERGED] feat: expose snapshot rootfs image references #121
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/19
Author: @huajq
Created: 7/27/2026
Status: ✅ Merged
Merged: 7/29/2026
Merged by: @yingdi-shan
Base:
main← Head:feat/snapshot-image-ref📝 Commits (1)
a749482feat: expose snapshot rootfs image references📊 Changes
17 files changed (+447 additions, -86 deletions)
View changed files
📝
config/default.toml(+11 -6)📝
config/oss_default.toml(+12 -6)📝
crates/aenv/src/client/snapshots.rs(+28 -1)📝
crates/aenv/src/commands/snapshot.rs(+9 -0)📝
docs/src/concepts/snapshots.md(+32 -0)📝
docs/src/configuration/reference.md(+8 -0)📝
docs/src/getting-started/aenv-cli.md(+4 -0)📝
src/api/generated/src/models.rs(+16 -0)📝
src/api/impls/snapshots.rs(+39 -0)📝
src/api/openapi.yml(+6 -0)📝
src/snapshot/mod.rs(+1 -0)📝
src/snapshot/repository/backends/common/acr/client.rs(+125 -24)📝
src/snapshot/repository/backends/common/acr/manifest.rs(+32 -0)📝
src/snapshot/repository/backends/common/acr/publisher.rs(+37 -41)📝
src/snapshot/repository/backends/common/acr/source_image.rs(+25 -6)📝
src/snapshot/types/mod.rs(+1 -1)📝
src/snapshot/types/snapshot.rs(+61 -1)📄 Description
Summary
Expose the existing source-registry snapshot rootfs publication as an optional
imageRefin snapshot API and CLI responses.Image publication remains part of snapshot creation and still requires the OSS snapshot backend with
[snapshot.image_publish].enabled = true. This PR does not add a separate export endpoint or CLI command.Fixes #16.
Changes
imageRefto snapshot create, GET, and list responses.aenv snapshot create.IMAGE REFcolumn and optional JSON field toaenv snapshot list.Compatibility
imageRefis optional and omitted when no rootfs image was published.Performance
Testing
Validated on the remote Linux test host:
Additional checks:
The tests cover:
imageRefserialization;🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.