mobilegit

package
v1.5.138 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mobilegit provides a structured Git tool for the mobile host. Local operations are confined to the workspace; clone, fetch and push additionally require an explicit network grant on the tool-call context. It never shells out to a system git binary, which Android does not provide.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Root        string
	AuthorName  string
	AuthorEmail string
	Token       string
}

Config is host-owned. Root must be the selected workspace. Token is used only for HTTPS remotes and is never written to output.

type Tool

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

Tool implements one structured git action. It is deliberately not a generic command runner: every operation has a schema and root-bound target.

func New

func New(cfg Config) (*Tool, error)

New validates the workspace root. It does not require a repository yet.

func (*Tool) Description

func (t *Tool) Description() string

func (*Tool) ExecutionMode

func (t *Tool) ExecutionMode() agentcore.ToolExecutionMode

func (*Tool) Name

func (t *Tool) Name() string

func (*Tool) Schema

func (t *Tool) Schema() json.RawMessage

Jump to

Keyboard shortcuts

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