mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
refactor: rename hanzo-tools-filesystem to hanzo-tools-fs
- Shorter package name for brevity - hanzo_tools.filesystem -> hanzo_tools.fs - Updated all dependencies and CI
This commit is contained in:
@@ -59,7 +59,7 @@ jobs:
|
||||
PACKAGES=""
|
||||
|
||||
# All hanzo-tools packages
|
||||
TOOLS_PACKAGES="hanzo-tools-core hanzo-tools-filesystem hanzo-tools-shell hanzo-tools-browser hanzo-tools-memory hanzo-tools-todo hanzo-tools-reasoning hanzo-tools-lsp hanzo-tools-refactor hanzo-tools-database hanzo-tools-agent hanzo-tools-jupyter hanzo-tools-editor hanzo-tools-llm hanzo-tools-vector hanzo-tools-config hanzo-tools-mcp hanzo-tools-computer hanzo-tools"
|
||||
TOOLS_PACKAGES="hanzo-tools-core hanzo-tools-fs hanzo-tools-shell hanzo-tools-browser hanzo-tools-memory hanzo-tools-todo hanzo-tools-reasoning hanzo-tools-lsp hanzo-tools-refactor hanzo-tools-database hanzo-tools-agent hanzo-tools-jupyter hanzo-tools-editor hanzo-tools-llm hanzo-tools-vector hanzo-tools-config hanzo-tools-mcp hanzo-tools-computer hanzo-tools"
|
||||
|
||||
# Main packages
|
||||
MAIN_PACKAGES="hanzoai hanzo hanzo-consensus hanzo-network hanzo-mcp hanzo-memory hanzo-aci hanzo-repl"
|
||||
@@ -74,8 +74,8 @@ jobs:
|
||||
# Handle specific package tags
|
||||
elif [[ $TAG == hanzo-tools-core-* ]]; then
|
||||
PACKAGES="hanzo-tools-core"
|
||||
elif [[ $TAG == hanzo-tools-filesystem-* ]]; then
|
||||
PACKAGES="hanzo-tools-filesystem"
|
||||
elif [[ $TAG == hanzo-tools-fs-* ]]; then
|
||||
PACKAGES="hanzo-tools-fs"
|
||||
elif [[ $TAG == hanzo-tools-shell-* ]]; then
|
||||
PACKAGES="hanzo-tools-shell"
|
||||
elif [[ $TAG == hanzo-tools-browser-* ]]; then
|
||||
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
source .venv/bin/activate
|
||||
# Install all tool packages
|
||||
uv pip install -e pkg/hanzo-tools-core
|
||||
uv pip install -e pkg/hanzo-tools-filesystem
|
||||
uv pip install -e pkg/hanzo-tools-fs
|
||||
uv pip install -e pkg/hanzo-tools-shell
|
||||
uv pip install -e pkg/hanzo-tools-browser
|
||||
uv pip install -e pkg/hanzo-tools-memory
|
||||
|
||||
@@ -26,7 +26,7 @@ dependencies = [
|
||||
"aiofiles>=23.2.1",
|
||||
# Hanzo tool infrastructure (all tools)
|
||||
"hanzo-tools>=0.3.0",
|
||||
"hanzo-tools-filesystem>=0.1.0",
|
||||
"hanzo-tools-fs>=0.1.0",
|
||||
"hanzo-tools-shell>=0.1.0",
|
||||
"hanzo-tools-browser>=0.1.0",
|
||||
"hanzo-tools-memory>=0.1.0",
|
||||
@@ -42,7 +42,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
# For local development, install hanzo-tools-* packages from pkg/
|
||||
# pip install -e ../hanzo-tools ../hanzo-tools-filesystem etc.
|
||||
# pip install -e ../hanzo-tools ../hanzo-tools-fs etc.
|
||||
# Or when published, add them back as dependencies
|
||||
|
||||
[project.urls]
|
||||
@@ -52,9 +52,9 @@ dependencies = [
|
||||
|
||||
[project.optional-dependencies]
|
||||
# NOTE: hanzo-tools-* packages are installed separately from pkg/
|
||||
# Use: pip install -e ../hanzo-tools -e ../hanzo-tools-filesystem etc.
|
||||
# Use: pip install -e ../hanzo-tools -e ../hanzo-tools-fs etc.
|
||||
# When published to PyPI, these extras will work:
|
||||
# filesystem = ["hanzo-tools-filesystem>=0.1.0"]
|
||||
# filesystem = ["hanzo-tools-fs>=0.1.0"]
|
||||
# shell = ["hanzo-tools-shell>=0.1.0"]
|
||||
# etc.
|
||||
|
||||
|
||||
+10
-10
@@ -12,25 +12,25 @@ Tools:
|
||||
- rules: Read project rules/config
|
||||
|
||||
Install:
|
||||
pip install hanzo-tools-filesystem
|
||||
pip install hanzo-tools-fs
|
||||
|
||||
Usage:
|
||||
from hanzo_tools.filesystem import register_tools, TOOLS
|
||||
from hanzo_tools.fs import register_tools, TOOLS
|
||||
|
||||
# Register with MCP server
|
||||
register_tools(mcp_server, permission_manager)
|
||||
|
||||
# Or access individual tools
|
||||
from hanzo_tools.filesystem import ReadTool, WriteTool
|
||||
from hanzo_tools.fs import ReadTool, WriteTool
|
||||
"""
|
||||
|
||||
from hanzo_tools.filesystem.ast import ASTTool
|
||||
from hanzo_tools.filesystem.edit import EditTool
|
||||
from hanzo_tools.filesystem.find import FindTool
|
||||
from hanzo_tools.filesystem.read import ReadTool
|
||||
from hanzo_tools.filesystem.tree import TreeTool
|
||||
from hanzo_tools.filesystem.write import WriteTool
|
||||
from hanzo_tools.filesystem.search import SearchTool
|
||||
from hanzo_tools.fs.ast import ASTTool
|
||||
from hanzo_tools.fs.edit import EditTool
|
||||
from hanzo_tools.fs.find import FindTool
|
||||
from hanzo_tools.fs.read import ReadTool
|
||||
from hanzo_tools.fs.tree import TreeTool
|
||||
from hanzo_tools.fs.write import WriteTool
|
||||
from hanzo_tools.fs.search import SearchTool
|
||||
|
||||
# Backwards compatibility aliases
|
||||
Edit = EditTool
|
||||
@@ -3,8 +3,8 @@ requires = ["setuptools>=61.0.0", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "hanzo-tools-filesystem"
|
||||
version = "0.2.0"
|
||||
name = "hanzo-tools-fs"
|
||||
version = "0.3.0"
|
||||
description = "Filesystem tools for Hanzo AI - read, write, edit, search, find"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
@@ -26,9 +26,6 @@ dependencies = [
|
||||
"pydantic>=2.12.5",
|
||||
]
|
||||
|
||||
# For development, install hanzo-tools from local:
|
||||
# uv pip install -e ../hanzo-tools
|
||||
|
||||
[project.urls]
|
||||
"Homepage" = "https://github.com/hanzoai/python-sdk"
|
||||
|
||||
@@ -36,7 +33,7 @@ dependencies = [
|
||||
dev = ["pytest>=7.0.0", "ruff>=0.14.0"]
|
||||
|
||||
[project.entry-points."hanzo.tools"]
|
||||
filesystem = "hanzo_tools.filesystem:TOOLS"
|
||||
fs = "hanzo_tools.fs:TOOLS"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["."]
|
||||
@@ -27,7 +27,7 @@ dependencies = [
|
||||
|
||||
[project.optional-dependencies]
|
||||
# Individual tool packages
|
||||
filesystem = ["hanzo-tools-filesystem>=0.1.0"]
|
||||
filesystem = ["hanzo-tools-fs>=0.1.0"]
|
||||
shell = ["hanzo-tools-shell>=0.1.0"]
|
||||
browser = ["hanzo-tools-browser>=0.1.0"]
|
||||
llm = ["hanzo-tools-llm>=0.1.0"]
|
||||
@@ -47,7 +47,7 @@ computer = ["hanzo-tools-computer>=0.1.0"]
|
||||
|
||||
# Bundles
|
||||
dev = [
|
||||
"hanzo-tools-filesystem>=0.1.0",
|
||||
"hanzo-tools-fs>=0.1.0",
|
||||
"hanzo-tools-shell>=0.1.0",
|
||||
"hanzo-tools-todo>=0.1.0",
|
||||
"hanzo-tools-reasoning>=0.1.0",
|
||||
@@ -62,7 +62,7 @@ ai = [
|
||||
"hanzo-tools-memory>=0.1.0",
|
||||
]
|
||||
all = [
|
||||
"hanzo-tools-filesystem>=0.1.0",
|
||||
"hanzo-tools-fs>=0.1.0",
|
||||
"hanzo-tools-shell>=0.1.0",
|
||||
"hanzo-tools-browser>=0.1.0",
|
||||
"hanzo-tools-llm>=0.1.0",
|
||||
|
||||
Reference in New Issue
Block a user