@agentclientprotocol/codex-acp 2.1.2-preview.2 → 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +2 -2
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.2",
33536
+ version: "2.1.2-preview.4",
33537
33537
  description: "",
33538
33538
  main: "dist/index.js",
33539
33539
  bin: {
@@ -33597,7 +33597,7 @@ var package_default = {
33597
33597
  },
33598
33598
  dependencies: {
33599
33599
  "@agentclientprotocol/sdk": "^1.5.0",
33600
- "@openai/codex": "^0.159.1",
33600
+ "@openai/codex": "^0.160.1",
33601
33601
  diff: "^9.0.0",
33602
33602
  open: "^11.0.1",
33603
33603
  "vscode-jsonrpc": "^9.0.1",
@@ -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
- return false;
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.invalidParams();
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");
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.1.2-preview.2",
6
+ "version": "2.1.2-preview.4",
7
7
  "description": "",
8
8
  "main": "dist/index.js",
9
9
  "bin": {
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@agentclientprotocol/sdk": "^1.5.0",
70
- "@openai/codex": "^0.159.1",
70
+ "@openai/codex": "^0.160.1",
71
71
  "diff": "^9.0.0",
72
72
  "open": "^11.0.1",
73
73
  "vscode-jsonrpc": "^9.0.1",