arisa 2.3.45 → 2.3.47
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 +5 -2
package/package.json
CHANGED
package/src/daemon/setup.ts
CHANGED
|
@@ -289,7 +289,10 @@ 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
|
|
293
|
+
if (cli === "codex") {
|
|
294
|
+
return !!(process.env.OPENAI_API_KEY);
|
|
295
|
+
}
|
|
293
296
|
return true;
|
|
294
297
|
} catch {
|
|
295
298
|
return false;
|
|
@@ -341,7 +344,7 @@ async function runInteractiveLogin(cli: AgentCliName, vars: Record<string, strin
|
|
|
341
344
|
// `claude setup-token` prints a token but does NOT store it.
|
|
342
345
|
// Ask the user to paste it.
|
|
343
346
|
if (cli === "claude") {
|
|
344
|
-
console.log("\n Paste the token shown above (starts with sk-ant-):");
|
|
347
|
+
console.log("\n Paste the yellow token shown above (starts with sk-ant-):");
|
|
345
348
|
const token = (await readLine(" > ")).trim();
|
|
346
349
|
if (token.startsWith("sk-ant-") && token.length > 80) {
|
|
347
350
|
vars.CLAUDE_CODE_OAUTH_TOKEN = token;
|