Skip to content

Commit 745f6f5

Browse files
author
gaoanze
committed
docs(auth): define headless provider capability
1 parent 179696b commit 745f6f5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎src/plugins/provider-authentication.types.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,15 @@ export type ProviderAuthMethod = {
162162
* method-specific auth choices while keeping the provider id stable.
163163
*/
164164
wizard?: ProviderPluginWizardSetup;
165-
/** True only when the provider guarantees that run() never needs terminal input. */
165+
/**
166+
* Opt this method into non-TTY `models auth login`.
167+
*
168+
* Set this to true only when `run` is guaranteed not to read terminal input
169+
* or wait for an interactive prompt. The method may still display progress
170+
* or verification instructions and wait for an external callback or device
171+
* confirmation. This is a provider-owned capability; `kind` alone does not
172+
* establish that the flow is safe for non-interactive execution.
173+
*/
166174
headless?: boolean;
167175
run: (ctx: ProviderAuthContext) => Promise<ProviderAuthResult>;
168176
runNonInteractive?: (

0 commit comments

Comments
 (0)