cite-agent 1.0.1__py3-none-any.whl → 1.0.3__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.

cite_agent/__init__.py CHANGED
@@ -7,7 +7,7 @@ prior stacks preserved only in Git history, kept out of the runtime footprint.
7
7
 
8
8
  from .enhanced_ai_agent import EnhancedNocturnalAgent, ChatRequest, ChatResponse
9
9
 
10
- __version__ = "0.9.0b1"
10
+ __version__ = "1.0.3"
11
11
  __author__ = "Nocturnal Archive Team"
12
12
  __email__ = "contact@nocturnal.dev"
13
13
 
@@ -78,13 +78,24 @@ class AccountClient:
78
78
  "The 'requests' package is required for control-plane authentication"
79
79
  ) from exc
80
80
 
81
- endpoint = self.base_url.rstrip("/") + "/api/auth/login"
81
+ # Try login first
82
+ login_endpoint = self.base_url.rstrip("/") + "/api/auth/login"
82
83
  body = {"email": email, "password": password}
84
+
83
85
  try:
84
- response = requests.post(endpoint, json=body, timeout=self.timeout)
86
+ response = requests.post(login_endpoint, json=body, timeout=self.timeout)
85
87
  except Exception as exc: # pragma: no cover - network failure
86
88
  raise AccountProvisioningError("Failed to reach control plane") from exc
87
89
 
90
+ # If login fails with 401 (user doesn't exist), try registration
91
+ if response.status_code == 401:
92
+ register_endpoint = self.base_url.rstrip("/") + "/api/auth/register"
93
+ try:
94
+ response = requests.post(register_endpoint, json=body, timeout=self.timeout)
95
+ except Exception as exc:
96
+ raise AccountProvisioningError("Failed to register account") from exc
97
+
98
+ # If still failing, raise error
88
99
  if response.status_code >= 400:
89
100
  detail = self._extract_error_detail(response)
90
101
  raise AccountProvisioningError(
cite_agent/cli.py CHANGED
@@ -442,8 +442,8 @@ Examples:
442
442
 
443
443
  # Handle version
444
444
  if args.version:
445
- print("Nocturnal Archive v1.0.0")
446
- print("AI Research Assistant with real data integration")
445
+ print("Cite-Agent v1.0.3")
446
+ print("AI Research Assistant - Backend-Only Distribution")
447
447
  return
448
448
 
449
449
  if args.tips or (args.query and args.query.lower() == "tips" and not args.interactive):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cite-agent
3
- Version: 1.0.1
3
+ Version: 1.0.3
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
- cite_agent/__init__.py,sha256=wAXV2v8nNOmIAd0rh8196ItBl9hHWBVOBl5Re4VB77I,1645
3
- cite_agent/account_client.py,sha256=aiVJqVm8N_YM3BCyI4sl1ijSI-DMp9e1E6mbrMfSVAs,5218
2
+ cite_agent/__init__.py,sha256=bIPMfQXuaDOCAZE9pWvqpRbuBlgOvfh9uLQ3pakBMOY,1643
3
+ cite_agent/account_client.py,sha256=yLuzhIJoIZuXHXGbaVMzDxRATQwcy-wiaLnUrDuwUhI,5725
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=UBuoUhnHSWmiuTLO9f0uLxEEkd02X3iM0ESCZG3Qwek,18570
8
+ cite_agent/cli.py,sha256=NYg-gCdV8M6WhUN9Y6TawsjdITfo_7WPOa6ZIknN4dc,18564
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.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,,
18
+ cite_agent-1.0.3.dist-info/licenses/LICENSE,sha256=XJkyO4IymhSUniN1ENY6lLrL2729gn_rbRlFK6_Hi9M,1074
19
+ cite_agent-1.0.3.dist-info/METADATA,sha256=Ajj8pUFoOsTBQuNMRB6dELRoGhFi90CYbPSq1wQuO0I,6856
20
+ cite_agent-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ cite_agent-1.0.3.dist-info/entry_points.txt,sha256=bJ0u28nFIxQKH1PWQ2ak4PV-FAjhoxTC7YADEdDenFw,83
22
+ cite_agent-1.0.3.dist-info/top_level.txt,sha256=NNfD8pxDZzBK8tjDIpCs2BW9Va-OQ5qUFbEx0SgmyIE,11
23
+ cite_agent-1.0.3.dist-info/RECORD,,