viberadar 0.3.168 → 0.3.170

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.
@@ -2625,8 +2625,15 @@ function updateAgentRightsInfo() {
2625
2625
  return;
2626
2626
  }
2627
2627
  if (D.agent === 'claude') {
2628
- el.textContent = '🔐 Claude: managed by Claude CLI';
2629
- el.title = 'Права определяются Claude CLI';
2628
+ const cached = window._claudeAccount;
2629
+ el.textContent = cached ? `🔐 ${cached}` : '🔐 Claude';
2630
+ el.title = cached ? `Claude аккаунт: ${cached}` : 'Загружаю аккаунт…';
2631
+ if (!cached) {
2632
+ fetch('/api/agent-whoami').then(r => r.json()).then(d => {
2633
+ window._claudeAccount = d.email || d.raw?.split('\n')[0] || 'неизвестно';
2634
+ updateAgentRightsInfo();
2635
+ }).catch(() => {});
2636
+ }
2630
2637
  return;
2631
2638
  }
2632
2639
  el.textContent = '🔐 Агент не выбран';
@@ -2688,6 +2695,9 @@ async function reauthAgent() {
2688
2695
  document.getElementById('termBtn').classList.add('term-active');
2689
2696
  return;
2690
2697
  }
2698
+ // Reset cached account so it reloads after login
2699
+ window._claudeAccount = null;
2700
+ updateAgentRightsInfo();
2691
2701
  const id = createSession('🔑 Перелогинивание');
2692
2702
  runningSessionId = id;
2693
2703
  document.getElementById('agentPanelTitle').textContent = '🔑 Перелогинивание';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viberadar",
3
- "version": "0.3.168",
3
+ "version": "0.3.170",
4
4
  "description": "Live module map with test coverage for vibecoding projects",
5
5
  "main": "./dist/cli.js",
6
6
  "bin": {