agentpluginscli

package
v0.0.0-...-820a094 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorText

func ErrorText(args []string, output io.Writer, err error) string

ErrorText uses the same flag parser without executing a command or touching state. Malformed flags and unknown commands deliberately keep their diagnostic unstyled.

func NewLegacyLifecycle

func NewLegacyLifecycle(statePath string) ports.LegacyLifecycle

func NewRoot

func NewRoot(app App) *cobra.Command

Types

type App

type App struct {
	Prompter      prompt.Prompter
	PromptFactory func(io.Reader, io.Writer, io.Writer, bool, bool) (prompt.Prompter, io.Writer, error)

	Version     string
	UserHome    string
	ManagedRoot string
	StateStore  transaction.StateStore
	Detector    ports.ClientDetector
	// ClientRegistry is the set of client adapters this binary knows about. The
	// composition root decides it; CLI commands receive the already-built planner
	// and never reconstruct one.
	ClientRegistry      *clients.Registry
	Planner             ports.DeliveryPlanner
	Targets             ports.DeliveryTargetResolver
	DirectoryClient     DirectoryClient
	DiscoveryClient     DiscoveryClient
	SourceAcquirer      SourceAcquirer
	PackageLoader       ports.PackageLoader
	NativePackageLoader ports.PackageLoader
	SecurityIndex       SecurityIndex
	SecurityEvaluator   ports.PackageSecurityEvaluator
	// Installer is the public facade used by the qualified explicit local
	// package path. Other CLI acquisition and lifecycle paths remain on the
	// existing service until their contracts are qualified separately.
	Installer       *installer.Engine
	Lifecycle       usecase.Service
	StateMigrator   *statemigration.Migrator
	LegacyLifecycle ports.LegacyLifecycle
	LegacyStateLock legacyports.LockManager
	Input           io.Reader
	Output          io.Writer
	ErrorOutput     io.Writer
	Terminal        bool
	// contains filtered or unexported fields
}

type DirectoryClient

type DirectoryClient interface {
	Load(context.Context, uint64) (directoryv1.VerifiedBundle, error)
}

type DiscoveryClient

type DiscoveryClient interface {
	Load(context.Context, uint64) (discoveryv1.VerifiedBundle, error)
}

type SecurityIndex

type SecurityIndex interface {
	Lookup(context.Context, domain.SecuritySubject) (*domain.SecurityAssessment, error)
}

type SourceAcquirer

type SourceAcquirer interface {
	AcquireLocal(context.Context, string) (domain.PackageSnapshot, error)
	DiscoverGitHubPackages(context.Context, string, string) ([]string, error)
	AcquireGitHub(context.Context, string, string, string) (domain.PackageSnapshot, error)
	AcquireGitHubVerified(context.Context, string, string, string, string) (domain.PackageSnapshot, error)
}

Directories

Path Synopsis
Package prompt is the CLI-owned, presentation-independent interaction port.
Package prompt is the CLI-owned, presentation-independent interaction port.

Jump to

Keyboard shortcuts

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