Documentation
¶
Index ¶
- func ApplyHomePolicy(homePaths compozyconfig.HomePaths, providerName string, ...) ([]string, error)
- func ApplyPiAgentDirPolicy(homePaths compozyconfig.HomePaths, providerName string, ...) ([]string, error)
- func EnsurePrivateDir(path string) error
- func EnsurePrivateDirUnder(root string, path string) error
- func ResolveHomeEnv(homePaths compozyconfig.HomePaths, providerName string, ...) ([]string, error)
- func ResolvePiAgentDirEnv(homePaths compozyconfig.HomePaths, providerName string, ...) ([]string, error)
- func SafeProviderHomeSegment(value string) bool
- func SetEnvValue(env []string, key string, value string) []string
- type ProviderHomeSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyHomePolicy ¶
func ApplyHomePolicy( homePaths compozyconfig.HomePaths, providerName string, homePolicy compozyconfig.ProviderHomePolicy, env []string, ) ([]string, error)
ApplyHomePolicy updates provider launch environment according to the provider home policy. Operator home intentionally leaves the incoming env untouched.
func ApplyPiAgentDirPolicy ¶
func ApplyPiAgentDirPolicy( homePaths compozyconfig.HomePaths, providerName string, homePolicy compozyconfig.ProviderHomePolicy, env []string, ) ([]string, error)
ApplyPiAgentDirPolicy points native Pi auth at the same isolated home used by both session launch and provider auth commands.
func EnsurePrivateDir ¶
EnsurePrivateDir creates or tightens an Compozy-owned provider state directory.
func EnsurePrivateDirUnder ¶
EnsurePrivateDirUnder creates or tightens an Compozy-owned provider state directory while proving the resolved path remains below root.
func ResolveHomeEnv ¶
func ResolveHomeEnv( homePaths compozyconfig.HomePaths, providerName string, homePolicy compozyconfig.ProviderHomePolicy, env []string, ) ([]string, error)
ResolveHomeEnv returns the provider home environment for display or diagnostics without creating provider-owned directories.
func ResolvePiAgentDirEnv ¶
func ResolvePiAgentDirEnv( homePaths compozyconfig.HomePaths, providerName string, homePolicy compozyconfig.ProviderHomePolicy, env []string, ) ([]string, error)
ResolvePiAgentDirEnv returns the Pi native-auth environment for display or diagnostics without creating provider-owned directories.
func SafeProviderHomeSegment ¶
SafeProviderHomeSegment reports whether a provider name can be used as one path segment below $COMPOZY_HOME/providers.
Types ¶
type ProviderHomeSpec ¶
type ProviderHomeSpec struct {
EnvKeys []string
IsolatedChild string
OperatorFallback string
WorkspaceSkillDir string
}
ProviderHomeSpec is the shared native-provider home and skill-discovery contract.
func NativeProviderHomeSpec ¶
func NativeProviderHomeSpec(providerName string) (ProviderHomeSpec, bool)
NativeProviderHomeSpec returns a copy of the canonical home metadata for one provider.