Initial public release of Warp.

Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
David Stern
2026-04-28 08:43:33 -05:00
commit 0dbd3d567a
4982 changed files with 1431549 additions and 0 deletions
@@ -0,0 +1,24 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum OutputType {
CommitMessage,
PrTitle,
PrDescription,
}
#[derive(Serialize, Deserialize)]
pub struct GenerateCodeReviewContentRequest {
pub output_type: OutputType,
pub diff: String,
#[serde(skip_serializing_if = "String::is_empty", default)]
pub branch_name: String,
#[serde(skip_serializing_if = "Vec::is_empty", default)]
pub commit_messages: Vec<String>,
}
#[derive(Serialize, Deserialize)]
pub struct GenerateCodeReviewContentResponse {
pub content: String,
}
@@ -0,0 +1,8 @@
// TODO(edward): follow-up — gate callers of this module on both
// 1. an `AISettings` opt-out (mirror `is_shared_block_title_generation_enabled`), and
// 2. a customer-type guard (exclude Enterprise unless Warp plan / dogfood),
// matching the pattern in `terminal/share_block_modal.rs::should_send_title_gen_request`.
// `FeatureFlag::GitOperationsInCodeReview` already gates the surrounding UI,
// but does not address AI-specific privacy / opt-out concerns for sending
// diffs to an LLM.
pub(crate) mod api;