@atlasharness/atlascode 0.1.71 → 0.1.72
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 +0 -48
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -197448,26 +197448,9 @@ var init_authFileDescriptor = __esm(() => {
|
|
|
197448
197448
|
});
|
|
197449
197449
|
|
|
197450
197450
|
// src/tui/utils/authPortable.ts
|
|
197451
|
-
async function maybeRemoveApiKeyFromMacOSKeychainThrows() {
|
|
197452
|
-
if (process.platform === "darwin") {
|
|
197453
|
-
const storageServiceName = getMacOsKeychainStorageServiceName();
|
|
197454
|
-
const user = process.env.USER ?? "";
|
|
197455
|
-
const result = await execa("security", ["delete-generic-password", "-a", user, "-s", storageServiceName], { reject: false });
|
|
197456
|
-
if (result.exitCode !== 0) {
|
|
197457
|
-
throw new Error("Failed to delete keychain entry");
|
|
197458
|
-
}
|
|
197459
|
-
}
|
|
197460
|
-
}
|
|
197461
197451
|
function normalizeApiKeyForConfig(apiKey) {
|
|
197462
197452
|
return apiKey.slice(-20);
|
|
197463
197453
|
}
|
|
197464
|
-
var init_authPortable = __esm(() => {
|
|
197465
|
-
init_execa();
|
|
197466
|
-
init_macOsKeychainHelpers();
|
|
197467
|
-
});
|
|
197468
|
-
|
|
197469
|
-
// src/tui/utils/secureStorage/keychainPrefetch.ts
|
|
197470
|
-
var clearLegacyApiKeyPrefetch = () => ({}), getLegacyApiKeyPrefetchResult = () => ({});
|
|
197471
197454
|
|
|
197472
197455
|
// src/tui/utils/auth.ts
|
|
197473
197456
|
function isManagedOAuthContext() {
|
|
@@ -197720,20 +197703,11 @@ function prefetchApiKeyFromApiKeyHelperIfSafe(isNonInteractiveSession) {
|
|
|
197720
197703
|
getApiKeyFromApiKeyHelper(isNonInteractiveSession);
|
|
197721
197704
|
}
|
|
197722
197705
|
async function removeApiKey() {
|
|
197723
|
-
await maybeRemoveApiKeyFromMacOSKeychain();
|
|
197724
197706
|
saveGlobalConfig((current) => ({
|
|
197725
197707
|
...current,
|
|
197726
197708
|
primaryApiKey: undefined
|
|
197727
197709
|
}));
|
|
197728
197710
|
getApiKeyFromConfigOrMacOSKeychain.cache.clear?.();
|
|
197729
|
-
clearLegacyApiKeyPrefetch();
|
|
197730
|
-
}
|
|
197731
|
-
async function maybeRemoveApiKeyFromMacOSKeychain() {
|
|
197732
|
-
try {
|
|
197733
|
-
await maybeRemoveApiKeyFromMacOSKeychainThrows();
|
|
197734
|
-
} catch (e) {
|
|
197735
|
-
logError3(e);
|
|
197736
|
-
}
|
|
197737
197711
|
}
|
|
197738
197712
|
function getAccountInformation() {
|
|
197739
197713
|
const { source: authTokenSource } = getAuthTokenSource();
|
|
@@ -197806,7 +197780,6 @@ var init_auth4 = __esm(() => {
|
|
|
197806
197780
|
init_bootstrapState();
|
|
197807
197781
|
init_getOauthProfile();
|
|
197808
197782
|
init_authFileDescriptor();
|
|
197809
|
-
init_authPortable();
|
|
197810
197783
|
init_config6();
|
|
197811
197784
|
init_debug();
|
|
197812
197785
|
init_envUtils2();
|
|
@@ -197820,24 +197793,6 @@ var init_auth4 = __esm(() => {
|
|
|
197820
197793
|
getApiKeyFromConfigOrMacOSKeychain = memoize_default(() => {
|
|
197821
197794
|
if (isBareMode())
|
|
197822
197795
|
return null;
|
|
197823
|
-
if (process.platform === "darwin") {
|
|
197824
|
-
const prefetch = getLegacyApiKeyPrefetchResult();
|
|
197825
|
-
if (prefetch) {
|
|
197826
|
-
if (prefetch.stdout) {
|
|
197827
|
-
return { key: prefetch.stdout, source: "/login managed key" };
|
|
197828
|
-
}
|
|
197829
|
-
} else {
|
|
197830
|
-
const storageServiceName = getMacOsKeychainStorageServiceName();
|
|
197831
|
-
try {
|
|
197832
|
-
const result = execSyncWithDefaults_DEPRECATED(`security find-generic-password -a $USER -w -s "${storageServiceName}"`);
|
|
197833
|
-
if (result) {
|
|
197834
|
-
return { key: result, source: "/login managed key" };
|
|
197835
|
-
}
|
|
197836
|
-
} catch (e) {
|
|
197837
|
-
logError3(e);
|
|
197838
|
-
}
|
|
197839
|
-
}
|
|
197840
|
-
}
|
|
197841
197796
|
const config = getGlobalConfig();
|
|
197842
197797
|
if (!config.primaryApiKey) {
|
|
197843
197798
|
return null;
|
|
@@ -356485,7 +356440,6 @@ var init_Config = __esm(() => {
|
|
|
356485
356440
|
init_useKeybinding();
|
|
356486
356441
|
init_figures();
|
|
356487
356442
|
init_config6();
|
|
356488
|
-
init_authPortable();
|
|
356489
356443
|
init_config6();
|
|
356490
356444
|
init_source2();
|
|
356491
356445
|
init_PermissionMode();
|
|
@@ -484346,7 +484300,6 @@ var init_Onboarding = __esm(() => {
|
|
|
484346
484300
|
init_ink2();
|
|
484347
484301
|
init_useKeybinding();
|
|
484348
484302
|
init_auth4();
|
|
484349
|
-
init_authPortable();
|
|
484350
484303
|
init_config6();
|
|
484351
484304
|
init_env2();
|
|
484352
484305
|
init_envUtils2();
|
|
@@ -485401,7 +485354,6 @@ var init_interactiveHelpers = __esm(() => {
|
|
|
485401
485354
|
init_mcpServerApproval();
|
|
485402
485355
|
init_AppState();
|
|
485403
485356
|
init_onChangeAppState();
|
|
485404
|
-
init_authPortable();
|
|
485405
485357
|
init_memoryFiles();
|
|
485406
485358
|
init_config6();
|
|
485407
485359
|
init_terminalPreference();
|
package/package.json
CHANGED