Skip to content

feat(server): add origin serve and origin repo create - #123

Open
PiquelChips wants to merge 1 commit into
feat/server-http-landingfrom
feat/server-serve
Open

PiquelChips wants to merge 1 commit into
feat/server-http-landingfrom
feat/server-serve

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

The HTTP API had no server to run it: nothing hosted repositories without a working copy, or ordered their targets.

origin serve hosts several repositories as one node with its own key, read from origin-server.toml, and logs requests to stderr. origin repo create makes a repository for it, naming that node the authority of policy and main. The server compacts each repository once enough small objects are loose. The node key file is now KeyFile, shared by the user's node.key and a server's.

An end-to-end test creates a repository with the real binary, serves it, and reads its targets through the SDK.

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: 40aa5b0d-6394-4eed-9b92-936a93e3399f
Commits

Reviewing files that changed from the base of the PR and between dc90bc7 and 57f3efb.

Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 8

  • Cargo.toml
  • README.md
  • apps/origin-src/Cargo.toml
  • apps/origin-src/src/cli.rs
  • apps/origin-src/src/config.rs
  • apps/origin-src/src/server.rs
  • apps/origin-src/tests/serve.rs
  • justfile
  • 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/server-serve branch 2 times, most recently from d1bb8f7 to 68a6a59 Compare November 22, 2026 18:54
The HTTP API had no server to run it: nothing hosted repositories
without a working copy, or ordered their targets.

`origin serve` reads `origin-server.toml`, whose paths are relative to
it, and hosts the repositories it names as one node with a key of its
own, generated the first time. It logs requests to stderr, prints the
address it listens on, and compacts each repository once enough small
objects are loose, checking every minute. `origin repo create` makes a
repository for it, with the server's node the authority of `policy` and
`main`.

The node key file becomes `KeyFile`, shared by the user's `node.key`
and a server's. An end-to-end test creates a repository with the real
binary, serves it, and reads its targets through the SDK.
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