@integrity-labs/agt-cli 0.7.5 → 0.7.6
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/bin/agt.js +5 -5
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-GBTJNYNP.js → chunk-VJ7ZRBAJ.js} +8 -2
- package/dist/chunk-VJ7ZRBAJ.js.map +1 -0
- package/dist/lib/manager-worker.js +50 -7
- package/dist/lib/manager-worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GBTJNYNP.js.map +0 -1
|
@@ -2510,7 +2510,13 @@ function loadFromShellProfile() {
|
|
|
2510
2510
|
const content = readFileSync4(profile, "utf-8");
|
|
2511
2511
|
for (const key of ["AGT_HOST", "AGT_API_KEY", "AGT_TEAM"]) {
|
|
2512
2512
|
if (process.env[key]) continue;
|
|
2513
|
-
const match = content.
|
|
2513
|
+
const match = content.split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0 && !line.startsWith("#")).map(
|
|
2514
|
+
(line) => line.match(
|
|
2515
|
+
new RegExp(
|
|
2516
|
+
`^(?:export\\s+${key}\\s*=\\s*["']([^"']+)["']|set\\s+-gx\\s+${key}\\s+["']([^"']+)["'])$`
|
|
2517
|
+
)
|
|
2518
|
+
)
|
|
2519
|
+
).find(Boolean);
|
|
2514
2520
|
if (match) {
|
|
2515
2521
|
process.env[key] = match[1] ?? match[2];
|
|
2516
2522
|
}
|
|
@@ -4581,4 +4587,4 @@ export {
|
|
|
4581
4587
|
detectDrift,
|
|
4582
4588
|
provision
|
|
4583
4589
|
};
|
|
4584
|
-
//# sourceMappingURL=chunk-
|
|
4590
|
+
//# sourceMappingURL=chunk-VJ7ZRBAJ.js.map
|