@ainative/cody-cli 0.7.21 → 0.7.23
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 +16 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -181024,7 +181024,7 @@ var init_metadata = __esm(() => {
|
|
|
181024
181024
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
181025
181025
|
version: "0.7.15",
|
|
181026
181026
|
versionBase: getVersionBase(),
|
|
181027
|
-
buildTime: "
|
|
181027
|
+
buildTime: "1775427403",
|
|
181028
181028
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
181029
181029
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
181030
181030
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -336499,8 +336499,14 @@ async function installOAuthTokens(tokens) {
|
|
|
336499
336499
|
},
|
|
336500
336500
|
ainativePlanCache: "AINative Free"
|
|
336501
336501
|
}));
|
|
336502
|
-
const envApiKey = process.env.ANTHROPIC_API_KEY;
|
|
336502
|
+
const envApiKey = process.env.ANTHROPIC_API_KEY || process.env.AINATIVE_API_KEY;
|
|
336503
336503
|
if (envApiKey) {
|
|
336504
|
+
try {
|
|
336505
|
+
await saveApiKey(envApiKey);
|
|
336506
|
+
logForDebugging("[AINative] API key saved to keychain");
|
|
336507
|
+
} catch (e) {
|
|
336508
|
+
logForDebugging(`[AINative] Failed to save API key to keychain: ${e}`);
|
|
336509
|
+
}
|
|
336504
336510
|
const normalized = envApiKey.slice(-20);
|
|
336505
336511
|
saveGlobalConfig((current) => {
|
|
336506
336512
|
const approved = current.customApiKeyResponses?.approved ?? [];
|
|
@@ -344853,6 +344859,11 @@ function OAuthStatusMessage(t0) {
|
|
|
344853
344859
|
});
|
|
344854
344860
|
return;
|
|
344855
344861
|
}
|
|
344862
|
+
try {
|
|
344863
|
+
await saveApiKey(key);
|
|
344864
|
+
} catch (e) {
|
|
344865
|
+
logError2(e);
|
|
344866
|
+
}
|
|
344856
344867
|
const normalized = key.slice(-20);
|
|
344857
344868
|
saveGlobalConfig((current) => {
|
|
344858
344869
|
const approved = current.customApiKeyResponses?.approved ?? [];
|
|
@@ -418996,7 +419007,7 @@ function getAnthropicEnvMetadata() {
|
|
|
418996
419007
|
function getBuildAgeMinutes() {
|
|
418997
419008
|
if (false)
|
|
418998
419009
|
;
|
|
418999
|
-
const buildTime = new Date("
|
|
419010
|
+
const buildTime = new Date("1775427403").getTime();
|
|
419000
419011
|
if (isNaN(buildTime))
|
|
419001
419012
|
return;
|
|
419002
419013
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -442735,7 +442746,7 @@ function Feedback({
|
|
|
442735
442746
|
children: [
|
|
442736
442747
|
"We will use your feedback to debug related issues or to improve",
|
|
442737
442748
|
" ",
|
|
442738
|
-
"
|
|
442749
|
+
"Cody's functionality (eg. to reduce the risk of bugs occurring in the future)."
|
|
442739
442750
|
]
|
|
442740
442751
|
}, undefined, true, undefined, this)
|
|
442741
442752
|
}, undefined, false, undefined, this),
|
|
@@ -511986,7 +511997,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
511986
511997
|
var call56 = async () => {
|
|
511987
511998
|
return {
|
|
511988
511999
|
type: "text",
|
|
511989
|
-
value: `${"0.7.15"} (built ${"
|
|
512000
|
+
value: `${"0.7.15"} (built ${"1775427403"})`
|
|
511990
512001
|
};
|
|
511991
512002
|
}, version6, version_default;
|
|
511992
512003
|
var init_version = __esm(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.23",
|
|
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",
|