dominusnode-superagi 1.2.0__tar.gz → 1.2.2__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: dominusnode-superagi
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Dominus Node toolkit for SuperAGI -- 22 proxy, wallet, and team management tools
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -22,7 +22,10 @@ SuperAGI's tool configuration.
22
22
 
23
23
  from __future__ import annotations
24
24
 
25
- from superagi.tools.base_tool import BaseToolkit
25
+ try:
26
+ from superagi.tools.base_tool import BaseToolkit
27
+ except ImportError:
28
+ BaseToolkit = object # Standalone mode — SuperAGI framework not installed
26
29
 
27
30
  from dominusnode_superagi.tools import (
28
31
  DominusNodeAccountInfoTool,
@@ -46,7 +46,19 @@ from urllib.parse import quote, urlparse
46
46
 
47
47
  import httpx
48
48
  from pydantic import BaseModel, Field
49
- from superagi.tools.base_tool import BaseTool
49
+
50
+ try:
51
+ from superagi.tools.base_tool import BaseTool
52
+ except ImportError:
53
+ # Standalone mode — SuperAGI framework not installed.
54
+ # Provide a minimal stub so tool classes can be imported and instantiated.
55
+ class BaseTool: # type: ignore[no-redef]
56
+ """Minimal BaseTool stub for standalone use without SuperAGI."""
57
+ def __init__(self, **kwargs: Any) -> None:
58
+ for k, v in kwargs.items():
59
+ setattr(self, k, v)
60
+ def _execute(self, **kwargs: Any) -> str:
61
+ raise NotImplementedError("SuperAGI framework not installed")
50
62
 
51
63
  # ---------------------------------------------------------------------------
52
64
  # SSRF Prevention -- blocked hostnames
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dominusnode-superagi
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: Dominus Node toolkit for SuperAGI -- 22 proxy, wallet, and team management tools
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dominusnode-superagi"
7
- version = "1.2.0"
7
+ version = "1.2.2"
8
8
  description = "Dominus Node toolkit for SuperAGI -- 22 proxy, wallet, and team management tools"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}