mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
fix(ci): update workflow tool counts
- hanzo_tools.filesystem -> hanzo_tools.fs - shell: 7 -> 11 tools (added bash, curl, jq, wget) - memory: 9 -> 1 (unified tool with actions) - agent: 10-12 -> 3 (AgentTool, IChingTool, ReviewTool) - Total: 40 tools
This commit is contained in:
@@ -63,22 +63,18 @@ jobs:
|
||||
python -c "
|
||||
# Packages with exact expected counts
|
||||
exact_packages = [
|
||||
('hanzo_tools.filesystem', 7),
|
||||
('hanzo_tools.shell', 7),
|
||||
('hanzo_tools.fs', 7), # read, write, edit, tree, find, search, ast
|
||||
('hanzo_tools.shell', 11), # dag, ps, zsh, bash, shell, npx, uvx, open, curl, jq, wget
|
||||
('hanzo_tools.browser', 1),
|
||||
('hanzo_tools.memory', 9),
|
||||
('hanzo_tools.memory', 1), # unified memory tool with actions
|
||||
('hanzo_tools.todo', 1),
|
||||
('hanzo_tools.reasoning', 2),
|
||||
('hanzo_tools.reasoning', 2), # think, critic
|
||||
('hanzo_tools.lsp', 1),
|
||||
('hanzo_tools.refactor', 1),
|
||||
('hanzo_tools.database', 8),
|
||||
('hanzo_tools.jupyter', 1),
|
||||
('hanzo_tools.editor', 3),
|
||||
]
|
||||
|
||||
# Packages with variable counts (min, max)
|
||||
variable_packages = [
|
||||
('hanzo_tools.agent', 10, 12), # Some CLI tools may not import on Linux
|
||||
('hanzo_tools.agent', 3), # agent, iching, review
|
||||
]
|
||||
|
||||
total = 0
|
||||
@@ -94,19 +90,8 @@ jobs:
|
||||
assert actual == expected, f'{pkg_name}: expected {expected}, got {actual}'
|
||||
total += actual
|
||||
|
||||
# Check variable packages
|
||||
for pkg_name, min_count, max_count in variable_packages:
|
||||
pkg = importlib.import_module(pkg_name)
|
||||
tools = getattr(pkg, 'TOOLS', [])
|
||||
actual = len(tools)
|
||||
in_range = min_count <= actual <= max_count
|
||||
status = '✓' if in_range else '✗'
|
||||
print(f'{status} {pkg_name}: {actual}/{min_count}-{max_count} tools')
|
||||
assert in_range, f'{pkg_name}: expected {min_count}-{max_count}, got {actual}'
|
||||
total += actual
|
||||
|
||||
print(f'\\nTotal: {total} tools')
|
||||
# Total: 41 (exact) + 10-12 (variable) = 51-53
|
||||
assert 51 <= total <= 53, f'Expected 51-53 tools, got {total}'
|
||||
# Total: 7+11+1+1+1+2+1+1+8+1+3+3 = 40
|
||||
assert total == 40, f'Expected 40 tools, got {total}'
|
||||
print('✓ All tool packages verified')
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user