Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions api_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,37 @@ class SearchHistoryCommitDetailResponse(TypedDict):
)


# ---------------------------------------------------------------------------
# find_dead_code Tool
# ---------------------------------------------------------------------------


class DeadCodeCandidate(TypedDict):
"""A single dead-code candidate returned by find_dead_code."""

name: str
kind: str
file_path: str
line_start: int
line_end: int
confidence: float
reasons: list[str]
source_excerpt: str | None


class FindDeadCodeResponse(TypedDict):
"""Response from the find_dead_code tool."""

status: Literal["ok"]
directory: str
candidates: list[DeadCodeCandidate]
count: int
scanned_symbols: int
total_symbols: int
limitations: list[str]
hint: NotRequired[str]


# ---------------------------------------------------------------------------
# Tool Response Union Types
# ---------------------------------------------------------------------------
Expand All @@ -481,5 +512,6 @@ class SearchHistoryCommitDetailResponse(TypedDict):
| IndexCodebaseResponse
| SearchDocsResponse
| SearchHistoryResponse
| FindDeadCodeResponse
| ErrorResponse
)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "code-memory"
version = "1.0.29"
version = "1.0.30"
description = "A deterministic, high-precision code intelligence MCP server"
readme = "README.md"
license = "MIT"
Expand Down
Loading
Loading