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
13 changes: 5 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [

dependencies = [
"mcp>=1.0.0",
"cocoindex[litellm]==1.0.0a43",
"cocoindex[litellm]>=1.0.0,<1.1.0",
"sqlite-vec>=0.1.0",
"pydantic>=2.0.0",
"numpy>=1.24.0",
Expand All @@ -39,23 +39,23 @@ dependencies = [
# `embeddings-local` is the primary feature extra: it pulls in
# `sentence-transformers` (via cocoindex) so local embeddings work without
# an API key.
embeddings-local = ["cocoindex[sentence-transformers]==1.0.0a43"]
embeddings-local = ["cocoindex[sentence-transformers]>=1.0.0,<1.1.0"]
# `full` is the umbrella "batteries-included" alias. Today it's just
# `embeddings-local`, but we expect to bundle more optional niceties under
# it over time — users who want everything can keep using `[full]` and pick
# up the additions automatically. The name also matches the Docker
# `:full` image variant for consistency across install paths. Contents are
# inlined rather than self-referencing `cocoindex-code[embeddings-local]`
# to avoid resolver edge cases with older pip.
full = ["cocoindex[sentence-transformers]==1.0.0a43"]
full = ["cocoindex[sentence-transformers]>=1.0.0,<1.1.0"]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"prek>=0.1.0",
"cocoindex[sentence-transformers]==1.0.0a43",
"cocoindex[sentence-transformers]>=1.0.0,<1.1.0",
]

[project.scripts]
Expand Down Expand Up @@ -89,12 +89,9 @@ dev = [
"mypy>=1.0.0",
"prek>=0.1.0",
"types-pyyaml>=6.0.12.20250915",
"cocoindex[sentence-transformers]==1.0.0a43",
"cocoindex[sentence-transformers]>=1.0.0,<1.1.0",
]

[tool.uv]
prerelease = "explicit"

[tool.ruff]
line-length = 100

Expand Down
2 changes: 1 addition & 1 deletion src/cocoindex_code/chunking.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ def my_chunker(path: Path, content: str) -> tuple[str | None, list[Chunk]]:
ChunkerFn = _Callable[[_pathlib.Path, str], tuple[str | None, list[Chunk]]]

# tracked=False: callables are not fingerprint-able; daemon restart re-indexes anyway.
CHUNKER_REGISTRY = _coco.ContextKey[dict[str, ChunkerFn]]("chunker_registry", tracked=False)
CHUNKER_REGISTRY = _coco.ContextKey[dict[str, ChunkerFn]]("chunker_registry")

__all__ = ["Chunk", "ChunkerFn", "CHUNKER_REGISTRY", "TextPosition"]
6 changes: 3 additions & 3 deletions src/cocoindex_code/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
Embedder = Union["SentenceTransformerEmbedder", "LiteLLMEmbedder"]

# Context keys
EMBEDDER = coco.ContextKey[Embedder]("embedder")
SQLITE_DB = coco.ContextKey[sqlite.ManagedConnection]("index_db", tracked=False)
CODEBASE_DIR = coco.ContextKey[pathlib.Path]("codebase", tracked=False)
EMBEDDER = coco.ContextKey[Embedder]("embedder", detect_change=True)
SQLITE_DB = coco.ContextKey[sqlite.ManagedConnection]("index_db")
CODEBASE_DIR = coco.ContextKey[pathlib.Path]("codebase")

# Module-level variable — set by daemon at startup (needed for CodeChunk annotation).
embedder: Embedder | None = None
Expand Down
35 changes: 16 additions & 19 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading