@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 +5 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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:
|
|
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
|