Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
50 lines
1.7 KiB
Python
50 lines
1.7 KiB
Python
"""
|
|
Integration test demonstrating that all tools get line numbers by default.
|
|
"""
|
|
|
|
from tools.analyze import AnalyzeTool
|
|
from tools.chat import ChatTool
|
|
from tools.codereview import CodeReviewTool
|
|
from tools.debug import DebugIssueTool
|
|
from tools.precommit import PrecommitTool
|
|
from tools.refactor import RefactorTool
|
|
from tools.testgen import TestGenTool
|
|
|
|
|
|
class TestLineNumbersIntegration:
|
|
"""Test that all tools inherit line number behavior correctly."""
|
|
|
|
def test_all_tools_want_line_numbers(self):
|
|
"""Verify that all tools want line numbers by default."""
|
|
tools = [
|
|
ChatTool(),
|
|
AnalyzeTool(),
|
|
CodeReviewTool(),
|
|
DebugIssueTool(),
|
|
RefactorTool(),
|
|
TestGenTool(),
|
|
PrecommitTool(),
|
|
]
|
|
|
|
for tool in tools:
|
|
assert tool.wants_line_numbers_by_default(), f"{tool.get_name()} should want line numbers by default"
|
|
|
|
def test_no_tools_override_line_numbers(self):
|
|
"""Verify that no tools override the base class line number behavior."""
|
|
# Check that tools don't have their own wants_line_numbers_by_default method
|
|
tools_classes = [
|
|
ChatTool,
|
|
AnalyzeTool,
|
|
CodeReviewTool,
|
|
DebugIssueTool,
|
|
RefactorTool,
|
|
TestGenTool,
|
|
PrecommitTool,
|
|
]
|
|
|
|
for tool_class in tools_classes:
|
|
# Check if the method is defined in the tool class itself
|
|
# (not inherited from base)
|
|
has_override = "wants_line_numbers_by_default" in tool_class.__dict__
|
|
assert not has_override, f"{tool_class.__name__} should not override wants_line_numbers_by_default"
|