feat: add Antigravity CLI provider - #12
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
목표
AnchorMind의 LLM fallback chain에 Google Antigravity CLI(
agy-cli) provider를 추가한다. 메모리 JSON 변환은 Antigravity가 파일을 수정하거나 도구를 승인하지 못하도록 제약된 실행 모드로만 수행한다.쉬운 설명
운영자는
LLM_PRIMARY=agy-cli로 Antigravity CLI를 primary LLM으로 선택할 수 있다. 모델과 timeout은 기존 CLI provider와 동일하게LLM_FALLBACKS항목에서 지정한다. 호출은 print-only, plan, sandbox 모드로 제한된다.agy가 없거나 인증에 실패하면 다음 fallback을 시도한다.개선되는 것
Fix 1
agy-cli가 독립 provider로 등록되어 model, timeout, circuit breaker, concurrency 정책을 적용한다.Fix 2
agy --output-format text --mode plan --sandbox [--model MODEL] --print PROMPT만 사용한다.Fix 3
--print를 먼저 배치하면 뒤의 실행 플래그가 프롬프트로 해석됐다.--print앞에 배치해 실제 Antigravity CLI 계약을 따른다.Before → After
LLM_PRIMARY=agy-cliagy바이너리를 확인한 뒤 provider로 구성model,timeoutMs가agyCLI에 전달사이드 이펙트 시뮬레이션
agy미설치해결한 내용
lib/agy.js에 Antigravity CLI 실행/가용성 래퍼와 안전한 인자 생성기를 추가했다.AgyCliProvider와 registry wiring, 로컬 CLI 동시성 1 슬롯을 추가했다.검증
agy models: 인증된 계정에서gemini-3.1-pro-high등 사용 가능 모델 조회runAgyCLI(..., { model: "gemini-3.1-pro-high" }): constrained JSON 호출 성공npm test(2,280 tests: 2,278 passed, 0 failed, 2 skipped)npm run lint(0 errors, 기존 warnings 127개)npm run lint:migrationsgit diff --check비목표
agy models로 확인한 모델명을 운영 설정에 적용한다.