native

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 23 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyNativeConfig

func CopyNativeConfig(provider, destination, publishedDestination, privateDestination string, env map[string]string) error

CopyNativeConfig copies connection and model-routing configuration into the visible config directory. Authentication files stay in privateDestination so an execution overlay can link them for one record run without retaining them. The source is discovered from the standard environment or HOME location; callers cannot inject an arbitrary configuration path. Generated catalog references name publishedDestination even when destination is still staging.

func PrepareHistorySeed

func PrepareHistorySeed(source, root string, plan tool.Object) error

A completed capture supplies native saved records. Preparing a later case does not execute an SDK, start a session, or require the replay stage first.

func PrepareNative

func PrepareNative(ctx context.Context, o *Options, plan tool.Object, root string) error

func ReadHistorySeed added in v0.2.0

func ReadHistorySeed(source string, plan tool.Object) error

ReadHistorySeed reconstructs preparation facts from the frozen source without changing it or touching the writable native environment.

func ReserveRecordService

func ReserveRecordService(ctx context.Context, root string) (interface {
	URL() string
	TokenFile() string
	Start(context.Context, Options, tool.Object) error
	Close() error
	Stopped() bool
	ProcessID() int
	Evidence() tool.Object
}, error,
)

ReserveRecordService allocates only a private target. Start runs after the ordinary agent result identifies the execution overlay that owns its env.

Types

type Options

type Options struct {
	CLI, Config, Model, InitialModel string
	RuntimeEnv                       map[string]string
	ProbeProcess                     func(string, int) error `json:"-"`
	ProcessStarted                   func(int) error         `json:"-"`
}

Options contains only native preparation and owned-service inputs.

Jump to

Keyboard shortcuts

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