(resolution: ApiKeyResolution)
| 100 | } |
| 101 | |
| 102 | export function describeApiKeySource(resolution: ApiKeyResolution): string { |
| 103 | if (resolution.source === "config") return "~/.gstack/openai.json"; |
| 104 | if (resolution.envFile) return `OPENAI_API_KEY environment variable (matches ${resolution.envFile} in current directory)`; |
| 105 | return "OPENAI_API_KEY environment variable"; |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Save an API key to ~/.gstack/openai.json with 0600 permissions. |
no outgoing calls
no test coverage detected