cite-agent 1.0.1__tar.gz → 1.0.2__tar.gz

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.

Files changed (30) hide show
  1. {cite_agent-1.0.1/cite_agent.egg-info → cite_agent-1.0.2}/PKG-INFO +1 -1
  2. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/account_client.py +13 -2
  3. {cite_agent-1.0.1 → cite_agent-1.0.2/cite_agent.egg-info}/PKG-INFO +1 -1
  4. {cite_agent-1.0.1 → cite_agent-1.0.2}/setup.py +1 -1
  5. {cite_agent-1.0.1 → cite_agent-1.0.2}/LICENSE +0 -0
  6. {cite_agent-1.0.1 → cite_agent-1.0.2}/MANIFEST.in +0 -0
  7. {cite_agent-1.0.1 → cite_agent-1.0.2}/README.md +0 -0
  8. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/__distribution__.py +0 -0
  9. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/__init__.py +0 -0
  10. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/agent_backend_only.py +0 -0
  11. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/ascii_plotting.py +0 -0
  12. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/auth.py +0 -0
  13. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/backend_only_client.py +0 -0
  14. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/cli.py +0 -0
  15. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/cli_enhanced.py +0 -0
  16. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/dashboard.py +0 -0
  17. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/enhanced_ai_agent.py +0 -0
  18. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/rate_limiter.py +0 -0
  19. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/setup_config.py +0 -0
  20. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/telemetry.py +0 -0
  21. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/ui.py +0 -0
  22. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/updater.py +0 -0
  23. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent/web_search.py +0 -0
  24. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent.egg-info/SOURCES.txt +0 -0
  25. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent.egg-info/dependency_links.txt +0 -0
  26. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent.egg-info/entry_points.txt +0 -0
  27. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent.egg-info/requires.txt +0 -0
  28. {cite_agent-1.0.1 → cite_agent-1.0.2}/cite_agent.egg-info/top_level.txt +0 -0
  29. {cite_agent-1.0.1 → cite_agent-1.0.2}/requirements.txt +0 -0
  30. {cite_agent-1.0.1 → cite_agent-1.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cite-agent
3
- Version: 1.0.1
3
+ Version: 1.0.2
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
@@ -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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cite-agent
3
- Version: 1.0.1
3
+ Version: 1.0.2
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
@@ -7,7 +7,7 @@ long_description = readme_path.read_text() if readme_path.exists() else "AI Rese
7
7
 
8
8
  setup(
9
9
  name="cite-agent",
10
- version="1.0.1",
10
+ version="1.0.2",
11
11
  author="Cite-Agent Team",
12
12
  author_email="contact@citeagent.dev",
13
13
  description="AI Research Assistant - Backend-Only Distribution",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes