Skip to content

feat(api): browse a snapshot's directories and files - #145

Open
PiquelChips wants to merge 1 commit into
feat/permissions-readsfrom
feat/permissions-browse
Open

PiquelChips wants to merge 1 commit into
feat/permissions-readsfrom
feat/permissions-browse

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Reading one file of a server's repository means cloning it, or walking a whole snapshot. A review bot, a web page or an agent often only needs one directory or one file, of a target's tip or of a revision.

GET /tree lists a directory and GET /file reads a file, of the snapshot at names: a target's tip, such as main, or a record's, revision:<id> or acceptance:<id>. Neither fetches any history.

Both read like fetches do: only records the caller sees, withheld entries keep their place in a listing, marked withheld, and reading one, or listing a directory the caller reads nothing under, is forbidden.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1e7cd5c2-9267-4fdf-800b-94be927fd862
Commits

Reviewing files that changed from the base of the PR and between 8e6ddb4 and c67ce60.

Files selected for processing: 11

  • README.md
  • apps/origin-src/src/http.rs
  • apps/origin-src/src/permissions.rs
  • apps/origin-src/src/remote.rs
  • apps/origin-src/src/service.rs
  • apps/origin-src/tests/http.rs
  • crates/origin-client/src/lib.rs
  • crates/origin-shared/src/api.rs
  • crates/origin-shared/src/object/tree.rs
  • crates/origin-shared/src/text.rs
  • docs/openapi.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/permissions-browse branch 3 times, most recently from f9dfc76 to 5e262ed Compare November 22, 2026 18:54
Reading a file of a server's repository meant cloning it, or walking a
whole snapshot. A review bot, a web page or an agent often only needs
one directory or one file of a target's tip or of a revision.

`GET tree` lists a directory and `GET file` reads a file, of the
snapshot `at` names: a target's tip, such as `main`, or a record's,
`revision:<id>` or `acceptance:<id>`, without fetching any history.
Both go through the same reads as fetches: only records the caller sees,
entries whose content is withheld from them keep their place in a
listing, marked `withheld`, and reading one, or listing a directory they
read nothing under, is forbidden.
@PiquelChips
PiquelChips force-pushed the feat/permissions-browse branch from 5e262ed to c67ce60 Compare November 22, 2026 19:20
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.

1 participant