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

Aperta
#483 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, typescript
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
2.1k
Fork
110
Merge medio
23h 52m
PR unite (30g)
138

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Ephemeral-AI-Lab/layerfs

Tutte le issue di Ephemeral-AI-Lab/layerfs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.