arisa 2.3.4 → 2.3.5
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 +3 -3
package/package.json
CHANGED
package/src/daemon/setup.ts
CHANGED
|
@@ -276,10 +276,10 @@ async function runInteractiveLogin(cli: AgentCliName, vars: Record<string, strin
|
|
|
276
276
|
|
|
277
277
|
const exitCode = await proc.exited;
|
|
278
278
|
if (exitCode === 0) {
|
|
279
|
-
// Extract token (sk-ant-oat01-...)
|
|
280
|
-
const tokenMatch = output.match(/
|
|
279
|
+
// Extract token (sk-ant-oat01-...) — may span multiple lines due to terminal wrapping
|
|
280
|
+
const tokenMatch = output.match(/sk-ant-[A-Za-z0-9_-]+(?:\n[A-Za-z0-9_-]+)*/);
|
|
281
281
|
if (tokenMatch) {
|
|
282
|
-
vars.CLAUDE_CODE_OAUTH_TOKEN = tokenMatch[
|
|
282
|
+
vars.CLAUDE_CODE_OAUTH_TOKEN = tokenMatch[0].replace(/\n/g, "");
|
|
283
283
|
saveEnv(vars);
|
|
284
284
|
console.log(" ✓ claude token saved to .env");
|
|
285
285
|
}
|