feat: add OAuth provider abstraction for CLI configuration (#3157)

Signed-off-by: Adam Tarantino <tarantino.adam@gmail.com>
This commit is contained in:
Adam Tarantino
2025-08-06 08:04:49 -07:00
committed by GitHub
parent 90ef14979d
commit c2f08557af
6 changed files with 191 additions and 39 deletions
+20
View File
@@ -26,10 +26,30 @@ export type AuthorRequest = {
metadata?: string | null;
};
/**
* Configuration key metadata for provider setup
*/
export type ConfigKey = {
/**
* Optional default value for the key
*/
default?: string | null;
/**
* The name of the configuration key (e.g., "API_KEY")
*/
name: string;
/**
* Whether this key should be configured using OAuth device code flow
* When true, the provider's configure_oauth() method will be called instead of prompting for manual input
*/
oauth_flow: boolean;
/**
* Whether this key is required for the provider to function
*/
required: boolean;
/**
* Whether this key should be stored securely (e.g., in keychain)
*/
secret: boolean;
};