cite-agent 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl

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.

Potentially problematic release.


This version of cite-agent might be problematic. Click here for more details.

@@ -29,17 +29,21 @@ class AccountCredentials:
29
29
  @classmethod
30
30
  def from_payload(cls, email: str, payload: Dict[str, Any]) -> "AccountCredentials":
31
31
  try:
32
+ # Support both old format (accountId/authToken) and new format (user_id/access_token)
33
+ account_id = str(payload.get("accountId") or payload.get("user_id"))
34
+ auth_token = str(payload.get("authToken") or payload.get("access_token"))
35
+
32
36
  return cls(
33
- account_id=str(payload["accountId"]),
37
+ account_id=account_id,
34
38
  email=email,
35
- auth_token=str(payload["authToken"]),
36
- refresh_token=str(payload.get("refreshToken", "")),
37
- telemetry_token=str(payload.get("telemetryToken", "")),
38
- issued_at=str(payload.get("issuedAt", "")) or None,
39
+ auth_token=auth_token,
40
+ refresh_token=str(payload.get("refreshToken") or payload.get("refresh_token") or ""),
41
+ telemetry_token=str(payload.get("telemetryToken") or payload.get("telemetry_token") or ""),
42
+ issued_at=str(payload.get("issuedAt") or payload.get("issued_at") or "") or None,
39
43
  )
40
- except KeyError as exc: # pragma: no cover - defensive guard
44
+ except (KeyError, TypeError) as exc: # pragma: no cover - defensive guard
41
45
  raise AccountProvisioningError(
42
- f"Account provisioning payload missing field: {exc!s}" # noqa: TRY200
46
+ f"Account provisioning payload missing required fields: {exc!s}" # noqa: TRY200
43
47
  ) from exc
44
48
 
45
49
 
@@ -74,8 +78,8 @@ class AccountClient:
74
78
  "The 'requests' package is required for control-plane authentication"
75
79
  ) from exc
76
80
 
77
- endpoint = self.base_url.rstrip("/") + "/api/beta/login"
78
- body = {"email": email, "password": password, "client": "cli"}
81
+ endpoint = self.base_url.rstrip("/") + "/api/auth/login"
82
+ body = {"email": email, "password": password}
79
83
  try:
80
84
  response = requests.post(endpoint, json=body, timeout=self.timeout)
81
85
  except Exception as exc: # pragma: no cover - network failure
cite_agent/cli.py CHANGED
@@ -83,10 +83,11 @@ class NocturnalCLI:
83
83
  success = await self.agent.initialize()
84
84
 
85
85
  if not success:
86
- self.console.print("[error]❌ Failed to initialize agent. Please check your API keys.[/error]")
86
+ self.console.print("[error]❌ Failed to initialize agent. Please check your configuration.[/error]")
87
87
  self.console.print("\n💡 Setup help:")
88
- self.console.print(" • Ensure your Groq API key is correct (re-run `nocturnal` to update it).")
89
- self.console.print(" • You can edit ~/.nocturnal_archive/config.env or set GROQ_API_KEY manually.")
88
+ self.console.print(" • Run `cite-agent --setup` to configure your account")
89
+ self.console.print(" • Ensure you're logged in with valid credentials")
90
+ self.console.print(" • Check your internet connection to the backend")
90
91
  return False
91
92
 
92
93
  self._show_ready_panel()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cite-agent
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: AI Research Assistant - Backend-Only Distribution
5
5
  Home-page: https://github.com/Spectating101/cite-agent
6
6
  Author: Cite-Agent Team
@@ -1,11 +1,11 @@
1
1
  cite_agent/__distribution__.py,sha256=U7-p-qBMX7WrQD6WWjRC5b-PswXnlrqAox7EYnLogqI,178
2
2
  cite_agent/__init__.py,sha256=wAXV2v8nNOmIAd0rh8196ItBl9hHWBVOBl5Re4VB77I,1645
