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

Function hostAPIResolvedWorkspaceID

internal/extension/host_api.go:2164–2173  ·  view source on GitHub ↗
(resolved *workspacepkg.ResolvedWorkspace)

Source from the content-addressed store, hash-verified

2162}
2163
2164func hostAPIResolvedWorkspaceID(resolved *workspacepkg.ResolvedWorkspace) (string, error) {
2165 if resolved == nil {
2166 return "", errors.New("extension: resolved workspace is required")
2167 }
2168 workspaceID := strings.TrimSpace(resolved.WorkspaceID)
2169 if workspaceID == "" {
2170 return "", errors.New("extension: resolved workspace_id is empty")
2171 }
2172 return workspaceID, nil
2173}
2174
2175func (h *HostAPIHandler) jobFromCreateParams(
2176 ctx context.Context,

Calls

no outgoing calls

Tested by

no test coverage detected