gemini

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: MIT Imports: 8 Imported by: 0

README

Gemini Adapter

Integrates Sequoia with Google Gemini CLI's configuration directory layout. Uses StrategyFileReplace — generates the Gemini prompt file as a full file with backup of any existing content. Copies skills and commands to the appropriate Gemini CLI configuration paths.

Documentation

Overview

Package gemini implements the ToolAdapter for Gemini CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	common.BaseAdapter
}

Adapter implements adapters.ToolAdapter for Gemini CLI. It embeds common.BaseAdapter for shared Install/Status logic. Uninstall is overridden because Gemini uses a sequoia/ subdirectory that is removed as a whole tree.

func NewAdapter

func NewAdapter(homeDir string) *Adapter

NewAdapter creates an Adapter with an overridden home directory.

func (*Adapter) Uninstall

func (a *Adapter) Uninstall(opts adapters.InstallOpts) (err error)

Uninstall removes Sequoia files for Gemini CLI. Overrides BaseAdapter.Uninstall because Gemini stores skills and commands under a sequoia/ subdirectory that is removed as a whole tree.

Errors from removal operations are collected via errors.Join. On failure, the returned error wraps adapters.ErrUninstallFailed.

type StrategyConfigMerge

type StrategyConfigMerge struct {
	// contains filtered or unexported fields
}

StrategyConfigMerge implements section injection for Gemini's GEMINI.md. It uses marker-based delimiters (<!-- sequoia:start -->) to inject and remove Sequoia content without modifying content outside the markers.

func NewStrategy

func NewStrategy(path string) *StrategyConfigMerge

NewStrategy creates a StrategyConfigMerge targeting the given file path.

func (*StrategyConfigMerge) Inject

func (s *StrategyConfigMerge) Inject(content string) error

Inject writes the Sequoia content into the target file using marker injection.

func (*StrategyConfigMerge) Remove

func (s *StrategyConfigMerge) Remove() error

Remove deletes the Sequoia section from the target file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL