@hanhnd/agent-kit 1.0.14 → 1.0.15
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/kit-server.js +3 -1
- package/dist/utils/credentials.js +2 -1
- package/package.json +1 -1
package/dist/kit-server.js
CHANGED
|
@@ -21361,7 +21361,9 @@ function loadCredentials() {
|
|
|
21361
21361
|
return cachedCredentials;
|
|
21362
21362
|
}
|
|
21363
21363
|
function getCredential(key) {
|
|
21364
|
-
if (process.env[key]
|
|
21364
|
+
if (process.env[key]) {
|
|
21365
|
+
return process.env[key];
|
|
21366
|
+
}
|
|
21365
21367
|
return loadCredentials()[key];
|
|
21366
21368
|
}
|
|
21367
21369
|
|
|
@@ -82,7 +82,8 @@ function loadCredentials() {
|
|
|
82
82
|
* process.env.KEY → ~/.claude/credentials [profile] → undefined
|
|
83
83
|
*/
|
|
84
84
|
export function getCredential(key) {
|
|
85
|
-
if (process.env[key]
|
|
85
|
+
if (process.env[key]) {
|
|
86
86
|
return process.env[key];
|
|
87
|
+
}
|
|
87
88
|
return loadCredentials()[key];
|
|
88
89
|
}
|