hostprep

package
v0.0.0-...-4f7fa88 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package hostprep shares bounded explicit-target preparation across lifecycle compositions. Identity, namespace and projection readers never probe hosts.

Index

Constants

This section is empty.

Variables

View Source
var ErrHostTargetRequired = errors.New("host_target_required")
View Source
var ErrPlanChanged = errors.New("host_plan_changed")

Functions

func RootIdentity

func RootIdentity(root string) string

Resolve existing ancestors too: missing config roots may lie beneath symlinks.

func SelectNative

func SelectNative(profile opencodehost.Profile, skills bool, transports []string) ([]opencodehost.Selection, error)

Types

type Preparer

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

func New

func New(registry *clients.Registry, probe Probe, environment []string) (*Preparer, error)

New requires the explicit client registry and pins a private launch environment once, at trusted composition.

func (*Preparer) Prepare

func (p *Preparer) Prepare(ctx context.Context, executable, root string, skills bool, transports []string) (*Snapshot, error)

func (*Preparer) PrepareOpenCodeHost

func (p *Preparer) PrepareOpenCodeHost(ctx context.Context, client domain.DetectedClient, envelope domain.PackageEnvelope) (domain.DetectedClient, error)

func (*Preparer) RevalidateOpenCodeHost

func (p *Preparer) RevalidateOpenCodeHost(ctx context.Context, client domain.DetectedClient) error

type Snapshot

type Snapshot = opencodehost.NativePrepared

Snapshot preserves the preparation API through the shared immutable authority.

Jump to

Keyboard shortcuts

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