commune-cli 0.1.8__tar.gz → 0.1.9__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.
Files changed (28) hide show
  1. {commune_cli-0.1.8 → commune_cli-0.1.9}/PKG-INFO +1 -1
  2. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/sms.py +12 -13
  3. {commune_cli-0.1.8 → commune_cli-0.1.9}/pyproject.toml +1 -1
  4. {commune_cli-0.1.8 → commune_cli-0.1.9}/.gitignore +0 -0
  5. {commune_cli-0.1.8 → commune_cli-0.1.9}/README.md +0 -0
  6. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/__init__.py +0 -0
  7. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/banner.py +0 -0
  8. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/client.py +0 -0
  9. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/__init__.py +0 -0
  10. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/attachments.py +0 -0
  11. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/config_cmd.py +0 -0
  12. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/credits.py +0 -0
  13. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/data.py +0 -0
  14. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/delivery.py +0 -0
  15. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/dmarc.py +0 -0
  16. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/domains.py +0 -0
  17. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/inboxes.py +0 -0
  18. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/messages.py +0 -0
  19. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/phone_numbers.py +0 -0
  20. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/search.py +0 -0
  21. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/threads.py +0 -0
  22. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/commands/webhooks.py +0 -0
  23. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/config.py +0 -0
  24. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/errors.py +0 -0
  25. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/main.py +0 -0
  26. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/output.py +0 -0
  27. {commune_cli-0.1.8 → commune_cli-0.1.9}/commune_cli/state.py +0 -0
  28. {commune_cli-0.1.8 → commune_cli-0.1.9}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commune-cli
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Official CLI for the Commune email API — agent-native, pipe-friendly, covers every API surface.
5
5
  Project-URL: Homepage, https://commune.email
6
6
  Project-URL: Documentation, https://docs.commune.email
@@ -50,7 +50,7 @@ def sms_send(
50
50
  print_json(data)
51
51
  return
52
52
 
53
- msg_id = data.get("id") or data.get("messageId", "")
53
+ msg_id = (data.get("data") or {}).get("message_id", "")
54
54
  print_success(f"SMS sent. ID: [bold]{msg_id}[/bold]")
55
55
 
56
56
 
@@ -87,10 +87,10 @@ def sms_conversations(
87
87
  json_output=json_output or state.should_json(),
88
88
  title="SMS Conversations",
89
89
  columns=[
90
- ("Remote Number", "remoteNumber"),
91
- ("Last Message", "lastMessage"),
92
- ("Direction", "lastDirection"),
93
- ("Updated", "updatedAt"),
90
+ ("Remote Number", "remote_number"),
91
+ ("Last Message", "last_message_preview"),
92
+ ("Messages", "message_count"),
93
+ ("Updated", "last_message_at"),
94
94
  ],
95
95
  )
96
96
 
@@ -135,10 +135,10 @@ def sms_thread(
135
135
  json_output=False,
136
136
  title=f"Thread with {remote_number}",
137
137
  columns=[
138
- ("ID", "id"),
138
+ ("ID", "message_id"),
139
139
  ("Direction", "direction"),
140
- ("Body", "body"),
141
- ("Sent At", "createdAt"),
140
+ ("Body", "content"),
141
+ ("Sent At", "created_at"),
142
142
  ],
143
143
  )
144
144
 
@@ -178,11 +178,10 @@ def sms_search(
178
178
  json_output=json_output or state.should_json(),
179
179
  title=f"SMS Search: {query}",
180
180
  columns=[
181
- ("ID", "id"),
182
- ("From", "from"),
183
- ("To", "to"),
184
- ("Body", "body"),
185
- ("Date", "createdAt"),
181
+ ("ID", "message_id"),
182
+ ("Direction", "direction"),
183
+ ("Body", "content"),
184
+ ("Date", "created_at"),
186
185
  ],
187
186
  )
188
187
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "commune-cli"
7
- version = "0.1.8"
7
+ version = "0.1.9"
8
8
  description = "Official CLI for the Commune email API — agent-native, pipe-friendly, covers every API surface."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
File without changes
File without changes
File without changes