Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasResolver ¶
type AliasResolver struct {
// contains filtered or unexported fields
}
AliasResolver resolves named aliases to agent bundles
func (*AliasResolver) CanResolve ¶
func (r *AliasResolver) CanResolve(ref string) bool
type BuiltinResolver ¶
type BuiltinResolver struct {
// contains filtered or unexported fields
}
BuiltinResolver resolves the builtin default agent
func (*BuiltinResolver) CanResolve ¶
func (r *BuiltinResolver) CanResolve(ref string) bool
type Channel ¶
type Channel string
Channel represents the agent resolution channel
const ( // ChannelLatest uses the latest stable agent from cache or GitHub ChannelLatest Channel = "latest" // ChannelBuiltin forces the use of the embedded builtin agent ChannelBuiltin Channel = "builtin" // ChannelPinned is a prefix for pinned versions (e.g., "pinned:agent-claude-v0.3.0") ChannelPinned Channel = "pinned:" )
type ChannelResolver ¶
type ChannelResolver struct {
// contains filtered or unexported fields
}
ChannelResolver resolves agent bundles based on the configured channel
func NewChannelResolver ¶
func NewChannelResolver(cacheDir string, channel string, repo string) *ChannelResolver
NewChannelResolver creates a new channel-based agent resolver
func (*ChannelResolver) CanResolve ¶
func (r *ChannelResolver) CanResolve(ref string) bool
CanResolve returns true if the reference is empty (no explicit agent specified) This resolver should only be used when no explicit agent reference is provided
type FileResolver ¶
type FileResolver struct{}
FileResolver resolves local file paths
func (*FileResolver) CanResolve ¶
func (r *FileResolver) CanResolve(ref string) bool
type HTTPResolver ¶
type HTTPResolver struct {
// contains filtered or unexported fields
}
HTTPResolver resolves HTTPS URLs to agent bundles
func (*HTTPResolver) CanResolve ¶
func (r *HTTPResolver) CanResolve(ref string) bool
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds all registered resolvers
func NewRegistry ¶
NewRegistry creates a new resolver registry with default resolvers