zuke.tools.gemini
@zuke/gemini 1.1.2: @zuke/gemini — a typed [Gemini CLI](https://github.com/google-gemini/gemini-cli) (gemini) task wrapper for Zuke builds.
zuke on PyPI ↗ 5 symbols
Symbols
class GeminiCommandSettings(SubcommandSettings) Shared builder for gemini <group> … subcommand groups (mcp, extensions): name the verb and operands with .command(...) and pass anything else with .flag(...).
class GeminiExtensionsSettings(GeminiCommandSettings) Settings for a gemini extensions … invocation (manage extensions).
class GeminiMcpSettings(GeminiCommandSettings) Settings for a gemini mcp … invocation (manage MCP servers).
class GeminiRunSettings(ToolSettings) Settings for a non-interactive gemini --prompt run — the build-friendly way to send a single prompt and capture the response.
-
prompt(text: str) -> SelfThe prompt to run non-interactively (
--prompt). Required. -
model(id: str) -> SelfPin the model, e.g.
model("gemini-2.5-pro")(--model). -
sandbox() -> SelfRun tools inside a sandbox (
--sandbox). -
sandbox_image(image: str) -> SelfContainer image to use for the sandbox (
--sandbox-image). -
all_files() -> SelfInclude all files in the context (
--all-files). -
yolo() -> SelfAutomatically approve all tool calls (
--yolo). -
approval_mode(mode: Literal['default', 'auto_edit', 'yolo', 'plan']) -> SelfHow tool calls are approved (
--approval-mode). -
include_directories(*dirs: str) -> SelfAdd directories to the workspace context (
--include-directories). Repeatable. -
extensions(*names: str) -> SelfRestrict to these extensions (
--extensions). Repeatable. -
allowed_tools(*names: str) -> SelfAllow only these tools (
--allowed-tools). Repeatable. -
allowed_mcp_server_names(*names: str) -> SelfAllow only these MCP servers (
--allowed-mcp-server-names). Repeatable. -
output_format(format: Literal['text', 'json', 'stream-json']) -> SelfShape of the printed response (
--output-format). -
debug() -> SelfEmit debug output (
--debug). -
checkpointing() -> SelfEnable checkpointing of file edits (
--checkpointing). -
show_memory_usage() -> SelfReport memory usage in the status bar (
--show-memory-usage).
class GeminiTasks Typed task functions for the Gemini CLI.
-
static async run(ctx: ServiceContext, configure: Callable[[GeminiRunSettings], GeminiRunSettings] | None=None) -> ExecResultRun a prompt non-interactively (
gemini --prompt). -
static async mcp(ctx: ServiceContext, configure: Callable[[GeminiMcpSettings], GeminiMcpSettings] | None=None) -> ExecResultManage MCP servers (
gemini mcp …). -
static async extensions(ctx: ServiceContext, configure: Callable[[GeminiExtensionsSettings], GeminiExtensionsSettings] | None=None) -> ExecResultManage extensions (
gemini extensions …).