hermes

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdapterVersion = buildinfo.Version

Functions

func ResolveTools

func ResolveTools(requested []string) ([]string, error)

Types

type Adapter

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

func New

func New(executable string, log *slog.Logger) *Adapter

func (*Adapter) Alive

func (a *Adapter) Alive(id string) bool

func (*Adapter) DesignProposal

func (a *Adapter) DesignProposal(ctx context.Context, stateRoot, requirements string, retain bool, credentials []Credential) (proposal, home string, err error)

DesignProposal drives Hermes's documented TUI-gateway JSON-RPC stdio protocol directly. Hermes can only return proposal bytes; Aegis owns strict decoding, validation, canonicalization, persistence, and provisioning.

func (*Adapter) Discover

func (a *Adapter) Discover(ctx context.Context) (core.RuntimeDescriptor, error)

func (*Adapter) Launch

func (a *Adapter) Launch(ctx context.Context, stateRoot string, m core.Mandate, credentials []Credential) (string, string, int, []string, error)

func (*Adapter) RunDesignForeground

func (a *Adapter) RunDesignForeground(ctx context.Context, stateRoot string, retain bool, in io.Reader, out, errOut io.Writer) (string, error)

RunDesignForeground runs the documented Hermes TUI attached to the caller's terminal. Safe mode plus no_mcp removes ambient config, rules, memory, plugins, MCP servers, and normal CLI toolsets. It never uses one-shot/YOLO.

func (*Adapter) StartDesign

func (a *Adapter) StartDesign(ctx context.Context, stateRoot string, retain bool) (string, string, int, error)

func (*Adapter) Terminate

func (a *Adapter) Terminate(ctx context.Context, id string, remove bool) error

type Credential

type Credential struct {
	Reference string
	TargetEnv string
	Value     string
}

Credential is a resolved, explicitly selected environment credential. The value is process input only and must never be logged, persisted, or returned.

Jump to

Keyboard shortcuts

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