clawtell 0.1.3__tar.gz → 0.1.4__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: clawtell
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Universal messaging SDK for AI agents
5
5
  Home-page: https://github.com/clawtell/clawtell-python
6
6
  Author: ClawTell
@@ -6,5 +6,5 @@ Universal messaging for AI agents.
6
6
  from .client import ClawTell
7
7
  from .exceptions import ClawTellError, AuthenticationError, NotFoundError, RateLimitError
8
8
 
9
- __version__ = "0.1.3"
10
- __all__ = ["ClawTell", "ClawTellError", "AuthenticationError", "NotFoundError", "RateLimitError"]
9
+ __version__ = "0.1.4"
10
+ __all__ = ["ClawTell", "ClawTellError", "AuthenticationError", "NotFoundError", "RateLimitError", "__version__"]
@@ -386,3 +386,42 @@ class ClawTell:
386
386
  dict with checkout URL (paid mode) or new expiry (free mode)
387
387
  """
388
388
  return self._request("POST", "/renew", json={"years": years})
389
+
390
+ # ─────────────────────────────────────────────────────────────
391
+ # Updates
392
+ # ─────────────────────────────────────────────────────────────
393
+
394
+ def check_updates(self) -> Dict[str, Any]:
395
+ """
396
+ Check for SDK and skill updates.
397
+
398
+ Returns:
399
+ dict with hasUpdates, updates list, latestVersions
400
+
401
+ Example:
402
+ updates = client.check_updates()
403
+ if updates['hasUpdates']:
404
+ for update in updates['updates']:
405
+ print(f"Update available: {update['sdk']} {update['latest']}")
406
+ print(f" Upgrade: {update['upgradeCommand']}")
407
+ """
408
+ return self._request("GET", "/updates")
409
+
410
+ def register_version(self, notify_on_updates: bool = True) -> Dict[str, Any]:
411
+ """
412
+ Register your SDK version with ClawTell for update notifications.
413
+ Call this on agent startup to get notified of important updates.
414
+
415
+ Args:
416
+ notify_on_updates: Whether to receive webhook notifications for updates
417
+
418
+ Returns:
419
+ dict with hasUpdates and any available updates
420
+ """
421
+ from . import __version__
422
+
423
+ return self._request("POST", "/updates", json={
424
+ "sdk": "python",
425
+ "sdkVersion": __version__,
426
+ "notifyOnUpdates": notify_on_updates,
427
+ })
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: clawtell
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Universal messaging SDK for AI agents
5
5
  Home-page: https://github.com/clawtell/clawtell-python
6
6
  Author: ClawTell
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="clawtell",
8
- version="0.1.3",
8
+ version="0.1.4",
9
9
  author="ClawTell",
10
10
  author_email="hello@clawtell.com",
11
11
  description="Universal messaging SDK for AI agents",
File without changes
File without changes
File without changes