@livx.cc/agentx 0.99.88 → 0.99.89
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 +9 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17236,12 +17236,17 @@ function loadInstallEnv() {
|
|
|
17236
17236
|
loadEnvFile(join16(homedir10(), ".agent", name));
|
|
17237
17237
|
}
|
|
17238
17238
|
}
|
|
17239
|
+
function paraVaultToken() {
|
|
17240
|
+
if (process.platform !== "darwin") return void 0;
|
|
17241
|
+
const r = Bun.spawnSync(["/usr/bin/security", "find-generic-password", "-s", "Para Settings", "-a", "VAULT_TOKEN", "-w"], { stdout: "pipe", stderr: "pipe" });
|
|
17242
|
+
return r.exitCode === 0 ? r.stdout.toString().trim() || void 0 : void 0;
|
|
17243
|
+
}
|
|
17239
17244
|
async function loadBodifySecrets() {
|
|
17240
|
-
const apiKey = process.env.BODIFY_API_KEY, appId = process.env.BODIFY_APP_ID;
|
|
17241
|
-
if (!apiKey
|
|
17245
|
+
const apiKey = process.env.BODIFY_API_KEY || paraVaultToken(), appId = process.env.BODIFY_APP_ID || "para-browser";
|
|
17246
|
+
if (!apiKey) return;
|
|
17242
17247
|
const base = process.env.BODIFY_URL || "https://bodify.bod.ee";
|
|
17243
17248
|
try {
|
|
17244
|
-
const res = await fetch(`${base}/api/apps/${encodeURIComponent(appId)}/env`, {
|
|
17249
|
+
const res = await fetch(`${base}/api/apps/${encodeURIComponent(appId)}/env?environment=${encodeURIComponent(process.env.BODIFY_ENV || "prod")}`, {
|
|
17245
17250
|
headers: { Authorization: `Bearer ${apiKey}` },
|
|
17246
17251
|
signal: AbortSignal.timeout(5e3)
|
|
17247
17252
|
});
|
|
@@ -19139,7 +19144,7 @@ ${task}`;
|
|
|
19139
19144
|
`));
|
|
19140
19145
|
const keys = ["ANTHROPIC_API_KEY", "OPENAI_API_KEY", "GOOGLE_API_KEY", "GROQ_API_KEY"].filter((k) => process.env[k]);
|
|
19141
19146
|
keys.length ? ok(`provider keys: ${keys.join(", ")}`) : bad("no provider keys set (ANTHROPIC_API_KEY / OPENAI_API_KEY / GOOGLE_API_KEY / GROQ_API_KEY)");
|
|
19142
|
-
process.env.BODIFY_API_KEY
|
|
19147
|
+
process.env.BODIFY_API_KEY || paraVaultToken() ? ok(`bodify secrets: ${process.env.BODIFY_APP_ID || "para-browser"}`) : warn("bodify secrets: no vault token (connect the vault in Para Settings \u25B8 Keys, or set BODIFY_API_KEY)");
|
|
19143
19148
|
{
|
|
19144
19149
|
const has = hasCommand;
|
|
19145
19150
|
if (!VoiceIO.available()) warn("voice: keys missing (SONIOX_API_KEY / CARTESIA_API_KEY / CARTESIA_VOICE_ID) \u2014 voice disabled");
|