@livx.cc/agentx 0.99.87 → 0.99.88
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 +3 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17215,6 +17215,7 @@ function resolveModelOrNewest(model) {
|
|
|
17215
17215
|
return fallback;
|
|
17216
17216
|
}
|
|
17217
17217
|
var ENV_KEY_ALIASES = { google: ["GEMINI_API_KEY"] };
|
|
17218
|
+
var fileEnvNames = /* @__PURE__ */ new Set();
|
|
17218
17219
|
function loadEnvFile(file) {
|
|
17219
17220
|
if (!existsSync9(file)) return;
|
|
17220
17221
|
for (const line of readFileSync10(file, "utf8").split("\n")) {
|
|
@@ -17224,6 +17225,7 @@ function loadEnvFile(file) {
|
|
|
17224
17225
|
if (val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'")) val = val.slice(1, -1);
|
|
17225
17226
|
else val = val.replace(/\s+#.*$/, "").trim();
|
|
17226
17227
|
process.env[m[1]] = val;
|
|
17228
|
+
fileEnvNames.add(m[1]);
|
|
17227
17229
|
}
|
|
17228
17230
|
}
|
|
17229
17231
|
function loadInstallEnv() {
|
|
@@ -17250,7 +17252,7 @@ async function loadBodifySecrets() {
|
|
|
17250
17252
|
const { values } = await res.json();
|
|
17251
17253
|
if (!values) return;
|
|
17252
17254
|
for (const [k, v] of Object.entries(values)) {
|
|
17253
|
-
if (!(k in process.env)) process.env[k] = v;
|
|
17255
|
+
if (!(k in process.env) || fileEnvNames.has(k)) process.env[k] = v;
|
|
17254
17256
|
}
|
|
17255
17257
|
} catch (e) {
|
|
17256
17258
|
console.error(` bodify secrets: ${e.message ?? e}`);
|