clawtell 0.1.3__py3-none-any.whl → 0.1.4__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.
- clawtell/__init__.py +2 -2
- clawtell/client.py +39 -0
- {clawtell-0.1.3.dist-info → clawtell-0.1.4.dist-info}/METADATA +1 -1
- clawtell-0.1.4.dist-info/RECORD +9 -0
- clawtell-0.1.3.dist-info/RECORD +0 -9
- {clawtell-0.1.3.dist-info → clawtell-0.1.4.dist-info}/WHEEL +0 -0
- {clawtell-0.1.3.dist-info → clawtell-0.1.4.dist-info}/entry_points.txt +0 -0
- {clawtell-0.1.3.dist-info → clawtell-0.1.4.dist-info}/top_level.txt +0 -0
clawtell/__init__.py
CHANGED
|
@@ -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.
|
|
10
|
-
__all__ = ["ClawTell", "ClawTellError", "AuthenticationError", "NotFoundError", "RateLimitError"]
|
|
9
|
+
__version__ = "0.1.4"
|
|
10
|
+
__all__ = ["ClawTell", "ClawTellError", "AuthenticationError", "NotFoundError", "RateLimitError", "__version__"]
|
clawtell/client.py
CHANGED
|
@@ -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
|
+
})
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
clawtell/__init__.py,sha256=wHNHiSIQEq4pb5th3qzBUwhSvUpsUKgh5WiEVMDoEPg,319
|
|
2
|
+
clawtell/cli.py,sha256=BruTSnAa5Z4kDcvgaAgQhCwjEuiYi9uI_T4uyEGf90o,14516
|
|
3
|
+
clawtell/client.py,sha256=30FG9_jB8-GrizpogS-n-zs2rfVFNegxaR59OYK2rUo,15792
|
|
4
|
+
clawtell/exceptions.py,sha256=HQxHk68Z1BkV3RKsIqt5pTmCcH5Abe6dnWIs-OFqe9s,722
|
|
5
|
+
clawtell-0.1.4.dist-info/METADATA,sha256=tvFdXZ6HWjJpGdHA3lzYbw5umUcLCmiMMMY9OOpcYY0,5858
|
|
6
|
+
clawtell-0.1.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
7
|
+
clawtell-0.1.4.dist-info/entry_points.txt,sha256=QSphdy-oEADOkCz63ROVmNZ2FXCYfkJvuSM6ym4Nhho,47
|
|
8
|
+
clawtell-0.1.4.dist-info/top_level.txt,sha256=V6KZMDnZ41xr_BEe0DpG-qlvRjwOtL1cDHAFamomSpM,9
|
|
9
|
+
clawtell-0.1.4.dist-info/RECORD,,
|
clawtell-0.1.3.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
clawtell/__init__.py,sha256=BhjKMjTEmS3ACzWcyVBhP_sIGa-3fyKKw55zg9vQfzQ,304
|
|
2
|
-
clawtell/cli.py,sha256=BruTSnAa5Z4kDcvgaAgQhCwjEuiYi9uI_T4uyEGf90o,14516
|
|
3
|
-
clawtell/client.py,sha256=dkAx9Df9YD6LYo3oD_J09KMnLwBsJX_46DxSYMFu2Ww,14143
|
|
4
|
-
clawtell/exceptions.py,sha256=HQxHk68Z1BkV3RKsIqt5pTmCcH5Abe6dnWIs-OFqe9s,722
|
|
5
|
-
clawtell-0.1.3.dist-info/METADATA,sha256=HJjKd2y8jcUhIpmbGRy1hZgn52lmoTh7agw4IGVd5JY,5858
|
|
6
|
-
clawtell-0.1.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
7
|
-
clawtell-0.1.3.dist-info/entry_points.txt,sha256=QSphdy-oEADOkCz63ROVmNZ2FXCYfkJvuSM6ym4Nhho,47
|
|
8
|
-
clawtell-0.1.3.dist-info/top_level.txt,sha256=V6KZMDnZ41xr_BEe0DpG-qlvRjwOtL1cDHAFamomSpM,9
|
|
9
|
-
clawtell-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|