(ctx context.Context, ref string)
| 3590 | } |
| 3591 | |
| 3592 | func (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 | |
| 3607 | type nativeAuthoredAgentTarget struct { |
| 3608 | workspaceID string |