@justn-hyeok/beautiful-ccg-adapter-gemini
v0.1.0
Published
bccg adapter for [Google Gemini CLI](https://github.com/google-gemini/gemini-cli).
Readme
@justn-hyeok/beautiful-ccg-adapter-gemini
bccg adapter for Google Gemini CLI.
Usage
import { GeminiAdapter } from "@justn-hyeok/beautiful-ccg-adapter-gemini";
const adapter = new GeminiAdapter();
const result = await adapter.run("summarize this document");
console.log(result.output);Properties
| Property | Value |
|---|---|
| name | "gemini" |
| costTier | "free" |
| multiModel | false |
CLI Command
gemini -p <prompt> --output-format jsonUnlike other adapters, Gemini outputs a single JSON object (not JSONL/NDJSON). The parser extracts:
response— the generated textsession_id— session identifier- Model name from
stats.models(entry withroles.main, or first available)
Exports
GeminiAdapter—ModelAdapterimplementationparseGeminiOutput(stdout: string): GeminiParsed— standalone parserGeminiParsed—{ content: string; model: string; sessionId: string }
