JS SDK: a streaming export of a Branch's tree at a Commit, with metadata

Đang mở
#483 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, typescript
Lĩnh vực
api

Hướng nghiên cứu

The issue names no specific files. Start from how the JS SDK currently reads a Branch's tree at a Commit, and from the LayerFS internal storage crates the issue says callers reach into today. Done means a fs.export(ref, path?, { format }) call that streams either a tar archive or structured entries carrying type, mode, mtime, symlink target, hard-link group and xattrs. Agree the entry shape with maintainers before writing code.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

integration new feature

DISCLOSURE: This submission was generated by AI under the approval of the human who owns the github account. If it is unwelcome due to the use of AI or there is any feedback, please comment. Any human comment will receive a human response where applicable. This submission is intended to enhance the project, not frustrate maintainers. Thank you for making your project available open source!

Summary

The SDK has no call that streams a Branch's tree at a Commit together with each entry's metadata. Today, a complete export that keeps metadata needs a mounted Workspace (and so a Sandbox), or code that reads LayerFS's internal storage crates directly.

Proposal

A streaming export in the SDK, for example:

fs.export(ref, path?, { format: "tar" | "entries" })

Each entry would carry its type, mode, modification time, symlink target, hard-link group and extended attributes. tar gives a standard archive; entries gives a stream of structured records for callers that process entries themselves.

What it enables

  • Exporting a tree straight from a Store, without starting a Sandbox or mounting a Workspace.
  • Backups, archives, CI artifacts and hand-off to other tools in a standard format.
  • Keeping SDK users off LayerFS's internal formats, so those formats stay free to change.

Notes

Observed on v1.1.0 (ad78914). Happy to help refine the shape of the call if it fits the project's direction.

Ngôn ngữ chính
Rust
Star
2.1k
Fork
110
Merge trung bình
23 giờ 52 phút
Pull request đã merge (30 ngày)
138

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Ephemeral-AI-Lab/layerfs

Tất cả issue của Ephemeral-AI-Lab/layerfs

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.