@ainative/cody-cli 0.7.15 → 0.7.16
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/cli.js +10 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -180961,7 +180961,7 @@ var init_metadata = __esm(() => {
|
|
|
180961
180961
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
180962
180962
|
version: "0.7.15",
|
|
180963
180963
|
versionBase: getVersionBase(),
|
|
180964
|
-
buildTime: "
|
|
180964
|
+
buildTime: "1775421369",
|
|
180965
180965
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
180966
180966
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
180967
180967
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -247523,7 +247523,12 @@ function getTelemetryAttributes() {
|
|
|
247523
247523
|
attributes["user.email"] = email3;
|
|
247524
247524
|
if (accountUuid && shouldIncludeAttribute("OTEL_METRICS_INCLUDE_ACCOUNT_UUID")) {
|
|
247525
247525
|
attributes["user.account_uuid"] = accountUuid;
|
|
247526
|
-
|
|
247526
|
+
const isValidUuid = /^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i.test(accountUuid);
|
|
247527
|
+
if (isValidUuid) {
|
|
247528
|
+
attributes["user.account_id"] = process.env.CLAUDE_CODE_ACCOUNT_TAGGED_ID || toTaggedId("user", accountUuid);
|
|
247529
|
+
} else {
|
|
247530
|
+
attributes["user.account_id"] = process.env.CLAUDE_CODE_ACCOUNT_TAGGED_ID || accountUuid;
|
|
247531
|
+
}
|
|
247527
247532
|
}
|
|
247528
247533
|
}
|
|
247529
247534
|
if (envDynamic.terminal) {
|
|
@@ -418825,7 +418830,7 @@ function getAnthropicEnvMetadata() {
|
|
|
418825
418830
|
function getBuildAgeMinutes() {
|
|
418826
418831
|
if (false)
|
|
418827
418832
|
;
|
|
418828
|
-
const buildTime = new Date("
|
|
418833
|
+
const buildTime = new Date("1775421369").getTime();
|
|
418829
418834
|
if (isNaN(buildTime))
|
|
418830
418835
|
return;
|
|
418831
418836
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -511921,7 +511926,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
511921
511926
|
var call56 = async () => {
|
|
511922
511927
|
return {
|
|
511923
511928
|
type: "text",
|
|
511924
|
-
value: `${"0.7.15"} (built ${"
|
|
511929
|
+
value: `${"0.7.15"} (built ${"1775421369"})`
|
|
511925
511930
|
};
|
|
511926
511931
|
}, version6, version_default;
|
|
511927
511932
|
var init_version = __esm(() => {
|
|
@@ -532253,7 +532258,7 @@ async function verifyApiKey(apiKey, isNonInteractiveSession) {
|
|
|
532253
532258
|
error43 = errorFromRetry.originalError;
|
|
532254
532259
|
}
|
|
532255
532260
|
logError2(error43);
|
|
532256
|
-
if (error43 instanceof Error && error43.message.includes('
|
|
532261
|
+
if (error43 instanceof Error && (error43.message.includes('"type":"authentication_error"') || error43.message.includes("Invalid bearer token") || error43.message.includes("invalid x-api-key"))) {
|
|
532257
532262
|
return false;
|
|
532258
532263
|
}
|
|
532259
532264
|
throw error43;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
|
|
6
6
|
"main": "dist/cli.js",
|