sqlsaber 0.8.0__py3-none-any.whl → 0.8.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 sqlsaber might be problematic. Click here for more details.

@@ -117,10 +117,14 @@ class Config:
117
117
 
118
118
  def validate(self):
119
119
  """Validate that necessary configuration is present."""
120
- if self.auth_method == AuthMethod.CLAUDE_PRO and not self.oauth_token:
121
- raise ValueError(
122
- "OAuth token not available. Run 'saber auth setup' to authenticate with Claude Pro."
123
- )
124
- else:
125
- if not self.api_key:
126
- raise ValueError("Anthropic API key not found.")
120
+ # 1. Claude-Pro flow require OAuth token only
121
+ if self.auth_method == AuthMethod.CLAUDE_PRO:
122
+ if not self.oauth_token:
123
+ raise ValueError(
124
+ "OAuth token not available. Run 'saber auth setup' to authenticate with Claude Pro."
125
+ )
126
+ return # OAuth path satisfied nothing more to check
127
+
128
+ # 2. Default / API-key flow → require API key
129
+ if not self.api_key:
130
+ raise ValueError("Anthropic API key not found.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlsaber
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: SQLSaber - Agentic SQL assistant like Claude Code
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.12
@@ -27,7 +27,7 @@ sqlsaber/config/auth.py,sha256=b5qB2h1doXyO9Bn8z0CcL8LAR2jF431gGXBGKLgTmtQ,2756
27
27
  sqlsaber/config/database.py,sha256=c6q3l4EvoBch1ckYHA70hf6L7fSOY-sItnLCpvJiPrA,11357
28
28
  sqlsaber/config/oauth_flow.py,sha256=A3bSXaBLzuAfXV2ZPA94m9NV33c2MyL6M4ii9oEkswQ,10291
29
29
  sqlsaber/config/oauth_tokens.py,sha256=C9z35hyx-PvSAYdC1LNf3rg9_wsEIY56hkEczelbad0,6015
30
- sqlsaber/config/settings.py,sha256=H2NrTaB7Vy5YWhg6k1g94XiQHZq0LZOQEd1ILtx7GHw,4567
30
+ sqlsaber/config/settings.py,sha256=gKhGlErzsBk39RoRSy1b8pb-bN2K7HIaPaBgbJDhY4M,4753
31
31
  sqlsaber/database/__init__.py,sha256=a_gtKRJnZVO8-fEZI7g3Z8YnGa6Nio-5Y50PgVp07ss,176
32
32
  sqlsaber/database/connection.py,sha256=sZVGNMzMwiM11GrsLLPwR8A5ugzJ5O0TCdkrt0KVRuI,15123
33
33
  sqlsaber/database/schema.py,sha256=B4emtbaNiqjz6aGBUQYYwARsTMqBilvWSurNg_zKu9U,28600
@@ -39,8 +39,8 @@ sqlsaber/memory/storage.py,sha256=ne8szLlGj5NELheqLnI7zu21V8YS4rtpYGGC7tOmi-s,57
39
39
  sqlsaber/models/__init__.py,sha256=RJ7p3WtuSwwpFQ1Iw4_DHV2zzCtHqIzsjJzxv8kUjUE,287
40
40
  sqlsaber/models/events.py,sha256=89SXKb5GGpH01yTr2kPEBhzp9xv35RFIYuFdAZSIPoE,721
41
41
  sqlsaber/models/types.py,sha256=w-zk81V2dtveuteej36_o1fDK3So428j3P2rAejU62U,862
42
- sqlsaber-0.8.0.dist-info/METADATA,sha256=jksWiXSR2Qy0O2KgeYm6pCY5boEBM1kO6lJuYSHV6_Y,5986
43
- sqlsaber-0.8.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
- sqlsaber-0.8.0.dist-info/entry_points.txt,sha256=jmFo96Ylm0zIKXJBwhv_P5wQ7SXP9qdaBcnTp8iCEe8,195
45
- sqlsaber-0.8.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
46
- sqlsaber-0.8.0.dist-info/RECORD,,
42
+ sqlsaber-0.8.1.dist-info/METADATA,sha256=wmQlEB13kRa35a-n6oIFSg0YExXE0iF7_V4GZWkuLRA,5986
43
+ sqlsaber-0.8.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
+ sqlsaber-0.8.1.dist-info/entry_points.txt,sha256=jmFo96Ylm0zIKXJBwhv_P5wQ7SXP9qdaBcnTp8iCEe8,195
45
+ sqlsaber-0.8.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
46
+ sqlsaber-0.8.1.dist-info/RECORD,,