Inspect requirements by profile identity

This commit is contained in:
2026-10-09 00:38:01 +00:00
parent 74b91fae99
commit 6c5dec761c
4 changed files with 125 additions and 13 deletions

View File

@@ -54,7 +54,7 @@ func (r *Runner) InspectRequirements(
if strings.TrimSpace(selectedProfileID) == "" {
return nil, fmt.Errorf("%w: %w: profile id is required either in request or prompt default_profile", ErrInvalidRequest, ErrProfileRequired)
}
profileSelection, err := r.resolveProfileSelection(ctx, selectedProfileID)
profileIdentity, err := r.resolveProfileIdentity(ctx, selectedProfileID)
if err != nil {
return nil, err
}
@@ -74,6 +74,6 @@ func (r *Runner) InspectRequirements(
if err != nil {
return nil, fmt.Errorf("%w: %w", ErrPromptLoad, err)
}
inspection.ProfileID = profileSelection.id
inspection.ProfileID = profileIdentity
return &inspection, nil
}