geotoolfab

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Name           string
	Description    string
	Runner         string
	ScriptPath     string
	Args           []string
	WorkingDir     string
	Parameters     map[string]Parameter
	TimeoutSeconds int
	SourcePath     string
}

Definition is the validated, resolved form of one fabricated geo tool manifest.

func ValidateDefinition

func ValidateDefinition(def Definition) (Definition, error)

ValidateDefinition normalizes and validates one fabricated geo tool definition.

type Loader

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

Loader loads fabricated geo tool manifests from the workspace.

func NewLoader

func NewLoader(workspacePath string) *Loader

NewLoader returns a workspace loader for fabricated geo tools.

func (*Loader) BuildSummary

func (l *Loader) BuildSummary() string

BuildSummary returns a system-prompt friendly summary of fabricated geo tool conventions and any installed workspace geo tools discovered from manifests.

func (*Loader) Load

func (l *Loader) Load() ([]Definition, error)

Load discovers and validates all fabricated geo tool manifests.

type Parameter

type Parameter struct {
	Type        string `yaml:"type"`
	Description string `yaml:"description"`
	Required    bool   `yaml:"required"`
}

Parameter defines one tool input parameter declared in a workspace manifest.

type Scaffold

type Scaffold struct {
	ToolName         string
	ManifestPath     string
	ScriptPath       string
	ManifestBody     string
	ScriptBody       string
	ValidationPassed bool
}

Scaffold contains a dry-run fabricated geo tool skeleton.

func BuildScaffold

func BuildScaffold(workspacePath string, spec ScaffoldSpec) (*Scaffold, error)

BuildScaffold creates a validator-compliant fabricated geo tool skeleton without writing files.

type ScaffoldSpec

type ScaffoldSpec struct {
	Name        string
	Description string
	Runner      string
	Parameters  map[string]Parameter
}

ScaffoldSpec describes the desired fabricated geo tool skeleton.

Jump to

Keyboard shortcuts

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