fix(auth): preserve OAuth interaction semantics

This commit is contained in:
Federico Jaramillo Martinez
2026-07-17 23:34:58 +02:00
parent a39cf49f3a
commit 3a208e648e
8 changed files with 387 additions and 66 deletions
+15 -2
View File
@@ -384,10 +384,23 @@ export interface OAuthFlowState {
providerId: string;
providerName: string;
status: "running" | "complete" | "error" | "cancelled";
auth?: { url: string; instructions?: string };
prompt?: { requestId: string; message: string; placeholder?: string; allowEmpty?: boolean; kind: "prompt" | "manual" };
auth?: {
url: string;
instructions?: string;
deviceCode?: { userCode: string; intervalSeconds?: number; expiresInSeconds?: number };
};
prompt?: {
requestId: string;
message: string;
placeholder?: string;
allowEmpty?: boolean;
/** Additive semantic detail; legacy peers continue to use `kind`. */
promptType?: "text" | "secret" | "manual_code";
kind: "prompt" | "manual";
};
select?: { requestId: string; message: string; options: CommandOption[] };
progress: string[];
info?: { message: string; links?: { url: string; label?: string }[] }[];
error?: string;
}