MCPcopy Create free account
hub / github.com/compozy/agh / dependencyAvailability

Method dependencyAvailability

internal/daemon/native_tools.go:1097–1104  ·  view source on GitHub ↗
(ready func() bool)

Source from the content-addressed store, hash-verified

1095}
1096
1097func (n *daemonNativeTools) dependencyAvailability(ready func() bool) toolspkg.NativeAvailabilityFunc {
1098 return func(context.Context, toolspkg.Scope) toolspkg.Availability {
1099 if ready == nil || !ready() {
1100 return toolspkg.Unavailable(toolspkg.ReasonDependencyMissing)
1101 }
1102 return toolspkg.Available()
1103 }
1104}
1105
1106func (n *daemonNativeTools) registry() toolspkg.Registry {
1107 if n == nil || n.deps.Registry == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected