ag-agent 0.18.3

Agentty is an ADE (Agentic Development Environment) for structured, controllable AI-assisted software development.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::sync::{Mutex, MutexGuard};

/// Serializes tests that update the process-wide Antigravity compatibility
/// snapshot.
static ANTIGRAVITY_CACHE_TEST_LOCK: Mutex<()> = Mutex::new(());

/// Acquires the test-only Antigravity cache guard, recovering after a
/// failed assertion poisoned an earlier guard.
pub(super) fn antigravity_cache_test_guard() -> MutexGuard<'static, ()> {
    ANTIGRAVITY_CACHE_TEST_LOCK
        .lock()
        .unwrap_or_else(std::sync::PoisonError::into_inner)
}