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 ¶
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.