providerexec

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOpenCodeAssignments

func ApplyOpenCodeAssignments(env []string, assignments []string) []string

ApplyOpenCodeAssignments overlays private leading NAME=value assignments on an environment.

func DeriveOpenCodeDiscoveryBase

func DeriveOpenCodeDiscoveryBase(cmd compozyconfig.LaunchCommand) (compozyconfig.LaunchCommand, error)

DeriveOpenCodeDiscoveryBase strips a derivable terminal acp operation while keeping the selector.

func IsClaudeAgentBridge

func IsClaudeAgentBridge(command string) bool

IsClaudeAgentBridge reports whether command launches the claude-agent-acp bridge, through its package token (npx/bunx) or its published executable.

func IsCodexAgentBridge

func IsCodexAgentBridge(command string) bool

IsCodexAgentBridge reports whether command launches the codex-acp bridge, through its package token (npx/bunx) or its published executable.

func OpenCodeInvocationFingerprint

func OpenCodeInvocationFingerprint(cmd compozyconfig.LaunchCommand, builtin bool) string

OpenCodeInvocationFingerprint is the pure selector/origin identity consumed by the catalog. It hashes the prepared absolute identity and private assignments without resolving secrets, probing versions, or installing packages.

func ResolveNativeCLI

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

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

func ResolveOpenCodeCommand

func ResolveOpenCodeCommand(
	provider compozyconfig.ProviderConfig,
	env []string,
	dir string,
) (compozyconfig.LaunchCommand, error)

ResolveOpenCodeCommand resolves an absolute launch command; only an absent builtin falls back to npx.

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