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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arisa",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "Arisa - dynamic agent runtime with daemon/core architecture that evolves through user interaction",
5
5
  "preferGlobal": true,
6
6
  "bin": {
@@ -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-...) and save to .env
280
- const tokenMatch = output.match(/(sk-ant-\S+)/);
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[1];
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
  }