getEngineSecretDescription returns a detailed description for an engine secret
(opt *constants.EngineOption)
| 97 | |
| 98 | // getEngineSecretDescription returns a detailed description for an engine secret |
| 99 | func getEngineSecretDescription(opt *constants.EngineOption) string { |
| 100 | switch opt.Value { |
| 101 | case string(constants.CopilotEngine): |
| 102 | return "Fine-grained PAT with Copilot Requests permission." |
| 103 | case string(constants.ClaudeEngine): |
| 104 | return "API key from Anthropic Console for Claude API access." |
| 105 | case string(constants.CodexEngine): |
| 106 | return "API key from OpenAI for Codex/GPT API access." |
| 107 | default: |
| 108 | return fmt.Sprintf("API key for %s engine.", opt.Label) |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | // secretRequirementsFromAuthDefinition converts an AuthDefinition into SecretRequirement |
| 113 | // entries so inline auth secrets are treated as required secrets (same as built-in |
no outgoing calls