lockthard-cli 0.2.4__tar.gz → 0.2.5__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.
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/PKG-INFO +1 -1
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli/__init__.py +1 -1
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli/client.py +17 -1
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli.egg-info/PKG-INFO +1 -1
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/pyproject.toml +1 -1
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/README.md +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli/SKILL.md +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli/auth.py +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli/cli.py +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli/config.py +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli/formatters.py +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli.egg-info/SOURCES.txt +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli.egg-info/dependency_links.txt +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli.egg-info/entry_points.txt +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli.egg-info/requires.txt +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/lockthard_cli.egg-info/top_level.txt +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/setup.cfg +0 -0
- {lockthard_cli-0.2.4 → lockthard_cli-0.2.5}/tests/test_cli.py +0 -0
|
@@ -132,7 +132,23 @@ class LockthardClient:
|
|
|
132
132
|
return res if isinstance(res, list) else []
|
|
133
133
|
|
|
134
134
|
def get_tool_details(self, tool_id: str) -> Dict[str, Any]:
|
|
135
|
-
"""Get full details of a specific tool by ID or name.
|
|
135
|
+
"""Get full details of a specific tool by ID or name.
|
|
136
|
+
|
|
137
|
+
If tool_id doesn't look like a full ID (tablet:slug:index),
|
|
138
|
+
first search by name to resolve the ID.
|
|
139
|
+
"""
|
|
140
|
+
# If it's not a full ID, search first to resolve it
|
|
141
|
+
if ":" not in tool_id:
|
|
142
|
+
results = self.search_tools(query=tool_id, limit=5)
|
|
143
|
+
# Try exact name match first, then partial
|
|
144
|
+
for r in results:
|
|
145
|
+
if r.get("name", "").lower() == tool_id.lower():
|
|
146
|
+
tool_id = r["id"]
|
|
147
|
+
break
|
|
148
|
+
else:
|
|
149
|
+
if results:
|
|
150
|
+
tool_id = results[0]["id"]
|
|
151
|
+
|
|
136
152
|
res = self._mcp_call("tools/call", {
|
|
137
153
|
"name": "get_tool_details",
|
|
138
154
|
"arguments": {"tool_id": tool_id}
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "lockthard-cli"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.5"
|
|
8
8
|
description = "CLI and AI agent client for LOCKTHARD — query 2100+ curated AI tools across 86+ tablets"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|