Skip to content

Commit e6a077f

Browse files
authored
feat(deps): bump cocoindex to 1.0.6 and tag telemetry as cocoindex-code (#172)
Bump cocoindex (and the sentence-transformers extra) lower bound to 1.0.6, the first release including cocoindex-io/cocoindex#1992 which adds the optional `COCOINDEX_APPLICATION_FOR_TRACKING` env var. Set `COCOINDEX_APPLICATION_FOR_TRACKING=cocoindex-code` at the top of `cocoindex_code/__init__.py` (before any submodule imports `cocoindex`) so aggregate telemetry can identify this application. Uses `setdefault` to leave any explicit user value untouched. Document the telemetry behavior and `COCOINDEX_DISABLE_USAGE_TRACKING` opt-out in the README.
1 parent 4392229 commit e6a077f

4 files changed

Lines changed: 64 additions & 106 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,18 @@ If you previously configured `cocoindex-code` via environment variables, the `co
749749
| `COCOINDEX_CODE_EXCLUDED_PATTERNS` | `exclude_patterns` in project `settings.yml` |
750750
| `COCOINDEX_CODE_EXTRA_EXTENSIONS` | `include_patterns` + `language_overrides` in project `settings.yml` |
751751

752+
## Telemetry
753+
754+
`cocoindex-code` sends anonymous usage telemetry through CocoIndex so we can see how the tool is used in aggregate and prioritize improvements. The events identify themselves as `application: cocoindex-code`.
755+
756+
We **do not** collect your source code, file paths, queries, search results, embeddings, settings, or any other content from your codebase or environment.
757+
758+
To opt out, set:
759+
760+
```bash
761+
export COCOINDEX_DISABLE_USAGE_TRACKING=1
762+
```
763+
752764
## Large codebase / Enterprise
753765
[CocoIndex](https://github.com/cocoindex-io/cocoindex) is an ultra efficient indexing engine that also works on large codebases at scale for enterprises. In enterprise scenarios it is a lot more efficient to share indexes with teammates when there are large or many repos. We also have advanced features like branch dedupe etc designed for enterprise users.
754766

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers = [
2323

2424
dependencies = [
2525
"mcp>=1.0.0",
26-
"cocoindex[litellm]>=1.0.0,<1.1.0",
26+
"cocoindex[litellm]>=1.0.6,<1.1.0",
2727
"sqlite-vec>=0.1.0",
2828
"pydantic>=2.0.0",
2929
"numpy>=1.24.0",
@@ -39,23 +39,23 @@ dependencies = [
3939
# `embeddings-local` is the primary feature extra: it pulls in
4040
# `sentence-transformers` (via cocoindex) so local embeddings work without
4141
# an API key.
42-
embeddings-local = ["cocoindex[sentence-transformers]>=1.0.0,<1.1.0"]
42+
embeddings-local = ["cocoindex[sentence-transformers]>=1.0.6,<1.1.0"]
4343
# `full` is the umbrella "batteries-included" alias. Today it's just
4444
# `embeddings-local`, but we expect to bundle more optional niceties under
4545
# it over time — users who want everything can keep using `[full]` and pick
4646
# up the additions automatically. The name also matches the Docker
4747
# `:full` image variant for consistency across install paths. Contents are
4848
# inlined rather than self-referencing `cocoindex-code[embeddings-local]`
4949
# to avoid resolver edge cases with older pip.
50-
full = ["cocoindex[sentence-transformers]>=1.0.0,<1.1.0"]
50+
full = ["cocoindex[sentence-transformers]>=1.0.6,<1.1.0"]
5151
dev = [
5252
"pytest>=7.0.0",
5353
"pytest-asyncio>=0.21.0",
5454
"pytest-cov>=4.0.0",
5555
"ruff>=0.1.0",
5656
"mypy>=1.0.0",
5757
"prek>=0.1.0",
58-
"cocoindex[sentence-transformers]>=1.0.0,<1.1.0",
58+
"cocoindex[sentence-transformers]>=1.0.6,<1.1.0",
5959
]
6060

6161
[project.scripts]
@@ -89,7 +89,7 @@ dev = [
8989
"mypy>=1.0.0",
9090
"prek>=0.1.0",
9191
"types-pyyaml>=6.0.12.20250915",
92-
"cocoindex[sentence-transformers]>=1.0.3,<1.1.0",
92+
"cocoindex[sentence-transformers]>=1.0.6,<1.1.0",
9393
]
9494

9595
[tool.ruff]

src/cocoindex_code/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
from __future__ import annotations
44

55
import logging
6+
import os
67
from typing import TYPE_CHECKING, Any
78

9+
# Identify this application in cocoindex's telemetry payloads. Must be set
10+
# before any `import cocoindex` runs (the value is read once at telemetry
11+
# init time). See cocoindex-io/cocoindex#1992.
12+
os.environ.setdefault("COCOINDEX_APPLICATION_FOR_TRACKING", "cocoindex-code")
13+
814
logging.basicConfig(level=logging.WARNING)
915

1016
from ._version import __version__ # noqa: E402

0 commit comments

Comments
 (0)