@agentclientprotocol/codex-acp 2.1.2-preview.3 → 2.1.2-preview.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33533,7 +33533,7 @@ var package_default = {
|
|
|
33533
33533
|
publishConfig: {
|
|
33534
33534
|
access: "public"
|
|
33535
33535
|
},
|
|
33536
|
-
version: "2.1.2-preview.
|
|
33536
|
+
version: "2.1.2-preview.4",
|
|
33537
33537
|
description: "",
|
|
33538
33538
|
main: "dist/index.js",
|
|
33539
33539
|
bin: {
|
|
@@ -34040,7 +34040,10 @@ var CodexAcpClient = class {
|
|
|
34040
34040
|
}
|
|
34041
34041
|
if (!CreateElicitationResponse.isAccept(first.response)) {
|
|
34042
34042
|
await this.codexClient.accountLoginCancel({ loginId: loginResponse.loginId });
|
|
34043
|
-
|
|
34043
|
+
throw RequestError.requestCancelled(
|
|
34044
|
+
{ methodId: "chat-gpt-device-code", action: first.response.action },
|
|
34045
|
+
"ChatGPT device code sign-in was cancelled"
|
|
34046
|
+
);
|
|
34044
34047
|
}
|
|
34045
34048
|
const result = await loginCompletedPromise;
|
|
34046
34049
|
await urlElicitationRequester.completeElicitation();
|
|
@@ -39002,7 +39005,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
39002
39005
|
const isAuthenticated = await this.runWithProcessCheck(() => this.codexAcpClient.authenticate(_params, elicitationRequester));
|
|
39003
39006
|
if (!isAuthenticated) {
|
|
39004
39007
|
logger.log("Authenticate request failed");
|
|
39005
|
-
throw RequestError.
|
|
39008
|
+
throw RequestError.authRequired({ methodId: _params.methodId }, "Sign-in did not complete");
|
|
39006
39009
|
}
|
|
39007
39010
|
await this.refreshAuthState(this.getAuthProviderForAuthenticateRequest(_params));
|
|
39008
39011
|
logger.log("Authenticate request completed");
|