agentintegration

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package agentintegration owns portable CLI bootstrap materialization and read-only freshness, and explicit managed file lifecycle. Host activation remains outside this package's authority.

Index

Constants

View Source
const (
	OperationInstall = "install"
	OperationUpdate  = "update"
	OperationRemove  = "remove"
	OperationRecover = "recover"
)
View Source
const (
	MaximumMetadataBytes = 512
	MaximumBodyBytes     = 4096
)

Variables

This section is empty.

Functions

func ConsumedCommands

func ConsumedCommands() []string

func Tools

func Tools() []string

Types

type Capability

type Capability struct {
	Command        string
	Route          []string
	ContractDigest string
}

Capability binds an existing public invocation contract, not a new schema or a claim of complete transitive implementation equivalence.

type CheckResult

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

CheckResult reports only generated-byte freshness, not host activation.

func Check

func Check(ctx context.Context, repositoryRoot string, document Document) (CheckResult, error)

Check uses one read-only lease and two bounded observations of the selected descriptor-owned path. Neither operation authorizes filesystem mutation.

func (CheckResult) JSONValue

func (result CheckResult) JSONValue() map[string]any

func (CheckResult) State

func (result CheckResult) State() string

func (CheckResult) Text

func (result CheckResult) Text() string

type Document

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

func Source

func Source(tool string, capabilities []Capability) (Document, error)

func (Document) Content

func (document Document) Content() string

func (Document) JSONValue

func (document Document) JSONValue() map[string]any

type LifecyclePlan added in v0.11.0

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

func PlanLifecycle added in v0.11.0

func PlanLifecycle(ctx context.Context, root string, document Document, operation string) (LifecyclePlan, error)

PlanLifecycle recognizes only snapshots captured by the native transaction builder. The opaque result retains its executable plan privately.

func (LifecyclePlan) ExitCode added in v0.11.0

func (plan LifecyclePlan) ExitCode() int

func (LifecyclePlan) JSONValue added in v0.11.0

func (plan LifecyclePlan) JSONValue() map[string]any

func (LifecyclePlan) Text added in v0.11.0

func (plan LifecyclePlan) Text() string

type LifecycleReceipt added in v0.11.0

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

func ApplyLifecycle added in v0.11.0

func ApplyLifecycle(ctx context.Context, root string, document Document, operation, expectedTransaction, expectedDesired string) (LifecycleReceipt, error)

func RecoverLifecycle added in v0.11.0

func RecoverLifecycle(ctx context.Context, root, transactionID, action string) (LifecycleReceipt, error)

func (LifecycleReceipt) ExitCode added in v0.11.0

func (receipt LifecycleReceipt) ExitCode() int

func (LifecycleReceipt) JSONValue added in v0.11.0

func (receipt LifecycleReceipt) JSONValue() map[string]any

func (LifecycleReceipt) Text added in v0.11.0

func (receipt LifecycleReceipt) Text() string

Jump to

Keyboard shortcuts

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