providerexec

package
v0.3.0-beta.32 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveNativeCLI

func ResolveNativeCLI(strategy Strategy, env []string, cwd string) (string, error)

ResolveNativeCLI resolves a bridge's native CLI against the exact launch environment.

Types

type NativeCLI

type NativeCLI struct {
	Command      string
	BridgeEnvKey string
}

NativeCLI identifies the installed CLI consumed by an ACP bridge.

type Strategy

type Strategy struct {
	Kind      StrategyKind
	NativeCLI NativeCLI
}

Strategy describes the provider-neutral execution plan for one effective provider command.

func StrategyFor

func StrategyFor(provider compozyconfig.ProviderConfig) Strategy

StrategyFor classifies the effective provider command without coupling execution to a provider ID.

type StrategyKind

type StrategyKind string

StrategyKind identifies how a provider command reaches its ACP runtime.

const (
	// StrategyDirectACP launches a CLI that speaks ACP itself.
	StrategyDirectACP StrategyKind = "direct_acp"
	// StrategyNativeCLIBridge launches an ACP adapter that wraps another installed CLI.
	StrategyNativeCLIBridge StrategyKind = "native_cli_bridge"
	// StrategyHarnessAdapter launches a shared harness configured for a downstream API provider.
	StrategyHarnessAdapter StrategyKind = "harness_adapter"
)

Jump to

Keyboard shortcuts

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