feat: initial commit — antigravity proxy with MITM, standalone LS, and snapshot tooling

This commit is contained in:
Nikketryhard
2026-02-14 02:24:35 -06:00
commit d5e7f09225
30 changed files with 9980 additions and 0 deletions

49
src/api/models.rs Normal file
View File

@@ -0,0 +1,49 @@
//! Model definitions and lookup.
/// Model definition: friendly name → (antigravity_id, protobuf_enum, label).
pub(crate) struct ModelDef {
pub name: &'static str,
#[allow(dead_code)]
pub ag_id: &'static str,
pub model_enum: u32,
pub label: &'static str,
}
pub(crate) const MODELS: &[ModelDef] = &[
ModelDef {
name: "opus-4.6",
ag_id: "MODEL_PLACEHOLDER_M26",
model_enum: 1026,
label: "Claude Opus 4.6 (Thinking)",
},
ModelDef {
name: "opus-4.5",
ag_id: "MODEL_PLACEHOLDER_M12",
model_enum: 1012,
label: "Claude Opus 4.5 (Thinking)",
},
ModelDef {
name: "gemini-3-pro-high",
ag_id: "MODEL_PLACEHOLDER_M8",
model_enum: 1008,
label: "Gemini 3 Pro (High)",
},
ModelDef {
name: "gemini-3-pro",
ag_id: "MODEL_PLACEHOLDER_M7",
model_enum: 1007,
label: "Gemini 3 Pro (Low)",
},
ModelDef {
name: "gemini-3-flash",
ag_id: "MODEL_PLACEHOLDER_M18",
model_enum: 1018,
label: "Gemini 3 Flash",
},
];
pub(crate) const DEFAULT_MODEL: &str = "opus-4.6";
pub(crate) fn lookup_model(name: &str) -> Option<&'static ModelDef> {
MODELS.iter().find(|m| m.name == name)
}