3
- cite_agent/account_client.py,sha256=_-3QS_gUSRj3689hE1GuEHXgb9JzaXGZ3o6klkuRQ2Y,4876
3
+ cite_agent/account_client.py,sha256=aiVJqVm8N_YM3BCyI4sl1ijSI-DMp9e1E6mbrMfSVAs,5218
4
4
  cite_agent/agent_backend_only.py,sha256=Rmi3cUCcTMSHRxZu6MK2rZwme5SCfilxqn0BsoIds_U,5375
5
5
  cite_agent/ascii_plotting.py,sha256=lk8BaECs6fmjtp4iH12G09-frlRehAN7HLhHt2crers,8570
6
6
  cite_agent/auth.py,sha256=CYBNv8r1_wfdhsx-YcWOiXCiKvPBymaMca6w7JV__FQ,9809
7
7
  cite_agent/backend_only_client.py,sha256=WqLF8x7aXTro2Q3ehqKMsdCg53s6fNk9Hy86bGxqmmw,2561
8
- cite_agent/cli.py,sha256=03GMqjKGosrIvHfUlWBQrFEoPZr563EI6rfTX8YDWmc,18526
8
+ cite_agent/cli.py,sha256=UBuoUhnHSWmiuTLO9f0uLxEEkd02X3iM0ESCZG3Qwek,18570
9
9
  cite_agent/cli_enhanced.py,sha256=EAaSw9qtiYRWUXF6_05T19GCXlz9cCSz6n41ASnXIPc,7407
10
10
  cite_agent/dashboard.py,sha256=VGV5XQU1PnqvTsxfKMcue3j2ri_nvm9Be6O5aVays_w,10502
11
11
  cite_agent/enhanced_ai_agent.py,sha256=Rmi3cUCcTMSHRxZu6MK2rZwme5SCfilxqn0BsoIds_U,5375
@@ -15,9 +15,9 @@ cite_agent/telemetry.py,sha256=55kXdHvI24ZsEkbFtihcjIfJt2oiSXcEpLzTxQ3KCdQ,2916
15
15
  cite_agent/ui.py,sha256=r1OAeY3NSeqhAjJYmEBH9CaennBuibFAz1Mur6YF80E,6134
16
16
  cite_agent/updater.py,sha256=kL2GYL1AKoZ9JoTXxFT5_AkvYvObcCrO2sIVyBw9JgU,7057
17
17
  cite_agent/web_search.py,sha256=j-BRhT8EBC6BEPgACQPeVwB1SVGKDz4XLM7sowacvSc,6587
18
- cite_agent-1.0.0.dist-info/licenses/LICENSE,sha256=XJkyO4IymhSUniN1ENY6lLrL2729gn_rbRlFK6_Hi9M,1074
19
- cite_agent-1.0.0.dist-info/METADATA,sha256=flKpEvukTe-iqaNmp03t32EseZHxed_rf_nKM09_980,6856
20
- cite_agent-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- cite_agent-1.0.0.dist-info/entry_points.txt,sha256=bJ0u28nFIxQKH1PWQ2ak4PV-FAjhoxTC7YADEdDenFw,83
22
- cite_agent-1.0.0.dist-info/top_level.txt,sha256=NNfD8pxDZzBK8tjDIpCs2BW9Va-OQ5qUFbEx0SgmyIE,11
23
- cite_agent-1.0.0.dist-info/RECORD,,
18
+ cite_agent-1.0.1.dist-info/licenses/LICENSE,sha256=XJkyO4IymhSUniN1ENY6lLrL2729gn_rbRlFK6_Hi9M,1074
19
+ cite_agent-1.0.1.dist-info/METADATA,sha256=gw9nM7D4P9_C0g-UnLp9DjWk9dSEZ14wXl5vkRUF_yM,6856
20
+ cite_agent-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ cite_agent-1.0.1.dist-info/entry_points.txt,sha256=bJ0u28nFIxQKH1PWQ2ak4PV-FAjhoxTC7YADEdDenFw,83
22
+ cite_agent-1.0.1.dist-info/top_level.txt,sha256=NNfD8pxDZzBK8tjDIpCs2BW9Va-OQ5qUFbEx0SgmyIE,11
23
+ cite_agent-1.0.1.dist-info/RECORD,,