Skip to content

Commit e2b3096

Browse files
committed
fix: CTO review — version targets, slash command parity, dataclass default
1. pyproject.toml: ruff/mypy target py38→py312, remove 3.8-3.11 classifiers 2. command_suggestions.py: add /branch /commit /commit-push-pr /diff /stash /worktree 3. command_suggestions.py: fix aliases default None → Optional[List[str]]
1 parent 79d7398 commit e2b3096

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

pkg/hanzo-dev/pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ classifiers = [
1313
"Intended Audience :: Developers",
1414
"License :: OSI Approved :: BSD License",
1515
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.8",
17-
"Programming Language :: Python :: 3.9",
18-
"Programming Language :: Python :: 3.10",
19-
"Programming Language :: Python :: 3.11",
2016
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
2118
"Topic :: Software Development :: Libraries :: Python Modules",
2219
"Topic :: Software Development :: Testing",
2320
"Topic :: Scientific/Engineering :: Artificial Intelligence",
@@ -86,14 +83,14 @@ packages = ["src/hanzo_dev"]
8683

8784
[tool.ruff]
8885
line-length = 120
89-
target-version = "py38"
86+
target-version = "py312"
9087

9188
[tool.ruff.lint]
9289
select = ["E", "F", "I", "B", "UP", "N", "S", "A", "C4", "T20", "RET", "SIM", "ARG"]
9390
ignore = ["E501", "S101"]
9491

9592
[tool.mypy]
96-
python_version = "3.8"
93+
python_version = "3.12"
9794
strict = true
9895
warn_return_any = true
9996
warn_unused_configs = true

pkg/hanzo-dev/src/hanzo_dev/command_suggestions.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SlashCommand:
1616

1717
command: str
1818
description: str
19-
aliases: List[str] = None
19+
aliases: Optional[List[str]] = None
2020

2121
def matches(self, query: str) -> bool:
2222
"""Check if command matches query."""
@@ -75,12 +75,16 @@ class CommandSuggestions(Vertical):
7575
SlashCommand("/auth", "Authenticate with Claude personal account"),
7676
SlashCommand("/auto", "Execute prompt autonomously with tools"),
7777
SlashCommand("/backend", "Switch AI backend (claude/openai/embedded)"),
78-
SlashCommand("/bug", "Submit feedback about Hanzo REPL"),
78+
SlashCommand("/branch", "List or create git branches"),
79+
SlashCommand("/bug", "Submit feedback about Hanzo Dev"),
7980
SlashCommand("/clear", "Clear session history and start fresh"),
8081
SlashCommand("/code", "Implement with consensus from multiple review passes"),
82+
SlashCommand("/commit", "Commit staged changes"),
83+
SlashCommand("/commit-push-pr", "Commit, push, and create PR"),
8184
SlashCommand("/compact", "Compact session keeping a summary in context"),
8285
SlashCommand("/config", "Show loaded configuration files", ["theme"]),
8386
SlashCommand("/cost", "Show total cost and duration of current session"),
87+
SlashCommand("/diff", "Show working tree diff"),
8488
SlashCommand("/doctor", "Check the health of your Hanzo installation"),
8589
SlashCommand("/exit", "Exit the REPL", ["quit"]),
8690
SlashCommand("/export", "Export conversation to file"),
@@ -104,12 +108,14 @@ class CommandSuggestions(Vertical):
104108
SlashCommand("/resume", "Load saved session from JSON file"),
105109
SlashCommand("/run", "Run a shell command"),
106110
SlashCommand("/search", "Search for content using MCP tools"),
111+
SlashCommand("/stash", "Manage git stash (pop/list)"),
107112
SlashCommand("/session", "List or switch saved sessions"),
108113
SlashCommand("/solve", "Race multiple approaches, present best solution"),
109114
SlashCommand("/status", "Model, session info, token usage"),
110115
SlashCommand("/tools", "Show available MCP tools"),
111116
SlashCommand("/version", "Show version info"),
112117
SlashCommand("/voice", "Enable voice mode for bidirectional communication"),
118+
SlashCommand("/worktree", "Manage git worktrees"),
113119
]
114120

115121
selected_index = reactive(0)

0 commit comments

Comments
 (0)