@evident-ai/cli 3.5.2-dev.2828873 → 3.5.2-dev.4181600

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 CHANGED
@@ -1158,7 +1158,7 @@ import ora4 from "ora";
1158
1158
  import { select as select4 } from "@inquirer/prompts";
1159
1159
 
1160
1160
  // src/lib/telemetry.ts
1161
- var CLI_VERSION = (true ? "3.5.2-dev.2828873" : void 0) ?? process.env.npm_package_version ?? "unknown";
1161
+ var CLI_VERSION = (true ? "3.5.2-dev.4181600" : void 0) ?? process.env.npm_package_version ?? "unknown";
1162
1162
  function getCliVersion() {
1163
1163
  return CLI_VERSION;
1164
1164
  }
@@ -3474,17 +3474,16 @@ function hasPrimaryHeaders(headers) {
3474
3474
  ].some((name) => headers.has(name));
3475
3475
  }
3476
3476
  async function getOpenAiUsage(port, client) {
3477
- const openCodeVersion = client?.version ?? "v1";
3478
3477
  const credentials2 = readOpenCodeChatGptCredentials();
3479
3478
  if (!credentials2) {
3480
3479
  throw new OpenAiUsageError(
3481
- openCodeVersion === "v2" ? "OpenAI usage reporting is not available on OpenCode V2 because V2 keeps a connected ChatGPT login in a store Evident cannot read." : "No ChatGPT login found. Connect a ChatGPT account to this runner, or run `opencode auth login`.",
3480
+ "No ChatGPT login found. Connect a ChatGPT account to this runner, or run `opencode auth login`.",
3482
3481
  "no_credentials"
3483
3482
  );
3484
3483
  }
3485
3484
  if (credentials2.expiresAt < Date.now()) {
3486
3485
  throw new OpenAiUsageError(
3487
- openCodeVersion === "v2" ? "The delivered ChatGPT login has expired. OpenCode V2 cannot be given a replacement by file; connect the account again from the runner's page in Evident." : "ChatGPT credentials have expired. Run `opencode auth login` to refresh them.",
3486
+ "ChatGPT credentials have expired. Run `opencode auth login` to refresh them.",
3488
3487
  "credentials_expired"
3489
3488
  );
3490
3489
  }
@@ -12462,7 +12461,7 @@ function reportOpenCodeV2CredentialImport(state, result) {
12462
12461
  logActivity(state, {
12463
12462
  type: "info",
12464
12463
  level: "warn",
12465
- message: `OpenCode V2 saved login(s) for ${integrationIds} on this machine, but OpenCode V2 will not use them. Connect the provider again from the runner's page in Evident; no shell on this machine is needed.`
12464
+ message: `OpenCode V2 saved login(s) for ${integrationIds} on this machine, but OpenCode V2 will not use them. See #2251 for importing existing logins.`
12466
12465
  });
12467
12466
  }
12468
12467
  if (result.imported.length === 0 && result.unsupported.length === 0 && result.failed.length === 0) {
@@ -14018,7 +14017,7 @@ async function run(options) {
14018
14017
  },
14019
14018
  report: (usage) => reportOpenAiUsage(state.agentId, state.authHeader, usage),
14020
14019
  isLocalCredentialProblem: isLocalCredentialProblem2,
14021
- forcedOnHint: state.opencodeApiVersion === "v2" ? "OpenCode V2 keeps its connected ChatGPT login in a store Evident cannot read" : "connect a ChatGPT account to this runner, or run `opencode auth login`",
14020
+ forcedOnHint: "connect a ChatGPT account to this runner, or run `opencode auth login`",
14022
14021
  firstDelayMs: firstReportDelayMs,
14023
14022
  nextDelayMs: usageReportDelayMs,
14024
14023
  failureLogLevel: usageReportFailureLogLevel