Rust

origin

Module

Origin, Cursor's Git hosting, through an app installation.

Contents

use utopia_vcs::BatchCheckRun;
Rust
pub struct BatchCheckRun

One run of [Origin::batch_upsert_check_runs]: a CheckRun (its annotations, images and actions unused) and an optional key of its own.

use utopia_vcs::Origin;
Rust
pub struct Origin

The Origin adapter: an Ed25519-signed (EdDSA) app JWT is exchanged for a short-lived installation token, both cached under the installation id. Content writes (files, branches, tags) go over Git HTTPS with the git binary.

Rust
pub const APP_JWT_EXPIRY: i64 = 60 * 5

App JWT lifetime in seconds: about five minutes, as Origin prescribes.

Rust
pub const EVENT_PUSH: &str = "repository.pushed"

The webhook event type of a push.