@elizaos/agent 2.0.0-alpha.416 → 2.0.0-alpha.417

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": "@elizaos/agent",
3
- "version": "2.0.0-alpha.416",
3
+ "version": "2.0.0-alpha.417",
4
4
  "description": "Standalone elizaOS-based agent and backend server package.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -467,7 +467,7 @@
467
467
  "@elizaos/app-steward": "^0.0.0",
468
468
  "@elizaos/app-task-coordinator": "^0.0.0",
469
469
  "@elizaos/app-training": "^0.0.1",
470
- "@elizaos/core": "^2.0.0-alpha.416",
470
+ "@elizaos/core": "^2.0.0-alpha.417",
471
471
  "@elizaos/plugin-agent-orchestrator": "^0.6.2-alpha.0",
472
472
  "@elizaos/plugin-browser-bridge": "^0.1.0",
473
473
  "@elizaos/plugin-local-embedding": "^2.0.0-alpha.12",
@@ -476,8 +476,8 @@
476
476
  "@elizaos/plugin-solana": "^2.0.0-alpha.6",
477
477
  "@elizaos/plugin-sql": "^2.0.0-alpha.19",
478
478
  "@elizaos/plugin-wechat": "^0.1.0",
479
- "@elizaos/shared": "^2.0.0-alpha.416",
480
- "@elizaos/skills": "^2.0.0-alpha.416",
479
+ "@elizaos/shared": "^2.0.0-alpha.417",
480
+ "@elizaos/skills": "^2.0.0-alpha.417",
481
481
  "@hapi/boom": "^10.0.1",
482
482
  "@noble/curves": "^2.0.1",
483
483
  "@solana/web3.js": "^1.98.4",
@@ -466,20 +466,16 @@ async function handleOAuthRoutes(ctx, providerId, rest) {
466
466
  writeLinkedAccount(ctx.state.config, linkedConfig);
467
467
  ctx.saveConfig(ctx.state.config);
468
468
  };
469
+ const startFlow = subscription === "anthropic-subscription"
470
+ ? startAnthropicOAuthFlow
471
+ : startCodexOAuthFlow;
469
472
  let handle;
470
473
  try {
471
- handle =
472
- subscription === "anthropic-subscription"
473
- ? await startAnthropicOAuthFlow({
474
- label: parsed.data.label,
475
- accountId,
476
- onAccountSaved,
477
- })
478
- : await startCodexOAuthFlow({
479
- label: parsed.data.label,
480
- accountId,
481
- onAccountSaved,
482
- });
474
+ handle = await startFlow({
475
+ label: parsed.data.label,
476
+ accountId,
477
+ onAccountSaved,
478
+ });
483
479
  }
484
480
  catch (err) {
485
481
  logger.error(`[accounts] Failed to start ${providerId} OAuth flow: ${String(err)}`);