Skip to content

refactor: extract daemon path helpers to avoid CLI importing cocoindex#130

Merged
georgeh0 merged 2 commits intomainfrom
g/extract-daemon-paths
Apr 9, 2026
Merged

refactor: extract daemon path helpers to avoid CLI importing cocoindex#130
georgeh0 merged 2 commits intomainfrom
g/extract-daemon-paths

Conversation

@georgeh0
Copy link
Copy Markdown
Member

@georgeh0 georgeh0 commented Apr 9, 2026

Summary

  • Extract daemon path/connection helpers (daemon_dir, daemon_socket_path, daemon_pid_path, daemon_log_path, connection_family) from daemon.py into a new lightweight _daemon_paths.py module
  • Update client.py, cli.py, and tests to import from _daemon_paths instead of daemon
  • This prevents the CLI client from transitively importing cocoindex and its heavy dependencies (numpy, torch, etc.) when it only needs path utilities

Test plan

  • CI — all 107 existing tests pass, mypy clean

georgeh0 and others added 2 commits April 9, 2026 11:37
Move daemon_dir, daemon_socket_path, daemon_pid_path, daemon_log_path,
and connection_family from daemon.py into a new lightweight _daemon_paths.py
module. This prevents the CLI client from transitively importing cocoindex
and its heavy dependencies (numpy, torch, etc.) when it only needs path
utilities.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
tokenizers lacks pre-built wheels for cp314t (free-threaded ABI),
so uv falls back to compiling from Rust source. This source build
is fragile across macOS runner image updates and broke after the
20260406 image bump. Mark 3.14t jobs as continue-on-error since
free-threaded wheel coverage across the ecosystem is still limited.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@georgeh0 georgeh0 merged commit 21f858e into main Apr 9, 2026
4 of 5 checks passed
@georgeh0 georgeh0 deleted the g/extract-daemon-paths branch April 9, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant