arisa 2.3.49 → 2.3.50
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/package.json +1 -1
- package/src/daemon/setup.ts +2 -9
package/package.json
CHANGED
package/src/daemon/setup.ts
CHANGED
|
@@ -289,16 +289,9 @@ async function isCliAuthenticated(cli: AgentCliName): Promise<boolean> {
|
|
|
289
289
|
const exitCode = await proc.exited;
|
|
290
290
|
return exitCode === 0 && stdout.includes('"loggedIn": true');
|
|
291
291
|
}
|
|
292
|
-
// Codex:
|
|
292
|
+
// Codex: needs OPENAI_API_KEY — no reliable way to check device-auth
|
|
293
293
|
if (cli === "codex") {
|
|
294
|
-
|
|
295
|
-
// device-auth stores config in ~/.codex/ — try a quick dry-run
|
|
296
|
-
const cmd = buildBunWrappedAgentCliCommand("codex", ["--help"], { skipPreload: true });
|
|
297
|
-
const proc = Bun.spawn(cmd, { stdout: "pipe", stderr: "pipe" });
|
|
298
|
-
const stderr = await new Response(proc.stderr).text();
|
|
299
|
-
await proc.exited;
|
|
300
|
-
// If stderr mentions login/auth, not authenticated
|
|
301
|
-
return !(/login|authenticate|OPENAI_API_KEY/i.test(stderr));
|
|
294
|
+
return !!(process.env.OPENAI_API_KEY);
|
|
302
295
|
}
|
|
303
296
|
return true;
|
|
304
297
|
} catch {
|