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

Method workspaceID

internal/daemon/native_tools.go:3592–3605  ·  view source on GitHub ↗
(ctx context.Context, ref string)

Source from the content-addressed store, hash-verified

3590}
3591
3592func (n *daemonNativeTools) workspaceID(ctx context.Context, ref string) (string, error) {
3593 trimmed := strings.TrimSpace(ref)
3594 if trimmed == "" {
3595 return "", nil
3596 }
3597 if n.deps.Workspaces == nil {
3598 return trimmed, nil
3599 }
3600 workspace, err := n.deps.Workspaces.Get(ctx, trimmed)
3601 if err != nil {
3602 return "", err
3603 }
3604 return strings.TrimSpace(workspace.ID), nil
3605}
3606
3607type nativeAuthoredAgentTarget struct {
3608 workspaceID string

Callers 1

sessionListMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected