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

Method resolveAutomationWorkspaceID

internal/extension/host_api.go:2149–2162  ·  view source on GitHub ↗
(ctx context.Context, rawWorkspace string)

Source from the content-addressed store, hash-verified

2147}
2148
2149func (h *HostAPIHandler) resolveAutomationWorkspaceID(ctx context.Context, rawWorkspace string) (string, error) {
2150 trimmed := strings.TrimSpace(rawWorkspace)
2151 if trimmed == "" {
2152 return "", nil
2153 }
2154 if h.workspaces == nil {
2155 return trimmed, nil
2156 }
2157 resolved, err := h.workspaces.Resolve(ctx, trimmed)
2158 if err != nil {
2159 return "", err
2160 }
2161 return hostAPIResolvedWorkspaceID(&resolved)
2162}
2163
2164func hostAPIResolvedWorkspaceID(resolved *workspacepkg.ResolvedWorkspace) (string, error) {
2165 if resolved == nil {

Callers 7

handleAutomationJobsMethod · 0.95
jobFromCreateParamsMethod · 0.95
applyJobUpdateParamsMethod · 0.95

Calls 2

ResolveMethod · 0.65

Tested by

no test coverage detected