swiftapi-python 1.0.2__tar.gz → 1.0.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: swiftapi-python
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: SwiftAPI Python SDK - AI Action Verification Gateway
5
5
  Author-email: Rayan Pal <rayan@swiftapi.ai>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "swiftapi-python"
7
- version = "1.0.2"
7
+ version = "1.0.3"
8
8
  description = "SwiftAPI Python SDK - AI Action Verification Gateway"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -30,18 +30,29 @@ class Colors:
30
30
  RED = GREEN = YELLOW = BLUE = MAGENTA = CYAN = WHITE = RESET = BOLD = ""
31
31
 
32
32
 
33
- # Unicode symbols
33
+ # Unicode symbols - Windows-safe fallbacks
34
34
  class Symbols:
35
35
  """Unicode symbols for SwiftAPI output."""
36
36
 
37
- LOCK = "\U0001F512" # Locked
38
- UNLOCK = "\U0001F513" # Unlocked
39
- CHECK = "\u2713" # Checkmark
40
- CROSS = "\u2717" # X mark
41
- SHIELD = "\U0001F6E1" # Shield
42
- KEY = "\U0001F511" # Key
43
- WARNING = "\u26A0" # Warning
44
- LIGHTNING = "\u26A1" # Lightning bolt
37
+ if sys.platform == 'win32':
38
+ # Windows console can't encode emoji - use ASCII fallbacks
39
+ LOCK = "[DENIED]"
40
+ UNLOCK = "[UNLOCKED]"
41
+ CHECK = "[OK]"
42
+ CROSS = "[X]"
43
+ SHIELD = "[VERIFIED]"
44
+ KEY = "[KEY]"
45
+ WARNING = "[!]"
46
+ LIGHTNING = "[*]"
47
+ else:
48
+ LOCK = "\U0001F512" # Locked
49
+ UNLOCK = "\U0001F513" # Unlocked
50
+ CHECK = "\u2713" # Checkmark
51
+ CROSS = "\u2717" # X mark
52
+ SHIELD = "\U0001F6E1" # Shield
53
+ KEY = "\U0001F511" # Key
54
+ WARNING = "\u26A0" # Warning
55
+ LIGHTNING = "\u26A1" # Lightning bolt
45
56
 
46
57
 
47
58
  def print_approved(action_type: str, intent: str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: swiftapi-python
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: SwiftAPI Python SDK - AI Action Verification Gateway
5
5
  Author-email: Rayan Pal <rayan@swiftapi.ai>
6
6
  License-Expression: MIT