Documentation
¶
Index ¶
- func ApplyOpenCodeAssignments(env []string, assignments []string) []string
- func DeriveOpenCodeDiscoveryBase(cmd compozyconfig.LaunchCommand) (compozyconfig.LaunchCommand, error)
- func OpenCodeInvocationFingerprint(cmd compozyconfig.LaunchCommand, builtin bool) string
- func ResolveNativeCLI(strategy Strategy, env []string, cwd string) (string, error)
- func ResolveOpenCodeCommand(provider compozyconfig.ProviderConfig, env []string, dir string) (compozyconfig.LaunchCommand, error)
- type NativeCLI
- type Strategy
- type StrategyKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyOpenCodeAssignments ¶
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 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 ¶
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 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" )