Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kapillamba4/code-memory
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.31
Choose a base ref
...
head repository: kapillamba4/code-memory
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.32
Choose a head ref
  • 2 commits
  • 26 files changed
  • 2 contributors

Commits on May 10, 2026

  1. Remove dead code surfaced by find_dead_code (#8)

    Drop six unreferenced functions:
    - db.py: upsert_symbol, upsert_reference, upsert_embedding (parser.py
      performs writes inline through batch_insert_embeddings and direct
      cursor calls; these helpers had no callers)
    - logging_config.py: get_parser_logger, get_git_logger
    - validation.py: validate_path_in_directory
    
    Also fix the transaction() docstring example to reference upsert_file,
    which is the actual function used in parser.py:594.
    
    Verified with the find_dead_code MCP tool (0 candidates after removal)
    and pytest on the touched modules (59 tests pass).
    
    Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    kapillamba4 and claude authored May 10, 2026
    Configuration menu
    Copy the full SHA
    6bffd1d View commit details
    Browse the repository at this point in the history

Commits on May 11, 2026

  1. Restructure as code_memory package and bump to 1.0.32 (#9)

    * Restructure as code_memory package and bump to 1.0.32
    
    - Move sources into a `code_memory/` package so `pip install code-memory`
      stops shipping top-level modules (`db`, `parser`, `queries`, etc.) into
      users' site-packages. Convert intra-package imports to relative; tests
      now use absolute `from code_memory import ...`. Remove sys.path hacks
      from conftest.py and test_dead_code.py.
    - Delete unused test_pydantic.py debug script that previously shipped in
      the wheel.
    - Fix author name typo (Lambert -> Lamba) in pyproject.toml.
    - Expand CI mypy from 3 files to the whole `code_memory` package, with
      per-module `ignore_errors` overrides for 4 modules pending type cleanup
      (db, doc_parser, git_search, parser).
    - Expand CI test matrix to ubuntu, macos, and windows runners with
      fail-fast disabled.
    - Extract `_hint_if_unindexed` helper in server.py and remove all 6 stale
      `# type: ignore[typeddict-unknown-key]` annotations (the `hint` field
      is already declared as NotRequired in api_types).
    - Bump version 1.0.31 -> 1.0.32 in pyproject.toml, server.json (x2), uv.lock.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    
    * Fix path-equality tests on macOS
    
    `validate_directory`/`validate_file` resolve symlinks (intentional —
    collapses `..` and normalises). On macOS, `/tmp` is a symlink to
    `/private/tmp`, so the resolved result diverges from the unresolved
    tempdir path. Compare against `.resolve()` instead.
    
    Surfaced by the new ubuntu/macos/windows CI matrix.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    
    * Tolerate Windows tempdir cleanup errors in tests
    
    `get_db()` opens a sqlite3 connection but tools (e.g. find_dead_code)
    don't explicitly close it. On Linux/macOS this is harmless since the
    OS happily unlinks open files, but on Windows the .db file stays
    locked until the Connection is GC'd, which can outlive the fixture
    and break `TemporaryDirectory.cleanup()`.
    
    Pass `ignore_cleanup_errors=True` so the teardown is best-effort.
    Fixing the underlying connection leak is a separate concern.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    kapillamba4 and claude authored May 11, 2026
    Configuration menu
    Copy the full SHA
    563788a View commit details
    Browse the repository at this point in the history
Loading