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

Method automationManager

internal/extension/host_api.go:2134–2147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2132}
2133
2134func (h *HostAPIHandler) automationManager() (HostAPIAutomationManager, error) {
2135 if h == nil {
2136 return nil, errors.New("extension: host api handler is required")
2137 }
2138 if h.automation != nil {
2139 return h.automation, nil
2140 }
2141 if h.automationGetter != nil {
2142 if automation := h.automationGetter(); automation != nil {
2143 return automation, nil
2144 }
2145 }
2146 return nil, errors.New("extension: automation manager is not configured")
2147}
2148
2149func (h *HostAPIHandler) resolveAutomationWorkspaceID(ctx context.Context, rawWorkspace string) (string, error) {
2150 trimmed := strings.TrimSpace(rawWorkspace)

Calls

no outgoing calls

Tested by

no test coverage detected