socketexec

package
v0.0.0-...-b0b31a8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package socketexec adapts the public v1 Unix tool executor protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string, harnesses map[string]string) (map[string]controller.ToolFunc, error)

Load returns only the dispatchers from LoadBindings for executor-only callers.

func LoadBindings

func LoadBindings(path string, harnesses map[string]string) (map[string]Binding, error)

LoadBindings reads v1 tools.json and returns exact, per-harness dispatchers and dedup declarations. It validates the entire configuration without connecting to sockets. Only static harness names are eligible; endpoint values are unused.

Types

type Binding

type Binding struct {
	Execute      controller.ToolFunc
	DurableDedup func(tool string) bool
}

Binding keeps an executor and its exact durable-dedup declarations together. The executor, not this declaration, must durably deduplicate session/key retries.

Jump to

Keyboard shortcuts

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